Explorar el Código

营销-竞争对手信息收集中增加了导入提示。

DongZ hace 1 año
padre
commit
6087b0723f
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9 2
      src/views/business/spd/bo/gather/index.vue

+ 9 - 2
src/views/business/spd/bo/gather/index.vue

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