🐛 修复 operateLog 和 loginLog 在 IDEA 报错的问题
This commit is contained in:
parent
757fbddef2
commit
1066551fd1
@ -7,6 +7,7 @@ export interface LoginLogVO {
|
||||
userId: number
|
||||
userType: number
|
||||
username: string
|
||||
result: number
|
||||
status: number
|
||||
userIp: string
|
||||
userAgent: string
|
||||
|
@ -62,7 +62,7 @@ export const defaultShortcuts = [
|
||||
* @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"
|
||||
* @returns 返回拼接后的时间字符串
|
||||
*/
|
||||
export function formatDate(date: dayjs.ConfigType, format?: string): string {
|
||||
export function formatDate(date: Date, format?: string): string {
|
||||
// 日期不存在,则返回空
|
||||
if (!date) {
|
||||
return ''
|
||||
|
@ -161,7 +161,7 @@ const queryParams = reactive({
|
||||
name: '',
|
||||
type: '',
|
||||
status: undefined,
|
||||
createTime: [undefined, undefined]
|
||||
createTime: []
|
||||
})
|
||||
const queryFormRef = ref() // 搜索的表单
|
||||
const exportLoading = ref(false) // 导出的加载中
|
||||
|
@ -14,7 +14,7 @@
|
||||
<el-select v-model="queryParams.type" placeholder="请选择错误码类型" clearable>
|
||||
<el-option
|
||||
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_ERROR_CODE_TYPE)"
|
||||
:key="dict.value"
|
||||
:key="dict.value as number"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
class="!w-240px"
|
||||
|
@ -34,7 +34,7 @@ defineOptions({ name: 'SystemLoginLogDetail' })
|
||||
|
||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||
const detailLoading = ref(false) // 表单的加载中
|
||||
const detailData = ref({}) // 详情数据
|
||||
const detailData = ref({} as LoginLogApi.LoginLogVO) // 详情数据
|
||||
|
||||
/** 打开弹窗 */
|
||||
const open = async (data: LoginLogApi.LoginLogVO) => {
|
||||
|
@ -65,7 +65,7 @@ defineOptions({ name: 'SystemOperateLogDetail' })
|
||||
|
||||
const dialogVisible = ref(false) // 弹窗的是否展示
|
||||
const detailLoading = ref(false) // 表单的加载中
|
||||
const detailData = ref() // 详情数据
|
||||
const detailData = ref({} as OperateLogApi.OperateLogVO) // 详情数据
|
||||
|
||||
/** 打开弹窗 */
|
||||
const open = async (data: OperateLogApi.OperateLogVO) => {
|
||||
|
@ -37,7 +37,7 @@
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_OPERATE_TYPE)"
|
||||
:key="dict.value"
|
||||
:key="dict.value as number"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
@ -50,8 +50,8 @@
|
||||
clearable
|
||||
class="!w-240px"
|
||||
>
|
||||
<el-option :key="true" label="成功" :value="true" />
|
||||
<el-option :key="false" label="失败" :value="false" />
|
||||
<el-option key="true" label="成功" :value="true" />
|
||||
<el-option key="false" label="失败" :value="false" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="操作时间" prop="startTime">
|
||||
|
Loading…
Reference in New Issue
Block a user