Browse Source

接口修改

master
wwp 3 months ago
parent
commit
925fae48a2
2 changed files with 10 additions and 10 deletions
  1. +5
    -5
      SafeCampus.WEB/src/api/modules/usermanage/department.ts
  2. +5
    -5
      SafeCampus.WEB/src/api/modules/usermanage/major.ts

+ 5
- 5
SafeCampus.WEB/src/api/modules/usermanage/department.ts View File

@@ -36,11 +36,11 @@ const userManageDepartmentApi = {
}, },
/** 删除院系 */ /** 删除院系 */
delete(params: ReqId) { delete(params: ReqId) {
return http.post("delete", params);
return http.delete("delete", params);
}, },
// 院系详情 // 院系详情
detail(params: ReqId) { detail(params: ReqId) {
return http.post("getInfo", params);
return http.get("getInfo", params);
}, },
/**院系列表(不分页)*/ /**院系列表(不分页)*/
list(params: any) { list(params: any) {
@@ -49,11 +49,11 @@ const userManageDepartmentApi = {
}; };


const departmentButtonCode = { const departmentButtonCode = {
/** 新增人员 */
/** 新增院系 */
add: "userManageDepartmentAdd", add: "userManageDepartmentAdd",
/** 删除人员 */
/** 删除院系 */
edit: "userManageDepartmentEdit", edit: "userManageDepartmentEdit",
/** 删除人员 */
/** 删除院系 */
delete: "userManageDepartmentDelete" delete: "userManageDepartmentDelete"
}; };




+ 5
- 5
SafeCampus.WEB/src/api/modules/usermanage/major.ts View File

@@ -36,11 +36,11 @@ const userManageMajorApi = {
}, },
/** 删除专业 */ /** 删除专业 */
delete(params: ReqId) { delete(params: ReqId) {
return http.post("delete", params);
return http.delete("delete", params);
}, },
// 专业详情 // 专业详情
detail(params: ReqId) { detail(params: ReqId) {
return http.post("getInfo", params);
return http.get("getInfo", params);
}, },
/**专业列表(不分页)*/ /**专业列表(不分页)*/
list(params: any) { list(params: any) {
@@ -49,11 +49,11 @@ const userManageMajorApi = {
}; };


const majorButtonCode = { const majorButtonCode = {
/** 新增人员 */
/** 新增专业 */
add: "userManageMajorAdd", add: "userManageMajorAdd",
/** 删除人员 */
/** 删除专业 */
edit: "userManageMajorEdit", edit: "userManageMajorEdit",
/** 删除人员 */
/** 删除专业 */
delete: "userManageMajorDelete" delete: "userManageMajorDelete"
}; };




Loading…
Cancel
Save