From cb3ebbd61de047be0cb0bdc9c672ea29c930cf1d Mon Sep 17 00:00:00 2001 From: zhuzhuanzhuan Date: 星期五, 01 三月 2024 15:46:17 +0800 Subject: [PATCH] 超限报警页面增加按照设备类型以及驱动类型查询表格数据 --- src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue b/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue index 184f6bd..6a2918f 100644 --- a/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue +++ b/src/views/mdc/base/modules/HolidayManagement/HolidayManagementList.vue @@ -3,7 +3,7 @@ <!-- 鏌ヨ鍖哄煙 --> <div style="width: 100%; background-color: #fff" class="table-page-search-wrapper"> <a-form layout="inline" @keyup.enter.native="searchQuery"> - <a-row :gutter="24"> + <a-row :gutter="24" style="width: 100%;"> <a-col :md="7" :sm="7"> <a-form-item label="鏃堕棿"> <a-range-picker @change="dateParamChange" v-model="dates" format="YYYY-MM-DD"/> @@ -235,7 +235,7 @@ }, methods: { dateParamChange(v1, v2) { - // console.log(v1,v2) + console.log(v1,v2) this.queryParam.startTime = v2[0] this.queryParam.endTime = v2[1] // console.log(v2[0],v2[1]) @@ -350,8 +350,6 @@ param.field = this.getQueryField(); param.parentId = this.queryParams.parentId; param.equipmentId = this.queryParams.equipmentId; - param.startTime = this.queryParam.startTime; - param.endTime = this.queryParam.endTime; getAction(this.url.list,param).then((res) => { if(res.success){ this.dataSource = res.result.records||res.result; @@ -437,8 +435,10 @@ param.field = this.getQueryField(); param.parentId = this.queryParams.parentId; param.equipmentId = this.queryParams.equipmentId; - param.startTime = this.queryParam.startTime; - param.endTime = this.queryParam.endTime; + if(this.queryParam.startTime && this.queryParam.endTime){ + param.startTime = this.queryParam.startTime; + param.endTime = this.queryParam.endTime; + } // console.log(param); getAction(this.url.list,param).then((res) => { if(res.success){ -- Gitblit v1.9.3