From 9a66d3a382406eda71b09ed06ddb5d4a0dc95989 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 24 二月 2025 16:38:22 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit
---
admin/src/views/business/trainTime.vue | 60 ++++++++++++++++++++++++++++++++++++++++++++++--------------
1 files changed, 46 insertions(+), 14 deletions(-)
diff --git a/admin/src/views/business/trainTime.vue b/admin/src/views/business/trainTime.vue
index db6d4dc..92f382d 100644
--- a/admin/src/views/business/trainTime.vue
+++ b/admin/src/views/business/trainTime.vue
@@ -8,7 +8,7 @@
<el-form-item label="缁勭粐" prop="companyName">
<el-input v-model="searchForm.companyName" placeholder="璇疯緭鍏ョ粍缁囧悕绉�" @keypress.enter.native="search"></el-input>
</el-form-item>
- <el-form-item label="璧峰鏃堕棿" prop="eventType">
+ <el-form-item label="鍩硅寮�濮嬫椂闂�" prop="eventType">
<el-date-picker
@change="seleTime"
v-model="time"
@@ -81,11 +81,15 @@
searchForm: {
keyWords: '',
companyName: '',
- startTime: '',
- endTime: '',
- radio: 0
+ startTimeStart: '',
+ startTimeEnd: '',
+ endTimeStart: '',
+ endTimeEnd: '',
+ radio: 0,
+ radio1: 0
},
- time: []
+ time: [],
+ time1: []
}
},
created () {
@@ -101,30 +105,58 @@
methods: {
changeRadio (e) {
if (e === '0') {
- this.searchForm.startTime = timeForMat(0)[0]
- this.searchForm.endTime = timeForMat(0)[1]
+ this.searchForm.startTimeStart = timeForMat(0)[0]
+ this.searchForm.startTimeEnd = timeForMat(0)[1]
this.time = timeForMat(0)
} else if (e === '1') {
- this.searchForm.startTime = timeForMat(6)[0]
- this.searchForm.endTime = timeForMat(6)[1]
+ this.searchForm.startTimeStart = timeForMat(6)[0]
+ this.searchForm.startTimeEnd = timeForMat(6)[1]
this.time = timeForMat(6)
} else if (e === '2') {
- this.searchForm.startTime = timeForMat(29)[0]
- this.searchForm.endTime = timeForMat(29)[1]
+ this.searchForm.startTimeStart = timeForMat(29)[0]
+ this.searchForm.startTimeEnd = timeForMat(29)[1]
this.time = timeForMat(29)
}
this.search()
},
seleTime (e) {
- this.searchForm.startTime = e[0]
- this.searchForm.endTime = e[1]
- this.searchForm.radio = null
+ if(e && e.length > 1) {
+ this.searchForm.startTimeStart = e[0]
+ this.searchForm.startTimeEnd = e[1]
+ this.searchForm.radio = null
+ this.search()
+ }
+ },
+ changeRadio1 (e) {
+ if (e === '0') {
+ this.searchForm.endTimeStart = timeForMat(0)[0]
+ this.searchForm.endTimeEnd = timeForMat(0)[1]
+ this.time1 = timeForMat(0)
+ } else if (e === '1') {
+ this.searchForm.endTimeStart = timeForMat(6)[0]
+ this.searchForm.endTimeEnd = timeForMat(6)[1]
+ this.time1 = timeForMat(6)
+ } else if (e === '2') {
+ this.searchForm.endTimeStart = timeForMat(29)[0]
+ this.searchForm.endTimeEnd = timeForMat(29)[1]
+ this.time1 = timeForMat(29)
+ }
this.search()
+ },
+ seleTime1 (e) {
+ if (e && e.length > 1 ) {
+ this.searchForm.endTimeStart = e[0]
+ this.searchForm.endTimeEnd = e[1]
+ this.searchForm.radio1 = null
+ this.search()
+ }
},
reset () {
this.$refs.searchForm.resetFields()
this.time = []
+ this.time1 = []
this.searchForm.radio = '0'
+ this.searchForm.radio1 = '0'
this.changeRadio('0')
this.search()
}
--
Gitblit v1.9.3