fix: 🐛 部门新增和编辑顶级部门回显错误问题修复

This commit is contained in:
ray
2024-11-16 21:54:21 +08:00
parent e597853e5b
commit 9291e17c7f
2 changed files with 26 additions and 34 deletions

View File

@@ -59,7 +59,7 @@ const DeptAPI = {
* @param data 部门表单数据
* @returns 请求结果
*/
update(id: number, data: DeptForm) {
update(id: string, data: DeptForm) {
return request({
url: `${DEPT_BASE_URL}/${id}`,
method: "put",
@@ -116,13 +116,13 @@ export interface DeptVO {
/** 部门表单类型 */
export interface DeptForm {
/** 部门ID(新增不填) */
id?: number;
id?: string;
/** 部门名称 */
name?: string;
/** 部门编号 */
code?: string;
/** 父部门ID */
parentId: number;
parentId: string;
/** 排序 */
sort?: number;
/** 状态(1:启用0禁用) */