Ver Fonte

update generation chart size.

hare8999@163.com há 3 anos atrás
pai
commit
98d71d92c1

+ 2 - 2
mock/modules/elective-generation.js

@@ -1,9 +1,9 @@
 const Mock = require('mockjs')
 const Mock = require('mockjs')
 const Random = Mock['Random']
 const Random = Mock['Random']
 
 
-const mockGeneration = 5 // primary
+const mockGeneration = 8 // primary
 const mockGroups = [1, 2, 3, 4, 5, 6]
 const mockGroups = [1, 2, 3, 4, 5, 6]
-const mockPreferenceCount = 1 // 1 or 3 // 1志愿/3志愿
+const mockPreferenceCount = 3 // 1 or 3 // 1志愿/3志愿
 
 
 module.exports = [
 module.exports = [
   {
   {

+ 2 - 2
src/views/elective/generation/components/elective-generation-charts.vue

@@ -4,8 +4,8 @@
       <div class="fx-1">
       <div class="fx-1">
         <mx-chart ref="bar" :options="chartOptions.bar" :height="'450px'"></mx-chart>
         <mx-chart ref="bar" :options="chartOptions.bar" :height="'450px'"></mx-chart>
       </div>
       </div>
-      <div v-if="chartOptions.pie" class="fx-row fx-cen-cen" style="width: 400px">
-        <mx-chart ref="pie" :options="chartOptions.pie" :height="'400px'"></mx-chart>
+      <div v-if="chartOptions.pie" class="fx-row fx-cen-cen" style="width: 450px">
+        <mx-chart ref="pie" :options="chartOptions.pie" :height="'450px'"></mx-chart>
       </div>
       </div>
     </div>
     </div>
     <template v-if="chartOptions.pies&&chartOptions.pies.length">
     <template v-if="chartOptions.pies&&chartOptions.pies.length">