Commit 4cf6dae7 by 胡悦

Merge branch 'master' of 192.168.3.233:glsx-web/glsx-oss-merchant-data

2 parents aa3345c8 3c3135f6
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
label: '用户名', label: '用户名',
prop: 'nickName' prop: 'nickName'
}, { }, {
label: '权限', label: '部门',
prop: 'department' prop: 'department'
}, { }, {
label: '手机号码', label: '手机号码',
...@@ -314,8 +314,8 @@ export default { ...@@ -314,8 +314,8 @@ export default {
this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户列表', '商户列表']) this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户列表', '商户列表'])
}, },
goGroupDetail(row) { goGroupDetail(row) {
console.log(row) // console.log(row)
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groudId: row.id }) this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groupId: row.id })
}, },
goBusinessDetail(row) { goBusinessDetail(row) {
this.detailVisible() this.detailVisible()
......
...@@ -112,7 +112,8 @@ export default { ...@@ -112,7 +112,8 @@ export default {
column: [ column: [
{ {
label: '分组ID', label: '分组ID',
prop: 'id' prop: 'id',
width: '80px'
}, },
{ {
label: '分组名称', label: '分组名称',
...@@ -124,7 +125,8 @@ export default { ...@@ -124,7 +125,8 @@ export default {
}, },
{ {
label: '业务编号', label: '业务编号',
prop: 'businessCode' prop: 'businessCode',
width: '100px'
}, },
{ {
label: '业务名称', label: '业务名称',
......
...@@ -119,7 +119,14 @@ export default { ...@@ -119,7 +119,14 @@ export default {
}, },
watch: { watch: {
groupId(val) { groupId(val) {
console.log(val) this.getList()
},
dialogVisible_search(val) {
if (!val) {
this.eventBus.$emit('reset')
this.times = []
resetSearch(this.searchParams)
}
this.loadingGetList() this.loadingGetList()
} }
}, },
...@@ -161,7 +168,8 @@ export default { ...@@ -161,7 +168,8 @@ export default {
column: [ column: [
{ {
label: '序号', label: '序号',
prop: 'id' prop: 'id',
width: '80px'
}, },
{ {
label: '商户名称', label: '商户名称',
...@@ -202,15 +210,13 @@ export default { ...@@ -202,15 +210,13 @@ export default {
}, },
mounted() { mounted() {
this.$root.eventBus.$on('params', (params) => { this.$root.eventBus.$on('params', (params) => {
console.log(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() {
...@@ -240,7 +246,9 @@ export default { ...@@ -240,7 +246,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
}) })
...@@ -285,14 +293,14 @@ export default { ...@@ -285,14 +293,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
...@@ -312,7 +320,7 @@ export default { ...@@ -312,7 +320,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!