OnePsycho 1 년 전
부모
커밋
1182903357
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      TEAMModelOS/ClientApp/src/view/elegant/BaseElegantDash.vue

+ 5 - 1
TEAMModelOS/ClientApp/src/view/elegant/BaseElegantDash.vue

@@ -148,11 +148,15 @@
 		methods: {
 			initDash() {
 				this.isLoading = true;
+				console.log(this.$route.name);
+				console.log(this.$parent);
+				let isArea = this.$route.name === 'areaArt'
 				this.$api.elegant
 					.findElegantStatistics({
 						scope: "school",
 						code: this.schoolCode || localStorage.getItem("login_schoolCode"),
-						periodId: this.$store.state.user.curPeriod.id
+						periodId: isArea ? null : this.$store.state.user.curPeriod.id,
+						type: isArea ? this.$parent.$parent.periodId : null
 					})
 					.then((res) => {
 						console.log(res);