king
2023-04-27 6dd965723be9dc245105296198c25a80cfe51b54
src/menu/components/table/edit-table/columns/editColumn/index.jsx
@@ -16,7 +16,7 @@
  text: ['label', 'field', 'type', 'Align', 'Hide', 'IsSort', 'Width', 'prefix', 'postfix', 'textFormat', 'editable', 'initval', 'blacklist'],
  number: ['label', 'field', 'type', 'Align', 'Hide', 'IsSort', 'Width', 'decimal', 'format', 'prefix', 'postfix', 'editable', 'initval', 'sum', 'blacklist'],
  textarea: ['label', 'field', 'type', 'Align', 'Hide', 'Width', 'prefix', 'initval', 'postfix', 'blacklist'],
  custom: ['label', 'type', 'Align', 'Hide', 'Width', 'blacklist'],
  custom: ['label', 'type', 'Align', 'Width', 'blacklist'],
  colspan: ['label', 'type', 'Align', 'Hide', 'blacklist'],
  action: ['label', 'type', 'Align', 'Width'],
  formula: ['label', 'type', 'Align', 'Hide', 'Width', 'prefix', 'postfix', 'eval', 'formula', 'blacklist'],
@@ -60,6 +60,10 @@
    let _options = fromJS(columnTypeOptions[this.column.type]).toJS()
    if (this.column.editable === 'true') {
      _options.push('ctrlField')
      if (this.column.ctrlField) {
        _options.push('ctrlValue')
      }
      if (this.column.type === 'text') {
        _options.push('editType')
@@ -170,7 +174,7 @@
      }
    } else if (key === 'format' && value === 'percent') {
      this.props.form.setFieldsValue({postfix: '%'})
    } else if (key === 'editable' || key === 'editType' || key === 'resourceType') {
    } else if (key === 'editable' || key === 'editType' || key === 'resourceType' || key === 'ctrlField') {
      let _options = this.getOptions()
      this.setState({