From 49a44d1b83ac907ca86b36222a2e967f79a90ffb Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 02 一月 2025 13:38:05 +0800
Subject: [PATCH] 调度方案运行状态显示

---
 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