Commit 924fcb1b authored by wangjinjing's avatar wangjinjing

bug

parent 316d88bd
......@@ -23,3 +23,6 @@ dist-ssr
*.njsproj
*.sln
*.sw?
package.json
package-lock.json
.gitignore
......@@ -25,10 +25,10 @@ var community_conf={
// // // 发布环境 -- 20230718
// {name:"影像",url:"http://170.2.229.218:5000/earth_image_geodetic/MapServer"},
// {name:"注记",url:"http://170.2.229.218:5000/earth_image_anno_geodetic/MapServer"}
{name:"影像",url:"http://map.geoq.cn/arcgis/rest/services/ChinaOnlineCommunity_Mobile/MapServer"},
{name:"注记",url:"http://map.geoq.cn/arcgis/rest/services/ChinaOnlineCommunity_Mobile/MapServer"}
// {name:"影像",url:"mapurl/earth_image_geodetic/MapServer"},
// {name:"注记",url:"mapurl/earth_image_anno_geodetic/MapServer"}
// {name:"影像",url:"http://map.geoq.cn/arcgis/rest/services/ChinaOnlineCommunity_Mobile/MapServer"},
// {name:"注记",url:"http://map.geoq.cn/arcgis/rest/services/ChinaOnlineCommunity_Mobile/MapServer"}
{name:"影像",url:"mapurl/earth_image_geodetic/MapServer"},
{name:"注记",url:"mapurl/earth_image_anno_geodetic/MapServer"}
//发布环境
// {name:"影像",url:"https://geomatrix.club/tilemap/earth_image_geodetic/MapServer"},
// {name:"注记",url:"https://geomatrix.club/tilemap/earth_image_anno_geodetic/MapServer"}
......@@ -52,7 +52,7 @@ var community_conf={
url:"wss_dh"
},
//vue组件注册
viewNameList:["hjws","jmzx","gdgl","spaq","dagl","zsysq","wyryfb","hdgl","hjbh","zaaq","aqsc","rkgl","zdry","dqfwzx","ggfw","zyzfwz","sbsx","dwzx","list","fyry","rmfx","tygl","doublezero","fivetype","flgl","fyryzwq","ssfytj","mdtc","sqjw","wmcj"],
viewNameList:["hjws","jmzx","gdgl","spaq","dagl","zsysq","wyryfb","hdgl","hjbh","zaaq","aqsc","rkgl","zdry","dqfwzx","ggfw","zyzfwz","sbsx","dwzx","list","fyry","rmfx","tygl","doublezero","fivetype","flgl","fyryzwq","ssfytj","mdtc","sqjw","wmcj","zzwg","djwg","jwwg"],
leftviewNameList:["list","tree","tree_dq","treezyz","tree_rmfx","tree_aby","tree_ty","tree_fl","tree_hjbh","tree_wmcj","tree_mdtc","tree_jwrh","tree_hswy"],
}
//党小组
......@@ -617,28 +617,46 @@ var serviceLayers_conf=[
'text': '警务网格',
'layerID': 'jwwgLayer',
"status": false,
"http": "area/40",
"http": "areafield/40",
"icon": {"color":1,"img":"grid_big.png"},
"event":"",
"event":"rightview",
"rightview":"jwwg",
"width":"520px",
"height":"500px"
},
{
"index":37,
'text': '综治网格',
'layerID': 'zzwgLayer',
"status": false,
"http": "area/39",
"http": "areafield/39",
"icon": {"color":1,"img":"grid_big.png"},
"event":"",
"event":"rightview",
"rightview":"zzwg",
"width":"520px",
"height":"500px"
},
{
"index":38,
'text': '党建网格',
'layerID': 'djwgLayer',
"status": false,
"http": "area/41",
"icon": {"color":1,"img":"grid_big.png"},
"event":"",
},
"http": "areafield/41",
"icon": {"color":1,"img":"dqfwzx.png"},
"event":"rightview",
"rightview":"djwg",
"width":"520px",
"height":"500px"
},{
"index":39,
'text': '廉政教育',
'layerID': 'lzjyLayer',
"status": false,
"http": "queryAreaphotosWithname/31",
"icon": {"color":0.3,"img":"dqfwzx.png"},
"event":"picture"
}
];
/*
......@@ -826,8 +844,8 @@ var modules_conf = [{
"children": [{
"text": '党建红色网格',
"show": false,
"layers": ["dqfwLayer","dyLayer","partygroupLayer","sqdwLayer"],
"leftView":{"view": "tree_dq","index":[11,13,14,25]},
"layers": ["dqfwLayer","dyLayer","partygroupLayer","sqdwLayer","lzjyLayer"],
"leftView":{"view": "tree_dq","index":[11,13,14,25,39]},
"children":[],
"rightView":"dqfwzx",
"width":"400px",
......@@ -847,7 +865,7 @@ var modules_conf = [{
{
"text": '警网融合',
"show": false,
"layers": ["jwwgLayer","zzwgLayer","zzwgLayer"],
"layers": ["jwwgLayer","zzwgLayer","djwgLayer"],
"leftView":{"view": "tree_jwrh","index":[36,37,38]},
"children":[],
"rightView":"",
......
This diff is collapsed.
......@@ -151,7 +151,9 @@ module.exports = {
//延迟加载以便能够保证子组件已经加载完毕再调用其方法
if(parent.vue_right.$refs!=undefined && parent.vue_right.$refs.mychild !=undefined ){
setTimeout(() => {
try{
parent.vue_right.$refs.mychild.show(item);
}catch(ex){}
}, 300);
}
}, locate2: function (item) {
......@@ -163,7 +165,9 @@ module.exports = {
//延迟加载以便能够保证子组件已经加载完毕再调用其方法
if(parent.vue_right.$refs!=undefined && parent.vue_right.$refs.mychild !=undefined ){
setTimeout(() => {
try{
parent.vue_right.$refs.mychild.show(item);
}catch(ex){}
}, 300);
}
},open: function (item, n, dom) {
......@@ -182,24 +186,35 @@ module.exports = {
}
console.log(n);
debugger
//其他逻辑
//其他逻辑 0:d党群服务 1:党员 2:当组长 3:党委大图 4:廉政教育
if (n ==0&& item.show) {
parent.vue_top.setLayerStatusbyId(this.data_filter.data[0].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[1].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[2].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[3].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[3].layerID, true);
}
if (n ==1&& item.show) {
parent.vue_top.setLayerStatusbyId(this.data_filter.data[0].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[0].layerID, item.show);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[1].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[2].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[3].layerID, false);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[4].layerID, false);
}
if (n > 1) {
parent.vue_top.setLayerStatusbyId(this.data_filter.data[3].layerID, !item.show);
if (n==2) {
parent.vue_top.setLayerStatusbyId(this.data_filter.data[3].layerID, false);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[2].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[1].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[0].layerID, false);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[4].layerID, false);
}
if (n==3) {
//wkt上图,item.show 为true 且显示,否则隐藏
parent.vue_top.setLayerStatusbyId(this.data_filter.data[4].layerID, item.show);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[2].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[1].layerID, true);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[0].layerID, false);
parent.vue_top.setLayerStatusbyId(this.data_filter.data[3].layerID, false);
}
item.show = !item.show;
......@@ -298,13 +313,11 @@ module.exports = {
mounted() {//挂载的时候执行
this.tree_list[1].children = this.data_filter.data[0].data;
this.tree_list[0].children = this.data_filter.data[3].data;
this.ljtree_list[0].children = this.data_filter.data[4].data;
that = this;
getByAjax("./business/queryAreaphotos/30,31", function (list) {
getByAjax("./business/queryAreaphotos/30", function (list) {
let tempList = list.filter(items => { return items.typeid == that.daylist[0].children[1].marktype });
that.daylist[0].children[1].data = tempList;
tempList = list.filter(items => { return items.typeid == that.ljtree_list[0].marktype });
that.ljtree_list[0].children = tempList
that.daylist[0].children[1].data = tempList;
});
var maxWidth = 500;
......
......@@ -12,7 +12,7 @@
line-height: 60px;
"
>
<span class="lib_title">矛盾调处</span>
<span class="lib_title">{{ dataxself.title }}</span>
</div>
<div style="height: calc(100% - 60px); overflow-y: auto">
......@@ -20,7 +20,7 @@
<div class="layui-colla-item" v-for="(item, index) in tree_list">
<h2 class="layui-colla-title" v-bind:style="{ backgroundColor: item.color }" @click="showphotos(item)" > {{ item.name }} </h2>
<h2 class="layui-colla-title" v-bind:style="{ backgroundColor: item.color }" @click="showphotos(item.children)" > {{ item.name }} </h2>
<div class="layui-colla-content" style="height: 217px; margin-left: 0px" v-bind:title="item.name" >
</div>
</div>
......@@ -110,16 +110,28 @@ module.exports = {
}
},
showphotos: function (items) {
var playsrc={data: []};
debugger
for(var j = 0; j <items.length ; j++ )
{
playsrc.data.push({ src: items[j].src,alt:items[j].name});
}
layer.photos({
var playsrc = { data: [] };
for (var j = 0; j < items.length; j++) {
if( items[j].src!=undefined && items[j].src.indexOf(",")>0 ){
array=items[j].src.split(",");
}else{
array=items;
}
for (var j = 0; j < array.length; j++) {
if(array[j].indexOf("$")>0){
picsrc= array[j].substring(0,array[j].indexOf("$"));
picname=array[j].substring(array[j].indexOf("$")+1,array[j].lastIndexOf("."));
playsrc.data.push({ src: picsrc , alt:picname});
}else{
playsrc.data.push({ src: array[j], alt:items[j].name});
}
}
}
layer.photos({
photos: playsrc,
anim: 5,
});
});
},
play: function (url) {
......@@ -175,7 +187,7 @@ module.exports = {
debugger
that=this;
that.daylist[0].children=that.datax.data[0].data;
getByAjax("./business/queryAreaphotos/48,49",function(list){
getByAjax("./business/queryAreaphotosWithname/48,49",function(list){
for (var i = 0; i < that.tree_list.length; i++) {
let tempList = list.filter(items => {return items.typeid==that.tree_list[i].marktype});
console.log(tempList);
......
......@@ -72,7 +72,7 @@ module.exports = {
"marktype": "39",
"text1": '综治网格',
"name": '综治网格',
"color": 'turquoise',
"color": 'coral',
"show": true,
"layers": [],
"children": [],
......@@ -136,21 +136,29 @@ module.exports = {
//延迟加载以便能够保证子组件已经加载完毕再调用其方法
if(parent.vue_right.$refs!=undefined && parent.vue_right.$refs.mychild !=undefined ){
setTimeout(() => {
try{
parent.vue_right.$refs.mychild.show(item);
}catch(ex){}
}, 300);
}
},
show:function(item,index){
debugger
show:function(item,index){
for(let i=0;i<3;i++){
if(i==index){
parent.vue_top.setLayerStatusbyId(this.data_filter.data[i].layerID,true);}
else{ parent.vue_top.setLayerStatusbyId(this.data_filter.data[i].layerID,false);}
parent.vue_top.setLayerStatusbyId(this.data_filter.data[i].layerID,true);}
else{
parent.vue_top.setLayerStatusbyId(this.data_filter.data[i].layerID,false);
}
}
},
clear:function(){
for(let i=0;i<3;i++){
parent.vue_top.setLayerStatusbyId(this.data_filter.data[i].layerID,false);
}
},
showphotos: function (item) {
parent.vue_left.locate(item);
// var playsrc = { data: [] };
......@@ -215,9 +223,9 @@ module.exports = {
debugger
this.tree_list[0].children = this.data_filter.data[0].data;
this.tree_list[1].children = this.data_filter.data[1].data;
this.tree_list[2].children = this.data_filter.data[2].data;
this.tree_list[2].children = this.data_filter.data[2].data;
that = this;
that=this;
that.clear();
getByAjax("./business/queryAreaphotos/41,42,43",function(list){
for (var i = 0; i < that.daylist[0].children.length; i++) {
let tempList = list.filter(items => {return items.typeid==that.daylist[0].children[i].marktype});
......
......@@ -54,9 +54,6 @@
style="cursor: pointer"
>
<a @click="showphotos(item3) " > {{item3.name}}</a>
<!-- <a @click="showphotos(item3) " v-text="getData(item3)" > </a>
<div @click="showphotos(item3) " v-text="getData(item3)"></div>
<a @click="showphotos(item3) " v-text="item3.name!=''?item3.name.split(',')[0]:''" > </a> -->
<img v-show="item3.monitor" src="/img/monitor.png" width="12px" height="12px" @click="play(item3.monitor)">
</div>
</div>
......@@ -84,6 +81,7 @@
"text1": '志愿者服务站',
"name": '志愿者服务站',
"show": true,
"color": 'turquoise',
"layers": [],
"children": [],
"extenddata":"sd",
......@@ -95,6 +93,7 @@
"text1": '志愿者服务队',
"name": '志愿者服务队',
"show": true,
"color": 'coral',
"layers": [],
"children": [
{
......@@ -151,15 +150,26 @@
item.show = !item.show;
},
showphotos: function (items) {
var playsrc={data: []};
debugger
for(var j = 0; j <items.length ; j++ )
{
playsrc.data.push({ src: items[j].src,alt:items[j].name});
}
var playsrc = { data: [] };
if( items.src!=undefined && items.src.indexOf(",")>0 ){
array=items.src.split(",");
}else{
array=items;
}
for (var j = 0; j < array.length; j++) {
if(array[j].indexOf("$")>0){
picsrc= array[j].substring(0,array[j].indexOf("$"));
picname=array[j].substring(array[j].indexOf("$")+1,array[j].lastIndexOf("."));
playsrc.data.push({ src: picsrc , alt:picname});
}else{
playsrc.data.push({ src: array[j], alt:items[j].name});
}
}
layer.photos({
photos: playsrc,
anim: 5,
photos: playsrc,
anim: 5,
});
},
},
......@@ -181,7 +191,7 @@
this.tree_list[0].children=this.data_filter.data[0].data;
that=this;
getByAjax("./business/queryAreaphotos/45,46,47",function(list){
getByAjax("./business/queryAreaphotosWithname/45,46,47",function(list){
for (var i = 0; i < that.daylist[0].children.length; i++) {
let tempList = list.filter(items => {return items.typeid==that.daylist[0].children[i].marktype});
console.log(tempList);
......
<template>
<div>
<h1 class="bt_h1">兴卫村社区党建红色网格</h1>
<div class="table-a" style="height: 700px; overflow-y: auto;">
<table class="layui-table" style="background-color: #ece5e500;">
<colgroup>
<col width="140">
<col width="140">
<col>
</colgroup>
<thead>
<tr style="color:#fff;" class="tr_th">
<th>网格名称</th>
<th>党组织地址</th>
<th>党员人数</th>
<th>网格长</th>
<th>网格长联系方式</th>
<th>网格员</th>
<th>网格员联系方式</th>
</tr>
</thead>
<tbody class="bg_tr">
<tr >
<td v-text="item.name"></td>
<td v-text="item.address"></td>
<td v-text="item.dyrs"></td>
<td v-text="item.wgz"></td>
<td v-text="item.wgzlxfs"></td>
<td v-text="item.wgy"></td>
<td v-text="item.wgylxfs"></td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
<script>
module.exports = {
data: function() {
return {
item:[]
}
},
props:["title"],
methods:{
show:function(data){
this.item=data;
},
},
computed:{
},
mounted(){//挂载的时候执行
}
}
</script>
<style scoped>
.bt_h1{
text-align: center;
font-size: 20px;
color: white;
font-weight: 500;
margin-top: 8px;
}
.table-a table{border:1px solid #F00}
.bg_tr tr:hover{
background-color: #ece5e500 ! important;
}
.bg_tr{
color: #fff;
}
.bg_tr td{
text-align: center;
}
.tr_th{
background: linear-gradient(#415dc0, #9aaab5);
}
.tr_th th{
text-align: center;
}
</style>
<template>
<div>
<h1 class="bt_h1">兴卫村社区警务网格</h1>
<div class="table-a" style="height: 700px; overflow-y: auto;">
<table class="layui-table" style="background-color: #ece5e500;">
<colgroup>
<col width="140">
<col width="140">
<col>
</colgroup>
<thead>
<tr style="color:#fff;" class="tr_th">
<th>网格名称</th>
<th>网格地址</th>
<th>警务网格员</th>
<th>联系方式</th>
</tr>
</thead>
<tbody class="bg_tr">
<tr >
<td v-text="item.name"></td>
<td v-text="item.address"></td>
<td v-text="item.jwwgy"></td>
<td v-text="item.jwwgylxfs"></td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
<script>
module.exports = {
data: function() {
return {
item:[]
}
},
props:["title"],
methods:{
show:function(data){
this.item=data;
},
},
computed:{
},
mounted(){//挂载的时候执行
}
}
</script>
<style scoped>
.bt_h1{
text-align: center;
font-size: 20px;
color: white;
font-weight: 500;
margin-top: 8px;
}
.table-a table{border:1px solid #F00}
.bg_tr tr:hover{
background-color: #ece5e500 ! important;
}
.bg_tr{
color: #fff;
}
.bg_tr td{
text-align: center;
}
.tr_th{
background: linear-gradient(#415dc0, #9aaab5);
}
.tr_th th{
text-align: center;
}
</style>
<template>
<div>
<h1 class="bt_h1">物业公司详情</h1>
<h1 class="bt_h1">{{obj.pq}}</h1>
<div class="table-a">
<table class="layui-table" style="background-color: #ece5e500;">
<colgroup>
<col width="140">
<col width="140">
<col>
</colgroup>
<tbody class="bg_tr">
<tr>
<td>片区</td>
<td v-text="obj.pq"></td>
</tr>
<tr>
<td>物业公司名称</td>
<td v-text="obj.wygs"></td>
</tr>
<tr >
<td>项目经理 </td>
<td v-text="(obj.xmjl?obj.xmjl:'')+'('+(obj.lxdh?obj.lxdh:'')+')'"></td>
</tr>
<tr>
<td>保安主管</td>
<td v-text="obj.bazg"></td>
</tr>
<tr>
<td>保洁主管</td>
<td v-text="obj.bjzg"></td>
</tr>
<tr>
<td>保安人数</td>
<td v-text="obj.bars"></td>
</tr>
<tr>
<td>保洁人数</td>
<td v-text="obj.bjrs"></td>
</tr>
<tr>
<td>收费员</td>
<td v-text="obj.sfy"></td>
</tr>
<tr>
<td>维修员</td>
<td v-text="obj.wxy"></td>
</tr>
<tr>
<td>营业执照</td>
<td ><a @click="showPicture()" style="color:white;cursor:pointer;text-decoration:underline">查看照片</a></td>
</tr>
</tbody>
</table>
<div v-html="obj.wygs" style="text-indent:2em;color:white;padding:10px;font-size:17px"></div>
</div>
</div>
</template>
......@@ -76,15 +28,7 @@
},
showPicture:function(){
console.log(this.obj);
if(this.obj.id){
getByAjax("./rest/queryphotos/"+this.obj.id+"/"+ this.folderid,result=>{
var json = { title: "照片", data:result };
layer.photos({
photos: json,
anim: 5
});
});
}
}
},
computed:{
......
<template>
<div>
<h1 class="bt_h1">兴卫村社区综治网格</h1>
<div class="table-a" style="height: 700px; overflow-y: auto;">
<table class="shuju_table">
<tr>
<td style="text-align:center">网格名称</td>
<td v-text="item.name"></td>
</tr>
<tr>
<td style="text-align:center">网格地址</td>
<td v-text="item.address"></td>
</tr>
<tr>
<td style="text-align:center">网格长</td>
<td v-text="item.wgzlxfs"></td>
</tr>
<tr>
<td style="text-align:center">联系方式</td>
<td v-text="item.address"></td>
</tr>
<tr>
<td style="text-align:center">网格员</td>
<td v-text="item.wgy"></td>
</tr>
</table>
<table class="layui-table" style="background-color: #ece5e500;">
<colgroup>
<col width="140">
<col width="140">
<col>
</colgroup>
<thead>
<tr style="color:#fff;" class="tr_th">
<th>网格名称</th>
<th>网格地址</th>
<th>网格长</th>
<th>联系方式</th>
<th>网格员</th>
<th>联系方式</th>
<th>协管员</th>
<th>联系方式</th>
<th>政法网格员</th>
<th>联系方式</th>
</tr>
</thead>
<tbody class="bg_tr">
<tr >
<td v-text="item.name"></td>
<td v-text="item.address"></td>
<td v-text="item.wgz"></td>
<td v-text="item.wgzlxfs"></td>
<td v-text="item.wgy"></td>
<td v-text="item.wgylxfs"></td>
<td v-text="item.xgy"></td>
<td v-text="item.xgylxfs"></td>
<td v-text="item.zfwgy"></td>
<td v-text="item.zfwgylxfs"></td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
<script>
module.exports = {
data: function() {
return {
item:{}
}
},
props:["title"],
methods:{
show:function(data){
this.item=data;
},
},
computed:{
},
mounted(){//挂载的时候执行
}
}
</script>
<style scoped>
.bt_h1{
text-align: center;
font-size: 20px;
color: white;
font-weight: 500;
margin-top: 8px;
}
.table-a table{border:1px solid #F00}
.bg_tr tr:hover{
background-color: #ece5e500 ! important;
}
.bg_tr{
color: #fff;
}
.bg_tr td{
text-align: center;
}
.tr_th{
background: linear-gradient(#415dc0, #9aaab5);
}
.tr_th th{
text-align: center;
}
</style>
<template>
<div>
<h1 class="bt_h1">兴卫村社区综治网格</h1>
<div class="table-a" style="height: 700px; overflow-y: auto;">
<table class="layui-table" style="background-color: #ece5e500;">
<colgroup>
<col width="140">
<col width="140">
<col>
</colgroup>
<thead>
<tr style="color:#fff;" class="tr_th">
<th>网格名称</th>
<th>网格地址</th>
<th>网格长</th>
<th>联系方式</th>
<th>网格员</th>
<th>联系方式</th>
<th>协管员</th>
<th>联系方式</th>
<th>政法网格员</th>
<th>联系方式</th>
</tr>
</thead>
<tbody class="bg_tr">
<tr >
<td v-text="item.name"></td>
<td v-text="item.address"></td>
<td v-text="item.wgz"></td>
<td v-text="item.wgzlxfs"></td>
<td v-text="item.wgy"></td>
<td v-text="item.wgylxfs"></td>
<td v-text="item.xgy"></td>
<td v-text="item.xgylxfs"></td>
<td v-text="item.zfwgy"></td>
<td v-text="item.zfwgylxfs"></td>
</tr>
</tbody>
</table>
</div>
</div>
</template>
<script>
module.exports = {
data: function() {
return {
item:{}
}
},
props:["title"],
methods:{
show:function(data){
this.item=item;
},
},
computed:{
},
mounted(){//挂载的时候执行
}
}
</script>
<style scoped>
.bt_h1{
text-align: center;
font-size: 20px;
color: white;
font-weight: 500;
margin-top: 8px;
}
.table-a table{border:1px solid #F00}
.bg_tr tr:hover{
background-color: #ece5e500 ! important;
}
.bg_tr{
color: #fff;
}
.bg_tr td{
text-align: center;
}
.tr_th{
background: linear-gradient(#415dc0, #9aaab5);
}
.tr_th th{
text-align: center;
}
</style>
......@@ -692,7 +692,9 @@ function listenLayer(layer,layerdata) {
}
require(["js/incident.bundle.js"], function ($root) {
incident = $root['incident'];
try{
vue_right.$refs.mychild.show(evt.graphic.attributes.data);
}catch(ex){}
});
});
layer.on('mouse-move',function (evt) {
......
......@@ -330,7 +330,9 @@ var vue_left = new Vue({
document.getElementById('rightvue').style.display = 'block';
if(vue_right.$refs!=undefined && vue_right.$refs.mychild !=undefined ){
setTimeout(() => {
try{
vue_right.$refs.mychild.show(item);
}catch(ex){}
}, 300);
}
}
......@@ -914,9 +916,11 @@ function listenLayer(v_layer, layerdata) {
vue_right.heightData = layerdata.height;
//延迟加载以便能够保证子组件已经加载完毕再调用其方法
if(vue_right.$refs!=undefined && vue_right.$refs.mychild !=undefined ){
setTimeout(() => {
// vue_right.$refs.mychild.show(evt.graphic.attributes.data);
setTimeout(() => {
document.getElementById('rightvue').style.display = 'block';
try{
vue_right.$refs.mychild.show(evt.graphic.attributes.data);
}catch(ex){}
}, 100);
}
});
......@@ -959,7 +963,9 @@ function listenLayer(v_layer, layerdata) {
//延迟加载以便能够保证子组件已经加载完毕再调用其方法
if(vue_right.$refs!=undefined && vue_right.$refs.mychild !=undefined ){
setTimeout(() => {
try{
vue_right.$refs.mychild.show(evt.graphic.attributes.data);
}catch(ex){}
}, 300);
}
});
......@@ -1048,7 +1054,9 @@ function listenLayer(v_layer, layerdata) {
//延迟加载以便能够保证子组件已经加载完毕再调用其方法
if(vue_right.$refs!=undefined && vue_right.$refs.mychild !=undefined ){
setTimeout(() => {
try{
vue_right.$refs.mychild.show(data.data1, data.data2);
}catch(ex){}
}, 300);
}
});
......@@ -2480,9 +2488,9 @@ var vue_flgw = new Vue({
computed: {
},
mounted() {
that=this;
thats=this;
getByAjax("./rest/areaanddetailquery/25/local_flgw",function(list){
that.arr_datals=list;
thats.arr_datals=list;
});
}
});
......
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