fix(接口测试): 修复文档断言,表头复选框状态没有回显的缺陷
--bug=1025422 --user=王孝刚 【接口测试】文档结构断言-全选必含和类型校验字段-保存后再次查看-字段复选框未勾选 https://www.tapd.cn/55049933/s/1362839
This commit is contained in:
parent
8cff2e8379
commit
6ad094b8f6
|
@ -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==";
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue