From 5075b9285c9aa76fc52c8052ba41b50fd6cc3c3c Mon Sep 17 00:00:00 2001 From: blak-kong <546598185@qq.com> Date: Wed, 20 Mar 2024 14:57:49 +0800 Subject: [PATCH] . --- src/moduleIOT/pages/iotCarePlan/FR200.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/moduleIOT/pages/iotCarePlan/FR200.tsx b/src/moduleIOT/pages/iotCarePlan/FR200.tsx index e5091bc..78d9547 100644 --- a/src/moduleIOT/pages/iotCarePlan/FR200.tsx +++ b/src/moduleIOT/pages/iotCarePlan/FR200.tsx @@ -367,6 +367,7 @@ class IotCarePlanFR200 extends Component { }); }; + // 获取模式列表 GetModeList = async (id) => { let params = { instrumentId: id, @@ -375,19 +376,18 @@ class IotCarePlanFR200 extends Component { if (res.data.code === 200) { if (res.data.data.length > 0) { this.setState({ - ActiveModeItem: res.data.data[0], ModeList: res.data.data, }); - if (this.state.activeModeID != "") { - this.state.ModeList.map((item) => { - if (item.id === this.state.activeModeID) { - this.setState({ - ActiveModeItem: item, - }); - } - }); - } + // if (this.state.activeModeID != "") { + // this.state.ModeList.map((item) => { + // if (item.id === this.state.activeModeID) { + // this.setState({ + // ActiveModeItem: item, + // }); + // } + // }); + // } setTimeout(() => { this.modeCurrentFun(res.data.data[0]);