blak-kong 2 years ago
parent 226f20392f
commit 6b6f060150

@ -1560,6 +1560,7 @@ class IotCarePlanFR200 extends Component<any, any> {
this.setFR200NursingHistory(jsonStatus);
}
};
// 改变模式时清空dataArray防止数据无限叠加
changeItemUpdateFR200NursingHistory() {
this.FR200NursingHistory = Taro.getStorageSync("FR200NursingHistory");
if (this.FR200NursingHistory) {
@ -1575,15 +1576,11 @@ class IotCarePlanFR200 extends Component<any, any> {
*/
rmFR200NursingHistory = (FR200NursingHistory, hard = false) => {
const nowFR200NursingHistory = Taro.getStorageSync("FR200NursingHistory");
Taro.setStorageSync("FR200Echart", nowFR200NursingHistory); // 临时保存用于观看和调试
if (nowFR200NursingHistory.id == FR200NursingHistory.id) {
Taro.removeStorageSync("FR200NursingHistory");
this.FR200NursingHistory.id = "";
} else if (hard) {
Taro.removeStorageSync("FR200NursingHistory");
this.FR200NursingHistory.id = "";
if (nowFR200NursingHistory) {
Taro.setStorageSync("FR200Echart", nowFR200NursingHistory); // 临时保存用于观看和调试
}
Taro.removeStorageSync("FR200NursingHistory");
};
todoPromise = () => {
@ -1598,7 +1595,7 @@ class IotCarePlanFR200 extends Component<any, any> {
PostNursingLogClock = async (data: any = null, isJump = true) => {
// todo 建议写一个Promise异步函数用 await 执行,在提交前处理好数据
return;
// return;
let { currentDevice, ActiveModeItem } = this.state;
let params = {};
if (data) {

Loading…
Cancel
Save