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
3d353831
Commit
3d353831
authored
May 10, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 千分增加千分分割
parent
0f1459f8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
HistoryModel.js
...xtend-components/EC_ConfigurationView/src/HistoryModel.js
+11
-2
RealModel.js
...s/extend-components/EC_ConfigurationView/src/RealModel.js
+11
-2
No files found.
packages/extend-components/EC_ConfigurationView/src/HistoryModel.js
View file @
3d353831
...
@@ -164,10 +164,19 @@ const ConfigurationView = (props) => {
...
@@ -164,10 +164,19 @@ const ConfigurationView = (props) => {
}
}
break
;
break
;
case
'valCase'
:
// 实时值模型
case
'valCase'
:
// 实时值模型
const
division
=
node
.
division
||
false
;
if
(
node
.
shType
===
'值显示'
)
{
if
(
node
.
shType
===
'值显示'
)
{
myDiagram
.
model
.
setDataProperty
(
node
,
'showVal'
,
realVal
<
0
?
0
:
realVal
);
myDiagram
.
model
.
setDataProperty
(
node
,
'showVal'
,
realVal
<
0
?
0
:
division
?
realVal
.
toLocaleString
()
:
realVal
,
);
}
else
{
}
else
{
myDiagram
.
model
.
setDataProperty
(
node
,
'showVal'
,
realVal
);
myDiagram
.
model
.
setDataProperty
(
node
,
'showVal'
,
division
?
realVal
.
toLocaleString
()
:
realVal
,
);
}
}
if
(
node
.
stateName
)
return
false
;
if
(
node
.
stateName
)
return
false
;
shRule
=
ruleOperation
(
node
,
realVal
);
shRule
=
ruleOperation
(
node
,
realVal
);
...
...
packages/extend-components/EC_ConfigurationView/src/RealModel.js
View file @
3d353831
...
@@ -193,10 +193,19 @@ const ConfigurationView = (props) => {
...
@@ -193,10 +193,19 @@ const ConfigurationView = (props) => {
}
}
break
;
break
;
case
'valCase'
:
// 实时值模型
case
'valCase'
:
// 实时值模型
const
division
=
node
.
division
||
false
;
if
(
node
.
shType
===
'值显示'
)
{
if
(
node
.
shType
===
'值显示'
)
{
myDiagram
.
model
.
setDataProperty
(
node
,
'showVal'
,
realVal
<
0
?
0
:
realVal
);
myDiagram
.
model
.
setDataProperty
(
node
,
'showVal'
,
realVal
<
0
?
0
:
division
?
realVal
.
toLocaleString
()
:
realVal
,
);
}
else
{
}
else
{
myDiagram
.
model
.
setDataProperty
(
node
,
'showVal'
,
realVal
);
myDiagram
.
model
.
setDataProperty
(
node
,
'showVal'
,
division
?
realVal
.
toLocaleString
()
:
realVal
,
);
}
}
// 颜色规则
// 颜色规则
if
(
node
.
stateName
)
return
false
;
if
(
node
.
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