mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-03 04:28:51 +08:00
fix(系统设置): 请求记录的操作日志,查看详情,显示为上次打开的内容
--bug=1026197 --user=陈建星 【项目设置】操作日志-请求类型-查看日志详情和操作记录不对应 https://www.tapd.cn/55049933/s/1372092
This commit is contained in:
parent
ee50e7456e
commit
a9b815f5cd
@ -6,6 +6,7 @@
|
||||
<template v-slot:default="scope">
|
||||
<div v-if="isObject(scope.row.newValue)" class="code-edit-container">
|
||||
<ms-code-edit
|
||||
v-if="visible"
|
||||
mode="json"
|
||||
:read-only="true"
|
||||
:data="getJsonValue(scope.row.newValue)"
|
||||
@ -34,12 +35,24 @@ import MsCodeEdit from "metersphere-frontend/src/components/MsCodeEdit";
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
detail() {
|
||||
this.reload();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getJsonValue(value) {
|
||||
return JSON.stringify(value);
|
||||
},
|
||||
reload() {
|
||||
this.visible = false;
|
||||
this.$nextTick(() => {
|
||||
this.visible = true;
|
||||
});
|
||||
},
|
||||
isObject(value) {
|
||||
if (value instanceof Object) {
|
||||
return true;
|
||||
|
@ -6,6 +6,7 @@
|
||||
<template v-slot:default="scope">
|
||||
<div v-if="isObject(scope.row.newValue)" class="code-edit-container">
|
||||
<ms-code-edit
|
||||
v-if="visible"
|
||||
mode="json"
|
||||
:read-only="true"
|
||||
:data="getJsonValue(scope.row.newValue)"
|
||||
@ -34,12 +35,24 @@ import MsCodeEdit from "metersphere-frontend/src/components/MsCodeEdit";
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
visible: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
detail() {
|
||||
this.reload();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getJsonValue(value) {
|
||||
return JSON.stringify(value);
|
||||
},
|
||||
reload() {
|
||||
this.visible = false;
|
||||
this.$nextTick(() => {
|
||||
this.visible = true;
|
||||
});
|
||||
},
|
||||
isObject(value) {
|
||||
if (value instanceof Object) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user