| | |
| | | // 调用新建接口 |
| | | 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, |
| | |
| | | platCateId: this.form.platCateId, |
| | | name: this.form.name, |
| | | imgurl: this.form.imgurl, |
| | | budgetList: this.form.budgetList |
| | | budgetList: arr |
| | | }) |
| | | .then(() => { |
| | | this.visible = false |
| | |
| | | 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, |
| | |
| | | platCateId: this.form.platCateId, |
| | | name: this.form.name, |
| | | imgurl: this.form.imgurl, |
| | | budgetList: this.form.budgetList |
| | | budgetList: arr |
| | | }) |
| | | .then(() => { |
| | | this.visible = false |