king
2020-01-03 862b6cf69dc925a6138a7ebf79b782a5d7791202
src/templates/subtableconfig/index.jsx
@@ -678,42 +678,42 @@
            text: this.state.dict['header.form.refresh.subgrid']
          }]
        },
        {
          type: 'select',
          key: 'errorTip',
          label: this.state.dict['header.form.messageTip'],
          initVal: card.errorTip || 'E',
          tooltip: '该选项为提示效果展示,选择提示类型后,可点击按钮查看,自定义函数中设置 ErrCode 为(S、-1、E、N、F、NM)时,会以对应方式展示提示信息。',
          tooltipClass: 'middle',
          required: false,
          options: [{
            value: 'S',
            text: 'S(提醒框-0)'
          }, {
            value: '-1',
            text: '-1(不提示)'
          }, {
            value: 'N',
            text: 'N(提醒框-1)'
          }, {
            value: 'F',
            text: 'F(提醒框-2)'
          }, {
            value: 'E',
            text: 'E(确认框)'
          }, {
            value: 'NM',
            text: 'NM(顶部提示)'
          }]
        },
        {
          type: 'number',
          key: 'errorTime',
          label: this.state.dict['header.form.errorTime'],
          initVal: card.errorTime || 15,
          tooltip: '执行结果中设置 ErrCode 为 N 或 F 时有效',
          required: false
        },
        // {
        //   type: 'select',
        //   key: 'errorTip',
        //   label: this.state.dict['header.form.messageTip'],
        //   initVal: card.errorTip || 'E',
        //   tooltip: '该选项为提示效果展示,选择提示类型后,可点击按钮查看,自定义函数中设置 ErrCode 为(S、-1、E、N、F、NM)时,会以对应方式展示提示信息。',
        //   tooltipClass: 'middle',
        //   required: false,
        //   options: [{
        //     value: 'S',
        //     text: 'S(提醒框-0)'
        //   }, {
        //     value: '-1',
        //     text: '-1(不提示)'
        //   }, {
        //     value: 'N',
        //     text: 'N(提醒框-1)'
        //   }, {
        //     value: 'F',
        //     text: 'F(提醒框-2)'
        //   }, {
        //     value: 'E',
        //     text: 'E(确认框)'
        //   }, {
        //     value: 'NM',
        //     text: 'NM(顶部提示)'
        //   }]
        // },
        // {
        //   type: 'number',
        //   key: 'errorTime',
        //   label: this.state.dict['header.form.errorTime'],
        //   initVal: card.errorTime || 15,
        //   tooltip: '执行结果中设置 ErrCode 为 N 或 F 时有效',
        //   required: false
        // },
        {
          type: 'select',
          key: 'icon',
@@ -993,26 +993,6 @@
    if (this.state.formtemp !== 'gridbtn') {
      this.formRef.handleConfirm().then(res => {
        let isupdate = false
        if (res.type === 'search') {
          if ((res.values.type === 'multiselect' || res.values.type === 'select' || res.values.type === 'link') && res.values.resourceType === '1') {
            let _datasource = res.values.dataSource
            if (/\s/.test(_datasource)) {
              _datasource = '(' + _datasource + ') tb'
            }
            let sql = 'select ' + res.values.valueField + ',' + res.values.valueText + ' from ' + _datasource
            if (res.values.type === 'link') {
              sql = 'select ' + res.values.valueField + ',' + res.values.valueText + ',' + res.values.linkField + ' from ' + _datasource
            }
            if (res.values.orderBy) {
              sql = sql + ' order by ' + res.values.orderBy + ' ' + res.values.orderType
            }
            res.values.dataSourceSql = Utils.formatOptions(sql)
          }
        }
        if (res.type === 'action' && card.originCard && res.values.OpenType === 'pop') {
          Api.getSystemConfig({