删除隐患考评

pull/6/head
zhaoyu 2024-01-03 16:58:10 +08:00
parent c8fe830e31
commit f4bd540162
1 changed files with 34 additions and 0 deletions

View File

@ -164,6 +164,12 @@
icon="el-icon-view"
@click="fnEvaluation(row.HIDDEN_ID,row.SOURCE, row.CREATOR,'edit')">考评
</el-button>
<el-button
v-if="USER_ID=='1'"
type="danger"
icon="el-icon-view"
@click="fnDelvaluation(row.HIDDEN_ID)">删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -420,6 +426,34 @@ export default {
})
}
})
},
fnDelvaluation(hiddenId) {
this.$confirm('确定要删除选中的评审记录吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.listLoading = true
requestFN(
'/hiddenevaluationrecord/deleteEvaluation',
{
HIDDEN_ID: hiddenId
}
).then((data) => {
this.listLoading = false
if (data.result === 'success') {
this.$message.success('删除成功')
this.getList()
} else {
this.$message({
message: data.message,
type: 'error'
})
}
}).catch((e) => {
})
}).catch(() => {
})
}
}
}