Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
0560aa6b
Commit
0560aa6b
authored
Nov 27, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
8ad39b7c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
dept.js
src/api/system/dept.js
+13
-0
dept-form.vue
src/components/system/dept-form.vue
+1
-1
sysuser.vue
src/pages/school/sysuser.vue
+2
-1
No files found.
src/api/system/dept.js
View file @
0560aa6b
...
...
@@ -76,3 +76,16 @@ export function setDeptStatusInfo(data) {
data
});
}
/**
* 获取下级部门
* @param DeptId 上级部门编号
*/
export
function
getChildDepartment
(
DeptId
)
{
return
request
({
url
:
'/User/RemoveDept'
,
method
:
'post'
,
data
:{
DeptId
:
DeptId
}
});
}
src/components/system/dept-form.vue
View file @
0560aa6b
...
...
@@ -9,7 +9,7 @@
<div
class=
"row wrap"
>
<q-select
filled
stack-label
option-value=
"SId"
option-label=
"SName"
v-model=
"objOption.School_Id"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
:rules=
"[val => !!val || '请选择所属校区']"
/>
map-options
/>
<q-input
filled
stack-label
maxlength=
"20"
:dense=
"false"
v-model=
"objOption.DeptName"
ref=
"DeptName"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"部门名称"
:rules=
"[val => !!val || '请填写部门名称']"
/>
<q-select
filled
stack-label
option-value=
"value"
option-label=
"label"
v-model=
"objOption.DeptTier"
...
...
src/pages/school/sysuser.vue
View file @
0560aa6b
...
...
@@ -82,6 +82,7 @@
import
{
resetPassword
}
from
'../../api/users/user.js'
import
{
getChildDepartment
}
from
'../../api/system/dept.js'
import
managerForm
from
'../../components/school/manager/manager-form'
export
default
{
meta
:
{
...
...
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