From 47706f0c97100c45375b81e721900524a28342ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Sun, 28 Nov 2021 13:10:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.css | 4 ++++ src/pages/plan/add/edit.js | 3 ++- src/pages/plan/key/list.js | 8 +++++++- src/pages/plan/list/list.js | 15 +++++++-------- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/App.css b/src/App.css index f084f29e..dffe6588 100644 --- a/src/App.css +++ b/src/App.css @@ -176,3 +176,7 @@ resize: none; border: none!important; } +.zent-btn-primary.zent-btn-disabled.zent-btn +{ + background-color: #B8BCC2 !important; +} \ No newline at end of file diff --git a/src/pages/plan/add/edit.js b/src/pages/plan/add/edit.js index 2dc84083..9f65561b 100644 --- a/src/pages/plan/add/edit.js +++ b/src/pages/plan/add/edit.js @@ -60,7 +60,8 @@ export default class add extends React.Component{ componentDidMount(e){ console.log("测试编辑") console.log(sessionStorage.getItem("plan_id")) - if(sessionStorage.getItem("plan_status") == 4) + let plan_status = sessionStorage.getItem("plan_status"); + if(plan_status == 3 ||plan_status == 4|| plan_status == 5 ) { this.setState({disabled:true}) } diff --git a/src/pages/plan/key/list.js b/src/pages/plan/key/list.js index eee1c338..94fa46be 100644 --- a/src/pages/plan/key/list.js +++ b/src/pages/plan/key/list.js @@ -116,6 +116,7 @@ export default class acclist extends React.Component{ distdata3:[], distdata11:[], tableHeight:600, + disabled:false, email:"", key_word:'', phone:"", @@ -329,6 +330,11 @@ onEditRow(status,row){ componentWillMount(){ this.setState({tableHeight:window.innerHeight-390}); + if(sessionStorage.getItem("key_plan_status")==6) + { + this.setState({disabled:true}) + } + } phoneChange=(e)=> @@ -539,7 +545,7 @@ onChangeCombinedDate(e){
-
+
{/* */}