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:
guoyuqi 2024-04-03 15:52:40 +08:00 committed by 刘瑞斌
parent c5452f2cbb
commit 43b1ab263b
12 changed files with 20 additions and 14 deletions

View File

@ -469,7 +469,7 @@ template.default=默认模板
parent.node.not_blank=父节点不能为空 parent.node.not_blank=父节点不能为空
node.not_blank=节点不能为空 node.not_blank=节点不能为空
node.name.repeat=节点名称重复 node.name.repeat=该层级已有此模块名称
project.cannot.match.parent=和父节点的项目无法匹配 project.cannot.match.parent=和父节点的项目无法匹配
set_default_template=设置默认模板 set_default_template=设置默认模板

View File

@ -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 parent.node.not_blank=Parent node can not blank
node.not_blank=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 project.cannot.match.parent=Project can not match parent
# 状态流 # 状态流

View File

@ -479,7 +479,7 @@ global_parameters_already_exist=全局参数已存在
global_parameters_is_not_exist=全局参数不存在 global_parameters_is_not_exist=全局参数不存在
parent.node.not_blank=父节点不能为空 parent.node.not_blank=父节点不能为空
node.not_blank=节点不能为空 node.not_blank=节点不能为空
node.name.repeat=节点名称重复 node.name.repeat=该层级已有此模块名称
project.cannot.match.parent=和父节点的项目无法匹配 project.cannot.match.parent=和父节点的项目无法匹配
api_test_environment_not_exist=环境不存在 api_test_environment_not_exist=环境不存在
mock_environment_not_delete=Mock环境不允许删除 mock_environment_not_delete=Mock环境不允许删除

View File

@ -479,7 +479,7 @@ global_parameters_is_not_exist=全局參數不存在
parent.node.not_blank=父節點不能為空 parent.node.not_blank=父節點不能為空
node.not_blank=節點不能為空 node.not_blank=節點不能為空
node.name.repeat=節點名稱重複 node.name.repeat=此層級已有此模組名稱
project.cannot.match.parent=和父節點的項目無法匹配 project.cannot.match.parent=和父節點的項目無法匹配
api_test_environment_not_exist=環境不存在 api_test_environment_not_exist=環境不存在
mock_environment_not_delete=Mock 環境不允許刪除 mock_environment_not_delete=Mock 環境不允許刪除

View File

@ -654,7 +654,7 @@
padding: 4px 8px; padding: 4px 8px;
} }
} }
max-width: 172px; max-width: 400px;
} }
.ms-params-input-setting-trigger { .ms-params-input-setting-trigger {
@apply bg-white; @apply bg-white;

View File

@ -1539,13 +1539,15 @@
emit('addDone'); emit('addDone');
done(true); done(true);
Message.success(t('common.saveSuccess')); Message.success(t('common.saveSuccess'));
saveCaseModalVisible.value = false; handleSaveCaseCancel();
saveCaseLoading.value = false;
} }
} catch (error) { } catch (error) {
// eslint-disable-next-line no-console // eslint-disable-next-line no-console
console.log(error); console.log(error);
done(false); done(false);
} finally { } finally {
handleSaveCaseCancel();
saveCaseLoading.value = false; saveCaseLoading.value = false;
} }
} else { } else {

View File

@ -269,8 +269,8 @@
addResponseTab({ addResponseTab({
..._tab, ..._tab,
id: new Date().getTime(), id: new Date().getTime(),
label: `copy-${t(_tab.label || _tab.name)}`, label: `copy_${t(_tab.label || _tab.name)}`,
name: `copy-${t(_tab.label || _tab.name)}`, name: `copy_${t(_tab.label || _tab.name)}`,
}); });
break; break;
case 'delete': case 'delete':

View File

@ -325,7 +325,7 @@
try { try {
loading.value = true; loading.value = true;
const res = await getDefinitionDetail(typeof apiInfo === 'string' ? apiInfo : apiInfo.id); 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; let parseRequestBodyResult;
if (res.protocol === 'HTTP') { if (res.protocol === 'HTTP') {
parseRequestBodyResult = parseRequestBodyFiles(res.request.body); // id parseRequestBodyResult = parseRequestBodyFiles(res.request.body); // id

View File

@ -182,4 +182,8 @@
const activeKey = ref('detail'); const activeKey = ref('detail');
</script> </script>
<style lang="less" scoped></style> <style lang="less" scoped>
:deep(.ms-detail-card .one-line-text) {
max-width: 300px;
}
</style>

View File

@ -819,7 +819,7 @@
}; };
})[0] })[0]
), ),
name: `copy-${node.name}`, name: `copy_${node.name}`,
copyFromStepId: node.id, copyFromStepId: node.id,
sort: node.sort + 1, sort: node.sort + 1,
isNew: true, isNew: true,

View File

@ -366,8 +366,8 @@
...defaultScenarioInfo, ...defaultScenarioInfo,
steps: copySteps, steps: copySteps,
id: isCopy ? getGenerateId() : defaultScenarioInfo.id || '', id: isCopy ? getGenerateId() : defaultScenarioInfo.id || '',
label: isCopy ? `copy-${defaultScenarioInfo.name}` : defaultScenarioInfo.name, label: isCopy ? `copy_${defaultScenarioInfo.name}` : defaultScenarioInfo.name,
name: isCopy ? `copy-${defaultScenarioInfo.name}` : defaultScenarioInfo.name, name: isCopy ? `copy_${defaultScenarioInfo.name}` : defaultScenarioInfo.name,
isNew: isCopy, isNew: isCopy,
stepResponses: {}, stepResponses: {},
}); });

View File

@ -10,7 +10,7 @@
asterisk-position="end" asterisk-position="end"
> >
<a-input <a-input
v-model="form.name" v-model.trim="form.name"
:max-length="255" :max-length="255"
:placeholder="t('system.orgTemplate.caseNamePlaceholder')" :placeholder="t('system.orgTemplate.caseNamePlaceholder')"
allow-clear allow-clear