Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-template
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
张伯涛
web-template
Commits
91357cfa
Commit
91357cfa
authored
Jan 06, 2021
by
Asjoker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除-修复
parent
3d81c295
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
16 deletions
+19
-16
errorLog.js
src/api/monitor/errorLog.js
+1
-1
operLog.js
src/api/monitor/operLog.js
+1
-1
index.vue
src/views/monitor/errorLog/index.vue
+8
-7
index.vue
src/views/monitor/operLog/index.vue
+9
-7
No files found.
src/api/monitor/errorLog.js
View file @
91357cfa
...
@@ -20,7 +20,7 @@ export function delErrLog(operId) {
...
@@ -20,7 +20,7 @@ export function delErrLog(operId) {
// 清空异常日志
// 清空异常日志
export
function
cleanErrLog
()
{
export
function
cleanErrLog
()
{
return
request
({
return
request
({
url
:
'/monitor/errorLog/clean
/1
'
,
url
:
'/monitor/errorLog/clean'
,
method
:
'delete'
method
:
'delete'
})
})
}
}
...
...
src/api/monitor/operLog.js
View file @
91357cfa
...
@@ -20,7 +20,7 @@ export function delOperLog(operId) {
...
@@ -20,7 +20,7 @@ export function delOperLog(operId) {
// 清空操作日志
// 清空操作日志
export
function
cleanOperLog
()
{
export
function
cleanOperLog
()
{
return
request
({
return
request
({
url
:
'/monitor/operLog/clean
/0
'
,
url
:
'/monitor/operLog/clean'
,
method
:
'delete'
method
:
'delete'
})
})
}
}
...
...
src/views/monitor/errorLog/index.vue
View file @
91357cfa
...
@@ -300,7 +300,7 @@ export default {
...
@@ -300,7 +300,7 @@ export default {
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
business
Id
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
oper
Id
)
},
},
/** 详细按钮操作 */
/** 详细按钮操作 */
handleView
(
row
)
{
handleView
(
row
)
{
...
@@ -314,12 +314,13 @@ export default {
...
@@ -314,12 +314,13 @@ export default {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
delErrLog
(
this
.
ids
.
join
(
','
)).
then
(()
=>
{
return
delErrLog
(
this
.
ids
)
this
.
getList
()
}).
then
(()
=>
{
this
.
$message
.
success
(
'删除成功'
)
this
.
getList
()
this
.
ids
=
[]
this
.
$message
.
success
(
'删除成功'
)
}).
catch
(
function
()
{})
this
.
ids
=
[]
}).
catch
()
this
.
multiple
=
true
}).
catch
(
function
()
{})
},
},
/** 清空按钮操作 */
/** 清空按钮操作 */
handleClean
()
{
handleClean
()
{
...
...
src/views/monitor/operLog/index.vue
View file @
91357cfa
...
@@ -209,6 +209,7 @@
...
@@ -209,6 +209,7 @@
<
script
>
<
script
>
import
{
list
,
delOperLog
,
cleanOperLog
,
exportOperLog
}
from
'@/api/monitor/operLog'
import
{
list
,
delOperLog
,
cleanOperLog
,
exportOperLog
}
from
'@/api/monitor/operLog'
import
{
delLogininfo
}
from
"@/api/monitor/loginInfo"
;
export
default
{
export
default
{
name
:
'Operlog'
,
name
:
'Operlog'
,
...
@@ -301,7 +302,7 @@ export default {
...
@@ -301,7 +302,7 @@ export default {
},
},
// 多选框选中数据
// 多选框选中数据
handleSelectionChange
(
selection
)
{
handleSelectionChange
(
selection
)
{
this
.
ids
=
selection
.
map
(
item
=>
item
.
business
Id
)
this
.
ids
=
selection
.
map
(
item
=>
item
.
oper
Id
)
},
},
/** 详细按钮操作 */
/** 详细按钮操作 */
handleView
(
row
)
{
handleView
(
row
)
{
...
@@ -315,12 +316,13 @@ export default {
...
@@ -315,12 +316,13 @@ export default {
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
type
:
'warning'
}).
then
(()
=>
{
}).
then
(()
=>
{
delOperLog
(
this
.
ids
.
join
(
','
)).
then
(()
=>
{
return
delOperLog
(
this
.
ids
)
this
.
getList
()
}).
then
(()
=>
{
this
.
$message
.
success
(
'删除成功'
)
this
.
getList
()
this
.
ids
=
[]
this
.
$message
.
success
(
'删除成功'
)
}).
catch
(
function
()
{})
this
.
ids
=
[]
})
this
.
multiple
=
true
}).
catch
(
function
()
{})
},
},
/** 清空按钮操作 */
/** 清空按钮操作 */
handleClean
()
{
handleClean
()
{
...
...
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