Commit 37a0b9d1 authored by liwei's avatar liwei

修改了bug

parent c6ddb05b
......@@ -93,12 +93,10 @@ export function listCourseAll(query) {
}
// 7.查询所有的单位管理员信息
export function listUnitAdminAll(query) {
export function listUnitAdminAll(userId) {
return request({
url: '/sysunit/queryAllUnitAdmins',
method: 'get',
params: query
url: '/sysunit/queryAllUnitAdmins?userId=' + userId,
method: 'get'
})
}
......@@ -310,7 +310,7 @@ export default {
}
},
created() {
this.getUserList()
// this.getUserList()
this.getList() // 列表查询
this.getLessonType()
},
......@@ -342,8 +342,8 @@ export default {
console.log('this.lessonTypeOptions:', this.lessonTypeOptions)
})
},
getUserList() {
listUnitAdminAll().then(res => {
getUserList(userId) {
listUnitAdminAll(userId).then(res => {
this.userList = res.data
})
},
......@@ -461,6 +461,7 @@ export default {
if (response.data.lessonType === '1' && response.data.lessonTypeSchool === '0') {
this.form.lessonType = ['0']
}
this.getUserList(response.data.userId)
this.open = true
this.title = '修改单位'
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment