From dc2dbcbc846651076251561a94343e0cde1baa49 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 7 Dec 2024 19:50:23 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E3=80=91IoT=EF=BC=9A=E4=BA=A7=E5=93=81=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=97=B6=EF=BC=8CproductKey=20=E7=94=B1=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E7=94=9F=E6=88=90=EF=BC=9B=E5=90=8C=E6=97=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20icon=E3=80=81picUrl=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/product/category/index.ts | 5 + src/views/iot/product/product/ProductForm.vue | 116 +++++++++++------- 2 files changed, 76 insertions(+), 45 deletions(-) diff --git a/src/api/iot/product/category/index.ts b/src/api/iot/product/category/index.ts index f2e377d4..cad17f5c 100644 --- a/src/api/iot/product/category/index.ts +++ b/src/api/iot/product/category/index.ts @@ -34,5 +34,10 @@ export const ProductCategoryApi = { // 删除产品分类 deleteProductCategory: async (id: number) => { return await request.delete({ url: `/iot/product-category/delete?id=` + id }) + }, + + /** 获取产品分类精简列表 */ + getSimpleProductCategoryList: () => { + return request.get({ url: '/iot/product-category/simple-list' }) } } diff --git a/src/views/iot/product/product/ProductForm.vue b/src/views/iot/product/product/ProductForm.vue index 4951ebe2..b974717b 100644 --- a/src/views/iot/product/product/ProductForm.vue +++ b/src/views/iot/product/product/ProductForm.vue @@ -4,28 +4,40 @@ ref="formRef" :model="formData" :rules="formRules" - label-width="100px" + label-width="110px" v-loading="formLoading" > + + + - - - + + - + + + + {{ dict.label }} + + + - - - - + - + :label="dict.value" + > + {{ dict.label }} + + - - - - - + + + + + + + + + + + + + -