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