|
@@ -305,7 +305,11 @@ export default {
|
|
|
}).then(() => {
|
|
|
let that = this
|
|
|
if (!row.id) {
|
|
|
- that.quantifiedList.splice(index, 1)
|
|
|
+ that.quantifiedList.forEach((it, index) =>{
|
|
|
+ if (it === row) {
|
|
|
+ that.quantifiedList.splice(index, 1)
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
let params = {
|
|
|
id: row.id,
|
|
@@ -370,14 +374,14 @@ export default {
|
|
|
let obj = {
|
|
|
showInput: true,
|
|
|
businessPlanId: this.importId,
|
|
|
- serialNumber: '1',
|
|
|
+ serialNumber: 1,
|
|
|
deptName: '',
|
|
|
targetName: '',
|
|
|
targetValue: '',
|
|
|
baseScore: 0,
|
|
|
evaluationCriteria: '',
|
|
|
auditStatus: '-1',
|
|
|
- dataPermission: '-1'
|
|
|
+ dataPermission: '1'
|
|
|
}
|
|
|
this.quantifiedList.unshift(obj)
|
|
|
},
|