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 a0921b3e
authored
Jun 22, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
f09a265e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
src/views/employee/components/createRole.vue
src/views/employee/components/selectProduct.vue
src/views/employee/components/createRole.vue
View file @
a0921b3
...
...
@@ -3,27 +3,27 @@
* @Author: huyue
* @Date: 2022-06-10 15:36:06
* @LastEditors: huyue
* @LastEditTime: 2022-06-
17 16:39:38
* @LastEditTime: 2022-06-
22 10:49:55
-->
<
template
>
<div>
<GLDialog
:width=
"'1080px'"
:visible=
"roleVisible"
:close-on-click-modal=
"false"
@
close=
"handleClose"
title=
"创建角色"
:showClose=
"true"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"1
00
px"
class=
"demo-ruleForm"
>
<el-form
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"1
54
px"
class=
"demo-ruleForm"
>
<el-form-item
class=
"aa"
v-if=
"$globalState.session.accountLevel != 4"
label=
"所属商户"
prop=
"merchantId"
>
<el-select
size=
"small
"
style=
"width: 40%"
v-model=
"ruleForm.merchantId"
clearable
filterable
placeholder=
"请选择"
@
change=
"merchantChange"
>
<el-select
:size=
"size
"
style=
"width: 40%"
v-model=
"ruleForm.merchantId"
clearable
filterable
placeholder=
"请选择"
@
change=
"merchantChange"
>
<el-option
v-for=
"item in merchantList"
:key=
"item.id"
:label=
"item.merchantName"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"所属商户"
prop=
"merchantName"
v-else
>
<el-form-item
label=
"所属商户
:
"
prop=
"merchantName"
v-else
>
<span>
{{
$globalState
.
session
.
merchantName
}}
</span>
</el-form-item>
<el-form-item
label=
"角色名称"
prop=
"roleName"
>
<el-input
size=
"small
"
maxlength=
"20"
style=
"width: 40%; padding-right: 50px"
@
input=
"changeInput"
v-model=
"ruleForm.roleName"
placeholder=
"请输入角色名称"
></el-input>
<el-form-item
label=
"角色名称
:
"
prop=
"roleName"
>
<el-input
:size=
"size
"
maxlength=
"20"
style=
"width: 40%; padding-right: 50px"
@
input=
"changeInput"
v-model=
"ruleForm.roleName"
placeholder=
"请输入角色名称"
></el-input>
</el-form-item>
<el-form-item
label=
"角色说明"
prop=
"roleDesc"
>
<el-input
size=
"small
"
maxlength=
"50"
style=
"width: 40%; padding-right: 50px"
@
input=
"changeInput"
v-model=
"ruleForm.roleDesc"
placeholder=
"请输入角色说明"
></el-input>
<el-form-item
label=
"角色说明
:
"
prop=
"roleDesc"
>
<el-input
:size=
"size
"
maxlength=
"50"
style=
"width: 40%; padding-right: 50px"
@
input=
"changeInput"
v-model=
"ruleForm.roleDesc"
placeholder=
"请输入角色说明"
></el-input>
</el-form-item>
<el-form-item
label=
"角色权限"
prop=
"roleAuth"
>
<el-form-item
label=
"角色权限
:
"
prop=
"roleAuth"
>
<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>
...
...
@@ -161,13 +161,17 @@ export default {
display
:
inline-block
;
width
:
50%
;
vertical-align
:
text-top
;
margin-bottom
:
0
!important
;
margin-bottom
:
20px
!important
;
.el-input
{
width
:
360px
!important
;
}
&
:last-child
{
width
:
100%
;
}
.el-form-item__label
,
.el-form-item__content
{
line-height
:
32px
;
}
}
}
</
style
>
src/views/employee/components/selectProduct.vue
View file @
a0921b3
...
...
@@ -12,7 +12,7 @@
<el-checkbox
v-for=
"(itm, idx) in item.products"
:label=
"itm"
:key=
"idx"
>
{{ itm.productName }}
</el-checkbox>
</el-checkbox-group>
</div>
<div
class=
"account-select-menu"
>
请
选择产品权限:
</div>
<div
class=
"account-select-menu"
>
选择产品权限:
</div>
<div
class=
"menu-box"
>
<div
class=
"menu-box-panel"
>
<div
:key=
"index"
v-for=
"(item, index) in tabMenu"
>
...
...
@@ -514,7 +514,6 @@ export default {
}
.menu-box
{
position
:
relative
;
margin-top
:
8px
;
background
:
#fff
;
border-radius
:
4px
;
padding
:
8px
20px
16px
;
...
...
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