From 0f2fdf16f47bd2d1d8fee86449c3a5095ccc8c23 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 21 十月 2022 18:32:04 +0800
Subject: [PATCH] 首发版本 2022.10.21
---
pages/home/home.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/pages/home/home.js b/pages/home/home.js
index 09bf701..479c736 100644
--- a/pages/home/home.js
+++ b/pages/home/home.js
@@ -212,18 +212,28 @@
let monthInfo = {
totalMust: 0,
finishedMust: 0,
+ totalSelf: 0,
+ finishedSelf: 0
}
subtypes.forEach(s => {
//鏈堝害缁熻
if (s.needUpdate) {
monthInfo.totalMust++
+ //缁熻鑷贰鏌ョ被鍨嬬殑鍙拌处锛岀被鍒负-1锛堟殏瀹氾級
+ if (s.ledgerTypeId == -1) {
+ monthInfo.totalSelf++
+ }
if (s.upLoad) {
monthInfo.finishedMust++
+ if (s.ledgerTypeId == -1) {
+ monthInfo.finishedSelf++
+ }
}
}
});
monthInfo.percent = Math.round(monthInfo.finishedMust / monthInfo.totalMust * 100)
+ monthInfo.percent2 = Math.round(monthInfo.finishedSelf / monthInfo.totalSelf * 100)
this.setData({monthInfo})
},
--
Gitblit v1.9.3