瀏覽代碼

Merge branch 'master' of http://git.keao.tech/SupplyChain/front

zhanglb 3 年之前
父節點
當前提交
5688387eea
共有 2 個文件被更改,包括 9 次插入3 次删除
  1. 3 0
      front-vue/src/components/HomeStatistics/index.vue
  2. 6 3
      front-vue/src/views/home.vue

+ 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

+ 6 - 3
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()
             //我开立的融信
@@ -1281,7 +1284,7 @@ export default {
         },
         //平台放款金额
         getAllLoanBalance() {
-            return accAdd(this.loanBalance, this.returnBalance, 2)
+           return  accAdd(accAdd(this.loanBalance, this.returnBalance, 2),this.loseEffectBalance,2)
         },
         //未融资金额
         getNotUseAmt() {