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

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
@@ -83,7 +83,7 @@
</a-spin>
<div class='drawer-bootom-button' style="margin-top: 4px">
<a-button style='margin-right: .8rem' @click='handleCancel'>{{ $t('cancel') }}</a-button>
<a-button @click='handleSubmit' type='primary' :loading='confirmLoading'>{{ $t('submit') }}</a-button>
<a-button @click='handleSubmit' type='primary' :loading='confirmLoading'>{{ $t('confirm') }}</a-button>
</div>
</div>
</template>
+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 }
@@ -219,7 +219,7 @@
title: this.$t('operation'),
align: 'left',
fixed: 'right',
width: 190,
width: 230,
scopedSlots: { customRender: 'operation' }
}
],