|
|
|
@ -250,7 +250,7 @@ |
|
|
|
@click="addSpecimen()" |
|
|
|
@click="addSpecimen()" |
|
|
|
/> --> |
|
|
|
/> --> |
|
|
|
<!-- <div> --> |
|
|
|
<!-- <div> --> |
|
|
|
<img src="@/assets/add.png" style="cursor:pointer;" alt="" @click="addSpecimen()"> |
|
|
|
<img src="@/assets/add.png" style="cursor:pointer;" alt="" @click="addSpecimen(scope.row)"> |
|
|
|
|
|
|
|
|
|
|
|
<!-- </div> --> |
|
|
|
<!-- </div> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
@ -969,10 +969,16 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
addSpecimen(){ |
|
|
|
addSpecimen(row){ |
|
|
|
|
|
|
|
if(row.checkUserRealName != null && row.checkUserRealName != ''){ |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
this.thicknessData.push({}) |
|
|
|
this.thicknessData.push({}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
removeSpecimen(index,row){ |
|
|
|
removeSpecimen(index,row){ |
|
|
|
|
|
|
|
if(row.checkUserRealName != null && row.checkUserRealName != ''){ |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
this.thicknessData.splice(index,1) |
|
|
|
this.thicknessData.splice(index,1) |
|
|
|
let arr = this.getDChyData.filter(item => JSON.stringify(item) === JSON.stringify(row)) |
|
|
|
let arr = this.getDChyData.filter(item => JSON.stringify(item) === JSON.stringify(row)) |
|
|
|
console.log('arr=============',arr) |
|
|
|
console.log('arr=============',arr) |
|
|
|
@ -980,11 +986,17 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
addRules(data,row){ |
|
|
|
addRules(data,row){ |
|
|
|
console.log('row=============',row) |
|
|
|
console.log('row=============',row) |
|
|
|
|
|
|
|
if(row.checkUserRealName != null && row.checkUserRealName != ''){ |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
data.push({ |
|
|
|
data.push({ |
|
|
|
isDel:2 |
|
|
|
isDel:2 |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
removeRules(data,index,row){ |
|
|
|
removeRules(data,index,row){ |
|
|
|
|
|
|
|
if(row.checkUserRealName != null && row.checkUserRealName != ''){ |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
if(row.isDel != 1){ |
|
|
|
if(row.isDel != 1){ |
|
|
|
data.splice(index,1) |
|
|
|
data.splice(index,1) |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
|