|
|
|
|
@ -5,38 +5,34 @@
|
|
|
|
|
<LxHeader icon="md-apps" text="雨管巡查管理" style="margin-bottom: 10px; border: 0px; margin-top: 15px">
|
|
|
|
|
<div slot="content"></div>
|
|
|
|
|
<slot>
|
|
|
|
|
<div>
|
|
|
|
|
<Input class="vm10" style="width: 200px; margin-right: 10px" v-model="searchFields.KeyWord" placeholder="关键字搜索" />
|
|
|
|
|
<el-select class="vm10" filterable v-model="searchFields.area_id" placeholder="请选择所属片区">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in selects.areasList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select class="vm10" filterable v-model="searchFields.status_id" placeholder="请选择状态">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in selects.statusList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select class="vm10" filterable v-model="searchFields.type_id" placeholder="请选择类型">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in selects.typeList"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:label="item.name"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
class="vm10"
|
|
|
|
|
v-model="datesearch"
|
|
|
|
|
type="datetime"
|
|
|
|
|
placeholder="选择日期时间">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
<div>
|
|
|
|
|
<Input class="vm10" style="width: 200px; margin-right: 10px" v-model="searchFields.keyword"
|
|
|
|
|
placeholder="关键字搜索" />
|
|
|
|
|
<el-select class="vm10" v-model="searchFields.road_id" filterable remote reserve-keyword clearable
|
|
|
|
|
@focus="remoteRoad" placeholder="请输入关键词查找道路" :remote-method="remoteMethod" :loading="roadloading">
|
|
|
|
|
<el-option v-for="item in roadsList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select class="vm10" filterable v-model="searchFields.area_id" placeholder="请选择所属片区">
|
|
|
|
|
<el-option v-for="item in selects.areasList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select class="vm10" filterable v-model="searchFields.status_id" placeholder="请选择状态">
|
|
|
|
|
<el-option v-for="item in selects.statusList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select class="vm10" filterable v-model="searchFields.type_id" placeholder="请选择类型">
|
|
|
|
|
<el-option v-for="item in selects.typeList" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
<el-select class="vm10" filterable v-model="searchFields.ask_content_id" placeholder="请选择巡查内容">
|
|
|
|
|
<el-option v-for="item in sequiementList" :key="item.id" :label="item.value" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
|
<el-date-picker class="vm10" v-model="datesearch" type="daterange" range-separator="至"
|
|
|
|
|
start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
<Button type="primary" @click="load" style="margin-left: 10px">查询</Button>
|
|
|
|
|
</div>
|
|
|
|
|
</slot>
|
|
|
|
|
@ -48,31 +44,33 @@
|
|
|
|
|
<el-table-column :prop="column.field" :align="column.align" v-for="(column,index) in columns"
|
|
|
|
|
:label="column.title" :width="column.width" :fixed="column.fixed">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="column.type=='opt'">
|
|
|
|
|
<Button v-if="scope.row['status']==2||scope.row['status']==3" ghost size="small" @click="show(scope.row)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">查看</Button>
|
|
|
|
|
<Button v-if="scope.row['status']==1&&scope.row['end_type']==2" ghost size="small" @click="show(scope.row)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">办结</Button>
|
|
|
|
|
<div v-if="column.type=='opt'">
|
|
|
|
|
<Button v-if="scope.row['status']==2||scope.row['status']==3" ghost size="small"
|
|
|
|
|
@click="show(scope.row)" type="primary" style="margin-left: 10px;">查看</Button>
|
|
|
|
|
<Button v-if="scope.row['status']==1&&scope.row['end_type']==2" ghost size="small"
|
|
|
|
|
@click="show(scope.row)" type="primary" style="margin-left: 10px;">办结</Button>
|
|
|
|
|
<Button ghost size="small"
|
|
|
|
|
@click="goorder" type="primary" style="margin-left: 10px;">新建工单</Button>
|
|
|
|
|
<Button ghost size="small" @click="del(scope.row)" type="error" style="margin-left: 10px;">删除</Button>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='type'">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==1">日常雨水设施</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==2">在建工地巡查</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='end_type'">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==2" type="warning">有</el-tag>
|
|
|
|
|
<el-tag v-else>无</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='end_type'">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==2" type="warning">有</el-tag>
|
|
|
|
|
<el-tag v-else>无</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='status'">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==0">待审核</el-tag>
|
|
|
|
|
<el-tag type="success" v-if="scope.row[column.field]==1">已审核</el-tag>
|
|
|
|
|
<el-tag type="warning" v-if="scope.row[column.field]==2">已办结</el-tag>
|
|
|
|
|
<el-tag type="info" v-if="scope.row[column.field]==3">已退回</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='format'">
|
|
|
|
|
{{scope.row[column.field]?scope.row[column.field].name:""}}
|
|
|
|
|
<!-- <div v-if="column.field=='ask_content_detail'">{{scope.row[column.field]?scope.row[column.field].value:""}}</div>
|
|
|
|
|
<div v-else></div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='format'">
|
|
|
|
|
{{scope.row[column.field]?scope.row[column.field].name:""}}
|
|
|
|
|
<!-- <div v-if="column.field=='ask_content_detail'">{{scope.row[column.field]?scope.row[column.field].value:""}}</div>
|
|
|
|
|
<div v-else></div> -->
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='admin'">
|
|
|
|
|
{{getUserName(scope.row)}}
|
|
|
|
|
@ -99,11 +97,11 @@
|
|
|
|
|
<!-- 日常雨水设施 -->
|
|
|
|
|
<el-form v-if="rainType==1" :model="formdetail" :rules="{}" ref="formdetail" label-position="right"
|
|
|
|
|
:label-width="formLabelWidth">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="所属道路" prop="road_id">
|
|
|
|
|
{{roadName}}
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="所属道路" prop="road_id">
|
|
|
|
|
{{roadName}}
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="巡查内容" prop="ask_content_id">
|
|
|
|
|
@ -113,16 +111,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="覆盖范围" prop="scope">
|
|
|
|
|
{{form.scope}}米
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="所在点位" prop="point_name">
|
|
|
|
|
{{form.point_name}}
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="覆盖范围" prop="scope">
|
|
|
|
|
{{form.scope}}米
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="所在点位" prop="point_name">
|
|
|
|
|
{{form.point_name}}
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="所在位置" prop="address">
|
|
|
|
|
@ -185,8 +183,8 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="form.is_scene==1">
|
|
|
|
|
<el-form-item label="处理后照片" prop="files_end_list" class="files_check">
|
|
|
|
|
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="dealFilesList"
|
|
|
|
|
ref="pictureUploads">
|
|
|
|
|
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card"
|
|
|
|
|
:file-list="dealFilesList" ref="pictureUploads">
|
|
|
|
|
<div slot="file" slot-scope="{file}">
|
|
|
|
|
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
|
|
|
|
|
<span class="el-upload-list__item-actions">
|
|
|
|
|
@ -220,24 +218,20 @@
|
|
|
|
|
<el-tag type="warning" v-if="end_types==1">养护转办</el-tag>
|
|
|
|
|
<el-tag type="warning" v-if="end_types==2">违法转办</el-tag>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==1 && formdetail.end_type==1">
|
|
|
|
|
<el-form-item label="要求完成时间" prop="end_time">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
style="width:100%"
|
|
|
|
|
v-model="formdetail.end_time"
|
|
|
|
|
type="datetime"
|
|
|
|
|
placeholder="选择时间"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==1 && formdetail.end_type==1">
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input type="textarea" v-model="formdetail.remark" placeholder="请填写备注" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==1 && formdetail.end_type==1">
|
|
|
|
|
<el-form-item label="要求完成时间" prop="end_time">
|
|
|
|
|
<el-date-picker style="width:100%" v-model="formdetail.end_time" type="datetime" placeholder="选择时间"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==1 && formdetail.end_type==1">
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input type="textarea" v-model="formdetail.remark" placeholder="请填写备注" autocomplete="off">
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==2||nowstatus==3">
|
|
|
|
|
<el-form-item label="处理日志" prop="">
|
|
|
|
|
@ -271,11 +265,11 @@
|
|
|
|
|
<!-- 在建工地 -->
|
|
|
|
|
<el-form v-if="rainType==2" :model="formdetail" :rules="{}" ref="formdetail" label-position="right"
|
|
|
|
|
:label-width="formLabelWidth">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="所属道路" prop="road_id">
|
|
|
|
|
{{roadName}}
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="所属道路" prop="road_id">
|
|
|
|
|
{{roadName}}
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="工地名称" prop="name">
|
|
|
|
|
@ -378,23 +372,19 @@
|
|
|
|
|
<el-radio :label="2">违法转办</el-radio>
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==1 && formdetail.end_type==1">
|
|
|
|
|
<el-form-item label="要求完成时间" prop="complete_date">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
style="width:100%"
|
|
|
|
|
v-model="formdetail.end_time"
|
|
|
|
|
type="datetime"
|
|
|
|
|
placeholder="选择时间"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==1 && formdetail.end_type==1">
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input type="textarea" v-model="formdetail.remark" placeholder="请填写备注" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==1 && formdetail.end_type==1">
|
|
|
|
|
<el-form-item label="要求完成时间" prop="complete_date">
|
|
|
|
|
<el-date-picker style="width:100%" v-model="formdetail.end_time" type="datetime" placeholder="选择时间"
|
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss">
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==1 && formdetail.end_type==1">
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input type="textarea" v-model="formdetail.remark" placeholder="请填写备注" autocomplete="off">
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="nowstatus==2||nowstatus==3">
|
|
|
|
|
<el-form-item label="有无违法转办">
|
|
|
|
|
@ -456,16 +446,22 @@
|
|
|
|
|
get,
|
|
|
|
|
del,
|
|
|
|
|
update,
|
|
|
|
|
} from '../../../api/rain/inspection.js'
|
|
|
|
|
import {storeclue} from '../../../api/assess/clue.js'
|
|
|
|
|
} from '../../../api/rain/inspection.js'
|
|
|
|
|
import {
|
|
|
|
|
storeclue
|
|
|
|
|
} from '../../../api/assess/clue.js'
|
|
|
|
|
import {
|
|
|
|
|
getToken
|
|
|
|
|
} from '@/utils/auth'
|
|
|
|
|
import {
|
|
|
|
|
getparameteritem
|
|
|
|
|
} from '../../../api/system/dictionary.js'
|
|
|
|
|
import { listarea } from '../../../api/basic/area.js'
|
|
|
|
|
import { listroad } from '../../../api/basic/road.js'
|
|
|
|
|
} from '../../../api/system/dictionary.js'
|
|
|
|
|
import {
|
|
|
|
|
listarea
|
|
|
|
|
} from '../../../api/basic/area.js'
|
|
|
|
|
import {
|
|
|
|
|
listroad
|
|
|
|
|
} from '../../../api/basic/road.js'
|
|
|
|
|
import LxHeader from "@/components/LxHeader/index.vue";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
@ -473,8 +469,8 @@
|
|
|
|
|
LxHeader
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
datesearch:"",
|
|
|
|
|
return {
|
|
|
|
|
datesearch: "",
|
|
|
|
|
tableHeight: 0,
|
|
|
|
|
rainTypeVisible: false,
|
|
|
|
|
rainType: "1",
|
|
|
|
|
@ -490,37 +486,35 @@
|
|
|
|
|
},
|
|
|
|
|
mapform: [],
|
|
|
|
|
tableHeight: 0,
|
|
|
|
|
searchFields: {
|
|
|
|
|
area_id: ""
|
|
|
|
|
},
|
|
|
|
|
selects:{
|
|
|
|
|
areasList:[{
|
|
|
|
|
id:"",
|
|
|
|
|
name:"所有"
|
|
|
|
|
}],
|
|
|
|
|
typeList:[{
|
|
|
|
|
id:"",
|
|
|
|
|
name:"所有"
|
|
|
|
|
},{
|
|
|
|
|
id:"1",
|
|
|
|
|
name:"日常雨水设施"
|
|
|
|
|
},{
|
|
|
|
|
id:"2",
|
|
|
|
|
name:"在建工地"
|
|
|
|
|
}],
|
|
|
|
|
statusList:[{
|
|
|
|
|
id:"",
|
|
|
|
|
name:"所有"
|
|
|
|
|
},{
|
|
|
|
|
id:"1",
|
|
|
|
|
name:"未审核"
|
|
|
|
|
},{
|
|
|
|
|
id:"2",
|
|
|
|
|
name:"已审核"
|
|
|
|
|
},{
|
|
|
|
|
id:"3",
|
|
|
|
|
name:"已办结"
|
|
|
|
|
}],
|
|
|
|
|
searchFields: {},
|
|
|
|
|
selects: {
|
|
|
|
|
areasList: [{
|
|
|
|
|
id: "",
|
|
|
|
|
name: "所有"
|
|
|
|
|
}],
|
|
|
|
|
typeList: [{
|
|
|
|
|
id: "",
|
|
|
|
|
name: "所有"
|
|
|
|
|
}, {
|
|
|
|
|
id: "1",
|
|
|
|
|
name: "日常雨水设施"
|
|
|
|
|
}, {
|
|
|
|
|
id: "2",
|
|
|
|
|
name: "在建工地"
|
|
|
|
|
}],
|
|
|
|
|
statusList: [{
|
|
|
|
|
id: "",
|
|
|
|
|
name: "所有"
|
|
|
|
|
}, {
|
|
|
|
|
id: "1",
|
|
|
|
|
name: "未审核"
|
|
|
|
|
}, {
|
|
|
|
|
id: "2",
|
|
|
|
|
name: "已审核"
|
|
|
|
|
}, {
|
|
|
|
|
id: "3",
|
|
|
|
|
name: "已办结"
|
|
|
|
|
}],
|
|
|
|
|
},
|
|
|
|
|
paginations: {
|
|
|
|
|
page: 1,
|
|
|
|
|
@ -541,6 +535,10 @@
|
|
|
|
|
siteType: [],
|
|
|
|
|
siteLaw: [],
|
|
|
|
|
equiementList: [],
|
|
|
|
|
sequiementList: [{
|
|
|
|
|
id: "",
|
|
|
|
|
value: "所有"
|
|
|
|
|
}],
|
|
|
|
|
siteStatus: [{
|
|
|
|
|
id: 1,
|
|
|
|
|
value: "在建"
|
|
|
|
|
@ -552,9 +550,9 @@
|
|
|
|
|
content: "",
|
|
|
|
|
ask_content_id: "",
|
|
|
|
|
is_unusual: 0,
|
|
|
|
|
is_scene: 0,
|
|
|
|
|
point_name:"",
|
|
|
|
|
scope:"",
|
|
|
|
|
is_scene: 0,
|
|
|
|
|
point_name: "",
|
|
|
|
|
scope: "",
|
|
|
|
|
result: "",
|
|
|
|
|
tip: "",
|
|
|
|
|
longitude: "",
|
|
|
|
|
@ -569,19 +567,21 @@
|
|
|
|
|
status: 0,
|
|
|
|
|
remark: "",
|
|
|
|
|
is_law: 0,
|
|
|
|
|
break_id: "",
|
|
|
|
|
road_id:""
|
|
|
|
|
},
|
|
|
|
|
roadName:"",
|
|
|
|
|
roaddisabled:false,
|
|
|
|
|
break_id: "",
|
|
|
|
|
road_id: ""
|
|
|
|
|
},
|
|
|
|
|
roadloading: false,
|
|
|
|
|
roadsList: [],
|
|
|
|
|
roadName: "",
|
|
|
|
|
roaddisabled: false,
|
|
|
|
|
formdetail: {
|
|
|
|
|
status: 0,
|
|
|
|
|
end_type: 0,
|
|
|
|
|
content: ""
|
|
|
|
|
},
|
|
|
|
|
formclue:{
|
|
|
|
|
type:5,
|
|
|
|
|
rain_inspection_id:"",
|
|
|
|
|
},
|
|
|
|
|
formclue: {
|
|
|
|
|
type: 5,
|
|
|
|
|
rain_inspection_id: "",
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
columns: [{
|
|
|
|
|
@ -590,20 +590,20 @@
|
|
|
|
|
type: "string",
|
|
|
|
|
align: "left",
|
|
|
|
|
width: 360
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "area_info",
|
|
|
|
|
title: "所属片区",
|
|
|
|
|
type: "format",
|
|
|
|
|
align: "center",
|
|
|
|
|
width:180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "askName",
|
|
|
|
|
title: "巡查内容",
|
|
|
|
|
type: "string",
|
|
|
|
|
align: "center",
|
|
|
|
|
width:180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "area_info",
|
|
|
|
|
title: "所属片区",
|
|
|
|
|
type: "format",
|
|
|
|
|
align: "center",
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "askName",
|
|
|
|
|
title: "巡查内容",
|
|
|
|
|
type: "string",
|
|
|
|
|
align: "center",
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "type",
|
|
|
|
|
@ -611,13 +611,13 @@
|
|
|
|
|
type: "type",
|
|
|
|
|
align: "center",
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "end_type",
|
|
|
|
|
title: "是否违法转办",
|
|
|
|
|
type: "end_type",
|
|
|
|
|
align: "center",
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "end_type",
|
|
|
|
|
title: "是否违法转办",
|
|
|
|
|
type: "end_type",
|
|
|
|
|
align: "center",
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "status",
|
|
|
|
|
@ -656,6 +656,17 @@
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
datesearch(newVal, oldVal) {
|
|
|
|
|
console.log(newVal)
|
|
|
|
|
if (newVal) {
|
|
|
|
|
this.searchFields.start_date = newVal[0]
|
|
|
|
|
this.searchFields.end_date = newVal[1]
|
|
|
|
|
} else {
|
|
|
|
|
this.searchFields.start_date = ""
|
|
|
|
|
this.searchFields.end_date = ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getUserName(row) {
|
|
|
|
|
@ -667,6 +678,9 @@
|
|
|
|
|
return "未知";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
goorder(){
|
|
|
|
|
this.$router.push({path:'/rain/order/order',query:{isnew:true}});
|
|
|
|
|
},
|
|
|
|
|
initLoad() {
|
|
|
|
|
var that = this;
|
|
|
|
|
@ -685,18 +699,21 @@
|
|
|
|
|
})
|
|
|
|
|
getparameteritem('equiementList').then(res => {
|
|
|
|
|
that.equiementList = res.detail
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
listarea({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 99
|
|
|
|
|
}).then(res => {
|
|
|
|
|
for(var m of res.data){
|
|
|
|
|
that.selects.areasList.push({
|
|
|
|
|
id:m.id,
|
|
|
|
|
name:m.name
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
for (var m of res.detail) {
|
|
|
|
|
that.sequiementList.push(m)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
listarea({
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 99
|
|
|
|
|
}).then(res => {
|
|
|
|
|
for (var m of res.data) {
|
|
|
|
|
that.selects.areasList.push({
|
|
|
|
|
id: m.id,
|
|
|
|
|
name: m.name
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -709,13 +726,14 @@
|
|
|
|
|
listall({
|
|
|
|
|
page: this.paginations.page,
|
|
|
|
|
page_size: this.paginations.page_size,
|
|
|
|
|
area_id: this.searchFields.area_id,
|
|
|
|
|
end_type:2
|
|
|
|
|
}).then(response => {
|
|
|
|
|
for(var m of response.data){
|
|
|
|
|
if(m.rain_equipment_info){
|
|
|
|
|
m.askName = m.rain_equipment_info.ask_content_detail?m.rain_equipment_info.ask_content_detail.value:""
|
|
|
|
|
}
|
|
|
|
|
area_id: this.searchFields.area_id,
|
|
|
|
|
end_type: 2
|
|
|
|
|
}).then(response => {
|
|
|
|
|
for (var m of response.data) {
|
|
|
|
|
if (m.rain_equipment_info) {
|
|
|
|
|
m.askName = m.rain_equipment_info.ask_content_detail ? m.rain_equipment_info.ask_content_detail
|
|
|
|
|
.value : ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.tableData = response.data;
|
|
|
|
|
this.paginations.total = response.total;
|
|
|
|
|
@ -726,6 +744,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
remoteRoad() {
|
|
|
|
|
this.roadsList = []
|
|
|
|
|
},
|
|
|
|
|
remoteMethod(query) {
|
|
|
|
|
|
|
|
|
|
if (query != '') {
|
|
|
|
|
this.roadloading = true
|
|
|
|
|
listroad({
|
|
|
|
|
name: query
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.roadloading = false
|
|
|
|
|
this.roadsList = res.data
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.roadsList = []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
info(obj) {
|
|
|
|
|
var that = this;
|
|
|
|
|
@ -734,12 +769,12 @@
|
|
|
|
|
// this.$set(that.form,res)
|
|
|
|
|
that.rainType = result.type;
|
|
|
|
|
that.nowstatus = result.status;
|
|
|
|
|
that.formclue.rain_inspection_id = result.id
|
|
|
|
|
if(result.rain_inspection_logs){
|
|
|
|
|
for(var k of result.rain_inspection_logs){
|
|
|
|
|
k.adminName = k.admin?k.admin.name : ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
that.formclue.rain_inspection_id = result.id
|
|
|
|
|
if (result.rain_inspection_logs) {
|
|
|
|
|
for (var k of result.rain_inspection_logs) {
|
|
|
|
|
k.adminName = k.admin ? k.admin.name : ""
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
that.rainMaintainLogs = result.rain_inspection_logs;
|
|
|
|
|
that.end_types = result.end_type
|
|
|
|
|
if (that.rainType == 1) {
|
|
|
|
|
@ -750,21 +785,23 @@
|
|
|
|
|
switch (result.type) {
|
|
|
|
|
case 1:
|
|
|
|
|
that.form = result.rain_equipment_info;
|
|
|
|
|
that.form.rain_equipment_id = result.rain_equipment_id;
|
|
|
|
|
that.roaddisabled = true
|
|
|
|
|
that.roadName = result.rain_equipment_info.road?result.rain_equipment_info.road.name:""
|
|
|
|
|
that.form.rain_equipment_id = result.rain_equipment_id;
|
|
|
|
|
that.roaddisabled = true
|
|
|
|
|
that.roadName = result.rain_equipment_info.road ? result.rain_equipment_info.road.name : ""
|
|
|
|
|
that.idname = "rain_equipment_id"
|
|
|
|
|
that.mapform = [result.rain_equipment_info.longitude, result.rain_equipment_info.latitude, result.rain_equipment_info.address]
|
|
|
|
|
let _files = [];
|
|
|
|
|
that.mapform = [result.rain_equipment_info.longitude, result.rain_equipment_info.latitude, result
|
|
|
|
|
.rain_equipment_info.address
|
|
|
|
|
]
|
|
|
|
|
let _files = [];
|
|
|
|
|
let clue_files = []
|
|
|
|
|
for (var mod of result.rain_equipment_info.rain_equipment_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "before";
|
|
|
|
|
_files.push(m);
|
|
|
|
|
clue_files.push({
|
|
|
|
|
upload_id:mod.files.id
|
|
|
|
|
_files.push(m);
|
|
|
|
|
clue_files.push({
|
|
|
|
|
upload_id: mod.files.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
that.filesList = _files;
|
|
|
|
|
@ -777,56 +814,56 @@
|
|
|
|
|
m.photoType = "after";
|
|
|
|
|
_filesafter.push(m);
|
|
|
|
|
}
|
|
|
|
|
that.dealFilesList = _filesafter;
|
|
|
|
|
that.formclue.area_id = result.area_id
|
|
|
|
|
that.formclue.content = result.rain_equipment_info.content
|
|
|
|
|
that.formclue.files_list = clue_files
|
|
|
|
|
that.formclue.date = result.created_at
|
|
|
|
|
that.formclue.longitude = result.rain_equipment_info.longitude
|
|
|
|
|
that.formclue.latitude = result.rain_equipment_info.latitude
|
|
|
|
|
that.dealFilesList = _filesafter;
|
|
|
|
|
that.formclue.area_id = result.area_id
|
|
|
|
|
that.formclue.content = result.rain_equipment_info.content
|
|
|
|
|
that.formclue.files_list = clue_files
|
|
|
|
|
that.formclue.date = result.created_at
|
|
|
|
|
that.formclue.longitude = result.rain_equipment_info.longitude
|
|
|
|
|
that.formclue.latitude = result.rain_equipment_info.latitude
|
|
|
|
|
that.formclue.address = result.rain_equipment_info.address
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
that.form = result.building_site_info;
|
|
|
|
|
that.roadName = result.building_site_info.road?result.building_site_info.road.name:""
|
|
|
|
|
let building_site = result.building_site_info.building_site
|
|
|
|
|
that.form.building_site_id =building_site.id
|
|
|
|
|
that.form.address = building_site.address
|
|
|
|
|
that.form.latitude=building_site.latitude
|
|
|
|
|
that.form.longitude=building_site.longitude
|
|
|
|
|
that.form.name=building_site.name
|
|
|
|
|
that.form.number=building_site.number
|
|
|
|
|
that.form.remark=building_site.remark
|
|
|
|
|
that.form.status=building_site.status
|
|
|
|
|
that.form.type=parseInt(building_site.type)
|
|
|
|
|
that.form = result.building_site_info;
|
|
|
|
|
that.roadName = result.building_site_info.road ? result.building_site_info.road.name : ""
|
|
|
|
|
let building_site = result.building_site_info.building_site
|
|
|
|
|
that.form.building_site_id = building_site.id
|
|
|
|
|
that.form.address = building_site.address
|
|
|
|
|
that.form.latitude = building_site.latitude
|
|
|
|
|
that.form.longitude = building_site.longitude
|
|
|
|
|
that.form.name = building_site.name
|
|
|
|
|
that.form.number = building_site.number
|
|
|
|
|
that.form.remark = building_site.remark
|
|
|
|
|
that.form.status = building_site.status
|
|
|
|
|
that.form.type = parseInt(building_site.type)
|
|
|
|
|
that.form.building_site_id = building_site.id
|
|
|
|
|
that.form.building_site_content_id = result.building_site_content_id;
|
|
|
|
|
that.idname = "building_site_content_id"
|
|
|
|
|
that.mapform = [building_site.longitude, building_site.latitude, building_site.address]
|
|
|
|
|
let discharge_files = [];
|
|
|
|
|
let discharge_files = [];
|
|
|
|
|
let build_files = [];
|
|
|
|
|
for (var mod of result.building_site_info.building_site_content_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
m.url = mod.files.url;
|
|
|
|
|
m.id = mod.files.id;
|
|
|
|
|
m.photoType = "before";
|
|
|
|
|
discharge_files.push(m);
|
|
|
|
|
build_files.push({
|
|
|
|
|
upload_id:mod.files.id
|
|
|
|
|
discharge_files.push(m);
|
|
|
|
|
build_files.push({
|
|
|
|
|
upload_id: mod.files.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
that.filesList = discharge_files;
|
|
|
|
|
that.formclue.area_id = result.area_id
|
|
|
|
|
that.formclue.content = result.building_site_info.content
|
|
|
|
|
that.formclue.files_list = build_files
|
|
|
|
|
that.formclue.date = result.created_at
|
|
|
|
|
that.formclue.address = building_site.address
|
|
|
|
|
that.formclue.latitude=building_site.latitude
|
|
|
|
|
that.formclue.longitude=building_site.longitude
|
|
|
|
|
that.formclue.area_id = result.area_id
|
|
|
|
|
that.formclue.content = result.building_site_info.content
|
|
|
|
|
that.formclue.files_list = build_files
|
|
|
|
|
that.formclue.date = result.created_at
|
|
|
|
|
that.formclue.address = building_site.address
|
|
|
|
|
that.formclue.latitude = building_site.latitude
|
|
|
|
|
that.formclue.longitude = building_site.longitude
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
that.formdetail.id = result.id
|
|
|
|
|
}
|
|
|
|
|
that.formdetail.id = result.id
|
|
|
|
|
that.formdetail.end_type = result.end_type
|
|
|
|
|
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
@ -863,14 +900,14 @@
|
|
|
|
|
|
|
|
|
|
var that = this;
|
|
|
|
|
that.formdetail.status = status
|
|
|
|
|
console.log(that.formdetail);
|
|
|
|
|
|
|
|
|
|
if(that.formdetail.end_type==2&&that.formdetail.status==2){
|
|
|
|
|
storeclue(that.formclue).then(response => {
|
|
|
|
|
this.$Message.success('新增线索处办成功');
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
console.log(that.formdetail);
|
|
|
|
|
|
|
|
|
|
if (that.formdetail.end_type == 2 && that.formdetail.status == 2) {
|
|
|
|
|
storeclue(that.formclue).then(response => {
|
|
|
|
|
this.$Message.success('新增线索处办成功');
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
update(that.formdetail).then(response => {
|
|
|
|
|
this.$Message.success('操作成功');
|
|
|
|
|
@ -878,7 +915,7 @@
|
|
|
|
|
that.dialogFormDetailVisible = false;
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
//reject(error)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
@ -888,11 +925,11 @@
|
|
|
|
|
that.dealFilesList = [];
|
|
|
|
|
that.form = {};
|
|
|
|
|
that.rainMaintainLogs = []
|
|
|
|
|
that.end_types = 0;
|
|
|
|
|
that.formdetail = {
|
|
|
|
|
status: 0,
|
|
|
|
|
end_type: 0,
|
|
|
|
|
content: ""
|
|
|
|
|
that.end_types = 0;
|
|
|
|
|
that.formdetail = {
|
|
|
|
|
status: 0,
|
|
|
|
|
end_type: 0,
|
|
|
|
|
content: ""
|
|
|
|
|
}
|
|
|
|
|
that.dialogFormDetailVisible = false;
|
|
|
|
|
},
|
|
|
|
|
@ -916,17 +953,26 @@
|
|
|
|
|
|
|
|
|
|
.files_check .el-upload.el-upload--picture-card {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vm10{
|
|
|
|
|
margin-right:10px
|
|
|
|
|
margin-right:10px;
|
|
|
|
|
margin-bottom:10px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
vertical-align: bottom;
|
|
|
|
|
}
|
|
|
|
|
.vm10 input{
|
|
|
|
|
height:32px;vertical-align: middle;
|
|
|
|
|
.vm10 input {
|
|
|
|
|
height: 32px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
.vm10 .el-select__caret.el-input__icon.el-icon-arrow-up{
|
|
|
|
|
|
|
|
|
|
.vm10 .el-select__caret.el-input__icon.el-icon-arrow-up {
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
}
|
|
|
|
|
.vm10 .el-input__icon.el-icon-time{
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
}
|
|
|
|
|
.vm10 .el-input__icon.el-range__icon.el-icon-date,.vm10 .el-range-separator{
|
|
|
|
|
line-height: 25px;
|
|
|
|
|
}
|
|
|
|
|
.selerchcontent button{
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|