refactor: 用例模板禁止删除用例等级

This commit is contained in:
chenjianxing 2021-06-21 16:54:17 +08:00 committed by jianxing
parent 2f310e9258
commit 2589294bf2
1 changed files with 7 additions and 1 deletions

View File

@ -84,7 +84,13 @@ export default {
operators: [
{
tip: this.$t('commons.delete'), icon: "el-icon-delete", type: "danger",
exec: this.handleDelete
exec: this.handleDelete,
isDisable: (row) => {
if (row.name === '用例等级') {
return true;
}
return false;
}
}
],
};