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