Jelajahi Sumber

sass平台修改

SanHQin 2 minggu lalu
induk
melakukan
e74353abd6

+ 3 - 2
src/components/pages/sassPlatform/index.vue

@@ -6,7 +6,7 @@
       </div> -->
       <div class="sp_h_tagArea">
         <span :class="{tagActive:tagIndex==0}" @click="tagIndex = 0">应用中心</span>
-        <span :class="{tagActive:tagIndex==1}" @click="goTestSmarter()">智能分析</span>
+        <span :class="{tagActive:tagIndex==1}" @click="goTestSmarter()">智能助手</span>
       </div>
     </div>
     <div class="sp_bottom">
@@ -119,7 +119,8 @@ export default {
           this.org +
           "&role=" +
           this.role+
-          "&cid=undefined"
+          "&cid=undefined"+
+          "&back=sass"
       );
     },
   },

+ 19 - 8
src/components/pages/sassPlatform/view/tableView.vue

@@ -34,6 +34,7 @@
         v-if="tagIndex == 0 && !tableLoading"
         :data="showTableData"
         border
+        height="100%"
         style="width: 100%"
       >
         <el-table-column
@@ -165,6 +166,7 @@
         v-if="tagIndex == 1 && !tableLoading"
         :data="showTableData"
         border
+        height="100%"
         style="width: 100%"
       >
         <el-table-column
@@ -214,7 +216,7 @@
             <div class="tableBtnArea"> <el-tooltip
               class="item"
               effect="light"
-              content="删除"
+              content="查看"
               placement="top"
             >
               <img
