Commit 37a0b9d1 authored by liwei's avatar liwei

修改了bug

parent c6ddb05b
...@@ -93,12 +93,10 @@ export function listCourseAll(query) { ...@@ -93,12 +93,10 @@ export function listCourseAll(query) {
} }
// 7.查询所有的单位管理员信息 // 7.查询所有的单位管理员信息
export function listUnitAdminAll(query) { export function listUnitAdminAll(userId) {
return request({ return request({
url: '/sysunit/queryAllUnitAdmins', url: '/sysunit/queryAllUnitAdmins?userId=' + userId,
method: 'get', method: 'get'
params: query
}) })
} }
...@@ -310,7 +310,7 @@ export default { ...@@ -310,7 +310,7 @@ export default {
} }
}, },
created() { created() {
this.getUserList() // this.getUserList()
this.getList() // 列表查询 this.getList() // 列表查询
this.getLessonType() this.getLessonType()
}, },
...@@ -342,8 +342,8 @@ export default { ...@@ -342,8 +342,8 @@ export default {
console.log('this.lessonTypeOptions:', this.lessonTypeOptions) console.log('this.lessonTypeOptions:', this.lessonTypeOptions)
}) })
}, },
getUserList() { getUserList(userId) {
listUnitAdminAll().then(res => { listUnitAdminAll(userId).then(res => {
this.userList = res.data this.userList = res.data
}) })
}, },
...@@ -461,6 +461,7 @@ export default { ...@@ -461,6 +461,7 @@ export default {
if (response.data.lessonType === '1' && response.data.lessonTypeSchool === '0') { if (response.data.lessonType === '1' && response.data.lessonTypeSchool === '0') {
this.form.lessonType = ['0'] this.form.lessonType = ['0']
} }
this.getUserList(response.data.userId)
this.open = true this.open = true
this.title = '修改单位' 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