Browse Source

添加总览

11wqe1 1 tuần trước cách đây
mục cha
commit
f7381767a0

+ 0 - 4
src/assets/img/hg1.svg

@@ -1,4 +0,0 @@
-<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M0 0H28V28H10C4.47715 28 0 23.5228 0 18V0Z" fill="#F0B343"/>
-<path d="M8.4 21V19.4444H19.6V21H8.4ZM8.4 18.2778L7.38 12.0361C7.35333 12.0361 7.3232 12.0395 7.2896 12.0462C7.256 12.053 7.22613 12.0561 7.2 12.0556C6.86667 12.0556 6.58347 11.942 6.3504 11.7149C6.11734 11.4878 6.00054 11.2124 6 10.8889C5.99947 10.5653 6.11627 10.29 6.3504 10.0629C6.58453 9.83578 6.86773 9.72222 7.2 9.72222C7.53227 9.72222 7.81573 9.83578 8.0504 10.0629C8.28507 10.29 8.4016 10.5653 8.4 10.8889C8.4 10.9796 8.38987 11.0639 8.3696 11.1417C8.34933 11.2194 8.32613 11.2907 8.3 11.3556L10.8 12.4444L13.3 9.11945C13.1533 9.01574 13.0333 8.87963 12.94 8.71111C12.8467 8.54259 12.8 8.36111 12.8 8.16667C12.8 7.84259 12.9168 7.567 13.1504 7.33989C13.384 7.11278 13.6672 6.99948 14 7C14.3328 7.00052 14.6163 7.11408 14.8504 7.34067C15.0845 7.56726 15.2011 7.84259 15.2 8.16667C15.2 8.36111 15.1533 8.54259 15.06 8.71111C14.9667 8.87963 14.8467 9.01574 14.7 9.11945L17.2 12.4444L19.7 11.3556C19.6733 11.2907 19.6499 11.2194 19.6296 11.1417C19.6093 11.0639 19.5995 10.9796 19.6 10.8889C19.6 10.5648 19.7168 10.2892 19.9504 10.0621C20.184 9.835 20.4672 9.72171 20.8 9.72222C21.1328 9.72274 21.4163 9.8363 21.6504 10.0629C21.8845 10.2895 22.0011 10.5648 22 10.8889C21.9989 11.213 21.8824 11.4886 21.6504 11.7157C21.4184 11.9428 21.1349 12.0561 20.8 12.0556C20.7733 12.0556 20.7435 12.0524 20.7104 12.0462C20.6773 12.04 20.6472 12.0366 20.62 12.0361L19.6 18.2778H8.4Z" fill="black"/>
-</svg>

+ 0 - 4
src/assets/img/hg2.svg

@@ -1,4 +0,0 @@
-<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M0 0H28V28H10C4.47715 28 0 23.5228 0 18V0Z" fill="black"/>
-<path d="M8.4 21V19.4444H19.6V21H8.4ZM8.4 18.2778L7.38 12.0361C7.35333 12.0361 7.3232 12.0395 7.2896 12.0462C7.256 12.053 7.22613 12.0561 7.2 12.0556C6.86667 12.0556 6.58347 11.942 6.3504 11.7149C6.11734 11.4878 6.00054 11.2124 6 10.8889C5.99947 10.5653 6.11627 10.29 6.3504 10.0629C6.58453 9.83578 6.86773 9.72222 7.2 9.72222C7.53227 9.72222 7.81573 9.83578 8.0504 10.0629C8.28507 10.29 8.4016 10.5653 8.4 10.8889C8.4 10.9796 8.38987 11.0639 8.3696 11.1417C8.34933 11.2194 8.32613 11.2907 8.3 11.3556L10.8 12.4444L13.3 9.11945C13.1533 9.01574 13.0333 8.87963 12.94 8.71111C12.8467 8.54259 12.8 8.36111 12.8 8.16667C12.8 7.84259 12.9168 7.567 13.1504 7.33989C13.384 7.11278 13.6672 6.99948 14 7C14.3328 7.00052 14.6163 7.11408 14.8504 7.34067C15.0845 7.56726 15.2011 7.84259 15.2 8.16667C15.2 8.36111 15.1533 8.54259 15.06 8.71111C14.9667 8.87963 14.8467 9.01574 14.7 9.11945L17.2 12.4444L19.7 11.3556C19.6733 11.2907 19.6499 11.2194 19.6296 11.1417C19.6093 11.0639 19.5995 10.9796 19.6 10.8889C19.6 10.5648 19.7168 10.2892 19.9504 10.0621C20.184 9.835 20.4672 9.72171 20.8 9.72222C21.1328 9.72274 21.4163 9.8363 21.6504 10.0629C21.8845 10.2895 22.0011 10.5648 22 10.8889C21.9989 11.213 21.8824 11.4886 21.6504 11.7157C21.4184 11.9428 21.1349 12.0561 20.8 12.0556C20.7733 12.0556 20.7435 12.0524 20.7104 12.0462C20.6773 12.04 20.6472 12.0366 20.62 12.0361L19.6 18.2778H8.4Z" fill="#CFCFCF"/>
-</svg>

+ 0 - 4
src/assets/img/hg3.svg

@@ -1,4 +0,0 @@
-<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
-<path d="M0 0H28V28H10C4.47715 28 0 23.5228 0 18V0Z" fill="#D9D9D9"/>
-<path d="M8.4 21V19.4444H19.6V21H8.4ZM8.4 18.2778L7.38 12.0361C7.35333 12.0361 7.3232 12.0395 7.2896 12.0462C7.256 12.053 7.22613 12.0561 7.2 12.0556C6.86667 12.0556 6.58347 11.942 6.3504 11.7149C6.11734 11.4878 6.00054 11.2124 6 10.8889C5.99947 10.5653 6.11627 10.29 6.3504 10.0629C6.58453 9.83578 6.86773 9.72222 7.2 9.72222C7.53227 9.72222 7.81573 9.83578 8.0504 10.0629C8.28507 10.29 8.4016 10.5653 8.4 10.8889C8.4 10.9796 8.38987 11.0639 8.3696 11.1417C8.34933 11.2194 8.32613 11.2907 8.3 11.3556L10.8 12.4444L13.3 9.11945C13.1533 9.01574 13.0333 8.87963 12.94 8.71111C12.8467 8.54259 12.8 8.36111 12.8 8.16667C12.8 7.84259 12.9168 7.567 13.1504 7.33989C13.384 7.11278 13.6672 6.99948 14 7C14.3328 7.00052 14.6163 7.11408 14.8504 7.34067C15.0845 7.56726 15.2011 7.84259 15.2 8.16667C15.2 8.36111 15.1533 8.54259 15.06 8.71111C14.9667 8.87963 14.8467 9.01574 14.7 9.11945L17.2 12.4444L19.7 11.3556C19.6733 11.2907 19.6499 11.2194 19.6296 11.1417C19.6093 11.0639 19.5995 10.9796 19.6 10.8889C19.6 10.5648 19.7168 10.2892 19.9504 10.0621C20.184 9.835 20.4672 9.72171 20.8 9.72222C21.1328 9.72274 21.4163 9.8363 21.6504 10.0629C21.8845 10.2895 22.0011 10.5648 22 10.8889C21.9989 11.213 21.8824 11.4886 21.6504 11.7157C21.4184 11.9428 21.1349 12.0561 20.8 12.0556C20.7733 12.0556 20.7435 12.0524 20.7104 12.0462C20.6773 12.04 20.6472 12.0366 20.62 12.0361L19.6 18.2778H8.4Z" fill="#AE938C"/>
-</svg>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 3
src/assets/img/hunabi.svg


