From 49d084254f77912b46b5abc3e82bc2f6a14a2363 Mon Sep 17 00:00:00 2001 From: songshankun <songshankun@foxmail.com> Date: 星期三, 15 十一月 2023 11:05:58 +0800 Subject: [PATCH] feat: 修复工序运行时间不更新的问题; 选中已完成任务工序运行时间以选中任务为准 --- src/api/index.ts | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index e474d51..8c68113 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -120,16 +120,31 @@ } /** - * 鑾峰彇褰撳墠闈㈡澘缁戝畾鐨勮澶囧垪琛� + * 璁惧畾褰撳墠璁惧 */ export function apiSetCurrentDevice(data: SetCurrentDeviceParams) { - return request<BaseResponse<Devices>>({ + return request<BaseResponse>({ url: `/v1/device/setCurrentDeviceId`, method: 'post', data }) } +export interface SetCurrentDeviceConfigParams { + needSetProcessParams: boolean +} + +/** + * 璁惧畾褰撳墠璁惧閰嶇疆 + */ +export function apiSetCurrentDeviceConfig(data: SetCurrentDeviceConfigParams) { + return request<BaseResponse>({ + url: `/v1/device/config`, + method: 'post', + data + }) +} + export interface CraftModelListParams { procedureId: number page: number -- Gitblit v1.8.0