Преглед на файлове

新增学习分析模型

zengyicheng преди 2 години
родител
ревизия
1e276bdc47
променени са 1 файла, в които са добавени 19 реда и са изтрити 11 реда
  1. 19 11
      src/components/pages/learnAnalysis/components/modelBase.vue

+ 19 - 11
src/components/pages/learnAnalysis/components/modelBase.vue

@@ -63,16 +63,7 @@
           </div>
           <div>{{ item.name }}</div>
         </div>
-        <div
-          class="modelBottom"
-          @click="
-            goTo(
-              '/lookModel??userid=2e7428aa-a5c9-11ed-b13d-005056b86db5&oid=45facc0a-1211-11ec-80ad-005056b86db5&org=null&classid=f6b9d2a5-a5c8-11ed-b13d-005056b86db5,6a09cc92-bf38-11ed-8d51-005056b86db5,01bb15bb-d519-11ed-b81c-005056b86db5'
-            )
-          "
-        >
-          查看
-        </div>
+        <div class="modelBottom" @click="isGoWhere(item.id)">查看</div>
       </div>
     </div>
   </div>
@@ -126,7 +117,10 @@ export default {
       //       ],
       //     },
       //   ],
-      table: [{ id: 1, name: "课堂互动模型" }],
+      table: [
+        { id: 1, name: "课堂互动模型" },
+        { id: 2, name: "学习分析模型" },
+      ],
       mChoose: "",
       tChoose: "",
       mName: "",
@@ -136,6 +130,20 @@ export default {
     goTo(path) {
       this.$router.push(path);
     },
+    isGoWhere(id) {
+      if (id == 1) {
+        this.goTo(
+          "/lookModel??userid=2e7428aa-a5c9-11ed-b13d-005056b86db5&oid=45facc0a-1211-11ec-80ad-005056b86db5&org=null&classid=f6b9d2a5-a5c8-11ed-b13d-005056b86db5,6a09cc92-bf38-11ed-8d51-005056b86db5,01bb15bb-d519-11ed-b81c-005056b86db5"
+        );
+      } else {
+        window.parent.postMessage(
+          {
+            tools: "AIAnalyse",
+          },
+          "*"
+        );
+      }
+    },
   },
 };
 </script>