Explorar o código

物资 避难所

lchao hai 10 meses
pai
achega
6bf688d822

+ 98 - 0
zhsq_qk-admin/src/main/java/zhsq_qk/web/controller/system/QkEmergencyShelterController.java

@@ -0,0 +1,98 @@
+package zhsq_qk.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+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 zhsq_qk.common.annotation.Log;
+import zhsq_qk.common.core.controller.BaseController;
+import zhsq_qk.common.core.domain.AjaxResult;
+import zhsq_qk.common.enums.BusinessType;
+import zhsq_qk.system.domain.QkEmergencyShelter;
+import zhsq_qk.system.service.IQkEmergencyShelterService;
+import zhsq_qk.common.utils.poi.ExcelUtil;
+import zhsq_qk.common.core.page.TableDataInfo;
+
+/**
+ * 应急避难所Controller
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+@RestController
+@RequestMapping("/system/shelter")
+public class QkEmergencyShelterController extends BaseController {
+    @Autowired
+    private IQkEmergencyShelterService qkEmergencyShelterService;
+
+/**
+ * 查询应急避难所列表
+ */
+@PreAuthorize("@ss.hasPermi('system:shelter:list')")
+@GetMapping("/list")
+    public TableDataInfo list(QkEmergencyShelter qkEmergencyShelter) {
+        startPage();
+        List<QkEmergencyShelter> list = qkEmergencyShelterService.selectQkEmergencyShelterList(qkEmergencyShelter);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出应急避难所列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:shelter:export')")
+    @Log(title = "应急避难所", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, QkEmergencyShelter qkEmergencyShelter) {
+        List<QkEmergencyShelter> list = qkEmergencyShelterService.selectQkEmergencyShelterList(qkEmergencyShelter);
+        ExcelUtil<QkEmergencyShelter> util = new ExcelUtil<QkEmergencyShelter>(QkEmergencyShelter. class);
+        util.exportExcel(response, list, "应急避难所数据");
+    }
+
+    /**
+     * 获取应急避难所详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:shelter:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(qkEmergencyShelterService.selectQkEmergencyShelterById(id));
+    }
+
+    /**
+     * 新增应急避难所
+     */
+    @PreAuthorize("@ss.hasPermi('system:shelter:add')")
+    @Log(title = "应急避难所", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody QkEmergencyShelter qkEmergencyShelter) {
+        return toAjax(qkEmergencyShelterService.insertQkEmergencyShelter(qkEmergencyShelter));
+    }
+
+    /**
+     * 修改应急避难所
+     */
+    @PreAuthorize("@ss.hasPermi('system:shelter:edit')")
+    @Log(title = "应急避难所", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody QkEmergencyShelter qkEmergencyShelter) {
+        return toAjax(qkEmergencyShelterService.updateQkEmergencyShelter(qkEmergencyShelter));
+    }
+
+    /**
+     * 删除应急避难所
+     */
+    @PreAuthorize("@ss.hasPermi('system:shelter:remove')")
+    @Log(title = "应急避难所", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(qkEmergencyShelterService.deleteQkEmergencyShelterByIds(ids));
+    }
+}

+ 98 - 0
zhsq_qk-admin/src/main/java/zhsq_qk/web/controller/system/QkRescueSuppliesController.java

@@ -0,0 +1,98 @@
+package zhsq_qk.web.controller.system;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+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 zhsq_qk.common.annotation.Log;
+import zhsq_qk.common.core.controller.BaseController;
+import zhsq_qk.common.core.domain.AjaxResult;
+import zhsq_qk.common.enums.BusinessType;
+import zhsq_qk.system.domain.QkRescueSupplies;
+import zhsq_qk.system.service.IQkRescueSuppliesService;
+import zhsq_qk.common.utils.poi.ExcelUtil;
+import zhsq_qk.common.core.page.TableDataInfo;
+
+/**
+ * 防汛抗旱物资储备Controller
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+@RestController
+@RequestMapping("/system/supplies")
+public class QkRescueSuppliesController extends BaseController {
+    @Autowired
+    private IQkRescueSuppliesService qkRescueSuppliesService;
+
+/**
+ * 查询防汛抗旱物资储备列表
+ */
+@PreAuthorize("@ss.hasPermi('system:supplies:list')")
+@GetMapping("/list")
+    public TableDataInfo list(QkRescueSupplies qkRescueSupplies) {
+        startPage();
+        List<QkRescueSupplies> list = qkRescueSuppliesService.selectQkRescueSuppliesList(qkRescueSupplies);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出防汛抗旱物资储备列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:supplies:export')")
+    @Log(title = "防汛抗旱物资储备", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, QkRescueSupplies qkRescueSupplies) {
+        List<QkRescueSupplies> list = qkRescueSuppliesService.selectQkRescueSuppliesList(qkRescueSupplies);
+        ExcelUtil<QkRescueSupplies> util = new ExcelUtil<QkRescueSupplies>(QkRescueSupplies. class);
+        util.exportExcel(response, list, "防汛抗旱物资储备数据");
+    }
+
+    /**
+     * 获取防汛抗旱物资储备详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:supplies:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(qkRescueSuppliesService.selectQkRescueSuppliesById(id));
+    }
+
+    /**
+     * 新增防汛抗旱物资储备
+     */
+    @PreAuthorize("@ss.hasPermi('system:supplies:add')")
+    @Log(title = "防汛抗旱物资储备", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody QkRescueSupplies qkRescueSupplies) {
+        return toAjax(qkRescueSuppliesService.insertQkRescueSupplies(qkRescueSupplies));
+    }
+
+    /**
+     * 修改防汛抗旱物资储备
+     */
+    @PreAuthorize("@ss.hasPermi('system:supplies:edit')")
+    @Log(title = "防汛抗旱物资储备", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody QkRescueSupplies qkRescueSupplies) {
+        return toAjax(qkRescueSuppliesService.updateQkRescueSupplies(qkRescueSupplies));
+    }
+
+    /**
+     * 删除防汛抗旱物资储备
+     */
+    @PreAuthorize("@ss.hasPermi('system:supplies:remove')")
+    @Log(title = "防汛抗旱物资储备", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(qkRescueSuppliesService.deleteQkRescueSuppliesByIds(ids));
+    }
+}

