|
@@ -44,7 +44,7 @@
|
|
|
placeholder="请选择分部"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(item, index) in organList"
|
|
|
+ v-for="(item, index) in selects.branchs"
|
|
|
:key="index"
|
|
|
:label="item.name"
|
|
|
:value="item.id"
|
|
@@ -75,7 +75,7 @@
|
|
|
filterable
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(item, index) in teacherList"
|
|
|
+ v-for="(item, index) in selects.teachers"
|
|
|
:label="item.realName"
|
|
|
:value="item.id"
|
|
|
:key="index"
|
|
@@ -349,7 +349,6 @@ import axios from "axios";
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
import load from "@/utils/loading";
|
|
|
-import { getTeacher, getEmployeeOrgan } from "@/api/buildTeam";
|
|
|
import {
|
|
|
findIsSettlementCourseSalarys,
|
|
|
openSalaryConfirm,
|
|
@@ -382,9 +381,7 @@ export default {
|
|
|
},
|
|
|
isOpen: null,
|
|
|
activeRow: null,
|
|
|
- teacherList: [],
|
|
|
tableList: [],
|
|
|
- organList: [],
|
|
|
groupTypeList: courseListType,
|
|
|
rules: {
|
|
|
// 分页规则
|
|
@@ -398,17 +395,10 @@ export default {
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
- mounted() {
|
|
|
- getTeacher().then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.teacherList = res.data;
|
|
|
- }
|
|
|
- });
|
|
|
- getEmployeeOrgan().then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.organList = res.data;
|
|
|
- }
|
|
|
- });
|
|
|
+ async mounted() {
|
|
|
+ await this.$store.dispatch('setBranchs')
|
|
|
+
|
|
|
+ await this.$store.dispatch('setTeachers')
|
|
|
// 获取分部
|
|
|
this.init();
|
|
|
},
|