Просмотр исходного кода

可靠性清单管理、关键部件库存清单、不良因素清单、装置风险清单、装置经验数据库,表和基础页面

zhangding 2 лет назад
Родитель
Сommit
5ed78c0800
42 измененных файлов с 5974 добавлено и 2 удалено
  1. 1 1
      master/src/main/java/com/ruoyi/project/intact/controller/TIntactApproveController.java
  2. 103 0
      master/src/main/java/com/ruoyi/project/reliability/controller/TDeviceExperienceController.java
  3. 103 0
      master/src/main/java/com/ruoyi/project/reliability/controller/TDeviceInventoryPartsController.java
  4. 103 0
      master/src/main/java/com/ruoyi/project/reliability/controller/TDeviceNagetiveFactorController.java
  5. 103 0
      master/src/main/java/com/ruoyi/project/reliability/controller/TDeviceRiskController.java
  6. 103 0
      master/src/main/java/com/ruoyi/project/reliability/controller/TKekaoMgListController.java
  7. 148 0
      master/src/main/java/com/ruoyi/project/reliability/domain/TDeviceExperience.java
  8. 223 0
      master/src/main/java/com/ruoyi/project/reliability/domain/TDeviceInventoryParts.java
  9. 195 0
      master/src/main/java/com/ruoyi/project/reliability/domain/TDeviceNagetiveFactor.java
  10. 209 0
      master/src/main/java/com/ruoyi/project/reliability/domain/TDeviceRisk.java
  11. 151 0
      master/src/main/java/com/ruoyi/project/reliability/domain/TKekaoMgList.java
  12. 63 0
      master/src/main/java/com/ruoyi/project/reliability/mapper/TDeviceExperienceMapper.java
  13. 63 0
      master/src/main/java/com/ruoyi/project/reliability/mapper/TDeviceInventoryPartsMapper.java
  14. 63 0
      master/src/main/java/com/ruoyi/project/reliability/mapper/TDeviceNagetiveFactorMapper.java
  15. 63 0
      master/src/main/java/com/ruoyi/project/reliability/mapper/TDeviceRiskMapper.java
  16. 66 0
      master/src/main/java/com/ruoyi/project/reliability/mapper/TKekaoMgListMapper.java
  17. 61 0
      master/src/main/java/com/ruoyi/project/reliability/service/ITDeviceExperienceService.java
  18. 61 0
      master/src/main/java/com/ruoyi/project/reliability/service/ITDeviceInventoryPartsService.java
  19. 61 0
      master/src/main/java/com/ruoyi/project/reliability/service/ITDeviceNagetiveFactorService.java
  20. 61 0
      master/src/main/java/com/ruoyi/project/reliability/service/ITDeviceRiskService.java
  21. 64 0
      master/src/main/java/com/ruoyi/project/reliability/service/ITKekaoMgListService.java
  22. 93 0
      master/src/main/java/com/ruoyi/project/reliability/service/impl/TDeviceExperienceServiceImpl.java
  23. 93 0
      master/src/main/java/com/ruoyi/project/reliability/service/impl/TDeviceInventoryPartsServiceImpl.java
  24. 93 0
      master/src/main/java/com/ruoyi/project/reliability/service/impl/TDeviceNagetiveFactorServiceImpl.java
  25. 93 0
      master/src/main/java/com/ruoyi/project/reliability/service/impl/TDeviceRiskServiceImpl.java
  26. 97 0
      master/src/main/java/com/ruoyi/project/reliability/service/impl/TKekaoMgListServiceImpl.java
  27. 1 1
      master/src/main/resources/application.yml
  28. 101 0
      master/src/main/resources/mybatis/reliability/TDeviceExperienceMapper.xml
  29. 126 0
      master/src/main/resources/mybatis/reliability/TDeviceInventoryPartsMapper.xml
  30. 116 0
      master/src/main/resources/mybatis/reliability/TDeviceNagetiveFactorMapper.xml
  31. 121 0
      master/src/main/resources/mybatis/reliability/TDeviceRiskMapper.xml
  32. 101 0
      master/src/main/resources/mybatis/reliability/TKekaoMgListMapper.xml
  33. 53 0
      ui/src/api/reliability/experience.js
  34. 53 0
      ui/src/api/reliability/factor.js
  35. 53 0
      ui/src/api/reliability/kekao.js
  36. 53 0
      ui/src/api/reliability/parts.js
  37. 53 0
      ui/src/api/reliability/risk.js
  38. 455 0
      ui/src/views/reliability/experience/index.vue
  39. 523 0
      ui/src/views/reliability/factor/index.vue
  40. 542 0
      ui/src/views/reliability/kekao/index.vue
  41. 549 0
      ui/src/views/reliability/parts/index.vue
  42. 537 0
      ui/src/views/reliability/risk/index.vue

+ 1 - 1
master/src/main/java/com/ruoyi/project/intact/controller/TIntactApproveController.java

@@ -313,7 +313,7 @@ public class TIntactApproveController extends BaseController
         String processInstancesId = task.getProcessInstanceId();
         System.out.println(processInstancesId);
         //年度报告申请检查人员会签判断
-        if (task.getName().equals("维修经理")) {
+        if (task.getName().equals("工艺总监")) {
             //获取当前任务流转列表
             HistoricTaskInstanceQuery htiq = historyService.createHistoricTaskInstanceQuery();
             List<HistoricTaskInstance> htiLists = htiq.processInstanceId(processInstancesId).finished().orderByHistoricTaskInstanceEndTime().asc().list();

+ 103 - 0
master/src/main/java/com/ruoyi/project/reliability/controller/TDeviceExperienceController.java

@@ -0,0 +1,103 @@
+package com.ruoyi.project.reliability.controller;
+
+import java.util.List;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
+import com.ruoyi.project.reliability.domain.TDeviceExperience;
+import com.ruoyi.project.reliability.service.ITDeviceExperienceService;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.web.page.TableDataInfo;
+
+/**
+ * 装置经验数据库Controller
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@RestController
+@RequestMapping("/reliability/experience")
+public class TDeviceExperienceController extends BaseController
+{
+    @Autowired
+    private ITDeviceExperienceService tDeviceExperienceService;
+
+    /**
+     * 查询装置经验数据库列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:experience:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TDeviceExperience tDeviceExperience)
+    {
+        startPage();
+        List<TDeviceExperience> list = tDeviceExperienceService.selectTDeviceExperienceList(tDeviceExperience);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出装置经验数据库列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:experience:export')")
+    @Log(title = "装置经验数据库", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(TDeviceExperience tDeviceExperience)
+    {
+        List<TDeviceExperience> list = tDeviceExperienceService.selectTDeviceExperienceList(tDeviceExperience);
+        ExcelUtil<TDeviceExperience> util = new ExcelUtil<TDeviceExperience>(TDeviceExperience.class);
+        return util.exportExcel(list, "experience");
+    }
+
+    /**
+     * 获取装置经验数据库详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:experience:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tDeviceExperienceService.selectTDeviceExperienceById(id));
+    }
+
+    /**
+     * 新增装置经验数据库
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:experience:add')")
+    @Log(title = "装置经验数据库", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TDeviceExperience tDeviceExperience)
+    {
+        return toAjax(tDeviceExperienceService.insertTDeviceExperience(tDeviceExperience));
+    }
+
+    /**
+     * 修改装置经验数据库
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:experience:edit')")
+    @Log(title = "装置经验数据库", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TDeviceExperience tDeviceExperience)
+    {
+        return toAjax(tDeviceExperienceService.updateTDeviceExperience(tDeviceExperience));
+    }
+
+    /**
+     * 删除装置经验数据库
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:experience:remove')")
+    @Log(title = "装置经验数据库", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tDeviceExperienceService.deleteTDeviceExperienceByIds(ids));
+    }
+}

+ 103 - 0
master/src/main/java/com/ruoyi/project/reliability/controller/TDeviceInventoryPartsController.java

@@ -0,0 +1,103 @@
+package com.ruoyi.project.reliability.controller;
+
+import java.util.List;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
+import com.ruoyi.project.reliability.domain.TDeviceInventoryParts;
+import com.ruoyi.project.reliability.service.ITDeviceInventoryPartsService;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.web.page.TableDataInfo;
+
+/**
+ * 关键部件库存清单Controller
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@RestController
+@RequestMapping("/reliability/parts")
+public class TDeviceInventoryPartsController extends BaseController
+{
+    @Autowired
+    private ITDeviceInventoryPartsService tDeviceInventoryPartsService;
+
+    /**
+     * 查询关键部件库存清单列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:parts:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TDeviceInventoryParts tDeviceInventoryParts)
+    {
+        startPage();
+        List<TDeviceInventoryParts> list = tDeviceInventoryPartsService.selectTDeviceInventoryPartsList(tDeviceInventoryParts);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出关键部件库存清单列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:parts:export')")
+    @Log(title = "关键部件库存清单", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(TDeviceInventoryParts tDeviceInventoryParts)
+    {
+        List<TDeviceInventoryParts> list = tDeviceInventoryPartsService.selectTDeviceInventoryPartsList(tDeviceInventoryParts);
+        ExcelUtil<TDeviceInventoryParts> util = new ExcelUtil<TDeviceInventoryParts>(TDeviceInventoryParts.class);
+        return util.exportExcel(list, "parts");
+    }
+
+    /**
+     * 获取关键部件库存清单详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:parts:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tDeviceInventoryPartsService.selectTDeviceInventoryPartsById(id));
+    }
+
+    /**
+     * 新增关键部件库存清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:parts:add')")
+    @Log(title = "关键部件库存清单", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TDeviceInventoryParts tDeviceInventoryParts)
+    {
+        return toAjax(tDeviceInventoryPartsService.insertTDeviceInventoryParts(tDeviceInventoryParts));
+    }
+
+    /**
+     * 修改关键部件库存清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:parts:edit')")
+    @Log(title = "关键部件库存清单", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TDeviceInventoryParts tDeviceInventoryParts)
+    {
+        return toAjax(tDeviceInventoryPartsService.updateTDeviceInventoryParts(tDeviceInventoryParts));
+    }
+
+    /**
+     * 删除关键部件库存清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:parts:remove')")
+    @Log(title = "关键部件库存清单", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tDeviceInventoryPartsService.deleteTDeviceInventoryPartsByIds(ids));
+    }
+}

+ 103 - 0
master/src/main/java/com/ruoyi/project/reliability/controller/TDeviceNagetiveFactorController.java

@@ -0,0 +1,103 @@
+package com.ruoyi.project.reliability.controller;
+
+import java.util.List;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
+import com.ruoyi.project.reliability.domain.TDeviceNagetiveFactor;
+import com.ruoyi.project.reliability.service.ITDeviceNagetiveFactorService;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.web.page.TableDataInfo;
+
+/**
+ * 不良因素清单Controller
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@RestController
+@RequestMapping("/reliability/factor")
+public class TDeviceNagetiveFactorController extends BaseController
+{
+    @Autowired
+    private ITDeviceNagetiveFactorService tDeviceNagetiveFactorService;
+
+    /**
+     * 查询不良因素清单列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:factor:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TDeviceNagetiveFactor tDeviceNagetiveFactor)
+    {
+        startPage();
+        List<TDeviceNagetiveFactor> list = tDeviceNagetiveFactorService.selectTDeviceNagetiveFactorList(tDeviceNagetiveFactor);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出不良因素清单列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:factor:export')")
+    @Log(title = "不良因素清单", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(TDeviceNagetiveFactor tDeviceNagetiveFactor)
+    {
+        List<TDeviceNagetiveFactor> list = tDeviceNagetiveFactorService.selectTDeviceNagetiveFactorList(tDeviceNagetiveFactor);
+        ExcelUtil<TDeviceNagetiveFactor> util = new ExcelUtil<TDeviceNagetiveFactor>(TDeviceNagetiveFactor.class);
+        return util.exportExcel(list, "factor");
+    }
+
+    /**
+     * 获取不良因素清单详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:factor:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tDeviceNagetiveFactorService.selectTDeviceNagetiveFactorById(id));
+    }
+
+    /**
+     * 新增不良因素清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:factor:add')")
+    @Log(title = "不良因素清单", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TDeviceNagetiveFactor tDeviceNagetiveFactor)
+    {
+        return toAjax(tDeviceNagetiveFactorService.insertTDeviceNagetiveFactor(tDeviceNagetiveFactor));
+    }
+
+    /**
+     * 修改不良因素清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:factor:edit')")
+    @Log(title = "不良因素清单", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TDeviceNagetiveFactor tDeviceNagetiveFactor)
+    {
+        return toAjax(tDeviceNagetiveFactorService.updateTDeviceNagetiveFactor(tDeviceNagetiveFactor));
+    }
+
+    /**
+     * 删除不良因素清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:factor:remove')")
+    @Log(title = "不良因素清单", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tDeviceNagetiveFactorService.deleteTDeviceNagetiveFactorByIds(ids));
+    }
+}

+ 103 - 0
master/src/main/java/com/ruoyi/project/reliability/controller/TDeviceRiskController.java

@@ -0,0 +1,103 @@
+package com.ruoyi.project.reliability.controller;
+
+import java.util.List;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
+import com.ruoyi.project.reliability.domain.TDeviceRisk;
+import com.ruoyi.project.reliability.service.ITDeviceRiskService;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.web.page.TableDataInfo;
+
+/**
+ * 装置风险清单Controller
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@RestController
+@RequestMapping("/reliability/risk")
+public class TDeviceRiskController extends BaseController
+{
+    @Autowired
+    private ITDeviceRiskService tDeviceRiskService;
+
+    /**
+     * 查询装置风险清单列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:risk:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TDeviceRisk tDeviceRisk)
+    {
+        startPage();
+        List<TDeviceRisk> list = tDeviceRiskService.selectTDeviceRiskList(tDeviceRisk);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出装置风险清单列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:risk:export')")
+    @Log(title = "装置风险清单", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(TDeviceRisk tDeviceRisk)
+    {
+        List<TDeviceRisk> list = tDeviceRiskService.selectTDeviceRiskList(tDeviceRisk);
+        ExcelUtil<TDeviceRisk> util = new ExcelUtil<TDeviceRisk>(TDeviceRisk.class);
+        return util.exportExcel(list, "risk");
+    }
+
+    /**
+     * 获取装置风险清单详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:risk:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tDeviceRiskService.selectTDeviceRiskById(id));
+    }
+
+    /**
+     * 新增装置风险清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:risk:add')")
+    @Log(title = "装置风险清单", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TDeviceRisk tDeviceRisk)
+    {
+        return toAjax(tDeviceRiskService.insertTDeviceRisk(tDeviceRisk));
+    }
+
+    /**
+     * 修改装置风险清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:risk:edit')")
+    @Log(title = "装置风险清单", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TDeviceRisk tDeviceRisk)
+    {
+        return toAjax(tDeviceRiskService.updateTDeviceRisk(tDeviceRisk));
+    }
+
+    /**
+     * 删除装置风险清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:risk:remove')")
+    @Log(title = "装置风险清单", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tDeviceRiskService.deleteTDeviceRiskByIds(ids));
+    }
+}

+ 103 - 0
master/src/main/java/com/ruoyi/project/reliability/controller/TKekaoMgListController.java

@@ -0,0 +1,103 @@
+package com.ruoyi.project.reliability.controller;
+
+import java.util.List;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
+import com.ruoyi.project.reliability.domain.TKekaoMgList;
+import com.ruoyi.project.reliability.service.ITKekaoMgListService;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.web.page.TableDataInfo;
+
+/**
+ * 可靠性管理清单Controller
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@RestController
+@RequestMapping("/reliability/kekao")
+public class TKekaoMgListController extends BaseController
+{
+    @Autowired
+    private ITKekaoMgListService tKekaoMgListService;
+
+    /**
+     * 查询可靠性管理清单列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:list:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TKekaoMgList tKekaoMgList)
+    {
+        startPage();
+        List<TKekaoMgList> list = tKekaoMgListService.selectTKekaoMgListList(tKekaoMgList);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出可靠性管理清单列表
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:list:export')")
+    @Log(title = "可靠性管理清单", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(TKekaoMgList tKekaoMgList)
+    {
+        List<TKekaoMgList> list = tKekaoMgListService.selectTKekaoMgListList(tKekaoMgList);
+        ExcelUtil<TKekaoMgList> util = new ExcelUtil<TKekaoMgList>(TKekaoMgList.class);
+        return util.exportExcel(list, "list");
+    }
+
+    /**
+     * 获取可靠性管理清单详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:list:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tKekaoMgListService.selectTKekaoMgListById(id));
+    }
+
+    /**
+     * 新增可靠性管理清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:list:add')")
+    @Log(title = "可靠性管理清单", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TKekaoMgList tKekaoMgList)
+    {
+        return toAjax(tKekaoMgListService.insertTKekaoMgList(tKekaoMgList));
+    }
+
+    /**
+     * 修改可靠性管理清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:list:edit')")
+    @Log(title = "可靠性管理清单", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TKekaoMgList tKekaoMgList)
+    {
+        return toAjax(tKekaoMgListService.updateTKekaoMgList(tKekaoMgList));
+    }
+
+    /**
+     * 删除可靠性管理清单
+     */
+    @PreAuthorize("@ss.hasPermi('reliability:list:remove')")
+    @Log(title = "可靠性管理清单", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tKekaoMgListService.deleteTKekaoMgListByIds(ids));
+    }
+}

