Commit 5c6c4008 by 杨明

跳转

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