From dac21f9a9941681ccdc87220c2ed12ff277446d3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 24 六月 2020 11:00:42 +0800
Subject: [PATCH] 2020-06-24

---
 src/templates/zshare/editcomponent/index.jsx |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/templates/zshare/editcomponent/index.jsx b/src/templates/zshare/editcomponent/index.jsx
index 635dd93..bf29357 100644
--- a/src/templates/zshare/editcomponent/index.jsx
+++ b/src/templates/zshare/editcomponent/index.jsx
@@ -96,14 +96,14 @@
    */
   thawBtnSubmit = () => {
     const { thawButtons } = this.props
-    const { thawbtnlist } = this.state
+    const { thawbtnlist, dict } = this.state
     let config = JSON.parse(JSON.stringify(this.props.config))
 
     // 涓夌骇鑿滃崟瑙i櫎鍐荤粨
     if (this.refs.trawmenu.state.targetKeys.length === 0) {
       notification.warning({
         top: 92,
-        message: this.props.dict['form.required.select'] + this.props.dict['header.form.thawbutton'],
+        message: dict['form.required.select'] + dict['header.form.thawbutton'],
         duration: 5
       })
     } else {
@@ -189,8 +189,8 @@
     const { dict } = this.state
     const menu = (
       <Menu onClick={this.handleMenuClick}>
-        {this.props.type !== 'TreePage' ? <Menu.Item key="thaw"><Icon type="unlock" />{this.props.dict['header.form.thawbutton']}</Menu.Item> : null}
-        <Menu.Item key="paste"><Icon type="snippets" />{this.props.dict['header.form.paste']}</Menu.Item>
+        {this.props.type !== 'TreePage' ? <Menu.Item key="thaw"><Icon type="unlock" />{dict['header.form.thawbutton']}</Menu.Item> : null}
+        <Menu.Item key="paste"><Icon type="snippets" />{dict['header.form.paste']}</Menu.Item>
         {/* <Menu.Item key="replace"><Icon type="retweet" />鏇挎崲</Menu.Item> */}
       </Menu>
     )
@@ -204,20 +204,20 @@
         </Dropdown>
         {/* 瑙e喕鎸夐挳妯℃�佹 */}
         <Modal
-          title={this.props.dict['header.form.thawbutton']}
-          okText={this.props.dict['model.confirm']}
-          cancelText={this.props.dict['model.cancel']}
+          title={dict['header.form.thawbutton']}
+          okText={dict['model.confirm']}
+          cancelText={dict['model.cancel']}
           visible={this.state.thawVisible}
           onOk={this.thawBtnSubmit}
           onCancel={() => {this.setState({thawVisible: false, thawbtnlist: null})}}
           destroyOnClose
         >
           {!this.state.thawbtnlist && <Spin style={{marginLeft: 'calc(50% - 22px)', marginTop: '70px', marginBottom: '70px'}} size="large" />}
-          {this.state.thawbtnlist && <TransferForm ref="trawmenu" menulist={this.state.thawbtnlist}/>}
+          {this.state.thawbtnlist && <TransferForm ref="trawmenu" dict={dict} menulist={this.state.thawbtnlist}/>}
         </Modal>
         {/* 鎸夐挳閰嶇疆淇℃伅绮樿创澶嶅埗 */}
         <Modal
-          title={this.props.dict['header.form.paste']}
+          title={dict['header.form.paste']}
           visible={this.state.pasteVisible}
           width={600}
           maskClosable={false}
@@ -226,7 +226,7 @@
           destroyOnClose
         >
           <PasteForm
-            dict={this.props.dict}
+            dict={dict}
             wrappedComponentRef={(inst) => this.pasteFormRef = inst}
           />
         </Modal>

--
Gitblit v1.8.0