diff --git a/src/assets/images/icon/ztc.png b/src/assets/images/icon/ztc.png
new file mode 100644
index 0000000..6ba54b3
Binary files /dev/null and b/src/assets/images/icon/ztc.png differ
diff --git a/src/views/Map/Map_Dikong/index.vue b/src/views/Map/Map_Dikong/index.vue
index 5657793..6bfc4c9 100644
--- a/src/views/Map/Map_Dikong/index.vue
+++ b/src/views/Map/Map_Dikong/index.vue
@@ -8,13 +8,13 @@
@click="JSONclick" />
+ @click="ellipseclick" :zIndex="8000" :fillOpacity="0" strokeStyle="dashed" strokeColor="red" />
+ @click="ellipseclick" :zIndex="8000" :fillOpacity="0" strokeStyle="dashed" strokeColor="red" />
- { clickArrayMarker(marker, e) }" v-if="radio == 2 || radio == 1">
@@ -119,6 +119,8 @@
+
+
@@ -139,6 +141,7 @@ import roadpoint2 from "@/assets/mapjson/Chaangshazhen/road-point2.geojson"
// 人员分布图标
import ZhanshiTubiao from "@/views/components/ZhanshiTubiao/index.vue"
+import jingweidushuru from "@/views/components/jingweidushuru/index.vue"
import MapWrenjidialog from "@/views/components/MapWrenjidialog/index.vue"
import MapWrenjiLishidialog from "@/views/components/MapWrenjiLishidialog/index.vue"
@@ -148,7 +151,7 @@ import righttEcahts from "@/views/Map/Map_Dikong/righttEcahts/index.vue"
export default {
name: "map-view",
- components: { ZhanshiTubiao, leftrightEcahts, righttEcahts, MapWrenjidialog, MapWrenjiLishidialog },
+ components: { ZhanshiTubiao, leftrightEcahts, righttEcahts, MapWrenjidialog, MapWrenjiLishidialog,jingweidushuru },
data() {
return {
zoom: 11.8,
@@ -237,6 +240,7 @@ export default {
getMap() {
// bmap vue component
console.log('$refs: ', this.$refs.map.$$getInstance())
+
},
init(map) {
this.map = map;
@@ -249,9 +253,34 @@ export default {
click() {
alert('click map')
},
+ addjingweidu(lnglat){
+ console.log(lnglat);
+ if(this.markers.some(item => item.position[0] == lnglat.lng)){
+ this.$message({
+ message: '请勿重复添加',
+ type: 'warning'
+ });
+ return
+ }
+ let obj = {
+ position: [lnglat.lng, lnglat.lat],
+ id: 1,
+ name: "飞机",
+ content: '
',
+ imgSrc: require("@/assets/images/icon/weurneji.png")
+ }
+ this.markers.push(obj)
+ },
// 面图层样式
- JSONclick: (e) => {
+ JSONclick(e) {
console.log('click event: ', e);
+ const h = this.$createElement;
+ this.$message({
+ message: h('p', null, [
+ h('div',{ style: 'color: #000000' }, `经纬度:${e.lnglat.KL},${e.lnglat.kT}`),
+ ])
+ });
+ this.$refs.jingweidushuru.open(e.lnglat.KL,e.lnglat.kT)
},
JSONclick2: (e) => {
console.log('click event2: ', e);
diff --git a/src/views/Map/Map_ZhongDahuodong/index.vue b/src/views/Map/Map_ZhongDahuodong/index.vue
index 66137e4..bb4f604 100644
--- a/src/views/Map/Map_ZhongDahuodong/index.vue
+++ b/src/views/Map/Map_ZhongDahuodong/index.vue
@@ -83,7 +83,7 @@
-
+
-
+
+
+
-
+
@@ -263,105 +326,126 @@ export default {
visible: true,
draggable: false
},
- markername: "设备",
+ markername: "视频监控",
// 车辆辆
markers: [
- {
- position: [121.183697866903292, 32.460227941215508],
- id: 1,
- name: "车辆",
- content: '',
- imgSrc: require("@/assets/images/icon/genduofuwu.png")
- },
- {
- position: [121.235712627230569, 32.447218823220901],
- id: 2,
- name: "车辆",
- content: '',
- imgSrc: require("@/assets/images/icon/genduofuwu.png")
- },
- {
- position: [121.318413448767714, 32.411908360092688],
- id: 3,
- name: "车辆",
- content: '',
- imgSrc: require("@/assets/images/icon/genduofuwu.png")
- },
- {
- position: [121.359751265879749, 32.38683020264299],
- id: 4,
- name: "车辆",
- content: '',
- imgSrc: require("@/assets/images/icon/genduofuwu.png")
- },
- {
- position: [121.23060190230413, 32.393323905814675],
- id: 1,
- name: "设备",
- content: '',
- imgSrc: require("@/assets/images/icon/dainbingshebei.png")
- },
- {
- position: [121.252903247437729, 32.397970019384182],
- id: 2,
- name: "设备",
- content: '',
- imgSrc: require("@/assets/images/icon/dainbingshebei.png")
- },
- {
- position: [121.304939719416154, 32.402383827275209],
- id: 3,
- name: "设备",
- content: '',
- imgSrc: require("@/assets/images/icon/dainbingshebei.png")
- },
- {
- position: [121.3418763222937, 32.418412919089988],
- id: 4,
- name: "设备",
- content: '',
- imgSrc: require("@/assets/images/icon/dainbingshebei.png")
- },
- {
- position: [121.2932060190230413, 32.4023323905814675],
- id: 1,
- name: "人员",
- content: '',
- imgSrc: require("@/assets/images/icon/A-jianguanrenyuan.png")
- },
- {
- position: [121.274352, 32.42456],
- id: 2,
- name: "人员",
- content: '',
- imgSrc: require("@/assets/images/icon/A-jianguanrenyuan.png")
- },
- {
- position: [121.299592, 32.432396],
- id: 3,
- name: "人员",
- content: '',
- imgSrc: require("@/assets/images/icon/A-jianguanrenyuan.png")
- },
- {
- position: [121.37418763222937, 32.41185412919089988],
- id: 4,
- name: "人员",
- content: '',
- imgSrc: require("@/assets/images/icon/A-jianguanrenyuan.png")
- },
+
],
personInfo: {
- position: [],
+ position: [
+ 121.2799592,
+ 32.432396
+ ],
info: {},
- visible: false,
+ visible: true,
+ name: "视频监控",
+ imgSrc: require("@/assets/images/icon/jiankong.png"),
+ content: ''
},
personInfoTow: {
position: [],
info: {},
visible: false,
- }
-
+ },
+ markersactionMapList: ['车辆','视频监控'],
+ marksersTow: [{
+ position: [121.183697866903292, 32.460227941215508],
+ id: 1,
+ name: "车辆",
+ content: '',
+ imgSrc: require("@/assets/images/icon/genduofuwu.png")
+ },
+ {
+ position: [121.235712627230569, 32.447218823220901],
+ id: 2,
+ name: "车辆",
+ content: '',
+ imgSrc: require("@/assets/images/icon/genduofuwu.png")
+ },
+ {
+ position: [121.318413448767714, 32.411908360092688],
+ id: 3,
+ name: "车辆",
+ content: '',
+ imgSrc: require("@/assets/images/icon/genduofuwu.png")
+ },
+ {
+ position: [121.359751265879749, 32.38683020264299],
+ id: 4,
+ name: "车辆",
+ content: '',
+ imgSrc: require("@/assets/images/icon/genduofuwu.png")
+ },
+ {
+ position: [121.23060190230413, 32.393323905814675],
+ id: 1,
+ name: "设备",
+ content: '',
+ imgSrc: require("@/assets/images/icon/dainbingshebei.png")
+ },
+ {
+ position: [121.252903247437729, 32.397970019384182],
+ id: 2,
+ name: "设备",
+ content: '',
+ imgSrc: require("@/assets/images/icon/dainbingshebei.png")
+ },
+ {
+ position: [121.304939719416154, 32.402383827275209],
+ id: 3,
+ name: "设备",
+ content: '',
+ imgSrc: require("@/assets/images/icon/dainbingshebei.png")
+ },
+ {
+ position: [121.3418763222937, 32.418412919089988],
+ id: 4,
+ name: "设备",
+ content: '',
+ imgSrc: require("@/assets/images/icon/dainbingshebei.png")
+ },
+ {
+ position: [121.2932060190230413, 32.4023323905814675],
+ id: 1,
+ name: "人员",
+ content: '',
+ imgSrc: require("@/assets/images/icon/A-jianguanrenyuan.png")
+ },
+ {
+ position: [121.274352, 32.42456],
+ id: 2,
+ name: "人员",
+ content: '',
+ imgSrc: require("@/assets/images/icon/A-jianguanrenyuan.png")
+ },
+ {
+ position: [121.299592, 32.432396],
+ id: 3,
+ name: "人员",
+ content: '',
+ imgSrc: require("@/assets/images/icon/A-jianguanrenyuan.png")
+ },
+ {
+ position: [121.37418763222937, 32.41185412919089988],
+ id: 4,
+ name: "人员",
+ content: '',
+ imgSrc: require("@/assets/images/icon/A-jianguanrenyuan.png")
+ },
+ {
+ position: [121.2799592, 32.432396],
+ id: 3,
+ name: "视频监控",
+ content: '',
+ imgSrc: require("@/assets/images/icon/jiankong.png")
+ },
+ {
+ position: [121.357418763222937, 32.41185412919089988],
+ id: 4,
+ name: "视频监控",
+ content: '',
+ imgSrc: require("@/assets/images/icon/jiankong.png")
+ },]
// 选项
@@ -369,6 +453,8 @@ export default {
},
mounted() {
+ // this.marksersTow = JSON.parse(JSON.stringify(this.markers))
+ this.markersactionMap(this.markersactionMapList)
},
unmounted() {
},
@@ -431,7 +517,11 @@ export default {
},
// 切换人员
- markersradio(type) {
+ markersactionMap(type) {
+ this.markersactionMapList = type
+ this.markers = this.marksersTow.filter(item => this.markersactionMapList.includes(item.name))
+ console.log(this.markers);
+ console.log(type);
}
@@ -506,4 +596,10 @@ export default {
}
}
+.person-mainTow {
+ height: 100%;
+ padding-top: 0px;
+ padding-bottom: 0;
+ overflow: hidden;
+}
diff --git a/src/views/Map/Map_Zhongdianrenyuan/index.vue b/src/views/Map/Map_Zhongdianrenyuan/index.vue
index f85deda..cfde8cd 100644
--- a/src/views/Map/Map_Zhongdianrenyuan/index.vue
+++ b/src/views/Map/Map_Zhongdianrenyuan/index.vue
@@ -6,40 +6,53 @@
:extra-options="{ vectorMapForeign: 'style_zh_cn' }" class="amap-demo">
-
-
+
+
{ clickArrayMarker(marker, e) }" v-if="radio == 2 || radio == 1">
+ :position="marker.position" @click="(e) => { clickArrayMarker(marker, e) }" v-if="actionMap.includes(2)">
{{ marker.name }}
![]()
-
+
-
-
+ { clickArrayMarker(marker, e) }" v-if="actionMap.includes(3)">
+
+
{{ marker.name }}
+
![]()
+
+
+
+
+ { clickArrayMarker(marker, e) }" v-if="actionMap.includes(1)">
+
+
{{ marker.name }}
+
![]()
+
+
+
+
+ { clickArrayMarker(marker, e) }" v-if="actionMap.includes(4)">
{{ marker.name }}
![]()
-
+
- -->
+
-
+
@@ -102,7 +115,7 @@ export default {
name: "张三",
content: '',
imgSrc: require("@/assets/images/icon/zhongdianren2.png"),
- pathlist: [[121.183697866903292, 32.460227941215508],[121.173697866903292, 32.430227941215508],]
+ pathlist: [[121.183697866903292, 32.460227941215508], [121.173697866903292, 32.430227941215508],]
},
{
position: [121.235712627230569, 32.447218823220901],
@@ -110,16 +123,16 @@ export default {
name: "李四",
content: '',
imgSrc: require("@/assets/images/icon/zhongdianren2.png"),
- pathlist: [[121.235712627230569, 32.447218823220901],[ 121.245712627230569, 32.427218823220901 ],]
+ pathlist: [[121.235712627230569, 32.447218823220901], [121.245712627230569, 32.427218823220901],]
},
{
- position: [121.318413448767714, 32.411908360092688],
+ position: [121.318413448767714, 32.4211908360092688],
id: 3,
name: "王五",
content: '',
imgSrc: require("@/assets/images/icon/zhongdianren2.png")
,
- pathlist: [[121.318413448767714, 32.411908360092688],[ 121.328413448767714, 32.421908360092688],]
+ pathlist: [[121.318413448767714, 32.4211908360092688], [121.328413448767714, 32.421908360092688],]
},
{
position: [121.359751265879749, 32.38683020264299],
@@ -128,46 +141,84 @@ export default {
content: '',
imgSrc: require("@/assets/images/icon/zhongdianren2.png")
,
- pathlist: [[121.359751265879749, 32.38683020264299],[ 121.349751265879749, 32.36683020264299],]
+ pathlist: [[121.359751265879749, 32.38683020264299], [121.349751265879749, 32.36683020264299],]
},
],
markers2: [
{
position: [121.24012643512161, 32.392859294457729],
id: 1,
- name: "外地人口",
+ name: "外张三",
content: '',
imgSrc: require("@/assets/images/icon/zhongdianren.png"),
- pathlist: [[121.227349622803477, 32.389607014959076],[121.24012643512161, 32.392859294457729],]
+ pathlist: [[121.227349622803477, 32.389607014959076], [121.24012643512161, 32.392859294457729],]
},
{
- position: [121.316090391982954, 32.406100718130809 ],
+ position: [121.316090391982954, 32.406100718130809],
id: 2,
- name: "外地人口",
+ name: "外李四",
content: '',
imgSrc: require("@/assets/images/icon/zhongdianren.png"),
- pathlist: [[121.252903247437729, 32.397970019384182],[ 121.316090391982954, 32.406100718130809 ],]
+ pathlist: [[121.252903247437729, 32.397970019384182], [121.316090391982954, 32.406100718130809],]
},
{
- position: [121.295647492277155, 32.404939189738435],
+ position: [121.295647492277155, 32.3904939189738435],
id: 3,
- name: "外地人口",
+ name: "外王五",
content: '',
imgSrc: require("@/assets/images/icon/zhongdianren.png"),
- pathlist: [[121.295647492277155, 32.404939189738435],[ 121.316090391982954, 32.426100718130809 ],]
+ pathlist: [[121.295647492277155, 32.3904939189738435], [121.316090391982954, 32.426100718130809],]
},
{
position: [121.3418763222937, 32.418412919089988],
id: 4,
- name: "外地人口",
+ name: "外赵六",
content: '',
imgSrc: require("@/assets/images/icon/zhongdianren.png")
,
- pathlist: [[121.3418763222937, 32.418412919089988],[ 121.326090391982954, 32.406100718130809 ],]
+ pathlist: [[121.3418763222937, 32.418412919089988], [121.326090391982954, 32.406100718130809],]
},
],
+ markers3: [
+ {
+ position: [121.2209993697866903292, 32.460227941215508],
+ id: 1,
+ name: "本张三",
+ content: '',
+ imgSrc: require("@/assets/images/icon/renkouzonghui.png"),
+ pathlist: [[121.2309993697866, 32.460227941215508], [121.19396937866903292, 32.430227941215508],]
+ },
+ {
+ position: [121.255712627230569, 32.427218823220901],
+ id: 2,
+ name: "本李四",
+ content: '',
+ imgSrc: require("@/assets/images/icon/renkouzonghui.png"),
+ pathlist: [[121.255712627230569, 32.427218823220901], [121.245712627230569, 32.437218823220901],]
+ },
+
+ ],
+ markers4: [
+ {
+ position: [121.23209993697866903292, 32.4360227941215508],
+ id: 1,
+ name: "重点车辆",
+ content: '',
+ imgSrc: require("@/assets/images/icon/genduofuwu.png"),
+ pathlist: [[121.23209993697866903292, 32.4360227941215508], [121.19396937866903292, 32.430227941215508],]
+ },
+ {
+ position: [121.2355712627230569, 32.47327218823220901],
+ id: 2,
+ name: "重点车辆",
+ content: '',
+ imgSrc: require("@/assets/images/icon/genduofuwu.png"),
+ pathlist: [[121.2355712627230569, 32.48327218823220901], [121.245712627230569, 32.437218823220901],]
+ },
+
+ ],
// 选项
- radio: 1
+ actionMap: [1]
}
@@ -206,14 +257,20 @@ export default {
//mark点
clickArrayMarker(e) {
console.log(e);
- this.$refs.Mapdialog.open("person")
+ if (e.name == '重点车辆') {
+ this.$refs.Mapdialog.open("121")
+
+ } else {
+ this.$refs.Mapdialog.open("person")
+
+ }
},
// 切换人员
- markersradio(type) {
+ markersactionMap(type) {
console.log(type);
- this.radio = type
+ this.actionMap = type
}
},
diff --git a/src/views/Zhongdahuodong/dituzhadian/index.vue b/src/views/Zhongdahuodong/dituzhadian/index.vue
index 948cf84..f107fcd 100644
--- a/src/views/Zhongdahuodong/dituzhadian/index.vue
+++ b/src/views/Zhongdahuodong/dituzhadian/index.vue
@@ -4,8 +4,8 @@
@init="init" :extra-options="{ vectorMapForeign: 'style_zh_cn' }" class="amap-demo">
- { clickArrayMarker(marker, e) }">
+ { clickArrayMarker(marker, e) }">
{{ marker.name }}
![]()
@@ -70,71 +70,106 @@
车辆
+
+

+
特殊车辆
+
-
-
- 人员扎点
- 车辆扎点
-
-
-
-
-
-
-
-
-
+
+
+
+ 人员扎点
+ 车辆扎点
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
-
-
+
\ No newline at end of file
diff --git a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/cheliangguiji/index.vue b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/cheliangguiji/index.vue
new file mode 100644
index 0000000..903e396
--- /dev/null
+++ b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/cheliangguiji/index.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/index.js b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/index.js
index a1eb343..b4ce347 100644
--- a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/index.js
+++ b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/index.js
@@ -1,4 +1,5 @@
export { default as tabOne } from './tabOne'
export { default as tabTwo } from './tabTwo'
export { default as tabThree } from './tabThree'
-export { default as tabFour } from './tabFour'
\ No newline at end of file
+export { default as tabFour } from './tabFour'
+export { default as cheliangguiji } from './cheliangguiji'
\ No newline at end of file
diff --git a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/cheliangguiji.vue b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/cheliangguiji.vue
new file mode 100644
index 0000000..903e396
--- /dev/null
+++ b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/cheliangguiji.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/index.vue b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/index.vue
index 3d02fa5..68cb640 100644
--- a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/index.vue
+++ b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/index.vue
@@ -1,244 +1,45 @@
-
-
-
-
- 查询
- 重置
-
-
-
-
-
+
+
-
\ No newline at end of file
+
diff --git a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/tabThree.vue b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/tabThree.vue
new file mode 100644
index 0000000..3d02fa5
--- /dev/null
+++ b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/components/tabThree/tabThree.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/index.vue b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/index.vue
index 3560324..c29aec0 100644
--- a/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/index.vue
+++ b/src/views/ZhongdianRen/Xinxiguanli/zhongdianxiangqing/index.vue
@@ -49,12 +49,14 @@
+
+
@@ -62,7 +64,7 @@
+
\ No newline at end of file
diff --git a/src/views/components/ZhanshiTubiao/index.vue b/src/views/components/ZhanshiTubiao/index.vue
index 9587e18..e454f19 100644
--- a/src/views/components/ZhanshiTubiao/index.vue
+++ b/src/views/components/ZhanshiTubiao/index.vue
@@ -14,58 +14,75 @@
图层展示
-
+
图例
-
-
+
-
-
+
-
-
+
+
+
+

+
+
+ 视频监控
@@ -74,7 +91,7 @@
图例
-
-
+
@@ -108,7 +126,7 @@ export default {
lawCar: false, // 执法车辆
surveillanceVideo: false, // 监控视频
input: "", // 输入框的值
- actionMap: 1, // 默认选中执法人员地图
+ actionMap: [1,'车辆','视频监控'], // 默认选中执法人员地图
bgPingList: {
jianguanrenyaun: true
}
@@ -126,8 +144,12 @@ export default {
methods: {
changeMap(id) {
- this.actionMap = id;
- this.$emit("markersradio", id);
+ if (this.actionMap.includes(id)) {
+ this.actionMap = this.actionMap.filter(item => item != id)
+ } else {
+ this.actionMap.push(id);
+ }
+ this.$emit("markersactionMap", this.actionMap);
},
diff --git a/src/views/components/jingweidushuru/index.vue b/src/views/components/jingweidushuru/index.vue
new file mode 100644
index 0000000..1b1f6b8
--- /dev/null
+++ b/src/views/components/jingweidushuru/index.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+