From e622bd5e3b2638b9ab9a712ed1160a66018d6fd7 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 22 二月 2024 09:21:15 +0800
Subject: [PATCH] mrshi
---
company/src/components/business/modification.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/company/src/components/business/modification.vue b/company/src/components/business/modification.vue
index 877a401..ad5bf0a 100644
--- a/company/src/components/business/modification.vue
+++ b/company/src/components/business/modification.vue
@@ -23,12 +23,12 @@
align="center"
label="淇濋櫓鏂规">
<template slot-scope="{row}">
- <el-select v-model="row.solutionBaseId" placeholder="璇烽�夋嫨">
+ <el-select v-model="row.solution" placeholder="璇烽�夋嫨">
<el-option
v-for="item in programme"
:key="item.id"
:label="item.name"
- :value="item.id">
+ :value="{id:item.id,baseId:item.baseId}">
</el-option>
</el-select>
</template>
@@ -71,7 +71,7 @@
id: null,
solutionList: [
{
- solutionBaseId: '',
+ solution: {id: null, baseId: null },
canAdd: 0,
canReduce: 0
}
@@ -110,7 +110,7 @@
},
// 鑾峰彇鍏ㄩ儴鏂规
getAll() {
- all({})
+ all({ dataType: 0 })
.then(res => {
this.programme = res
})
@@ -126,7 +126,7 @@
.then(resa => {
that.form.solutionList = resa.map(item => {
return {
- solutionBaseId: item.solutionBaseId,
+ solution: {id: item.baseSolutionId, baseId: item.solutionId },
canAdd: item.canAdd,
canReduce: item.canReduce
}
@@ -136,7 +136,7 @@
},
add() {
this.form.solutionList.push({
- solutionName: '',
+ solution: {id: null, baseId: null },
canAdd: '',
canReduce: ''
})
--
Gitblit v1.9.3