king
2024-08-25 326aa6b3effaccc71cfe0775d47b0f29eb3695a6
src/menu/replaceField/settingform/index.jsx
@@ -76,13 +76,13 @@
  }
  clear = () => {
    let _this = this
    let that = this
    confirm({
      title: '确定清除历史记录吗?',
      content: '',
      onOk() {
        localStorage.removeItem('replaceRecord')
        _this.setState({fields: [], labels: []})
        that.setState({fields: [], labels: []})
      },
      onCancel() {}
    })
@@ -121,7 +121,7 @@
              {getFieldDecorator('resource', {
                initialValue: 'custom'
              })(
                <Radio.Group onChange={(e) => this.setState({resource: e.target.value})}>
                <Radio.Group onChange={(e) => {this.setState({resource: e.target.value});this.props.form.setFieldsValue({reType: 'field'})}}>
                  <Radio value="dict">数据字典</Radio>
                  <Radio value="custom">自定义</Radio>
                </Radio.Group>
@@ -135,7 +135,7 @@
              })(
                <Radio.Group onChange={(e) => this.setState({reType: e.target.value})}>
                  <Radio value="field">字段 <SwapRightOutlined /> 名称</Radio>
                  <Radio value="name">原字段 <SwapRightOutlined /> 新字段</Radio>
                  <Radio disabled={resource === 'dict'} value="name">原字段 <SwapRightOutlined /> 新字段</Radio>
                </Radio.Group>
              )}
            </Form.Item>