Merge branch 'hi-ucs-dev' of http://192.168.124.50:3000/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
wuhongjian 2022-11-21 19:21:47 +08:00
commit 1e3aa7db5a
11 changed files with 158 additions and 97 deletions

View File

@ -2,50 +2,30 @@
* @Author: hisense.wuhongjian * @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23 * @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.wuhongjian * @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-11-21 17:06:10 * @LastEditTime: 2022-11-21 19:21:42
* @Description: 地图静态参数配置 * @Description: 地图静态参数配置
*/ */
var _mapConfig = {} var _mapConfig = {}
;(function () { ;
var L = window.L || {} (function() {
// // var L = window.L || {}
// ********************************************** // //
// eslint-disable-next-line no-undef // **********************************************
var CONFIGKEY = CONFIGITEM.version === 'xihaian' ? 'xihaian' : 'qingdao' // eslint-disable-next-line no-undef
// var CONFIGKEY = 'dev'; var CONFIGKEY = CONFIGITEM.version === 'xihaian' ? 'xihaian' : 'qingdao'
// *********************************************** // var CONFIGKEY = 'dev';
var BASECONFIGITEM = { // ***********************************************
xihaian: { var BASECONFIGITEM = {
base: 'xihaian', xihaian: {
CURRENT_MAP_OPTIONS: { base: 'xihaian',
// crs: CRS_4490, CURRENT_MAP_OPTIONS: {
center: [35.96, 120.19], // crs: CRS_4490,
maxZoom: 18, center: [35.96, 120.19],
minZoom: 0, maxZoom: 15,
zoom: 5, minZoom: 0,
}, zoom: 5,
}, },
qingdao: {
DATABASE_TYPE: 'Highgo',
POI_TYPE: 'Supermap', // POI 'Supermap''Amap''Survey_Institute'
ISERVER_URL: '15.2.21.238:8090',
WORKPLACE_NAME: 'HIMAP-HIGHGO',
MAP_NAME: 'QDMAP',
DATASOURCE_NAME: 'HISENSE_map',
ATMOSPHERE_URL: 'http://15.2.21.151:9015/service-main',
CURRENT_MAP_OPTIONS: {
// crs: CRS_4490,
center: [36.17, 120.13],
maxZoom: 18,
minZoom: 0,
zoom: 10,
},
BDMAP_CONFIG: {
location: 'qingdao',
_initpos: {
point: [120.392795, 36.072854],
zoom: 2,
}, },
_keyframes: [ _keyframes: [
[121.6011191295479, 36.73422934263509], [121.6011191295479, 36.73422934263509],

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1680,7 +1680,7 @@ export function MapFun(mapObj) {
let layers = null; let layers = null;
let clickDataList = []; let clickDataList = [];
// //
layers = createMarkerClusterLayer() layers = createMarkerClusterLayer('', map)
const icon1 = createDefaultFeatureStyle({ const icon1 = createDefaultFeatureStyle({
img: url, img: url,
iconSize: [33, 33], iconSize: [33, 33],

View File

@ -39,11 +39,9 @@ function updateProgressBar(processed, total, elapsed, layersArray) {
* @param layerClassName 据此判断是否需要自定义聚合图层的样式 * @param layerClassName 据此判断是否需要自定义聚合图层的样式
* @returns {*} * @returns {*}
*/ */
function createMarkerClusterLayer(layerClassName) { function createMarkerClusterLayer(layerClassName, mapObj) {
let array = []; let array = [];
let markerClusterLayer = null let markerClusterLayer = null
//let currentZoom = this.map._zoom
//console.log('zzzzzz', currentZoom);
if (layerClassName) { if (layerClassName) {
// //
markerClusterLayer = L.markerClusterGroup({ markerClusterLayer = L.markerClusterGroup({
@ -81,18 +79,23 @@ function createMarkerClusterLayer(layerClassName) {
// //
showCoverageOnHover: false, showCoverageOnHover: false,
// //
zoomToBoundsOnClick: false, zoomToBoundsOnClick: true,
maxClusterRadius: 80, maxClusterRadius: 80,
}) })
markerClusterLayer.on('clusterclick', function(a) { markerClusterLayer.on('clusterclick', function(a) {
//console.log('cluster ' + a.layer.getAllChildMarkers()); //console.log('cluster ' + a.layer.getAllChildMarkers().length);
let clusterList = []; if (a.layer.getAllChildMarkers().length < 50) {
for (var i = 0; i < a.layer.getAllChildMarkers().length; i++) { let clusterList = [];
//console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].resourceData); for (var i = 0; i < a.layer.getAllChildMarkers().length; i++) {
clusterList.push(a.layer.getAllChildMarkers()[i].resourceData); //console.log('yyyyyyyyy', a.layer.getAllChildMarkers()[i].resourceData);
clusterList.push(a.layer.getAllChildMarkers()[i].resourceData);
}
//console.log('clusterList ' + a.layer.getAllChildMarkers(array, true));
//console.log('zzzzzzzzz', mapObj.getZoom(), mapObj.getMaxZoom());
if (mapObj.getZoom() == mapObj.getMaxZoom()) {
mybus.emit('openOperationPopup', clusterList);
}
} }
//console.log('clusterList ' + a.layer.getAllChildMarkers(array, true));
mybus.emit('openOperationPopup', clusterList);
}); });
} }
return markerClusterLayer return markerClusterLayer

View File

@ -13,6 +13,10 @@ const MSE_IS_SUPPORT = !!window.MediaSource // 是否支持mse
videoUrl:{ videoUrl:{
type: String, type: String,
default: '', default: '',
},
index:{
type: Number,
default: 0,
} }
}, },
data() { data() {
@ -64,7 +68,9 @@ const MSE_IS_SUPPORT = !!window.MediaSource // 是否支持mse
}) })
}, },
createPlayer () { createPlayer () {
//console.log('this.index',this.index);
this.player = new window.JSPlugin({ this.player = new window.JSPlugin({
//szId: 'player'+this.index,
szId: 'player', szId: 'player',
szBasePath: "/util/", //public/jsjs szBasePath: "/util/", //public/jsjs
iMaxSplit: 4, iMaxSplit: 4,

View File

@ -13,6 +13,7 @@
import { reactive, ref, watch, defineProps } from 'vue' import { reactive, ref, watch, defineProps } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useStore } from 'vuex' import { useStore } from 'vuex'
import mybus from '@/myplugins/mybus'
const router = useRouter() const router = useRouter()
const oldValue1= ref('') const oldValue1= ref('')
const props = defineProps({ const props = defineProps({
@ -32,6 +33,13 @@ const previousPage = () => {
const detailName = ref("应用资源") const detailName = ref("应用资源")
const goToDetailsPageconetent = () =>{
let pathData = {
path: '/DetailsPageconetent',
};
mybus.emit('changeMenuStyle',pathData);
}
</script> </script>
<style scoped lang="less"> <style scoped lang="less">

View File

@ -152,10 +152,16 @@ export default defineComponent({
} }
// //
const tabClick = (id) => { const tabClick = (id) => {
chooseId.value = id if(chooseId.value === id){
chooseId.value = ''
mybus.emit('clearLeftSelect')
}else{
chooseId.value = id
let placeTypeCode =[] let placeTypeCode =[]
placeTypeCode.push(id) placeTypeCode.push(id)
mybus.emit('CameraConditionPlaceType', placeTypeCode) mybus.emit('CameraConditionPlaceType', placeTypeCode)
}
} }
// //
const init = async () => { const init = async () => {
@ -196,14 +202,15 @@ export default defineComponent({
chooseId.value='' chooseId.value=''
}) })
const onSelect = async (item, val, child) => { const onSelect = async (item, val, child) => {
let res = {}
if (whoShow1.value && !whoShow1.value.itShowXiHaiAn) { // if(selectId.value===val.id){
res = await getCameraAllOrgan({ parentId: val.id }) // selectId.value=''
} else { //   mybus.emit('clearLeftSelect')
// }else{
let res = {}
 mybus.emit('getCameraByParentId', val.id)  mybus.emit('getCameraByParentId', val.id)
// 西
res = await getCameraInfoByAreaId({ areaId: val.id }) res = await getCameraInfoByAreaId({ areaId: val.id })
}
treeData.value.map((treeDataItem, index) => { treeData.value.map((treeDataItem, index) => {
if (item.id == treeDataItem.id) { if (item.id == treeDataItem.id) {
treeData.value[index].children.map((childItem, childIndex) => { treeData.value[index].children.map((childItem, childIndex) => {
@ -215,11 +222,20 @@ export default defineComponent({
} }
}) })
if (child) { if (child) {
if(selectId.value===child.id){
selectId.value=''
  mybus.emit('clearLeftSelect')
}else{
selectId.value = child.id selectId.value = child.id
} }
}
// }
} }
watch(selectId, (newVal) => { watch(selectId, (newVal) => {
if (newVal == '') { if (newVal == '') {
mybus.emit('getCameraByParentId', '') mybus.emit('getCameraByParentId', '')
mybus.emit('getListByParentId', '') mybus.emit('getListByParentId', '')
@ -244,14 +260,15 @@ export default defineComponent({
}) })
} }
const showDown = (item, val) => { const showDown = (item, val) => {
selectId.value = val.id selectId.value = val.id
console.log('item---showDown--------->', item)
console.log('val----showDown-------->', val)
if (item.children) { if (item.children) {
val.show = !val.show val.show = !val.show
// //
if (!val.show) { if (!val.show) {
selectId.value = '' selectId.value = ''
mybus.emit('clearLeftSelect')
} }
} }
} }
@ -284,10 +301,11 @@ export default defineComponent({
<style lang="less" scoped> <style lang="less" scoped>
.titleName { .titleName {
font-size: 18px; font-size: 18px;
color: #7e7676; color: #7e7676;
margin-bottom: 10px; margin-bottom: 10px;
padding-left: 10px; padding-left: 6px;
border-left: 6px solid #1296db; border-left: 6px solid #1296db;
margin-left: 10px;
} }
.glgkmk { .glgkmk {
cursor: pointer; cursor: pointer;
@ -310,6 +328,7 @@ export default defineComponent({
} }
.active { .active {
color: #0058e1; color: #0058e1;
font-weight: bold;
} }
} }
@ -317,15 +336,15 @@ export default defineComponent({
color: #0058e1; color: #0058e1;
} }
.nav { .nav {
margin-bottom: 13px;
display: flex; display: flex;
justify-content: space-around; justify-content: space-between;
margin-right: 20px;
align-items: center; align-items: center;
font-size: 18px; font-size: 18px;
font-family: 'Alibaba PuHuiTi'; font-family: 'Alibaba PuHuiTi';
color: #000000; color: #000000;
line-height: 0.32rem; line-height: 0.32rem;
margin-bottom: 0.1rem; margin-bottom: 24px;
.photo { .photo {
display: inline-block; display: inline-block;

View File

@ -2601,8 +2601,9 @@
} }
.camera-popup{ .camera-popup{
.ant-modal-body { .ant-modal-body {
height: 700px !important; height: 720px !important;
overflow-y: auto; overflow-y: hidden;
overflow-x: hidden;
padding:14px; padding:14px;
} }
.ant-modal-footer{ .ant-modal-footer{

View File

@ -5,12 +5,14 @@
<a-carousel arrows> <a-carousel arrows>
<template #prevArrow> <template #prevArrow>
<div class="custom-slick-arrow" style="left: 10px; z-index: 1"> <div class="custom-slick-arrow" style="left: 10px; z-index: 1">
<left-circle-outlined /> <!-- <div style="background-color:red">11111111</div> -->
<div class="arrow-left" @click="handlePrev()"></div>
</div> </div>
</template> </template>
<template #nextArrow> <template #nextArrow>
<div class="custom-slick-arrow" style="right: 10px"> <div class="custom-slick-arrow" style="right: 10px">
<right-circle-outlined /> <!-- <right-circle-outlined /> -->
<div class="arrow-right" @click="handleNext()"></div>
</div> </div>
</template> </template>
<div <div
@ -18,27 +20,21 @@
:width="800" :width="800"
:height="400" :height="400"
:key="url" :key="url"
:src="url"
> >
<div class="video-content">
<h5-player></h5-player>
</div> </div>
<!-- <div style="color:#000000"> </a-carousel>
<div class="video-content" style=" z-index: 1"> <div class="operation-content" style="position:ab">
<div class="video-content">
<h5-player :video-url="videoUrl"></h5-player> <h5-player :video-url="videoUrl"></h5-player>
</div> </div>
</div> --> <div class="text-label">
<span>{{defaultIndex}}</span>/<span>{{cameraDataList.length}}</span>
</div>
<div class="footer-button"> <div class="footer-button">
<a-button type="primary" @click="applyNow(url)">立即申请</a-button> <a-button type="primary" @click="applyNow(url)">立即申请</a-button>
<a-button type="primary" style="margin-left:20px" @click="addIntoCart(url)">加入申购车</a-button> <a-button type="primary" style="margin-left:20px" @click="addIntoCart(url)">加入申购车</a-button>
</div> </div>
<!-- <div class="footer-button"> </div>
<a-button type="primary">立即申请</a-button>
<a-button type="primary" style="margin-left:20px">加入申购车</a-button>
</div> -->
</div>
</a-carousel>
<!-- -->
</div> </div>
</div> </div>
</template> </template>
@ -79,7 +75,8 @@
return { return {
openVideo: false, openVideo: false,
videoStream: '', videoStream: '',
videoUrl:'' //url videoUrl:'', //url
defaultIndex:0//
} }
}, },
methods: { methods: {
@ -99,6 +96,28 @@
addIntoCart(item){ addIntoCart(item){
console.log('addIntoCartaddIntoCart',item); console.log('addIntoCartaddIntoCart',item);
mybus.emit('selectCamera', item) mybus.emit('selectCamera', item)
},
handlePrev(){
let maxLength = this.cameraDataList.length-1;
this.defaultIndex = this.defaultIndex - 1;
console.log('opopopop',this.cameraDataList[maxLength]);
if(this.defaultIndex === 0){
console.log('opopopop',this.cameraDataList[maxLength]);
//channelIdurlH5
//this.videoUrl =
} else{
console.log('uyutyuyopopopop',this.cameraDataList[this.defaultIndex]);
}
},
handleNext(){
this.defaultIndex = this.defaultIndex + 1;
if(this.defaultIndex === this.cameraDataList.length){
console.log('opopopop',this.cameraDataList[0]);
}else{
console.log('opopopop',this.cameraDataList[this.defaultIndex]);
}
} }
}, },
} }
@ -112,6 +131,7 @@
padding-bottom: 20px; padding-bottom: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative;
.content { .content {
// width: 280px; // width: 280px;
min-height: 100px; min-height: 100px;
@ -162,22 +182,36 @@
margin: 8px auto 0; margin: 8px auto 0;
cursor: pointer; cursor: pointer;
} }
.ant-carousel { .operation-content{
width: 960px; position: absolute;
//height: 700px; z-index: 800;
margin-left: 8px; top: 0.1rem;
.video-content{ //right: 0.1rem;
width: 950px; left:0.8rem;
.text-label{
width:800px;
height:30px;
margin-top:10px;
text-align:center;
font-size: 18px;
}
.video-content{
width: 750px;
height:600px; height:600px;
text-align: left; text-align: left;
padding: 5px; padding: 5px;
} }
.footer-button{ .footer-button{
width: 950px; width: 750px;
//height:50px; //height:50px;
text-align: center; text-align: center;
padding-top:20px; padding-top:5px;
} }
}
.ant-carousel {
width: 960px;
//height: 700px;
margin-left: 8px;
} }
.ant-carousel :deep(.slick-slide) { .ant-carousel :deep(.slick-slide) {
text-align: center; text-align: center;
@ -195,9 +229,19 @@
height: 50px; height: 50px;
font-size: 50px; font-size: 50px;
color: #fff; color: #fff;
background-color: rgba(31, 45, 61, 0.11); //background-color: rgba(31, 45, 61, 0.11);
opacity: 0.8; opacity: 0.8;
z-index: 1; z-index: 1;
.arrow-left{
width:48px;
height:48px;
background-image: url('~@/assets/home/arrow-left.png');
}
.arrow-right{
width:48px;
height:48px;
background-image: url('~@/assets/home/arrow-right.png');
}
} }
.ant-carousel :deep(.custom-slick-arrow:before) { .ant-carousel :deep(.custom-slick-arrow:before) {
display: none; display: none;

View File

@ -181,6 +181,7 @@ import { ElMessage } from 'element-plus'
this.hiMap.mapObj, this.hiMap.mapObj,
this.hiMapFun this.hiMapFun
) )
//console.log('this.hiMap.mapObj',this.hiMap.mapObj.map.getZoom());
// this.hiMap.mapObj.map.flyTo({ lat: 36.06, lng: 120.3899 }, 16) // this.hiMap.mapObj.map.flyTo({ lat: 36.06, lng: 120.3899 }, 16)
this.addressMatchUrl = window.SITE_CONFIG.POI_URL this.addressMatchUrl = window.SITE_CONFIG.POI_URL
// //
@ -389,7 +390,6 @@ import { ElMessage } from 'element-plus'
}) })
}, },
getCameraByParentId(type) { getCameraByParentId(type) {
debugger
if (!this.whoShow1.itShowXiHaiAn) { if (!this.whoShow1.itShowXiHaiAn) {
getCameraByParentId(this.mapSearchParam).then((res) => { getCameraByParentId(this.mapSearchParam).then((res) => {
console.log('根据parent查询摄像头', res.data.data) console.log('根据parent查询摄像头', res.data.data)
@ -548,7 +548,7 @@ import { ElMessage } from 'element-plus'
pageSize: 30000, pageSize: 30000,
type: 0, type: 0,
borderPolygonList: [] borderPolygonList: []
} }
getCameraByCondition(params).then((res) => { getCameraByCondition(params).then((res) => {
// let t1 = new Date().getTime(); // let t1 = new Date().getTime();
// this.cameraAllData = res.data.data // this.cameraAllData = res.data.data