From e7ff82950218483991771f9f8eb053b8b32163af Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 07 三月 2024 14:23:24 +0800 Subject: [PATCH] update 优化 工作流代码与接口命名 --- src/views/workflow/processDefinition/index.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/workflow/processDefinition/index.vue b/src/views/workflow/processDefinition/index.vue index 3843573..4eca980 100644 --- a/src/views/workflow/processDefinition/index.vue +++ b/src/views/workflow/processDefinition/index.vue @@ -194,13 +194,13 @@ <script lang="ts" setup name="processDefinition"> import { listProcessDefinition, - processDefinitionImage, - processDefinitionXml, + definitionImage, + definitionXml, deleteProcessDefinition, - updateProcessDefState, + updateDefinitionState, convertToModel, deployProcessFile, - getProcessDefinitionListByKey + getListByKey } from '@/api/workflow/processDefinition'; import ProcessPreview from './components/processPreview.vue'; import { listCategory } from '@/api/workflow/category'; @@ -320,7 +320,7 @@ const getProcessDefinitionHitoryList = async (id: string, key: string) => { processDefinitionDialog.visible = true; loading.value = true; - const resp = await getProcessDefinitionListByKey(key); + const resp = await getListByKey(key); if (resp.data && resp.data.length > 0) { processDefinitionHistoryList.value = resp.data.filter((item: any) => item.id !== id); } @@ -330,7 +330,7 @@ //棰勮鍥剧墖 const clickPreviewImg = async (id: string) => { loading.value = true; - const resp = await processDefinitionImage(id); + const resp = await definitionImage(id); if (previewRef.value) { url.value = []; url.value.push('data:image/png;base64,' + resp.data); @@ -341,7 +341,7 @@ //棰勮xml const clickPreviewXML = async (id: string) => { loading.value = true; - const resp = await processDefinitionXml(id); + const resp = await definitionXml(id); if (previewRef.value) { url.value = []; url.value = resp.data.xml; @@ -367,7 +367,7 @@ } await proxy?.$modal.confirm(msg); loading.value = true; - await updateProcessDefState(row.id).finally(() => (loading.value = false)); + await updateDefinitionState(row.id).finally(() => (loading.value = false)); await getList(); proxy?.$modal.msgSuccess('鎿嶄綔鎴愬姛'); }; -- Gitblit v1.9.3