+ 148 - 0
master/src/main/java/com/ruoyi/project/reliability/domain/TDeviceExperience.java

@@ -0,0 +1,148 @@
+package com.ruoyi.project.reliability.domain;
+
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 装置经验数据库对象 t_device_experience
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public class TDeviceExperience extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 唯一ID */
+    private Long id;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    /** 状态 1 :正常 ;0:删除 */
+    private Long delFlag;
+
+    /** 事件 */
+    @Excel(name = "事件")
+    private String event;
+
+    /** 处理经过 */
+    @Excel(name = "处理经过")
+    private String handleProcess;
+
+    /** 处理结果 */
+    @Excel(name = "处理结果")
+    private String handleResult;
+
+    /** 获得经验 */
+    @Excel(name = "获得经验")
+    private String experience;
+
+    /** 事故报告链接 */
+    @Excel(name = "事故报告链接")
+    private String accidentReportLink;
+
+    /** 专家评价 */
+    @Excel(name = "专家评价")
+    private String expertEvaluation;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setRemarks(String remarks)
+    {
+        this.remarks = remarks;
+    }
+
+    public String getRemarks()
+    {
+        return remarks;
+    }
+    public void setDelFlag(Long delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag()
+    {
+        return delFlag;
+    }
+    public void setEvent(String event)
+    {
+        this.event = event;
+    }
+
+    public String getEvent()
+    {
+        return event;
+    }
+    public void setHandleProcess(String handleProcess)
+    {
+        this.handleProcess = handleProcess;
+    }
+
+    public String getHandleProcess()
+    {
+        return handleProcess;
+    }
+    public void setHandleResult(String handleResult)
+    {
+        this.handleResult = handleResult;
+    }
+
+    public String getHandleResult()
+    {
+        return handleResult;
+    }
+    public void setExperience(String experience)
+    {
+        this.experience = experience;
+    }
+
+    public String getExperience()
+    {
+        return experience;
+    }
+    public void setAccidentReportLink(String accidentReportLink)
+    {
+        this.accidentReportLink = accidentReportLink;
+    }
+
+    public String getAccidentReportLink()
+    {
+        return accidentReportLink;
+    }
+    public void setExpertEvaluation(String expertEvaluation)
+    {
+        this.expertEvaluation = expertEvaluation;
+    }
+
+    public String getExpertEvaluation()
+    {
+        return expertEvaluation;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("remarks", getRemarks())
+            .append("delFlag", getDelFlag())
+            .append("event", getEvent())
+            .append("handleProcess", getHandleProcess())
+            .append("handleResult", getHandleResult())
+            .append("experience", getExperience())
+            .append("accidentReportLink", getAccidentReportLink())
+            .append("expertEvaluation", getExpertEvaluation())
+            .toString();
+    }
+}

+ 223 - 0
master/src/main/java/com/ruoyi/project/reliability/domain/TDeviceInventoryParts.java

@@ -0,0 +1,223 @@
+package com.ruoyi.project.reliability.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 关键部件库存清单对象 t_device_inventory_parts
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public class TDeviceInventoryParts extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 唯一ID */
+    private Long id;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    /** 状态 1 :正常 ;0:删除 */
+    private Long delFlag;
+
+    /** 部件 */
+    @Excel(name = "部件")
+    private String parts;
+
+    /** 区域 */
+    @Excel(name = "区域")
+    private String area;
+
+    /** 适用设备 */
+    @Excel(name = "适用设备")
+    private String suitDevice;
+
+    /** 库存量 */
+    @Excel(name = "库存量")
+    private Long inventory;
+
+    /** 库存状态 */
+    @Excel(name = "库存状态")
+    private Long inventoryStatus;
+
+    /** 重要性 */
+    @Excel(name = "重要性")
+    private String importance;
+
+    /** 使用时间1 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "使用时间1", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date useDateOne;
+
+    /** 使用时间2 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "使用时间2", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date useDateTwo;
+
+    /** 更换原因 */
+    @Excel(name = "更换原因")
+    private String replaceReason;
+
+    /** 更换要求
+ */
+    @Excel(name = "更换要求")
+    private String replaceRequirement;
+
+    /** 更换主要负责人 */
+    @Excel(name = "更换主要负责人")
+    private String replaceChargePerson;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setRemarks(String remarks)
+    {
+        this.remarks = remarks;
+    }
+
+    public String getRemarks()
+    {
+        return remarks;
+    }
+    public void setDelFlag(Long delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag()
+    {
+        return delFlag;
+    }
+    public void setParts(String parts)
+    {
+        this.parts = parts;
+    }
+
+    public String getParts()
+    {
+        return parts;
+    }
+    public void setArea(String area)
+    {
+        this.area = area;
+    }
+
+    public String getArea()
+    {
+        return area;
+    }
+    public void setSuitDevice(String suitDevice)
+    {
+        this.suitDevice = suitDevice;
+    }
+
+    public String getSuitDevice()
+    {
+        return suitDevice;
+    }
+    public void setInventory(Long inventory)
+    {
+        this.inventory = inventory;
+    }
+
+    public Long getInventory()
+    {
+        return inventory;
+    }
+    public void setInventoryStatus(Long inventoryStatus)
+    {
+        this.inventoryStatus = inventoryStatus;
+    }
+
+    public Long getInventoryStatus()
+    {
+        return inventoryStatus;
+    }
+    public void setImportance(String importance)
+    {
+        this.importance = importance;
+    }
+
+    public String getImportance()
+    {
+        return importance;
+    }
+    public void setUseDateOne(Date useDateOne)
+    {
+        this.useDateOne = useDateOne;
+    }
+
+    public Date getUseDateOne()
+    {
+        return useDateOne;
+    }
+    public void setUseDateTwo(Date useDateTwo)
+    {
+        this.useDateTwo = useDateTwo;
+    }
+
+    public Date getUseDateTwo()
+    {
+        return useDateTwo;
+    }
+    public void setReplaceReason(String replaceReason)
+    {
+        this.replaceReason = replaceReason;
+    }
+
+    public String getReplaceReason()
+    {
+        return replaceReason;
+    }
+    public void setReplaceRequirement(String replaceRequirement)
+    {
+        this.replaceRequirement = replaceRequirement;
+    }
+
+    public String getReplaceRequirement()
+    {
+        return replaceRequirement;
+    }
+    public void setReplaceChargePerson(String replaceChargePerson)
+    {
+        this.replaceChargePerson = replaceChargePerson;
+    }
+
+    public String getReplaceChargePerson()
+    {
+        return replaceChargePerson;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("remarks", getRemarks())
+            .append("delFlag", getDelFlag())
+            .append("parts", getParts())
+            .append("area", getArea())
+            .append("suitDevice", getSuitDevice())
+            .append("inventory", getInventory())
+            .append("inventoryStatus", getInventoryStatus())
+            .append("importance", getImportance())
+            .append("useDateOne", getUseDateOne())
+            .append("useDateTwo", getUseDateTwo())
+            .append("replaceReason", getReplaceReason())
+            .append("replaceRequirement", getReplaceRequirement())
+            .append("replaceChargePerson", getReplaceChargePerson())
+            .toString();
+    }
+}

+ 195 - 0
master/src/main/java/com/ruoyi/project/reliability/domain/TDeviceNagetiveFactor.java

@@ -0,0 +1,195 @@
+package com.ruoyi.project.reliability.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 不良因素清单对象 t_device_nagetive_factor
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public class TDeviceNagetiveFactor extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 唯一ID */
+    private Long id;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    /** 区域 */
+    @Excel(name = "区域")
+    private String area;
+
+    /** 不良因素 */
+    @Excel(name = "不良因素")
+    private String nagetiveFactor;
+
+    /** 原因 */
+    @Excel(name = "原因")
+    private String reason;
+
+    /** 等级 */
+    @Excel(name = "等级")
+    private Long diskLevel;
+
+    /** 风险 */
+    @Excel(name = "风险")
+    private String disk;
+
+    /** 处理方法 */
+    @Excel(name = "处理方法")
+    private String handleMethods;
+
+    /** 发现日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "发现日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date discoveryDate;
+
+    /** 计划消除日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "计划消除日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date planRemoveDate;
+
+    /** 实际消除日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "实际消除日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date actualDate;
+
+    /** 状态 1 :正常 ;0:删除 */
+    private Long delFlag;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setRemarks(String remarks)
+    {
+        this.remarks = remarks;
+    }
+
+    public String getRemarks()
+    {
+        return remarks;
+    }
+    public void setArea(String area)
+    {
+        this.area = area;
+    }
+
+    public String getArea()
+    {
+        return area;
+    }
+    public void setNagetiveFactor(String nagetiveFactor)
+    {
+        this.nagetiveFactor = nagetiveFactor;
+    }
+
+    public String getNagetiveFactor()
+    {
+        return nagetiveFactor;
+    }
+    public void setReason(String reason)
+    {
+        this.reason = reason;
+    }
+
+    public String getReason()
+    {
+        return reason;
+    }
+    public void setDiskLevel(Long diskLevel)
+    {
+        this.diskLevel = diskLevel;
+    }
+
+    public Long getDiskLevel()
+    {
+        return diskLevel;
+    }
+    public void setDisk(String disk)
+    {
+        this.disk = disk;
+    }
+
+    public String getDisk()
+    {
+        return disk;
+    }
+    public void setHandleMethods(String handleMethods)
+    {
+        this.handleMethods = handleMethods;
+    }
+
+    public String getHandleMethods()
+    {
+        return handleMethods;
+    }
+    public void setDiscoveryDate(Date discoveryDate)
+    {
+        this.discoveryDate = discoveryDate;
+    }
+
+    public Date getDiscoveryDate()
+    {
+        return discoveryDate;
+    }
+    public void setPlanRemoveDate(Date planRemoveDate)
+    {
+        this.planRemoveDate = planRemoveDate;
+    }
+
+    public Date getPlanRemoveDate()
+    {
+        return planRemoveDate;
+    }
+    public void setActualDate(Date actualDate)
+    {
+        this.actualDate = actualDate;
+    }
+
+    public Date getActualDate()
+    {
+        return actualDate;
+    }
+    public void setDelFlag(Long delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag()
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("remarks", getRemarks())
+            .append("area", getArea())
+            .append("nagetiveFactor", getNagetiveFactor())
+            .append("reason", getReason())
+            .append("diskLevel", getDiskLevel())
+            .append("disk", getDisk())
+            .append("handleMethods", getHandleMethods())
+            .append("discoveryDate", getDiscoveryDate())
+            .append("planRemoveDate", getPlanRemoveDate())
+            .append("actualDate", getActualDate())
+            .append("delFlag", getDelFlag())
+            .toString();
+    }
+}

+ 209 - 0
master/src/main/java/com/ruoyi/project/reliability/domain/TDeviceRisk.java

@@ -0,0 +1,209 @@
+package com.ruoyi.project.reliability.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 装置风险清单对象 t_device_risk
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public class TDeviceRisk extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 唯一ID */
+    private Long id;
+
+    /** 备注 */
+    @Excel(name = "备注")
+    private String remarks;
+
+    /** 状态 1 :正常 ;0:删除 */
+    private Long delFlag;
+
+    /** 区域 */
+    @Excel(name = "区域")
+    private String area;
+
+    /** 等级 */
+    @Excel(name = "等级")
+    private Long diskLevel;
+
+    /** 原因 */
+    @Excel(name = "原因")
+    private String reason;
+
+    /** 处理类型 */
+    @Excel(name = "处理类型")
+    private Long handleType;
+
+    /** 风险 */
+    @Excel(name = "风险")
+    private String disk;
+
+    /** 发现日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "发现日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date discoveryDate;
+
+    /** 计划消除日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "计划消除日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date planRemoveDate;
+
+    /** 实际消除日期 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "实际消除日期", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date actualDate;
+
+    /** 处理方法 */
+    @Excel(name = "处理方法")
+    private String handleMethods;
+
+    /** 应急预案 */
+    @Excel(name = "应急预案")
+    private String emergencyPlan;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setRemarks(String remarks)
+    {
+        this.remarks = remarks;
+    }
+
+    public String getRemarks()
+    {
+        return remarks;
+    }
+    public void setDelFlag(Long delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag()
+    {
+        return delFlag;
+    }
+    public void setArea(String area)
+    {
+        this.area = area;
+    }
+
+    public String getArea()
+    {
+        return area;
+    }
+    public void setDiskLevel(Long diskLevel)
+    {
+        this.diskLevel = diskLevel;
+    }
+
+    public Long getDiskLevel()
+    {
+        return diskLevel;
+    }
+    public void setReason(String reason)
+    {
+        this.reason = reason;
+    }
+
+    public String getReason()
+    {
+        return reason;
+    }
+    public void setHandleType(Long handleType)
+    {
+        this.handleType = handleType;
+    }
+
+    public Long getHandleType()
+    {
+        return handleType;
+    }
+    public void setDisk(String disk)
+    {
+        this.disk = disk;
+    }
+
+    public String getDisk()
+    {
+        return disk;
+    }
+    public void setDiscoveryDate(Date discoveryDate)
+    {
+        this.discoveryDate = discoveryDate;
+    }
+
+    public Date getDiscoveryDate()
+    {
+        return discoveryDate;
+    }
+    public void setPlanRemoveDate(Date planRemoveDate)
+    {
+        this.planRemoveDate = planRemoveDate;
+    }
+
+    public Date getPlanRemoveDate()
+    {
+        return planRemoveDate;
+    }
+    public void setActualDate(Date actualDate)
+    {
+        this.actualDate = actualDate;
+    }
+
+    public Date getActualDate()
+    {
+        return actualDate;
+    }
+    public void setHandleMethods(String handleMethods)
+    {
+        this.handleMethods = handleMethods;
+    }
+
+    public String getHandleMethods()
+    {
+        return handleMethods;
+    }
+    public void setEmergencyPlan(String emergencyPlan)
+    {
+        this.emergencyPlan = emergencyPlan;
+    }
+
+    public String getEmergencyPlan()
+    {
+        return emergencyPlan;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("remarks", getRemarks())
+            .append("delFlag", getDelFlag())
+            .append("area", getArea())
+            .append("diskLevel", getDiskLevel())
+            .append("reason", getReason())
+            .append("handleType", getHandleType())
+            .append("disk", getDisk())
+            .append("discoveryDate", getDiscoveryDate())
+            .append("planRemoveDate", getPlanRemoveDate())
+            .append("actualDate", getActualDate())
+            .append("handleMethods", getHandleMethods())
+            .append("emergencyPlan", getEmergencyPlan())
+            .toString();
+    }
+}

+ 151 - 0
master/src/main/java/com/ruoyi/project/reliability/domain/TKekaoMgList.java

@@ -0,0 +1,151 @@
+package com.ruoyi.project.reliability.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 可靠性管理清单对象 t_kekao_mg_list
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public class TKekaoMgList extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 唯一标识ID */
+    private Long id;
+
+    /** 装置名称 */
+    @Excel(name = "装置名称")
+    private String plantCode;
+
+    /** 影响因素 */
+    @Excel(name = "影响因素")
+    private String influenceFactor;
+
+    /** 措施 */
+    @Excel(name = "措施")
+    private String measures;
+
+    /** 完成状态 */
+    @Excel(name = "完成状态")
+    private Long completeStatus;
+
+    /** 实行时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "实行时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date implementDate;
+
+    /** 实行人 */
+    @Excel(name = "实行人")
+    private String implementPerson;
+
+    /** 申请状态 */
+    @Excel(name = "申请状态")
+    private Long approveStatus;
+
+    /** 状态 1 :正常 ;0:删除 */
+    private Long delFlag;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setPlantCode(String plantCode)
+    {
+        this.plantCode = plantCode;
+    }
+
+    public String getPlantCode()
+    {
+        return plantCode;
+    }
+    public void setInfluenceFactor(String influenceFactor)
+    {
+        this.influenceFactor = influenceFactor;
+    }
+
+    public String getInfluenceFactor()
+    {
+        return influenceFactor;
+    }
+    public void setMeasures(String measures)
+    {
+        this.measures = measures;
+    }
+
+    public String getMeasures()
+    {
+        return measures;
+    }
+    public void setCompleteStatus(Long completeStatus)
+    {
+        this.completeStatus = completeStatus;
+    }
+
+    public Long getCompleteStatus()
+    {
+        return completeStatus;
+    }
+    public void setImplementDate(Date implementDate)
+    {
+        this.implementDate = implementDate;
+    }
+
+    public Date getImplementDate()
+    {
+        return implementDate;
+    }
+    public void setImplementPerson(String implementPerson)
+    {
+        this.implementPerson = implementPerson;
+    }
+
+    public String getImplementPerson()
+    {
+        return implementPerson;
+    }
+    public void setApproveStatus(Long approveStatus)
+    {
+        this.approveStatus = approveStatus;
+    }
+
+    public Long getApproveStatus()
+    {
+        return approveStatus;
+    }
+    public void setDelFlag(Long delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag()
+    {
+        return delFlag;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("plantCode", getPlantCode())
+            .append("influenceFactor", getInfluenceFactor())
+            .append("measures", getMeasures())
+            .append("completeStatus", getCompleteStatus())
+            .append("implementDate", getImplementDate())
+            .append("implementPerson", getImplementPerson())
+            .append("approveStatus", getApproveStatus())
+            .append("delFlag", getDelFlag())
+            .toString();
+    }
+}

