|
@@ -10,6 +10,8 @@
|
|
|
:operation="operation()"
|
|
|
:moreParameters="moreParameters"
|
|
|
:expName="expName"
|
|
|
+ :searchSelectDynamicData="searchSelectDynamicData"
|
|
|
+ :searchSelectOnChanre="searchSelectOnChanre"
|
|
|
>
|
|
|
<div class="cartographer_big">
|
|
|
<el-dialog title="配置" width="100%" :modal="false" :visible.sync="formBool" :before-close="handleClose">
|
|
@@ -161,9 +163,44 @@ export default {
|
|
|
createWebsitList: [],
|
|
|
statusTypeList: [],
|
|
|
expName: '',
|
|
|
- kaiguan: true
|
|
|
+ kaiguan: true,
|
|
|
+ searchSelectDynamicData: {
|
|
|
+ PRODUCT_CATEGORY: [],
|
|
|
+ PRODUCT_SUBCLASS: []
|
|
|
+ },
|
|
|
+ searchSelectOnChanre: {
|
|
|
+ // 产品大类
|
|
|
+ PRODUCT_CATEGORY: (v, data) => {
|
|
|
+ data.queryData.find(item => item.param === 'a.small_id').value = ''
|
|
|
+ this.searchSelectDynamicData.PRODUCT_SUBCLASS = this.PRODUCT_SUBCLASS.filter(item => item.parentId === v)
|
|
|
+ },
|
|
|
+ // 产品小类
|
|
|
+ PRODUCT_SUBCLASS: (v, data) => {}
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
+ created() {
|
|
|
+ getClassifyList({ type: 2, status: true }).then(res => {
|
|
|
+ var classifyListLv2 = []
|
|
|
+ this.searchSelectDynamicData.PRODUCT_CATEGORY = res.data.map(item => {
|
|
|
+ var { children, ...data } = item
|
|
|
+ classifyListLv2.push(
|
|
|
+ ...(children || []).map(item => {
|
|
|
+ return {
|
|
|
+ label: item.name,
|
|
|
+ value: item.categoryId,
|
|
|
+ parentId: item.parentId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ )
|
|
|
+ return {
|
|
|
+ label: item.name,
|
|
|
+ value: item.categoryId
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.PRODUCT_SUBCLASS = classifyListLv2
|
|
|
+ })
|
|
|
+ },
|
|
|
computed: {
|
|
|
moreParameters() {
|
|
|
return [
|