Commit 15e66deb by wangql

修改代码

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