diff --git a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/ModuleMain.vue b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/ModuleMain.vue index bee65f7..d326b1b 100644 --- a/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/ModuleMain.vue +++ b/src/views/superFusionPlatform/mainPlatform/moduleAndLayout/ModuleMain.vue @@ -7,7 +7,7 @@ @@ -44,6 +44,39 @@ ModuleBase }, methods:{ + getModuleSize:function(index){ + let num = 0; + if (this.layout <= 2){ + num = index % 3; + }else if (this.layout === 3){ + num = index % 2; + }else{ + num = index % 4; + } + + switch (num) { + case 0: + if (this.layout <= 1 || this.layout === 4){ + return 'small' + }else{ + return 'large' + } + case 1: + if (this.layout === 1 || this.layout === 2 || this.layout === 4){ + return 'small' + }else{ + return 'large' + } + case 2: + if(this.layout === 1){ + return 'large' + }else{ + return 'small' + } + case 3: + return 'small' + } + }, getWidth:function(index){ let num = 0; if (this.layout <= 2){