Commit 7b55dc63 by 胡悦

修改配置

1 parent 0a5d3b8d
...@@ -105,7 +105,7 @@ var mixin = { ...@@ -105,7 +105,7 @@ var mixin = {
// } // }
} }
} }
const URL = ' http://192.168.3.171:7300/mock/5be17454f31545347559d499/config' const URL = 'http://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config'
const getConfig = (url = URL + '/business_data_config') => { const getConfig = (url = URL + '/business_data_config') => {
return new Promise(resolve => { return new Promise(resolve => {
const xhr = new XMLHttpRequest() const xhr = new XMLHttpRequest()
......
...@@ -312,10 +312,10 @@ export default { ...@@ -312,10 +312,10 @@ export default {
}, },
methods: { methods: {
back() { back() {
this.$parent.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户列表', '商户列表']) this.$parent.to(['商户数据平台', '商户数据管理', '商户数据', '商户列表管理', '商户数据列表'])
}, },
goGroupDetail(row) { goGroupDetail(row) {
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groupId: row.id }) this.$root.to(['商户数据平台', '商户数据管理', '商户数据', '商户分组管理', '*商户分组详情'], { groupId: row.id })
}, },
goBusinessDetail(row) { goBusinessDetail(row) {
this.detailVisible() this.detailVisible()
......
...@@ -144,7 +144,7 @@ export default { ...@@ -144,7 +144,7 @@ export default {
label: '详情', label: '详情',
type: 'text', type: 'text',
callback: (index, row) => { callback: (index, row) => {
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户分组', '*商户分组详情'], { groupId: row[index].id }) this.$root.to(['商户数据平台', '商户数据管理', '商户数据', '商户分组管理', '*商户分组详情'], { groupId: row[index].id })
} }
} }
] ]
...@@ -154,7 +154,6 @@ export default { ...@@ -154,7 +154,6 @@ export default {
}, },
mounted() { mounted() {
this.loadingGetList() this.loadingGetList()
this.getBusinessList()
}, },
methods: { methods: {
loadingGetList() { loadingGetList() {
...@@ -174,7 +173,7 @@ export default { ...@@ -174,7 +173,7 @@ export default {
request request
.req(params) .req(params)
.then(res => { .then(res => {
this.total = res.pagination.totalCount res.pagination && (this.total = res.pagination.totalCount)
this.tableData.data = res.groupDicts this.tableData.data = res.groupDicts
this.tableLoading = false this.tableLoading = false
}) })
...@@ -206,6 +205,7 @@ export default { ...@@ -206,6 +205,7 @@ export default {
}, },
dialog() { dialog() {
this.dialogVisible = !this.dialogVisible this.dialogVisible = !this.dialogVisible
this.getBusinessList()
}, },
// 新增分组 // 新增分组
handleSubmit(formName) { handleSubmit(formName) {
......
...@@ -144,8 +144,8 @@ export default { ...@@ -144,8 +144,8 @@ export default {
// item[j] = '' // item[j] = ''
// } // }
// } // }
item[merchantId] = '' item['merchantId'] = ''
item[merchantType] = '' item['merchantType'] = ''
}) })
} }
} }
...@@ -265,6 +265,7 @@ export default { ...@@ -265,6 +265,7 @@ export default {
} }
} }
list = arr.filter(item => !index.includes(item.merchantId)) list = arr.filter(item => !index.includes(item.merchantId))
// list = [...arr].filter(item => [...this.addList].every(obj => obj.merchantId !== item.merchantId))
this.businessChildList = index.length ? list : arr this.businessChildList = index.length ? list : arr
}).catch(err => { }).catch(err => {
notice.errorTips(err) notice.errorTips(err)
......
...@@ -309,7 +309,7 @@ export default { ...@@ -309,7 +309,7 @@ export default {
} }
}, },
merchantDetail(merchantId) { merchantDetail(merchantId) {
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户列表', '*商户详情'], { merchantId: merchantId }) this.$root.to(['商户数据平台', '商户数据管理', '商户数据', '商户列表管理', '*商户详情'], { merchantId: merchantId })
} }
} }
} }
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
label: '详情', label: '详情',
type: 'text', type: 'text',
callback: (index, rows) => { callback: (index, rows) => {
this.$root.to(['商户数据平台', '商户数据平台', '商户数据平台', '商户列表', '*商户详情'], { merchantId: rows[index].merchantId }) this.$root.to(['商户数据平台', '商户数据管理', '商户数据', '商户列表管理', '*商户详情'], { merchantId: rows[index].merchantId })
} }
}] }]
}, },
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
params.method = bizMethods.Search params.method = bizMethods.Search
request.req(params).then(res => { request.req(params).then(res => {
this.ListTableData.data = res.merchants this.ListTableData.data = res.merchants
this.totalCount = res.pagination.totalCount res.pagination && (this.totalCount = res.pagination.totalCount)
resetSearch(this.merchantSearch) resetSearch(this.merchantSearch)
this.tableLoading = false this.tableLoading = false
}).catch(err => { }).catch(err => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!