Commit 4e860eb25431ba22fafb211924b819fe61c59697
1 parent
7e41b763
perf: 完善类型
Showing
30 changed files
with
217 additions
and
91 deletions
yudao-ui-admin-vue3/src/api/system/dept/index.ts
| @@ -9,6 +9,7 @@ export interface DeptVO { | @@ -9,6 +9,7 @@ export interface DeptVO { | ||
| 9 | leaderUserId: number | 9 | leaderUserId: number |
| 10 | phone: string | 10 | phone: string |
| 11 | email: string | 11 | email: string |
| 12 | + createTime: Date | ||
| 12 | } | 13 | } |
| 13 | 14 | ||
| 14 | export interface DeptPageReqVO { | 15 | export interface DeptPageReqVO { |
yudao-ui-admin-vue3/src/api/system/dict/types.ts
| @@ -4,21 +4,21 @@ export type DictTypeVO = { | @@ -4,21 +4,21 @@ export type DictTypeVO = { | ||
| 4 | type: string | 4 | type: string |
| 5 | status: number | 5 | status: number |
| 6 | remark: string | 6 | remark: string |
| 7 | - createTime: string | 7 | + createTime: Date |
| 8 | } | 8 | } |
| 9 | 9 | ||
| 10 | export type DictTypePageReqVO = { | 10 | export type DictTypePageReqVO = { |
| 11 | name: string | 11 | name: string |
| 12 | type: string | 12 | type: string |
| 13 | status: number | 13 | status: number |
| 14 | - createTime: [] | 14 | + createTime: Date[] |
| 15 | } | 15 | } |
| 16 | 16 | ||
| 17 | export type DictTypeExportReqVO = { | 17 | export type DictTypeExportReqVO = { |
| 18 | name: string | 18 | name: string |
| 19 | type: string | 19 | type: string |
| 20 | status: number | 20 | status: number |
| 21 | - createTime: [] | 21 | + createTime: Date[] |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | export type DictDataVO = { | 24 | export type DictDataVO = { |
| @@ -31,7 +31,7 @@ export type DictDataVO = { | @@ -31,7 +31,7 @@ export type DictDataVO = { | ||
| 31 | colorType: string | 31 | colorType: string |
| 32 | cssClass: string | 32 | cssClass: string |
| 33 | remark: string | 33 | remark: string |
| 34 | - createTime: string | 34 | + createTime: Date |
| 35 | } | 35 | } |
| 36 | export type DictDataPageReqVO = { | 36 | export type DictDataPageReqVO = { |
| 37 | label: string | 37 | label: string |
yudao-ui-admin-vue3/src/api/system/errorCode/index.ts
| @@ -7,7 +7,7 @@ export interface ErrorCodeVO { | @@ -7,7 +7,7 @@ export interface ErrorCodeVO { | ||
| 7 | code: number | 7 | code: number |
| 8 | message: string | 8 | message: string |
| 9 | memo: string | 9 | memo: string |
| 10 | - createTime: string | 10 | + createTime: Date |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | export interface ErrorCodePageReqVO extends PageParam { | 13 | export interface ErrorCodePageReqVO extends PageParam { |
| @@ -15,7 +15,7 @@ export interface ErrorCodePageReqVO extends PageParam { | @@ -15,7 +15,7 @@ export interface ErrorCodePageReqVO extends PageParam { | ||
| 15 | applicationName?: string | 15 | applicationName?: string |
| 16 | code?: number | 16 | code?: number |
| 17 | message?: string | 17 | message?: string |
| 18 | - createTime?: string[] | 18 | + createTime?: Date[] |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | // 查询错误码列表 | 21 | // 查询错误码列表 |
yudao-ui-admin-vue3/src/api/system/loginLog/index.ts
| @@ -4,19 +4,20 @@ export interface LoginLogVO { | @@ -4,19 +4,20 @@ export interface LoginLogVO { | ||
| 4 | id: number | 4 | id: number |
| 5 | logType: number | 5 | logType: number |
| 6 | traceId: number | 6 | traceId: number |
| 7 | + userId: number | ||
| 7 | userType: number | 8 | userType: number |
| 8 | username: string | 9 | username: string |
| 9 | status: number | 10 | status: number |
| 10 | userIp: string | 11 | userIp: string |
| 11 | userAgent: string | 12 | userAgent: string |
| 12 | - createTime: string | 13 | + createTime: Date |
| 13 | } | 14 | } |
| 14 | 15 | ||
| 15 | export interface LoginLogReqVO extends PageParam { | 16 | export interface LoginLogReqVO extends PageParam { |
| 16 | userIp?: string | 17 | userIp?: string |
| 17 | username?: string | 18 | username?: string |
| 18 | status?: boolean | 19 | status?: boolean |
| 19 | - createTime?: string[] | 20 | + createTime?: Date[] |
| 20 | } | 21 | } |
| 21 | 22 | ||
| 22 | // 查询登录日志列表 | 23 | // 查询登录日志列表 |
yudao-ui-admin-vue3/src/api/system/menu/index.ts
| @@ -13,7 +13,7 @@ export interface MenuVO { | @@ -13,7 +13,7 @@ export interface MenuVO { | ||
| 13 | status: number | 13 | status: number |
| 14 | visible: boolean | 14 | visible: boolean |
| 15 | keepAlive: boolean | 15 | keepAlive: boolean |
| 16 | - createTime: string | 16 | + createTime: Date |
| 17 | } | 17 | } |
| 18 | 18 | ||
| 19 | export interface MenuPageReqVO { | 19 | export interface MenuPageReqVO { |
yudao-ui-admin-vue3/src/api/system/notice/index.ts
| @@ -8,9 +8,7 @@ export interface NoticeVO { | @@ -8,9 +8,7 @@ export interface NoticeVO { | ||
| 8 | status: number | 8 | status: number |
| 9 | remark: string | 9 | remark: string |
| 10 | creator: string | 10 | creator: string |
| 11 | - createTime: string | ||
| 12 | - updater: string | ||
| 13 | - updateTime: string | 11 | + createTime: Date |
| 14 | } | 12 | } |
| 15 | 13 | ||
| 16 | export interface NoticePageReqVO extends PageParam { | 14 | export interface NoticePageReqVO extends PageParam { |
yudao-ui-admin-vue3/src/api/system/oauth2/client.ts
| @@ -18,11 +18,15 @@ export interface OAuth2ClientVO { | @@ -18,11 +18,15 @@ export interface OAuth2ClientVO { | ||
| 18 | resourceIds: string[] | 18 | resourceIds: string[] |
| 19 | additionalInformation: string | 19 | additionalInformation: string |
| 20 | isAdditionalInformationJson: boolean | 20 | isAdditionalInformationJson: boolean |
| 21 | - createTime: string | 21 | + createTime: Date |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | +export interface OAuth2ClientPageReqVO extends PageParam { | ||
| 25 | + name?: string | ||
| 26 | + status?: number | ||
| 27 | +} | ||
| 24 | // 查询 OAuth2列表 | 28 | // 查询 OAuth2列表 |
| 25 | -export const getOAuth2ClientPageApi = (params) => { | 29 | +export const getOAuth2ClientPageApi = (params: OAuth2ClientPageReqVO) => { |
| 26 | return request.get({ url: '/system/oauth2-client/page', params }) | 30 | return request.get({ url: '/system/oauth2-client/page', params }) |
| 27 | } | 31 | } |
| 28 | 32 |
yudao-ui-admin-vue3/src/api/system/oauth2/token.ts
| @@ -7,14 +7,14 @@ export interface OAuth2TokenVO { | @@ -7,14 +7,14 @@ export interface OAuth2TokenVO { | ||
| 7 | userId: number | 7 | userId: number |
| 8 | userType: number | 8 | userType: number |
| 9 | clientId: string | 9 | clientId: string |
| 10 | - createTime: string | ||
| 11 | - expiresTime: string | 10 | + createTime: Date |
| 11 | + expiresTime: Date | ||
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | export interface OAuth2TokenPageReqVO extends PageParam { | 14 | export interface OAuth2TokenPageReqVO extends PageParam { |
| 15 | - code?: string | ||
| 16 | - name?: string | ||
| 17 | - status?: number | 15 | + userId?: number |
| 16 | + userType?: number | ||
| 17 | + clientId?: string | ||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | // 查询 token列表 | 20 | // 查询 token列表 |
yudao-ui-admin-vue3/src/api/system/operatelog/index.ts
| @@ -9,14 +9,14 @@ export type OperateLogVO = { | @@ -9,14 +9,14 @@ export type OperateLogVO = { | ||
| 9 | name: string | 9 | name: string |
| 10 | type: number | 10 | type: number |
| 11 | content: string | 11 | content: string |
| 12 | - exts: object | 12 | + exts: Map<String, Object> |
| 13 | requestMethod: string | 13 | requestMethod: string |
| 14 | requestUrl: string | 14 | requestUrl: string |
| 15 | userIp: string | 15 | userIp: string |
| 16 | userAgent: string | 16 | userAgent: string |
| 17 | javaMethod: string | 17 | javaMethod: string |
| 18 | javaMethodArgs: string | 18 | javaMethodArgs: string |
| 19 | - startTime: string | 19 | + startTime: Date |
| 20 | duration: number | 20 | duration: number |
| 21 | resultCode: number | 21 | resultCode: number |
| 22 | resultMsg: string | 22 | resultMsg: string |
| @@ -28,7 +28,7 @@ export interface OperateLogPageReqVO extends PageParam { | @@ -28,7 +28,7 @@ export interface OperateLogPageReqVO extends PageParam { | ||
| 28 | userNickname?: string | 28 | userNickname?: string |
| 29 | type?: number | 29 | type?: number |
| 30 | success?: boolean | 30 | success?: boolean |
| 31 | - startTime?: string[] | 31 | + startTime?: Date[] |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | // 查询操作日志列表 | 34 | // 查询操作日志列表 |
yudao-ui-admin-vue3/src/api/system/post/index.ts
| @@ -7,7 +7,7 @@ export interface PostVO { | @@ -7,7 +7,7 @@ export interface PostVO { | ||
| 7 | sort: number | 7 | sort: number |
| 8 | status: number | 8 | status: number |
| 9 | remark: string | 9 | remark: string |
| 10 | - createTime?: string | 10 | + createTime?: Date |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | export interface PostPageReqVO extends PageParam { | 13 | export interface PostPageReqVO extends PageParam { |
yudao-ui-admin-vue3/src/api/system/role/index.ts
| @@ -7,14 +7,19 @@ export interface RoleVO { | @@ -7,14 +7,19 @@ export interface RoleVO { | ||
| 7 | sort: number | 7 | sort: number |
| 8 | status: number | 8 | status: number |
| 9 | type: number | 9 | type: number |
| 10 | - createTime: string | 10 | + createTime: Date |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | export interface RolePageReqVO extends PageParam { | 13 | export interface RolePageReqVO extends PageParam { |
| 14 | name?: string | 14 | name?: string |
| 15 | code?: string | 15 | code?: string |
| 16 | status?: number | 16 | status?: number |
| 17 | - createTime?: string[] | 17 | + createTime?: Date[] |
| 18 | +} | ||
| 19 | + | ||
| 20 | +export interface UpdateStatusReqVO { | ||
| 21 | + id: number | ||
| 22 | + status: number | ||
| 18 | } | 23 | } |
| 19 | 24 | ||
| 20 | // 查询角色列表 | 25 | // 查询角色列表 |
| @@ -43,7 +48,7 @@ export const updateRoleApi = async (data: RoleVO) => { | @@ -43,7 +48,7 @@ export const updateRoleApi = async (data: RoleVO) => { | ||
| 43 | } | 48 | } |
| 44 | 49 | ||
| 45 | // 修改角色状态 | 50 | // 修改角色状态 |
| 46 | -export const updateRoleStatusApi = async (data: RoleVO) => { | 51 | +export const updateRoleStatusApi = async (data: UpdateStatusReqVO) => { |
| 47 | return await request.put({ url: '/system/role/update-status', data }) | 52 | return await request.put({ url: '/system/role/update-status', data }) |
| 48 | } | 53 | } |
| 49 | 54 |
yudao-ui-admin-vue3/src/api/system/sensitiveWord/index.ts
| @@ -5,19 +5,22 @@ export interface SensitiveWordVO { | @@ -5,19 +5,22 @@ export interface SensitiveWordVO { | ||
| 5 | name: string | 5 | name: string |
| 6 | status: number | 6 | status: number |
| 7 | description: string | 7 | description: string |
| 8 | - tags: string | ||
| 9 | - type: number | ||
| 10 | - createTime: string | 8 | + tags: string[] |
| 9 | + createTime: Date | ||
| 11 | } | 10 | } |
| 12 | 11 | ||
| 13 | export interface SensitiveWordPageReqVO extends PageParam { | 12 | export interface SensitiveWordPageReqVO extends PageParam { |
| 14 | name?: string | 13 | name?: string |
| 14 | + tag?: string | ||
| 15 | status?: number | 15 | status?: number |
| 16 | + createTime?: Date[] | ||
| 16 | } | 17 | } |
| 17 | 18 | ||
| 18 | export interface SensitiveWordExportReqVO { | 19 | export interface SensitiveWordExportReqVO { |
| 19 | name?: string | 20 | name?: string |
| 21 | + tag?: string | ||
| 20 | status?: number | 22 | status?: number |
| 23 | + createTime?: Date[] | ||
| 21 | } | 24 | } |
| 22 | 25 | ||
| 23 | // 查询敏感词列表 | 26 | // 查询敏感词列表 |
yudao-ui-admin-vue3/src/api/system/sms/smsChannel/index.ts
| @@ -2,19 +2,21 @@ import request from '@/config/axios' | @@ -2,19 +2,21 @@ import request from '@/config/axios' | ||
| 2 | 2 | ||
| 3 | export interface SmsChannelVO { | 3 | export interface SmsChannelVO { |
| 4 | id: number | 4 | id: number |
| 5 | + code: string | ||
| 5 | status: number | 6 | status: number |
| 6 | signature: string | 7 | signature: string |
| 7 | remark: string | 8 | remark: string |
| 8 | apiKey: string | 9 | apiKey: string |
| 9 | apiSecret: string | 10 | apiSecret: string |
| 10 | callbackUrl: string | 11 | callbackUrl: string |
| 11 | - createTime: string | 12 | + createTime: Date |
| 12 | } | 13 | } |
| 13 | 14 | ||
| 14 | export interface SmsChannelPageReqVO extends PageParam { | 15 | export interface SmsChannelPageReqVO extends PageParam { |
| 15 | signature?: string | 16 | signature?: string |
| 16 | code?: string | 17 | code?: string |
| 17 | status?: number | 18 | status?: number |
| 19 | + createTime?: Date[] | ||
| 18 | } | 20 | } |
| 19 | 21 | ||
| 20 | // 查询短信渠道列表 | 22 | // 查询短信渠道列表 |
yudao-ui-admin-vue3/src/api/system/sms/smsLog/index.ts
| @@ -2,30 +2,48 @@ import request from '@/config/axios' | @@ -2,30 +2,48 @@ import request from '@/config/axios' | ||
| 2 | 2 | ||
| 3 | export interface SmsLogVO { | 3 | export interface SmsLogVO { |
| 4 | id: number | 4 | id: number |
| 5 | - idchannelId: number | 5 | + channelId: number |
| 6 | + channelCode: string | ||
| 6 | templateId: number | 7 | templateId: number |
| 8 | + templateCode: string | ||
| 9 | + templateType: number | ||
| 10 | + templateContent: string | ||
| 11 | + templateParams: Map<string, object> | ||
| 7 | mobile: string | 12 | mobile: string |
| 8 | userId: number | 13 | userId: number |
| 9 | userType: number | 14 | userType: number |
| 10 | sendStatus: number | 15 | sendStatus: number |
| 16 | + sendTime: Date | ||
| 17 | + sendCode: number | ||
| 18 | + sendMsg: string | ||
| 19 | + apiSendCode: string | ||
| 20 | + apiSendMsg: string | ||
| 21 | + apiRequestId: string | ||
| 22 | + apiSerialNo: string | ||
| 11 | receiveStatus: number | 23 | receiveStatus: number |
| 12 | - templateType: number | ||
| 13 | - templateContent: string | ||
| 14 | - templateParams: Map<string, object> | ||
| 15 | - apiTemplateId: string | ||
| 16 | - sendTime: string | ||
| 17 | - createTime: string | 24 | + receiveTime: Date |
| 25 | + apiReceiveCode: string | ||
| 26 | + apiReceiveMsg: string | ||
| 27 | + createTime: Date | ||
| 18 | } | 28 | } |
| 19 | 29 | ||
| 20 | export interface SmsLogPageReqVO extends PageParam { | 30 | export interface SmsLogPageReqVO extends PageParam { |
| 21 | - signature?: string | ||
| 22 | - code?: string | ||
| 23 | - status?: number | 31 | + channelId?: number |
| 32 | + templateId?: number | ||
| 33 | + mobile?: string | ||
| 34 | + sendStatus?: number | ||
| 35 | + sendTime?: Date[] | ||
| 36 | + receiveStatus?: number | ||
| 37 | + receiveTime?: Date[] | ||
| 24 | } | 38 | } |
| 25 | export interface SmsLogExportReqVO { | 39 | export interface SmsLogExportReqVO { |
| 26 | - code?: string | ||
| 27 | - name?: string | ||
| 28 | - status?: number | 40 | + channelId?: number |
| 41 | + templateId?: number | ||
| 42 | + mobile?: string | ||
| 43 | + sendStatus?: number | ||
| 44 | + sendTime?: Date[] | ||
| 45 | + receiveStatus?: number | ||
| 46 | + receiveTime?: Date[] | ||
| 29 | } | 47 | } |
| 30 | 48 | ||
| 31 | // 查询短信日志列表 | 49 | // 查询短信日志列表 |
yudao-ui-admin-vue3/src/api/system/sms/smsTemplate/index.ts
| @@ -11,17 +11,38 @@ export interface SmsTemplateVO { | @@ -11,17 +11,38 @@ export interface SmsTemplateVO { | ||
| 11 | apiTemplateId: string | 11 | apiTemplateId: string |
| 12 | channelId: number | 12 | channelId: number |
| 13 | channelCode: string | 13 | channelCode: string |
| 14 | - createTime: string | 14 | + params: string[] |
| 15 | + createTime: Date | ||
| 15 | } | 16 | } |
| 16 | 17 | ||
| 17 | -export type SmsSendVO = { | 18 | +export interface SendSmsReqVO { |
| 18 | mobile: string | 19 | mobile: string |
| 19 | templateCode: string | 20 | templateCode: string |
| 20 | - templateParams: string | 21 | + templateParams: Map<String, Object> |
| 22 | +} | ||
| 23 | + | ||
| 24 | +export interface SmsTemplatePageReqVO { | ||
| 25 | + type?: number | ||
| 26 | + status?: number | ||
| 27 | + code?: string | ||
| 28 | + content?: string | ||
| 29 | + apiTemplateId?: string | ||
| 30 | + channelId?: number | ||
| 31 | + createTime?: Date[] | ||
| 32 | +} | ||
| 33 | + | ||
| 34 | +export interface SmsTemplateExportReqVO { | ||
| 35 | + type?: number | ||
| 36 | + status?: number | ||
| 37 | + code?: string | ||
| 38 | + content?: string | ||
| 39 | + apiTemplateId?: string | ||
| 40 | + channelId?: number | ||
| 41 | + createTime?: Date[] | ||
| 21 | } | 42 | } |
| 22 | 43 | ||
| 23 | // 查询短信模板列表 | 44 | // 查询短信模板列表 |
| 24 | -export const getSmsTemplatePageApi = (params) => { | 45 | +export const getSmsTemplatePageApi = (params: SmsTemplatePageReqVO) => { |
| 25 | return request.get({ url: '/system/sms-template/page', params }) | 46 | return request.get({ url: '/system/sms-template/page', params }) |
| 26 | } | 47 | } |
| 27 | 48 | ||
| @@ -46,12 +67,12 @@ export const deleteSmsTemplateApi = (id: number) => { | @@ -46,12 +67,12 @@ export const deleteSmsTemplateApi = (id: number) => { | ||
| 46 | } | 67 | } |
| 47 | 68 | ||
| 48 | // 发送短信 | 69 | // 发送短信 |
| 49 | -export const sendSmsApi = (data) => { | 70 | +export const sendSmsApi = (data: SendSmsReqVO) => { |
| 50 | return request.post({ url: '/system/sms-template/send-sms', data }) | 71 | return request.post({ url: '/system/sms-template/send-sms', data }) |
| 51 | } | 72 | } |
| 52 | 73 | ||
| 53 | // 导出短信模板 | 74 | // 导出短信模板 |
| 54 | -export const exportPostApi = (params) => { | 75 | +export const exportPostApi = (params: SmsTemplateExportReqVO) => { |
| 55 | return request.download({ | 76 | return request.download({ |
| 56 | url: '/system/sms-template/export-excel', | 77 | url: '/system/sms-template/export-excel', |
| 57 | params | 78 | params |
yudao-ui-admin-vue3/src/api/system/tenant/index.ts
| @@ -3,16 +3,16 @@ import request from '@/config/axios' | @@ -3,16 +3,16 @@ import request from '@/config/axios' | ||
| 3 | export interface TenantVO { | 3 | export interface TenantVO { |
| 4 | id: number | 4 | id: number |
| 5 | name: string | 5 | name: string |
| 6 | - packageId: number | ||
| 7 | contactName: string | 6 | contactName: string |
| 8 | contactMobile: string | 7 | contactMobile: string |
| 8 | + status: number | ||
| 9 | + domain: string | ||
| 10 | + packageId: number | ||
| 9 | username: string | 11 | username: string |
| 10 | password: string | 12 | password: string |
| 13 | + expireTime: Date | ||
| 11 | accountCount: number | 14 | accountCount: number |
| 12 | - expireTime: string | ||
| 13 | - domain: string | ||
| 14 | - status: number | ||
| 15 | - createTime: string | 15 | + createTime: Date |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | export interface TenantPageReqVO extends PageParam { | 18 | export interface TenantPageReqVO extends PageParam { |
| @@ -20,6 +20,7 @@ export interface TenantPageReqVO extends PageParam { | @@ -20,6 +20,7 @@ export interface TenantPageReqVO extends PageParam { | ||
| 20 | contactName?: string | 20 | contactName?: string |
| 21 | contactMobile?: string | 21 | contactMobile?: string |
| 22 | status?: number | 22 | status?: number |
| 23 | + createTime?: Date[] | ||
| 23 | } | 24 | } |
| 24 | 25 | ||
| 25 | export interface TenantExportReqVO { | 26 | export interface TenantExportReqVO { |
| @@ -27,6 +28,7 @@ export interface TenantExportReqVO { | @@ -27,6 +28,7 @@ export interface TenantExportReqVO { | ||
| 27 | contactName?: string | 28 | contactName?: string |
| 28 | contactMobile?: string | 29 | contactMobile?: string |
| 29 | status?: number | 30 | status?: number |
| 31 | + createTime?: Date[] | ||
| 30 | } | 32 | } |
| 31 | 33 | ||
| 32 | // 查询租户列表 | 34 | // 查询租户列表 |
yudao-ui-admin-vue3/src/api/system/tenantPackage/index.ts
| @@ -6,17 +6,17 @@ export interface TenantPackageVO { | @@ -6,17 +6,17 @@ export interface TenantPackageVO { | ||
| 6 | status: number | 6 | status: number |
| 7 | remark: string | 7 | remark: string |
| 8 | creator: string | 8 | creator: string |
| 9 | - createTime: string | ||
| 10 | updater: string | 9 | updater: string |
| 11 | updateTime: string | 10 | updateTime: string |
| 12 | - menuIds: string[] | 11 | + menuIds: number[] |
| 12 | + createTime: Date | ||
| 13 | } | 13 | } |
| 14 | 14 | ||
| 15 | export interface TenantPackagePageReqVO extends PageParam { | 15 | export interface TenantPackagePageReqVO extends PageParam { |
| 16 | name?: string | 16 | name?: string |
| 17 | - contactName?: string | ||
| 18 | - contactMobile?: string | ||
| 19 | status?: number | 17 | status?: number |
| 18 | + remark?: string | ||
| 19 | + createTime?: Date[] | ||
| 20 | } | 20 | } |
| 21 | 21 | ||
| 22 | // 查询租户套餐列表 | 22 | // 查询租户套餐列表 |
yudao-ui-admin-vue3/src/api/system/user/index.ts
| @@ -13,8 +13,8 @@ export interface UserVO { | @@ -13,8 +13,8 @@ export interface UserVO { | ||
| 13 | loginIp: string | 13 | loginIp: string |
| 14 | status: number | 14 | status: number |
| 15 | remark: string | 15 | remark: string |
| 16 | - loginDate: string | ||
| 17 | - createTime: string | 16 | + loginDate: Date |
| 17 | + createTime: Date | ||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | export interface UserPageReqVO extends PageParam { | 20 | export interface UserPageReqVO extends PageParam { |
| @@ -22,14 +22,14 @@ export interface UserPageReqVO extends PageParam { | @@ -22,14 +22,14 @@ export interface UserPageReqVO extends PageParam { | ||
| 22 | username?: string | 22 | username?: string |
| 23 | mobile?: string | 23 | mobile?: string |
| 24 | status?: number | 24 | status?: number |
| 25 | - createTime?: string[] | 25 | + createTime?: Date[] |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | export interface UserExportReqVO { | 28 | export interface UserExportReqVO { |
| 29 | code?: string | 29 | code?: string |
| 30 | name?: string | 30 | name?: string |
| 31 | status?: number | 31 | status?: number |
| 32 | - createTime?: string[] | 32 | + createTime?: Date[] |
| 33 | } | 33 | } |
| 34 | 34 | ||
| 35 | // 查询用户管理列表 | 35 | // 查询用户管理列表 |
yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts
| @@ -150,7 +150,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { | @@ -150,7 +150,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { | ||
| 150 | 150 | ||
| 151 | const searchSchemaItem = { | 151 | const searchSchemaItem = { |
| 152 | // 默认为 input | 152 | // 默认为 input |
| 153 | - folding: searchSchema.length > spanLength, | 153 | + folding: searchSchema.length > spanLength - 1, |
| 154 | itemRender: schemaItem.itemRender ? schemaItem.itemRender : itemRender, | 154 | itemRender: schemaItem.itemRender ? schemaItem.itemRender : itemRender, |
| 155 | field: schemaItem.field, | 155 | field: schemaItem.field, |
| 156 | title: schemaItem.search?.title || schemaItem.title, | 156 | title: schemaItem.search?.title || schemaItem.title, |
| @@ -165,7 +165,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { | @@ -165,7 +165,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { | ||
| 165 | const buttons: VxeFormItemProps = { | 165 | const buttons: VxeFormItemProps = { |
| 166 | span: 24, | 166 | span: 24, |
| 167 | align: 'center', | 167 | align: 'center', |
| 168 | - collapseNode: searchSchema.length > spanLength + 1, | 168 | + collapseNode: searchSchema.length > spanLength, |
| 169 | itemRender: { | 169 | itemRender: { |
| 170 | name: '$buttons', | 170 | name: '$buttons', |
| 171 | children: [ | 171 | children: [ |
yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts
| @@ -55,7 +55,8 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -55,7 +55,8 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 55 | }, | 55 | }, |
| 56 | { | 56 | { |
| 57 | title: '邮箱', | 57 | title: '邮箱', |
| 58 | - field: 'email' | 58 | + field: 'email', |
| 59 | + isTable: false | ||
| 59 | }, | 60 | }, |
| 60 | { | 61 | { |
| 61 | title: '显示排序', | 62 | title: '显示排序', |
| @@ -67,6 +68,12 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -67,6 +68,12 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 67 | dictType: DICT_TYPE.COMMON_STATUS, | 68 | dictType: DICT_TYPE.COMMON_STATUS, |
| 68 | dictClass: 'number', | 69 | dictClass: 'number', |
| 69 | isSearch: true | 70 | isSearch: true |
| 71 | + }, | ||
| 72 | + { | ||
| 73 | + title: t('common.createTime'), | ||
| 74 | + field: 'createTime', | ||
| 75 | + formatter: 'formatDate', | ||
| 76 | + isForm: false | ||
| 70 | } | 77 | } |
| 71 | ] | 78 | ] |
| 72 | }) | 79 | }) |
yudao-ui-admin-vue3/src/views/system/dict/dict.type.ts
| @@ -43,6 +43,12 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -43,6 +43,12 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 43 | isForm: false, | 43 | isForm: false, |
| 44 | table: { | 44 | table: { |
| 45 | width: 150 | 45 | width: 150 |
| 46 | + }, | ||
| 47 | + search: { | ||
| 48 | + show: true, | ||
| 49 | + itemRender: { | ||
| 50 | + name: 'XDataTimePicker' | ||
| 51 | + } | ||
| 46 | } | 52 | } |
| 47 | }, | 53 | }, |
| 48 | { | 54 | { |
yudao-ui-admin-vue3/src/views/system/oauth2/token/token.data.ts
| @@ -23,6 +23,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -23,6 +23,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 23 | field: 'refreshToken' | 23 | field: 'refreshToken' |
| 24 | }, | 24 | }, |
| 25 | { | 25 | { |
| 26 | + title: '客户端编号', | ||
| 27 | + field: 'clientId', | ||
| 28 | + isSearch: true | ||
| 29 | + }, | ||
| 30 | + { | ||
| 26 | title: '用户类型', | 31 | title: '用户类型', |
| 27 | field: 'userType', | 32 | field: 'userType', |
| 28 | dictType: DICT_TYPE.USER_TYPE, | 33 | dictType: DICT_TYPE.USER_TYPE, |
yudao-ui-admin-vue3/src/views/system/sensitiveWord/sensitiveWord.data.ts
| @@ -25,6 +25,14 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -25,6 +25,14 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 25 | }, | 25 | }, |
| 26 | { | 26 | { |
| 27 | title: '标签', | 27 | title: '标签', |
| 28 | + field: 'tag', | ||
| 29 | + isTable: false, | ||
| 30 | + isForm: false, | ||
| 31 | + isDetail: false, | ||
| 32 | + isSearch: true | ||
| 33 | + }, | ||
| 34 | + { | ||
| 35 | + title: '标签', | ||
| 28 | field: 'tags', | 36 | field: 'tags', |
| 29 | table: { | 37 | table: { |
| 30 | slots: { | 38 | slots: { |
| @@ -57,7 +65,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -57,7 +65,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 57 | title: t('common.createTime'), | 65 | title: t('common.createTime'), |
| 58 | field: 'createTime', | 66 | field: 'createTime', |
| 59 | formatter: 'formatDate', | 67 | formatter: 'formatDate', |
| 60 | - isForm: false | 68 | + isForm: false, |
| 69 | + search: { | ||
| 70 | + show: true, | ||
| 71 | + itemRender: { | ||
| 72 | + name: 'XDataTimePicker' | ||
| 73 | + } | ||
| 74 | + } | ||
| 61 | } | 75 | } |
| 62 | ] | 76 | ] |
| 63 | }) | 77 | }) |
yudao-ui-admin-vue3/src/views/system/sms/smsChannel/sms.channel.data.ts
| @@ -54,7 +54,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -54,7 +54,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 54 | title: t('common.createTime'), | 54 | title: t('common.createTime'), |
| 55 | field: 'createTime', | 55 | field: 'createTime', |
| 56 | formatter: 'formatDate', | 56 | formatter: 'formatDate', |
| 57 | - isForm: false | 57 | + isForm: false, |
| 58 | + search: { | ||
| 59 | + show: true, | ||
| 60 | + itemRender: { | ||
| 61 | + name: 'XDataTimePicker' | ||
| 62 | + } | ||
| 63 | + } | ||
| 58 | } | 64 | } |
| 59 | ] | 65 | ] |
| 60 | }) | 66 | }) |
yudao-ui-admin-vue3/src/views/system/sms/smsLog/sms.log.data.ts
| @@ -21,6 +21,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -21,6 +21,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 21 | field: 'templateContent' | 21 | field: 'templateContent' |
| 22 | }, | 22 | }, |
| 23 | { | 23 | { |
| 24 | + title: '模板编号', | ||
| 25 | + field: 'templateId', | ||
| 26 | + isSearch: true | ||
| 27 | + }, | ||
| 28 | + { | ||
| 24 | title: '短信渠道', | 29 | title: '短信渠道', |
| 25 | field: 'channelId', | 30 | field: 'channelId', |
| 26 | dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE, | 31 | dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE, |
| @@ -35,16 +40,15 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -35,16 +40,15 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 35 | isSearch: true | 40 | isSearch: true |
| 36 | }, | 41 | }, |
| 37 | { | 42 | { |
| 38 | - title: '接收状态', | ||
| 39 | - field: 'receiveStatus', | ||
| 40 | - dictType: DICT_TYPE.SYSTEM_SMS_RECEIVE_STATUS, | ||
| 41 | - dictClass: 'number', | ||
| 42 | - isSearch: true | ||
| 43 | - }, | ||
| 44 | - { | ||
| 45 | - title: '模板编号', | ||
| 46 | - field: 'templateId', | ||
| 47 | - isSearch: true | 43 | + title: '发送时间', |
| 44 | + field: 'sendTime', | ||
| 45 | + formatter: 'formatDate', | ||
| 46 | + search: { | ||
| 47 | + show: true, | ||
| 48 | + itemRender: { | ||
| 49 | + name: 'XDataTimePicker' | ||
| 50 | + } | ||
| 51 | + } | ||
| 48 | }, | 52 | }, |
| 49 | { | 53 | { |
| 50 | title: '短信类型', | 54 | title: '短信类型', |
| @@ -54,12 +58,15 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -54,12 +58,15 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 54 | isSearch: true | 58 | isSearch: true |
| 55 | }, | 59 | }, |
| 56 | { | 60 | { |
| 57 | - title: '接收时间', | ||
| 58 | - field: 'receiveTime' | 61 | + title: '接收状态', |
| 62 | + field: 'receiveStatus', | ||
| 63 | + dictType: DICT_TYPE.SYSTEM_SMS_RECEIVE_STATUS, | ||
| 64 | + dictClass: 'number', | ||
| 65 | + isSearch: true | ||
| 59 | }, | 66 | }, |
| 60 | { | 67 | { |
| 61 | - title: t('common.createTime'), | ||
| 62 | - field: 'createTime', | 68 | + title: '接收时间', |
| 69 | + field: 'receiveTime', | ||
| 63 | formatter: 'formatDate', | 70 | formatter: 'formatDate', |
| 64 | search: { | 71 | search: { |
| 65 | show: true, | 72 | show: true, |
| @@ -67,6 +74,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -67,6 +74,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 67 | name: 'XDataTimePicker' | 74 | name: 'XDataTimePicker' |
| 68 | } | 75 | } |
| 69 | } | 76 | } |
| 77 | + }, | ||
| 78 | + { | ||
| 79 | + title: t('common.createTime'), | ||
| 80 | + field: 'createTime', | ||
| 81 | + formatter: 'formatDate' | ||
| 70 | } | 82 | } |
| 71 | ] | 83 | ] |
| 72 | }) | 84 | }) |
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue
| @@ -104,7 +104,7 @@ | @@ -104,7 +104,7 @@ | ||
| 104 | :loading="actionLoading" | 104 | :loading="actionLoading" |
| 105 | @click="sendSmsTest()" | 105 | @click="sendSmsTest()" |
| 106 | /> | 106 | /> |
| 107 | - <XButton :title="t('dialog.close')" @click="dialogVisible = false" /> | 107 | + <XButton :title="t('dialog.close')" @click="sendVisible = false" /> |
| 108 | </template> | 108 | </template> |
| 109 | </XModal> | 109 | </XModal> |
| 110 | </template> | 110 | </template> |
| @@ -204,7 +204,7 @@ const submitForm = async () => { | @@ -204,7 +204,7 @@ const submitForm = async () => { | ||
| 204 | const sendSmsForm = ref({ | 204 | const sendSmsForm = ref({ |
| 205 | content: '', | 205 | content: '', |
| 206 | params: {}, | 206 | params: {}, |
| 207 | - mobile: '141', | 207 | + mobile: '', |
| 208 | templateCode: '', | 208 | templateCode: '', |
| 209 | templateParams: {} | 209 | templateParams: {} |
| 210 | }) | 210 | }) |
| @@ -230,14 +230,16 @@ const handleSendSms = (row: any) => { | @@ -230,14 +230,16 @@ const handleSendSms = (row: any) => { | ||
| 230 | sendVisible.value = true | 230 | sendVisible.value = true |
| 231 | } | 231 | } |
| 232 | 232 | ||
| 233 | -const sendSmsTest = () => { | ||
| 234 | - const data = { | 233 | +const sendSmsTest = async () => { |
| 234 | + const data: SmsTemplateApi.SendSmsReqVO = { | ||
| 235 | mobile: sendSmsForm.value.mobile, | 235 | mobile: sendSmsForm.value.mobile, |
| 236 | templateCode: sendSmsForm.value.templateCode, | 236 | templateCode: sendSmsForm.value.templateCode, |
| 237 | - templateParams: sendSmsForm.value.templateParams | 237 | + templateParams: sendSmsForm.value.templateParams as unknown as Map<string, Object> |
| 238 | + } | ||
| 239 | + const res = await SmsTemplateApi.sendSmsApi(data) | ||
| 240 | + if (res) { | ||
| 241 | + message.success('发送成功') | ||
| 238 | } | 242 | } |
| 239 | - SmsTemplateApi.sendSmsApi(data) | ||
| 240 | - message.info('发送成功') | ||
| 241 | sendVisible.value = false | 243 | sendVisible.value = false |
| 242 | } | 244 | } |
| 243 | </script> | 245 | </script> |
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts
| @@ -48,6 +48,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -48,6 +48,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 48 | field: 'type', | 48 | field: 'type', |
| 49 | dictType: DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE, | 49 | dictType: DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE, |
| 50 | dictClass: 'number', | 50 | dictClass: 'number', |
| 51 | + isSearch: true, | ||
| 51 | table: { | 52 | table: { |
| 52 | width: 80 | 53 | width: 80 |
| 53 | } | 54 | } |
| @@ -57,6 +58,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -57,6 +58,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 57 | field: 'status', | 58 | field: 'status', |
| 58 | dictType: DICT_TYPE.COMMON_STATUS, | 59 | dictType: DICT_TYPE.COMMON_STATUS, |
| 59 | dictClass: 'number', | 60 | dictClass: 'number', |
| 61 | + isSearch: true, | ||
| 60 | table: { | 62 | table: { |
| 61 | width: 80 | 63 | width: 80 |
| 62 | } | 64 | } |
yudao-ui-admin-vue3/src/views/system/tenant/tenant.data.ts
| @@ -123,7 +123,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -123,7 +123,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 123 | title: t('table.createTime'), | 123 | title: t('table.createTime'), |
| 124 | field: 'createTime', | 124 | field: 'createTime', |
| 125 | formatter: 'formatDate', | 125 | formatter: 'formatDate', |
| 126 | - isForm: false | 126 | + isForm: false, |
| 127 | + search: { | ||
| 128 | + show: true, | ||
| 129 | + itemRender: { | ||
| 130 | + name: 'XDataTimePicker' | ||
| 131 | + } | ||
| 132 | + } | ||
| 127 | } | 133 | } |
| 128 | ] | 134 | ] |
| 129 | }) | 135 | }) |
yudao-ui-admin-vue3/src/views/system/tenantPackage/tenantPackage.data.ts
| @@ -43,6 +43,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -43,6 +43,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 43 | title: t('form.remark'), | 43 | title: t('form.remark'), |
| 44 | field: 'remark', | 44 | field: 'remark', |
| 45 | isTable: false, | 45 | isTable: false, |
| 46 | + isSearch: true, | ||
| 46 | form: { | 47 | form: { |
| 47 | component: 'Input', | 48 | component: 'Input', |
| 48 | componentProps: { | 49 | componentProps: { |
| @@ -58,7 +59,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | @@ -58,7 +59,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ | ||
| 58 | title: '创建时间', | 59 | title: '创建时间', |
| 59 | field: 'createTime', | 60 | field: 'createTime', |
| 60 | formatter: 'formatDate', | 61 | formatter: 'formatDate', |
| 61 | - isForm: false | 62 | + isForm: false, |
| 63 | + search: { | ||
| 64 | + show: true, | ||
| 65 | + itemRender: { | ||
| 66 | + name: 'XDataTimePicker' | ||
| 67 | + } | ||
| 68 | + } | ||
| 62 | } | 69 | } |
| 63 | ] | 70 | ] |
| 64 | }) | 71 | }) |
yudao-ui-admin/src/views/system/oauth2/token/index.vue
| @@ -6,6 +6,9 @@ | @@ -6,6 +6,9 @@ | ||
| 6 | <el-form-item label="用户编号" prop="userId"> | 6 | <el-form-item label="用户编号" prop="userId"> |
| 7 | <el-input v-model="queryParams.userId" placeholder="请输入用户编号" clearable @keyup.enter.native="handleQuery"/> | 7 | <el-input v-model="queryParams.userId" placeholder="请输入用户编号" clearable @keyup.enter.native="handleQuery"/> |
| 8 | </el-form-item> | 8 | </el-form-item> |
| 9 | + <el-form-item label="客户端编号" prop="clientId"> | ||
| 10 | + <el-input v-model="queryParams.clientId" placeholder="请输入客户端编号" clearable @keyup.enter.native="handleQuery"/> | ||
| 11 | + </el-form-item> | ||
| 9 | <el-form-item label="用户类型" prop="userType"> | 12 | <el-form-item label="用户类型" prop="userType"> |
| 10 | <el-select v-model="queryParams.userType" placeholder="请选择用户类型" clearable> | 13 | <el-select v-model="queryParams.userType" placeholder="请选择用户类型" clearable> |
| 11 | <el-option v-for="dict in this.getDictDatas(DICT_TYPE.USER_TYPE)" | 14 | <el-option v-for="dict in this.getDictDatas(DICT_TYPE.USER_TYPE)" |
| @@ -68,7 +71,8 @@ export default { | @@ -68,7 +71,8 @@ export default { | ||
| 68 | pageNo: 1, | 71 | pageNo: 1, |
| 69 | pageSize: 10, | 72 | pageSize: 10, |
| 70 | userId: undefined, | 73 | userId: undefined, |
| 71 | - userType: undefined | 74 | + userType: undefined, |
| 75 | + clientId: undefined | ||
| 72 | } | 76 | } |
| 73 | }; | 77 | }; |
| 74 | }, | 78 | }, |