国际化
This commit is contained in:
parent
3c59765b2a
commit
9b34bb2819
|
@ -6,7 +6,7 @@
|
||||||
<select-menu
|
<select-menu
|
||||||
:data="projects"
|
:data="projects"
|
||||||
:current-data="currentProject"
|
:current-data="currentProject"
|
||||||
:title="'项目'"
|
:title="$t('test_track.project')"
|
||||||
@dataChange="changeProject">
|
@dataChange="changeProject">
|
||||||
</select-menu>
|
</select-menu>
|
||||||
|
|
||||||
|
@ -184,7 +184,6 @@
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.case_container {
|
.case_container {
|
||||||
padding: 15px;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: white;
|
background: white;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<select-menu
|
<select-menu
|
||||||
:data="testPlans"
|
:data="testPlans"
|
||||||
:current-data="currentPlan"
|
:current-data="currentPlan"
|
||||||
:title="'计划'"
|
:title="$t('test_track.plan')"
|
||||||
@dataChange="changePlan">
|
@dataChange="changePlan">
|
||||||
</select-menu>
|
</select-menu>
|
||||||
|
|
||||||
|
@ -20,12 +20,12 @@
|
||||||
</el-aside>
|
</el-aside>
|
||||||
|
|
||||||
<el-main>
|
<el-main>
|
||||||
<test-case-plan-list
|
<test-plan-test-case-list
|
||||||
@openTestCaseRelevanceDialog="openTestCaseRelevanceDialog"
|
@openTestCaseRelevanceDialog="openTestCaseRelevanceDialog"
|
||||||
@editTestPlanTestCase="editTestPlanTestCase"
|
@editTestPlanTestCase="editTestPlanTestCase"
|
||||||
@refresh="refresh"
|
@refresh="refresh"
|
||||||
:plan-id="planId"
|
:plan-id="planId"
|
||||||
ref="testCasePlanList"></test-case-plan-list>
|
ref="testCasePlanList"></test-plan-test-case-list>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
|
|
||||||
|
@ -46,14 +46,14 @@
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import PlanNodeTree from "./components/PlanNodeTree";
|
import PlanNodeTree from "./components/PlanNodeTree";
|
||||||
import TestCasePlanList from "./components/TestCasePlanList";
|
import TestPlanTestCaseList from "./components/TestPlanTestCaseList";
|
||||||
import TestCaseRelevance from "./components/TestCaseRelevance";
|
import TestCaseRelevance from "./components/TestCaseRelevance";
|
||||||
import TestPlanTestCaseEdit from "./components/TestPlanTestCaseEdit";
|
import TestPlanTestCaseEdit from "./components/TestPlanTestCaseEdit";
|
||||||
import SelectMenu from "../common/SelectMenu";
|
import SelectMenu from "../common/SelectMenu";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TestPlanView",
|
name: "TestPlanView",
|
||||||
components: {PlanNodeTree, TestCasePlanList, TestCaseRelevance, TestPlanTestCaseEdit, SelectMenu},
|
components: {PlanNodeTree, TestPlanTestCaseList, TestCaseRelevance, TestPlanTestCaseEdit, SelectMenu},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
testPlans: [],
|
testPlans: [],
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="2" :offset="8">
|
<el-col :span="2" :offset="8">
|
||||||
<el-button icon="el-icon-circle-plus-outline" size="small" round
|
<el-button icon="el-icon-connection" size="small" round
|
||||||
@click="$emit('openTestCaseRelevanceDialog')" >{{$t('test_track.relevance_test_case')}}</el-button>
|
@click="$emit('openTestCaseRelevanceDialog')" >{{$t('test_track.relevance_test_case')}}</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
|
@ -75,11 +75,25 @@
|
||||||
width="160"
|
width="160"
|
||||||
show-overflow-tooltip>
|
show-overflow-tooltip>
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<span v-if="scope.row.status == 'Prepare'">{{$t('test_track.plan_status_prepare')}}</span>
|
<el-tag v-if="scope.row.status == 'Prepare'"
|
||||||
<span v-if="scope.row.status == 'Pass'">{{$t('test_track.pass')}}</span>
|
e ffect="info"
|
||||||
<span v-if="scope.row.status == 'Failure'">{{$t('test_track.failure')}}</span>
|
size="mini">{{$t('test_track.plan_status_prepare')}}</el-tag>
|
||||||
<span v-if="scope.row.status == 'Blocking'">{{$t('test_track.blocking')}}</span>
|
<el-tag v-if="scope.row.status == 'Pass'"
|
||||||
<span v-if="scope.row.status == 'Skip'">{{$t('test_track.skip')}}</span>
|
type="success"
|
||||||
|
effect="dark"
|
||||||
|
size="mini">{{$t('test_track.pass')}}</el-tag>
|
||||||
|
<el-tag v-if="scope.row.status == 'Failure'"
|
||||||
|
type="danger"
|
||||||
|
effect="dark"
|
||||||
|
size="mini">{{$t('test_track.failure')}}</el-tag>
|
||||||
|
<el-tag v-if="scope.row.status == 'Blocking'"
|
||||||
|
type="warning"
|
||||||
|
effect="dark"
|
||||||
|
size="mini">{{$t('test_track.blocking')}}</el-tag>
|
||||||
|
<el-tag v-if="scope.row.status == 'Skip'"
|
||||||
|
type="info"
|
||||||
|
effect="dark"
|
||||||
|
size="mini">{{$t('test_track.skip')}}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
|
@ -95,7 +109,7 @@
|
||||||
:label="$t('commons.operating')">
|
:label="$t('commons.operating')">
|
||||||
<template v-slot:default="scope">
|
<template v-slot:default="scope">
|
||||||
<el-button @click="handleEdit(scope.row)" type="primary" icon="el-icon-edit" size="mini" circle/>
|
<el-button @click="handleEdit(scope.row)" type="primary" icon="el-icon-edit" size="mini" circle/>
|
||||||
<el-button @click="handleDelete(scope.row)" type="danger" icon="el-icon-delete" size="mini" circle/>
|
<el-button @click="handleDelete(scope.row)" type="danger" icon="el-icon-unlock" size="mini" circle/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -126,7 +140,7 @@
|
||||||
import PlanNodeTree from './PlanNodeTree';
|
import PlanNodeTree from './PlanNodeTree';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "TestCaseList",
|
name: "TestPlanTestCaseList",
|
||||||
components: {PlanNodeTree},
|
components: {PlanNodeTree},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -192,7 +206,7 @@
|
||||||
this.$emit('editTestPlanTestCase', testCase);
|
this.$emit('editTestPlanTestCase', testCase);
|
||||||
},
|
},
|
||||||
handleDelete(testCase) {
|
handleDelete(testCase) {
|
||||||
this.$alert(this.$t('load_test.delete_confirm') + testCase.name + "?", '', {
|
this.$alert(this.$t('test_track.confirm_cancel_relevance') + ' ' + testCase.name + " ?", '', {
|
||||||
confirmButtonText: this.$t('commons.confirm'),
|
confirmButtonText: this.$t('commons.confirm'),
|
||||||
callback: (action) => {
|
callback: (action) => {
|
||||||
if (action === 'confirm') {
|
if (action === 'confirm') {
|
|
@ -41,10 +41,10 @@ export default {
|
||||||
'api': 'Api',
|
'api': 'Api',
|
||||||
'performance': 'Performance',
|
'performance': 'Performance',
|
||||||
'input_content': 'Please enter content',
|
'input_content': 'Please enter content',
|
||||||
'create': 'create',
|
'create': 'Create',
|
||||||
'refresh': 'refresh',
|
'refresh': 'Refresh',
|
||||||
'remark': 'remark',
|
'remark': 'Remark',
|
||||||
'delete': 'delete',
|
'delete': 'Delete',
|
||||||
'not_filled': 'Not filled'
|
'not_filled': 'Not filled'
|
||||||
},
|
},
|
||||||
workspace: {
|
workspace: {
|
||||||
|
@ -201,7 +201,7 @@ export default {
|
||||||
'input_method': 'Please select method',
|
'input_method': 'Please select method',
|
||||||
'input_prerequisite': 'Please select prerequisite',
|
'input_prerequisite': 'Please select prerequisite',
|
||||||
'search_module': 'Search module',
|
'search_module': 'Search module',
|
||||||
'rename': 'rename',
|
'rename': 'Rename',
|
||||||
'add_submodule': 'Add submodule',
|
'add_submodule': 'Add submodule',
|
||||||
'add_module': 'Add module',
|
'add_module': 'Add module',
|
||||||
'module_name': 'Module name',
|
'module_name': 'Module name',
|
||||||
|
@ -209,17 +209,17 @@ export default {
|
||||||
'plan_name': 'Test plan name',
|
'plan_name': 'Test plan name',
|
||||||
'plan_project': 'Related project',
|
'plan_project': 'Related project',
|
||||||
'plan_stage': 'Testing phase',
|
'plan_stage': 'Testing phase',
|
||||||
'plan_status': 'The current state',
|
'plan_status': 'Status',
|
||||||
'smoke_test': 'Smoke test',
|
'smoke_test': 'Smoke test',
|
||||||
'functional_test': 'Functional test',
|
'functional_test': 'Functional test',
|
||||||
'integration_testing': 'Integration testing',
|
'integration_testing': 'Integration testing',
|
||||||
'system_test': 'System test',
|
'system_test': 'System test',
|
||||||
'version_validation': 'Version validation',
|
'version_validation': 'Version validation',
|
||||||
'plan_principal': 'principal',
|
'plan_principal': 'Principal',
|
||||||
'input_plan_principal': 'Please select principal',
|
'input_plan_principal': 'Please select principal',
|
||||||
'input_plan_project': 'Please select project',
|
'input_plan_project': 'Please select project',
|
||||||
'input_plan_stage': 'Please select stage',
|
'input_plan_stage': 'Please select stage',
|
||||||
'plan_status_prepare': ' Not started',
|
'plan_status_prepare': 'Not started',
|
||||||
'plan_status_running': 'Starting',
|
'plan_status_running': 'Starting',
|
||||||
'plan_status_completed': 'Completed',
|
'plan_status_completed': 'Completed',
|
||||||
'delete_module_confirm': 'Confirm delete module: ',
|
'delete_module_confirm': 'Confirm delete module: ',
|
||||||
|
@ -235,7 +235,10 @@ export default {
|
||||||
'actual_result': 'Actual result',
|
'actual_result': 'Actual result',
|
||||||
'step_result': 'Step result',
|
'step_result': 'Step result',
|
||||||
'select_execute_result': 'Select execute result',
|
'select_execute_result': 'Select execute result',
|
||||||
'save': 'Save'
|
'save': 'Save',
|
||||||
|
'confirm_cancel_relevance': 'Confirm cancel relevance',
|
||||||
|
'plan': 'Plan',
|
||||||
|
'project': 'Project',
|
||||||
},
|
},
|
||||||
test_resource_pool: {
|
test_resource_pool: {
|
||||||
'type': 'type',
|
'type': 'type',
|
||||||
|
|
|
@ -235,7 +235,10 @@ export default {
|
||||||
'actual_result': '实际结果',
|
'actual_result': '实际结果',
|
||||||
'step_result': '步骤执行结果',
|
'step_result': '步骤执行结果',
|
||||||
'select_execute_result': '选择执行结果',
|
'select_execute_result': '选择执行结果',
|
||||||
'save': '保 存'
|
'save': '保 存',
|
||||||
|
'confirm_cancel_relevance': '确认取消关联',
|
||||||
|
'plan': '计划',
|
||||||
|
'project': '项目',
|
||||||
},
|
},
|
||||||
test_resource_pool: {
|
test_resource_pool: {
|
||||||
'type': '类型',
|
'type': '类型',
|
||||||
|
|
Loading…
Reference in New Issue