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

@ -204,10 +204,12 @@
}, function (response) { }, function (response) {
if (response.errors.length > 0) { if (response.errors.length > 0) {
nav.e(response.errors[0].message); nav.e(response.errors[0].message);
} else {
this.result.remove(item);
} }
next(); next();
}.bind(this)) }.bind(this))
}, function () { }.bind(this), function () {
nav.tipClose(); nav.tipClose();
nav.s("批量处理完成.") nav.s("批量处理完成.")
this.onFind(); this.onFind();
@ -228,8 +230,9 @@
if (response.errors.length > 0) { if (response.errors.length > 0) {
nav.e(response.errors[0].message); nav.e(response.errors[0].message);
} else { } else {
next(); this.result.remove(item);
} }
next();
}.bind(this)) }.bind(this))
}, function () { }, function () {
nav.tipClose(); nav.tipClose();
@ -237,25 +240,7 @@
this.onFind(); this.onFind();
}.bind(this)) }.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 () { mounted: function () {
this.onFind(); this.onFind();

Loading…
Cancel
Save

Powered by TurnKey Linux.