Commit 77304e01 by wangql

提交代码

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