From e7eca504e167de53fd97e5c2cc1fc039a8e758cc Mon Sep 17 00:00:00 2001
From: qushaowei <qushaowei@163.com>
Date: 星期四, 28 三月 2024 09:29:37 +0800
Subject: [PATCH] 提交
---
src/views/eam/EquipmentMaintenancePlanList.vue | 39 ++++++++++++++++++++++++++++++++++++++-
1 files changed, 38 insertions(+), 1 deletions(-)
diff --git a/src/views/eam/EquipmentMaintenancePlanList.vue b/src/views/eam/EquipmentMaintenancePlanList.vue
index 5d10f17..0b94b4a 100644
--- a/src/views/eam/EquipmentMaintenancePlanList.vue
+++ b/src/views/eam/EquipmentMaintenancePlanList.vue
@@ -23,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"
@@ -37,6 +54,8 @@
/>
</a-form-item>
</a-col>
+
+
<a-col
:xl="6"
:lg="7"
@@ -267,6 +286,7 @@
data() {
return {
description: '淇濆吇璁″垝绠$悊椤甸潰',
+ ranges:[],
// 琛ㄥご
columns: [
{
@@ -383,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灞炴��!")
@@ -466,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