fixed: 修复删除alert-message时报错的问题
This commit is contained in:
@@ -183,7 +183,7 @@
|
||||
},
|
||||
|
||||
importBox: {show: false, title:this.$t('overall.exportExcel')},
|
||||
deleteBox: {show: false, ids: [], remark: ''},
|
||||
deleteBox: {show: false, ids: "", remark: '', state: 2},
|
||||
|
||||
tableTitle: [
|
||||
{
|
||||
@@ -329,6 +329,7 @@
|
||||
this.$put("alert/message", this.deleteBox).then(res => {
|
||||
if (res.code === 200) {
|
||||
this.$message({duration: 2000, type: 'success', message: this.$t("tip.deleteSuccess")});
|
||||
this.deleteBox.show = false;
|
||||
this.getAlertList();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
@@ -336,10 +337,12 @@
|
||||
})
|
||||
},
|
||||
selectChange(s) {
|
||||
this.deleteBox.ids = [];
|
||||
let ids = [];
|
||||
this.deleteBox.ids = "";
|
||||
s.forEach(item => {
|
||||
this.deleteBox.ids.push(item.id);
|
||||
ids.push(item.id);
|
||||
});
|
||||
this.deleteBox.ids = ids.join(",");
|
||||
},
|
||||
exportCur:function(){
|
||||
this.exportExcel(this.searchLabel);
|
||||
|
||||
Reference in New Issue
Block a user