From 97c0cde8cd95d641cab469debfa6978a6dcc5710 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期四, 02 一月 2025 09:41:21 +0800 Subject: [PATCH] process-designer.scss文件将@use修改为@import,解决项目发布后第一次打开一个流程设计图时报错的bug --- src/api/model/pre/dm/index.ts | 47 ++++++++++++++++++++++++++--------------------- 1 files changed, 26 insertions(+), 21 deletions(-) diff --git a/src/api/model/pre/dm/index.ts b/src/api/model/pre/dm/index.ts index db9638a..69e13c3 100644 --- a/src/api/model/pre/dm/index.ts +++ b/src/api/model/pre/dm/index.ts @@ -1,37 +1,42 @@ import request from '@/config/axios' -export interface MmItemTypeVO { - id: string - itemtypename: string, - itemclasstype: string, - assemblyname: string +export interface DmModuleVO { + id: string, + modulename: string, + moduletype: string, + cycle: string } -export interface MmItemTypePageReqVO extends PageParam { +export interface DmModulePageReqVO extends PageParam { modulename?: string } -// 查询MmItemType列表 -export const getMmItemTypePage = (params: MmItemTypePageReqVO) => { - return request.get({ url: '/pre/item-type/page', params }) +// 查询DmModule列表 +export const getDmModulePage = (params: DmModulePageReqVO) => { + return request.get({ url: '/model/pre/module/page', params }) } -// 查询MmItemType详情 -export const getMmItemType = (id: number) => { - return request.get({ url: `/pre/item-type/get/${id}`}) +// 查询DmModule详情 +export const getDmModule = (id: number) => { + return request.get({ url: `/model/pre/module/get/${id}`}) } -// 新增MmItemType -export const createMmItemType = (data: MmItemTypeVO) => { - return request.post({ url: '/pre/item-type/create', data }) +// 新增DmModule +export const createDmModule = (data: DmModuleVO) => { + return request.post({ url: '/model/pre/module/create', data }) } -// 修改MmItemType -export const updateMmItemType = (data: MmItemTypeVO) => { - return request.put({ url: '/pre/item-type/update', data }) +// 修改DmModule +export const updateDmModule = (data: DmModuleVO) => { + return request.put({ url: '/model/pre/module/update', data }) } -// 删除MmItemType -export const deleteMmItemType = (id: number) => { - return request.delete({ url: '/pre/item-type/delete?id=' + id }) +// 删除DmModule +export const deleteDmModule = (id: number) => { + return request.delete({ url: '/model/pre/module/delete?id=' + id }) +} + +// 查询getModuleList详情 +export const getModuleList = () => { + return request.get({ url: `/model/pre/module/list`}) } -- Gitblit v1.9.3