diff --git a/dist.zip b/dist.zip index 9a29666..3e50a00 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/views/bannerManagement/list/index.vue b/src/views/bannerManagement/list/index.vue index 92a84b3..615f9f3 100644 --- a/src/views/bannerManagement/list/index.vue +++ b/src/views/bannerManagement/list/index.vue @@ -136,13 +136,18 @@ const treeProps = { value: "value" }; -//产品分类(后端大佬说直接掉列表接口) +//banner分类 const getProductCategoryList = async () => { const result = await getProductCategoryListApi(); if (result?.code === 0) { let dataClone: any = cloneDeep(result?.data); console.log(dataClone, "=dataClone="); - dataStore.editFormData[7].options = addLabelValue(dataClone); + dataStore.editFormData.forEach((item: any) => { + if (item.prop === "rel_prod_cate_id") { + item.options = addLabelValue(dataClone); + } + }); + // dataStore.editFormData[8].options = addLabelValue(dataClone); } }; diff --git a/src/views/productManagement/classList/index.vue b/src/views/productManagement/classList/index.vue index a0dd592..a59c5b0 100644 --- a/src/views/productManagement/classList/index.vue +++ b/src/views/productManagement/classList/index.vue @@ -167,6 +167,11 @@ const getProductCategoryUpdate = async () => { dataStore.visible = false; resetFrom(); getProductCategoryList(); + console.log("走的进来吗"); + } else { + dataStore.ruleForm.related_tco_category = dataStore.ruleForm.related_tco_category + .split(",") + .map((item: any) => Number(item)); } }; //产品详情