Commit 0eaf74af authored by haoxuyang's avatar haoxuyang

登记时间搜索不生效问题

parent c306d437
......@@ -45,7 +45,7 @@
</el-form-item>
<el-form-item label="登记时间" prop="dengjishijian">
<el-date-picker value-format="yyyy-MM-dd HH:mm:ss"
v-model="queryParams.dengjishijian"
v-model="dengjishijian"
type="datetimerange"
:default-time="['00:00:00', '23:59:59']"
range-separator="至"
......@@ -163,6 +163,7 @@ export default {
// 选中数组
ids: [],
repairFormId: undefined,
dengjishijian: [],
// 非单个禁用
single: true,
// 非多个禁用
......@@ -339,11 +340,18 @@ export default {
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.startTime = undefined;
this.queryParams.endTime = undefined;
if (this.dengjishijian.length > 0) {
this.queryParams.startTime = this.dengjishijian[0];
this.queryParams.endTime = this.dengjishijian[1];
}
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.dengjishijian = [];
this.resetForm("queryForm");
this.handleQuery();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment