Commit c06c9057 by cwq0219

单选商品-跳转

1 parent 8e097baf
......@@ -148,7 +148,7 @@ export default {
},
handleMutiSelectConfirm() {
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
console.log(selectedData)
// console.log(selectedData)
if (!selectedData) {
this.$message({
message: '未选择商品',
......
......@@ -102,7 +102,15 @@ export default {
},
handleSingleSelectConfirm() {
if(!this.productList.length) {
this.$history.push(this.userInfo.accountLevel == 4 ? '/marketing/productGroup/editProduct/1/2' : '/marketing/productGroup/editProduct/1/1')
var params = {
addOrEdit: 1,
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$router.push({
path: '/productGroup/editProduct',
query: params
})
return true
}
if (!this.infoId) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!