fix(项目管理): 修复环境全局请求头日志记录错误的缺陷
--bug=1040012 --user=王孝刚 【项目管理】环境管理-全局请求头-导入/批量添加/更新全局请求体-日志处名称显示空白的 https://www.tapd.cn/55049933/s/1517224
This commit is contained in:
parent
050d08a998
commit
1431e63a0e
|
@ -537,3 +537,6 @@ api_test_environment_datasource_connect_failed=数据源连接失败
|
|||
ms_url_not_available=资源池无法访问当前站点
|
||||
api_key_not_exist=ApiKey不存在
|
||||
current_user_can_not_operation_api_key=当前用户无操作该ApiKey的权限
|
||||
|
||||
#全局请求头
|
||||
global_request_header=全局请求头
|
||||
|
|
|
@ -575,3 +575,6 @@ permission.service_integration.reset=Reset
|
|||
ms_url_not_available=The resource pool cannot access the current site
|
||||
api_key_not_exist=API key does not exist
|
||||
current_user_can_not_operation_api_key=The current user cannot operate the API key
|
||||
|
||||
#全局请求头
|
||||
global_request_header=Global request header
|
|
@ -572,3 +572,6 @@ permission.service_integration.reset=重置
|
|||
ms_url_not_available=资源池无法访问当前站点
|
||||
api_key_not_exist=ApiKey不存在
|
||||
current_user_can_not_operation_api_key=当前用户无操作该ApiKey的权限
|
||||
|
||||
#全局请求头
|
||||
global_request_header=全局请求头
|
|
@ -572,3 +572,6 @@ permission.service_integration.reset=重置
|
|||
ms_url_not_available=資源池無法訪問當前站點
|
||||
api_key_not_exist=ApiKey不存在
|
||||
current_user_can_not_operation_api_key=當前用戶無法操作ApiKey
|
||||
|
||||
#全局请求头
|
||||
global_request_header=全局請求頭
|
|
@ -6,6 +6,7 @@ import io.metersphere.project.mapper.ProjectMapper;
|
|||
import io.metersphere.sdk.domain.ProjectParameter;
|
||||
import io.metersphere.sdk.mapper.ProjectParameterMapper;
|
||||
import io.metersphere.sdk.util.JSON;
|
||||
import io.metersphere.sdk.util.Translator;
|
||||
import io.metersphere.system.log.constants.OperationLogModule;
|
||||
import io.metersphere.system.log.constants.OperationLogType;
|
||||
import io.metersphere.system.log.dto.LogDTO;
|
||||
|
@ -32,7 +33,7 @@ public class GlobalParamsLogService {
|
|||
null,
|
||||
OperationLogType.ADD.name(),
|
||||
OperationLogModule.PROJECT_MANAGEMENT_ENVIRONMENT,
|
||||
null);
|
||||
Translator.get("global_request_header"));
|
||||
|
||||
dto.setOriginalValue(JSON.toJSONBytes(request.getGlobalParams()));
|
||||
return dto;
|
||||
|
@ -47,7 +48,7 @@ public class GlobalParamsLogService {
|
|||
null,
|
||||
OperationLogType.UPDATE.name(),
|
||||
OperationLogModule.PROJECT_MANAGEMENT_ENVIRONMENT,
|
||||
null);
|
||||
Translator.get("global_request_header"));
|
||||
ProjectParameter projectParameters = projectParametersMapper.selectByPrimaryKey(request.getId());
|
||||
dto.setOriginalValue(projectParameters.getParameters());
|
||||
dto.setModifiedValue(JSON.toJSONBytes(request.getGlobalParams()));
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
const httpHeader = defineAsyncComponent(() => import('@/views/api-test/components/requestComposition/header.vue'));
|
||||
|
||||
defineOptions({
|
||||
name: 'EnvManangeGloblaRequestHeader',
|
||||
name: 'EnvManageGlobalRequestHeader',
|
||||
});
|
||||
|
||||
const props = defineProps<{
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
:class="{ 'bg-[rgb(var(--primary-1))] !text-[rgb(var(--primary-5))]': activeKey === ALL_PARAM }"
|
||||
@click="handleListItemClick({ id: 'allParam', name: 'allParam', description: '' })"
|
||||
>
|
||||
{{ t('project.environmental.allParam') }}
|
||||
{{ t('project.environmental.requestHeader') }}
|
||||
<div class="node-extra">
|
||||
<MsMoreAction
|
||||
v-permission="['PROJECT_ENVIRONMENT:READ+IMPORT', 'PROJECT_ENVIRONMENT:READ+EXPORT']"
|
||||
|
|
Loading…
Reference in New Issue