|
|
|
|
@ -6,14 +6,16 @@
|
|
|
|
|
<div slot="content"></div>
|
|
|
|
|
<slot>
|
|
|
|
|
<div>
|
|
|
|
|
<Input class="vm10" style="width: 200px; margin-right: 10px" v-model="searchFields.keyword" placeholder="关键字搜索" />
|
|
|
|
|
<Input class="vm10" style="width: 200px; margin-right: 10px" v-model="searchFields.keyword"
|
|
|
|
|
placeholder="关键字搜索" />
|
|
|
|
|
<el-select class="vm10" filterable v-model="searchFields.feedback_department_id" placeholder="请选择反馈科室">
|
|
|
|
|
<el-option v-for="item in selects.sdepartments" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-select class="vm10" @change="showSearchAskContentChange" filterable v-model="searchFields.ask_type_id" placeholder="请选择类型">
|
|
|
|
|
<el-select class="vm10" @change="showSearchAskContentChange" filterable v-model="searchFields.ask_type_id"
|
|
|
|
|
placeholder="请选择类型">
|
|
|
|
|
<el-option v-for="item in selects.sask_types" :key="item.id" :label="item.value" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
@ -38,32 +40,32 @@
|
|
|
|
|
<el-table-column type="index" width="50" fixed label="序号" align="center"> </el-table-column>
|
|
|
|
|
<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 ghost size="small" @click="edit(scope.row)" type="primary"
|
|
|
|
|
style="margin-left: 10px;" v-if="scope.row['status']==3">查看</Button>
|
|
|
|
|
|
|
|
|
|
<Button v-if="scope.row['status']==1" ghost size="small" @click="show(scope.row)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">编辑</Button>
|
|
|
|
|
<Button v-if="scope.row['status']==1" ghost size="small" @click="edit(scope.row)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">审核</Button>
|
|
|
|
|
<Button v-if="scope.row['status']==2" ghost size="small" @click="edit(scope.row)" 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=='status'">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==1">已提交</el-tag>
|
|
|
|
|
<el-tag type="success" v-if="scope.row[column.field]==2">已审核</el-tag>
|
|
|
|
|
<el-tag type="warning" v-if="scope.row[column.field]==3">已办结</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='ask_type_id'">
|
|
|
|
|
{{scope.row[column.field]}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='format'">
|
|
|
|
|
{{scope.row[column.field]?scope.row[column.field].name:""}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>{{scope.row[column.field]}}</div>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="column.type=='opt'">
|
|
|
|
|
<Button ghost size="small" @click="edit(scope.row,1)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">查看</Button>
|
|
|
|
|
|
|
|
|
|
<Button v-if="scope.row['status']==1" ghost size="small" @click="show(scope.row)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">编辑</Button>
|
|
|
|
|
<Button v-if="scope.row['status']==1" ghost size="small" @click="edit(scope.row,2)" type="primary"
|
|
|
|
|
style="margin-left: 10px;">审核</Button>
|
|
|
|
|
<Button v-if="scope.row['status']==2" ghost size="small" @click="edit(scope.row,2)" 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=='status'">
|
|
|
|
|
<el-tag v-if="scope.row[column.field]==1">已提交</el-tag>
|
|
|
|
|
<el-tag type="success" v-if="scope.row[column.field]==2">已审核</el-tag>
|
|
|
|
|
<el-tag type="warning" v-if="scope.row[column.field]==3">已办结</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='ask_type_id'">
|
|
|
|
|
{{scope.row[column.field]}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else-if="column.type=='format'">
|
|
|
|
|
{{scope.row[column.field]?scope.row[column.field].name:""}}
|
|
|
|
|
</div>
|
|
|
|
|
<div v-else>{{scope.row[column.field]}}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<div class="pagination">
|
|
|
|
|
@ -88,15 +90,15 @@
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="类型" prop="ask_type_id">
|
|
|
|
|
<el-select @change="showAskContentChange" class="width100" v-model="form.ask_type_id" placeholder="请选择类型">
|
|
|
|
|
<el-option v-for="item in selects.ask_types" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
<el-select @change="showAskContentChange" class="width100" v-model="form.ask_type_id"
|
|
|
|
|
placeholder="请选择类型">
|
|
|
|
|
<el-option v-for="item in selects.ask_types" :key="item.id" :label="item.value" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10" :offset="4">
|
|
|
|
|
<el-form-item label="内容" prop="ask_content_id">
|
|
|
|
|
<el-form-item label="内容" prop="ask_content_id">
|
|
|
|
|
<el-select class="width100" v-model="form.ask_content_id" placeholder="请选择内容">
|
|
|
|
|
<el-option v-for="item in selects.ask_content" :key="item.id" :label="item.value"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
@ -106,18 +108,18 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="地址" prop="address">
|
|
|
|
|
<avue-input-map :params="mapparams" placeholder="请选择地图" v-model="mapform" ></avue-input-map>
|
|
|
|
|
<avue-input-map :params="mapparams" placeholder="请选择地图" v-model="mapform"></avue-input-map>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="经度" prop="longitude">
|
|
|
|
|
<el-input disabled="" v-model="form.longitude" placeholder="经度" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="经度" prop="longitude">
|
|
|
|
|
<el-input disabled="" v-model="form.longitude" placeholder="经度" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="纬度" prop="address">
|
|
|
|
|
<el-input disabled="" v-model="form.latitude" placeholder="纬度" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="纬度" prop="address">
|
|
|
|
|
<el-input disabled="" v-model="form.latitude" placeholder="纬度" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="详情" prop="content">
|
|
|
|
|
@ -126,10 +128,9 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="附件" prop="common_inspection_files">
|
|
|
|
|
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="commonInspectionFiles"
|
|
|
|
|
ref="pictureUploads" :auto-upload="true" :data="uploadOther"
|
|
|
|
|
:on-success="handlesuccess"
|
|
|
|
|
:on-error="handleError">
|
|
|
|
|
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card"
|
|
|
|
|
:file-list="commonInspectionFiles" ref="pictureUploads" :auto-upload="true" :data="uploadOther"
|
|
|
|
|
:on-success="handlesuccess" :on-error="handleError">
|
|
|
|
|
<i slot="default" class="el-icon-plus"></i>
|
|
|
|
|
<div slot="file" slot-scope="{file}">
|
|
|
|
|
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="">
|
|
|
|
|
@ -148,10 +149,9 @@
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="反馈科室" prop="feedback_department_id">
|
|
|
|
|
<el-form-item label="反馈科室" prop="feedback_department_id">
|
|
|
|
|
<el-select filterable class="width100" v-model="form.feedback_department_id" placeholder="请选择反馈科室">
|
|
|
|
|
<el-option v-for="item in selects.departments" :key="item.id" :label="item.name"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
<el-option v-for="item in selects.departments" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
@ -181,11 +181,12 @@
|
|
|
|
|
<el-dialog class="common-dialog" :title="detailtitle" :visible.sync="dialogFormVisible" width="60%">
|
|
|
|
|
<div class="dialogConcent">
|
|
|
|
|
<el-scrollbar style="flex: 1">
|
|
|
|
|
<el-form :model="formdetail" :rules="rules" ref="formdetail" label-position="right" :label-width="formLabelWidth">
|
|
|
|
|
<el-form :model="formdetail" :rules="rules" ref="formdetail" label-position="right"
|
|
|
|
|
:label-width="formLabelWidth">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="所属道路" prop="road_id">
|
|
|
|
|
<el-input disabled v-model="form.road_id" placeholder="所属道路" autocomplete="off"></el-input>
|
|
|
|
|
<el-input disabled v-model="roadName" placeholder="所属道路" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
@ -198,105 +199,95 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10" :offset="4">
|
|
|
|
|
<el-form-item label="内容" prop="ask_content_id">
|
|
|
|
|
<div v-if="form.ask_content_detail">
|
|
|
|
|
{{form.ask_content_detail.value}}
|
|
|
|
|
</div>
|
|
|
|
|
<el-form-item label="内容" prop="ask_content_id">
|
|
|
|
|
<div v-if="form.ask_content_detail">
|
|
|
|
|
{{form.ask_content_detail.value}}
|
|
|
|
|
</div>
|
|
|
|
|
<!-- {{form.ask_content_detail.value?form.ask_content_detail.value:""}} -->
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="地址" prop="address">
|
|
|
|
|
<avue-input-map :disabled="mapdisabled" :params="mapparams" placeholder="请选择地图" v-model="mapform" ></avue-input-map>
|
|
|
|
|
<avue-input-map :disabled="mapdisabled" :params="mapparams" placeholder="请选择地图" v-model="mapform">
|
|
|
|
|
</avue-input-map>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="经度" prop="longitude">
|
|
|
|
|
<el-input disabled="" v-model="form.longitude" placeholder="经度" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="经度" prop="longitude">
|
|
|
|
|
<el-input disabled="" v-model="form.longitude" placeholder="经度" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="纬度" prop="latitude">
|
|
|
|
|
<el-input disabled="" v-model="form.latitude" placeholder="纬度" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="纬度" prop="latitude">
|
|
|
|
|
<el-input disabled="" v-model="form.latitude" placeholder="纬度" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="详情" prop="content">
|
|
|
|
|
{{form.content}}
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="附件" class="common_inspection_files_check" prop="common_inspection_files_check">
|
|
|
|
|
<!-- <img v-if="commonInspectionFilesCheck.length>0" v-for="item in commonInspectionFilesCheck" :src="item.files.url" alt=""> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card" :file-list="commonInspectionFilesCheck"
|
|
|
|
|
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">
|
|
|
|
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
|
|
|
|
<i class="el-icon-zoom-in"></i>
|
|
|
|
|
<el-upload multiple action="/api/admin/upload-file" list-type="picture-card"
|
|
|
|
|
:file-list="commonInspectionFilesCheck" 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">
|
|
|
|
|
<span class="el-upload-list__item-preview" @click="handlePictureCardPreview(file)">
|
|
|
|
|
<i class="el-icon-zoom-in"></i>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</div>
|
|
|
|
|
</el-upload>
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="form.status!=3">
|
|
|
|
|
<el-form-item label="备注" prop="type_id">
|
|
|
|
|
<el-input type="textarea" v-model="formdetail.content" placeholder="请填写备注" autocomplete="off"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="form.status==1">
|
|
|
|
|
<el-form-item label="反馈科室" prop="feedback_department_id">
|
|
|
|
|
<el-select filterable class="width100" v-model="formdetail.feedback_department_id" placeholder="请选择反馈科室">
|
|
|
|
|
<el-option v-for="item in selects.departments" :key="item.id" :label="item.name"
|
|
|
|
|
:value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="form.status==2">
|
|
|
|
|
<el-form-item label="附件" prop="files_list">
|
|
|
|
|
<el-upload multiple class="upload-demo" :on-success="handlefilesuccess" :data="uploadOther"
|
|
|
|
|
action="/api/admin/upload-file" :on-remove="handlefileRemove" :before-remove="beforefileRemove"
|
|
|
|
|
:on-exceed="handlefileExceed" :file-list="filesList">
|
|
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="form.status==3">
|
|
|
|
|
<el-form-item label="处理日志" prop="">
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-table
|
|
|
|
|
:data="form.common_inspection_logs"
|
|
|
|
|
style="width: 90%;margin: 0 auto;">
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="created_at"
|
|
|
|
|
label="日期"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="content"
|
|
|
|
|
label="内容"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="admin_id"
|
|
|
|
|
label="操作人"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-col :span="24" v-if="form.status!=3">
|
|
|
|
|
<el-form-item label="备注" prop="type_id">
|
|
|
|
|
<el-input type="textarea" v-model="formdetail.content" placeholder="请填写备注" autocomplete="off">
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24" v-if="form.status==1">
|
|
|
|
|
<el-form-item label="反馈科室" prop="feedback_department_id">
|
|
|
|
|
<el-select filterable class="width100" v-model="formdetail.feedback_department_id"
|
|
|
|
|
placeholder="请选择反馈科室">
|
|
|
|
|
<el-option v-for="item in selects.departments" :key="item.id" :label="item.name" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="form.status==2">
|
|
|
|
|
<el-form-item label="附件" prop="files_list">
|
|
|
|
|
<el-upload multiple class="upload-demo" :on-success="handlefilesuccess" :data="uploadOther"
|
|
|
|
|
action="/api/admin/upload-file" :on-remove="handlefileRemove" :before-remove="beforefileRemove"
|
|
|
|
|
:on-exceed="handlefileExceed" :file-list="filesList">
|
|
|
|
|
<el-button size="small" type="primary">点击上传</el-button>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="24" v-if="showType==1">
|
|
|
|
|
<el-form-item label="处理日志" prop="" >
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-table :data="form.common_inspection_logs" style="width: 90%;margin: 0 auto;">
|
|
|
|
|
<el-table-column prop="created_at" label="日期" width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="content" label="内容">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="admin_id" label="操作人" width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -306,10 +297,12 @@
|
|
|
|
|
</el-scrollbar>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div slot="footer" class="dialog-footer" v-if="form.status!=3">
|
|
|
|
|
<div slot="footer" class="dialog-footer" v-if="form.status!=3&&showType!=1">
|
|
|
|
|
<el-button @click="resetForm('formdetail')">取 消</el-button>
|
|
|
|
|
<el-button v-if="form.status==1" type="primary" v-preventReClick @click="submitForm('formdetail','2')">审核</el-button>
|
|
|
|
|
<el-button v-if="form.status==2" type="primary" v-preventReClick @click="submitForm('formdetail','3')">办结</el-button>
|
|
|
|
|
<el-button v-if="form.status==1" type="primary" v-preventReClick @click="submitForm('formdetail','2')">审核
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button v-if="form.status==2" type="primary" v-preventReClick @click="submitForm('formdetail','3')">办结
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
@ -332,7 +325,9 @@
|
|
|
|
|
getparameteritem,
|
|
|
|
|
getparameter
|
|
|
|
|
} from "../../api/system/dictionary.js"
|
|
|
|
|
import {listCommondepartment} from "../../api/common.js"
|
|
|
|
|
import {
|
|
|
|
|
listCommondepartment
|
|
|
|
|
} from "../../api/common.js"
|
|
|
|
|
import LxHeader from "@/components/LxHeader/index.vue";
|
|
|
|
|
import AvueMap from 'avue-plugin-map'
|
|
|
|
|
|
|
|
|
|
@ -343,97 +338,97 @@
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
|
|
showType: 2, //1:查看 2:其他
|
|
|
|
|
tableHeight: 0,
|
|
|
|
|
dialogFormVisible: false,
|
|
|
|
|
showdialogFormVisible:false,
|
|
|
|
|
showdialogFormVisible: false,
|
|
|
|
|
formLabelWidth: "120px",
|
|
|
|
|
clientHeight: 0,
|
|
|
|
|
tableData: [],
|
|
|
|
|
tableHeight: 900,
|
|
|
|
|
searchFields: {
|
|
|
|
|
is_export:0,
|
|
|
|
|
ask_content_id:""
|
|
|
|
|
is_export: 0,
|
|
|
|
|
ask_content_id: ""
|
|
|
|
|
},
|
|
|
|
|
paginations: {
|
|
|
|
|
page: 1,
|
|
|
|
|
page_size: 15,
|
|
|
|
|
total: 0
|
|
|
|
|
},
|
|
|
|
|
selects:{
|
|
|
|
|
ask_types:[],
|
|
|
|
|
ask_content:[],
|
|
|
|
|
departments:[],
|
|
|
|
|
sask_types:[{
|
|
|
|
|
id:"",
|
|
|
|
|
value:"所有"
|
|
|
|
|
selects: {
|
|
|
|
|
ask_types: [],
|
|
|
|
|
ask_content: [],
|
|
|
|
|
departments: [],
|
|
|
|
|
sask_types: [{
|
|
|
|
|
id: "",
|
|
|
|
|
value: "所有"
|
|
|
|
|
}],
|
|
|
|
|
sask_content:[{
|
|
|
|
|
id:"",
|
|
|
|
|
value:"所有"
|
|
|
|
|
sask_content: [{
|
|
|
|
|
id: "",
|
|
|
|
|
value: "所有"
|
|
|
|
|
}],
|
|
|
|
|
sdepartments:[{
|
|
|
|
|
id:"",
|
|
|
|
|
name:"所有"
|
|
|
|
|
sdepartments: [{
|
|
|
|
|
id: "",
|
|
|
|
|
name: "所有"
|
|
|
|
|
}],
|
|
|
|
|
statusList:[{
|
|
|
|
|
id:"",
|
|
|
|
|
value:"所有"
|
|
|
|
|
},{
|
|
|
|
|
id:1,
|
|
|
|
|
value:"已提交"
|
|
|
|
|
},{
|
|
|
|
|
id:2,
|
|
|
|
|
value:"已审核"
|
|
|
|
|
},{
|
|
|
|
|
id:3,
|
|
|
|
|
value:"已办结"
|
|
|
|
|
statusList: [{
|
|
|
|
|
id: "",
|
|
|
|
|
value: "所有"
|
|
|
|
|
}, {
|
|
|
|
|
id: 1,
|
|
|
|
|
value: "已提交"
|
|
|
|
|
}, {
|
|
|
|
|
id: 2,
|
|
|
|
|
value: "已审核"
|
|
|
|
|
}, {
|
|
|
|
|
id: 3,
|
|
|
|
|
value: "已办结"
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
mapparams:{
|
|
|
|
|
zoom: 11
|
|
|
|
|
mapparams: {
|
|
|
|
|
zoom: 11
|
|
|
|
|
},
|
|
|
|
|
mapform:[] ,
|
|
|
|
|
mapdisabled:false,
|
|
|
|
|
commonInspectionFiles:[],
|
|
|
|
|
commonInspectionFilesCheck:[],
|
|
|
|
|
dialogImageUrl:"",
|
|
|
|
|
mapform: [],
|
|
|
|
|
mapdisabled: false,
|
|
|
|
|
commonInspectionFiles: [],
|
|
|
|
|
commonInspectionFilesCheck: [],
|
|
|
|
|
dialogImageUrl: "",
|
|
|
|
|
dialogVisible: false,
|
|
|
|
|
disabled: false,
|
|
|
|
|
filesList:[],
|
|
|
|
|
detailtitle:"通用巡查",
|
|
|
|
|
formdetail:{
|
|
|
|
|
feedback_department_id:"",
|
|
|
|
|
content:"",
|
|
|
|
|
files_list:[],
|
|
|
|
|
type:"",
|
|
|
|
|
filesList: [],
|
|
|
|
|
detailtitle: "通用巡查",
|
|
|
|
|
formdetail: {
|
|
|
|
|
feedback_department_id: "",
|
|
|
|
|
content: "",
|
|
|
|
|
files_list: [],
|
|
|
|
|
type: "",
|
|
|
|
|
},
|
|
|
|
|
roadName:"",
|
|
|
|
|
roadName: "",
|
|
|
|
|
form: {
|
|
|
|
|
feedback_department_id:"",
|
|
|
|
|
ask_type_id:"",
|
|
|
|
|
ask_content_id:"",
|
|
|
|
|
content:"",
|
|
|
|
|
longitude:"",
|
|
|
|
|
latitude:"",
|
|
|
|
|
address:"",
|
|
|
|
|
status:"",
|
|
|
|
|
files_list:[]
|
|
|
|
|
feedback_department_id: "",
|
|
|
|
|
ask_type_id: "",
|
|
|
|
|
ask_content_id: "",
|
|
|
|
|
content: "",
|
|
|
|
|
longitude: "",
|
|
|
|
|
latitude: "",
|
|
|
|
|
address: "",
|
|
|
|
|
status: "",
|
|
|
|
|
files_list: []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
rules: {
|
|
|
|
|
ask_type_id: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择类型',
|
|
|
|
|
// 可以单个或者同时写两个触发验证方式
|
|
|
|
|
trigger: ['change', 'blur'],
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择类型',
|
|
|
|
|
// 可以单个或者同时写两个触发验证方式
|
|
|
|
|
trigger: ['change', 'blur'],
|
|
|
|
|
}],
|
|
|
|
|
ask_content_id: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择内容',
|
|
|
|
|
// 可以单个或者同时写两个触发验证方式
|
|
|
|
|
trigger: ['change', 'blur'],
|
|
|
|
|
required: true,
|
|
|
|
|
message: '请选择内容',
|
|
|
|
|
// 可以单个或者同时写两个触发验证方式
|
|
|
|
|
trigger: ['change', 'blur'],
|
|
|
|
|
}]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
@ -441,28 +436,28 @@
|
|
|
|
|
field: "feedback_department",
|
|
|
|
|
title: "反馈科室",
|
|
|
|
|
type: "format",
|
|
|
|
|
width:180
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "ask_type_name",
|
|
|
|
|
title: "类型",
|
|
|
|
|
type: "ask_type_id",
|
|
|
|
|
align: "center",
|
|
|
|
|
width:180
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "ask_content_name",
|
|
|
|
|
title: "内容",
|
|
|
|
|
type: "string",
|
|
|
|
|
align: "center",
|
|
|
|
|
width:180
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "address",
|
|
|
|
|
title: "地址",
|
|
|
|
|
type: "string",
|
|
|
|
|
align: "lefft",
|
|
|
|
|
width:360
|
|
|
|
|
width: 360
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
@ -470,14 +465,14 @@
|
|
|
|
|
title: "状态",
|
|
|
|
|
type: "status",
|
|
|
|
|
align: "center",
|
|
|
|
|
width:120
|
|
|
|
|
width: 120
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "user",
|
|
|
|
|
title: "提交人",
|
|
|
|
|
type: "format",
|
|
|
|
|
align: "center",
|
|
|
|
|
width:180
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// field: "department",
|
|
|
|
|
@ -491,17 +486,17 @@
|
|
|
|
|
title: "提交日期",
|
|
|
|
|
type: "string",
|
|
|
|
|
align: "center",
|
|
|
|
|
width:180
|
|
|
|
|
width: 180
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "操作",
|
|
|
|
|
title: "操作",
|
|
|
|
|
width: 220,
|
|
|
|
|
type: "opt",
|
|
|
|
|
fixed:"right"
|
|
|
|
|
fixed: "right"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
baseurl:"",
|
|
|
|
|
baseurl: "",
|
|
|
|
|
uploadOther: {
|
|
|
|
|
token: ""
|
|
|
|
|
},
|
|
|
|
|
@ -526,8 +521,8 @@
|
|
|
|
|
this.load();
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
watch:{
|
|
|
|
|
'mapform':function(val){
|
|
|
|
|
watch: {
|
|
|
|
|
'mapform': function(val) {
|
|
|
|
|
this.form.longitude = val[0];
|
|
|
|
|
this.form.latitude = val[1];
|
|
|
|
|
this.form.address = val[2];
|
|
|
|
|
@ -547,7 +542,7 @@
|
|
|
|
|
|
|
|
|
|
getparameteritem("general_type").then(res => {
|
|
|
|
|
this.selects.ask_types = res.detail
|
|
|
|
|
for(var m of res.detail){
|
|
|
|
|
for (var m of res.detail) {
|
|
|
|
|
this.selects.sask_types.push(m)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
@ -557,7 +552,7 @@
|
|
|
|
|
page_size: 999,
|
|
|
|
|
}).then(response => {
|
|
|
|
|
this.selects.departments = response.data
|
|
|
|
|
for(var m of response.data){
|
|
|
|
|
for (var m of response.data) {
|
|
|
|
|
this.selects.sdepartments.push(m)
|
|
|
|
|
}
|
|
|
|
|
}).catch(error => {
|
|
|
|
|
@ -572,7 +567,7 @@
|
|
|
|
|
this.paginations.page = page;
|
|
|
|
|
this.load();
|
|
|
|
|
},
|
|
|
|
|
exportExcel(){
|
|
|
|
|
exportExcel() {
|
|
|
|
|
var that = this
|
|
|
|
|
that.searchFields.is_export = 1
|
|
|
|
|
that.load(true)
|
|
|
|
|
@ -595,10 +590,10 @@
|
|
|
|
|
this.searchFields.is_export = 0
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
for(var m of response.data){
|
|
|
|
|
// m.username = m.user?m.user.name:""
|
|
|
|
|
m.ask_type_name = m.ask_type_detail?m.ask_type_detail.value:""
|
|
|
|
|
m.ask_content_name = m.ask_content_detail?m.ask_content_detail.value:""
|
|
|
|
|
for (var m of response.data) {
|
|
|
|
|
// m.username = m.user?m.user.name:""
|
|
|
|
|
m.ask_type_name = m.ask_type_detail ? m.ask_type_detail.value : ""
|
|
|
|
|
m.ask_content_name = m.ask_content_detail ? m.ask_content_detail.value : ""
|
|
|
|
|
}
|
|
|
|
|
this.tableData = response.data;
|
|
|
|
|
this.paginations.total = response.total;
|
|
|
|
|
@ -622,16 +617,18 @@
|
|
|
|
|
let result = Object.assign(that.form, res);
|
|
|
|
|
// this.$set(that.form,res);
|
|
|
|
|
that.showAskContent(result.ask_type_id);
|
|
|
|
|
if(result.status==2){
|
|
|
|
|
this.detailtitle = '通用巡查办结'
|
|
|
|
|
if (result.status == 2) {
|
|
|
|
|
that.detailtitle = '通用巡查办结'
|
|
|
|
|
}
|
|
|
|
|
if(result.status==1){
|
|
|
|
|
this.detailtitle = '通用巡查审核'
|
|
|
|
|
if (result.status == 1) {
|
|
|
|
|
that.detailtitle = '通用巡查审核'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
that.detailtitle = that.isview == 1 ? "通用巡查查看" : that.detailtitle
|
|
|
|
|
// that.form = result;
|
|
|
|
|
|
|
|
|
|
that.mapform = [result.longitude,result.latitude,result.address]
|
|
|
|
|
that.roadName = result.road?result.road.name:""
|
|
|
|
|
that.mapform = [result.longitude, result.latitude, result.address]
|
|
|
|
|
that.roadName = result.road ? result.road.name : ""
|
|
|
|
|
let _files = [];
|
|
|
|
|
for (var mod of result.common_inspection_files) {
|
|
|
|
|
let m = Object.assign({}, mod);
|
|
|
|
|
@ -655,13 +652,14 @@
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
edit(obj, isnew) {
|
|
|
|
|
edit(obj, isview) {
|
|
|
|
|
this.form = this.$options.data().form;
|
|
|
|
|
this.clientHeight = document.documentElement.clientHeight - 84 - 110;
|
|
|
|
|
this.dialogFormVisible = true;
|
|
|
|
|
this.showdialogFormVisible = false;
|
|
|
|
|
this.mapdisabled = true;
|
|
|
|
|
if(obj){
|
|
|
|
|
this.showType = isview;
|
|
|
|
|
if (obj) {
|
|
|
|
|
this.info(obj);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -708,14 +706,14 @@
|
|
|
|
|
} else {
|
|
|
|
|
that.formdetail.type = status;
|
|
|
|
|
var _files = [];
|
|
|
|
|
for(var m of this.filesList){
|
|
|
|
|
if(m.response){
|
|
|
|
|
for (var m of this.filesList) {
|
|
|
|
|
if (m.response) {
|
|
|
|
|
this.formdetail.files_list.push({
|
|
|
|
|
upload_id:m.response.id
|
|
|
|
|
upload_id: m.response.id
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.formdetail.files_list.push({
|
|
|
|
|
upload_id:m.upload_id
|
|
|
|
|
upload_id: m.upload_id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -734,24 +732,24 @@
|
|
|
|
|
var that = this;
|
|
|
|
|
// that.fileList = [];
|
|
|
|
|
this.$refs[formName].resetFields();
|
|
|
|
|
this.filesList=[];
|
|
|
|
|
this.filesList = [];
|
|
|
|
|
this.commonInspectionFilesCheck = [];
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
that.dialogShowViewVisible = false;
|
|
|
|
|
},
|
|
|
|
|
submitEditForm(formName){
|
|
|
|
|
submitEditForm(formName) {
|
|
|
|
|
var that = this;
|
|
|
|
|
// files_list
|
|
|
|
|
var _files = [];
|
|
|
|
|
console.log(this.commonInspectionFiles);
|
|
|
|
|
for(var m of this.commonInspectionFiles){
|
|
|
|
|
if(m.response){
|
|
|
|
|
for (var m of this.commonInspectionFiles) {
|
|
|
|
|
if (m.response) {
|
|
|
|
|
this.form.files_list.push({
|
|
|
|
|
upload_id:m.response.id
|
|
|
|
|
upload_id: m.response.id
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
this.form.files_list.push({
|
|
|
|
|
upload_id:m.files.id
|
|
|
|
|
upload_id: m.files.id
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -778,38 +776,38 @@
|
|
|
|
|
// that.fileList = [];
|
|
|
|
|
this.$refs[formName].resetFields();
|
|
|
|
|
that.mapform = [];
|
|
|
|
|
this.commonInspectionFiles=[];
|
|
|
|
|
this.commonInspectionFiles = [];
|
|
|
|
|
that.dialogFormVisible = false;
|
|
|
|
|
that.showdialogFormVisible = false;
|
|
|
|
|
},
|
|
|
|
|
showAskContent(val){
|
|
|
|
|
showAskContent(val) {
|
|
|
|
|
getparameter({
|
|
|
|
|
pid:val
|
|
|
|
|
}).then(res =>{
|
|
|
|
|
pid: val
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.selects.ask_content = res.detail
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
showSearchAskContentChange(val){
|
|
|
|
|
if(!val){
|
|
|
|
|
showSearchAskContentChange(val) {
|
|
|
|
|
if (!val) {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.selects.sask_content = [{
|
|
|
|
|
id:"",
|
|
|
|
|
value:"所有"
|
|
|
|
|
id: "",
|
|
|
|
|
value: "所有"
|
|
|
|
|
}]
|
|
|
|
|
getparameter({
|
|
|
|
|
pid:val
|
|
|
|
|
}).then(res =>{
|
|
|
|
|
for(var m of res.detail){
|
|
|
|
|
pid: val
|
|
|
|
|
}).then(res => {
|
|
|
|
|
for (var m of res.detail) {
|
|
|
|
|
this.selects.sask_content.push(m)
|
|
|
|
|
}
|
|
|
|
|
this.searchFields.ask_content_id = ""
|
|
|
|
|
this.searchFields.ask_content_id = ""
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
showAskContentChange(val){
|
|
|
|
|
showAskContentChange(val) {
|
|
|
|
|
getparameter({
|
|
|
|
|
pid:val
|
|
|
|
|
}).then(res =>{
|
|
|
|
|
pid: val
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.selects.ask_content = res.detail
|
|
|
|
|
this.form.ask_content_id = ""
|
|
|
|
|
})
|
|
|
|
|
@ -837,23 +835,23 @@
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleError(err,file,fileList){
|
|
|
|
|
handleError(err, file, fileList) {
|
|
|
|
|
this.$message.error('上传失败,重新上传');
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handlefileRemove(file, fileList) {
|
|
|
|
|
let listUrl = [];
|
|
|
|
|
console.log(fileList)
|
|
|
|
|
console.log(fileList)
|
|
|
|
|
for (var m of fileList) {
|
|
|
|
|
if (m.response)
|
|
|
|
|
listUrl.push({
|
|
|
|
|
"upload_id":m.response.id,
|
|
|
|
|
'name':m.name
|
|
|
|
|
"upload_id": m.response.id,
|
|
|
|
|
'name': m.name
|
|
|
|
|
});
|
|
|
|
|
else
|
|
|
|
|
listUrl.push({
|
|
|
|
|
"upload_id":m.response.id,
|
|
|
|
|
'name':m.name
|
|
|
|
|
"upload_id": m.response.id,
|
|
|
|
|
'name': m.name
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.filesList = listUrl;
|
|
|
|
|
@ -868,13 +866,13 @@
|
|
|
|
|
for (var m of fileList) {
|
|
|
|
|
if (m.response)
|
|
|
|
|
listUrl.push({
|
|
|
|
|
"upload_id":m.response.id,
|
|
|
|
|
'name':m.name
|
|
|
|
|
"upload_id": m.response.id,
|
|
|
|
|
'name': m.name
|
|
|
|
|
});
|
|
|
|
|
else
|
|
|
|
|
listUrl.push({
|
|
|
|
|
"upload_id":m.response.id,
|
|
|
|
|
'name':m.name
|
|
|
|
|
"upload_id": m.response.id,
|
|
|
|
|
'name': m.name
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
@ -892,18 +890,22 @@
|
|
|
|
|
.dialogConcent {
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
.width100{
|
|
|
|
|
width:100%;
|
|
|
|
|
|
|
|
|
|
.width100 {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
.common_inspection_files_check .el-upload.el-upload--picture-card{
|
|
|
|
|
|
|
|
|
|
.common_inspection_files_check .el-upload.el-upload--picture-card {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.vm10{
|
|
|
|
|
margin-right:10px;
|
|
|
|
|
margin-bottom:10px;
|
|
|
|
|
|
|
|
|
|
.vm10 {
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
height: 32px;
|
|
|
|
|
vertical-align: bottom;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.vm10 input {
|
|
|
|
|
height: 32px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
@ -912,10 +914,13 @@
|
|
|
|
|
.vm10 .el-select__caret.el-input__icon.el-icon-arrow-up {
|
|
|
|
|
line-height: 30px;
|
|
|
|
|
}
|
|
|
|
|
.vm10 .el-input__icon.el-range__icon.el-icon-date,.vm10 .el-range-separator{
|
|
|
|
|
|
|
|
|
|
.vm10 .el-input__icon.el-range__icon.el-icon-date,
|
|
|
|
|
.vm10 .el-range-separator {
|
|
|
|
|
line-height: 25px;
|
|
|
|
|
}
|
|
|
|
|
.selerchcontent button{
|
|
|
|
|
|
|
|
|
|
.selerchcontent button {
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|