Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
a36caab5
Commit
a36caab5
authored
Jun 09, 2021
by
lvweichao
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev'
parents
bcc1c504
8f760415
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
53 additions
and
31 deletions
+53
-31
role.js
server/controllers/role.js
+0
-2
pageconfig.js
src/config/pageconfig.js
+0
-2
index.vue
src/pages/Life-no/index.vue
+21
-10
life-no-detail.vue
src/pages/Life-no/life-no-detail.vue
+1
-3
add-role.vue
src/pages/Role/add-role.vue
+12
-2
manage-role.vue
src/pages/Role/manage-role.vue
+15
-10
role-detail.vue
src/pages/Role/role-detail.vue
+1
-1
index.js
src/store/index.js
+3
-1
No files found.
server/controllers/role.js
View file @
a36caab5
...
...
@@ -51,8 +51,6 @@ exports.getUpdate_role = async (ctx, next) => {
json
:
true
,
body
:
ctx
.
request
.
body
}
console
.
log
(
opts
,
'optsoptsoptsopts888888'
)
console
.
log
(
ctx
.
request
.
query
,
'pppp'
)
ctx
.
body
=
await
req
(
ctx
,
opts
)
}
exports
.
getDelete_role
=
async
(
ctx
,
next
)
=>
{
...
...
src/config/pageconfig.js
View file @
a36caab5
...
...
@@ -38,7 +38,6 @@ export const PAGEMODULE_PERMISSIONNAME = {
enterprise
:
'enterprise_certification_management'
,
lifeNo
:
'life_official_account_management'
,
role
:
'role_management'
,
// roleAddRole: 'role_addRole',
user
:
'user_management'
}
...
...
@@ -60,6 +59,5 @@ export const PATH_PERMISSION_NAME = {
'/enterprise/establish'
:
'enterprise_certification_management.create'
,
'/lifeNo'
:
'life_official_account_management'
,
'/roleManageRole'
:
'role_management'
,
// '/roleAddRole': 'role_addRole',
'/user'
:
'user_management'
}
\ No newline at end of file
src/pages/Life-no/index.vue
View file @
a36caab5
...
...
@@ -3,12 +3,12 @@
<layout>
<div
class=
"life-no"
>
<el-form
:inline=
"true"
:model=
"formInline"
class=
"demo-form-inline"
>
<el-form-item
label=
"生活号名称
/企业名称
"
>
<el-form-item
label=
"生活号名称"
>
<el-input
class=
"search_life"
maxlength=
"15"
v-model=
"life_account.name"
placeholder=
"生活号名称
/企业名称
"
placeholder=
"生活号名称"
></el-input>
</el-form-item>
<el-form-item
label=
"类型"
>
...
...
@@ -22,20 +22,25 @@
<el-button
@
click=
"onReset"
>
重置
</el-button>
</el-form-item>
</el-form>
<el-table
:data=
"LifeNoList"
border
style=
"width: 100%"
@
row-click=
"toLifeDetail"
>
<el-table
:data=
"LifeNoList"
border
style=
"width: 100%"
>
<el-table-column
prop=
"life_account_id"
label=
"ID"
>
</el-table-column>
<el-table-column
prop=
"life_account_name"
label=
"生活号名称"
>
</el-table-column>
<el-table-column
prop=
"life_account_type
"
label=
"类型"
>
<el-table-column
:formatter=
"hasTypeFormat
"
label=
"类型"
>
</el-table-column>
<el-table-column
prop=
"life_account_auth_status
"
label=
"状态"
>
<el-table-column
:formatter=
"hasStatusFormat
"
label=
"状态"
>
</el-table-column>
<el-table-column
prop=
"create_time"
label=
"创建时间"
>
</el-table-column>
<el-table-column
label=
"操作"
>
<template
#
default=
"scope"
>
<el-button
size=
"mini"
type=
"primary"
@
click
.
stop=
"toLifeDetail(scope.row)"
>
查看详情
</el-button
>
</
template
>
</el-table-column>
</el-table>
<page
:totalNum=
"totalNum"
@
update=
"update"
/>
</div>
...
...
@@ -75,6 +80,12 @@ export default {
this
.
getLifeNoListFn
()
},
methods
:
{
hasTypeFormat
(
row
)
{
return
row
.
life_account_type
==
1
?
'个人'
:
'企业'
},
hasStatusFormat
(
row
)
{
return
row
.
life_account_auth_status
==
1
?
'正常'
:
''
},
//获取列表数据
getLifeNoListFn
()
{
let
{
name
,
type
}
=
this
.
life_account
...
...
src/pages/Life-no/life-no-detail.vue
View file @
a36caab5
<
template
>
<div
class=
"life-no-detail"
>
<el-button
type=
"text"
@
click=
"goBack"
icon=
"el-icon-arrow-left"
>
返回
</el-button
>
<el-page-header
@
back=
"goBack"
content=
"生活号详情页面"
>
</el-page-header>
<el-card
class=
"management"
>
<h4
class=
"titleInfo"
>
生活号信息
</h4>
<el-descriptions
:column=
"3"
border
>
...
...
src/pages/Role/add-role.vue
View file @
a36caab5
...
...
@@ -10,7 +10,6 @@
style=
"width: 100%; margin-top: 10px"
:header-cell-style=
"
{ background: '#e1e4e5', color: '#80878f' }"
border
@row-click="toRoleDetail"
>
<el-table-column
prop=
"role_name"
label=
"角色名称"
width=
"180"
>
</el-table-column>
...
...
@@ -23,6 +22,12 @@
@
click
.
stop=
"handleModify(scope.$index, scope.row)"
>
修改
</el-button
>
<el-button
size=
"mini"
type=
"primary"
@
click
.
stop=
"toRoleDetail(scope.row)"
>
查看详情
</el-button
>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -119,7 +124,6 @@ export default {
created
()
{
this
.
getGetRole_list
()
this
.
getPermissionsAll
()
},
methods
:
{
toRoleDetail
(
row
)
{
...
...
@@ -242,6 +246,12 @@ export default {
this
.
dialogFormVisible
=
false
this
.
edit
=
true
this
.
getGetRole_list
()
}
else
{
this
.
dialogFormVisible
=
false
this
.
$message
({
type
:
'info'
,
message
:
`
${
res
.
reason
}
`
});
}
})
},
...
...
src/pages/Role/manage-role.vue
View file @
a36caab5
...
...
@@ -30,9 +30,10 @@
</div>
<!-- 角色搜索列表 -->
<el-table
border
:data=
"managementList"
@
row-click=
"toRoleDetail"
>
<el-table
border
:data=
"managementList"
>
<el-table-column
label=
"ID"
width=
"200px"
prop=
"role_id"
align=
"center"
></el-table-column>
...
...
@@ -43,6 +44,7 @@
></el-table-column>
<el-table-column
label=
"状态"
width=
"200px"
:formatter=
"hasStatusFormat"
align=
"center"
>
...
...
@@ -64,32 +66,35 @@
!(scope.row.role_status == 2 || scope.row.role_status == 3) &&
permission.get('edit')
"
size=
"mini"
@
click
.
stop=
"handelModify(scope.row)"
type=
"primary"
type=
"text"
size=
"mini"
>
修改
</el-button
>
<el-button
size=
"mini"
v-if=
"permission.get('delete')"
@
click
.
stop=
"handelDelete(scope.row)"
type=
"warning"
size=
"mini"
type=
"text"
>
删除
</el-button
>
<el-button
size=
"mini"
v-if=
"permission.get('disable')"
@
click
.
stop=
"handelDisable(scope.row)"
type=
"danger"
size=
"mini"
type=
"text"
>
禁用
</el-button
>
<el-button
size=
"mini"
v-if=
"permission.get('enable')"
@
click
.
stop=
"handelEnable(scope.row)"
type=
"success"
size=
"mini"
type=
"text"
>
启用
</el-button
>
<el-button
@
click
.
stop=
"toRoleDetail(scope.row)"
type=
"text"
>
查看详情
</el-button
>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -188,7 +193,7 @@ export default {
this
.
$router
.
push
({
name
:
'AddRole'
});
},
toRoleDetail
(
row
)
{
this
.
$router
.
push
({
name
:
'RoleDetail'
,
query
:
{
roleId
:
row
.
role_id
}
});
this
.
$router
.
push
({
name
:
"RoleDetail"
,
query
:
{
roleId
:
row
.
role_id
}
});
},
getPermissionsAll
()
{
let
{
email
}
=
this
.
user_info
...
...
src/pages/Role/role-detail.vue
View file @
a36caab5
...
...
@@ -56,7 +56,7 @@
></el-cascader>
</div>
</div>
<div
v-if=
"role_info_detail.role_account_list.length
> 0
"
>
<div
v-if=
"role_info_detail.role_account_list.length"
>
<h5
style=
"margin: 10px 0"
>
角色账号
</h5>
<div
class=
"role_account_list"
...
...
src/store/index.js
View file @
a36caab5
...
...
@@ -5,7 +5,8 @@ import { PERMISSIONNAME_PAGEMODULE } from '../config/pageconfig'
export
default
createStore
({
state
:
{
permissions
:
null
,
userInfo
:
null
,
userInfo
:
null
},
mutations
:
{
updateUserPermission
(
state
,
payload
)
{
...
...
@@ -18,6 +19,7 @@ export default createStore({
actions
:
{
async
updateUserPermission
({
commit
},
payload
)
{
const
{
permissions
=
[]
}
=
await
getPermissions
(
payload
.
email
);
console
.
log
(
"VUEX action updateUserPermission::"
,
permissions
);
commit
(
'updateUserPermission'
,
permissions
)
}
...
...
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