From 34f78e1203a839592ca6764f88f1632088e07d2a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 10 二月 2020 13:41:43 +0800 Subject: [PATCH] 2020-02-10 --- src/templates/modalconfig/index.jsx | 51 ++++++++------------------------------------------- 1 files changed, 8 insertions(+), 43 deletions(-) diff --git a/src/templates/modalconfig/index.jsx b/src/templates/modalconfig/index.jsx index 8df2033..297e7a3 100644 --- a/src/templates/modalconfig/index.jsx +++ b/src/templates/modalconfig/index.jsx @@ -52,7 +52,6 @@ modalformlist: null, // 鍩烘湰淇℃伅琛ㄥ崟瀛楁 formlist: null, // 琛ㄥ崟缂栬緫妯℃�佹锛屽彲缂栬緫瀛楁 card: null, // 缂栬緫鍏冪礌 - loading: false, // 琛ㄥ崟鍒锋柊鏃朵娇鐢� menuloading: false, // 鑿滃崟淇濆瓨涓� closeloading: false, // 鑿滃崟淇濆瓨涓� settingVisible: false, // 鍏ㄥ眬閰嶇疆妯℃�佹 @@ -260,12 +259,8 @@ _config.fields = list.filter(item => !item.origin) this.setState({ - loading: true, config: _config }, () => { - this.setState({ - loading: false - }) this.handleForm(newcard) }) } else { @@ -285,12 +280,8 @@ }) this.setState({ - loading: true, config: _config }, () => { - this.setState({ - loading: false - }) this.handleForm(newcard) }) } else { @@ -329,12 +320,7 @@ }) this.setState({ - loading: true, config: _config - }, () => { - this.setState({ - loading: false - }) }) } } @@ -404,12 +390,7 @@ this.setState({ config: _config, - loading: true, visible: false - }, () => { - this.setState({ - loading: false - }) }) }) } @@ -437,11 +418,6 @@ _this.setState({ config: _config, - loading: true - }, () => { - _this.setState({ - loading: false - }) }) }, onCancel() {} @@ -738,13 +714,12 @@ } this.setState({ - tableVisible: false, - loading: true, config: _config - }, () => { - this.setState({ - loading: false - }) + }) + notification.success({ + top: 92, + message: '娣诲姞鎴愬姛', + duration: 2 }) } @@ -884,12 +859,7 @@ } _this.setState({ - config: _config, - loading: true - }, () => { - _this.setState({ - loading: false - }) + config: _config }) }, onCancel() {} @@ -939,12 +909,7 @@ this.setState({ groupVisible: false, curgroup: '', - loading: true, config: config - }, () => { - this.setState({ - loading: false - }) }) }) } @@ -1023,7 +988,7 @@ </div> <div className="ant-modal-body"> <div className="modal-form"> - {!this.state.loading && config.groups.length > 0 && + {config.groups.length > 0 && config.groups.map(group => { return ( <div key={group.uuid}> @@ -1045,7 +1010,7 @@ ) }) } - {!this.state.loading && config.groups.length === 0 ? + {config.groups.length === 0 ? <DragElement list={config.fields} setting={config.setting} -- Gitblit v1.8.0