Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
fc13f0dc
Commit
fc13f0dc
authored
4 years ago
by
fit2-zhao
Committed by
fit2-zhao
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
fix(接口自动化): 限制只有自定义请求可以另存新接口
parent
012d7fba
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
frontend/src/business/components/api/automation/scenario/component/StepExtendBtns.vue
+4
-5
...ents/api/automation/scenario/component/StepExtendBtns.vue
frontend/src/i18n/en-US.js
+5
-0
frontend/src/i18n/en-US.js
frontend/src/i18n/zh-CN.js
+5
-0
frontend/src/i18n/zh-CN.js
frontend/src/i18n/zh-TW.js
+5
-0
frontend/src/i18n/zh-TW.js
with
19 additions
and
5 deletions
+19
-5
frontend/src/business/components/api/automation/scenario/component/StepExtendBtns.vue
+
4
-
5
View file @
fc13f0dc
...
...
@@ -5,11 +5,10 @@
<el-icon
class=
"el-icon-more"
></el-icon>
</el-link>
<el-dropdown-menu
slot=
"dropdown"
>
<!--
<el-dropdown-item
command=
"copy"
>
复制步骤
</el-dropdown-item>
-->
<el-dropdown-item
command=
"remove"
v-tester
>
删除步骤
</el-dropdown-item>
<el-dropdown-item
command=
"scenarioVar"
v-tester
v-if=
"data.type==='scenario'"
>
查看场景变量
</el-dropdown-item>
<el-dropdown-item
command=
"openScenario"
v-tester
v-if=
"data.type==='scenario' && data.referenced==='REF'"
>
打开场景
</el-dropdown-item>
<el-dropdown-item
command=
"saveAs"
v-tester
v-if=
"allSamplers.indexOf(data.type)!=-1"
>
另存为接口定义
</el-dropdown-item>
<el-dropdown-item
command=
"remove"
v-tester
>
{{
this
.
$t
(
'
api_test.automation.delete_step
'
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"scenarioVar"
v-tester
v-if=
"data.type==='scenario'"
>
{{
this
.
$t
(
"
api_test.automation.view_scene_variables
"
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"openScenario"
v-tester
v-if=
"data.type==='scenario' && data.referenced==='REF'"
>
{{
this
.
$t
(
"
api_test.automation.open_scene
"
)
}}
</el-dropdown-item>
<el-dropdown-item
command=
"saveAs"
v-tester
v-if=
"allSamplers.indexOf(data.type)!=-1 && data.referenced ==='Created' "
>
{{
this
.
$t
(
"
api_test.automation.save_as_api
"
)
}}
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<ms-variable-list
ref=
"scenarioParameters"
/>
...
...
This diff is collapsed.
Click to expand it.
frontend/src/i18n/en-US.js
+
5
-
0
View file @
fc13f0dc
...
...
@@ -705,6 +705,11 @@ export default {
}
},
automation
:
{
view_scene_variables
:
"
View scene variables
"
,
open_scene
:
"
Open scene
"
,
save_as_api
:
"
Save as api
"
,
delete_step
:
"
Delete step
"
,
reference_deleted_info
:
"
Reference scene has been deleted
"
,
follow_people
:
"
Follow people
"
,
create_tag
:
"
Create tag
"
,
scenario_step
:
"
Ccenario step
"
,
...
...
This diff is collapsed.
Click to expand it.
frontend/src/i18n/zh-CN.js
+
5
-
0
View file @
fc13f0dc
...
...
@@ -706,6 +706,11 @@ export default {
}
},
automation
:
{
view_scene_variables
:
"
查看场景变量
"
,
open_scene
:
"
打开场景
"
,
save_as_api
:
"
另存为接口定义
"
,
delete_step
:
"
删除步骤
"
,
reference_deleted_info
:
"
引用场景已经被删除
"
,
follow_people
:
"
关注人
"
,
create_tag
:
"
创建Tag
"
,
scenario_step
:
"
场景步骤
"
,
...
...
This diff is collapsed.
Click to expand it.
frontend/src/i18n/zh-TW.js
+
5
-
0
View file @
fc13f0dc
...
...
@@ -705,6 +705,11 @@ export default {
}
},
automation
:
{
view_scene_variables
:
"
查看場景變量
"
,
open_scene
:
"
打開場景
"
,
save_as_api
:
"
另存為接口定義
"
,
delete_step
:
"
删除步骤
"
,
reference_deleted_info
:
"
引用場景已經被刪除
"
,
follow_people
:
"
關註人
"
,
create_tag
:
"
創建Tag
"
,
scenario_step
:
"
場景步驟
"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment