scorpio há 2 anos atrás
pai
commit
ec658249da
1 ficheiros alterados com 6 adições e 3 exclusões
  1. 6 3
      src/views/invest/index.vue

+ 6 - 3
src/views/invest/index.vue

@@ -15,12 +15,12 @@
             <div class='flex-child-average full-width flex flex-col flex-justify-start'>
               <span class='font-16 bold full-width text-left '>投资数据统计</span>
               <div class='full-width mt-10' style='background-color: #F7FAFD'>
-                <chart :dept-id='dept' :quarter='yearType === 0 ? "":yearType '/>
+                <chart :dept-id='dept' :quarter='yearType.value === 0 ? "":yearType '/>
               </div>
 
               <span class='font-16 bold full-width text-left mt-20'>项目入库统计</span>
               <div class='full-width mt-10' style='background-color: #F7FAFD'>
-                <chart2 :dept-id='dept' :quarter='yearType === 0 ? "":yearType '/>
+                <chart2 :dept-id='dept' :quarter='yearType.value === 0 || yearType === "0" ? "":yearType '/>
               </div>
             </div>
             <div class='white-bg padding'></div>
@@ -47,7 +47,9 @@ export default {
   components: { BasicContainer, left, years, amount, chart, chart2 },
   data () {
     return {
-      yearType: 0,
+      yearType: {
+        value: 0
+      },
       dept: null
     }
   },
@@ -61,6 +63,7 @@ export default {
     },
     change (index) {
       this.yearType = index
+      console.log(this.yearType)
     }
   }
 }