+ 63 - 0
master/src/main/java/com/ruoyi/project/reliability/mapper/TDeviceExperienceMapper.java

@@ -0,0 +1,63 @@
+package com.ruoyi.project.reliability.mapper;
+
+import java.util.List;
+import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
+import com.ruoyi.project.reliability.domain.TDeviceExperience;
+
+/**
+ * 装置经验数据库Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface TDeviceExperienceMapper 
+{
+    /**
+     * 查询装置经验数据库
+     * 
+     * @param id 装置经验数据库ID
+     * @return 装置经验数据库
+     */
+    public TDeviceExperience selectTDeviceExperienceById(Long id);
+
+    /**
+     * 查询装置经验数据库列表
+     * 
+     * @param tDeviceExperience 装置经验数据库
+     * @return 装置经验数据库集合
+     */
+    @DataScope(deptAlias = "d")
+    public List<TDeviceExperience> selectTDeviceExperienceList(TDeviceExperience tDeviceExperience);
+
+    /**
+     * 新增装置经验数据库
+     * 
+     * @param tDeviceExperience 装置经验数据库
+     * @return 结果
+     */
+    public int insertTDeviceExperience(TDeviceExperience tDeviceExperience);
+
+    /**
+     * 修改装置经验数据库
+     * 
+     * @param tDeviceExperience 装置经验数据库
+     * @return 结果
+     */
+    public int updateTDeviceExperience(TDeviceExperience tDeviceExperience);
+
+    /**
+     * 删除装置经验数据库
+     * 
+     * @param id 装置经验数据库ID
+     * @return 结果
+     */
+    public int deleteTDeviceExperienceById(Long id);
+
+    /**
+     * 批量删除装置经验数据库
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTDeviceExperienceByIds(Long[] ids);
+}

+ 63 - 0
master/src/main/java/com/ruoyi/project/reliability/mapper/TDeviceInventoryPartsMapper.java

@@ -0,0 +1,63 @@
+package com.ruoyi.project.reliability.mapper;
+
+import java.util.List;
+import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
+import com.ruoyi.project.reliability.domain.TDeviceInventoryParts;
+
+/**
+ * 关键部件库存清单Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface TDeviceInventoryPartsMapper 
+{
+    /**
+     * 查询关键部件库存清单
+     * 
+     * @param id 关键部件库存清单ID
+     * @return 关键部件库存清单
+     */
+    public TDeviceInventoryParts selectTDeviceInventoryPartsById(Long id);
+
+    /**
+     * 查询关键部件库存清单列表
+     * 
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 关键部件库存清单集合
+     */
+    @DataScope(deptAlias = "d")
+    public List<TDeviceInventoryParts> selectTDeviceInventoryPartsList(TDeviceInventoryParts tDeviceInventoryParts);
+
+    /**
+     * 新增关键部件库存清单
+     * 
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 结果
+     */
+    public int insertTDeviceInventoryParts(TDeviceInventoryParts tDeviceInventoryParts);
+
+    /**
+     * 修改关键部件库存清单
+     * 
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 结果
+     */
+    public int updateTDeviceInventoryParts(TDeviceInventoryParts tDeviceInventoryParts);
+
+    /**
+     * 删除关键部件库存清单
+     * 
+     * @param id 关键部件库存清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceInventoryPartsById(Long id);
+
+    /**
+     * 批量删除关键部件库存清单
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTDeviceInventoryPartsByIds(Long[] ids);
+}

+ 63 - 0
master/src/main/java/com/ruoyi/project/reliability/mapper/TDeviceNagetiveFactorMapper.java

@@ -0,0 +1,63 @@
+package com.ruoyi.project.reliability.mapper;
+
+import java.util.List;
+import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
+import com.ruoyi.project.reliability.domain.TDeviceNagetiveFactor;
+
+/**
+ * 不良因素清单Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface TDeviceNagetiveFactorMapper 
+{
+    /**
+     * 查询不良因素清单
+     * 
+     * @param id 不良因素清单ID
+     * @return 不良因素清单
+     */
+    public TDeviceNagetiveFactor selectTDeviceNagetiveFactorById(Long id);
+
+    /**
+     * 查询不良因素清单列表
+     * 
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 不良因素清单集合
+     */
+    @DataScope(deptAlias = "d")
+    public List<TDeviceNagetiveFactor> selectTDeviceNagetiveFactorList(TDeviceNagetiveFactor tDeviceNagetiveFactor);
+
+    /**
+     * 新增不良因素清单
+     * 
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 结果
+     */
+    public int insertTDeviceNagetiveFactor(TDeviceNagetiveFactor tDeviceNagetiveFactor);
+
+    /**
+     * 修改不良因素清单
+     * 
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 结果
+     */
+    public int updateTDeviceNagetiveFactor(TDeviceNagetiveFactor tDeviceNagetiveFactor);
+
+    /**
+     * 删除不良因素清单
+     * 
+     * @param id 不良因素清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceNagetiveFactorById(Long id);
+
+    /**
+     * 批量删除不良因素清单
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTDeviceNagetiveFactorByIds(Long[] ids);
+}

+ 63 - 0
master/src/main/java/com/ruoyi/project/reliability/mapper/TDeviceRiskMapper.java

@@ -0,0 +1,63 @@
+package com.ruoyi.project.reliability.mapper;
+
+import java.util.List;
+import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
+import com.ruoyi.project.reliability.domain.TDeviceRisk;
+
+/**
+ * 装置风险清单Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface TDeviceRiskMapper 
+{
+    /**
+     * 查询装置风险清单
+     * 
+     * @param id 装置风险清单ID
+     * @return 装置风险清单
+     */
+    public TDeviceRisk selectTDeviceRiskById(Long id);
+
+    /**
+     * 查询装置风险清单列表
+     * 
+     * @param tDeviceRisk 装置风险清单
+     * @return 装置风险清单集合
+     */
+    @DataScope(deptAlias = "d")
+    public List<TDeviceRisk> selectTDeviceRiskList(TDeviceRisk tDeviceRisk);
+
+    /**
+     * 新增装置风险清单
+     * 
+     * @param tDeviceRisk 装置风险清单
+     * @return 结果
+     */
+    public int insertTDeviceRisk(TDeviceRisk tDeviceRisk);
+
+    /**
+     * 修改装置风险清单
+     * 
+     * @param tDeviceRisk 装置风险清单
+     * @return 结果
+     */
+    public int updateTDeviceRisk(TDeviceRisk tDeviceRisk);
+
+    /**
+     * 删除装置风险清单
+     * 
+     * @param id 装置风险清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceRiskById(Long id);
+
+    /**
+     * 批量删除装置风险清单
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTDeviceRiskByIds(Long[] ids);
+}

+ 66 - 0
master/src/main/java/com/ruoyi/project/reliability/mapper/TKekaoMgListMapper.java

@@ -0,0 +1,66 @@
+package com.ruoyi.project.reliability.mapper;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
+import com.ruoyi.project.intact.domain.TIntactGj;
+import com.ruoyi.project.reliability.domain.TKekaoMgList;
+
+/**
+ * 可靠性管理清单Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface TKekaoMgListMapper extends BaseMapper<TKekaoMgList>
+{
+    /**
+     * 查询可靠性管理清单
+     * 
+     * @param id 可靠性管理清单ID
+     * @return 可靠性管理清单
+     */
+    public TKekaoMgList selectTKekaoMgListById(Long id);
+
+    /**
+     * 查询可靠性管理清单列表
+     * 
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 可靠性管理清单集合
+     */
+    @DataScope(deptAlias = "d")
+    public List<TKekaoMgList> selectTKekaoMgListList(TKekaoMgList tKekaoMgList);
+
+    /**
+     * 新增可靠性管理清单
+     * 
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 结果
+     */
+    public int insertTKekaoMgList(TKekaoMgList tKekaoMgList);
+
+    /**
+     * 修改可靠性管理清单
+     * 
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 结果
+     */
+    public int updateTKekaoMgList(TKekaoMgList tKekaoMgList);
+
+    /**
+     * 删除可靠性管理清单
+     * 
+     * @param id 可靠性管理清单ID
+     * @return 结果
+     */
+    public int deleteTKekaoMgListById(Long id);
+
+    /**
+     * 批量删除可靠性管理清单
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTKekaoMgListByIds(Long[] ids);
+}

+ 61 - 0
master/src/main/java/com/ruoyi/project/reliability/service/ITDeviceExperienceService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.project.reliability.service;
+
+import java.util.List;
+import com.ruoyi.project.reliability.domain.TDeviceExperience;
+
+/**
+ * 装置经验数据库Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface ITDeviceExperienceService 
+{
+    /**
+     * 查询装置经验数据库
+     * 
+     * @param id 装置经验数据库ID
+     * @return 装置经验数据库
+     */
+    public TDeviceExperience selectTDeviceExperienceById(Long id);
+
+    /**
+     * 查询装置经验数据库列表
+     * 
+     * @param tDeviceExperience 装置经验数据库
+     * @return 装置经验数据库集合
+     */
+    public List<TDeviceExperience> selectTDeviceExperienceList(TDeviceExperience tDeviceExperience);
+
+    /**
+     * 新增装置经验数据库
+     * 
+     * @param tDeviceExperience 装置经验数据库
+     * @return 结果
+     */
+    public int insertTDeviceExperience(TDeviceExperience tDeviceExperience);
+
+    /**
+     * 修改装置经验数据库
+     * 
+     * @param tDeviceExperience 装置经验数据库
+     * @return 结果
+     */
+    public int updateTDeviceExperience(TDeviceExperience tDeviceExperience);
+
+    /**
+     * 批量删除装置经验数据库
+     * 
+     * @param ids 需要删除的装置经验数据库ID
+     * @return 结果
+     */
+    public int deleteTDeviceExperienceByIds(Long[] ids);
+
+    /**
+     * 删除装置经验数据库信息
+     * 
+     * @param id 装置经验数据库ID
+     * @return 结果
+     */
+    public int deleteTDeviceExperienceById(Long id);
+}

+ 61 - 0
master/src/main/java/com/ruoyi/project/reliability/service/ITDeviceInventoryPartsService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.project.reliability.service;
+
+import java.util.List;
+import com.ruoyi.project.reliability.domain.TDeviceInventoryParts;
+
+/**
+ * 关键部件库存清单Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface ITDeviceInventoryPartsService 
+{
+    /**
+     * 查询关键部件库存清单
+     * 
+     * @param id 关键部件库存清单ID
+     * @return 关键部件库存清单
+     */
+    public TDeviceInventoryParts selectTDeviceInventoryPartsById(Long id);
+
+    /**
+     * 查询关键部件库存清单列表
+     * 
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 关键部件库存清单集合
+     */
+    public List<TDeviceInventoryParts> selectTDeviceInventoryPartsList(TDeviceInventoryParts tDeviceInventoryParts);
+
+    /**
+     * 新增关键部件库存清单
+     * 
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 结果
+     */
+    public int insertTDeviceInventoryParts(TDeviceInventoryParts tDeviceInventoryParts);
+
+    /**
+     * 修改关键部件库存清单
+     * 
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 结果
+     */
+    public int updateTDeviceInventoryParts(TDeviceInventoryParts tDeviceInventoryParts);
+
+    /**
+     * 批量删除关键部件库存清单
+     * 
+     * @param ids 需要删除的关键部件库存清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceInventoryPartsByIds(Long[] ids);
+
+    /**
+     * 删除关键部件库存清单信息
+     * 
+     * @param id 关键部件库存清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceInventoryPartsById(Long id);
+}

+ 61 - 0
master/src/main/java/com/ruoyi/project/reliability/service/ITDeviceNagetiveFactorService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.project.reliability.service;
+
+import java.util.List;
+import com.ruoyi.project.reliability.domain.TDeviceNagetiveFactor;
+
+/**
+ * 不良因素清单Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface ITDeviceNagetiveFactorService 
+{
+    /**
+     * 查询不良因素清单
+     * 
+     * @param id 不良因素清单ID
+     * @return 不良因素清单
+     */
+    public TDeviceNagetiveFactor selectTDeviceNagetiveFactorById(Long id);
+
+    /**
+     * 查询不良因素清单列表
+     * 
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 不良因素清单集合
+     */
+    public List<TDeviceNagetiveFactor> selectTDeviceNagetiveFactorList(TDeviceNagetiveFactor tDeviceNagetiveFactor);
+
+    /**
+     * 新增不良因素清单
+     * 
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 结果
+     */
+    public int insertTDeviceNagetiveFactor(TDeviceNagetiveFactor tDeviceNagetiveFactor);
+
+    /**
+     * 修改不良因素清单
+     * 
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 结果
+     */
+    public int updateTDeviceNagetiveFactor(TDeviceNagetiveFactor tDeviceNagetiveFactor);
+
+    /**
+     * 批量删除不良因素清单
+     * 
+     * @param ids 需要删除的不良因素清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceNagetiveFactorByIds(Long[] ids);
+
+    /**
+     * 删除不良因素清单信息
+     * 
+     * @param id 不良因素清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceNagetiveFactorById(Long id);
+}

+ 61 - 0
master/src/main/java/com/ruoyi/project/reliability/service/ITDeviceRiskService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.project.reliability.service;
+
+import java.util.List;
+import com.ruoyi.project.reliability.domain.TDeviceRisk;
+
+/**
+ * 装置风险清单Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface ITDeviceRiskService 
+{
+    /**
+     * 查询装置风险清单
+     * 
+     * @param id 装置风险清单ID
+     * @return 装置风险清单
+     */
+    public TDeviceRisk selectTDeviceRiskById(Long id);
+
+    /**
+     * 查询装置风险清单列表
+     * 
+     * @param tDeviceRisk 装置风险清单
+     * @return 装置风险清单集合
+     */
+    public List<TDeviceRisk> selectTDeviceRiskList(TDeviceRisk tDeviceRisk);
+
+    /**
+     * 新增装置风险清单
+     * 
+     * @param tDeviceRisk 装置风险清单
+     * @return 结果
+     */
+    public int insertTDeviceRisk(TDeviceRisk tDeviceRisk);
+
+    /**
+     * 修改装置风险清单
+     * 
+     * @param tDeviceRisk 装置风险清单
+     * @return 结果
+     */
+    public int updateTDeviceRisk(TDeviceRisk tDeviceRisk);
+
+    /**
+     * 批量删除装置风险清单
+     * 
+     * @param ids 需要删除的装置风险清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceRiskByIds(Long[] ids);
+
+    /**
+     * 删除装置风险清单信息
+     * 
+     * @param id 装置风险清单ID
+     * @return 结果
+     */
+    public int deleteTDeviceRiskById(Long id);
+}

+ 64 - 0
master/src/main/java/com/ruoyi/project/reliability/service/ITKekaoMgListService.java

@@ -0,0 +1,64 @@
+package com.ruoyi.project.reliability.service;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ruoyi.project.intact.domain.TIntactPump;
+import com.ruoyi.project.reliability.domain.TKekaoMgList;
+
+/**
+ * 可靠性管理清单Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+public interface ITKekaoMgListService  extends IService<TKekaoMgList>
+{
+    /**
+     * 查询可靠性管理清单
+     * 
+     * @param id 可靠性管理清单ID
+     * @return 可靠性管理清单
+     */
+    public TKekaoMgList selectTKekaoMgListById(Long id);
+
+    /**
+     * 查询可靠性管理清单列表
+     * 
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 可靠性管理清单集合
+     */
+    public List<TKekaoMgList> selectTKekaoMgListList(TKekaoMgList tKekaoMgList);
+
+    /**
+     * 新增可靠性管理清单
+     * 
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 结果
+     */
+    public int insertTKekaoMgList(TKekaoMgList tKekaoMgList);
+
+    /**
+     * 修改可靠性管理清单
+     * 
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 结果
+     */
+    public int updateTKekaoMgList(TKekaoMgList tKekaoMgList);
+
+    /**
+     * 批量删除可靠性管理清单
+     * 
+     * @param ids 需要删除的可靠性管理清单ID
+     * @return 结果
+     */
+    public int deleteTKekaoMgListByIds(Long[] ids);
+
+    /**
+     * 删除可靠性管理清单信息
+     * 
+     * @param id 可靠性管理清单ID
+     * @return 结果
+     */
+    public int deleteTKekaoMgListById(Long id);
+}

