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
yudao-ui-admin-vue3/src/api/system/dict/types.ts
| ... | ... | @@ -4,21 +4,21 @@ export type DictTypeVO = { |
| 4 | 4 | type: string |
| 5 | 5 | status: number |
| 6 | 6 | remark: string |
| 7 | - createTime: string | |
| 7 | + createTime: Date | |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | export type DictTypePageReqVO = { |
| 11 | 11 | name: string |
| 12 | 12 | type: string |
| 13 | 13 | status: number |
| 14 | - createTime: [] | |
| 14 | + createTime: Date[] | |
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | export type DictTypeExportReqVO = { |
| 18 | 18 | name: string |
| 19 | 19 | type: string |
| 20 | 20 | status: number |
| 21 | - createTime: [] | |
| 21 | + createTime: Date[] | |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | export type DictDataVO = { |
| ... | ... | @@ -31,7 +31,7 @@ export type DictDataVO = { |
| 31 | 31 | colorType: string |
| 32 | 32 | cssClass: string |
| 33 | 33 | remark: string |
| 34 | - createTime: string | |
| 34 | + createTime: Date | |
| 35 | 35 | } |
| 36 | 36 | export type DictDataPageReqVO = { |
| 37 | 37 | label: string | ... | ... |
yudao-ui-admin-vue3/src/api/system/errorCode/index.ts
| ... | ... | @@ -7,7 +7,7 @@ export interface ErrorCodeVO { |
| 7 | 7 | code: number |
| 8 | 8 | message: string |
| 9 | 9 | memo: string |
| 10 | - createTime: string | |
| 10 | + createTime: Date | |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | export interface ErrorCodePageReqVO extends PageParam { |
| ... | ... | @@ -15,7 +15,7 @@ export interface ErrorCodePageReqVO extends PageParam { |
| 15 | 15 | applicationName?: string |
| 16 | 16 | code?: number |
| 17 | 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 | 4 | id: number |
| 5 | 5 | logType: number |
| 6 | 6 | traceId: number |
| 7 | + userId: number | |
| 7 | 8 | userType: number |
| 8 | 9 | username: string |
| 9 | 10 | status: number |
| 10 | 11 | userIp: string |
| 11 | 12 | userAgent: string |
| 12 | - createTime: string | |
| 13 | + createTime: Date | |
| 13 | 14 | } |
| 14 | 15 | |
| 15 | 16 | export interface LoginLogReqVO extends PageParam { |
| 16 | 17 | userIp?: string |
| 17 | 18 | username?: string |
| 18 | 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
yudao-ui-admin-vue3/src/api/system/notice/index.ts
yudao-ui-admin-vue3/src/api/system/oauth2/client.ts
| ... | ... | @@ -18,11 +18,15 @@ export interface OAuth2ClientVO { |
| 18 | 18 | resourceIds: string[] |
| 19 | 19 | additionalInformation: string |
| 20 | 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 | 28 | // 查询 OAuth2列表 |
| 25 | -export const getOAuth2ClientPageApi = (params) => { | |
| 29 | +export const getOAuth2ClientPageApi = (params: OAuth2ClientPageReqVO) => { | |
| 26 | 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 | 7 | userId: number |
| 8 | 8 | userType: number |
| 9 | 9 | clientId: string |
| 10 | - createTime: string | |
| 11 | - expiresTime: string | |
| 10 | + createTime: Date | |
| 11 | + expiresTime: Date | |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 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 | 20 | // 查询 token列表 | ... | ... |
yudao-ui-admin-vue3/src/api/system/operatelog/index.ts
| ... | ... | @@ -9,14 +9,14 @@ export type OperateLogVO = { |
| 9 | 9 | name: string |
| 10 | 10 | type: number |
| 11 | 11 | content: string |
| 12 | - exts: object | |
| 12 | + exts: Map<String, Object> | |
| 13 | 13 | requestMethod: string |
| 14 | 14 | requestUrl: string |
| 15 | 15 | userIp: string |
| 16 | 16 | userAgent: string |
| 17 | 17 | javaMethod: string |
| 18 | 18 | javaMethodArgs: string |
| 19 | - startTime: string | |
| 19 | + startTime: Date | |
| 20 | 20 | duration: number |
| 21 | 21 | resultCode: number |
| 22 | 22 | resultMsg: string |
| ... | ... | @@ -28,7 +28,7 @@ export interface OperateLogPageReqVO extends PageParam { |
| 28 | 28 | userNickname?: string |
| 29 | 29 | type?: number |
| 30 | 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
yudao-ui-admin-vue3/src/api/system/role/index.ts
| ... | ... | @@ -7,14 +7,19 @@ export interface RoleVO { |
| 7 | 7 | sort: number |
| 8 | 8 | status: number |
| 9 | 9 | type: number |
| 10 | - createTime: string | |
| 10 | + createTime: Date | |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | export interface RolePageReqVO extends PageParam { |
| 14 | 14 | name?: string |
| 15 | 15 | code?: string |
| 16 | 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 | 48 | } |
| 44 | 49 | |
| 45 | 50 | // 修改角色状态 |
| 46 | -export const updateRoleStatusApi = async (data: RoleVO) => { | |
| 51 | +export const updateRoleStatusApi = async (data: UpdateStatusReqVO) => { | |
| 47 | 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 | 5 | name: string |
| 6 | 6 | status: number |
| 7 | 7 | description: string |
| 8 | - tags: string | |
| 9 | - type: number | |
| 10 | - createTime: string | |
| 8 | + tags: string[] | |
| 9 | + createTime: Date | |
| 11 | 10 | } |
| 12 | 11 | |
| 13 | 12 | export interface SensitiveWordPageReqVO extends PageParam { |
| 14 | 13 | name?: string |
| 14 | + tag?: string | |
| 15 | 15 | status?: number |
| 16 | + createTime?: Date[] | |
| 16 | 17 | } |
| 17 | 18 | |
| 18 | 19 | export interface SensitiveWordExportReqVO { |
| 19 | 20 | name?: string |
| 21 | + tag?: string | |
| 20 | 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 | 2 | |
| 3 | 3 | export interface SmsChannelVO { |
| 4 | 4 | id: number |
| 5 | + code: string | |
| 5 | 6 | status: number |
| 6 | 7 | signature: string |
| 7 | 8 | remark: string |
| 8 | 9 | apiKey: string |
| 9 | 10 | apiSecret: string |
| 10 | 11 | callbackUrl: string |
| 11 | - createTime: string | |
| 12 | + createTime: Date | |
| 12 | 13 | } |
| 13 | 14 | |
| 14 | 15 | export interface SmsChannelPageReqVO extends PageParam { |
| 15 | 16 | signature?: string |
| 16 | 17 | code?: string |
| 17 | 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 | 2 | |
| 3 | 3 | export interface SmsLogVO { |
| 4 | 4 | id: number |
| 5 | - idchannelId: number | |
| 5 | + channelId: number | |
| 6 | + channelCode: string | |
| 6 | 7 | templateId: number |
| 8 | + templateCode: string | |
| 9 | + templateType: number | |
| 10 | + templateContent: string | |
| 11 | + templateParams: Map<string, object> | |
| 7 | 12 | mobile: string |
| 8 | 13 | userId: number |
| 9 | 14 | userType: number |
| 10 | 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 | 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 | 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 | 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 | 11 | apiTemplateId: string |
| 12 | 12 | channelId: number |
| 13 | 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 | 19 | mobile: string |
| 19 | 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 | 46 | return request.get({ url: '/system/sms-template/page', params }) |
| 26 | 47 | } |
| 27 | 48 | |
| ... | ... | @@ -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 | 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 | 76 | return request.download({ |
| 56 | 77 | url: '/system/sms-template/export-excel', |
| 57 | 78 | params | ... | ... |
yudao-ui-admin-vue3/src/api/system/tenant/index.ts
| ... | ... | @@ -3,16 +3,16 @@ import request from '@/config/axios' |
| 3 | 3 | export interface TenantVO { |
| 4 | 4 | id: number |
| 5 | 5 | name: string |
| 6 | - packageId: number | |
| 7 | 6 | contactName: string |
| 8 | 7 | contactMobile: string |
| 8 | + status: number | |
| 9 | + domain: string | |
| 10 | + packageId: number | |
| 9 | 11 | username: string |
| 10 | 12 | password: string |
| 13 | + expireTime: Date | |
| 11 | 14 | accountCount: number |
| 12 | - expireTime: string | |
| 13 | - domain: string | |
| 14 | - status: number | |
| 15 | - createTime: string | |
| 15 | + createTime: Date | |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | export interface TenantPageReqVO extends PageParam { |
| ... | ... | @@ -20,6 +20,7 @@ export interface TenantPageReqVO extends PageParam { |
| 20 | 20 | contactName?: string |
| 21 | 21 | contactMobile?: string |
| 22 | 22 | status?: number |
| 23 | + createTime?: Date[] | |
| 23 | 24 | } |
| 24 | 25 | |
| 25 | 26 | export interface TenantExportReqVO { |
| ... | ... | @@ -27,6 +28,7 @@ export interface TenantExportReqVO { |
| 27 | 28 | contactName?: string |
| 28 | 29 | contactMobile?: string |
| 29 | 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 | 6 | status: number |
| 7 | 7 | remark: string |
| 8 | 8 | creator: string |
| 9 | - createTime: string | |
| 10 | 9 | updater: string |
| 11 | 10 | updateTime: string |
| 12 | - menuIds: string[] | |
| 11 | + menuIds: number[] | |
| 12 | + createTime: Date | |
| 13 | 13 | } |
| 14 | 14 | |
| 15 | 15 | export interface TenantPackagePageReqVO extends PageParam { |
| 16 | 16 | name?: string |
| 17 | - contactName?: string | |
| 18 | - contactMobile?: string | |
| 19 | 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 | 13 | loginIp: string |
| 14 | 14 | status: number |
| 15 | 15 | remark: string |
| 16 | - loginDate: string | |
| 17 | - createTime: string | |
| 16 | + loginDate: Date | |
| 17 | + createTime: Date | |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | export interface UserPageReqVO extends PageParam { |
| ... | ... | @@ -22,14 +22,14 @@ export interface UserPageReqVO extends PageParam { |
| 22 | 22 | username?: string |
| 23 | 23 | mobile?: string |
| 24 | 24 | status?: number |
| 25 | - createTime?: string[] | |
| 25 | + createTime?: Date[] | |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | export interface UserExportReqVO { |
| 29 | 29 | code?: string |
| 30 | 30 | name?: string |
| 31 | 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 | 150 | |
| 151 | 151 | const searchSchemaItem = { |
| 152 | 152 | // 默认为 input |
| 153 | - folding: searchSchema.length > spanLength, | |
| 153 | + folding: searchSchema.length > spanLength - 1, | |
| 154 | 154 | itemRender: schemaItem.itemRender ? schemaItem.itemRender : itemRender, |
| 155 | 155 | field: schemaItem.field, |
| 156 | 156 | title: schemaItem.search?.title || schemaItem.title, |
| ... | ... | @@ -165,7 +165,7 @@ const filterSearchSchema = (crudSchema: VxeCrudSchema): VxeFormItemProps[] => { |
| 165 | 165 | const buttons: VxeFormItemProps = { |
| 166 | 166 | span: 24, |
| 167 | 167 | align: 'center', |
| 168 | - collapseNode: searchSchema.length > spanLength + 1, | |
| 168 | + collapseNode: searchSchema.length > spanLength, | |
| 169 | 169 | itemRender: { |
| 170 | 170 | name: '$buttons', |
| 171 | 171 | children: [ | ... | ... |
yudao-ui-admin-vue3/src/views/system/dept/dept.data.ts
| ... | ... | @@ -55,7 +55,8 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 55 | 55 | }, |
| 56 | 56 | { |
| 57 | 57 | title: '邮箱', |
| 58 | - field: 'email' | |
| 58 | + field: 'email', | |
| 59 | + isTable: false | |
| 59 | 60 | }, |
| 60 | 61 | { |
| 61 | 62 | title: '显示排序', |
| ... | ... | @@ -67,6 +68,12 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 67 | 68 | dictType: DICT_TYPE.COMMON_STATUS, |
| 68 | 69 | dictClass: 'number', |
| 69 | 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
yudao-ui-admin-vue3/src/views/system/oauth2/token/token.data.ts
yudao-ui-admin-vue3/src/views/system/sensitiveWord/sensitiveWord.data.ts
| ... | ... | @@ -25,6 +25,14 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 25 | 25 | }, |
| 26 | 26 | { |
| 27 | 27 | title: '标签', |
| 28 | + field: 'tag', | |
| 29 | + isTable: false, | |
| 30 | + isForm: false, | |
| 31 | + isDetail: false, | |
| 32 | + isSearch: true | |
| 33 | + }, | |
| 34 | + { | |
| 35 | + title: '标签', | |
| 28 | 36 | field: 'tags', |
| 29 | 37 | table: { |
| 30 | 38 | slots: { |
| ... | ... | @@ -57,7 +65,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 57 | 65 | title: t('common.createTime'), |
| 58 | 66 | field: 'createTime', |
| 59 | 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 | 54 | title: t('common.createTime'), |
| 55 | 55 | field: 'createTime', |
| 56 | 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 | 21 | field: 'templateContent' |
| 22 | 22 | }, |
| 23 | 23 | { |
| 24 | + title: '模板编号', | |
| 25 | + field: 'templateId', | |
| 26 | + isSearch: true | |
| 27 | + }, | |
| 28 | + { | |
| 24 | 29 | title: '短信渠道', |
| 25 | 30 | field: 'channelId', |
| 26 | 31 | dictType: DICT_TYPE.SYSTEM_SMS_CHANNEL_CODE, |
| ... | ... | @@ -35,16 +40,15 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 35 | 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 | 54 | title: '短信类型', |
| ... | ... | @@ -54,12 +58,15 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 54 | 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 | 70 | formatter: 'formatDate', |
| 64 | 71 | search: { |
| 65 | 72 | show: true, |
| ... | ... | @@ -67,6 +74,11 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 67 | 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 | 104 | :loading="actionLoading" |
| 105 | 105 | @click="sendSmsTest()" |
| 106 | 106 | /> |
| 107 | - <XButton :title="t('dialog.close')" @click="dialogVisible = false" /> | |
| 107 | + <XButton :title="t('dialog.close')" @click="sendVisible = false" /> | |
| 108 | 108 | </template> |
| 109 | 109 | </XModal> |
| 110 | 110 | </template> |
| ... | ... | @@ -204,7 +204,7 @@ const submitForm = async () => { |
| 204 | 204 | const sendSmsForm = ref({ |
| 205 | 205 | content: '', |
| 206 | 206 | params: {}, |
| 207 | - mobile: '141', | |
| 207 | + mobile: '', | |
| 208 | 208 | templateCode: '', |
| 209 | 209 | templateParams: {} |
| 210 | 210 | }) |
| ... | ... | @@ -230,14 +230,16 @@ const handleSendSms = (row: any) => { |
| 230 | 230 | sendVisible.value = true |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | -const sendSmsTest = () => { | |
| 234 | - const data = { | |
| 233 | +const sendSmsTest = async () => { | |
| 234 | + const data: SmsTemplateApi.SendSmsReqVO = { | |
| 235 | 235 | mobile: sendSmsForm.value.mobile, |
| 236 | 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 | 243 | sendVisible.value = false |
| 242 | 244 | } |
| 243 | 245 | </script> | ... | ... |
yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/sms.template.data.ts
| ... | ... | @@ -48,6 +48,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 48 | 48 | field: 'type', |
| 49 | 49 | dictType: DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE, |
| 50 | 50 | dictClass: 'number', |
| 51 | + isSearch: true, | |
| 51 | 52 | table: { |
| 52 | 53 | width: 80 |
| 53 | 54 | } |
| ... | ... | @@ -57,6 +58,7 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 57 | 58 | field: 'status', |
| 58 | 59 | dictType: DICT_TYPE.COMMON_STATUS, |
| 59 | 60 | dictClass: 'number', |
| 61 | + isSearch: true, | |
| 60 | 62 | table: { |
| 61 | 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 | 123 | title: t('table.createTime'), |
| 124 | 124 | field: 'createTime', |
| 125 | 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 | 43 | title: t('form.remark'), |
| 44 | 44 | field: 'remark', |
| 45 | 45 | isTable: false, |
| 46 | + isSearch: true, | |
| 46 | 47 | form: { |
| 47 | 48 | component: 'Input', |
| 48 | 49 | componentProps: { |
| ... | ... | @@ -58,7 +59,13 @@ const crudSchemas = reactive<VxeCrudSchema>({ |
| 58 | 59 | title: '创建时间', |
| 59 | 60 | field: 'createTime', |
| 60 | 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 | <el-form-item label="用户编号" prop="userId"> |
| 7 | 7 | <el-input v-model="queryParams.userId" placeholder="请输入用户编号" clearable @keyup.enter.native="handleQuery"/> |
| 8 | 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 | 12 | <el-form-item label="用户类型" prop="userType"> |
| 10 | 13 | <el-select v-model="queryParams.userType" placeholder="请选择用户类型" clearable> |
| 11 | 14 | <el-option v-for="dict in this.getDictDatas(DICT_TYPE.USER_TYPE)" |
| ... | ... | @@ -68,7 +71,8 @@ export default { |
| 68 | 71 | pageNo: 1, |
| 69 | 72 | pageSize: 10, |
| 70 | 73 | userId: undefined, |
| 71 | - userType: undefined | |
| 74 | + userType: undefined, | |
| 75 | + clientId: undefined | |
| 72 | 76 | } |
| 73 | 77 | }; |
| 74 | 78 | }, | ... | ... |