网络管理地图更换高德、清朗专项数据统计只统计近半年的、网络安全官去除显示字段

main
吕天方 5 months ago
parent 6d17cd6f31
commit 32d010f8f0

49
package-lock.json generated

@ -15,6 +15,11 @@
"js-message": "1.0.7" "js-message": "1.0.7"
} }
}, },
"@amap/amap-jsapi-loader": {
"version": "1.0.1",
"resolved": "https://registry.npmmirror.com/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz",
"integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw=="
},
"@ampproject/remapping": { "@ampproject/remapping": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "http://10.10.2.34:8081/repository/npm-group/@ampproject/remapping/-/remapping-2.2.0.tgz", "resolved": "http://10.10.2.34:8081/repository/npm-group/@ampproject/remapping/-/remapping-2.2.0.tgz",
@ -3416,6 +3421,11 @@
"d3-voronoi": "1.1.2" "d3-voronoi": "1.1.2"
} }
}, },
"@tweenjs/tween.js": {
"version": "18.6.4",
"resolved": "https://registry.npmmirror.com/@tweenjs/tween.js/-/tween.js-18.6.4.tgz",
"integrity": "sha512-lB9lMjuqjtuJrx7/kOkqQBtllspPIN+96OvTCeJ2j5FEzinoAXTdAMFnDAQT1KVPRlnYfBrqxtqP66vDM40xxQ=="
},
"@types/babel__core": { "@types/babel__core": {
"version": "7.1.19", "version": "7.1.19",
"resolved": "http://10.10.2.34:8081/repository/npm-group/@types/babel__core/-/babel__core-7.1.19.tgz", "resolved": "http://10.10.2.34:8081/repository/npm-group/@types/babel__core/-/babel__core-7.1.19.tgz",
@ -4195,6 +4205,25 @@
"integrity": "sha512-Iu8Tbg3f+emIIMmI2ycSI8QcEuAUgPTgHwesDU1eKMLE4YC/c/sFbGc70QgMq31ijRftV0R7vCm9co6rldCeOA==", "integrity": "sha512-Iu8Tbg3f+emIIMmI2ycSI8QcEuAUgPTgHwesDU1eKMLE4YC/c/sFbGc70QgMq31ijRftV0R7vCm9co6rldCeOA==",
"dev": true "dev": true
}, },
"@vuemap/vue-amap": {
"version": "0.1.17",
"resolved": "https://registry.npmmirror.com/@vuemap/vue-amap/-/vue-amap-0.1.17.tgz",
"integrity": "sha512-b30KnFrfhOlyhec88muYE5/ZaKJZ+PNcPNRFnpMs/FW5q+8rvLKZ1MN2WBwYOjRgvSk0j+rS3x83ssrNnMRc8w==",
"requires": {
"@amap/amap-jsapi-loader": "^1.0.1",
"@tweenjs/tween.js": "^18.6.4",
"lodash-es": "^4.17.21",
"three": "0.141.0",
"uppercamelcase": "^1.1.0"
},
"dependencies": {
"three": {
"version": "0.141.0",
"resolved": "https://registry.npmmirror.com/three/-/three-0.141.0.tgz",
"integrity": "sha512-JaSDAPWuk4RTzG5BYRQm8YZbERUxTfTDVouWgHMisS2to4E5fotMS9F2zPFNOIJyEFTTQDDKPpsgZVThKU3pXA=="
}
}
},
"@webassemblyjs/ast": { "@webassemblyjs/ast": {
"version": "1.9.0", "version": "1.9.0",
"resolved": "http://10.10.2.34:8081/repository/npm-group/@webassemblyjs/ast/-/ast-1.9.0.tgz", "resolved": "http://10.10.2.34:8081/repository/npm-group/@webassemblyjs/ast/-/ast-1.9.0.tgz",
@ -12287,6 +12316,11 @@
"resolved": "http://10.10.2.34:8081/repository/npm-group/lodash/-/lodash-4.17.21.tgz", "resolved": "http://10.10.2.34:8081/repository/npm-group/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
}, },
"lodash-es": {
"version": "4.17.21",
"resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.21.tgz",
"integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="
},
"lodash.assign": { "lodash.assign": {
"version": "4.2.0", "version": "4.2.0",
"resolved": "http://10.10.2.34:8081/repository/npm-group/lodash.assign/-/lodash.assign-4.2.0.tgz", "resolved": "http://10.10.2.34:8081/repository/npm-group/lodash.assign/-/lodash.assign-4.2.0.tgz",
@ -17788,6 +17822,21 @@
"integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==", "integrity": "sha512-WRbjgmYzgXkCV7zNVpy5YgrHgbBv126rMALQQMrmzOVC4GM2waQ9x7xtm8VU+1yF2kWyPzI9zbZ48n4vSxwfSA==",
"dev": true "dev": true
}, },
"uppercamelcase": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/uppercamelcase/-/uppercamelcase-1.1.0.tgz",
"integrity": "sha512-C7YEMvhgrvTEKEEVqA7LXNID/1TvvIwYZqNIKLquS6y/MGSkRQAav9LnTTILlC1RqUM8eTVBOe1U/fnB652PRA==",
"requires": {
"camelcase": "^1.2.1"
},
"dependencies": {
"camelcase": {
"version": "1.2.1",
"resolved": "https://registry.npmmirror.com/camelcase/-/camelcase-1.2.1.tgz",
"integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g=="
}
}
},
"uri-js": { "uri-js": {
"version": "4.4.1", "version": "4.4.1",
"resolved": "http://10.10.2.34:8081/repository/npm-group/uri-js/-/uri-js-4.4.1.tgz", "resolved": "http://10.10.2.34:8081/repository/npm-group/uri-js/-/uri-js-4.4.1.tgz",

@ -19,6 +19,7 @@
"@turf/turf": "^6.5.0", "@turf/turf": "^6.5.0",
"@vue-office/docx": "^1.3.0", "@vue-office/docx": "^1.3.0",
"@vue/composition-api": "^1.7.2", "@vue/composition-api": "^1.7.2",
"@vuemap/vue-amap": "^0.1.17",
"axios": "^0.21.4", "axios": "^0.21.4",
"clipboard": "^2.0.6", "clipboard": "^2.0.6",
"core-js": "3.6.5", "core-js": "3.6.5",

@ -1,8 +1,8 @@
<!-- <!--
* @Author: lough * @Author: lough
* @Date: 2021-12-03 09:21:03 * @Date: 2021-12-03 09:21:03
* @LastEditors: lough * @LastEditors: JC9527
* @LastEditTime: 2022-11-18 09:26:43 * @LastEditTime: 2024-10-08 14:39:21
* @Description: * @Description:
--> -->
<!DOCTYPE html> <!DOCTYPE html>
@ -20,11 +20,11 @@
<script src="<%= BASE_URL %>application.js"></script> <script src="<%= BASE_URL %>application.js"></script>
<script src="<%= BASE_URL %>static/videoMonitorPlayer/jsencrypt.min.js"></script> <script src="<%= BASE_URL %>static/videoMonitorPlayer/jsencrypt.min.js"></script>
<script src="<%= BASE_URL %>static/videoMonitorPlayer/jsWebControl-1.0.0.min.js"></script> <script src="<%= BASE_URL %>static/videoMonitorPlayer/jsWebControl-1.0.0.min.js"></script>
<script <!-- <script
type="text/javascript" type="text/javascript"
src="https://webapi.amap.com/maps?v=1.4.15&key=84594d0df3ebdc1dbb4cee3f1bac7916" src="https://webapi.amap.com/maps?v=1.4.15&key=84594d0df3ebdc1dbb4cee3f1bac7916"
></script> ></script>
<script src="https://webapi.amap.com/loca?v=1.3.0&key=84594d0df3ebdc1dbb4cee3f1bac7916"></script> <script src="https://webapi.amap.com/loca?v=1.3.0&key=84594d0df3ebdc1dbb4cee3f1bac7916"></script> -->
<script src="<%= BASE_URL %>static/flv/flv.js"></script> <script src="<%= BASE_URL %>static/flv/flv.js"></script>
<script src="<%= BASE_URL %>static/extends.js"></script> <script src="<%= BASE_URL %>static/extends.js"></script>
<script> <script>

@ -3,7 +3,7 @@
* @Author: kery.chen * @Author: kery.chen
* @Description: * @Description:
* @Date: 2021-09-06 15:12:07 * @Date: 2021-09-06 15:12:07
* @LastEditTime: 2022-08-17 21:14:06 * @LastEditTime: 2024-10-08 15:30:44
* @FilePath: \dzcBigScreenFrontPro\src\main.js * @FilePath: \dzcBigScreenFrontPro\src\main.js
*/ */
import Vue from 'vue' import Vue from 'vue'
@ -47,6 +47,14 @@ ElementUI.Dialog.props.closeOnClickModal.default = false
// 如果想要中文版 element-ui按如下方式声明 // 如果想要中文版 element-ui按如下方式声明
Vue.use(ElementUI) Vue.use(ElementUI)
import VueAMap from '@vuemap/vue-amap';
import '@vuemap/vue-amap/dist/style.css'
VueAMap.initAMapApiLoader({
key: 'b3c7a7ce466721c3be1d4ea539f82421', // 高德key
securityJsCode: 'ec84db9c5dfc3d304ca9219e764ffeb8', // 安全密钥
});
import VueAwesomeSwiper from 'vue-awesome-swiper' import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'swiper/swiper-bundle.css' import 'swiper/swiper-bundle.css'
Vue.use(VueAwesomeSwiper) Vue.use(VueAwesomeSwiper)

@ -13,3 +13,38 @@
color: #fff; color: #fff;
} }
} }
.amap-markers {
display: flex;
flex-direction: column;
align-items: center;
img {
width: 60px;
height: 60px;
}
}
.amap-info-content {
background-color: transparent;
padding: 0;
.amap-info-close {
display: none;
}
}
.amap-info-sharp {
display: none;
}
.amap-info-contentContainer .bottom-center {
padding-bottom: 0;
}
//
.amap-overlay-text-container {
background-color: transparent;
border-radius: 0;
border: none;
}
.amap-logo{
display: none !important; //logo
}
.amap-copyright {
opacity:0; //
}

