fix(UI 自动化): 报告修改UI配置显示后报告显示未生效

--bug=1016169 --user=张大海 【测试计划】关联UI场景用例和功能用例-报告修改UI配置显示后报告显示未生效 https://www.tapd.cn/55049933/s/1236733
This commit is contained in:
zhangdahai112 2022-08-31 16:24:12 +08:00 committed by zhangdahai112
parent 6862f72ea7
commit 94ae733d70
1 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<span v-if="config">
<div v-for="(item, index) in config" :key="index">
<el-checkbox v-model="item.enable" @change="click(item)">{{ item.name }}
<test-plan-report-config :config="item.children"/>
<test-plan-report-config :config="item.children" :father="config[index]"/>
</el-checkbox>
</div>
</span>
@ -11,7 +11,7 @@
<script>
export default {
name: "TestPlanReportConfig",
props: ['config'],
props: ['config', 'father'],
methods: {
click(item) {
if (item.children) {
@ -23,7 +23,11 @@ export default {
}
}
}
},
if (item.enable && this.father) {
this.father.enable = true;
}
}
}
}
</script>