|
@@ -1,16 +1,14 @@
|
|
|
<template>
|
|
|
<div class="sassPlatform">
|
|
|
+ <backPage v-if="gotype" tit="表单管理"></backPage>
|
|
|
<div class="sp_header">
|
|
|
- <!-- <div class="sp_h_logo">
|
|
|
-
|
|
|
- </div> -->
|
|
|
<div class="sp_h_tagArea">
|
|
|
<span :class="{tagActive:tagIndex==0}" style="margin-left: 10px;" @click="tagIndex = 0">应用中心</span>
|
|
|
<span :class="{tagActive:tagIndex==1}" style="margin-left: 17.5px;" @click="goTestSmarter()">智能助手</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="sp_bottom">
|
|
|
- <div class="sp_b_left">
|
|
|
+ <div class="sp_b_left" v-if="!sassPlatFormTypeId">
|
|
|
<div class="sp_b_l_form" v-for="(item,index) in navList" :key="item.navIndex">
|
|
|
<span @click="item.open = !item.open">{{ item.name }}<svg :style="`transform: rotate(${item.open?'180':'0'}deg);`" t="1739262423649" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7079" width="200" height="200"><path d="M52.335 261.072c-31.269 30.397-31.269 79.722 0 110.194l403.212 391.718c31.325 30.382 82.114 30.382 113.377 0l403.197-391.718c31.325-30.466 31.325-79.793 0-110.194-31.28-30.449-82.058-30.449-113.39 0l-346.497 336.64-346.457-336.64c-31.325-30.448-82.105-30.448-113.446 0l0 0z" p-id="7080"></path></svg></span>
|
|
|
<div v-show="item.open" v-if="item.children.length>0">
|
|
@@ -31,11 +29,13 @@
|
|
|
import tableView from './view/tableView.vue';
|
|
|
import examine from './view/examine/index'
|
|
|
import databoard from './view/databoard.vue';
|
|
|
+import backPage from "../liyuan/components/backPage.vue";
|
|
|
export default {
|
|
|
components:{
|
|
|
tableView,
|
|
|
examine,
|
|
|
- databoard
|
|
|
+ databoard,
|
|
|
+ backPage
|
|
|
},
|
|
|
data(){
|
|
|
return{
|
|
@@ -56,7 +56,9 @@ export default {
|
|
|
"f235659b-1b6d-11f0-a66a-005056924926",
|
|
|
"d87b62d3-1b6d-11f0-a66a-005056924926",
|
|
|
"c25ea59b-1b6d-11f0-a66a-005056924926",
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ sassPlatFormTypeId:this.$route.query.sassPlatFormTypeId,
|
|
|
+ gotype:(window.topU && window.topU.gotype) ? window.topU.gotype : '',
|
|
|
}
|
|
|
},
|
|
|
computed:{
|
|
@@ -100,19 +102,24 @@ export default {
|
|
|
i.open = false;
|
|
|
|
|
|
if(i.id=='e18d88b3-e828-11ef-b508-005056924926' || i.id=="4cdce114-8a00-11f0-9c7b-005056924926"){
|
|
|
-
|
|
|
-
|
|
|
if(this.userData && this.userData.type === 1 && this.userData.role == 1){
|
|
|
_children.push({name:"年度考核",type:"annualAssessment",navIndex:`${index}-1`})
|
|
|
}
|
|
|
_children.push({name:"考核数据可视化",type:"evaluationDataVisualization",navIndex:`${index}-2`})
|
|
|
i.open = true;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
i.children = _children;
|
|
|
i.typeList = _typeList;
|
|
|
i.navIndex = `${index}`
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
this.navList = _type1;
|
|
|
resolve()
|
|
|
})
|
|
@@ -159,10 +166,17 @@ export default {
|
|
|
mounted(){
|
|
|
this.getUser(this.userId).then(()=>{
|
|
|
this.getNavType().then(_=>{
|
|
|
- if(this.navList.length>0){
|
|
|
- let _data = this.navList[0].children[0];
|
|
|
- this.changeNavIndex(_data.navIndex,_data)
|
|
|
- }
|
|
|
+
|
|
|
+ if(this.sassPlatFormTypeId){
|
|
|
+ this.navList.forEach(i=>{
|
|
|
+ if(i.id == this.sassPlatFormTypeId){
|
|
|
+ this.changeNavIndex(`${i.navIndex}-0`,i.children[0])
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else if(this.navList.length>0){
|
|
|
+ let _data = this.navList[0].children[0];
|
|
|
+ this.changeNavIndex(_data.navIndex,_data)
|
|
|
+ }
|
|
|
});
|
|
|
})
|
|
|
|