fix(测试跟踪): 切换脑图用例数量统计问题
--bug=1023478 --user=宋昌昌 【测试跟踪】功能用例-切换到脑图模式-用例数量错误 https://www.tapd.cn/55049933/s/1341236
This commit is contained in:
parent
eb0e6deadc
commit
95f79d9b5a
|
@ -144,7 +144,7 @@ export default {
|
||||||
watch: {
|
watch: {
|
||||||
selectNode() {
|
selectNode() {
|
||||||
if (this.$refs.minder) {
|
if (this.$refs.minder) {
|
||||||
this.caseNum = this.selectNode.caseNum;
|
this.caseNum = this.selectNode.data.caseNum;
|
||||||
this.$refs.minder.handleNodeSelect(this.selectNode);
|
this.$refs.minder.handleNodeSelect(this.selectNode);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -160,7 +160,11 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.setIsChange(false);
|
this.setIsChange(false);
|
||||||
this.caseNum = this.treeNodes[0].caseNum;
|
let moduleNum = 0;
|
||||||
|
this.treeNodes.forEach(node => {
|
||||||
|
moduleNum += node.caseNum;
|
||||||
|
})
|
||||||
|
this.caseNum = moduleNum;
|
||||||
if (this.selectNode && this.selectNode.data) {
|
if (this.selectNode && this.selectNode.data) {
|
||||||
if (this.$refs.minder) {
|
if (this.$refs.minder) {
|
||||||
let importJson = this.$refs.minder.getImportJsonBySelectNode(this.selectNode.data);
|
let importJson = this.$refs.minder.getImportJsonBySelectNode(this.selectNode.data);
|
||||||
|
|
Loading…
Reference in New Issue