|
|
|
|
@ -39,7 +39,7 @@ |
|
|
|
|
<el-button type="text" @click="handleResult(row)">检验结果</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu-left> |
|
|
|
|
<el-button type="primary" @click="handleCreate">生成</el-button> |
|
|
|
|
<!-- <el-button type="primary" @click="handleCreate">生成</el-button> --> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
|
|
|
|
|
@ -165,7 +165,7 @@ |
|
|
|
|
circle |
|
|
|
|
type="danger" |
|
|
|
|
icon="el-icon-delete" |
|
|
|
|
@click="removeRules(scope.row.wpItemDetailList,subScope.$index, scope.row)" |
|
|
|
|
@click="removeRules(scope.row.wpItemDetailList,subScope.$index, scope.row,subScope.row)" |
|
|
|
|
/> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
@ -997,11 +997,11 @@ export default { |
|
|
|
|
isDel:2 |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
removeRules(data,index,row){ |
|
|
|
|
removeRules(data,index,row,val){ |
|
|
|
|
if(row.checkUserRealName != null && row.checkUserRealName != ''){ |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if(row.isDel != 1){ |
|
|
|
|
if(val.isDel != 1){ |
|
|
|
|
data.splice(index,1) |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error('该数据不可删除') |
|
|
|
|
|