From 3aaebcb3cf4b6e1cc8dff10aa01e82b2b50f255f Mon Sep 17 00:00:00 2001 From: xiangbo <975188351@qq.com> Date: Mon, 18 Aug 2025 18:03:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=BB=BA=E8=B5=B4=E6=A0=A1?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=BC=80=E5=8F=91=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/toschoolinfomanage.ts | 32 ++++++++- src/views/toschoolinfomanage/index.vue | 89 ++++++++++++++++++++++++-- 2 files changed, 111 insertions(+), 10 deletions(-) diff --git a/src/api/toschoolinfomanage.ts b/src/api/toschoolinfomanage.ts index 1806bf9..af81b17 100644 --- a/src/api/toschoolinfomanage.ts +++ b/src/api/toschoolinfomanage.ts @@ -6,8 +6,8 @@ import type { Res } from "@/utils/http/types"; * @param {string} type 枚举类型 type=StatusEnum * @return {object} */ -export function getenum(data) { - return http.request>("post", `/back/schools/QueryCombo`, { +export function getenumApi(data) { + return http.request>("post", `/SchoolBusiness/QueryCombo`, { data }); } @@ -16,8 +16,34 @@ export function getenum(data) { * @param {string} type 枚举类型 type=StatusEnum * @return {object} */ -export function getPageList(data) { +export function getPageListApi(data) { return http.request>("post", `/SchoolBusiness/QueryPageList`, { data }); } +/** + * @description 新增赴校信息或者编辑 id:0(新增),其他(编辑) + * @return {object} + */ +export function addOrEditApi(data: any) { + return http.request>("post", `/SchoolBusiness/Edit`, { + data + }); +} +/** + * @description 获取赴校信息详情 + * @param {string} type 枚举类型 type=StatusEnum + * @return {object} + */ +export function getSchoolBusinessDetailApi(id: string | number) { + return http.request>("get", `/SchoolBusiness/${id}`); +} +/** + * @description 删除赴校信息 + * @return {object} + */ +export function deleteSchoolBusinessApi(data: Array) { + return http.request>("post", `/SchoolBusiness/Del`, { + data + }); +} diff --git a/src/views/toschoolinfomanage/index.vue b/src/views/toschoolinfomanage/index.vue index f4ddc9c..354d55f 100644 --- a/src/views/toschoolinfomanage/index.vue +++ b/src/views/toschoolinfomanage/index.vue @@ -98,7 +98,7 @@ - +