审批按钮优化
This commit is contained in:
@ -15,9 +15,6 @@
|
||||
</template>
|
||||
</template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'approCode'">
|
||||
{{ record.approName }}
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<TableAction :actions="getActions(record)" />
|
||||
</template>
|
||||
@ -405,7 +402,7 @@
|
||||
if (record.workflowData?.enabled) {
|
||||
//与工作流有关联的表单
|
||||
if (record.workflowData.status) {
|
||||
actionsList.unshift(setIndexFlowStatus(record.workflowData))
|
||||
// actionsList.unshift(setIndexFlowStatus(record.workflowData))
|
||||
} else {
|
||||
actionsList = actionsList.concat(editAndDelBtn);
|
||||
}
|
||||
@ -415,13 +412,6 @@
|
||||
actionsList = actionsList.concat(editAndDelBtn);
|
||||
}
|
||||
}
|
||||
// if (record.approCode === 'YSP' && record.valid!='有效') {
|
||||
// let idx = actionsList.findIndex(v =>v.tooltip == '作废')
|
||||
// idx>-1 && actionsList.splice(idx, 1)
|
||||
// } else {
|
||||
// let idx = actionsList.findIndex(v =>v.tooltip == '启用')
|
||||
// record.valid=='有效' && idx>-1 && actionsList.splice(idx, 1)
|
||||
// }
|
||||
|
||||
return actionsList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user