From 32cf8d2d30b26c5937796395fb03078371359aa0 Mon Sep 17 00:00:00 2001
From: Mr.Shi <1878285526@qq.com>
Date: 星期二, 19 九月 2023 20:02:34 +0800
Subject: [PATCH] 企业端

---
 company_admin/src/components/business/OperaCategoryWindow.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/company_admin/src/components/business/OperaCategoryWindow.vue b/company_admin/src/components/business/OperaCategoryWindow.vue
index eff1478..16bdce6 100644
--- a/company_admin/src/components/business/OperaCategoryWindow.vue
+++ b/company_admin/src/components/business/OperaCategoryWindow.vue
@@ -225,6 +225,12 @@
           // 璋冪敤鏂板缓鎺ュ彛
           this.isWorking = true
           if (!this.form.id) {
+            let arr = []
+            this.form.budgetList.forEach(item => {
+              if (item.maxamount || item.minamount) {
+                arr.push(item)
+              }
+            })
             companyCreate({
               paramList: this.form.tableData,
               type: this.form.type,
@@ -232,7 +238,7 @@
               platCateId: this.form.platCateId,
               name: this.form.name,
               imgurl: this.form.imgurl,
-              budgetList: this.form.budgetList
+              budgetList: arr
             })
               .then(() => {
                 this.visible = false
@@ -246,6 +252,12 @@
                 this.isWorking = false
               })
           } else {
+            let arr = []
+            this.form.budgetList.forEach(item => {
+              if (item.maxamount || item.minamount) {
+                arr.push(item)
+              }
+            })
             companyUpdateById({
               id: this.form.id,
               paramList: this.form.tableData,
@@ -254,7 +266,7 @@
               platCateId: this.form.platCateId,
               name: this.form.name,
               imgurl: this.form.imgurl,
-              budgetList: this.form.budgetList
+              budgetList: arr
             })
               .then(() => {
                 this.visible = false

--
Gitblit v1.9.3