11wqe1 před 2 týdny
rodič
revize
10c6b6a6c3

+ 82 - 0
src/components/pages/liyuan/topTalent.vue

@@ -0,0 +1,82 @@
+<template>
+  <div class="teacherDevelop">
+    <el-image
+        style="
+            width: 100%;
+            border-radius: 10px;
+            height: 320px;
+        "
+        class="imgCar"
+        src="https://img2.baidu.com/it/u=3227833308,1625526130&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=328"
+    >
+    </el-image>
+    <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"
+      :sortId="item.sortId"
+      :cardData="item"
+      ></card>
+    </div>
+  </div>
+</template>
+
+<script>
+import topBar from './components/topBar'
+import card from './components/card.vue';
+export default {
+  components: {
+    topBar,
+    card
+  },
+  computed:{
+    // 进行权限判断一些只有管理员能看
+    cardData(){
+      return (val)=>{
+          let com = val.filter(e=> e.role==0 || (this.role == 1 && e.role == 1) )
+          return com
+      }
+    }
+  },
+  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/jiaoshihuaxiang.svg'), type: 1, to: `/testDataBoard?userid= +${this.$route.query.userid} +&oid= +${this.$route.query.oid} +&org= +${this.$route.query.org} +&role= +${this.$route.query.role} +&cid=`,role:0 },
+        { title: '人才数据库', icon: require('../../../assets/icon/liyuan/zhinengbiaodan.svg'), type: 1, to: "/sassPlatform",role:1,sassPlatFormTypeId:"eefb7195-8ee7-11f0-9c7b-005056924926" },
+        { title: '个人档案', icon: require('../../../assets/icon/liyuan/zlsj.svg'), type: 1, to: "/teadTest",role:0,sortId:'eefb7195-8ee7-11f0-9c7b-005056924926' },
+        { title: '人才评估', icon: require('../../../assets/icon/liyuan/workTest.svg'), type: 1, to: "/testReview",role:0 },
+      ]
+      
+    }
+  },
+}
+</script>
+
+<style scoped>
+.teacherDevelop{
+  width: 100%;
+  height: 100%;
+  padding: 40px 90px;
+  box-sizing: border-box;
+  background: #FAFAFA;
+}
+
+.cardBox{
+  display: grid;
+  grid-template-columns: repeat(5, 1fr);
+  gap: 20px;
+  width: 100%;
+  margin-top: 20px;
+}
+.imgCar >>> img{
+	/* height: 100%; */
+	width: 100%;
+	object-fit: cover;
+}
+</style>

+ 7 - 3
src/components/pages/test/databoard.vue

@@ -1,9 +1,10 @@
 <template>
   <div
     class="pb_content"
-    style="height: auto; width: calc(100% - 40px); margin: 0 auto;background: unset;"
+    :style="{padding : gotype ? '0 40px' : ''}"
+    style="height: auto; width: calc(100% - 40px); margin: 0 auto;background: unset;box-sizing: border-box;"
   >
-    <div style="width:100%;padding:0;box-sizing: border-box;">
+    <div style="width:100%;padding:0;box-sizing: border-box;" v-if="!gotype">
       <div class="pb_head top">
         <div style="display: flex;align-items: center;">
           <span
@@ -61,6 +62,7 @@
         </div>
       </div>
     </div>
+    <backPage style="padding-left: 0;" v-else tit="学生管理"></backPage>
     <div class="bbox_serch">
       <el-select
         v-model="selectTime"
@@ -165,15 +167,17 @@ import radarZong from "./dataCom/radarZong.vue";
 import radarTeacher from "./dataCom/radarTeacher.vue";
 
 import Cascader from "./dataCom/cascader.vue";
+import backPage from "../liyuan/components/backPage.vue";
 
 export default {
   name: "testDataBoard",
-  components: { radarZong, radarTeacher, Cascader },
+  components: { radarZong, radarTeacher, Cascader,backPage },
   data() {
     return {
       userid: this.$route.query.userid, //用户id
       oid: this.$route.query.oid, //学校id
       org: this.$route.query.org, //组织id
+      gotype: (window.topU && window.topU.gotype) ?  window.topU.gotype : '',
       pType: 2,
       teacherName: "",
       tabLoading: false,

+ 10 - 0
src/router/index.js

@@ -163,6 +163,7 @@ import workPageNew from '@/components/pages/workPage/index_new'
 import pptEasy from '@/components/pages/pptEasy/addCourse'
 import noticeCenter from '@/components/pages/noticeCenter/index'
 import PersonnelManagement from "@/components/pages/PersonnelManagement";
+import topTalent from "@/components/pages/liyuan/topTalent";
 
 // 全局修改默认配置,点击空白处不能关闭弹窗
 ElementUI.Dialog.props.closeOnClickModal.default = false
@@ -310,6 +311,15 @@ export default new Router({
       requireAuth: '' // 是否需要判断是否登录,这里是需要判断
     }
   },
+    {
+      path: "/topTalent",
+      name: "topTalent",
+      component: topTalent,
+      meta: {
+        keepAlive: true,
+        requireAuth: "" // 是否需要判断是否登录,这里是需要判断
+      }
+    },
   {
     path: '/course/addCourseE',
     component: addCourseE,