Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
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
吴迪
gs1
Commits
06c5fb01
Commit
06c5fb01
authored
Dec 16, 2021
by
Jianli Ou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善业务审核分页功能
parent
bb0fbfdf
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
75 additions
and
25 deletions
+75
-25
index.vue
src/components/table/index.vue
+6
-1
check.vue
src/views/MyManage/Admin/check.vue
+2
-0
checkSearchTable.vue
src/views/MyManage/Admin/checkSearchTable.vue
+15
-18
userInfo.vue
src/views/MyManage/comps/userInfo.vue
+6
-0
index.vue
src/views/MyManage/index.vue
+41
-3
login.vue
src/views/User/login.vue
+3
-0
pages.vue
src/views/comps/pages.vue
+2
-3
No files found.
src/components/table/index.vue
View file @
06c5fb01
...
...
@@ -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
);
},
},
...
...
src/views/MyManage/Admin/check.vue
View file @
06c5fb01
...
...
@@ -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'
}
...
...
src/views/MyManage/Admin/checkSearchTable.vue
View file @
06c5fb01
...
...
@@ -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
>
...
...
src/views/MyManage/comps/userInfo.vue
View file @
06c5fb01
...
...
@@ -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
:
'条码卡号'
,
...
...
src/views/MyManage/index.vue
View file @
06c5fb01
...
...
@@ -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
:
{},
...
...
src/views/User/login.vue
View file @
06c5fb01
...
...
@@ -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'
})
}
}
})
...
...
src/views/comps/pages.vue
View file @
06c5fb01
...
...
@@ -59,7 +59,7 @@ export default {
pages
:
{
size
:
10
,
},
};
},
mounted
(){
...
...
@@ -190,4 +190,4 @@ export default {
}
}
}
</
style
>
\ No newline at end of file
</
style
>
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