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

页面修改

parent 174cd757
......@@ -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.MName}}</q-avatar>
{{props.row.EmployeeName}}</q-avatar>
</q-td>
</template>
<template v-slot:body-cell-MName="props">
<template v-slot:body-cell-EmployeeName="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: 'MName',
name: 'EmployeeName',
required: true,
label: '管理者姓名',
label: '姓名',
align: 'left',
field: row => row.MName
},
{
name: 'MTel',
label: '手机号码',
field: 'MTel',
align: 'left'
field: row => row.EmployeeName
},
{
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: 'Status',
label: '状态',
field: 'Status',
align: 'left',
name: 'Sex',
label: '性别',
field: 'Sex',
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.MName = "";
this.msg.EmployeeName = "";
this.msg.MTel = "";
this.msg.Status = "-1";
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