Forráskód Böngészése

分析重新分析接口修改,分析结束立即跳转。

qinpeng 2 éve
szülő
commit
08b29314ac
1 módosított fájl, 41 hozzáadás és 1 törlés
  1. 41 1
      src/views/teacher-dev/TextAnalysis.vue

+ 41 - 1
src/views/teacher-dev/TextAnalysis.vue

@@ -114,13 +114,33 @@ export default {
     },
     anewSubmit(item) {
       this.loading = true;
-      postapi({
+      postapi({ 
         url: "/GCLSTCServer/tools/TS/reparse",
         data: {
           partitionKey: item.partitionKey,
         },
       })
         .then((res) => {
+          window.open(
+            this.$router.resolve({
+              path: "/textanalysis/Result",
+              query: {
+                partitionKey: res.data.result.partitionKey,
+                subjectWords: res.data.result.subjectWords,
+                wordTextCount: res.data.result.textCount,
+                wordCount: res.data.result.wordCount,
+                vocabularyTextCount: res.data.result.vocabularyTextCount,
+                vocabularyCount: res.data.result.vocabularyCount,
+                pinyinCount: res.data.result.pinyinCount,
+                pinyinTextCount: res.data.result.pinyinTextCount,
+                pinyinDifficulty: res.data.result.pinyinDifficulty,
+                wordDifficulty: res.data.result.wordDifficulty,
+                vocabularyDifficulty: res.data.result.vocabularyDifficulty,
+                type: "文本分析",
+              },
+            }).href,
+            "_blank"
+          );
           this.getlist(true);
           // this.loading = false;
         })
@@ -144,6 +164,26 @@ export default {
       })
         .then((res) => {
           this.txt = "";
+          window.open(
+            this.$router.resolve({
+              path: "/textanalysis/Result",
+              query: {
+                partitionKey: res.data.result.partitionKey,
+                subjectWords: res.data.result.subjectWords,
+                wordTextCount: res.data.result.textCount,
+                wordCount: res.data.result.wordCount,
+                vocabularyTextCount: res.data.result.vocabularyTextCount,
+                vocabularyCount: res.data.result.vocabularyCount,
+                pinyinCount: res.data.result.pinyinCount,
+                pinyinTextCount: res.data.result.pinyinTextCount,
+                pinyinDifficulty: res.data.result.pinyinDifficulty,
+                wordDifficulty: res.data.result.wordDifficulty,
+                vocabularyDifficulty: res.data.result.vocabularyDifficulty,
+                type: "文本分析",
+              },
+            }).href,
+            "_blank"
+          );
           this.getlist(true);
           // this.loading = false;
         })