Commit 15e66deb by wangql

修改代码

1 parent b53c5906
const path = '/glsx.accounts.admin.merchant.group.'
const businessPath = '/glsx.accounts.admin.merchant.'
const path = 'glsx.accounts.admin.merchant.group.'
const businessPath = 'glsx.accounts.admin.merchant.'
const methods = {
Search: `${path}dict`,
Create: `${path}create`,
......
const path = '/glsx.accounts.admin.merchant.'
const path = 'glsx.accounts.admin.merchant.'
const methods = {
Search: `${path}group.search`,
MerchantType: `${path}dict.type`
......
......@@ -280,7 +280,6 @@ export default {
this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '业务管理', '业务管理列表'])
},
goGroupDetail(row) {
console.log(row.merchantId)
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户详情'], { merchantId: row.merchantId })
},
// 切换tab
......
......@@ -193,7 +193,7 @@ export default {
label: '详情',
type: 'text',
callback: (index, row) => {
this.detail(row)
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groupId: row.id })
}
}
]
......@@ -223,7 +223,7 @@ export default {
getList() {
// const params = this.getParams()
const params = {}
params.methods = groupMethods.Search
params.method = groupMethods.Search
request
.req(params)
.then(res => {
......@@ -238,7 +238,7 @@ export default {
},
getBusinessList() {
const params = {}
params.methods = groupMethods.BusinessList
params.method = groupMethods.BusinessList
request
.req(params)
.then(res => {
......@@ -276,7 +276,7 @@ export default {
},
createGroup(pas) {
const params = pas
params.methods = groupMethods.Create
params.method = groupMethods.Create
request
.req(params)
.then(res => {
......
......@@ -146,6 +146,7 @@ export default {
return {
// searchCondition: {},
searchParams: {
groupId: null,
merchantName: '',
merchantId: null,
merchantType: null,
......@@ -241,6 +242,9 @@ export default {
this.getList()
this.getMerchantType()
this.eventBus = new Vue()
this.$root.eventBus.$on('params', (params) => {
this.searchParams.groupId = params.groupId
})
},
methods: {
loadingGetList() {
......@@ -263,7 +267,7 @@ export default {
this.searchParams.endTime = this.times[1].format('yyyy-MM-dd HH:mm:ss')
}
const params = this.getParams()
params.methods = groupDetailMethods.Search
params.method = groupDetailMethods.Search
console.log(params)
request
.req(params)
......@@ -288,7 +292,7 @@ export default {
// 获取商户类型
getMerchantType() {
const params = {}
params.methods = groupDetailMethods.MerchantType
params.method = groupDetailMethods.MerchantType
request
.req(params)
.then(res => {
......@@ -335,7 +339,7 @@ export default {
}
},
merchantDetail(merchantId) {
console.log(merchantId)
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户详情'], { merchantId: merchantId })
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!