Browse Source

优化

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

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

@ -28,7 +28,7 @@
:w="item.w" :w="item.w"
:h="item.h" :h="item.h"
:i="item.i" :i="item.i"
:key="index">
:key="index" @resize="sizeAutoChange(item)">
<component :is="item.compId" :xm-test-plan="xmTestPlan" :comp-cfg="item" :ref="item.id" @delete="doDelete"></component> <component :is="item.compId" :xm-test-plan="xmTestPlan" :comp-cfg="item" :ref="item.id" @delete="doDelete"></component>
</grid-item> </grid-item>
</grid-layout> </grid-layout>
@ -195,6 +195,14 @@ export default {
if(index>=0){ if(index>=0){
this.compCfgList.splice(index,1) this.compCfgList.splice(index,1)
} }
},
sizeAutoChange(k){
if(this.$refs[k.id] && this.$refs[k.id][0].$refs && this.$refs[k.id][0].$refs[k.id]){
this.$refs[k.id][0].$refs[k.id].sizeAutoChange();
}else{
this.$refs[k.id][0].sizeAutoChange();
}
} }
}, },

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

@ -221,6 +221,9 @@
if(this.compCfg && this.compCfg.params){ if(this.compCfg && this.compCfg.params){
Object.assign(this.filters,this.compCfg.params) Object.assign(this.filters,this.compCfg.params)
} }
},
sizeAutoChange(){
this.myChart.resize();
} }
},//end method },//end method
mounted() { mounted() {

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

@ -295,6 +295,9 @@
doDelete(){ doDelete(){
this.$emit("delete",this.compCfg) this.$emit("delete",this.compCfg)
}, },
sizeAutoChange(){
this.myChart.resize();
}
},//end method },//end method
mounted() { mounted() {
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','priority','bugRepRate','bugReason'] ).then(res=>{ initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','priority','bugRepRate','bugReason'] ).then(res=>{

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

@ -233,6 +233,9 @@
doDelete(){ doDelete(){
this.$emit("delete",this.compCfg) this.$emit("delete",this.compCfg)
}, },
sizeAutoChange(){
this.myChart.resize();
}
},//end method },//end method
mounted() { mounted() {
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','priority','bugRepRate','bugReason'] ).then(res=>{ initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','priority','bugRepRate','bugReason'] ).then(res=>{

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

@ -178,7 +178,10 @@
}, },
doDelete(){ doDelete(){
this.$emit("delete",this.compCfg) this.$emit("delete",this.compCfg)
},
},
sizeAutoChange(){
this.myChart.resize();
}
},//end method },//end method
mounted() { mounted() {
initSimpleDicts('all',['testPlanTcode'] ).then(res=>{ initSimpleDicts('all',['testPlanTcode'] ).then(res=>{

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

@ -172,7 +172,10 @@
}, },
doDelete(){ doDelete(){
this.$emit("delete",this.compCfg) this.$emit("delete",this.compCfg)
},
},
sizeAutoChange(){
this.myChart.resize();
}
},//end method },//end method
mounted() { mounted() {
initSimpleDicts('all',['testPlanTcode'] ).then(res=>{ initSimpleDicts('all',['testPlanTcode'] ).then(res=>{

Loading…
Cancel
Save