+ 155 - 0
zhsq_qk-system/src/main/java/zhsq_qk/system/domain/QkEmergencyShelter.java

@@ -0,0 +1,155 @@
+package zhsq_qk.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import zhsq_qk.common.annotation.Excel;
+import zhsq_qk.common.core.domain.BaseEntity;
+
+/**
+ * 应急避难所对象 qk_emergency_shelter
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+public class QkEmergencyShelter extends BaseEntity
+        {
+private static final long serialVersionUID = 1L;
+
+        /** 主键id */
+        private Long id;
+
+        /** 避难场所名称 */
+                @Excel(name = "避难场所名称")
+        private String name;
+
+        /** 类型 */
+                @Excel(name = "类型")
+        private String type;
+
+        /** 地址 */
+                @Excel(name = "地址")
+        private String address;
+
+        /** 避难场所范围 */
+                @Excel(name = "避难场所范围")
+        private String range;
+
+        /** 避难场所现状描述 */
+                @Excel(name = "避难场所现状描述")
+        private String state;
+
+        /** 占地面积(m²) */
+                @Excel(name = "占地面积", readConverterExp = "m=²")
+        private String area;
+
+        /** 可转移安置人数(万人) */
+                @Excel(name = "可转移安置人数", readConverterExp = "可转移安置人数(万人)")
+        private String transferPerson;
+
+        /** 建设内容 */
+                @Excel(name = "建设内容")
+        private String constructionContent;
+
+        /** 经度 */
+                @Excel(name = "经度")
+        private String longitude;
+
+        /** 纬度 */
+                @Excel(name = "纬度")
+        private String latitude;
+
+        public void setId(Long id) {
+            this.id = id;
+        }
+
+        public Long getId() {
+            return id;
+        }
+        public void setName(String name) {
+            this.name = name;
+        }
+
+        public String getName() {
+            return name;
+        }
+        public void setType(String type) {
+            this.type = type;
+        }
+
+        public String getType() {
+            return type;
+        }
+        public void setAddress(String address) {
+            this.address = address;
+        }
+
+        public String getAddress() {
+            return address;
+        }
+        public void setRange(String range) {
+            this.range = range;
+        }
+
+        public String getRange() {
+            return range;
+        }
+        public void setState(String state) {
+            this.state = state;
+        }
+
+        public String getState() {
+            return state;
+        }
+        public void setArea(String area) {
+            this.area = area;
+        }
+
+        public String getArea() {
+            return area;
+        }
+        public void setTransferPerson(String transferPerson) {
+            this.transferPerson = transferPerson;
+        }
+
+        public String getTransferPerson() {
+            return transferPerson;
+        }
+        public void setConstructionContent(String constructionContent) {
+            this.constructionContent = constructionContent;
+        }
+
+        public String getConstructionContent() {
+            return constructionContent;
+        }
+        public void setLongitude(String longitude) {
+            this.longitude = longitude;
+        }
+
+        public String getLongitude() {
+            return longitude;
+        }
+        public void setLatitude(String latitude) {
+            this.latitude = latitude;
+        }
+
+        public String getLatitude() {
+            return latitude;
+        }
+
+@Override
+public String toString() {
+    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+        .append("id", getId())
+        .append("name", getName())
+        .append("type", getType())
+        .append("address", getAddress())
+        .append("range", getRange())
+        .append("state", getState())
+        .append("area", getArea())
+        .append("transferPerson", getTransferPerson())
+        .append("constructionContent", getConstructionContent())
+        .append("longitude", getLongitude())
+        .append("latitude", getLatitude())
+            .toString();
+}
+}

+ 95 - 0
zhsq_qk-system/src/main/java/zhsq_qk/system/domain/QkRescueSupplies.java

@@ -0,0 +1,95 @@
+package zhsq_qk.system.domain;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import zhsq_qk.common.annotation.Excel;
+import zhsq_qk.common.core.domain.BaseEntity;
+
+/**
+ * 防汛抗旱物资储备对象 qk_rescue_supplies
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+public class QkRescueSupplies extends BaseEntity
+        {
+private static final long serialVersionUID = 1L;
+
+        /** 主键id */
+        private Long id;
+
+        /** 品种 */
+                @Excel(name = "品种")
+        private String varieties;
+
+        /** 价值(万元) */
+                @Excel(name = "价值", readConverterExp = "万=元")
+        private String cost;
+
+        /** 备注 */
+                @Excel(name = "备注")
+        private String remarks;
+
+        /** 经度 */
+                @Excel(name = "经度")
+        private String longitude;
+
+        /** 纬度 */
+                @Excel(name = "纬度")
+        private String latitude;
+
+        public void setId(Long id) {
+            this.id = id;
+        }
+
+        public Long getId() {
+            return id;
+        }
+        public void setVarieties(String varieties) {
+            this.varieties = varieties;
+        }
+
+        public String getVarieties() {
+            return varieties;
+        }
+        public void setCost(String cost) {
+            this.cost = cost;
+        }
+
+        public String getCost() {
+            return cost;
+        }
+        public void setRemarks(String remarks) {
+            this.remarks = remarks;
+        }
+
+        public String getRemarks() {
+            return remarks;
+        }
+        public void setLongitude(String longitude) {
+            this.longitude = longitude;
+        }
+
+        public String getLongitude() {
+            return longitude;
+        }
+        public void setLatitude(String latitude) {
+            this.latitude = latitude;
+        }
+
+        public String getLatitude() {
+            return latitude;
+        }
+
+@Override
+public String toString() {
+    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+        .append("id", getId())
+        .append("varieties", getVarieties())
+        .append("cost", getCost())
+        .append("remarks", getRemarks())
+        .append("longitude", getLongitude())
+        .append("latitude", getLatitude())
+            .toString();
+}
+}

