fix(接口测试): 修复文档断言,表头复选框状态没有回显的缺陷

--bug=1025422 --user=王孝刚 【接口测试】文档结构断言-全选必含和类型校验字段-保存后再次查看-字段复选框未勾选
https://www.tapd.cn/55049933/s/1362839
This commit is contained in:
wxg0103 2023-04-14 14:16:57 +08:00 committed by fit2-zhao
parent 8cff2e8379
commit 6ad094b8f6
2 changed files with 16 additions and 0 deletions

View File

@ -25,6 +25,8 @@ public class Document {
private List<DocumentElement> json;
private List<DocumentElement> xml;
private String assertionName;
private boolean include = false;
private boolean typeVerification = false;
private static final String delimiter = "split==";

View File

@ -399,6 +399,12 @@ export default {
this.tableDataList(this.document.data.xml);
}
}
if (!this.document.data.include) {
this.document.data.include = false;
}
if (!this.document.data.typeVerification) {
this.document.data.typeVerification = false;
}
this.reload();
}
},
@ -454,6 +460,9 @@ export default {
on: {
change: this.handleCheckAllChange,
},
props: {
checked: this.document.data.include
},
}),
h(
'el-tooltip',
@ -481,6 +490,9 @@ export default {
on: {
change: this.handleType,
},
props: {
checked: this.document.data.typeVerification
},
}),
h(
'el-tooltip',
@ -534,6 +546,7 @@ export default {
}
},
handleCheckAllChange(val) {
this.document.data.include = val;
if (this.checked) {
return;
}
@ -558,6 +571,7 @@ export default {
});
},
handleType(val) {
this.document.data.typeVerification = val;
if (this.checked) {
return;
}