Bladeren bron

修改资料搜集与考核资料表单

11wqe1 1 week geleden
bovenliggende
commit
c73984df55

+ 8 - 2
src/components/pages/liyuan/aiOffice.vue

@@ -2,7 +2,13 @@
   <div class="teacherDevelop">
     <topBar title="智能教务" detail="日常资料收集 · AI智能分析 · 会议智能转录 · 平台账号管理"></topBar>
     <div class="cardBox">
-      <card v-for="item in cardData(cardArray)" :key="item.title" :title="item.title" :icon="item.icon" :to="item.to" :type="item.type"></card>
+      <card v-for="item in cardData(cardArray)" 
+      :key="item.title" 
+      :title="item.title" 
+      :icon="item.icon" 
+      :to="item.to" 
+      :sortId="item.sortId"
+      :type="item.type"></card>
     </div>
   </div>
 </template>
@@ -19,7 +25,7 @@ export default {
     return {
       role: this.$route.query.role,
       cardArray: [
-        { title: '资料收集', icon: require('../../../assets/icon/liyuan/zlsj.svg'), type: 1, to: "/teadTest",role:0 },
+        { title: '资料收集', icon: require('../../../assets/icon/liyuan/zlsj.svg'), type: 1, to: "/teadTest",role:0,sortId:'e18d88b3-e828-11ef-b508-005056924926'},
         { title: '会议妙记', icon: require('../../../assets/icon/liyuan/hymj.svg'), type: 2, to: `/aigpt/#/cocoFlowConferenceTrick?userid=${this.$route.query.userid}&oid=${this.$route.query.oid}&role=${this.$route.query.role}&tType=${this.$route.query.tType}&org=${this.$route.query.org}&gotype=1`,role:0 },
         { title: '教师管理', icon: require('../../../assets/icon/liyuan/teamange.svg'), type: 1, to: "/teacher",role:1 },
         { title: '学生管理', icon: require('../../../assets/icon/liyuan/stumange.svg'), type: 1, to: "/Listudent",role:0 },

+ 5 - 2
src/components/pages/liyuan/components/card.vue

@@ -22,6 +22,9 @@ export default {
         type: {
             type: Number,
         },
+        sortId: {
+            type: String,
+        },
     },
     data() {
         return {
@@ -37,8 +40,8 @@ export default {
         goTo() {
             sessionStorage.setItem('gotype', this.$route.path);
 
-            if (this.type == 1) {
-                this.$router.push({ path: this.to, query: { userid: this.userid, oid: this.oid, org: this.org, role: this.role,tType: this.tType, gotype: 1 } })
+            if (this.type == 1) {    
+                this.$router.push({ path: this.to, query: { userid: this.userid, oid: this.oid, org: this.org, role: this.role,tType: this.tType, gotype: 1,sortId:this.sortId } })
             }else if (this.type == 2) {
                 let con = this.betaL =='beta'? 'https://beta.cloud.cocorobo.cn' : 'https://cloud.cocorobo.cn'
                 console.log( `${con}${this.to}`);

+ 12 - 57
src/components/pages/liyuan/page/teadTest.vue

@@ -2,19 +2,14 @@
     <div class="i_body_box">
         <backPage tit="资料搜集"></backPage>
         <div class="check_nav">
-            <!-- <div class="nav all" v-show="this.ExamineBase.length > 0" :class="{ active: type == '1' }" @click="checkType('1')">
-                年度考核
-            </div> -->
             <div class="nav all" :class="{ active: checkTypeValue == typeListStr }" 
             @click="changeShowType(typeListStr)">
                 全部
             </div>
             <div class="nav" v-for="item in typeList" :key="item.id" :class="{ active: checkTypeValue == item.id,all:['8bfa67ce-e82a-11ef-b508-005056924926','9d3289d2-e82a-11ef-b508-005056924926','a824c728-e82a-11ef-b508-005056924926','8085418b-e82a-11ef-b508-005056924926'].includes(item.id)}" 
             @click="changeShowType(item.id,item)">{{ item.name }}</div>
-           
         </div>
         <div class="check_box" v-loading="loading">
-            <!-- <examine v-if="type==1"></examine> -->
             <div class="noneData"  v-if="!worksArray.length && type!=1" style="text-align: center; margin-top: 20px;">
                 暂无数据
             </div>
@@ -55,8 +50,6 @@
                                 <div class="time">
                                     <span>提交记录{{item.array.length - index}}</span>
                                 </div>
-                                <!-- <img @click="deleteTest(test.id)" class="delete"
-                                    src="../../../../assets/icon/test/delete.png" alt="" /> -->
                                 <div class="utime">
                                     <span>{{ test.utime }}</span>
                                 </div>
@@ -67,23 +60,11 @@
                                     <div @click="deleteTest(test.id)" class="delete">
                                         <span>删除</span>
                                     </div>
-                                    <!-- <div @click="checkTest(test.courseid, test.id)">
-                                        <span></span><span>查看</span>
-                                    </div>
-                                    <div @click="copyTest(test.id)">
-                                        <span></span><span>复制</span>
-                                    </div> -->
                                 </div>
                             </div>
                         </div>
                         <div class="test_add_box"
                             v-else-if="item.carray" v-loading="!item.carray.length">
-                            <!-- <div class="courseLength" v-for="(course, index) in item.carray" :key="index" @click="doTest3(item, course)">
-                                <span class="finish" :class="{is: course.array.length}"></span>
-                                <span>{{ index+1 }}、</span>
-                                <span>{{ course.title }}</span>
-                                <span>{{ course.username }}</span>
-                            </div> -->
                             <div class="test courseLength" v-for="(course, index) in item.carray" :key="index">
                                 <div class="time">
                                     <el-tooltip :content="course.title+'-'+course.username" placement="top" effect="dark">
@@ -125,8 +106,8 @@ export default {
         return {
             userid: this.$route.query.userid,
             oid: this.$route.query.oid,
+            sortId: this.$route.query.sortId,
             type: "",
-            typeId:'e18d88b3-e828-11ef-b508-005056924926',
             typeList:[],
             ExamineBase: [],
             typeArray: [],
@@ -269,37 +250,33 @@ export default {
 
           if(this.typeList.length){
             _result = this.typeList.map(i=>i.id)
-            _result.push(this.typeId);
+            _result.push(this.sortId);
             _result = _result.join(',')
           }
 
           return _result;
         }
     },
-    watch:{
-      typeId(newValue){
-        this.changeShowType(newValue)
-      }
-    },
     methods: {
         getNavType() {
+            let _this = this
             let params = {
                 oid: "",//this.oid
             };
+            let inte = (this.sortId == 'eefb7195-8ee7-11f0-9c7b-005056924926') ? 'selectTestType_liYuan' : 'selectTestType'
             this.ajax
-                .get(this.$store.state.api + "selectTestType", params)
+                .get(this.$store.state.api + inte, params)
                 .then(res => {
                     let _data = res.data[0];
                     console.log('_data',_data);
-                    // _data.fliter(e=>{
-
-                    // })
+                    console.log('_this.sortId',_this.sortId);
+                    
                     this.typeList = _data.filter(function(item, index) {
-                        return item.pid == 'e18d88b3-e828-11ef-b508-005056924926';
+                        return item.pid == _this.sortId;
                     });
+
                     this.changeShowType(this.typeListStr)
 
-                    //  = _data.fliter(e =>{ return e.pid == 'e18d88b3-e828-11ef-b508-005056924926'})
                     console.log('this.typeList',this.typeList);
 
                     
@@ -321,7 +298,6 @@ export default {
                 if(type == 1 && !res.data[0].length){
                     this.getPageBase(2)
                 }
-                // console.log("selectTestExamineBase", res.data);
                 })
                 .catch(error => {
                 console.log(error);
@@ -346,11 +322,6 @@ export default {
                     this.typeArray = res.data[0];
                     if(type == 1){
                         this.type = ''
-                        // if (this.typeArray.length) {
-                        //     this.type = this.typeArray[0].id;
-                        // } else {
-                        //     this.type = '0';
-                        // }
                     }
                     this.getWorks()
                 })
@@ -678,31 +649,15 @@ export default {
             return res.data[0]
         },
         changeShowType(value){
-            console.log('value',value);
+            console.log('changeShowType',value);
             
-          this.checkTypeValue = value;
-          this.getWorks();
+            this.checkTypeValue = value;
+            this.getWorks();
         }
     },
     mounted() {
-        // this.selectTestType(1);
-        // this.getPageBase()
         this.getNavType()
-        
-        console.log('this.typeListStr',this.typeListStr);
-        
-        // if(this.typeListStr){
-        //   this.changeShowType(this.typeListStr)
-          // this.checkTypeValue = this.typeId
-        // }
     },
-    // activated(){
-    //     // this.selectTestType(2);
-    //     if(this.typeListStr){
-    //       this.changeShowType(this.typeListStr)
-    //       // this.checkTypeValue = this.typeId
-    //     }
-    // },
 };
 </script>
 

+ 9 - 2
src/components/pages/liyuan/teacherDevelop.vue

@@ -2,7 +2,14 @@
   <div class="teacherDevelop">
     <topBar title="教师发展" detail="教师年度考核 · 教师成长画像 · AI课堂观察"></topBar>
     <div class="cardBox">
-      <card v-for="item in cardData(cardArray)" :key="item.title" :title="item.title" :icon="item.icon" :to="item.to" :type="item.type"></card>
+      <card v-for="item in cardData(cardArray)" 
+      :key="item.title" 
+      :title="item.title" 
+      :icon="item.icon" 
+      :to="item.to" 
+      :type="item.type"
+      :sortId="item.sortId"
+      ></card>
     </div>
   </div>
 </template>
@@ -27,13 +34,13 @@ export default {
   data() {
     return {
       role: this.$route.query.role,
-
       cardArray: [
         { title: '年度考核', icon: require('../../../assets/icon/liyuan/niandukaohe.svg'), type: 1, to: "/examineL",role:0 },
         { title: '个人档案', icon: require('../../../assets/icon/liyuan/gerendangan.svg'), type: 1, to: "/userInfoL",role:0 },
         { title: '教师画像', icon: require('../../../assets/icon/liyuan/jiaoshihuaxiang.svg'), type: 1, to: "/portraitL",role:0 },
         { title: '课堂观察', icon: require('../../../assets/icon/liyuan/ketangguancha.svg'), type: 1, to: "/classroomObservation",role:0 },
         { title: '智能表单', icon: require('../../../assets/icon/liyuan/zhinengbiaodan.svg'), type: 1, to: "/test",role:1 },
+        { title: '考核资料', icon: require('../../../assets/icon/liyuan/zlsj.svg'), type: 1, to: "/teadTest",role:0,sortId:'eefb7195-8ee7-11f0-9c7b-005056924926' },
       ]
     }
   },