Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bi
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
张苑
bi
Commits
603b624b
Commit
603b624b
authored
Oct 13, 2021
by
莫坚培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改数值显示的默认颜色bug
parent
b7b5ca5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dashboard.js
js/dashboard.js
+3
-3
No files found.
js/dashboard.js
View file @
603b624b
...
@@ -459,7 +459,7 @@ async function initCanvas() {
...
@@ -459,7 +459,7 @@ async function initCanvas() {
</span>
</span>
</div>`
</div>`
renderDataText
(
index
)
//
renderDataText(index)
}
else
if
(
item
.
ControlType
===
'statictextblock'
)
{
//静态文本
}
else
if
(
item
.
ControlType
===
'statictextblock'
)
{
//静态文本
let
align
=
''
let
align
=
''
...
@@ -1575,10 +1575,10 @@ function loopRenderDatatextblock(poolData, resData, label) {
...
@@ -1575,10 +1575,10 @@ function loopRenderDatatextblock(poolData, resData, label) {
if
(
label
===
'datatextblock'
)
{
if
(
label
===
'datatextblock'
)
{
resDataValue
=
resDataValue
.
toFixed
(
Number
(
dight
))
resDataValue
=
resDataValue
.
toFixed
(
Number
(
dight
))
$
(
`#datatextblock
${
poolData
.
dataPoolMapIndex
}
`
).
text
(
resDataValue
)
$
(
`#datatextblock
${
poolData
.
dataPoolMapIndex
}
`
).
text
(
resDataValue
)
$
(
`#datatextblock
${
poolData
.
dataPoolMapIndex
}
`
).
css
(
'color'
,
'#000'
)
$
(
`#datatextblock
${
poolData
.
dataPoolMapIndex
}
`
).
css
(
'color'
,
poolData
.
PropertyList
?.
Color
||
'#000'
)
}
else
{
}
else
{
$
(
`#rwtextbox-text
${
poolData
.
dataPoolMapIndex
}
`
).
val
(
resDataValue
)
$
(
`#rwtextbox-text
${
poolData
.
dataPoolMapIndex
}
`
).
val
(
resDataValue
)
$
(
`#rwtextbox-text
${
poolData
.
dataPoolMapIndex
}
`
).
css
(
'color'
,
'#000'
)
$
(
`#rwtextbox-text
${
poolData
.
dataPoolMapIndex
}
`
).
css
(
'color'
,
poolData
.
PropertyList
?.
Color
||
'#000'
)
}
}
if
(
!
[
'number'
,
'string'
].
includes
(
typeof
resDataValue
))
{
if
(
!
[
'number'
,
'string'
].
includes
(
typeof
resDataValue
))
{
...
...
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