Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
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
lihuizhen
ec-report-refactor
Commits
0166f522
Commit
0166f522
authored
Jan 26, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://106.15.103.105/lihuizhen/ec-report-refactor
into develop
parents
f94bf186
6bd466c2
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
89 additions
and
4 deletions
+89
-4
BarMixMap.vue
components/BarMixMap/BarMixMap.vue
+5
-0
BasicText.vue
components/BasicText/BasicText.vue
+5
-0
ChinaMap.vue
components/ChinaMap/ChinaMap.vue
+5
-0
DashboardProgress.vue
components/DashboardProgress/DashboardProgress.vue
+6
-1
HorizontalBar.vue
components/HorizontalBar/HorizontalBar.vue
+5
-0
LineMixBar.vue
components/LineMixBar/LineMixBar.vue
+6
-1
NormalBar.vue
components/NormalBar/NormalBar.vue
+5
-0
NormalGauge.vue
components/NormalGauge/NormalGauge.vue
+5
-0
NormalImage.vue
components/NormalImage/NormalImage.vue
+3
-0
NormalLine.vue
components/NormalLine/NormalLine.vue
+5
-0
NormalPie.vue
components/NormalPie/NormalPie.vue
+5
-0
NormalProgress.vue
components/NormalProgress/NormalProgress.vue
+7
-1
NormalRadar.vue
components/NormalRadar/NormalRadar.vue
+6
-1
NormalTable.vue
components/NormalTable/NormalTable.vue
+4
-0
NormalTabs.vue
components/NormalTabs/NormalTabs.vue
+4
-0
NumberScroll.vue
components/NumberScroll/NumberScroll.vue
+4
-0
RealTime.vue
components/RealTime/RealTime.vue
+5
-0
RemoteImage.vue
components/RemoteImage/RemoteImage.vue
+4
-0
No files found.
components/BarMixMap/BarMixMap.vue
View file @
0166f522
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
canvas-id=
"bar-mix-map-chart"
canvas-id=
"bar-mix-map-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -180,6 +181,10 @@
...
@@ -180,6 +181,10 @@
categories
,
categories
,
series
series
}
}
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/BasicText/BasicText.vue
View file @
0166f522
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
'text-align': elementInfo.option.title.left,
'text-align': elementInfo.option.title.left,
'animation-duration':`${elementInfo.marquee.speed ? elementInfo.marquee.speed : defaultSpeed}s`
'animation-duration':`${elementInfo.marquee.speed ? elementInfo.marquee.speed : defaultSpeed}s`
}"
}"
:font-size="getFontSize()"
>
>
{{
text
}}
{{
text
}}
</p>
</p>
...
@@ -29,6 +30,10 @@ export default {
...
@@ -29,6 +30,10 @@ export default {
methods
:
{
methods
:
{
initChart
()
{
initChart
()
{
this
.
text
=
this
.
elementData
.
dataList
.
text
||
this
.
elementInfo
.
option
.
title
.
text
this
.
text
=
this
.
elementData
.
dataList
.
text
||
this
.
elementInfo
.
option
.
title
.
text
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/ChinaMap/ChinaMap.vue
View file @
0166f522
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
canvas-id=
"china-map-chart"
canvas-id=
"china-map-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -157,6 +158,10 @@
...
@@ -157,6 +158,10 @@
}
}
}
}
return
res
return
res
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/DashboardProgress/DashboardProgress.vue
View file @
0166f522
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
ref=
"dashboardProgressCanvas"
ref=
"dashboardProgressCanvas"
canvas-id=
"dashboard-progress-chart"
canvas-id=
"dashboard-progress-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -143,6 +144,10 @@
...
@@ -143,6 +144,10 @@
return
chart
return
chart
})
})
})
})
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/HorizontalBar/HorizontalBar.vue
View file @
0166f522
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
canvas-id=
"horizontal-bar-chart"
canvas-id=
"horizontal-bar-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -79,6 +80,10 @@ export default {
...
@@ -79,6 +80,10 @@ export default {
return
{
...
item
,
...
config
}
return
{
...
item
,
...
config
}
})
})
return
newData
return
newData
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/LineMixBar/LineMixBar.vue
View file @
0166f522
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
ref=
"lineMixBarCanvas"
ref=
"lineMixBarCanvas"
canvas-id=
"line-mix-bar-chart"
canvas-id=
"line-mix-bar-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -106,6 +107,10 @@
...
@@ -106,6 +107,10 @@
}
}
})
})
return
newData
return
newData
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/NormalBar/NormalBar.vue
View file @
0166f522
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
canvas-id=
"normal-bar-chart"
canvas-id=
"normal-bar-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -79,6 +80,10 @@ export default {
...
@@ -79,6 +80,10 @@ export default {
return
{
...
item
,
...
config
}
return
{
...
item
,
...
config
}
})
})
return
newData
return
newData
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/NormalGauge/NormalGauge.vue
View file @
0166f522
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
canvas-id=
"normal-gauge-chart"
canvas-id=
"normal-gauge-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -62,6 +63,10 @@ export default {
...
@@ -62,6 +63,10 @@ export default {
return
chart
return
chart
})
})
})
})
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/NormalImage/NormalImage.vue
View file @
0166f522
...
@@ -48,6 +48,9 @@
...
@@ -48,6 +48,9 @@
},
},
onLoad
()
{
onLoad
()
{
},
methods
:
{
}
}
}
}
</
script
>
</
script
>
...
...
components/NormalLine/NormalLine.vue
View file @
0166f522
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
canvas-id=
"normal-line-chart"
canvas-id=
"normal-line-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -79,6 +80,10 @@ export default {
...
@@ -79,6 +80,10 @@ export default {
return
{
...
item
,
...
config
}
return
{
...
item
,
...
config
}
})
})
return
newData
return
newData
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/NormalPie/NormalPie.vue
View file @
0166f522
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
canvas-id=
"normal-pie-chart"
canvas-id=
"normal-pie-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -83,6 +84,10 @@ export default {
...
@@ -83,6 +84,10 @@ export default {
data
data
}]
}]
return
series
return
series
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/NormalProgress/NormalProgress.vue
View file @
0166f522
...
@@ -37,7 +37,13 @@ export default {
...
@@ -37,7 +37,13 @@ export default {
};
};
},
},
methods
:
{
methods
:
{
initChart
()
{}
initChart
()
{
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
</
script
>
</
script
>
...
...
components/NormalRadar/NormalRadar.vue
View file @
0166f522
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
ref=
"normalRadarCanvas"
ref=
"normalRadarCanvas"
canvas-id=
"normalra-dar-chart"
canvas-id=
"normalra-dar-chart"
:ec=
"ec"
:ec=
"ec"
:style=
"[elStyleObject]"
:style=
"[elStyleObject]"
:font-size=
"getFontSize()"
></uni-ec-canvas>
></uni-ec-canvas>
</view>
</view>
</
template
>
</
template
>
...
@@ -82,6 +83,10 @@
...
@@ -82,6 +83,10 @@
}
}
})
})
return
newData
return
newData
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/NormalTable/NormalTable.vue
View file @
0166f522
...
@@ -57,6 +57,10 @@
...
@@ -57,6 +57,10 @@
const
paramName
=
this
.
elementInfo
.
table
.
primaryKey
const
paramName
=
this
.
elementInfo
.
table
.
primaryKey
const
value
=
e
[
paramName
]
const
value
=
e
[
paramName
]
uni
.
$emit
(
'handleLinkParams'
,
{
index
,
paramName
,
value
:
value
})
uni
.
$emit
(
'handleLinkParams'
,
{
index
,
paramName
,
value
:
value
})
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/NormalTabs/NormalTabs.vue
View file @
0166f522
...
@@ -67,6 +67,10 @@
...
@@ -67,6 +67,10 @@
});
});
uni
.
$emit
(
'handleLinkComp'
,
{
showData
,
hideData
})
uni
.
$emit
(
'handleLinkComp'
,
{
showData
,
hideData
})
}
}
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
},
},
watch
:
{
watch
:
{
...
...
components/NumberScroll/NumberScroll.vue
View file @
0166f522
...
@@ -84,6 +84,10 @@
...
@@ -84,6 +84,10 @@
numberItemsClass
()
{
numberItemsClass
()
{
return
'numberItems-'
+
this
.
elementInfo
.
id
return
'numberItems-'
+
this
.
elementInfo
.
id
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
},
},
}
}
...
...
components/RealTime/RealTime.vue
View file @
0166f522
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
'font-weight': elementInfo.option.title.textStyle.fontWeight,
'font-weight': elementInfo.option.title.textStyle.fontWeight,
'text-align': elementInfo.option.title.left,
'text-align': elementInfo.option.title.left,
}"
}"
:font-size="getFontSize()"
>
>
{{
realTime
}}
{{
realTime
}}
</div>
</div>
...
@@ -36,6 +37,10 @@ export default {
...
@@ -36,6 +37,10 @@ export default {
this
.
timer
=
setInterval
(()
=>
{
this
.
timer
=
setInterval
(()
=>
{
this
.
realTime
=
this
.
$u
.
common
.
dateFormat
()
this
.
realTime
=
this
.
$u
.
common
.
dateFormat
()
},
1000
)
},
1000
)
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
}
...
...
components/RemoteImage/RemoteImage.vue
View file @
0166f522
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
:src=
"imageUrl"
:src=
"imageUrl"
width=
"100%"
width=
"100%"
:height=
"imageHeight"
:height=
"imageHeight"
:font-size=
"getFontSize()"
></u-image>
></u-image>
</view>
</view>
</
template
>
</
template
>
...
@@ -36,6 +37,9 @@
...
@@ -36,6 +37,9 @@
})
})
},
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
}
}
}
}
</
script
>
</
script
>
...
...
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