chore: 流程详情
This commit is contained in:
parent
3de8104e44
commit
129059b7a5
@ -6,13 +6,12 @@ import type { ID, IDS, PageQuery, PageResult } from '#/api/common';
|
|||||||
import { requestClient } from '#/api/request';
|
import { requestClient } from '#/api/request';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: 这接口后端还没有
|
* @param businessId 业务ID
|
||||||
* @param businessId
|
* @returns TaskInfo
|
||||||
* @returns
|
|
||||||
*/
|
*/
|
||||||
export function getTaskByBusinessId(businessId: string) {
|
export function getTaskByBusinessId(businessId: string) {
|
||||||
return requestClient.get<TaskInfo>(
|
return requestClient.get<TaskInfo>(
|
||||||
`/workflow/instance/infoByBusinessId/${businessId}`,
|
`/workflow/instance/getInfo/${businessId}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ const taskInfo = ref<TaskInfo>();
|
|||||||
const [BasicModal, modalApi] = useVbenModal({
|
const [BasicModal, modalApi] = useVbenModal({
|
||||||
title: '流程信息',
|
title: '流程信息',
|
||||||
class: 'w-[1000px]',
|
class: 'w-[1000px]',
|
||||||
|
footer: false,
|
||||||
onOpenChange: async (isOpen) => {
|
onOpenChange: async (isOpen) => {
|
||||||
if (!isOpen) {
|
if (!isOpen) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -174,21 +174,6 @@ const [ApplyModal, applyModalApi] = useVbenModal({
|
|||||||
>
|
>
|
||||||
{{ $t('pages.common.edit') }}
|
{{ $t('pages.common.edit') }}
|
||||||
</ghost-button>
|
</ghost-button>
|
||||||
<Popconfirm
|
|
||||||
:get-popup-container="getVxePopupContainer"
|
|
||||||
placement="left"
|
|
||||||
title="确认删除?"
|
|
||||||
@confirm="handleDelete(row)"
|
|
||||||
>
|
|
||||||
<ghost-button
|
|
||||||
v-if="['draft', 'cancel', 'back'].includes(row.status)"
|
|
||||||
danger
|
|
||||||
v-access:code="['workflow:leave:remove']"
|
|
||||||
@click.stop=""
|
|
||||||
>
|
|
||||||
{{ $t('pages.common.delete') }}
|
|
||||||
</ghost-button>
|
|
||||||
</Popconfirm>
|
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
:get-popup-container="getVxePopupContainer"
|
:get-popup-container="getVxePopupContainer"
|
||||||
placement="left"
|
placement="left"
|
||||||
@ -204,6 +189,21 @@ const [ApplyModal, applyModalApi] = useVbenModal({
|
|||||||
</ghost-button>
|
</ghost-button>
|
||||||
</Popconfirm>
|
</Popconfirm>
|
||||||
<ghost-button @click="handleInfo(row)">详情</ghost-button>
|
<ghost-button @click="handleInfo(row)">详情</ghost-button>
|
||||||
|
<Popconfirm
|
||||||
|
:get-popup-container="getVxePopupContainer"
|
||||||
|
placement="left"
|
||||||
|
title="确认删除?"
|
||||||
|
@confirm="handleDelete(row)"
|
||||||
|
>
|
||||||
|
<ghost-button
|
||||||
|
v-if="['draft', 'cancel', 'back'].includes(row.status)"
|
||||||
|
danger
|
||||||
|
v-access:code="['workflow:leave:remove']"
|
||||||
|
@click.stop=""
|
||||||
|
>
|
||||||
|
{{ $t('pages.common.delete') }}
|
||||||
|
</ghost-button>
|
||||||
|
</Popconfirm>
|
||||||
</Space>
|
</Space>
|
||||||
</template>
|
</template>
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
|
Loading…
Reference in New Issue
Block a user