Commit 5c6c4008 by 杨明

跳转

1 parent b4dfd967
......@@ -134,6 +134,14 @@ export default {
})
}
},
getPath(path) {
let keys = Object.keys(path)
let result = ''
for (let i = 0; i < keys.length; i++) {
result += `${keys[i]} = ${path[keys[i]]}${i == keys.length - 1 ? '' : '&'}`
}
return result
},
handleMutiSelectConfirm() {
if (!this.productList.length) {
var params = {
......@@ -141,10 +149,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$history.push({
path: '/store/productGroup/editProduct',
query: params
})
this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
return true
}
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
......
......@@ -112,6 +112,14 @@ export default {
})
}
},
getPath(path) {
let keys = Object.keys(path)
let result = ''
for (let i = 0; i < keys.length; i++) {
result += `${keys[i]} = ${path[keys[i]]}${i == keys.length - 1 ? '' : '&'}`
}
return result
},
handleMutiSelectConfirm() {
if (!this.productList.length) {
var params = {
......@@ -119,10 +127,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$history.push({
path: '/store/productGroup/editProduct',
query: params
})
this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
return true
}
var selectedData = this.$refs.mutiProRef.mutiSelectArr[this.tableParams.mutiSelectName]
......
......@@ -101,6 +101,14 @@ export default {
})
})
},
getPath(path) {
let keys = Object.keys(path)
let result = ''
for (let i = 0; i < keys.length; i++) {
result += `${keys[i]} = ${path[keys[i]]}${i == keys.length - 1 ? '' : '&'}`
}
return result
},
handleSingleSelectConfirm() {
if (!this.productList.length) {
var params = {
......@@ -108,10 +116,7 @@ export default {
groupOrStore: this.userInfo.accountLevel == 4 ? 2 : 1,
$title: '新建商品'
}
this.$history.push({
path: '/store/productGroup/editProduct',
query: params
})
this.$history.push(`/store/productGroup/editProduct?${this.getPath(params)}`)
return true
}
if (!this.infoId) {
......
......@@ -202,6 +202,14 @@ export default {
if (rankResetBtn) rankResetBtn.style.display = 'none'
},
methods: {
getPath(path) {
let keys = Object.keys(path)
let result = ''
for (let i = 0; i < keys.length; i++) {
result += `${keys[i]} = ${path[keys[i]]}${i == keys.length - 1 ? '' : '&'}`
}
return result
},
getDetail(obj, count) {
if (!count) return
if (obj.key.toLowerCase().includes('order')) {
......@@ -212,13 +220,7 @@ export default {
createdEndDateStr: this.searchForm.statDate
}
: {}
this.$history.push({
path: '/store/activityOrder/index',
query: {
activityId: this.activityId,
...timeParams
}
})
this.$history.push(`/store/activityOrder/index?${this.getPath({ activityId: this.activityId, ...timeParams })}`)
return
}
this.browseObj = obj
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!