From c87a6f7310ca992d7f058a8f286b095c9a632c90 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期四, 21 九月 2023 16:51:58 +0800
Subject: [PATCH] 位置+产品类型的接口联调+业务类型的字段添加

---
 src/views/productManage/productCategory/AddProductCategoryDialog.vue |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/views/productManage/productCategory/AddProductCategoryDialog.vue b/src/views/productManage/productCategory/AddProductCategoryDialog.vue
index a73afb8..afa9934 100644
--- a/src/views/productManage/productCategory/AddProductCategoryDialog.vue
+++ b/src/views/productManage/productCategory/AddProductCategoryDialog.vue
@@ -48,7 +48,7 @@
           <div class="basic-info-view">
             <el-row>
               <el-col :span="24">
-                <div style="margin-left: 20px">绫诲埆</div>
+                <div style="margin-left: 20px"><span class="color_F56C6C">*</span>绫诲埆</div>
                 <el-form-item label="" prop="name" label-width="20px">
                   <el-input
                     v-model="editConfig.infomation.name"
@@ -191,6 +191,7 @@
   updateProductCategory,
   deleteProductCategory,
 } from "@/api/product/productCategory";
+
 import { getDataByType } from "@/api/data";
 export default {
   name: "AddProductCategoryDialog",
@@ -259,9 +260,11 @@
       deleteProductCategory({ id: data.id }).then((res) => {
         if (res.code === 200) {
           this.editConfig.visible = false;
-          this.$message.success("鍒櫎鎴愬姛");
+          this.$message.success("鍒櫎鎴愬姛!");
           this.$emit("refresh");
-        }
+        } else {
+            this.$message.warning(res.msg?res.msg:"鍒犻櫎澶辫触!")
+         }
       });
     },
     // 缂栬緫
@@ -294,17 +297,21 @@
             addProductCategory(params).then((res) => {
               if (res.code === 200) {
                 this.editConfig.visible = false;
-                this.$message.success("娣诲姞鎴愬姛");
+                this.$message.success("娣诲姞鎴愬姛!");
                 this.$emit("refresh");
-              }
+              } else {
+                    this.$message.warning(res.msg?res.msg:"娣诲姞澶辫触!")
+                }
             });
           } else {
             updateProductCategory(params).then((res) => {
               if (res.code === 200) {
                 this.editConfig.visible = false;
-                this.$message.success("缂栬緫鎴愬姛");
+                this.$message.success("缂栬緫鎴愬姛!");
                 this.$emit("refresh");
-              }
+              } else {
+                    this.$message.warning(res.msg?res.msg:"缂栬緫澶辫触!")
+                }
             });
           }
         } else {

--
Gitblit v1.8.0