+ 61 - 0
zhsq_qk-system/src/main/java/zhsq_qk/system/mapper/QkEmergencyShelterMapper.java

@@ -0,0 +1,61 @@
+package zhsq_qk.system.mapper;
+
+import java.util.List;
+
+import zhsq_qk.system.domain.QkEmergencyShelter;
+
+/**
+ * 应急避难所Mapper接口
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+public interface QkEmergencyShelterMapper {
+    /**
+     * 查询应急避难所
+     *
+     * @param id 应急避难所主键
+     * @return 应急避难所
+     */
+    public QkEmergencyShelter selectQkEmergencyShelterById(Long id);
+
+    /**
+     * 查询应急避难所列表
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 应急避难所集合
+     */
+    public List<QkEmergencyShelter> selectQkEmergencyShelterList(QkEmergencyShelter qkEmergencyShelter);
+
+    /**
+     * 新增应急避难所
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 结果
+     */
+    public int insertQkEmergencyShelter(QkEmergencyShelter qkEmergencyShelter);
+
+    /**
+     * 修改应急避难所
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 结果
+     */
+    public int updateQkEmergencyShelter(QkEmergencyShelter qkEmergencyShelter);
+
+    /**
+     * 删除应急避难所
+     *
+     * @param id 应急避难所主键
+     * @return 结果
+     */
+    public int deleteQkEmergencyShelterById(Long id);
+
+    /**
+     * 批量删除应急避难所
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteQkEmergencyShelterByIds(Long[] ids);
+}

+ 61 - 0
zhsq_qk-system/src/main/java/zhsq_qk/system/mapper/QkRescueSuppliesMapper.java

@@ -0,0 +1,61 @@
+package zhsq_qk.system.mapper;
+
+import java.util.List;
+
+import zhsq_qk.system.domain.QkRescueSupplies;
+
+/**
+ * 防汛抗旱物资储备Mapper接口
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+public interface QkRescueSuppliesMapper {
+    /**
+     * 查询防汛抗旱物资储备
+     *
+     * @param id 防汛抗旱物资储备主键
+     * @return 防汛抗旱物资储备
+     */
+    public QkRescueSupplies selectQkRescueSuppliesById(Long id);
+
+    /**
+     * 查询防汛抗旱物资储备列表
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 防汛抗旱物资储备集合
+     */
+    public List<QkRescueSupplies> selectQkRescueSuppliesList(QkRescueSupplies qkRescueSupplies);
+
+    /**
+     * 新增防汛抗旱物资储备
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 结果
+     */
+    public int insertQkRescueSupplies(QkRescueSupplies qkRescueSupplies);
+
+    /**
+     * 修改防汛抗旱物资储备
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 结果
+     */
+    public int updateQkRescueSupplies(QkRescueSupplies qkRescueSupplies);
+
+    /**
+     * 删除防汛抗旱物资储备
+     *
+     * @param id 防汛抗旱物资储备主键
+     * @return 结果
+     */
+    public int deleteQkRescueSuppliesById(Long id);
+
+    /**
+     * 批量删除防汛抗旱物资储备
+     *
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteQkRescueSuppliesByIds(Long[] ids);
+}

+ 61 - 0
zhsq_qk-system/src/main/java/zhsq_qk/system/service/IQkEmergencyShelterService.java

@@ -0,0 +1,61 @@
+package zhsq_qk.system.service;
+
+import java.util.List;
+
+import zhsq_qk.system.domain .QkEmergencyShelter;
+
+/**
+ * 应急避难所Service接口
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+public interface IQkEmergencyShelterService {
+    /**
+     * 查询应急避难所
+     *
+     * @param id 应急避难所主键
+     * @return 应急避难所
+     */
+    public QkEmergencyShelter selectQkEmergencyShelterById(Long id);
+
+    /**
+     * 查询应急避难所列表
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 应急避难所集合
+     */
+    public List<QkEmergencyShelter> selectQkEmergencyShelterList(QkEmergencyShelter qkEmergencyShelter);
+
+    /**
+     * 新增应急避难所
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 结果
+     */
+    public int insertQkEmergencyShelter(QkEmergencyShelter qkEmergencyShelter);
+
+    /**
+     * 修改应急避难所
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 结果
+     */
+    public int updateQkEmergencyShelter(QkEmergencyShelter qkEmergencyShelter);
+
+    /**
+     * 批量删除应急避难所
+     *
+     * @param ids 需要删除的应急避难所主键集合
+     * @return 结果
+     */
+    public int deleteQkEmergencyShelterByIds(Long[] ids);
+
+    /**
+     * 删除应急避难所信息
+     *
+     * @param id 应急避难所主键
+     * @return 结果
+     */
+    public int deleteQkEmergencyShelterById(Long id);
+}

