update 优化 工作流代码与接口命名

This commit is contained in:
疯狂的狮子Li
2024-03-07 14:23:24 +08:00
parent 0108df1334
commit e7ff829502
15 changed files with 107 additions and 110 deletions

View File

@ -107,7 +107,7 @@
</template>
<script lang="ts" setup>
import { getCurrentSubmitByPage, deleteRuntimeProcessAndHisInst, cancelProcessApply } from '@/api/workflow/processInstance';
import { getPageByCurrent, deleteRunAndHisInstance, cancelProcessApply } from '@/api/workflow/processInstance';
import ApprovalRecord from '@/components/Process/approvalRecord.vue';
import SubmitVerify from '@/components/Process/submitVerify.vue';
import { listCategory } from '@/api/workflow/category';
@ -218,7 +218,7 @@ const handleSelectionChange = (selection: ProcessInstanceVO[]) => {
//分页
const getList = () => {
loading.value = true;
getCurrentSubmitByPage(queryParams.value).then((resp) => {
getPageByCurrent(queryParams.value).then((resp) => {
processInstanceList.value = resp.rows;
total.value = resp.total;
loading.value = false;
@ -231,7 +231,7 @@ const handleDelete = async (row: ProcessInstanceVO) => {
await proxy?.$modal.confirm('是否确认删除id为【' + id + '】的数据项?');
loading.value = true;
if ('running' === tab.value) {
await deleteRuntimeProcessAndHisInst(id).finally(() => (loading.value = false));
await deleteRunAndHisInstance(id).finally(() => (loading.value = false));
getList();
}
proxy?.$modal.msgSuccess('删除成功');