公众诉求数据,城市视频数据,违章占道数据
This commit is contained in:
parent
6037d5da37
commit
6f4f4f543a
@ -0,0 +1,98 @@
|
||||
package com.god.web.controller.cityManage;
|
||||
|
||||
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 com.god.common.annotation.Log;
|
||||
import com.god.common.core.controller.BaseController;
|
||||
import com.god.common.core.domain.AjaxResult;
|
||||
import com.god.common.enums.BusinessType;
|
||||
import com.god.passenger.cityManage.domain.JlpqComplaintInfo;
|
||||
import com.god.passenger.cityManage.service.IJlpqComplaintInfoService;
|
||||
import com.god.common.utils.poi.ExcelUtil;
|
||||
import com.god.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 公众诉求数据Controller
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-11-23
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/cityManage/complaint")
|
||||
public class JlpqComplaintInfoController extends BaseController {
|
||||
@Autowired
|
||||
private IJlpqComplaintInfoService jlpqComplaintInfoService;
|
||||
|
||||
/**
|
||||
* 查询公众诉求数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('cityManage:complaint:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(JlpqComplaintInfo jlpqComplaintInfo) {
|
||||
startPage();
|
||||
List<JlpqComplaintInfo> list = jlpqComplaintInfoService.selectJlpqComplaintInfoList(jlpqComplaintInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出公众诉求数据列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('cityManage:complaint:export')")
|
||||
@Log(title = "公众诉求数据", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, JlpqComplaintInfo jlpqComplaintInfo) {
|
||||
List<JlpqComplaintInfo> list = jlpqComplaintInfoService.selectJlpqComplaintInfoList(jlpqComplaintInfo);
|
||||
ExcelUtil<JlpqComplaintInfo> util = new ExcelUtil<JlpqComplaintInfo>(JlpqComplaintInfo.class);
|
||||
util.exportExcel(response, list, "公众诉求数据数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取公众诉求数据详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('cityManage:complaint:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") String id) {
|
||||
return success(jlpqComplaintInfoService.selectJlpqComplaintInfoById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增公众诉求数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('cityManage:complaint:add')")
|
||||
@Log(title = "公众诉求数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody JlpqComplaintInfo jlpqComplaintInfo) {
|
||||
return toAjax(jlpqComplaintInfoService.insertJlpqComplaintInfo(jlpqComplaintInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改公众诉求数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('cityManage:complaint:edit')")
|
||||
@Log(title = "公众诉求数据", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody JlpqComplaintInfo jlpqComplaintInfo) {
|
||||
return toAjax(jlpqComplaintInfoService.updateJlpqComplaintInfo(jlpqComplaintInfo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公众诉求数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('cityManage:complaint:remove')")
|
||||
@Log(title = "公众诉求数据", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable String[] ids) {
|
||||
return toAjax(jlpqComplaintInfoService.deleteJlpqComplaintInfoByIds(ids));
|
||||
}
|
||||
}
|
@ -0,0 +1,149 @@
|
||||
package com.god.passenger.cityManage.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.god.common.annotation.Excel;
|
||||
import com.god.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 公众诉求数据对象 jlpq_complaint_info
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-11-23
|
||||
*/
|
||||
public class JlpqComplaintInfo extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 主键 */
|
||||
private String id;
|
||||
|
||||
/** 投诉标题 */
|
||||
@Excel(name = "投诉标题")
|
||||
private String complaintTitle;
|
||||
|
||||
/** 投诉群体 */
|
||||
@Excel(name = "投诉群体")
|
||||
private String complaintPerson;
|
||||
|
||||
/** 详情 */
|
||||
@Excel(name = "详情")
|
||||
private String complaintInfo;
|
||||
|
||||
/** 投诉时间 */
|
||||
@Excel(name = "投诉时间")
|
||||
private String reportTime;
|
||||
|
||||
/** 事件状态 */
|
||||
@Excel(name = "事件状态")
|
||||
private String eventStatus;
|
||||
|
||||
/** 答复时间 */
|
||||
@Excel(name = "答复时间")
|
||||
private String replyTime;
|
||||
|
||||
/** 答复单位 */
|
||||
@Excel(name = "答复单位")
|
||||
private String replyUnit;
|
||||
|
||||
/** 数据类型 */
|
||||
@Excel(name = "数据类型")
|
||||
private String dataType;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
public void setComplaintTitle(String complaintTitle)
|
||||
{
|
||||
this.complaintTitle = complaintTitle;
|
||||
}
|
||||
|
||||
public String getComplaintTitle()
|
||||
{
|
||||
return complaintTitle;
|
||||
}
|
||||
public void setComplaintPerson(String complaintPerson)
|
||||
{
|
||||
this.complaintPerson = complaintPerson;
|
||||
}
|
||||
|
||||
public String getComplaintPerson()
|
||||
{
|
||||
return complaintPerson;
|
||||
}
|
||||
public void setComplaintInfo(String complaintInfo)
|
||||
{
|
||||
this.complaintInfo = complaintInfo;
|
||||
}
|
||||
|
||||
public String getComplaintInfo()
|
||||
{
|
||||
return complaintInfo;
|
||||
}
|
||||
public void setReportTime(String reportTime)
|
||||
{
|
||||
this.reportTime = reportTime;
|
||||
}
|
||||
|
||||
public String getReportTime()
|
||||
{
|
||||
return reportTime;
|
||||
}
|
||||
public void setEventStatus(String eventStatus)
|
||||
{
|
||||
this.eventStatus = eventStatus;
|
||||
}
|
||||
|
||||
public String getEventStatus()
|
||||
{
|
||||
return eventStatus;
|
||||
}
|
||||
public void setReplyTime(String replyTime)
|
||||
{
|
||||
this.replyTime = replyTime;
|
||||
}
|
||||
|
||||
public String getReplyTime()
|
||||
{
|
||||
return replyTime;
|
||||
}
|
||||
public void setReplyUnit(String replyUnit)
|
||||
{
|
||||
this.replyUnit = replyUnit;
|
||||
}
|
||||
|
||||
public String getReplyUnit()
|
||||
{
|
||||
return replyUnit;
|
||||
}
|
||||
public void setDataType(String dataType)
|
||||
{
|
||||
this.dataType = dataType;
|
||||
}
|
||||
|
||||
public String getDataType()
|
||||
{
|
||||
return dataType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("complaintTitle", getComplaintTitle())
|
||||
.append("complaintPerson", getComplaintPerson())
|
||||
.append("complaintInfo", getComplaintInfo())
|
||||
.append("reportTime", getReportTime())
|
||||
.append("eventStatus", getEventStatus())
|
||||
.append("replyTime", getReplyTime())
|
||||
.append("replyUnit", getReplyUnit())
|
||||
.append("dataType", getDataType())
|
||||
.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.god.passenger.cityManage.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.god.passenger.cityManage.domain.JlpqComplaintInfo;
|
||||
|
||||
/**
|
||||
* 公众诉求数据Mapper接口
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-11-23
|
||||
*/
|
||||
public interface JlpqComplaintInfoMapper
|
||||
{
|
||||
/**
|
||||
* 查询公众诉求数据
|
||||
*
|
||||
* @param id 公众诉求数据主键
|
||||
* @return 公众诉求数据
|
||||
*/
|
||||
public JlpqComplaintInfo selectJlpqComplaintInfoById(String id);
|
||||
|
||||
/**
|
||||
* 查询公众诉求数据列表
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 公众诉求数据集合
|
||||
*/
|
||||
public List<JlpqComplaintInfo> selectJlpqComplaintInfoList(JlpqComplaintInfo jlpqComplaintInfo);
|
||||
|
||||
/**
|
||||
* 新增公众诉求数据
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo);
|
||||
|
||||
/**
|
||||
* 修改公众诉求数据
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo);
|
||||
|
||||
/**
|
||||
* 删除公众诉求数据
|
||||
*
|
||||
* @param id 公众诉求数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJlpqComplaintInfoById(String id);
|
||||
|
||||
/**
|
||||
* 批量删除公众诉求数据
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJlpqComplaintInfoByIds(String[] ids);
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package com.god.passenger.cityManage.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.god.passenger.cityManage.domain.JlpqComplaintInfo;
|
||||
|
||||
/**
|
||||
* 公众诉求数据Service接口
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-11-23
|
||||
*/
|
||||
public interface IJlpqComplaintInfoService
|
||||
{
|
||||
/**
|
||||
* 查询公众诉求数据
|
||||
*
|
||||
* @param id 公众诉求数据主键
|
||||
* @return 公众诉求数据
|
||||
*/
|
||||
public JlpqComplaintInfo selectJlpqComplaintInfoById(String id);
|
||||
|
||||
/**
|
||||
* 查询公众诉求数据列表
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 公众诉求数据集合
|
||||
*/
|
||||
public List<JlpqComplaintInfo> selectJlpqComplaintInfoList(JlpqComplaintInfo jlpqComplaintInfo);
|
||||
|
||||
/**
|
||||
* 新增公众诉求数据
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo);
|
||||
|
||||
/**
|
||||
* 修改公众诉求数据
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo);
|
||||
|
||||
/**
|
||||
* 批量删除公众诉求数据
|
||||
*
|
||||
* @param ids 需要删除的公众诉求数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJlpqComplaintInfoByIds(String[] ids);
|
||||
|
||||
/**
|
||||
* 删除公众诉求数据信息
|
||||
*
|
||||
* @param id 公众诉求数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteJlpqComplaintInfoById(String id);
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package com.god.passenger.cityManage.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.god.common.utils.StringUtils;
|
||||
import com.god.common.utils.uuid.IdUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.god.passenger.cityManage.mapper.JlpqComplaintInfoMapper;
|
||||
import com.god.passenger.cityManage.domain.JlpqComplaintInfo;
|
||||
import com.god.passenger.cityManage.service.IJlpqComplaintInfoService;
|
||||
|
||||
/**
|
||||
* 公众诉求数据Service业务层处理
|
||||
*
|
||||
* @author wangyan
|
||||
* @date 2023-11-23
|
||||
*/
|
||||
@Service
|
||||
public class JlpqComplaintInfoServiceImpl implements IJlpqComplaintInfoService {
|
||||
@Autowired
|
||||
private JlpqComplaintInfoMapper jlpqComplaintInfoMapper;
|
||||
|
||||
/**
|
||||
* 查询公众诉求数据
|
||||
*
|
||||
* @param id 公众诉求数据主键
|
||||
* @return 公众诉求数据
|
||||
*/
|
||||
@Override
|
||||
public JlpqComplaintInfo selectJlpqComplaintInfoById(String id) {
|
||||
return jlpqComplaintInfoMapper.selectJlpqComplaintInfoById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询公众诉求数据列表
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 公众诉求数据
|
||||
*/
|
||||
@Override
|
||||
public List<JlpqComplaintInfo> selectJlpqComplaintInfoList(JlpqComplaintInfo jlpqComplaintInfo) {
|
||||
return jlpqComplaintInfoMapper.selectJlpqComplaintInfoList(jlpqComplaintInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增公众诉求数据
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo) {
|
||||
if (StringUtils.isBlank(jlpqComplaintInfo.getId())){
|
||||
jlpqComplaintInfo.setId(IdUtils.fastSimpleUUID());
|
||||
}
|
||||
return jlpqComplaintInfoMapper.insertJlpqComplaintInfo(jlpqComplaintInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改公众诉求数据
|
||||
*
|
||||
* @param jlpqComplaintInfo 公众诉求数据
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateJlpqComplaintInfo(JlpqComplaintInfo jlpqComplaintInfo) {
|
||||
return jlpqComplaintInfoMapper.updateJlpqComplaintInfo(jlpqComplaintInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除公众诉求数据
|
||||
*
|
||||
* @param ids 需要删除的公众诉求数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteJlpqComplaintInfoByIds(String[] ids) {
|
||||
return jlpqComplaintInfoMapper.deleteJlpqComplaintInfoByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除公众诉求数据信息
|
||||
*
|
||||
* @param id 公众诉求数据主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteJlpqComplaintInfoById(String id) {
|
||||
return jlpqComplaintInfoMapper.deleteJlpqComplaintInfoById(id);
|
||||
}
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
<?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.god.passenger.cityManage.mapper.JlpqComplaintInfoMapper">
|
||||
|
||||
<resultMap type="JlpqComplaintInfo" id="JlpqComplaintInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="complaintTitle" column="complaint_title" />
|
||||
<result property="complaintPerson" column="complaint_person" />
|
||||
<result property="complaintInfo" column="complaint_info" />
|
||||
<result property="reportTime" column="report_time" />
|
||||
<result property="eventStatus" column="event_status" />
|
||||
<result property="replyTime" column="reply_time" />
|
||||
<result property="replyUnit" column="reply_unit" />
|
||||
<result property="dataType" column="data_type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectJlpqComplaintInfoVo">
|
||||
select id, complaint_title, complaint_person, complaint_info, report_time, event_status, reply_time, reply_unit, data_type from jlpq_complaint_info
|
||||
</sql>
|
||||
|
||||
<select id="selectJlpqComplaintInfoList" parameterType="JlpqComplaintInfo" resultMap="JlpqComplaintInfoResult">
|
||||
<include refid="selectJlpqComplaintInfoVo"/>
|
||||
<where>
|
||||
<if test="complaintTitle != null and complaintTitle != ''"> and complaint_title like concat('%', #{complaintTitle}, '%')</if>
|
||||
<if test="complaintPerson != null and complaintPerson != ''"> and complaint_person like concat('%', #{complaintPerson}, '%')</if>
|
||||
<if test="complaintInfo != null and complaintInfo != ''"> and complaint_info like concat('%', #{complaintInfo}, '%')</if>
|
||||
<if test="reportTime != null and reportTime != ''"> and report_time >= #{reportTime}</if>
|
||||
<if test="eventStatus != null and eventStatus != ''"> and event_status = #{eventStatus}</if>
|
||||
<if test="replyTime != null and replyTime != ''"> and reply_time >= #{replyTime}</if>
|
||||
<if test="replyUnit != null and replyUnit != ''"> and reply_unit like concat('%', #{replyUnit}, '%')</if>
|
||||
<if test="dataType != null and dataType != ''"> and data_type = #{dataType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectJlpqComplaintInfoById" parameterType="String" resultMap="JlpqComplaintInfoResult">
|
||||
<include refid="selectJlpqComplaintInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertJlpqComplaintInfo" parameterType="JlpqComplaintInfo">
|
||||
insert into jlpq_complaint_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="complaintTitle != null">complaint_title,</if>
|
||||
<if test="complaintPerson != null">complaint_person,</if>
|
||||
<if test="complaintInfo != null">complaint_info,</if>
|
||||
<if test="reportTime != null">report_time,</if>
|
||||
<if test="eventStatus != null">event_status,</if>
|
||||
<if test="replyTime != null">reply_time,</if>
|
||||
<if test="replyUnit != null">reply_unit,</if>
|
||||
<if test="dataType != null">data_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="complaintTitle != null">#{complaintTitle},</if>
|
||||
<if test="complaintPerson != null">#{complaintPerson},</if>
|
||||
<if test="complaintInfo != null">#{complaintInfo},</if>
|
||||
<if test="reportTime != null">#{reportTime},</if>
|
||||
<if test="eventStatus != null">#{eventStatus},</if>
|
||||
<if test="replyTime != null">#{replyTime},</if>
|
||||
<if test="replyUnit != null">#{replyUnit},</if>
|
||||
<if test="dataType != null">#{dataType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateJlpqComplaintInfo" parameterType="JlpqComplaintInfo">
|
||||
update jlpq_complaint_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="complaintTitle != null">complaint_title = #{complaintTitle},</if>
|
||||
<if test="complaintPerson != null">complaint_person = #{complaintPerson},</if>
|
||||
<if test="complaintInfo != null">complaint_info = #{complaintInfo},</if>
|
||||
<if test="reportTime != null">report_time = #{reportTime},</if>
|
||||
<if test="eventStatus != null">event_status = #{eventStatus},</if>
|
||||
<if test="replyTime != null">reply_time = #{replyTime},</if>
|
||||
<if test="replyUnit != null">reply_unit = #{replyUnit},</if>
|
||||
<if test="dataType != null">data_type = #{dataType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteJlpqComplaintInfoById" parameterType="String">
|
||||
delete from jlpq_complaint_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteJlpqComplaintInfoByIds" parameterType="String">
|
||||
delete from jlpq_complaint_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
44
god-ui/src/api/cityManage/complaint.js
Normal file
44
god-ui/src/api/cityManage/complaint.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询公众诉求数据列表
|
||||
export function listComplaint(query) {
|
||||
return request({
|
||||
url: '/cityManage/complaint/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询公众诉求数据详细
|
||||
export function getComplaint(id) {
|
||||
return request({
|
||||
url: '/cityManage/complaint/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增公众诉求数据
|
||||
export function addComplaint(data) {
|
||||
return request({
|
||||
url: '/cityManage/complaint',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改公众诉求数据
|
||||
export function updateComplaint(data) {
|
||||
return request({
|
||||
url: '/cityManage/complaint',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除公众诉求数据
|
||||
export function delComplaint(id) {
|
||||
return request({
|
||||
url: '/cityManage/complaint/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
342
god-ui/src/views/cityManage/againstRule/index.vue
Normal file
342
god-ui/src/views/cityManage/againstRule/index.vue
Normal file
@ -0,0 +1,342 @@
|
||||
<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="machineName">
|
||||
<el-input
|
||||
v-model="queryParams.machineName"
|
||||
placeholder="请输入物品名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="物品号" prop="machineCode">
|
||||
<el-input
|
||||
v-model="queryParams.machineCode"
|
||||
placeholder="请输入物品号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="获取时间" prop="imageTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.imageTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择获取时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="占道类型" prop="speed">
|
||||
<el-select v-model="queryParams.speed" placeholder="请选择" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.jlpq_against_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</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="['machinery:image: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="['machinery:image: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="['machinery:image:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="imageList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="物品名称" align="center" prop="machineName" />
|
||||
<el-table-column label="物品号" align="center" prop="machineCode" />
|
||||
<el-table-column label="抓拍图片" align="center" prop="imageInfo" width="100">
|
||||
<template slot-scope="scope">
|
||||
<image-preview :src="scope.row.imageInfo" :width="50" :height="50"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="获取时间" align="center" prop="imageTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.imageTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="视频地址" align="center" prop="videoUrl" />-->
|
||||
<!-- <el-table-column label="地址信息" align="center" prop="address" />-->
|
||||
<el-table-column label="占道类型" align="center" prop="speed" >
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.jlpq_against_type" :value="scope.row.speed"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<!-- <el-table-column label="数据类型" align="center" prop="dataType" />-->
|
||||
<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="['machinery:image:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['machinery:image: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="machineName">
|
||||
<el-input v-model="form.machineName" placeholder="请输入物品名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物品号" prop="machineCode">
|
||||
<el-input v-model="form.machineCode" placeholder="请输入物品号" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="地块" prop="farmland">-->
|
||||
<!-- <el-input v-model="form.farmland" placeholder="请输入地块" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item label="抓拍图片" prop="imageInfo">
|
||||
<image-upload v-model="form.imageInfo"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="获取时间" prop="imageTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.imageTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择获取时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="视频地址" prop="videoUrl">-->
|
||||
<!-- <el-input v-model="form.videoUrl" 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="speed">
|
||||
<el-select v-model="form.speed" placeholder="请选择占道类型">
|
||||
<el-option
|
||||
v-for="dict in dict.type.jlpq_against_type"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="数据类型" prop="dataType">-->
|
||||
<!-- <el-input v-model="form.dataType" 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 { listImage, getImage, delImage, addImage, updateImage } from "@/api/machinery/image";
|
||||
|
||||
export default {
|
||||
//九龙坡区城市管理系统,违章占道管理数据
|
||||
name: "AgainstRule",
|
||||
dicts: ['jlpq_against_type'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 作业图片信息表格数据
|
||||
imageList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
machineName: null,
|
||||
machineCode: null,
|
||||
farmland: null,
|
||||
imageInfo: null,
|
||||
imageTime: null,
|
||||
videoUrl: null,
|
||||
address: null,
|
||||
speed: null,
|
||||
dataType: "违章占道"
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询作业图片信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listImage(this.queryParams).then(response => {
|
||||
this.imageList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
machineName: null,
|
||||
machineCode: null,
|
||||
farmland: null,
|
||||
imageInfo: null,
|
||||
imageTime: null,
|
||||
videoUrl: null,
|
||||
address: null,
|
||||
speed: null,
|
||||
remark: null,
|
||||
dataType: 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 = "添加违章占道管理数据";
|
||||
this.form.dataType = "违章占道";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getImage(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) {
|
||||
updateImage(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addImage(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 delImage(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('machinery/image/export', {
|
||||
...this.queryParams
|
||||
}, `image_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
359
god-ui/src/views/cityManage/complaint/index.vue
Normal file
359
god-ui/src/views/cityManage/complaint/index.vue
Normal file
@ -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="complaintTitle">
|
||||
<el-input
|
||||
v-model="queryParams.complaintTitle"
|
||||
placeholder="请输入投诉标题"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="投诉群体" prop="complaintPerson">
|
||||
<el-input
|
||||
v-model="queryParams.complaintPerson"
|
||||
placeholder="请输入投诉群体"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="投诉时间" prop="reportTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.reportTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择投诉时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="事件状态" prop="eventStatus">
|
||||
<el-select v-model="queryParams.eventStatus" placeholder="请选择事件状态" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.qyzy_apply_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="答复时间" prop="replyTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.replyTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择答复时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="答复单位" prop="replyUnit">
|
||||
<el-input
|
||||
v-model="queryParams.replyUnit"
|
||||
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="['cityManage:complaint: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="['cityManage:complaint: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="['cityManage:complaint: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="['cityManage:complaint:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="complaintList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="投诉标题" align="center" prop="complaintTitle" />
|
||||
<el-table-column label="投诉群体" align="center" prop="complaintPerson" />
|
||||
<el-table-column label="详情" align="center" prop="complaintInfo" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="投诉时间" align="center" prop="reportTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.reportTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="事件状态" align="center" prop="eventStatus">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.qyzy_apply_status" :value="scope.row.eventStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="答复时间" align="center" prop="replyTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.replyTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="答复单位" align="center" prop="replyUnit" />
|
||||
<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="['cityManage:complaint:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['cityManage:complaint: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="complaintTitle">
|
||||
<el-input v-model="form.complaintTitle" placeholder="请输入投诉标题" />
|
||||
</el-form-item>
|
||||
<el-form-item label="投诉群体" prop="complaintPerson">
|
||||
<el-input v-model="form.complaintPerson" placeholder="请输入投诉群体" />
|
||||
</el-form-item>
|
||||
<el-form-item label="详情" prop="complaintInfo">
|
||||
<el-input v-model="form.complaintInfo" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="投诉时间" prop="reportTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.reportTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择投诉时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="事件状态" prop="eventStatus">
|
||||
<el-select v-model="form.eventStatus" placeholder="请选择事件状态">
|
||||
<el-option
|
||||
v-for="dict in dict.type.qyzy_apply_status"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="答复时间" prop="replyTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.replyTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择答复时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="答复单位" prop="replyUnit">
|
||||
<el-input v-model="form.replyUnit" placeholder="请输入答复单位" />
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="数据类型" prop="dataType">-->
|
||||
<!-- <el-input v-model="form.dataType" 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 { listComplaint, getComplaint, delComplaint, addComplaint, updateComplaint } from "@/api/cityManage/complaint";
|
||||
|
||||
export default {
|
||||
//九龙坡区城市管理,公众诉求数据
|
||||
name: "Complaint",
|
||||
dicts: ['qyzy_apply_status'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 公众诉求数据表格数据
|
||||
complaintList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
complaintTitle: null,
|
||||
complaintPerson: null,
|
||||
complaintInfo: null,
|
||||
reportTime: null,
|
||||
eventStatus: null,
|
||||
replyTime: null,
|
||||
replyUnit: null,
|
||||
dataType: "公众诉求"
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询公众诉求数据列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listComplaint(this.queryParams).then(response => {
|
||||
this.complaintList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
complaintTitle: null,
|
||||
complaintPerson: null,
|
||||
complaintInfo: null,
|
||||
reportTime: null,
|
||||
eventStatus: null,
|
||||
replyTime: null,
|
||||
replyUnit: null,
|
||||
dataType: 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 = "添加公众诉求数据";
|
||||
this.form.dataType = "公众诉求";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getComplaint(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) {
|
||||
updateComplaint(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addComplaint(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 delComplaint(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('cityManage/complaint/export', {
|
||||
...this.queryParams
|
||||
}, `complaint_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
@ -193,7 +193,7 @@ import { listLeader, getLeader, delLeader, addLeader, updateLeader } from "@/api
|
||||
export default {
|
||||
//停车信息
|
||||
name: "Parking",
|
||||
dicts: ['sys_user_sex','driving_in_out'],
|
||||
dicts: ['driving_in_out'],
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
|
467
god-ui/src/views/cityManage/video/index.vue
Normal file
467
god-ui/src/views/cityManage/video/index.vue
Normal file
@ -0,0 +1,467 @@
|
||||
<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="equipName">
|
||||
<el-input
|
||||
v-model="queryParams.equipName"
|
||||
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="eventType">
|
||||
<el-input
|
||||
v-model="queryParams.eventType"
|
||||
placeholder="请输入视频类型"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="视频时间">
|
||||
<el-date-picker
|
||||
v-model="daterangeSettingTime"
|
||||
style="width: 240px"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="daterange"
|
||||
range-separator="-"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
></el-date-picker>
|
||||
</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="['species:video: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="['species:video: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="['species:video:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="videoList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="视频名称" align="center" prop="equipName" />
|
||||
<el-table-column label="视频位置" align="center" prop="address" />
|
||||
<el-table-column label="视频类型" align="center" prop="eventType" />
|
||||
<el-table-column label="视频时间" align="center" prop="settingTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.settingTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="视频地址" align="center" prop="fileUrl" />-->
|
||||
<el-table-column label="抓拍图片" align="center" prop="phoneInfo" width="100">
|
||||
<template slot-scope="scope">
|
||||
<image-preview :src="scope.row.phoneInfo" :width="50" :height="50"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<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="['species:video:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['species:video:remove']"
|
||||
>删除</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-video-camera"
|
||||
@click="playVideo(scope.row)"
|
||||
v-hasPermi="['species:video: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="equipName">
|
||||
<el-input v-model="form.equipName" 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="eventType">
|
||||
<el-input v-model="form.eventType" placeholder="请输入视频类型" />
|
||||
</el-form-item>
|
||||
<el-form-item label="视频时间" prop="settingTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.settingTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择视频时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="视频地址" prop="fileUrl">
|
||||
<!-- <file-upload v-model="form.fileUrl"/>-->
|
||||
<el-input v-model="form.fileUrl" placeholder="请输入视频地址" />
|
||||
</el-form-item>
|
||||
<el-form-item label="抓拍图片" prop="phoneInfo">
|
||||
<image-upload v-model="form.phoneInfo"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="文件上传">
|
||||
<el-upload
|
||||
class="upload-demo"
|
||||
ref="uploadFile"
|
||||
action=""
|
||||
:on-preview="handlePreview"
|
||||
:on-remove="handleRemoveFiles"
|
||||
:on-change="handleChangeFiles"
|
||||
:before-upload="beforeUploadFiles"
|
||||
:file-list="fileList"
|
||||
:auto-upload="true"
|
||||
multiple
|
||||
>
|
||||
<el-button size="small" type="primary">上传视频</el-button>
|
||||
<div slot="tip" class="el-upload__tip">只能上传mp4文件,且不超过100M</div>
|
||||
</el-upload>
|
||||
</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 :visible="isShow" width="600px" @close="closeDialog" class="videoBox">
|
||||
<video
|
||||
:src="videoUrl"
|
||||
controls
|
||||
autoplay
|
||||
class="video"
|
||||
width="100%"
|
||||
></video>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listVideo, getVideo, delVideo, addVideo, updateVideo } from "@/api/forest/video";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import request from "@/utils/request";
|
||||
|
||||
export default {
|
||||
//九龙坡区城市管理,视频数据管理
|
||||
name: "JlpqVideo",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 视频信息管理表格数据
|
||||
videoList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 备注时间范围
|
||||
daterangeSettingTime: [],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
equipName: null,
|
||||
address: null,
|
||||
eventType: null,
|
||||
settingTime: null,
|
||||
fileUrl: null,
|
||||
phoneInfo: null,
|
||||
smokeInfo: null,
|
||||
fireAddress: null,
|
||||
dataType: "九龙坡区视频",
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
},
|
||||
// 附件信息表格数据
|
||||
fileInfoList: [],
|
||||
fileList: [],
|
||||
//文件上传参数
|
||||
upload: {
|
||||
// 设置上传的请求头部
|
||||
headers: { Authorization: "Bearer " + getToken() },
|
||||
// TODO 上传的地址
|
||||
url: "/species/video/upload/file",
|
||||
// 上传的图片地址
|
||||
imageUrl: "",
|
||||
//携带值
|
||||
data: {
|
||||
tableName: "",
|
||||
linkId: "",
|
||||
workId: "",
|
||||
},
|
||||
|
||||
},
|
||||
isShow: false,
|
||||
videoUrl: '',
|
||||
baseUrl: process.env.VUE_APP_BASE_API,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
// 视频播放
|
||||
playVideo (row) {
|
||||
this.isShow = true
|
||||
// 将接受的值赋值给src
|
||||
let url1 = row.fileUrl;
|
||||
// this.videoUrl=this.baseUrl+"/profile/upload/2023/10/24/水果_20231024154211A001.mp4";
|
||||
this.videoUrl=this.baseUrl+url1;
|
||||
},
|
||||
/**
|
||||
* 关闭视频
|
||||
*/
|
||||
closeDialog () {
|
||||
// 关闭弹框
|
||||
this.isShow = false
|
||||
this.videoUrl = '' // 清空数据 关闭视频播放
|
||||
},
|
||||
//提交上传
|
||||
submit() {
|
||||
this.submitUploadFiles();
|
||||
},
|
||||
|
||||
handlePreview(file, fileList) {
|
||||
console.log("--->>预览文件", file);
|
||||
},
|
||||
beforeUploadFiles: (file, fileList) => {
|
||||
// 处理文件
|
||||
// 阻止默认上传事件
|
||||
return false;
|
||||
},
|
||||
// 删除文件之前的钩子,参数为上传的文件和文件列表,若返回 false 或者返回 Promise 且被 reject,则停止删除。function(file, fileList)
|
||||
handleRemoveFiles(file, fileList) {
|
||||
this.fileList = fileList;
|
||||
},
|
||||
handleChangeFiles(file, fileList) {
|
||||
this.fileList = fileList;
|
||||
this.submitUploadFiles();
|
||||
},
|
||||
submitUploadFiles() {
|
||||
if (this.fileList.length === 0) {
|
||||
return this.$message.warning("请选取文件后再上传");
|
||||
}
|
||||
// 下面的代码将创建一个空的FormData对象:
|
||||
const formData = new FormData();
|
||||
// 你可以使用FormData.append来添加键/值对到表单里面;
|
||||
this.fileList.forEach((file) => {
|
||||
formData.append("files", file.raw);
|
||||
});
|
||||
|
||||
if (this.form.id && this.form.id != "null") {
|
||||
formData.set("workId", this.form.id);
|
||||
}
|
||||
formData.set("dataType", this.form.dataType);
|
||||
request({
|
||||
method: "POST",
|
||||
url: this.upload.url, //填写自己的接口
|
||||
data: formData, //填写包装好的formData对象
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.$message.success("上传成功");
|
||||
// this.open = false;
|
||||
// this.getList();
|
||||
console.log("查看上传结果:",res);
|
||||
if (res.data) {
|
||||
this.form.fileUrl = res.data.fileUrl;
|
||||
}
|
||||
} else {
|
||||
this.$message.error("上传失败");
|
||||
}
|
||||
//清空fileList
|
||||
this.fileList = [];
|
||||
});
|
||||
// this.$refs.uploadFile.submit();
|
||||
},
|
||||
|
||||
|
||||
|
||||
/** 查询视频信息管理列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
this.queryParams.params = {};
|
||||
if (null != this.daterangeSettingTime && '' != this.daterangeSettingTime) {
|
||||
this.queryParams.params["beginSettingTime"] = this.daterangeSettingTime[0];
|
||||
this.queryParams.params["endSettingTime"] = this.daterangeSettingTime[1];
|
||||
}
|
||||
listVideo(this.queryParams).then(response => {
|
||||
this.videoList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: null,
|
||||
equipName: null,
|
||||
address: null,
|
||||
eventType: null,
|
||||
settingTime: null,
|
||||
fileUrl: null,
|
||||
phoneInfo: null,
|
||||
smokeInfo: null,
|
||||
fireAddress: null,
|
||||
dataType: null,
|
||||
remark: null
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.daterangeSettingTime = [];
|
||||
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 = "添加城市视频数据";
|
||||
this.form.dataType = "九龙坡区视频";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getVideo(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) {
|
||||
updateVideo(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addVideo(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 delVideo(ids);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('species/video/export', {
|
||||
...this.queryParams
|
||||
}, `video_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user