|
@@ -35,7 +35,7 @@
|
|
|
数据看板
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="btnDiv" :class="{ active: isActive === 2 }" @click="setActive(2)">校区特色</div>
|
|
|
+ <div class="btnDiv" :class="{ active: isActive === 2 }" @click="setActive(2)">集团特色</div>
|
|
|
<div class="btnDiv" :class="{ active: isActive === 3 }" >
|
|
|
<div v-if="userinfo.role == 1 && userinfo.rrole == 1 && userinfo.type ==1" @click="setActive(3)">
|
|
|
校区入口
|
|
@@ -76,6 +76,7 @@ import AschoolFeature from './components/AschoolFeature';
|
|
|
import { mapGetters, mapActions } from 'vuex';
|
|
|
import { loginOut } from '@/api/user';
|
|
|
import store from '../../store'
|
|
|
+import { API_CONFIG } from "../../common/apiConfig.js";
|
|
|
|
|
|
export default {
|
|
|
name:'kanBan',
|
|
@@ -152,6 +153,51 @@ export default {
|
|
|
// 取消操作
|
|
|
});
|
|
|
},
|
|
|
+ async getliyuanOpid(){
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ let params = [
|
|
|
+ {
|
|
|
+ functionName: API_CONFIG.getliyuanorgPid.functionName,
|
|
|
+ org:this.userinfo.org
|
|
|
+ },
|
|
|
+ ];
|
|
|
+
|
|
|
+ this.$ajax
|
|
|
+ .post(API_CONFIG.baseUrl, params)
|
|
|
+ .then((res) => {
|
|
|
+ resolve(res)
|
|
|
+ })
|
|
|
+ .catch((err) => {
|
|
|
+ console.log(err);
|
|
|
+ reject(err)
|
|
|
+ this.$message.error("获取校区栏失败");
|
|
|
+ });
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 查询学校列表
|
|
|
+ async getSchoolList(){
|
|
|
+ await this.getliyuanpid()
|
|
|
+
|
|
|
+
|
|
|
+ // let params = [
|
|
|
+ // {
|
|
|
+ // functionName: API_CONFIG.getliyuanSchoolpid.functionName,
|
|
|
+ // pid:''
|
|
|
+ // },
|
|
|
+ // ];
|
|
|
+
|
|
|
+ // this.$ajax
|
|
|
+ // .post(API_CONFIG.baseUrl, params)
|
|
|
+ // .then((res) => {
|
|
|
+ // this.usuallyList = res.data[0];
|
|
|
+ // this.loading = false;
|
|
|
+ // })
|
|
|
+ // .catch((err) => {
|
|
|
+ // console.log(err);
|
|
|
+ // this.loading = false;
|
|
|
+ // this.$message.error("获取工具数据失败");
|
|
|
+ // });
|
|
|
+ },
|
|
|
// 导航栏切换
|
|
|
setActive(Index) {
|
|
|
this.isActive = Index;
|
|
@@ -160,6 +206,7 @@ export default {
|
|
|
mounted() {
|
|
|
const index = this.$route.query.index; // 123
|
|
|
console.log(index);
|
|
|
+ // 超级管理员登录进入页面,默认展示第一个校区的数据看板
|
|
|
if (this.userinfo.role == 1
|
|
|
&& this.userinfo.rrole == 1
|
|
|
&& this.userinfo.type ==1
|
|
@@ -176,6 +223,11 @@ export default {
|
|
|
this.schOrg = this.userinfo.org
|
|
|
}
|
|
|
|
|
|
+ // 查询组织pid
|
|
|
+ // if (this.userinfo.org) {
|
|
|
+ // this.getSchoolList()
|
|
|
+ // }
|
|
|
+
|
|
|
|
|
|
if (index == 2) {
|
|
|
this.isActive = 2
|