king
2021-04-15 4f02278c94b76f231ba24673db4bc258b11e64a8
2021-04-15
5个文件已修改
40 ■■■■ 已修改文件
src/menu/components/share/actioncomponent/actionform/index.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/modalconfig/controller.jsx 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/modalconfig/index.jsx 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/modalconfig/index.scss 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/option.js 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -523,12 +523,13 @@
              })(
                <Select
                  showSearch
                  allowClear
                  filterOption={(input, option) => option.props.children[2].toLowerCase().indexOf(input.toLowerCase()) >= 0}
                  onChange={(value) => {this.optionChange(item.key, value)}}
                  getPopupContainer={() => document.getElementById('winter')}
                >
                  {item.options.map((option, index) =>
                    <Select.Option id={index} key={index} value={option.value || option.field}>
                    <Select.Option id={index} key={option.value || option.field} value={option.value || option.field}>
                      {item.key === 'icon' && option.value ? <Icon type={option.value} /> : ''} {option.text || option.label}
                    </Select.Option>
                  )}
src/menu/modalconfig/controller.jsx
@@ -48,12 +48,6 @@
  handleSave = (modal) => {
    const { config, btn } = this.state
    MKEmitter.emit('submitModal', config, btn, modal)
    this.setState({
      visible: false,
      config: null,
      btn: null
    })
  }
  render () {
src/menu/modalconfig/index.jsx
@@ -297,7 +297,13 @@
  submitConfig = () => {
    const { config } = this.state
    this.setState({originConfig: fromJS(config).toJS()})
    this.props.handleSave(config)
    notification.success({
      top: 92,
      message: '保存成功。',
      duration: 2
    })
  }
  cancelConfig = () => {
@@ -423,8 +429,8 @@
            <Card title={dict['header.menu.form.configurable']} bordered={false} extra={
              <div>
                <EditComponent dict={dict} options={['form']} config={this.state.config} refresh={(res) => this.updateConfig(res.config)}/>
                <Button type="primary" onClick={this.submitConfig}>{dict['model.confirm']}</Button>
                <Button onClick={this.cancelConfig}>{dict['model.cancel']}</Button>
                <Button type="primary" onClick={this.submitConfig}>保存</Button>
                <Button onClick={this.cancelConfig}>返回</Button>
              </div>
            } style={{ width: '100%' }}>
              <Icon type="setting" onClick={this.changeSetting} />
src/menu/modalconfig/index.scss
@@ -127,6 +127,20 @@
    .ant-card-body {
      position: relative;
      padding: 0;
      .modal-fields-row.up_down {
        .ant-form-item {
          display: block!important;
          .ant-form-item-label {
            width: 100%!important;
            text-align: left;
          }
          .ant-form-item-control-wrapper {
            width: 100%!important;
          }
        }
      }
      .ant-modal-content {
        max-width: 95%;
        margin: 0 auto;
@@ -292,6 +306,7 @@
  }
}
.modal-fields {
  .ant-modal {
    top: 50px;
src/utils/option.js
@@ -210,9 +210,6 @@
// 按钮图标集
export const btnIcons = [{
  value: '',
  text: '无'
}, {
  value: 'plus',
  text: 'plus'
}, {
@@ -284,6 +281,9 @@
}, {
  value: 'double-left',
  text: 'double-left'
}, {
  value: 'search',
  text: 'search'
}]
// 按钮颜色集