|
@@ -369,17 +369,9 @@ export default {
|
|
|
activated () {
|
|
|
this.getList()
|
|
|
this.getRoleList()
|
|
|
- this.getEducationUsers()
|
|
|
},
|
|
|
methods: {
|
|
|
|
|
|
- getEducationUsers () {
|
|
|
- findEducationUsers().then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.educationList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
onBranchCheckAll () {
|
|
|
this.form.organIdLists = []
|
|
|
|
|
@@ -508,15 +500,23 @@ export default {
|
|
|
},
|
|
|
async checkStatus (data) {
|
|
|
let status;
|
|
|
- await hasCourseGroupRelation({ employeeId: data.id }).then(res => {
|
|
|
+ await hasCourseGroupRelation({ employeeId: data.id }).then(async res => {
|
|
|
if (res.code === 200) {
|
|
|
if (res.data.hasCourseSchedule) {
|
|
|
this.$message.error('请先交接指导老师课程')
|
|
|
status = false
|
|
|
} else {
|
|
|
if (res.data.hasCourseGroupRelation) {
|
|
|
- this.educationViseble = true
|
|
|
- status = false
|
|
|
+ let userId = data.id
|
|
|
+ await findEducationUsers({ userId }).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.educationList = res.data;
|
|
|
+ this.educationViseble = true
|
|
|
+ status = false
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
} else {
|
|
|
// 1 要弹出
|
|
|
status = true
|