Commit 57978827 by 胡悦

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

2 parents 60a85c33 79898242
......@@ -302,13 +302,14 @@ export default {
},
methods: {
back() {
this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '业务管理', '业务管理列表'])
this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户列表', '商户列表'])
},
goGroupDetail(row) {
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { merchantId: row.merchantId })
console.log(row)
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groudId: row.id })
},
goBusinessDetail(row) {
this.handleDetailClose()
this.detailVisible()
this.activeName = 'first'
this.merchantId = row.merchantId
},
......
......@@ -18,7 +18,7 @@
:current-page="pageNum"
:page-sizes="[10,20,30,40]"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
layout="sizes, total, ->, prev, pager, next, jumper"
:total="total"
></gl-pagination>
<gl-dialog
......@@ -44,9 +44,9 @@
placeholder="请选择">
<gl-option
v-for="item in businessList"
:key="item.value"
:label="item.label"
:value="item.value">
:key="item.confId"
:label="item.confKey"
:value="item.confId">
</gl-option>
</gl-select>
</gl-form-item>
......@@ -66,6 +66,7 @@
// import { NoticeMixin } from '@/mixins'
// import Vue from 'vue'
import { groupMethods, request } from '@/api'
import notice from '@/common/notice'
export default {
name: 'businessGroup',
components: {
......@@ -165,7 +166,7 @@ export default {
},
mounted() {
this.loadingGetList()
// this.getBusinessList()
this.getBusinessList()
},
methods: {
loadingGetList() {
......@@ -194,21 +195,19 @@ export default {
console.log(err)
})
},
// getBusinessList() {
// const params = {}
// params.method = groupMethods.BusinessList
// request
// .req(params)
// .then(res => {
// res.merchantDictList.forEach((item, index) => {
// this.businessList.push({ 'label': item.confKey, 'value': item.confId })
// })
// })
// .catch(err => {
// this.tableLoading = false
// console.log(err)
// })
// },
getBusinessList() {
const params = {}
params.method = groupMethods.BusinessList
request
.req(params)
.then(res => {
this.businessList = res.merchantDictList
})
.catch(err => {
this.tableLoading = false
console.log(err)
})
},
handleSizeChange(val) {
this.pageSize = val
this.loadingGetList()
......@@ -239,6 +238,7 @@ export default {
.req(params)
.then(res => {
this.loadingGetList()
notice.okTips()
this.dialogVisible = !this.dialogVisible
})
.catch(err => console.log(err))
......
......@@ -116,7 +116,7 @@ export default {
CityArea
},
watch: {
'searchParams.merchantId'(val) {
groupId(val) {
this.getList()
}
},
......@@ -124,7 +124,7 @@ export default {
data() {
return {
// searchCondition: {},
merchantId: '',
groupId: '',
searchParams: {
groupId: null,
merchantName: '',
......@@ -198,15 +198,15 @@ export default {
},
mounted() {
this.$root.eventBus.$on('params', (params) => {
this.merchantId = params.merchantId
this.searchParams.merchantId = params.merchantId
this.groupId = params.groupId
this.searchParams.groupId = params.groupId
})
this.getList()
this.loadingGetList()
this.getMerchantType()
this.eventBus = new Vue()
this.$root.eventBus.$on('params', (params) => {
this.searchParams.groupId = params.groupId
})
// this.$root.eventBus.$on('params', (params) => {
// this.searchParams.groupId = params.groupId
// })
},
methods: {
loadingGetList() {
......
<!-- 新增商户 -->
<template>
<div>
<div class="newBusiness">
<gl-dialog
:title="title"
:visible.sync="isVisible"
......@@ -189,4 +189,7 @@ export default {
</script>
<style>
.newBusiness .el-dialog__body {
padding: 0 20px;
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!