From efe51c2947c76ee863593c2ecfe3a2e65b3e742f Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期二, 24 十月 2023 09:11:02 +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