Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
杨明
/
scrm-micro-config
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 073412aa
authored
Nov 03, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改角色页面/企微绑定页面
1 parent
662355ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
16 deletions
src/views/baseInfo/relevance.vue
src/views/role/create.vue
src/views/baseInfo/relevance.vue
View file @
073412a
...
@@ -156,7 +156,7 @@ export default {
...
@@ -156,7 +156,7 @@ export default {
}
}
let
flag
=
false
let
flag
=
false
this
.
dataList
.
forEach
(
item
=>
{
this
.
dataList
.
forEach
(
item
=>
{
if
(
item
.
departmentId
==
this
.
curGLData
.
departmentId
&&
item
.
merchantId
==
this
.
curGLData
.
merchantId
)
{
if
(
item
.
departmentId
==
this
.
curGLData
.
departmentId
||
item
.
merchantId
==
this
.
curGLData
.
merchantId
)
{
flag
=
true
flag
=
true
}
}
})
})
...
@@ -233,7 +233,6 @@ export default {
...
@@ -233,7 +233,6 @@ export default {
tempindex
=
index
tempindex
=
index
}
}
})
})
console
.
log
(
tempindex
)
this
.
$confirm
(
'此操作将删除该项, 是否继续?'
,
'提示'
,
{
this
.
$confirm
(
'此操作将删除该项, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -248,10 +247,10 @@ export default {
...
@@ -248,10 +247,10 @@ export default {
})
})
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
$message
({
//
this.$message({
type
:
'info'
,
//
type: 'info',
message
:
'已取消删除'
//
message: '已取消删除'
})
//
})
})
})
},
},
// 递归:处理层级数组
// 递归:处理层级数组
...
@@ -323,6 +322,9 @@ export default {
...
@@ -323,6 +322,9 @@ export default {
text-align
:
right
;
text-align
:
right
;
}
}
}
}
.sel-wrap
/
deep
/
.el-cascader-node
{
max-width
:
250px
!important
;
}
.btn-wrap
{
.btn-wrap
{
padding-left
:
20px
;
padding-left
:
20px
;
padding-top
:
40px
;
padding-top
:
40px
;
...
...
src/views/role/create.vue
View file @
073412a
...
@@ -11,13 +11,13 @@
...
@@ -11,13 +11,13 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"所属商户"
prop=
"merchantName"
v-if=
"pageType == 'edit'"
>
<el-form-item
label=
"所属商户"
prop=
"merchantName"
v-if=
"pageType == 'edit'"
>
<el-input
disabled
style=
"width: 40%"
v-model=
"ruleForm.merchantName"
></el-input>
<el-input
size=
"small"
disabled
style=
"width: 40%"
v-model=
"ruleForm.merchantName"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"角色名称"
prop=
"roleName"
>
<el-form-item
label=
"角色名称"
prop=
"roleName"
>
<el-input
style=
"width: 40%"
v-model=
"ruleForm.roleName"
></el-input>
<el-input
s
ize=
"small"
s
tyle=
"width: 40%"
v-model=
"ruleForm.roleName"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"角色说明"
prop=
"roleDesc"
>
<el-form-item
label=
"角色说明"
prop=
"roleDesc"
>
<el-input
style=
"width: 40%"
v-model=
"ruleForm.roleDesc"
></el-input>
<el-input
s
ize=
"small"
s
tyle=
"width: 40%"
v-model=
"ruleForm.roleDesc"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"角色权限"
prop=
"roleRoot"
>
<el-form-item
label=
"角色权限"
prop=
"roleRoot"
>
<div
class=
"custom_element"
>
<div
class=
"custom_element"
>
...
@@ -32,7 +32,10 @@
...
@@ -32,7 +32,10 @@
<SelectProduct
ref=
"productFrom"
:roleType=
"true"
title=
""
></SelectProduct>
<SelectProduct
ref=
"productFrom"
:roleType=
"true"
title=
""
></SelectProduct>
</div>
</div>
<div
style=
"height: 84px"
></div>
<div
style=
"height: 84px"
></div>
<div
class=
"fixed_bottom"
>
<div
class=
"fixed_bottom"
:style=
"{
left: footerLeft + 'px',
width: footerWidth + 'px',
}"
>
<el-button
v-if=
"pageType == 'create'"
type=
"primary"
@
click=
"toCreateRole(1)"
>
草稿
</el-button>
<el-button
v-if=
"pageType == 'create'"
type=
"primary"
@
click=
"toCreateRole(1)"
>
草稿
</el-button>
<div
class=
"wrap_driver"
>
<div
class=
"wrap_driver"
>
<el-button
type=
"primary"
@
click=
"toCreateRole(0)"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"toCreateRole(0)"
>
确定
</el-button>
...
@@ -91,6 +94,10 @@ export default {
...
@@ -91,6 +94,10 @@ export default {
const
{
session
}
=
this
.
$globalState
const
{
session
}
=
this
.
$globalState
this
.
accountLevel
=
session
.
accountLevel
this
.
accountLevel
=
session
.
accountLevel
},
},
mounted
(){
this
.
footerLeft
=
document
.
querySelector
(
".base-container-right"
).
offsetLeft
;
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
;
},
methods
:
{
methods
:
{
// 获取角色信息
// 获取角色信息
getRoleData
(
id
)
{
getRoleData
(
id
)
{
...
@@ -235,17 +242,15 @@ export default {
...
@@ -235,17 +242,15 @@ export default {
}
}
.fixed_bottom
{
.fixed_bottom
{
position
:
fixed
;
position
:
fixed
;
left
:
0
;
right
:
0
;
bottom
:
0
;
//
width
:
calc
(
100%
-
60px
);
width
:
100%
;
width
:
100%
;
bottom
:
0px
;
height
:
64px
;
height
:
64px
;
background
:
#ffffff
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
z-index
:
20
;
background
:
#ffffff
;
z-index
:
999
;
box-shadow
:
0px
-1px
1px
0px
rgba
(
88
,
80
,
255
,
0.1
);
.wrap_driver
{
.wrap_driver
{
margin
:
0
40px
;
margin
:
0
40px
;
}
}
...
...
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