From 3bbe58562c5aee23bda471cc4f45fb563228b088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Sat, 14 Sep 2024 10:42:45 +0800 Subject: [PATCH] =?UTF-8?q?custom/=E9=A2=86=E6=82=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/components/CustomSelect/index.js | 7 +++---- .../components/CustomSelect/index.less | 4 ++++ .../components/generateVouchersDialog.js | 10 +++++++--- .../custom-pages/lingyue/components/list.js | 2 +- .../pages/custom-pages/lingyue/layout.js | 5 ++--- .../lingyue/socialFundSummary/index.js | 17 ++++++++++++++--- 6 files changed, 31 insertions(+), 14 deletions(-) diff --git a/pc4mobx/hrmSalary/components/CustomSelect/index.js b/pc4mobx/hrmSalary/components/CustomSelect/index.js index 3ec7c4ec..7c436690 100644 --- a/pc4mobx/hrmSalary/components/CustomSelect/index.js +++ b/pc4mobx/hrmSalary/components/CustomSelect/index.js @@ -20,7 +20,7 @@ class Index extends Component { constructor(props) { super(props); this.state = { - visible: false, dropdownWidth: 200, value: props.value || "" + visible: false, dropdownWidth: 200, value: props.value ? props.value.split(",") : [] }; this.selectedData = {}; } @@ -40,12 +40,11 @@ class Index extends Component { }; render() { - const { dropdownWidth, visible } = this.state; - const { options, defaultValue, value } = this.props; + const { dropdownWidth, visible, value } = this.state; + const { options = [], defaultValue } = this.props; const clsname = classNames({ "wea-associative-search-mult": true }); - console.log(value); return (