fix(系统设置): 全局前/后置脚本配置页面-变更记录-显示变更字段去除

--bug=1010296 --user=周骏弘 全局前/后置脚本配置页面-变更记录-显示变更字段-与需求不符 https://www.tapd.cn/55049933/s/1104974
This commit is contained in:
junhong 2022-02-17 14:17:27 +08:00 committed by john1298308460
parent d2c8c633a4
commit 30b1267206
2 changed files with 7 additions and 2 deletions

View File

@ -176,7 +176,7 @@ public class ReflexObjectUtil {
column.setDiffValue(diffValue);
}
// 深度对比
else if (StringUtils.equals(module, "api_definition")) {
else if (StringUtils.equals(module, "API_DEFINITION")) {
if (originalColumns.get(i).getColumnName().equals("request")) {
String newValue = newColumns.get(i).getOriginalValue().toString();
String oldValue = column.getOriginalValue().toString();

View File

@ -9,7 +9,7 @@
</template>
</el-table-column>
<el-table-column prop="userName" :label="$t('operating_log.user')"/>
<el-table-column prop="columnTitle" :label="$t('operating_log.change_field')">
<el-table-column prop="columnTitle" :label="$t('operating_log.change_field')" v-if="showChangeField">
<template v-slot:default="scope">
<div v-if="scope.row.details && scope.row.details.columns">
<div v-for="detail in scope.row.details.columns" :key="detail.id">{{ detail.columnTitle }}</div>
@ -71,6 +71,7 @@ export default {
details: [],
linkDatas: ["prerequisite", "steps", "remark", "request", "config",
"response", "scenarioDefinition", "tags", "loadConfiguration", "advancedConfiguration"],
showChangeField: true,
}
},
methods: {
@ -84,6 +85,8 @@ export default {
if (data) {
//
if(modules.length > 0 && modules[0] === '项目-环境设置'){
//
this.showChangeField = false;
// id
let ids = [];
for(let i=0; i<data.length; i++){
@ -98,6 +101,8 @@ export default {
data.splice(index, 1);
});
}
}else {
this.showChangeField = true;
}
this.details = data;
}