Commit 8ad39b7c authored by 黄奎's avatar 黄奎

页面修改

parent 174cd757
...@@ -3,19 +3,19 @@ ...@@ -3,19 +3,19 @@
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.MName" label="姓名" /> <q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.EmployeeName"
</div> label="员工姓名/账号" />
<div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.MTel" label="电话" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" clearable filled stack-label option-value="SId" option-label="SName" <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" /> v-model="schoolTemp" ref="School_Id" :options="schoolList" label="所属校区" :dense="false" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.Status" :options="AuditOpts" <q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.MTel" label="电话" />
emit-value map-options label="状态" />
</div> </div>
</div> </div>
<div class="page-option"> <div class="page-option">
<q-btn color="accent" class="q-mr-md" icon="add" label="新增管理者" @click="EditManager(null)" /> <q-btn color="accent" class="q-mr-md" icon="add" label="新增管理者" @click="EditManager(null)" />
...@@ -23,18 +23,18 @@ ...@@ -23,18 +23,18 @@
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat <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"> :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-td auto-width :props="props">
<q-avatar size="md" v-if="props.value"> <q-avatar size="md" v-if="props.value">
<img :src="props.value" /> <img :src="props.value" />
</q-avatar> </q-avatar>
<q-avatar size="md" color="teal-10" text-color="white" v-if="!props.value"> <q-avatar size="md" color="teal-10" text-color="white" v-if="!props.value">
{{props.row.MName}}</q-avatar> {{props.row.EmployeeName}}</q-avatar>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-MName="props"> <template v-slot:body-cell-EmployeeName="props">
<q-td :props="props"> <q-td :props="props">
<div class="text-blue cursor-pointer">{{props.value}}</div> <div class="text-blue cursor-pointer">{{props.value}}</div>
</q-td> </q-td>
...@@ -59,12 +59,10 @@ ...@@ -59,12 +59,10 @@
<div style="min-width:190px;width:100%"> <div style="min-width:190px;width:100%">
<q-btn v-if="props.row.ManagerAccount==''" flat size="xs" icon="iconfont icon-ziyuan" color="warning" <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)" /> 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="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="EditManager(props.row)" /> @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> </div>
</q-td> </q-td>
</template> </template>
...@@ -96,28 +94,22 @@ ...@@ -96,28 +94,22 @@
return { return {
currentUrl: "", currentUrl: "",
columns: [{ columns: [{
name: 'MHead', name: 'EmployeeIcon',
label: '', label: '',
field: 'MHead', field: 'EmployeeIcon',
align: 'left', align: 'left',
}, },
{ {
name: 'MName', name: 'EmployeeName',
required: true, required: true,
label: '管理者姓名', label: '姓名',
align: 'left', align: 'left',
field: row => row.MName field: row => row.EmployeeName
},
{
name: 'MTel',
label: '手机号码',
field: 'MTel',
align: 'left'
}, },
{ {
name: 'SName', name: 'SchoolName',
label: '所属校区', label: '公司',
field: 'SName', field: 'SchoolName',
align: 'left', align: 'left',
}, },
{ {
...@@ -128,33 +120,51 @@ ...@@ -128,33 +120,51 @@
}, },
{ {
name: 'PostName', name: 'PostName',
label: '位', label: '位',
field: 'PostName', field: 'PostName',
align: 'left', align: 'left',
}, },
{ {
name: 'Status', name: 'Sex',
label: '状态', label: '性别',
field: 'Status', field: 'Sex',
align: 'left', align: 'left'
}, },
{ {
name: 'CreateByName', name: 'Account',
label: '创建人', label: '账号',
align: 'left', align: 'left',
field: 'CreateByName' field: 'Account'
}, },
{ {
name: 'CreateTimeStr', name: 'EmployeePhone',
label: '创建时间', 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', align: 'left',
field: 'CreateTimeStr'
}, },
{ {
name: 'ManagerAccount', name: 'Remarks',
label: '账号', label: '行政备注',
field: 'Remarks',
align: 'left', align: 'left',
field: 'ManagerAccount'
}, },
{ {
name: 'optioned', name: 'optioned',
...@@ -164,27 +174,22 @@ ...@@ -164,27 +174,22 @@
], ],
data: [], data: [],
loading: true, loading: true,
AuditOpts: [{
label: '全部',
value: '-1'
},
{
label: '正常',
value: '0'
},
{
label: '禁用',
value: '1'
},
],
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
MName: "", School_Id: 0, //校区
MTel: "", Dept_Id: 0, //部门
Status: "-1", Post_Id: 0, //岗位编号
School_Id: 0, LeaveStatus: -1, //在职状态
StartEntryTime: "", //入职开始时间
EndEntryTime: "", //入职结束时间
StartLeaveTime: "", //开始离职时间
EndLeaveTime: "", //结束离职时间
StartBirthDate: "", //开始生日
EndBirthDate: "", //结束生日
EmployeeName: "", //员工姓名电话
}, },
schoolTemp: "", schoolTemp: "",
pageCount: 0, pageCount: 0,
...@@ -325,7 +330,7 @@ ...@@ -325,7 +330,7 @@
refreshPage() { refreshPage() {
if (!this.managerOption) { if (!this.managerOption) {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.msg.MName = ""; this.msg.EmployeeName = "";
this.msg.MTel = ""; this.msg.MTel = "";
this.msg.Status = "-1"; this.msg.Status = "-1";
this.msg.School_Id = 0; this.msg.School_Id = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment