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 }} + + - - - - - + + + + + + + + + + + + + -