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
926ee39d
Commit
926ee39d
authored
Dec 11, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
45ec3c08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
55 deletions
+53
-55
employee-set.vue
src/components/school/manager/employee-set.vue
+53
-55
No files found.
src/components/school/manager/employee-set.vue
View file @
926ee39d
...
...
@@ -12,16 +12,17 @@
.employee_Dialog
.EMP_Main
{
margin
:
20px
0
;
}
.employee_Dialog
.EMPList
{
width
:
65px
;
height
:
auto
;
display
:
inline-block
;
display
:
inline-block
;
background-color
:
#F0F5FB
;
text-align
:
center
;
color
:
#2D2D2D
;
font-size
:
12px
;
padding
:
6px
0
;
margin
:
0
10px
10px
0
;
margin
:
0
10px
10px
0
;
}
.employee_Dialog
.Emp_Line
{
...
...
@@ -40,14 +41,16 @@
.employee_Dialog
.drawer_Span
{
margin-left
:
10px
;
}
.employee_Dialog
.emp_lingdaiDiv
{
width
:
30px
;
height
:
30px
;
.employee_Dialog
.emp_lingdaiDiv
{
width
:
30px
;
height
:
30px
;
background-color
:
#DADBFB
;
color
:
#8175FB
;
border-radius
:
50%
;
border-radius
:
50%
;
text-align
:
center
;
}
}
</
style
>
<
template
>
<q-dialog
v-model=
"persistent"
maximized
full-height
seamless
position=
"right"
@
hide=
"closeShenheForm"
>
...
...
@@ -123,17 +126,13 @@
</div>
<div
class=
"row"
style=
"margin-top:20px;"
>
<div
class=
"col-6"
>
<q-select
filled
stack-label
option-value=
"PostId"
option-label=
"PostName"
v-model=
"Post_Id"
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
<q-select
filled
stack-label
option-value=
"PostId"
option-label=
"PostName"
v-model=
"Post_Id"
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
class=
"col-6 q-pr-lg q-pb-lg"
emit-value
map-options
/>
</div>
</div>
</div>
<div
style=
"text-align:center"
>
<q-btn
color=
"primary"
label=
"确定"
@
click=
"saveReuslt()"
style=
"width:400px;"
/>
<!-- <q-btn size="xs" @click="saveReuslt()" icon="iconfont icon-chenggong" color="primary" style="font-weight:400"
class="q-mr-md" label="确定" :loading="saveLoading" /> -->
</div>
</q-card>
<div
class=
"dialog-out-close"
@
click=
"closeShenheForm"
...
...
@@ -154,7 +153,7 @@
}
from
'../../../api/system/dept.js'
//岗位
import
{
ge
tPostList
queryDep
tPostList
}
from
'../../../api/system/post'
import
selectTree
from
'../../../components/common/select-tree'
export
default
{
...
...
@@ -171,22 +170,22 @@
return
{
persistent
:
true
,
saveLoading
:
false
,
LeveaMsg
:{
LeaveStatus
:
4
,
//是否离职 1是 2否
LeaveTime
:
''
//离职时间
LeveaMsg
:
{
LeaveStatus
:
4
,
//是否离职 1是 2否
LeaveTime
:
''
//离职时间
},
returnString
:[],
//部门默认
returnString
:
[],
//部门默认
DeptList
:
[],
// 部门下拉
PostList
:[],
//岗位下拉
departId
:
-
2
,
// 部门
Post_Id
:
0
//岗位
PostList
:
[],
//岗位下拉
departId
:
-
2
,
// 部门
Post_Id
:
0
//岗位
}
},
mounted
()
{
if
(
this
.
setingObj
.
type
==
4
)
{
if
(
this
.
setingObj
.
type
==
4
)
{
this
.
getDepartList
();
}
if
(
this
.
setingObj
.
type
==
3
)
{
if
(
this
.
setingObj
.
type
==
3
)
{
this
.
queryPostList
();
}
},
...
...
@@ -208,15 +207,14 @@
//获取岗位下拉
queryPostList
()
{
var
postMsg
=
{
RB_Dept_Id
:
this
.
setingObj
.
selected
[
0
].
Dept_Id
QDeptIds
:
this
.
setingObj
.
selected
[
0
].
Dept_Id
};
ge
tPostList
(
postMsg
).
then
(
res
=>
{
queryDep
tPostList
(
postMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
PostList
=
res
.
Data
;
}
})
},
//选择部门
getChild
(
deptArray
)
{
if
(
deptArray
&&
deptArray
!=
''
)
{
...
...
@@ -225,9 +223,9 @@
},
//保存信息
saveReuslt
()
{
if
(
this
.
setingObj
.
type
==
1
)
{
let
Msg
=
[];
if
(
this
.
LeveaMsg
.
LeaveTime
==
''
)
{
if
(
this
.
setingObj
.
type
==
1
)
{
let
Msg
=
[];
if
(
this
.
LeveaMsg
.
LeaveTime
==
''
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
...
...
@@ -235,14 +233,14 @@
})
return
;
}
if
(
this
.
setingObj
.
selected
.
length
>
0
)
{
this
.
setingObj
.
selected
.
forEach
(
x
=>
{
if
(
this
.
setingObj
.
selected
.
length
>
0
)
{
this
.
setingObj
.
selected
.
forEach
(
x
=>
{
let
obj
=
{
Id
:
x
.
Id
,
AccountId
:
x
.
AccountId
,
AccountType
:
x
.
AccountType
,
LeaveStatus
:
this
.
LeveaMsg
.
LeaveStatus
,
LeaveTime
:
this
.
LeveaMsg
.
LeaveTime
Id
:
x
.
Id
,
AccountId
:
x
.
AccountId
,
AccountType
:
x
.
AccountType
,
LeaveStatus
:
this
.
LeveaMsg
.
LeaveStatus
,
LeaveTime
:
this
.
LeveaMsg
.
LeaveTime
}
Msg
.
push
(
obj
);
})
...
...
@@ -254,9 +252,9 @@
}
})
}
if
(
this
.
setingObj
.
type
==
4
)
{
let
Msg
=
[];
if
(
this
.
departId
==-
2
)
{
if
(
this
.
setingObj
.
type
==
4
)
{
let
Msg
=
[];
if
(
this
.
departId
==
-
2
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
...
...
@@ -264,12 +262,12 @@
})
return
;
}
let
obj
=
{};
if
(
this
.
setingObj
.
selected
.
length
>
0
)
{
obj
.
Id
=
this
.
setingObj
.
selected
[
0
].
Id
;
obj
.
AccountId
=
this
.
setingObj
.
selected
[
0
].
AccountId
;
obj
.
AccountType
=
this
.
setingObj
.
selected
[
0
].
AccountType
;
obj
.
Dept_Id
=
this
.
departId
;
let
obj
=
{};
if
(
this
.
setingObj
.
selected
.
length
>
0
)
{
obj
.
Id
=
this
.
setingObj
.
selected
[
0
].
Id
;
obj
.
AccountId
=
this
.
setingObj
.
selected
[
0
].
AccountId
;
obj
.
AccountType
=
this
.
setingObj
.
selected
[
0
].
AccountType
;
obj
.
Dept_Id
=
this
.
departId
;
}
UpdateEmployeeDept
(
obj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
...
...
@@ -278,8 +276,8 @@
}
})
}
if
(
this
.
setingObj
.
type
==
3
)
{
if
(
this
.
Post_Id
==
0
)
{
if
(
this
.
setingObj
.
type
==
3
)
{
if
(
this
.
Post_Id
==
0
)
{
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
...
...
@@ -287,20 +285,20 @@
})
return
;
}
let
obj
=
{};
if
(
this
.
setingObj
.
selected
.
length
>
0
)
{
obj
.
Id
=
this
.
setingObj
.
selected
[
0
].
Id
;
obj
.
AccountId
=
this
.
setingObj
.
selected
[
0
].
AccountId
;
obj
.
AccountType
=
this
.
setingObj
.
selected
[
0
].
AccountType
;
obj
.
Post_Id
=
this
.
Post_Id
;
let
obj
=
{};
if
(
this
.
setingObj
.
selected
.
length
>
0
)
{
obj
.
Id
=
this
.
setingObj
.
selected
[
0
].
Id
;
obj
.
AccountId
=
this
.
setingObj
.
selected
[
0
].
AccountId
;
obj
.
AccountType
=
this
.
setingObj
.
selected
[
0
].
AccountType
;
obj
.
Post_Id
=
this
.
Post_Id
;
}
UpdateEmployeePost
(
obj
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$emit
(
'success'
);
this
.
$emit
(
'close'
)
}
})
}
})
}
},
GetFirst
(
val
)
{
if
(
val
)
{
...
...
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