Commit fd5ce091 by 前端

账户详情接口根据页面跳转不同改为传参不同

1 parent 912701fe
...@@ -760,7 +760,14 @@ export default { ...@@ -760,7 +760,14 @@ export default {
// }, // },
getDetail() { getDetail() {
getDetailApi({ merchantId: this.merchantId, paymentChannelId: this.merchantRow.paymentChannelId }).then(res => { var params = {}
params.paymentChannelId = this.merchantRow.paymentChannelId
if (this.merchantRow.fromPage == 'accountList') {
params.merchantId = this.merchantId
} else if (this.merchantRow.fromPage == 'virtualAccountManagement') {
params.platformYseMerchantId = this.merchantRow.platformYseMerchantId
}
getDetailApi(params).then(res => {
// console.log(res) // console.log(res)
this.currentPage = res.yseMerchantInfo ? res.yseMerchantInfo.custType : 'O' this.currentPage = res.yseMerchantInfo ? res.yseMerchantInfo.custType : 'O'
this.detailForm = deepClone({ this.detailForm = deepClone({
......
...@@ -423,6 +423,7 @@ export default { ...@@ -423,6 +423,7 @@ export default {
// 查看详情 // 查看详情
if (cellValue.accountStatus === 3 || cellValue.accountStatus === 5 || cellValue.yseRefFlag == 'Y') { if (cellValue.accountStatus === 3 || cellValue.accountStatus === 5 || cellValue.yseRefFlag == 'Y') {
this.merchantRow = cellValue this.merchantRow = cellValue
this.merchantRow.fromPage = 'accountList'
this.handleDetailClose() this.handleDetailClose()
return true return true
} }
......
...@@ -274,6 +274,7 @@ export default { ...@@ -274,6 +274,7 @@ export default {
handleDetail(row) { handleDetail(row) {
this.merchantRow = row this.merchantRow = row
this.merchantRow.merchantId = row.id this.merchantRow.merchantId = row.id
this.merchantRow.fromPage = 'virtualAccountManagement'
this.accountDetailVisible = true this.accountDetailVisible = true
// yseMerchantGetDetail({ merchantId: row.id }).then(res => { // yseMerchantGetDetail({ merchantId: row.id }).then(res => {
// console.log(res, 'res') // console.log(res, 'res')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!