From da85b09c600ddcf4e5c8cad66012fa29a8252b39 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 12 六月 2024 23:40:33 +0800 Subject: [PATCH] 岗位资源更新 --- src/api/tigerapi/mes/router.ts | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/api/tigerapi/mes/router.ts b/src/api/tigerapi/mes/router.ts index cb18143..2a677a0 100644 --- a/src/api/tigerapi/mes/router.ts +++ b/src/api/tigerapi/mes/router.ts @@ -1,7 +1,7 @@ import { ApiAction, ApiActionPage } from '../../model/baseModel'; import { Api, genAction, genActionPage } from '../system'; import { defHttp } from '/@/utils/http/axios'; -import { MES_ROUTE, RouteData } from '../model/router'; +import { MES_ROUTE, MES_ROUTE_NODE_POST, RouteData } from '../model/router'; import { mesApi } from './mesApi'; import { useUserStore } from '/@/store/modules/user'; import { RoutePageListGetResultModel, RoutelistPageParams } from '../model/mesModel'; @@ -27,7 +27,11 @@ return data; } -//淇濆瓨 +/** + * @description: 淇濆瓨宸ヨ壓璺嚎 + * @param {RouteData} params + * @return {*} + */ export const SaveRouteData = async (params: RouteData) => { const data = await defHttp.post( { url: mesApi.SaveRouteData, params: genAction('', params) }, @@ -38,6 +42,7 @@ ); return data; }; + export const SaveRoute = async (params: MES_ROUTE) => { params.CREATE_USER = useUserStore().getUserInfo.userId as string; params.UPDATE_USER = useUserStore().getUserInfo.userId as string; @@ -104,3 +109,14 @@ isTransformResponse: false, }, ); + + export const SaveRouteNodePost = async (params: MES_ROUTE_NODE_POST[]) => { + const data = await defHttp.post( + { url: mesApi.SaveRouteNodePost, params: genAction('MES_ROUTE_NODE_POST', params) }, + { + errorMessageMode: 'none', + isTransformResponse: false, + }, + ); + return data; + }; -- Gitblit v1.9.3