diff --git a/src/api/mall/product/property.ts b/src/api/mall/product/property.ts index ac8bac59..c4398486 100644 --- a/src/api/mall/product/property.ts +++ b/src/api/mall/product/property.ts @@ -70,11 +70,6 @@ export const getPropertyList = (params: any) => { return request.get({ url: '/product/property/list', params }) } -// 获得属性项列表 -export const getPropertyListAndValue = (data: any) => { - return request.post({ url: '/product/property/get-value-list', data }) -} - // ------------------------ 属性值 ------------------- // 获得属性值分页 diff --git a/src/views/mall/product/spu/components/SkuList.vue b/src/views/mall/product/spu/components/SkuList.vue index efbc1ae7..5934db52 100644 --- a/src/views/mall/product/spu/components/SkuList.vue +++ b/src/views/mall/product/spu/components/SkuList.vue @@ -34,12 +34,19 @@ - + - + - + - + - + - + - + @@ -85,6 +108,7 @@ :precision="2" :step="0.1" class="w-100%" + controls-position="right" /> @@ -96,6 +120,7 @@ :precision="2" :step="0.1" class="w-100%" + controls-position="right" /> @@ -124,7 +149,12 @@ - + diff --git a/src/views/mall/product/spu/form/InfoForm.vue b/src/views/mall/product/spu/form/InfoForm.vue index 8b94d8a9..18c015c2 100644 --- a/src/views/mall/product/spu/form/InfoForm.vue +++ b/src/views/mall/product/spu/form/InfoForm.vue @@ -100,9 +100,7 @@ const rules = reactive({ brandId: [required] }) -/** - * 将传进来的值赋值给 formData - */ +/** 将传进来的值赋值给 formData */ watch( () => props.propFormData, (data) => { diff --git a/src/views/mall/product/spu/form/ProductAttributes.vue b/src/views/mall/product/spu/form/ProductAttributes.vue index 7239ab85..5276fcc8 100644 --- a/src/views/mall/product/spu/form/ProductAttributes.vue +++ b/src/views/mall/product/spu/form/ProductAttributes.vue @@ -1,9 +1,10 @@ + 属性名: - {{ item.name }} + + {{ item.name }} @@ -12,7 +13,7 @@ v-for="(value, valueIndex) in item.values" :key="value.id" class="mx-1" - closable + :closable="!isDetail" @close="handleCloseValue(index, valueIndex)" > {{ value.name }} @@ -43,6 +44,9 @@