fix(接口自动化): 限制只有自定义请求可以另存新接口

This commit is contained in:
fit2-zhao 2021-04-01 10:59:34 +08:00 committed by fit2-zhao
parent 012d7fbaec
commit fc13f0dc36
4 changed files with 19 additions and 5 deletions

View File

@ -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"/>

View File

@ -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",

View File

@ -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: "场景步骤",

View File

@ -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: "場景步驟",