king
2023-12-19 138f3db63233222198b31e89503cb6db2c7b5ff9
2023-12-19
2个文件已修改
22 ■■■■■ 已修改文件
src/menu/components/share/actioncomponent/actionform/index.jsx 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -780,6 +780,7 @@
      let className = ''
      let content = null
      let initVal = item.initVal || ''
      let help = item.help || ''
      if (item.type === 'splitLine') {
        fields.push(
@@ -857,6 +858,7 @@
            filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0 ||
              option.props.extend.toLowerCase().indexOf(input.toLowerCase()) >= 0}
            onChange={(value) => {this.optionChange(item.key, value)}}
            on
            getPopupContainer={() => document.getElementById('winter')}
          >
            {item.options.map((option, index) =>
@@ -936,7 +938,7 @@
          { required: item.required, message: '请选择' + item.label + '!' }
        ]
        content = <MkPrintTemps />
        content = <MkPrintTemps onChange={(value) => {this.optionChange(item.key, value)}}/>
      } else if (item.type === 'keyinterface') {
        span = 24
        className = 'textarea'
@@ -947,9 +949,23 @@
        content = <KeyInterface type={item.key === 'exInterface' ? 'develop' : 'product'}/>
      }
      if (help && /func:/.test(help)) {
        try {
          // eslint-disable-next-line
          let func = new Function('record', help.replace(/func:/, ''))
          help = func(this.record)
          if (help) {
            help = <span dangerouslySetInnerHTML={{ __html: help }}></span>
          }
        } catch (e) {
          help = ''
          console.warn(e)
        }
      }
      fields.push(
        <Col span={span} key={index}>
          <Form.Item className={className} help={item.help} label={item.tooltip ?
          <Form.Item className={className} help={help} label={item.tooltip ?
            <Tooltip placement="topLeft" overlayStyle={{maxWidth: item.tooltip.length > 25 ? 350 : 250 }} title={<span onClick={(e) => e.stopPropagation()}>{item.tooltip}</span>}>
              <QuestionCircleOutlined className="mk-form-tip" />
              {item.label}
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -469,6 +469,7 @@
      key: 'printTemp',
      label: '打印模板',
      initVal: card.printTemp || '',
      help: `func: if (record.printTemp) {return '<a target="_blank" rel="noopener noreferrer" href="https://cloud.mk9h.cn/admin/index.html">企业版</a>'} else {return ''}`,
      required: true
    },
    {
@@ -1605,6 +1606,7 @@
      key: 'printTemp',
      label: '打印模板',
      initVal: card.printTemp || '',
      help: `func: if (record.printTemp) {return '<a target="_blank" rel="noopener noreferrer" href="https://cloud.mk9h.cn/admin/index.html">企业版</a>'} else {return ''}`,
      required: true
    },
    {