Преглед на файлове

地图优化

wulanhaote
hbao преди 3 години
родител
ревизия
cee4d773bd
променени са 2 файла, в които са добавени 70 реда и са изтрити 48 реда
  1. +11
    -0
      src/components/Map/MapGisDrawing.vue
  2. +59
    -48
      src/views/homesteadSurvey/add.vue

+ 11
- 0
src/components/Map/MapGisDrawing.vue Целия файл

@@ -132,7 +132,18 @@ export default {
map.removeLayer(zjdTc); map.removeLayer(zjdTc);
map.removeLayer(fsssTc); map.removeLayer(fsssTc);
//宅基地图层查询开始 ------------------start //宅基地图层查询开始 ------------------start
// var zjddmNew;
// if(that.$cookies.get("search").zjddm !=undefined && that.$cookies.get("search").zjddm !=""){
// zjddmNew = that.$cookies.get("search").zjddm;
// }else {
// if(that.$cookies.get("item").zjddm !=undefined && that.$cookies.get("item").zjddm !=""){
// zjddmNew = that.$cookies.get("item").zjddm;
// }
// }
var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + that.$cookies.get("item").zjddm + "'"; var cql_filter_all = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + that.$cookies.get("item").zjddm + "'";
console.log(cql_filter_all);
console.log(that.$cookies.get("item"));
console.log(that.$cookies.get("search"));
zjdTc= new ol.layer.Tile({ zjdTc= new ol.layer.Tile({
source: new ol.source.TileWMS({ source: new ol.source.TileWMS({
url: that.mapGeoServerUrl +"/geoserver/zjd_dc/wms", url: that.mapGeoServerUrl +"/geoserver/zjd_dc/wms",


+ 59
- 48
src/views/homesteadSurvey/add.vue Целия файл

@@ -48,7 +48,7 @@
<van-col span="2"> <van-col span="2">
<div style=" height: 2px; border: 2px dashed #b5b4b4;margin-top: 40px;"></div> <div style=" height: 2px; border: 2px dashed #b5b4b4;margin-top: 40px;"></div>
</van-col> </van-col>
<van-col span="4" style="text-align:center;" @click="active=4,getFsssList(),showPic()">
<van-col span="4" style="text-align:center;" @click="active=4,getFsssList()">
<van-icon :name="require('../../assets/images/housesteadSurvey/fsss'+(active==4?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/> <van-icon :name="require('../../assets/images/housesteadSurvey/fsss'+(active==4?'A':'D')+'.png')" size="1rem" style="margin-top:0px;"/>
<p :style="{color:(active==4?'rgb(34, 183, 242)':'#000')}">附属物</p> <p :style="{color:(active==4?'rgb(34, 183, 242)':'#000')}">附属物</p>
</van-col> </van-col>
@@ -446,9 +446,35 @@
placeholder="备注" placeholder="备注"
maxlength="200" maxlength="200"
/> />
<van-field
autocomplete="off"
input-align="right"
v-model="form.ycms"
name="异常描述"
label="异常描述"
placeholder="异常描述"
maxlength="200"
rows="1"
autosize
type="textarea"
disabled
/>
<van-field
autocomplete="off"
input-align="right"
v-model="form.auditRemark"
name="审核描述"
label="审核描述"
placeholder="审核描述"
maxlength="200"
rows="1"
autosize
type="textarea"
disabled
/>
<MapGisDrawing ref="drewingClickLoading" :message="form.theGeom" v-on:formSubmit="MapTag"></MapGisDrawing> <MapGisDrawing ref="drewingClickLoading" :message="form.theGeom" v-on:formSubmit="MapTag"></MapGisDrawing>
<div style="margin: 16px;"> <div style="margin: 16px;">
<van-button v-if="isFinished" round color="#7AC943" style="width:100%" native-type="submit">保存</van-button>
<van-button v-if="isFinished" round color="#7AC943" style="width:70%;vertical-align:bottom;" native-type="submit">保存</van-button>
</div> </div>
</van-form> </van-form>
</div> </div>
@@ -581,18 +607,10 @@
<p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupfsss('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加附属设施信息</p> <p style="color:#22B7F2;font-size:20px;line-height:30px;" @click="showPopupfsss('')"><van-icon name="plus" color="#22b7f2" size="20" style="margin-right:10px;"/>添加附属设施信息</p>
</div> </div>
</div> </div>
<!--<div v-if="!isFinished&&showsh">
<div style="margin:20px;">
<p class="title" style="position:relative;padding-left:20px;line-height:32px;">电子签名</p>
</div>
<van-row style="margin: 0 5% 5% 5%;border:1px solid #BFBFBF">
<img :src="resultImg" alt="" width="100%" height="100%"/>
</van-row>
</div>-->
<div style="position:fixed;bottom:0;left:5%;width:90%;text-align:center;display:flex;"> <div style="position:fixed;bottom:0;left:5%;width:90%;text-align:center;display:flex;">
<van-button round color="#ee0a24" style="flex:1;" @click="showycbjinfo">异常标记</van-button>
<van-button round color="#7AC943" style="flex:1;" @click="searchCommit">签名确认</van-button>
<van-button round color="#ff976a" v-if="!isFinished&&showsh" style="flex:1;" @click="showdcshinfo">调查审核</van-button>
<van-button round color="#ee0a24" v-if="isFinished" style="width:30%;flex:1;" @click="showycbjinfo">异常标记</van-button>
<van-button round color="#7AC943" v-if="isFinished" style="width:30%;flex:1;" @click="searchCommit">签名确认</van-button>
<van-button round color="#ff976a" v-if="!isFinished" style="width:30%;flex:1;" @click="showdcshinfo">调查审核</van-button>
</div> </div>
</div> </div>
<van-popup v-model="showsyqr" style="height:100%;width:100%;"> <van-popup v-model="showsyqr" style="height:100%;width:100%;">
@@ -2739,9 +2757,9 @@
/> />
<img :src="resultImg" alt="" width="100%" height="100%" v-if="resultImg"/> <img :src="resultImg" alt="" width="100%" height="100%" v-if="resultImg"/>
</van-row> </van-row>
<van-row type="flex" justify="center" style="margin-bottom:20px;" v-if="isFinished">
<van-row type="flex" justify="center" style="margin-bottom:20px;">
<van-col span="6" style="text-align:center;"><van-button type="primary" round size="small" @click="handleReset">清空画板</van-button></van-col> <van-col span="6" style="text-align:center;"><van-button type="primary" round size="small" @click="handleReset">清空画板</van-button></van-col>
<van-col span="6" style="text-align:center;"><van-button type="primary" round size="small" @click="handleGenerate">保存提交</van-button></van-col>
<van-col span="6" style="text-align:center;"><van-button type="primary" round size="small" @click="handleGenerate">保存确认</van-button></van-col>
</van-row> </van-row>
</van-popup> </van-popup>
<van-popup v-model="showycbj" position="bottom" <van-popup v-model="showycbj" position="bottom"
@@ -2760,8 +2778,8 @@
<van-uploader v-model="fileListyc" :after-read="beforeReadyc" multiple @delete="deleteFileyc" :max-count="8"></van-uploader> <van-uploader v-model="fileListyc" :after-read="beforeReadyc" multiple @delete="deleteFileyc" :max-count="8"></van-uploader>
</template> </template>
</van-field> </van-field>
<div style="margin: 16px;" v-if="isFinished">
<van-button round block type="info" @click="saveyc">保存</van-button>
<div style="margin: 16px;">
<van-button round block type="info" @click="saveyc">关闭</van-button>
</div> </div>
</van-popup> </van-popup>
<van-popup v-model="showdcsh" position="bottom" <van-popup v-model="showdcsh" position="bottom"
@@ -2932,7 +2950,6 @@
components: { MapGisDrawing,}, components: { MapGisDrawing,},
data() { data() {
return { return {
showsh:false,
showdcsh:false, showdcsh:false,
zjdAudit:'1', zjdAudit:'1',
auditRemark:"", auditRemark:"",
@@ -3142,6 +3159,7 @@
deptId:"", deptId:"",
zjddm:"", zjddm:"",
}, },
ztMap: true,
//记录是否从地图进入 //记录是否从地图进入
enterMap: "", enterMap: "",
//记录从地图进入宅基地代码 //记录从地图进入宅基地代码
@@ -3156,6 +3174,13 @@
}; };
}, },
created(){ created(){
console.log(this.$cookies.get("search"));
if(this.$cookies.get("search") !=null &&this.$cookies.get("search").zjddm !="" && this.$cookies.get("search").zjddm !=undefined && this.$cookies.get("search").zjddm !=null){
this.ztMap =false;
this.$cookies.set("item",this.$cookies.get("search"));
}else {
this.ztMap =true;
}
if(this.$cookies.get("search")){ if(this.$cookies.get("search")){
if(this.$cookies.get("search").active!=null){ if(this.$cookies.get("search").active!=null){
this.cookiesInfo = this.$cookies.get("search") this.cookiesInfo = this.$cookies.get("search")
@@ -3166,7 +3191,9 @@
this.backMap.backMapZjdAData = this.cookiesInfo.mapZjdAData; this.backMap.backMapZjdAData = this.cookiesInfo.mapZjdAData;
this.backMap.deptId = this.cookiesInfo.mapZjdAData.deptId; this.backMap.deptId = this.cookiesInfo.mapZjdAData.deptId;
this.backMap.zjddm = this.cookiesInfo.mapZjdAData.zjddm; this.backMap.zjddm = this.cookiesInfo.mapZjdAData.zjddm;
this.$cookies.set("item",this.backMap);
if(this.ztMap){
this.$cookies.set("item",this.backMap);
}
this.form.theGeom = this.cookiesInfo.mapZjdAData.theGeom; this.form.theGeom = this.cookiesInfo.mapZjdAData.theGeom;
//this.enterMapZjddm = this.cookiesInfo.mapZjdAData.zjddm; //this.enterMapZjddm = this.cookiesInfo.mapZjdAData.zjddm;
//返回地图值记录----end //返回地图值记录----end
@@ -3176,16 +3203,18 @@
this.isFinished = true this.isFinished = true
} }
this.form = this.cookiesInfo.mapZjdAData; this.form = this.cookiesInfo.mapZjdAData;
this.mapClickLoading();
//this.mapClickLoading();
let zrz = this.cookiesInfo.mapZrzAData; let zrz = this.cookiesInfo.mapZrzAData;
let fsss = this.cookiesInfo.mapFsssAData; let fsss = this.cookiesInfo.mapFsssAData;
this.getnhdmlist();
this.getBaseUrl();
this.getZjd();

// this.getnhdmlist();
// this.getBaseUrl();
// this.getZjd();
if(this.cookiesInfo.active=="3"){ if(this.cookiesInfo.active=="3"){
this.showzrz= true this.showzrz= true
this.form3 =
//this.form3 = this.cookiesInfo.mapZrzAData;
this.form3.theGeom = this.cookiesInfo.mapZrzAData.theGeom; this.form3.theGeom = this.cookiesInfo.mapZrzAData.theGeom;
this.form3.zjddm = this.form.zjddm;
this.getZrzList() this.getZrzList()
setTimeout(() => { setTimeout(() => {
this.showPopupzrz(zrz) this.showPopupzrz(zrz)
@@ -3193,7 +3222,8 @@


}else if(this.cookiesInfo.active=="4"){ }else if(this.cookiesInfo.active=="4"){
this.showfsss= true this.showfsss= true
this.form4.theGeom = this.cookiesInfo.mapFsssAData.theGeom;
//this.form4.theGeom = this.cookiesInfo.mapFsssAData.theGeom;
this.form4.zjddm = this.form.zjddm;
this.getFsssList() this.getFsssList()
setTimeout(() => { setTimeout(() => {
this.showPopupfsss(fsss) this.showPopupfsss(fsss)
@@ -3327,7 +3357,6 @@
if(this.active ==1){ if(this.active ==1){
//this.form.theGeom = this.item.theGeom; //this.form.theGeom = this.item.theGeom;
this.message = this.form.theGeom; this.message = this.form.theGeom;
console.log(this.message);
//this.$refs.drewingClickLoading = this.form.theGeom; //this.$refs.drewingClickLoading = this.form.theGeom;
this.mapClickLoading(); this.mapClickLoading();
} }
@@ -3336,16 +3365,6 @@


}, },
methods: { methods: {
showPic(){
if(this.form.dzqm!=null&&this.form.dzqm!=""){
this.resultImg = this.baseUrl+this.form.dzqm
}
if(this.$cookies.get("businessLevel")=='2'){
this.showsh = true
}else{
this.showsh = false
}
},
validatorIdcard(val){ validatorIdcard(val){
if(this.form1.shyqrdbzjlx=='01'){ if(this.form1.shyqrdbzjlx=='01'){
if(this.vcheckID(val)){ if(this.vcheckID(val)){
@@ -3466,6 +3485,7 @@
this.form.auditRemark = this.auditRemark this.form.auditRemark = this.auditRemark
if(this.form.zjdAudit=='2'){ if(this.form.zjdAudit=='2'){
this.form.houseDataConfirmStatus = 'UNCONFIRMED' this.form.houseDataConfirmStatus = 'UNCONFIRMED'
this.form.dzqm = ''
updateZjdzd(this.form).then(response => { updateZjdzd(this.form).then(response => {
let _this =this let _this =this
this.$toast({ this.$toast({
@@ -3495,17 +3515,6 @@
this.showycbj = false this.showycbj = false
this.form.isyc = this.isyc this.form.isyc = this.isyc
this.form.ycms = this.ycms this.form.ycms = this.ycms
updateZjdzd(this.form).then(response => {
let _this =this
this.$toast({
icon: 'success', // 找到自己需要的图标
message: '保存成功',
duration:"1000",
onClose:function(){
_this.showycbj = false
}
})
});
}, },
// 图片上传前 // 图片上传前
beforeReadyc(file){ beforeReadyc(file){
@@ -3577,7 +3586,6 @@
configKey: "system.attachment.url"} configKey: "system.attachment.url"}
sysConfig(params).then(response => { sysConfig(params).then(response => {
this.baseUrl = response.rows[0].configValue this.baseUrl = response.rows[0].configValue
console.log(this.baseUrl)
}) })
}, },
// 验证 // 验证
@@ -5904,6 +5912,9 @@
}, },
searchCommit(){ searchCommit(){
this.showesign = true this.showesign = true
if(this.form.dzqm!=null&&this.form.dzqm!=""){
this.resultImg = this.baseUrl+this.form.dzqm
}
}, },
searchCommit1(){ searchCommit1(){
this.form.houseDataConfirmStatus = "CONFIRMED" this.form.houseDataConfirmStatus = "CONFIRMED"


Зареждане…
Отказ
Запис