refactor(测试跟踪): 功能测试支持选择自动方式

This commit is contained in:
chenjianxing 2020-09-17 18:36:13 +08:00
parent 6e72c03e2e
commit e40ce93182
1 changed files with 8 additions and 15 deletions

View File

@ -261,7 +261,6 @@ export default {
},
moduleOptions: [],
maintainerOptions: [],
methodOptions: [],
testOptions: [],
workspaceId: '',
rules: {
@ -281,7 +280,11 @@ export default {
formLabelWidth: "120px",
operationType: '',
isCreateContinue: false,
isStepTableAlive: true
isStepTableAlive: true,
methodOptions: [
{value: 'auto', label: this.$t('test_track.case.auto')},
{value: 'manual', label: this.$t('test_track.case.manual')}
]
};
},
props: {
@ -458,7 +461,6 @@ export default {
},
typeChange() {
this.form.testId = '';
this.getMethodOptions();
this.getTestOptions()
},
getModuleOptions() {
@ -481,24 +483,15 @@ export default {
this.testOptions = response.data;
this.testOptions.unshift({id: 'other', name: this.$t('test_track.case.other')})
});
}
},
getMethodOptions() {
if (!this.form.type || this.form.type != 'functional') {
this.methodOptions = [
{value: 'auto', label: this.$t('test_track.case.auto')},
{value: 'manual', label: this.$t('test_track.case.manual')}
];
} else {
this.form.method = 'manual';
this.methodOptions = [{value: 'manual', label: this.$t('test_track.case.manual')}]
} else if (this.form.type === 'functional') {
this.testOptions = [{id: 'other', name: this.$t('test_track.case.other')}];
this.form.testId = 'other';
}
},
getSelectOptions() {
this.getModuleOptions();
this.getMaintainerOptions();
this.getTestOptions();
this.getMethodOptions();
},
buildNodePath(node, option, moduleOptions) {
//