+ 61 - 0
zhsq_qk-system/src/main/java/zhsq_qk/system/service/IQkRescueSuppliesService.java

@@ -0,0 +1,61 @@
+package zhsq_qk.system.service;
+
+import java.util.List;
+
+import zhsq_qk.system.domain .QkRescueSupplies;
+
+/**
+ * 防汛抗旱物资储备Service接口
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+public interface IQkRescueSuppliesService {
+    /**
+     * 查询防汛抗旱物资储备
+     *
+     * @param id 防汛抗旱物资储备主键
+     * @return 防汛抗旱物资储备
+     */
+    public QkRescueSupplies selectQkRescueSuppliesById(Long id);
+
+    /**
+     * 查询防汛抗旱物资储备列表
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 防汛抗旱物资储备集合
+     */
+    public List<QkRescueSupplies> selectQkRescueSuppliesList(QkRescueSupplies qkRescueSupplies);
+
+    /**
+     * 新增防汛抗旱物资储备
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 结果
+     */
+    public int insertQkRescueSupplies(QkRescueSupplies qkRescueSupplies);
+
+    /**
+     * 修改防汛抗旱物资储备
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 结果
+     */
+    public int updateQkRescueSupplies(QkRescueSupplies qkRescueSupplies);
+
+    /**
+     * 批量删除防汛抗旱物资储备
+     *
+     * @param ids 需要删除的防汛抗旱物资储备主键集合
+     * @return 结果
+     */
+    public int deleteQkRescueSuppliesByIds(Long[] ids);
+
+    /**
+     * 删除防汛抗旱物资储备信息
+     *
+     * @param id 防汛抗旱物资储备主键
+     * @return 结果
+     */
+    public int deleteQkRescueSuppliesById(Long id);
+}

+ 86 - 0
zhsq_qk-system/src/main/java/zhsq_qk/system/service/impl/QkEmergencyShelterServiceImpl.java

@@ -0,0 +1,86 @@
+package zhsq_qk.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import zhsq_qk.system.mapper.QkEmergencyShelterMapper;
+import zhsq_qk.system.domain.QkEmergencyShelter;
+import zhsq_qk.system.service.IQkEmergencyShelterService;
+
+/**
+ * 应急避难所Service业务层处理
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+@Service
+public class QkEmergencyShelterServiceImpl implements IQkEmergencyShelterService {
+    @Autowired
+    private QkEmergencyShelterMapper qkEmergencyShelterMapper;
+
+    /**
+     * 查询应急避难所
+     *
+     * @param id 应急避难所主键
+     * @return 应急避难所
+     */
+    @Override
+    public QkEmergencyShelter selectQkEmergencyShelterById(Long id) {
+        return qkEmergencyShelterMapper.selectQkEmergencyShelterById(id);
+    }
+
+    /**
+     * 查询应急避难所列表
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 应急避难所
+     */
+    @Override
+    public List<QkEmergencyShelter> selectQkEmergencyShelterList(QkEmergencyShelter qkEmergencyShelter) {
+        return qkEmergencyShelterMapper.selectQkEmergencyShelterList(qkEmergencyShelter);
+    }
+
+    /**
+     * 新增应急避难所
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 结果
+     */
+    @Override
+    public int insertQkEmergencyShelter(QkEmergencyShelter qkEmergencyShelter) {
+            return qkEmergencyShelterMapper.insertQkEmergencyShelter(qkEmergencyShelter);
+    }
+
+    /**
+     * 修改应急避难所
+     *
+     * @param qkEmergencyShelter 应急避难所
+     * @return 结果
+     */
+    @Override
+    public int updateQkEmergencyShelter(QkEmergencyShelter qkEmergencyShelter) {
+        return qkEmergencyShelterMapper.updateQkEmergencyShelter(qkEmergencyShelter);
+    }
+
+    /**
+     * 批量删除应急避难所
+     *
+     * @param ids 需要删除的应急避难所主键
+     * @return 结果
+     */
+    @Override
+    public int deleteQkEmergencyShelterByIds(Long[] ids) {
+        return qkEmergencyShelterMapper.deleteQkEmergencyShelterByIds(ids);
+    }
+
+    /**
+     * 删除应急避难所信息
+     *
+     * @param id 应急避难所主键
+     * @return 结果
+     */
+    @Override
+    public int deleteQkEmergencyShelterById(Long id) {
+        return qkEmergencyShelterMapper.deleteQkEmergencyShelterById(id);
+    }
+}

+ 86 - 0
zhsq_qk-system/src/main/java/zhsq_qk/system/service/impl/QkRescueSuppliesServiceImpl.java

