From 92339f4498ca87b879b1cc5fac0d9eaaaaea3822 Mon Sep 17 00:00:00 2001 From: sunzehua Date: Sun, 18 Feb 2024 11:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/log/oplog/details.vue | 33 +++++---- src/views/system/log/oplog/index.vue | 93 ++++++++++++++++---------- 2 files changed, 76 insertions(+), 50 deletions(-) diff --git a/src/views/system/log/oplog/details.vue b/src/views/system/log/oplog/details.vue index d343e7e..f73b637 100644 --- a/src/views/system/log/oplog/details.vue +++ b/src/views/system/log/oplog/details.vue @@ -2,13 +2,13 @@ - + @@ -24,26 +24,26 @@ - + - + @@ -75,16 +75,23 @@ import JsonViewer from 'vue-json-viewer' }, visible: false, confirmLoading: false, - form: {} + form: { + result: '', + param: '' + } } }, methods: { // 初始化方法 details(record) { - this.visible = true - setTimeout(() => { - this.form = record - }, 100) + if (record.param) { + record.param = JSON.parse(record.param) + } + if (record.result) { + record.result = JSON.parse(record.result) + } + this.form = record + this.confirmLoading = false }, handleCancel() { this.visible = false diff --git a/src/views/system/log/oplog/index.vue b/src/views/system/log/oplog/index.vue index 8698510..05c6069 100644 --- a/src/views/system/log/oplog/index.vue +++ b/src/views/system/log/oplog/index.vue @@ -6,36 +6,37 @@ - - - + + + + + 订舱详情保存/BookingOrder/Save + + + 订舱台账保存/BookingOrder/SaveDataInList + + + 批量编辑台账/BookingOrder/BachUpdate + + + 批量修改船代/BookingOrder/BachUpdateShipagency + + - - - + + + - - - - {{ item.value }} - + + - - - + + + @@ -63,8 +64,25 @@ - - + + + + {{ item.value }} + + + + + + @@ -102,12 +120,6 @@ {{ text }} - - {{ text }} - - - {{ text }} - 查看详情 @@ -143,6 +155,7 @@ export default { { title: '请求方式', dataIndex: 'reqMethod', + width: '80px', scopedSlots: { customRender: 'reqMethod', sorter: true @@ -151,6 +164,7 @@ export default { { title: '执行结果', dataIndex: 'success', + width: '80px', scopedSlots: { customRender: 'success', sorter: true @@ -159,11 +173,13 @@ export default { { title: 'IP', dataIndex: 'ip', + width: '130px', sorter: true }, { title: '请求地址', dataIndex: 'url', + width: '300px', scopedSlots: { customRender: 'url', sorter: true @@ -172,6 +188,7 @@ export default { { title: '操作时间', dataIndex: 'opTime', + width: '160px', scopedSlots: { customRender: 'opTime', sorter: true @@ -180,6 +197,7 @@ export default { { title: '操作人', dataIndex: 'name', + width: '100px', scopedSlots: { customRender: 'name', sorter: true @@ -188,12 +206,13 @@ export default { { title: '操作人帐号', dataIndex: 'account', + width: '150px', sorter: true }, { title: '详情', dataIndex: 'action', - width: '150px', + width: '80px', scopedSlots: { customRender: 'action' } @@ -202,10 +221,6 @@ export default { // 加载数据方法 必须为 Promise 对象 loadData: parameter => { return sysOpLogPage(Object.assign(parameter, this.switchingDate())).then(res => { - res.data.pageNo = res.data.pageIndex - res.data.totalPage = res.data.totalPages - res.data.totalCount = res.data.totalRows - res.data.rows = res.data.items return res.data }) }, @@ -229,8 +244,12 @@ export default { } }, handleLook(row) { + this.$refs.detailsOplog.visible = true + this.$refs.detailsOplog.confirmLoading = true sysOpLogdetail({ id: row.id }).then(res => { - + if (res.success) { + this.$refs.detailsOplog.details(res.data) + } }) }, successFilter(success) {