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
010b7bbc
Commit
010b7bbc
authored
Mar 24, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
9de1fefc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
145 additions
and
150 deletions
+145
-150
sysuser.vue
src/pages/school/sysuser.vue
+145
-150
No files found.
src/pages/school/sysuser.vue
View file @
010b7bbc
...
@@ -34,36 +34,31 @@
...
@@ -34,36 +34,31 @@
v-model=
"msg.Post_Id"
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
emit-value
map-options
/>
v-model=
"msg.Post_Id"
ref=
"Post_Id"
:options=
"PostList"
label=
"岗位"
:dense=
"false"
emit-value
map-options
/>
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-select
filled
@
input=
"resetSearch"
clearable
stack-label
option-value=
"Id"
option-label=
"Name"
<q-select
filled
@
input=
"resetSearch"
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.LeaveStatus"
ref=
"LeaveStatus"
:options=
"LeaveStatusList"
label=
"在职状态"
:dense=
"false"
v-model=
"msg.IsLeave "
:options=
"LeaveStatusList"
label=
"在职状态"
:dense=
"false"
emit-value
map-options
/>
emit-value
map-options
/>
</div>
</div>
<div
class=
"col-3 Sysuser_Date"
>
<div
class=
"col-3 Sysuser_Date"
>
<q-field
filled
>
<q-field
filled
>
<template
v-slot:control
>
<template
v-slot:control
>
<el-date-picker
v-model=
"dateListOne"
@
change=
"resetSearch()"
value-format=
"yyyy-MM-dd"
type=
"daterange"
style=
"border:none;"
<el-date-picker
v-model=
"dateListOne"
@
change=
"resetSearch()"
value-format=
"yyyy-MM-dd"
type=
"daterange"
style=
"border:none;"
range-separator=
"至"
start-placeholder=
"入职开始日期"
end-placeholder=
"入职结束日期"
>
range-separator=
"至"
start-placeholder=
"入职开始日期"
end-placeholder=
"入职结束日期"
/>
</el-date-picker>
</
template
>
</
template
>
</q-field>
</q-field>
</div>
</div>
<div
class=
"col-3 Sysuser_Date"
>
<div
class=
"col-3 Sysuser_Date"
>
<q-field
filled
>
<q-field
filled
>
<
template
v-slot:control
>
<
template
v-slot:control
>
<el-date-picker
v-model=
"dateListThree"
@
change=
"resetSearch()"
value-format=
"yyyy-MM-dd"
type=
"daterange"
style=
"border:none;"
<el-date-picker
v-model=
"dateListThree"
@
change=
"resetSearch()"
value-format=
"yyyy-MM-dd"
type=
"daterange"
style=
"border:none;"
range-separator=
"至"
start-placeholder=
"离职开始日期"
end-placeholder=
"离职结束日期"
>
range-separator=
"至"
start-placeholder=
"离职开始日期"
end-placeholder=
"离职结束日期"
/>
</el-date-picker>
</
template
>
</
template
>
</q-field>
</q-field>
</div>
</div>
<div
class=
"col-3 Sysuser_Date"
>
<div
class=
"col-3 Sysuser_Date"
>
<q-field
filled
class=
"col-6"
>
<q-field
filled
class=
"col-6"
>
<
template
v-slot:control
>
<
template
v-slot:control
>
<el-date-picker
v-model=
"dateListTwo"
@
change=
"resetSearch()"
format=
"MM-dd"
value-format=
"yyyy-MM-dd"
<el-date-picker
v-model=
"dateListTwo"
@
change=
"resetSearch()"
format=
"MM-dd"
value-format=
"yyyy-MM-dd"
type=
"daterange"
style=
"border:none;"
range-separator=
"至"
start-placeholder=
"生日开始时间"
type=
"daterange"
style=
"border:none;"
range-separator=
"至"
start-placeholder=
"生日开始时间"
end-placeholder=
"生日结束时间"
>
end-placeholder=
"生日结束时间"
/>
</el-date-picker>
</
template
>
</
template
>
</q-field>
</q-field>
</div>
</div>
...
@@ -73,13 +68,12 @@
...
@@ -73,13 +68,12 @@
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
selection=
"multiple"
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
selection=
"multiple"
:selected
.
sync=
"selected"
class=
"sticky-right-column-table sticky-column-table"
separator=
"none"
:data=
"data"
:selected
.
sync=
"selected"
class=
"sticky-right-column-table sticky-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"Id"
>
:columns=
"columns"
row-key=
"Id"
>
<
template
v-slot:top
=
"props"
>
<
template
v-slot:top
>
<div
class=
"col-2 q-table__title"
>
员工管理
</div>
<div
class=
"col-2 q-table__title"
>
员工管理
</div>
<q-space
/>
<q-space
/>
<div
class=
"page-option"
>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"同步到微信"
@
click=
"synchronization()"
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
label=
"同步到微信"
@
click=
"synchronization()"
v-if=
"DeptEmpEnable==1"
/>
v-if=
"DeptEmpEnable==1"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增员工"
@
click=
"EditManager(null,0)"
/>
<q-btn
color=
"accent"
size=
"sm"
class=
"q-mr-md"
icon=
"add"
label=
"新增员工"
@
click=
"EditManager(null,0)"
/>
<q-btn-dropdown
outline
size=
"sm"
color=
"dark"
label=
"更多"
>
<q-btn-dropdown
outline
size=
"sm"
color=
"dark"
label=
"更多"
>
<q-list>
<q-list>
...
@@ -389,7 +383,7 @@
...
@@ -389,7 +383,7 @@
School_Id
:
""
,
//校区
School_Id
:
""
,
//校区
Dept_Id
:
0
,
//部门
Dept_Id
:
0
,
//部门
Post_Id
:
""
,
//岗位编号
Post_Id
:
""
,
//岗位编号
LeaveStatus
:
0
,
//在职状态
IsLeave
:
1
,
//在职状态
StartEntryTime
:
""
,
//入职开始时间
StartEntryTime
:
""
,
//入职开始时间
EndEntryTime
:
""
,
//入职结束时间
EndEntryTime
:
""
,
//入职结束时间
StartLeaveTime
:
""
,
//开始离职时间
StartLeaveTime
:
""
,
//开始离职时间
...
@@ -406,7 +400,15 @@
...
@@ -406,7 +400,15 @@
resetLoading
:
false
,
resetLoading
:
false
,
returnString
:
[],
//默认岗位
returnString
:
[],
//默认岗位
PostList
:
[],
//岗位
PostList
:
[],
//岗位
LeaveStatusList
:
[],
//在职状态
LeaveStatusList
:
[{
Id
:
1
,
Name
:
"在职"
},
{
Id
:
2
,
Name
:
"离职"
}
],
//在职状态
dateListOne
:
[],
//入职-离职日期
dateListOne
:
[],
//入职-离职日期
dateListTwo
:
[],
//生日开始-结束日期
dateListTwo
:
[],
//生日开始-结束日期
dateListThree
:
[],
//开始-结束离职日期
dateListThree
:
[],
//开始-结束离职日期
...
@@ -425,7 +427,7 @@
...
@@ -425,7 +427,7 @@
},
},
Employeelist
:
[],
Employeelist
:
[],
AllEmployeelist
:
[],
AllEmployeelist
:
[],
DeptEmpEnable
:
0
,
//是否显示企业微信信息 1 显示
DeptEmpEnable
:
0
,
//是否显示企业微信信息 1 显示
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -434,9 +436,8 @@
...
@@ -434,9 +436,8 @@
this
.
getManager
();
this
.
getManager
();
this
.
getDepartList
(
0
);
this
.
getDepartList
(
0
);
this
.
queryPostList
(
0
);
this
.
queryPostList
(
0
);
this
.
getLeaveState
();
this
.
queryEmployee
()
this
.
queryEmployee
()
this
.
getmicrodeploy
()
//获取企业微信的配置
this
.
getmicrodeploy
()
//获取企业微信的配置
},
},
methods
:
{
methods
:
{
resetSearch
()
{
resetSearch
()
{
...
@@ -695,14 +696,7 @@
...
@@ -695,14 +696,7 @@
}
}
})
})
},
},
//获取在职状态
getLeaveState
()
{
GetLeaveStatus
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
LeaveStatusList
=
res
.
Data
;
}
})
},
getType
(
num
)
{
getType
(
num
)
{
this
.
setObj
.
type
=
num
;
this
.
setObj
.
type
=
num
;
if
(
this
.
selected
.
length
==
0
)
{
if
(
this
.
selected
.
length
==
0
)
{
...
@@ -784,8 +778,10 @@
...
@@ -784,8 +778,10 @@
},
},
queryEmployee
()
{
//下拉人员列表
queryEmployee
()
{
//下拉人员列表
queryEmployee
({
IsLeave
:
1
}).
then
(
res
=>
{
queryEmployee
({
IsLeave
:
1
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
AllEmployeelist
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
Data
));
this
.
AllEmployeelist
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
Data
));
this
.
Employeelist
=
res
.
Data
this
.
Employeelist
=
res
.
Data
...
@@ -805,13 +801,13 @@
...
@@ -805,13 +801,13 @@
}
}
})
})
},
},
khHandover
(
row
)
{
//客户交接
khHandover
(
row
)
{
//客户交接
this
.
joinMsg
.
TransferUserId
=
row
.
EmAccountId
this
.
joinMsg
.
TransferUserId
=
row
.
EmAccountId
this
.
joinMsg
.
CustomerTransfer
=
'1'
this
.
joinMsg
.
CustomerTransfer
=
'1'
this
.
joinMsg
.
ChannelTransfer
=
'1'
this
.
joinMsg
.
ChannelTransfer
=
'1'
this
.
isDetails
=
true
this
.
isDetails
=
true
},
},
saveOrderInfo
()
{
//保存
saveOrderInfo
()
{
//保存
if
(
this
.
joinMsg
.
ReceiveUserId
==
''
)
{
if
(
this
.
joinMsg
.
ReceiveUserId
==
''
)
{
this
.
$q
.
notify
({
this
.
$q
.
notify
({
type
:
'negative'
,
type
:
'negative'
,
...
@@ -864,7 +860,6 @@
...
@@ -864,7 +860,6 @@
}
}
},
},
}
}
</
script
>
</
script
>
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/css/table.sass')
...
...
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