From 67ea852973d664ab98c128412f7528e13038f34b Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期二, 24 九月 2024 08:42:38 +0800 Subject: [PATCH] 指标定义 --- src/api/model/pre/dm/index.ts | 46 ++++++++++++++++++++++++++-------------------- 1 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/api/model/pre/dm/index.ts b/src/api/model/pre/dm/index.ts index db9638a..042614b 100644 --- a/src/api/model/pre/dm/index.ts +++ b/src/api/model/pre/dm/index.ts @@ -1,37 +1,43 @@ import request from '@/config/axios' -export interface MmItemTypeVO { +export interface DmModuleVO { id: string - itemtypename: string, - itemclasstype: string, - assemblyname: string + modulename: string, + moduletype: string, + cycle: string, + modulenavconfig: 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