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 @@ - +