fix(测试跟踪): 修复创建功能用例,自定义用例id,不输入id也能创建成功问题

--user=郭雨琦
--bug=1012739
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001012739
This commit is contained in:
guoyuqi 2022-04-26 11:24:22 +08:00 committed by fit2-zhao
parent d5ae5e5899
commit c924b5206e
1 changed files with 9 additions and 1 deletions

View File

@ -118,6 +118,11 @@ export default {
},
validateForm() {
let isValidate = true;
this.$refs['caseFrom'].validate((valid) => {
if (!valid) {
isValidate = false;
}
});
this.$refs['customFieldForm'].validate((valid) => {
if (!valid) {
isValidate = false;
@ -126,7 +131,10 @@ export default {
return isValidate;
},
getCustomFields() {
return this.$refs['customFieldForm'].fields;
let caseFromFields = this.$refs['caseFrom'].fields;
let customFields = this.$refs['customFieldForm'].fields;
Array.prototype.push.apply(caseFromFields, customFields);
return caseFromFields;
}
}
}