From 1fb4c8e050af1afee2a4f71ed4b7149ce6240624 Mon Sep 17 00:00:00 2001 From: zhangds Date: Thu, 18 Aug 2022 10:59:49 +0800 Subject: [PATCH] =?UTF-8?q?1)=20=E4=BF=AE=E5=A4=8D=E8=90=A5=E9=94=80?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=97=B6=E9=97=B4=E4=B8=8D=E6=94=B9=E5=8F=98?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/add/step2.js | 2 +- src/pages/plan/keyList/index.jsx | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index 26b4459d..5cf0c806 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -539,7 +539,7 @@ export default class acclist extends React.Component { }; onDisabledRange = (date, type) => { - let step1 = JSON.parse(sessionStorage.getItem("step1")); + let step1 = JSON.parse(sessionStorage.getItem("knockGold_effectDate")); let isdisabled = false; let str = moment(date).format("YYYY-MM-DD HH:mm:ss"); if (type == "start") { diff --git a/src/pages/plan/keyList/index.jsx b/src/pages/plan/keyList/index.jsx index 0fded229..d9a41e2c 100644 --- a/src/pages/plan/keyList/index.jsx +++ b/src/pages/plan/keyList/index.jsx @@ -7,17 +7,11 @@ import _ from "lodash"; import { Button, Icon, - BlockLoading, Notify, Alert, - Switch, Dropdown, DropdownPosition, DropdownClickTrigger, - Input, - RadioGroup, - CombinedDateRangePicker, - Radio, MenuItem, DropdownContent, Menu, @@ -389,10 +383,10 @@ const UseKeyList = () => { let grantTotal = 0; let surplusTotal = 0; let usageTotal = 0; - let usage_total = 0; - let silent_total = 0; let invalidTotal = 0; let outdateTotal = 0; + // let usage_total = 0; + // let silent_total = 0; data.forEach((item) => { grantTotal += Number(item.total); surplusTotal += Number(item.residue); @@ -400,8 +394,8 @@ const UseKeyList = () => { outdateTotal += Number(item.overdue); invalidTotal += Number(item.invalid); - usage_total += Number(item.usage_total); - silent_total += Number(item.silent_total); + // usage_total += Number(item.usage_total); + // silent_total += Number(item.silent_total); }); setState({ grantTotal,