|
@@ -7,23 +7,28 @@
|
|
v-if="permission('/teamBaseInfo')"
|
|
v-if="permission('/teamBaseInfo')"
|
|
name="1"
|
|
name="1"
|
|
>
|
|
>
|
|
- <baseInfo v-if="activeIndex==1"/>
|
|
|
|
|
|
+ <baseInfo v-if="activeIndex == 1" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
- <el-tab-pane
|
|
|
|
- label="学员&师资"
|
|
|
|
- lazy
|
|
|
|
- v-if="permission('/teamBaseInfo')"
|
|
|
|
- name="2"
|
|
|
|
- >
|
|
|
|
- <studentAndTeacher v-if="activeIndex==2"/>
|
|
|
|
|
|
+ <el-tab-pane lazy v-if="permission('/teamBaseInfo')" name="2">
|
|
|
|
+ <el-badge
|
|
|
|
+ slot="label"
|
|
|
|
+ class="badge"
|
|
|
|
+ is-dot
|
|
|
|
+ :hidden="!planDtosList.length>0"
|
|
|
|
+ >学员&师资</el-badge
|
|
|
|
+ >
|
|
|
|
+ <studentAndTeacher v-if="activeIndex == 2" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
- <el-tab-pane
|
|
|
|
- label="训练规划"
|
|
|
|
- lazy
|
|
|
|
- v-if="permission('/teamBaseInfo')"
|
|
|
|
- name="3"
|
|
|
|
- >
|
|
|
|
- <trainPlan v-if="activeIndex==3"/>
|
|
|
|
|
|
+ <el-tab-pane lazy v-if="permission('/teamBaseInfo')" name="3">
|
|
|
|
+ <el-badge
|
|
|
|
+ slot="label"
|
|
|
|
+ class="badge"
|
|
|
|
+ is-dot
|
|
|
|
+ :hidden="!planDtosList.length>0"
|
|
|
|
+
|
|
|
|
+ >训练规划</el-badge
|
|
|
|
+ >
|
|
|
|
+ <trainPlan :planDtosList="planDtosList" v-if="activeIndex == 3" @getPlanError="getPlanError"/>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
label="训练时长"
|
|
label="训练时长"
|
|
@@ -31,7 +36,7 @@
|
|
v-if="permission('/teamBaseInfo')"
|
|
v-if="permission('/teamBaseInfo')"
|
|
name="4"
|
|
name="4"
|
|
>
|
|
>
|
|
- <trainTimer v-if="activeIndex==4"/>
|
|
|
|
|
|
+ <trainTimer v-if="activeIndex == 4" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
label="作业情况"
|
|
label="作业情况"
|
|
@@ -39,7 +44,7 @@
|
|
v-if="permission('/teamBaseInfo')"
|
|
v-if="permission('/teamBaseInfo')"
|
|
name="5"
|
|
name="5"
|
|
>
|
|
>
|
|
- <workStatus v-if="activeIndex==5"/>
|
|
|
|
|
|
+ <workStatus v-if="activeIndex == 5" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
label="训练照片"
|
|
label="训练照片"
|
|
@@ -47,7 +52,7 @@
|
|
v-if="permission('/teamBaseInfo')"
|
|
v-if="permission('/teamBaseInfo')"
|
|
name="6"
|
|
name="6"
|
|
>
|
|
>
|
|
- <training-photos v-if="activeIndex==6"/>
|
|
|
|
|
|
+ <training-photos v-if="activeIndex == 6" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
label="获奖证书"
|
|
label="获奖证书"
|
|
@@ -55,7 +60,7 @@
|
|
v-if="permission('/teamBaseInfo')"
|
|
v-if="permission('/teamBaseInfo')"
|
|
name="9"
|
|
name="9"
|
|
>
|
|
>
|
|
- <photo-detail type="SHOW" v-if="activeIndex==9"/>
|
|
|
|
|
|
+ <photo-detail type="SHOW" v-if="activeIndex == 9" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
label="乐团资讯"
|
|
label="乐团资讯"
|
|
@@ -63,23 +68,23 @@
|
|
v-if="permission('/teamBaseInfo')"
|
|
v-if="permission('/teamBaseInfo')"
|
|
name="7"
|
|
name="7"
|
|
>
|
|
>
|
|
- <teamInfo v-if="activeIndex==7"/>
|
|
|
|
|
|
+ <teamInfo v-if="activeIndex == 7" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
- <el-tab-pane
|
|
|
|
|
|
+ <el-tab-pane
|
|
label="满意度调查"
|
|
label="满意度调查"
|
|
lazy
|
|
lazy
|
|
v-if="permission('/teamBaseInfo')"
|
|
v-if="permission('/teamBaseInfo')"
|
|
name="8"
|
|
name="8"
|
|
>
|
|
>
|
|
- <survey v-if="activeIndex==8"/>
|
|
|
|
|
|
+ <survey v-if="activeIndex == 8" />
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
</tab-router>
|
|
</tab-router>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import { permission } from "@/utils/directivePage";
|
|
import { permission } from "@/utils/directivePage";
|
|
-import trainingPhotos from './training-photos'
|
|
|
|
-import photoDetail from '@/views/photo-detail'
|
|
|
|
|
|
+import trainingPhotos from "./training-photos";
|
|
|
|
+import photoDetail from "@/views/photo-detail";
|
|
import baseInfo from "./archicesComponents/baseInfo";
|
|
import baseInfo from "./archicesComponents/baseInfo";
|
|
import certificate from "./archicesComponents/certificate";
|
|
import certificate from "./archicesComponents/certificate";
|
|
import studentAndTeacher from "./archicesComponents/studentAndTeacher";
|
|
import studentAndTeacher from "./archicesComponents/studentAndTeacher";
|
|
@@ -88,10 +93,11 @@ import teamInfo from "./archicesComponents/teamInfo";
|
|
import trainPlan from "./archicesComponents/trainPlan";
|
|
import trainPlan from "./archicesComponents/trainPlan";
|
|
import trainTimer from "./archicesComponents/trainTimer";
|
|
import trainTimer from "./archicesComponents/trainTimer";
|
|
import workStatus from "./archicesComponents/workStatus";
|
|
import workStatus from "./archicesComponents/workStatus";
|
|
|
|
+import { getExceptionPlan } from './archicesComponents/api'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- 'training-photos': trainingPhotos,
|
|
|
|
- 'photo-detail': photoDetail,
|
|
|
|
|
|
+ "training-photos": trainingPhotos,
|
|
|
|
+ "photo-detail": photoDetail,
|
|
baseInfo,
|
|
baseInfo,
|
|
certificate,
|
|
certificate,
|
|
studentAndTeacher,
|
|
studentAndTeacher,
|
|
@@ -104,15 +110,48 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
activeIndex: "training-photos",
|
|
activeIndex: "training-photos",
|
|
|
|
+ planDtosList:[],
|
|
|
|
+ year:'',
|
|
|
|
+ term:''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- mounted() {},
|
|
|
|
|
|
+ mounted() {
|
|
|
|
+ let date = new Date();
|
|
|
|
+ this.year = String(date.getFullYear());
|
|
|
|
+ // console.log('year',date.getFullYear())
|
|
|
|
+ let month = date.getMonth() + 1;
|
|
|
|
+ if (month > 3 && month < 8) {
|
|
|
|
+ this.term = "0";
|
|
|
|
+ } else {
|
|
|
|
+ this.term = "1";
|
|
|
|
+ }
|
|
|
|
+ this.getPlanError();
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
permission(str) {
|
|
permission(str) {
|
|
return permission(str);
|
|
return permission(str);
|
|
},
|
|
},
|
|
|
|
+ async getPlanError(obj) {
|
|
|
|
+ if(obj){
|
|
|
|
+ this.year = obj.year
|
|
|
|
+ this.term = obj.term
|
|
|
|
+ }
|
|
|
|
+ try{
|
|
|
|
+ const res = await getExceptionPlan({musicGroupId:this.$route.query.id,year:this.year,term:this.term})
|
|
|
|
+ this.planDtosList = res.data.waitCourseTrainPlanDtos
|
|
|
|
+ }catch(e){
|
|
|
|
+ console.log(e)
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.badge {
|
|
|
|
+ /deep/.el-badge__content.is-fixed.is-dot {
|
|
|
|
+ top: 9px;
|
|
|
|
+ right: 2px;
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|