Selaa lähdekoodia

文本分析跳转

natasha 1 vuosi sitten
vanhempi
commit
80a4ab8370

+ 4 - 7
src/views/Textanalysis/WordTable.vue

@@ -510,13 +510,10 @@ export default {
       data.userID = this.userID;
       sessionStorage.setItem('tablehighlight', true);
 
-      window.open(
-        this.$router.resolve({
-          path: '/textanalysis/Result',
-          query: data,
-        }).href,
-        '_blank',
-      );
+      this.$router.resolve({
+        path: '/textanalysis/Result',
+        query: data,
+      });
     },
     handleCurrentChange(val) {
       this.page = val;

+ 7 - 4
src/views/Textanalysis/index.vue

@@ -1117,10 +1117,13 @@ export default {
       document.body.removeChild(elink);
     },
     ciyunEvent() {
-      window.open(
-        `./ciyun/ciyunindex.html?partitionKey=${this.id}&searchType=${this.leftNavIndex}&userID=${this.userID}`,
-        '_blank',
-      );
+      window.location.href =
+        window.location.origin +
+        `/ciyun/ciyunindex.html?partitionKey=${this.id}&searchType=${this.leftNavIndex}&userID=${this.userID}`;
+      // window.open(
+      //   `./ciyun/ciyunindex.html?partitionKey=${this.id}&searchType=${this.leftNavIndex}&userID=${this.userID}`,
+      //   '_blank',
+      // );
     },
     // 处理字体大小
     handleFontsize(symbol) {

+ 8 - 22
src/views/teacher-dev/TextAnalysis.vue

@@ -196,28 +196,14 @@ export default {
       if (item.analysis_status !== 2) {
         return this.$message.warning('当前数据解析失败,请重新解析');
       }
-      window.open(
-        this.$router.resolve({
-          path: '/textanalysis/Result',
-          query: {
-            // partition_key: item.partition_key,
-            // subject_words: item.subject_words,
-            // word_text_count: item.word_text_count,
-            // word_count: item.word_count,
-            // vocabulary_text_count: item.vocabulary_text_count,
-            // vocabulary_count: item.vocabulary_count,
-            // pinyin_count: item.pinyin_count,
-            // pinyin_text_count: item.pinyin_text_count,
-            // pinyin_difficulty: item.pinyin_difficulty,
-            // word_difficulty: item.word_difficulty,
-            // vocabulary_difficulty: item.vocabulary_difficulty,
-            type: '文本分析',
-            id: item.id,
-            userID: this.userID,
-          },
-        }).href,
-        '_blank',
-      );
+      this.$router.push({
+        path: '/textanalysis/Result',
+        query: {
+          type: '文本分析',
+          id: item.id,
+          userID: this.userID,
+        },
+      });
     },
     /**
      * 删除一条记录

+ 0 - 1
src/views/teacher-dev/index.vue

@@ -87,7 +87,6 @@ export default {
   },
   computed: {},
   async created() {
-    console.log('2024.01.17 19.44');
     // 如果是edu.blcup.com环境下就隐藏文本分析入口
     if (document.domain === 'edu.blcup.com') {
       this.textAnalyseShow = false;

+ 0 - 1
src/views/wordcard/table.vue

@@ -95,7 +95,6 @@ export default {
   watch: {},
   // 生命周期 - 创建完成(可以访问当前this实例)
   async created() {
-    console.log('2024.01.17-2');
     const _this = this;
     if (this.AccessToken) {
       const Mname = 'login_control-ParseAccessToken';