11wqe1 1 هفته پیش
والد
کامیت
ec5c34cfbc

+ 3 - 1
src/common/apiConfig.js

@@ -133,7 +133,9 @@ export const API_CONFIG = {
   getKanbanTeaManagedata: {
     functionName: "getKanbanTeaManagedata", // 存储过程名称
   },
-
+  getliyuanSchoolpid: {
+    functionName: "getliyuanSchoolpid", // 存储过程名称
+  },
 
   // 获取所有记录接口(综合了待审核、已通过、已拒绝的数据)
   allRecords: {

+ 1 - 1
src/views/kanBan/components/AschoolFeature.vue

@@ -8,7 +8,7 @@
 		<div class="Ktop">
 			<div class="topTit">
 				<div>
-					<div>集团简介</div>
+					<div>校区简介</div>
 					<div
 						style="
 							height: 4px;

+ 1 - 1
src/views/kanBan/components/dataBoardNew/AIApp/index.vue

@@ -137,7 +137,7 @@ export default {
         },
     },
     mounted() {
-      console.log(666);
+        // console.log(666);
       
         this.getAIData()
     },

+ 53 - 1
src/views/kanBan/index.vue

@@ -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