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 28f5db39
authored
Nov 05, 2021
by
李长胜
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
请选择产品
1 parent
6cc526c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
src/views/role/create.vue
src/views/role/create.vue
View file @
28f5db3
...
@@ -203,10 +203,14 @@ export default {
...
@@ -203,10 +203,14 @@ export default {
return
return
}
}
this
.
roleRootRules
=
false
this
.
roleRootRules
=
false
if
(
this
.
$refs
.
productFrom
.
getSelectInfo
().
length
==
0
||
this
.
$refs
.
productFrom
.
productTab
===
''
)
{
if
(
this
.
$refs
.
productFrom
.
getSelectInfo
().
length
==
0
)
{
this
.
roleRootRules
=
true
this
.
roleRootRules
=
true
return
return
}
}
if
(
this
.
$refs
.
productFrom
.
productTab
===
''
)
{
this
.
$message
.
error
(
'请至少选择一项产品'
)
return
}
let
accountTypes
=
JSON
.
stringify
(
this
.
$refs
.
productFrom
.
getSelectInfo
())
let
accountTypes
=
JSON
.
stringify
(
this
.
$refs
.
productFrom
.
getSelectInfo
())
let
para
=
{
let
para
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
...
@@ -226,10 +230,13 @@ export default {
...
@@ -226,10 +230,13 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
let
accountTypes
=
JSON
.
stringify
(
this
.
$refs
.
productFrom
.
getSelectInfo
())
let
accountTypes
=
JSON
.
stringify
(
this
.
$refs
.
productFrom
.
getSelectInfo
())
this
.
roleRootRules
=
false
this
.
roleRootRules
=
false
if
(
this
.
$refs
.
productFrom
.
getSelectInfo
().
length
==
0
||
this
.
$refs
.
productFrom
.
productTab
===
''
)
{
if
(
this
.
$refs
.
productFrom
.
getSelectInfo
().
length
==
0
)
{
this
.
roleRootRules
=
true
this
.
roleRootRules
=
true
return
return
}
}
if
(
this
.
$refs
.
productFrom
.
productTab
!==
''
)
{
// this.$message.error('请至少选择一项产品')
// return
let
para
=
{
let
para
=
{
merchantId
:
merchantId
,
merchantId
:
merchantId
,
roleName
:
roleName
,
roleName
:
roleName
,
...
@@ -244,13 +251,18 @@ export default {
...
@@ -244,13 +251,18 @@ export default {
this
.
insertRole
(
para
)
this
.
insertRole
(
para
)
}
}
}
}
}
})
})
// console.log('外面', this.$refs.productFrom.getSelectInfo().length, this.$refs.productFrom.productTab)
// console.log('外面', this.$refs.productFrom.getSelectInfo().length, this.$refs.productFrom.productTab)
this
.
roleRootRules
=
false
this
.
roleRootRules
=
false
if
(
this
.
$refs
.
productFrom
.
getSelectInfo
().
length
==
0
||
this
.
$refs
.
productFrom
.
productTab
===
''
)
{
if
(
this
.
$refs
.
productFrom
.
getSelectInfo
().
length
==
0
)
{
this
.
roleRootRules
=
true
this
.
roleRootRules
=
true
return
return
}
}
if
(
this
.
$refs
.
productFrom
.
productTab
===
''
)
{
this
.
$message
.
error
(
'请至少选择一项产品'
)
return
}
}
}
},
},
insertRole
(
para
)
{
insertRole
(
para
)
{
...
...
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