# 查询界面单日期查询
日期默认是区间范围查询,修改range属性为单个日期查询
onInited() { //必须写在onInited里面
this.searchFormOptions.forEach(x => {
x.forEach(item => {
if (item.field == "字段") {
//设置单个日期查询
item.range = false;
//设置查询类型为date(默认为datetime)
//item.type = "date";
//设置默认值为null
this.searchFormFields.字段=null // 也可以设置查询当天this.base.getDate()见上面的日期操作示例
}
})
})
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15