Browse Source

Merge branch 'bugFix'

hbchen 1 year ago
parent
commit
6ea5a2d214
1 changed files with 14 additions and 14 deletions
  1. 14 14
      src/views/rai_manage/components/addChoiceness.vue

+ 14 - 14
src/views/rai_manage/components/addChoiceness.vue

@@ -489,20 +489,20 @@ export default {
             return this.$message.error("请输入公司标签");
           }
           let params = this.dataHandle(type);
-          console.log(params);
-          // if (type == "预览") {
-          //   console.log(params);
-          //   sessionStorage.setItem("choicenessPre", JSON.stringify(params));
-          //   let { href } = this.$router.resolve({ name: "预览报告精选" });
-          //   window.open(href, "_blank");
-          // } else {
-          //   const res = await raiInterface.industrialSubjectPreserveAndPublish(params);
-          //   if (res.Ret === 200) {
-          //     this.$message.success("操作成功!");
-          //     this.init();
-          //     this.$router.back();
-          //   }
-          // }
+          // console.log(params);
+          if (type == "预览") {
+            console.log(params);
+            sessionStorage.setItem("choicenessPre", JSON.stringify(params));
+            let { href } = this.$router.resolve({ name: "预览报告精选" });
+            window.open(href, "_blank");
+          } else {
+            const res = await raiInterface.industrialSubjectPreserveAndPublish(params);
+            if (res.Ret === 200) {
+              this.$message.success("操作成功!");
+              this.init();
+              this.$router.back();
+            }
+          }
         }
       });
     },