king
2019-12-18 977ce3d348f898d64ea240c8397b83d3e1cc5bb4
src/templates/comtableconfig/index.jsx
@@ -60,9 +60,10 @@
    tables: [],              // 可用表名
    selectedTables: [],      // 已选表名
    originMenu: null,        // 原始菜单
    originActions: null,
    delActions: [],
    funcLoading: false
    originActions: null,     // 原始按钮信息,使用已有用户模板
    delActions: [],          // 删除按钮列表
    funcLoading: false,      // 存储过程创建中
    showColumnName: false    // 显示列字段名控制
  }
  /**
@@ -844,6 +845,16 @@
            readonly: false
          },
          {
            type: 'text',
            key: 'postfix',
            label: this.state.dict['header.form.postfix'],
            initVal: card.postfix || '',
            // tooltip: '后缀值设置为"\\n",表示换行',
            tooltipClass: 'middle',
            required: false,
            readonly: false
          },
          {
            type: 'select',
            key: 'match',
            label: this.state.dict['header.form.match'],
@@ -863,9 +874,6 @@
            }, {
              MenuID: '<=',
              text: '<='
            }, {
              MenuID: 'between',
              text: 'between'
            }],
            required: false
          },
@@ -1298,7 +1306,7 @@
          notification.success({
            top: 92,
            message: '创建成功',
            duration: 5
            duration: 2
          })
          return true
        }
@@ -1642,7 +1650,7 @@
        notification.success({
          top: 92,
          message: '保存成功',
          duration: 10
          duration: 2
        })
        if (this.state.closeVisible) {
          this.props.handleConfig('')
@@ -1905,7 +1913,7 @@
      notification.success({
        top: 92,
        message: '操作成功',
        duration: 5
        duration: 2
      })
      this.setState({
        [addType + 'loading']: false
@@ -2093,6 +2101,14 @@
    })
  }
  onColumnNameChange = () => {
    const { showColumnName } = this.state
    this.setState({
      showColumnName: !showColumnName
    })
  }
  render () {
    const configAction = this.state.config.action.filter(_action =>
      !_action.origin && (_action.OpenType === 'pop' || _action.OpenType === 'popview' || _action.OpenType === 'blank' || _action.OpenType === 'tab')
@@ -2242,6 +2258,7 @@
                <Tooltip placement="bottomLeft" overlayClassName="middle" title="在左侧工具栏《显示列》中,选择对应类型的显示列拖至此处添加;或点击《添加显示列》按钮批量添加,选择批量添加时,需提前选择使用表。注:添加合并列时,需设置可选列。">
                  <Icon type="question-circle" />
                </Tooltip>
                <Switch checkedChildren="开" unCheckedChildren="关" defaultChecked={this.state.showColumnName} onChange={this.onColumnNameChange} />
                {!this.state.columnsloading ?
                  <DragElement
                    list={this.state.config.columns}
@@ -2253,6 +2270,7 @@
                    handleMenu={this.handleColumn}
                    deleteMenu={this.deleteElement}
                    handleGridBtn={this.handleGridBtn}
                    showfield={this.state.showColumnName}
                  /> : null
                }
              </div>