From c9a6f7cbb5209415e626df29c7572cf40fe92b66 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期一, 06 一月 2025 11:44:50 +0800 Subject: [PATCH] 1、工作流程功能优化,解决流程图模拟功能simulation不生效的bug 2、system menu等页面修改 3、Footer copyright年份修改为动态 --- src/views/model/mpk/project/index.vue | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/views/model/mpk/project/index.vue b/src/views/model/mpk/project/index.vue index 96762de..7bc116d 100644 --- a/src/views/model/mpk/project/index.vue +++ b/src/views/model/mpk/project/index.vue @@ -115,7 +115,7 @@ </el-table> <!-- 分页 --> <Pagination - v-model:limit="queryParams.pageSize" + v-model:limit="queryParams.limit" v-model:page="queryParams.page" :total="total" @pagination="getList" @@ -129,10 +129,11 @@ </template> <script lang="ts" setup> import {dateFormatter} from '@/utils/formatTime' - import * as ProjectApi from '@/api/mpk/project' + import * as ProjectApi from '@/api/model/mpk/project' import ProjectForm from './ProjectForm.vue' import ProjectPackage from './ProjectPackage.vue' import RelevanceModel from './ProjectPackageModelDialog.vue' + import * as projectApi from "@/api/model/mpk/project"; defineOptions({name: 'MpkProject'}) @@ -144,7 +145,7 @@ const list = ref([]) // 字典表格数据 const queryParams = reactive({ page: 1, - pageSize: 10, + limit: 10, projectName: '', projectCode: '' }) @@ -165,7 +166,7 @@ const handleCommand = (command: string, row) => { switch (command) { case 'packageModel': - packageModel(row.id, row.projectName, row.projectCode, row.models) + packageModel(row.id, row.projectName, row.projectCode) break default: break @@ -174,13 +175,14 @@ //打包 const projectPackageRef = ref(); - const packageModel = (projectId, projectName, projectCode, models) => { - let ids = models.map(e => e.id); - if (ids && ids.length > 0) { - projectPackageRef.value.open(projectId, projectName, projectCode, ids.join(",")); - } else { + const packageModel = async (projectId, projectName, projectCode) => { + //校验是否关联模型 + const data = await projectApi.getProjectModel({page: 1, pageSize: 1, projectId: projectId}) + if (data.total === 0) { message.error("请先为项目添加模型!") + return } + projectPackageRef.value.open(projectId, projectName, projectCode); } /** 搜索按钮操作 */ -- Gitblit v1.9.3