lilei 2 gadi atpakaļ
vecāks
revīzija
84c3cc483c
1 mainītis faili ar 5 papildinājumiem un 3 dzēšanām
  1. 5 3
      src/views/bigScreen/fPanalysisReport/index.vue

+ 5 - 3
src/views/bigScreen/fPanalysisReport/index.vue

@@ -21,7 +21,7 @@
     <div class="contetn_right">
       <ItemWrap
         class="contetn_right-top contetn_lr-item"
-        title="采购金额TOP100加盟商(2022年)"
+        :title="'采购金额TOP100加盟商('+curYear+'年)'"
         mode="left"
       >
         <div class="table-head">
@@ -34,7 +34,7 @@
       </ItemWrap>
       <ItemWrap
         class="contetn_right-bottom contetn_lr-bitem"
-        title="销售数量/金额TOP100产品(2022年)"
+        :title="'销售数量/金额TOP100产品('+curYear+'年)'"
         mode="left"
       >
         <div class="tab-panel">
@@ -74,7 +74,8 @@ export default {
     return {
       curTab: 1,
       jmsTotal: 0,
-      cpTotal: 0
+      cpTotal: 0,
+      curYear: ''
     }
   },
   filters: {
@@ -86,6 +87,7 @@ export default {
 	  this.$nextTick(() => {
 		  this.$tv.requestFocus(this.$refs.curTab2)
 	  })
+    this.curYear = new Date().getFullYear()
   },
   mounted () {},
   methods: {