Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
tea-resources-web
Commits
37a0b9d1
Commit
37a0b9d1
authored
Sep 02, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了bug
parent
c6ddb05b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
sysUnit.js
src/api/sysUnit.js
+3
-5
index.vue
src/views/courseInformation/unitManagement/index.vue
+4
-3
No files found.
src/api/sysUnit.js
View file @
37a0b9d1
...
@@ -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
})
})
}
}
src/views/courseInformation/unitManagement/index.vue
View file @
37a0b9d1
...
@@ -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
=
'修改单位'
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment