Commit c3a7eb93 authored by wangjinjing's avatar wangjinjing

补充材料

parent 3659635a
...@@ -25,10 +25,10 @@ var community_conf={ ...@@ -25,10 +25,10 @@ var community_conf={
// // // 发布环境 -- 20230718 // // // 发布环境 -- 20230718
// {name:"影像",url:"http://170.2.229.218:5000/earth_image_geodetic/MapServer"}, // {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://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:"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_geodetic/MapServer"},
// {name:"注记",url:"mapurl/earth_image_anno_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_geodetic/MapServer"},
// {name:"注记",url:"https://geomatrix.club/tilemap/earth_image_anno_geodetic/MapServer"} // {name:"注记",url:"https://geomatrix.club/tilemap/earth_image_anno_geodetic/MapServer"}
...@@ -52,7 +52,7 @@ var community_conf={ ...@@ -52,7 +52,7 @@ var community_conf={
url:"wss_dh" url:"wss_dh"
}, },
//vue组件注册 //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","zzwg","djwg","jwwg"], 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","dqfwzxjj"],
leftviewNameList:["list","tree","tree_dq","treezyz","tree_rmfx","tree_aby","tree_ty","tree_fl","tree_hjbh","tree_wmcj","tree_mdtc","tree_jwrh","tree_hswy"], leftviewNameList:["list","tree","tree_dq","treezyz","tree_rmfx","tree_aby","tree_ty","tree_fl","tree_hjbh","tree_wmcj","tree_mdtc","tree_jwrh","tree_hswy"],
} }
//党小组 //党小组
......
...@@ -159,24 +159,20 @@ module.exports = { ...@@ -159,24 +159,20 @@ module.exports = {
}, locate2: function (item) { }, locate2: function (item) {
//先画polygon,然后定位 //先画polygon,然后定位
parent.vue_left.locate(item); parent.vue_left.locate(item);
parent.vue_right.currentView = 'dwzx'; //parent.vue_right.currentView = 'dwzx';
parent.vue_right.widthData = item.width + 'px'; //parent.vue_right.widthData = item.width + 'px';
parent.vue_right.heightData = item.height + 'px'; //parent.vue_right.heightData = item.height + 'px';
//parent.document.getElementById('rightvue').style.display = 'block';
//延迟加载以便能够保证子组件已经加载完毕再调用其方法 //延迟加载以便能够保证子组件已经加载完毕再调用其方法
if(parent.vue_right.$refs!=undefined && parent.vue_right.$refs.mychild !=undefined ){ // if(parent.vue_right.$refs!=undefined && parent.vue_right.$refs.mychild !=undefined ){
setTimeout(() => { // setTimeout(() => {
try{ // try{
parent.vue_right.$refs.mychild.show(item); // parent.vue_right.$refs.mychild.show(item);
}catch(ex){} // }catch(ex){}
}, 300); // }, 300);
} // }
},open: function (item, n, dom) { },open: function (item, n, dom) {
parent.vue_left.showright(item); parent.vue_left.showright(item);
// if (item.name == '红色网格') {
// parent.vue_left.showright(item);
// }else{
// parent.vue_right.currentView ='';
// }
$(".layui-colla-content").css("display", "none"); $(".layui-colla-content").css("display", "none");
if (item.show) { if (item.show) {
...@@ -184,8 +180,6 @@ module.exports = { ...@@ -184,8 +180,6 @@ module.exports = {
} else { } else {
$(dom.srcElement).next().css("display", "none"); $(dom.srcElement).next().css("display", "none");
} }
console.log(n);
debugger
//其他逻辑 0:d党群服务 1:党员 2:当组长 3:党委大图 4:廉政教育 //其他逻辑 0:d党群服务 1:党员 2:当组长 3:党委大图 4:廉政教育
if (n ==0&& item.show) { if (n ==0&& item.show) {
parent.vue_top.setLayerStatusbyId(this.data_filter.data[0].layerID, true); parent.vue_top.setLayerStatusbyId(this.data_filter.data[0].layerID, true);
...@@ -221,18 +215,26 @@ module.exports = { ...@@ -221,18 +215,26 @@ module.exports = {
}, },
showphotos: function (item) { showphotos: function (item) {
parent.vue_left.locate(item); parent.vue_left.locate(item);
// var playsrc = { data: [] }; if(item.name=='兴卫村社区党群服务中心'){
// array = item.split(","); //展示右边的社区简介
// for (var j = 0; j < array.length; j++) { parent.vue_left.locate(item);
// playsrc.data.push({ src: array[j] }); parent.vue_right.currentView = 'dqfwzxjj';
// } parent.vue_right.widthData = '400px';
// layer.photos({ parent.vue_right.heightData ='500px';
// photos: playsrc, parent.document.getElementById('rightvue').style.display = 'block';
// anim: 5, //延迟加载以便能够保证子组件已经加载完毕再调用其方法
// }); if(parent.vue_right.$refs!=undefined && parent.vue_right.$refs.mychild !=undefined ){
setTimeout(() => {
try{
parent.vue_right.$refs.mychild.show(item);
}catch(ex){}
}, 300);
}
}else{
parent.document.getElementById('rightvue').style.display = 'none';
}
}, },
showphotos2: function (array) { showphotos2: function (array) {
debugger
var playsrc = { data: [] }; var playsrc = { data: [] };
for (var j = 0; j < array.length; j++) { for (var j = 0; j < array.length; j++) {
if(array[j].src.indexOf("$")>0){ if(array[j].src.indexOf("$")>0){
......
...@@ -20,8 +20,15 @@ ...@@ -20,8 +20,15 @@
<div class="layui-colla-item" v-for="(item, index) in tree_list"> <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.children)" > {{ item.name }} </h2> <h2 class="layui-colla-title" v-bind:style="{ backgroundColor: item.color }" @click="showphotos(item, index, $event)" > {{ item.name }} </h2>
<div class="layui-colla-content" style="height: 217px; margin-left: 0px" v-bind:title="item.name" > <div class="layui-colla-content" style="height: 217px; margin-left: 0px" v-bind:title="item.name" >
<div style="width: 100%; height: 225px" >
<div class="layui-colla-item" v-for="(item2, index) in item.children.filter(item=> {return item.name!='红队伍-红服务';})" @click="showphotos(item2, index, $event)" >
<div class="layui-colla-title" >
{{ item2.name }}
</div>
</div>
</div>
</div> </div>
</div> </div>
...@@ -59,7 +66,6 @@ module.exports = { ...@@ -59,7 +66,6 @@ module.exports = {
text1: "红引领-红机制", text1: "红引领-红机制",
name: "红引领-红机制", name: "红引领-红机制",
color: "turquoise", color: "turquoise",
show: true,
layers: [], layers: [],
children: [], children: [],
}, },
...@@ -92,11 +98,9 @@ module.exports = { ...@@ -92,11 +98,9 @@ module.exports = {
parent.vue_left.locate(item); parent.vue_left.locate(item);
}, },
showright: function (item,n, dom) { showright: function (item,n, dom) {
debugger
if(item.event=='showright'){ if(item.event=='showright'){
if(item.children.length>0){ if(item.children.length>0){
parent.vue_left.showright(item); parent.vue_left.showright(item);
debugger
if(item.children[0].name=='人民调解委员会'){ if(item.children[0].name=='人民调解委员会'){
item.children[0].name='兴卫村社区人民调解委员会'; item.children[0].name='兴卫村社区人民调解委员会';
} }
...@@ -109,8 +113,17 @@ module.exports = { ...@@ -109,8 +113,17 @@ module.exports = {
parent.vue_left.showmdtc(item); parent.vue_left.showmdtc(item);
} }
}, },
showphotos: function (items) { showphotos: function (item,n, dom) {
debugger if(item.marktype!=undefined && item.marktype=='49'){
this.open(item,n, dom);
}
if(item.show==undefined || !item.show ){
let items=[];
if(item.children!=undefined){
items=item.children.filter(item=> {return (item.name=='红队伍-红服务' ||item.name=='红引领-红机制' );});
}else if(item.src!=undefined && item.src ){
items=item.src.split(',');
}
var playsrc = { data: [] }; var playsrc = { data: [] };
for (var j = 0; j < items.length; j++) { for (var j = 0; j < items.length; j++) {
if( items[j].src!=undefined && items[j].src.indexOf(",")>0 ){ if( items[j].src!=undefined && items[j].src.indexOf(",")>0 ){
...@@ -132,6 +145,8 @@ module.exports = { ...@@ -132,6 +145,8 @@ module.exports = {
photos: playsrc, photos: playsrc,
anim: 5, anim: 5,
}); });
}
}, },
play: function (url) { play: function (url) {
...@@ -184,7 +199,6 @@ module.exports = { ...@@ -184,7 +199,6 @@ module.exports = {
}, },
}, },
mounted() { mounted() {
debugger
that=this; that=this;
that.daylist[0].children=that.datax.data[0].data; that.daylist[0].children=that.datax.data[0].data;
getByAjax("./business/queryAreaphotosWithname/48,49",function(list){ getByAjax("./business/queryAreaphotosWithname/48,49",function(list){
......
...@@ -154,6 +154,7 @@ module.exports = { ...@@ -154,6 +154,7 @@ module.exports = {
}, },
clear:function(){ clear:function(){
parent.document.getElementById('rightvue').style.display = 'none';
for(let i=0;i<3;i++){ for(let i=0;i<3;i++){
parent.vue_top.setLayerStatusbyId(this.data_filter.data[i].layerID,false); parent.vue_top.setLayerStatusbyId(this.data_filter.data[i].layerID,false);
...@@ -199,6 +200,7 @@ module.exports = { ...@@ -199,6 +200,7 @@ module.exports = {
}, },
open2: function (item, n, dom) { open2: function (item, n, dom) {
this.clear();
$("#layui").css("display", "none"); $("#layui").css("display", "none");
if (item.show) { if (item.show) {
$(dom.srcElement).next().css("display", "block"); $(dom.srcElement).next().css("display", "block");
...@@ -220,13 +222,13 @@ module.exports = { ...@@ -220,13 +222,13 @@ module.exports = {
} }
}, },
mounted() {//挂载的时候执行 mounted() {//挂载的时候执行
debugger
this.tree_list[0].children = this.data_filter.data[0].data; 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[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(); that.clear();
getByAjax("./business/queryAreaphotos/41,42,43",function(list){ getByAjax("./business/queryAreaphotos/44,42,43",function(list){
for (var i = 0; i < that.daylist[0].children.length; i++) { 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}); let tempList = list.filter(items => {return items.typeid==that.daylist[0].children[i].marktype});
console.log(tempList); console.log(tempList);
......
...@@ -36,8 +36,7 @@ ...@@ -36,8 +36,7 @@
<div class="layui-colla-item" v-for="(item, index) in daylist"> <div class="layui-colla-item" v-for="(item, index) in daylist">
<h2 class="layui-colla-title" v-bind:style="{ backgroundColor: item.color }" @click="open(item, index, $event)"> <h2 class="layui-colla-title" v-bind:style="{ backgroundColor: item.color }" @click="open(item, index, $event)"> {{ item.name }} </h2>
{{ item.name }} </h2>
<div class="layui-colla-content" style="height: 217px; margin-left: 0px" v-bind:title="item.name" > <div class="layui-colla-content" style="height: 217px; margin-left: 0px" v-bind:title="item.name" >
<div style="width: 100%; height: 225px"> <div style="width: 100%; height: 225px">
<div class="layui-colla-item" v-for="(item2, index) in item.children" @click="showphotos(item2.children)" > <div class="layui-colla-item" v-for="(item2, index) in item.children" @click="showphotos(item2.children)" >
......
...@@ -161,10 +161,11 @@ ...@@ -161,10 +161,11 @@
} }
}, },
mounted(){//挂载的时候执行 mounted(){//挂载的时候执行
for (var i = 0; i < this.tree_list.length-2; i++) { //遍历本模块的一级树 for (var i = 0; i < this.tree_list.length-2; i++) { //遍历本模块的一级树
var tempList=[]; var tempList=[];
if(this.data_filter.data.length>0 && this.data_filter.data[0].length>0){ if(this.data_filter.data.length>0 && this.data_filter.data[0].data.length>0){
for (var j = 0; j < this.data_filter.data[0].data.length; j++) { //遍历集合数据,塞入一级树结构中 for (var j = 0; j < this.data_filter.data[0].data.length; j++) { //遍历集合数据,塞入一级树结构中
if (this.data_filter.data[0].data[j].marktype && this.data_filter.data[0].data[j].marktype.strcontains(this.tree_list[i].marktype)) { if (this.data_filter.data[0].data[j].marktype && this.data_filter.data[0].data[j].marktype.strcontains(this.tree_list[i].marktype)) {
tempList.push(this.data_filter.data[0].data[j]); tempList.push(this.data_filter.data[0].data[j]);
......
...@@ -64,9 +64,6 @@ ...@@ -64,9 +64,6 @@
style="cursor: pointer" style="cursor: pointer"
> >
<a @click="showphotos(item3) " > {{item3.name}}</a> <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)"> <img v-show="item3.monitor" src="/img/monitor.png" width="12px" height="12px" @click="play(item3.monitor)">
</div> </div>
</div> </div>
...@@ -193,7 +190,6 @@ module.exports = { ...@@ -193,7 +190,6 @@ module.exports = {
this.open(item, n, dom); this.open(item, n, dom);
}, },
showphotos: function (item) { showphotos: function (item) {
debugger
if(item!=null){ if(item!=null){
var playsrc={data: []}; var playsrc={data: []};
var array=item.src.split(","); var array=item.src.split(",");
...@@ -207,11 +203,7 @@ module.exports = { ...@@ -207,11 +203,7 @@ module.exports = {
}); });
} }
}, },
// getdata:function(item){
// var arrayname=item.name.split(",") ;
// return arrayname[0];
// },
play: function (url) { play: function (url) {
layui_open_option = { layui_open_option = {
...@@ -280,12 +272,6 @@ module.exports = { ...@@ -280,12 +272,6 @@ module.exports = {
}, },
data_filter: function () { data_filter: function () {
return this.datax; return this.datax;
},
getData:(item)=>{
debugger
var arrayname=item.name!=''?item.name.split(","):[''];
return arrayname[0];
} }
}, },
mounted() { mounted() {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
</div> </div>
<div class="layui-colla-item" v-for="(item, index) in daylist"> <div class="layui-colla-item" v-for="(item, index) in daylist">
<h2 class="layui-colla-title" v-bind:style="{ backgroundColor: item.color }" @click="open(item, index, $event)"> <h2 class="layui-colla-title" v-bind:style="{ backgroundColor: item.color }" @click="open2(item, index, $event)">
{{ item.name }} </h2> {{ item.name }} </h2>
<div class="layui-colla-content" style="height: 217px; margin-left: 0px" v-bind:title="item.name"> <div class="layui-colla-content" style="height: 217px; margin-left: 0px" v-bind:title="item.name">
<div style="width: 100%; height: 225px"> <div style="width: 100%; height: 225px">
...@@ -135,7 +135,7 @@ module.exports = { ...@@ -135,7 +135,7 @@ module.exports = {
props: ["dataxself"], props: ["dataxself"],
methods: { methods: {
locate: function (item) { locate: function (item) {
debugger parent.document.getElementById('rightvue').style.display = 'none';
if(item.length>0){ if(item.length>0){
item2=JSON.parse(JSON.stringify(item[0])); item2=JSON.parse(JSON.stringify(item[0]));
parent.vue_left.locate(item2); parent.vue_left.locate(item2);
...@@ -146,7 +146,7 @@ module.exports = { ...@@ -146,7 +146,7 @@ module.exports = {
this.open(item, n, dom); this.open(item, n, dom);
}, },
showphotos: function (item) { showphotos: function (item) {
debugger parent.document.getElementById('rightvue').style.display = 'none';
if(item.event!=undefined){ if(item.event!=undefined){
//展示中间 //展示中间
parent.vue_left.showwmcs(item); parent.vue_left.showwmcs(item);
...@@ -176,7 +176,7 @@ module.exports = { ...@@ -176,7 +176,7 @@ module.exports = {
} }
}, },
showphotos2: function (array) { showphotos2: function (array) {
debugger parent.document.getElementById('rightvue').style.display = 'none';
var playsrc={data: []}; var playsrc={data: []};
for(var j = 0; j <array.length ; j++ ) for(var j = 0; j <array.length ; j++ )
{ {
...@@ -207,36 +207,29 @@ module.exports = { ...@@ -207,36 +207,29 @@ module.exports = {
layerOpen(layui_open_option); layerOpen(layui_open_option);
}, },
open2: function (item, n, dom) { open: function (item, n, dom) {
$("#layui").css("display", "none"); $(".layui-colla-content").css("display", "none");
if (item.show) { if (item.show) {
$(dom.srcElement).next().css("display", "block"); $(dom.srcElement).next().css("display", "block");
} else { } else {
$(dom.srcElement).next().css("display", "none"); $(dom.srcElement).next().css("display", "none");
} }
parent.document.getElementById('rightvue').style.display = 'none';
//其他逻辑
item.show = !item.show; item.show = !item.show;
}, },
open: function (item, n, dom) { open2: function (item, n, dom) {
$(".layui-colla-content").css("display", "none"); $(".layui-colla-content").css("display", "none");
if (item.show) { if (item.show) {
$(dom.srcElement).next().css("display", "block"); $(dom.srcElement).next().css("display", "block");
} else { } else {
$(dom.srcElement).next().css("display", "none"); $(dom.srcElement).next().css("display", "none");
} }
parent.document.getElementById('rightvue').style.display = 'none';
// parent.vue_top.setLayerStatusbyId(
// this.data_filter.data[1].layerID,
// !item.show
// );
// parent.vue_top.setLayerStatusbyId(this.data_filter.data[0].layerID, true);
//其他逻辑 //其他逻辑
item.show = !item.show; item.show = !item.show;
}, },
}, },
computed: { computed: {
datax: { datax: {
...@@ -257,7 +250,6 @@ module.exports = { ...@@ -257,7 +250,6 @@ module.exports = {
that=this; that=this;
getByAjax("./business/queryAreaphotosWithname/18,19,49,50,51",function(list){ getByAjax("./business/queryAreaphotosWithname/18,19,49,50,51",function(list){
debugger
for (var i = 0; i < that.tree_list[0].children.length; i++) { for (var i = 0; i < that.tree_list[0].children.length; i++) {
let tempList = list.filter(items => {return items.typeid==that.tree_list[0].children[i].marktype}); let tempList = list.filter(items => {return items.typeid==that.tree_list[0].children[i].marktype});
console.log(tempList); console.log(tempList);
......
...@@ -187,7 +187,6 @@ ...@@ -187,7 +187,6 @@
} }
}, },
mounted(){//挂载的时候执行 mounted(){//挂载的时候执行
debugger
this.tree_list[0].children=this.data_filter.data[0].data; this.tree_list[0].children=this.data_filter.data[0].data;
that=this; that=this;
......
<template>
<div>
<h1 class="bt_h1">兴卫村社区党群服务中心</h1>
<div class="table-a">
<div style="text-indent:2em;color:white;padding:10px;font-size:17px">兴卫村社区党委,现有党委书记1名,党委副书记1名,党委委员3名。社区共有党员550人,下设10个网格党支部,20个网格党小组,57位党员楼栋长,形成“社区党委—网格党支部—网格党小组—楼栋长”四级联动机制,通过定岗、定人、定责,细化网格职能,立足“小网格”、开展“微服务”、发挥“强作用”。结合节假日、送学上门、主题党日等活动定期走访党员、群众,结合“红动兴卫”我为群众办实事便民广场服务、“兴动党建联盟”打卡地图、“银发生辉”老党员宣讲团、“兴潮青年”志愿服务队等特色品牌项目丰富主题党日活动,加强党员教育管理,筑牢基层战斗堡垒。</div>
</div>
</div>
</template>
<script>
module.exports = {
data: function() {
return {
obj:{
},
folderid:"",
}
},
props:["dataxself"],
methods:{
show:function(item){
},
showPicture:function(){
}
},
computed:{
}
}
</script>
<style scoped>
.bt_h1{
text-align: center;
font-size: 20px;
color: white;
font-weight: 500;
margin-top: 5px;
}
.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>
...@@ -598,12 +598,12 @@ function getData(layer, i) { ...@@ -598,12 +598,12 @@ function getData(layer, i) {
layer.add(new esri.Graphic(polygon.getExtent().getCenter(), new esri.symbol.PictureMarkerSymbol(" img/" + "zlbs" + ".png", 15, 15).setOffset(-20, 0))); layer.add(new esri.Graphic(polygon.getExtent().getCenter(), new esri.symbol.PictureMarkerSymbol(" img/" + "zlbs" + ".png", 15, 15).setOffset(-20, 0)));
} }
} }
if (data[j].fydq) {//防疫人员 // if (data[j].fydq) {//防疫人员
symbolx = getSymbol("#0000ff", "#C4C4C4", vue_top.businessLayers[i].icon.color); // symbolx = getSymbol("#0000ff", "#C4C4C4", vue_top.businessLayers[i].icon.color);
if (data[j].fydq.strcontains("1")) {//防疫到期 // if (data[j].fydq.strcontains("1")) {//防疫到期
layer.add(new esri.Graphic(polygon.getExtent().getCenter(), new esri.symbol.PictureMarkerSymbol(" img/" + "fy" + ".png", 30, 30).setOffset(-20, 0))); // layer.add(new esri.Graphic(polygon.getExtent().getCenter(), new esri.symbol.PictureMarkerSymbol(" img/" + "fy" + ".png", 30, 30).setOffset(-20, 0)));
} // }
} // }
if (data[j].rmfx) {//人民防线 if (data[j].rmfx) {//人民防线
symbolx = getSymbol("#0000ff", "#C4C4C4", vue_top.businessLayers[i].icon.color); symbolx = getSymbol("#0000ff", "#C4C4C4", vue_top.businessLayers[i].icon.color);
layer.add(new esri.Graphic(polygon.getExtent().getCenter(), new esri.symbol.PictureMarkerSymbol(" img/" + "rmfx" + ".png", 20, 20).setOffset(-20, 0))); layer.add(new esri.Graphic(polygon.getExtent().getCenter(), new esri.symbol.PictureMarkerSymbol(" img/" + "rmfx" + ".png", 20, 20).setOffset(-20, 0)));
...@@ -914,15 +914,16 @@ function listenLayer(v_layer, layerdata) { ...@@ -914,15 +914,16 @@ function listenLayer(v_layer, layerdata) {
vue_right.currentView = layerdata.rightview; vue_right.currentView = layerdata.rightview;
vue_right.widthData = layerdata.width; vue_right.widthData = layerdata.width;
vue_right.heightData = layerdata.height; vue_right.heightData = layerdata.height;
document.getElementById('rightvue').style.display = 'block';
//延迟加载以便能够保证子组件已经加载完毕再调用其方法 //延迟加载以便能够保证子组件已经加载完毕再调用其方法
if(vue_right.$refs!=undefined && vue_right.$refs.mychild !=undefined ){
setTimeout(() => { setTimeout(() => {
document.getElementById('rightvue').style.display = 'block'; if(vue_right.$refs!=undefined && vue_right.$refs.mychild !=undefined ){
try{ try{
vue_right.$refs.mychild.show(evt.graphic.attributes.data); vue_right.$refs.mychild.show(evt.graphic.attributes.data);
}catch(ex){} }catch(ex){}
}, 100);
} }
}, 200);
}); });
}); });
v_layer.on('mouse-move', function (evt) { v_layer.on('mouse-move', function (evt) {
...@@ -2087,9 +2088,9 @@ function showpictures(json){ ...@@ -2087,9 +2088,9 @@ function showpictures(json){
} }
function showPictureWithoutHttp(data) { function showPictureWithoutHttp(datas) {
if (data) { if (datas) {
var json = { title: "照片", data: [data] }; var json = { title: "照片", data:datas };
layer.photos({ layer.photos({
photos: json, photos: json,
anim: 5 anim: 5
...@@ -2502,7 +2503,6 @@ var vue_wmcs = new Vue({ ...@@ -2502,7 +2503,6 @@ var vue_wmcs = new Vue({
methods: { methods: {
showphotos: function (item) { showphotos: function (item) {
var playsrc={data: []}; var playsrc={data: []};
debugger
if(item){ if(item){
array=item.split(","); array=item.split(",");
for(var j = 0; j <array.length ; j++ ) for(var j = 0; j <array.length ; j++ )
...@@ -2524,10 +2524,8 @@ var vue_wmcs = new Vue({ ...@@ -2524,10 +2524,8 @@ var vue_wmcs = new Vue({
computed: { computed: {
}, },
mounted() { mounted() {
debugger
that=this; that=this;
getByAjax("./rest/areaanddetailqueryWithname/21/local_wmcs",function(list){ getByAjax("./rest/areaanddetailqueryWithname/21/local_wmcs",function(list){
debugger
that.arr_datawmcs=list; that.arr_datawmcs=list;
}); });
} }
......
...@@ -145,8 +145,8 @@ ...@@ -145,8 +145,8 @@
mounted() { mounted() {
that=this; that=this;
getByAjax("../rest/queryphotos/"+str.id+"/11",result=>{ getByAjax("../rest/queryphotos/"+str.id+"/11",result=>{
that.photo=result.filter(item=>item.module==1); that.photo=result.filter(item=> {if(item.alt.indexOf('.')>0){item.alt=item.alt.split('.')[0]; } return item.module==1});
that.photohd=result.filter(item=>item.module==2); that.photohd=result.filter(item=>{ if(item.alt.indexOf('.')>0){item.alt=item.alt.split('.')[0]; } return item.module==2; });
}) })
......
...@@ -121,9 +121,8 @@ ...@@ -121,9 +121,8 @@
}, },
methods: { methods: {
queryyyzz: function (index) { queryyyzz: function (index) {
let result = this.photos.filter(item => { return item.module == index }); let result = this.photos.filter(item => { if(item.alt.indexOf('.')>0){ item.alt=item.alt.split('.')[0];} return item.module == index });
var json = { title: "照片", data: result }; parent.showPictureWithoutHttp(result);
parent.parent.showpictures(json);
} }
}, },
mounted() { mounted() {
......
...@@ -112,16 +112,17 @@ ...@@ -112,16 +112,17 @@
}, },
methods:{ methods:{
showphoto:function(){ showphoto:function(){
console.log(this.item_cjr[0].photos);
let photos=this.item_cjr[0].photos.split(",");
let dataphoto=[]; let dataphoto=[];
if(this.item_cjr[0] && this.item_cjr[0].photos!=undefined && this.item_cjr[0].photos ){
let photos=this.item_cjr[0].photos.split(",");
for(let i=0;i<photos.length;i++){ for(let i=0;i<photos.length;i++){
dataphoto.push( dataphoto.push(
{src:photos[i]} {src:photos[i]}
); );
} }
}
let pdata={data:dataphoto}; let pdata={data:dataphoto};
console.log(dataphoto);
layer.photos({ layer.photos({
photos:pdata, photos:pdata,
anim: 5 anim: 5
......
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