fix(测试跟踪): 功能用例无法编辑
This commit is contained in:
parent
36961210f2
commit
e7e2c1a09c
|
@ -454,7 +454,8 @@ export default {
|
|||
permissions: ['PROJECT_API_SCENARIO:READ+DELETE']
|
||||
},
|
||||
{
|
||||
name: "批量恢复", handleClick: this.handleBatchRestore
|
||||
name: this.$t('commons.batch_restore'),
|
||||
handleClick: this.handleBatchRestore
|
||||
},
|
||||
],
|
||||
unTrashButtons: [
|
||||
|
@ -794,7 +795,7 @@ export default {
|
|||
|
||||
// todo 选取全部数据
|
||||
if (this.condition.selectAll) {
|
||||
this.$warning("暂不支持批量添加所有场景到测试计划!");
|
||||
this.$warning(this.$t('api_test.scenario.warning_context'));
|
||||
}
|
||||
|
||||
this.planVisible = false;
|
||||
|
@ -1010,7 +1011,7 @@ export default {
|
|||
this.$get("/api/automation/checkScenarioEnv/" + this.currentScenario.id, res => {
|
||||
let data = res.data;
|
||||
if (!data) {
|
||||
this.$warning("请为场景选择环境!");
|
||||
this.$warning(this.$t('workspace.env_group.please_select_env_for_current_scenario'));
|
||||
return false;
|
||||
}
|
||||
this.reportId = getUUID().substring(0, 8);
|
||||
|
|
|
@ -945,7 +945,7 @@ export default {
|
|||
apiNames += ";" + item;
|
||||
}
|
||||
});
|
||||
this.$error("请先恢复[" + apiNames + "]接口");
|
||||
this.$error(this.$t('api_test.definition.case_reduction_error_text') + "[" + apiNames + "]" + this.$t("api_test.home_page.api_details_card.title"));
|
||||
} else {
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
}
|
||||
|
@ -971,7 +971,7 @@ export default {
|
|||
apiNames += ";" + item;
|
||||
}
|
||||
});
|
||||
this.$error("请先恢复[" + apiNames + "]接口");
|
||||
this.$error(this.$t('api_test.definition.case_reduction_error_text') + "[" + apiNames + "]" + this.$t("api_test.home_page.api_details_card.title"));
|
||||
} else {
|
||||
this.$success(this.$t('commons.save_success'));
|
||||
}
|
||||
|
|
|
@ -302,7 +302,8 @@ export default {
|
|||
permissions: ['PROJECT_API_DEFINITION:READ+DELETE_API']
|
||||
},
|
||||
{
|
||||
name: "批量恢复", handleClick: this.handleBatchRestore
|
||||
name: this.$t('commons.batch_restore'),
|
||||
handleClick: this.handleBatchRestore
|
||||
},
|
||||
],
|
||||
tableOperatorButtons: [],
|
||||
|
|
|
@ -88,8 +88,8 @@
|
|||
{id: 'BATCH_UPDATE', label: this.$t('api_test.definition.request.batch_edit')},
|
||||
{id: 'BATCH_ADD', label: this.$t('commons.batch_add')},
|
||||
{id: 'UN_ASSOCIATE_CASE', label: this.$t('test_track.case.unlink')},
|
||||
{id: 'BATCH_RESTORE', label: "批量恢复"},
|
||||
{id: 'BATCH_GC', label: "批量回收"}
|
||||
{id: 'BATCH_RESTORE', label: this.$t('commons.batch_restore')},
|
||||
{id: 'BATCH_GC', label: this.$t('commons.batch_gc')}
|
||||
],
|
||||
LOG_TYPE_MAP: new Map([
|
||||
['CREATE', this.$t('api_test.definition.request.create_info')],
|
||||
|
|
|
@ -339,7 +339,7 @@ export default {
|
|||
this.$warning(this.$t('commons.check_project_tip'));
|
||||
return;
|
||||
}
|
||||
this.showPublic = true
|
||||
this.showPublic = false
|
||||
if (tab.name === 'add') {
|
||||
let label = this.$t('test_track.case.create');
|
||||
let name = getUUID().substring(0, 8);
|
||||
|
|
|
@ -1,15 +1,17 @@
|
|||
<template>
|
||||
<div v-loading="result.loading">
|
||||
<div v-for="pe in data" :key="pe.id" style="margin-left: 20px;">
|
||||
<el-select v-model="pe['selectEnv']" placeholder="请选择环境" style="margin-top: 8px;width: 200px;" size="small">
|
||||
<el-select v-model="pe['selectEnv']" :placeholder="$t('api_test.environment.select_environment')"
|
||||
style="margin-top: 8px;width: 200px;" size="small">
|
||||
<el-option v-for="(environment, index) in pe.envs" :key="index"
|
||||
:label="environment.name"
|
||||
:value="environment.id"/>
|
||||
<el-button class="ms-scenario-button" v-if="isShowConfirmButton(pe.id)" size="mini" type="primary" @click="openEnvironmentConfig(pe.id)">
|
||||
<el-button class="ms-scenario-button" v-if="isShowConfirmButton(pe.id)" size="mini" type="primary"
|
||||
@click="openEnvironmentConfig(pe.id)">
|
||||
{{ $t('api_test.environment.environment_config') }}
|
||||
</el-button>
|
||||
<template v-slot:empty>
|
||||
<div v-if="isShowConfirmButton(pe.id)" class="empty-environment">
|
||||
<div v-if="isShowConfirmButton(pe.id)" class="empty-environment">
|
||||
<el-button class="ms-scenario-button" size="mini" type="primary" @click="openEnvironmentConfig(pe.id)">
|
||||
{{ $t('api_test.environment.environment_config') }}
|
||||
</el-button>
|
||||
|
@ -21,7 +23,8 @@
|
|||
</span>
|
||||
</div>
|
||||
|
||||
<el-button type="primary" @click="handleConfirm" size="small" class="env-confirm">确 定</el-button>
|
||||
<el-button type="primary" @click="handleConfirm" size="small" class="env-confirm">{{ $t('commons.confirm') }}
|
||||
</el-button>
|
||||
|
||||
<!-- 环境配置 -->
|
||||
<api-environment-config ref="environmentConfig" @close="environmentConfigClose"/>
|
||||
|
|
Loading…
Reference in New Issue