Commit 1cf5cd62 by 杨北旺

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

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