提交 e40ce931 编写于 作者: C chenjianxing

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

上级 6e72c03e
......@@ -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) {
//递归构建节点路径
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册