From a02fc6a77fa1b35c6516b2d37108d80e260c6c85 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 十一月 2024 22:05:08 +0800 Subject: [PATCH] 2024-11-07 --- src/menu/components/form/tab-form/index.jsx | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/menu/components/form/tab-form/index.jsx b/src/menu/components/form/tab-form/index.jsx index 8671d15..1758d75 100644 --- a/src/menu/components/form/tab-form/index.jsx +++ b/src/menu/components/form/tab-form/index.jsx @@ -20,7 +20,7 @@ const MobCardComponent = asyncComponent(() => import('@/mob/components/formdragelement')) const FormTitle = asyncComponent(() => import('../dragtitle')) const FormAction = asyncComponent(() => import('../formaction')) -// const FormFork = asyncComponent(() => import('@/menu/modalconfig/formfork')) +const FormFork = asyncComponent(() => import('@/menu/modalconfig/formfork')) const CopyComponent = asyncIconComponent(() => import('@/menu/components/share/copycomponent')) const PasteComponent = asyncIconComponent(() => import('@/menu/components/share/pastecomponent')) const FieldsComponent = asyncComponent(() => import('@/templates/sharecomponent/fieldscomponent')) @@ -279,7 +279,7 @@ closeGroup = (cell) => { const { group } = this.state let card = fromJS(this.state.card).toJS() - const _this = this + const that = this confirm({ content: '纭畾鍒犻櫎鍒嗙粍鍚楋紵', @@ -291,8 +291,8 @@ _group = card.subcards[0] || null } - _this.setState({group: _group}) - _this.updateComponent(card) + that.setState({group: _group}) + that.updateComponent(card) }, onCancel() {} }) @@ -323,7 +323,7 @@ changecols = (type) => { let card = fromJS(this.state.card).toJS() let config = fromJS(this.state.group).toJS() - let _this = this + let that = this config.fields = config.fields.map(item => { item.labelwidth = 33.3 @@ -355,8 +355,8 @@ } return item }) - _this.setState({group: config}) - _this.updateComponent(card) + that.setState({group: config}) + that.updateComponent(card) }, onCancel() {} }) @@ -386,7 +386,7 @@ closeForm = (cell) => { let group = fromJS(this.state.group).toJS() let card = fromJS(this.state.card).toJS() - let _this = this + let that = this group.fields = group.fields.filter(item => item.uuid !== cell.uuid) @@ -400,8 +400,8 @@ confirm({ content: `纭畾鍒犻櫎<<${cell.label}>>鍚楋紵`, onOk() { - _this.setState({group}) - _this.updateComponent(card) + that.setState({group}) + that.updateComponent(card) }, onCancel() {} }) @@ -573,7 +573,7 @@ clearGroup = () => { let group = fromJS(this.state.group).toJS() let card = fromJS(this.state.card).toJS() - let _this = this + let that = this group.fields = [] @@ -587,8 +587,8 @@ confirm({ content: `纭畾娓呯┖琛ㄥ崟鍚楋紵`, onOk() { - _this.setState({group}) - _this.updateComponent(card) + that.setState({group}) + that.updateComponent(card) }, onCancel() {} }) @@ -680,7 +680,7 @@ } trigger="hover"> <SwapOutlined /> </Popover> : null} - {/* <FormFork forms={group.fields}/> */} + <FormFork forms={group.fields}/> {/* <CopyOutlined title="澶嶅埗" onClick={this.triggerCopy} /> */} <Switch checkedChildren="寮�" unCheckedChildren="鍏�" defaultChecked={this.state.showField} onChange={(val) => this.setState({showField: val})} /> </div> -- Gitblit v1.8.0