Commit 91357cfa authored by Asjoker's avatar Asjoker

删除-修复

parent 3d81c295
......@@ -20,7 +20,7 @@ export function delErrLog(operId) {
// 清空异常日志
export function cleanErrLog() {
return request({
url: '/monitor/errorLog/clean/1',
url: '/monitor/errorLog/clean',
method: 'delete'
})
}
......
......@@ -20,7 +20,7 @@ export function delOperLog(operId) {
// 清空操作日志
export function cleanOperLog() {
return request({
url: '/monitor/operLog/clean/0',
url: '/monitor/operLog/clean',
method: 'delete'
})
}
......
......@@ -300,7 +300,7 @@ export default {
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.businessId)
this.ids = selection.map(item => item.operId)
},
/** 详细按钮操作 */
handleView(row) {
......@@ -314,12 +314,13 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
delErrLog(this.ids.join(',')).then(() => {
this.getList()
this.$message.success('删除成功')
this.ids = []
}).catch(function() {})
}).catch()
return delErrLog(this.ids)
}).then(() => {
this.getList()
this.$message.success('删除成功')
this.ids = []
this.multiple = true
}).catch(function() {})
},
/** 清空按钮操作 */
handleClean() {
......
......@@ -209,6 +209,7 @@
<script>
import { list, delOperLog, cleanOperLog, exportOperLog } from '@/api/monitor/operLog'
import {delLogininfo} from "@/api/monitor/loginInfo";
export default {
name: 'Operlog',
......@@ -301,7 +302,7 @@ export default {
},
// 多选框选中数据
handleSelectionChange(selection) {
this.ids = selection.map(item => item.businessId)
this.ids = selection.map(item => item.operId)
},
/** 详细按钮操作 */
handleView(row) {
......@@ -315,12 +316,13 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
delOperLog(this.ids.join(',')).then(() => {
this.getList()
this.$message.success('删除成功')
this.ids = []
}).catch(function() {})
})
return delOperLog(this.ids)
}).then(() => {
this.getList()
this.$message.success('删除成功')
this.ids = []
this.multiple = true
}).catch(function() {})
},
/** 清空按钮操作 */
handleClean() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment