瀏覽代碼

efAnalysisSharingEnginePush eleFire.js 朱涛 commit at 2020-12-25

朱涛 4 年之前
父節點
當前提交
fc3b2cc922
共有 1 個文件被更改,包括 158 次插入0 次删除
  1. 158 0
      efAnalysisSharingEnginePush/externalJs/eleFire.js

+ 158 - 0
efAnalysisSharingEnginePush/externalJs/eleFire.js

@@ -823,3 +823,161 @@ function getListData(queryParam = {}) {
                         borderWidth: '0', //去除边框
                         containLabel: true // 包含刻度文字在内
                     },
+
+                    xAxis: {
+                        type: "category",
+                        boundaryGap: false,
+                        data: xData,
+                        axisTick: {
+                            show: false // 去除刻度线
+                        },
+                        axisLabel: {
+                            color: "#AADDFF" // 文本颜色
+                        },
+                        axisLine: {
+                            show: false // 去除轴线
+                        }
+                    },
+
+                    yAxis: {
+                        type: "value",
+                        axisTick: {
+                            show: false // 去除刻度线
+                        },
+                        axisLabel: {
+                            show: false // 去除文本
+                        },
+                        axisLine: {
+                            show: false // 去除轴线
+                        },
+                        splitLine: {
+                            lineStyle: {
+                                color: "#012f4a" // 分割线颜色
+                            }
+                        }
+                    },
+                    series: [{
+                            symbol: "none",
+                            name: "线缆产生的温度",
+                            type: "line",
+                            smooth: true, // true 可以让我们的折线显示带有弧度
+                            areaStyle: {
+                                normal: {
+                                    color: new echarts.graphic.LinearGradient(
+                                        0,
+                                        0,
+                                        0,
+                                        1, [{
+                                                offset: 0,
+                                                color: "rgba(5,238,231,.6)"
+                                            },
+                                            {
+                                                offset: 0.8,
+                                                color: "rgba(5,238,231, 0.4)"
+                                            }
+                                        ],
+                                        false
+                                    ),
+                                }
+                            },
+
+                            data: sortData[0].data[0]
+                        },
+                        {
+                            symbol: "none",
+                            name: "环境温度",
+                            type: "line",
+                            smooth: true,
+                            areaStyle: {
+                                normal: {
+                                    color: new echarts.graphic.LinearGradient(
+                                        0,
+                                        0,
+                                        0,
+                                        1, [{
+                                                offset: 0,
+                                                color: "rgba(153,153,255,.6)"
+                                            },
+                                            {
+                                                offset: 0.8,
+                                                color: "rgba(153,153,255, 0.4)"
+                                            }
+                                        ],
+                                        false
+                                    ),
+                                }
+                            },
+
+                            data: sortData[0].data[1]
+                        },
+                        {
+                            symbol: "none",
+                            name: "线缆温度",
+                            type: "line",
+                            smooth: true,
+                            areaStyle: {
+                                normal: {
+                                    color: new echarts.graphic.LinearGradient(
+                                        0,
+                                        0,
+                                        0,
+                                        1, [{
+                                                offset: 0,
+                                                color: "rgba(255,147,180,.6)"
+                                            },
+                                            {
+                                                offset: 0.8,
+                                                color: "rgba(255,147,180, 0.4)"
+                                            }
+                                        ],
+                                        false
+                                    ),
+                                }
+                            },
+
+                            data: sortData[0].data[2]
+                        }
+                    ]
+                };
+
+                myChart.setOption(option);
+                window.addEventListener("resize", function() {
+                    myChart.resize();
+                });
+
+
+            })();
+
+            /* 
+                 主页面数据对接 end
+            */
+
+
+            /* 
+                 导出数据对接 start
+            */
+
+
+            //项目情况
+            var project_situation = result.RESULT[0].project_situation;
+            var items = '';
+            items = `<tr>
+                    <td>单位名称</td>
+                    <td colspan="5">${project_situation.company_name}</td>
+                </tr>
+                <tr>
+                    <td>进场日期</td>
+                    <td>${project_situation.entry_date} </td>
+                    <td>完工日期</td>
+                    <td>${project_situation.completion_date}</td>
+                    <td>验收日期</td>
+                    <td>${project_situation.acceptance_date}</td>
+                </tr>`
+            $('#project_situation').html(items);
+
+            //设备清单
+            var equipment_list = result.RESULT[0].equipment_list;
+            var items2 = '';
+            if (equipment_list) {
+                equipment_list.forEach(function(item, key) {
+                    items2 += `<tr>