@@ -393,6 +395,7 @@ export default {
       }
     },
     getFormData() {
+      const cardType = this.tagIndex;
       let params = {
         uid: this.userId,
         type: this.displayRange,
@@ -408,6 +411,7 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectTesttCourse_sass", params)
         .then(res => {
+          if(cardType!=this.tagIndex)return;
           let _data = res.data[0];
           if (_data.length > 0) {
             this.tableData = _data;
@@ -422,6 +426,7 @@ export default {
         });
     },
     getPersonData() {
+      const cardType = this.tagIndex;
       let params = {
         oid: this.oid,
         org: this.org,
@@ -432,6 +437,7 @@ export default {
       this.ajax
         .get(this.$store.state.api + "selectTesttCourse2_sass", params)
         .then(res => {
+          if(cardType!=this.tagIndex)return;
           let _data = res.data[0];
           let _teaType = res.data[1];
           let _teaType2 = res.data[2];
@@ -480,14 +486,15 @@ export default {
         "/checkToTest2?uid=" +
           uid +
           "&userid=" +
-          this.userid +
+          this.userId +
           "&oid=" +
           this.oid +
           "&org=" +
           this.org +
           "&type=2" +
           "&role=" +
-          this.role
+          this.role +
+          "&back=sass"
       );
     },
     editForm(item) {
@@ -513,7 +520,8 @@ export default {
                 this.org +
                 "&type=2" +
                 "&role=" +
-                this.role
+                this.role +
+                "&back=sass"
             );
           })
           .catch(() => {
@@ -524,14 +532,15 @@ export default {
           "/addTest?cid=" +
             item.courseId +
             "&userid=" +
-            this.userid +
+            this.userId +
             "&oid=" +
             this.oid +
             "&org=" +
             this.org +
             "&type=2" +
             "&role=" +
-            this.role
+            this.role +
+            "&back=sass"
         );
       }
     },
@@ -547,7 +556,8 @@ export default {
           this.org +
           "&type=2" +
           "&role=" +
-          this.role
+          this.role +
+          "&back=sass"
       );
     },
     copyForm(courseId) {
@@ -612,7 +622,8 @@ export default {
           "&role=" +
           this.role +
           "&typeId1=" +
-          this.typeId
+          this.typeId +
+          "&back=sass"
       );
     }
   },

+ 15 - 3
src/components/pages/test/add/addTest.vue

@@ -5,7 +5,7 @@
                 <div class="courseTop">
                     <div class="stepsNav">
                         <el-breadcrumb separator-class="el-icon-arrow-right">
-                            <el-breadcrumb-item :to="{
+                            <el-breadcrumb-item v-if="!back" :to="{
                                 path:
                                     '/test?userid=' +
                                     userid +
@@ -16,6 +16,17 @@
                                     '&role=' +
                                     role,
                             }">表单管理</el-breadcrumb-item>
+                            <el-breadcrumb-item v-else-if="back=='sass'" :to="{
+                                path:
+                                    '/sassPlatform?userid=' +
+                                    userid +
+                                    '&oid=' +
+                                    oid +
+                                    '&org=' +
+                                    org +
+                                    '&role=' +
+                                    role,
+                            }">sass平台</el-breadcrumb-item>
                             <el-breadcrumb-item>
                                 <span style="color: rgb(15, 126, 255)">新建表单</span>
                             </el-breadcrumb-item>
@@ -59,6 +70,7 @@ export default {
             org: this.$route.query.org,
             role: this.$route.query.role,
             cid: this.$route.query.cid,
+            back: this.$route.query.back,
             steps: 2,
             title: "",
             testType: [],
@@ -92,7 +104,7 @@ export default {
             //     this.$message.error("请选择权限")
             //     this.steps = 1
             //     return
-            // } 
+            // }
             if (this.cid) {
                 this.updateWork(this.look)
             } else {
@@ -469,4 +481,4 @@ export default {
     padding: 0 20px;
     color: unset;
 }
-</style>
+</style>

+ 13 - 0
src/components/pages/test/check/index.vue

@@ -6,6 +6,7 @@
           <div class="stepsNav">
             <el-breadcrumb separator-class="el-icon-arrow-right">
               <el-breadcrumb-item
+              v-if="!back"
                 :to="{
                   path:
                     '/test?userid=' +
@@ -19,6 +20,17 @@
                 }"
                 >表单管理</el-breadcrumb-item
               >
+              <el-breadcrumb-item v-else-if="back=='sass'" :to="{
+                  path:
+                      '/sassPlatform?userid=' +
+                      userid +
+                      '&oid=' +
+                      oid +
+                      '&org=' +
+                      org +
+                      '&role=' +
+                      role,
+              }">sass平台</el-breadcrumb-item>
               <el-breadcrumb-item>
                 <span style="color: rgb(15, 126, 255)">查看表单</span>
               </el-breadcrumb-item>
@@ -1880,6 +1892,7 @@ export default {
       cid: this.$route.query.cid,
       isN: this.$route.query.isN,
       peopleId: this.$route.query.peopleId,
+      back:this.$route.query.back,
       screenWidth: window.innerWidth,
       isDesktop: false,
       aiChatV: false,

+ 18 - 3
src/components/pages/test/check/index2.vue

@@ -5,7 +5,7 @@
         <div class="courseTop">
           <div class="stepsNav">
             <el-breadcrumb separator-class="el-icon-arrow-right">
-              <el-breadcrumb-item
+              <el-breadcrumb-item v-if="!back"
                 :to="{
                   path:
                     '/test?userid=' +
@@ -19,6 +19,20 @@
                 }"
                 >表单管理</el-breadcrumb-item
               >
+              <el-breadcrumb-item v-if="back=='sass'"
+                :to="{
+                  path:
+                    '/sassPlatform?userid=' +
+                    userid +
+                    '&oid=' +
+                    oid +
+                    '&org=' +
+                    org +
+                    '&role=' +
+                    role,
+                }"
+                >sass平台</el-breadcrumb-item
+              >
               <el-breadcrumb-item>
                 <span style="color: rgb(15, 126, 255)">查看表单</span>
               </el-breadcrumb-item>
@@ -118,6 +132,7 @@ export default {
       role: this.$route.query.role,
       cid: this.$route.query.cid,
       uid: this.$route.query.uid,
+      back: this.$route.query.back,
       title: "",
       testType: [],
       see: false,
@@ -211,7 +226,7 @@ export default {
             .then((res) => {
               _this.$message.success("删除成功");
               _this.getData();
-              
+
             })
             .catch((err) => {
               console.error(err);
@@ -306,4 +321,4 @@ export default {
 .student_page {
   margin-top: 10px;
 }
-</style>
+</style>

+ 16 - 3
src/components/pages/test/smarter.vue

@@ -3,7 +3,7 @@
         <div style="width:100%;padding:0;box-sizing: border-box;">
             <div class="pb_head top">
                 <div class="pb_head_t_left">
-                    <span class="subClick" @click="
+                    <span class="subClick" v-if="!back" @click="
                         goTo(
                             '/test?userid=' +
                             userid +
@@ -16,7 +16,7 @@
                         )
                         ">表单管理</span>
                     <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
-                    <span class="subClick" @click="
+                    <span class="subClick" v-if="!back" @click="
                         goTo(
                             '/trainCourse?userid=' +
                             userid +
@@ -28,7 +28,7 @@
                             role
                         )
                         ">培训管理</span>
-                    <span class="subClick" v-if="examineData.length" @click="
+                    <span class="subClick" v-if="examineData.length && !back" @click="
                         goTo(
                             '/testDataBoard?userid=' +
                             userid +
@@ -40,6 +40,18 @@
                             role
                         )
                         ">数据看板</span>
+                     <span class="subClick" v-if="back=='sass'" @click="
+                        goTo(
+                            '/sassPlatform?userid=' +
+                            userid +
+                            '&oid=' +
+                            oid +
+                            '&org=' +
+                            org +
+                            '&role=' +
+                            role
+                        )
+                        ">sass平台</span>
                     <span class="sub_head">智能助手</span>
                 </div>
                 <!-- <div class="pb_head_t_right">
@@ -268,6 +280,7 @@ export default {
             org: this.$route.query.org,
             role: this.$route.query.role,
             cid: this.$route.query.cid,
+            back: this.$route.query.back,
             menuList: [],
             aiContentArea: [],
             menuIndex: 0,

+ 1 - 0
src/router/index.js

@@ -1247,6 +1247,7 @@ export default new Router({
           name:"sassPlatform",
           component:sassPlatform,
           meta:{
+            keepAlive: true,
             requireAuth:""//不需要鉴权
           }
         }