修改法规预警去除默认六个月
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user