@ -28,7 +28,7 @@
:w="item.w"
:h="item.h"
: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>
</grid-item>
</grid-layout>
@ -195,6 +195,14 @@ export default {
if(index>=0){
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();
@ -221,6 +221,9 @@
if(this.compCfg && this.compCfg.params){
Object.assign(this.filters,this.compCfg.params)
sizeAutoChange(){
this.myChart.resize();
},//end method
mounted() {
@ -295,6 +295,9 @@
doDelete(){
this.$emit("delete",this.compCfg)
initSimpleDicts('all',['bugSeverity','bugSolution','bugStatus','bugType','priority','bugRepRate','bugReason'] ).then(res=>{
@ -233,6 +233,9 @@
@ -178,7 +178,10 @@
initSimpleDicts('all',['testPlanTcode'] ).then(res=>{
@ -172,7 +172,10 @@