Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1066551f
authored
Dec 02, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
修复 operateLog 和 loginLog 在 IDEA 报错的问题
parent
757fbdde
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
8 deletions
+9
-8
src/api/system/loginLog/index.ts
+1
-0
src/utils/formatTime.ts
+1
-1
src/views/system/dict/index.vue
+1
-1
src/views/system/errorCode/index.vue
+1
-1
src/views/system/loginlog/LoginLogDetail.vue
+1
-1
src/views/system/operatelog/OperateLogDetail.vue
+1
-1
src/views/system/operatelog/index.vue
+3
-3
No files found.
src/api/system/loginLog/index.ts
View file @
1066551f
...
...
@@ -7,6 +7,7 @@ export interface LoginLogVO {
userId
:
number
userType
:
number
username
:
string
result
:
number
status
:
number
userIp
:
string
userAgent
:
string
...
...
src/utils/formatTime.ts
View file @
1066551f
...
...
@@ -62,7 +62,7 @@ export const defaultShortcuts = [
* @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"
* @returns 返回拼接后的时间字符串
*/
export
function
formatDate
(
date
:
dayjs
.
ConfigTyp
e
,
format
?:
string
):
string
{
export
function
formatDate
(
date
:
Dat
e
,
format
?:
string
):
string
{
// 日期不存在,则返回空
if
(
!
date
)
{
return
''
...
...
src/views/system/dict/index.vue
View file @
1066551f
...
...
@@ -161,7 +161,7 @@ const queryParams = reactive({
name
:
''
,
type
:
''
,
status
:
undefined
,
createTime
:
[
undefined
,
undefined
]
createTime
:
[]
})
const
queryFormRef
=
ref
()
// 搜索的表单
const
exportLoading
=
ref
(
false
)
// 导出的加载中
...
...
src/views/system/errorCode/index.vue
View file @
1066551f
...
...
@@ -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"
...
...
src/views/system/loginlog/LoginLogDetail.vue
View file @
1066551f
...
...
@@ -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
)
=>
{
...
...
src/views/system/operatelog/OperateLogDetail.vue
View file @
1066551f
...
...
@@ -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
)
=>
{
...
...
src/views/system/operatelog/index.vue
View file @
1066551f
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment