forest.vue 49 KB

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