king
2022-01-04 b8b31ddd640c4f3fe994970f850a3255769a4ef0
2022-01-04
3个文件已修改
28 ■■■■ 已修改文件
src/menu/components/share/actioncomponent/actionform/index.jsx 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -707,7 +707,12 @@
          values.verify = card.verify || null
          values.modal = card.modal || null
          if (values.OpenType === 'excelOut') {
          if (values.OpenType === 'form') {
            if (/^(0|[1-9]\d*)$/.test(values.openVal) && /^(0|[1-9]\d*)$/.test(values.closeVal)) {
              values.openVal = +values.openVal
              values.closeVal = +values.closeVal
            }
          } else if (values.OpenType === 'excelOut') {
            if (values.intertype === 'system' && setting.interType !== 'system') {
              notification.warning({
                top: 92,
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -818,14 +818,16 @@
      type: 'text',
      key: 'openVal',
      label: '开启值',
      initVal: card.openVal || '',
      initVal: card.openVal === undefined ? '' : card.openVal + '',
      tooltip: '当开启与关闭值均为正整数时,默认转换为INT类型。',
      required: false
    },
    {
      type: 'text',
      key: 'closeVal',
      label: '关闭值',
      initVal: card.closeVal || '',
      initVal: card.closeVal === undefined ? '' : card.closeVal + '',
      tooltip: '当开启与关闭值均为正整数时,默认转换为INT类型。',
      required: false
    },
    {
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -328,14 +328,23 @@
        loading: true,
        check: !this.state.check
      }, () => {
        let type = 'text'
        let fieldlen = 50
        let value = this.state.check ? btn.openVal : btn.closeVal
        if (typeof(value) === 'number') {
          type = 'number'
          fieldlen = 0
        }
        let item = {
          type: 'text',
          type: type,
          readonly: false,
          readin: true,
          writein: true,
          fieldlen: 50,
          fieldlen: fieldlen,
          key: btn.field,
          value: this.state.check ? btn.openVal : btn.closeVal
          value: value
        }
        this.execSubmit(data, () => { this.setState({loading: false})}, [item])
      })