king
2022-10-17 e8edfdadb561cd83bf6e1c3e00d55b8cc2aee6d5
src/pc/createview/index.jsx
@@ -4,8 +4,6 @@
import { Button, Modal, notification } from 'antd'
import moment from 'moment'
import zhCN from '@/locales/zh-CN/model.js'
import enUS from '@/locales/en-US/model.js'
import Utils from '@/utils/utils.js'
import MenuUtils from '@/utils/utils-custom.js'
import SettingForm from './settingform'
@@ -18,7 +16,6 @@
  }
  state = {
    dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS,
    visible: false,
    loading: false
  }
@@ -206,7 +203,7 @@
  render () {
    const { config } = this.props
    const { visible, dict, loading } = this.state
    const { visible, loading } = this.state
    return (
      <div className="create-view">
@@ -216,14 +213,13 @@
          visible={visible}
          width={600}
          maskClosable={false}
          okText={dict['model.submit']}
          okText="提交"
          onOk={this.verifySubmit}
          onCancel={() => { this.setState({ visible: false }) }}
          confirmLoading={loading}
          destroyOnClose
        >
          <SettingForm
            dict={dict}
            config={config}
            wrappedComponentRef={(inst) => this.verifyRef = inst}
          />