From c9860ac6a44a7849e06f8d90604c069ea78df6c6 Mon Sep 17 00:00:00 2001 From: wangsongsole Date: Tue, 16 Aug 2022 09:47:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20key=E6=89=B9=E6=AC=A1?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=BA=E7=94=9F=E6=88=90=E4=B8=AD=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E7=BD=AE=E7=81=B0=EF=BC=8C=E7=94=9F=E6=88=90=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=9A=84key=E6=89=B9=E6=AC=A1=E6=94=BE=E5=9C=A8=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=B8=ADtab=E9=A1=B5=E4=B8=AD=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/key/list.js | 70 ++++++++++++++++++++++++++------------ 1 file changed, 48 insertions(+), 22 deletions(-) diff --git a/src/pages/plan/key/list.js b/src/pages/plan/key/list.js index af544cb2..3171025b 100644 --- a/src/pages/plan/key/list.js +++ b/src/pages/plan/key/list.js @@ -190,6 +190,7 @@ export default class acclist extends React.Component { { title: '审核中' }, { title: '未通过' }, { title: '进行中' }, + { title: '生成中' }, { title: '暂停中' }, { title: '已完结' }, { title: '已作废' } @@ -414,30 +415,34 @@ export default class acclist extends React.Component { }, 200) } tabFn(index) { + console.log(index) this.setState({ activepage: index, key_word: '' }) - if (index == 1) { - this.setState({ activepage: 1 }) + switch (index) { + case 1: + this.setState({ activepage: 1 }) + break + case 2: + this.setState({ activepage: 2 }) + break + case 3: + this.setState({ activepage: 8 }) + break + case 4: + this.setState({ activepage: 4 }) + break + case 5: + this.setState({ activepage: 3 }) + break + case 6: + this.setState({ activepage: 5 }) + break + case 7: + this.setState({ activepage: 6 }) + break + case 8: + this.setState({ activepage: 7 }) + break } - if (index == 2) { - this.setState({ activepage: 2 }) - } - - if (index == 3) { - this.setState({ activepage: 8 }) - } - if (index == 4) { - this.setState({ activepage: 4 }) - } - if (index == 5) { - this.setState({ activepage: 5 }) - } - if (index == 6) { - this.setState({ activepage: 6 }) - } - if (index == 7) { - this.setState({ activepage: 7 }) - } - this.setState({ page: 1, limit: 10 }) setTimeout(() => { @@ -970,6 +975,27 @@ export default class acclist extends React.Component { ) + } else if (rowData.status === 3) { + str = ( + + 编辑 + 复制 + 撤销审批 + + this.setState({ visible: v }) + }> + +
+ 更多 {' '} +
+
+ +
+
+ ) } else { str = (