From a0aec27ffc59ba1137a016d83a55ee4d041d19fc Mon Sep 17 00:00:00 2001 From: sj <1304317391@qq.com> Date: Fri, 11 Nov 2022 16:26:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=93=81=E7=89=8C=E9=80=89=E6=8B=A9=E6=A1=86?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bxg/shop/goods/form.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/bxg/shop/goods/form.vue b/src/views/bxg/shop/goods/form.vue index 90d3334..f0a06f0 100644 --- a/src/views/bxg/shop/goods/form.vue +++ b/src/views/bxg/shop/goods/form.vue @@ -24,7 +24,7 @@ - + @@ -601,6 +601,9 @@ export default { cate_id: [ { required: true, message: '请选择商品分类', trigger: 'change' } ], + brand_id: [ + { required: true, message: '请选择商品品牌', trigger: 'change' } + ], keyword: [ { required: true, message: '请输入商品关键字', trigger: 'blur' } ], @@ -709,6 +712,7 @@ export default { this.parameter.splice(index,1); }, dataFilter(val){ + // console.log('val',val) this.value=val if(val){ this.optionsMetaShow=this.treeSelect.filter((item=>{ @@ -843,7 +847,7 @@ export default { sort: 'id,desc' }).then(data => { that.hotList=data.content - //若为编辑,应初始化一下品牌 + //若为编辑,应初始化一下榜单 }), //查询商品品牌 initData('/bxg/api/yxStoreBrand', { @@ -859,7 +863,7 @@ export default { getInfo(id).then(async res => { let data = res.productInfo; if(data){ - console.log('data11111',data) + // console.log('data11111',data) let cate_id = parseInt(data.cate_id) || 0; let brand_id = parseInt(data.brand_id) || 0; this.attrs = data.items || []; @@ -904,7 +908,7 @@ export default { //规格 that.ruleList = res.ruleList; that.templateList = res.tempList; - that.optionsMetaShow = that.treeSelect + that.optionsMetaShow = res.cateList; }).catch(res => { console.log('err:'+res)