|
@@ -26,6 +26,7 @@
|
|
|
</div>
|
|
|
<template-page
|
|
|
ref="pageRef"
|
|
|
+ v-if="showTableTT"
|
|
|
:getList="getList"
|
|
|
:columnParsing="columnParsing"
|
|
|
:optionsEvensGroup="optionsEvensGroup"
|
|
@@ -123,7 +124,9 @@ export default {
|
|
|
websitId: '',
|
|
|
websitName: ''
|
|
|
},
|
|
|
- formDialog: false
|
|
|
+ formDialog: false,
|
|
|
+ websit: null,
|
|
|
+ showTableTT: false
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -434,6 +437,12 @@ export default {
|
|
|
watch: {
|
|
|
filterText(val) {
|
|
|
this?.$refs?.listTree?.filter?.(val)
|
|
|
+ },
|
|
|
+ websit() {
|
|
|
+ this.showTableTT = false
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.showTableTT = true
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -468,12 +477,20 @@ export default {
|
|
|
},
|
|
|
// 树形选中
|
|
|
handleNodeClick(e) {
|
|
|
+ if (e.type === 'C') {
|
|
|
+ this.websit = { ...e }
|
|
|
+ } else {
|
|
|
+ this.websit = null
|
|
|
+ }
|
|
|
this.$refs.pageRef.refreshList()
|
|
|
},
|
|
|
// 列表请求函数
|
|
|
getList(pam, cb) {
|
|
|
try {
|
|
|
cb && cb(pam)
|
|
|
+ if (this.websit && this.websit.websitId) {
|
|
|
+ pam.params.push({ param: 'websit_id', compare: '=', value: this.websit.websitId })
|
|
|
+ }
|
|
|
return dispatchListDispatch(pam)
|
|
|
} catch (err) {}
|
|
|
},
|
|
@@ -526,10 +543,6 @@ export default {
|
|
|
return obj
|
|
|
},
|
|
|
formDialogClose() {
|
|
|
- // this.provinceList: [],
|
|
|
- // cityList: [],
|
|
|
- // areaList: [],
|
|
|
- // streetList: [],
|
|
|
this.formData = {
|
|
|
provinceCode: '',
|
|
|
provinceName: '',
|
|
@@ -539,14 +552,10 @@ export default {
|
|
|
areaName: '',
|
|
|
streetCode: '',
|
|
|
streetName: '',
|
|
|
- categoryId: '',
|
|
|
- categoryName: '',
|
|
|
- dictCode: '',
|
|
|
- dictValue: '',
|
|
|
- orderSmallId: '',
|
|
|
- orderSmallTypeText: '',
|
|
|
- orderSource: '',
|
|
|
- orderSourceId: '',
|
|
|
+ categoryIds: [],
|
|
|
+ orderChannelIds: [],
|
|
|
+ orderSmallIds: [],
|
|
|
+ orderSourceIds: [],
|
|
|
websitId: '',
|
|
|
websitName: ''
|
|
|
}
|