|
@@ -367,9 +367,16 @@
|
|
|
console.log('res', res);
|
|
|
if (res.code == '200') {
|
|
|
this.resetQuery();
|
|
|
+ if (res.msg.indexOf('导入失败') >= 0) {
|
|
|
+ this.$message({
|
|
|
+ duration: 5000,
|
|
|
+ message: res.msg
|
|
|
+ });
|
|
|
+ } else {
|
|
|
this.$message.success(res.msg);
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.$message.success(res.msg);
|
|
|
+ this.$message.error(res.msg);
|
|
|
}
|
|
|
this.loading = false;
|
|
|
}).catch((e) => {
|
|
@@ -427,7 +434,7 @@
|
|
|
this.ids.push(row.id);
|
|
|
}
|
|
|
const ids = this.ids;
|
|
|
- this.$modal.confirm('是否确认删除竞争产品信息收集编号为"' + ids + '"的数据项?').then(function () {
|
|
|
+ this.$modal.confirm('是否确认删除?').then(function () {
|
|
|
return delGather(ids);
|
|
|
}).then(() => {
|
|
|
this.getList();
|