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
d138a3a5
Commit
d138a3a5
authored
Jan 11, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
846f145c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
174 additions
and
87 deletions
+174
-87
employee-info.vue
src/components/school/manager/employee-info.vue
+132
-83
employee-set.vue
src/components/school/manager/employee-set.vue
+42
-4
No files found.
src/components/school/manager/employee-info.vue
View file @
d138a3a5
This diff is collapsed.
Click to expand it.
src/components/school/manager/employee-set.vue
View file @
d138a3a5
...
...
@@ -110,6 +110,19 @@
<div
class=
"Emp_Line"
></div>
<div>
修改部门
</div>
</div>
<div
class=
"row"
style=
"margin-top:20px;"
>
<div
class=
"col-6"
>
<q-radio
v-model=
"deptObj.schoolType"
:val=
"0"
label=
"本校区"
/>
<q-radio
v-model=
"deptObj.schoolType"
:val=
"1"
label=
"其他校区"
/>
</div>
</div>
<div
class=
"row"
style=
"margin-top:20px;"
v-if=
"deptObj.schoolType==1"
>
<div
class=
"col-6"
>
<q-select
filled
stack-label
@
input=
"getDepartList()"
option-value=
"SId"
option-label=
"SName"
class=
"col-6 q-pr-lg q-pb-lg"
v-model=
"deptObj.School_Id"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
emit-value
map-options
/>
</div>
</div>
<div
class=
"row"
style=
"margin-top:20px;"
>
<div
class=
"col-6"
>
<selectTree
:treeData=
'DeptList'
:defaultArray=
"returnString"
nodeKey=
"DeptId"
:multiple=
"false"
...
...
@@ -155,6 +168,9 @@
import
{
queryDeptPostList
}
from
'../../../api/system/post'
import
{
getSchoolDropdown
,
}
from
'../../../api/school/index'
import
selectTree
from
'../../../components/common/select-tree'
export
default
{
props
:
{
...
...
@@ -178,11 +194,17 @@
DeptList
:
[],
// 部门下拉
PostList
:
[],
//岗位下拉
departId
:
-
2
,
// 部门
Post_Id
:
0
//岗位
Post_Id
:
0
,
//岗位
schoolList
:
[],
//校区列表
deptObj
:
{
schoolType
:
0
,
//校区类型
School_Id
:
0
,
}
}
},
mounted
()
{
if
(
this
.
setingObj
.
type
==
4
)
{
this
.
getSchool
();
this
.
getDepartList
();
}
if
(
this
.
setingObj
.
type
==
3
)
{
...
...
@@ -190,13 +212,28 @@
}
},
methods
:
{
getSchool
()
{
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
schoolList
=
res
.
Data
;
var
obj
=
{
SName
:
'全部'
,
SId
:
0
}
this
.
schoolList
.
unshift
(
obj
);
})
},
closeShenheForm
()
{
this
.
$emit
(
'close'
)
},
//获取部门下拉数据
getDepartList
()
{
let
msg
=
{
School_Id
:
this
.
setingObj
.
selected
[
0
].
School_Id
School_Id
:
0
}
if
(
this
.
deptObj
.
schoolType
==
0
)
{
msg
.
School_Id
=
this
.
setingObj
.
selected
[
0
].
School_Id
;
}
else
{
msg
.
School_Id
=
this
.
deptObj
.
School_Id
;
}
getDeptTree
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
@@ -212,8 +249,8 @@
queryDeptPostList
(
postMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
let
obj
=
{
PostName
:
'不限'
,
PostId
:
0
PostName
:
'不限'
,
PostId
:
0
}
this
.
PostList
=
res
.
Data
;
this
.
PostList
.
unshift
(
obj
);
...
...
@@ -273,6 +310,7 @@
obj
.
AccountId
=
this
.
setingObj
.
selected
[
0
].
AccountId
;
obj
.
AccountType
=
this
.
setingObj
.
selected
[
0
].
AccountType
;
obj
.
Dept_Id
=
this
.
departId
;
obj
.
School_Id
=
this
.
deptObj
.
School_Id
;
}
UpdateEmployeeDept
(
obj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
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