Commit 28f5db39 by 李长胜

请选择产品

1 parent 6cc526c9
...@@ -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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!