fix: 🐛 统一主键为 string 类型
This commit is contained in:
@@ -110,7 +110,7 @@ export interface TablePageVO {
|
|||||||
/** 代码生成配置表单 */
|
/** 代码生成配置表单 */
|
||||||
export interface GenConfigForm {
|
export interface GenConfigForm {
|
||||||
/** 主键 */
|
/** 主键 */
|
||||||
id?: number;
|
id?: string;
|
||||||
|
|
||||||
/** 表名 */
|
/** 表名 */
|
||||||
tableName?: string;
|
tableName?: string;
|
||||||
@@ -131,7 +131,7 @@ export interface GenConfigForm {
|
|||||||
author?: string;
|
author?: string;
|
||||||
|
|
||||||
/** 上级菜单 */
|
/** 上级菜单 */
|
||||||
parentMenuId?: number;
|
parentMenuId?: string;
|
||||||
|
|
||||||
/** 后端应用名 */
|
/** 后端应用名 */
|
||||||
backendAppName?: string;
|
backendAppName?: string;
|
||||||
@@ -145,7 +145,7 @@ export interface GenConfigForm {
|
|||||||
/** 字段配置 */
|
/** 字段配置 */
|
||||||
export interface FieldConfig {
|
export interface FieldConfig {
|
||||||
/** 主键 */
|
/** 主键 */
|
||||||
id?: number;
|
id?: string;
|
||||||
|
|
||||||
/** 列名 */
|
/** 列名 */
|
||||||
columnName?: string;
|
columnName?: string;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ const ConfigAPI = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** 系统配置表单数据 */
|
/** 系统配置表单数据 */
|
||||||
getFormData(id: number) {
|
getFormData(id: string) {
|
||||||
return request<any, ConfigForm>({
|
return request<any, ConfigForm>({
|
||||||
url: `${CONFIG_BASE_URL}/${id}/form`,
|
url: `${CONFIG_BASE_URL}/${id}/form`,
|
||||||
method: "get",
|
method: "get",
|
||||||
@@ -30,7 +30,7 @@ const ConfigAPI = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/** 更新系统配置 */
|
/** 更新系统配置 */
|
||||||
update(id: number, data: ConfigForm) {
|
update(id: string, data: ConfigForm) {
|
||||||
return request({
|
return request({
|
||||||
url: `${CONFIG_BASE_URL}/${id}`,
|
url: `${CONFIG_BASE_URL}/${id}`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -43,7 +43,7 @@ const ConfigAPI = {
|
|||||||
*
|
*
|
||||||
* @param ids 系统配置ID
|
* @param ids 系统配置ID
|
||||||
*/
|
*/
|
||||||
deleteById(id: number) {
|
deleteById(id: string) {
|
||||||
return request({
|
return request({
|
||||||
url: `${CONFIG_BASE_URL}/${id}`,
|
url: `${CONFIG_BASE_URL}/${id}`,
|
||||||
method: "delete",
|
method: "delete",
|
||||||
@@ -69,7 +69,7 @@ export interface ConfigPageQuery extends PageQuery {
|
|||||||
/** 系统配置表单对象 */
|
/** 系统配置表单对象 */
|
||||||
export interface ConfigForm {
|
export interface ConfigForm {
|
||||||
/** 主键 */
|
/** 主键 */
|
||||||
id?: number;
|
id?: string;
|
||||||
/** 配置名称 */
|
/** 配置名称 */
|
||||||
configName?: string;
|
configName?: string;
|
||||||
/** 配置键 */
|
/** 配置键 */
|
||||||
@@ -83,7 +83,7 @@ export interface ConfigForm {
|
|||||||
/** 系统配置分页对象 */
|
/** 系统配置分页对象 */
|
||||||
export interface ConfigPageVO {
|
export interface ConfigPageVO {
|
||||||
/** 主键 */
|
/** 主键 */
|
||||||
id?: number;
|
id?: string;
|
||||||
/** 配置名称 */
|
/** 配置名称 */
|
||||||
configName?: string;
|
configName?: string;
|
||||||
/** 配置键 */
|
/** 配置键 */
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const DeptAPI = {
|
|||||||
* @param id 部门ID
|
* @param id 部门ID
|
||||||
* @returns 部门表单数据
|
* @returns 部门表单数据
|
||||||
*/
|
*/
|
||||||
getFormData(id: number) {
|
getFormData(id: string) {
|
||||||
return request<any, DeptForm>({
|
return request<any, DeptForm>({
|
||||||
url: `${DEPT_BASE_URL}/${id}/form`,
|
url: `${DEPT_BASE_URL}/${id}/form`,
|
||||||
method: "get",
|
method: "get",
|
||||||
@@ -98,13 +98,13 @@ export interface DeptVO {
|
|||||||
/** 创建时间 */
|
/** 创建时间 */
|
||||||
createTime?: Date;
|
createTime?: Date;
|
||||||
/** 部门ID */
|
/** 部门ID */
|
||||||
id?: number;
|
id?: string;
|
||||||
/** 部门名称 */
|
/** 部门名称 */
|
||||||
name?: string;
|
name?: string;
|
||||||
/** 部门编号 */
|
/** 部门编号 */
|
||||||
code?: string;
|
code?: string;
|
||||||
/** 父部门ID */
|
/** 父部门ID */
|
||||||
parentId?: number;
|
parentid?: string;
|
||||||
/** 排序 */
|
/** 排序 */
|
||||||
sort?: number;
|
sort?: number;
|
||||||
/** 状态(1:启用;0:禁用) */
|
/** 状态(1:启用;0:禁用) */
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const DictAPI = {
|
|||||||
* @param id 字典ID
|
* @param id 字典ID
|
||||||
* @returns 字典表单数据
|
* @returns 字典表单数据
|
||||||
*/
|
*/
|
||||||
getFormData(id: number) {
|
getFormData(id: string) {
|
||||||
return request<any, ResponseData<DictForm>>({
|
return request<any, ResponseData<DictForm>>({
|
||||||
url: `${DICT_BASE_URL}/${id}/form`,
|
url: `${DICT_BASE_URL}/${id}/form`,
|
||||||
method: "get",
|
method: "get",
|
||||||
@@ -65,7 +65,7 @@ const DictAPI = {
|
|||||||
* @param id 字典ID
|
* @param id 字典ID
|
||||||
* @param data 字典表单数据
|
* @param data 字典表单数据
|
||||||
*/
|
*/
|
||||||
update(id: number, data: DictForm) {
|
update(id: string, data: DictForm) {
|
||||||
return request({
|
return request({
|
||||||
url: `${DICT_BASE_URL}/${id}`,
|
url: `${DICT_BASE_URL}/${id}`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -129,7 +129,7 @@ const DictAPI = {
|
|||||||
* @param id 字典项ID
|
* @param id 字典项ID
|
||||||
* @returns 字典项表单数据
|
* @returns 字典项表单数据
|
||||||
*/
|
*/
|
||||||
getDictItemFormData(dictCode: string, id: number) {
|
getDictItemFormData(dictCode: string, id: string) {
|
||||||
return request<any, ResponseData<DictItemForm>>({
|
return request<any, ResponseData<DictItemForm>>({
|
||||||
url: `${DICT_BASE_URL}/${dictCode}/items/${id}/form`,
|
url: `${DICT_BASE_URL}/${dictCode}/items/${id}/form`,
|
||||||
method: "get",
|
method: "get",
|
||||||
@@ -139,7 +139,7 @@ const DictAPI = {
|
|||||||
/**
|
/**
|
||||||
* 修改字典项
|
* 修改字典项
|
||||||
*/
|
*/
|
||||||
updateDictItem(dictCode: string, id: number, data: DictItemForm) {
|
updateDictItem(dictCode: string, id: string, data: DictItemForm) {
|
||||||
return request({
|
return request({
|
||||||
url: `${DICT_BASE_URL}/${dictCode}/items/${id}`,
|
url: `${DICT_BASE_URL}/${dictCode}/items/${id}`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -182,7 +182,7 @@ export interface DictPageVO {
|
|||||||
/**
|
/**
|
||||||
* 字典ID
|
* 字典ID
|
||||||
*/
|
*/
|
||||||
id: number;
|
id: string;
|
||||||
/**
|
/**
|
||||||
* 字典名称
|
* 字典名称
|
||||||
*/
|
*/
|
||||||
@@ -204,7 +204,7 @@ export interface DictForm {
|
|||||||
/**
|
/**
|
||||||
* 字典ID
|
* 字典ID
|
||||||
*/
|
*/
|
||||||
id?: number;
|
id?: string;
|
||||||
/**
|
/**
|
||||||
* 字典名称
|
* 字典名称
|
||||||
*/
|
*/
|
||||||
@@ -241,7 +241,7 @@ export interface DictItemPageVO {
|
|||||||
/**
|
/**
|
||||||
* 字典ID
|
* 字典ID
|
||||||
*/
|
*/
|
||||||
id: number;
|
id: string;
|
||||||
/**
|
/**
|
||||||
* 字典编码
|
* 字典编码
|
||||||
*/
|
*/
|
||||||
@@ -271,7 +271,7 @@ export interface DictItemForm {
|
|||||||
/**
|
/**
|
||||||
* 字典ID
|
* 字典ID
|
||||||
*/
|
*/
|
||||||
id?: number;
|
id?: string;
|
||||||
/**
|
/**
|
||||||
* 字典编码
|
* 字典编码
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export interface LogPageQuery extends PageQuery {
|
|||||||
*/
|
*/
|
||||||
export interface LogPageVO {
|
export interface LogPageVO {
|
||||||
/** 主键 */
|
/** 主键 */
|
||||||
id: number;
|
id: string;
|
||||||
/** 日志模块 */
|
/** 日志模块 */
|
||||||
module: string;
|
module: string;
|
||||||
/** 日志内容 */
|
/** 日志内容 */
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ const MenuAPI = {
|
|||||||
* @param id 菜单ID
|
* @param id 菜单ID
|
||||||
* @returns 请求结果
|
* @returns 请求结果
|
||||||
*/
|
*/
|
||||||
deleteById(id: number) {
|
deleteById(id: string) {
|
||||||
return request({
|
return request({
|
||||||
url: `${MENU_BASE_URL}/${id}`,
|
url: `${MENU_BASE_URL}/${id}`,
|
||||||
method: "delete",
|
method: "delete",
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ const NoticeAPI = {
|
|||||||
/**
|
/**
|
||||||
* 获取通知公告表单数据
|
* 获取通知公告表单数据
|
||||||
*
|
*
|
||||||
* @param id NoticeID
|
* @param id 通知
|
||||||
* @returns Notice表单数据
|
* @returns 通知表单数据
|
||||||
*/
|
*/
|
||||||
getFormData(id: number) {
|
getFormData(id: string) {
|
||||||
return request<any, NoticeForm>({
|
return request<any, NoticeForm>({
|
||||||
url: `${NOTICE_BASE_URL}/${id}/form`,
|
url: `${NOTICE_BASE_URL}/${id}/form`,
|
||||||
method: "get",
|
method: "get",
|
||||||
@@ -28,7 +28,7 @@ const NoticeAPI = {
|
|||||||
/**
|
/**
|
||||||
* 添加通知公告
|
* 添加通知公告
|
||||||
*
|
*
|
||||||
* @param data Notice表单数据
|
* @param data 通知表单数据
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
create(data: NoticeForm) {
|
create(data: NoticeForm) {
|
||||||
@@ -42,10 +42,10 @@ const NoticeAPI = {
|
|||||||
/**
|
/**
|
||||||
* 更新通知公告
|
* 更新通知公告
|
||||||
*
|
*
|
||||||
* @param id NoticeID
|
* @param id 通知ID
|
||||||
* @param data Notice表单数据
|
* @param data 通知表单数据
|
||||||
*/
|
*/
|
||||||
update(id: number, data: NoticeForm) {
|
update(id: string, data: NoticeForm) {
|
||||||
return request({
|
return request({
|
||||||
url: `${NOTICE_BASE_URL}/${id}`,
|
url: `${NOTICE_BASE_URL}/${id}`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -71,7 +71,7 @@ const NoticeAPI = {
|
|||||||
* @param id 被发布的通知公告id
|
* @param id 被发布的通知公告id
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
publish(id: number) {
|
publish(id: string) {
|
||||||
return request({
|
return request({
|
||||||
url: `${NOTICE_BASE_URL}/${id}/publish`,
|
url: `${NOTICE_BASE_URL}/${id}/publish`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -84,7 +84,7 @@ const NoticeAPI = {
|
|||||||
* @param id 撤回的通知id
|
* @param id 撤回的通知id
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
revoke(id: number) {
|
revoke(id: string) {
|
||||||
return request({
|
return request({
|
||||||
url: `${NOTICE_BASE_URL}/${id}/revoke`,
|
url: `${NOTICE_BASE_URL}/${id}/revoke`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -134,7 +134,7 @@ export interface NoticePageQuery extends PageQuery {
|
|||||||
|
|
||||||
/** 通知公告表单对象 */
|
/** 通知公告表单对象 */
|
||||||
export interface NoticeForm {
|
export interface NoticeForm {
|
||||||
id?: number;
|
id?: string;
|
||||||
/** 通知标题 */
|
/** 通知标题 */
|
||||||
title?: string;
|
title?: string;
|
||||||
/** 通知内容 */
|
/** 通知内容 */
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ const RoleAPI = {
|
|||||||
* @param roleId 角色ID
|
* @param roleId 角色ID
|
||||||
* @returns 角色的菜单ID集合
|
* @returns 角色的菜单ID集合
|
||||||
*/
|
*/
|
||||||
getRoleMenuIds(roleId: number) {
|
getRoleMenuIds(roleId: string) {
|
||||||
return request<any, number[]>({
|
return request<any, string[]>({
|
||||||
url: `${ROLE_BASE_URL}/${roleId}/menuIds`,
|
url: `${ROLE_BASE_URL}/${roleId}/menuIds`,
|
||||||
method: "get",
|
method: "get",
|
||||||
});
|
});
|
||||||
@@ -38,7 +38,7 @@ const RoleAPI = {
|
|||||||
* @param roleId 角色ID
|
* @param roleId 角色ID
|
||||||
* @param data 菜单ID集合
|
* @param data 菜单ID集合
|
||||||
*/
|
*/
|
||||||
updateRoleMenus(roleId: number, data: number[]) {
|
updateRoleMenus(roleId: string, data: number[]) {
|
||||||
return request({
|
return request({
|
||||||
url: `${ROLE_BASE_URL}/${roleId}/menus`,
|
url: `${ROLE_BASE_URL}/${roleId}/menus`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -52,7 +52,7 @@ const RoleAPI = {
|
|||||||
* @param id 角色ID
|
* @param id 角色ID
|
||||||
* @returns 角色表单数据
|
* @returns 角色表单数据
|
||||||
*/
|
*/
|
||||||
getFormData(id: number) {
|
getFormData(id: string) {
|
||||||
return request<any, RoleForm>({
|
return request<any, RoleForm>({
|
||||||
url: `${ROLE_BASE_URL}/${id}/form`,
|
url: `${ROLE_BASE_URL}/${id}/form`,
|
||||||
method: "get",
|
method: "get",
|
||||||
@@ -74,7 +74,7 @@ const RoleAPI = {
|
|||||||
* @param id 角色ID
|
* @param id 角色ID
|
||||||
* @param data 角色表单数据
|
* @param data 角色表单数据
|
||||||
*/
|
*/
|
||||||
update(id: number, data: RoleForm) {
|
update(id: string, data: RoleForm) {
|
||||||
return request({
|
return request({
|
||||||
url: `${ROLE_BASE_URL}/${id}`,
|
url: `${ROLE_BASE_URL}/${id}`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -105,10 +105,10 @@ export interface RolePageQuery extends PageQuery {
|
|||||||
|
|
||||||
/** 角色分页对象 */
|
/** 角色分页对象 */
|
||||||
export interface RolePageVO {
|
export interface RolePageVO {
|
||||||
|
/** 角色ID */
|
||||||
|
id?: string;
|
||||||
/** 角色编码 */
|
/** 角色编码 */
|
||||||
code?: string;
|
code?: string;
|
||||||
/** 角色ID */
|
|
||||||
id?: number;
|
|
||||||
/** 角色名称 */
|
/** 角色名称 */
|
||||||
name?: string;
|
name?: string;
|
||||||
/** 排序 */
|
/** 排序 */
|
||||||
@@ -124,7 +124,7 @@ export interface RolePageVO {
|
|||||||
/** 角色表单对象 */
|
/** 角色表单对象 */
|
||||||
export interface RoleForm {
|
export interface RoleForm {
|
||||||
/** 角色ID */
|
/** 角色ID */
|
||||||
id?: number;
|
id?: string;
|
||||||
/** 角色编码 */
|
/** 角色编码 */
|
||||||
code?: string;
|
code?: string;
|
||||||
/** 数据权限 */
|
/** 数据权限 */
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const UserAPI = {
|
|||||||
* @param userId 用户ID
|
* @param userId 用户ID
|
||||||
* @returns 用户表单详情
|
* @returns 用户表单详情
|
||||||
*/
|
*/
|
||||||
getFormData(userId: number) {
|
getFormData(userId: string) {
|
||||||
return request<any, UserForm>({
|
return request<any, UserForm>({
|
||||||
url: `${USER_BASE_URL}/${userId}/form`,
|
url: `${USER_BASE_URL}/${userId}/form`,
|
||||||
method: "get",
|
method: "get",
|
||||||
@@ -60,7 +60,7 @@ const UserAPI = {
|
|||||||
* @param id 用户ID
|
* @param id 用户ID
|
||||||
* @param data 用户表单数据
|
* @param data 用户表单数据
|
||||||
*/
|
*/
|
||||||
update(id: number, data: UserForm) {
|
update(id: string, data: UserForm) {
|
||||||
return request({
|
return request({
|
||||||
url: `${USER_BASE_URL}/${id}`,
|
url: `${USER_BASE_URL}/${id}`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -74,7 +74,7 @@ const UserAPI = {
|
|||||||
* @param id 用户ID
|
* @param id 用户ID
|
||||||
* @param password 新密码
|
* @param password 新密码
|
||||||
*/
|
*/
|
||||||
resetPassword(id: number, password: string) {
|
resetPassword(id: string, password: string) {
|
||||||
return request({
|
return request({
|
||||||
url: `${USER_BASE_URL}/${id}/password/reset`,
|
url: `${USER_BASE_URL}/${id}/password/reset`,
|
||||||
method: "put",
|
method: "put",
|
||||||
@@ -123,7 +123,7 @@ const UserAPI = {
|
|||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
* @param file 导入文件
|
* @param file 导入文件
|
||||||
*/
|
*/
|
||||||
import(deptId: number, file: File) {
|
import(deptId: string, file: File) {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", file);
|
formData.append("file", file);
|
||||||
return request<any, ExcelResult>({
|
return request<any, ExcelResult>({
|
||||||
@@ -215,7 +215,7 @@ export default UserAPI;
|
|||||||
/** 登录用户信息 */
|
/** 登录用户信息 */
|
||||||
export interface UserInfo {
|
export interface UserInfo {
|
||||||
/** 用户ID */
|
/** 用户ID */
|
||||||
userId?: number;
|
userId?: string;
|
||||||
|
|
||||||
/** 用户名 */
|
/** 用户名 */
|
||||||
username?: string;
|
username?: string;
|
||||||
@@ -244,7 +244,7 @@ export interface UserPageQuery extends PageQuery {
|
|||||||
status?: number;
|
status?: number;
|
||||||
|
|
||||||
/** 部门ID */
|
/** 部门ID */
|
||||||
deptId?: number;
|
deptId?: string;
|
||||||
|
|
||||||
/** 开始时间 */
|
/** 开始时间 */
|
||||||
createTime?: [string, string];
|
createTime?: [string, string];
|
||||||
@@ -253,7 +253,7 @@ export interface UserPageQuery extends PageQuery {
|
|||||||
/** 用户分页对象 */
|
/** 用户分页对象 */
|
||||||
export interface UserPageVO {
|
export interface UserPageVO {
|
||||||
/** 用户ID */
|
/** 用户ID */
|
||||||
id: number;
|
id: string;
|
||||||
/** 用户头像URL */
|
/** 用户头像URL */
|
||||||
avatar?: string;
|
avatar?: string;
|
||||||
/** 创建时间 */
|
/** 创建时间 */
|
||||||
@@ -278,16 +278,16 @@ export interface UserPageVO {
|
|||||||
|
|
||||||
/** 用户表单类型 */
|
/** 用户表单类型 */
|
||||||
export interface UserForm {
|
export interface UserForm {
|
||||||
|
/** 用户ID */
|
||||||
|
id?: string;
|
||||||
/** 用户头像 */
|
/** 用户头像 */
|
||||||
avatar?: string;
|
avatar?: string;
|
||||||
/** 部门ID */
|
/** 部门ID */
|
||||||
deptId?: number;
|
deptId?: string;
|
||||||
/** 邮箱 */
|
/** 邮箱 */
|
||||||
email?: string;
|
email?: string;
|
||||||
/** 性别 */
|
/** 性别 */
|
||||||
gender?: number;
|
gender?: number;
|
||||||
/** 用户ID */
|
|
||||||
id?: number;
|
|
||||||
/** 手机号 */
|
/** 手机号 */
|
||||||
mobile?: string;
|
mobile?: string;
|
||||||
/** 昵称 */
|
/** 昵称 */
|
||||||
@@ -303,7 +303,7 @@ export interface UserForm {
|
|||||||
/** 个人中心用户信息 */
|
/** 个人中心用户信息 */
|
||||||
export interface UserProfileVO {
|
export interface UserProfileVO {
|
||||||
/** 用户ID */
|
/** 用户ID */
|
||||||
id?: number;
|
id?: string;
|
||||||
|
|
||||||
/** 用户名 */
|
/** 用户名 */
|
||||||
username?: string;
|
username?: string;
|
||||||
@@ -336,7 +336,7 @@ export interface UserProfileVO {
|
|||||||
/** 个人中心用户信息表单 */
|
/** 个人中心用户信息表单 */
|
||||||
export interface UserProfileForm {
|
export interface UserProfileForm {
|
||||||
/** 用户ID */
|
/** 用户ID */
|
||||||
id?: number;
|
id?: string;
|
||||||
|
|
||||||
/** 用户名 */
|
/** 用户名 */
|
||||||
username?: string;
|
username?: string;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ const contentConfig: IContentConfig<UserPageQuery> = {
|
|||||||
},
|
},
|
||||||
deleteAction: UserAPI.deleteByIds,
|
deleteAction: UserAPI.deleteByIds,
|
||||||
importAction(file) {
|
importAction(file) {
|
||||||
return UserAPI.import(1, file);
|
return UserAPI.import("1", file);
|
||||||
},
|
},
|
||||||
exportAction: UserAPI.export,
|
exportAction: UserAPI.export,
|
||||||
importTemplate: UserAPI.downloadTemplate,
|
importTemplate: UserAPI.downloadTemplate,
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const modalConfig: IModalConfig<UserForm> = {
|
|||||||
},
|
},
|
||||||
pk: "id",
|
pk: "id",
|
||||||
formAction: function (data) {
|
formAction: function (data) {
|
||||||
return UserAPI.update(data.id as number, data);
|
return UserAPI.update(data.id as string, data);
|
||||||
},
|
},
|
||||||
beforeSubmit(data) {
|
beforeSubmit(data) {
|
||||||
console.log("提交之前处理", data);
|
console.log("提交之前处理", data);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import selectConfig from "./config/select";
|
|||||||
import { useDictStore } from "@/store";
|
import { useDictStore } from "@/store";
|
||||||
const dictStore = useDictStore();
|
const dictStore = useDictStore();
|
||||||
interface IUser {
|
interface IUser {
|
||||||
id: number;
|
id: string;
|
||||||
username: string;
|
username: string;
|
||||||
nickname: string;
|
nickname: string;
|
||||||
mobile: string;
|
mobile: string;
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ function handleSelectionChange(selection: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 打开系统配置弹窗
|
// 打开系统配置弹窗
|
||||||
function handleOpenDialog(id?: number) {
|
function handleOpenDialog(id?: string) {
|
||||||
dialog.visible = true;
|
dialog.visible = true;
|
||||||
if (id) {
|
if (id) {
|
||||||
dialog.title = "修改系统配置";
|
dialog.title = "修改系统配置";
|
||||||
@@ -259,7 +259,7 @@ function handleCloseDialog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 删除系统配置
|
// 删除系统配置
|
||||||
function handleDelete(id: number) {
|
function handleDelete(id: string) {
|
||||||
ElMessageBox.confirm("确认删除该项配置?", "警告", {
|
ElMessageBox.confirm("确认删除该项配置?", "警告", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
|
|||||||
@@ -213,7 +213,7 @@ function handleSelectionChange(selection: any) {
|
|||||||
* @param parentId 父部门ID
|
* @param parentId 父部门ID
|
||||||
* @param deptId 部门ID
|
* @param deptId 部门ID
|
||||||
*/
|
*/
|
||||||
async function handleOpenDialog(parentId?: string, deptId?: number) {
|
async function handleOpenDialog(parentId?: string, deptId?: string) {
|
||||||
// 加载部门下拉数据
|
// 加载部门下拉数据
|
||||||
const data = await DeptAPI.getOptions();
|
const data = await DeptAPI.getOptions();
|
||||||
deptOptions.value = [
|
deptOptions.value = [
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ function handleAddClick() {
|
|||||||
*
|
*
|
||||||
* @param id 字典ID
|
* @param id 字典ID
|
||||||
*/
|
*/
|
||||||
function handleEditClick(id: number) {
|
function handleEditClick(id: string) {
|
||||||
dialog.visible = true;
|
dialog.visible = true;
|
||||||
dialog.title = "修改字典";
|
dialog.title = "修改字典";
|
||||||
DictAPI.getFormData(id).then((data) => {
|
DictAPI.getFormData(id).then((data) => {
|
||||||
|
|||||||
@@ -487,7 +487,7 @@ function handleSubmit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 删除菜单
|
// 删除菜单
|
||||||
function handleDelete(menuId: number) {
|
function handleDelete(menuId: string) {
|
||||||
if (!menuId) {
|
if (!menuId) {
|
||||||
ElMessage.warning("请勾选删除项");
|
ElMessage.warning("请勾选删除项");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -341,7 +341,7 @@ function handleSelectionChange(selection: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 打开通知公告弹窗
|
// 打开通知公告弹窗
|
||||||
function handleOpenDialog(id?: number) {
|
function handleOpenDialog(id?: string) {
|
||||||
UserAPI.getOptions().then((data) => {
|
UserAPI.getOptions().then((data) => {
|
||||||
userOptions.value = data;
|
userOptions.value = data;
|
||||||
});
|
});
|
||||||
@@ -359,7 +359,7 @@ function handleOpenDialog(id?: number) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 发布通知公告
|
// 发布通知公告
|
||||||
function handlePublish(id: number) {
|
function handlePublish(id: string) {
|
||||||
NoticeAPI.publish(id).then(() => {
|
NoticeAPI.publish(id).then(() => {
|
||||||
ElMessage.success("发布成功");
|
ElMessage.success("发布成功");
|
||||||
handleQuery();
|
handleQuery();
|
||||||
@@ -367,7 +367,7 @@ function handlePublish(id: number) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 撤回通知公告
|
// 撤回通知公告
|
||||||
function handleRevoke(id: number) {
|
function handleRevoke(id: string) {
|
||||||
NoticeAPI.revoke(id).then(() => {
|
NoticeAPI.revoke(id).then(() => {
|
||||||
ElMessage.success("撤回成功");
|
ElMessage.success("撤回成功");
|
||||||
handleQuery();
|
handleQuery();
|
||||||
|
|||||||
@@ -257,7 +257,7 @@ const rules = reactive({
|
|||||||
|
|
||||||
// 选中的角色
|
// 选中的角色
|
||||||
interface CheckedRole {
|
interface CheckedRole {
|
||||||
id?: number;
|
id?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
}
|
}
|
||||||
const checkedRole = ref<CheckedRole>({});
|
const checkedRole = ref<CheckedRole>({});
|
||||||
@@ -294,7 +294,7 @@ function handleSelectionChange(selection: any) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 打开角色弹窗
|
// 打开角色弹窗
|
||||||
function handleOpenDialog(roleId?: number) {
|
function handleOpenDialog(roleId?: string) {
|
||||||
dialog.visible = true;
|
dialog.visible = true;
|
||||||
if (roleId) {
|
if (roleId) {
|
||||||
dialog.title = "修改角色";
|
dialog.title = "修改角色";
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
import DeptAPI from "@/api/system/dept.api";
|
import DeptAPI from "@/api/system/dept.api";
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: [Number],
|
type: [String, Number],
|
||||||
default: undefined,
|
default: undefined,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ const handleUpload = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const result = await UserAPI.import(1, importFormData.files[0].raw as File);
|
const result = await UserAPI.import("1", importFormData.files[0].raw as File);
|
||||||
if (result.code === ResultEnum.SUCCESS && result.invalidCount === 0) {
|
if (result.code === ResultEnum.SUCCESS && result.invalidCount === 0) {
|
||||||
ElMessage.success("导入成功,导入数据:" + result.validCount + "条");
|
ElMessage.success("导入成功,导入数据:" + result.validCount + "条");
|
||||||
emit("import-success");
|
emit("import-success");
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ function hancleResetPassword(row: UserPageVO) {
|
|||||||
*
|
*
|
||||||
* @param id 用户ID
|
* @param id 用户ID
|
||||||
*/
|
*/
|
||||||
async function handleOpenDialog(id?: number) {
|
async function handleOpenDialog(id?: string) {
|
||||||
dialog.visible = true;
|
dialog.visible = true;
|
||||||
// 加载角色下拉数据源
|
// 加载角色下拉数据源
|
||||||
roleOptions.value = await RoleAPI.getOptions();
|
roleOptions.value = await RoleAPI.getOptions();
|
||||||
|
|||||||
Reference in New Issue
Block a user