From 9259c2235e31708f954a3578bde3c6a7ab9753e8 Mon Sep 17 00:00:00 2001 From: houzhongjian <houzhongyi@126.com> Date: 星期一, 30 十二月 2024 15:51:40 +0800 Subject: [PATCH] 1、工作流相关组件更新 2、偶尔出现退出登录时路由报错的bug导致无法回到登录页面 3、全局配置文件修改,移除VITE_UPLOAD_URL配置等 --- src/api/data/da/point/index.ts | 39 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 37 insertions(+), 2 deletions(-) diff --git a/src/api/data/da/point/index.ts b/src/api/data/da/point/index.ts index 0b55b99..b64a001 100644 --- a/src/api/data/da/point/index.ts +++ b/src/api/data/da/point/index.ts @@ -20,12 +20,25 @@ export interface DaPointPageReqVO extends PageParam { pointNo?: string, - pointName?: string + pointName?: string, + tagNo?: string, + collectQuality?: string, } + // 查询DaPoint列表 export const getDaPointPage = (params: DaPointPageReqVO) => { return request.get({ url: '/data/da/point/page', params }) +} + +// 查询DaPoint列表 +export const getPointList = (params: DaPointPageReqVO) => { + return request.get({ url: '/data/da/point/list', params }) +} + +// 查询DaPoint simpleList +export const getPointSimpleList = (params: DaPointPageReqVO) => { + return request.get({ url: '/data/da/point/simple-list', params }) } // 查询DaPoint详情 @@ -35,7 +48,7 @@ // 新增DaPoint export const createDaPoint = (data: DaPointVO) => { - return request.post({ url: '/data/da/point/add', data }) + return request.post({ url: '/data/da/point/create', data }) } // 修改DaPoint @@ -47,3 +60,25 @@ export const deleteDaPoint = (id: number) => { return request.delete({ url: '/data/da/point/delete?id=' + id }) } + +//导出DaPointList +export const exportDaPoint = (params) => { + return request.download({ url: '/data/da/point/export', params }) +} + +// 下载用户导入模板 +export const importPointTemplate = () => { + return request.download({ url: '/data/da/point/get-import-template' }) +} + +// 启用 +export const enable = (ids) => { + const data = ids + return request.put({ url: '/data/da/point/enable', data }) +} + +// 禁用 +export const disable = (ids) => { + const data = ids + return request.put({ url: '/data/da/point/disable', data }) +} -- Gitblit v1.9.3