@@ -0,0 +1,86 @@
+package zhsq_qk.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import zhsq_qk.system.mapper.QkRescueSuppliesMapper;
+import zhsq_qk.system.domain.QkRescueSupplies;
+import zhsq_qk.system.service.IQkRescueSuppliesService;
+
+/**
+ * 防汛抗旱物资储备Service业务层处理
+ *
+ * @author lc
+ * @date 2024-07-18
+ */
+@Service
+public class QkRescueSuppliesServiceImpl implements IQkRescueSuppliesService {
+    @Autowired
+    private QkRescueSuppliesMapper qkRescueSuppliesMapper;
+
+    /**
+     * 查询防汛抗旱物资储备
+     *
+     * @param id 防汛抗旱物资储备主键
+     * @return 防汛抗旱物资储备
+     */
+    @Override
+    public QkRescueSupplies selectQkRescueSuppliesById(Long id) {
+        return qkRescueSuppliesMapper.selectQkRescueSuppliesById(id);
+    }
+
+    /**
+     * 查询防汛抗旱物资储备列表
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 防汛抗旱物资储备
+     */
+    @Override
+    public List<QkRescueSupplies> selectQkRescueSuppliesList(QkRescueSupplies qkRescueSupplies) {
+        return qkRescueSuppliesMapper.selectQkRescueSuppliesList(qkRescueSupplies);
+    }
+
+    /**
+     * 新增防汛抗旱物资储备
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 结果
+     */
+    @Override
+    public int insertQkRescueSupplies(QkRescueSupplies qkRescueSupplies) {
+            return qkRescueSuppliesMapper.insertQkRescueSupplies(qkRescueSupplies);
+    }
+
+    /**
+     * 修改防汛抗旱物资储备
+     *
+     * @param qkRescueSupplies 防汛抗旱物资储备
+     * @return 结果
+     */
+    @Override
+    public int updateQkRescueSupplies(QkRescueSupplies qkRescueSupplies) {
+        return qkRescueSuppliesMapper.updateQkRescueSupplies(qkRescueSupplies);
+    }
+
+    /**
+     * 批量删除防汛抗旱物资储备
+     *
+     * @param ids 需要删除的防汛抗旱物资储备主键
+     * @return 结果
+     */
+    @Override
+    public int deleteQkRescueSuppliesByIds(Long[] ids) {
+        return qkRescueSuppliesMapper.deleteQkRescueSuppliesByIds(ids);
+    }
+
+    /**
+     * 删除防汛抗旱物资储备信息
+     *
+     * @param id 防汛抗旱物资储备主键
+     * @return 结果
+     */
+    @Override
+    public int deleteQkRescueSuppliesById(Long id) {
+        return qkRescueSuppliesMapper.deleteQkRescueSuppliesById(id);
+    }
+}

+ 165 - 0
zhsq_qk-system/src/main/resources/mapper/system/QkEmergencyShelterMapper.xml

