From 585fb0bbd4a7bc7f8f333ecba7c5fecd2ee5cbc2 Mon Sep 17 00:00:00 2001 From: qushaowei <qushaowei@163.com> Date: 星期四, 28 三月 2024 09:46:44 +0800 Subject: [PATCH] Merge branch 'master' of http://117.34.109.166:18448/r/vue_mdc_430 into develop --- src/views/eam/EquipmentMaintenancePlanList.vue | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 42 insertions(+), 2 deletions(-) diff --git a/src/views/eam/EquipmentMaintenancePlanList.vue b/src/views/eam/EquipmentMaintenancePlanList.vue index 3184ec5..0b94b4a 100644 --- a/src/views/eam/EquipmentMaintenancePlanList.vue +++ b/src/views/eam/EquipmentMaintenancePlanList.vue @@ -1,5 +1,8 @@ <template> - <a-card :bordered="false"> + <a-card + title="淇濆吇璁″垝" + :bordered="false" + > <!-- 鏌ヨ鍖哄煙 --> <div class="table-page-search-wrapper"> <a-form @@ -20,6 +23,23 @@ ></j-input> </a-form-item> </a-col> + <!-- 鎸夊垱寤烘椂闂磋寖鍥存绱� --> + <a-col + :xl="6" + :lg="7" + :md="8" + :sm="24"> + <a-form-item label="鍒涘缓鏃堕棿"> + <a-range-picker + v-model="ranges" + style="width:100%" + format="YYYY-MM-DD HH:mm:ss" + showTime + placeholder="璇烽�夋嫨鍒涘缓鏃堕棿" + @change="changeDate" + /> + </a-form-item> + </a-col> <a-col :xl="6" :lg="7" @@ -34,6 +54,8 @@ /> </a-form-item> </a-col> + + <a-col :xl="6" :lg="7" @@ -264,6 +286,7 @@ data() { return { description: '淇濆吇璁″垝绠$悊椤甸潰', + ranges:[], // 琛ㄥご columns: [ { @@ -380,6 +403,11 @@ this.equipmentMaintenancePlanDetailMainId = selectionRows[0]['id'] this.mainStatus = selectionRows[0]['status'] }, + searchReset() { + this.queryParam = {} + this.ranges = [] + this.loadData() + }, loadData(arg) { if (!this.url.list) { this.$message.error("璇疯缃畊rl.list灞炴��!") @@ -463,7 +491,19 @@ }).finally(res => { this.loadData(); }) - } + }, + // 灏唕anges杞寲涓哄紑濮嬫椂闂村拰缁撴潫鏃堕棿 + changeDate() { + if (this.ranges.length === 0) { + this.queryParam.beginTime = '' + this.queryParam.endTime = '' + } else { + //鍚庣鎶ヨ繖涓敊rejected value ["2024-03-14T06:26:38.692Z"] + this.queryParam.beginTime = this.ranges[0].format('YYYY-MM-DD') + this.queryParam.endTime = this.ranges[1].format('YYYY-MM-DD') + } + }, + } } </script> -- Gitblit v1.9.3