修改导出完成没重置状态、检索时间删除报错

This commit is contained in:
龙运模 2025-08-01 20:30:50 +08:00
parent 5bf7f7bf55
commit 1dd7b9ab75
2 changed files with 8 additions and 1 deletions

View File

@ -58,7 +58,10 @@ export default {
this.emitActivationDate();
},
emitActivationDate() {
let date = this.localDatePicker.map((date,index) => index===0? this.$TOOL.formatStartTime(date):this.$TOOL.formatEndTime(date));
let date = [];
if(this.localDatePicker && this.localDatePicker.length>0){
date = this.localDatePicker.map((date,index) => index===0? this.$TOOL.formatStartTime(date):this.$TOOL.formatEndTime(date));
}
this.$emit('update:activation_date', {
operator: this.activation_date.operator,
value: this.localDatePicker && this.localDatePicker.length > 0? date:[]

View File

@ -138,6 +138,10 @@ export default {
this.$emit('updateShow', item);
if(res.data.status==1){
this.list = this.list.map(item =>
item.type === res.data.type ? {} : item
);
this.down(res.data);
}
}