king
2023-11-08 885a47cd58f5dd36c8f6bac3dfa583fb7b598387
2023-11-08
4个文件已修改
19 ■■■■ 已修改文件
src/menu/components/share/markcomponent/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/datasource/verifycard/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/datasource/verifycard/utils.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/settingcomponent/settingform/utils.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/markcomponent/index.jsx
@@ -430,7 +430,7 @@
        >
          <MarkForm field={this.props.field} signs={signs} columns={options} markChange={this.markChange}/>
          <Col style={{fontSize: '12px', color: '#757575', paddingLeft: '10px'}} span={24}>注:从上到下,匹配第一个符合条件的标记。</Col>
          <EditTable actions={['edit', 'move', 'del']} data={marks} columns={markColumns} onChange={(marks) => this.setState({marks})}/>
          <EditTable actions={['edit', 'move', 'del', 'copy']} type="marks" data={marks} columns={markColumns} onChange={(marks) => this.setState({marks})}/>
        </Modal>
      </div>
    )
src/menu/datasource/verifycard/index.jsx
@@ -390,6 +390,7 @@
    if (values.uuid) {
      scripts = scripts.map(item => {
        if (item.uuid === values.uuid) {
          values.$index = item.$index || ''
          return values
        } else {
          return item
src/menu/datasource/verifycard/utils.jsx
@@ -195,13 +195,19 @@
      })
      arr.forEach(item => {
        if (/@time_id@/ig.test(item)) return
        let reg = new RegExp(item, 'i')
        if (reg.test(_dataresource)) {
          errors.push(`数据源中存在未替换值${item}`)
        }
        _scripts.forEach(script => {
          if (reg.test(script.sql)) {
            errors.push(`自定义脚本(${script.$index || ''})存在未替换值${item}`)
            if (script.$index) {
              errors.push(`自定义脚本(${script.$index})存在未替换值${item}`)
            } else {
              errors.push(`自定义脚本中存在未替换值${item}`)
            }
          }
        })
      })
src/templates/sharecomponent/settingcomponent/settingform/utils.jsx
@@ -118,13 +118,19 @@
      let arr = sql.match(/@[0-9a-zA-Z_]+@/ig)
      arr.forEach(item => {
        if (/@time_id@/ig.test(item)) return
        let reg = new RegExp(item, 'i')
        if (reg.test(_dataresource)) {
          errors.push(`数据源中存在未替换值${item}`)
        }
        scripts && scripts.forEach(script => {
          if (reg.test(script.sql)) {
            errors.push(`自定义脚本(${script.$index || ''})存在未替换值${item}`)
            if (script.$index) {
              errors.push(`自定义脚本(${script.$index})存在未替换值${item}`)
            } else {
              errors.push(`自定义脚本中存在未替换值${item}`)
            }
          }
        })
      })