|
@@ -1,8 +1,13 @@
|
|
|
<template>
|
|
|
<div class="m-container">
|
|
|
- <h2>
|
|
|
+ <h2 class="mo-tilte">
|
|
|
<el-page-header @back="onCancel"
|
|
|
:content="teacherName"></el-page-header>
|
|
|
+ <div>
|
|
|
+ <!-- 服务指标:本周 运营指标: -->
|
|
|
+ <el-button v-if="teacherInfo" type="text" @click="gotoOperating">运营指标:<span style="color:red">{{teacherInfo.operatingIndex}}%</span></el-button>
|
|
|
+ <el-button v-if="teacherInfo" type="text" @click="gotoAfterSchool">服务指标(每周):<span style="color:red">{{teacherInfo.serviceIndex}}%</span></el-button>
|
|
|
+ </div>
|
|
|
</h2>
|
|
|
<div class="m-core">
|
|
|
<!-- navMenu -->
|
|
@@ -13,7 +18,7 @@
|
|
|
lazy
|
|
|
v-if="permissionList.teacherInfo"
|
|
|
name="0">
|
|
|
- <teacherInfo v-if="activeName == 0" />
|
|
|
+ <teacherInfo v-if="activeName == 0&&teacherInfo" :teacherInfo='teacherInfo' />
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="乐团课"
|
|
|
lazy
|
|
@@ -100,6 +105,7 @@ import serveStudentList from "@/views/teacherManager/teacherDetail/components/se
|
|
|
import calendarList from '@/views/teacherManager/teacherDetail/components/calendarList'
|
|
|
import weeklyCalendar from '@/views/teacherManager/teacherDetail/components/weeklyCalendar'
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
+import { teacherGet } from '@/api/teacherManager'
|
|
|
export default {
|
|
|
components: {
|
|
|
teacherRecord,
|
|
@@ -137,14 +143,23 @@ export default {
|
|
|
calendarList: permission("/teacherDetail/calendarList"),
|
|
|
weeklyCalendar: permission("/teacherDetail/weeklyCalendar"),
|
|
|
},
|
|
|
+ teacherInfo:null
|
|
|
};
|
|
|
},
|
|
|
activated () {
|
|
|
- this.teacherName = this.$route.query.teacherName;
|
|
|
- this.activeName = "0";
|
|
|
+
|
|
|
},
|
|
|
|
|
|
created () {
|
|
|
+ this.teacherName = this.$route.query.teacherName;
|
|
|
+ this.teacherId = this.$route.query.teacherId
|
|
|
+ this.activeName = "0";
|
|
|
+ teacherGet({ teacherId: this.teacherId }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.teacherInfo = res.data
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
handleClick (val, event) {
|
|
@@ -155,9 +170,28 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: "/business/teacherList"
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ gotoAfterSchool() {
|
|
|
+ // 需要的参数 id
|
|
|
+ this.$router.push({
|
|
|
+ path: "/operateManager/serverIndexList",
|
|
|
+ query: { teacherId: this.teacherId, activeIndex: "2" },
|
|
|
+ });
|
|
|
+ },
|
|
|
+ gotoOperating() {
|
|
|
+ this.$router.push({
|
|
|
+ path: "/operateManager/operateStudent",
|
|
|
+ query: { teacherId: this.teacherId, operatingTag: "1" },
|
|
|
+ });
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
-<style lang="scss">
|
|
|
+<style lang="scss" scoped>
|
|
|
+.mo-tilte {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: row;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
</style>
|