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 1cf5cd62
authored
Nov 25, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
角色修改产品选择拦截去掉/列表页加全部
1 parent
2e0bef84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
src/views/role/create.vue
src/views/role/index.vue
src/views/role/create.vue
View file @
1cf5cd6
...
...
@@ -256,7 +256,7 @@ export default {
this
.
roleRootRules
=
true
return
}
if
(
this
.
$refs
.
productFrom
.
productTab
!==
''
)
{
//
if (this.$refs.productFrom.productTab !== '') {
// this.$message.error('请至少选择一项产品')
// return
let
para
=
{
...
...
@@ -272,19 +272,19 @@ export default {
}
else
{
this
.
insertRole
(
para
)
}
}
//
}
}
})
// console.log('外面', this.$refs.productFrom.getSelectInfo().length, this.$refs.productFrom.productTab)
this
.
roleRootRules
=
false
if
(
this
.
$refs
.
productFrom
.
getSelectInfo
().
length
==
0
)
{
this
.
roleRootRules
=
true
return
}
if
(
this
.
$refs
.
productFrom
.
productTab
===
''
)
{
this
.
$message
.
error
(
'请至少选择一项产品'
)
return
}
//
this.roleRootRules = false
//
if (this.$refs.productFrom.getSelectInfo().length == 0) {
//
this.roleRootRules = true
//
return
//
}
//
if (this.$refs.productFrom.productTab === '') {
//
this.$message.error('请至少选择一项产品')
//
return
//
}
}
},
insertRole
(
para
)
{
...
...
src/views/role/index.vue
View file @
1cf5cd6
...
...
@@ -139,7 +139,11 @@ export default {
},
getMerchantName
()
{
this
.
$apis
.
role
.
merchantDataList
({
source
:
'glsx'
}).
then
(
res
=>
{
this
.
merchantList
=
res
this
.
merchantList
=
res
||
[]
this
.
merchantList
.
unshift
({
merchantName
:
'全部'
,
id
:
0
})
// this.filterList()
})
},
...
...
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