| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Icon, Modal } from 'antd' |
| | | import { Modal } from 'antd' |
| | | import { EditOutlined } from '@ant-design/icons' |
| | | |
| | | import zhCN from '@/locales/zh-CN/model.js' |
| | | import enUS from '@/locales/en-US/model.js' |
| | |
| | | } |
| | | |
| | | state = { |
| | | dict: localStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, |
| | | dict: sessionStorage.getItem('lang') !== 'en-US' ? zhCN : enUS, |
| | | calendar: null, // 日历设置 |
| | | visible: false, // 模态框控制 |
| | | } |
| | |
| | | |
| | | return ( |
| | | <div className="model-calendar-setting"> |
| | | <Icon type="edit" onClick={this.handleTab} /> |
| | | <EditOutlined onClick={this.handleTab} /> |
| | | {/* 设置全局配置及列表数据源 */} |
| | | <Modal |
| | | wrapClassName="model-calendar-setting-modal" |
| | | title={dict['model.edit']} |
| | | title="日历关联字段" |
| | | visible={visible} |
| | | width={700} |
| | | maskClosable={false} |
| | | onCancel={() => { this.setState({ visible: false })}} |
| | | cancelText={this.state.dict['model.cancel']} |
| | | okText={this.state.dict['model.confirm']} |
| | | onOk={this.calendarSave} |
| | | destroyOnClose |
| | | > |