修改法规预警去除默认六个月

This commit is contained in:
高嵩
2023-02-13 16:19:42 +08:00
parent b62aad5062
commit 5ed44e0e11
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -226,9 +226,9 @@
methods: {
searchQuery() {
if (this.isDefault) {
if (!this.queryParam['WarnTimeText']) {
this.queryParam['WarnTimeText'] = '2'
}
// if (!this.queryParam['WarnTimeText']) {
// this.queryParam['WarnTimeText'] = '2'
// }
let startTime = moment(new Date()).format('YYYY-MM-DD')
let endTime = this.getNowdate()
this.queryParam['WarnTime'] = [startTime, endTime]
@@ -240,7 +240,7 @@
this.queryParam = {}
if (this.isDefault) {
let startTime = moment(new Date()).format('YYYY-MM-DD')
this.queryParam['WarnTimeText'] = '2'
// this.queryParam['WarnTimeText'] = '2'
let endTime = this.getNowdate()
this.queryParam['WarnTime'] = [startTime, endTime]
this.queryParam = { ...this.queryParam }