Former-commit-id: bc76443d6dcc06c8378977b62e8f9f6db4a94f64
master
王兵 4 years ago
parent 1bad9d9c02
commit 8e8c641ddd

@ -204,10 +204,12 @@
}, function (response) {
if (response.errors.length > 0) {
nav.e(response.errors[0].message);
} else {
this.result.remove(item);
}
next();
}.bind(this))
}, function () {
}.bind(this), function () {
nav.tipClose();
nav.s("批量处理完成.")
this.onFind();
@ -228,8 +230,9 @@
if (response.errors.length > 0) {
nav.e(response.errors[0].message);
} else {
next();
this.result.remove(item);
}
next();
}.bind(this))
}, function () {
nav.tipClose();
@ -237,25 +240,7 @@
this.onFind();
}.bind(this))
}
},
onDelete: function (item) {
this.$confirm('将删除该项, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(function () {
new Ajax("wsvr", "logerr").delete({id: item.id},function (response) {
if (response.errors.length > 0) {
nav.e(response.errors[0].message);
} else {
nav.s("删除成功.");
this.onFind();
}
}.bind(this))
}.bind(this)).catch(function (action) {
});
},
}
},
mounted: function () {
this.onFind();

Loading…
Cancel
Save

Powered by TurnKey Linux.