From e7a3d2ffddb66de7e0516547d94505080ec05da0 Mon Sep 17 00:00:00 2001
From: xyq <392009588@qq.com>
Date: Thu, 15 Jun 2023 15:24:37 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=85=E5=9F=BA=E5=9C=B0=E8=B0=83=E6=9F=A5?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/house/CommonMap.vue | 63 ++++++++++++++++++++
src/views/homesteadSurvey/add.vue | 2 +-
src/views/homesteadSurvey/fsssAdd.vue | 8 ++-
src/views/homesteadSurvey/index.vue | 8 ++-
src/views/homesteadSurvey/list.vue | 13 +++--
src/views/homesteadSurvey/list2.vue | 11 ++--
src/views/homesteadSurvey/list4.vue | 82 ++++++++++++---------------
src/views/homesteadSurvey/nmfwAdd.vue | 11 ++++
src/views/homesteadSurvey/settle.vue | 24 +++++++-
src/views/homesteadSurvey/zrzAdd.vue | 12 ++--
10 files changed, 165 insertions(+), 69 deletions(-)
diff --git a/src/components/house/CommonMap.vue b/src/components/house/CommonMap.vue
index 10dcabfc..5209e3d0 100644
--- a/src/components/house/CommonMap.vue
+++ b/src/components/house/CommonMap.vue
@@ -314,6 +314,69 @@ export default {
});
return true;
},
+
+ addLayerNew(name, theGeom,tcmc,status) {
+ if(!this.mapObject)
+ return false;
+ let css = null;
+ if(tcmc === "zjdzdxx"){
+ if(status === "1"){
+ css = "#F9F900";
+ }else if(status === "2"){
+ css = "#FF8000";
+ }else if(status === "3"){
+ css = "#82D900";
+ }else if(status === "4"){
+ css = "#F75000";
+ }else{
+ css = "#9F4D95";
+ }
+ }else if(tcmc === "fsss"){
+ css = "#FF8C00";
+ }else{
+ css = "#47c68f";
+ }
+ //地图只加载一次
+ //加载地图编辑
+ //图层查询定位开始 ---------start
+ console.info(css);
+ let hc_land = new ol.layer.Vector({
+ title: name,
+ source: new ol.source.Vector({
+ projection: this.getProjection(),
+ features: new ol.format.GeoJSON().readFeatures("{\n" +
+ " \"type\": \"Feature\",\n" +
+ " \"geometry\":" + theGeom + "}"),
+ }),
+ style: new ol.style.Style({
+ fill: new ol.style.Fill({
+ //矢量图层填充颜色,以及透明度
+ color: "rgba(204, 255, 204,0.3)",
+ }),
+ stroke: new ol.style.Stroke({
+ //边界样式
+ color: css,
+ width: 3,
+ }),
+ }),
+ });
+ if(!this.pushLayer(name, hc_land))
+ return false;
+ var maxXMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxX;
+ var maxYMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxY;
+ var minXMap = hc_land.values_.source.featuresRtree_.rbush_.data.minX;
+ var minYMap = hc_land.values_.source.featuresRtree_.rbush_.data.minY;
+ //定位查询位置
+ var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置
+ this.mapObject.getView().animate({
+ // 只设置需要的属性即可
+ center: center, // 中心点
+ zoom: 17.9, // 缩放级别
+ rotation: undefined, // 缩放完成view视图旋转弧度
+ duration: 1000, // 缩放持续时间,默认不需要设置
+ });
+ return true;
+ },
update() {
if(!this.mapObject)
return;
diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue
index 5c6f7dc3..931579a2 100644
--- a/src/views/homesteadSurvey/add.vue
+++ b/src/views/homesteadSurvey/add.vue
@@ -977,7 +977,7 @@ export default {
if(!map) return;
if(data)
{
- map.setLayer('pointDarwLayer', data);
+ map.addLayerNew('pointDarwLayer',data,"zjdzdxx",this.form.surveyStatus);
}
else {
this.getLandCoord((lng, lat) => {
diff --git a/src/views/homesteadSurvey/fsssAdd.vue b/src/views/homesteadSurvey/fsssAdd.vue
index ed8140e3..f970787d 100644
--- a/src/views/homesteadSurvey/fsssAdd.vue
+++ b/src/views/homesteadSurvey/fsssAdd.vue
@@ -115,6 +115,7 @@
v-model="form.remark"
name="备注"
label="备注"
+ placeholder="备注"
maxlength="50"
autocomplete="off"
/>
@@ -183,6 +184,7 @@ export default {
let data = this.$route.query;
this.form = data;
this.permission = localStorage.getItem("executePermission");
+ this.zjdzdxx = JSON.parse(localStorage.getItem("zjdzdxxItem"));
if(this.form.id == null){
this.$set(this.form, 'fssslx', "11");
this.$set(this.form, 'sfzsy', "1");
@@ -253,11 +255,11 @@ export default {
if(data)
{
map.setLayer('pointDarwLayer', data);
+ console.info(this.zjdzdxx.surveyStatus);
+ map.addLayerNew('pointDarwLayer3', this.zjdzdxx.theGeomJson,"zjdzdxx",this.zjdzdxx.surveyStatus);
}
else {
- this.getLandCoord((lng, lat) => {
- map.setCoord(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
- });
+ map.addLayerNew('pointDarwLayer3', this.zjdzdxx.theGeomJson,"zjdzdxx",this.zjdzdxx.surveyStatus);
}
},
// 当地图绘制完成时
diff --git a/src/views/homesteadSurvey/index.vue b/src/views/homesteadSurvey/index.vue
index ce74556c..adbc8535 100644
--- a/src/views/homesteadSurvey/index.vue
+++ b/src/views/homesteadSurvey/index.vue
@@ -9,9 +9,10 @@
src="https://img.yzcdn.cn/vant/leaf.jpg"
/>
-
调查员·采集员
-
审核员
-
{{nickName}}
+
{{nickName}}
+ ·调查员
+ ·审核员
+
@@ -224,6 +225,7 @@
})
if(this.checked){
let userId = this.$store.getters.userId;
+ this.nickName = this.$store.getters.nickName;
this.$set(this.queryParams, "rwzxr", userId);
this.getList();
}else{
diff --git a/src/views/homesteadSurvey/list.vue b/src/views/homesteadSurvey/list.vue
index 3e454dbc..7d2379b7 100644
--- a/src/views/homesteadSurvey/list.vue
+++ b/src/views/homesteadSurvey/list.vue
@@ -52,13 +52,14 @@
+
+
+
+
+
-
-
-
-
-
-
+
+
diff --git a/src/views/homesteadSurvey/list2.vue b/src/views/homesteadSurvey/list2.vue
index 5f2c8b20..723272aa 100644
--- a/src/views/homesteadSurvey/list2.vue
+++ b/src/views/homesteadSurvey/list2.vue
@@ -50,12 +50,13 @@
+
+
+
+
+
-
-
-
-
-
+
上传
-
-
-
- 入户核查
-
-
-
- 农户信息
-
-
-
- 所有权人
-
-
-
- 切换地图
-
-
+
+
入户核查
+
农户信息
+
所有权人
+
切换地图
-
-
-
- 宅基地数:
- {{qbNums}} 宗
-
-
- 使用权人数:
- {{totalR}} 人
-
+
+
+

+
+ 宅基地数:
+ {{qbNums}} 宗
+
+
+
+

+
+ 使用权人数:
+ {{totalR}} 人
+
@@ -570,38 +560,38 @@
- 待调查
+ 待调查
- 调查异常
+ 调查异常
- 调查完成
+ 调查完成
- 调查驳回
+ 调查驳回
- 审批通过
+ 审批通过
- 附属设施
+ 附属设施
- 自然幢
+ 自然幢
@@ -5837,6 +5827,7 @@
//this.$cookies.set("search",this.mapZjdTeAll);
this.$cookies.set("search","")
console.info(this.mapZjdTeAll);
+ localStorage.setItem("zjdzdxxItem",JSON.stringify(this.mapZjdTeAll.mapZjdAData));
this.$router.push({path:'/homesteadSurvey/zrzAdd',query: this.mapZjdTeAll.mapZrzAData});
} else {
this.$toast("必须有宅基地数据才能进入自然幢核查");
@@ -5846,6 +5837,7 @@
this.mapZjdTeAll.active = 4;
//this.$cookies.set("search", this.mapZjdTeAll);
this.$cookies.set("search","")
+ localStorage.setItem("zjdzdxxItem",JSON.stringify(this.mapZjdTeAll.mapZjdAData));
this.$router.push({path: '/homesteadSurvey/fsssAdd',query: this.mapZjdTeAll.mapFsssAData});
} else {
this.$toast("必须有宅基地数据才能进入附属设施核查");
@@ -6070,25 +6062,23 @@
}
.activeBtn{
background:#fff;
- height:50px;
- border-radius:25px;
+ border-radius:25PX;
color:#7AC943;
- line-height:50px;
+ line-height:30PX;
text-align:center;
- font-size:20px;
- width: 26%;
+ font-size:14PX;
+ width: 25%;
margin:0 10px;
box-shadow: 0px 5px 6px 0px rgba(0,0,0,0.16);
}
.disactiveBtn{
background:rgba(255,255,255,.4);
- height:50px;
- border-radius:25px;
+ border-radius:25PX;
color:#fff;
- line-height:50px;
+ line-height:30PX;
text-align:center;
- font-size:20px;
- width: 26%;
+ font-size:14PX;
+ width: 25%;
margin:0 10px;
box-shadow: 0px 5px 6px 0px rgba(0,0,0,0.16);
}
diff --git a/src/views/homesteadSurvey/nmfwAdd.vue b/src/views/homesteadSurvey/nmfwAdd.vue
index 8f1eb2ef..f61a3946 100644
--- a/src/views/homesteadSurvey/nmfwAdd.vue
+++ b/src/views/homesteadSurvey/nmfwAdd.vue
@@ -60,6 +60,7 @@
v-model="form.nmfwzh"
name="房屋幢号"
label="房屋幢号"
+ placeholder="房屋幢号"
maxlength="50"
autocomplete="off"
:rules="[{ required: true }]"
@@ -92,6 +93,7 @@
v-model="form.sjcs"
name="实际层数"
label="实际层数"
+ placeholder="实际层数"
maxlength="50"
autocomplete="off"
type="number"
@@ -101,6 +103,7 @@
v-model="form.hh"
name="户号"
label="户号"
+ placeholder="户号"
maxlength="50"
autocomplete="off"
/>
@@ -179,6 +182,7 @@
v-model="form.zl"
name="坐落"
label="坐落"
+ placeholder="坐落"
maxlength="50"
autocomplete="off"
:rules="[{ required: true }]"
@@ -198,6 +202,7 @@
v-model="form.bz"
name="备注"
label="备注"
+ placeholder="备注"
maxlength="50"
autocomplete="off"
/>
@@ -207,6 +212,7 @@
v-model="form.bdcdyh"
name="不动产单元号"
label="不动产单元号"
+ placeholder="不动产单元号"
maxlength="50"
autocomplete="off"
/>
@@ -215,6 +221,7 @@
v-model="form.fwbm"
name="房屋编码"
label="房屋编码"
+ placeholder="房屋编码"
maxlength="50"
autocomplete="off"
/>
@@ -223,6 +230,7 @@
v-model="form.zrzh"
name="自然幢号"
label="自然幢号"
+ placeholder="自然幢号"
maxlength="50"
autocomplete="off"
/>
@@ -231,6 +239,7 @@
v-model="form.ch"
name="层号"
label="层号"
+ placeholder="层号"
maxlength="50"
autocomplete="off"
/>
@@ -239,6 +248,7 @@
v-model="form.sjc"
name="实际层"
label="实际层"
+ placeholder="实际层"
maxlength="50"
autocomplete="off"
type="number"
@@ -248,6 +258,7 @@
v-model="form.myc"
name="名义层"
label="名义层"
+ placeholder="名义层"
maxlength="50"
autocomplete="off"
type="number"
diff --git a/src/views/homesteadSurvey/settle.vue b/src/views/homesteadSurvey/settle.vue
index ff055e8b..62e1b80d 100644
--- a/src/views/homesteadSurvey/settle.vue
+++ b/src/views/homesteadSurvey/settle.vue
@@ -19,7 +19,10 @@
-->
-
+
修改密码
@@ -45,6 +48,16 @@
+
+
+
+
+
+
+ 保存
+
+
+
@@ -64,6 +77,10 @@
data(){
return{
showPassword:false,
+ showMessage:false,
+ userName:null,
+ nickName:null,
+ jsName:null,
oldPassword: "",
newPassword: "",
confirmPassword: "",
@@ -83,6 +100,11 @@
this.$cookies.set("upload",0)
}
+ },
+ userMessage(){
+ this.userName = this.$store.getters.name;
+ this.nickName = this.$store.getters.nickName;
+ this.showMessage = true;
},
submit() {
if(this.confirmPassword
diff --git a/src/views/homesteadSurvey/zrzAdd.vue b/src/views/homesteadSurvey/zrzAdd.vue
index 33366247..eaa507a0 100644
--- a/src/views/homesteadSurvey/zrzAdd.vue
+++ b/src/views/homesteadSurvey/zrzAdd.vue
@@ -79,6 +79,7 @@
v-model="form.zrzh"
name="自然幢号"
label="自然幢号"
+ placeholder="自然幢号"
maxlength="50"
autocomplete="off"
/>
@@ -172,6 +173,7 @@
v-model="form.bz"
name="备注"
label="备注"
+ placeholder="备注"
maxlength="50"
autocomplete="off"
/>
@@ -237,8 +239,8 @@ export default {
},
created(){
let data = this.$route.query;
- console.info(data)
this.form = data;
+ this.zjdzdxx = JSON.parse(localStorage.getItem("zjdzdxxItem"));
this.permission = localStorage.getItem("executePermission");
if(this.form.shyqrdbzjhm != null){
this.getList();
@@ -310,11 +312,13 @@ export default {
if(data)
{
map.setLayer('pointDarwLayer', data);
+ map.addLayerNew('pointDarwLayer2', this.zjdzdxx.theGeomJson,"zjdzdxx",this.zjdzdxx.surveyStatus);
}
else {
- this.getLandCoord((lng, lat) => {
- map.setCoord(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
- });
+ // this.getLandCoord((lng, lat) => {
+ // map.setCoord(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
+ // });
+ map.addLayerNew('pointDarwLayer2', this.zjdzdxx.theGeomJson,"zjdzdxx",this.zjdzdxx.surveyStatus);
}
},
// 当地图绘制完成时