Commit c6ebbd51 authored by 耿迪迪's avatar 耿迪迪

首页及所属区域修改

parent e932e987
...@@ -136,11 +136,12 @@ public class TTaskController extends BaseController ...@@ -136,11 +136,12 @@ public class TTaskController extends BaseController
* @return * @return
*/ */
@GetMapping("/selectCurrentTaskByType") @GetMapping("/selectCurrentTaskByType")
public AjaxResult selectCurrentTaskByType(@RequestParam(value="type") Integer type,@RequestParam(value="checkType",required = false) Integer checkType,@RequestParam(value="taskType",required = false) Integer taskType){ public AjaxResult selectCurrentTaskByType(@RequestParam(value="type") Integer type,@RequestParam(value="checkType",required = false) Integer checkType,@RequestParam(value="taskType",required = false) Integer taskType,@RequestParam(value="userId") Long userId){
Map<String,Object> param = new HashMap<>(); Map<String,Object> param = new HashMap<>();
param.put("type",type); param.put("type",type);
param.put("checkType",checkType); param.put("checkType",checkType);
param.put("taskType",taskType); param.put("taskType",taskType);
param.put("userId",userId);
return AjaxResult.success(tTaskService.selectCurrentTaskByType(param)); return AjaxResult.success(tTaskService.selectCurrentTaskByType(param));
} }
......
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
</el-row> </el-row>
<el-row> <el-row>
<el-form-item label="所属区域" prop="city"> <el-form-item label="所属区域" prop="city">
<el-col :span="5"> <!--<el-col :span="5">
<el-select v-model="form.city" placeholder="所属市" @change="(id) =>getAreaList(id,2)"> <el-select v-model="form.city" placeholder="所属市" @change="(id) =>getAreaList(id,2)">
<el-option <el-option
v-for="dict in oneAreaList" v-for="dict in oneAreaList"
...@@ -300,7 +300,7 @@ ...@@ -300,7 +300,7 @@
:value="dict.id" :value="dict.id"
/> />
</el-select> </el-select>
</el-col> </el-col>-->
<el-col :span="6" style="margin-left: 8px" > <el-col :span="6" style="margin-left: 8px" >
<el-select v-model="form.street" placeholder="所属乡镇" @change="(id) =>getAreaList(id,4)"> <el-select v-model="form.street" placeholder="所属乡镇" @change="(id) =>getAreaList(id,4)">
...@@ -757,7 +757,8 @@ ...@@ -757,7 +757,8 @@
this.form = { this.form = {
id: null, id: null,
usernum: null, usernum: null,
county: null, city: 1,
county: 8,
street: null, street: null,
village: null, village: null,
address: null, address: null,
...@@ -800,6 +801,7 @@ ...@@ -800,6 +801,7 @@
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.getAreaListtwo(this.form.county,3);
this.open = true; this.open = true;
this.title = "添加居民用户"; this.title = "添加居民用户";
}, },
......
...@@ -309,7 +309,7 @@ ...@@ -309,7 +309,7 @@
<el-row> <el-row>
<el-form-item label="所属区域" prop="community"> <el-form-item label="所属区域" prop="community">
<el-col :span="6"> <!-- <el-col :span="6">
<el-select v-model="form.city" placeholder="请选择市" @change="proviceChange"> <el-select v-model="form.city" placeholder="请选择市" @change="proviceChange">
<el-option <el-option
v-for="item in proviceData" v-for="item in proviceData"
...@@ -329,7 +329,7 @@ ...@@ -329,7 +329,7 @@
:value="item.id" :value="item.id"
/> />
</el-select> </el-select>
</el-col> </el-col>-->
<el-col :span="6" style="padding-left: 8px" > <el-col :span="6" style="padding-left: 8px" >
<el-select v-model="form.street" placeholder="所属乡镇" @change="steetChange"> <el-select v-model="form.street" placeholder="所属乡镇" @change="steetChange">
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
</el-col> </el-col>
<el-col :span="6" style="padding-left: 8px"> <el-col :span="6" style="padding-left: 8px">
<el-select v-model="form.community" multiple @change="$forceUpdate()" placeholder="所属小区(村)"> <el-select v-model="form.community" multiple placeholder="所属小区(村)">
<el-option <el-option
v-for="item in communityData" v-for="item in communityData"
:key="item.id" :key="item.id"
...@@ -364,8 +364,8 @@ ...@@ -364,8 +364,8 @@
<!--</el-form-item>--> <!--</el-form-item>-->
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="负责" prop="responsiblePerson"> <el-form-item label="负责" prop="responsiblePerson">
<el-select v-model="form.responsiblePerson" multiple @change="$forceUpdate()" placeholder="请选择负责"> <el-select v-model="form.responsiblePerson" multiple @change="$forceUpdate()" placeholder="请选择负责">
<el-option <el-option
v-for="group in groupList" v-for="group in groupList"
:key="group.groupId" :key="group.groupId"
...@@ -489,7 +489,7 @@ export default { ...@@ -489,7 +489,7 @@ export default {
{ required: true, message: "请选择所属小区(村)", trigger: "blur" }, { required: true, message: "请选择所属小区(村)", trigger: "blur" },
], ],
responsiblePerson: [ responsiblePerson: [
{ required: true, message: "请选择负责", trigger: "blur" }, { required: true, message: "请选择负责", trigger: "blur" },
] ]
}, },
inspectUserTypeOptions: [], inspectUserTypeOptions: [],
...@@ -540,7 +540,11 @@ export default { ...@@ -540,7 +540,11 @@ export default {
remarks: null, remarks: null,
community: [], community: [],
responsiblePerson: [], responsiblePerson: [],
relationInfoList: [] relationInfoList: [],
city: 1,
county: 8,
street:null,
community: []
}; };
this.resetForm("form"); this.resetForm("form");
}, },
...@@ -564,7 +568,8 @@ export default { ...@@ -564,7 +568,8 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.getProvinceInfo(); //this.getProvinceInfo();
this.getStreet();
this.getGroupInfo(); this.getGroupInfo();
this.open = true; this.open = true;
this.title = "添加入户安检任务"; this.title = "添加入户安检任务";
...@@ -575,10 +580,11 @@ export default { ...@@ -575,10 +580,11 @@ export default {
const id = row.id || this.ids; const id = row.id || this.ids;
getTask(id).then((response) => { getTask(id).then((response) => {
this.form = response.data; this.form = response.data;
this.getRelationInfo();
// 获取省市 // 获取省市
this.getProvinceInfo(); //this.getProvinceInfo();
// 获取县区信息 // 获取县区信息
this.getCounty(); //this.getCounty();
// 获取街道信息 // 获取街道信息
this.getStreet(); this.getStreet();
// 获取村镇信息 // 获取村镇信息
...@@ -741,6 +747,7 @@ export default { ...@@ -741,6 +747,7 @@ export default {
//街道镇选择 //街道镇选择
steetChange(){ steetChange(){
this.community = null; this.community = null;
this.form.community = [];
this.communityData = []; this.communityData = [];
this.getCommunityInfo(); this.getCommunityInfo();
}, },
...@@ -773,7 +780,7 @@ export default { ...@@ -773,7 +780,7 @@ export default {
communityList({street: this.form.street}).then(res =>{ communityList({street: this.form.street}).then(res =>{
if(res.code == 200){ if(res.code == 200){
this.communityData = res.data; this.communityData = res.data;
this.getRelationInfo(); if (!this.form.street) this.getRelationInfo();
} }
}) })
}, },
......
...@@ -11,15 +11,15 @@ ...@@ -11,15 +11,15 @@
<div class="top"></div> <div class="top"></div>
<div class="bottom"></div> <div class="bottom"></div>
<Left @clickShow="clickShow"/> <!-- <Left @clickShow="clickShow"/>
<Right :show="show"/> <Right :show="show"/>
<div class="mapChange"> <div class="mapChange">
<div :class="{ active: mapStyle }" @click="mapChange(2)">全景地图</div> <div :class="{ active: mapStyle }" @click="mapChange(2)">全景地图</div>
<div :class="{ active: !mapStyle }" @click="mapChange(1)">三维地图</div> <div :class="{ active: !mapStyle }" @click="mapChange(1)">三维地图</div>
</div> </div>-->
<!-- 3d地图 --> <!-- 3d地图 -->
<Map3d :show="show" v-if="!mapStyle" /> <!--<Map3d :show="show" v-if="!mapStyle" />-->
<!-- 高德地图 --> <!-- 高德地图 -->
<GaodeMap :show="show" v-if="mapStyle" /> <GaodeMap :show="show" v-if="mapStyle" />
<!-- 临检设备 --> <!-- 临检设备 -->
......
<template> <template>
<div class="gaode-wrapper"> <div class="gaode-wrapper">
<div class="typelist-div flex"> <!--<div class="typelist-div flex">
<div class="flex"> <div class="flex">
<div <div
class="list flex bb" class="list flex bb"
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<img :src="item.imgurl" /> <img :src="item.imgurl" />
{{ item.name }} {{ item.name }}
</div> </div>
<!-- 管线 --> &lt;!&ndash; 管线 &ndash;&gt;
<div <div
class="list flex bb" class="list flex bb"
key="line" key="line"
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
管线 管线
</div> </div>
</div> </div>
</div> </div>-->
<div id="gao-map-index" class="gao-map"></div> <div id="gao-map-index" class="gao-map"></div>
<LineTips :show="show" v-show="lineTipsShow"/> <LineTips :show="show" v-show="lineTipsShow"/>
</div> </div>
...@@ -106,7 +106,7 @@ export default { ...@@ -106,7 +106,7 @@ export default {
this.gaoMap = new EditorMap( this.gaoMap = new EditorMap(
"gao-map-index", "gao-map-index",
{ {
center: [118.09,39.48], center: [118.168016,39.831679],
// mapStyle: "amap://styles/806fa63f07c70b043867bd1f9a600981", // mapStyle: "amap://styles/806fa63f07c70b043867bd1f9a600981",
mapStyle: "amap://styles/f71d3a3d73e14f5b2bf5508bf1411758", mapStyle: "amap://styles/f71d3a3d73e14f5b2bf5508bf1411758",
zoom: 10.5, zoom: 10.5,
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
}, },
this this
); );
this.initMapDeviceInfo(); //this.initMapDeviceInfo();
}, },
//设备上图 //设备上图
initMapDeviceInfo() { initMapDeviceInfo() {
......
This diff is collapsed.
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