Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwell-mes
Project
Project
Details
Activity
Releases
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
gavelinfo
kwell-mes
Commits
d36d86fb
Commit
d36d86fb
authored
Sep 06, 2023
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kmesweb大屏调整
parent
699d0769
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
40 deletions
+36
-40
echarts.js
gavel/src/main/resources/static/js/dashboard/echarts.js
+5
-1
first.html
.../main/resources/templates/views/kmes/dashboard/first.html
+31
-39
No files found.
gavel/src/main/resources/static/js/dashboard/echarts.js
View file @
d36d86fb
...
...
@@ -3056,8 +3056,12 @@ function setRclHglEchart1 (chart, apidata1, apidata2) {
}
]
};
console
.
log
(
ops
)
console
.
log
(
'渲染合格率'
)
chart
.
setOption
(
ops
,
true
);
setTimeout
(()
=>
{
chart
.
resize
()
},
1000
)
}
...
...
gavel/src/main/resources/templates/views/kmes/dashboard/first.html
View file @
d36d86fb
...
...
@@ -305,32 +305,11 @@
</div>
<div
class=
"center-right fr"
style=
"padding-top: 0;"
>
<div
class=
"right-top rightTop border"
style=
"height: 3.175rem;margin-bottom: .2rem;"
>
<div
class=
"title"
>
月计划达成
</div>
<div
class=
"chart"
style=
"width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;"
>
<ul
style=
"width: 100%;height: 100%"
>
<!-- <li style="float: left;width: 50%;height: 100%;position: relative;overflow:hidden;">
<div style="position: absolute;top: 0;bottom: 0.4rem;left: 0;right: 0">
<div id="chartRjh" class="allnav"></div>
</div>
<div style="position: absolute;bottom: 0;right: 0;left: 0;text-align: center">
<div>周计划数:<span id="rjhs">100</span></div>
<div>周完工数:<span id="rwgs">80</span></div>
</div>
</li> -->
<li
style=
"float: left;width: 100%;height: 100%;position: relative;overflow:hidden;"
>
<div
style=
"position: absolute;top: 0;bottom: 0.4rem;left: 0;right: 0"
>
<div
id=
"chartYjh"
class=
"allnav"
></div>
</div>
<div
style=
"position: absolute;bottom: 0;right: 0;left: 0;text-align: center"
>
<div>
月计划数:
<span
id=
"yjhs"
>
3000
</span></div>
<div>
月完工数:
<span
id=
"ywgs"
>
2400
</span></div>
</div>
</li>
</ul>
</div>
<div
class=
"title"
>
合格率
</div>
<div
class=
"right-cen-cent"
style=
"height: 85%;"
>
<div
id=
"chartzzp"
class=
"allnav"
></div>
</div>
</div>
<div
class=
"right-cen border"
style=
"display: none;"
>
<div
class=
"title"
>
在制品状态
</div>
...
...
@@ -339,14 +318,23 @@
</div>
</div>
<div
class=
"right-cen border"
style=
"height: 3.175rem;margin-bottom: .2rem;"
>
<div
class=
"title"
>
合格率
</div>
<div
class=
"right-cen-cent"
>
<div
id=
"chartzzp"
class=
"allnav"
></div>
</div>
<!-- <div class="title">合格率</div>
<div class="chat" style="height: 3.1rem;">
<div id="chartRpcdcsj1" class="allnav"></div>
</div> -->
<div
class=
"title"
>
周计划达成
</div>
<div
class=
"chart"
style=
"width: calc(100% - 0.2rem);
height: 2.6rem;
margin-left: 0.1rem;
margin-top: 0.1rem;"
>
<ul
style=
"width: 100%;height: 100%"
>
<li
style=
"float: left;width: 100%;height: 100%;position: relative;overflow:hidden;"
>
<div
style=
"position: absolute;top: 0;bottom: 0.4rem;left: 0;right: 0"
>
<div
id=
"chartRjh"
class=
"allnav"
></div>
</div>
<div
style=
"position: absolute;bottom: 0;right: 0;left: 0;text-align: center"
>
<div>
周计划数:
<span
id=
"rjhs"
>
100
</span></div>
<div>
周完工数:
<span
id=
"rwgs"
>
80
</span></div>
</div>
</li>
</ul>
</div>
</div>
<div
class=
"right-bottom rightTop border"
style=
"height: 3.8rem;"
>
...
...
@@ -391,12 +379,14 @@
},
200
)
});
// var myChartSdcl = echarts.init(document.getElementById('chartSdcl'));
var
chartRjh
=
echarts
.
init
(
document
.
getElementById
(
"chartRjh"
));
setPieDailyChart
(
chartRjh
,
80
);
/*日计划*/
var
chartRpcdcsj
=
echarts
.
init
(
document
.
getElementById
(
"chartRpcdcsj"
),
null
,
{
renderer
:
'svg'
});
var
chartRpcdcsj1
=
echarts
.
init
(
document
.
getElementById
(
"chartzzp"
),
null
,
{
renderer
:
'svg'
});
var
chartHgl
=
echarts
.
init
(
document
.
getElementById
(
"chartHgl"
),
null
,
{
renderer
:
'svg'
});
// var chartRjh=echarts.init(document.getElementById("chartRjh"),null, {renderer: 'svg'});
var
chartYjh
=
echarts
.
init
(
document
.
getElementById
(
"chartYjh"
),
null
,
{
renderer
:
'svg'
});
//
var chartYjh=echarts.init(document.getElementById("chartYjh"),null, {renderer: 'svg'});
var
chartJdshCirle
=
echarts
.
init
(
document
.
getElementById
(
"chartJdshCirle"
),
null
,
{
renderer
:
'svg'
});
// var chartTzzp=echarts.init(document.getElementById("chartzzp"),null, {renderer: 'svg'});
// setproduceEchart(chartTzzp)
...
...
@@ -405,31 +395,33 @@
setRclHglEchart1
(
chartRpcdcsj1
);
// setHglEchart(chartHgl);/*合格率*/
// setPieDailyChart(chartRjh,80);
setPieDailyChart
(
chartYjh
,
80
);
//
setPieDailyChart(chartYjh,80);
// setproduceEchart(chartTzzp)
$
(
'.myscroll'
).
myScroll
({
speed
:
60
,
//数值越大,速度越慢
rowHeight
:
46
//li的高度
});
function
echartzsy
(){
chartRjh
.
resize
()
// chartTzzp.resize()
// myChartSdcl.resize()
chartRpcdcsj
.
resize
()
chartRpcdcsj1
.
resize
()
chartHgl
.
resize
()
// chartRjh.resize()
chartYjh
.
resize
()
//
chartYjh.resize()
chartJdshCirle
.
resize
()
}
/* 调用 */
function
getAlldata
(){
apisetPieDailyChart
(
chartRjh
)
apiqueryZscl
()
apiqueryOA
()
apigetscts
(
$
(
"#aqscts"
))
// apiCurProZtsl(chartTzzp)
apisetRpcHglEchart
(
chartRpcdcsj
,
'rcl'
)
apisetRpcHglEchart1
(
chartRpcdcsj1
,
'rcl'
)
apisetPieDailyCharty
(
chartYjh
)
//
apisetPieDailyCharty(chartYjh)
apisetHglEchart
(
chartHgl
)
apiqueryWo
()
apiqueryringpoint
(
chartJdshCirle
)
...
...
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