|
@@ -109,19 +109,26 @@ export default {
|
|
|
versionType: 1 // 系数变化
|
|
|
},
|
|
|
performanceSolutionDetailRespCategoryVos: this.items.map(e => {
|
|
|
- e.calculateConfigurations = e.calculateConfigurations.map(item => {
|
|
|
+ const { calculateConfigurations, ...obj } = e
|
|
|
+ const _calculateConfigurations = calculateConfigurations.map(item => {
|
|
|
if (item.valueCategory !== 0) {
|
|
|
- item.value = JSON.stringify(item.value)
|
|
|
- return item
|
|
|
+ const { value, ...rest } = item
|
|
|
+ return {
|
|
|
+ value: JSON.stringify(item.value),
|
|
|
+ ...rest
|
|
|
+ }
|
|
|
}
|
|
|
return item
|
|
|
})
|
|
|
- return e
|
|
|
+ return {
|
|
|
+ calculateConfigurations: _calculateConfigurations,
|
|
|
+ ...obj
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
try {
|
|
|
const { data } = await saveSalaryParamForSandbox(query)
|
|
|
- return data
|
|
|
+ return data.performanceSolutionId
|
|
|
} catch (error) {
|
|
|
this.$message.error(error)
|
|
|
}
|