Browse Source

(*) 跳转提示优化

master
liujiangyong 11 months ago
parent
commit
4dd47038c6
  1. 4
      web/client/src/sections/bigScreen/components/basis.js
  2. 4
      web/client/src/sections/bigScreen/components/capacity.js
  3. 5
      web/client/src/sections/bigScreen/components/electrical.js
  4. 4
      web/client/src/sections/bigScreen/components/realTime.js

4
web/client/src/sections/bigScreen/components/basis.js

@ -61,6 +61,10 @@ const Basis = ({ actions, dispatch, setshowData, siteList, siteData, waterLevelS
nextStructId = siteList[i].value;
break;
}
if (i === siteList.length - 1) {
setChangeable(true);
alert('泵站系统暂未接入此泵站');
}
}
}
setStrucId(nextStructId);

4
web/client/src/sections/bigScreen/components/capacity.js

@ -28,6 +28,10 @@ const Capacity = ({ actions, dispatch, siteList, capacity, waterLevelSix, curren
setChangeable(false);
break;
}
if (i === siteList.length - 1) {
setChangeable(true);
alert('泵站系统暂未接入此泵站');
}
}
}
setStrucId(nextStructId);

5
web/client/src/sections/bigScreen/components/electrical.js

@ -32,6 +32,11 @@ const Electrical = ({ dispatch, actions, siteList, waterLevelSix, currentSix, ca
setChangeable(false);
break;
}
if (i === siteList.length - 1) {
setChangeable(true);
alert('泵站系统暂未接入此泵站');
if (isMobile) wx.miniProgram.navigateBack();
}
}
}
setStrucId(nextStructId);

4
web/client/src/sections/bigScreen/components/realTime.js

@ -31,6 +31,10 @@ const RealTime = ({ dispatch, actions, user, siteList, }) => {
setChangeable(false);
break;
}
if (i === siteList.length - 1) {
setChangeable(true);
alert('泵站系统暂未接入此泵站');
}
}
}
setStrucId(nextStructId);

Loading…
Cancel
Save