+ 93 - 0
master/src/main/java/com/ruoyi/project/reliability/service/impl/TDeviceExperienceServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.project.reliability.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.project.reliability.mapper.TDeviceExperienceMapper;
+import com.ruoyi.project.reliability.domain.TDeviceExperience;
+import com.ruoyi.project.reliability.service.ITDeviceExperienceService;
+
+/**
+ * 装置经验数据库Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@Service
+public class TDeviceExperienceServiceImpl implements ITDeviceExperienceService
+{
+    @Autowired
+    private TDeviceExperienceMapper tDeviceExperienceMapper;
+
+    /**
+     * 查询装置经验数据库
+     *
+     * @param id 装置经验数据库ID
+     * @return 装置经验数据库
+     */
+    @Override
+    public TDeviceExperience selectTDeviceExperienceById(Long id)
+    {
+        return tDeviceExperienceMapper.selectTDeviceExperienceById(id);
+    }
+
+    /**
+     * 查询装置经验数据库列表
+     *
+     * @param tDeviceExperience 装置经验数据库
+     * @return 装置经验数据库
+     */
+    @Override
+    public List<TDeviceExperience> selectTDeviceExperienceList(TDeviceExperience tDeviceExperience)
+    {
+        return tDeviceExperienceMapper.selectTDeviceExperienceList(tDeviceExperience);
+    }
+
+    /**
+     * 新增装置经验数据库
+     *
+     * @param tDeviceExperience 装置经验数据库
+     * @return 结果
+     */
+    @Override
+    public int insertTDeviceExperience(TDeviceExperience tDeviceExperience)
+    {
+        return tDeviceExperienceMapper.insertTDeviceExperience(tDeviceExperience);
+    }
+
+    /**
+     * 修改装置经验数据库
+     *
+     * @param tDeviceExperience 装置经验数据库
+     * @return 结果
+     */
+    @Override
+    public int updateTDeviceExperience(TDeviceExperience tDeviceExperience)
+    {
+        return tDeviceExperienceMapper.updateTDeviceExperience(tDeviceExperience);
+    }
+
+    /**
+     * 批量删除装置经验数据库
+     *
+     * @param ids 需要删除的装置经验数据库ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceExperienceByIds(Long[] ids)
+    {
+        return tDeviceExperienceMapper.deleteTDeviceExperienceByIds(ids);
+    }
+
+    /**
+     * 删除装置经验数据库信息
+     *
+     * @param id 装置经验数据库ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceExperienceById(Long id)
+    {
+        return tDeviceExperienceMapper.deleteTDeviceExperienceById(id);
+    }
+}

+ 93 - 0
master/src/main/java/com/ruoyi/project/reliability/service/impl/TDeviceInventoryPartsServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.project.reliability.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.project.reliability.mapper.TDeviceInventoryPartsMapper;
+import com.ruoyi.project.reliability.domain.TDeviceInventoryParts;
+import com.ruoyi.project.reliability.service.ITDeviceInventoryPartsService;
+
+/**
+ * 关键部件库存清单Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@Service
+public class TDeviceInventoryPartsServiceImpl implements ITDeviceInventoryPartsService
+{
+    @Autowired
+    private TDeviceInventoryPartsMapper tDeviceInventoryPartsMapper;
+
+    /**
+     * 查询关键部件库存清单
+     *
+     * @param id 关键部件库存清单ID
+     * @return 关键部件库存清单
+     */
+    @Override
+    public TDeviceInventoryParts selectTDeviceInventoryPartsById(Long id)
+    {
+        return tDeviceInventoryPartsMapper.selectTDeviceInventoryPartsById(id);
+    }
+
+    /**
+     * 查询关键部件库存清单列表
+     *
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 关键部件库存清单
+     */
+    @Override
+    public List<TDeviceInventoryParts> selectTDeviceInventoryPartsList(TDeviceInventoryParts tDeviceInventoryParts)
+    {
+        return tDeviceInventoryPartsMapper.selectTDeviceInventoryPartsList(tDeviceInventoryParts);
+    }
+
+    /**
+     * 新增关键部件库存清单
+     *
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 结果
+     */
+    @Override
+    public int insertTDeviceInventoryParts(TDeviceInventoryParts tDeviceInventoryParts)
+    {
+        return tDeviceInventoryPartsMapper.insertTDeviceInventoryParts(tDeviceInventoryParts);
+    }
+
+    /**
+     * 修改关键部件库存清单
+     *
+     * @param tDeviceInventoryParts 关键部件库存清单
+     * @return 结果
+     */
+    @Override
+    public int updateTDeviceInventoryParts(TDeviceInventoryParts tDeviceInventoryParts)
+    {
+        return tDeviceInventoryPartsMapper.updateTDeviceInventoryParts(tDeviceInventoryParts);
+    }
+
+    /**
+     * 批量删除关键部件库存清单
+     *
+     * @param ids 需要删除的关键部件库存清单ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceInventoryPartsByIds(Long[] ids)
+    {
+        return tDeviceInventoryPartsMapper.deleteTDeviceInventoryPartsByIds(ids);
+    }
+
+    /**
+     * 删除关键部件库存清单信息
+     *
+     * @param id 关键部件库存清单ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceInventoryPartsById(Long id)
+    {
+        return tDeviceInventoryPartsMapper.deleteTDeviceInventoryPartsById(id);
+    }
+}

+ 93 - 0
master/src/main/java/com/ruoyi/project/reliability/service/impl/TDeviceNagetiveFactorServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.project.reliability.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.project.reliability.mapper.TDeviceNagetiveFactorMapper;
+import com.ruoyi.project.reliability.domain.TDeviceNagetiveFactor;
+import com.ruoyi.project.reliability.service.ITDeviceNagetiveFactorService;
+
+/**
+ * 不良因素清单Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@Service
+public class TDeviceNagetiveFactorServiceImpl implements ITDeviceNagetiveFactorService
+{
+    @Autowired
+    private TDeviceNagetiveFactorMapper tDeviceNagetiveFactorMapper;
+
+    /**
+     * 查询不良因素清单
+     *
+     * @param id 不良因素清单ID
+     * @return 不良因素清单
+     */
+    @Override
+    public TDeviceNagetiveFactor selectTDeviceNagetiveFactorById(Long id)
+    {
+        return tDeviceNagetiveFactorMapper.selectTDeviceNagetiveFactorById(id);
+    }
+
+    /**
+     * 查询不良因素清单列表
+     *
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 不良因素清单
+     */
+    @Override
+    public List<TDeviceNagetiveFactor> selectTDeviceNagetiveFactorList(TDeviceNagetiveFactor tDeviceNagetiveFactor)
+    {
+        return tDeviceNagetiveFactorMapper.selectTDeviceNagetiveFactorList(tDeviceNagetiveFactor);
+    }
+
+    /**
+     * 新增不良因素清单
+     *
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 结果
+     */
+    @Override
+    public int insertTDeviceNagetiveFactor(TDeviceNagetiveFactor tDeviceNagetiveFactor)
+    {
+        return tDeviceNagetiveFactorMapper.insertTDeviceNagetiveFactor(tDeviceNagetiveFactor);
+    }
+
+    /**
+     * 修改不良因素清单
+     *
+     * @param tDeviceNagetiveFactor 不良因素清单
+     * @return 结果
+     */
+    @Override
+    public int updateTDeviceNagetiveFactor(TDeviceNagetiveFactor tDeviceNagetiveFactor)
+    {
+        return tDeviceNagetiveFactorMapper.updateTDeviceNagetiveFactor(tDeviceNagetiveFactor);
+    }
+
+    /**
+     * 批量删除不良因素清单
+     *
+     * @param ids 需要删除的不良因素清单ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceNagetiveFactorByIds(Long[] ids)
+    {
+        return tDeviceNagetiveFactorMapper.deleteTDeviceNagetiveFactorByIds(ids);
+    }
+
+    /**
+     * 删除不良因素清单信息
+     *
+     * @param id 不良因素清单ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceNagetiveFactorById(Long id)
+    {
+        return tDeviceNagetiveFactorMapper.deleteTDeviceNagetiveFactorById(id);
+    }
+}

+ 93 - 0
master/src/main/java/com/ruoyi/project/reliability/service/impl/TDeviceRiskServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.project.reliability.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.project.reliability.mapper.TDeviceRiskMapper;
+import com.ruoyi.project.reliability.domain.TDeviceRisk;
+import com.ruoyi.project.reliability.service.ITDeviceRiskService;
+
+/**
+ * 装置风险清单Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@Service
+public class TDeviceRiskServiceImpl implements ITDeviceRiskService
+{
+    @Autowired
+    private TDeviceRiskMapper tDeviceRiskMapper;
+
+    /**
+     * 查询装置风险清单
+     *
+     * @param id 装置风险清单ID
+     * @return 装置风险清单
+     */
+    @Override
+    public TDeviceRisk selectTDeviceRiskById(Long id)
+    {
+        return tDeviceRiskMapper.selectTDeviceRiskById(id);
+    }
+
+    /**
+     * 查询装置风险清单列表
+     *
+     * @param tDeviceRisk 装置风险清单
+     * @return 装置风险清单
+     */
+    @Override
+    public List<TDeviceRisk> selectTDeviceRiskList(TDeviceRisk tDeviceRisk)
+    {
+        return tDeviceRiskMapper.selectTDeviceRiskList(tDeviceRisk);
+    }
+
+    /**
+     * 新增装置风险清单
+     *
+     * @param tDeviceRisk 装置风险清单
+     * @return 结果
+     */
+    @Override
+    public int insertTDeviceRisk(TDeviceRisk tDeviceRisk)
+    {
+        return tDeviceRiskMapper.insertTDeviceRisk(tDeviceRisk);
+    }
+
+    /**
+     * 修改装置风险清单
+     *
+     * @param tDeviceRisk 装置风险清单
+     * @return 结果
+     */
+    @Override
+    public int updateTDeviceRisk(TDeviceRisk tDeviceRisk)
+    {
+        return tDeviceRiskMapper.updateTDeviceRisk(tDeviceRisk);
+    }
+
+    /**
+     * 批量删除装置风险清单
+     *
+     * @param ids 需要删除的装置风险清单ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceRiskByIds(Long[] ids)
+    {
+        return tDeviceRiskMapper.deleteTDeviceRiskByIds(ids);
+    }
+
+    /**
+     * 删除装置风险清单信息
+     *
+     * @param id 装置风险清单ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDeviceRiskById(Long id)
+    {
+        return tDeviceRiskMapper.deleteTDeviceRiskById(id);
+    }
+}

+ 97 - 0
master/src/main/java/com/ruoyi/project/reliability/service/impl/TKekaoMgListServiceImpl.java

@@ -0,0 +1,97 @@
+package com.ruoyi.project.reliability.service.impl;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ruoyi.project.intact.domain.TIntactGj;
+import com.ruoyi.project.intact.mapper.TIntactGjMapper;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.project.reliability.mapper.TKekaoMgListMapper;
+import com.ruoyi.project.reliability.domain.TKekaoMgList;
+import com.ruoyi.project.reliability.service.ITKekaoMgListService;
+
+/**
+ * 可靠性管理清单Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2022-07-07
+ */
+@Service
+public class TKekaoMgListServiceImpl extends ServiceImpl<TKekaoMgListMapper, TKekaoMgList> implements ITKekaoMgListService
+{
+    @Autowired
+    private TKekaoMgListMapper tKekaoMgListMapper;
+
+    /**
+     * 查询可靠性管理清单
+     *
+     * @param id 可靠性管理清单ID
+     * @return 可靠性管理清单
+     */
+    @Override
+    public TKekaoMgList selectTKekaoMgListById(Long id)
+    {
+        return tKekaoMgListMapper.selectTKekaoMgListById(id);
+    }
+
+    /**
+     * 查询可靠性管理清单列表
+     *
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 可靠性管理清单
+     */
+    @Override
+    public List<TKekaoMgList> selectTKekaoMgListList(TKekaoMgList tKekaoMgList)
+    {
+        return tKekaoMgListMapper.selectTKekaoMgListList(tKekaoMgList);
+    }
+
+    /**
+     * 新增可靠性管理清单
+     *
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 结果
+     */
+    @Override
+    public int insertTKekaoMgList(TKekaoMgList tKekaoMgList)
+    {
+        return tKekaoMgListMapper.insertTKekaoMgList(tKekaoMgList);
+    }
+
+    /**
+     * 修改可靠性管理清单
+     *
+     * @param tKekaoMgList 可靠性管理清单
+     * @return 结果
+     */
+    @Override
+    public int updateTKekaoMgList(TKekaoMgList tKekaoMgList)
+    {
+        return tKekaoMgListMapper.updateTKekaoMgList(tKekaoMgList);
+    }
+
+    /**
+     * 批量删除可靠性管理清单
+     *
+     * @param ids 需要删除的可靠性管理清单ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTKekaoMgListByIds(Long[] ids)
+    {
+        return tKekaoMgListMapper.deleteTKekaoMgListByIds(ids);
+    }
+
+    /**
+     * 删除可靠性管理清单信息
+     *
+     * @param id 可靠性管理清单ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTKekaoMgListById(Long id)
+    {
+        return tKekaoMgListMapper.deleteTKekaoMgListById(id);
+    }
+}

+ 1 - 1
master/src/main/resources/application.yml

@@ -184,7 +184,7 @@ gen:
   # 作者
   author: ruoyi
   # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
-  packageName: com.ruoyi.project.intact # 自动去除表前缀,默认是true
+  packageName: com.ruoyi.project.reliability # 自动去除表前缀,默认是true
   autoRemovePre: false
   # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
   tablePrefix: sys_

+ 101 - 0
master/src/main/resources/mybatis/reliability/TDeviceExperienceMapper.xml

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.project.reliability.mapper.TDeviceExperienceMapper">
+    
+    <resultMap type="TDeviceExperience" id="TDeviceExperienceResult">
+        <result property="id"    column="id"    />
+        <result property="remarks"    column="remarks"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="event"    column="event"    />
+        <result property="handleProcess"    column="handle_process"    />
+        <result property="handleResult"    column="handle_result"    />
+        <result property="experience"    column="experience"    />
+        <result property="accidentReportLink"    column="accident_report_link"    />
+        <result property="expertEvaluation"    column="expert_evaluation"    />
+
+    </resultMap>
+
+    <sql id="selectTDeviceExperienceVo">
+        select d.id, d.remarks, d.del_flag, d.event, d.handle_process, d.handle_result, d.experience, d.accident_report_link, d.expert_evaluation  from t_device_experience d
+
+    </sql>
+
+    <select id="selectTDeviceExperienceList" parameterType="TDeviceExperience" resultMap="TDeviceExperienceResult">
+        <include refid="selectTDeviceExperienceVo"/>
+        <where>  
+            <if test="remarks != null  and remarks != ''"> and remarks = #{remarks}</if>
+            <if test="event != null  and event != ''"> and event = #{event}</if>
+            <if test="handleProcess != null  and handleProcess != ''"> and handle_process = #{handleProcess}</if>
+            <if test="handleResult != null  and handleResult != ''"> and handle_result = #{handleResult}</if>
+            <if test="experience != null  and experience != ''"> and experience = #{experience}</if>
+            <if test="accidentReportLink != null  and accidentReportLink != ''"> and accident_report_link = #{accidentReportLink}</if>
+            <if test="expertEvaluation != null  and expertEvaluation != ''"> and expert_evaluation = #{expertEvaluation}</if>
+            and d.del_flag = 0
+        </where>
+        <!-- 数据范围过滤 -->
+        ${params.dataScope}
+    </select>
+    
+    <select id="selectTDeviceExperienceById" parameterType="Long" resultMap="TDeviceExperienceResult">
+        <include refid="selectTDeviceExperienceVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTDeviceExperience" parameterType="TDeviceExperience">
+        <selectKey keyProperty="id" resultType="long" order="BEFORE">
+            SELECT seq_t_device_experience.NEXTVAL as id FROM DUAL
+        </selectKey>
+        insert into t_device_experience
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="remarks != null">remarks,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="event != null">event,</if>
+            <if test="handleProcess != null">handle_process,</if>
+            <if test="handleResult != null">handle_result,</if>
+            <if test="experience != null">experience,</if>
+            <if test="accidentReportLink != null">accident_report_link,</if>
+            <if test="expertEvaluation != null">expert_evaluation,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="remarks != null">#{remarks},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="event != null">#{event},</if>
+            <if test="handleProcess != null">#{handleProcess},</if>
+            <if test="handleResult != null">#{handleResult},</if>
+            <if test="experience != null">#{experience},</if>
+            <if test="accidentReportLink != null">#{accidentReportLink},</if>
+            <if test="expertEvaluation != null">#{expertEvaluation},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTDeviceExperience" parameterType="TDeviceExperience">
+        update t_device_experience
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="remarks != null">remarks = #{remarks},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="event != null">event = #{event},</if>
+            <if test="handleProcess != null">handle_process = #{handleProcess},</if>
+            <if test="handleResult != null">handle_result = #{handleResult},</if>
+            <if test="experience != null">experience = #{experience},</if>
+            <if test="accidentReportLink != null">accident_report_link = #{accidentReportLink},</if>
+            <if test="expertEvaluation != null">expert_evaluation = #{expertEvaluation},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <update id="deleteTDeviceExperienceById" parameterType="Long">
+        update t_device_experience set del_flag = 2 where id = #{id}
+    </update>
+
+    <update id="deleteTDeviceExperienceByIds" parameterType="String">
+        update t_device_experience set del_flag = 2 where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+    
+</mapper>

+ 126 - 0
master/src/main/resources/mybatis/reliability/TDeviceInventoryPartsMapper.xml

@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.project.reliability.mapper.TDeviceInventoryPartsMapper">
+    
+    <resultMap type="TDeviceInventoryParts" id="TDeviceInventoryPartsResult">
+        <result property="id"    column="id"    />
+        <result property="remarks"    column="remarks"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="parts"    column="parts"    />
+        <result property="area"    column="area"    />
+        <result property="suitDevice"    column="suit_device"    />
+        <result property="inventory"    column="inventory"    />
+        <result property="inventoryStatus"    column="inventory_status"    />
+        <result property="importance"    column="importance"    />
+        <result property="useDateOne"    column="use_date_one"    />
+        <result property="useDateTwo"    column="use_date_two"    />
+        <result property="replaceReason"    column="replace_reason"    />
+        <result property="replaceRequirement"    column="replace_requirement"    />
+        <result property="replaceChargePerson"    column="replace_charge_person"    />
+
+    </resultMap>
+
+    <sql id="selectTDeviceInventoryPartsVo">
+        select d.id, d.remarks, d.del_flag, d.parts, d.area, d.suit_device, d.inventory, d.inventory_status, d.importance, d.use_date_one, d.use_date_two, d.replace_reason, d.replace_requirement, d.replace_charge_person  from t_device_inventory_parts d
+
+    </sql>
+
+    <select id="selectTDeviceInventoryPartsList" parameterType="TDeviceInventoryParts" resultMap="TDeviceInventoryPartsResult">
+        <include refid="selectTDeviceInventoryPartsVo"/>
+        <where>  
+            <if test="remarks != null  and remarks != ''"> and remarks = #{remarks}</if>
+            <if test="parts != null  and parts != ''"> and parts = #{parts}</if>
+            <if test="area != null  and area != ''"> and area = #{area}</if>
+            <if test="suitDevice != null  and suitDevice != ''"> and suit_device = #{suitDevice}</if>
+            <if test="inventory != null "> and inventory = #{inventory}</if>
+            <if test="inventoryStatus != null "> and inventory_status = #{inventoryStatus}</if>
+            <if test="importance != null  and importance != ''"> and importance = #{importance}</if>
+            <if test="useDateOne != null "> and use_date_one = #{useDateOne}</if>
+            <if test="useDateTwo != null "> and use_date_two = #{useDateTwo}</if>
+            <if test="replaceReason != null  and replaceReason != ''"> and replace_reason = #{replaceReason}</if>
+            <if test="replaceRequirement != null  and replaceRequirement != ''"> and replace_requirement = #{replaceRequirement}</if>
+            <if test="replaceChargePerson != null  and replaceChargePerson != ''"> and replace_charge_person = #{replaceChargePerson}</if>
+            and d.del_flag = 0
+        </where>
+        <!-- 数据范围过滤 -->
+        ${params.dataScope}
+    </select>
+    
+    <select id="selectTDeviceInventoryPartsById" parameterType="Long" resultMap="TDeviceInventoryPartsResult">
+        <include refid="selectTDeviceInventoryPartsVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTDeviceInventoryParts" parameterType="TDeviceInventoryParts">
+        <selectKey keyProperty="id" resultType="long" order="BEFORE">
+            SELECT seq_t_device_inventory_parts.NEXTVAL as id FROM DUAL
+        </selectKey>
+        insert into t_device_inventory_parts
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="remarks != null">remarks,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="parts != null">parts,</if>
+            <if test="area != null">area,</if>
+            <if test="suitDevice != null">suit_device,</if>
+            <if test="inventory != null">inventory,</if>
+            <if test="inventoryStatus != null">inventory_status,</if>
+            <if test="importance != null">importance,</if>
+            <if test="useDateOne != null">use_date_one,</if>
+            <if test="useDateTwo != null">use_date_two,</if>
+            <if test="replaceReason != null">replace_reason,</if>
+            <if test="replaceRequirement != null">replace_requirement,</if>
+            <if test="replaceChargePerson != null">replace_charge_person,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="remarks != null">#{remarks},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="parts != null">#{parts},</if>
+            <if test="area != null">#{area},</if>
+            <if test="suitDevice != null">#{suitDevice},</if>
+            <if test="inventory != null">#{inventory},</if>
+            <if test="inventoryStatus != null">#{inventoryStatus},</if>
+            <if test="importance != null">#{importance},</if>
+            <if test="useDateOne != null">#{useDateOne},</if>
+            <if test="useDateTwo != null">#{useDateTwo},</if>
+            <if test="replaceReason != null">#{replaceReason},</if>
+            <if test="replaceRequirement != null">#{replaceRequirement},</if>
+            <if test="replaceChargePerson != null">#{replaceChargePerson},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTDeviceInventoryParts" parameterType="TDeviceInventoryParts">
+        update t_device_inventory_parts
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="remarks != null">remarks = #{remarks},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="parts != null">parts = #{parts},</if>
+            <if test="area != null">area = #{area},</if>
+            <if test="suitDevice != null">suit_device = #{suitDevice},</if>
+            <if test="inventory != null">inventory = #{inventory},</if>
+            <if test="inventoryStatus != null">inventory_status = #{inventoryStatus},</if>
+            <if test="importance != null">importance = #{importance},</if>
+            <if test="useDateOne != null">use_date_one = #{useDateOne},</if>
+            <if test="useDateTwo != null">use_date_two = #{useDateTwo},</if>
+            <if test="replaceReason != null">replace_reason = #{replaceReason},</if>
+            <if test="replaceRequirement != null">replace_requirement = #{replaceRequirement},</if>
+            <if test="replaceChargePerson != null">replace_charge_person = #{replaceChargePerson},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <update id="deleteTDeviceInventoryPartsById" parameterType="Long">
+        update t_device_inventory_parts set del_flag = 2 where id = #{id}
+    </update>
+
+    <update id="deleteTDeviceInventoryPartsByIds" parameterType="String">
+        update t_device_inventory_parts set del_flag = 2 where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+    
+</mapper>

+ 116 - 0
master/src/main/resources/mybatis/reliability/TDeviceNagetiveFactorMapper.xml

@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.project.reliability.mapper.TDeviceNagetiveFactorMapper">
+    
+    <resultMap type="TDeviceNagetiveFactor" id="TDeviceNagetiveFactorResult">
+        <result property="id"    column="id"    />
+        <result property="remarks"    column="remarks"    />
+        <result property="area"    column="area"    />
+        <result property="nagetiveFactor"    column="nagetive_factor"    />
+        <result property="reason"    column="reason"    />
+        <result property="diskLevel"    column="disk_level"    />
+        <result property="disk"    column="disk"    />
+        <result property="handleMethods"    column="handle_methods"    />
+        <result property="discoveryDate"    column="discovery_date"    />
+        <result property="planRemoveDate"    column="plan_remove_date"    />
+        <result property="actualDate"    column="actual_date"    />
+        <result property="delFlag"    column="del_flag"    />
+
+    </resultMap>
+
+    <sql id="selectTDeviceNagetiveFactorVo">
+        select d.id, d.remarks, d.area, d.nagetive_factor, d.reason, d.disk_level, d.disk, d.handle_methods, d.discovery_date, d.plan_remove_date, d.actual_date, d.del_flag  from t_device_nagetive_factor d
+
+    </sql>
+
+    <select id="selectTDeviceNagetiveFactorList" parameterType="TDeviceNagetiveFactor" resultMap="TDeviceNagetiveFactorResult">
+        <include refid="selectTDeviceNagetiveFactorVo"/>
+        <where>  
+            <if test="remarks != null  and remarks != ''"> and remarks = #{remarks}</if>
+            <if test="area != null  and area != ''"> and area = #{area}</if>
+            <if test="nagetiveFactor != null  and nagetiveFactor != ''"> and nagetive_factor = #{nagetiveFactor}</if>
+            <if test="reason != null  and reason != ''"> and reason = #{reason}</if>
+            <if test="diskLevel != null "> and disk_level = #{diskLevel}</if>
+            <if test="disk != null  and disk != ''"> and disk = #{disk}</if>
+            <if test="handleMethods != null  and handleMethods != ''"> and handle_methods = #{handleMethods}</if>
+            <if test="discoveryDate != null "> and discovery_date = #{discoveryDate}</if>
+            <if test="planRemoveDate != null "> and plan_remove_date = #{planRemoveDate}</if>
+            <if test="actualDate != null "> and actual_date = #{actualDate}</if>
+            and d.del_flag = 0
+        </where>
+        <!-- 数据范围过滤 -->
+        ${params.dataScope}
+    </select>
+    
+    <select id="selectTDeviceNagetiveFactorById" parameterType="Long" resultMap="TDeviceNagetiveFactorResult">
+        <include refid="selectTDeviceNagetiveFactorVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTDeviceNagetiveFactor" parameterType="TDeviceNagetiveFactor">
+        <selectKey keyProperty="id" resultType="long" order="BEFORE">
+            SELECT seq_t_device_nagetive_factor.NEXTVAL as id FROM DUAL
+        </selectKey>
+        insert into t_device_nagetive_factor
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="remarks != null">remarks,</if>
+            <if test="area != null">area,</if>
+            <if test="nagetiveFactor != null">nagetive_factor,</if>
+            <if test="reason != null">reason,</if>
+            <if test="diskLevel != null">disk_level,</if>
+            <if test="disk != null">disk,</if>
+            <if test="handleMethods != null">handle_methods,</if>
+            <if test="discoveryDate != null">discovery_date,</if>
+            <if test="planRemoveDate != null">plan_remove_date,</if>
+            <if test="actualDate != null">actual_date,</if>
+            <if test="delFlag != null">del_flag,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="remarks != null">#{remarks},</if>
+            <if test="area != null">#{area},</if>
+            <if test="nagetiveFactor != null">#{nagetiveFactor},</if>
+            <if test="reason != null">#{reason},</if>
+            <if test="diskLevel != null">#{diskLevel},</if>
+            <if test="disk != null">#{disk},</if>
+            <if test="handleMethods != null">#{handleMethods},</if>
+            <if test="discoveryDate != null">#{discoveryDate},</if>
+            <if test="planRemoveDate != null">#{planRemoveDate},</if>
+            <if test="actualDate != null">#{actualDate},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTDeviceNagetiveFactor" parameterType="TDeviceNagetiveFactor">
+        update t_device_nagetive_factor
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="remarks != null">remarks = #{remarks},</if>
+            <if test="area != null">area = #{area},</if>
+            <if test="nagetiveFactor != null">nagetive_factor = #{nagetiveFactor},</if>
+            <if test="reason != null">reason = #{reason},</if>
+            <if test="diskLevel != null">disk_level = #{diskLevel},</if>
+            <if test="disk != null">disk = #{disk},</if>
+            <if test="handleMethods != null">handle_methods = #{handleMethods},</if>
+            <if test="discoveryDate != null">discovery_date = #{discoveryDate},</if>
+            <if test="planRemoveDate != null">plan_remove_date = #{planRemoveDate},</if>
+            <if test="actualDate != null">actual_date = #{actualDate},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <update id="deleteTDeviceNagetiveFactorById" parameterType="Long">
+        update t_device_nagetive_factor set del_flag = 2 where id = #{id}
+    </update>
+
+    <update id="deleteTDeviceNagetiveFactorByIds" parameterType="String">
+        update t_device_nagetive_factor set del_flag = 2 where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+    
+</mapper>

+ 121 - 0
master/src/main/resources/mybatis/reliability/TDeviceRiskMapper.xml

@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.project.reliability.mapper.TDeviceRiskMapper">
+    
+    <resultMap type="TDeviceRisk" id="TDeviceRiskResult">
+        <result property="id"    column="id"    />
+        <result property="remarks"    column="remarks"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="area"    column="area"    />
+        <result property="diskLevel"    column="disk_level"    />
+        <result property="reason"    column="reason"    />
+        <result property="handleType"    column="handle_type"    />
+        <result property="disk"    column="disk"    />
+        <result property="discoveryDate"    column="discovery_date"    />
+        <result property="planRemoveDate"    column="plan_remove_date"    />
+        <result property="actualDate"    column="actual_date"    />
+        <result property="handleMethods"    column="handle_methods"    />
+        <result property="emergencyPlan"    column="emergency_plan"    />
+
+    </resultMap>
+
+    <sql id="selectTDeviceRiskVo">
+        select d.id, d.remarks, d.del_flag, d.area, d.disk_level, d.reason, d.handle_type, d.disk, d.discovery_date, d.plan_remove_date, d.actual_date, d.handle_methods, d.emergency_plan  from t_device_risk d
+
+    </sql>
+
+    <select id="selectTDeviceRiskList" parameterType="TDeviceRisk" resultMap="TDeviceRiskResult">
+        <include refid="selectTDeviceRiskVo"/>
+        <where>  
+            <if test="remarks != null  and remarks != ''"> and remarks = #{remarks}</if>
+            <if test="area != null  and area != ''"> and area = #{area}</if>
+            <if test="diskLevel != null "> and disk_level = #{diskLevel}</if>
+            <if test="reason != null  and reason != ''"> and reason = #{reason}</if>
+            <if test="handleType != null "> and handle_type = #{handleType}</if>
+            <if test="disk != null  and disk != ''"> and disk = #{disk}</if>
+            <if test="discoveryDate != null "> and discovery_date = #{discoveryDate}</if>
+            <if test="planRemoveDate != null "> and plan_remove_date = #{planRemoveDate}</if>
+            <if test="actualDate != null "> and actual_date = #{actualDate}</if>
+            <if test="handleMethods != null  and handleMethods != ''"> and handle_methods = #{handleMethods}</if>
+            <if test="emergencyPlan != null  and emergencyPlan != ''"> and emergency_plan = #{emergencyPlan}</if>
+            and d.del_flag = 0
+        </where>
+        <!-- 数据范围过滤 -->
+        ${params.dataScope}
+    </select>
+    
+    <select id="selectTDeviceRiskById" parameterType="Long" resultMap="TDeviceRiskResult">
+        <include refid="selectTDeviceRiskVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTDeviceRisk" parameterType="TDeviceRisk">
+        <selectKey keyProperty="id" resultType="long" order="BEFORE">
+            SELECT seq_t_device_risk.NEXTVAL as id FROM DUAL
+        </selectKey>
+        insert into t_device_risk
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="remarks != null">remarks,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="area != null">area,</if>
+            <if test="diskLevel != null">disk_level,</if>
+            <if test="reason != null">reason,</if>
+            <if test="handleType != null">handle_type,</if>
+            <if test="disk != null">disk,</if>
+            <if test="discoveryDate != null">discovery_date,</if>
+            <if test="planRemoveDate != null">plan_remove_date,</if>
+            <if test="actualDate != null">actual_date,</if>
+            <if test="handleMethods != null">handle_methods,</if>
+            <if test="emergencyPlan != null">emergency_plan,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="remarks != null">#{remarks},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="area != null">#{area},</if>
+            <if test="diskLevel != null">#{diskLevel},</if>
+            <if test="reason != null">#{reason},</if>
+            <if test="handleType != null">#{handleType},</if>
+            <if test="disk != null">#{disk},</if>
+            <if test="discoveryDate != null">#{discoveryDate},</if>
+            <if test="planRemoveDate != null">#{planRemoveDate},</if>
+            <if test="actualDate != null">#{actualDate},</if>
+            <if test="handleMethods != null">#{handleMethods},</if>
+            <if test="emergencyPlan != null">#{emergencyPlan},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTDeviceRisk" parameterType="TDeviceRisk">
+        update t_device_risk
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="remarks != null">remarks = #{remarks},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="area != null">area = #{area},</if>
+            <if test="diskLevel != null">disk_level = #{diskLevel},</if>
+            <if test="reason != null">reason = #{reason},</if>
+            <if test="handleType != null">handle_type = #{handleType},</if>
+            <if test="disk != null">disk = #{disk},</if>
+            <if test="discoveryDate != null">discovery_date = #{discoveryDate},</if>
+            <if test="planRemoveDate != null">plan_remove_date = #{planRemoveDate},</if>
+            <if test="actualDate != null">actual_date = #{actualDate},</if>
+            <if test="handleMethods != null">handle_methods = #{handleMethods},</if>
+            <if test="emergencyPlan != null">emergency_plan = #{emergencyPlan},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <update id="deleteTDeviceRiskById" parameterType="Long">
+        update t_device_risk set del_flag = 2 where id = #{id}
+    </update>
+
+    <update id="deleteTDeviceRiskByIds" parameterType="String">
+        update t_device_risk set del_flag = 2 where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+    
+</mapper>

+ 101 - 0
master/src/main/resources/mybatis/reliability/TKekaoMgListMapper.xml

@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ruoyi.project.reliability.mapper.TKekaoMgListMapper">
+    
+    <resultMap type="TKekaoMgList" id="TKekaoMgListResult">
+        <result property="id"    column="id"    />
+        <result property="plantCode"    column="plant_code"    />
+        <result property="influenceFactor"    column="influence_factor"    />
+        <result property="measures"    column="measures"    />
+        <result property="completeStatus"    column="complete_status"    />
+        <result property="implementDate"    column="implement_date"    />
+        <result property="implementPerson"    column="implement_person"    />
+        <result property="approveStatus"    column="approve_status"    />
+        <result property="delFlag"    column="del_flag"    />
+
+    </resultMap>
+
+    <sql id="selectTKekaoMgListVo">
+        select d.id, d.plant_code, d.influence_factor, d.measures, d.complete_status, d.implement_date, d.implement_person, d.approve_status, d.del_flag  from t_kekao_mg_list d
+
+    </sql>
+
+    <select id="selectTKekaoMgListList" parameterType="TKekaoMgList" resultMap="TKekaoMgListResult">
+        <include refid="selectTKekaoMgListVo"/>
+        <where>  
+            <if test="plantCode != null  and plantCode != ''"> and plant_code = #{plantCode}</if>
+            <if test="influenceFactor != null  and influenceFactor != ''"> and influence_factor = #{influenceFactor}</if>
+            <if test="measures != null  and measures != ''"> and measures = #{measures}</if>
+            <if test="completeStatus != null "> and complete_status = #{completeStatus}</if>
+            <if test="implementDate != null "> and implement_date = #{implementDate}</if>
+            <if test="implementPerson != null  and implementPerson != ''"> and implement_person = #{implementPerson}</if>
+            <if test="approveStatus != null "> and approve_status = #{approveStatus}</if>
+            and d.del_flag = 0
+        </where>
+        <!-- 数据范围过滤 -->
+        ${params.dataScope}
+    </select>
+    
+    <select id="selectTKekaoMgListById" parameterType="Long" resultMap="TKekaoMgListResult">
+        <include refid="selectTKekaoMgListVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTKekaoMgList" parameterType="TKekaoMgList">
+        <selectKey keyProperty="id" resultType="long" order="BEFORE">
+            SELECT seq_t_kekao_mg_list.NEXTVAL as id FROM DUAL
+        </selectKey>
+        insert into t_kekao_mg_list
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="plantCode != null">plant_code,</if>
+            <if test="influenceFactor != null">influence_factor,</if>
+            <if test="measures != null">measures,</if>
+            <if test="completeStatus != null">complete_status,</if>
+            <if test="implementDate != null">implement_date,</if>
+            <if test="implementPerson != null">implement_person,</if>
+            <if test="approveStatus != null">approve_status,</if>
+            <if test="delFlag != null">del_flag,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="plantCode != null">#{plantCode},</if>
+            <if test="influenceFactor != null">#{influenceFactor},</if>
+            <if test="measures != null">#{measures},</if>
+            <if test="completeStatus != null">#{completeStatus},</if>
+            <if test="implementDate != null">#{implementDate},</if>
+            <if test="implementPerson != null">#{implementPerson},</if>
+            <if test="approveStatus != null">#{approveStatus},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTKekaoMgList" parameterType="TKekaoMgList">
+        update t_kekao_mg_list
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="plantCode != null">plant_code = #{plantCode},</if>
+            <if test="influenceFactor != null">influence_factor = #{influenceFactor},</if>
+            <if test="measures != null">measures = #{measures},</if>
+            <if test="completeStatus != null">complete_status = #{completeStatus},</if>
+            <if test="implementDate != null">implement_date = #{implementDate},</if>
+            <if test="implementPerson != null">implement_person = #{implementPerson},</if>
+            <if test="approveStatus != null">approve_status = #{approveStatus},</if>
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <update id="deleteTKekaoMgListById" parameterType="Long">
+        update t_kekao_mg_list set del_flag = 2 where id = #{id}
+    </update>
+
+    <update id="deleteTKekaoMgListByIds" parameterType="String">
+        update t_kekao_mg_list set del_flag = 2 where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+    
+</mapper>

+ 53 - 0
ui/src/api/reliability/experience.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询装置经验数据库列表
+export function listExperience(query) {
+  return request({
+    url: '/reliability/experience/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询装置经验数据库详细
+export function getExperience(id) {
+  return request({
+    url: '/reliability/experience/' + id,
+    method: 'get'
+  })
+}
+
+// 新增装置经验数据库
+export function addExperience(data) {
+  return request({
+    url: '/reliability/experience',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改装置经验数据库
+export function updateExperience(data) {
+  return request({
+    url: '/reliability/experience',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除装置经验数据库
+export function delExperience(id) {
+  return request({
+    url: '/reliability/experience/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出装置经验数据库
+export function exportExperience(query) {
+  return request({
+    url: '/reliability/experience/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
ui/src/api/reliability/factor.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询不良因素清单列表
+export function listFactor(query) {
+  return request({
+    url: '/reliability/factor/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询不良因素清单详细
+export function getFactor(id) {
+  return request({
+    url: '/reliability/factor/' + id,
+    method: 'get'
+  })
+}
+
+// 新增不良因素清单
+export function addFactor(data) {
+  return request({
+    url: '/reliability/factor',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改不良因素清单
+export function updateFactor(data) {
+  return request({
+    url: '/reliability/factor',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除不良因素清单
+export function delFactor(id) {
+  return request({
+    url: '/reliability/factor/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出不良因素清单
+export function exportFactor(query) {
+  return request({
+    url: '/reliability/factor/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
ui/src/api/reliability/kekao.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询可靠性管理清单列表
+export function listKekao(query) {
+  return request({
+    url: '/reliability/kekao/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询可靠性管理清单详细
+export function getKekao(id) {
+  return request({
+    url: '/reliability/kekao/' + id,
+    method: 'get'
+  })
+}
+
+// 新增可靠性管理清单
+export function addKekao(data) {
+  return request({
+    url: '/reliability/kekao',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改可靠性管理清单
+export function updateKekao(data) {
+  return request({
+    url: '/reliability/kekao',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除可靠性管理清单
+export function delKekao(id) {
+  return request({
+    url: '/reliability/kekao/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出可靠性管理清单
+export function exportKekao(query) {
+  return request({
+    url: '/reliability/kekao/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
ui/src/api/reliability/parts.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询关键部件库存清单列表
+export function listParts(query) {
+  return request({
+    url: '/reliability/parts/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询关键部件库存清单详细
+export function getParts(id) {
+  return request({
+    url: '/reliability/parts/' + id,
+    method: 'get'
+  })
+}
+
+// 新增关键部件库存清单
+export function addParts(data) {
+  return request({
+    url: '/reliability/parts',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改关键部件库存清单
+export function updateParts(data) {
+  return request({
+    url: '/reliability/parts',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除关键部件库存清单
+export function delParts(id) {
+  return request({
+    url: '/reliability/parts/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出关键部件库存清单
+export function exportParts(query) {
+  return request({
+    url: '/reliability/parts/export',
+    method: 'get',
+    params: query
+  })
+}

+ 53 - 0
ui/src/api/reliability/risk.js

@@ -0,0 +1,53 @@
+import request from '@/utils/request'
+
+// 查询装置风险清单列表
+export function listRisk(query) {
+  return request({
+    url: '/reliability/risk/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询装置风险清单详细
+export function getRisk(id) {
+  return request({
+    url: '/reliability/risk/' + id,
+    method: 'get'
+  })
+}
+
+// 新增装置风险清单
+export function addRisk(data) {
+  return request({
+    url: '/reliability/risk',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改装置风险清单
+export function updateRisk(data) {
+  return request({
+    url: '/reliability/risk',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除装置风险清单
+export function delRisk(id) {
+  return request({
+    url: '/reliability/risk/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出装置风险清单
+export function exportRisk(query) {
+  return request({
+    url: '/reliability/risk/export',
+    method: 'get',
+    params: query
+  })
+}

+ 455 - 0
ui/src/views/reliability/experience/index.vue

@@ -0,0 +1,455 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="备注" prop="remarks">
+        <el-input
+          v-model="queryParams.remarks"
+          placeholder="请输入备注"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="事件" prop="event">
+        <el-input
+          v-model="queryParams.event"
+          placeholder="请输入事件"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="处理经过" prop="handleProcess">
+        <el-input
+          v-model="queryParams.handleProcess"
+          placeholder="请输入处理经过"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="处理结果" prop="handleResult">
+        <el-input
+          v-model="queryParams.handleResult"
+          placeholder="请输入处理结果"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="获得经验" prop="experience">
+        <el-input
+          v-model="queryParams.experience"
+          placeholder="请输入获得经验"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="事故报告链接" prop="accidentReportLink">
+        <el-input
+          v-model="queryParams.accidentReportLink"
+          placeholder="请输入事故报告链接"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="专家评价" prop="expertEvaluation">
+        <el-input
+          v-model="queryParams.expertEvaluation"
+          placeholder="请输入专家评价"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </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-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['reliability:experience:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['reliability:experience:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['reliability:experience:remove']"
+        >删除</el-button>
+      </el-col>
+        <el-col :span="1.5">
+            <el-button
+                    type="info"
+                    icon="el-icon-upload2"
+                    size="mini"
+                    @click="handleImport"
+                    v-hasPermi="['reliability:experience:edit']"
+            >导入</el-button>
+        </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['reliability:experience:export']"
+        >导出</el-button>
+      </el-col>
+	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="experienceList" @selection-change="handleSelectionChange" :height="clientHeight" border>
+      <el-table-column type="selection" width="55" align="center" />
+    
+      <el-table-column label="事件" align="center" prop="event" :show-overflow-tooltip="true"/>
+      <el-table-column label="处理经过" align="center" prop="handleProcess" :show-overflow-tooltip="true"/>
+      <el-table-column label="处理结果" align="center" prop="handleResult" :show-overflow-tooltip="true"/>
+      <el-table-column label="获得经验" align="center" prop="experience" :show-overflow-tooltip="true"/>
+      <el-table-column label="事故报告链接" align="center" prop="accidentReportLink" :show-overflow-tooltip="true"/>
+      <el-table-column label="专家评价" align="center" prop="expertEvaluation" :show-overflow-tooltip="true"/>
+        <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
+      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['reliability:experience:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['reliability:experience:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改装置经验数据库对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+    
+     
+        <el-form-item label="事件" prop="event">
+          <el-input v-model="form.event" placeholder="请输入事件" />
+        </el-form-item>
+        <el-form-item label="处理经过" prop="handleProcess">
+          <el-input v-model="form.handleProcess" placeholder="请输入处理经过" />
+        </el-form-item>
+        <el-form-item label="处理结果" prop="handleResult">
+          <el-input v-model="form.handleResult" placeholder="请输入处理结果" />
+        </el-form-item>
+        <el-form-item label="获得经验" prop="experience">
+          <el-input v-model="form.experience" placeholder="请输入获得经验" />
+        </el-form-item>
+        <el-form-item label="事故报告链接" prop="accidentReportLink">
+          <el-input v-model="form.accidentReportLink" placeholder="请输入事故报告链接" />
+        </el-form-item>
+        <el-form-item label="专家评价" prop="expertEvaluation">
+          <el-input v-model="form.expertEvaluation" placeholder="请输入专家评价" />
+        </el-form-item>
+            <el-form-item label="备注" prop="remarks">
+          <el-input v-model="form.remarks" placeholder="请输入备注" />
+        </el-form-item>
+          <el-form-item label="归属部门" prop="deptId">
+              <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" />
+          </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+      <!-- 用户导入对话框 -->
+      <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
+          <el-upload
+                  ref="upload"
+                  :limit="1"
+                  accept=".xlsx, .xls"
+                  :headers="upload.headers"
+                  :action="upload.url + '?updateSupport=' + upload.updateSupport"
+                  :disabled="upload.isUploading"
+                  :on-progress="handleFileUploadProgress"
+                  :on-success="handleFileSuccess"
+                  :auto-upload="false"
+                  drag
+          >
+              <i class="el-icon-upload"></i>
+              <div class="el-upload__text">
+                  将文件拖到此处,或
+                  <em>点击上传</em>
+              </div>
+              <div class="el-upload__tip" slot="tip">
+                  <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
+                  <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
+              </div>
+              <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
+          </el-upload>
+          <div slot="footer" class="dialog-footer">
+              <el-button type="primary" @click="submitFileForm">确 定</el-button>
+              <el-button @click="upload.open = false">取 消</el-button>
+          </div>
+      </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listExperience, getExperience, delExperience, addExperience, updateExperience, exportExperience, importTemplate} from "@/api/reliability/experience";
+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: "Experience",
+  components: { Treeselect },
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: false,
+      // 总条数
+      total: 0,
+      // 装置经验数据库表格数据
+      experienceList: [],
+      // 弹出层标题
+      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 + "/reliability/experience/importData"
+        },
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 20,
+        remarks: null,
+        event: null,
+        handleProcess: null,
+        handleResult: null,
+        experience: null,
+        accidentReportLink: null,
+        expertEvaluation: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  watch: {
+        // 根据名称筛选部门树
+        deptName(val) {
+            this.$refs.tree.filter(val);
+        }
+   },
+  created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+          this.clientHeight = document.body.clientHeight -250
+      })
+    this.getList();
+    this.getTreeselect();
+  },
+  methods: {
+    /** 查询装置经验数据库列表 */
+    getList() {
+      this.loading = true;
+      listExperience(this.queryParams).then(response => {
+        this.experienceList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+     /** 查询部门下拉树结构 */
+     getTreeselect() {
+          treeselect().then(response => {
+              this.deptOptions = response.data;
+          });
+     },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        remarks: null,
+        delFlag: null,
+        event: null,
+        handleProcess: null,
+        handleResult: null,
+        experience: null,
+        accidentReportLink: null,
+        expertEvaluation: null
+      };
+      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.open = true;
+      this.title = "添加装置经验数据库";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getExperience(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改装置经验数据库";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateExperience(this.form).then(response => {
+              this.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addExperience(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 delExperience(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        })
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有装置经验数据库数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return exportExperience(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>

+ 523 - 0
ui/src/views/reliability/factor/index.vue

@@ -0,0 +1,523 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="备注" prop="remarks">
+        <el-input
+          v-model="queryParams.remarks"
+          placeholder="请输入备注"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="区域" prop="area">
+        <el-input
+          v-model="queryParams.area"
+          placeholder="请输入区域"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="不良因素" prop="nagetiveFactor">
+        <el-input
+          v-model="queryParams.nagetiveFactor"
+          placeholder="请输入不良因素"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="原因" prop="reason">
+        <el-input
+          v-model="queryParams.reason"
+          placeholder="请输入原因"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="等级" prop="diskLevel">
+        <el-input
+          v-model="queryParams.diskLevel"
+          placeholder="请输入等级"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="风险" prop="disk">
+        <el-input
+          v-model="queryParams.disk"
+          placeholder="请输入风险"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="处理方法" prop="handleMethods">
+        <el-input
+          v-model="queryParams.handleMethods"
+          placeholder="请输入处理方法"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="发现日期" prop="discoveryDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.discoveryDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择发现日期">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="计划消除日期" prop="planRemoveDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.planRemoveDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择计划消除日期">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="实际消除日期" prop="actualDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.actualDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          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-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['reliability:factor:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['reliability:factor:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['reliability:factor:remove']"
+        >删除</el-button>
+      </el-col>
+        <el-col :span="1.5">
+            <el-button
+                    type="info"
+                    icon="el-icon-upload2"
+                    size="mini"
+                    @click="handleImport"
+                    v-hasPermi="['reliability:factor:edit']"
+            >导入</el-button>
+        </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['reliability:factor:export']"
+        >导出</el-button>
+      </el-col>
+	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="factorList" @selection-change="handleSelectionChange" :height="clientHeight" border>
+      <el-table-column type="selection" width="55" align="center" />
+    
+      <el-table-column label="区域" align="center" prop="area" :show-overflow-tooltip="true"/>
+      <el-table-column label="不良因素" align="center" prop="nagetiveFactor" :show-overflow-tooltip="true"/>
+      <el-table-column label="原因" align="center" prop="reason" :show-overflow-tooltip="true"/>
+      <el-table-column label="等级" align="center" prop="diskLevel" :show-overflow-tooltip="true"/>
+      <el-table-column label="风险" align="center" prop="disk" :show-overflow-tooltip="true"/>
+      <el-table-column label="处理方法" align="center" prop="handleMethods" :show-overflow-tooltip="true"/>
+      <el-table-column label="发现日期" align="center" prop="discoveryDate" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.discoveryDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="计划消除日期" align="center" prop="planRemoveDate" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.planRemoveDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="实际消除日期" align="center" prop="actualDate" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.actualDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+        <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
+      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['reliability:factor:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['reliability:factor:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改不良因素清单对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+    
+        <el-form-item label="区域" prop="area">
+          <el-input v-model="form.area" placeholder="请输入区域" />
+        </el-form-item>
+        <el-form-item label="不良因素" prop="nagetiveFactor">
+          <el-input v-model="form.nagetiveFactor" placeholder="请输入不良因素" />
+        </el-form-item>
+        <el-form-item label="原因" prop="reason">
+          <el-input v-model="form.reason" placeholder="请输入原因" />
+        </el-form-item>
+        <el-form-item label="等级" prop="diskLevel">
+          <el-input v-model="form.diskLevel" placeholder="请输入等级" />
+        </el-form-item>
+        <el-form-item label="风险" prop="disk">
+          <el-input v-model="form.disk" placeholder="请输入风险" />
+        </el-form-item>
+        <el-form-item label="处理方法" prop="handleMethods">
+          <el-input v-model="form.handleMethods" placeholder="请输入处理方法" />
+        </el-form-item>
+        <el-form-item label="发现日期" prop="discoveryDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.discoveryDate"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择发现日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="计划消除日期" prop="planRemoveDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.planRemoveDate"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择计划消除日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="实际消除日期" prop="actualDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.actualDate"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择实际消除日期">
+          </el-date-picker>
+        </el-form-item>
+       <el-form-item label="备注" prop="remarks">
+          <el-input v-model="form.remarks" placeholder="请输入备注" />
+        </el-form-item>
+          <el-form-item label="归属部门" prop="deptId">
+              <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" />
+          </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+      <!-- 用户导入对话框 -->
+      <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
+          <el-upload
+                  ref="upload"
+                  :limit="1"
+                  accept=".xlsx, .xls"
+                  :headers="upload.headers"
+                  :action="upload.url + '?updateSupport=' + upload.updateSupport"
+                  :disabled="upload.isUploading"
+                  :on-progress="handleFileUploadProgress"
+                  :on-success="handleFileSuccess"
+                  :auto-upload="false"
+                  drag
+          >
+              <i class="el-icon-upload"></i>
+              <div class="el-upload__text">
+                  将文件拖到此处,或
+                  <em>点击上传</em>
+              </div>
+              <div class="el-upload__tip" slot="tip">
+                  <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
+                  <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
+              </div>
+              <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
+          </el-upload>
+          <div slot="footer" class="dialog-footer">
+              <el-button type="primary" @click="submitFileForm">确 定</el-button>
+              <el-button @click="upload.open = false">取 消</el-button>
+          </div>
+      </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listFactor, getFactor, delFactor, addFactor, updateFactor, exportFactor, importTemplate} from "@/api/reliability/factor";
+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: "Factor",
+  components: { Treeselect },
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: false,
+      // 总条数
+      total: 0,
+      // 不良因素清单表格数据
+      factorList: [],
+      // 弹出层标题
+      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 + "/reliability/factor/importData"
+        },
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 20,
+        remarks: null,
+        area: null,
+        nagetiveFactor: null,
+        reason: null,
+        diskLevel: null,
+        disk: null,
+        handleMethods: null,
+        discoveryDate: null,
+        planRemoveDate: null,
+        actualDate: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  watch: {
+        // 根据名称筛选部门树
+        deptName(val) {
+            this.$refs.tree.filter(val);
+        }
+   },
+  created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+          this.clientHeight = document.body.clientHeight -250
+      })
+    this.getList();
+    this.getTreeselect();
+  },
+  methods: {
+    /** 查询不良因素清单列表 */
+    getList() {
+      this.loading = true;
+      listFactor(this.queryParams).then(response => {
+        this.factorList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+     /** 查询部门下拉树结构 */
+     getTreeselect() {
+          treeselect().then(response => {
+              this.deptOptions = response.data;
+          });
+     },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        remarks: null,
+        area: null,
+        nagetiveFactor: null,
+        reason: null,
+        diskLevel: null,
+        disk: null,
+        handleMethods: null,
+        discoveryDate: null,
+        planRemoveDate: null,
+        actualDate: null,
+        delFlag: null
+      };
+      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.open = true;
+      this.title = "添加不良因素清单";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getFactor(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改不良因素清单";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateFactor(this.form).then(response => {
+              this.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addFactor(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 delFactor(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        })
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有不良因素清单数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return exportFactor(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>

+ 542 - 0
ui/src/views/reliability/kekao/index.vue

@@ -0,0 +1,542 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="装置名称" prop="plantCode">
+        <el-input
+          v-model="queryParams.plantCode"
+          placeholder="请输入装置名称"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="影响因素" prop="influenceFactor">
+        <el-input
+          v-model="queryParams.influenceFactor"
+          placeholder="请输入影响因素"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="措施" prop="measures">
+        <el-input
+          v-model="queryParams.measures"
+          placeholder="请输入措施"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="完成状态" prop="completeStatus">
+        <el-select v-model="queryParams.completeStatus" placeholder="请选择完成状态" clearable size="small">
+          <el-option
+            v-for="dict in completeStatusOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="实行时间" prop="implementDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.implementDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择实行时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="实行人" prop="implementPerson">
+        <el-input
+          v-model="queryParams.implementPerson"
+          placeholder="请输入实行人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="申请状态" prop="approveStatus">
+        <el-select v-model="queryParams.approveStatus" placeholder="请选择申请状态" clearable size="small">
+          <el-option
+            v-for="dict in approveStatusOptions"
+            :key="dict.dictValue"
+            :label="dict.dictLabel"
+            :value="dict.dictValue"
+          />
+        </el-select>
+      </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-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['reliability:list:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['reliability:list:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['reliability:list:remove']"
+        >删除</el-button>
+      </el-col>
+        <el-col :span="1.5">
+            <el-button
+                    type="info"
+                    icon="el-icon-upload2"
+                    size="mini"
+                    @click="handleImport"
+                    v-hasPermi="['reliability:list:edit']"
+            >导入</el-button>
+        </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['reliability:list:export']"
+        >导出</el-button>
+      </el-col>
+	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="listList" @selection-change="handleSelectionChange" :height="clientHeight" border>
+      <el-table-column type="selection" width="55" align="center" />
+      <el-table-column label="装置名称" align="center" prop="plantCode" :show-overflow-tooltip="true"/>
+      <el-table-column label="影响因素" align="center" prop="influenceFactor" :show-overflow-tooltip="true"/>
+      <el-table-column label="措施" align="center" prop="measures" :show-overflow-tooltip="true"/>
+      <el-table-column label="完成状态" align="center" prop="completeStatus" :formatter="completeStatusFormat" />
+      <el-table-column label="实行时间" align="center" prop="implementDate" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.implementDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="实行人" align="center" prop="implementPerson" :show-overflow-tooltip="true"/>
+      <el-table-column label="申请状态" align="center" prop="approveStatus" :formatter="approveStatusFormat" />
+      <el-table-column label="操作" align="center" fixed="right" width="150" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['reliability:list:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['reliability:list:remove']"
+          >删除</el-button>
+             <el-button
+              type="text"
+              size="mini"
+              @click="addAprrove(scope.row)"
+            >{{ $t('提交可靠性申请') }}</el-button>
+          <el-button
+        
+            type="text"
+            size="small"
+            @click="hisApprove(scope.row)">
+            {{ $t('可靠性申请记录') }}</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改可靠性管理清单对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+        <el-form-item label="装置名称" prop="plantCode">
+          <el-input v-model="form.plantCode" placeholder="请输入装置名称" />
+        </el-form-item>
+        <el-form-item label="影响因素" prop="influenceFactor">
+          <el-input v-model="form.influenceFactor" placeholder="请输入影响因素" />
+        </el-form-item>
+        <el-form-item label="措施" prop="measures">
+          <el-input v-model="form.measures" placeholder="请输入措施" />
+        </el-form-item>
+        <el-form-item label="完成状态" prop="completeStatus">
+          <el-select v-model="form.completeStatus" placeholder="请选择完成状态">
+            <el-option
+              v-for="dict in completeStatusOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="parseInt(dict.dictValue)"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="实行时间" prop="implementDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.implementDate"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择实行时间">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="实行人" prop="implementPerson">
+          <el-input v-model="form.implementPerson" placeholder="请输入实行人" />
+        </el-form-item>
+        <el-form-item label="申请状态" prop="approveStatus">
+          <el-select v-model="form.approveStatus" placeholder="请选择申请状态">
+            <el-option
+              v-for="dict in approveStatusOptions"
+              :key="dict.dictValue"
+              :label="dict.dictLabel"
+              :value="parseInt(dict.dictValue)"
+            ></el-option>
+          </el-select>
+        </el-form-item>
+        <el-form-item label="状态 1 :正常 ;0:删除" prop="delFlag">
+          <el-input v-model="form.delFlag" placeholder="请输入状态 1 :正常 ;0:删除" />
+        </el-form-item>
+          <el-form-item label="归属部门" prop="deptId">
+              <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" />
+          </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+      <!-- 用户导入对话框 -->
+      <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
+          <el-upload
+                  ref="upload"
+                  :limit="1"
+                  accept=".xlsx, .xls"
+                  :headers="upload.headers"
+                  :action="upload.url + '?updateSupport=' + upload.updateSupport"
+                  :disabled="upload.isUploading"
+                  :on-progress="handleFileUploadProgress"
+                  :on-success="handleFileSuccess"
+                  :auto-upload="false"
+                  drag
+          >
+              <i class="el-icon-upload"></i>
+              <div class="el-upload__text">
+                  将文件拖到此处,或
+                  <em>点击上传</em>
+              </div>
+              <div class="el-upload__tip" slot="tip">
+                  <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
+                  <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
+              </div>
+              <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
+          </el-upload>
+          <div slot="footer" class="dialog-footer">
+              <el-button type="primary" @click="submitFileForm">确 定</el-button>
+              <el-button @click="upload.open = false">取 消</el-button>
+          </div>
+      </el-dialog>
+
+      <add-approve v-if="addAprroveVisible" ref="addApprove" @refreshDataList="getList"></add-approve>
+    <his-approve v-if="hisAprroveVisible" ref="hisApprove" @refreshDataList="getList"></his-approve>
+  </div>
+</template>
+
+<script>
+import { listKekao, getKekao, delKekao, addKekao, updateKekao, exportKekao, importTemplate} from "@/api/reliability/kekao";
+import AddApprove from "../approve/tapprove-add"
+import HisApprove from "../approve/tapprove-his"
+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: "Kekao",
+  components: { Treeselect ,AddApprove,HisApprove},
+  data() {
+    return {
+      addAprroveVisible: false,
+      hisAprroveVisible: false,
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: false,
+      // 总条数
+      total: 0,
+      // 可靠性管理清单表格数据
+      listList: [],
+      // 弹出层标题
+      title: "",
+      // 部门树选项
+      deptOptions: undefined,
+      clientHeight:300,
+      // 是否显示弹出层
+      open: false,
+      // 完成状态字典
+      completeStatusOptions: [],
+      // 申请状态字典
+      approveStatusOptions: [],
+        // 用户导入参数
+        upload: {
+            // 是否显示弹出层(用户导入)
+            open: false,
+            // 弹出层标题(用户导入)
+            title: "",
+            // 是否禁用上传
+            isUploading: false,
+            // 是否更新已经存在的用户数据
+            updateSupport: 0,
+            // 设置上传的请求头部
+            headers: { Authorization: "Bearer " + getToken() },
+            // 上传的地址
+            url: process.env.VUE_APP_BASE_API + "/reliability/Kekao/importData"
+        },
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 20,
+        plantCode: null,
+        influenceFactor: null,
+        measures: null,
+        completeStatus: null,
+        implementDate: null,
+        implementPerson: null,
+        approveStatus: null,
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  watch: {
+        // 根据名称筛选部门树
+        deptName(val) {
+            this.$refs.tree.filter(val);
+        }
+   },
+  created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+          this.clientHeight = document.body.clientHeight -250
+      })
+    this.getList();
+    this.getTreeselect();
+    this.getDicts("INTACT_STATUS").then(response => {
+      this.completeStatusOptions = response.data;
+    });
+    this.getDicts("spec_approve_status").then(response => {
+      this.approveStatusOptions = response.data;
+    });
+  },
+  methods: {
+    /** 查询可靠性管理清单列表 */
+    getList() {
+      this.loading = true;
+      listKekao(this.queryParams).then(response => {
+        this.listList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+     /** 查询部门下拉树结构 */
+     getTreeselect() {
+          treeselect().then(response => {
+              this.deptOptions = response.data;
+          });
+     },
+    // 完成状态字典翻译
+    completeStatusFormat(row, column) {
+      return this.selectDictLabel(this.completeStatusOptions, row.completeStatus);
+    },
+    // 申请状态字典翻译
+    approveStatusFormat(row, column) {
+      return this.selectDictLabel(this.approveStatusOptions, row.approveStatus);
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        plantCode: null,
+        influenceFactor: null,
+        measures: null,
+        completeStatus: null,
+        implementDate: null,
+        implementPerson: null,
+        approveStatus: null,
+        delFlag: null
+      };
+      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.open = true;
+      this.title = "添加可靠性管理清单";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getList(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改可靠性管理清单";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateKekao(this.form).then(response => {
+              this.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addKekao(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 delList(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        })
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有可靠性管理清单数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return exportList(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();
+      },
+      //提交申请方法
+     addAprrove (row) {
+      var rows = row ? [row] : this.dataListSelections.map(item => {
+        return item
+      })
+      for (let i = 0; i <rows.length ; i++) {
+        if (rows[i].approveStatus != 0) {
+          this.$alert(this.$t('当前设备正在申请中,无法重复申请'), this.$t('提示'), {
+            type: 'warning'
+          })
+          return
+        }
+      }
+      this.addAprroveVisible = true
+      console.log(rows)
+   
+      this.$nextTick(() => {
+        this.$refs.addApprove.init(rows)
+      })
+    },
+    hisApprove (row) {
+      this.hisAprroveVisible = true
+      this.$nextTick(() => {
+        this.$refs.hisApprove.init(row)
+      })
+    },
+  }
+};
+</script>

+ 549 - 0
ui/src/views/reliability/parts/index.vue

@@ -0,0 +1,549 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="备注" prop="remarks">
+        <el-input
+          v-model="queryParams.remarks"
+          placeholder="请输入备注"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="部件" prop="parts">
+        <el-input
+          v-model="queryParams.parts"
+          placeholder="请输入部件"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="区域" prop="area">
+        <el-input
+          v-model="queryParams.area"
+          placeholder="请输入区域"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="适用设备" prop="suitDevice">
+        <el-input
+          v-model="queryParams.suitDevice"
+          placeholder="请输入适用设备"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="库存量" prop="inventory">
+        <el-input
+          v-model="queryParams.inventory"
+          placeholder="请输入库存量"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="库存状态" prop="inventoryStatus">
+        <el-select v-model="queryParams.inventoryStatus" placeholder="请选择库存状态" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="重要性" prop="importance">
+        <el-input
+          v-model="queryParams.importance"
+          placeholder="请输入重要性"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="使用时间1" prop="useDateOne">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.useDateOne"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择使用时间1">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="使用时间2" prop="useDateTwo">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.useDateTwo"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择使用时间2">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="更换原因" prop="replaceReason">
+        <el-input
+          v-model="queryParams.replaceReason"
+          placeholder="请输入更换原因"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="更换要求
+" prop="replaceRequirement">
+        <el-input
+          v-model="queryParams.replaceRequirement"
+          placeholder="请输入更换要求
+"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="更换主要负责人" prop="replaceChargePerson">
+        <el-input
+          v-model="queryParams.replaceChargePerson"
+          placeholder="请输入更换主要负责人"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </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-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['reliability:parts:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['reliability:parts:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['reliability:parts:remove']"
+        >删除</el-button>
+      </el-col>
+        <el-col :span="1.5">
+            <el-button
+                    type="info"
+                    icon="el-icon-upload2"
+                    size="mini"
+                    @click="handleImport"
+                    v-hasPermi="['reliability:parts:edit']"
+            >导入</el-button>
+        </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['reliability:parts:export']"
+        >导出</el-button>
+      </el-col>
+	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="partsList" @selection-change="handleSelectionChange" :height="clientHeight" border>
+      <el-table-column type="selection" width="55" align="center" />
+      
+      <el-table-column label="部件" align="center" prop="parts" :show-overflow-tooltip="true"/>
+      <el-table-column label="区域" align="center" prop="area" :show-overflow-tooltip="true"/>
+      <el-table-column label="适用设备" align="center" prop="suitDevice" :show-overflow-tooltip="true"/>
+      <el-table-column label="库存量" align="center" prop="inventory" :show-overflow-tooltip="true"/>
+      <el-table-column label="库存状态" align="center" prop="inventoryStatus" :show-overflow-tooltip="true"/>
+      <el-table-column label="重要性" align="center" prop="importance" :show-overflow-tooltip="true"/>
+      <el-table-column label="使用时间1" align="center" prop="useDateOne" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.useDateOne, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="使用时间2" align="center" prop="useDateTwo" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.useDateTwo, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="更换原因" align="center" prop="replaceReason" :show-overflow-tooltip="true"/>
+      <el-table-column label="更换要求
+" align="center" prop="replaceRequirement" :show-overflow-tooltip="true"/>
+      <el-table-column label="更换主要负责人" align="center" prop="replaceChargePerson" :show-overflow-tooltip="true"/>
+      <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
+      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['reliability:parts:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['reliability:parts:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改关键部件库存清单对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+     
+ 
+        <el-form-item label="部件" prop="parts">
+          <el-input v-model="form.parts" placeholder="请输入部件" />
+        </el-form-item>
+        <el-form-item label="区域" prop="area">
+          <el-input v-model="form.area" placeholder="请输入区域" />
+        </el-form-item>
+        <el-form-item label="适用设备" prop="suitDevice">
+          <el-input v-model="form.suitDevice" placeholder="请输入适用设备" />
+        </el-form-item>
+        <el-form-item label="库存量" prop="inventory">
+          <el-input v-model="form.inventory" placeholder="请输入库存量" />
+        </el-form-item>
+        <el-form-item label="库存状态">
+          <el-radio-group v-model="form.inventoryStatus">
+            <el-radio label="1">请选择字典生成</el-radio>
+          </el-radio-group>
+        </el-form-item>
+        <el-form-item label="重要性" prop="importance">
+          <el-input v-model="form.importance" placeholder="请输入重要性" />
+        </el-form-item>
+        <el-form-item label="使用时间1" prop="useDateOne">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.useDateOne"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择使用时间1">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="使用时间2" prop="useDateTwo">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.useDateTwo"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择使用时间2">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="更换原因" prop="replaceReason">
+          <el-input v-model="form.replaceReason" placeholder="请输入更换原因" />
+        </el-form-item>
+        <el-form-item label="更换要求
+" prop="replaceRequirement">
+          <el-input v-model="form.replaceRequirement" placeholder="请输入更换要求
+" />
+        </el-form-item>
+        <el-form-item label="更换主要负责人" prop="replaceChargePerson">
+          <el-input v-model="form.replaceChargePerson" placeholder="请输入更换主要负责人" />
+        </el-form-item>
+           <el-form-item label="备注" prop="remarks">
+          <el-input v-model="form.remarks" placeholder="请输入备注" />
+        </el-form-item>
+          <el-form-item label="归属部门" prop="deptId">
+              <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" />
+          </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+      <!-- 用户导入对话框 -->
+      <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
+          <el-upload
+                  ref="upload"
+                  :limit="1"
+                  accept=".xlsx, .xls"
+                  :headers="upload.headers"
+                  :action="upload.url + '?updateSupport=' + upload.updateSupport"
+                  :disabled="upload.isUploading"
+                  :on-progress="handleFileUploadProgress"
+                  :on-success="handleFileSuccess"
+                  :auto-upload="false"
+                  drag
+          >
+              <i class="el-icon-upload"></i>
+              <div class="el-upload__text">
+                  将文件拖到此处,或
+                  <em>点击上传</em>
+              </div>
+              <div class="el-upload__tip" slot="tip">
+                  <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
+                  <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
+              </div>
+              <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
+          </el-upload>
+          <div slot="footer" class="dialog-footer">
+              <el-button type="primary" @click="submitFileForm">确 定</el-button>
+              <el-button @click="upload.open = false">取 消</el-button>
+          </div>
+      </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listParts, getParts, delParts, addParts, updateParts, exportParts, importTemplate} from "@/api/reliability/parts";
+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: "Parts",
+  components: { Treeselect },
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: false,
+      // 总条数
+      total: 0,
+      // 关键部件库存清单表格数据
+      partsList: [],
+      // 弹出层标题
+      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 + "/reliability/parts/importData"
+        },
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 20,
+        remarks: null,
+        parts: null,
+        area: null,
+        suitDevice: null,
+        inventory: null,
+        inventoryStatus: null,
+        importance: null,
+        useDateOne: null,
+        useDateTwo: null,
+        replaceReason: null,
+        replaceRequirement: null,
+        replaceChargePerson: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  watch: {
+        // 根据名称筛选部门树
+        deptName(val) {
+            this.$refs.tree.filter(val);
+        }
+   },
+  created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+          this.clientHeight = document.body.clientHeight -250
+      })
+    this.getList();
+    this.getTreeselect();
+  },
+  methods: {
+    /** 查询关键部件库存清单列表 */
+    getList() {
+      this.loading = true;
+      listParts(this.queryParams).then(response => {
+        this.partsList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+     /** 查询部门下拉树结构 */
+     getTreeselect() {
+          treeselect().then(response => {
+              this.deptOptions = response.data;
+          });
+     },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        remarks: null,
+        delFlag: null,
+        parts: null,
+        area: null,
+        suitDevice: null,
+        inventory: null,
+        inventoryStatus: 0,
+        importance: null,
+        useDateOne: null,
+        useDateTwo: null,
+        replaceReason: null,
+        replaceRequirement: null,
+        replaceChargePerson: null
+      };
+      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.open = true;
+      this.title = "添加关键部件库存清单";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getParts(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改关键部件库存清单";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateParts(this.form).then(response => {
+              this.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addParts(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 delParts(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        })
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有关键部件库存清单数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return exportParts(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>

+ 537 - 0
ui/src/views/reliability/risk/index.vue

@@ -0,0 +1,537 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="备注" prop="remarks">
+        <el-input
+          v-model="queryParams.remarks"
+          placeholder="请输入备注"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="区域" prop="area">
+        <el-input
+          v-model="queryParams.area"
+          placeholder="请输入区域"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="等级" prop="diskLevel">
+        <el-input
+          v-model="queryParams.diskLevel"
+          placeholder="请输入等级"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="原因" prop="reason">
+        <el-input
+          v-model="queryParams.reason"
+          placeholder="请输入原因"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="处理类型" prop="handleType">
+        <el-select v-model="queryParams.handleType" placeholder="请选择处理类型" clearable size="small">
+          <el-option label="请选择字典生成" value="" />
+        </el-select>
+      </el-form-item>
+      <el-form-item label="风险" prop="disk">
+        <el-input
+          v-model="queryParams.disk"
+          placeholder="请输入风险"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="发现日期" prop="discoveryDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.discoveryDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择发现日期">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="计划消除日期" prop="planRemoveDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.planRemoveDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择计划消除日期">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="实际消除日期" prop="actualDate">
+        <el-date-picker clearable size="small" style="width: 200px"
+          v-model="queryParams.actualDate"
+          type="date"
+          value-format="yyyy-MM-dd"
+          placeholder="选择实际消除日期">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item label="处理方法" prop="handleMethods">
+        <el-input
+          v-model="queryParams.handleMethods"
+          placeholder="请输入处理方法"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="应急预案" prop="emergencyPlan">
+        <el-input
+          v-model="queryParams.emergencyPlan"
+          placeholder="请输入应急预案"
+          clearable
+          size="small"
+          @keyup.enter.native="handleQuery"
+        />
+      </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-row :gutter="10" class="mb8">
+      <el-col :span="1.5">
+        <el-button
+          type="primary"
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['reliability:risk:add']"
+        >新增</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['reliability:risk:edit']"
+        >修改</el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['reliability:risk:remove']"
+        >删除</el-button>
+      </el-col>
+        <el-col :span="1.5">
+            <el-button
+                    type="info"
+                    icon="el-icon-upload2"
+                    size="mini"
+                    @click="handleImport"
+                    v-hasPermi="['reliability:risk:edit']"
+            >导入</el-button>
+        </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['reliability:risk:export']"
+        >导出</el-button>
+      </el-col>
+	  <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="riskList" @selection-change="handleSelectionChange" :height="clientHeight" border>
+      <el-table-column type="selection" width="55" align="center" />
+   
+      <el-table-column label="区域" align="center" prop="area" :show-overflow-tooltip="true"/>
+      <el-table-column label="等级" align="center" prop="diskLevel" :show-overflow-tooltip="true"/>
+      <el-table-column label="原因" align="center" prop="reason" :show-overflow-tooltip="true"/>
+      <el-table-column label="处理类型" align="center" prop="handleType" :show-overflow-tooltip="true"/>
+      <el-table-column label="风险" align="center" prop="disk" :show-overflow-tooltip="true"/>
+      <el-table-column label="发现日期" align="center" prop="discoveryDate" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.discoveryDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="计划消除日期" align="center" prop="planRemoveDate" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.planRemoveDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="实际消除日期" align="center" prop="actualDate" width="100">
+        <template slot-scope="scope">
+          <span>{{ parseTime(scope.row.actualDate, '{y}-{m}-{d}') }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="处理方法" align="center" prop="handleMethods" :show-overflow-tooltip="true"/>
+      <el-table-column label="应急预案" align="center" prop="emergencyPlan" :show-overflow-tooltip="true"/>
+         <el-table-column label="备注" align="center" prop="remarks" :show-overflow-tooltip="true"/>
+      <el-table-column label="操作" align="center" fixed="right" width="120" class-name="small-padding fixed-width">
+        <template slot-scope="scope">
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="handleUpdate(scope.row)"
+            v-hasPermi="['reliability:risk:edit']"
+          >修改</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['reliability:risk:remove']"
+          >删除</el-button>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+
+    <!-- 添加或修改装置风险清单对话框 -->
+    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
+      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
+    
+     
+        <el-form-item label="区域" prop="area">
+          <el-input v-model="form.area" placeholder="请输入区域" />
+        </el-form-item>
+        <el-form-item label="等级" prop="diskLevel">
+          <el-input v-model="form.diskLevel" placeholder="请输入等级" />
+        </el-form-item>
+        <el-form-item label="原因" prop="reason">
+          <el-input v-model="form.reason" placeholder="请输入原因" />
+        </el-form-item>
+        <el-form-item label="处理类型" prop="handleType">
+          <el-select v-model="form.handleType" placeholder="请选择处理类型">
+            <el-option label="请选择字典生成" value="" />
+          </el-select>
+        </el-form-item>
+        <el-form-item label="风险" prop="disk">
+          <el-input v-model="form.disk" placeholder="请输入风险" />
+        </el-form-item>
+        <el-form-item label="发现日期" prop="discoveryDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.discoveryDate"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择发现日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="计划消除日期" prop="planRemoveDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.planRemoveDate"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择计划消除日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="实际消除日期" prop="actualDate">
+          <el-date-picker clearable size="small" style="width: 200px"
+            v-model="form.actualDate"
+            type="date"
+            value-format="yyyy-MM-dd"
+            placeholder="选择实际消除日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="处理方法" prop="handleMethods">
+          <el-input v-model="form.handleMethods" placeholder="请输入处理方法" />
+        </el-form-item>
+        <el-form-item label="应急预案" prop="emergencyPlan">
+          <el-input v-model="form.emergencyPlan" placeholder="请输入应急预案" />
+        </el-form-item>
+            <el-form-item label="备注" prop="remarks">
+          <el-input v-model="form.remarks" placeholder="请输入备注" />
+        </el-form-item>
+          <el-form-item label="归属部门" prop="deptId">
+              <treeselect v-model="form.deptId" :options="deptOptions" :show-count="true" placeholder="请选择归属部门" />
+          </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
+      <!-- 用户导入对话框 -->
+      <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
+          <el-upload
+                  ref="upload"
+                  :limit="1"
+                  accept=".xlsx, .xls"
+                  :headers="upload.headers"
+                  :action="upload.url + '?updateSupport=' + upload.updateSupport"
+                  :disabled="upload.isUploading"
+                  :on-progress="handleFileUploadProgress"
+                  :on-success="handleFileSuccess"
+                  :auto-upload="false"
+                  drag
+          >
+              <i class="el-icon-upload"></i>
+              <div class="el-upload__text">
+                  将文件拖到此处,或
+                  <em>点击上传</em>
+              </div>
+              <div class="el-upload__tip" slot="tip">
+                  <el-checkbox v-model="upload.updateSupport" />是否更新已经存在的用户数据
+                  <el-link type="info" style="font-size:12px" @click="importTemplate">下载模板</el-link>
+              </div>
+              <div class="el-upload__tip" style="color:red" slot="tip">提示:仅允许导入“xls”或“xlsx”格式文件!</div>
+          </el-upload>
+          <div slot="footer" class="dialog-footer">
+              <el-button type="primary" @click="submitFileForm">确 定</el-button>
+              <el-button @click="upload.open = false">取 消</el-button>
+          </div>
+      </el-dialog>
+  </div>
+</template>
+
+<script>
+import { listRisk, getRisk, delRisk, addRisk, updateRisk, exportRisk, importTemplate} from "@/api/reliability/risk";
+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: "Risk",
+  components: { Treeselect },
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: false,
+      // 总条数
+      total: 0,
+      // 装置风险清单表格数据
+      riskList: [],
+      // 弹出层标题
+      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 + "/reliability/risk/importData"
+        },
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 20,
+        remarks: null,
+        area: null,
+        diskLevel: null,
+        reason: null,
+        handleType: null,
+        disk: null,
+        discoveryDate: null,
+        planRemoveDate: null,
+        actualDate: null,
+        handleMethods: null,
+        emergencyPlan: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {
+      }
+    };
+  },
+  watch: {
+        // 根据名称筛选部门树
+        deptName(val) {
+            this.$refs.tree.filter(val);
+        }
+   },
+  created() {
+      //设置表格高度对应屏幕高度
+      this.$nextTick(() => {
+          this.clientHeight = document.body.clientHeight -250
+      })
+    this.getList();
+    this.getTreeselect();
+  },
+  methods: {
+    /** 查询装置风险清单列表 */
+    getList() {
+      this.loading = true;
+      listRisk(this.queryParams).then(response => {
+        this.riskList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+     /** 查询部门下拉树结构 */
+     getTreeselect() {
+          treeselect().then(response => {
+              this.deptOptions = response.data;
+          });
+     },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        remarks: null,
+        delFlag: null,
+        area: null,
+        diskLevel: null,
+        reason: null,
+        handleType: null,
+        disk: null,
+        discoveryDate: null,
+        planRemoveDate: null,
+        actualDate: null,
+        handleMethods: null,
+        emergencyPlan: null
+      };
+      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.open = true;
+      this.title = "添加装置风险清单";
+    },
+    /** 修改按钮操作 */
+    handleUpdate(row) {
+      this.reset();
+      const id = row.id || this.ids
+      getRisk(id).then(response => {
+        this.form = response.data;
+        this.open = true;
+        this.title = "修改装置风险清单";
+      });
+    },
+    /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate(valid => {
+        if (valid) {
+          if (this.form.id != null) {
+            updateRisk(this.form).then(response => {
+              this.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addRisk(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 delRisk(ids);
+        }).then(() => {
+          this.getList();
+          this.msgSuccess("删除成功");
+        })
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      const queryParams = this.queryParams;
+      this.$confirm('是否确认导出所有装置风险清单数据项?', "警告", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }).then(function() {
+          return exportRisk(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>