修改测试计划阶段

This commit is contained in:
chenjianxing 2020-04-24 17:00:24 +08:00
parent 874f3c627e
commit 288dd65b70
5 changed files with 18 additions and 4 deletions

View File

@ -54,10 +54,11 @@
<el-form-item :label="$t('test_track.plan.plan_stage')" :label-width="formLabelWidth" prop="stage">
<el-select v-model="form.stage" clearable :placeholder="$t('test_track.plan.input_plan_stage')">
<el-option :label="$t('test_track.plan.smoke_test')" value="smoke"></el-option>
<el-option :label="$t('test_track.plan.functional_test')" value="functional"></el-option>
<el-option :label="$t('test_track.plan.integration_testing')" value="integration"></el-option>
<!--<el-option :label="$t('test_track.plan.functional_test')" value="functional"></el-option>-->
<!--<el-option :label="$t('test_track.plan.integration_testing')" value="integration"></el-option>-->
<el-option :label="$t('test_track.plan.system_test')" value="system"></el-option>
<el-option :label="$t('test_track.plan.version_validation')" value="version"></el-option>
<el-option :label="$t('test_track.plan.regression_test')" value="regression"></el-option>
<!--<el-option :label="$t('test_track.plan.version_validation')" value="version"></el-option>-->
</el-select>
</el-form-item>
</el-col>

View File

@ -38,6 +38,7 @@
<span v-if="scope.row.stage == 'functional'">{{$t('test_track.plan.functional_test')}}</span>
<span v-if="scope.row.stage == 'integration'">{{$t('test_track.plan.integration_testing')}}</span>
<span v-if="scope.row.stage == 'system'">{{$t('test_track.plan.system_test')}}</span>
<span v-if="scope.row.stage == 'regression'">{{$t('test_track.plan.regression_test')}}</span>
<span v-if="scope.row.stage == 'version'">{{$t('test_track.plan.version_validation')}}</span>
</template>
</el-table-column>
@ -99,6 +100,13 @@
tableData: [],
}
},
watch: {
'$route'(to, from) {
if (to.path.indexOf("/track/plan/all") >= 0){
this.initTableData();
}
}
},
created() {
this.projectId = this.$route.params.projectId;
this.initTableData();

View File

@ -239,8 +239,9 @@ export default {
plan_status: "Status",
smoke_test: "Smoke test",
functional_test: "Functional test",
integration_testing: "Integration testing",
integration_testing: "Integration test",
system_test: "System test",
regression_test: "Regression test",
version_validation: "Version validation",
plan_principal: "Principal",
input_plan_name: "Please input plan name",

View File

@ -282,6 +282,7 @@ export default {
plan_status: "当前状态",
smoke_test: "冒烟测试",
functional_test: "功能测试",
regression_test: "回归测试",
integration_testing: "集成测试",
system_test: "系统测试",
version_validation: "版本验证",

3
package-lock.json generated Normal file
View File

@ -0,0 +1,3 @@
{
"lockfileVersion": 1
}