fixed: 修复删除alert-message时报错的问题

This commit is contained in:
陈劲松
2020-04-09 16:48:23 +08:00
parent f56dec7a01
commit 4aac1a7c20
2 changed files with 12 additions and 6 deletions

View File

@@ -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);