|
|
|
|
@ -177,33 +177,33 @@ const [ApplyModal, applyModalApi] = useVbenModal({
|
|
|
|
|
<Popconfirm
|
|
|
|
|
:get-popup-container="getVxePopupContainer"
|
|
|
|
|
placement="left"
|
|
|
|
|
title="确认删除?"
|
|
|
|
|
@confirm="handleDelete(row)"
|
|
|
|
|
title="确认撤销?"
|
|
|
|
|
@confirm="handleRevoke(row)"
|
|
|
|
|
>
|
|
|
|
|
<ghost-button
|
|
|
|
|
v-if="['draft', 'cancel', 'back'].includes(row.status)"
|
|
|
|
|
danger
|
|
|
|
|
v-access:code="['workflow:leave:remove']"
|
|
|
|
|
v-if="['waiting'].includes(row.status)"
|
|
|
|
|
v-access:code="['workflow:leave:edit']"
|
|
|
|
|
@click.stop=""
|
|
|
|
|
>
|
|
|
|
|
{{ $t('pages.common.delete') }}
|
|
|
|
|
撤销
|
|
|
|
|
</ghost-button>
|
|
|
|
|
</Popconfirm>
|
|
|
|
|
<ghost-button @click="handleInfo(row)">详情</ghost-button>
|
|
|
|
|
<Popconfirm
|
|
|
|
|
:get-popup-container="getVxePopupContainer"
|
|
|
|
|
placement="left"
|
|
|
|
|
title="确认撤销?"
|
|
|
|
|
@confirm="handleRevoke(row)"
|
|
|
|
|
title="确认删除?"
|
|
|
|
|
@confirm="handleDelete(row)"
|
|
|
|
|
>
|
|
|
|
|
<ghost-button
|
|
|
|
|
v-if="['waiting'].includes(row.status)"
|
|
|
|
|
v-access:code="['workflow:leave:edit']"
|
|
|
|
|
v-if="['draft', 'cancel', 'back'].includes(row.status)"
|
|
|
|
|
danger
|
|
|
|
|
v-access:code="['workflow:leave:remove']"
|
|
|
|
|
@click.stop=""
|
|
|
|
|
>
|
|
|
|
|
撤销
|
|
|
|
|
{{ $t('pages.common.delete') }}
|
|
|
|
|
</ghost-button>
|
|
|
|
|
</Popconfirm>
|
|
|
|
|
<ghost-button @click="handleInfo(row)"> 详情 </ghost-button>
|
|
|
|
|
</Space>
|
|
|
|
|
</template>
|
|
|
|
|
</BasicTable>
|
|
|
|
|
|