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
90b3998b
Commit
90b3998b
authored
Jan 21, 2024
by
孙浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志单个删除query参数
parent
a68d71cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
index.vue
src/views/monitor/errorLog/index.vue
+5
-4
index.vue
src/views/monitor/loginInfo/index.vue
+5
-5
index.vue
src/views/monitor/operLog/index.vue
+6
-6
No files found.
src/views/monitor/errorLog/index.vue
View file @
90b3998b
...
...
@@ -102,7 +102,7 @@
class=
"delBtn"
type=
"text"
size=
"mini"
@
click=
"handleDelete(scope.row
.businessId
)"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
@@ -200,6 +200,7 @@ import { list, delErrLog, cleanErrLog, exportErrLog } from '@/api/monitor/errorL
import
Coolbutton
from
'@/components/coolbutton'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
commonField
from
'@/utils/commonField'
import
moment
from
'moment'
export
default
{
name
:
'Operlog'
,
...
...
@@ -394,15 +395,15 @@ export default {
this
.
form
=
row
},
/** 删除按钮操作 */
handleDelete
(
data
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
id
=
data
const
query
=
{
deleteIds
:
id
businessId
:
row
.
businessId
,
operTime
:
moment
(
row
.
operTime
).
format
(
'YYYY-MM'
)
}
return
delErrLog
(
query
)
}).
then
(()
=>
{
...
...
src/views/monitor/loginInfo/index.vue
View file @
90b3998b
...
...
@@ -76,7 +76,7 @@
class=
"delBtn"
type=
"text"
size=
"small"
@
click=
"handleDelete(scope.row
.businessId
)"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
@@ -151,6 +151,7 @@ import { list, delLogininfo, cleanLogininfo, exportLogininfo } from '@/api/monit
import
Coolbutton
from
'@/components/coolbutton'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
commonField
from
'@/utils/commonField'
import
moment
from
'moment'
export
default
{
name
:
'LoginInfo'
,
...
...
@@ -283,16 +284,15 @@ export default {
this
.
multiple
=
!
selection
.
length
},
/** 删除按钮操作 */
handleDelete
(
data
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
// const id = this.ids.join(',')
const
id
=
data
const
query
=
{
deleteIds
:
id
businessId
:
row
.
businessId
,
loginTime
:
moment
(
row
.
loginTime
).
format
(
'YYYY-MM'
)
}
return
delLogininfo
(
query
)
}).
then
(()
=>
{
...
...
src/views/monitor/operLog/index.vue
View file @
90b3998b
...
...
@@ -104,7 +104,7 @@
<!-- </el-table-column>-->
<el-table-column
label=
"操作时间"
align=
"center"
prop=
"operTime"
width=
"180"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
operTime
|
transformDateByFormat
(
'YYYY-MM'
)
}}
</span>
<span>
{{
scope
.
row
.
operTime
|
transformDateByFormat
(
'YYYY-MM
-DD HH:mm:ss
'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
...
...
@@ -119,7 +119,7 @@
class=
"delBtn"
type=
"text"
size=
"mini"
@
click=
"handleDelete(scope.row
.businessId
)"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
@@ -234,6 +234,7 @@ import { list, delOperLog, cleanOperLog, exportOperLog } from '@/api/monitor/ope
import
Coolbutton
from
'@/components/coolbutton'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
commonField
from
'@/utils/commonField'
import
moment
from
'moment'
export
default
{
name
:
'Operlog'
,
...
...
@@ -438,17 +439,16 @@ export default {
this
.
form
=
row
},
/** 删除按钮操作 */
handleDelete
(
data
)
{
handleDelete
(
row
)
{
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
id
=
data
const
query
=
{
deleteIds
:
id
businessId
:
row
.
businessId
,
operTime
:
moment
(
row
.
operTime
).
format
(
'YYYY-MM'
)
}
// const deleteIds = JSON.stringify(query)
return
delOperLog
(
query
)
}).
then
(()
=>
{
this
.
getList
()
...
...
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