Commit 1f10a138 by chenwq

银企直连

1 parent ee0cc6bd
...@@ -3,11 +3,7 @@ ...@@ -3,11 +3,7 @@
<d2-container> <d2-container>
<div> <div>
<div class=" header" slot="header"> <div class=" header" slot="header">
<d2-search ref="showSearch" :search-form="searchForm" :form-data="showFormData"> <d2-search ref="showSearch" :search-form="searchForm" :form-data="showFormData"></d2-search>
<template slot="channelType">
<el-cascader style="width: 50%;" :options="merchantLevelOptions[nameToOption[searchForm.channelType]]" :props="{ checkStrictly: true, value: 'id', label: 'merchantName' }" :show-all-levels="false" v-model="merchantLevelVal" clearable filterable />
</template>
</d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary"> <el-button :id="tableParams.btnId" size="small" type="primary">
查询 查询
...@@ -82,16 +78,11 @@ export default { ...@@ -82,16 +78,11 @@ export default {
}, { }, {
label: '渠道', label: '渠道',
name: 'channelType', name: 'channelType',
addHtml: 'channelType',
type: 'select', type: 'select',
width: '50%',
optionList: [], optionList: [],
optionId: 'value', optionId: 'value',
optionLabel: 'name', optionLabel: 'name',
optionsName: 'channelTypeList', optionsName: 'channelTypeList'
changeAttr: (value, targetItem) => {
this.merchantLevelVal = []
}
}, { }, {
label: '商户名称', label: '商户名称',
name: 'merchantName', name: 'merchantName',
...@@ -182,7 +173,7 @@ export default { ...@@ -182,7 +173,7 @@ export default {
2: '广汇', 2: '广汇',
8: '直营' 8: '直营'
}, },
merchantStoreServiceList: merchantStoreServiceList, merchantStoreServiceList: deepClone(merchantStoreServiceList),
}, },
modeDialogConfig: { modeDialogConfig: {
config: { config: {
...@@ -211,10 +202,6 @@ export default { ...@@ -211,10 +202,6 @@ export default {
mounted() { mounted() {
this.getBaseData() this.getBaseData()
// 1-嘀加;2-广汇; 8-直营
this.getMerchantLevel(1)
this.getMerchantLevel(2)
this.getMerchantLevel(8)
this.onPageShow() this.onPageShow()
}, },
beforeDestroy() { beforeDestroy() {
...@@ -228,6 +215,9 @@ export default { ...@@ -228,6 +215,9 @@ export default {
}, },
methods: { methods: {
...mapActions({
get: 'd2admin/base/get'
}),
...mapActions('d2admin/user', ['actionSetDownloadList']), ...mapActions('d2admin/user', ['actionSetDownloadList']),
async getBaseData() { async getBaseData() {
this.baseData.channelTypeList = await this.get(BaseData.channelType) this.baseData.channelTypeList = await this.get(BaseData.channelType)
...@@ -323,9 +313,6 @@ export default { ...@@ -323,9 +313,6 @@ export default {
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.searchFormSearch = this.getParams() this.searchFormSearch = this.getParams()
this.searchFormSearch.merchantTypeList = this.searchForm.merchantType ? [this.searchForm.merchantType] : [2, 7, -1]
this.searchFormSearch.merchantId = this.searchForm.merchantId ? this.searchForm.merchantId : this.merchantLevelVal[this.merchantLevelVal.length - 1]
delete this.searchFormSearch.merchantType
resolve() resolve()
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!