Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
91aa039b
Commit
91aa039b
authored
Dec 10, 2024
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 组态实时数据容错处理
parent
050b23ea
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
24 deletions
+12
-24
RealModel.js
...s/extend-components/EC_ConfigurationView/src/RealModel.js
+6
-12
configuration_custom.js
...mponents/EC_ConfigurationView/src/configuration_custom.js
+6
-12
No files found.
packages/extend-components/EC_ConfigurationView/src/RealModel.js
View file @
91aa039b
...
...
@@ -1198,13 +1198,9 @@ const ConfigurationView = (props) => {
const pvList = list.dataList.find((arr) => {
return arr.dName === item.shName;
});
if (!bindList || item.stationName !== bindList.name) return false;
if (
!pvList ||
pvList.pv === null ||
pvList.dName !== item.shName ||
item.realVal === pvList.pv
)
if (!bindList || !pvList) return false;
if (item.stationName !== bindList.name) return false;
if (pvList.pv === null || pvList.dName !== item.shName || item.realVal === pvList.pv)
return false;
item.realVal = pvList.pv * 1;
const shRule = ruleOperation(item, item.realVal);
...
...
@@ -1240,12 +1236,10 @@ const ConfigurationView = (props) => {
const pvList = list.dataList.find((arr) => {
return arr.dName === item.shName;
});
if (!bindList || item.stationName !== bindList.name) return false;
if (!bindList || !pvList) return false;
if (item.stationName !== bindList.name) return false;
if (
(!pvList ||
pvList.pv === null ||
pvList.dName !== item.shName ||
item.realVal === pvList.pv) &&
(pvList.pv === null || pvList.dName !== item.shName || item.realVal === pvList.pv) &&
pvList.dName !== item.stateName
)
return false;
...
...
packages/extend-components/EC_ConfigurationView/src/configuration_custom.js
View file @
91aa039b
...
...
@@ -1169,13 +1169,9 @@ const ConfigurationView = (props) => {
const pvList = list.dataList.find((arr) => {
return arr.dName === item.shName;
});
if (!bindList || item.stationName !== bindList.name) return false;
if (
!pvList ||
pvList.pv === null ||
pvList.dName !== item.shName ||
item.realVal === pvList.pv
)
if (!bindList || !pvList) return false;
if (item.stationName !== bindList.name) return false;
if (pvList.pv === null || pvList.dName !== item.shName || item.realVal === pvList.pv)
return false;
item.realVal = pvList.pv * 1;
const shRule = ruleOperation(item, item.realVal);
...
...
@@ -1211,12 +1207,10 @@ const ConfigurationView = (props) => {
const pvList = list.dataList.find((arr) => {
return arr.dName === item.shName;
});
if (!bindList || item.stationName !== bindList.name) return false;
if (!bindList || !pvList) return false;
if (item.stationName !== bindList.name) return false;
if (
(!pvList ||
pvList.pv === null ||
pvList.dName !== item.shName ||
item.realVal === pvList.pv) &&
(pvList.pv === null || pvList.dName !== item.shName || item.realVal === pvList.pv) &&
pvList.dName !== item.stateName
)
return false;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment