From f464d55b19ab17d1be266656be4a4b0eed239b62 Mon Sep 17 00:00:00 2001 From: wenjy Date: Fri, 10 Jun 2022 17:43:39 +0800 Subject: [PATCH] =?UTF-8?q?add=20-=20=E9=97=A8=E4=BD=93=E5=BA=93=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/StorageController.java | 48 +- .../controller/FoamBoxController.class | Bin 5238 -> 0 bytes .../controller/StorageController.class | Bin 1680 -> 2567 bytes .../FoamBoxDevice/FoamBoxLineRunStatus.class | Bin 3025 -> 0 bytes .../FoamBoxMachineRunStatus.class | Bin 3561 -> 0 bytes .../FoamBoxParamTemperature.class | Bin 4311 -> 0 bytes .../mapper/FoamBoxLineRunStatusMapper.class | Bin 451 -> 0 bytes .../FoamBoxMachineRunStatusMapper.class | Bin 460 -> 0 bytes .../FoamBoxParamTemperatureMapper.class | Bin 460 -> 0 bytes .../service/IFoamBoxDeviceInfoService.class | Bin 341 -> 0 bytes .../impl/FoamBoxDeviceInfoServiceImpl.class | Bin 10765 -> 0 bytes .../static/js/common/echarts.common.js | 2376 ----------------- .../target/classes/static/js/foamBox/index.js | 149 -- 13 files changed, 47 insertions(+), 2526 deletions(-) delete mode 100644 productionboard/target/classes/com/productionboard/controller/FoamBoxController.class delete mode 100644 productionboard/target/classes/com/productionboard/entity/FoamBoxDevice/FoamBoxLineRunStatus.class delete mode 100644 productionboard/target/classes/com/productionboard/entity/FoamBoxDevice/FoamBoxMachineRunStatus.class delete mode 100644 productionboard/target/classes/com/productionboard/entity/FoamBoxDevice/FoamBoxParamTemperature.class delete mode 100644 productionboard/target/classes/com/productionboard/mapper/FoamBoxLineRunStatusMapper.class delete mode 100644 productionboard/target/classes/com/productionboard/mapper/FoamBoxMachineRunStatusMapper.class delete mode 100644 productionboard/target/classes/com/productionboard/mapper/FoamBoxParamTemperatureMapper.class delete mode 100644 productionboard/target/classes/com/productionboard/service/IFoamBoxDeviceInfoService.class delete mode 100644 productionboard/target/classes/com/productionboard/service/impl/FoamBoxDeviceInfoServiceImpl.class delete mode 100644 productionboard/target/classes/static/js/common/echarts.common.js delete mode 100644 productionboard/target/classes/static/js/foamBox/index.js diff --git a/productionboard/src/main/java/com/productionboard/controller/StorageController.java b/productionboard/src/main/java/com/productionboard/controller/StorageController.java index 65bc498..762246d 100644 --- a/productionboard/src/main/java/com/productionboard/controller/StorageController.java +++ b/productionboard/src/main/java/com/productionboard/controller/StorageController.java @@ -1,8 +1,10 @@ package com.productionboard.controller; import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; /** @@ -15,9 +17,27 @@ import org.springframework.web.bind.annotation.ResponseBody; public class StorageController { private String prefix = "storage/index"; + /** + * 0:南线、1:北线 + * @author WenJY + * @date 2022-06-10 17:36 + * @param id + * @param mmap + * @return java.lang.String + */ @GetMapping() - public String index() + public String index(@RequestParam("id") int id, ModelMap mmap) { + switch (id) { + case 0: + mmap.put("positionId",0); + break; + case 1: + mmap.put("positionId",1); + break; + default: + break; + } return prefix; } @@ -74,4 +94,30 @@ public class StorageController { return info; } + + /** + * 库存统计 + * @param ids + * @return + */ + @GetMapping("/getStoreStatistics") + @ResponseBody + public String getStoreStatistics(String ids){ + + return null; + } + + /** + * 参数 + * @author WenJY + * @date 2022-06-10 17:39 + * @param ids + * @return java.lang.String + */ + @GetMapping("/getStoreStatistics") + @ResponseBody + public String getParamJson(String ids){ + + return null; + } } diff --git a/productionboard/target/classes/com/productionboard/controller/FoamBoxController.class b/productionboard/target/classes/com/productionboard/controller/FoamBoxController.class deleted file mode 100644 index f34c1b92222f5865b15807080a30000bccf18e71..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5238 zcmb_fTXPfV8Gcr>k&xE}8*sv*#3+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ff --git a/productionboard/target/classes/com/productionboard/entity/FoamBoxDevice/FoamBoxMachineRunStatus.class b/productionboard/target/classes/com/productionboard/entity/FoamBoxDevice/FoamBoxMachineRunStatus.class deleted file mode 100644 index 3bf64a5a0c7c8379c8ca6e34378ee68dd42ace93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3561 zcmb_d+i%-s6#u!kV<%0sH0xy<9duiPUYD(m!P2qyzIF7*k`*>Cott=#J16cEXJUwF z#1j%vNJzXg3GD$U=p>L3ybOuIi7|ek?W9TSNtKwCeBbdozjJ)<{`=owe+O_D)d-H@ zW*FW0P#hnL<707rqGBV05N>L?C2l=J=B9?6xbqqeao^UkCGLVim>RaleMf~Qm_=c_ zBo14}j*7byw7hZ8%o&S$35lg`{hpq(^wL%;T|q z-7)P_MZ)Q&oLx+9>UPo0+tpO@{w5`r9jjVN>2+Kxt5a{mG^{+$Dfe`%YVfsl^XrSV z^NVv5Iz10EG+V8l;j<^oWT&&&Gvc{XKG7oQb4Sj$EF7|6Y7ev)Dt<;?E7<^~P z?CR3e{A@P6xI8Z*bipi{&P56BL&NJ5BTAB+AjW1ju+W)@c7ZF!{*>DPWeoZgyMZ+=5 z%vZer=DjFdSRx9tnxe@1F75^KLLAf_+iPz&gK@X2TlBD}F&nF!+w7;w;hPd9yLm2r z5gXZd3PzdTC^}-$Yf(|hn9FZqBpLwq=nprd>fHTMW+ebhZrrun)cIYW%_d$aZRhSR z>pO1$atmkYHQHkOdQY^vPfXDYULE-5D z{sj4F1V1)5(2y5$C-8=_$NWmeQA`TVlvt?$XRk!D1e(4ej%BRS%e`p5-sP%sS*D%J z7+h|a`I%U7thT$VD)%FXHQ@~2@7o4Pk)!i?64V`4N8F&u!Eh*j-Z)M~$q@PH%VT5PM zWyUc|I_d#1hH*YgqS`#0m48Otk1fi5fy!)&0Oj^p<)eYh?3(~(xmEdCpfcMlKv`*3 z9tc!Ei#M4W5%VPPHs0#U=r3p+X;t@9*6Tt1lo9OL^&Axyi4SqQ@>a0T_5<7WTEe$E z;M#mU*rt47n_f5hHcz-V&m$cayK-QgUL*Q82VI+-Zoe4Yv@IHN>NkXLJcgRkb`c)g zMTA$P!=s~u?)2!GpbvR;d>37b1nFHI4lab(yHoYvS z-SMKSx7;IK#3g372j5|elPmVYSC}SG=zfVAQZg>%4rWOy+>Qq3NQGcw0rR9(F5@ZE zm!RQmuBpqU!uW>k<_f6@7U{=198$G^5L0pWDSB1B%bzAa#SxDTKZm5AI|vuq46<0! zUQuwK4vXPZL^VX5joZkJ(;F?N9;ZSdMV!9HDYw12>dE4`N?*`~N<%yG$qVv3ZZZ4g zlLeMii;q5lI=+j(TY?`=%R-QpeTgOt?1^G&#TBu(u9B8iYNB{LNrl|x{{Zb788VYE zNlZ8-=@}LGp4$YY2TBc4!^q7n9~NqW?IByaK3HuA@8JUkRAFT6ZaLqtf7?D_-2ArP F_zw=8$<+V= diff --git a/productionboard/target/classes/com/productionboard/entity/FoamBoxDevice/FoamBoxParamTemperature.class b/productionboard/target/classes/com/productionboard/entity/FoamBoxDevice/FoamBoxParamTemperature.class deleted file mode 100644 index bec0a0142c25d8f1393953450176c23540b849b5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4311 zcmb_e+jARd75}Zgt6j;mA`9E8(zGP4oBA5H;Vvg3i7%~N`O?^!v=q{{w8Wc8T31?y zrrcYgrCbV6bQoS3W}27G05jB`DNF}m$_$S@F~bv2{1YkVclKM|w=-twjQySSo!j@F z^Zm|Q{p~;RybIuycs+^xQA^+$JX!W-d0v*fEDc$F6U`(n)GXW-`n4p5FIc!G^hFC_ z7y1ng-xT^S3*Q#{9Sh$T`jU9OY~g!Czi;9PB78*-eN~npnt08`k2F|i=cZe7R?8Z) z#q0J>J72MD*YaC_-K||)(2%>_tod%$*>M~0ZpFD+t9icdyI!rK;gMp=tLArYuj-b) zX1;oBmzu_YrP;{aZM*!oO}`b_sgxPcxM^3K4v$@0-dSB-UR~0lyAAJAlGUvZ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3_*odsr!?ls-#Ag(XNug+DMhci0c9T`FU6Hk4bAK z80gK+!dd-X0IK7eg*`&b%FNz|Ie&oro)dYxpo=1>hZ;+Orc{}N5vYiC1(WBd5v5gKEK?1J}5Np z0|x8tVy4)9j|Cz=$MFd?D&4Dn(nOf S^#G7J+P}yud;|U>tNs^L>K=dq diff --git a/productionboard/target/classes/com/productionboard/mapper/FoamBoxLineRunStatusMapper.class b/productionboard/target/classes/com/productionboard/mapper/FoamBoxLineRunStatusMapper.class deleted file mode 100644 index 31a7954a3e3697f9cc2b77c55992b9acfb255758..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 451 zcmb7Bu};G<5Iq-2XaR|piH(t4U`DIBG6tYBQ2+EMHSD|pQpv?OfE)i^H~tYemIZ?PnA zP33#EtCFJW+NSSN`@m?aZ8_kSI(`_+n*q=UU-dc~?@CXhLUz%_70x`_seifWrP2I- z%Z=m5-W5?qblGjDU{d%#Xr7ryG@WljzuGojmus~O&IBEe-Cws|SzH#e)zLEYed-!GQP4W{6v|yJ52__6z(c4}O3jB~H_d zkb~f1XJ*-%_ujny{CfWYfEzeVV4A>50;dWlxv3n*F0g{PY(;Crnp}m;V#PY9nf4Y7 z^465TL%S&`nzpIC7PSwImYRkG&Zy-@U*7ctP4H!>qw%ir6iQ?lP2Awzlb!k3M_wDv zKeq+x7vuP;b9odUZF-+7nC894<(M^ P2*!O*;8^ll-X{Rxo8Oen diff --git a/productionboard/target/classes/com/productionboard/mapper/FoamBoxParamTemperatureMapper.class b/productionboard/target/classes/com/productionboard/mapper/FoamBoxParamTemperatureMapper.class deleted file mode 100644 index cfdd3e1239391c92bd2b0f640800251b7cf65cd0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 460 zcmb7By-ve05Iz@3XaR|pm4T647?6UHs8FXM5Jl`4=M-GUzQ}PZ`UJca0}sGMA>6bG zDFYIN@6PhweLw#Edj9}`3ph$)lEOg>hYH4XQ#lHqX9aKhf|i6exeD)#1?!OIS}YbM z)|AqrT@@5e+tgi)T0EnrreTj$YWc1&ulj+;OWEmQ#1%rmM0UZ170!h0R9|k@VjK7LG_vbV!DKF-*E}nB?=Ub;@OG61TpT$ID$P$ O`kcak%t?G71AGI@nUwwj diff --git a/productionboard/target/classes/com/productionboard/service/IFoamBoxDeviceInfoService.class b/productionboard/target/classes/com/productionboard/service/IFoamBoxDeviceInfoService.class deleted file mode 100644 index b923d6d545c4b1c97aea5bf33df108fa949780f8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 341 zcmZ{g%}PTt5QR_rcePd!x_2qMF&kaE6Dbs0lwMyTO~z}=y_u3G#b%)-nMsAhqCa8zEZQKC~G6_>6CNr{?LBOIa(U|S|pd_5u4_bKb~mqEset) zmlSvH?JknSz2!zPBfD&q=P+jzonGxF`d_m|{k`aUz95@=3JNXx1JLeBZggbs%G6cp R0fLHSbaH^iaw?V<`rqYMSmpo# diff --git a/productionboard/target/classes/com/productionboard/service/impl/FoamBoxDeviceInfoServiceImpl.class b/productionboard/target/classes/com/productionboard/service/impl/FoamBoxDeviceInfoServiceImpl.class deleted file mode 100644 index ba46e7887155f836ae6fbbd6934146eea2620a4c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10765 zcmeHNdz=*2mHtjucUMhM!3+%pHXs7>X0V6X2s5ZWN5%|@HiD=z_RKWU(9=D1_XxPz zjV5S}F=*8I3K~V%agA=!O$L#~_=@kxYRqahZdeVz@-Uc0#Rrq`R#o?OHw_M$-|jy< zKdS27d(S=h+;h%7kJ~)C@4ov1Op}ZsZFtbYLna>fL&GCwh~pOq9#!AR%JDd!Fz}=w zWq8mJAD%MtwE8|{;#m{VnfOmN^t_1|6#g&E@gklm#{&FHz5dI5 z*Q*A8X&@xJ2qF9!bV$1J?B82(#1 zK5!WRFhFs9R*rq>_6tM^iDrl%fZ#JjyndW0K2r=+OjF8C@tabv`YcLA`k2z!lnPTS zxozpEUI8`O-;@ESR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*Gff2g*9vf|MsGaGpF>_efiX{XVm#bPR@&j zm40 { - - let mycharts = echarts.init(ids); - const xValue = res.map(val => val.xValue) - const yValue = res.map(val => val.yValue) - - //参考:https://www.makeapie.com/editor.html?c=xqjNqqjc_U - let seriesName = "产量"; - - let attackSourcesColor = [ - new echarts.graphic.LinearGradient(0, 1, 1, 1, [ - { offset: 0, color: "#EB3B5A" }, - { offset: 1, color: "#FE9C5A" }, - ]), - new echarts.graphic.LinearGradient(0, 1, 1, 1, [ - { offset: 0, color: "#FA8231" }, - { offset: 1, color: "#FFD14C" }, - ]), - new echarts.graphic.LinearGradient(0, 1, 1, 1, [ - { offset: 0, color: "#F7B731" }, - { offset: 1, color: "#FFEE96" }, - ]), - new echarts.graphic.LinearGradient(0, 1, 1, 1, [ - { offset: 0, color: "#395CFE" }, - { offset: 1, color: "#2EC7CF" }, - ]), - ]; - let attackSourcesColor1 = [ - "#EB3B5A", - "#FA8231", - "#F7B731", - "#3860FC", - "#1089E7", - "#F57474", - "#56D0E3", - "#1089E7", - "#F57474", - "#1089E7", - "#F57474", - "#F57474", - ]; - let stationData = []; - let values = []; - - // res.forEach(function (it, index) { - // stationData.push(it.station); - // values.push(it.value); - // }); - - function dataFormat(data) { - let arr = []; - data.forEach(function (item, i) { - let itemStyle = { - color: i > 3 ? attackSourcesColor[3] : attackSourcesColor[i], - }; - arr.push({ - value: item, - itemStyle: itemStyle, - }); - }); - return arr; - } - - let option = { - tooltip: { - trigger: "axis", - axisPointer: { - type: "shadow", - }, - }, - grid: { - top: "9%", - left: "-9%", - right: "4%", - bottom: "3%", - containLabel: true, - }, - xAxis: { - type: "value", - splitLine: { - show: false, - }, - axisLabel: { - show: false, - }, - axisTick: { - show: false, - }, - axisLine: { - show: false, - }, - }, - yAxis: [ - { - type: "category", - inverse: true, - axisLine: { - show: false, - }, - axisTick: { - show: false, - }, - data: xValue, - axisLabel: { - margin: 30, - fontSize: 10, - align: "left", - padding: [2, 0, 0, 0], - color: "#000", - - formatter: function (value, index) { - - }, - }, - }, - { - type: "category", - inverse: true, - axisTick: "none", - axisLine: "none", - show: true, - axisLabel: { - textStyle: { - color: "#A8A6AB", - fontSize: "12", - }, - }, - data: dataFormat(yValue), - }, - - { - type: "category", - inverse: true, - offset: -10, - position: "left", - axisTick: "none", - axisLine: "none", - show: true, - axisLabel: { - interval: 0, - color: ["#A8A6AB"], - align: "left", - verticalAlign: "bottom", - lineHeight: 32, - fontSize: 12, - }, - data: dataFormat(xValue), - }, - ], - series: [ - { - zlevel: 1, - name: seriesName, - type: "bar", - barWidth: 15, - data: dataFormat(yValue), - align: "center", - itemStyle: { - normal: { - barBorderRadius: 10, - }, - }, - label: { - show: false, - fontSize: 12, - color: "#A8A6AB", - textBorderWidth: 2, - padding: [2, 0, 0, 0], - }, - }, - { - name: seriesName, - type: "bar", - barWidth: 15, - barGap: "-100%", - data: res.plan, - itemStyle: { - normal: { - color: "#05325F", - //width:"100%", - fontSize: 12, - barBorderRadius: 30, - }, - }, - }, - ], - }; - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - -//折线面积图 -const brokenLineAreaDiagram = (res, ids) => { - const xValue = res.map(val => val.xValue) - const yValue = res.map(val => val.yValue) - let mycharts = echarts.init(ids); - - let option = { - tooltip: {}, - grid: { - top: "15%", - left: "1%", - right: "1%", - bottom: "8%", - containLabel: true, - }, - legend: { - itemGap: 50, - data: ["人员出入总数"], - textStyle: { - color: "#f9f9f9", - borderColor: "#fff", - }, - }, - xAxis: [ - { - type: "category", - boundaryGap: true, - axisLine: { - //坐标轴轴线相关设置。数学上的x轴 - show: true, - lineStyle: { - color: "#2A3852", - }, - }, - axisLabel: { - //坐标轴刻度标签的相关设置 - textStyle: { - color: "#A8A6AB", - margin: 15, - }, - }, - axisTick: { - show: false, - }, - data: xValue, - }, - ], - yAxis: [ - { - type: "value", - min: 0, - // max: 140, - splitNumber: 7, - splitLine: { - show: false, - lineStyle: { - color: "#0a3256", - }, - }, - axisLine: { - show: false, - }, - axisLabel: { - show: false, - margin: 20, - textStyle: { - color: "#A8A6AB", - }, - }, - axisTick: { - show: false, - }, - }, - ], - series: [ - { - name: "小时产量", - type: "line", - smooth: false, //是否平滑曲线显示 - showAllSymbol: true, - symbol: "emptyCircle", - symbolSize: 6, - lineStyle: { - normal: { - color: "#13D064", // 线条颜色 - }, - borderColor: "#f0f", - }, - label: { - show: true, - position: "top", - textStyle: { - color: "#28ffb3", - }, - }, - itemStyle: { - normal: { - color: "#28ffb3", - }, - }, - tooltip: { - show: false, - }, - areaStyle: { - //区域填充样式 - normal: { - //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。 - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "rgba(19,208,100,1)", - }, - { - offset: 1, - color: "rgba(0,0,0, 0)", - }, - ], - false - ), - shadowColor: "rgba(53,142,215, 0.9)", //阴影颜色 - shadowBlur: 20, //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。 - }, - }, - data: yValue, - } - ], - }; - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - -//立体柱状图 -const threeDimensionalCylindrical = (res, ids) => { - let mycharts = echarts.init(ids); - const xValue = res.map(val => val.materialName) - const yValue = res.map(val => val.lineStoreAmount) - - let barTopColor = ["#02c3f1"]; - let barBottomColor = [ - "rgba(2,195,241,0.1)", - ]; - let option = { - - grid: { - top: "25%", - bottom: "25%", - }, - xAxis: { - data: xValue, - axisTick: { - show: false, - }, - axisLine: { - show: false, - }, - axisLabel: { - show: true, - margin: 25, - align: "center", - textStyle: { - fontSize: 14, - color: "#A8A6AB", - rich: { - a: { - fontSize: 12, - color: "#ffffff", - }, - b: { - height: 20, - fontSize: 14, - color: "#ffffff", - }, - }, - }, - }, - interval: 0, - }, - yAxis: { - splitLine: { - show: false, - }, - axisTick: { - show: false, - }, - axisLine: { - show: false, - }, - axisLabel: { - show: false, - }, - }, - series: [ - { - name: "柱顶部", - type: "pictorialBar", - symbolSize: [26, 10], - symbolOffset: [0, -5], - z: 12, - itemStyle: { - normal: { - color: function (params) { - return barTopColor[0]; - }, - }, - }, - label: { - show: true, - position: "top", - textStyle: { - color: "#02C3F1", - }, - }, - symbolPosition: "end", - data: yValue, - }, - { - name: "柱底部", - type: "pictorialBar", - symbolSize: [26, 10], - symbolOffset: [0, 5], - z: 12, - itemStyle: { - normal: { - color: function (params) { - return barTopColor[0]; - }, - }, - }, - data: yValue, - }, - { - name: "第一圈", - type: "pictorialBar", - symbolSize: [47, 16], - symbolOffset: [0, 11], - z: 11, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 4, - }, - }, - data: [yValue[0], "", ""], - }, - { - name: "第一圈", - type: "pictorialBar", - symbolSize: [47, 16], - symbolOffset: [0, 11], - z: 11, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 4, - }, - }, - data: ["", yValue[1], ""], - }, - { - name: "第一圈", - type: "pictorialBar", - symbolSize: [47, 16], - symbolOffset: [0, 11], - z: 11, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 4, - }, - }, - data: ["", "", yValue[2]], - }, - { - name: "第二圈", - type: "pictorialBar", - symbolSize: [62, 22], - symbolOffset: [0, 17], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 4, - }, - }, - data: [yValue[0], "", ""], - }, - { - name: "第二圈", - type: "pictorialBar", - symbolSize: [62, 22], - symbolOffset: [0, 17], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 4, - }, - }, - data: ["", yValue[1], ""], - }, - { - name: "第二圈", - type: "pictorialBar", - symbolSize: [62, 22], - symbolOffset: [0, 17], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 4, - }, - }, - data: ["", "", yValue[2]], - }, - - { - type: "bar", - itemStyle: { - normal: { - color: function (params) { - return new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 1, - color: barTopColor[0], - }, - { - offset: 0, - color: barBottomColor[0], - }, - ]); - }, - opacity: 0.8, - }, - }, - z: 16, - silent: true, - barWidth: 26, - barGap: "-100%", // Make series be overlap - data: yValue, - }, - ], - }; - - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - -//多个折线面积图 -const multipleBrokenLineAreaDiagram = (res, ids) => { - let mycharts = echarts.init(ids); - console.log(res); - - let option = { - tooltip: { - trigger: "axis", - axisPointer: { - lineStyle: { - color: "#57617B", - }, - }, - }, - legend: { - icon: "rect", - itemWidth: 14, - itemHeight: 5, - itemGap: 13, - data: ["1#ISO温度", "1#POL温度", "2#ISO温度", "2#POL温度"], - left: "4%", - textStyle: { - fontSize: 12, - color: "#F1F1F3", - }, - }, - grid: { - left: "3%", - right: "4%", - bottom: "3%", - containLabel: true, - }, - xAxis: [ - { - type: "category", - boundaryGap: false, - axisLine: { - lineStyle: { - color: "#57617B", - }, - }, - data: res.xAxisArray, - }, - ], - yAxis: [ - { - type: "value", - axisTick: { - show: false, - }, - axisLine: { - lineStyle: { - color: "#57617B", - }, - }, - axisLabel: { - margin: 10, - textStyle: { - fontSize: 14, - }, - }, - splitLine: { - show: false, - lineStyle: { - color: "#57617B", - }, - }, - }, - ], - series: [ - { - name: "1#ISO温度", - type: "line", - smooth: false, - lineStyle: { - normal: { - width: 1, - }, - }, - areaStyle: { - normal: { - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "rgba(137, 189, 27, 0.3)", - }, - { - offset: 0.8, - color: "rgba(137, 189, 27, 0)", - }, - ], - false - ), - shadowColor: "rgba(0, 0, 0, 0.1)", - shadowBlur: 10, - }, - }, - itemStyle: { - normal: { - color: "rgb(137,189,27)", - }, - }, - data: res.isoArray1, - }, - { - name: "1#POL温度", - type: "line", - smooth: false, - lineStyle: { - normal: { - width: 1, - }, - }, - areaStyle: { - normal: { - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "rgba(0, 136, 212, 0.3)", - }, - { - offset: 0.8, - color: "rgba(0, 136, 212, 0)", - }, - ], - false - ), - shadowColor: "rgba(0, 0, 0, 0.1)", - shadowBlur: 10, - }, - }, - itemStyle: { - normal: { - color: "rgb(0,136,212)", - }, - }, - data: res.polArray1, - }, - { - name: "2#ISO温度", - type: "line", - smooth: false, - lineStyle: { - normal: { - width: 1, - }, - }, - areaStyle: { - normal: { - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "rgba(219, 50, 51, 0.3)", - }, - { - offset: 0.8, - color: "rgba(219, 50, 51, 0)", - }, - ], - false - ), - shadowColor: "rgba(0, 0, 0, 0.1)", - shadowBlur: 10, - }, - }, - itemStyle: { - normal: { - color: "rgb(219,50,51)", - }, - }, - data: res.isoArray2, - }, - { - name: "2#POL温度", - type: "line", - smooth: false, - lineStyle: { - normal: { - width: 1, - }, - }, - areaStyle: { - normal: { - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "rgba(31,97,244, 0.3)", - }, - { - offset: 0.8, - color: "rgba(31,97,244, 0)", - }, - ], - false - ), - shadowColor: "rgba(31,97,244, 0.1)", - shadowBlur: 10, - }, - }, - itemStyle: { - normal: { - color: "rgb(31,97,244)", - }, - }, - data: res.polArray2, - }, - ], - }; - - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - -//绿色多边形柱状图 -const greenPolygonalHistogram = (res, ids) => { - let mycharts = echarts.init(ids); - const xValue = res.map(val => val.xValue) - const yValue = res.map(val => val.yValue) - const maxNum = Math.max(...yValue) - const maxArr = [] - const minArr = [] - yValue.forEach(val => { - maxArr.push(maxNum) - minArr.push(1) - }) - let option = { - color: [ - "#68E683", - "#58E28A", - "#042A4F", - "#042A4F", - "#042A4F", - "#6c93ee", - "#a9abff", - "#f7a23f", - "#27bae7", - "#ff6d9d", - "#cb79ff", - "#f95b5a", - "#ccaf27", - "#38b99c", - "#93d0ff", - "#bd74e0", - "#fd77da", - "#dea700", - ], - grid: { - containLabel: true, - left: 20, - right: 20, - bottom: 10, - top: 20, - }, - xAxis: { - axisLabel: { - color: "#c0c3cd", - fontSize: 14, - interval: 0, - }, - axisTick: { - lineStyle: { - color: "#384267", - }, - show: true, - }, - splitLine: { - show: false, - }, - axisLine: { - lineStyle: { - color: "#384267", - width: 1, - type: "dashed", - }, - show: true, - }, - data: xValue, - type: "category", - }, - yAxis: { - show: false, - axisLabel: { - color: "#c0c3cd", - fontSize: 14, - }, - axisTick: { - lineStyle: { - color: "#384267", - width: 1, - }, - show: false, - }, - splitLine: { - show: false, - lineStyle: { - color: "#384267", - type: "dashed", - }, - }, - axisLine: { - lineStyle: { - color: "#384267", - width: 1, - type: "dashed", - }, - show: false, - }, - name: "", - }, - series: [ - { - data: yValue, - type: "bar", - barMaxWidth: "auto", - barWidth: 30, - itemStyle: { - color: { - x: 0, - y: 0, - x2: 0, - y2: 1, - type: "linear", - global: false, - colorStops: [ - { - offset: 0, - color: "#1FB55E", - }, - { - offset: 1, - color: "#68E683", - }, - ], - }, - }, - label: { - show: true, - position: "top", - distance: 10, - color: "#fff", - }, - }, - { - data: minArr, - type: "pictorialBar", - barMaxWidth: "20", - symbol: "diamond", - symbolOffset: [0, "50%"], - symbolSize: [30, 15], - }, - { - data: yValue, - type: "pictorialBar", - barMaxWidth: "20", - symbolPosition: "end", - symbol: "diamond", - symbolOffset: [0, "-50%"], - symbolSize: [30, 12], - zlevel: 2, - }, - { - data: maxArr, - type: "bar", - barMaxWidth: "auto", - barWidth: 30, - barGap: "-100%", - zlevel: -1, - }, - { - data: minArr, - type: "pictorialBar", - barMaxWidth: "20", - symbol: "diamond", - symbolOffset: [0, "50%"], - symbolSize: [30, 15], - zlevel: -2, - }, - { - data: maxArr, - type: "pictorialBar", - barMaxWidth: "20", - symbolPosition: "end", - symbol: "diamond", - symbolOffset: [0, "-50%"], - symbolSize: [30, 12], - zlevel: -1, - }, - ], - tooltip: { - trigger: "axis", - show: false, - }, - }; - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - -//蓝色多边形柱状图 -const bluePolygonHistogram = (res, ids) => { - let mycharts = echarts.init(ids); - const xValue = res.map(val => val.xValue) - const yValue = res.map(val => val.yValue) - const maxNum = Math.max(...yValue) - const maxArr = [] - const minArr = [] - yValue.forEach(val => { - maxArr.push(maxNum) - minArr.push(1) - }) - - let option = { - color: [ - "#63caff", - "#49beff", - "#03387a", - "#03387a", - "#03387a", - "#6c93ee", - "#a9abff", - "#f7a23f", - "#27bae7", - "#ff6d9d", - "#cb79ff", - "#f95b5a", - "#ccaf27", - "#38b99c", - "#93d0ff", - "#bd74e0", - "#fd77da", - "#dea700", - ], - grid: { - containLabel: true, - left: 20, - right: 20, - bottom: 10, - top: 20, - }, - xAxis: { - axisLabel: { - color: "#c0c3cd", - fontSize: 14, - interval: 0, - }, - axisTick: { - lineStyle: { - color: "#384267", - }, - show: true, - }, - splitLine: { - show: false, - }, - axisLine: { - lineStyle: { - color: "#384267", - width: 1, - type: "dashed", - }, - show: true, - }, - data: xValue, - type: "category", - }, - yAxis: { - show: false, - axisLabel: { - color: "#c0c3cd", - fontSize: 14, - }, - axisTick: { - lineStyle: { - color: "#384267", - width: 1, - }, - show: false, - }, - splitLine: { - show: false, - lineStyle: { - color: "#384267", - type: "dashed", - }, - }, - axisLine: { - lineStyle: { - color: "#384267", - width: 1, - type: "dashed", - }, - show: false, - }, - name: "", - }, - series: [ - { - data:yValue, - type: "bar", - barMaxWidth: "auto", - barWidth: 30, - itemStyle: { - color: { - x: 0, - y: 0, - x2: 0, - y2: 1, - type: "linear", - global: false, - colorStops: [ - { - offset: 0, - color: "#0b9eff", - }, - { - offset: 1, - color: "#63caff", - }, - ], - }, - }, - label: { - show: true, - position: "top", - distance: 10, - color: "#fff", - }, - }, - { - data: minArr, - type: "pictorialBar", - barMaxWidth: "20", - symbol: "diamond", - symbolOffset: [0, "50%"], - symbolSize: [30, 15], - }, - { - data: yValue, - type: "pictorialBar", - barMaxWidth: "20", - symbolPosition: "end", - symbol: "diamond", - symbolOffset: [0, "-50%"], - symbolSize: [30, 12], - zlevel: 2, - }, - { - data: maxArr, - type: "bar", - barMaxWidth: "auto", - barWidth: 30, - barGap: "-100%", - zlevel: -1, - }, - { - data: minArr, - type: "pictorialBar", - barMaxWidth: "20", - symbol: "diamond", - symbolOffset: [0, "50%"], - symbolSize: [30, 15], - zlevel: -2, - }, - { - data: maxArr, - type: "pictorialBar", - barMaxWidth: "20", - symbolPosition: "end", - symbol: "diamond", - symbolOffset: [0, "-50%"], - symbolSize: [30, 12], - zlevel: -1, - }, - ], - tooltip: { - trigger: "axis", - show: false, - }, - }; - - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - -//多个立体柱状图 -const multipleThreeDimensionalCylindrical = (res, ids) => { - let mycharts = echarts.init(ids); - const xValue = res.map(val => val.materialName) - const lineStoreAmount = res.map(val => val.lineStoreAmount) - const hullStoreAmount = res.map(val => val.hullStoreAmount) - let lineColor = "#406A92"; - let labelColor = "#fff"; - let fontSize = "12"; - let lineWidth = 1; - let option = { - grid: { - left: "0%", - right: "0%", - top: "25%", - bottom: "2%", - containLabel: true, - }, - tooltip: { - show: true, - trigger: "axis", - textStyle: { - fontSize: fontSize, - }, - }, - legend: { - show: true, - x: "center", - y: "1%", - itemWidth: 10, - itemHeight: 2, - textStyle: { - color: "#fff", - fontSize: fontSize, - }, - data: ["内胆库", "箱壳库"], - }, - xAxis: [ - { - type: "category", - name: "", - nameTextStyle: { - fontSize: fontSize, - color: labelColor, - lineHeight: 20, - }, - axisLabel: { - color: labelColor, - fontSize: fontSize, - margin: 20, - }, - axisLine: { - show: false, - lineStyle: { - color: lineColor, - width: lineWidth, - }, - }, - axisTick: { - show: false, - }, - splitLine: { - show: false, - lineStyle: { - color: "#197584", - }, - }, - data: xValue, - }, - ], - yAxis: [ - { - type: "value", - name: "", - nameTextStyle: { - fontSize: fontSize, - color: labelColor, - }, - nameGap: 10, - axisLabel: { - show: false, - formatter: "{value}", - margin: 10, - textStyle: { - color: labelColor, - fontSize: fontSize, - }, - }, - axisLine: { - show: false, - lineStyle: { - color: lineColor, - width: lineWidth, - }, - }, - splitArea: { - show: false, - areaStyle: { - color: ["rgba(128,160,176,.1)", "rgba(250,250,250,0)"], - }, - }, - axisTick: { - show: false, - }, - splitLine: { - show: false, - lineStyle: { - color: lineColor, - }, - }, - }, - ], - series: [ - { - name: "", - type: "pictorialBar", - symbolSize: [26, 12], - symbolOffset: [-39, -5], - symbolPosition: "end", - z: 12, - tooltip: { - show: false, - }, - label: { - normal: { - show: false, - position: "top", - fontSize: fontSize, - color: "#fff", - }, - }, - color: "#26B2E8", - data:hullStoreAmount, - }, - { - name: "", - type: "pictorialBar", - tooltip: { - show: false, - }, - //外圈 - symbolSize: [37, 20], - symbolOffset: [-39, 20], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: "#2EA9E5", - borderType: "solid", - borderWidth: 20, - }, - }, - data: lineStoreAmount, - }, - { - name: "", - type: "pictorialBar", - tooltip: { - show: false, - }, - symbolSize: [50, 25], - symbolOffset: [-39, 25], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: "#26B2E8", - borderType: "solid", - borderWidth: 20, - }, - }, - data: lineStoreAmount, - }, - { - name: "", - type: "pictorialBar", - symbolSize: [26, 12], - tooltip: { - show: false, - }, - symbolOffset: [-39, 5], - z: 12, - color: "#26B2E8", - data:lineStoreAmount, - }, - { - type: "bar", - name: "箱壳库", - barWidth: "26", - barGap: "200%", - barCateGoryGap: "10%", - label: { - normal: { - show: true, - position: "top", - fontSize: fontSize, - color: "#fff", - opacity: 1, - formatter: "{c}", - offset: [0, -20], - }, - }, - itemStyle: { - normal: { - color: "#1E93C6", - opacity: 1, - }, - }, - data:hullStoreAmount, - }, - { - name: "", - type: "pictorialBar", - symbolSize: [26, 12], - symbolOffset: [39, -5], - symbolPosition: "end", - z: 12, - tooltip: { - show: false, - }, - label: { - normal: { - show: false, - position: "top", - fontSize: fontSize, - color: "#fff", - }, - }, - color: "#20D3AB", - data: lineStoreAmount, - }, - { - name: "", - type: "pictorialBar", - tooltip: { - show: false, - }, - symbolSize: [37, 20], - symbolOffset: [39, 20], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: "#20D3AB", - borderType: "solid", - borderWidth: 20, - }, - }, - data: lineStoreAmount, - }, - { - name: "", - type: "pictorialBar", - tooltip: { - show: false, - }, - symbolSize: [50, 25], - symbolOffset: [39, 25], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: "#20D3AB", - borderType: "solid", - borderWidth: 20, - }, - }, - data: lineStoreAmount, - }, - { - name: "", - type: "pictorialBar", - symbolSize: [26, 12], - tooltip: { - show: false, - }, - symbolOffset: [39, 5], - z: 12, - color: "#20D3AB", - data:lineStoreAmount, - }, - { - type: "bar", - name: "内胆库", - barWidth: "26", - barGap: "200%", - barCateGoryGap: "10%", - label: { - normal: { - show: true, - position: "top", - fontSize: fontSize, - color: "#fff", - formatter: "{c}", - offset: [0, -20], - }, - }, - itemStyle: { - normal: { - color: "#1AAE96", - opacity: 1, - }, - }, - data: lineStoreAmount, - }, - ], - }; - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - - -//设备OEE统计 -const OEEStatistics = (res, ids) => { - let mycharts = echarts.init(ids); - let xAxisData = res.map(val => val.xValue); - let yAxisData = res.map(val => val.yValue); - - let option = { - tooltip: {}, - grid: { - top: "15%", - left: "5%", - right: "5%", - bottom: "8%", - containLabel: true, - }, - legend: { - itemGap: 50, - data: ["人员出入总数"], - textStyle: { - color: "#f9f9f9", - borderColor: "#fff", - }, - }, - xAxis: [ - { - type: "category", - boundaryGap: false, - data: xAxisData, - min: 0, - splitNumber: 4, - splitLine: { - show: true, - lineStyle: { - color: "#0a3256", - }, - }, - axisLine: { - show: true, - }, - axisLabel: { - show: true, - margin: 10, - textStyle: { - color: "#A8A6AB", - }, - }, - axisTick: { - show: false, - }, - splitLine: { - show: false, - lineStyle: { - color: "rgb(217,217,217,0.5)", - type: "dashed" //虚线 - // width: 2 - } - } - }, - ], - yAxis: [ - { - type: "value", - min: 0, - splitLine: { - show: true, - lineStyle: { - color: "#0a3256", - }, - }, - axisLine: { - show: true, - }, - axisLabel: { - show: true, - margin: 20, - textStyle: { - color: "#A8A6AB", - }, - }, - axisTick: { - show: false, - }, - splitLine: { - show: false, - lineStyle: { - color: "rgb(217,217,217,0.5)", - type: "dashed" //虚线 - // width: 2 - } - } - }, - ], - series: [ - { - name: "小时产量", - type: "line", - smooth: false, //是否平滑曲线显示 - showAllSymbol: true, - symbol: "circle", - symbolSize: 6, - lineStyle: { - normal: { - color: "rgb(165,122,75)", // 线条颜色 - }, - borderColor: "#f0f", - }, - label: { - show: true, - position: "top", - textStyle: { - color: "rgb(165,122,75)", - }, - }, - itemStyle: { - normal: { - color: "rgb(9,24,51)", - borderColor: "rgb(165,122,75)", - borderWidth: 2, - }, - }, - tooltip: { - show: false, - }, - areaStyle: { - //区域填充样式 - normal: { - //线性渐变,前4个参数分别是x0,y0,x2,y2(范围0~1);相当于图形包围盒中的百分比。如果最后一个参数是‘true’,则该四个值是绝对像素位置。 - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "rgba(102,64,38,1)", - }, - { - offset: 1, - color: "rgba(0,0,0, 0)", - }, - ], - - ), - shadowColor: "rgba(53,142,215, 0.9)", //阴影颜色 - shadowBlur: 20, //shadowBlur设图形阴影的模糊大小。配合shadowColor,shadowOffsetX/Y, 设置图形的阴影效果。 - }, - }, - data:yAxisData, - } - ], - }; - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - - -//库存情况 -const inventory = (res, ids) => { - let mycharts = echarts.init(ids); - - let xAxisData = []; - let seriesData1 = []; - let sum = 0; - - let barTopColor = ["#02c3f1"]; - let barBottomColor = [ - "rgba(2,195,241,0.1)", - ]; - let Res = - { - datas: [ - { - name: 'SC-279', - value: 2 - }, - { - name: 'SC-606', - value: 6 - }, - { - name: 'SC-387NE', - value: 31 - }, - { - name: 'SC-329', - value: 2 - }, - { - name: 'SC-279', - value: 9 - }, - ] - } - - Res.datas.forEach((item) => { - xAxisData.push(item.name); - seriesData1.push(item.value); - sum += item.value; - }); - let option = { - - grid: { - top: "25%", - bottom: "25%", - }, - xAxis: { - data: xAxisData, - axisTick: { - show: false, - }, - axisLine: { - show: false, - }, - axisLabel: { - interval: 0, - show: true, - margin: 25, - align: "center", - textStyle: { - fontSize: 12, - color: "#A8A6AB", - rich: { - a: { - fontSize: 12, - color: "#ffffff", - }, - b: { - height: 20, - fontSize: 14, - color: "#ffffff", - }, - }, - }, - }, - }, - yAxis: { - splitLine: { - show: false, - }, - axisTick: { - show: false, - }, - axisLine: { - show: false, - }, - axisLabel: { - show: false, - }, - }, - series: [ - { - name: "柱顶部", - type: "pictorialBar", - symbolSize: [15, 6], - symbolOffset: [0, -5], - z: 12, - itemStyle: { - normal: { - color: function (params) { - return barTopColor[0]; - }, - }, - }, - label: { - show: true, - position: "top", - textStyle: { - color: "#02C3F1", - }, - }, - symbolPosition: "end", - data: seriesData1, - }, - { - name: "柱底部", - type: "pictorialBar", - symbolSize: [26, 10], - symbolOffset: [0, 5], - z: 12, - itemStyle: { - normal: { - color: function (params) { - return barTopColor[0]; - }, - }, - }, - data: seriesData1, - }, - { - name: "第一圈", - type: "pictorialBar", - symbolSize: [38, 14], - symbolOffset: [0, 17], - z: 11, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 20, - }, - }, - data: [seriesData1[0], "", ""], - }, - { - name: "第一圈", - type: "pictorialBar", - symbolSize: [38, 14], - symbolOffset: [0, 17], - z: 11, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 20, - }, - }, - data: ["", seriesData1[1], ""], - }, - { - name: "第一圈", - type: "pictorialBar", - symbolSize: [38, 14], - symbolOffset: [0, 17], - z: 11, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 20, - }, - }, - data: ["", "", seriesData1[2]], - }, - { - name: "第一圈", - type: "pictorialBar", - symbolSize: [38, 14], - symbolOffset: [0, 17], - z: 11, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 20, - }, - }, - data: ["", "", "", seriesData1[3]], - }, - { - name: "第一圈", - type: "pictorialBar", - symbolSize: [38, 14], - symbolOffset: [0, 17], - z: 11, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 20, - }, - }, - data: ["", "", "", "", seriesData1[4]], - }, - { - name: "第二圈", - type: "pictorialBar", - symbolSize: [30, 10], - symbolOffset: [0, 12], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 16, - }, - }, - data: [seriesData1[0], "", ""], - }, - { - name: "第二圈", - type: "pictorialBar", - symbolSize: [30, 10], - symbolOffset: [0, 12], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 16, - }, - }, - data: ["", seriesData1[1], ""], - }, - { - name: "第二圈", - type: "pictorialBar", - symbolSize: [30, 10], - symbolOffset: [0, 12], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 16, - }, - }, - data: ["", "", seriesData1[2]], - }, - { - name: "第二圈", - type: "pictorialBar", - symbolSize: [30, 10], - symbolOffset: [0, 12], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 16, - }, - }, - data: ["", "", "", seriesData1[3]], - }, - { - name: "第二圈", - type: "pictorialBar", - symbolSize: [30, 10], - symbolOffset: [0, 12], - z: 10, - itemStyle: { - normal: { - color: "transparent", - borderColor: barTopColor[0], - borderWidth: 16, - }, - }, - data: ["", "", "", "", seriesData1[4]], - }, - - { - type: "bar", - itemStyle: { - normal: { - color: function (params) { - return new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 1, - color: barTopColor[0], - }, - { - offset: 0, - color: barBottomColor[0], - }, - ]); - }, - opacity: 0.8, - }, - }, - z: 16, - silent: true, - barWidth: 14, - barGap: "-100%", // Make series be overlap - data: seriesData1, - }, - ], - }; - - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - - -//loss -const loss = (res, ids) => { - let mycharts = echarts.init(ids); - const xValue = res.map(val => val.name) - const yValue = res.map(val => val.value) - - let barTopColor = [ - "#55F675", - ]; - let barBottomColor = [ - "#55F675", - ]; - - let option = { - - grid: { - top: "25%", - right: "5%", - bottom: "25%", - }, - xAxis: { - axisTick: { - show: false, - }, - data: xValue, - axisLine: { - show: true, - }, - axisLabel: { - interval: 0, - show: true, - margin: 10, - align: "center", - textStyle: { - fontSize: 12, - color: "#A8A6AB", - rich: { - a: { - fontSize: 12, - color: "#ffffff", - }, - b: { - height: 20, - fontSize: 14, - color: "#ffffff", - }, - }, - }, - }, - splitLine: { - show: false, - lineStyle: { - color: "rgb(217,217,217,0.5)", - type: "dashed" //虚线 - // width: 2 - } - } - }, - yAxis: { - splitLine: { - show: true, - }, - axisTick: { - show: false, - }, - axisLine: { - show: true, - }, - axisLabel: { - show: true, - }, - splitLine: { - show: false, - lineStyle: { - color: "rgb(217,217,217,0.5)", - type: "dashed" //虚线 - // width: 2 - } - } - }, - series: [ - { - name: "柱顶部", - type: "pictorialBar", - symbolSize: [35, 6], - symbolOffset: [0, -3], - z: 12, - itemStyle: { - normal: { - color: function (params) { - return barTopColor[0]; - }, - }, - }, - label: { - show: true, - position: "top", - textStyle: { - color: barTopColor[0], - }, - }, - symbolPosition: "end", - data: yValue, - }, - - { - type: "bar", - itemStyle: { - normal: { - color: function (params) { - return new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 1, - color: barTopColor[0], - }, - { - offset: 0, - color: barBottomColor[0], - }, - ]); - }, - opacity: 0.8, - }, - }, - z: 16, - silent: true, - barWidth: 35, - barGap: "-100%", // Make series be overlap - data: yValue, - }, - ], - }; - - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - - -//设备故障排名 -const equipmentFailure = (res, ids) => { - let mycharts = echarts.init(ids); - - - let stationData = []; - let values = []; - - res.datas.forEach(function (it, index) { - stationData.push(it.station); - values.push(it.value); - }); - let option = { - grid: { - top: '1%', - left: '6%', - right: '15%', - bottom: '3%', - containLabel: true - }, - xAxis: { - // type: "category", - boundaryGap: false, - min: 0, - splitNumber: 4, - splitLine: { - show: true, - lineStyle: { - color: "#0a3256", - }, - }, - axisLine: { - show: true, - }, - axisLabel: { - show: true, - margin: 10, - textStyle: { - color: "#A8A6AB", - }, - }, - axisTick: { - show: false, - }, - splitLine: { - show: false, - lineStyle: { - color: "rgb(217,217,217,0.5)", - type: "dashed" //虚线 - // width: 2 - } - }, - type: 'value', - }, - yAxis: { - axisTick: { - show: false, - }, - interval: 0, - type: 'category', - data: stationData, - splitLine: { - show: false, - lineStyle: { - color: "rgb(217,217,217,0.5)", - type: "dashed" //虚线 - // width: 2 - } - }, - axisLabel: { - interval: 0, - show: true, - margin: 25, - align: "center", - textStyle: { - fontSize: 12, - rich: { - a: { - fontSize: 12, - color: "#ffffff", - }, - b: { - height: 20, - fontSize: 14, - color: "#ffffff", - }, - }, - }, - }, - }, - series: [ - // { - // name: "柱顶部", - // type: "pictorialBar", - // symbolSize: [6, 13], - // symbolOffset: [3, 0], - // z: 12, - // itemStyle: { - // normal: { - // color: function (params) { - // return "#B78E45"; - // }, - // }, - // }, - // symbolPosition: "end", - // data: values, - // }, - { - name: '2011', - type: 'bar', - data: values, - label: { - show: true, - position: "right", - textStyle: { - color: '#CCFF66', - }, - }, - itemStyle: { - normal: { - color: function (params) { - return new echarts.graphic.LinearGradient(1, 0, 0, 0, [ - { - offset: 1, - color: "#DE9405", - }, - { - offset: 0, - color: "#CCFF66", - }, - ]); - }, - opacity: 0.8, - }, - }, - }, - ] - }; - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} - -// 设备产量能耗对比 -const energyConsumption = (res, ids) => { - let mycharts = echarts.init(ids); - let xAxisData = res.xValueArray;// x - let yAxisDataOne = res.productionArray;// 产量 - let yAxisDataTwo = res.energyArray;// 能耗 - let option = { - grid: { - top: '25%', - left: '6%', - right: '6%', - bottom: '3%', - containLabel: true - }, - xAxis: [ - { - interval: 0, - type: 'category', - data: xAxisData, - axisPointer: { - type: 'shadow' - } - } - ], - yAxis: [ - { - type: 'value', - name: '产量(t)', - min: 0, - // max: 40, - // interval: 10, - axisLabel: { - formatter: '{value} ml' - }, - splitLine: { - show: false, - lineStyle: { - color: "rgb(217,217,217,0.5)", - type: "dashed" //虚线 - // width: 2 - } - }, - axisLine: { - show: true, - }, - }, - { - type: 'value', - name: '能耗(kw·h)', - min: 0, - // max: 20, - // interval: 5, - axisLabel: { - formatter: '{value} °C' - }, - splitLine: { - show: false, - lineStyle: { - color: "rgb(217,217,217,0.5)", - type: "dashed" //虚线 - // width: 2 - } - }, - axisLine: { - show: true, - }, - } - ], - series: [ - { - name: '产量', - type: 'bar', - itemStyle: { - normal: { - color: function (params) { - return new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 1, - color: "rgba(10,50,220)", - }, - { - offset: 0, - color: "rgba(40,140,210)", - }, - ]); - }, - }, - }, - tooltip: { - valueFormatter: function (value) { - return value + ' ml'; - } - }, - barWidth: 20, - data: yAxisDataOne, - }, - { - name: '能耗', - type: 'line', - yAxisIndex: 1, - tooltip: { - valueFormatter: function (value) { - return value + ' °C'; - } - }, - data: yAxisDataTwo, - }, - { - name: "柱顶部", - type: "pictorialBar", - symbolSize: [20, 6], - symbolOffset: [0, -3], - z: 12, - itemStyle: { - normal: { - color: function (params) { - return 'rgb(217,217,217)'; - }, - }, - }, - label: { - show: true, - position: "top", - textStyle: { - color: "#02C3F1", - }, - }, - symbolPosition: "end", - data:yAxisDataOne, - }, - ] - }; - - mycharts.setOption(option); - $(window).resize(mycharts.resize); -} \ No newline at end of file diff --git a/productionboard/target/classes/static/js/foamBox/index.js b/productionboard/target/classes/static/js/foamBox/index.js deleted file mode 100644 index e2136f1..0000000 --- a/productionboard/target/classes/static/js/foamBox/index.js +++ /dev/null @@ -1,149 +0,0 @@ -$(() => { - - //班组计划统计 - $.getJSON('/foamBox/getTeamStatisticsJson', function (result) { - onDutyPlan(result.planAmount, result.actualAmount, result.differenceAmount,) - }); - - //设备运行状态 - $.getJSON(`/foamBox/getRunStatusJson?ids=${ids}`, function (result) { - deviceStatus(result); - }); - - - //库存统计 - $.getJSON(`/foamBox/getMaterialStoreJson`, function (result) { - threeDimensionalCylindrical(result, document.getElementById("inventoryStatistics")); - }); - - //按型号统计产量 - $.getJSON('/foamBox/getMaterialProdutionJson', function (result) { - horizontalBarChart(result, document.getElementById("statisticalOutputByModel")); - }); - - //小时产量 - $.getJSON('/foamBox/getHourProdutionJson', function (result) { - brokenLineAreaDiagram(result, document.getElementById("hourlyOutputStatistics")); - }); - - //发泡参数 - $.getJSON(`/foamBox/getParamTemperature?ids=${ids}`, function (result) { - multipleBrokenLineAreaDiagram(result, document.getElementById("foamingParameters")); - }); - - // 模具温度1 - - const temperature = (res, ids) => { - let mycharts = echarts.init(ids); - - - let option = { - grid: { - top: '10%', - left: '6%', - right: '6%', - bottom: '0', - containLabel: true - }, - xAxis: [ - { - interval: 0, - type: 'category', - data: ['066', '066', '066', '066', '066'], - axisPointer: { - type: 'shadow' - } - } - ], - yAxis: [ - { - splitLine: { - show: false, - }, - type: 'value', - name: 'Precipitation', - min: 0, - max: 50, - interval: 10, - axisLabel: { - formatter: '{value} ml' - } - }, - { - splitLine: { - show: false, - }, - type: 'value', - name: 'Temperature', - min: 0, - max: 5, - interval: 1, - axisLabel: { - formatter: '{value} °C' - } - } - ], - series: [ - { - name: 'Evaporation', - type: 'bar', - tooltip: { - valueFormatter: function (value) { - return value + ' ml'; - } - }, - data: [ - 2.0, 4.9, 7.0, 23.2, 25.6 - ] - }, - { - name: 'Precipitation', - type: 'bar', - tooltip: { - valueFormatter: function (value) { - return value + ' ml'; - } - }, - data: [ - 2.6, 5.9, 9.0, 26.4, 28.7 - ] - }, - ] - }; - - mycharts.setOption(option); - $(window).resize(mycharts.resize); - } - - $.getJSON('/foamBox/getStatisticalOutputByModel', function (result) { - temperature(result, document.getElementById("temperatureOne")); - }); - $.getJSON('/foamBox/getStatisticalOutputByModel', function (result) { - temperature(result, document.getElementById("temperatureTwo")); - }); - $.getJSON('/foamBox/getStatisticalOutputByModel', function (result) { - temperature(result, document.getElementById("temperatureThree")); - }); - $.getJSON('/foamBox/getStatisticalOutputByModel', function (result) { - temperature(result, document.getElementById("temperatureFour")); - }); - - -}) - -const deviceStatus = (statusArray) => { - let info = ` - - - - - - - - -
`; - - $(".foamingLineRunStatus table tr").append(info); - -} -