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