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
8ad39b7c
Commit
8ad39b7c
authored
Nov 27, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
174cd757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
60 deletions
+65
-60
sysuser.vue
src/pages/school/sysuser.vue
+65
-60
No files found.
src/pages/school/sysuser.vue
View file @
8ad39b7c
...
...
@@ -3,19 +3,19 @@
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.MName"
label=
"姓名"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.MTel"
label=
"电话"
/>
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.EmployeeName"
label=
"员工姓名/账号"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
clearable
filled
stack-label
option-value=
"SId"
option-label=
"SName"
v-model=
"schoolTemp"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.Status"
:options=
"AuditOpts"
emit-value
map-options
label=
"状态"
/>
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.MTel"
label=
"电话"
/>
</div>
</div>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"新增管理者"
@
click=
"EditManager(null)"
/>
...
...
@@ -23,18 +23,18 @@
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
title=
"
后台用户信息
"
:data=
"data"
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
title=
"
员工管理
"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-
MHead
=
"props"
>
<template
v-slot:body-cell-
EmployeeIcon
=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-avatar
size=
"md"
v-if=
"props.value"
>
<img
:src=
"props.value"
/>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
M
Name
}}
</q-avatar>
{{
props
.
row
.
Employee
Name
}}
</q-avatar>
</q-td>
</
template
>
<
template
v-slot:body-cell-
M
Name=
"props"
>
<
template
v-slot:body-cell-
Employee
Name=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"text-blue cursor-pointer"
>
{{
props
.
value
}}
</div>
</q-td>
...
...
@@ -59,12 +59,10 @@
<div
style=
"min-width:190px;width:100%"
>
<q-btn
v-if=
"props.row.ManagerAccount==''"
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"创建账号"
@
click=
"createAccount(props.row.MId)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"重置密码"
@
click=
"resetPw(props.row.MId)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditManager(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-ziyuan"
color=
"warning"
style=
"font-weight:400"
class=
"q-mr-xs"
label=
"更多"
@
click=
"resetPw(props.row.MId)"
/>
</div>
</q-td>
</
template
>
...
...
@@ -96,28 +94,22 @@
return
{
currentUrl
:
""
,
columns
:
[{
name
:
'
MHead
'
,
name
:
'
EmployeeIcon
'
,
label
:
''
,
field
:
'
MHead
'
,
field
:
'
EmployeeIcon
'
,
align
:
'left'
,
},
{
name
:
'
M
Name'
,
name
:
'
Employee
Name'
,
required
:
true
,
label
:
'
管理者
姓名'
,
label
:
'姓名'
,
align
:
'left'
,
field
:
row
=>
row
.
M
Name
field
:
row
=>
row
.
Employee
Name
},
{
name
:
'MTel'
,
label
:
'手机号码'
,
field
:
'MTel'
,
align
:
'left'
},
{
name
:
'SName'
,
label
:
'所属校区'
,
field
:
'SName'
,
name
:
'SchoolName'
,
label
:
'公司'
,
field
:
'SchoolName'
,
align
:
'left'
,
},
{
...
...
@@ -128,33 +120,51 @@
},
{
name
:
'PostName'
,
label
:
'
岗
位'
,
label
:
'
职
位'
,
field
:
'PostName'
,
align
:
'left'
,
},
{
name
:
'S
tatus
'
,
label
:
'
状态
'
,
field
:
'S
tatus
'
,
align
:
'left'
,
name
:
'S
ex
'
,
label
:
'
性别
'
,
field
:
'S
ex
'
,
align
:
'left'
},
{
name
:
'
CreateByName
'
,
label
:
'
创建人
'
,
name
:
'
Account
'
,
label
:
'
账号
'
,
align
:
'left'
,
field
:
'
CreateByName
'
field
:
'
Account
'
},
{
name
:
'CreateTimeStr'
,
label
:
'创建时间'
,
name
:
'EmployeePhone'
,
label
:
'联系电话'
,
field
:
'EmployeePhone'
,
align
:
'left'
},
{
name
:
'BirthDate'
,
label
:
'生日'
,
field
:
'BirthDate'
,
align
:
'left'
},
{
name
:
'Education'
,
label
:
'学历'
,
field
:
'Education'
,
align
:
'left'
},
{
name
:
'LeaveStatus'
,
label
:
'状态'
,
field
:
'LeaveStatus'
,
align
:
'left'
,
field
:
'CreateTimeStr'
},
{
name
:
'ManagerAccount'
,
label
:
'账号'
,
name
:
'Remarks'
,
label
:
'行政备注'
,
field
:
'Remarks'
,
align
:
'left'
,
field
:
'ManagerAccount'
},
{
name
:
'optioned'
,
...
...
@@ -164,27 +174,22 @@
],
data
:
[],
loading
:
true
,
AuditOpts
:
[{
label
:
'全部'
,
value
:
'-1'
},
{
label
:
'正常'
,
value
:
'0'
},
{
label
:
'禁用'
,
value
:
'1'
},
],
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
MName
:
""
,
MTel
:
""
,
Status
:
"-1"
,
School_Id
:
0
,
School_Id
:
0
,
//校区
Dept_Id
:
0
,
//部门
Post_Id
:
0
,
//岗位编号
LeaveStatus
:
-
1
,
//在职状态
StartEntryTime
:
""
,
//入职开始时间
EndEntryTime
:
""
,
//入职结束时间
StartLeaveTime
:
""
,
//开始离职时间
EndLeaveTime
:
""
,
//结束离职时间
StartBirthDate
:
""
,
//开始生日
EndBirthDate
:
""
,
//结束生日
EmployeeName
:
""
,
//员工姓名电话
},
schoolTemp
:
""
,
pageCount
:
0
,
...
...
@@ -325,7 +330,7 @@
refreshPage
()
{
if
(
!
this
.
managerOption
)
{
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
M
Name
=
""
;
this
.
msg
.
Employee
Name
=
""
;
this
.
msg
.
MTel
=
""
;
this
.
msg
.
Status
=
"-1"
;
this
.
msg
.
School_Id
=
0
;
...
...
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