|
@@ -25,7 +25,7 @@
|
|
|
@change="search"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(item, index) in selects.branchs"
|
|
|
+ v-for="(item, index) in specialList"
|
|
|
:key="index"
|
|
|
:label="item.name"
|
|
|
:value="item.id"
|
|
@@ -43,7 +43,9 @@
|
|
|
>
|
|
|
</el-form-item>
|
|
|
</save-form>
|
|
|
- <a class="msg" v-if="noTeacherStudentNum>0">当前分部有{{noTeacherStudentNum}}名学员没有关联指导老师</a>
|
|
|
+ <a class="msg" v-if="noTeacherStudentNum > 0" @click="gotoStudentList"
|
|
|
+ >当前分部有{{ noTeacherStudentNum }}名学员没有关联指导老师</a
|
|
|
+ >
|
|
|
<div class="tableWrap">
|
|
|
<el-table
|
|
|
style="width: 100%"
|
|
@@ -64,19 +66,15 @@
|
|
|
align="center"
|
|
|
prop="cloudStudyUseStudentNum"
|
|
|
label="使用人数"
|
|
|
-
|
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
|
prop="cloudStudyUseStudentDuty"
|
|
|
label="使用人数比"
|
|
|
-
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>
|
|
|
- {{scope.row.cloudStudyUseStudentDuty}}%
|
|
|
- </div>
|
|
|
- </template>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>{{ scope.row.cloudStudyUseStudentDuty }}%</div>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
@@ -161,7 +159,8 @@ export default {
|
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
|
},
|
|
|
studentVisible: false,
|
|
|
- noTeacherStudentNum:0,
|
|
|
+ noTeacherStudentNum: 0,
|
|
|
+ specialList:[]
|
|
|
};
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -170,6 +169,10 @@ export default {
|
|
|
async mounted() {
|
|
|
// 获取分部
|
|
|
await this.$store.dispatch("setBranchs");
|
|
|
+ const arr = [36,39,41,42,43,44,45,46,47,48,49,50,52,54,55,56]
|
|
|
+ this.specialList = this.selects.branchs.filter((item) => {
|
|
|
+ return arr.indexOf(item.id) == -1;
|
|
|
+ });
|
|
|
if (this.$route.params?.organId) {
|
|
|
this.searchForm.organId = this.$route.params.organId;
|
|
|
}
|
|
@@ -189,8 +192,8 @@ export default {
|
|
|
});
|
|
|
this.tableList = res.data.rows;
|
|
|
this.rules.total = res.data.total;
|
|
|
- this.noTeacherStudentNum = res.data.statInfo.noTeacherStudentNum
|
|
|
- this.$refs.saveForm.save();
|
|
|
+ this.noTeacherStudentNum = res.data.statInfo.noTeacherStudentNum;
|
|
|
+ this.$refs.saveForm.save();
|
|
|
} catch (e) {
|
|
|
console.log(e);
|
|
|
}
|
|
@@ -198,16 +201,21 @@ export default {
|
|
|
search() {
|
|
|
this.rules.page = 1;
|
|
|
this.getList();
|
|
|
-
|
|
|
},
|
|
|
onReSet() {},
|
|
|
gotoDetail(row) {
|
|
|
this.$router.push({
|
|
|
name: "studentList",
|
|
|
- params: { teacherId: row.teacherId },
|
|
|
+ params: { teacherId: row.teacherId, organId: this.searchForm.organId },
|
|
|
});
|
|
|
// this.studentVisible = true;
|
|
|
},
|
|
|
+ gotoStudentList() {
|
|
|
+ this.$router.push({
|
|
|
+ name: "studentList",
|
|
|
+ params: { hasTeacher:'0', organId: this.searchForm.organId },
|
|
|
+ });
|
|
|
+ },
|
|
|
goback() {
|
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
|
this.$router.push({ path: "/main/main?tabrouter=cloudDate" });
|