diff --git a/src/api/system/dept.ts b/src/api/system/dept.ts index a5b8dc0..9831619 100644 --- a/src/api/system/dept.ts +++ b/src/api/system/dept.ts @@ -59,19 +59,22 @@ export const addDeptApi = (data: DeptRequest) => { /** 部门详情 */ export const getDeptInfoApi = (deptId: string) => { - return http.request>("get", `/system/dept/${deptId}`); + return http.request>( + "get", + `/system/dept/details/${deptId}` + ); }; /** 修改部门 */ export const updateDeptApi = (deptId: string, data: DeptRequest) => { - return http.request>("put", `/system/dept/${deptId}`, { + return http.request>("post", `/system/dept/${deptId}`, { data }); }; /** 删除部门 */ export const deleteDeptApi = (deptId: string) => { - return http.request>("delete", `/system/dept/${deptId}`); + return http.request>("post", `/system/dept/del/${deptId}`); }; /** 获取部门树级结构 */ diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 3139475..b7bc85f 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -71,7 +71,7 @@ const { ("add"); const modalVisible = ref(false); const opRow = ref(); async function openDialog(type: "add" | "update", row?: RoleDTO) { - debugger; try { await getMenuTree(); if (row) {