refactor: 用例模板禁止删除用例等级
This commit is contained in:
parent
4cba05fe6d
commit
ac1bfb2ca4
|
@ -84,7 +84,13 @@ export default {
|
||||||
operators: [
|
operators: [
|
||||||
{
|
{
|
||||||
tip: this.$t('commons.delete'), icon: "el-icon-delete", type: "danger",
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue