| | |
| | | label: item.label, |
| | | match: 'between', |
| | | required: item.required, |
| | | precision: 'day', |
| | | forbid: item.$forbid |
| | | }, { |
| | | type: 'group', |
| | |
| | | label: item.label, |
| | | match: item.match, |
| | | required: item.required, |
| | | precision: item.precision || '', |
| | | precision: item.precision || 'day', |
| | | forbid: item.$forbid |
| | | }) |
| | | } |
| | |
| | | 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') { |
| | | |
| | |
| | | } 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') { |
| | | |
| | |
| | | label: cell.label, |
| | | value: cell.initval, |
| | | required: cell.required, |
| | | precision: cell.precision || '', |
| | | precision: cell.precision || 'day', |
| | | forbid: cell.$forbid |
| | | } |
| | | |