From 74308ac4e0d5f58ae51d88676033589fa7eff9fa Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 20 Dec 2021 16:31:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E4=B8=AD=E5=89=8D=E7=BD=AE?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E8=8B=B1=E6=96=87=E4=B8=8B=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=8D=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../automation/scenario/EditApiScenario.vue | 7 +- .../common/Jsr233ProcessorContent.vue | 1 + .../mock/Components/MockApiScriptEditor.vue | 1 + .../components/processor/Jsr233Processor.vue | 1 + .../components/project/home/ProjectHome.vue | 5 +- .../components/project/menu/EditProject.vue | 40 ++- .../project/menu/function/EditFunction.vue | 1 + .../settings/workspace/EditProject.vue | 321 ------------------ .../settings/workspace/MsProject.vue | 2 +- frontend/src/i18n/en-US.js | 13 +- frontend/src/i18n/zh-CN.js | 3 + frontend/src/i18n/zh-TW.js | 3 + 12 files changed, 56 insertions(+), 342 deletions(-) delete mode 100644 frontend/src/business/components/settings/workspace/EditProject.vue diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index ea97fc7114..9a68628940 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -486,6 +486,7 @@ export default { this.$store.state.scenarioMap.set(this.currentScenario.id, change); } }, + }, created() { if (!this.currentScenario.apiScenarioModuleId) { @@ -905,9 +906,9 @@ export default { fabClick() { if (this.operatingElements && this.operatingElements.length < 1) { if (this.selectedTreeNode && this.selectedTreeNode.referenced === 'REF' || this.selectedTreeNode.disabled) { - this.$warning("引用的场景步骤及子步骤都无法添加其他步骤"); + this.$warning(this.$t('api_test.scenario.scenario_warning')); } else { - this.$warning("当前步骤下不能添加其他步骤"); + this.$warning(this.$t('api_test.scenario.scenario_step_warning')); } } }, @@ -1005,7 +1006,7 @@ export default { if (arr && arr.length > 0) { arr.forEach(item => { if (item.id === this.currentScenario.id) { - this.$error("不能引用或复制自身!"); + this.$error(this.$t("api_test.scenario.scenario_error")); this.$refs.scenarioRelevance.changeButtonLoadingType(); return; } diff --git a/frontend/src/business/components/api/automation/scenario/common/Jsr233ProcessorContent.vue b/frontend/src/business/components/api/automation/scenario/common/Jsr233ProcessorContent.vue index 5e09ec245d..4c9076b2a1 100644 --- a/frontend/src/business/components/api/automation/scenario/common/Jsr233ProcessorContent.vue +++ b/frontend/src/business/components/api/automation/scenario/common/Jsr233ProcessorContent.vue @@ -235,6 +235,7 @@ .script-index { padding: 0 20px; + width: 230px; } .template-title { diff --git a/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue b/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue index 5b526e7d05..10b96cb153 100644 --- a/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue +++ b/frontend/src/business/components/api/definition/components/mock/Components/MockApiScriptEditor.vue @@ -208,6 +208,7 @@ export default { .script-index { padding: 0 20px; + width: 230px; } .template-title { diff --git a/frontend/src/business/components/api/test/components/processor/Jsr233Processor.vue b/frontend/src/business/components/api/test/components/processor/Jsr233Processor.vue index fbc77e82d8..8304ff825e 100644 --- a/frontend/src/business/components/api/test/components/processor/Jsr233Processor.vue +++ b/frontend/src/business/components/api/test/components/processor/Jsr233Processor.vue @@ -130,6 +130,7 @@ export default { .script-index { padding: 0 20px; + width: 230px; } .template-title { diff --git a/frontend/src/business/components/project/home/ProjectHome.vue b/frontend/src/business/components/project/home/ProjectHome.vue index d7d0eba569..6533eb005a 100644 --- a/frontend/src/business/components/project/home/ProjectHome.vue +++ b/frontend/src/business/components/project/home/ProjectHome.vue @@ -133,7 +133,7 @@ - + @@ -157,7 +157,8 @@ export default { createUser: '' }, memberSize: 0, - result: {} + result: {}, + isShowApp: false } }, methods: { diff --git a/frontend/src/business/components/project/menu/EditProject.vue b/frontend/src/business/components/project/menu/EditProject.vue index 94afeaf5a9..7e672c8200 100644 --- a/frontend/src/business/components/project/menu/EditProject.vue +++ b/frontend/src/business/components/project/menu/EditProject.vue @@ -7,7 +7,8 @@ - + @@ -18,16 +19,19 @@ - + - - + + - + @@ -63,6 +67,18 @@ + + + + + + + + +