@@ -0,0 +1,165 @@
+<?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="zhsq_qk.system.mapper.QkEmergencyShelterMapper">
+
+    <resultMap type="QkEmergencyShelter" id="QkEmergencyShelterResult">
+            <result property="id" column="id"/>
+            <result property="name" column="name"/>
+            <result property="type" column="type"/>
+            <result property="address" column="address"/>
+            <result property="range" column="range"/>
+            <result property="state" column="state"/>
+            <result property="area" column="area"/>
+            <result property="transferPerson" column="transfer_person"/>
+            <result property="constructionContent" column="construction_content"/>
+            <result property="longitude" column="longitude"/>
+            <result property="latitude" column="latitude"/>
+    </resultMap>
+
+    <sql id="selectQkEmergencyShelterVo">
+        select id, `name`, `type`, address, `range`, `state`, area, transfer_person, construction_content, longitude, latitude
+        from qk_emergency_shelter
+    </sql>
+
+    <select id="selectQkEmergencyShelterList" parameterType="QkEmergencyShelter" resultMap="QkEmergencyShelterResult">
+        <include refid="selectQkEmergencyShelterVo"/>
+        <where>
+                        <if test="name != null  and name != ''">
+                            and name like concat('%', #{name}, '%')
+                        </if>
+                        <if test="type != null  and type != ''">
+                            and type = #{type}
+                        </if>
+                        <if test="address != null  and address != ''">
+                            and address = #{address}
+                        </if>
+                        <if test="range != null  and range != ''">
+                            and `range` = #{range}
+                        </if>
+                        <if test="state != null  and state != ''">
+                            and `state` = #{state}
+                        </if>
+                        <if test="area != null  and area != ''">
+                            and area = #{area}
+                        </if>
+                        <if test="transferPerson != null  and transferPerson != ''">
+                            and transfer_person = #{transferPerson}
+                        </if>
+                        <if test="constructionContent != null  and constructionContent != ''">
+                            and construction_content = #{constructionContent}
+                        </if>
+                        <if test="longitude != null  and longitude != ''">
+                            and longitude = #{longitude}
+                        </if>
+                        <if test="latitude != null  and latitude != ''">
+                            and latitude = #{latitude}
+                        </if>
+        </where>
+    </select>
+
+    <select id="selectQkEmergencyShelterById" parameterType="Long"
+            resultMap="QkEmergencyShelterResult">
+            <include refid="selectQkEmergencyShelterVo"/>
+            where id = #{id}
+    </select>
+
+    <insert id="insertQkEmergencyShelter" parameterType="QkEmergencyShelter" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into qk_emergency_shelter
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test="name != null">name,
+                    </if>
+                    <if test="type != null">type,
+                    </if>
+                    <if test="address != null">address,
+                    </if>
+                    <if test="range != null">`range`,
+                    </if>
+                    <if test="state != null">`state`,
+                    </if>
+                    <if test="area != null">area,
+                    </if>
+                    <if test="transferPerson != null">transfer_person,
+                    </if>
+                    <if test="constructionContent != null">construction_content,
+                    </if>
+                    <if test="longitude != null">longitude,
+                    </if>
+                    <if test="latitude != null">latitude,
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test="name != null">#{name},
+                    </if>
+                    <if test="type != null">#{type},
+                    </if>
+                    <if test="address != null">#{address},
+                    </if>
+                    <if test="range != null">#{range},
+                    </if>
+                    <if test="state != null">#{state},
+                    </if>
+                    <if test="area != null">#{area},
+                    </if>
+                    <if test="transferPerson != null">#{transferPerson},
+                    </if>
+                    <if test="constructionContent != null">#{constructionContent},
+                    </if>
+                    <if test="longitude != null">#{longitude},
+                    </if>
+                    <if test="latitude != null">#{latitude},
+                    </if>
+        </trim>
+    </insert>
+
+    <update id="updateQkEmergencyShelter" parameterType="QkEmergencyShelter">
+        update qk_emergency_shelter
+        <trim prefix="SET" suffixOverrides=",">
+                    <if test="name != null">name =
+                        #{name},
+                    </if>
+                    <if test="type != null">type =
+                        #{type},
+                    </if>
+                    <if test="address != null">address =
+                        #{address},
+                    </if>
+                    <if test="range != null">`range` =
+                        #{range},
+                    </if>
+                    <if test="state != null">`state` =
+                        #{state},
+                    </if>
+                    <if test="area != null">area =
+                        #{area},
+                    </if>
+                    <if test="transferPerson != null">transfer_person =
+                        #{transferPerson},
+                    </if>
+                    <if test="constructionContent != null">construction_content =
+                        #{constructionContent},
+                    </if>
+                    <if test="longitude != null">longitude =
+                        #{longitude},
+                    </if>
+                    <if test="latitude != null">latitude =
+                        #{latitude},
+                    </if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteQkEmergencyShelterById" parameterType="Long">
+        delete
+        from qk_emergency_shelter where id = #{id}
+    </delete>
+
+    <delete id="deleteQkEmergencyShelterByIds" parameterType="String">
+        delete from qk_emergency_shelter where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 110 - 0
zhsq_qk-system/src/main/resources/mapper/system/QkRescueSuppliesMapper.xml

@@ -0,0 +1,110 @@
+<?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="zhsq_qk.system.mapper.QkRescueSuppliesMapper">
+
+    <resultMap type="QkRescueSupplies" id="QkRescueSuppliesResult">
+            <result property="id" column="id"/>
+            <result property="varieties" column="varieties"/>
+            <result property="cost" column="cost"/>
+            <result property="remarks" column="remarks"/>
+            <result property="longitude" column="longitude"/>
+            <result property="latitude" column="latitude"/>
+    </resultMap>
+
+    <sql id="selectQkRescueSuppliesVo">
+        select id, varieties, cost, remarks, longitude, latitude
+        from qk_rescue_supplies
+    </sql>
+
+    <select id="selectQkRescueSuppliesList" parameterType="QkRescueSupplies" resultMap="QkRescueSuppliesResult">
+        <include refid="selectQkRescueSuppliesVo"/>
+        <where>
+                        <if test="varieties != null  and varieties != ''">
+                            and varieties = #{varieties}
+                        </if>
+                        <if test="cost != null  and cost != ''">
+                            and cost = #{cost}
+                        </if>
+                        <if test="remarks != null  and remarks != ''">
+                            and remarks = #{remarks}
+                        </if>
+                        <if test="longitude != null  and longitude != ''">
+                            and longitude = #{longitude}
+                        </if>
+                        <if test="latitude != null  and latitude != ''">
+                            and latitude = #{latitude}
+                        </if>
+        </where>
+    </select>
+
+    <select id="selectQkRescueSuppliesById" parameterType="Long"
+            resultMap="QkRescueSuppliesResult">
+            <include refid="selectQkRescueSuppliesVo"/>
+            where id = #{id}
+    </select>
+
+    <insert id="insertQkRescueSupplies" parameterType="QkRescueSupplies" useGeneratedKeys="true"
+            keyProperty="id">
+        insert into qk_rescue_supplies
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+                    <if test="varieties != null">varieties,
+                    </if>
+                    <if test="cost != null">cost,
+                    </if>
+                    <if test="remarks != null">remarks,
+                    </if>
+                    <if test="longitude != null">longitude,
+                    </if>
+                    <if test="latitude != null">latitude,
+                    </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+                    <if test="varieties != null">#{varieties},
+                    </if>
+                    <if test="cost != null">#{cost},
+                    </if>
+                    <if test="remarks != null">#{remarks},
+                    </if>
+                    <if test="longitude != null">#{longitude},
+                    </if>
+                    <if test="latitude != null">#{latitude},
+                    </if>
+        </trim>
+    </insert>
+
+    <update id="updateQkRescueSupplies" parameterType="QkRescueSupplies">
+        update qk_rescue_supplies
+        <trim prefix="SET" suffixOverrides=",">
+                    <if test="varieties != null">varieties =
+                        #{varieties},
+                    </if>
+                    <if test="cost != null">cost =
+                        #{cost},
+                    </if>
+                    <if test="remarks != null">remarks =
+                        #{remarks},
+                    </if>
+                    <if test="longitude != null">longitude =
+                        #{longitude},
+                    </if>
+                    <if test="latitude != null">latitude =
+                        #{latitude},
+                    </if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteQkRescueSuppliesById" parameterType="Long">
+        delete
+        from qk_rescue_supplies where id = #{id}
+    </delete>
+
+    <delete id="deleteQkRescueSuppliesByIds" parameterType="String">
+        delete from qk_rescue_supplies where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 44 - 0
zhsq_qk-ui/src/api/system/shelter.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询应急避难所列表
+export function listShelter(query) {
+    return request({
+        url: '/system/shelter/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询应急避难所详细
+export function getShelter(id) {
+    return request({
+        url: '/system/shelter/' + id,
+        method: 'get'
+    })
+}
+
+// 新增应急避难所
+export function addShelter(data) {
+    return request({
+        url: '/system/shelter',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改应急避难所
+export function updateShelter(data) {
+    return request({
+        url: '/system/shelter',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除应急避难所
+export function delShelter(id) {
+    return request({
+        url: '/system/shelter/' + id,
+        method: 'delete'
+    })
+}

+ 44 - 0
zhsq_qk-ui/src/api/system/supplies.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询防汛抗旱物资储备列表
+export function listSupplies(query) {
+    return request({
+        url: '/system/supplies/list',
+        method: 'get',
+        params: query
+    })
+}
+
+// 查询防汛抗旱物资储备详细
+export function getSupplies(id) {
+    return request({
+        url: '/system/supplies/' + id,
+        method: 'get'
+    })
+}
+
+// 新增防汛抗旱物资储备
+export function addSupplies(data) {
+    return request({
+        url: '/system/supplies',
+        method: 'post',
+        data: data
+    })
+}
+
+// 修改防汛抗旱物资储备
+export function updateSupplies(data) {
+    return request({
+        url: '/system/supplies',
+        method: 'put',
+        data: data
+    })
+}
+
+// 删除防汛抗旱物资储备
+export function delSupplies(id) {
+    return request({
+        url: '/system/supplies/' + id,
+        method: 'delete'
+    })
+}

+ 359 - 0
zhsq_qk-ui/src/views/system/shelter/index.vue

@@ -0,0 +1,359 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="避难场所名称" prop="name">
+        <el-input
+          v-model="queryParams.name"
+          placeholder="请输入避难场所名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="地址" prop="address">
+        <el-input
+          v-model="queryParams.address"
+          placeholder="请输入地址"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="避难场所范围" prop="range">
+        <el-input
+          v-model="queryParams.range"
+          placeholder="请输入避难场所范围"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="避难场所现状描述" prop="state">
+        <el-input
+          v-model="queryParams.state"
+          placeholder="请输入避难场所现状描述"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="占地面积" prop="area">
+        <el-input
+          v-model="queryParams.area"
+          placeholder="请输入占地面积"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="可转移安置人数" prop="transferPerson">
+        <el-input
+          v-model="queryParams.transferPerson"
+          placeholder="请输入可转移安置人数"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="经度" prop="longitude">
+        <el-input
+          v-model="queryParams.longitude"
+          placeholder="请输入经度"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="纬度" prop="latitude">
+        <el-input
+          v-model="queryParams.latitude"
+          placeholder="请输入纬度"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" 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"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['system:shelter:add']"
+        >新增
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['system:shelter:edit']"
+        >修改
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['system:shelter:remove']"
+        >删除
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['system:shelter:export']"
+        >导出
+        </el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="shelterList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center"/>
+      <el-table-column label="主键id" align="center" prop="id"/>
+      <el-table-column label="避难场所名称" align="center" prop="name"/>
+      <el-table-column label="类型" align="center" prop="type"/>
+      <el-table-column label="地址" align="center" prop="address"/>
+      <el-table-column label="避难场所范围" align="center" prop="range"/>
+      <el-table-column label="避难场所现状描述" align="center" prop="state"/>
+      <el-table-column label="占地面积" align="center" prop="area"/>
+      <el-table-column label="可转移安置人数" align="center" prop="transferPerson"/>
+      <el-table-column label="建设内容" align="center" prop="constructionContent"/>
+      <el-table-column label="经度" align="center" prop="longitude"/>
+      <el-table-column label="纬度" align="center" prop="latitude"/>
+      <el-table-column label="操作" align="center" 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="['system:shelter:edit']"
+          >修改
+          </el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['system:shelter: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="name">
+          <el-input v-model="form.name" placeholder="请输入避难场所名称"/>
+        </el-form-item>
+        <el-form-item label="地址" prop="address">
+          <el-input v-model="form.address" placeholder="请输入地址"/>
+        </el-form-item>
+        <el-form-item label="避难场所范围" prop="range">
+          <el-input v-model="form.range" placeholder="请输入避难场所范围"/>
+        </el-form-item>
+        <el-form-item label="避难场所现状描述" prop="state">
+          <el-input v-model="form.state" 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="transferPerson">
+          <el-input v-model="form.transferPerson" placeholder="请输入可转移安置人数"/>
+        </el-form-item>
+        <el-form-item label="建设内容" prop="constructionContent">
+          <el-input v-model="form.constructionContent" type="textarea" placeholder="请输入内容"/>
+        </el-form-item>
+        <el-form-item label="经度" prop="longitude">
+          <el-input v-model="form.longitude" placeholder="请输入经度"/>
+        </el-form-item>
+        <el-form-item label="纬度" prop="latitude">
+          <el-input v-model="form.latitude" 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>
+  </div>
+</template>
+
+<script>
+import {addShelter, delShelter, updateShelter,getShelter, listShelter} from "@/api/system/shelter";
+
+export default {
+  name: "Shelter",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 应急避难所表格数据
+      shelterList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        name: null,
+        type: null,
+        address: null,
+        range: null,
+        state: null,
+        area: null,
+        transferPerson: null,
+        constructionContent: null,
+        longitude: null,
+        latitude: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {}
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询应急避难所列表 */
+    getList() {
+      this.loading = true;
+      listShelter(this.queryParams).then(response => {
+        this.shelterList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        name: null,
+        type: null,
+        address: null,
+        range: null,
+        state: null,
+        area: null,
+        transferPerson: null,
+        constructionContent: null,
+        longitude: null,
+        latitude: 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
+      getShelter(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) {
+            updateShelter(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addShelter(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除好差评编号为"' + ids + '"的数据项?').then(function () {
+        return delShelter(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {
+      });
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('system/shelter/export', {
+        ...this.queryParams
+      }, `shelter_${new Date().getTime()}.xlsx`)
+    }
+  }
+}
+;
+</script>

+ 301 - 0
zhsq_qk-ui/src/views/system/supplies/index.vue

@@ -0,0 +1,301 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="品种" prop="varieties">
+        <el-input
+          v-model="queryParams.varieties"
+          placeholder="请输入品种"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="价值" prop="cost">
+        <el-input
+          v-model="queryParams.cost"
+          placeholder="请输入价值"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="经度" prop="longitude">
+        <el-input
+          v-model="queryParams.longitude"
+          placeholder="请输入经度"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="纬度" prop="latitude">
+        <el-input
+          v-model="queryParams.latitude"
+          placeholder="请输入纬度"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" 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"
+          plain
+          icon="el-icon-plus"
+          size="mini"
+          @click="handleAdd"
+          v-hasPermi="['system:supplies:add']"
+        >新增
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="success"
+          plain
+          icon="el-icon-edit"
+          size="mini"
+          :disabled="single"
+          @click="handleUpdate"
+          v-hasPermi="['system:supplies:edit']"
+        >修改
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="danger"
+          plain
+          icon="el-icon-delete"
+          size="mini"
+          :disabled="multiple"
+          @click="handleDelete"
+          v-hasPermi="['system:supplies:remove']"
+        >删除
+        </el-button>
+      </el-col>
+      <el-col :span="1.5">
+        <el-button
+          type="warning"
+          plain
+          icon="el-icon-download"
+          size="mini"
+          @click="handleExport"
+          v-hasPermi="['system:supplies:export']"
+        >导出
+        </el-button>
+      </el-col>
+      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+    </el-row>
+
+    <el-table v-loading="loading" :data="suppliesList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" align="center"/>
+      <el-table-column label="主键id" align="center" prop="id"/>
+      <el-table-column label="品种" align="center" prop="varieties"/>
+      <el-table-column label="价值" align="center" prop="cost"/>
+      <el-table-column label="备注" align="center" prop="remarks"/>
+      <el-table-column label="经度" align="center" prop="longitude"/>
+      <el-table-column label="纬度" align="center" prop="latitude"/>
+      <el-table-column label="操作" align="center" 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="['system:supplies:edit']"
+          >修改
+          </el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['system:supplies: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="varieties">
+          <el-input v-model="form.varieties" placeholder="请输入品种"/>
+        </el-form-item>
+        <el-form-item label="价值" prop="cost">
+          <el-input v-model="form.cost" placeholder="请输入价值"/>
+        </el-form-item>
+        <el-form-item label="备注" prop="remarks">
+          <el-input v-model="form.remarks" type="textarea" placeholder="请输入内容"/>
+        </el-form-item>
+        <el-form-item label="经度" prop="longitude">
+          <el-input v-model="form.longitude" placeholder="请输入经度"/>
+        </el-form-item>
+        <el-form-item label="纬度" prop="latitude">
+          <el-input v-model="form.latitude" 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>
+  </div>
+</template>
+
+<script>
+
+import {addSupplies, delSupplies, updateSupplies,getSupplies, listSupplies} from "@/api/system/supplies";
+
+export default {
+  name: "Supplies",
+  data() {
+    return {
+      // 遮罩层
+      loading: true,
+      // 选中数组
+      ids: [],
+      // 非单个禁用
+      single: true,
+      // 非多个禁用
+      multiple: true,
+      // 显示搜索条件
+      showSearch: true,
+      // 总条数
+      total: 0,
+      // 防汛抗旱物资储备表格数据
+      suppliesList: [],
+      // 弹出层标题
+      title: "",
+      // 是否显示弹出层
+      open: false,
+      // 查询参数
+      queryParams: {
+        pageNum: 1,
+        pageSize: 10,
+        varieties: null,
+        cost: null,
+        remarks: null,
+        longitude: null,
+        latitude: null
+      },
+      // 表单参数
+      form: {},
+      // 表单校验
+      rules: {}
+    };
+  },
+  created() {
+    this.getList();
+  },
+  methods: {
+    /** 查询防汛抗旱物资储备列表 */
+    getList() {
+      this.loading = true;
+      listSupplies(this.queryParams).then(response => {
+        this.suppliesList = response.rows;
+        this.total = response.total;
+        this.loading = false;
+      });
+    },
+    // 取消按钮
+    cancel() {
+      this.open = false;
+      this.reset();
+    },
+    // 表单重置
+    reset() {
+      this.form = {
+        id: null,
+        varieties: null,
+        cost: null,
+        remarks: null,
+        longitude: null,
+        latitude: 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
+      getSupplies(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) {
+            updateSupplies(this.form).then(response => {
+              this.$modal.msgSuccess("修改成功");
+              this.open = false;
+              this.getList();
+            });
+          } else {
+            addSupplies(this.form).then(response => {
+              this.$modal.msgSuccess("新增成功");
+              this.open = false;
+              this.getList();
+            });
+          }
+        }
+      });
+    },
+    /** 删除按钮操作 */
+    handleDelete(row) {
+      const ids = row.id || this.ids;
+      this.$modal.confirm('是否确认删除好差评编号为"' + ids + '"的数据项?').then(function () {
+        return delSupplies(ids);
+      }).then(() => {
+        this.getList();
+        this.$modal.msgSuccess("删除成功");
+      }).catch(() => {
+      });
+    },
+    /** 导出按钮操作 */
+    handleExport() {
+      this.download('system/supplies/export', {
+        ...this.queryParams
+      }, `supplies_${new Date().getTime()}.xlsx`)
+    }
+  }
+}
+;
+</script>