From 09f21e655198fa3a00af070ce54eafb864332dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 9 Jan 2020 14:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/tpm/TPMsettings/Configuration.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/tpm/TPMsettings/Configuration.js b/public/react/src/modules/tpm/TPMsettings/Configuration.js index f48314261..b3a0e6b64 100644 --- a/public/react/src/modules/tpm/TPMsettings/Configuration.js +++ b/public/react/src/modules/tpm/TPMsettings/Configuration.js @@ -66,7 +66,8 @@ export default class Shixuninformation extends Component { scope_partment: [], loading: false, opening_timetype:false, - use_scope_type:false + use_scope_type:false, + scope_partmenttype:false } } @@ -150,6 +151,16 @@ export default class Shixuninformation extends Component { return } } + if(use_scope===1){ + if(oldscope_partment.length===0){ + this.setState({ + scope_partmenttype:true + }) + this.props.showNotification("请选择指定单位公开") + return + } + } + let list=[] scope_partment.map((item,key)=>{ list.push(item) @@ -231,7 +242,8 @@ export default class Shixuninformation extends Component { if (scopetype === false) { datalist.push(e) this.setState({ - scope_partment: datalist + scope_partment: datalist, + scope_partmenttype:false }); } else { this.props.showNotification("请勿指定相同的单位") @@ -297,7 +309,7 @@ export default class Shixuninformation extends Component { const dateFormat = 'YYYY-MM-DD HH:mm'; // console.log() - console.log(this.props&&this.props.identity<8) + return (