Browse Source

优化

master
陈裕财 3 years ago
parent
commit
6ade3bbeb6
  1. 4
      src/views/xm/core/xmTestPlan/rpt/CompsCard.vue
  2. 4
      src/views/xm/core/xmTestPlan/rpt/biz/questionAgeDist.vue
  3. 4
      src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue
  4. 4
      src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue
  5. 4
      src/views/xm/core/xmTestPlan/rpt/biz/testPlanCaseExecStatusDist.vue
  6. 4
      src/views/xm/core/xmTestPlan/rpt/biz/testPlanCaseUserDist.vue

4
src/views/xm/core/xmTestPlan/rpt/CompsCard.vue

@ -107,7 +107,7 @@ export default {
maxTableHeight:300,
//
initCompCfg: [
{ i:1, x: 0, y: 12, w: 12, h: 6, id:'xmQuestionAgeDist',name:'缺陷年龄分布',compId:'xmQuestionAgeDist', params:[] },
{ i:1, x: 0, y: 12, w: 12, h: 6, id:'xmQuestionAgeDist',name:'缺陷年龄分布',compId:'xmQuestionAgeDist', params:{} },
{ i: 2, x: 0, y: 12, w: 12, h: 6, id:'xmQuestionAttDist',name:'缺陷属性分布',compId:'xmQuestionAttDist', },
{ i: 3, x: 0, y: 12, w: 12, h: 6, id:'xmQuestionHandlerUserSort',name:'缺陷负责人排行榜',compId:'xmQuestionHandlerUserSort', },
{ i: 4, x: 0, y: 12, w: 12, h: 6, id:'xmQuestionAskUserSort',name:'缺陷提出人排行榜', compId:'xmQuestionAskUserSort', },
@ -141,7 +141,7 @@ export default {
}
},
onCompSelect(comp){
var compCfg={i:this.compCfgList.length+1, x: 0, y: 12, w: 12, h: 6, compId:comp.compId,name:comp.name,id:comp.compId+seq.sn(),params:[]}
var compCfg={i:this.compCfgList.length+1, x: 0, y: 12, w: 12, h: 6, compId:comp.compId,name:comp.name,id:comp.compId+seq.sn(),params:{}}
this.compCfgList.push(compCfg)
}

4
src/views/xm/core/xmTestPlan/rpt/biz/questionAgeDist.vue

@ -216,9 +216,7 @@
if(this.xmRptConfig && this.xmRptConfig.cfg){
var compCfg=this.xmRptConfig.cfg.find(k=>k.id==this.compCfg.id)
if(compCfg && compCfg.params){
compCfg.params.forEach(k=>{
this.filters[k.id]=k.value
})
Object.assign(this.filters,compCfg.params)
}
}
}

4
src/views/xm/core/xmTestPlan/rpt/biz/questionAttDist.vue

@ -289,9 +289,7 @@
if(this.xmRptConfig && this.xmRptConfig.cfg){
var compCfg=this.xmRptConfig.cfg.find(k=>k.id==this.compCfg.id)
if(compCfg && compCfg.params){
compCfg.params.forEach(k=>{
this.filters[k.id]=k.value
})
Object.assign(this.filters,compCfg.params)
}
}
}

4
src/views/xm/core/xmTestPlan/rpt/biz/questionSort.vue

@ -226,9 +226,7 @@
}
if(this.compCfg && this.compCfg.id){
if(this.compCfg && this.compCfg.params){
this.compCfg.params.forEach(k=>{
this.filters[k.id]=k.value
})
Object.assign(this.filters,compCfg.params)
}
}
}

4
src/views/xm/core/xmTestPlan/rpt/biz/testPlanCaseExecStatusDist.vue

@ -173,9 +173,7 @@
if(this.xmRptConfig && this.xmRptConfig.cfg){
var compCfg=this.xmRptConfig.cfg.find(k=>k.id==this.compCfg.id)
if(compCfg && compCfg.params){
compCfg.params.forEach(k=>{
this.filters[k.id]=k.value
})
Object.assign(this.filters,compCfg.params)
}
}
}

4
src/views/xm/core/xmTestPlan/rpt/biz/testPlanCaseUserDist.vue

@ -167,9 +167,7 @@
if(this.xmRptConfig && this.xmRptConfig.cfg){
var compCfg=this.xmRptConfig.cfg.find(k=>k.id==this.compCfg.id)
if(compCfg && compCfg.params){
compCfg.params.forEach(k=>{
this.filters[k.id]=k.value
})
Object.assign(this.filters,compCfg.params)
}
}
}

Loading…
Cancel
Save