11wqe1 11 часов назад
Родитель
Сommit
aa0584c6df

+ 2 - 2
src/components/pages/liyuan/bjspersonTop.vue

@@ -324,8 +324,8 @@ export default {
     goToPage(to) {
       if (to == '/testReview') return this.$message.info('该功能尚未上线,敬请期待')
       try {
-          window.topU.gotype = this.$route.path
-          console.log('top',this.$route.path);
+          window.topU.gotype = 'bjspersonTop'
+          // console.log('top',this.$route.path);
       } catch (error) {
           console.log(error);
       }

+ 3 - 0
src/components/pages/liyuan/page/courseCenter.vue

@@ -65,8 +65,11 @@
   </div>
 </template>
 <script>
+import { myMixin } from "@/mixins/mixin.js"
+
 export default {
   name: "courseCenter",
+  mixins: [ myMixin ],
   data() {
     return {
       search: "",

+ 31 - 4
src/components/pages/test/checkAi/aiLeader.vue

@@ -1152,11 +1152,38 @@ ${fileText}
       let params = {
         oid: this.oid
       };
+      let list = [
+          "3823a6a5-1b6e-11f0-a66a-005056924926",
+          "292e34dc-1b6e-11f0-a66a-005056924926",
+          "21d6b367-1b6e-11f0-a66a-005056924926",
+          "1a1a172d-1b6e-11f0-a66a-005056924926",
+          "1197f86b-1b6e-11f0-a66a-005056924926",
+          "f235659b-1b6d-11f0-a66a-005056924926",
+          "d87b62d3-1b6d-11f0-a66a-005056924926",
+          "c25ea59b-1b6d-11f0-a66a-005056924926",
+        ]
+
+      let jk = 'selectTestType'
+      if (list.includes(this.org)) {
+        jk = 'selectTestType_liYuan'
+      } 
       this.ajax
-        .get(this.$store.state.api + "selectTestType", params)
+        .get(this.$store.state.api + jk, params)
         .then(res => {
-          this.typeArray = res.data[0];
-          this.getData();
+          try {
+            if (window.topU.gotype == 'bjspersonTop') {
+              this.typeArray = res.data[0].filter(e => e.pid == "ce4f1224-37a5-11f1-bcd9-005056924926");
+              this.getData();
+            } else {
+              this.typeArray = res.data[0];
+              this.getData();
+            }
+          } catch (error) {
+            console.error(error);
+            this.typeArray = res.data[0];
+            this.getData();
+          }
+          
         })
         .catch(err => {
           console.error(err);
@@ -2816,7 +2843,7 @@ ${_echartsType[type].text}
     // 		this.setJson(el)
     // 	})
     // }
-    // this.selectTestType();
+    this.selectTestType();
     // 添加初始消息
     this.array.push({
       uid: "", // 生成唯一 ID