forest.vue 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462
  1. <!--可视化公共模板 林业-->
  2. <template>
  3. <div class="visual-con">
  4. <!--头部-->
  5. <vheader></vheader>
  6. <!--主体-->
  7. <div class="visual-body">
  8. <!-- 左侧 -->
  9. <div class="leftbar" ref="left" style="height: 82%;">
  10. <!-- 通知公告 -->
  11. <Notification></Notification>
  12. <!-- 公司列表 -->
  13. <dv-border-box-13
  14. backgroundColor="rgba(12, 19, 38, .90)"
  15. style="padding-bottom: 1rem"
  16. >
  17. <div class="third_contain">
  18. <!-- 三级搜索框 -->
  19. <el-input v-model="queryParams.enterpriseName" class="thirdInputModel" placeholder="按企业名称搜索 " style="color:white" @change="enterpriseList">
  20. </el-input>
  21. <div style="height: 4%;"></div>
  22. <div class="sp_sbg">
  23. <div
  24. style="width: 100%;height: 9%;display: flex;"
  25. v-for="(e,index) in companyList"
  26. :key="index"
  27. class="sp_sbg_div"
  28. :class=" deviceBtn == index ? 'on': 'onno'"
  29. >
  30. <el-button
  31. style="width: 100%;"
  32. :style="deviceBtn == index ? 'color:#38CCEA' : 'color:#fff'"
  33. :class=" deviceBtn == index ? 'highlightedBtn': 'notHighlightedBtn'"
  34. @click="getDeviceList(e,index)">
  35. <el-tooltip :content="e.enterpriseName" placement="top" v-if="(e.enterpriseName!=null||e.enterpriseName!='')&&e.enterpriseName.length>8">
  36. <span style="position: relative;left: -18%;">
  37. {{ e.enterpriseName.substring(0,8) }}...
  38. </span>
  39. </el-tooltip>
  40. <span style="position: relative;left: -18%;" v-else>
  41. {{ e.enterpriseName }}
  42. </span>
  43. </el-button>
  44. <div
  45. class="thirdDevice_icon thirdHighlightedBtn"
  46. @click="thirdDeviceHashighLighted(e,index)"
  47. >
  48. </div>
  49. </div>
  50. </div>
  51. <!--分页-->
  52. <div class="paging">
  53. <el-button type="button" @click="enterpriseList(10,queryParams.pageNum-1)">上一页
  54. </el-button>
  55. <span>第{{ queryParams.pageNum }}页</span>
  56. <el-button type="button" :disabled="nextbutton"
  57. @click="enterpriseList(10,queryParams.pageNum+1)">下一页
  58. </el-button>
  59. </div>
  60. </div>
  61. </dv-border-box-13>
  62. </div>
  63. <!-- 地图 -->
  64. <!--<supermap ref="supermap" style="width: 100%;height: 100vh;" class="indexSupermapClass" :mapDiv="'forestMap'"-->
  65. <!--:dynamicPlotting="false"-->
  66. <!--:mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"-->
  67. <!--@showEventDialog="showEventDialog"></supermap>-->
  68. <supermap ref="supermap" @previewBefore="previewBefore" @preview="preview" @jump="jump"
  69. @fatherMethod="fatherMethod" :showLayer="true">
  70. </supermap>
  71. <div class="sj-layer-switch">
  72. <div style="position: relative;left:23%; display: flex;">
  73. <el-popover placement="bottom" v-model="visible_dw" title="定位" trigger="manual" popper-class="sj-layer-pop">
  74. <span class="tk-close el-icon-close" style="right: 0.5rem;top: 0.5rem;" @click="getLocation(1)"></span>
  75. <el-button type="primary" size="mini"
  76. style="width:100%; float: right;cursor: pointer;padding: 7px 15px;font-size: 12px;border-radius: 3px"
  77. @click="lonAndLatQueryCamera">查询附近摄像头
  78. </el-button>
  79. <a class="leader-tcqh" slot="reference" @click="getLocation(1)">
  80. <img src="../assets/images/leader-tcbg7.png"/>
  81. <p style="color:#fff">定位</p>
  82. </a>
  83. </el-popover>
  84. </div>
  85. </div>
  86. <!-- 右侧 -->
  87. <div class="rightbar rightbar-index" ref="right" style="height: 81%;">
  88. <div class="right-item1">
  89. <!-- 天气 -->
  90. <div class="forthis">
  91. <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)">
  92. <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;" />
  93. <div class="i-list-con small-bottom-margin h-18">
  94. <el-row :gutter="20" v-if="todatWeather">
  95. <el-col :span="9">
  96. <div class="weather-img">
  97. <img v-if="weatherinformationWeather==1" src="../assets/images/integrated/weather/qing-1.png">
  98. <img v-if="weatherinformationWeather==2" src="../assets/images/integrated/weather/duoyun-2.png">
  99. <img v-if="weatherinformationWeather==3" src="../assets/images/integrated/weather/yin-3.png">
  100. <img v-if="weatherinformationWeather==4" src="../assets/images/integrated/weather/zhenyu-4.png">
  101. <img v-if="weatherinformationWeather==5"
  102. src="../assets/images/integrated/weather/leizhenyu-5.png">
  103. <img v-if="weatherinformationWeather==6"
  104. src="../assets/images/integrated/weather/leizhenyubingbao-6.png">
  105. <img v-if="weatherinformationWeather==7" src="../assets/images/integrated/weather/yujiaxue-7.png">
  106. <img v-if="weatherinformationWeather==8" src="../assets/images/integrated/weather/xiaoyu-8.png">
  107. <img v-if="weatherinformationWeather==9||weatherinformationWeather==22"
  108. src="../assets/images/integrated/weather/zhongyu-9.png">
  109. <img v-if="weatherinformationWeather==10||weatherinformationWeather==23"
  110. src="../assets/images/integrated/weather/dayu-10.png">
  111. <img v-if="weatherinformationWeather==11||weatherinformationWeather==24"
  112. src="../assets/images/integrated/weather/baoyu-11.png">
  113. <img v-if="weatherinformationWeather==12||weatherinformationWeather==25"
  114. src="../assets/images/integrated/weather/dabaoyu-12.png">
  115. <img v-if="weatherinformationWeather==13||weatherinformationWeather==26"
  116. src="../assets/images/integrated/weather/tedabaoyu-13.png">
  117. <img v-if="weatherinformationWeather==14"
  118. src="../assets/images/integrated/weather/zhenxue-14.png">
  119. <img v-if="weatherinformationWeather==15"
  120. src="../assets/images/integrated/weather/xiaoxue-15.png">
  121. <img v-if="weatherinformationWeather==16||weatherinformationWeather==27"
  122. src="../assets/images/integrated/weather/zhongxue-16.png">
  123. <img v-if="weatherinformationWeather==17||weatherinformationWeather==28"
  124. src="../assets/images/integrated/weather/daxue-17.png">
  125. <img v-if="weatherinformationWeather==18||weatherinformationWeather==29"
  126. src="../assets/images/integrated/weather/baoxue-18.png">
  127. <img v-if="weatherinformationWeather==19" src="../assets/images/integrated/weather/wu-19.png">
  128. <img v-if="weatherinformationWeather==20" src="../assets/images/integrated/weather/dongyu-20.png">
  129. <img v-if="weatherinformationWeather==21"
  130. src="../assets/images/integrated/weather/shachenbao-21.png">
  131. <img v-if="weatherinformationWeather==30" src="../assets/images/integrated/weather/fuchen-30.png">
  132. <img v-if="weatherinformationWeather==31"
  133. src="../assets/images/integrated/weather/yangsha-31.png">
  134. <img v-if="weatherinformationWeather==32"
  135. src="../assets/images/integrated/weather/qiangshachenbao-32.png">
  136. <span v-if="weatherinformationWeather==1">晴</span>
  137. <span v-if="weatherinformationWeather==2">多云</span>
  138. <span v-if="weatherinformationWeather==3">阴</span>
  139. <span v-if="weatherinformationWeather==4">阵雨</span>
  140. <span v-if="weatherinformationWeather==5">雷阵雨</span>
  141. <span v-if="weatherinformationWeather==6">雷阵雨伴有冰雹</span>
  142. <span v-if="weatherinformationWeather==7">雨夹雪</span>
  143. <span v-if="weatherinformationWeather==8">小雨</span>
  144. <span v-if="weatherinformationWeather==9">中雨</span>
  145. <span v-if="weatherinformationWeather==10">大雨</span>
  146. <span v-if="weatherinformationWeather==11">暴雨</span>
  147. <span v-if="weatherinformationWeather==12">大暴雨</span>
  148. <span v-if="weatherinformationWeather==13">特大暴雨</span>
  149. <span v-if="weatherinformationWeather==14">阵雪</span>
  150. <span v-if="weatherinformationWeather==15">小雪</span>
  151. <span v-if="weatherinformationWeather==16">中雪</span>
  152. <span v-if="weatherinformationWeather==17">大雪</span>
  153. <span v-if="weatherinformationWeather==18">暴雪</span>
  154. <span v-if="weatherinformationWeather==19">雾</span>
  155. <span v-if="weatherinformationWeather==20">冻雨</span>
  156. <span v-if="weatherinformationWeather==21">沙尘暴</span>
  157. <span v-if="weatherinformationWeather==22">小雨—中雨</span>
  158. <span v-if="weatherinformationWeather==23">中雨—大雨</span>
  159. <span v-if="weatherinformationWeather==24">大雨—暴雨</span>
  160. <span v-if="weatherinformationWeather==25">暴雨—大暴雨</span>
  161. <span v-if="weatherinformationWeather==26">大暴雨—特大暴雨</span>
  162. <span v-if="weatherinformationWeather==27">小雪—中雪</span>
  163. <span v-if="weatherinformationWeather==28">中雪—大雪</span>
  164. <span v-if="weatherinformationWeather==29">大雪—暴雪</span>
  165. <span v-if="weatherinformationWeather==30">浮尘</span>
  166. <span v-if="weatherinformationWeather==31">扬沙</span>
  167. <span v-if="weatherinformationWeather==32">强沙尘暴</span>
  168. </div>
  169. </el-col>
  170. <el-col :span="15">
  171. <div class="weather-info">
  172. <ul>
  173. <li>风力:{{ weatherinformationPower }}级</li>
  174. <li>低温:{{ weatherinformationLow }}℃</li>
  175. <li v-if="weatherinformationDirection==1">风向:东风</li>
  176. <li v-if="weatherinformationDirection==2">风向:东南风</li>
  177. <li v-if="weatherinformationDirection==3">风向:南风</li>
  178. <li v-if="weatherinformationDirection==4">风向:西南风</li>
  179. <li v-if="weatherinformationDirection==5">风向:西风</li>
  180. <li v-if="weatherinformationDirection==6">风向:西北风</li>
  181. <li v-if="weatherinformationDirection==7">风向:北风</li>
  182. <li v-if="weatherinformationDirection==8">风向:东北风</li>
  183. <li>高温:{{ weatherinformationHigh }}℃</li>
  184. <li>火险:{{ weatherinformationLevelValue }}
  185. </li>
  186. <li>湿度:{{ weatherinformationTemperature }}</li>
  187. </ul>
  188. </div>
  189. </el-col>
  190. </el-row>
  191. <el-row :gutter="20" v-else>
  192. <el-col :span="24">
  193. <div class="weather-img">
  194. 暂无天气信息!
  195. </div>
  196. </el-col>
  197. </el-row>
  198. <div class="firestate" v-if="todatWeather">
  199. <div
  200. :class="weatherinformationLevel=='forest_weatherinformation_level_1'? 'state-block1 state-on':'state-block1'">
  201. </div>
  202. <div
  203. :class="weatherinformationLevel=='forest_weatherinformation_level_2'? 'state-block2 state-on':'state-block2'">
  204. </div>
  205. <div
  206. :class="weatherinformationLevel=='forest_weatherinformation_level_3'? 'state-block3 state-on':'state-block3'">
  207. </div>
  208. <div
  209. :class="weatherinformationLevel=='forest_weatherinformation_level_4'? 'state-block4 state-on':'state-block4'">
  210. </div>
  211. <div
  212. :class="weatherinformationLevel=='forest_weatherinformation_level_5'? 'state-block5 state-on':'state-block5'">
  213. </div>
  214. </div>
  215. </div>
  216. </dv-border-box-13>
  217. </div>
  218. <!-- 设备列表 -->
  219. <div class="container">
  220. <div class="topBar">设备列表</div>
  221. <!-- 输入框 -->
  222. <el-input v-model="cameraListName" class="inputModel" placeholder="请输入要查询的设备名称 " clearable style="color:white" @change="search" >
  223. </el-input>
  224. <!-- 菜单 -->
  225. <div class="mainContainer">
  226. <!-- 列表 -->
  227. <div class="listItem" v-for="(e,idx) in cameraListSearch" :key="idx" @click="deviceShow(e)">
  228. <img class="itemPic"
  229. v-bind:src="e.cameraImg == null ? require('@/assets/images/video-plaza/shiLianWangImg/no-camera.png'):e.cameraImg" >
  230. <div class="itemArea" >
  231. <h4>{{ e.cameraName }}</h4>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. <!-- 企业信息列表 -->
  238. <div class="container1">
  239. <div class="topBar">企业上报信息</div>
  240. <!-- 输入框 -->
  241. <el-input v-model="regulatoryinformationQueryParams.infoTitle" class="inputModel" placeholder="请输入要查询的企业上报信息 " clearable style="color:white" @change="search" >
  242. </el-input>
  243. <!-- 菜单 -->
  244. <div class="mainContainer">
  245. <!-- 列表 -->
  246. <div class="listItem" v-for="(e,idx) in regulatoryinformation" :key="idx" @click="showCompanyDialog(e)">
  247. <div class="itemArea">
  248. <h4>{{ e.infoTitle }}</h4>
  249. </div>
  250. </div>
  251. </div>
  252. </div>
  253. <!--分页-->
  254. <div class="paging comPaging">
  255. <el-button type="button" @click="getSelectRegulatoryinformationByEnterpriseId(10,regulatoryinformationQueryParams.pageNum-1)">上一页
  256. </el-button>
  257. <span style="position: relative;bottom: 10%;">第{{ regulatoryinformationQueryParams.pageNum }}页</span>
  258. <el-button type="button" :disabled="companyInfoNextbutton"
  259. @click="getSelectRegulatoryinformationByEnterpriseId(10,regulatoryinformationQueryParams.pageNum+1)">下一页
  260. </el-button>
  261. </div>
  262. </div>
  263. <vBottomMenu ref="bottomMenu" @stopAudio="stopAudio"></vBottomMenu>
  264. </div>
  265. <audio id="resource" ref="up" :src="audioSrc" controls style="display: none;"></audio>
  266. <eventLocation ref="eventLocation"></eventLocation>
  267. <TVWall ref="TVWall"></TVWall>
  268. <TVWalls ref="TVWalls"></TVWalls>
  269. <wrj ref="wrj"></wrj>
  270. <CompanyProjectDialog ref="companyProjectDialog"></CompanyProjectDialog>
  271. <DeviceDialog
  272. :localMark="localMark"
  273. @toTvWall='toTvWall'
  274. @toTvWall_cgq='toTvWall_cgq'
  275. @jump='jump'
  276. ref="deviceDialog"
  277. />
  278. </div>
  279. </template>
  280. <script>
  281. import dateChoose from '@/views/date.vue' //日历
  282. /** ----------------------------------weosocket开始------------------------------------- */
  283. import Cookies from 'js-cookie'
  284. /** ----------------------------------weosocket结束------------------------------------- */
  285. import {
  286. getTodayEvents,
  287. getEventPush,
  288. getDeptEventCount,
  289. getWeather,
  290. getEventList,
  291. getEventByEventType,
  292. getEventByReportorOrder,
  293. getExposureStage,
  294. selectByMenuId,
  295. initByCameras,
  296. enterpriseList,
  297. enterpriseById,
  298. selectRegulatoryinformationByEnterpriseId,
  299. getRegulatoryinformation
  300. } from '@/api/forest';
  301. import {
  302. getMonitorDeviceAndDataList,
  303. selectDeviceType,
  304. selectCameraByDeptId,
  305. getSensorListByDeptId,
  306. getDlblistBydeptId,
  307. selectKeyAreaList,
  308. getRegionalFlag,
  309. getCamerasByDeptId,
  310. selectByCameraId,
  311. selectByDeviceId,
  312. selectByBroadcastId, selectRecorderByDeptId
  313. } from "@/api/monitor";
  314. import {
  315. getNearEvent
  316. } from '@/api/event'
  317. import Notification from '@/components/CloudPic_Notification' //通知
  318. // import ExceedEvent from '@/components/CloudPic_ExceedEvent' //超期事件
  319. import EventList from '@/components/CloudPic_EventList' //事件列表
  320. import ReportRanking from '@/components/CloudPic_ReportRanking' //上报排行
  321. import supermap from '@/components/supermap-2.5d' //超图
  322. // import supermapNotProcessed from '@/components/supermap' //超图
  323. // import supermapProcessed from '@/components/supermap' //超图
  324. import vheader from '@/components/v-header.vue' //一体化共用头部
  325. import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
  326. import eventLocation from '@/components/eventLocation.vue' //事件定位弹窗
  327. import TVWall from '@/components/TVWall.vue' //电视墙弹窗
  328. import TVWalls from "@/components/TVWalls.vue"; //电视墙弹窗
  329. import wrj from '@/components/wrj.vue' //无人机
  330. import eventdetailsdialog from '@/views/eventdetailsdialog.vue' //事件详情弹窗
  331. import firespread from '@/views/firespread.vue' //事件详情弹窗
  332. import DeviceDialog from '@/components/DeviceDialog';
  333. import chart from './from/dvCapsuleChart.vue'
  334. import {getUserProfile} from "@/api/system/user";
  335. import CompanyProjectDialog from '@/components/companyProjectDialog'
  336. /** ----------------------------------摄像头预览开始------------------------------------- */
  337. import {
  338. getDahuaVideoServer
  339. } from '@/api/dahua/dahua'
  340. import DHWs from '@/dahua/lib/DHWs'
  341. import Firespread from "./firespread";
  342. /** ----------------------------------摄像头预览结束------------------------------------- */
  343. import {
  344. selectConfigKey
  345. } from "@/api/system/config";
  346. let echarts = require('echarts')
  347. export default {
  348. components: {
  349. Firespread,
  350. chart,
  351. supermap,
  352. // supermapNotProcessed,
  353. // supermapProcessed,
  354. vheader,
  355. vBottomMenu,
  356. eventLocation,
  357. TVWall,
  358. TVWalls,
  359. wrj,
  360. dateChoose,
  361. eventdetailsdialog,
  362. firespread,
  363. Notification, // 左侧通知公告栏
  364. // ExceedEvent, // 超期事件栏
  365. EventList, // 事件列表
  366. ReportRanking, // 上报排行
  367. CompanyProjectDialog,
  368. DeviceDialog
  369. },
  370. created() {
  371. this.selectByMenuId()
  372. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  373. window.showDialog = this.showDialog
  374. window.choseLayerSwitching = this.choseLayerSwitching
  375. window.choseLayerSwitchingList = this.choseLayerSwitchingList
  376. window.choseLayerSwitchingList_Data = this.choseLayerSwitchingList_Data
  377. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  378. const DHWsInstance = DHWs.getInstance();
  379. this.ws = DHWsInstance;
  380. },
  381. mounted() {
  382. // 初始化地图数据
  383. this.getSuperMapUrl();
  384. setTimeout(() => {
  385. this.enterpriseList(10,1);
  386. this.getWeather(this.getCurrentDataStr())
  387. }, 2000)
  388. this.bottomMenuList() //获取底部公共组件消息和任务
  389. setTimeout(() => {
  390. this.title = '四平市态势感知平台'
  391. }, 1000)
  392. },
  393. data() {
  394. return {
  395. canSelectDate:true,//日历点击是否可用
  396. nextbutton:false,
  397. //警报MP3文件
  398. audioSrc: require('@/assets/jingbao.mp3'),
  399. calendarDay: this.getCurrentDataStr(),
  400. noticeContent: '', //通知公告
  401. //左侧获取事件信息统计
  402. totalStr: '000000',
  403. totalAllEvent: 0,
  404. aiTotal: '',
  405. newReport: '',
  406. otherTotal: '',
  407. readyFinish: '',
  408. readySure: '',
  409. total: '',
  410. aiTotalPre: '',
  411. newReportPre: '',
  412. otherTotalPre: '',
  413. readyFinishPre: '',
  414. readySurePre: '',
  415. currentPageNum:true,
  416. //左侧部门事件数量
  417. forestFarm: [],
  418. //右侧天气
  419. todatWeather: false,
  420. weatherinformationDirection: '',
  421. weatherinformationHigh: '',
  422. weatherinformationLevel: '',
  423. weatherinformationLevelValue: '', //火险登记中文
  424. weatherinformationLow: '',
  425. weatherinformationPower: '',
  426. weatherinformationTemperature: '',
  427. weatherinformationTime: '',
  428. weatherinformationWeather: '',
  429. //右侧曝光台
  430. exposureStageList: [],
  431. //右侧事件列表
  432. eventList: [],
  433. pageSize: 10,
  434. pageNum: 1,
  435. eventTypeIdDl: [],
  436. eventTypeId: [],
  437. eventListnew: [],
  438. eventListAll: [],
  439. eventSearch: '', //事件列表搜索
  440. listCurrentIndex1: '',
  441. // ----------------------------------事件分类柱状----------------------------------------
  442. eventKind: {},
  443. showEventKind: false,
  444. // ----------------------------------上报排行----------------------------------------
  445. reportList: {
  446. data: []
  447. },
  448. /** ----------------------------------weosocket开始------------------------------------- */
  449. weosocket: false,
  450. websock: '',
  451. setIntervalWesocketPush: null,
  452. websockSid: {
  453. userId: '',
  454. eventTypeDl: '',
  455. eventType: '',
  456. },
  457. /** ----------------------------------weosocket结束------------------------------------- */
  458. /** ----------------------------------摄像头预览开始------------------------------------- */
  459. activePanel: 'key1',
  460. isLogin: false,
  461. cameraParams: [],
  462. ws: null,
  463. /** ----------------------------------摄像头预览结束------------------------------------- */
  464. markersList: [], //点位列表
  465. cameraList: [] ,//摄像头列表
  466. title:'',
  467. eventDlType:[],
  468. eventXlType:[],
  469. /** ----------------------------------定位功能-----------------------------------------*/
  470. visible_dw: false,
  471. positioning: {
  472. lon: "",
  473. lat: ""
  474. },
  475. /** ----------------------------------定位功能-----------------------------------------*/
  476. thirdInput:'', // 输入框label(三级)
  477. cameraMarkersList:[],
  478. queryParams: {
  479. pageNum: 1,
  480. pageSize: 10,
  481. enterpriseName: null
  482. },
  483. cameraListName:"",
  484. totalAllCompany:0,
  485. companyList:[], // 企业列表
  486. cameraListSearch:[],
  487. cameraListSearchAll:[],
  488. regulatoryinformation:[],
  489. totalAllregulatoryinformation:0,
  490. deviceBtn:null,
  491. localMark: "She",
  492. regulatoryinformationQueryParams: {
  493. pageNum: 1,
  494. pageSize: 10,
  495. infoTitle: null,
  496. enterpriseId: null,
  497. },
  498. companyInfoNextbutton:false
  499. }
  500. },
  501. watch:{
  502. cameraListName(val) {
  503. this.cameraListSearch = [];
  504. for(let i=0;i<this.cameraListSearchAll.length;i++){
  505. if(this.cameraListSearchAll[i].cameraName.indexOf(val) !== -1){
  506. this.cameraListSearch.push(this.cameraListSearchAll[i])
  507. }
  508. }
  509. },
  510. 'queryParams.enterpriseName':function(val){
  511. this.enterpriseList(this.queryParams.pageSize, this.queryParams.pageNum, val)
  512. },
  513. 'regulatoryinformationQueryParams.infoTitle':function(val){
  514. this.getSelectRegulatoryinformationByEnterpriseId(this.regulatoryinformationQueryParams.pageSize, this.regulatoryinformationQueryParams.pageNum, val)
  515. },
  516. },
  517. /** ----------------------------------weosocket开始------------------------------------- */
  518. metaInfo () {
  519. return {
  520. title:this.title,
  521. meta:[{
  522. charset: "utf-8"
  523. },
  524. {
  525. name: "viewport",
  526. content: "width=device-width, initial-scale=1.0,minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
  527. }]
  528. }
  529. },
  530. /** ----------------------------------weosocket结束------------------------------------- */
  531. methods: {
  532. // 获取企业信息列表
  533. getSelectRegulatoryinformationByEnterpriseId(pageSize, pageNum) {
  534. if (pageNum < 1) {
  535. this.$modal.msg('当前已是第一页')
  536. return
  537. } else if (pageNum > this.totalAllregulatoryinformation / 10 + 1) {
  538. this.$modal.msg('当前已是最后一页')
  539. return
  540. }
  541. this.regulatoryinformationQueryParams.pageSize = pageSize
  542. this.regulatoryinformationQueryParams.pageNum = pageNum
  543. selectRegulatoryinformationByEnterpriseId(this.regulatoryinformationQueryParams).then(res => {
  544. this.regulatoryinformation = res.rows
  545. this.totalAllregulatoryinformation = res.total
  546. })
  547. },
  548. showCompanyDialog(e){
  549. getRegulatoryinformation(e.id).then(res => {
  550. // 处理图片路径
  551. let attachPaths
  552. if(res.data.attachPaths){
  553. attachPaths = res.data.attachPaths.split(",")
  554. }
  555. // 处理附件路径
  556. let fileUrl
  557. if(res.data.fileUrl){
  558. fileUrl = res.data.fileUrl.split(",")
  559. fileUrl.forEach((e,idx) => {
  560. fileUrl[idx] = e.split("+")
  561. })
  562. }
  563. console.log('fileUrl',fileUrl)
  564. let detailInfo = {
  565. title:res.data.infoTitle || '',
  566. deptName:res.data.deptName || '',
  567. content:res.data.infoContent || '',
  568. attachPaths,
  569. fileUrl,
  570. videos:[],
  571. others:[]
  572. }
  573. this.$refs.companyProjectDialog.open(detailInfo)
  574. })
  575. },
  576. /**
  577. * 企业列表接口
  578. */
  579. enterpriseList(pageSize, pageNum=1){
  580. if (pageNum < 1) {
  581. this.$modal.msg('当前已是第一页')
  582. return
  583. } else if(pageNum > this.totalAllCompany/10+1){
  584. this.$modal.msg('当前已是最后一页')
  585. return;
  586. }
  587. this.queryParams.pageSize = pageSize;
  588. this.queryParams.pageNum = pageNum;
  589. enterpriseList(this.queryParams).then(res => {
  590. this.companyList = res.rows
  591. this.totalAllCompany = res.total
  592. })
  593. },
  594. toTvWall(cameraParam) {
  595. this.preview(cameraParam)
  596. },
  597. preview(cameraParam) {
  598. this.showTVWall(cameraParam.code, cameraParam.name, cameraParam.type);
  599. },
  600. deviceShow(e) {
  601. this.showTVWall(e.cameraCode, e.cameraName, e.cameraType);
  602. },
  603. showTVWall(channelCode, channelName, type) {
  604. let tvListJson = [
  605. {
  606. switchTab: "2",
  607. treeLabels: [
  608. {
  609. id: null,
  610. labelCode: "999",
  611. labelName: "电视墙",
  612. cameraType: null,
  613. parentLabelCode: "",
  614. },
  615. {
  616. id: "spcamera00010",
  617. labelCode: channelCode,
  618. labelName: channelName,
  619. cameraType: type,
  620. parentLabelCode: "999",
  621. },
  622. ],
  623. labelChannels: [
  624. {
  625. labelCode: channelCode,
  626. channelDates: [
  627. {
  628. channelCode: channelCode,
  629. channelName: channelName,
  630. channelSn: null,
  631. cameraType: type,
  632. online: "1",
  633. cameraCode: "1",
  634. },
  635. ],
  636. },
  637. ],
  638. },
  639. ];
  640. this.$refs.TVWall.showTVWall(tvListJson, [
  641. {
  642. channelId: channelCode,
  643. },
  644. ]);
  645. this.$refs.bottomMenu.showMeasure = false;
  646. this.$refs.bottomMenu.showChild = false;
  647. this.$refs.bottomMenu.showBanChild = false;
  648. this.$refs.bottomMenu.showChangChild = false;
  649. },
  650. // 查询收藏列表
  651. getCompanyList(pageSize, pageNum) {
  652. },
  653. //三级列表选择(获取列表)
  654. getDeviceList(e,idx){
  655. setTimeout(() => {
  656. console.log('eeeeeeeeeeee',e)
  657. },3000)
  658. this.deviceBtn=idx
  659. let that = this;
  660. let cameraMarkersList = [];
  661. let markersMap = {
  662. lng: 124.59,
  663. lat: 43.02,
  664. icon: "enterprise",
  665. bindPopupHtml: "",
  666. click: "previewBefore",
  667. parameter: "",
  668. name: e.id,
  669. keepBindPopup: false,
  670. isAggregation: false,
  671. };
  672. markersMap.lng = e.longitude;
  673. markersMap.lat = e.latitude;
  674. markersMap.icon = "enterprise";
  675. markersMap.click = 'previewBefore'
  676. markersMap.bindPopupHtml = "";
  677. cameraMarkersList.push(markersMap);
  678. enterpriseById(e.id).then(res => {
  679. markersMap.parameter = {
  680. id: e.id,
  681. name: e.enterpriseName,
  682. enterpriseName:e.enterpriseName,
  683. cameras: res.data.cameras,
  684. devices: res.data.devices,
  685. }
  686. that.cameraListSearch = res.data.cameras
  687. that.cameraListSearchAll = res.data.cameras
  688. setTimeout(() => {
  689. that.$refs.supermap.clearM();
  690. that.$refs.supermap.clearMRadius();
  691. that.$refs.supermap.setMarkers(cameraMarkersList);
  692. }, 3000);
  693. })
  694. that.regulatoryinformationQueryParams = {
  695. pageNum: 1,
  696. pageSize: 10,
  697. infoTitle: null,
  698. enterpriseId: e.id,
  699. },
  700. selectRegulatoryinformationByEnterpriseId(that.regulatoryinformationQueryParams).then(res => {
  701. that.regulatoryinformation = res.rows
  702. that.totalAllregulatoryinformation = res.total
  703. })
  704. },
  705. thirdDeviceHashighLighted(e){
  706. let that = this;
  707. enterpriseById(e.id).then(res => {
  708. that.toTvWall_cgq(res.data);
  709. })
  710. },
  711. toTvWall_cgq(cameraParam) {
  712. const treeLabels = [
  713. {
  714. id: null,
  715. labelCode: '999',
  716. labelName: '电视墙',
  717. cameraType: null,
  718. parentLabelCode: ''
  719. }
  720. ]
  721. const labelChannels = []
  722. for (let i in cameraParam.cameras) {
  723. treeLabels.push({
  724. id: null,
  725. labelCode: cameraParam.cameras[i].cameraCode,
  726. labelName: cameraParam.cameras[i].cameraName,
  727. cameraType: cameraParam.cameras[i].cameraType,
  728. parentLabelCode: '999'
  729. })
  730. labelChannels.push({
  731. labelCode: cameraParam.cameras[i].cameraCode,
  732. channelDates: [
  733. {
  734. channelCode: cameraParam.cameras[i].cameraCode,
  735. channelName: cameraParam.cameras[i].cameraName,
  736. channelSn: null,
  737. cameraType: cameraParam.cameras[i].cameraType,
  738. online: '1',
  739. cameraCode: '1'
  740. }
  741. ]
  742. })
  743. }
  744. const dianshiqiang = [
  745. {
  746. switchTab: '2',
  747. treeLabels: treeLabels,
  748. labelChannels: labelChannels
  749. }
  750. ]
  751. if (cameraParam.cameras.length != null) {
  752. this.$refs.TVWall.showTVWall1(
  753. cameraParam.longitude,
  754. cameraParam.latitude,
  755. dianshiqiang
  756. );
  757. }
  758. },
  759. previewBefore(company) {
  760. this.$refs.deviceDialog.open([
  761. {
  762. key:"名称",
  763. value:company.name,
  764. cameras:company.cameras,
  765. devices:company.devices
  766. },
  767. ])
  768. },
  769. getLocation(event) {
  770. this.visible_dw = !this.visible_dw
  771. if (!this.visible_dw) {
  772. this.positioning.lon = ''
  773. this.positioning.lat = ''
  774. this.$refs.supermap.clearDW()
  775. }
  776. this.$refs.supermap.setIsObtainLaAndLon(this.visible_dw)
  777. },
  778. lonAndLatQueryCamera() {
  779. if (this.positioning.lon == '' || this.positioning.lon * 1 < -180 || this.positioning.lon * 1 > 180) {
  780. this.$message.warning('经度整数部分为大于-180小于180范围,小数部分为0到15位!')
  781. return
  782. }
  783. if (this.positioning.lat == '' || this.positioning.lat * 1 < -90 || this.positioning.lat * 1 > 90) {
  784. this.$message.warning('纬度整数部分为大于-90小于90范围,小数部分为0到15位!')
  785. return
  786. }
  787. this.$refs.supermap.lonAndLatPlacement(this.positioning.lon, this.positioning.lat)
  788. const params = Object.assign({})
  789. params.longitude = this.positioning.lon;
  790. params.latitude = this.positioning.lat;
  791. params.type = '21'
  792. initByCameras(params).then(res => {
  793. if (res.data != null && res.data.length != 0) {
  794. this.$refs.TVWall.showTVWall1(this.positioning.lon, this.positioning.lat, res.data);
  795. } else {
  796. this.$message.warning('周边无摄像头信息!')
  797. }
  798. })
  799. },
  800. setPositioning(longitude, latitude) {
  801. let that = this
  802. that.positioning.lon = longitude
  803. that.positioning.lat = latitude
  804. },
  805. showDefaultImg(){
  806. let img = event.srcElement;
  807. img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF0AAABACAYAAAB4OXuGAAAE2UlEQVR4nO2b2XbaSBCGS2hhByEwCXaSizxArucJ5v1fYG5mJnbGrGIVYlHO30RYYkmM7e4Sk/7O0YVt3JL+Lv1dVS2ML3/8GZFGKTktt3q06Axo0RnQojOgRWdAi86AFp0BLToDWnQGLLmnNLJ5179EbpEuRXTDMKjV+UxG7nofpGA+ofHgm5SxpaiSy5lXLTgolKrSxpajjHGttqIGyZ6+Y+r3aLvdZOF+f0qhWCWnUJJ+HiWiLxdT2qxXKk71Kiw7Tw7JF12njAxkQnRkO6blUM5U8uCxw3qXtlOgcq1JTqG4z+m3mw0F8zHNJgOKttssaPTmsIlerLhUdW+Ofp8zTSpVG5QvVmjU+6p0LUieS+aEs9iLUyifFDyJadnktm6F9agimPm0mPm0Wi6kFUbEFemHgq9XS1EBwtOL5RoZxi4W4PN4IuaToZLriqKIJsNH6edRLjp8HFEcEwZzGvXu9/2OYDamRvvjPsKRO6sSXRXKRUf0JtkJ+tRgQtSHwUx4uvi87ZwbSsK12VRv3pJl2zQbD8QhA/WefmDR0YmOHh5z1aBXtBPcEReJrEoWykXfrNLZSKnipn5GtOWL5afPr0Ml11X3Oj8El49ye1mFC9pu1vtCCDbitu5ouZiQkTOpVGnsF1L60UKQDRZ2FT2XGJbsBQ2wmvd+/zNu+NRNY3Lm05HUaylW6iJDUglLno708FeLFLqSyGpkFimY6Krbljb+Odgq0tm4T+swoHK9Kbp7MVhEl/MJTcd9EemygH/Dx5Pg3CqKMdbeyzKYiQP+bpo2RdFWLJyH2QsWVnj9ehXSdNx7dfRjZwuZSnJ3C2sNxi+W668a+zlkoq2HiD4X1fDc2ALsfFEcfv/+xT0ZRHK92UkVaBjL7z1Qqea98A4uI9P99HLNO/Jc2AIqVoj/EqqNd6n/xVODSVS5s5VZ0SvuzdkCBfbQaN1dbAWlqne04ewPHoStqCSTote8d0dFE1oDKQsyDKo22mJyngPqgUo9PYmTUVf0flSTqa0a+G3N66QqUoB2K7p/WHDdZocsp7D/GybHshwRsecWWMvJp+oCMebUp4XkGuAcmYl00fto3R0JjoZY3G5FpA+7/4o8Pwnyba/9MbU4xuwmKt2XR3RPRvJbuOfIhOg7j/5AzsHiiMoVRxKkk9hgQJ6fBN1Lr/2JnPxTZQuhsRGS3HuFf+Op4IRddAjSaH8QFpBkPPzvp310VLR+/yGV0+NpcW9uRZpJYm14nyq8kKEgU+Hee2X1dERn4+Yu/RZAFJE/+PasRhc+M3z8h+qtWzL3YxgizURmkxRcjNt/yMT7N2yRjsUQEZ4UHBUp+i2XdBax6TF8/JtWYZAe3z5+crD3mQVYREdxgjwbXh4jGlzdrxQuL0/h8NrG6MQCGzOfDM7+jQMW0WuNdqrvgawEoh1G6yXEC+zhwounZur3XzyuDJg8/Sl9g8dC8M0bdRSx+CJDQf6+Xoc0O5iELMAiOiISLV3YwnTUffO+B6pXHFmFRXTYCPz7d0W/tcuAFp0BLToDSjwdbdVr+PqLZf2P3nup1FsqTnM1yLEXhtfirgkposNKrv1bFDLbBlLsBSV59/4v/TX1M0j2dG0zp9ApIwNadAa06Axo0RnQojOgRWdAi86AFp0BLbpqiOg74YbqU8Iw/dEAAAAASUVORK5CYII=";
  808. },
  809. //初始化地图数据
  810. getSuperMapUrl(){
  811. getUserProfile().then(response => {
  812. let mapDeptId=response.mapDeptId
  813. let num = 0;
  814. if (mapDeptId == "365") {
  815. num = 0;
  816. } else if (mapDeptId == "369") {
  817. num = 1;
  818. } else if (mapDeptId == "371") {
  819. num = 2;
  820. } else if (mapDeptId == "373") {
  821. num = 3;
  822. } else if (mapDeptId == "372") {
  823. num = 4;
  824. } else if (mapDeptId == "370") {
  825. num = 5;
  826. }
  827. this.$refs.supermap.removeAllviewer(mapDeptId, -1);
  828. });
  829. },
  830. dropLocation(lat, lng, eventCode) {
  831. this.$refs.supermap.dropLocation(lat, lng)
  832. },
  833. getFirespread(eventCode) {
  834. this.$refs.eventdetailsdialog.showEventDialog(eventCode);
  835. this.$refs.eventdetailsdialog.fireControlViewList()
  836. },
  837. getCurrentDataStr() {
  838. let date = new Date()
  839. let y = date.getFullYear()
  840. let m = date.getMonth() + 1
  841. m = m < 10 ? '0' + m : m
  842. let d = date.getDate()
  843. d = d < 10 ? '0' + d : d
  844. return y + '-' + m + '-' + d
  845. },
  846. fatherMethod(dianshiqiang, longitude, latitude, item) {
  847. this.$refs.TVWalls.showTVWall(
  848. dianshiqiang, {
  849. longitude: longitude,
  850. latitude: latitude,
  851. },
  852. item
  853. );
  854. },
  855. getWeather(day) {
  856. let that = this
  857. //右侧获取天气信息
  858. getWeather({
  859. day: day
  860. }).then(res => {
  861. if (res.code == 200) {
  862. if (0==res.data.length) {
  863. this.todatWeather = false
  864. } else {
  865. this.todatWeather = true
  866. this.weatherinformationDirection = res.data[0].weatherinformationDirection
  867. this.weatherinformationHigh = res.data[0].weatherinformationHigh
  868. this.weatherinformationLevel = res.data[0].weatherinformationLevel
  869. this.weatherinformationLevelValue = res.data[0].weatherinformationLevelValue
  870. this.weatherinformationLow = res.data[0].weatherinformationLow
  871. this.weatherinformationPower = res.data[0].weatherinformationPower
  872. this.weatherinformationTemperature = res.data[0].weatherinformationTemperature
  873. this.weatherinformationTime = res.data[0].weatherinformationTime
  874. this.weatherinformationWeather = res.data[0].weatherinformationWeather
  875. }
  876. } else {
  877. this.todatWeather = false
  878. }
  879. })
  880. },
  881. getSupermap(day, loading) {
  882. let that = this
  883. getNearEvent('', '', day, loading, that.eventTypeIdDl, that.eventTypeId).then(res => {
  884. that.markersList = [];
  885. if (res.data != null && res.data.length > 0) {
  886. for (let i = 0; i < res.data.length; i++) {
  887. let markersMap = {
  888. lng: 124.59,
  889. lat: 43.02,
  890. icon: 'marker',
  891. bindPopupHtml: '',
  892. click: '',
  893. parameter: '',
  894. keepBindPopup: false,
  895. isAggregation: true
  896. }
  897. // if (res.data.length > 200) {
  898. // markersMap.isAggregation = true
  899. // }
  900. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount == 0) {
  901. markersMap.click = 'showEventDialog'
  902. markersMap.icon = 'sj-icon-map-xinshangbao'
  903. }
  904. if (res.data[i].eventStatusValue == 'forest_event_status_1' && res.data[i].urgeCount > 0) {
  905. markersMap.click = 'showEventDialog'
  906. markersMap.icon = 'sj-icon-map-cuiban'
  907. } else if (res.data[i].eventStatusValue == 'forest_event_status_2') {
  908. markersMap.click = 'showEventDialog'
  909. markersMap.icon = 'sj-icon-map-qianshou'
  910. markersMap.isAggregation = false
  911. } else if (res.data[i].eventStatusValue == 'forest_event_status_5') {
  912. markersMap.click = 'showEventDialog'
  913. markersMap.icon = 'sj-icon-map-banjie'
  914. markersMap.isAggregation = false
  915. } else if (res.data[i].eventStatusValue == 'forest_event_status_6') {
  916. markersMap.click = 'showEventDialog'
  917. markersMap.icon = 'sj-icon-map-guidang'
  918. } else if (res.data[i].eventStatusValue == 'forest_event_status_7') {
  919. markersMap.click = 'showEventDialog'
  920. markersMap.icon = 'sj-icon-map-queren'
  921. }
  922. markersMap.parameter = res.data[i].eventCode
  923. markersMap.lng = res.data[i].longitude
  924. markersMap.lat = res.data[i].latitude
  925. markersMap.bindPopupHtml = '<div class="map-tip">' +
  926. // '<span>' +
  927. // ' <div class="d-l-con">' +
  928. // ' <div class="d-l-l-text">' +
  929. // ' <h4>经纬度:' + res.data[i].longitude + ',' + res.data[i].latitude + '</h4>' +
  930. // ' </div>' +
  931. // ' </div>' +
  932. // ' </span>' +
  933. '<span>' +
  934. ' <div class="d-l-con">' +
  935. ' <div class="d-l-l-text">' +
  936. ' <h4>事件名称:' + res.data[i].eventName + '</h4>' +
  937. ' </div>' +
  938. ' </div>' +
  939. ' </span>' +
  940. '<span>' +
  941. ' <div class="d-l-con">' +
  942. ' <div class="d-l-l-text">' +
  943. ' <h4>事件时间:' + res.data[i].createTime + '</h4>' +
  944. ' </div>' +
  945. ' </div>' +
  946. ' </span>';
  947. if (res.data[i].pictureType == 'image' && res.data[i].picturePath != null && res.data[i]
  948. .picturePath != '') {
  949. markersMap.bindPopupHtml += '<span>' +
  950. ' <div class="d-l-con">' +
  951. ' <div class="d-l-l-text">' +
  952. '<img src="' + res.data[i].picturePath + '" style="width: 150px;height: 100px"/>' +
  953. ' </div>' +
  954. ' </div>' +
  955. ' </span>'
  956. }
  957. markersMap.bindPopupHtml += '</div>'
  958. that.markersList.push(markersMap)
  959. }
  960. setTimeout(() => {
  961. that.$refs.supermap.clearM()
  962. that.$refs.supermap.clearMRadius();
  963. that.$refs.supermap.setMarkers(that.markersList)
  964. }, 3000)
  965. } else {
  966. setTimeout(() => {
  967. that.$refs.supermap.clearM()
  968. that.$refs.supermap.clearMRadius();
  969. }, 3000)
  970. }
  971. this.canSelectDate = true
  972. })
  973. },
  974. /** ----------------------------------底部按钮公用组件开始------------------------------------- */
  975. bottomMenuList() {
  976. this.$refs.bottomMenu.selectTaskList() //获取任务列表
  977. this.$refs.bottomMenu.selectMessageList() //获取消息列表
  978. this.$refs.bottomMenu.linBanTreeselect() //查询林班层级树结构
  979. this.$refs.bottomMenu.deptTreeselect() //查询林场部门树结构
  980. },
  981. showDialog(click) {
  982. console.log(click)
  983. if (click == 'eventLocation') {
  984. this.$refs.eventLocation.showEventLocation()
  985. this.$refs.supermap.isEditableLayers = false
  986. this.$refs.bottomMenu.showChild = false
  987. this.$refs.bottomMenu.showBanChild = false
  988. this.$refs.bottomMenu.showMeasure = false
  989. this.$refs.bottomMenu.showChangChild = false
  990. } else if (click == 'editableLayers') {
  991. this.$refs.bottomMenu.showChild = false
  992. this.$refs.bottomMenu.showBanChild = false
  993. this.$refs.bottomMenu.showChangChild = false
  994. if (!this.$refs.bottomMenu.showMeasure) {
  995. this.$refs.bottomMenu.showMeasure = true
  996. } else {
  997. this.$refs.bottomMenu.showMeasure = false
  998. }
  999. } else if (click == 'layerSwitching') {
  1000. this.$refs.supermap.isEditableLayers = false
  1001. this.$refs.bottomMenu.showBanChild = false
  1002. this.$refs.bottomMenu.showMeasure = false
  1003. this.$refs.bottomMenu.showChangChild = false
  1004. if (!this.$refs.bottomMenu.showChild) {
  1005. this.$refs.bottomMenu.showChild = true
  1006. } else {
  1007. this.$refs.bottomMenu.showChild = false
  1008. }
  1009. } else if (click == 'TVWall') {
  1010. console.log("this.$refs.TVWall=", this.$refs.TVWall)
  1011. this.$refs.TVWall.showTVWall();
  1012. this.$refs.supermap.isEditableLayers = false
  1013. this.$refs.bottomMenu.showChild = false
  1014. this.$refs.bottomMenu.showMeasure = false
  1015. this.$refs.bottomMenu.showBanChild = false
  1016. this.$refs.bottomMenu.showChangChild = false
  1017. } else if (click == 'wrj') {
  1018. this.$refs.wrj.showWrj();
  1019. this.$refs.supermap.isEditableLayers = false
  1020. this.$refs.bottomMenu.showChild = false
  1021. this.$refs.bottomMenu.showBanChild = false
  1022. this.$refs.bottomMenu.showMeasure = false
  1023. this.$refs.bottomMenu.showChangChild = false
  1024. } else if (click == 'forestban') {
  1025. this.$refs.supermap.isEditableLayers = false
  1026. this.$refs.bottomMenu.showChild = false
  1027. this.$refs.bottomMenu.showChangChild = false
  1028. this.$refs.bottomMenu.showMeasure = false
  1029. if (!this.$refs.bottomMenu.showBanChild) {
  1030. this.$refs.bottomMenu.showBanChild = true
  1031. } else {
  1032. this.$refs.bottomMenu.showBanChild = false
  1033. }
  1034. } else if (click == 'forestchang') {
  1035. this.$refs.supermap.isEditableLayers = false
  1036. this.$refs.bottomMenu.showBanChild = false
  1037. this.$refs.bottomMenu.showMeasure = false
  1038. this.$refs.bottomMenu.showChild = false
  1039. if (!this.$refs.bottomMenu.showChangChild) {
  1040. this.$refs.bottomMenu.showChangChild = true
  1041. } else {
  1042. this.$refs.bottomMenu.showChangChild = false
  1043. }
  1044. }
  1045. },
  1046. //选择图层
  1047. choseLayerSwitching(url, isClear) {
  1048. this.$refs.supermap.layerSwitching(url, isClear)
  1049. },
  1050. //选择图层(传递数组)
  1051. choseLayerSwitchingList(urlList) {
  1052. this.$refs.supermap.layerSwitchingList(urlList)
  1053. },
  1054. //选择图层(传递数组) 带数据
  1055. choseLayerSwitchingList_Data(urlList) {
  1056. this.$refs.supermap.layerSwitchingList_Data(urlList)
  1057. },
  1058. /** ----------------------------------底部按钮公用组件结束------------------------------------- */
  1059. },
  1060. }
  1061. </script>
  1062. <style rel="stylesheet/scss" lang="scss" scoped>
  1063. @import '@/assets/styles/base.scss';
  1064. .highlightedBtn{
  1065. background: url('~@/assets/images/video-plaza/highLightBtn.png') 0 0 no-repeat; /* 高亮背景 */
  1066. background-size: cover;
  1067. }
  1068. .notHighlightedBtn{
  1069. background: none;
  1070. }
  1071. .third_contain{
  1072. overflow: hidden;
  1073. overflow-y: scroll;
  1074. width: 95%;
  1075. height: 100%;
  1076. padding-left:18px;
  1077. ::v-deep .el-button{
  1078. width: 70px;
  1079. height: 100%;
  1080. margin-left: 0 !important;
  1081. >span{
  1082. display: inline-block;
  1083. width: 100%;
  1084. text-align: center;
  1085. }
  1086. >span >span{
  1087. left: 0 !important;
  1088. display: inline-block;
  1089. width: 100%;
  1090. text-align: center;
  1091. }
  1092. }
  1093. ::v-deep .el-button:not(:nth-child(1)){
  1094. }
  1095. .thirdDevice_icon{
  1096. width: 10%;
  1097. margin: 1.7% 15px 0 2%;
  1098. height: 70%;
  1099. cursor: pointer;
  1100. }
  1101. }
  1102. .paging {
  1103. height: 4%;
  1104. padding: 0rem .3rem;
  1105. display: flex;
  1106. justify-content: center;
  1107. align-content: center;
  1108. span {
  1109. color: #2bacf7;
  1110. display: flex;
  1111. align-items: center;
  1112. padding: 0 1rem;
  1113. }
  1114. button {
  1115. width: 70px;
  1116. padding: 0 0.3rem;
  1117. height: 1.5rem;
  1118. background-color: #112543;
  1119. color: #2bacf7;
  1120. border: 1px solid #33467f;
  1121. }
  1122. button:hover {
  1123. padding: 0 0.3rem;
  1124. height: 1.5rem;
  1125. background-color: #112543;
  1126. color: #0ff7c5;
  1127. border: 1px solid #1d657f;
  1128. }
  1129. }
  1130. .comPaging{
  1131. position: absolute;
  1132. bottom: 0%;
  1133. right: 5%;
  1134. }
  1135. .thirdInputModel{
  1136. margin-top: 20px;
  1137. // margin-left: 8%;
  1138. // width: 95%;
  1139. }
  1140. .sp_sbg{
  1141. overflow: hidden;
  1142. overflow-y: scroll;
  1143. width: 100%;
  1144. height: 80%;
  1145. .sp_sbg_div{
  1146. background-color: rgb(35, 76, 172,0.2);
  1147. margin: 5px 0px;
  1148. border-radius: 5px;
  1149. .el-button{
  1150. background: none;
  1151. outline: 0px;
  1152. border: 0px;
  1153. }
  1154. }
  1155. .sp_sbg_div.on{
  1156. background-color: rgb(35, 76, 172,0.4);
  1157. .el-button{
  1158. span{
  1159. color: #01FBFE!important;
  1160. text-shadow: 0px 0px 3px #01FBFE;
  1161. }
  1162. }
  1163. }
  1164. }
  1165. .sip_img{
  1166. opacity: 0.8;
  1167. }
  1168. .sip_imgon{
  1169. opacity: 1;
  1170. box-shadow: 0px 5px 5px #0b3555;
  1171. }
  1172. .thirdHighlightedBtn{
  1173. background: url('~@/assets/images/video-plaza/camera1_on.png') 0 0 no-repeat; /* 高亮背景 */
  1174. background-size: 100% 100%;
  1175. }
  1176. .thirdDevice_icon{
  1177. width: 10%;
  1178. margin: 1.7% 15px 0 2%;
  1179. height: 70%;
  1180. cursor: pointer;
  1181. }
  1182. .container{
  1183. width:98%;
  1184. height:70%;
  1185. position: relative;
  1186. left: 1%;
  1187. z-index: 20;
  1188. background: url('~@/assets/images/video-plaza/bg-sl.png') 0 0 no-repeat; /* 高亮背景 */
  1189. border-bottom: 1px solid #1b497d;
  1190. border-right: 1px solid #1b497d;
  1191. }
  1192. .container1{
  1193. width:48%;
  1194. height:95%;
  1195. position: relative;
  1196. left: 1%;
  1197. z-index: 20;
  1198. background: url('~@/assets/images/video-plaza/bg-sl.png') 0 0 no-repeat; /* 高亮背景 */
  1199. border-bottom: 1px solid #1b497d;
  1200. border-right: 1px solid #1b497d;
  1201. .listItem{
  1202. cursor: pointer;
  1203. }
  1204. }
  1205. .topBar{
  1206. position: absolute;
  1207. top: 0;
  1208. z-index: 99;
  1209. width: 100%;
  1210. height: 4%;
  1211. text-indent: 23px;
  1212. line-height: 1.1;
  1213. color: #fff;
  1214. font-size: 18px;
  1215. font-weight: 700;
  1216. background: url('~@/assets/images/video-plaza/rightBar.png') 0 0 no-repeat
  1217. }
  1218. .mainContainer{
  1219. overflow: hidden scroll;
  1220. position: absolute;
  1221. width: 90%;
  1222. height: 80%;
  1223. margin: 7% auto auto 5%;
  1224. }
  1225. .listItem{
  1226. display: flex;
  1227. justify-content: space-around;
  1228. height: 9%;
  1229. width: 100%;
  1230. margin: 0 auto;
  1231. }
  1232. .listItem:not(:nth-child(1)){
  1233. margin-top: 6%;
  1234. }
  1235. .itemPic{
  1236. width: 24%;
  1237. height: 100%;
  1238. }
  1239. .itemArea{
  1240. font-size: 15px;
  1241. white-space: nowrap;
  1242. width: 73%;
  1243. overflow: hidden;
  1244. text-overflow: ellipsis;
  1245. margin:auto auto auto 2%;
  1246. color: #fff;
  1247. }
  1248. .itemArea:hover {
  1249. white-space: normal;
  1250. overflow: visible;
  1251. }
  1252. .itemArea >h3{
  1253. font-size: 20px;
  1254. overflow: hidden;
  1255. text-overflow: ellipsis;
  1256. white-space: nowrap;
  1257. }
  1258. .itemArea >span{
  1259. font-size: 16px;
  1260. }
  1261. .inputModel{
  1262. width: 100%;
  1263. margin-top: 14%;
  1264. padding: 0 5%;
  1265. }
  1266. ::v-deep .el-input__inner{
  1267. background-color: #0e3271ba ;
  1268. box-shadow: inset 0 0 10px 2px #1b497d;
  1269. border: 1px solid #205b8b;
  1270. color: white;
  1271. }
  1272. </style>
  1273. <style lang="scss">
  1274. @import '@/assets/styles/base.scss';
  1275. .el-table__cell{
  1276. cursor: pointer;
  1277. }
  1278. .is-leaf{
  1279. cursor: default; // 更多标题指针默认
  1280. }
  1281. .is-dark{
  1282. display: none !important;
  1283. }
  1284. .bottomRight {
  1285. .el-table .el-table__header-wrapper th,
  1286. .el-table .el-table__fixed-header-wrapper th {
  1287. background-color: $searchBG;
  1288. }
  1289. .el-table td.el-table__cell,
  1290. .el-table th.el-table__cell.is-leaf {
  1291. border-bottom: 1px $tableBorder;
  1292. }
  1293. .el-table--border,
  1294. .el-table--border::after {
  1295. border: 1px $tableBorder;
  1296. background-color: $searchBG
  1297. }
  1298. .el-table--border {
  1299. .el-table--group {
  1300. border: 1px $tableBorder;
  1301. }
  1302. .el-table__cell {
  1303. border-right: 1px $tableBorder;
  1304. ;
  1305. }
  1306. }
  1307. .el-table::before {
  1308. background: $searchBG;
  1309. }
  1310. .el-table {
  1311. background: $searchBG;
  1312. color: $inBlue;
  1313. thead {}
  1314. tr {
  1315. background: $searchBG;
  1316. }
  1317. td {
  1318. text-align: center;
  1319. }
  1320. .el-table__header-wrapper {
  1321. th {
  1322. color: $inBlue;
  1323. font-size: .8rem;
  1324. }
  1325. }
  1326. thead.is-group {
  1327. .el-table__cell {
  1328. text-align: center;
  1329. background: $searchBG;
  1330. border-bottom: 1px $tableBorder;
  1331. border-right: 1px $tableBorder;
  1332. padding: 0;
  1333. font-weight: normal;
  1334. }
  1335. }
  1336. }
  1337. .el-table__empty-block {
  1338. min-height: auto;
  1339. }
  1340. .el-table__empty-text {
  1341. line-height: 30px;
  1342. }
  1343. .el-table__header {
  1344. width: auto !important
  1345. }
  1346. .el-table__empty-block {
  1347. width: auto !important
  1348. }
  1349. .el-table__body-wrapper {
  1350. .el-table__body {
  1351. width: auto !important
  1352. }
  1353. }
  1354. .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
  1355. background-color: #0f3655;
  1356. }
  1357. }
  1358. .sj-layer-switch {
  1359. width: 100%;
  1360. position: fixed;
  1361. bottom: 4rem;
  1362. display: flex;
  1363. // left: 21%;
  1364. z-index: 10;
  1365. justify-content: space-between;
  1366. }
  1367. .leader-tcqh {
  1368. width: fit-content;
  1369. height: fit-content;
  1370. text-align: center;
  1371. color: #fff !important;
  1372. font-size: 0.6rem;
  1373. margin-right: 1rem;
  1374. display: flex;
  1375. flex-direction: column;
  1376. img {
  1377. margin-bottom: 3px;
  1378. }
  1379. p {
  1380. font-size: 16px;
  1381. }
  1382. }
  1383. .leader-tcqh img {
  1384. width: 50px;
  1385. margin: 0 auto;
  1386. }
  1387. .leader-tcqh:hover {
  1388. color: #fff !important;
  1389. }
  1390. .tk-close {
  1391. width: 1.3rem;
  1392. height: 1.3rem;
  1393. color: #346ebc;
  1394. font-size: 1.3rem;
  1395. position: absolute;
  1396. right: 0.8rem;
  1397. top: 0.8rem;
  1398. cursor: pointer;
  1399. }
  1400. </style>