From 19378c283f19ee0b023b3cd73fbdd331eed2fe17 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期四, 02 十一月 2023 18:45:25 +0800 Subject: [PATCH] feat: 添加工艺列表接口,工艺详情弹窗未完成 --- src/api/index.ts | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index c8e30e9..afab391 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -2,6 +2,7 @@ import type { CraftParamsResponse, TasksGroupByChannel } from './task' import type { PLCResponse } from './plc' import type { Devices } from './device' +import type { CraftModel } from './craftModel' export interface BaseResponse<T = any> { code: number @@ -105,3 +106,38 @@ method: 'get' }) } + +export interface CraftModelListParams { + procedureId: number + page: number + pageSize: number + number: string +} + +/** + * 鑾峰彇宸ヨ壓妯″瀷鍒楄〃 + * @param params + */ +export function apiGetCraftModelList(params: CraftModelListParams) { + return request<BaseResponse<CraftModel[]>>({ + url: '/v1/processModel/list', + method: 'get', + params + }) +} + +export interface UpdateCraftPrams { + procedureId: number +} + +/** + * 鏇存柊宸ヨ壓妯″瀷 + * @param params + */ +export function updateCraftParams(params: UpdateCraftPrams) { + return request<BaseResponse>({ + url: '/v1/task/updateProcessParams', + method: 'post', + data: params + }) +} -- Gitblit v1.8.0