From c243d9657cb95e37395974aa2a55521326372b36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Mon, 24 Jan 2022 20:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=95=86=E5=93=81=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/commodity/commodity.js | 4 ++-- src/pages/plan/key/list.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/exchangecode/commodity/commodity.js b/src/pages/exchangecode/commodity/commodity.js index 646110cb..a7d6d6d4 100644 --- a/src/pages/exchangecode/commodity/commodity.js +++ b/src/pages/exchangecode/commodity/commodity.js @@ -62,7 +62,7 @@ const Column = [ width:'200px', }, ]; - + // this.editinfo(e,rowData)}>编辑 export default class commoditylist extends React.Component{ constructor(props){ super(props) @@ -292,7 +292,7 @@ export default class commoditylist extends React.Component{ if(com == "opearo") { return
- this.editinfo(e,rowData)}>编辑 + this.deleteFn(e,rowData)}>删除
} diff --git a/src/pages/plan/key/list.js b/src/pages/plan/key/list.js index 4a99c970..3c9fc82e 100644 --- a/src/pages/plan/key/list.js +++ b/src/pages/plan/key/list.js @@ -442,7 +442,9 @@ onEditRow(status,row){ componentWillMount(){ this.setState({tableHeight:window.innerHeight-390}); - if(sessionStorage.getItem("key_plan_status")==6 || sessionStorage.getItem("key_plan_status")== 0) + + let disabledArr = ["6","0","2","5","8"] + if(disabledArr.indexOf(sessionStorage.getItem("key_plan_status")) > -1 ) { this.setState({disabled:true}) }