|
@@ -918,3 +918,96 @@ function getListData(queryParam = {}) {
|
|
},
|
|
},
|
|
|
|
|
|
axisTick: {
|
|
axisTick: {
|
|
|
|
+ //坐标轴刻度相关设置。
|
|
|
|
+ show: false,
|
|
|
|
+ },
|
|
|
|
+ axisLine: {
|
|
|
|
+ //坐标轴轴线相关设置
|
|
|
|
+ },
|
|
|
|
+ splitLine: {
|
|
|
|
+ //坐标轴在 grid 区域中的分隔线。
|
|
|
|
+ show: false,
|
|
|
|
+ },
|
|
|
|
+ }, ],
|
|
|
|
+ yAxis: [{
|
|
|
|
+ type: 'value',
|
|
|
|
+
|
|
|
|
+ axisLabel: false,
|
|
|
|
+ axisLine: {
|
|
|
|
+ show: false,
|
|
|
|
+ },
|
|
|
|
+ axisTick: {
|
|
|
|
+ show: false,
|
|
|
|
+ },
|
|
|
|
+ splitLine: {
|
|
|
|
+ show: true,
|
|
|
|
+ lineStyle: {
|
|
|
|
+ color: ['#204C6F'],
|
|
|
|
+ opacity: 0.3,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ boundaryGap: ['0', '10%'],
|
|
|
|
+ }],
|
|
|
|
+ series: [{
|
|
|
|
+ name: '波动前水压值',
|
|
|
|
+ type: 'bar',
|
|
|
|
+ data: before_fluctuation,
|
|
|
|
+ barMaxWidth: '11',
|
|
|
|
+ itemStyle: {
|
|
|
|
+ borderColor: "#0096FF",
|
|
|
|
+ },
|
|
|
|
+ barGap: '50%',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ name: '波动后水压值',
|
|
|
|
+ type: 'bar',
|
|
|
|
+ data: after_fluctuation,
|
|
|
|
+ barMaxWidth: '11',
|
|
|
|
+ itemStyle: {
|
|
|
|
+ borderColor: "#FF9C00",
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ myChart.setOption(option);
|
|
|
|
+ window.addEventListener("resize", function() {
|
|
|
|
+ myChart.resize();
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ })();
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ 主页面数据对接 end
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+ //项目情况
|
|
|
|
+ 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>
|
|
|
|
+ <td>${item.device_name}</td>
|
|
|
|
+ <td>${item.device_info}</td>
|
|
|
|
+ <td>${item.device_code}</td>
|
|
|
|
+ <td>${item.remarks}</td>
|
|
|
|
+ </tr>`;
|
|
|
|
+ })
|