Sfoglia il codice sorgente

解决首页点击年度再点击其他页面,再回到首页数据是实时但是标签选中的是年度的问题
右边联动不影响左边还款的显示

xuefy 3 anni fa
parent
commit
d069dc79b4

+ 3 - 0
front-vue/src/components/HomeStatistics/index.vue

@@ -38,6 +38,9 @@ export default {
             label: ''
         }
     },
+    activated() {
+        this.label = this.options[0]?.label;
+    },
     methods: {
         clickHandler (item) {
             this.label = item.label

+ 5 - 2
front-vue/src/views/home.vue

@@ -293,7 +293,7 @@
                                 </div>
                             </div>
                         </el-col>
-                        <el-col :span="12" v-if="hxDateType != '00'">
+                        <el-col :span="12" v-if="defultValue != '00'">
                             <div class="zap-card">
                                 <div class="zap-card__title">还款金额(元)</div>
                                 <div class="zap-card__wrap zap-card__pink">
@@ -785,6 +785,8 @@ export default {
             dataList: [],
             yearDataList: [],
             monthDataList: [],
+            //融信统计默认实时
+            defultValue:'00',
             extraOption: {
                 legend: {
                     type: 'scroll',
@@ -892,7 +894,7 @@ export default {
         this.selectHome()
     },
     activated() {
-        this.selectHome()
+        this.selectHome();
     },
     mounted() {},
     methods: {
@@ -1082,6 +1084,7 @@ export default {
         },
         changeFxHxDateType(hxDateType) {
             this.hxDateType = hxDateType;
+            this.defultValue = hxDateType;
             //授信总额度
             this.listCreditLineAll()
             //我开立的融信