From 302858f921bed077ab54dd31102f086bfe1add3c Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 07 二月 2024 11:59:47 +0800
Subject: [PATCH] srm项目 系统参数设置的前端页面开发+增加相关路由+公共列表组件增加是否可以配置表头的逻辑

---
 src/views/productManage/product/AddProduct.vue |   49 ++++++++++++++++++-------------------------------
 1 files changed, 18 insertions(+), 31 deletions(-)

diff --git a/src/views/productManage/product/AddProduct.vue b/src/views/productManage/product/AddProduct.vue
index a1bd60e..653b479 100644
--- a/src/views/productManage/product/AddProduct.vue
+++ b/src/views/productManage/product/AddProduct.vue
@@ -161,7 +161,6 @@
 
 <script>
 let inputElement = null
-import { getAddContact, getUpdateContact } from "@/api/client/contacts"
 import EditDropdownDialog from "@/views/other/commonDialog/EditDropdownDialog"
 export default {
   name: "AddProductDialog",
@@ -216,37 +215,25 @@
           const params = this.saveParams()
           console.log(params)
           if (this.editConfig.title === "鏂板缓") {
-            getAddContact(params)
-              .then((res) => {
-                console.log(res)
-                this.editConfig.visible = false
-                if (res.code === 200) {
-                  this.$message({
-                    message: "娣诲姞鎴愬姛",
-                    type: "success"
-                  })
-                  this.$parent.getData()
-                }
-              })
-              .catch((err) => {
-                console.log(err)
-              })
+            // getAddContact(params)
+            //   .then((res) => {
+            //     console.log(res)
+            //     this.editConfig.visible = false
+            //     if (res.code === 200) {
+            //       this.$message.success("娣诲姞鎴愬姛")
+            //       this.$parent.getData()
+            //     }
+            //   })
           } else {
-            getUpdateContact(params)
-              .then((res) => {
-                console.log(res)
-                this.editConfig.visible = false
-                if (res.code === 200) {
-                  this.$message({
-                    message: "缂栬緫鎴愬姛",
-                    type: "success"
-                  })
-                  this.$parent.getData()
-                }
-              })
-              .catch((err) => {
-                console.log(err)
-              })
+            // getUpdateContact(params)
+            //   .then((res) => {
+            //     console.log(res)
+            //     this.editConfig.visible = false
+            //     if (res.code === 200) {
+            //       this.$message.success("缂栬緫鎴愬姛")
+            //       this.$parent.getData()
+            //     }
+            //   })
           }
         } else {
           console.log("error submit")

--
Gitblit v1.8.0