+ 1 - 0
src/assets/img/jtb.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1753164082900" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18400" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M290.730667 389.034667a29.866667 29.866667 0 1 0 0 59.733333h93.098666a29.866667 29.866667 0 0 0 0-59.733333H290.730667zM260.864 558.549333a29.866667 29.866667 0 0 1 29.866667-29.866666h93.098666a29.866667 29.866667 0 1 1 0 59.733333H290.730667a29.866667 29.866667 0 0 1-29.866667-29.866667zM260.864 698.197333a29.866667 29.866667 0 0 1 29.866667-29.866666h93.098666a29.866667 29.866667 0 1 1 0 59.733333H290.730667a29.866667 29.866667 0 0 1-29.866667-29.866667z" fill="#ffffff" p-id="18401"></path><path d="M162.901333 960.768H46.549333a29.866667 29.866667 0 1 1 0-59.733333h86.485334V249.642667c0-27.306667 15.36-52.352 39.765333-64.725334l263.765333-133.632A72.533333 72.533333 0 0 1 541.866667 116.053333v785.066667h289.365333V411.434667a12.8 12.8 0 0 0-9.685333-12.416l-232.192-58.24a29.866667 29.866667 0 1 1 14.506666-57.941334l232.192 58.24a72.533333 72.533333 0 0 1 54.912 70.357334v489.557333h86.485334a29.866667 29.866667 0 1 1 0 59.733333H162.901333z m319.232-844.8a12.8 12.8 0 0 0-18.602666-11.392L199.808 238.208a12.8 12.8 0 0 0-7.04 11.434667v651.392H482.133333v-785.066667z" fill="#ffffff" p-id="18402"></path><path d="M638.122667 528.682667a29.866667 29.866667 0 1 0 0 59.733333h93.098666a29.866667 29.866667 0 1 0 0-59.733333h-93.098666zM638.122667 668.330667a29.866667 29.866667 0 1 0 0 59.733333h93.098666a29.866667 29.866667 0 1 0 0-59.733333h-93.098666z" fill="#ffffff" p-id="18403"></path></svg>

+ 1 - 0
src/assets/img/jth.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1753164082900" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18400" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M290.730667 389.034667a29.866667 29.866667 0 1 0 0 59.733333h93.098666a29.866667 29.866667 0 0 0 0-59.733333H290.730667zM260.864 558.549333a29.866667 29.866667 0 0 1 29.866667-29.866666h93.098666a29.866667 29.866667 0 1 1 0 59.733333H290.730667a29.866667 29.866667 0 0 1-29.866667-29.866667zM260.864 698.197333a29.866667 29.866667 0 0 1 29.866667-29.866666h93.098666a29.866667 29.866667 0 1 1 0 59.733333H290.730667a29.866667 29.866667 0 0 1-29.866667-29.866667z" fill="#8a8a8a" p-id="18401"></path><path d="M162.901333 960.768H46.549333a29.866667 29.866667 0 1 1 0-59.733333h86.485334V249.642667c0-27.306667 15.36-52.352 39.765333-64.725334l263.765333-133.632A72.533333 72.533333 0 0 1 541.866667 116.053333v785.066667h289.365333V411.434667a12.8 12.8 0 0 0-9.685333-12.416l-232.192-58.24a29.866667 29.866667 0 1 1 14.506666-57.941334l232.192 58.24a72.533333 72.533333 0 0 1 54.912 70.357334v489.557333h86.485334a29.866667 29.866667 0 1 1 0 59.733333H162.901333z m319.232-844.8a12.8 12.8 0 0 0-18.602666-11.392L199.808 238.208a12.8 12.8 0 0 0-7.04 11.434667v651.392H482.133333v-785.066667z" fill="#8a8a8a" p-id="18402"></path><path d="M638.122667 528.682667a29.866667 29.866667 0 1 0 0 59.733333h93.098666a29.866667 29.866667 0 1 0 0-59.733333h-93.098666zM638.122667 668.330667a29.866667 29.866667 0 1 0 0 59.733333h93.098666a29.866667 29.866667 0 1 0 0-59.733333h-93.098666z" fill="#8a8a8a" p-id="18403"></path></svg>