@ -3,7 +3,7 @@
* @Author: kery.chen * @Author: kery.chen
* @Description: 总体概览右侧 * @Description: 总体概览右侧
* @Date: 2021-11-30 11:08:50 * @Date: 2021-11-30 11:08:50
* @LastEditTime: 2023-10-23 16:50:10 * @LastEditTime: 2024-10-09 16:34:07
* @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentRight.vue * @FilePath : \\tcingiocpro\\src\\views\\privateOrder\\ecosphere\\components\\componentRight.vue
--> -->
<template> <template>
@ -52,7 +52,7 @@
<div class="qlzfsjtj"> <div class="qlzfsjtj">
<div class="qlzf-head"> <div class="qlzf-head">
<div>处理有害信息数量()</div> <div>处理有害信息数量()</div>
<div>关闭直播平台违规账号()</div> <div>处置平台违规账号()</div>
</div> </div>
<div class="qlzf-box"> <div class="qlzf-box">
<div class="qlzf-left"> <div class="qlzf-left">
@ -182,6 +182,8 @@ export default {
ModuleTitle ModuleTitle
}, },
data() { data() {
var ndate = new Date();
var nmonth = ndate.getMonth();
return { return {
imgList: [ imgList: [
{ url: require('@/assets/ecosphere/清朗专项行动图/1-1.png') }, { url: require('@/assets/ecosphere/清朗专项行动图/1-1.png') },
@ -203,53 +205,53 @@ export default {
title: '处理有害信息数量(条)', title: '处理有害信息数量(条)',
data: [ data: [
{ {
name: '2月', name: nmonth + '月',
num: 0 num: 0
}, },
{ {
name: '1月', name: (nmonth - 1) + '月',
num: 0 num: 0
}, },
{ {
name: '12月', name: (nmonth - 1) + '月',
num: 0 num: 0
}, },
{ {
name: '11月', name: (nmonth - 1) + '月',
num: 0 num: 0
}, },
{ {
name: '10月', name: (nmonth - 1) + '月',
num: 0 num: 0
}, },
{ {
name: '9月', name: (nmonth - 1) + '月',
num: 0 num: 0
}, },
{ // {
name: '8月', // name: '8',
num: 0 // num: 0
}, // },
{ // {
name: '7月', // name: '7',
num: 0 // num: 0
}, // },
{ // {
name: '6月', // name: '6',
num: 0 // num: 0
}, // },
{ // {
name: '5月', // name: '5',
num: 0 // num: 0
}, // },
{ // {
name: '4月', // name: '4',
num: 0 // num: 0
}, // },
{ // {
name: '3月', // name: '3',
num: 0 // num: 0
} // }
] ]
}, },
@ -257,53 +259,53 @@ export default {
title: '关闭直播平台违规账号(个)', title: '关闭直播平台违规账号(个)',
data: [ data: [
{ {
name: '2月', name: nmonth + '月',
num: 0
},
{
name: '1月',
num: 0
},
{
name: '12月',
num: 0
},
{
name: '11月',
num: 0
},
{
name: '10月',
num: 0 num: 0
}, },
{ {
name: '9月', name: (nmonth - 1) + '月',
num: 0 num: 0
}, },
{ {
name: '8月', name: (nmonth - 2) + '月',
num: 0 num: 0
}, },
{ {
name: '7月', name: (nmonth - 3) + '月',
num: 0 num: 0
}, },
{ {
name: '6月', name: (nmonth - 4) + '月',
num: 0 num: 0
}, },
{ {
name: '5月', name: (nmonth - 5) + '月',
num: 0 num: 0
}, },
{ // {
name: '4月', // name: '8',
num: 0 // num: 0
}, // },
{ // {
name: '3月', // name: '7',
num: 0 // num: 0
} // },
// {
// name: '6',
// num: 0
// },
// {
// name: '5',
// num: 0
// },
// {
// name: '4',
// num: 0
// },
// {
// name: '3',
// num: 0
// }
] ]
} }
@ -448,17 +450,19 @@ export default {
// //
async reportbyyearDate(){ async reportbyyearDate(){
// let data = await reportbyyear(); // let data = await reportbyyear();
let arr = [{name:'上级下发',value:''},{name:'部门转发',value:''},{name:'无效',value:''},{name:'小程序',value:''}] // let arr = [{name:'',value:''},{name:'',value:''},{name:'',value:''},{name:'',value:''}]
let arr = []
listJbsjndfltj().then(data=>{ listJbsjndfltj().then(data=>{
data.rows.forEach((item,index)=>{ data.rows.forEach((item,index)=>{
arr.forEach(item2=>{ // arr.forEach(item2=>{
if(item.type == item2.name) { // if(item.type == item2.name) {
item2.value = item.count; // item2.value = item.count;
} // }
}) // })
// obj.value = item.count; let obj = {};
// obj.name = item.type; obj.value = item.count;
// arr.push(obj) obj.name = item.type;
arr.push(obj)
}) })
// obj.value = value; // obj.value = value;
// obj.name = ''; // obj.name = '';
@ -466,74 +470,6 @@ export default {
this.pieData = arr; this.pieData = arr;
this.inItPie() this.inItPie()
}) })
// listJbsjndfltj({type:''}).then(data=>{
// let value = 0
// let obj = {}
// data.rows.forEach(item=>{
// value += item.count
// })
// obj.value = value;
// obj.name = '';
// arr.push(obj)
// }).then(res=>{
// this.pieData = arr;
// this.inItPie()
// })
// listJbsjndfltj({type:''}).then(data=>{
// let value = 0
// let obj = {}
// data.rows.forEach(item=>{
// value += item.count
// })
// obj.value = value;
// obj.name = ''
// arr.push(obj)
// }).then(res=>{
// this.pieData = arr;
// this.inItPie()
// })
// listJbsjndfltj({type:''}).then(data=>{
// let value = 0
// let obj = {}
// data.rows.forEach(item=>{
// value += item.count
// })
// obj.value = value;
// obj.name = ''
// arr.push(obj)
// }).then(res=>{
// this.pieData = arr;
// this.inItPie()
// })
// listJbsjndfltj({type:''}).then(data=>{
// let value = 0
// let obj = {}
// data.rows.forEach(item=>{
// value += item.count
// })
// obj.value = value;
// obj.name = ''
// arr.push(obj)
// }).then(res=>{
// this.pieData = arr;
// this.inItPie()
// })
// for(let i = 1; i < 5; i++){
// let obj = {}
// listJbsjndfltj({type:i}).then(data=>{
// console.log(data,'data')
// let value = 0
// data.rows.forEach(item=>{
// value += item.count
// obj.value = value;
// obj.name = item.type == '1' ? '' : item.type == '2' ? '' : item.type == '3' ? '' : ''
// arr.push(obj)
// })
// arr = arr.filter((item, index, self)=>{
// return self.indexOf(item) == index;
// })
// })
// }
// let arr = [] // let arr = []
// for(let i = 0; i < data.data.length; i++){ // for(let i = 0; i < data.data.length; i++){
// let obj = {} // let obj = {}

@ -1,6 +1,6 @@
<template> <template>
<div class="map-container"> <div class="map-container">
<div id="map"></div> <div id="container"></div>
<el-dialog <el-dialog
v-if="isShowDialog" v-if="isShowDialog"
title="" title=""
@ -69,17 +69,30 @@
</template> </template>
<script> <script>
import mapboxgl from 'mapbox-gl' // import mapboxgl from 'mapbox-gl'
import 'mapbox-gl/dist/mapbox-gl.css' // import 'mapbox-gl/dist/mapbox-gl.css'
import { reportList, reportInfo } from '@/api/zongzhi/manage' // import VueAMap from '@vuemap/vue-amap';
// import '@vuemap/vue-amap/dist/style.css'
import location from '@/assets/ecosphere/point.png'
// import { reportList, reportInfo } from '@/api/zongzhi/manage'
import { import {
listJbmap, listJbmap,
getJbmap, getJbmap,
} from "@/api/netManage/index.js"; } from "@/api/netManage/index.js";
export default { export default {
data() { data() {
// VueAMap.initAMapApiLoader({
// key: 'b3c7a7ce466721c3be1d4ea539f82421', // key
// securityJsCode: 'ec84db9c5dfc3d304ca9219e764ffeb8', //
// });
return { return {
isShowDialog: false, isShowDialog: false,
center: [121.136909, 31.463778],
zoom: 14.5,
zooms:[14,18],
// markerOffset: [-35,-123],
// markers: [],
// //
currentMsg: { currentMsg: {
jbdx: '电子科技有限公司', jbdx: '电子科技有限公司',
@ -95,93 +108,178 @@ export default {
{ id: 3, lng: 121.05452, lat: 31.515175, title: '太仓星兴亮机械设备有限公司' }, { id: 3, lng: 121.05452, lat: 31.515175, title: '太仓星兴亮机械设备有限公司' },
{ id: 4, lng: 121.127801, lat: 31.472566, title: '兴和电子有限公司' }, { id: 4, lng: 121.127801, lat: 31.472566, title: '兴和电子有限公司' },
{ id: 5, lng: 121.142345, lat: 31.477655, title: '太仓裕盛体育用品有限公司' } { id: 5, lng: 121.142345, lat: 31.477655, title: '太仓裕盛体育用品有限公司' }
] ],
layers:{
layer:null,
}
} }
}, },
async mounted() { mounted() {
var layer = new AMap.createDefaultLayer({
zooms:[14,18], //
visible:true, //
opacity:1, //
zIndex:10, //
mapStyle: 'amap://styles/d02b66b0a7f190d5a1556a3f59c86518',
})
var map = new AMap.Map('container',{
zoom: 16, //
zooms: this.zooms,
center: this.center,//
mapStyle: 'amap://styles/d02b66b0a7f190d5a1556a3f59c86518', //
layers: [
//
// new AMap.TileLayer.Satellite(),
layer,
//
new AMap.Buildings({
zooms: [14, 18],
zIndex: 11,
wallColor: 'rgba(24,79,129,1)',
roofColor: 'rgba(24,79,129,1)',
// heightFactor: 2//23D
})
],
resizeEnable: true,
rotateEnable:false,
pitchEnable:false,
pitch: 55,
rotation: 25,
viewMode: '3D', //
lang:'zh_cn', //
buildingAnimation:true,
// expandZoomRange:true,
});
this.layers.layer = new AMap.OverlayGroup(); //
map.add(this.layers.layer);
this.map = map;
this.init(this.map);
// let data = await reportList(); // let data = await reportList();
listJbmap({isStatus:1,pageNum:1,pageSize:50}).then(data=>{ // listJbmap({isStatus:1,pageNum:1,pageSize:50}).then(data=>{
let arr = [] // let arr = []
data.rows.map((item)=>{ // data.rows.map((item)=>{
let obj = {} // let obj = {}
obj.id = item.id // obj.id = item.id
obj.lng = item.longitude // obj.lng = item.longitude
obj.lat = item.latitude // obj.lat = item.latitude
obj.title = item.jbObj // obj.title = item.jbObj
arr.push(obj) // arr.push(obj)
}) // })
this.pointList = arr // this.pointList = arr
const _this = this // const _this = this
mapboxgl.accessToken = 'pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw' // mapboxgl.accessToken = 'pk.eyJ1Ijoic2hhcmVhbGV4IiwiYSI6ImNsaXNhZmRjbTFhbnczZmxib3h1OW05YXYifQ.PhlKv60ar3K359d8x2yBPw'
const map = new mapboxgl.Map({ // const map = new mapboxgl.Map({
container: 'map', // id // container: 'map', // id
style: 'mapbox://styles/sharealex/cl3ntpire000314ookb5o81oo', // // style: 'mapbox://styles/sharealex/cl3ntpire000314ookb5o81oo', //
center: [121.136909, 31.463778], // // center: [121.136909, 31.463778], //
zoom: 14.5, // zoom: 14.5,
pitch: 50 // pitch: 50
}) // })
// // //
map.on('load', function() { // map.on('load', function() {
// // //
_this.pointList.forEach(item => { // _this.pointList.forEach(item => {
const el = document.createElement('div') // const el = document.createElement('div')
el.className = 'map-marker' // el.className = 'map-marker'
el.innerHTML = ` // el.innerHTML = `
<img class="marker-img" src= "${require('@/assets/ecosphere/point.png')}" /> // <img class="marker-img" src= "${require('@/assets/ecosphere/point.png')}" />
<div class="marker-text">${item.title}</div> // <div class="marker-text">${item.title}</div>
` // `
new mapboxgl.Marker(el) // new mapboxgl.Marker(el)
.setLngLat([item.lng, item.lat]) // .setLngLat([item.lng, item.lat])
.addTo(map) // .addTo(map)
el.addEventListener('click', () => { // el.addEventListener('click', () => {
// // //
// reportInfo(item.id).then(res=>{ // // reportInfo(item.id).then(res=>{
// getJbmap(item.id).then(res=>{
// let { jbObj, number, jbTime, address, content } = res.data
// _this.currentMsg.jbdx = jbObj
// _this.currentMsg.szbh = number
// _this.currentMsg.jbsj = jbTime
// _this.currentMsg.dz = address
// _this.currentMsg.jbnr = content
// _this.isShowDialog = true
// })
// })
// })
// map.addLayer({
// id: 'lou-extrusion',
// type: 'fill-extrusion',
// source: {
// type: 'geojson',
// data: require('@/utils/mapGeojson/1.json')
// },
// paint: {
// //
// 'fill-extrusion-color': '#2998F8',
// // height
// 'fill-extrusion-height': ['get', 'height'],
// 'fill-extrusion-base': 0,
// //
// 'fill-extrusion-opacity': 0.7
// }
// })
// })
// this.map = map
// })
},
methods: {
init(map){
listJbmap({isStatus:1,pageNum:1,pageSize:50}).then(data=>{
// let arr = [];
map.clearMap();
data.rows.map((item)=>{
// let obj = {}
// obj.id = item.id;
// obj.imgSrc = location;
// obj.lng = item.longitude
// obj.lat = item.latitude
// obj.title = item.jbObj
var marker = new AMap.Marker({
position: new AMap.LngLat(item.longitude, item.latitude), // [116.39, 39.9]
// <span style="color: #fff; font-size: 25px;width:${item.jbObj.length * 26}px">${item.jbObj}</span>
content: `<div class="amap-markers" data-projectid="${item.id}">
<img src="${location}" />
<div style="color: #fff; font-size: 25px;width:${item.jbObj.length * 26}px">${item.jbObj}</div>
</div>`,
offset:new AMap.Pixel(-(item.jbObj.length * 10), -30),
});
marker.on('click', (e)=>{
getJbmap(item.id).then(res=>{ getJbmap(item.id).then(res=>{
let { jbObj, number, jbTime, address, content } = res.data let { jbObj, number, jbTime, address, content } = res.data
_this.currentMsg.jbdx = jbObj this.currentMsg.jbdx = jbObj
_this.currentMsg.szbh = number this.currentMsg.szbh = number
_this.currentMsg.jbsj = jbTime this.currentMsg.jbsj = jbTime
_this.currentMsg.dz = address this.currentMsg.dz = address
_this.currentMsg.jbnr = content this.currentMsg.jbnr = content
_this.isShowDialog = true this.isShowDialog = true
}) })
}) })
map.add(marker);
// arr.push(obj)
}) })
map.addLayer({ // this.pointList = arr;
id: 'lou-extrusion',
type: 'fill-extrusion',
source: {
type: 'geojson',
data: require('@/utils/mapGeojson/1.json')
},
paint: {
//
'fill-extrusion-color': '#2998F8',
// height
'fill-extrusion-height': ['get', 'height'],
'fill-extrusion-base': 0,
//
'fill-extrusion-opacity': 0.7
}
})
}) })
this.map = map },
}) aaaa(){
}, console.log(1111111);
methods: {} },
}
} }
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>
.map-container{ .map-container{
width: 100%; width: 100%;
height: $ScreenHeight; height: $ScreenHeight;
#map{ #container{
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
} }
.screen-dialog { .screen-dialog {
left: 30%; left: 30%;
right: 30%; right: 30%;

@ -2,7 +2,7 @@
* @Author: lough * @Author: lough
* @Date: 2021-12-17 10:07:07 * @Date: 2021-12-17 10:07:07
* @LastEditors: JC9527 * @LastEditors: JC9527
* @LastEditTime: 2023-10-23 14:23:00 * @LastEditTime: 2024-10-09 13:26:10
* @Description: * @Description:
--> -->
<template> <template>
@ -531,9 +531,9 @@ export default {
this.tableKey = [ this.tableKey = [
{ name: '单位', value: 'unit' }, { name: '单位', value: 'unit' },
{ name: '第一负责人', value: 'fzr' }, { name: '第一负责人', value: 'fzr' },
{ name: '职务', value: 'duty' }, // { name: '', value: 'duty' },
{ name: '直接负责人', value: 'fzr1' }, { name: '直接负责人', value: 'fzr1' },
{ name: '职务_1', value: 'duty1' }, // { name: '_1', value: 'duty1' },
{ name: '负责科室', value: 'fzks' }, { name: '负责科室', value: 'fzks' },
{ name: '网络安全官', value: 'fzr3' }, { name: '网络安全官', value: 'fzr3' },
{ name: '职务_2', value: 'duty3' }, { name: '职务_2', value: 'duty3' },

@ -108,6 +108,9 @@ export default {
.main { .main {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden;
user-select: none;
position: relative;
background: url("~@/assets/privateOrder/positiveEnergy/背景底图.png") background: url("~@/assets/privateOrder/positiveEnergy/背景底图.png")
no-repeat; no-repeat;
background-size: 100% 100%; background-size: 100% 100%;

@ -23,6 +23,8 @@ export default {
getToken() { getToken() {
singleLoginTwo().then(res=>{ singleLoginTwo().then(res=>{
console.log(res); console.log(res);
// let url = res.data;
// this.iframeSrc = url.replace("https://2.35.38.240","http://20.1.0.157:88");
this.iframeSrc = res.data; this.iframeSrc = res.data;
}) })
}, },

Loading…
Cancel
Save