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]);