fix(测试跟踪): 功能用例名称超出限度后可以保存成功
--bug=1013750 --user=李玉号 【测试跟踪】标题长度为255字符,复制用例保存后,标题长度超过255 可以保存成功 https://www.tapd.cn/55049933/s/1172790
This commit is contained in:
parent
45052bba0f
commit
b88af68e1a
|
@ -14,7 +14,7 @@
|
||||||
v-model="form.name"
|
v-model="form.name"
|
||||||
size="small"
|
size="small"
|
||||||
class="ms-case-input"
|
class="ms-case-input"
|
||||||
maxlength="225"
|
maxlength="255"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
:disabled="readOnly"/>
|
:disabled="readOnly"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -130,6 +130,10 @@ export default {
|
||||||
isValidate = false;
|
isValidate = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
return isValidate;
|
||||||
|
},
|
||||||
|
validateCustomForm() {
|
||||||
|
let isValidate = true;
|
||||||
this.$refs['customFieldForm'].validate((valid) => {
|
this.$refs['customFieldForm'].validate((valid) => {
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
isValidate = false;
|
isValidate = false;
|
||||||
|
|
|
@ -1001,7 +1001,11 @@ export default {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
let customValidate = this.$refs.testCaseBaseInfo.validateForm();
|
let baseInfoValidate = this.$refs.testCaseBaseInfo.validateForm();
|
||||||
|
if (!baseInfoValidate) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
let customValidate = this.$refs.testCaseBaseInfo.validateCustomForm();
|
||||||
if (!customValidate) {
|
if (!customValidate) {
|
||||||
let customFieldFormFields = this.$refs.testCaseBaseInfo.getCustomFields();
|
let customFieldFormFields = this.$refs.testCaseBaseInfo.getCustomFields();
|
||||||
for (let i = 0; i < customFieldFormFields.length; i++) {
|
for (let i = 0; i < customFieldFormFields.length; i++) {
|
||||||
|
|
Loading…
Reference in New Issue