index.vue 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. <template>
  2. <div>
  3. <!--<div class="map" @click="abc()">-->
  4. <div class="map">
  5. <!--<img src="../assets/images/yj-mapbg.png"/>-->
  6. <!--<img src="../assets/images/cjms_camera/water_1.jpg"/>-->
  7. <!-- 地图 -->
  8. <!--<supermapDialog ref="supermapDialog"-->
  9. <!--style="position: absolute; top:0;left: 0;"-->
  10. <!--:mapDiv="'forestWarmSuperMap'"-->
  11. <!--/>-->
  12. <supermap ref="supermap" style="width: 100%;height: 100vh;"
  13. class="indexSupermapClass" :mapDiv="'forestMap'"
  14. :dynamicPlotting="false"
  15. :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"
  16. @abc="abc"></supermap>
  17. </div>
  18. <Header></Header>
  19. <Leftnav></Leftnav>
  20. <Rightnav></Rightnav>
  21. <Btmbutton></Btmbutton>
  22. <Jsmsdialog ref="Jsmsdialog"></Jsmsdialog>
  23. <!--<div class="yj-topnav-div" title="地图信息"><i class="iconfont yj-icon-centerdata-t-firecontrol-other-linkage-force"></i></div>-->
  24. <div class="yj-topnav">
  25. <el-checkbox-group v-model="checkList" @change="eventPoints_byType(checkList)">
  26. <el-checkbox label="shelter">避难场所</el-checkbox>
  27. <el-checkbox label="rescueSupplies">救援物资库</el-checkbox>
  28. <el-checkbox label="rescueTeam">救援队伍</el-checkbox>
  29. <el-checkbox label="camera">视联网</el-checkbox>
  30. </el-checkbox-group>
  31. <a><i class="iconfont yj-icon-nav"></i>普查结果</a>
  32. <a><i class="iconfont yj-icon-zhiban"></i>值班信息</a>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. import '../assets/iconfont/iconfont.css'
  38. import Header from '../components/Header.vue'
  39. import Leftnav from '../components/Leftnav.vue'
  40. import Rightnav from '../components/Rightnav.vue'
  41. import Btmbutton from '../components/Btmbutton.vue'
  42. import Jsmsdialog from '../components/Jsmsdialog.vue'
  43. import supermap from '@/components/supermap' //超图
  44. export default {
  45. name: 'App',
  46. data() {
  47. return {
  48. mapToolShowBH:false,
  49. checkList: []
  50. }
  51. },
  52. components: {
  53. Header,
  54. Leftnav,
  55. Rightnav,
  56. Btmbutton,
  57. Jsmsdialog,
  58. supermap
  59. },
  60. created() {
  61. this.eventPoints("event_point");
  62. },
  63. methods: {
  64. //事件落点
  65. eventPoints(type){
  66. let pointList = [];
  67. pointList.push({
  68. name:"白石村火情",
  69. contacts:"张洁玲",
  70. phone:"13500805931",
  71. longitude:129.416,
  72. latitude:42.908
  73. });
  74. pointList.push({
  75. name:"延河路火情",
  76. contacts:"王建军",
  77. phone:"13664407655",
  78. longitude:129.46,
  79. latitude:42.888
  80. });
  81. pointList.push({
  82. name:"兴安村火情",
  83. contacts:"蔡雨虹",
  84. phone:"15754320117",
  85. longitude:129.496,
  86. latitude:42.935
  87. });
  88. pointList.push({
  89. name:"小白石村火情",
  90. contacts:"吕国琴",
  91. phone:"15044076332",
  92. longitude:129.426,
  93. latitude:42.929
  94. });
  95. pointList.push({
  96. name:"上东沟火情",
  97. contacts:"吴明月",
  98. phone:"15044076332",
  99. longitude:129.396,
  100. latitude:42.935
  101. });
  102. var markersList = []
  103. for (let i = 0; i < pointList.length; i++) {
  104. let markersMap = {
  105. lng: 124.59,
  106. lat: 43.02,
  107. icon: 'marker',
  108. bindPopupHtml: '',
  109. click: 'abc',
  110. parameter: pointList[i],
  111. keepBindPopup: false,
  112. isAggregation: true
  113. }
  114. markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
  115. markersMap.lng = pointList[i].longitude;
  116. markersMap.lat = pointList[i].latitude;
  117. markersMap.bindPopupHtml = '<div class="map-tip">' +
  118. '<span>' +
  119. ' <div class="d-l-con">' +
  120. ' <div class="d-l-l-text">' +
  121. ' <h4>资源名称:' + pointList[i].name + '</h4>' +
  122. ' </div>' +
  123. ' </div>' +
  124. ' </span>' +
  125. '<span>' +
  126. ' <div class="d-l-con">' +
  127. ' <div class="d-l-l-text">' +
  128. ' <h4>经纬度:' + pointList[i].longitude +','+ pointList[i].latitude + '</h4>' +
  129. ' </div>' +
  130. ' </div>' +
  131. ' </span>' +
  132. '<span>' +
  133. ' <div class="d-l-con">' +
  134. ' <div class="d-l-l-text">' +
  135. ' <h4>联系人:' + (pointList[i].contacts ? pointList[i].contacts : "") + '</h4>' +
  136. ' </div>' +
  137. ' </div>' +
  138. ' </span>' +
  139. '<span>' +
  140. ' <div class="d-l-con">' +
  141. ' <div class="d-l-l-text">' +
  142. ' <h4>电话:' + (pointList[i].phone ? pointList[i].phone : "") + '</h4>' +
  143. ' </div>' +
  144. ' </div>' +
  145. ' </span>' +
  146. '</div>'
  147. markersList.push(markersMap)
  148. // let icon = new window.L.Icon({
  149. // iconUrl: iconList[markersList[i].icon],
  150. // iconSize: [48, 48],
  151. // iconAnchor: [24, 40],
  152. // popupAnchor: [-3, -40],
  153. // shadowSize: [41, 41]
  154. // })
  155. // let markerClick = window.L.marker([markersList[i].lat, markersList[i].lng], {
  156. // icon: markersMap.icon
  157. // })
  158. // markerClick.on('click', function() {
  159. // let clickName = markersList[i].click
  160. // this.$emit(clickName, markersList[i].parameter)
  161. // })
  162. }
  163. setTimeout(() => {
  164. // this.$refs.supermap.setMarkers(markersList);
  165. this.$refs.supermap.setMarkersByType(markersList, type);
  166. }, 3000)
  167. },
  168. //避难场所 落点
  169. eventPoints_byType(checkList){
  170. console.log("checkList=",checkList)
  171. this.$refs.supermap.clearM(true);
  172. for (let i = 0; i < checkList.length; i++) {
  173. let type = checkList[i];
  174. if(type == "shelter"){
  175. this.eventPoints_shelter(type);
  176. }else if(type == "rescueSupplies"){
  177. this.eventPoints_rescueSupplies(type);
  178. }else if(type == "rescueTeam"){
  179. this.eventPoints_rescueTeam(type);
  180. }else if(type == "camera"){
  181. this.eventPoints_camera(type);
  182. }
  183. }
  184. },
  185. //避难场所 落点
  186. eventPoints_shelter(type){
  187. console.log(666)
  188. let pointList = [];
  189. pointList.push({
  190. name:"白石村避难所",
  191. contacts:"张洁玲",
  192. phone:"13500805931",
  193. longitude:129.416,
  194. latitude:42.918
  195. });
  196. pointList.push({
  197. name:"延河路避难所",
  198. contacts:"王建军",
  199. phone:"13664407655",
  200. longitude:129.47,
  201. latitude:42.898
  202. });
  203. pointList.push({
  204. name:"兴安村避难所",
  205. contacts:"蔡雨虹",
  206. phone:"15754320117",
  207. longitude:129.506,
  208. latitude:42.945
  209. });
  210. pointList.push({
  211. name:"小白石村避难所",
  212. contacts:"吕国琴",
  213. phone:"15044076332",
  214. longitude:129.436,
  215. latitude:42.939
  216. });
  217. pointList.push({
  218. name:"上东沟避难所",
  219. contacts:"吴明月",
  220. phone:"15044076332",
  221. longitude:129.406,
  222. latitude:42.945
  223. });
  224. var markersList = []
  225. for (let i = 0; i < pointList.length; i++) {
  226. let markersMap = {
  227. lng: 124.59,
  228. lat: 43.02,
  229. icon: 'marker',
  230. bindPopupHtml: '',
  231. click: '',
  232. parameter: pointList[i],
  233. keepBindPopup: false,
  234. isAggregation: true
  235. }
  236. markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
  237. markersMap.lng = pointList[i].longitude;
  238. markersMap.lat = pointList[i].latitude;
  239. markersMap.bindPopupHtml = '<div class="map-tip">' +
  240. '<span>' +
  241. ' <div class="d-l-con">' +
  242. ' <div class="d-l-l-text">' +
  243. ' <h4>资源名称:' + pointList[i].name + '</h4>' +
  244. ' </div>' +
  245. ' </div>' +
  246. ' </span>' +
  247. '<span>' +
  248. ' <div class="d-l-con">' +
  249. ' <div class="d-l-l-text">' +
  250. ' <h4>经纬度:' + pointList[i].longitude +','+ pointList[i].latitude + '</h4>' +
  251. ' </div>' +
  252. ' </div>' +
  253. ' </span>' +
  254. '<span>' +
  255. ' <div class="d-l-con">' +
  256. ' <div class="d-l-l-text">' +
  257. ' <h4>联系人:' + (pointList[i].contacts ? pointList[i].contacts : "") + '</h4>' +
  258. ' </div>' +
  259. ' </div>' +
  260. ' </span>' +
  261. '<span>' +
  262. ' <div class="d-l-con">' +
  263. ' <div class="d-l-l-text">' +
  264. ' <h4>电话:' + (pointList[i].phone ? pointList[i].phone : "") + '</h4>' +
  265. ' </div>' +
  266. ' </div>' +
  267. ' </span>' +
  268. '</div>'
  269. markersList.push(markersMap)
  270. // let icon = new window.L.Icon({
  271. // iconUrl: iconList[markersList[i].icon],
  272. // iconSize: [48, 48],
  273. // iconAnchor: [24, 40],
  274. // popupAnchor: [-3, -40],
  275. // shadowSize: [41, 41]
  276. // })
  277. // let markerClick = window.L.marker([markersList[i].lat, markersList[i].lng], {
  278. // icon: markersMap.icon
  279. // })
  280. // markerClick.on('click', function() {
  281. // let clickName = markersList[i].click
  282. // this.$emit(clickName, markersList[i].parameter)
  283. // })
  284. }
  285. setTimeout(() => {
  286. // this.$refs.supermap.clearM(false);
  287. this.$refs.supermap.setMarkers(markersList);
  288. // this.$refs.supermap.setMarkersByType(markersList, type);
  289. }, 500)
  290. },
  291. //救援物资库 落点
  292. eventPoints_rescueSupplies(type){
  293. console.log(777)
  294. let pointList = [];
  295. pointList.push({
  296. name:"白石村救援物资库",
  297. contacts:"张洁玲",
  298. phone:"13500805931",
  299. longitude:129.406,
  300. latitude:42.898
  301. });
  302. pointList.push({
  303. name:"延河路救援物资库",
  304. contacts:"王建军",
  305. phone:"13664407655",
  306. longitude:129.45,
  307. latitude:42.878
  308. });
  309. pointList.push({
  310. name:"兴安村救援物资库",
  311. contacts:"蔡雨虹",
  312. phone:"15754320117",
  313. longitude:129.486,
  314. latitude:42.925
  315. });
  316. pointList.push({
  317. name:"小白石村救援物资库",
  318. contacts:"吕国琴",
  319. phone:"15044076332",
  320. longitude:129.416,
  321. latitude:42.919
  322. });
  323. pointList.push({
  324. name:"上东沟救援物资库",
  325. contacts:"吴明月",
  326. phone:"15044076332",
  327. longitude:129.386,
  328. latitude:42.925
  329. });
  330. var markersList = []
  331. for (let i = 0; i < pointList.length; i++) {
  332. let markersMap = {
  333. lng: 124.59,
  334. lat: 43.02,
  335. icon: 'marker',
  336. bindPopupHtml: '',
  337. click: 'abc',
  338. parameter: pointList[i],
  339. keepBindPopup: false,
  340. isAggregation: true
  341. }
  342. markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
  343. markersMap.lng = pointList[i].longitude;
  344. markersMap.lat = pointList[i].latitude;
  345. markersMap.bindPopupHtml = '<div class="map-tip">' +
  346. '<span>' +
  347. ' <div class="d-l-con">' +
  348. ' <div class="d-l-l-text">' +
  349. ' <h4>资源名称:' + pointList[i].name + '</h4>' +
  350. ' </div>' +
  351. ' </div>' +
  352. ' </span>' +
  353. '<span>' +
  354. ' <div class="d-l-con">' +
  355. ' <div class="d-l-l-text">' +
  356. ' <h4>经纬度:' + pointList[i].longitude +','+ pointList[i].latitude + '</h4>' +
  357. ' </div>' +
  358. ' </div>' +
  359. ' </span>' +
  360. '<span>' +
  361. ' <div class="d-l-con">' +
  362. ' <div class="d-l-l-text">' +
  363. ' <h4>联系人:' + (pointList[i].contacts ? pointList[i].contacts : "") + '</h4>' +
  364. ' </div>' +
  365. ' </div>' +
  366. ' </span>' +
  367. '<span>' +
  368. ' <div class="d-l-con">' +
  369. ' <div class="d-l-l-text">' +
  370. ' <h4>电话:' + (pointList[i].phone ? pointList[i].phone : "") + '</h4>' +
  371. ' </div>' +
  372. ' </div>' +
  373. ' </span>' +
  374. '</div>'
  375. markersList.push(markersMap)
  376. // let icon = new window.L.Icon({
  377. // iconUrl: iconList[markersList[i].icon],
  378. // iconSize: [48, 48],
  379. // iconAnchor: [24, 40],
  380. // popupAnchor: [-3, -40],
  381. // shadowSize: [41, 41]
  382. // })
  383. // let markerClick = window.L.marker([markersList[i].lat, markersList[i].lng], {
  384. // icon: markersMap.icon
  385. // })
  386. // markerClick.on('click', function() {
  387. // let clickName = markersList[i].click
  388. // this.$emit(clickName, markersList[i].parameter)
  389. // })
  390. }
  391. setTimeout(() => {
  392. // this.$refs.supermap.clearM(false);
  393. this.$refs.supermap.setMarkers(markersList);
  394. // this.$refs.supermap.setMarkersByType(markersList, type);
  395. }, 500)
  396. },
  397. //救援队伍 落点
  398. eventPoints_rescueTeam(type){
  399. console.log(888)
  400. let pointList = [];
  401. pointList.push({
  402. name:"白石村救援队伍",
  403. contacts:"张洁玲",
  404. phone:"13500805931",
  405. longitude:129.426,
  406. latitude:42.898
  407. });
  408. pointList.push({
  409. name:"延河路救援队伍",
  410. contacts:"王建军",
  411. phone:"13664407655",
  412. longitude:129.47,
  413. latitude:42.878
  414. });
  415. pointList.push({
  416. name:"兴安村救援队伍",
  417. contacts:"蔡雨虹",
  418. phone:"15754320117",
  419. longitude:129.506,
  420. latitude:42.925
  421. });
  422. pointList.push({
  423. name:"小白石村救援队伍",
  424. contacts:"吕国琴",
  425. phone:"15044076332",
  426. longitude:129.436,
  427. latitude:42.919
  428. });
  429. pointList.push({
  430. name:"上东沟救援队伍",
  431. contacts:"吴明月",
  432. phone:"15044076332",
  433. longitude:129.406,
  434. latitude:42.925
  435. });
  436. var markersList = []
  437. for (let i = 0; i < pointList.length; i++) {
  438. let markersMap = {
  439. lng: 124.59,
  440. lat: 43.02,
  441. icon: 'marker',
  442. bindPopupHtml: '',
  443. click: 'abc',
  444. parameter: pointList[i],
  445. keepBindPopup: false,
  446. isAggregation: true
  447. }
  448. markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
  449. markersMap.lng = pointList[i].longitude;
  450. markersMap.lat = pointList[i].latitude;
  451. markersMap.bindPopupHtml = '<div class="map-tip">' +
  452. '<span>' +
  453. ' <div class="d-l-con">' +
  454. ' <div class="d-l-l-text">' +
  455. ' <h4>资源名称:' + pointList[i].name + '</h4>' +
  456. ' </div>' +
  457. ' </div>' +
  458. ' </span>' +
  459. '<span>' +
  460. ' <div class="d-l-con">' +
  461. ' <div class="d-l-l-text">' +
  462. ' <h4>经纬度:' + pointList[i].longitude +','+ pointList[i].latitude + '</h4>' +
  463. ' </div>' +
  464. ' </div>' +
  465. ' </span>' +
  466. '<span>' +
  467. ' <div class="d-l-con">' +
  468. ' <div class="d-l-l-text">' +
  469. ' <h4>联系人:' + (pointList[i].contacts ? pointList[i].contacts : "") + '</h4>' +
  470. ' </div>' +
  471. ' </div>' +
  472. ' </span>' +
  473. '<span>' +
  474. ' <div class="d-l-con">' +
  475. ' <div class="d-l-l-text">' +
  476. ' <h4>电话:' + (pointList[i].phone ? pointList[i].phone : "") + '</h4>' +
  477. ' </div>' +
  478. ' </div>' +
  479. ' </span>' +
  480. '</div>'
  481. markersList.push(markersMap)
  482. // let icon = new window.L.Icon({
  483. // iconUrl: iconList[markersList[i].icon],
  484. // iconSize: [48, 48],
  485. // iconAnchor: [24, 40],
  486. // popupAnchor: [-3, -40],
  487. // shadowSize: [41, 41]
  488. // })
  489. // let markerClick = window.L.marker([markersList[i].lat, markersList[i].lng], {
  490. // icon: markersMap.icon
  491. // })
  492. // markerClick.on('click', function() {
  493. // let clickName = markersList[i].click
  494. // this.$emit(clickName, markersList[i].parameter)
  495. // })
  496. }
  497. setTimeout(() => {
  498. // this.$refs.supermap.clearM(false);
  499. this.$refs.supermap.setMarkers(markersList);
  500. // this.$refs.supermap.setMarkersByType(markersList, type);
  501. }, 500)
  502. },
  503. //视联网 落点
  504. eventPoints_camera(type){
  505. console.log(999)
  506. let pointList = [];
  507. pointList.push({
  508. name:"白石村摄像头",
  509. contacts:"张洁玲",
  510. phone:"13500805931",
  511. longitude:129.406,
  512. latitude:42.918
  513. });
  514. pointList.push({
  515. name:"延河路摄像头",
  516. contacts:"王建军",
  517. phone:"13664407655",
  518. longitude:129.45,
  519. latitude:42.898
  520. });
  521. pointList.push({
  522. name:"兴安村摄像头",
  523. contacts:"蔡雨虹",
  524. phone:"15754320117",
  525. longitude:129.486,
  526. latitude:42.945
  527. });
  528. pointList.push({
  529. name:"小白石村摄像头",
  530. contacts:"吕国琴",
  531. phone:"15044076332",
  532. longitude:129.416,
  533. latitude:42.939
  534. });
  535. pointList.push({
  536. name:"上东沟摄像头",
  537. contacts:"吴明月",
  538. phone:"15044076332",
  539. longitude:129.386,
  540. latitude:42.945
  541. });
  542. var markersList = []
  543. for (let i = 0; i < pointList.length; i++) {
  544. let markersMap = {
  545. lng: 124.59,
  546. lat: 43.02,
  547. icon: 'marker',
  548. bindPopupHtml: '',
  549. click: 'abc',
  550. parameter: pointList[i],
  551. keepBindPopup: false,
  552. isAggregation: true
  553. }
  554. markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
  555. markersMap.lng = pointList[i].longitude;
  556. markersMap.lat = pointList[i].latitude;
  557. markersMap.bindPopupHtml = '<div class="map-tip">' +
  558. '<span>' +
  559. ' <div class="d-l-con">' +
  560. ' <div class="d-l-l-text">' +
  561. ' <h4>资源名称:' + pointList[i].name + '</h4>' +
  562. ' </div>' +
  563. ' </div>' +
  564. ' </span>' +
  565. '<span>' +
  566. ' <div class="d-l-con">' +
  567. ' <div class="d-l-l-text">' +
  568. ' <h4>经纬度:' + pointList[i].longitude +','+ pointList[i].latitude + '</h4>' +
  569. ' </div>' +
  570. ' </div>' +
  571. ' </span>' +
  572. '<span>' +
  573. ' <div class="d-l-con">' +
  574. ' <div class="d-l-l-text">' +
  575. ' <h4>联系人:' + (pointList[i].contacts ? pointList[i].contacts : "") + '</h4>' +
  576. ' </div>' +
  577. ' </div>' +
  578. ' </span>' +
  579. '<span>' +
  580. ' <div class="d-l-con">' +
  581. ' <div class="d-l-l-text">' +
  582. ' <h4>电话:' + (pointList[i].phone ? pointList[i].phone : "") + '</h4>' +
  583. ' </div>' +
  584. ' </div>' +
  585. ' </span>' +
  586. '</div>'
  587. markersList.push(markersMap)
  588. // let icon = new window.L.Icon({
  589. // iconUrl: iconList[markersList[i].icon],
  590. // iconSize: [48, 48],
  591. // iconAnchor: [24, 40],
  592. // popupAnchor: [-3, -40],
  593. // shadowSize: [41, 41]
  594. // })
  595. // let markerClick = window.L.marker([markersList[i].lat, markersList[i].lng], {
  596. // icon: markersMap.icon
  597. // })
  598. // markerClick.on('click', function() {
  599. // let clickName = markersList[i].click
  600. // this.$emit(clickName, markersList[i].parameter)
  601. // })
  602. }
  603. setTimeout(() => {
  604. // this.$refs.supermap.clearM(false);
  605. this.$refs.supermap.setMarkers(markersList);
  606. // this.$refs.supermap.setMarkersByType(markersList, type);
  607. }, 500)
  608. },
  609. /** 预览按钮操作 */
  610. preview(cameraParam) {
  611. this.showTVWall(cameraParam.code, cameraParam.name);
  612. },
  613. /* 电视墙替换开始 */
  614. showTVWall(channelCode, channelName) {
  615. let tvListJson = [
  616. {
  617. "switchTab": "2",
  618. "treeLabels": [
  619. {
  620. "id": null,
  621. "labelCode": "999",
  622. "labelName": "电视墙",
  623. "cameraType": null,
  624. "parentLabelCode": ""
  625. },
  626. {
  627. "id": "spcamera00010",
  628. "labelCode": channelCode,
  629. "labelName": channelName,
  630. "cameraType": "1",
  631. "parentLabelCode": "999"
  632. }
  633. ],
  634. "labelChannels": [
  635. {
  636. "labelCode": channelCode,
  637. "channelDates": [
  638. {
  639. "channelCode": channelCode,
  640. "channelName": channelName,
  641. "channelSn": null,
  642. "cameraType": "1",
  643. "online": "1",
  644. "cameraCode": "1"
  645. }
  646. ]
  647. }
  648. ]
  649. }
  650. ]
  651. this.$refs.TVWall.showTVWall(tvListJson, [{
  652. "channelId": channelCode
  653. }]);
  654. this.$refs.bottomMenu.showMeasure = false;
  655. this.$refs.bottomMenu.showChild = false;
  656. this.$refs.bottomMenu.showBanChild = false;
  657. this.$refs.bottomMenu.showChangChild = false;
  658. },
  659. abc(point){
  660. this.$refs.Jsmsdialog.outerVisible = true
  661. this.$refs.Jsmsdialog.setPoint(point);
  662. console.log('1111')
  663. }
  664. },
  665. }
  666. </script>
  667. <style>
  668. .map{
  669. position: fixed;
  670. z-index: 1;
  671. width: 100%;
  672. height: 100vh;
  673. left: 0px;
  674. }
  675. .map img{
  676. width: 100%;
  677. height: 100%;
  678. }
  679. .yj-topnav-div{
  680. position: fixed;
  681. top:85px;
  682. right: 400px;
  683. width: 60px;
  684. height: 60px;
  685. /*background: url("../assets/images/yj-topnavbg.png") no-repeat center;*/
  686. background-size: 100% 100%;
  687. border-radius: 50%;
  688. z-index: 99;
  689. }
  690. .yj-topnav-div i{
  691. color: #fff;
  692. font-size: 40px;
  693. line-height: 57px;
  694. cursor: pointer;
  695. }
  696. .yj-topnav{
  697. position: fixed;
  698. top:85px;
  699. transform: translateX(-50%);
  700. z-index: 2;
  701. display: flex;
  702. flex-direction: row;
  703. /*background: url("../assets/images/yj-topnavbg.png") no-repeat center;*/
  704. background-size: 100% 100%;
  705. padding: 12px 20px;
  706. left: 50%;
  707. align-items: center;
  708. font-size: 12px;
  709. color: #fff;
  710. }
  711. .yj-topnav a{
  712. display: block;
  713. /*background:#08388c;*/
  714. background: url("../assets/images/yj-topnavbg1-on.png") no-repeat center;
  715. background-size: 100% 100%;
  716. color: #fff;
  717. /*padding: 5px 15px;*/
  718. /*border-radius: 50px;*/
  719. margin-right: 15px;
  720. font-size: 14px;
  721. width: 120px;
  722. height: 42px;
  723. line-height: 42px;
  724. }
  725. .yj-topnav a:hover{
  726. color: #0bf3f7;
  727. }
  728. .yj-topnav a i{
  729. margin-right: 6px;
  730. }
  731. </style>