修改流程状态

This commit is contained in:
GGJ
2024-06-19 11:28:18 +08:00
parent 71ce755919
commit c496a13617
15 changed files with 247 additions and 209 deletions

View File

@@ -165,10 +165,7 @@ const tableStore = new TableStore({
icon: 'el-icon-Open',
render: 'basicButton',
disabled: row => {
return (
row.createBy != adminInfo.$state.id ||
!(row.status == 3 || row.status == 4 )
)
return row.createBy != adminInfo.$state.id || !(row.status == 3 || row.status == 4)
},
click: row => {
planTestRef.value.open('重新发起计划测试', row.id, false)
@@ -228,6 +225,7 @@ const cancelLeave = async (row: any) => {
const { value } = await ElMessageBox.prompt('请输入取消原因', '取消流程', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputType: 'textarea',
inputPattern: /^[\s\S]*.*\S[\s\S]*$/, // 判断非空,且非空格
inputErrorMessage: '取消原因不能为空'
})