Commit 1cf5cd62 by 杨北旺

角色修改产品选择拦截去掉/列表页加全部

1 parent 2e0bef84
...@@ -256,7 +256,7 @@ export default { ...@@ -256,7 +256,7 @@ export default {
this.roleRootRules = true this.roleRootRules = true
return return
} }
if (this.$refs.productFrom.productTab !== '') { // if (this.$refs.productFrom.productTab !== '') {
// this.$message.error('请至少选择一项产品') // this.$message.error('请至少选择一项产品')
// return // return
let para = { let para = {
...@@ -272,19 +272,19 @@ export default { ...@@ -272,19 +272,19 @@ export default {
} else { } else {
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) { // if (this.$refs.productFrom.getSelectInfo().length == 0) {
this.roleRootRules = true // this.roleRootRules = true
return // return
} // }
if (this.$refs.productFrom.productTab === '') { // if (this.$refs.productFrom.productTab === '') {
this.$message.error('请至少选择一项产品') // this.$message.error('请至少选择一项产品')
return // return
} // }
} }
}, },
insertRole(para) { insertRole(para) {
......
...@@ -139,7 +139,11 @@ export default { ...@@ -139,7 +139,11 @@ export default {
}, },
getMerchantName() { getMerchantName() {
this.$apis.role.merchantDataList({ source: 'glsx' }).then(res => { this.$apis.role.merchantDataList({ source: 'glsx' }).then(res => {
this.merchantList = res this.merchantList = res || []
this.merchantList.unshift({
merchantName:'全部',
id:0
})
// this.filterList() // this.filterList()
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!