瀏覽代碼

优化搜索

wulanhaote
hbao 3 年之前
父節點
當前提交
7bcab94690
共有 1 個文件被更改,包括 6 次插入8 次删除
  1. +6
    -8
      src/views/homesteadSurvey/list.vue

+ 6
- 8
src/views/homesteadSurvey/list.vue 查看文件

@@ -447,7 +447,7 @@
</template> </template>
</van-search> </van-search>
<div class="searchBox" style="display: none;"> <div class="searchBox" style="display: none;">
<van-cell center v-for="(item,index) in mapDataAll[0]">
<van-cell center v-for="(item,index) in mapDataAll">
<template #title> <template #title>
<p><van-icon name="manager" /><span>{{item.syqr}}</span><span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.paceType}}</span> <p><van-icon name="manager" /><span>{{item.syqr}}</span><span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.paceType}}</span>
<span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.typeTc}}</span></p> <span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.typeTc}}</span></p>
@@ -2763,20 +2763,18 @@
console.log(params); console.log(params);
listZjdzd(params).then((response) => { listZjdzd(params).then((response) => {
if(response.rows.length>=0){ if(response.rows.length>=0){
var mapNum = that.mapDataAll[hg].houseDataConfirmStatus;
that.mapDataAll = response.rows;
that.mapDataAll = response.rows;
console.log(that.mapDataAll); console.log(that.mapDataAll);
for(var hg=0; hg < that.mapDataAll.length; hg++){ for(var hg=0; hg < that.mapDataAll.length; hg++){
console.log(that.mapDataAll[hg].houseDataConfirmStatus)
var mapNum = that.mapDataAll[hg].houseDataConfirmStatus; var mapNum = that.mapDataAll[hg].houseDataConfirmStatus;
if(mapNum == "UNCONFIRMED"){ if(mapNum == "UNCONFIRMED"){
that.mapDataAll[0][hg].paceType = "未核查";
that.mapDataAll[hg].paceType = "未核查";
} else if (mapNum == "CONFIRMED"){ } else if (mapNum == "CONFIRMED"){
that.mapDataAll[0][hg].paceType = "已核查";
that.mapDataAll[hg].paceType = "已核查";
}else{ }else{


} }
that.mapDataAll[0][hg].typeTc="宅基地";
that.mapDataAll[hg].typeTc="宅基地";
if (that.mapDataAll[hg] !=null && that.mapDataAll[hg].theGeom != null && that.mapDataAll[hg].theGeom != "") { if (that.mapDataAll[hg] !=null && that.mapDataAll[hg].theGeom != null && that.mapDataAll[hg].theGeom != "") {
//that.mapDataAll[hg].createBy = 'mapTheGeomZjdId'; //that.mapDataAll[hg].createBy = 'mapTheGeomZjdId';
var hc_land = new ol.layer.Vector({ var hc_land = new ol.layer.Vector({
@@ -2804,7 +2802,7 @@
duration: 1000, // 缩放持续时间,默认不需要设置 duration: 1000, // 缩放持续时间,默认不需要设置
}); });
} }
console.log(that.mapDataAll[0][hg].zjddm);
console.log(that.mapDataAll[hg].zjddm);
// listFsss(paramsZrz).then((response) => { // listFsss(paramsZrz).then((response) => {
// console.log(response); // console.log(response);
// that.mapDataAll.push(response.rows); // that.mapDataAll.push(response.rows);


Loading…
取消
儲存