+ 1 - 0
src/assets/img/school.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1753164937816" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="35368" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M832 895.7c17.6 0 32-14.4 32-32V512h32c17.6 0 32-14.4 32-32v-32c0-17.6-14.4-32-32-32H720V309.6l102.9 70.6 18.1-26.4L713 266 512 128 304 270.7l-121.1 83.1 18.1 26.4 103-70.6V416H128c-17.6 0-32 14.4-32 32v32c0 17.6 14.4 32 32 32h32v351.7c0 17.6 14.4 32 32 32M304 560h-48c-8.8 0-16 7.2-16 16s7.2 16 16 16h48v32h-48c-8.8 0-16 7.2-16 16s7.2 16 16 16h48v207.7H192.1l-0.1-0.1V512h112v48z m0-80H128.1l-0.1-0.1V448l0.1-0.1H304V480z m255.9 383.7h-95.8V736c0-8.5 3.3-16.5 9.4-22.6 6.1-6.1 14.1-9.4 22.6-9.4h31.8c8.5 0 16.5 3.3 22.6 9.4 6.1 6.1 9.4 14.1 9.4 22.6v127.7z m-127.8-0.4H336V287.6l176-120.8 176 120.8v575.7h-96.1V736c0-18.7-8.1-35.6-21-47.3-1.5-1.4-3.1-2.7-4.7-3.9-0.8-0.6-1.7-1.2-2.5-1.8-1.7-1.2-3.5-2.2-5.3-3.2s-3.7-1.9-5.6-2.7c-7.7-3.3-16-5-24.8-5h-31.8c-35.2 0-64 28.8-64 64M832 863.6s0 0.1 0 0l-112 0.1V656h48c8.8 0 16-7.2 16-16s-7.2-16-16-16h-48v-32h48c8.8 0 16-7.2 16-16s-7.2-16-16-16h-48v-48h112v351.6z m64-383.7c0 0.1 0 0.1 0 0l-176 0.1v-32h175.9l0.1 0.1v31.8z" p-id="35369" fill="#8a8a8a"></path><path d="M512 384.2c35.2 0 63.8 28.6 63.8 63.8 0 35.2-28.6 63.8-63.8 63.8-35.2 0-63.8-28.6-63.8-63.8 0-35.2 28.6-63.8 63.8-63.8m0-32c-52.9 0-95.8 42.9-95.8 95.8s42.9 95.8 95.8 95.8 95.8-42.9 95.8-95.8-42.9-95.8-95.8-95.8z" p-id="35370" fill="#8a8a8a"></path></svg>

+ 1 - 0
src/assets/img/schoolb.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1753164937816" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="35368" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M832 895.7c17.6 0 32-14.4 32-32V512h32c17.6 0 32-14.4 32-32v-32c0-17.6-14.4-32-32-32H720V309.6l102.9 70.6 18.1-26.4L713 266 512 128 304 270.7l-121.1 83.1 18.1 26.4 103-70.6V416H128c-17.6 0-32 14.4-32 32v32c0 17.6 14.4 32 32 32h32v351.7c0 17.6 14.4 32 32 32M304 560h-48c-8.8 0-16 7.2-16 16s7.2 16 16 16h48v32h-48c-8.8 0-16 7.2-16 16s7.2 16 16 16h48v207.7H192.1l-0.1-0.1V512h112v48z m0-80H128.1l-0.1-0.1V448l0.1-0.1H304V480z m255.9 383.7h-95.8V736c0-8.5 3.3-16.5 9.4-22.6 6.1-6.1 14.1-9.4 22.6-9.4h31.8c8.5 0 16.5 3.3 22.6 9.4 6.1 6.1 9.4 14.1 9.4 22.6v127.7z m-127.8-0.4H336V287.6l176-120.8 176 120.8v575.7h-96.1V736c0-18.7-8.1-35.6-21-47.3-1.5-1.4-3.1-2.7-4.7-3.9-0.8-0.6-1.7-1.2-2.5-1.8-1.7-1.2-3.5-2.2-5.3-3.2s-3.7-1.9-5.6-2.7c-7.7-3.3-16-5-24.8-5h-31.8c-35.2 0-64 28.8-64 64M832 863.6s0 0.1 0 0l-112 0.1V656h48c8.8 0 16-7.2 16-16s-7.2-16-16-16h-48v-32h48c8.8 0 16-7.2 16-16s-7.2-16-16-16h-48v-48h112v351.6z m64-383.7c0 0.1 0 0.1 0 0l-176 0.1v-32h175.9l0.1 0.1v31.8z" p-id="35369" fill="#ffffff"></path><path d="M512 384.2c35.2 0 63.8 28.6 63.8 63.8 0 35.2-28.6 63.8-63.8 63.8-35.2 0-63.8-28.6-63.8-63.8 0-35.2 28.6-63.8 63.8-63.8m0-32c-52.9 0-95.8 42.9-95.8 95.8s42.9 95.8 95.8 95.8 95.8-42.9 95.8-95.8-42.9-95.8-95.8-95.8z" p-id="35370" fill="#ffffff"></path></svg>

+ 27 - 19
src/components/schoolArea.vue

@@ -1,9 +1,12 @@
 <template>
 	<div class="schoolArea">
-		<!-- <div class="allView">
-			<div class="allView_icon"></div>
+		<div class="allView" 
+		:class="{ active: activeSchool == schList.map(e=> e.children).flat().map(e=> e.schoolid).join(',') }" 
+		@click="cutS('all')">
+			<img style="height: 22px;width: 22px;object-fit: cover;" 
+			:src="activeSchool == schList.map(e=> e.children).flat().map(e=> e.schoolid).join(',') ?require('../assets/img/schoolb.svg') : require('../assets/img/school.svg')" alt="">
 			<div>集团特色</div>
