king
2024-09-27 8e8e82cfcc77cc43b5d087e7c1c7bb24795dcf89
src/utils/utils.js
@@ -416,7 +416,11 @@
          item.$first = true
        }
      }
      if (window.backend && ['select', 'link', 'multiselect', 'checkcard', 'radio'].includes(item.type) && item.resourceType === '1') {
        item.uuid = md5(config.uuid + item.uuid)
      }
      item.oriInitval = item.initval
      if (values) {
@@ -714,6 +718,15 @@
  static getSearchkeys (searches) {
    let searchText = []
    let matchs = {
      'like': '01',
      'not like': '02',
      '=': '03',
      '>': '04',
      '<': '05',
      '>=': '06',
      '<=': '07',
    }
    searches.forEach(item => {
      if (item.forbid || !item.value) return
@@ -834,12 +847,12 @@
        searchText.push({
          key: item.key,
          match: '>=',
          type: 'number',
          type: 'text',
          value: val[0] || -999999999
        }, {
          key: item.key,
          match: '<=',
          type: 'number',
          type: 'text',
          value: val[1] || 999999999
        })
      } else {
@@ -847,6 +860,10 @@
      }
    })
    searchText.forEach(item => {
      item.match = matchs[item.match] || '01'
    })
    return searchText
  }