king
2022-04-28 27ca15a42fd554ec71c12ed4e9c2bfc9907c3e0c
2022-04-28
2个文件已修改
8 ■■■■ 已修改文件
src/tabviews/zshare/topSearch/index.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/topSearch/index.jsx
@@ -640,6 +640,7 @@
          label: item.label,
          match: 'between',
          required: item.required,
          precision: 'day',
          forbid: item.$forbid
        }, {
          type: 'group',
@@ -695,7 +696,7 @@
          label: item.label,
          match: item.match,
          required: item.required,
          precision: item.precision || '',
          precision: item.precision || 'day',
          forbid: item.$forbid
        })
      }
src/utils/utils.js
@@ -249,9 +249,9 @@
      item.required = !item.hidden && item.required === 'true'
      item.advanced = item.advanced === 'true'
      item.$forbid = item.query === 'false'
      item.precision = item.precision || 'day'
      if (item.type === 'date') { // 时间搜索
        item.precision = item.precision || 'day'
        let format = 'YYYY-MM-DD'
        if (item.precision === 'day') {
@@ -269,7 +269,6 @@
      } else if (item.type === 'dateweek') {
        item.initval = item.initval ? moment().subtract(item.initval * 7, 'days').format('YYYY-MM-DD') : ''
      } else if (item.type === 'daterange') {
        item.precision = item.precision || 'day'
        let format = 'YYYY-MM-DD'
        if (item.precision === 'day') {
@@ -381,7 +380,7 @@
        label: cell.label,
        value: cell.initval,
        required: cell.required,
        precision: cell.precision || '',
        precision: cell.precision || 'day',
        forbid: cell.$forbid
      }