king
2022-10-17 e8edfdadb561cd83bf6e1c3e00d55b8cc2aee6d5
src/templates/zshare/editcomponent/index.jsx
@@ -8,8 +8,6 @@
import Utils from '@/utils/utils.js'
import PasteForm from '@/templates/zshare/pasteform'
import TransferForm from '@/templates/zshare/basetransferform'
import zhCN from '@/locales/zh-CN/model.js'
import enUS from '@/locales/en-US/model.js'
import MKEmitter from '@/utils/events.js'
import './index.scss'
@@ -23,7 +21,6 @@
  }
  state = {
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    thawVisible: false,
    thawbtnlist: null,
    pasteVisible: false,
@@ -88,13 +85,13 @@
   */
  thawBtnSubmit = () => {
    const { thawButtons } = this.props
    const { thawbtnlist, dict, targetKeys } = this.state
    const { thawbtnlist, targetKeys } = this.state
    let config = fromJS(this.props.config).toJS()
    if (targetKeys.length === 0) {
      notification.warning({
        top: 92,
        message: dict['form.required.select'] + '解冻按钮',
        message: '请选择解冻按钮',
        duration: 5
      })
    } else {
@@ -200,12 +197,11 @@
  render() {
    const { MenuID } = this.props
    const { dict } = this.state
    return (
      <div style={{display: 'inline-block'}}>
        {MenuID ? <Button className="mk-border-green" onClick={this.handleThaw}><UnlockOutlined /> 解冻按钮</Button> : null}
        <Button style={{borderColor: '#40a9ff', color: '#40a9ff'}} onClick={() => this.setState({pasteVisible: true})}><SnippetsOutlined /> {dict['header.form.paste']}</Button>
        <Button style={{borderColor: '#40a9ff', color: '#40a9ff'}} onClick={() => this.setState({pasteVisible: true})}><SnippetsOutlined /> 粘贴</Button>
        {/* 解冻按钮模态框 */}
        <Modal
          title="解冻按钮"
@@ -219,7 +215,7 @@
        </Modal>
        {/* 按钮配置信息粘贴复制 */}
        <Modal
          title={dict['header.form.paste']}
          title="粘贴"
          visible={this.state.pasteVisible}
          width={600}
          maskClosable={false}