From 1c5af8d70b104baa683f246c2341e1f68fe2eae0 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期一, 23 九月 2024 14:03:24 +0800 Subject: [PATCH] 模型平台分组管理 --- src/api/model/pre/predict/index.ts | 91 +++++++++++++++++++++++++++++++++++---------- 1 files changed, 71 insertions(+), 20 deletions(-) diff --git a/src/api/model/pre/predict/index.ts b/src/api/model/pre/predict/index.ts index 9c2c06e..2059286 100644 --- a/src/api/model/pre/predict/index.ts +++ b/src/api/model/pre/predict/index.ts @@ -1,22 +1,68 @@ import request from '@/config/axios' export interface MmPredictItemVO { - id: string - itemno: string, - itemname: string, - itemtypeid: string, + id: string, itemtypename: string, - granularity: number, - isfuse: number, - workchecked: number, - moduleid: string, - itemorder: number, - status: number, - categoryid: string, - pointid: string, - tagname: string, - resulttableid: string, - tablename: string, + mmPredictItem: { + id: string, + itemno: string, + itemname: string, + caltypeid: string, + itemtypeid: string, + predictlength: string, + granularity: number, + status: string, + isfuse: number, + predictphase: string, + workchecked: number, + unittransfactor: string, + saveindex: string + }, + dmModuleItem: { + id: string, + moduleid: string, + itemid: string, + itemorder: number, + status: number, + categoryid: string + }, + mmItemOutput: { + id: string, + itemid: string, + pointid: string, + resulttableid: string, + tagname: string, + outputorder: number + }, + mmPredictModel: { + id: string, + modelno: string, + modelname: string, + itemid: string, + arithid: string, + trainsamplength: string, + predictsamplength: string, + isonlinetrain: string, + modelpath: string, + isnormal: string, + normalmax: string, + normalmin: string, + status: number, + classname: string, + methodname: string, + modelparamstructure: string, + resultstrid: string, + settingmap: string + }, + mmPredictMergeItem: { + id: string, + itemid: string, + expression: string, + num: string + }, + modelparamtypeList: [], + mmModelArithSettingsList: [], + mmModelParamList: [] } export interface MmPredictItemPageReqVO extends PageParam { @@ -26,25 +72,30 @@ // 查询MmPredictItem列表 export const getMmPredictItemPage = (params: MmPredictItemPageReqVO) => { - return request.get({ url: '/pre/predict-item/page', params }) + return request.get({ url: '/model/pre/predict-item/page', params }) } // 查询MmPredictItem详情 export const getMmPredictItem = (id: number) => { - return request.get({ url: `/pre/predict-item/get/${id}`}) + return request.get({ url: `/model/pre/predict-item/get/${id}`}) } // 新增MmPredictItem export const createMmPredictItem = (data: MmPredictItemVO) => { - return request.post({ url: '/pre/predict-item/create', data }) + return request.post({ url: '/model/pre/predict-item/create', data }) } // 修改MmPredictItem export const updateMmPredictItem = (data: MmPredictItemVO) => { - return request.put({ url: '/pre/predict-item/update', data }) + return request.put({ url: '/model/pre/predict-item/update', data }) } // 删除MmPredictItem export const deleteMmPredictItem = (id: number) => { - return request.delete({ url: '/pre/predict-item/delete?id=' + id }) + return request.delete({ url: '/model/pre/predict-item/delete?id=' + id }) +} + +// 查询getMmPredictItemList详情 +export const getMmPredictItemList = () => { + return request.get({ url: `/model/pre/predict-item/list`}) } -- Gitblit v1.9.3