修改法规预警去除默认六个月
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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 }
|
||||
|
||||
+1
-1
@@ -219,7 +219,7 @@
|
||||
title: this.$t('operation'),
|
||||
align: 'left',
|
||||
fixed: 'right',
|
||||
width: 190,
|
||||
width: 230,
|
||||
scopedSlots: { customRender: 'operation' }
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user