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 509abf76
authored
Jun 22, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
关闭弹窗重置
1 parent
01d36da6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
src/views/employee/components/createRole.vue
src/views/employee/components/createRole.vue
View file @
509abf7
...
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2022-06-10 15:36:06
* @LastEditors: huyue
* @LastEditTime: 2022-06-22 1
0:49:55
* @LastEditTime: 2022-06-22 1
7:22:54
-->
<
template
>
<div>
...
...
@@ -27,7 +27,7 @@
<el-checkbox-group
v-model=
"ruleForm.roleAuth"
>
<el-checkbox
v-for=
"(itm, idx) in accountListSelect"
:label=
"itm.accounttypeName"
@
change=
"selectCurAccount(itm, idx)"
:key=
"idx"
>
{{
itm
.
accounttypeName
}}
</el-checkbox>
</el-checkbox-group>
<SelectProduct
ref=
"productFrom"
:roleType=
"true"
title=
"角色权限"
></SelectProduct>
<SelectProduct
v-if=
"roleVisible"
ref=
"productFrom"
:roleType=
"true"
title=
"角色权限"
></SelectProduct>
</el-form-item>
</el-form>
<div
slot=
"footer"
>
...
...
@@ -68,6 +68,7 @@ export default {
methods
:
{
init
()
{
this
.
roleVisible
=
true
if
(
this
.
$refs
.
ruleForm
)
this
.
$refs
.
ruleForm
.
resetFields
()
this
.
getMerchantName
()
},
handleClose
()
{
...
...
@@ -142,6 +143,12 @@ export default {
res
?
this
.
$message
.
success
(
'操作成功'
)
:
this
.
$message
.
error
(
'操作失败'
)
this
.
$emit
(
'updataRole'
,
true
)
this
.
roleVisible
=
!
res
this
.
ruleForm
=
{
merchantId
:
''
,
roleName
:
''
,
roleDesc
:
''
,
roleAuth
:
''
}
})
}
else
{
return
false
...
...
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