update 优化模型设计

This commit is contained in:
LiuHao 2024-02-04 11:32:43 +08:00
parent 229b55e3d0
commit 1663c587e8

View File

@ -99,7 +99,7 @@
</el-col> </el-col>
</el-row> </el-row>
<!-- 设计流程开始 --> <!-- 设计流程开始 -->
<BpmnDesign ref="bpmnDesignRef"></BpmnDesign> <Design ref="designRef"></Design>
<!-- 设计流程结束 --> <!-- 设计流程结束 -->
<!-- 添加模型对话框 --> <!-- 添加模型对话框 -->
<el-dialog v-model="dialog.visible" :title="dialog.title" width="650px" append-to-body :close-on-click-modal="false"> <el-dialog v-model="dialog.visible" :title="dialog.title" width="650px" append-to-body :close-on-click-modal="false">
@ -135,7 +135,7 @@
</template> </template>
<script lang="ts" setup name="Model"> <script lang="ts" setup name="Model">
import BpmnDesign from '@/components/BpmnDesign/index.vue'; import Design from './design.vue';
import { listModel, addModel, delModel, modelDeploy, getInfo, update } from '@/api/workflow/model'; import { listModel, addModel, delModel, modelDeploy, getInfo, update } from '@/api/workflow/model';
import { ModelQuery, ModelForm, ModelVO } from '@/api/workflow/model/types'; import { ModelQuery, ModelForm, ModelVO } from '@/api/workflow/model/types';
import { listCategory } from '@/api/workflow/category'; import { listCategory } from '@/api/workflow/category';
@ -145,7 +145,7 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const formRef = ref<ElFormInstance>(); const formRef = ref<ElFormInstance>();
const queryFormRef = ref<ElFormInstance>(); const queryFormRef = ref<ElFormInstance>();
const categoryTreeRef = ref<ElTreeInstance>(); const categoryTreeRef = ref<ElTreeInstance>();
const bpmnDesignRef = ref<InstanceType<typeof BpmnDesign>>(); const designRef = ref<InstanceType<typeof Design>>();
type CategoryOption = { type CategoryOption = {
categoryCode: string; categoryCode: string;
@ -321,8 +321,7 @@ const reset = () => {
// //
const clickDesign = async (id: string) => { const clickDesign = async (id: string) => {
const res = await getInfo(id); await designRef.value.open(id);
bpmnDesignRef.value?.open(res.data.xml);
}; };
// //
const clickExportZip = (data: any) => { const clickExportZip = (data: any) => {