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