fix(接口管理):修复接口管理页面显示的问题
--bug=1038416 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038416 --bug=1038320 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001038320 --bug=1037893 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037893 --bug=1037474 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037474 --bug=1037375 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037375 --bug=1037373 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037373
This commit is contained in:
parent
c5452f2cbb
commit
43b1ab263b
|
@ -469,7 +469,7 @@ template.default=默认模板
|
|||
|
||||
parent.node.not_blank=父节点不能为空
|
||||
node.not_blank=节点不能为空
|
||||
node.name.repeat=节点名称重复
|
||||
node.name.repeat=该层级已有此模块名称
|
||||
project.cannot.match.parent=和父节点的项目无法匹配
|
||||
|
||||
set_default_template=设置默认模板
|
||||
|
|
|
@ -484,7 +484,7 @@ mock_environment_not_delete=Deletion is not allowed in the mock environment
|
|||
|
||||
parent.node.not_blank=Parent node can not blank
|
||||
node.not_blank=Node can not blank
|
||||
node.name.repeat=Name repeat
|
||||
node.name.repeat=This module name already exists at this level
|
||||
project.cannot.match.parent=Project can not match parent
|
||||
|
||||
# 状态流
|
||||
|
|
|
@ -479,7 +479,7 @@ global_parameters_already_exist=全局参数已存在
|
|||
global_parameters_is_not_exist=全局参数不存在
|
||||
parent.node.not_blank=父节点不能为空
|
||||
node.not_blank=节点不能为空
|
||||
node.name.repeat=节点名称重复
|
||||
node.name.repeat=该层级已有此模块名称
|
||||
project.cannot.match.parent=和父节点的项目无法匹配
|
||||
api_test_environment_not_exist=环境不存在
|
||||
mock_environment_not_delete=Mock环境不允许删除
|
||||
|
|
|
@ -479,7 +479,7 @@ global_parameters_is_not_exist=全局參數不存在
|
|||
|
||||
parent.node.not_blank=父節點不能為空
|
||||
node.not_blank=節點不能為空
|
||||
node.name.repeat=節點名稱重複
|
||||
node.name.repeat=此層級已有此模組名稱
|
||||
project.cannot.match.parent=和父節點的項目無法匹配
|
||||
api_test_environment_not_exist=環境不存在
|
||||
mock_environment_not_delete=Mock 環境不允許刪除
|
||||
|
|
|
@ -654,7 +654,7 @@
|
|||
padding: 4px 8px;
|
||||
}
|
||||
}
|
||||
max-width: 172px;
|
||||
max-width: 400px;
|
||||
}
|
||||
.ms-params-input-setting-trigger {
|
||||
@apply bg-white;
|
||||
|
|
|
@ -1539,13 +1539,15 @@
|
|||
emit('addDone');
|
||||
done(true);
|
||||
Message.success(t('common.saveSuccess'));
|
||||
saveCaseModalVisible.value = false;
|
||||
handleSaveCaseCancel();
|
||||
saveCaseLoading.value = false;
|
||||
}
|
||||
} catch (error) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(error);
|
||||
done(false);
|
||||
} finally {
|
||||
handleSaveCaseCancel();
|
||||
saveCaseLoading.value = false;
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -269,8 +269,8 @@
|
|||
addResponseTab({
|
||||
..._tab,
|
||||
id: new Date().getTime(),
|
||||
label: `copy-${t(_tab.label || _tab.name)}`,
|
||||
name: `copy-${t(_tab.label || _tab.name)}`,
|
||||
label: `copy_${t(_tab.label || _tab.name)}`,
|
||||
name: `copy_${t(_tab.label || _tab.name)}`,
|
||||
});
|
||||
break;
|
||||
case 'delete':
|
||||
|
|
|
@ -325,7 +325,7 @@
|
|||
try {
|
||||
loading.value = true;
|
||||
const res = await getDefinitionDetail(typeof apiInfo === 'string' ? apiInfo : apiInfo.id);
|
||||
const name = isCopy ? `copy-${res.name}` : res.name;
|
||||
const name = isCopy ? `copy_${res.name}` : res.name;
|
||||
let parseRequestBodyResult;
|
||||
if (res.protocol === 'HTTP') {
|
||||
parseRequestBodyResult = parseRequestBodyFiles(res.request.body); // 解析请求体中的文件,将详情中的文件 id 集合收集,更新时以判断文件是否删除以及是否新上传的文件
|
||||
|
|
|
@ -182,4 +182,8 @@
|
|||
const activeKey = ref('detail');
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped></style>
|
||||
<style lang="less" scoped>
|
||||
:deep(.ms-detail-card .one-line-text) {
|
||||
max-width: 300px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -819,7 +819,7 @@
|
|||
};
|
||||
})[0]
|
||||
),
|
||||
name: `copy-${node.name}`,
|
||||
name: `copy_${node.name}`,
|
||||
copyFromStepId: node.id,
|
||||
sort: node.sort + 1,
|
||||
isNew: true,
|
||||
|
|
|
@ -366,8 +366,8 @@
|
|||
...defaultScenarioInfo,
|
||||
steps: copySteps,
|
||||
id: isCopy ? getGenerateId() : defaultScenarioInfo.id || '',
|
||||
label: isCopy ? `copy-${defaultScenarioInfo.name}` : defaultScenarioInfo.name,
|
||||
name: isCopy ? `copy-${defaultScenarioInfo.name}` : defaultScenarioInfo.name,
|
||||
label: isCopy ? `copy_${defaultScenarioInfo.name}` : defaultScenarioInfo.name,
|
||||
name: isCopy ? `copy_${defaultScenarioInfo.name}` : defaultScenarioInfo.name,
|
||||
isNew: isCopy,
|
||||
stepResponses: {},
|
||||
});
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
asterisk-position="end"
|
||||
>
|
||||
<a-input
|
||||
v-model="form.name"
|
||||
v-model.trim="form.name"
|
||||
:max-length="255"
|
||||
:placeholder="t('system.orgTemplate.caseNamePlaceholder')"
|
||||
allow-clear
|
||||
|
|
Loading…
Reference in New Issue