Commit 91357cfa authored by Asjoker's avatar Asjoker

删除-修复

parent 3d81c295
...@@ -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'
}) })
} }
......
...@@ -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'
}) })
} }
......
...@@ -300,7 +300,7 @@ export default { ...@@ -300,7 +300,7 @@ export default {
}, },
// 多选框选中数据 // 多选框选中数据
handleSelectionChange(selection) { handleSelectionChange(selection) {
this.ids = selection.map(item => item.businessId) this.ids = selection.map(item => item.operId)
}, },
/** 详细按钮操作 */ /** 详细按钮操作 */
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() {
......
...@@ -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.businessId) this.ids = selection.map(item => item.operId)
}, },
/** 详细按钮操作 */ /** 详细按钮操作 */
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() {
......
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