Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_vue_manage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨硕
91isoft_vue_manage
Commits
b0243315
Commit
b0243315
authored
Jan 03, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志模块重置问题
parent
594fd89b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
78 deletions
+46
-78
index.vue
src/views/monitor/errorLog/index.vue
+27
-27
index.vue
src/views/monitor/loginInfo/index.vue
+9
-10
index.vue
src/views/monitor/operLog/index.vue
+10
-41
No files found.
src/views/monitor/errorLog/index.vue
View file @
b0243315
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"操作月份"
>
<el-form-item
label=
"操作月份"
prop=
"operTime"
>
<el-date-picker
<el-date-picker
v-model=
"queryParams.operTime"
v-model=
"queryParams.operTime"
type=
"month"
type=
"month"
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
class
=
"errorCat"
class
=
"errorCat"
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
@
click=
"handleView(scope.row,scope.index)"
@
click=
"handleView(scope.row,scope.index)"
...
@@ -258,18 +258,16 @@ export default {
...
@@ -258,18 +258,16 @@ export default {
}
}
],
],
// 日期范围
// 日期范围
dateRange
:
''
,
dateRange
:
[]
,
// 表单参数
// 表单参数
form
:
{},
form
:
{},
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
status
:
1
,
operTime
:
''
,
operTime
:
''
,
title
:
''
,
title
:
''
,
operName
:
''
operName
:
''
// businessType: undefined
}
}
}
}
},
},
...
@@ -283,7 +281,6 @@ export default {
...
@@ -283,7 +281,6 @@ export default {
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
this
.
queryParams
=
JSON
.
parse
(
getDataCache
(
this
.
$route
.
path
))
// this.queryParams.operTime = this.$parseDate(new Date(), 'YYYY-MM')
// this.queryParams.operTime = this.$parseDate(new Date(), 'YYYY-MM')
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
// 清空和导出弹出框的日期选择器禁用当前月份之后的月份
// 清空和导出弹出框的日期选择器禁用当前月份之后的月份
...
@@ -380,11 +377,14 @@ export default {
...
@@ -380,11 +377,14 @@ export default {
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
dateRange
=
''
this
.
dateRange
=
[]
this
.
queryParams
.
title
=
''
this
.
queryParams
=
{
this
.
queryParams
.
operName
=
''
page
:
1
,
this
.
queryParams
.
operTime
=
''
rows
:
10
,
this
.
resetForm
(
'queryParams'
)
operTime
:
''
,
title
:
''
,
operName
:
''
}
this
.
handleQuery
()
this
.
handleQuery
()
},
},
// 多选框选中数据
// 多选框选中数据
...
...
src/views/monitor/loginInfo/index.vue
View file @
b0243315
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"登录时间"
>
<el-form-item
label=
"登录时间"
prop=
"loginTime"
>
<el-date-picker
<el-date-picker
v-model=
"queryParams.loginTime"
v-model=
"queryParams.loginTime"
type=
"month"
type=
"month"
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
<
script
>
<
script
>
import
{
list
,
delLogininfo
,
cleanLogininfo
,
exportLogininfo
}
from
'@/api/monitor/loginInfo'
import
{
list
,
delLogininfo
,
cleanLogininfo
,
exportLogininfo
}
from
'@/api/monitor/loginInfo'
import
dictCons
from
'@/utils/dictCons'
//
import dictCons from '@/utils/dictCons'
// import Template from '@/views/instance/Template'
// import Template from '@/views/instance/Template'
import
Coolbutton
from
'@/components/coolbutton'
import
Coolbutton
from
'@/components/coolbutton'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
...
@@ -209,9 +209,7 @@ export default {
...
@@ -209,9 +209,7 @@ export default {
queryParams
:
{
queryParams
:
{
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
ipaddr
:
undefined
,
username
:
''
,
username
:
''
,
status
:
''
,
loginTime
:
''
loginTime
:
''
}
}
}
}
...
@@ -267,12 +265,13 @@ export default {
...
@@ -267,12 +265,13 @@ export default {
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
dateRange
=
''
this
.
dateRange
=
[]
this
.
queryParams
.
ipaddr
=
''
this
.
queryParams
=
{
this
.
queryParams
.
username
=
''
page
:
1
,
this
.
queryParams
.
status
=
''
rows
:
10
,
this
.
queryParams
.
loginTime
=
''
username
:
''
,
this
.
resetForm
(
'queryParams'
)
loginTime
:
''
}
this
.
handleQuery
()
this
.
handleQuery
()
},
},
// 多选框选中数据
// 多选框选中数据
...
...
src/views/monitor/operLog/index.vue
View file @
b0243315
...
@@ -23,39 +23,7 @@
...
@@ -23,39 +23,7 @@
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"类型"
prop=
"businessType"
>
-->
<el-form-item
label=
"操作月份"
prop=
"operTime"
>
<!--
<el-select-->
<!-- v-model="queryParams.businessType"-->
<!-- placeholder="请选择类型"-->
<!-- clearable-->
<!-- size="small"-->
<!-- style="width: 170px"-->
<!-- >-->
<!--
<el-option-->
<!-- v-for="dict in typeOptions"-->
<!-- :key="dict.dictValue"-->
<!-- :label="dict.dictLabel"-->
<!-- :value="dict.dictValue"-->
<!-- />-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"系统状态"
prop=
"status"
>
-->
<!--
<el-select-->
<!-- v-model="queryParams.status"-->
<!-- placeholder="请选择系统状态"-->
<!-- clearable-->
<!-- size="small"-->
<!-- style="width: 170px"-->
<!-- >-->
<!--
<el-option-->
<!-- v-for="dict in statusOptions"-->
<!-- :key="dict.dictValue"-->
<!-- :label="dict.dictLabel"-->
<!-- :value="dict.dictValue"-->
<!-- />-->
<!--
</el-select>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"操作月份"
>
<el-date-picker
<el-date-picker
v-model=
"queryParams.operTime"
v-model=
"queryParams.operTime"
type=
"month"
type=
"month"
...
@@ -325,18 +293,16 @@ export default {
...
@@ -325,18 +293,16 @@ export default {
}
}
],
],
// 日期范围
// 日期范围
dateRange
:
''
,
dateRange
:
[]
,
// 表单参数
// 表单参数
form
:
{},
form
:
{},
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
page
:
1
,
page
:
1
,
rows
:
10
,
rows
:
10
,
status
:
0
,
operTime
:
''
,
operTime
:
''
,
title
:
''
,
title
:
''
,
operName
:
''
operName
:
''
// businessType: undefined
}
}
}
}
},
},
...
@@ -456,11 +422,14 @@ export default {
...
@@ -456,11 +422,14 @@ export default {
},
},
/** 重置按钮操作 */
/** 重置按钮操作 */
resetQuery
()
{
resetQuery
()
{
this
.
dateRange
=
''
this
.
dateRange
=
[]
this
.
queryParams
.
title
=
''
this
.
queryParams
=
{
this
.
queryParams
.
operName
=
''
page
:
1
,
this
.
queryParams
.
operTime
=
''
rows
:
10
,
this
.
resetForm
(
'queryParams'
)
operTime
:
''
,
title
:
''
,
operName
:
''
}
this
.
handleQuery
()
this
.
handleQuery
()
},
},
// 多选框选中数据
// 多选框选中数据
...
...
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