Commit 06c5fb01 by Jianli Ou

完善业务审核分页功能

parent bb0fbfdf
......@@ -23,7 +23,10 @@
</el-table>
<div v-if='page'
class='gs-table-page'>
<pages />
<pages :total="page.total"
:pageSize="page.pageSize"
:currPage="page.currPage"
@getLimit="handleCurrentChange"/>
</div>
</div>
</template>
......@@ -82,6 +85,7 @@ export default {
* @return {*}
*/
handleSizeChange(size) {
console.log('分页大小变化', size)
this.size = size;
this.page.size = size;
this.current = 1;
......@@ -96,6 +100,7 @@ export default {
*/
handleCurrentChange(current) {
this.current = current;
console.log('分页页码变化', current)
this.$emit('page-change', current);
},
},
......
......@@ -72,6 +72,7 @@ export default {
{
key: '4',
label: '申请总数',
value: '3',
amount: '0',
color: '#F26335'
}
......@@ -101,6 +102,7 @@ export default {
{
key: '4',
label: '申请总数',
value: '3',
amount: '0',
color: '#F26335'
}
......
......@@ -8,15 +8,10 @@
<div class="gs-ac-search">
<el-form :inline="true" :model="search">
<div class="search row" style="margin: 15px 0;">
<div class="col-lg-4">
<div v-if="!isAdminBranch" class="col-lg-4">
<el-form-item label="分中心名称:" label-width="90px">
<el-select size="small" style="width: 145px" v-model="search.branchCode">
<el-option
v-for="item in subCenterList"
:key="item.value"
:label="item.value"
:value="item.value">
</el-option>
<el-select size="small" style="width: 145px" v-model="search.branchCode" clearable>
<el-option v-for="item in branchList" :label="item.label" :value="item.value" :key="item.value"></el-option>
</el-select>
</el-form-item>
</div>
......@@ -53,6 +48,7 @@
height="66vh"
:cell-style="{fontSize:'13px',color: '#414345'}"
header-cell-class-name="gs-ac-st-table-header"
@page-change="pageChangeEvent"
style="width: 100%">
</gs-table>
</div>
......@@ -74,8 +70,9 @@ export default {
components: {CertificationDetail},
props: {query: Object},
created() {
// this.setData()
this.search.logout_flag = this.query.status
this.isAdminBranch = JSON.parse(localStorage.getItem('gs-user')).type === 'adminBranch'
if (this.isAdminBranch) this.search.branchCode = String(JSON.parse(localStorage.getItem('loginInfo')).levels)
this.search.logout_flag = this.query.status === '3' ? '' : this.query.status
if (this.query.type === 'new') {
// TODO 查询新增
this.getAuditList()
......@@ -86,8 +83,10 @@ export default {
},
data() {
return {
isAdminBranch: false,
loading: false,
page: {},
branchList: window.CodeTable.ANCCBranches,
search: {
logout_flag: '',
firmName: '',
......@@ -201,13 +200,6 @@ export default {
},
getIcon(status) {
status = status.logoutFlag
// if (status === 'checked') {
// return checked
// } else if (status === 'unchecked') {
// return unchecked
// } else if (status === 'refuse') {
// return refuse
// }
if (status === 1) {
return checked
} else if (status === 0) {
......@@ -218,6 +210,10 @@ export default {
return refuse
}
},
pageChangeEvent(currPage) {
this.search.page = currPage
this.getAuditList()
},
async getAuditList() {
this.loading = true
let result = null
......@@ -229,8 +225,9 @@ export default {
result = await this.$api.myManage.tycpdmfirmChangeAuditList(this.search)
}
this.result = result.data.list
this.page = {pageSize: 10, currPage: result.data.currPage, total: result.data.totalCount}
this.loading = false
},
}
},
}
</script>
......
......@@ -10,6 +10,10 @@
<p class="admin_name">{{ userName }}</p>
<p>- - - | 中心管理员</p>
</template>
<template v-else-if="type === ADMINBRANCH">
<p class="admin_name">{{ userName }}</p>
<p>- - - | 分中心管理员</p>
</template>
</div>
</div>
......@@ -18,6 +22,7 @@
const UN_VERIFY = 0;
const SYSTEM_MEMBER = 1;
const ADMIN = 2;
const ADMINBRANCH = 3;
export default {
props: {
type: Number
......@@ -27,6 +32,7 @@ export default {
UN_VERIFY,
SYSTEM_MEMBER,
ADMIN,
ADMINBRANCH,
userName: '用户名',
phone: '手机号',
cardNo: '条码卡号',
......
......@@ -20,6 +20,7 @@ import {uuid} from "../../utils/utils";
const UN_VERIFY = 0;
const SYSTEM_MEMBER = 1;
const ADMIN = 2;
const ADMINBRANCH = 3;
export default {
components: {
......@@ -97,12 +98,44 @@ export default {
index: 0,
link: "/MyManage/admin/check",
},
// {
// id: uuid("gs_nav"),
// name: "统一产品编码",
// index: 1,
// link: "/MyManage/admin/code",
// },
{
id: uuid("gs_nav"),
name: "统一产品编码",
index: 1,
link: "/MyManage/admin/code",
name: "审核状态修改",
index: 2,
link: "/MyManage/admin/status_change",
},
{
id: uuid("gs_nav"),
name: "企业信息修改",
index: 3,
link: "/MyManage/admin/ent_info",
},
{
id: uuid("gs_nav"),
name: "日志查看",
index: 4,
link: "/MyManage/admin/log",
},
],
adminBranchRouterList: [
{
id: uuid("gs_nav"),
name: "业务审核",
index: 0,
link: "/MyManage/admin/check",
},
// {
// id: uuid("gs_nav"),
// name: "统一产品编码",
// index: 1,
// link: "/MyManage/admin/code",
// },
{
id: uuid("gs_nav"),
name: "审核状态修改",
......@@ -131,8 +164,11 @@ export default {
// 1. 未申请条码
// 2.系统成员
// 3.管理员
// 4.分中心管理员
if (user.type === 'admin') {
this.userType = ADMIN;
} else if (user.type === 'adminBranch') {
this.userType = ADMINBRANCH;
} else if (user.type === 'verify') {
this.userType = SYSTEM_MEMBER;
} else {
......@@ -152,6 +188,8 @@ export default {
this.$store.commit("system/SET_SUB_NAV", this.routerList);
} else if (this.userType === ADMIN) {
this.$store.commit("system/SET_SUB_NAV", this.adminRouterList);
} else if (this.userType === ADMINBRANCH) {
this.$store.commit("system/SET_SUB_NAV", this.adminBranchRouterList);
}
},
methods: {},
......
......@@ -132,6 +132,9 @@ export default {
} else if (res.data.levels === 0) {
localStorage.setItem('gs-user', JSON.stringify({type: 'admin'}))
this.$router.push({path: '/MyManage/admin/check'})
} else if (String(res.data.levels).length === 4) {
localStorage.setItem('gs-user', JSON.stringify({type: 'adminBranch'}))
this.$router.push({path: '/MyManage/admin/check'})
}
}
})
......
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