修改 重新发起 按钮显示逻辑

This commit is contained in:
GGJ
2024-06-18 13:36:24 +08:00
parent f33aed9b89
commit 16f0a9fa5a
15 changed files with 71 additions and 78 deletions

View File

@@ -162,7 +162,7 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return row.createBy != adminInfo.$state.id || row.status == 6 || row.status == 1 || row.status == 2
return !(row.createBy == adminInfo.$state.id|| row.status == 6 || row.status == 3 || row.status == 4)
},
click: row => {
planTestRef.value.open('重新发起计划测试', row.id, false)
@@ -175,7 +175,7 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return row.createBy != adminInfo.$state.id || row.status == 6 || row.status == 2 || row.status == 3 || row.status == 4
return !(row.createBy == adminInfo.$state.id|| row.status == 1 )
},
click: row => {
cancelLeave(row)