Ver código fonte

裂解炉炉管测温COIL、MAX

wangggziwen 1 ano atrás
pai
commit
6d9acdf7cf

+ 312 - 0
master/src/main/java/com/ruoyi/project/production/controller/TFurnanceTemperatureController.java

@@ -1,6 +1,10 @@
 package com.ruoyi.project.production.controller;
 
+import java.util.ArrayList;
 import java.util.List;
+
+import com.ruoyi.common.utils.StringUtils;
+import com.ruoyi.project.production.controller.vo.FurnanceTemperatureVO;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
@@ -33,6 +37,314 @@ public class TFurnanceTemperatureController extends BaseController
     @Autowired
     private ITFurnanceTemperatureService tFurnanceTemperatureService;
 
+    /**
+     * 查询裂解炉炉管测温MAX
+     */
+    @GetMapping("/max")
+    public AjaxResult max(TFurnanceTemperature tFurnanceTemperature)
+    {
+        tFurnanceTemperature.setFurnanceName("H109");
+        List<TFurnanceTemperature> list109 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        List<FurnanceTemperatureVO> coilList = new ArrayList<FurnanceTemperatureVO>(list109.size());
+        if (list109.size() != 0) {
+            for (int i = 0; i < list109.size(); i++) {
+                TFurnanceTemperature ft = list109.get(i);
+                FurnanceTemperatureVO coil = new FurnanceTemperatureVO();
+                coil.setRecordTime(ft.getRecordTime());
+                coil.setH109Out(this.getMaxValue(ft.getPass1() + "," + ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3() + "," + ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5() + "," + ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7() + "," + ft.getPass8()) + ","
+                        + this.getMaxValue(ft.getPass9() + "," + ft.getPass10()) + ","
+                        + this.getMaxValue(ft.getPass11() + "," + ft.getPass12()) + ","
+                        + this.getMaxValue(ft.getPass13() + "," + ft.getPass14()) + ","
+                        + this.getMaxValue(ft.getPass15() + "," + ft.getPass16()));
+                coilList.add(coil);
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H110");
+        List<TFurnanceTemperature> list110 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list110.size() != 0) {
+            for (int i = 0; i < list110.size(); i++) {
+                TFurnanceTemperature ft = list110.get(i);
+                coilList.get(i).setH110Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H111");
+        List<TFurnanceTemperature> list111 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list111.size() != 0) {
+            for (int i = 0; i < list111.size(); i++) {
+                TFurnanceTemperature ft = list111.get(i);
+                coilList.get(i).setH111Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H112");
+        List<TFurnanceTemperature> list112 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list112.size() != 0) {
+            for (int i = 0; i < list112.size(); i++) {
+                TFurnanceTemperature ft = list112.get(i);
+                coilList.get(i).setH112Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H113");
+        List<TFurnanceTemperature> list113 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list113.size() != 0) {
+            for (int i = 0; i < list113.size(); i++) {
+                TFurnanceTemperature ft = list113.get(i);
+                coilList.get(i).setH113Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H114");
+        List<TFurnanceTemperature> list114 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list114.size() != 0) {
+            for (int i = 0; i < list114.size(); i++) {
+                TFurnanceTemperature ft = list114.get(i);
+                coilList.get(i).setH114Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H115");
+        List<TFurnanceTemperature> list115 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list115.size() != 0) {
+            for (int i = 0; i < list115.size(); i++) {
+                TFurnanceTemperature ft = list115.get(i);
+                coilList.get(i).setH115Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H116");
+        List<TFurnanceTemperature> list116 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list116.size() != 0) {
+            for (int i = 0; i < list116.size(); i++) {
+                TFurnanceTemperature ft = list116.get(i);
+                coilList.get(i).setH116Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H117");
+        List<TFurnanceTemperature> list117 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list117.size() != 0) {
+            for (int i = 0; i < list117.size(); i++) {
+                TFurnanceTemperature ft = list117.get(i);
+                coilList.get(i).setH117Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H118");
+        List<TFurnanceTemperature> list118 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list118.size() != 0) {
+            for (int i = 0; i < list118.size(); i++) {
+                TFurnanceTemperature ft = list118.get(i);
+                coilList.get(i).setH118Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H130");
+        List<TFurnanceTemperature> list130 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list130.size() != 0) {
+            for (int i = 0; i < list130.size(); i++) {
+                TFurnanceTemperature ft = list130.get(i);
+                coilList.get(i).setH130Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()) + ","
+                        + this.getMaxValue(ft.getPass9()) + "," + this.getMaxValue(ft.getPass10()) + ","
+                        + this.getMaxValue(ft.getPass11()) + "," + this.getMaxValue(ft.getPass12()));
+            }
+        }
+        for (FurnanceTemperatureVO vo : coilList) {
+            vo.setH109Out(this.getMaxValue(vo.getH109Out())+"");
+            vo.setH110Out(this.getMaxValue(vo.getH110Out())+"");
+            vo.setH111Out(this.getMaxValue(vo.getH111Out())+"");
+            vo.setH112Out(this.getMaxValue(vo.getH112Out())+"");
+            vo.setH113Out(this.getMaxValue(vo.getH113Out())+"");
+            vo.setH114Out(this.getMaxValue(vo.getH114Out())+"");
+            vo.setH115Out(this.getMaxValue(vo.getH115Out())+"");
+            vo.setH116Out(this.getMaxValue(vo.getH116Out())+"");
+            vo.setH117Out(this.getMaxValue(vo.getH117Out())+"");
+            vo.setH118Out(this.getMaxValue(vo.getH118Out())+"");
+            vo.setH130Out(this.getMaxValue(vo.getH130Out())+"");
+        }
+        return AjaxResult.success(coilList);
+    }
+
+    /**
+     * 查询裂解炉炉管测温COIL
+     */
+    @GetMapping("/coil")
+    public AjaxResult coil(TFurnanceTemperature tFurnanceTemperature)
+    {
+        tFurnanceTemperature.setFurnanceName("H109");
+        List<TFurnanceTemperature> list109 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        List<FurnanceTemperatureVO> coilList = new ArrayList<FurnanceTemperatureVO>(list109.size());
+        if (list109.size() != 0) {
+            for (int i = 0; i < list109.size(); i++) {
+                TFurnanceTemperature ft = list109.get(i);
+                FurnanceTemperatureVO coil = new FurnanceTemperatureVO();
+                coil.setRecordTime(ft.getRecordTime());
+                coil.setH109Out(this.getMaxValue(ft.getPass1() + "," + ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3() + "," + ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5() + "," + ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7() + "," + ft.getPass8()) + ","
+                        + this.getMaxValue(ft.getPass9() + "," + ft.getPass10()) + ","
+                        + this.getMaxValue(ft.getPass11() + "," + ft.getPass12()) + ","
+                        + this.getMaxValue(ft.getPass13() + "," + ft.getPass14()) + ","
+                        + this.getMaxValue(ft.getPass15() + "," + ft.getPass16()));
+                coilList.add(coil);
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H110");
+        List<TFurnanceTemperature> list110 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list110.size() != 0) {
+            for (int i = 0; i < list110.size(); i++) {
+                TFurnanceTemperature ft = list110.get(i);
+                coilList.get(i).setH110Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H111");
+        List<TFurnanceTemperature> list111 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list111.size() != 0) {
+            for (int i = 0; i < list111.size(); i++) {
+                TFurnanceTemperature ft = list111.get(i);
+                coilList.get(i).setH111Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H112");
+        List<TFurnanceTemperature> list112 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list112.size() != 0) {
+            for (int i = 0; i < list112.size(); i++) {
+                TFurnanceTemperature ft = list112.get(i);
+                coilList.get(i).setH112Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H113");
+        List<TFurnanceTemperature> list113 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list113.size() != 0) {
+            for (int i = 0; i < list113.size(); i++) {
+                TFurnanceTemperature ft = list113.get(i);
+                coilList.get(i).setH113Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H114");
+        List<TFurnanceTemperature> list114 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list114.size() != 0) {
+            for (int i = 0; i < list114.size(); i++) {
+                TFurnanceTemperature ft = list114.get(i);
+                coilList.get(i).setH114Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H115");
+        List<TFurnanceTemperature> list115 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list115.size() != 0) {
+            for (int i = 0; i < list115.size(); i++) {
+                TFurnanceTemperature ft = list115.get(i);
+                coilList.get(i).setH115Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H116");
+        List<TFurnanceTemperature> list116 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list116.size() != 0) {
+            for (int i = 0; i < list116.size(); i++) {
+                TFurnanceTemperature ft = list116.get(i);
+                coilList.get(i).setH116Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H117");
+        List<TFurnanceTemperature> list117 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list117.size() != 0) {
+            for (int i = 0; i < list117.size(); i++) {
+                TFurnanceTemperature ft = list117.get(i);
+                coilList.get(i).setH117Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H118");
+        List<TFurnanceTemperature> list118 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list118.size() != 0) {
+            for (int i = 0; i < list118.size(); i++) {
+                TFurnanceTemperature ft = list118.get(i);
+                coilList.get(i).setH118Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()));
+            }
+        }
+        tFurnanceTemperature.setFurnanceName("H130");
+        List<TFurnanceTemperature> list130 = tFurnanceTemperatureService.selectTFurnanceTemperatureList(tFurnanceTemperature);
+        if (list130.size() != 0) {
+            for (int i = 0; i < list130.size(); i++) {
+                TFurnanceTemperature ft = list130.get(i);
+                coilList.get(i).setH130Out(this.getMaxValue(ft.getPass1()) + "," + this.getMaxValue(ft.getPass2()) + ","
+                        + this.getMaxValue(ft.getPass3()) + "," + this.getMaxValue(ft.getPass4()) + ","
+                        + this.getMaxValue(ft.getPass5()) + "," + this.getMaxValue(ft.getPass6()) + ","
+                        + this.getMaxValue(ft.getPass7()) + "," + this.getMaxValue(ft.getPass8()) + ","
+                        + this.getMaxValue(ft.getPass9()) + "," + this.getMaxValue(ft.getPass10()) + ","
+                        + this.getMaxValue(ft.getPass11()) + "," + this.getMaxValue(ft.getPass12()));
+            }
+        }
+        return AjaxResult.success(coilList);
+    }
+    private int getMaxValue(String value) {
+        if (StringUtils.isNotNull(value) && StringUtils.isNotEmpty(value)) {
+            String[] split = value.split(",");
+            int max = Integer.parseInt(split[0]);
+            for (int i = 0; i < split.length; i++) {
+                int element = Integer.parseInt(split[i]);
+                if (element > max) {
+                    max = element;
+                }
+            }
+            return max;
+        } else {
+            return 0;
+        }
+    }
+
     /**
      * 查询裂解炉炉管测温列表
      */

+ 141 - 0
master/src/main/java/com/ruoyi/project/production/controller/vo/FurnanceTemperatureVO.java

@@ -0,0 +1,141 @@
+package com.ruoyi.project.production.controller.vo;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+
+import java.util.Date;
+
+/**
+ * 裂解炉管测温VO
+ *
+ * @author Wang Zi Wen
+ * @email wangggziwen@163.com
+ * @date 2024/03/28 13:05:27
+ */
+public class FurnanceTemperatureVO extends BaseEntity {
+
+    private static final long serialVersionUID = 1L;
+
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "巡检日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date recordTime;
+
+    private String h109Out;
+
+    private String h110Out;
+
+    private String h111Out;
+
+    private String h112Out;
+
+    private String h113Out;
+
+    private String h114Out;
+
+    private String h115Out;
+
+    private String h116Out;
+
+    private String h117Out;
+
+    private String h118Out;
+
+    private String h130Out;
+
+    public Date getRecordTime() {
+        return recordTime;
+    }
+
+    public void setRecordTime(Date recordTime) {
+        this.recordTime = recordTime;
+    }
+
+    public String getH109Out() {
+        return h109Out;
+    }
+
+    public void setH109Out(String h109Out) {
+        this.h109Out = h109Out;
+    }
+
+    public String getH110Out() {
+        return h110Out;
+    }
+
+    public void setH110Out(String h110Out) {
+        this.h110Out = h110Out;
+    }
+
+    public String getH111Out() {
+        return h111Out;
+    }
+
+    public void setH111Out(String h111Out) {
+        this.h111Out = h111Out;
+    }
+
+    public String getH112Out() {
+        return h112Out;
+    }
+
+    public void setH112Out(String h112Out) {
+        this.h112Out = h112Out;
+    }
+
+    public String getH113Out() {
+        return h113Out;
+    }
+
+    public void setH113Out(String h113Out) {
+        this.h113Out = h113Out;
+    }
+
+    public String getH114Out() {
+        return h114Out;
+    }
+
+    public void setH114Out(String h114Out) {
+        this.h114Out = h114Out;
+    }
+
+    public String getH115Out() {
+        return h115Out;
+    }
+
+    public void setH115Out(String h115Out) {
+        this.h115Out = h115Out;
+    }
+
+    public String getH116Out() {
+        return h116Out;
+    }
+
+    public void setH116Out(String h116Out) {
+        this.h116Out = h116Out;
+    }
+
+    public String getH117Out() {
+        return h117Out;
+    }
+
+    public void setH117Out(String h117Out) {
+        this.h117Out = h117Out;
+    }
+
+    public String getH118Out() {
+        return h118Out;
+    }
+
+    public void setH118Out(String h118Out) {
+        this.h118Out = h118Out;
+    }
+
+    public String getH130Out() {
+        return h130Out;
+    }
+
+    public void setH130Out(String h130Out) {
+        this.h130Out = h130Out;
+    }
+}

+ 19 - 1
ui/src/api/production/temperature.js

@@ -1,5 +1,23 @@
 import request from '@/utils/request'
 
+// 查询裂解炉炉管测温MAX
+export function listMax(query) {
+  return request({
+    url: '/production/temperature/max',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询裂解炉炉管测温COIL
+export function listCoil(query) {
+  return request({
+    url: '/production/temperature/coil',
+    method: 'get',
+    params: query
+  })
+}
+
 // 查询裂解炉炉管测温列表
 export function listTemperature(query) {
   return request({
@@ -50,4 +68,4 @@ export function exportTemperature(query) {
     method: 'get',
     params: query
   })
-}
+}

+ 432 - 0
ui/src/views/production/temperature/coil.vue

@@ -0,0 +1,432 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="巡检日期" prop="recordTime">
+        <el-date-picker
+          v-model="queryParams.recordTime"
+          type="month"
+          value-format="yyyy-MM"
+          placeholder="选择巡检日期">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item>
+        <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+    <el-table v-loading="loading" :data="temperatureList" @selection-change="handleSelectionChange" :height="clientHeight" border>
+      <el-table-column label="巡检日期" align="center" prop="recordTime" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.recordTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="H109 OUT" align="center" prop="h109Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h109Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H110 OUT" align="center" prop="h110Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h110Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H111 OUT" align="center" prop="h111Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h111Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H112 OUT" align="center" prop="h112Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h112Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H113 OUT" align="center" prop="h113Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h113Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H114 OUT" align="center" prop="h114Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h114Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H115 OUT" align="center" prop="h115Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h115Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H116 OUT" align="center" prop="h116Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h116Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H117 OUT" align="center" prop="h117Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h117Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H118 OUT" align="center" prop="h118Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 8" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h118Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+      <el-table-column label="H130 OUT" align="center" prop="h130Out" :show-overflow-tooltip="true">
+        <el-table-column v-for="(item,index) in 12" :label="'PASS '+(index+1).toString()" align="center" width="80">
+          <template slot-scope="scope">
+            <span>{{ scope.row.h130Out[index] }}</span>
+          </template>
+        </el-table-column>
+      </el-table-column>
+    </el-table>
+  </div>
+</template>
+
+<script>
+  import { listCoil } from "@/api/production/temperature";
+  import { treeselect } from "@/api/system/dept";
+  import { getToken } from "@/utils/auth";
+  import Treeselect from "@riophae/vue-treeselect";
+  import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+
+  export default {
+    name: "Temperature",
+    components: { Treeselect },
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 裂解炉炉管测温表格数据
+        temperatureList: [],
+        // 弹出层标题
+        title: "",
+        // 部门树选项
+        deptOptions: undefined,
+        clientHeight:300,
+        // 是否显示弹出层
+        open: false,
+        // 用户导入参数
+        upload: {
+          // 是否显示弹出层(用户导入)
+          open: false,
+          // 弹出层标题(用户导入)
+          title: "",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/production/temperature/importData"
+        },
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 20,
+          furnanceName: null,
+          recordTime: null,
+          pass1: null,
+          pass2: null,
+          pass3: null,
+          pass4: null,
+          pass5: null,
+          pass6: null,
+          pass7: null,
+          pass8: null,
+          pass9: null,
+          pass10: null,
+          pass11: null,
+          pass12: null,
+          pass13: null,
+          pass14: null,
+          pass15: null,
+          pass16: null,
+          deptId: null,
+        },
+        recordTime: null,
+        // 表单参数
+        form: {},
+        h109Out:[],
+        h110Out:[],
+        h111Out:[],
+        h112Out:[],
+        h113Out:[],
+        h114Out:[],
+        h115Out:[],
+        h116Out:[],
+        h117Out:[],
+        h118Out:[],
+        h130Out:[],
+        // 表单校验
+        rules: {
+          id: [
+            { required: true, message: "主键id不能为空", trigger: "blur" }
+          ],
+        }
+      };
+    },
+    watch: {
+      // 根据名称筛选部门树
+      deptName(val) {
+        this.$refs.tree.filter(val);
+      }
+    },
+    created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+        this.clientHeight = document.body.clientHeight -250
+      })
+      // this.getList();
+      // this.getTreeselect();
+    },
+    methods: {
+      init() {
+        this.getList();
+      },
+      /** 查询裂解炉炉管测温列表 */
+      getList() {
+        this.loading = true;
+        listCoil(this.queryParams).then(response => {
+          for (let i = 0; i< response.data.length; i++) {
+            if (response.data[i].h109Out == null) { response.data[i].h109Out = []; } else { response.data[i].h109Out = response.data[i].h109Out.split(','); }
+            if (response.data[i].h110Out == null) { response.data[i].h110Out = []; } else { response.data[i].h110Out = response.data[i].h110Out.split(','); }
+            if (response.data[i].h111Out == null) { response.data[i].h111Out = []; } else { response.data[i].h111Out = response.data[i].h111Out.split(','); }
+            if (response.data[i].h112Out == null) { response.data[i].h112Out = []; } else { response.data[i].h112Out = response.data[i].h112Out.split(','); }
+            if (response.data[i].h113Out == null) { response.data[i].h113Out = []; } else { response.data[i].h113Out = response.data[i].h113Out.split(','); }
+            if (response.data[i].h114Out == null) { response.data[i].h114Out = []; } else { response.data[i].h114Out = response.data[i].h114Out.split(','); }
+            if (response.data[i].h115Out == null) { response.data[i].h115Out = []; } else { response.data[i].h115Out = response.data[i].h115Out.split(','); }
+            if (response.data[i].h116Out == null) { response.data[i].h116Out = []; } else { response.data[i].h116Out = response.data[i].h116Out.split(','); }
+            if (response.data[i].h117Out == null) { response.data[i].h117Out = []; } else { response.data[i].h117Out = response.data[i].h117Out.split(','); }
+            if (response.data[i].h118Out == null) { response.data[i].h118Out = []; } else { response.data[i].h118Out = response.data[i].h118Out.split(','); }
+            if (response.data[i].h130Out == null) { response.data[i].h130Out = []; } else { response.data[i].h130Out = response.data[i].h130Out.split(','); }
+          }
+          this.temperatureList = response.data;
+          this.loading = false;
+        });
+      },
+      /** 查询部门下拉树结构 */
+      getTreeselect() {
+        treeselect().then(response => {
+          this.deptOptions = response.data;
+        });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+        this.reset();
+      },
+      // 表单重置
+      reset() {
+        this.form = {
+          id: null,
+          furnanceName: null,
+          recordTime: null,
+          pass1: null,
+          pass2: null,
+          pass3: null,
+          pass4: null,
+          pass5: null,
+          pass6: null,
+          pass7: null,
+          pass8: null,
+          pass9: null,
+          pass10: null,
+          pass11: null,
+          pass12: null,
+          pass13: null,
+          pass14: null,
+          pass15: null,
+          pass16: null,
+          deptId: null,
+          delFlag: null,
+          createBy: null,
+          createTime: null,
+          updateBy: null,
+          updateTime: null,
+        };
+        this.pass1 = [];
+        this.pass2 = [];
+        this.pass3 = [];
+        this.pass4 = [];
+        this.pass5 = [];
+        this.pass6 = [];
+        this.pass7 = [];
+        this.pass8 = [];
+        this.pass9 = [];
+        this.pass10 = [];
+        this.pass11 = [];
+        this.pass12 = [];
+        this.pass13 = [];
+        this.pass14 = [];
+        this.pass15 = [];
+        this.pass16 = [];
+        this.resetForm("form");
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.resetForm("queryForm");
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.id)
+        this.single = selection.length!==1
+        this.multiple = !selection.length
+      },
+      /** 新增按钮操作 */
+      handleAdd() {
+        this.reset();
+        this.form.furnanceName = "H130";
+        this.open = true;
+        this.title = "添加裂解炉炉管测温";
+      },
+      /** 修改按钮操作 */
+      handleUpdate(row) {
+        this.reset();
+        const id = row.id || this.ids
+        getTemperature(id).then(response => {
+          this.form = response.data;
+          if (response.data.pass1 == null) { this.pass1 = []; } else { this.pass1 = response.data.pass1.split(','); }
+          if (response.data.pass2 == null) { this.pass2 = []; } else { this.pass2 = response.data.pass2.split(','); }
+          if (response.data.pass3 == null) { this.pass3 = []; } else { this.pass3 = response.data.pass3.split(','); }
+          if (response.data.pass4 == null) { this.pass4 = []; } else { this.pass4 = response.data.pass4.split(','); }
+          if (response.data.pass5 == null) { this.pass5 = []; } else { this.pass5 = response.data.pass5.split(','); }
+          if (response.data.pass6 == null) { this.pass6 = []; } else { this.pass6 = response.data.pass6.split(','); }
+          if (response.data.pass7 == null) { this.pass7 = []; } else { this.pass7 = response.data.pass7.split(','); }
+          if (response.data.pass8 == null) { this.pass8 = []; } else { this.pass8 = response.data.pass8.split(','); }
+          if (response.data.pass9 == null) { this.pass9 = []; } else { this.pass9 = response.data.pass9.split(','); }
+          if (response.data.pass10 == null) { this.pass10 = []; } else { this.pass10 = response.data.pass10.split(','); }
+          if (response.data.pass11 == null) { this.pass11 = []; } else { this.pass11 = response.data.pass11.split(','); }
+          if (response.data.pass12 == null) { this.pass12 = []; } else { this.pass12 = response.data.pass12.split(','); }
+          this.open = true;
+          this.title = "修改裂解炉炉管测温";
+        });
+      },
+      /** 提交按钮 */
+      submitForm() {
+        this.form.pass1 = this.pass1.join(",");
+        this.form.pass2 = this.pass2.join(",");
+        this.form.pass3 = this.pass3.join(",");
+        this.form.pass4 = this.pass4.join(",");
+        this.form.pass5 = this.pass5.join(",");
+        this.form.pass6 = this.pass6.join(",");
+        this.form.pass7 = this.pass7.join(",");
+        this.form.pass8 = this.pass8.join(",");
+        this.form.pass9 = this.pass9.join(",");
+        this.form.pass10 = this.pass10.join(",");
+        this.form.pass11 = this.pass11.join(",");
+        this.form.pass12 = this.pass12.join(",");
+        this.form.pass13 = this.pass13.join(",");
+        this.form.pass14 = this.pass14.join(",");
+        this.form.pass15 = this.pass15.join(",");
+        this.form.pass16 = this.pass16.join(",");
+        this.$refs["form"].validate(valid => {
+          if (valid) {
+            if (this.form.id != null) {
+              updateTemperature(this.form).then(response => {
+                this.msgSuccess("修改成功");
+                this.open = false;
+                this.getList();
+              });
+            } else {
+              addTemperature(this.form).then(response => {
+                this.msgSuccess("新增成功");
+                this.open = false;
+                this.getList();
+              });
+            }
+          }
+        });
+      },
+      /** 删除按钮操作 */
+      handleDelete(row) {
+        const ids = row.id || this.ids;
+        this.$confirm('是否确认删除?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return delTemperature(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        })
+      },
+      /** 导出按钮操作 */
+      handleExport() {
+        const queryParams = this.queryParams;
+        this.$confirm('是否确认导出所有裂解炉炉管测温数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return exportTemperature(queryParams);
+        }).then(response => {
+          this.download(response.msg);
+        })
+      },
+      /** 导入按钮操作 */
+      handleImport() {
+        this.upload.title = "用户导入";
+        this.upload.open = true;
+      },
+      /** 下载模板操作 */
+      importTemplate() {
+        importTemplate().then(response => {
+          this.download(response.msg);
+        });
+      },
+      // 文件上传中处理
+      handleFileUploadProgress(event, file, fileList) {
+        this.upload.isUploading = true;
+      },
+      // 文件上传成功处理
+      handleFileSuccess(response, file, fileList) {
+        this.upload.open = false;
+        this.upload.isUploading = false;
+        this.$refs.upload.clearFiles();
+        this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
+        this.getList();
+      },
+      // 提交上传文件
+      submitFileForm() {
+        this.$refs.upload.submit();
+      }
+    }
+  };
+</script>

+ 0 - 0
ui/src/views/production/temperature/H109.vue → ui/src/views/production/temperature/h109.vue


+ 0 - 0
ui/src/views/production/temperature/H110.vue → ui/src/views/production/temperature/h110.vue


+ 0 - 0
ui/src/views/production/temperature/H111.vue → ui/src/views/production/temperature/h111.vue


+ 0 - 0
ui/src/views/production/temperature/H112.vue → ui/src/views/production/temperature/h112.vue


+ 0 - 0
ui/src/views/production/temperature/H113.vue → ui/src/views/production/temperature/h113.vue


+ 0 - 0
ui/src/views/production/temperature/H114.vue → ui/src/views/production/temperature/h114.vue


+ 0 - 0
ui/src/views/production/temperature/H115.vue → ui/src/views/production/temperature/h115.vue


+ 0 - 0
ui/src/views/production/temperature/H116.vue → ui/src/views/production/temperature/h116.vue


+ 0 - 0
ui/src/views/production/temperature/H117.vue → ui/src/views/production/temperature/h117.vue


+ 0 - 0
ui/src/views/production/temperature/H118.vue → ui/src/views/production/temperature/h118.vue


+ 0 - 0
ui/src/views/production/temperature/H130.vue → ui/src/views/production/temperature/h130.vue


+ 31 - 25
ui/src/views/production/temperature/index.vue

@@ -1,38 +1,40 @@
 <template>
   <div class="app-container">
     <el-tabs :tab-position="tabPosition" @tab-click="handleClick" v-model="activeName">
-      <el-tab-pane label="H109" name="h109"><H109 ref="h109"></H109></el-tab-pane>
-      <el-tab-pane label="H110" name="h110"><H110 ref="h110"></H110></el-tab-pane>
-      <el-tab-pane label="H111" name="h111"><H111 ref="h111"></H111></el-tab-pane>
-      <el-tab-pane label="H112" name="h112"><H112 ref="h112"></H112></el-tab-pane>
-      <el-tab-pane label="H113" name="h113"><H113 ref="h113"></H113></el-tab-pane>
-      <el-tab-pane label="H114" name="h114"><H114 ref="h114"></H114></el-tab-pane>
-      <el-tab-pane label="H115" name="h115"><H115 ref="h115"></H115></el-tab-pane>
-      <el-tab-pane label="H116" name="h116"><H116 ref="h116"></H116></el-tab-pane>
-      <el-tab-pane label="H117" name="h117"><H117 ref="h117"></H117></el-tab-pane>
-      <el-tab-pane label="H118" name="h118"><H118 ref="h118"></H118></el-tab-pane>
-      <el-tab-pane label="H130" name="h130"><H130 ref="h130"></H130></el-tab-pane>
-      <el-tab-pane label="COIL" name="coil">COIL</el-tab-pane>
-      <el-tab-pane label="MAX" name="max">MAX</el-tab-pane>
+      <el-tab-pane label="H109" name="h109"><h109 ref="h109"></h109></el-tab-pane>
+      <el-tab-pane label="H110" name="h110"><h110 ref="h110"></h110></el-tab-pane>
+      <el-tab-pane label="H111" name="h111"><h111 ref="h111"></h111></el-tab-pane>
+      <el-tab-pane label="H112" name="h112"><h112 ref="h112"></h112></el-tab-pane>
+      <el-tab-pane label="H113" name="h113"><h113 ref="h113"></h113></el-tab-pane>
+      <el-tab-pane label="H114" name="h114"><h114 ref="h114"></h114></el-tab-pane>
+      <el-tab-pane label="H115" name="h115"><h115 ref="h115"></h115></el-tab-pane>
+      <el-tab-pane label="H116" name="h116"><h116 ref="h116"></h116></el-tab-pane>
+      <el-tab-pane label="H117" name="h117"><h117 ref="h117"></h117></el-tab-pane>
+      <el-tab-pane label="H118" name="h118"><h118 ref="h118"></h118></el-tab-pane>
+      <el-tab-pane label="H130" name="h130"><h130 ref="h130"></h130></el-tab-pane>
+      <el-tab-pane label="COIL" name="coil"><coil ref="coil"></coil></el-tab-pane>
+      <el-tab-pane label="MAX" name="max"><max ref="max"></max></el-tab-pane>
     </el-tabs>
   </div>
 </template>
 
 <script>
-  import H109 from "./H109"
-  import H110 from "./H110"
-  import H111 from "./H111"
-  import H112 from "./H112"
-  import H113 from "./H113"
-  import H114 from "./H114"
-  import H115 from "./H115"
-  import H116 from "./H116"
-  import H117 from "./H117"
-  import H118 from "./H118"
-  import H130 from "./H130"
+  import h109 from "./h109"
+  import h110 from "./h110"
+  import h111 from "./h111"
+  import h112 from "./h112"
+  import h113 from "./h113"
+  import h114 from "./h114"
+  import h115 from "./h115"
+  import h116 from "./h116"
+  import h117 from "./h117"
+  import h118 from "./h118"
+  import h130 from "./h130"
+  import coil from "./coil"
+  import max from "./max"
   export default {
     name: "Temperature",
-    components: { H109, H110, H111, H112, H113, H114, H115, H116, H117, H118, H130 },
+    components: { h109, h110, h111, h112, h113, h114, h115, h116, h117, h118, h130, coil, max },
     data() {
       return {
         tabPosition: 'left',
@@ -68,6 +70,10 @@
           this.$refs.h118.init();
         } else if (this.activeName == 'h130') {
           this.$refs.h130.init();
+        } else if (this.activeName == 'coil') {
+          this.$refs.coil.init();
+        } else if (this.activeName == 'max') {
+          this.$refs.max.init();
         }
       },
     }

+ 353 - 0
ui/src/views/production/temperature/max.vue

@@ -0,0 +1,353 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="巡检日期" prop="recordTime">
+        <el-date-picker
+          v-model="queryParams.recordTime"
+          type="month"
+          value-format="yyyy-MM"
+          placeholder="选择巡检日期">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item>
+        <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+    <el-table v-loading="loading" :data="temperatureList" @selection-change="handleSelectionChange" :height="clientHeight" border>
+      <el-table-column label="巡检日期" align="center" prop="recordTime" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.recordTime, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="H109 OUT" align="center" prop="h109Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H110 OUT" align="center" prop="h110Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H111 OUT" align="center" prop="h111Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H112 OUT" align="center" prop="h112Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H113 OUT" align="center" prop="h113Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H114 OUT" align="center" prop="h114Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H115 OUT" align="center" prop="h115Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H116 OUT" align="center" prop="h116Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H117 OUT" align="center" prop="h117Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H118 OUT" align="center" prop="h118Out" :show-overflow-tooltip="true"></el-table-column>
+      <el-table-column label="H130 OUT" align="center" prop="h130Out" :show-overflow-tooltip="true"></el-table-column>
+    </el-table>
+  </div>
+</template>
+
+<script>
+  import { listMax } from "@/api/production/temperature";
+  import { treeselect } from "@/api/system/dept";
+  import { getToken } from "@/utils/auth";
+  import Treeselect from "@riophae/vue-treeselect";
+  import "@riophae/vue-treeselect/dist/vue-treeselect.css";
+
+  export default {
+    name: "Temperature",
+    components: { Treeselect },
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 裂解炉炉管测温表格数据
+        temperatureList: [],
+        // 弹出层标题
+        title: "",
+        // 部门树选项
+        deptOptions: undefined,
+        clientHeight:300,
+        // 是否显示弹出层
+        open: false,
+        // 用户导入参数
+        upload: {
+          // 是否显示弹出层(用户导入)
+          open: false,
+          // 弹出层标题(用户导入)
+          title: "",
+          // 是否禁用上传
+          isUploading: false,
+          // 是否更新已经存在的用户数据
+          updateSupport: 0,
+          // 设置上传的请求头部
+          headers: { Authorization: "Bearer " + getToken() },
+          // 上传的地址
+          url: process.env.VUE_APP_BASE_API + "/production/temperature/importData"
+        },
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 20,
+          furnanceName: null,
+          recordTime: null,
+          pass1: null,
+          pass2: null,
+          pass3: null,
+          pass4: null,
+          pass5: null,
+          pass6: null,
+          pass7: null,
+          pass8: null,
+          pass9: null,
+          pass10: null,
+          pass11: null,
+          pass12: null,
+          pass13: null,
+          pass14: null,
+          pass15: null,
+          pass16: null,
+          deptId: null,
+        },
+        recordTime: null,
+        // 表单参数
+        form: {},
+        h109Out:[],
+        h110Out:[],
+        h111Out:[],
+        h112Out:[],
+        h113Out:[],
+        h114Out:[],
+        h115Out:[],
+        h116Out:[],
+        h117Out:[],
+        h118Out:[],
+        h130Out:[],
+        // 表单校验
+        rules: {
+          id: [
+            { required: true, message: "主键id不能为空", trigger: "blur" }
+          ],
+        }
+      };
+    },
+    watch: {
+      // 根据名称筛选部门树
+      deptName(val) {
+        this.$refs.tree.filter(val);
+      }
+    },
+    created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+        this.clientHeight = document.body.clientHeight -250
+      })
+      // this.getList();
+      // this.getTreeselect();
+    },
+    methods: {
+      init() {
+        this.getList();
+      },
+      /** 查询裂解炉炉管测温列表 */
+      getList() {
+        this.loading = true;
+        listMax(this.queryParams).then(response => {
+          this.temperatureList = response.data;
+          this.loading = false;
+        });
+      },
+      /** 查询部门下拉树结构 */
+      getTreeselect() {
+        treeselect().then(response => {
+          this.deptOptions = response.data;
+        });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+        this.reset();
+      },
+      // 表单重置
+      reset() {
+        this.form = {
+          id: null,
+          furnanceName: null,
+          recordTime: null,
+          pass1: null,
+          pass2: null,
+          pass3: null,
+          pass4: null,
+          pass5: null,
+          pass6: null,
+          pass7: null,
+          pass8: null,
+          pass9: null,
+          pass10: null,
+          pass11: null,
+          pass12: null,
+          pass13: null,
+          pass14: null,
+          pass15: null,
+          pass16: null,
+          deptId: null,
+          delFlag: null,
+          createBy: null,
+          createTime: null,
+          updateBy: null,
+          updateTime: null,
+        };
+        this.pass1 = [];
+        this.pass2 = [];
+        this.pass3 = [];
+        this.pass4 = [];
+        this.pass5 = [];
+        this.pass6 = [];
+        this.pass7 = [];
+        this.pass8 = [];
+        this.pass9 = [];
+        this.pass10 = [];
+        this.pass11 = [];
+        this.pass12 = [];
+        this.pass13 = [];
+        this.pass14 = [];
+        this.pass15 = [];
+        this.pass16 = [];
+        this.resetForm("form");
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.resetForm("queryForm");
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.id)
+        this.single = selection.length!==1
+        this.multiple = !selection.length
+      },
+      /** 新增按钮操作 */
+      handleAdd() {
+        this.reset();
+        this.form.furnanceName = "H130";
+        this.open = true;
+        this.title = "添加裂解炉炉管测温";
+      },
+      /** 修改按钮操作 */
+      handleUpdate(row) {
+        this.reset();
+        const id = row.id || this.ids
+        getTemperature(id).then(response => {
+          this.form = response.data;
+          if (response.data.pass1 == null) { this.pass1 = []; } else { this.pass1 = response.data.pass1.split(','); }
+          if (response.data.pass2 == null) { this.pass2 = []; } else { this.pass2 = response.data.pass2.split(','); }
+          if (response.data.pass3 == null) { this.pass3 = []; } else { this.pass3 = response.data.pass3.split(','); }
+          if (response.data.pass4 == null) { this.pass4 = []; } else { this.pass4 = response.data.pass4.split(','); }
+          if (response.data.pass5 == null) { this.pass5 = []; } else { this.pass5 = response.data.pass5.split(','); }
+          if (response.data.pass6 == null) { this.pass6 = []; } else { this.pass6 = response.data.pass6.split(','); }
+          if (response.data.pass7 == null) { this.pass7 = []; } else { this.pass7 = response.data.pass7.split(','); }
+          if (response.data.pass8 == null) { this.pass8 = []; } else { this.pass8 = response.data.pass8.split(','); }
+          if (response.data.pass9 == null) { this.pass9 = []; } else { this.pass9 = response.data.pass9.split(','); }
+          if (response.data.pass10 == null) { this.pass10 = []; } else { this.pass10 = response.data.pass10.split(','); }
+          if (response.data.pass11 == null) { this.pass11 = []; } else { this.pass11 = response.data.pass11.split(','); }
+          if (response.data.pass12 == null) { this.pass12 = []; } else { this.pass12 = response.data.pass12.split(','); }
+          this.open = true;
+          this.title = "修改裂解炉炉管测温";
+        });
+      },
+      /** 提交按钮 */
+      submitForm() {
+        this.form.pass1 = this.pass1.join(",");
+        this.form.pass2 = this.pass2.join(",");
+        this.form.pass3 = this.pass3.join(",");
+        this.form.pass4 = this.pass4.join(",");
+        this.form.pass5 = this.pass5.join(",");
+        this.form.pass6 = this.pass6.join(",");
+        this.form.pass7 = this.pass7.join(",");
+        this.form.pass8 = this.pass8.join(",");
+        this.form.pass9 = this.pass9.join(",");
+        this.form.pass10 = this.pass10.join(",");
+        this.form.pass11 = this.pass11.join(",");
+        this.form.pass12 = this.pass12.join(",");
+        this.form.pass13 = this.pass13.join(",");
+        this.form.pass14 = this.pass14.join(",");
+        this.form.pass15 = this.pass15.join(",");
+        this.form.pass16 = this.pass16.join(",");
+        this.$refs["form"].validate(valid => {
+          if (valid) {
+            if (this.form.id != null) {
+              updateTemperature(this.form).then(response => {
+                this.msgSuccess("修改成功");
+                this.open = false;
+                this.getList();
+              });
+            } else {
+              addTemperature(this.form).then(response => {
+                this.msgSuccess("新增成功");
+                this.open = false;
+                this.getList();
+              });
+            }
+          }
+        });
+      },
+      /** 删除按钮操作 */
+      handleDelete(row) {
+        const ids = row.id || this.ids;
+        this.$confirm('是否确认删除?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return delTemperature(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        })
+      },
+      /** 导出按钮操作 */
+      handleExport() {
+        const queryParams = this.queryParams;
+        this.$confirm('是否确认导出所有裂解炉炉管测温数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return exportTemperature(queryParams);
+        }).then(response => {
+          this.download(response.msg);
+        })
+      },
+      /** 导入按钮操作 */
+      handleImport() {
+        this.upload.title = "用户导入";
+        this.upload.open = true;
+      },
+      /** 下载模板操作 */
+      importTemplate() {
+        importTemplate().then(response => {
+          this.download(response.msg);
+        });
+      },
+      // 文件上传中处理
+      handleFileUploadProgress(event, file, fileList) {
+        this.upload.isUploading = true;
+      },
+      // 文件上传成功处理
+      handleFileSuccess(response, file, fileList) {
+        this.upload.open = false;
+        this.upload.isUploading = false;
+        this.$refs.upload.clearFiles();
+        this.$alert(response.msg, "导入结果", { dangerouslyUseHTMLString: true });
+        this.getList();
+      },
+      // 提交上传文件
+      submitFileForm() {
+        this.$refs.upload.submit();
+      }
+    }
+  };
+</script>