From b587d7634cd6b57b13a6491a44ca626b1978c80d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 26 Mar 2023 01:36:27 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E6=A8=A1=E5=9E=8B=E7=9A=84=E5=90=84=E7=A7=8D=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/model/ModelImportForm.vue | 224 +++++++++++------------- src/views/bpm/model/index.vue | 14 +- 2 files changed, 116 insertions(+), 122 deletions(-) diff --git a/src/views/bpm/model/ModelImportForm.vue b/src/views/bpm/model/ModelImportForm.vue index 6b53d322..ac26ac08 100644 --- a/src/views/bpm/model/ModelImportForm.vue +++ b/src/views/bpm/model/ModelImportForm.vue @@ -1,153 +1,137 @@ - diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue index 471a00fe..cd744986 100644 --- a/src/views/bpm/model/index.vue +++ b/src/views/bpm/model/index.vue @@ -52,7 +52,7 @@ > 新建流程 - + 导入流程 @@ -196,9 +196,12 @@ /> - + + + + @@ -222,6 +225,7 @@ import { dateFormatter, formatDate } from '@/utils/formatTime' import * as ModelApi from '@/api/bpm/model' import * as FormApi from '@/api/bpm/form' import ModelForm from './ModelForm.vue' +import ModelImportForm from '@/views/bpm/model/ModelImportForm.vue' import { setConfAndFields2 } from '@/utils/formCreate' const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 @@ -269,6 +273,12 @@ const openForm = (type: string, id?: number) => { formRef.value.open(type, id) } +/** 添加/修改操作 */ +const importFormRef = ref() +const openImportForm = () => { + importFormRef.value.open() +} + /** 删除按钮操作 */ const handleDelete = async (id: number) => { try {