fix(测试跟踪): 修复保存过测试报告配置的测试计划重新配置时无法配置误报和未执行tab的问题
--bug=1012724 --user=宋天阳 【测试跟踪】测试计划 - 报告统计,新增的误报和未执行tab没有配置统计开关 https://www.tapd.cn/55049933/s/1147640
This commit is contained in:
parent
5db3e0780f
commit
294ce2ce59
|
@ -152,10 +152,27 @@ export default {
|
|||
}
|
||||
},
|
||||
getDefaultConfig(report) {
|
||||
if (report && report.config) {
|
||||
if (report && report.config && report.config!== "") {
|
||||
let configStr = report.config;
|
||||
if (configStr) {
|
||||
return JSON.parse(configStr);
|
||||
let configObj = JSON.parse(configStr);
|
||||
if(configObj.api && configObj.api.children){
|
||||
if(!configObj.api.children.errorReport){
|
||||
let obj = {
|
||||
enable: true,
|
||||
name: this.$t('error_report_library.option.name'),
|
||||
};
|
||||
configObj.api.children.errorReport = obj;
|
||||
}
|
||||
if(!configObj.api.children.unExecute){
|
||||
let obj = {
|
||||
enable: true,
|
||||
name: this.$t('api_test.home_page.detail_card.unexecute'),
|
||||
};
|
||||
configObj.api.children.unExecute = obj;
|
||||
}
|
||||
}
|
||||
return configObj;
|
||||
}
|
||||
}
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue