Commit 77304e01 by wangql

提交代码

1 parent 80261b22
......@@ -111,7 +111,8 @@ export default {
column: [
{
label: '分组ID',
prop: 'id'
prop: 'id',
width: '80px'
},
{
label: '分组名称',
......@@ -123,7 +124,8 @@ export default {
},
{
label: '业务编号',
prop: 'businessCode'
prop: 'businessCode',
width: '100px'
},
{
label: '业务名称',
......@@ -156,7 +158,7 @@ export default {
label: '详情',
type: 'text',
callback: (index, row) => {
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groupId: row.id })
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groupId: row[index].id })
}
}
]
......
......@@ -119,6 +119,13 @@ export default {
watch: {
groupId(val) {
this.getList()
},
dialogVisible_search(val) {
if (!val) {
this.eventBus.$emit('reset')
this.times = []
resetSearch(this.searchParams)
}
}
},
// mixins: [NoticeMixin],
......@@ -127,7 +134,7 @@ export default {
// searchCondition: {},
groupId: '',
searchParams: {
groupId: '',
// groupId: '',
merchantName: '',
merchantId: '',
merchantType: '',
......@@ -158,7 +165,8 @@ export default {
column: [
{
label: '序号',
prop: 'id'
prop: 'id',
width: '80px'
},
{
label: '商户名称',
......@@ -200,14 +208,11 @@ export default {
mounted() {
this.$root.eventBus.$on('params', (params) => {
this.groupId = params.groupId
this.searchParams.groupId = params.groupId
// this.searchParams.groupId = params.groupId
})
this.loadingGetList()
this.getMerchantType()
this.eventBus = this.$root.eventBus
// this.$root.eventBus.$on('params', (params) => {
// this.searchParams.groupId = params.groupId
// })
},
methods: {
loadingGetList() {
......@@ -230,6 +235,7 @@ export default {
this.searchParams.endTime = this.times[1].format('yyyy-MM-dd HH:mm:ss')
}
const params = this.getParams()
// params.groupId = this.groupId
params.groupId = 1
params.method = groupDetailMethods.Search
console.log(params)
......@@ -237,7 +243,9 @@ export default {
.req(params)
.then(res => {
console.log(res)
this.total = res.pagination.totalCount
if (res.pagination) {
this.total = res.pagination.totalCount
}
this.tableData.data = res.merchantGroupRelations
this.tableLoading = false
})
......@@ -282,14 +290,14 @@ export default {
// 高级搜索
handleSubmit_search() {
this.getList()
this.dialogVisible_search = !this.dialogVisible_search
},
// 重置搜索
searchReset() {
// this.$refs['searchParams'].resetFields()
this.eventBus.$emit('reset')
// this.times = []
this.times = []
resetSearch(this.searchParams)
console.log(this.getParams())
},
addDialog() {
this.addDialogVisible = !this.addDialogVisible
......@@ -306,7 +314,7 @@ export default {
}
},
merchantDetail(merchantId) {
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户详情'], { merchantId: 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!