删除按钮

dev-scheduling
jinna 2 weeks ago
parent 282f3f6120
commit 9e1fee040d
  1. 8
      src/views/productionTesting/productionQuality.vue

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

Loading…
Cancel
Save