Commit 1f10a138 by chenwq

银企直连

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