Commit f9f0b73d authored by 耿迪迪's avatar 耿迪迪
parents 9081c6d8 0730428e
...@@ -21,6 +21,9 @@ public class THiddenDangerStandingBookForm ...@@ -21,6 +21,9 @@ public class THiddenDangerStandingBookForm
/** 隐患类型 */ /** 隐患类型 */
private String hiddenType; private String hiddenType;
/** 整治情况 */
private String remediation;
/** 发现起始时间 */ /** 发现起始时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date hiddenFindDateStart; private Date hiddenFindDateStart;
......
...@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where> is_del = '0' <where> is_del = '0'
<if test="hiddenTitle != null and hiddenTitle != ''"> and hidden_title like concat('%', #{hiddenTitle}, '%')</if> <if test="hiddenTitle != null and hiddenTitle != ''"> and hidden_title like concat('%', #{hiddenTitle}, '%')</if>
<if test="hiddenType != null and hiddenType != ''"> and hidden_type = #{hiddenType}</if> <if test="hiddenType != null and hiddenType != ''"> and hidden_type = #{hiddenType}</if>
<if test="remediation != null and remediation != ''"> and remediation = #{remediation}</if>
<if test="hiddenFindDateStart != null "> and hidden_find_date &gt;= #{hiddenFindDateStart}</if> <if test="hiddenFindDateStart != null "> and hidden_find_date &gt;= #{hiddenFindDateStart}</if>
<if test="hiddenFindDateEnd != null "> and hidden_find_date &lt;= #{hiddenFindDateEnd}</if> <if test="hiddenFindDateEnd != null "> and hidden_find_date &lt;= #{hiddenFindDateEnd}</if>
</where> </where>
......
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="80px"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="80px">
<el-form-item label="隐患名称" prop="hiddenTitle">
<el-input
v-model="queryParams.hiddenTitle"
placeholder="请输入隐患名称"
clearable
size="small"
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="隐患类型" prop="hiddenType"> <el-form-item label="隐患类型" prop="hiddenType">
<el-select v-model="queryParams.hiddenType" placeholder="请选择隐患类型" clearable size="small"> <el-select v-model="queryParams.hiddenType" placeholder="请选择隐患类型" clearable size="small">
<el-option <el-option
...@@ -20,6 +11,16 @@ ...@@ -20,6 +11,16 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="整治情况" prop="remediation">
<el-select v-model="queryParams.remediation" placeholder="请选择整治情况" clearable size="small">
<el-option
v-for="dict in remediationOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="发现时间" prop="hiddenFindDate"> <el-form-item label="发现时间" prop="hiddenFindDate">
<el-date-picker clearable size="small" <el-date-picker clearable size="small"
v-model="queryParams.hiddenFindDateStart" v-model="queryParams.hiddenFindDateStart"
...@@ -91,8 +92,8 @@ ...@@ -91,8 +92,8 @@
</el-table-column> </el-table-column>
<el-table-column label="整治情况" align="center" prop="remediation"> <el-table-column label="整治情况" align="center" prop="remediation">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.remediation != '' && scope.row.remediation != null">{{ scope.row.remediation }}</span> <span v-if="scope.row.remediation == '1'">已完成</span>
<span v-else>-</span> <span v-if="scope.row.remediation == '2'">未完成</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="180px"> <el-table-column label="操作" align="center" width="180px">
...@@ -215,7 +216,14 @@ ...@@ -215,7 +216,14 @@
<el-row> <el-row>
<el-col :span="23"> <el-col :span="23">
<el-form-item label="整治情况" prop="remediation"> <el-form-item label="整治情况" prop="remediation">
<el-input v-model="form.remediation" placeholder="请输入整治情况" /> <el-select v-model="form.remediation" placeholder="请选择整治情况" clearable size="small">
<el-option
v-for="dict in remediationOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -273,8 +281,8 @@ ...@@ -273,8 +281,8 @@
</el-row> </el-row>
<el-row> <el-row>
<el-form-item label="整治情况:"> <el-form-item label="整治情况:">
<font v-if="detailForm.remediation != '' && detailForm.remediation != null">{{detailForm.remediation}}</font> <font v-if="detailForm.remediation == '1'">已完成</font>
<font v-else> - </font> <font v-if="detailForm.remediation == '2'">未完成</font>
</el-form-item> </el-form-item>
</el-row> </el-row>
<el-row> <el-row>
...@@ -344,6 +352,8 @@ export default { ...@@ -344,6 +352,8 @@ export default {
open2: false, open2: false,
// 隐患类型字典 // 隐患类型字典
typeOptions: [], typeOptions: [],
// 整治情况字典
remediationOptions: [],
// 上传文件列表 // 上传文件列表
fileList: [], fileList: [],
// 地图 // 地图
...@@ -356,6 +366,7 @@ export default { ...@@ -356,6 +366,7 @@ export default {
pageSize: 10, pageSize: 10,
hiddenTitle: null, hiddenTitle: null,
hiddenType: null, hiddenType: null,
remediation: null,
hiddenFindDateStart: null, hiddenFindDateStart: null,
hiddenFindDateEnd: null hiddenFindDateEnd: null
}, },
...@@ -385,6 +396,9 @@ export default { ...@@ -385,6 +396,9 @@ export default {
hiddenFindDate: [ hiddenFindDate: [
{ required: true, message: "请选择发现时间", trigger: "change" }, { required: true, message: "请选择发现时间", trigger: "change" },
], ],
remediation: [
{ required: true, message: "请选择整治情况", trigger: "change" },
],
dealPlan: [ dealPlan: [
{ required: true, message: "请上传文件", trigger: "change" }, { required: true, message: "请上传文件", trigger: "change" },
], ],
...@@ -396,6 +410,9 @@ export default { ...@@ -396,6 +410,9 @@ export default {
this.getDicts("t_hidden_type").then(response => { this.getDicts("t_hidden_type").then(response => {
this.typeOptions = response.data; this.typeOptions = response.data;
}); });
this.getDicts("t_remediation").then(response => {
this.remediationOptions = response.data;
});
}, },
methods: { methods: {
/** 查询隐患整治台账列表 */ /** 查询隐患整治台账列表 */
......
...@@ -237,9 +237,13 @@ ...@@ -237,9 +237,13 @@
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item label="是否处理" prop="isDeal"> <el-form-item label="是否处理" prop="isDeal">
<el-select v-model="form.isDeal" placeholder="请选择处理结果"> <el-select v-model="form.isDeal" placeholder="请选择处理结果" filterable style="width: 100%" >
<el-option label="已处理" value="1" /> <el-option
<el-option label="未处理" value="2" /> v-for="dict in isDealOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment