Commit de0dc4fe by cwq0219

修改

1 parent e8f0f6f9
...@@ -300,13 +300,14 @@ export default { ...@@ -300,13 +300,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
}, },
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,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>
...@@ -79,9 +79,9 @@ ...@@ -79,9 +79,9 @@
> >
<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>
<!-- <span v-show="errorBags.has('businessCode')" class="error"> <!-- <span v-show="errorBags.has('businessCode')" class="error">
...@@ -104,6 +104,7 @@ ...@@ -104,6 +104,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: {
...@@ -203,7 +204,7 @@ export default { ...@@ -203,7 +204,7 @@ export default {
}, },
mounted() { mounted() {
this.loadingGetList() this.loadingGetList()
// this.getBusinessList() this.getBusinessList()
}, },
methods: { methods: {
loadingGetList() { loadingGetList() {
...@@ -232,21 +233,19 @@ export default { ...@@ -232,21 +233,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()
...@@ -277,6 +276,7 @@ export default { ...@@ -277,6 +276,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))
......
...@@ -140,7 +140,7 @@ export default { ...@@ -140,7 +140,7 @@ export default {
CityArea CityArea
}, },
watch: { watch: {
'searchParams.merchantId'(val) { groupId(val) {
this.getList() this.getList()
} }
}, },
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
data() { data() {
return { return {
// searchCondition: {}, // searchCondition: {},
merchantId: '', groupId: '',
searchParams: { searchParams: {
groupId: null, groupId: null,
merchantName: '', merchantName: '',
...@@ -244,15 +244,15 @@ export default { ...@@ -244,15 +244,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"
...@@ -188,4 +188,7 @@ export default { ...@@ -188,4 +188,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!