From 9e798fb7f866084d4e05978075ce1963eeb46de4 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 25 Mar 2023 18:51:09 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=20modelEditor.vue=20=E5=86=97=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bpm/model/index.ts | 2 +- src/views/bpm/model/index.vue | 4 +- src/views/bpm/model/modelEditor.vue | 200 ++++++++-------------------- 3 files changed, 60 insertions(+), 146 deletions(-) diff --git a/src/api/bpm/model/index.ts b/src/api/bpm/model/index.ts index 0335a3db..feedd20b 100644 --- a/src/api/bpm/model/index.ts +++ b/src/api/bpm/model/index.ts @@ -29,7 +29,7 @@ export const getModelPageApi = async (params) => { return await request.get({ url: '/bpm/model/page', params }) } -export const getModelApi = async (id: number) => { +export const getModel = async (id: number) => { return await request.get({ url: '/bpm/model/get?id=' + id }) } diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue index e88ee89e..9a4df2e8 100644 --- a/src/views/bpm/model/index.vue +++ b/src/views/bpm/model/index.vue @@ -389,7 +389,7 @@ const handleFormDetail = async (row) => { const handleBpmnDetail = (row) => { // TODO 芋艿:流程组件开发中 console.log(row) - ModelApi.getModelApi(row).then((response) => { + ModelApi.getModel(row).then((response) => { console.log(response, 'response') bpmnXML.value = response.bpmnXml // 弹窗打开 @@ -432,7 +432,7 @@ const handleUpdate = async (rowId: number) => { resetForm() await setDialogTile('edit') // 设置数据 - saveForm.value = await ModelApi.getModelApi(rowId) + saveForm.value = await ModelApi.getModel(rowId) if (saveForm.value.category == null) { saveForm.value.category = 1 } else { diff --git a/src/views/bpm/model/modelEditor.vue b/src/views/bpm/model/modelEditor.vue index 43836976..f4206f03 100644 --- a/src/views/bpm/model/modelEditor.vue +++ b/src/views/bpm/model/modelEditor.vue @@ -1,53 +1,40 @@ -