Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Captain.B 2020-04-10 12:32:40 +08:00
commit 53fb702214
5 changed files with 47 additions and 36 deletions

View File

@ -7,11 +7,7 @@
<el-row type="flex" justify="space-between" align="middle">
<el-col :span="5">
<span class="title">{{$t('test_track.test_case')}}</span>
</el-col>
<el-col :span="2" :offset="10">
<el-button icon="el-icon-circle-plus-outline" size="small" round
@click="$emit('openTestCaseEditDialog')" >{{$t('commons.create')}}</el-button>
<ms-create-box :tips="$t('test_track.create')" :exec="testCaseCreate"/>
</el-col>
<el-col :span="5">
@ -108,8 +104,11 @@
<script>
import MsCreateBox from '../../../settings/CreateBox';
export default {
name: "TestCaseList",
components: {MsCreateBox},
data() {
return {
result: {},
@ -160,6 +159,9 @@
buildPagePath(path) {
return path + "/" + this.currentPage + "/" + this.pageSize;
},
testCaseCreate() {
this.$emit('openTestCaseEditDialog');
},
handleSizeChange(size) {
this.pageSize = size;
this.initTableData();
@ -175,7 +177,7 @@
this.$emit('testCaseEdit', testCase);
},
handleDelete(testCase) {
this.$alert(this.$t('load_test.delete_confirm') + testCase.name + "", '', {
this.$alert(this.$t('test_track.case_delete_confirm') + testCase.name + "", '', {
confirmButtonText: this.$t('commons.confirm'),
callback: (action) => {
if (action === 'confirm') {

View File

@ -21,7 +21,7 @@
<el-submenu v-if="isCurrentWorkspaceUser"
index="6" popper-class="submenu" v-permission="['test_manager', 'test_user']">
<template v-slot:title>{{$t('test_track.test_case')}}</template>
<ms-recent-list :options="testRecent"/>
<ms-recent-list :options="caseRecent"/>
<el-divider/>
<ms-show-all :index="'/track/case/all'"/>
<el-menu-item :index="testCaseEditPath" class="blank_item"></el-menu-item>
@ -34,7 +34,7 @@
<el-divider/>
<ms-show-all :index="'/track/plan/all'"/>
<el-menu-item :index="testPlanViewPath" class="blank_item"></el-menu-item>
<ms-create-button :index="'/track/plan/create'" :title="$t('project.create')"/>
<ms-create-button :index="'/track/plan/create'" :title="$t('test_track.create_plan')"/>
</el-submenu>
</el-menu>
</el-col>
@ -69,8 +69,8 @@
return {name: 'testCase', params: {projectId: item.id, projectName: item.name}}
}
},
testRecent: {
title: this.$t('load_test.recent'),
caseRecent: {
title: this.$t('test_track.recent_case'),
url: "/test/case/recent/5",
index: function (item) {
return '/track/case/edit/' + item.id;
@ -78,7 +78,7 @@
router: function (item) {}
},
planRecent: {
title: this.$t('report.recent'),
title: this.$t('test_track.recent_plan'),
url: "/test/plan/recent/5",
index: function (item) {
return '/track/plan/view/' + item.id;

View File

@ -8,14 +8,9 @@
<el-row type="flex" justify="space-between" align="middle">
<el-col :span="5">
<span class="title">{{$t('test_track.test_plan')}}</span>
<ms-create-box :tips="$t('test_track.create_plan')" :exec="testPlanCreate"/>
</el-col>
<el-col :span="2" :offset="10">
<el-button icon="el-icon-circle-plus-outline" size="small" round
@click="$emit('openTestPlanEditDialog')" >{{$t('commons.create')}}</el-button>
</el-col>
<el-col :span="5">
<span class="search">
<el-input type="text" size="small" :placeholder="$t('load_test.search_by_name')"
@ -117,8 +112,11 @@
</template>
<script>
import MsCreateBox from '../../../settings/CreateBox';
export default {
name: "TestPlanList",
components: {MsCreateBox},
data() {
return {
result: {},
@ -154,6 +152,9 @@
buildPagePath(path) {
return path + "/" + this.currentPage + "/" + this.pageSize;
},
testPlanCreate() {
this.$emit('openTestPlanEditDialog');
},
handleSizeChange(size) {
this.pageSize = size;
this.initTableData();
@ -169,7 +170,7 @@
this.$emit('testPlanEdit', testPlan);
},
handleDelete(testPlan) {
this.$alert(this.$t('load_test.delete_confirm') + testPlan.name + "", '', {
this.$alert(this.$t('test_track.plan_delete_confirm') + testPlan.name + "", '', {
confirmButtonText: this.$t('commons.confirm'),
callback: (action) => {
if (action === 'confirm') {

View File

@ -228,7 +228,7 @@ export default {
'executor': 'executor',
'execute_result': 'Execute result',
'case_type': 'Case type',
'pass': 'Success',
'pass': 'Pass',
'failure': 'Failure',
'blocking': 'Blocking',
'skip': 'Skip',
@ -239,6 +239,10 @@ export default {
'confirm_cancel_relevance': 'Confirm cancel relevance',
'plan': 'Plan',
'project': 'Project',
'recent_plan': 'Recent plan',
'recent_case': 'Recent case',
'plan_delete_confirm': 'Confirm delete test plan: ',
'case_delete_confirm': 'Confirm delete test case: ',
},
test_resource_pool: {
'type': 'type',

View File

@ -205,7 +205,7 @@ export default {
'add_submodule': '添加子模块',
'add_module': '添加模块',
'module_name': '模块名称',
'create_plan': '建测试计划',
'create_plan': '建测试计划',
'plan_name': '计划名称',
'plan_project': '所属项目',
'plan_stage': '测试阶段',
@ -228,7 +228,7 @@ export default {
'executor': '执行人',
'execute_result': '执行结果',
'case_type': '用例类型',
'pass': '成功',
'pass': '通过',
'failure': '失败',
'blocking': '阻塞',
'skip': '跳过',
@ -239,6 +239,10 @@ export default {
'confirm_cancel_relevance': '确认取消关联',
'plan': '计划',
'project': '项目',
'recent_plan': '最近的计划',
'recent_case': '最近的用例',
'plan_delete_confirm': '确认删除测试计划: ',
'case_delete_confirm': '确认删除测试用例: ',
},
test_resource_pool: {
'type': '类型',