From f0c7f4845fb40bb75b2c9eb61a790e9b8ea7401a Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 27 八月 2025 11:25:43 +0800 Subject: [PATCH] 'feat上传附件及预览文件' --- src/api/item/index.ts | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 50 insertions(+), 6 deletions(-) diff --git a/src/api/item/index.ts b/src/api/item/index.ts index 0689be7..b4c9771 100644 --- a/src/api/item/index.ts +++ b/src/api/item/index.ts @@ -1,13 +1,12 @@ /** * 锛堜笉寤鸿鍐欐垚 request.post(xxx)锛屽洜涓鸿繖鏍� post 鏃讹紝鏃犳硶 params 涓� data 鍚屾椂浼犲弬锛� * - * 娉ㄥ唽api鎺ュ彛闆嗗悎 - * @method login 鐧诲綍 + * 椤圭洰绠$悊鎺ュ彛闆嗗悎 */ import { http } from "@/utils/http"; import { baseUrlApi } from "../util"; -import type { Result } from "../types"; +import type { Result, PageResult } from "../types"; // 鑾峰彇琛屾斂鍖哄煙鍒楄〃 export const getRegionList = () => { @@ -82,8 +81,10 @@ }; // 鑾峰彇闈炴斂搴滆鍗曞鐞嗚鎯� -export const getTenderOrderDetail = () => { - return http.request<Result>("get", baseUrlApi("/api/tenderOrder/detail")); +export const getTenderOrderDetail = params => { + return http.request<Result>("get", baseUrlApi("/api/tenderOrder/detail"), { + params + }); }; // 涓嬭浇闈炴斂搴滆鍗曞鐞嗘暟鎹鍏ユā鏉� @@ -104,9 +105,19 @@ // 鎷涙爣浠g悊鍒嗛〉鏌ヨ闈炴斂搴滆鍗曞鐞� export const zhaobiaoPageOrder = (data?: object) => { - return http.request<Result>("post", baseUrlApi("/api/tenderOrder/page"), { + return http.request<PageResult>("post", baseUrlApi("/api/tenderOrder/page"), { data }); +}; + +// 鎷涙爣浠g悊鍒嗛〉鏌ヨ闈炴斂搴滆鍗曞鐞� + +// 閲囪喘浠g悊浜哄鍔犻潪鏀垮簻璁㈠崟澶勭悊鑾峰彇鑱旂郴鏂瑰紡 +export const addgetcontact = () => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/addgetcontact") + ); }; // 閲囪喘浠g悊浜哄鍔犻潪鏀垮簻璁㈠崟澶勭悊 @@ -114,6 +125,17 @@ return http.request<Result>("post", baseUrlApi("/api/tenderOrder/add"), { data }); +}; + +// 閲囪喘浠g悊浜哄鍔犻潪鏀垮簻璁㈠崟澶勭悊 +export const updateTittle = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/updateTittle"), + { + data + } + ); }; // 閲囪喘浠g悊浜烘洿鏂伴潪鏀垮簻璁㈠崟澶勭悊 @@ -169,3 +191,25 @@ data }); }; + +// 閲囪喘浠g悊浜哄彂甯冩嫑鏍� +export const fabuzhaobiao = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/fabuzhaobiao"), + { + data + } + ); +}; + +// 閲囪喘浠g悊浜哄彂甯冩嫑鏍� +export const changezhaobiao = (data?: object) => { + return http.request<Result>( + "post", + baseUrlApi("/api/tenderOrder/changezhaobiao"), + { + data + } + ); +}; -- Gitblit v1.9.1