-		</div> -->
+		</div>
 
 		<div v-if="fromL.admin.school">
 			<div
@@ -12,7 +15,7 @@
 				:key="index + 'a'"
 			>
 				<div class="primarySch" @click="cutS(item.schoolid)">
-					<img src="../assets/Slog.svg" style="margin-right: 8px" alt="" />
+					<img src="../assets/img/jth.svg" style="margin-right: 8px;height: 20px;width: 20px;object-fit: cover;" alt="" />
 					<div>{{ i.menuName }}</div>
 				</div>
 				<div class="priSchArea">
@@ -52,16 +55,20 @@ export default {
 	methods: {
 		cutS(val) {
 			console.log('cuts',val);
+			let data = {}
 			
-			// if (
-			// 	this.userinfo.role == 1 &&
-			// 	this.userinfo.rrole == 1 &&
-			// 	this.userinfo.type == 1
-			// ) {
-				this.activeSchool = val.schoolid;
-				this.schorg = val.orgid
-				this.$emit("cutSch",{ oid:val.schoolid, org :val.orgid});
-			// }
+			if (val == 'all') {
+				let k = this.schList.map(e=> e.children).flat().map(e=> e.schoolid).join(',')
+				data = { schoolid:k, orgid :''}
+			}else{
+				data = val
+			}
+			console.log('data',data);
+
+
+			this.activeSchool = data.schoolid;
+			this.schorg = data.orgid
+			this.$emit("cutSch",{ oid: data.schoolid, org :data.orgid});
 		},
 	},
 	mounted() {
@@ -87,11 +94,12 @@ export default {
 }
 .allView {
 	display: flex;
-	width: 230px;
 	gap: 8px;
-	font-size: 18px;
+	cursor: pointer;
+	font-size: 16px;
 	align-items: center;
-	padding: 0 16px;
+	padding: 7px 16px;
+	border-radius: 6px;
 	box-sizing: border-box;
 }
 .primarySch {
@@ -112,7 +120,7 @@ export default {
 	align-items: center;
 	border-radius: 6px;
 	padding: 7px 16px;
-	padding-left: 36px;
+	padding-left: 44px;
 	box-sizing: border-box;
 	font-size: 14px;
 	cursor: pointer;
@@ -126,7 +134,7 @@ export default {
 	margin-right: 8px;
 }
 .active {
-	background: #e7e7e7;
-	color: #453cca;
+	background: #0560FD;
+	color: #fff;
 }
 </style>

+ 2 - 0
src/store/modules/user.js

@@ -128,6 +128,8 @@ const actions = {
             // var _user = { userid: "6c56ec0e-2c74-11ef-bee5-005056b86db5" }; //qgt
             // var _user = { userid: "4fda23d4-1b6f-11f0-a66a-005056924926" }; //管理员
             // var _user = { userid: "17c14552-41ee-11f0-b60f-005056924926" }; //普通
+            // var _user = { userid: "a77e9404-efec-11e9-96f9-028edca3b798" }; //徐嘉伟
+
 
             // commit("SET_ID", _user.userid);
             // commit("SET_TOKEN", _user.userid);

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

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

+ 5 - 5
src/views/kanBan/components/dataBoardNew/AIApp/chartList/ParetoChart.vue

@@ -57,12 +57,12 @@ export default {
         immediate: true  // 组件创建时立即执行
     }
   },
-  // mounted() {
-  //   // this.rawData = JSON.parse(JSON.stringify(this.chartData))
-  //   // this.initChart();
-  //   window.addEventListener('resize', this.handleResize);
+  mounted() {
+    // this.rawData = JSON.parse(JSON.stringify(this.chartData))
+    // this.initChart();
+    window.addEventListener('resize', this.handleResize);
     
-  // },
+  },
   beforeDestroy() {
     window.removeEventListener('resize', this.handleResize);
     this.chart && this.chart.dispose();

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

@@ -87,7 +87,7 @@ export default {
 
                     // console.log('res.data[4][0].lab',res.data[4][0].lab);
                     
-                    res.data[4] = Array.from({ length: res.data[4][0].lab * 1}, (_, i) => {
+                    res.data[4] = Array.from({ length: res.data[4][0].lab * 1 ? res.data[4][0].lab * 1 : 1}, (_, i) => {
                         const lab = String(i + 1).padStart(2, '0'); // 生成lab为01到最新日期
                         const existingEntry = res.data[4].find(entry => entry.lab === lab);
                         return existingEntry ? existingEntry : { lab, num: 0 };
@@ -109,7 +109,9 @@ export default {
     mounted() {
         // console.log('getTeaBaseData',this.oid);
         // if (!this.oid) {
+        if (this.oid) {
             this.getTeaBaseData()
+        }
         // }
     },
 }

+ 43 - 6
src/views/kanBan/index.vue

@@ -55,7 +55,7 @@
                          <dataBoardNew :oid="schId" :org="schOrg" :userid="userinfo.userid"/>
                     </div>
                     <div class="Con" v-if="isActive === 2">
-                        <AschoolFeature :schId="schId" :schOrg="schOrg"></AschoolFeature>
+                        <AschoolFeature :schId="groupoId" :schOrg="grouporgCopy"></AschoolFeature>
                     </div>
                     <div class="Con" v-if="isActive === 3">
                         <AquickEntrance :key="isActive"></AquickEntrance>
@@ -112,7 +112,11 @@ export default {
             isIndex2:'',
             schId:'',
             schOrg:'',
-            schList:[]
+            schList:[],
+            groupoId:'',
+            grouporg:'',
+            grouporgCopy:'',
+
         }
     },
     methods: {
@@ -120,7 +124,19 @@ export default {
             console.log('val',val);
             this.schId = val.oid
             this.schOrg = val.org
-
+            // 这是为了获取集团特色总览数据的org
+            //  this.isActive == 2 是为了使this.groupoId = '',不然学校只有一个校区的时候修改总览就会出现错误(会把校区的给修改了)
+            if(!val.org && this.isActive == 2){
+                console.log('555');
+                
+                this.grouporgCopy = this.grouporg
+                this.groupoId = ''
+            }else{
+                console.log('666');
+                
+                this.grouporgCopy = val.org
+                this.groupoId = val.oid
+            }
         },
         ...mapActions({
             logout: 'user/logout'
@@ -167,8 +183,11 @@ export default {
                 .post(API_CONFIG.baseUrl, params)
                 .then((res) => {
                     console.log('res',res);
+                    // console.log('JSON.parse(res.data[0][0].json)',JSON.parse(res.data[0][0].json));
+                    
                     if (res.data != 0) {
                         let data = JSON.parse(res.data[0][0].json).admin.school.list
+                        this.grouporg = res.data[0][0].id
                         this.schList = data
                     }
                     
@@ -180,6 +199,17 @@ export default {
         },
         // 导航栏切换
         setActive(Index) {
+             if(!this.schOrg && this.userinfo.org && Index == 2){
+                console.log('555');
+                
+                this.grouporgCopy = this.grouporg
+                this.groupoId = ''
+            }else{
+                console.log('666');
+                
+                this.grouporgCopy = this.schOrg
+                this.groupoId = this.schId
+            }
             this.isActive = Index; 
         }
     },
@@ -195,17 +225,24 @@ export default {
         && this.fromL.admin.school.list[0].children
         && this.fromL.admin.school.list[0].children.length) {
             console.log('111');
-            this.schList = this.fromL.admin.school.list
+            // this.schList = this.fromL.admin.school.list
             this.schId = this.fromL.admin.school.list[0].children[0].schoolid
+            this.groupoId = this.fromL.admin.school.list[0].children[0].schoolid
             this.schOrg = this.fromL.admin.school.list[0].children[0].orgid
+            this.grouporgCopy = this.fromL.admin.school.list[0].children[0].orgid
+
         }else{
             console.log('222');
             this.schId = this.userinfo.organizeid
+            this.groupoId = this.userinfo.organizeid
             this.schOrg = this.userinfo.org
+            this.grouporgCopy = this.userinfo.org
         }
 
-        // 查询组织pid
-        if (this.userinfo.org && !this.fromL.admin.school.list.length) {
+        // 查询组织pid  和为了获取集团特色总览数据的org
+
+        // bar侧边栏的数据只有组织才有,如果获取的是学校的json,则不会有bar
+        if (this.userinfo.org) {
             this.getSchoolList()
         }
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác