Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ae634ef1
authored
Dec 24, 2021
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
commit
2 parents
3c9bd665
55909069
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
15 deletions
src/views/role/create.vue
src/views/role/index.vue
src/views/role/look.vue
src/views/role/create.vue
View file @
ae634ef
...
...
@@ -65,27 +65,24 @@
width: footerWidth + 'px'
}"
>
<el-button
class=
"custtom"
size=
"small"
v-if=
"pageType == 'create'"
type=
"primary"
@
click=
"toCreateRole(1)"
>
草稿
</el-button>
<el-button
class=
"custtom"
v-if=
"pageType == 'create'"
type=
"primary"
@
click=
"toCreateRole(1)"
>
草稿
</el-button>
<div
class=
"wrap_driver"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"toCreateRole(0)"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"toCreateRole(0)"
>
确定
</el-button>
</div>
<el-button
size=
"small"
@
click=
"toBack"
>
取消
</el-button>
<el-button
@
click=
"toBack"
>
取消
</el-button>
</div>
</div>
</div>
</template>
<
script
>
import
AutoButton
from
'../../components/auto-button/index.vue'
import
SelectProduct
from
'./components/selectProduct.vue'
export
default
{
name
:
''
,
components
:
{
AutoButton
,
SelectProduct
},
data
()
{
return
{
roleRootRules
:
false
,
...
...
@@ -210,7 +207,6 @@ export default {
this
.
rootList
=
arr
}
let
accounttypeId
=
[]
this
.
rootList
.
forEach
(
item
=>
{
accounttypeId
.
push
(
item
.
accounttypeId
)
})
...
...
@@ -218,7 +214,6 @@ export default {
this
.
accounttypeIds
=
accounttypeId
this
.
$refs
.
productFrom
.
findMenuFunTree
(
item
.
accounttypeId
,
item
.
select
)
},
// 确定按钮---处理参数---提交数据---创建为0---草稿为1
toCreateRole
(
delFlag
)
{
let
{
merchantId
,
roleDesc
,
roleName
}
=
this
.
ruleForm
...
...
@@ -227,7 +222,6 @@ export default {
this
.
$refs
.
ruleForm
.
validateField
(
'merchantId'
)
return
}
if
(
!
roleName
&&
this
.
$refs
.
productFrom
.
getSelectInfo
().
length
==
0
)
{
this
.
$message
.
error
(
'角色和权限至少选择一项'
)
return
...
...
@@ -337,7 +331,6 @@ export default {
this
.
$router
.
push
(
'/role/index'
)
}
},
async
created
()
{
const
{
session
}
=
this
.
$globalState
this
.
accountLevel
=
session
.
accountLevel
...
...
@@ -358,7 +351,6 @@ export default {
// document.getElementById('tab-/account/role/create').innerHTML='修改角色'
}
},
mounted
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
...
...
@@ -368,7 +360,6 @@ export default {
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.role-create-page
{
height
:
100%
;
...
...
src/views/role/index.vue
View file @
ae634ef
<
template
>
<div
class=
"role-home-page"
>
<div
class=
"top_widget"
>
<!--
<el-button
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage"
>
创建角色
</el-button>
-->
<GLButton
size=
"small"
fn=
"创建角色"
icon=
"el-icon-plus"
type=
"primary"
display=
"disabled"
@
click=
"toCreatePage"
>
创建角色
</GLButton>
<!--
<el-button
size=
"small"
icon=
"el-icon-plus"
type=
"primary"
@
click=
"toCreatePage"
>
创建角色
</el-button>
-->
</div>
<div
class=
"table_widget"
>
<div
class=
"search_widget"
>
...
...
@@ -32,7 +32,6 @@
<GLTable
v-if=
"distoryTable"
ref=
"table"
:layout=
"layout"
:tableData=
"tableData"
:tableTotal=
"tableTotal"
:pageConf=
"pageConf"
:tableParams=
"tableParams"
@
refreshTable=
"getTableData"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
type=
"text"
@
click=
"toLookPage(scope.scope)"
fn=
"查看"
>
查看
</GLButton>
<!--
<GLButton
v-if=
"scope.scope.roleName != '超级管理员'"
fn=
"修改"
type=
"text"
display=
"disabled"
@
click=
"toEditPage(scope.scope)"
>
修改
</GLButton>
-->
<GLButton
v-if=
"!scope.scope.defalutRole"
fn=
"修改"
type=
"text"
display=
"disabled"
@
click=
"toEditPage(scope.scope)"
>
修改
</GLButton>
<!--
<el-button
type=
"text"
@
click=
"toLookPage(scope.scope)"
>
查看
</el-button>
<el-button
v-if=
"scope.scope.roleName!='超级管理员'"
type=
"text"
@
click=
"toEditPage(scope.scope)"
>
修改
</el-button>
-->
...
...
@@ -220,7 +219,11 @@ export default {
})
}
})
<<<<<<<
HEAD
})
=======
.
catch
(()
=>
{})
>>>>>>>
559090692
ced1fe5260fd37a322951b2f7b08013
}
},
...
...
src/views/role/look.vue
View file @
ae634ef
...
...
@@ -53,7 +53,7 @@
width: footerWidth + 'px'
}"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"toBack"
>
关闭
</el-button>
<el-button
type=
"primary"
@
click=
"toBack"
>
关闭
</el-button>
</div>
</div>
</
template
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment