vBottomMenu.vue 77 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103
  1. <template>
  2. <div class="btm-box">
  3. <img class="light" src="../assets/images/integrated/btm-light.png"/>
  4. <div class="btm-left" :class="btmTipIndent">
  5. <div class="btm-left-tip">
  6. <div class="btm-left-block btm-left-state-c1"></div>
  7. 新上报
  8. </div>
  9. <div class="btm-left-tip">
  10. <div class="btm-left-block btm-left-state-c2"></div>
  11. 催办
  12. </div>
  13. <div class="btm-left-tip">
  14. <div class="btm-left-block btm-left-state-c3"></div>
  15. 已签收
  16. </div>
  17. <!-- div class="btm-left-tip">
  18. <div class="btm-left-block btm-left-state-c4"></div>
  19. 联动
  20. </div> -->
  21. <div class="btm-left-tip">
  22. <div class="btm-left-block btm-left-state-c5"></div>
  23. 办结
  24. </div>
  25. <div class="btm-left-tip">
  26. <div class="btm-left-block btm-left-state-c6"></div>
  27. 归档
  28. </div>
  29. <div class="btm-legend" @click="btmIndent">
  30. <span>图例</span>
  31. <i class="el-icon-caret-right" v-if="this.btmTipIndent !== 'btm-tip-to-right'"></i>
  32. <i class="el-icon-caret-left" v-if="this.btmTipIndent == 'btm-tip-to-right'"></i>
  33. </div>
  34. </div>
  35. <div class="bottom-menu-normal">
  36. <div v-for="(fastMenu,index) in fastMenu" :key="index" class="btm-m-con">
  37. <a><i :class="fastMenu.icon" @click.stop="showDialog(fastMenu.click)"></i><a
  38. @click.stop="showDialog(fastMenu.click)">{{ fastMenu.name }}</a>
  39. <div v-if="showChild && fastMenu.click == 'layerSwitching'" class="nav-child">
  40. <el-button type="primary"
  41. @click.stop="choseLayerSwitching(null,true)"
  42. class="nav-child-btn" plain>矢量图
  43. </el-button>
  44. <el-button type="primary"
  45. @click.stop="choseLayerSwitching('http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/baishanyingxiang',true)"
  46. class="nav-child-btn" plain>影像图
  47. </el-button>
  48. <!-- <el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  49. @click.stop="closeChild"></el-button> -->
  50. </div>
  51. <div v-if="showMeasure && fastMenu.click == 'editableLayers'" class="nav-child">
  52. <el-button type="primary"
  53. @click.stop="choseMeasuringDistance"
  54. class="nav-child-btn" plain>测距
  55. </el-button>
  56. <el-button type="primary"
  57. @click.stop="choseMeasuringArea"
  58. class="nav-child-btn" plain>测面
  59. </el-button>
  60. <el-button type="primary"
  61. @click.stop="choseMeasuringClear"
  62. class="nav-child-btn" plain>清除
  63. </el-button>
  64. <!-- <el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  65. @click.stop="closeChild"></el-button> -->
  66. </div>
  67. <!-- 林斑 -->
  68. <div v-show="showBanChild && fastMenu.click == 'forestban'" class="nav-child">
  69. <div class="forestban">
  70. <div class="forestban-con">
  71. <!-- <el-input-->
  72. <!-- placeholder="输入关键字进行过滤"-->
  73. <!-- v-model="filterbanText">-->
  74. <!-- </el-input>-->
  75. <el-tree :data="deptBanOptionsLiandong" ref="banDept" node-key="id" :check-strictly="true"
  76. :filter-node-method="filterbanNode" @node-click="handlebanNodeClick" :accordion="true"
  77. empty-text=""
  78. :props="defaultProps"></el-tree>
  79. </div>
  80. <div class="forestban-right">
  81. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterban"
  82. @change="searchFilterban(filterchang)">
  83. </el-input>
  84. <el-checkbox-group v-model="banCheckList_Data">
  85. <el-checkbox v-for="(item,index) in filterbanList" :label="item"
  86. @change="handleCheckedCitiesChangeBan_Data">
  87. {{ item.farmName }}
  88. </el-checkbox>
  89. </el-checkbox-group>
  90. </div>
  91. <el-button type="danger" icon="el-icon-close"
  92. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  93. @click.stop="closeBanChild"></el-button>
  94. </div>
  95. </div>
  96. <!-- 林场 -->
  97. <div v-show="showChangChild && fastMenu.click == 'forestchang'" class="nav-child">
  98. <div class="forestban">
  99. <div class="forestban-con">
  100. <!-- <el-input-->
  101. <!-- placeholder="输入关键字进行过滤"-->
  102. <!-- v-model="filterchangText">-->
  103. <!-- </el-input>-->
  104. <el-tree :data="deptChangOptionsLiandong" ref="changDept" node-key="id"
  105. :check-strictly="true" :filter-node-method="filterchangNode"
  106. @node-click="handlechangNodeClick" :accordion="true" empty-text="加载中,请稍候"
  107. :props="defaultProps"></el-tree>
  108. </div>
  109. <div class="forestban-right">
  110. <el-input placeholder="请输入内容" prefix-icon="el-icon-search" v-model="filterchang"
  111. @change="searchFilterchang(filterchang)">
  112. </el-input>
  113. <el-checkbox-group v-model="changCheckList" @change="handleCheckedCitiesChangeChang">
  114. <el-checkbox v-for="(item,index) in filterchangList" :label="item.farmAddress">
  115. {{ item.farmName }}
  116. </el-checkbox>
  117. </el-checkbox-group>
  118. </div>
  119. <el-button type="danger" icon="el-icon-close"
  120. style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
  121. @click.stop="closeChangChild"></el-button>
  122. </div>
  123. </div>
  124. </a>
  125. </div>
  126. </div>
  127. <div class="btm-right">
  128. <el-popover placement="top" trigger="click" :disabled="taskCount==0">
  129. <div class="btm-r-pop-info">
  130. <div class="btm-r-pop-info-box" v-for="(item,index) in taskList">
  131. <div class="btm-r-pop-info-tit">
  132. <h3>{{ item.taskSourceValue }}</h3>
  133. </div>
  134. <div class="btm-r-pop-info-con">
  135. <div class="btm-r-pop-info-list">
  136. <div class="btm-r-pop-info-list-name">标题</div>
  137. <div class="btm-r-pop-info-list-text">{{ item.taskTitle }}</div>
  138. </div>
  139. <div class="btm-r-pop-info-list">
  140. <div class="btm-r-pop-info-list-name">发起人</div>
  141. <div class="btm-r-pop-info-list-text">{{ item.sendPersonName }}</div>
  142. </div>
  143. <div class="btm-r-pop-info-list">
  144. <div class="btm-r-pop-info-list-name">发起时间</div>
  145. <div class="btm-r-pop-info-list-text">{{ item.taskSendTime }}</div>
  146. </div>
  147. <div class="btm-r-pop-info-list">
  148. <div class="btm-r-pop-info-list-name">关联事件</div>
  149. <div class="btm-r-pop-info-list-text">{{ item.eventName }}</div>
  150. </div>
  151. <div class="btm-r-pop-info-list">
  152. <div class="btm-r-pop-info-list-name">催办状态</div>
  153. <div class="btm-r-pop-info-list-text" style="color: red" v-if="item.isUrged==1">
  154. 任务催办中,请及时处理!!
  155. </div>
  156. <div class="btm-r-pop-info-list-text" v-else>正常</div>
  157. </div>
  158. </div>
  159. <div class="btm-r-pop-info-btm">
  160. <el-link type="success" @click="showEventDialog( item.eventCode )">查看详情</el-link>
  161. <div class="btm-r-pop-info-btm-btn">
  162. <el-button type="danger" @click="refusedTask(item.taskId,item.eventCode)">拒绝
  163. </el-button>
  164. <el-button type="primary" @click="receiveTask(item.taskId,item.eventCode)">领取
  165. </el-button>
  166. </div>
  167. </div>
  168. </div>
  169. </div>
  170. <el-badge :value="taskCount" slot="reference" :hidden="taskCount==0">
  171. <el-button size="small" icon="el-icon-bank-card">任务</el-button>
  172. </el-badge>
  173. </el-popover>
  174. <el-popover placement="top" trigger="click" :disabled="messageCount==0">
  175. <div class="btm-r-pop-info">
  176. <div class="btm-r-pop-info-box" v-for="(item,index) in messageList">
  177. <div class="btm-r-pop-info-con">
  178. <div class="btm-r-pop-info-list">
  179. <div class="btm-r-pop-info-list-name">标题</div>
  180. <div class="btm-r-pop-info-list-text">{{ item.title }}</div>
  181. </div>
  182. <div class="btm-r-pop-info-list">
  183. <div class="btm-r-pop-info-list-name">消息类型</div>
  184. <div class="btm-r-pop-info-list-text" v-if="item.type ==1">部门消息</div>
  185. <div class="btm-r-pop-info-list-text" v-if="item.type ==2">用户消息</div>
  186. </div>
  187. <div class="btm-r-pop-info-list">
  188. <div class="btm-r-pop-info-list-name">内容</div>
  189. <div class="btm-r-pop-info-list-text">
  190. <h4 class="line-h-1 w-100p" v-html="item.content">{{ item.content }}</h4>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="btm-r-pop-info-btm">
  195. <el-link type="success" v-if="item.eventCode!=null&&item.type ==1" @click="showEventDialog_message(item.eventCode)">
  196. 查看事件详情
  197. </el-link>
  198. <div class="btm-r-pop-info-btm-btn" v-else>
  199. <el-button type="primary" @click="selectMessageById(item.id)">标记已读
  200. </el-button>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. <el-badge :value="messageCount" slot="reference" :hidden="messageCount==0">
  206. <el-button size="small" icon="el-icon-chat-line-round">消息</el-button>
  207. </el-badge>
  208. </el-popover>
  209. <!-- 警报铃 必须放在这,放在别处不好使 -->
  210. <div class="bell" v-if="eventWarn" @click="updateAlertFalse">
  211. <div class="dot"></div>
  212. <div class="pulse"></div>
  213. <div class="pulse-big"></div>
  214. </div>
  215. <!--<el-badge type="primary">-->
  216. <!--<el-button size="small" icon="el-icon-bell" @click="updateAlertFalse">警报</el-button>-->
  217. <!--</el-badge>-->
  218. <el-badge type="warning">
  219. <el-button size="small" icon="el-icon-refresh-right" @click="refresh">刷新</el-button>
  220. </el-badge>
  221. </div>
  222. <!-- 事件详情弹层 -->
  223. <el-dialog title="事件详情" :visible.sync="eventDialog" v-if="eventDialog" customClass="customWidth" append-to-body
  224. @close="cancelEventShow()">
  225. <div class="dia-event-info">
  226. <el-row>
  227. <!-- 左侧 -->
  228. <el-col :span="18" class="dia-left">
  229. <div ref="imageTofile" style="height: 75vh;">
  230. <!-- 应急预案 -->
  231. <div class="dia-left-top">
  232. <div class="dia-left-top-tit">应急预案</div>
  233. <div class="dia-left-top-carousel">
  234. <el-carousel height="30px" direction="vertical" :interval="2000">
  235. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  236. <a
  237. :href="visuForestCloudYuAnBo.fileUrl">{{ visuForestCloudYuAnBo.reserveName }}</a>
  238. </el-carousel-item>
  239. <el-carousel-item v-else>
  240. <a href="#">未选预案</a>
  241. </el-carousel-item>
  242. </el-carousel>
  243. </div>
  244. </div>
  245. <!-- 应急预案end -->
  246. <!-- 地图 -->
  247. <supermapTaskDialog ref="supermapTaskDialog" style="position: absolute; top:0;left: 0;"
  248. :mapDiv="'taskDialogSuperMap'"
  249. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  250. :codes="['9fa5']" :isSideBySide="false" :isdynamicPlotting="false"/>
  251. <!-- 地图end -->
  252. </div>
  253. </el-col>
  254. <!-- 左侧end -->
  255. <!-- 右侧 -->
  256. <el-col :span="6" class="dia-right">
  257. <div class="e-right">
  258. <div class="forthis1-1">
  259. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
  260. style="padding-bottom:1rem ;">
  261. <div class="i-list-con">
  262. <div class="this-con">
  263. <div class="z-info-list" style="margin-top: 0;">
  264. <el-timeline>
  265. <el-timeline-item color="#2bacf7" :timestamp="item.createTime"
  266. placement="top" v-for="(item,index) in eventLogList">
  267. <el-card style="width: 40vh">
  268. <div class="z-info-list-con">
  269. <div class="user-and-time flex-d">
  270. <span>{{ item.createName }}</span>
  271. <span
  272. v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  273. class="el-icon-location"></i>
  274. {{ address }}</span>
  275. <span v-else></span>
  276. </div>
  277. <div class="z-info">
  278. <div class="this-con-list-info">
  279. {{ item.logContent }}
  280. </div>
  281. <div>
  282. <router-link to="#"
  283. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  284. v-for="(itemfile,indexfile) in item.fileVOs">
  285. <el-image :src="itemfile.fileUrl"
  286. v-if="itemfile.fileType=='image'"
  287. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  288. style="width:3rem; height:3rem;margin: 2px;"
  289. :title="itemfile.fileName">
  290. </el-image>
  291. <img v-else-if="itemfile.fileType=='video'"
  292. style="width:3rem; height:3rem;margin: 2px;"
  293. :src="require('@/assets/fileTypeImage/mp4.png')"
  294. :title="itemfile.fileName">
  295. </img>
  296. <img v-else-if="itemfile.fileType=='word'"
  297. style="width:3rem; height:3rem;margin: 2px;"
  298. :src="require('@/assets/fileTypeImage/word.png')"
  299. :title="itemfile.fileName">
  300. </img>
  301. <img v-else-if="itemfile.fileType=='excel'"
  302. style="width:3rem; height:3rem;margin: 2px;"
  303. :src="require('@/assets/fileTypeImage/excel.png')"
  304. :title="itemfile.fileName">
  305. </img>
  306. <img v-else
  307. style="width:3rem; height:3rem;margin: 2px;"
  308. :src="require('@/assets/fileTypeImage/file.png')"
  309. :title="itemfile.fileName">
  310. </img>
  311. </router-link>
  312. </div>
  313. </div>
  314. </div>
  315. </el-card>
  316. </el-timeline-item>
  317. </el-timeline>
  318. </div>
  319. </div>
  320. </div>
  321. </dv-border-box-7>
  322. </div>
  323. <!-- <div class="forthis">-->
  324. <!-- <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">-->
  325. <!-- <div class="i-list-con">-->
  326. <!-- <div class="this-con h-25 no-padding">-->
  327. <!-- <div class="z-info-list" style="margin-top: 0;">-->
  328. <!-- <div class="z-info-btm-grp">-->
  329. <!-- <div class="z-info-btm-grp-top">-->
  330. <!-- <div class="z-info-btm-grp-left">-->
  331. <!-- &lt;!&ndash; <el-button size="small" icon="el-icon-s-flag">责任制&ndash;&gt;-->
  332. <!-- &lt;!&ndash; </el-button>&ndash;&gt;-->
  333. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  334. <!-- </el-button>-->
  335. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">保存-->
  336. <!-- </el-button>-->
  337. <!-- </div>-->
  338. <!-- <div class="z-info-btm-grp-right">-->
  339. <!-- <el-button size="small" icon="el-icon-mic">会议-->
  340. <!-- </el-button>-->
  341. <!-- </div>-->
  342. <!-- </div>-->
  343. <!-- </div>-->
  344. <!-- </div>-->
  345. <!-- </div>-->
  346. <!-- </div>-->
  347. <!-- </dv-border-box-7>-->
  348. <!-- </div>-->
  349. </div>
  350. </el-col>
  351. <!-- 左侧end -->
  352. </el-row>
  353. </div>
  354. </el-dialog>
  355. <el-dialog title="事件详情" :visible.sync="eventDialog_message" customClass="customWidth" v-if="eventDialog_message"
  356. @close="cancelEventShow()">
  357. <div class="dia-event-info">
  358. <el-row>
  359. <!-- 左侧 -->
  360. <el-col :span="18" class="dia-left">
  361. <div ref="imageTofile" style="height: 75vh;">
  362. <!-- 应急预案 -->
  363. <div class="dia-left-top">
  364. <div class="dia-left-top-tit">应急预案</div>
  365. <div class="dia-left-top-carousel">
  366. <el-carousel height="30px" direction="vertical" :interval="2000">
  367. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  368. <!-- <el-tooltip class="item" effect="dark" :content="visuForestCloudYuAnBo.reserveName" placement="top-start">
  369. <a :href="visuForestCloudYuAnBo.fileUrl" ><span><div style=" width: 50px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;word-break: keep-all;">{{ visuForestCloudYuAnBo.reserveName }}</div></span></a>
  370. </el-tooltip> -->
  371. <el-tooltip placement="top" popper-class="js-tps"
  372. :visible-arrow="visuForestCloudYuAnBo.reserveName.length>6">
  373. <div slot="content" class="leader-info-container">
  374. <div class="leader-info-list-con" v-show="visuForestCloudYuAnBo.reserveName.length>6">
  375. <h4>{{ visuForestCloudYuAnBo.reserveName }}</h4>
  376. </div>
  377. </div>
  378. <a
  379. :href="visuForestCloudYuAnBo.fileUrl">{{
  380. visuForestCloudYuAnBo.reserveName | ellipsisFont6
  381. }}</a>
  382. </el-tooltip>
  383. </el-carousel-item>
  384. <el-carousel-item v-else>
  385. <a href="#">暂未关联预案</a>
  386. </el-carousel-item>
  387. </el-carousel>
  388. </div>
  389. </div>
  390. <!-- 应急预案end -->
  391. <!-- 地图 -->
  392. <supermapDialogMessage ref="supermapDialogMessage" style="position: absolute; top:0;left: 0;"
  393. :mapDiv="'messageSuperMap'"
  394. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  395. :codes="['9fa5']"
  396. :isSideBySide="false" :isdynamicPlotting="true"/>
  397. <!-- <supermapDialog ref="supermapDialog" -->
  398. <!-- @preview="preview"/> -->
  399. <!-- 地图end -->
  400. </div>
  401. </el-col>
  402. <!-- 左侧end -->
  403. <!-- 右侧 -->
  404. <el-col :span="6" class="dia-right">
  405. <div class="e-right">
  406. <div class="forthis1">
  407. <dv-border-box-7 backgroundColor="#040b1f" style="padding-bottom:1rem ;">
  408. <div class="i-list-con">
  409. <div class="this-con">
  410. <div class="z-info-list" style="margin-top: 0;">
  411. <el-timeline>
  412. <el-timeline-item color="#2bacf7" :timestamp="item.createTime" placement="top"
  413. v-for="(item,index) in eventLogList">
  414. <el-card style="width: 40vh">
  415. <div class="z-info-list-con">
  416. <div class="user-and-time flex-d">
  417. <span>{{ item.createName }}</span>
  418. <span v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  419. class="el-icon-location"></i> {{ address }}</span>
  420. <span v-else></span>
  421. </div>
  422. <div class="z-info">
  423. <div class="this-con-list-info">
  424. {{ item.logContent }}
  425. </div>
  426. <div>
  427. <router-link to="#"
  428. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  429. v-for="(itemfile,indexfile) in item.fileVOs">
  430. <el-image :src="itemfile.fileUrl" v-if="itemfile.fileType=='image'"
  431. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  432. style="width:3rem; height:3rem;margin: 2px;" :z-index="10000" :title="itemfile.fileName">
  433. </el-image>
  434. <img v-else-if="itemfile.fileType=='video'"
  435. style="width:3rem; height:3rem;margin: 2px;"
  436. :src="require('@/assets/fileTypeImage/mp4.png')" :title="itemfile.fileName">
  437. </img>
  438. <img v-else-if="itemfile.fileType=='word'"
  439. style="width:3rem; height:3rem;margin: 2px;"
  440. :src="require('@/assets/fileTypeImage/word.png')" :title="itemfile.fileName">
  441. </img>
  442. <img v-else-if="itemfile.fileType=='excel'"
  443. style="width:3rem; height:3rem;margin: 2px;"
  444. :src="require('@/assets/fileTypeImage/excel.png')"
  445. :title="itemfile.fileName">
  446. </img>
  447. <img v-else style="width:3rem; height:3rem;margin: 2px;"
  448. :src="require('@/assets/fileTypeImage/file.png')" :title="itemfile.fileName">
  449. </img>
  450. </router-link>
  451. </div>
  452. </div>
  453. </div>
  454. </el-card>
  455. </el-timeline-item>
  456. </el-timeline>
  457. </div>
  458. </div>
  459. </div>
  460. </dv-border-box-7>
  461. </div>
  462. <div class="forthis2">
  463. <dv-border-box-7 backgroundColor="#040b1f">
  464. <div class="i-list-con">
  465. <div class="this-con h-25 no-padding">
  466. <div class="z-info-list" style="margin-top: 0;">
  467. <div class="z-info-btm-grp">
  468. <!-- <div class="z-info-btm-grp-top">-->
  469. <!-- <div class="z-info-btm-grp-left">-->
  470. <!-- <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传-->
  471. <!-- </el-button>-->
  472. <!-- <el-button size="small" icon="el-icon-download" @click="toImage()">截图上传-->
  473. <!-- </el-button>-->
  474. <!-- </div>-->
  475. <!-- </div>-->
  476. <div class="z-info-btm-input">
  477. <el-input type="textarea" v-model="eventLog" :autosize="{ minRows: 7, maxRows: 7}"
  478. placeholder="请输入反馈信息">
  479. </el-input>
  480. <div class="z-info-btm-input-btn" v-if="eventStatusValue=='forest_event_status_1'">
  481. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  482. </el-button>
  483. </div>
  484. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_7'">
  485. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  486. </el-button>
  487. </div>
  488. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_2'">
  489. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  490. </el-button>
  491. </div>
  492. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_5'">
  493. <el-button size="small" v-if="statusFlag=='2'" icon="el-icon-success"
  494. style="text-align:left"
  495. @click="updateCentereventTEventcatalogueStatus('sh',false)">
  496. 审核
  497. </el-button>
  498. <el-button size="small" v-else-if="isExamine =='0'" icon="el-icon-loading"
  499. style="text-align:left">
  500. 请等待复核,复核通过后方可归档。
  501. </el-button>
  502. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  503. </el-button>
  504. </div>
  505. <div class="z-info-btm-input-btn" v-else>
  506. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  507. </el-button>
  508. </div>
  509. </div>
  510. </div>
  511. </div>
  512. </div>
  513. </div>
  514. </dv-border-box-7>
  515. </div>
  516. </div>
  517. </el-col>
  518. <!-- 左侧end -->
  519. </el-row>
  520. </div>
  521. </el-dialog>
  522. <el-dialog :title="eventConfirmTitle" :visible.sync="showEventConfirm" v-if="showEventConfirm" width="50%"
  523. style="top: 50px" @close="cancelEventConfirm()">
  524. <el-form label-width="80px">
  525. <el-form-item label="审核意见" v-if="eventStatusButton=='sh'">
  526. <el-input type="textarea" v-model="eventDescription" :autosize="{ minRows: 7, maxRows: 7}"
  527. placeholder="请输入审核意见">
  528. </el-input>
  529. </el-form-item>
  530. <el-form-item label="附件" prop="schedulePictures" v-if="eventStatusButton=='sh'">
  531. <ImageUpload class="sj-upload" ref="ImageUpload" :limit="10" :fileType="['jpg', 'png','jpeg']" :value="uploadAttachList"
  532. @input="getUrl"></ImageUpload>
  533. </el-form-item>
  534. <el-button size="mini" type="primary" v-if="eventStatusButton=='sh'"
  535. class="sj-icon-btn"
  536. icon="el-icon-circle-check"
  537. @click="updateCentereventTEventcatalogueStatus('shtg',true)">通过
  538. </el-button>
  539. <el-button size="mini" type="primary" v-if="eventStatusButton=='sh'"
  540. class="sj-icon-btn"
  541. icon="el-icon-circle-close"
  542. @click="updateCentereventTEventcatalogueStatus('shbtg',true)">不通过
  543. </el-button>
  544. </el-form>
  545. </el-dialog>
  546. <!-- 任务选择领取部门弹层 -->
  547. <!--<el-dialog title="选择部门" :visible.sync="showDeptConfirm" v-if="showDeptConfirm" width="30%" append-to-body-->
  548. <!--@close="cancelEventConfirm()">-->
  549. <!--<el-form label-width="80px">-->
  550. <!--<el-form-item label="选择部门">-->
  551. <!--<el-select v-model="deptName" multiple placeholder="请选择部门" class="m-r-1rem" @change="setValue">-->
  552. <!--<el-option v-for="item in deptOptions" :key="item.taskDeptId" :label="item.taskDeptName"-->
  553. <!--:value="{value:item.taskDeptId,label:item.taskDeptName}">-->
  554. <!--&lt;!&ndash;:disabled="item.eventStatus=='未处理' ? false:true"&ndash;&gt;-->
  555. <!--</el-option>-->
  556. <!--</el-select>-->
  557. <!--</el-form-item>-->
  558. <!--<el-button size="mini" type="primary" v-if="taskStatusButton=='lq'"-->
  559. <!--@click="receiveTask(taskId,eventCode)">领取-->
  560. <!--</el-button>-->
  561. <!--<el-button size="mini" type="primary" v-if="taskStatusButton=='jj'"-->
  562. <!--@click="refusedTask(taskId,eventCode)">拒绝-->
  563. <!--</el-button>-->
  564. <!--</el-form>-->
  565. <!--</el-dialog>-->
  566. <!-- 图片,视频预览 -->
  567. <el-dialog title="视频预览" :visible.sync="showTcPlayer" width="40%" append-to-body>
  568. <TcPlayer ref="TcPlayer" :playVideo="playVideo" :widthHeigt="[100,100]"></TcPlayer>
  569. </el-dialog>
  570. </div>
  571. </template>
  572. <script>
  573. import {
  574. selectTaskBO,
  575. getEventDetail,
  576. selectTaskDtpts,
  577. receiveTask,
  578. refusedTask,
  579. selectMessageCount,
  580. selectMessageList,
  581. selectMessageById,
  582. listSJfl,
  583. listYuAn,
  584. selectByeventCode,
  585. sendTask,
  586. eventExamine,
  587. eventHandling, sendEventLog
  588. } from '@/api/forest'
  589. import {
  590. selectFarmByDeptId, linBanTreeselect, selectBanBylinBanTreesId, userDeptSelect
  591. } from '@/api/vBottomMenu'
  592. import supermapTaskDialog from '@/components/supermap' //超图
  593. import supermapDialogMessage from '@/components/supermap' //超图
  594. import TcPlayer from '@/components/TcPlayer' //视频预览
  595. import Cookies from 'js-cookie'
  596. import {selectConfigKey} from "@/api/system/config";
  597. import {getIconBg} from "@/api/components/sookaMapIcon";
  598. import {treeselectAll as deptTreeselect} from "@/api/system/dept";
  599. export default {
  600. components: {
  601. supermapTaskDialog,
  602. supermapDialogMessage,
  603. TcPlayer,
  604. },
  605. watch: {
  606. filterbanText(val) {
  607. console.log(this.$refs)
  608. this.$refs.banDept.filter(val)
  609. },
  610. filterchangText(val) {
  611. console.log(this.$refs)
  612. this.$refs.changDept.filter(val)
  613. }
  614. },
  615. data() {
  616. return {
  617. playVideo: '', //视频预览地址
  618. showTcPlayer: false, //视频预览弹窗
  619. filterbanText: '',
  620. filterchangText: '',
  621. filterbanList: [],
  622. filterbanListAll: [],
  623. filterchangList: [],
  624. filterchangListAll: [],
  625. eventId: null,
  626. eventCode: null,
  627. eventName: null,
  628. eventLog: null,
  629. longitude: null,
  630. latitude: null,
  631. eventLogList: [], //事件详情日志
  632. eventDialog: false, //事件详情弹层
  633. eventDialog_message: false, //事件详情弹层_消息
  634. taskStatusButton: null, //任务按钮
  635. visuForestCloudYuAnBo: null,
  636. address: null, //事件上报地址
  637. taskId: null, //任务ID
  638. showDeptConfirm: false, //任务领取选择部门弹窗
  639. deptOptions: [], //任务领取部门列表
  640. centerTaskTaskDepts: [], //任务领取部门
  641. deptName: [], //任务领取部门
  642. taskCount: 0, //任务数量
  643. taskList: 0, //任务列表
  644. btmTipIndent: '', //图例收起弹出
  645. eventLocationVisible: false,
  646. showChild: false,
  647. showBanChild: false, //林斑
  648. showMeasure: false, //测量工具
  649. showChangChild: false, //林场
  650. fastMenu: [
  651. {
  652. name: '事件定位',
  653. icon: 'iconfont sj-icon-sjdw',
  654. click: 'eventLocation'
  655. },
  656. // {
  657. // name: '图层切换',
  658. // icon: 'iconfont sj-icon-tcqh',
  659. // click: 'layerSwitching'
  660. // },
  661. {
  662. name: '测量工具',
  663. icon: 'iconfont sj-icon-clgj',
  664. click: 'editableLayers'
  665. },
  666. // {
  667. // name: '林班',
  668. // icon: 'iconfont sj-icon-lbzy',
  669. // click: 'forestban'
  670. // },
  671. //
  672. // {
  673. // name: '林场',
  674. // icon: 'iconfont sj-icon-lczy',
  675. // click: 'forestchang'
  676. // },
  677. {
  678. name: '电视墙',
  679. icon: 'el-icon-s-grid',
  680. click: 'TVWall'
  681. },
  682. // {
  683. // name: '无人机',
  684. // icon: 'iconfont sj-icon-landing',
  685. // click: 'wrj'
  686. // }
  687. ],
  688. deptChangOptionsLiandong: [],//查询林场部门树结构
  689. deptBanOptionsLiandong: [],//查询林班层级树结构
  690. // deptOptionsLiandong_baishan: [
  691. // {
  692. // label: '板石头国有林场',
  693. // id: 1,
  694. // children: [
  695. // ]
  696. // }, {
  697. // label: '五间房国有林场',
  698. // id: 2,
  699. // children: []
  700. // }, {
  701. // label: '三道沟国有林场',
  702. // id: 3,
  703. // children: []
  704. // }, {
  705. // label: '大镜沟国有林场',
  706. // id: 4,
  707. // children: []
  708. // }, {
  709. // label: '实验国有林场',
  710. // id: 5,
  711. // children: []
  712. // }
  713. // ],
  714. defaultProps: {
  715. children: 'children',
  716. label: 'label'
  717. },
  718. banCheckList: [], //林班
  719. banCheckList_Data: [], //林班 带数据图层
  720. changCheckList: [], //林场
  721. filterban: '', //林班搜索
  722. filterchang: '', //林场搜索
  723. btmCurrent: '',
  724. eventWarn: false, //webSocket事件问题警报标记
  725. messageCount: 0, //消息数量
  726. messageList: 0,//消息列表
  727. websock: '',
  728. wsurl: '',
  729. postName: '',
  730. postNameDept: '/messageDeptPush/',
  731. setIntervalWesocketPush: null,
  732. websockSid: {
  733. userId: '',
  734. deptId: ''
  735. },
  736. /** *****************事件流程***************************/
  737. showEventConfirm: false, //事件签收弹窗
  738. deptNameitem: '签收部门',
  739. sendDeptId: null, //签收部门/发起部门
  740. sendDeptName: null, //签收部门/发起部门
  741. sendEventType: null, //事件类型
  742. sendHuoZaiBanJing: 0, //火灾报告
  743. sendGuanLianYuAn: null, //关联预案
  744. sendUserFegin: [], //联系人
  745. sendTaskSource: null, //任务来源
  746. sendTaskTitle: null, //联动标题
  747. sendTaskContent: null, //联动内容
  748. sendLianDongDept: [], //联动部门
  749. eventTypeList: [], //事件类型列表
  750. guanLianYuAnList: [], //关联预案列表
  751. userFeginList: [], //联系人列表
  752. deptOptions: [], //签收部门
  753. deptOptionsLiandong: [], //联动部门
  754. eventStatusButton: null, //流程按钮标识
  755. eventConfirmTitle: null, //弹窗标题 ---签收 误报 重复 审核意见
  756. eventDescription: null, //审核意见
  757. uploadAttachList: [], //审核上传图片回显集合
  758. attachExamine: [], //审核图片集合
  759. /** *****************事件流程***************************/
  760. weosocket: false,
  761. }
  762. },
  763. created() {
  764. },
  765. mounted() {
  766. this.websockSid.userId = Cookies.get("userId")
  767. this.websockSid.deptId = Cookies.get("deptId")
  768. },
  769. destroyed() { //离开页面关闭Socket连接
  770. if (this.websock) {
  771. clearInterval(this.setIntervalWesocketPush)
  772. this.websock.close()
  773. this.weosocket = false
  774. this.websock = null
  775. }
  776. },
  777. methods: {
  778. deptTreeselect() {
  779. /** 查询林场部门树结构 */
  780. userDeptSelect().then(response => {
  781. this.deptChangOptionsLiandong = response.data
  782. })
  783. },
  784. initWebSocket(wsurl, postName, userId) {
  785. this.postName = postName
  786. this.wsurl = wsurl
  787. selectConfigKey(wsurl).then(res => {
  788. //初始化weosocket
  789. //const wsuri = 'ws://127.0.0.1:10003/eventPush/' + userId + '/' + eventTypeDl + '/' + eventType
  790. const wsuri = res.data + postName + userId
  791. // const wsuri = 'ws://172.28.20.82:10012/taskPush/'+userId
  792. this.websock = new WebSocket(wsuri)
  793. //console.log('建立websocket连接' + wsuri)
  794. this.websock.onopen = this.websocketonopen
  795. this.websock.onmessage = this.websocketonmessage
  796. this.websock.onerror = this.websocketonerror
  797. })
  798. },
  799. websocketonopen() { //连接建立之后执行send方法发送数据
  800. console.log('websocket连接成功')
  801. this.weosocket = true
  802. this.sendPing()
  803. },
  804. websocketonerror() { //连接建立失败重连
  805. this.initWebSocket(this.wsurl, this.postName, this.websockSid.userId)
  806. this.initWebSocket(this.wsurl, this.postNameDept, this.websockSid.deptId)
  807. },
  808. websocketonmessage(e) { //数据接收
  809. console.log('接收数据', e.data)
  810. // let data = "{\"fromId\":\"farming\"}";
  811. // 处理收到的消息
  812. this.handleWebSoceketEvent(e.data)
  813. },
  814. handleWebSoceketEvent(val) {
  815. let that = this
  816. let data = JSON.parse(val)
  817. console.log('数据数据数据数据', data)
  818. /**
  819. * that.markersList.filter( item => data.eventCode == item.parameter).length == 0 如果地图中不存在当前事件则添加
  820. * eventPush: 事件列表消息
  821. * */
  822. let message = data.centermessageTPushrecord
  823. let message_dept = data.centermessageTPushrecord_dept
  824. let task = data.centertaskTTask
  825. if (null != message) {
  826. console.log(message)
  827. this.messageList.push(message)
  828. this.messageCount++
  829. }if (null != message_dept) {
  830. console.log(message_dept)
  831. this.messageList.push(message_dept)
  832. this.messageCount++
  833. } else if (null != task) {
  834. task.taskId = task.id
  835. this.taskList.push(task)
  836. this.taskCount++
  837. }
  838. // if (data.tag == "eventPush" && that.markersList.filter( item => data.eventCode == item.parameter).length == 0) {
  839. // getEventPush({eventCode: data.eventCode}).then((res) => {
  840. // if (res.data != undefined) {
  841. // //插入到第一条
  842. // this.eventList.unshift(res.data)
  843. // // 插入后删除最后一条 保证列表中为10条数据
  844. // if (this.eventList.length > 9)
  845. // this.eventList.splice(10, 1)
  846. // // 将收到的数据在地图上添加
  847. // this.getWebSocketEvent(res.data)
  848. // }
  849. // })
  850. // }
  851. console.log(data)
  852. },
  853. websocketsend(Data) { //数据发送
  854. this.websock.send(Data)
  855. },
  856. websocketclose(e) { //关闭
  857. console.log('断开连接', e)
  858. // clearInterval(this.setIntervalWesocketPush)
  859. this.weosocket = false
  860. },
  861. /**发送心跳
  862. * @param {number} time 心跳间隔毫秒 默认5000
  863. * @param {string} ping 心跳名称 默认字符串ping
  864. */
  865. sendPing(time = 60000, ping = {
  866. 'fromId': 'farming'
  867. }) {
  868. clearInterval(this.setIntervalWesocketPush)
  869. this.setIntervalWesocketPush = setInterval(() => {
  870. if (this.weosocket) {
  871. this.websock.send(JSON.stringify(ping))
  872. } else {
  873. // this.initWebSocket()
  874. }
  875. }, time)
  876. },
  877. linBanTreeselect() {
  878. /** 查询林班层级树结构 */
  879. linBanTreeselect().then(response => {
  880. this.deptBanOptionsLiandong = response.data
  881. })
  882. },
  883. selectMessageById(id) {
  884. selectMessageById(id).then(response => {
  885. /** 获取消息列表 */
  886. this.selectMessageList()
  887. })
  888. },
  889. /** 获取消息个数 */
  890. selectMessageCount() {
  891. selectMessageCount(Cookies.get('userId'),Cookies.get('deptId')).then(response => {
  892. this.messageCount = response.data
  893. })
  894. },
  895. /** 获取消息列表 */
  896. selectMessageList() {
  897. selectMessageList(Cookies.get('userId'), Cookies.get('deptId')).then(response => {
  898. this.messageList = response.data
  899. this.messageCount = response.data.length
  900. })
  901. this.initWebSocket('MESSAGE_SOCKET', '/messagePush/', this.websockSid.userId)
  902. this.initWebSocket('MESSAGE_SOCKET', '/messageDeptPush/', this.websockSid.deptId)
  903. },
  904. filterbanNode(value, data) {
  905. //树搜索
  906. if (!value) return true
  907. return data.label.indexOf(value) !== -1
  908. },
  909. filterchangNode(value, data) {
  910. //树搜索
  911. if (!value) return true
  912. return data.label.indexOf(value) !== -1
  913. },
  914. handlechangNodeClick(node, data, value) {
  915. //获取林场列表
  916. this.filterchang = ''
  917. selectFarmByDeptId({
  918. deptId: node.id
  919. }).then(res => {
  920. this.filterchangList = res.data
  921. this.filterchangListAll = res.data
  922. })
  923. },
  924. handlebanNodeClick(node, data, value) {
  925. //获取林班列表
  926. this.filterban = ''
  927. selectBanBylinBanTreesId(node.id).then(res => {
  928. this.filterbanList = res.data
  929. this.filterbanListAll = res.data
  930. })
  931. // if(node.id==1){
  932. // this.filterbanList=[
  933. // {
  934. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  935. // farmName: '板石街道',
  936. // datasetNames: ['bs:banshijiedao'],
  937. // name: 'banshijiedao@bs'
  938. // },
  939. // {
  940. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  941. // farmName: '河口街道',
  942. // datasetNames: ['bs:hekoujiedao'],
  943. // name: 'hekoujiedao@bs'
  944. // },
  945. // {
  946. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/BanShiTouGuoYouLinChang',
  947. // farmName: '七道江镇',
  948. // datasetNames: ['bs:qidaojiangzhen'],
  949. // name: 'qidaojiangzhen@bs'
  950. // },
  951. // ]
  952. // }else if (node.id==2){
  953. // this.filterbanList=[
  954. // {
  955. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/WuJianFangGuoYouLinChang',
  956. // farmName: '六道江镇',
  957. // datasetNames: ['bs:WuJianFangGuoYouLinChang'],
  958. // name: 'WuJianFangGuoYouLinChang@bs'
  959. // },
  960. // ]
  961. // }else if (node.id==3){
  962. // this.filterbanList=[
  963. // {
  964. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/SanDaoGouGuoYouLinChang',
  965. // farmName: '三道沟镇',
  966. // datasetNames: ['bs:SanDaoGouGuoYouLinChang'],
  967. // name: 'SanDaoGouGuoYouLinChang@bs'
  968. // },
  969. // ]
  970. // }else if (node.id==4){
  971. // this.filterbanList=[
  972. // {
  973. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/DaJingGouGuoYouLinChang',
  974. // farmName: '红土崖镇',
  975. // datasetNames: ['bs:DaJingGouGuoYouLinChang'],
  976. // name: 'DaJingGouGuoYouLinChang@bs'
  977. // },
  978. // ]
  979. // }else if (node.id==5){
  980. // this.filterbanList=[
  981. // {
  982. // farmAddress: 'http://121.36.228.94:8090/iserver/services/map-baishan/rest/maps/ShiYanGuoYouLinChang',
  983. // farmName: '大阳岔镇',
  984. // datasetNames: ['bs:ShiYanGuoYouLinChang'],
  985. // name: 'ShiYanGuoYouLinChang@bs'
  986. // }
  987. // ]
  988. // }
  989. },
  990. // 返回图片列表
  991. assetTypeAnImage(filePath) {
  992. let imageList = []
  993. if (filePath != null && filePath.length > 0) {
  994. for (let i = 0; i < filePath.length; i++) {
  995. if (filePath[i].fileType == 'image') {
  996. imageList.push(filePath[i].fileUrl)
  997. }
  998. }
  999. }
  1000. return imageList
  1001. },
  1002. clickFile(fileUrl, fileName, fileType) {
  1003. if (fileType == 'image') {
  1004. return
  1005. } else if (fileType == 'video') {
  1006. this.showTcPlayer = true
  1007. setTimeout(() => {
  1008. this.playVideo = fileUrl
  1009. }, 500)
  1010. } else {
  1011. let a = document.createElement('a')
  1012. a.download = fileName
  1013. a.href = fileUrl
  1014. a.target = '_blank'
  1015. a.click()
  1016. }
  1017. },
  1018. setValue(event) {
  1019. this.centerTaskTaskDepts = []
  1020. //签收选择部门
  1021. if (event != null && event.length > 0) {
  1022. for (let i = 0; i < event.length; i++) {
  1023. if (event[i].label != undefined && event[i].value != undefined) {
  1024. this.centerTaskTaskDepts.push({
  1025. taskDeptId: event[i].value,
  1026. taskDeptName: event[i].label
  1027. })
  1028. }
  1029. }
  1030. }
  1031. },
  1032. receiveTask(taskId, eventCode) {
  1033. let param = {
  1034. taskId: taskId,
  1035. eventCode: eventCode,
  1036. // centerTaskTaskDepts: this.centerTaskTaskDepts
  1037. }
  1038. receiveTask(param).then(res => {
  1039. //任务领取
  1040. if (res.code == 200) {
  1041. this.$message.success(`任务领取成功!`)
  1042. this.deptOptions = []
  1043. this.deptName = []
  1044. this.centerTaskTaskDepts = []
  1045. //刷新任务列表
  1046. this.selectTaskList()
  1047. this.showDeptConfirm = false
  1048. }
  1049. })
  1050. },
  1051. refusedTask(taskId, eventCode) {
  1052. let param = {
  1053. taskId: taskId,
  1054. eventCode: eventCode,
  1055. // centerTaskTaskDepts: this.centerTaskTaskDepts
  1056. }
  1057. refusedTask(param).then(res => {
  1058. //任务拒绝
  1059. if (res.code == 200) {
  1060. this.$message.success(`任务拒绝成功!`)
  1061. this.deptOptions = []
  1062. this.deptName = []
  1063. this.centerTaskTaskDepts = []
  1064. //刷新任务列表
  1065. this.selectTaskList()
  1066. this.showDeptConfirm = false
  1067. }
  1068. })
  1069. },
  1070. selectTaskDtpts(taskId, eventCode, state) {
  1071. this.taskId = taskId
  1072. this.eventCode = eventCode
  1073. selectTaskDtpts({
  1074. taskId: taskId
  1075. }).then(res => {
  1076. //任务领取部门列表
  1077. if (res.code == 200) {
  1078. this.deptOptions = res.data
  1079. this.taskStatusButton = state
  1080. this.showDeptConfirm = true
  1081. }
  1082. })
  1083. },
  1084. cancelEventShow() {
  1085. console.log('关闭事件弹窗')
  1086. this.eventCode = null
  1087. this.eventLogList = []
  1088. },
  1089. cancelEventConfirm() {
  1090. //关闭事件签收弹窗
  1091. this.sendDeptId = null
  1092. this.sendDeptName = null
  1093. this.sendUserFegin = []
  1094. this.sendEventType = null
  1095. this.sendHuoZaiBanJing = 0
  1096. this.sendGuanLianYuAn = null
  1097. this.sendTaskTitle = null
  1098. this.sendTaskSource = null
  1099. this.sendTaskContent = null
  1100. this.sendLianDongDept = []
  1101. this.eventTypeList = [] //事件类型列表
  1102. this.guanLianYuAnList = [] //关联预案列表
  1103. this.deptOptions = [] //签收部门
  1104. this.deptOptionsLiandong = [] //联动部门
  1105. this.eventStatusButton = null //流程按钮标识
  1106. this.eventConfirmTitle = null //流程按钮标识
  1107. this.resourcesListCheck = []
  1108. this.userFeginList = [] //联系人列表
  1109. this.eventDescription = null//审核意见
  1110. this.uploadAttachList = [] //审核上传图片回显集合
  1111. this.attachExamine = [] //审核图片集合
  1112. },
  1113. cancelEventConfirm_send() {
  1114. //清空表单数据
  1115. this.sendDeptId = null
  1116. this.sendDeptName = null
  1117. this.sendUserFegin = []
  1118. this.sendEventType = null
  1119. this.sendHuoZaiBanJing = 0
  1120. this.sendGuanLianYuAn = null
  1121. this.sendTaskTitle = null
  1122. this.sendTaskSource = null
  1123. this.sendTaskContent = null
  1124. this.sendLianDongDept = []
  1125. this.eventTypeList = [] //事件类型列表
  1126. this.guanLianYuAnList = [] //关联预案列表
  1127. this.deptOptions = [] //签收部门
  1128. this.deptOptionsLiandong = [] //联动部门
  1129. this.userFeginList = [] //联系人列表
  1130. this.eventDescription = null //审核意见
  1131. this.uploadAttachList = [] //审核上传图片回显集合
  1132. this.attachExamine = [] //审核图片集合
  1133. },
  1134. showEventDialog(eventCode) {
  1135. this.eventCode = eventCode
  1136. let that = this
  1137. //获取事件详情
  1138. getEventDetail({
  1139. eventCode: eventCode
  1140. }).then(res => {
  1141. this.eventDialog = true
  1142. this.eventLogList = res.data.eventlog
  1143. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1144. this.address = res.data.catalogue.address
  1145. this.eventType = res.data.catalogue.eventType
  1146. this.eventId = res.data.catalogue.id
  1147. this.longitude = res.data.catalogue.longitude
  1148. this.latitude = res.data.catalogue.latitude
  1149. let markersMap = {
  1150. lng: 124.59,
  1151. lat: 43.02,
  1152. icon: 'marker',
  1153. bindPopupHtml: '',
  1154. click: '',
  1155. parameter: '',
  1156. keepBindPopup: false,
  1157. isAggregation: true,
  1158. radius: 0
  1159. }
  1160. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1161. markersMap.icon = 'sj-icon-map-xinshangbao'
  1162. }
  1163. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1164. markersMap.icon = 'sj-icon-map-cuiban'
  1165. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1166. markersMap.icon = 'sj-icon-map-qianshou'
  1167. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1168. markersMap.icon = 'sj-icon-map-banjie'
  1169. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1170. markersMap.icon = 'sj-icon-map-guidang'
  1171. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1172. markersMap.icon = 'sj-icon-map-queren'
  1173. }
  1174. markersMap.lng = res.data.catalogue.longitude
  1175. markersMap.lat = res.data.catalogue.latitude
  1176. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1177. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0]
  1178. .fireRadius > 0) {
  1179. markersMap.radius = res.data.eventdetail[0].fireRadius
  1180. }
  1181. setTimeout(() => {
  1182. // that.$refs.supermapTaskDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  1183. that.$refs.supermapTaskDialog.clearM(false)
  1184. that.$refs.supermapTaskDialog.setMarkersRadius([markersMap])
  1185. that.$refs.supermapTaskDialog.dropLocation(res.data.catalogue.latitude, res.data
  1186. .catalogue.longitude)
  1187. }, 1000)
  1188. })
  1189. },
  1190. showEventDialog_message(eventCode) {
  1191. this.eventCode = eventCode
  1192. let that = this
  1193. //获取事件详情
  1194. getEventDetail({
  1195. eventCode: eventCode
  1196. }).then(res => {
  1197. let markersMapList = [];
  1198. that.eventDialog_message = true
  1199. that.eventLogList = res.data.eventlog //日志列表
  1200. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1201. that.address = res.data.catalogue.address
  1202. that.eventStatusValue = res.data.catalogue.eventStatusValue
  1203. that.eventType = res.data.catalogue.eventType
  1204. that.statusFlag = res.data.catalogue.statusFlag
  1205. that.dataStatus = res.data.catalogue.dataStatus
  1206. that.deptId = res.data.catalogue.deptId
  1207. that.eventId = res.data.catalogue.id
  1208. that.longitude = res.data.catalogue.longitude
  1209. that.latitude = res.data.catalogue.latitude
  1210. that.eventName = res.data.catalogue.eventName
  1211. that.version = res.data.catalogue.version
  1212. that.eventTypeXl = res.data.catalogue.eventTypeXl
  1213. that.isExamine = res.data.catalogue.isExamine
  1214. let markersMap = {
  1215. lng: 124.59,
  1216. lat: 43.02,
  1217. icon: 'marker',
  1218. bindPopupHtml: '',
  1219. click: '',
  1220. parameter: '',
  1221. keepBindPopup: false,
  1222. isAggregation: true,
  1223. radius: 0
  1224. }
  1225. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1226. markersMap.icon = 'sj-icon-map-xinshangbao'
  1227. }
  1228. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1229. markersMap.icon = 'sj-icon-map-cuiban'
  1230. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1231. markersMap.icon = 'sj-icon-map-qianshou'
  1232. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1233. markersMap.icon = 'sj-icon-map-banjie'
  1234. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1235. markersMap.icon = 'sj-icon-map-guidang'
  1236. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1237. markersMap.icon = 'sj-icon-map-queren'
  1238. }
  1239. markersMap.lng = res.data.catalogue.longitude
  1240. markersMap.lat = res.data.catalogue.latitude
  1241. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1242. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius >
  1243. 0) {
  1244. markersMap.radius = res.data.eventdetail[0].fireRadius
  1245. }
  1246. markersMapList.push(markersMap);
  1247. if (res.data.centermonitorTCamera != null) {
  1248. that.cameraCode = res.data.centermonitorTCamera.id;
  1249. let markersMap = {
  1250. lng: 124.59,
  1251. lat: 43.02,
  1252. icon: 'camera',
  1253. bindPopupHtml: '',
  1254. click: 'preview',
  1255. parameter: {
  1256. code: res.data.centermonitorTCamera.cameraCode,
  1257. type: res.data.centermonitorTCamera.cameraFactory,
  1258. name: res.data.centermonitorTCamera.cameraName
  1259. },
  1260. keepBindPopup: false,
  1261. isAggregation: true,
  1262. radius: 0
  1263. }
  1264. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1265. '<span>' +
  1266. ' <div class="d-l-con">' +
  1267. ' <div class="d-l-l-text">' +
  1268. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  1269. ' </div>' +
  1270. ' </div>' +
  1271. ' </span>' +
  1272. '<span>' +
  1273. '</div>'
  1274. markersMap.lng = res.data.centermonitorTCamera.longitude
  1275. markersMap.lat = res.data.centermonitorTCamera.latitude
  1276. markersMapList.push(markersMap)
  1277. }
  1278. setTimeout(() => {
  1279. that.$refs.supermapDialogMessage.dynamicPlotting() //弹出动态绘制窗口,防止截图位置改变
  1280. that.$refs.supermapDialogMessage.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  1281. that.$refs.supermapDialogMessage.clearM(false)
  1282. that.$refs.supermapDialogMessage.clearM(true)
  1283. that.$refs.supermapDialogMessage.setMarkersRadius(markersMapList)
  1284. }, 2000)
  1285. })
  1286. },
  1287. getUrl(urlList) {
  1288. this.uploadAttachList = urlList
  1289. this.attachExamine = []
  1290. urlList.forEach(item => {
  1291. var attachPath = {
  1292. attachPath: item.name
  1293. }
  1294. this.attachExamine.push(attachPath)
  1295. });
  1296. },
  1297. sendEventLog() {
  1298. if (this.eventLog == '' || this.eventLog == null) {
  1299. return;
  1300. }
  1301. //日志发送
  1302. let param = {
  1303. eventCode: this.eventCode,
  1304. logContent: this.eventLog,
  1305. operation: "bus_oper_type_2",
  1306. operationType: "log_oper_type_1"
  1307. }
  1308. sendEventLog(param).then(res => {
  1309. if (res.code == 200) {
  1310. this.$message.success(`发送成功!`)
  1311. this.eventLog = null
  1312. this.refreshEventDialog(this.eventCode)
  1313. }
  1314. })
  1315. },
  1316. /**
  1317. * eventStatusValue 事件状态
  1318. * isSend 是否办理
  1319. * */
  1320. async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
  1321. this.eventStatusButton = eventStatus
  1322. let that = this
  1323. if (!isSend) { //事件弹窗
  1324. if (eventStatus == 'sh') { //审核
  1325. that.eventConfirmTitle = '事件审核'
  1326. that.showEventConfirm = true
  1327. }
  1328. } else { //事件提交后台
  1329. if (eventStatus == 'shtg') {
  1330. that.eventStatusButton = 'sh'
  1331. if (that.eventDescription == '' || that.eventDescription == null) {
  1332. that.$message.error(`请填写审核意见!`)
  1333. return
  1334. }
  1335. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  1336. that.$message.error(`请上传审核图片!`)
  1337. return
  1338. }
  1339. //事件处理流程--审核通过
  1340. let param = {
  1341. id: that.eventId, //事件id
  1342. eventCode: that.eventCode, //事件编号
  1343. eventName: that.eventName, //事件名称
  1344. isExamine: 1, //通过传1,不通过传0
  1345. version: that.version,
  1346. eventDescription: that.eventDescription, //审核意见
  1347. attach: that.attachExamine
  1348. }
  1349. eventExamine(param).then(res => {
  1350. if (res.code == 200) {
  1351. that.$message.success(`处理成功!`)
  1352. that.refreshEvent(that.eventCode)
  1353. that.selectMessageList()
  1354. that.cancelEventConfirm_send()
  1355. that.showEventConfirm = false
  1356. } else if (res.code == 304) {
  1357. console.log(that.eventCode)
  1358. this.$message.warning(res.msg)
  1359. this.showEventDialog_message(that.eventCode)
  1360. //获取事件详情
  1361. }
  1362. that.attachExamine = []
  1363. that.uploadAttachList = []
  1364. that.eventDescription = ""
  1365. })
  1366. } else if (eventStatus == 'shbtg') {
  1367. that.eventStatusButton = 'sh'
  1368. if (that.eventDescription == '' || that.eventDescription == null) {
  1369. that.$message.error(`请填写审核意见!`)
  1370. return true;
  1371. }
  1372. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  1373. that.$message.error(`请上传审核图片!`)
  1374. return true;
  1375. }
  1376. //事件处理流程--审核不通过
  1377. let param = {
  1378. id: that.eventId, //事件id
  1379. eventCode: that.eventCode, //事件编号
  1380. eventName: that.eventName, //事件名称
  1381. isExamine: 0, //通过传1,不通过传0
  1382. version: that.version,
  1383. eventDescription: that.eventDescription, //审核意见
  1384. attach: that.attachExamine
  1385. }
  1386. eventExamine(param).then(res => {
  1387. if (res.code == 200) {
  1388. that.$message.success(`处理成功!`)
  1389. that.refreshEvent(that.eventCode)
  1390. that.selectMessageList()
  1391. that.cancelEventConfirm_send()
  1392. that.showEventConfirm = false
  1393. } else if (res.code == 304) {
  1394. console.log(that.eventCode)
  1395. this.$message.warning(res.msg)
  1396. this.showEventDialog_message(that.eventCode)
  1397. //获取事件详情
  1398. }
  1399. that.attachExamine = []
  1400. that.uploadAttachList = []
  1401. that.eventDescription = ""
  1402. })
  1403. }
  1404. }
  1405. },
  1406. refreshEvent(eventCode) {
  1407. this.eventCode = eventCode
  1408. let that = this
  1409. //刷新--事件详情
  1410. getEventDetail({
  1411. eventCode: eventCode
  1412. }).then(res => {
  1413. let markersMapList = [];
  1414. that.eventLogList = res.data.eventlog
  1415. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1416. that.address = res.data.catalogue.address
  1417. that.eventStatusValue = res.data.catalogue.eventStatusValue
  1418. that.eventType = res.data.catalogue.eventType
  1419. that.statusFlag = res.data.catalogue.statusFlag
  1420. that.dataStatus = res.data.catalogue.dataStatus
  1421. that.deptId = res.data.catalogue.deptId
  1422. that.eventId = res.data.catalogue.id
  1423. that.latitude = res.data.catalogue.latitude
  1424. that.longitude = res.data.catalogue.longitude
  1425. that.eventName = res.data.catalogue.eventName
  1426. that.version = res.data.catalogue.version
  1427. that.eventTypeXl = res.data.catalogue.eventTypeXl
  1428. that.isExamine = res.data.catalogue.isExamine
  1429. let markersMap = {
  1430. lng: 124.59,
  1431. lat: 43.02,
  1432. icon: 'marker',
  1433. bindPopupHtml: '',
  1434. click: '',
  1435. parameter: '',
  1436. keepBindPopup: false,
  1437. isAggregation: true,
  1438. radius: 0
  1439. }
  1440. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  1441. markersMap.icon = 'sj-icon-map-xinshangbao'
  1442. }
  1443. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  1444. markersMap.icon = 'sj-icon-map-cuiban'
  1445. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  1446. markersMap.icon = 'sj-icon-map-qianshou'
  1447. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  1448. markersMap.icon = 'sj-icon-map-banjie'
  1449. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  1450. markersMap.icon = 'sj-icon-map-guidang'
  1451. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  1452. markersMap.icon = 'sj-icon-map-queren'
  1453. }
  1454. markersMap.lng = res.data.catalogue.longitude
  1455. markersMap.lat = res.data.catalogue.latitude
  1456. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  1457. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius >
  1458. 0) {
  1459. markersMap.radius = res.data.eventdetail[0].fireRadius
  1460. }
  1461. markersMapList.push(markersMap)
  1462. if (res.data.centermonitorTCamera != null) {
  1463. let markersMap = {
  1464. lng: 124.59,
  1465. lat: 43.02,
  1466. icon: 'camera',
  1467. bindPopupHtml: '',
  1468. click: 'preview',
  1469. parameter: {
  1470. code: res.data.centermonitorTCamera.cameraCode,
  1471. type: res.data.centermonitorTCamera.cameraFactory,
  1472. name: res.data.centermonitorTCamera.cameraName
  1473. },
  1474. keepBindPopup: false,
  1475. isAggregation: true,
  1476. radius: 0
  1477. }
  1478. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1479. '<span>' +
  1480. ' <div class="d-l-con">' +
  1481. ' <div class="d-l-l-text">' +
  1482. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  1483. ' </div>' +
  1484. ' </div>' +
  1485. ' </span>' +
  1486. '<span>' +
  1487. '</div>'
  1488. markersMap.lng = res.data.centermonitorTCamera.longitude
  1489. markersMap.lat = res.data.centermonitorTCamera.latitude
  1490. markersMapList.push(markersMap)
  1491. }
  1492. setTimeout(() => {
  1493. that.$refs.supermapDialogMessage.clearM(false)
  1494. that.$refs.supermapDialogMessage.clearM(true)
  1495. that.$refs.supermapDialogMessage.setMarkersRadius(markersMapList)
  1496. that.$refs.supermapDialogMessage.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  1497. }, 2000)
  1498. })
  1499. },
  1500. refreshEventDialog(eventCode) {
  1501. //刷新--事件日志12
  1502. getEventDetail({
  1503. eventCode: eventCode
  1504. }).then(res => {
  1505. this.eventLogList = res.data.eventlog
  1506. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  1507. })
  1508. },
  1509. selectTaskList: async function () {
  1510. //获取任务列表
  1511. selectTaskBO().then(res => {
  1512. this.taskList = res.data
  1513. this.taskCount = res.data.length
  1514. })
  1515. this.initWebSocket('TASK_SOCKET', '/taskPush/', this.websockSid.userId)
  1516. },
  1517. handleCheckedCitiesChangeBan(value) {
  1518. this.choseLayerSwitchingList(this.banCheckList)
  1519. },
  1520. handleCheckedCitiesChangeBan_Data(value) {
  1521. if (this.banCheckList_Data.length > 1) {
  1522. this.banCheckList_Data.splice(0, 1)
  1523. }
  1524. this.choseLayerSwitchingList_Data(this.banCheckList_Data)
  1525. },
  1526. handleCheckedCitiesChangeChang(value) {
  1527. this.choseLayerSwitchingList(this.changCheckList)
  1528. },
  1529. refresh() {
  1530. window.location.reload()
  1531. },
  1532. showDialog(click) {
  1533. window.showDialog(click)
  1534. },
  1535. // 测量距离
  1536. choseMeasuringDistance() {
  1537. this.$parent.$refs.supermap.choseMeasuringDistance()
  1538. },
  1539. // 测量面积
  1540. choseMeasuringArea() {
  1541. this.$parent.$refs.supermap.choseMeasuringArea()
  1542. },
  1543. // 测量清除
  1544. choseMeasuringClear() {
  1545. this.$parent.$refs.supermap.choseMeasuringAreaAll()
  1546. },
  1547. choseLayerSwitching(url, isClear) {
  1548. window.choseLayerSwitching(url, isClear)
  1549. },
  1550. choseLayerSwitchingList(urlList) { //选择图层(传递数组)
  1551. window.choseLayerSwitchingList(urlList)
  1552. },
  1553. choseLayerSwitchingList_Data(urlList) { //选择图层(传递数组)
  1554. window.choseLayerSwitchingList_Data(urlList)
  1555. },
  1556. forestban() {
  1557. window.forestban()
  1558. console.log('林班')
  1559. },
  1560. forestchang() {
  1561. window.forestchang()
  1562. console.log('林场')
  1563. },
  1564. closeBanChild() {
  1565. this.banCheckList = []
  1566. this.showBanChild = false
  1567. },
  1568. closeChangChild() {
  1569. this.changCheckList = []
  1570. this.showChangChild = false
  1571. },
  1572. //图例收起弹出
  1573. btmIndent() {
  1574. if (this.btmTipIndent == '') {
  1575. this.btmTipIndent = 'btm-tip-to-right'
  1576. } else if (this.btmTipIndent == 'btm-tip-to-right') {
  1577. this.btmTipIndent = ''
  1578. }
  1579. },
  1580. searchFilterchang(filterchang) {
  1581. //林场列表搜索
  1582. let searchFilterchangnew = []
  1583. if (filterchang != null && filterchang != '') {
  1584. for (var i = 0; i < this.filterchangListAll.length; i++) {
  1585. if (this.filterchangListAll[i].farmName.indexOf(filterchang) > -1) {
  1586. searchFilterchangnew.push(this.filterchangListAll[i])
  1587. }
  1588. }
  1589. this.filterchangList = searchFilterchangnew
  1590. } else {
  1591. this.filterchangList = this.filterchangListAll
  1592. }
  1593. },
  1594. searchFilterban(filterban) {
  1595. //林场列表搜索
  1596. let searchFilterbannew = []
  1597. if (filterban != null && filterban != '') {
  1598. for (var i = 0; i < this.filterbanListAll.length; i++) {
  1599. if (this.filterbanListAll[i].farmName.indexOf(filterban) > -1) {
  1600. searchFilterbannew.push(this.filterbanListAll[i])
  1601. }
  1602. }
  1603. this.filterbanList = searchFilterbannew
  1604. } else {
  1605. this.filterbanList = this.filterbanListAll
  1606. }
  1607. },
  1608. //标记警报
  1609. updateAlert() {
  1610. this.eventWarn = true
  1611. },
  1612. updateAlertFalse() {
  1613. this.eventWarn = false
  1614. this.$emit('stopAudio')
  1615. }
  1616. }
  1617. }
  1618. </script>
  1619. <style rel="stylesheet/scss" lang="scss" scoped>
  1620. @import '@/assets/styles/base.scss';
  1621. .dotClass {
  1622. width: 10px;
  1623. height: 10px;
  1624. border-radius: 50%;
  1625. display: block;
  1626. margin: -5px;
  1627. }
  1628. .redClass {
  1629. background-color: red;
  1630. width: 10px;
  1631. height: 10px;
  1632. border-radius: 50%;
  1633. display: block;
  1634. }
  1635. .btm-box {
  1636. width: 100%;
  1637. height: auto;
  1638. background: linear-gradient($btmMemu);
  1639. position: absolute;
  1640. z-index: 999;
  1641. bottom: 0;
  1642. height: 2.5rem;
  1643. display: flex;
  1644. align-items: center;
  1645. z-index: 9999;
  1646. .light {
  1647. position: absolute;
  1648. top: -.5rem;
  1649. }
  1650. .btm-left {
  1651. position: absolute;
  1652. font-size: .7rem;
  1653. height: 2rem;
  1654. line-height: 2rem;
  1655. border: 1px $searchBorder;
  1656. border-left: none;
  1657. color: $inBlue;
  1658. display: flex;
  1659. -webkit-transform: translateX(-21rem) !important;
  1660. transform: translateX(-21rem) !important;
  1661. transition: all 0.5s ease-in-out !important;
  1662. .btm-legend {
  1663. height: 2rem;
  1664. text-align: center;
  1665. color: $inBlue;
  1666. padding: 0 .5rem;
  1667. cursor: pointer;
  1668. }
  1669. .btm-legend:hover {
  1670. background-color: $tipHover;
  1671. color: $white;
  1672. }
  1673. .btm-left-tip {
  1674. display: flex;
  1675. align-items: center;
  1676. margin: 0 .5rem;
  1677. .btm-left-block {
  1678. width: 1rem;
  1679. height: 1rem;
  1680. margin-right: .3rem;
  1681. border-radius: .2rem;
  1682. }
  1683. .btm-left-state-c1 {
  1684. background-color: $eventStateColor-xsb;
  1685. }
  1686. .btm-left-state-c2 {
  1687. background-color: $eventStateColor-cb;
  1688. }
  1689. .btm-left-state-c3 {
  1690. background-color: $eventStateColor-yqs;
  1691. }
  1692. .btm-left-state-c4 {
  1693. background-color: $eventStateColor-ld;
  1694. }
  1695. .btm-left-state-c5 {
  1696. background-color: $eventStateColor-bj;
  1697. }
  1698. .btm-left-state-c6 {
  1699. background-color: $eventStateColor-tb;
  1700. }
  1701. }
  1702. }
  1703. .btm-tip-to-right {
  1704. -webkit-transform: translateX(0) !important;
  1705. transform: translateX(0) !important;
  1706. transition: all 0.5s ease-in-out !important;
  1707. }
  1708. .bottom-menu-normal {
  1709. max-width: 70%;
  1710. padding: 0 3rem;
  1711. position: absolute;
  1712. left: 50%;
  1713. transform: translateX(-50%);
  1714. bottom: 0;
  1715. z-index: 999;
  1716. border-radius: 5px;
  1717. display: flex;
  1718. justify-content: center;
  1719. align-items: center;
  1720. // background: url(../assets/images/integrated/btm-menu.png) center no-repeat;
  1721. // background-size: cover;
  1722. .btm-m-con {
  1723. position: relative;
  1724. color: $inBlue;
  1725. font-size: .5rem;
  1726. padding: .6rem 1rem;
  1727. display: flex;
  1728. align-items: center;
  1729. justify-content: center;
  1730. -webkit-transform: translateY(0);
  1731. transform: translateY(0);
  1732. transition: all 0.2s ease-in-out;
  1733. cursor: pointer;
  1734. white-space: nowrap;
  1735. i {
  1736. font-size: 1rem;
  1737. color: $inBlue;
  1738. text-shadow: 0 0 10px rgba($color: $inBlue, $alpha: .6);
  1739. margin-right: 0.2rem;
  1740. }
  1741. .nav-child {
  1742. text-shadow: none !important;
  1743. position: absolute;
  1744. bottom: 3rem;
  1745. border: 1px solid saddlebrown;
  1746. padding: .5rem;
  1747. -moz-border-radius-topleft: 0;
  1748. -moz-border-radius-bottomright: 0;
  1749. background-color: $barBgc;
  1750. box-shadow: $barShadow;
  1751. border: 1px $barBorder;
  1752. left: 50%;
  1753. transform: translateX(-50%);
  1754. color: $inBlue;
  1755. .nav-child-btn {
  1756. padding: .2rem;
  1757. }
  1758. .forestban {
  1759. display: flex;
  1760. .forestban-con {
  1761. width: 20rem;
  1762. height: 20rem;
  1763. overflow-y: scroll;
  1764. border: 1px solid rgba(51, 70, 127, 0.7);
  1765. }
  1766. .forestban-right {
  1767. width: 10rem;
  1768. height: 20rem;
  1769. overflow-y: scroll;
  1770. padding: 0 1rem;
  1771. .el-checkbox-group {
  1772. display: flex;
  1773. flex-direction: column;
  1774. label {
  1775. padding: .4rem 0;
  1776. }
  1777. .el-checkbox {
  1778. color: $white;
  1779. }
  1780. }
  1781. }
  1782. }
  1783. }
  1784. }
  1785. .btm-m-con:hover,
  1786. .on {
  1787. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1788. -webkit-transform: translateX(0.2rem);
  1789. transform: translateX(0.2rem);
  1790. transition: all 0.2s ease-in-out;
  1791. .nav-child {
  1792. text-shadow: none !important;
  1793. }
  1794. i {
  1795. color: $inBlueHover;
  1796. text-shadow: 0 0 20px rgba($color: $inBlueHover, $alpha: 1.0);
  1797. }
  1798. }
  1799. }
  1800. .btm-right {
  1801. position: absolute;
  1802. font-size: .7rem;
  1803. height: 2rem;
  1804. display: flex;
  1805. right: 1rem;
  1806. align-items: center;
  1807. .el-badge {
  1808. display: flex !important;
  1809. margin-left: 1.5rem;
  1810. button {
  1811. padding: 0 .3rem;
  1812. height: 1.5rem;
  1813. background-color: #112543;
  1814. color: $inBlue;
  1815. border: 1px $searchBorder;
  1816. }
  1817. }
  1818. .el-badge:hover {
  1819. -webkit-transform: translateX(0.1rem);
  1820. transform: translateX(0.1rem);
  1821. transition: all 0.2s ease-in-out;
  1822. button {
  1823. text-shadow: 0 0 15px rgba($color: $inBlueHover, $alpha: 1.0);
  1824. }
  1825. }
  1826. }
  1827. }
  1828. .btm-r-pop-info {
  1829. display: flex;
  1830. width: 35rem;
  1831. flex-direction: column;
  1832. max-height: 85vh;
  1833. min-height: fit-content;
  1834. overflow-y: scroll;
  1835. padding: 1rem;
  1836. .btm-r-pop-info-box:hover {
  1837. box-shadow: $shadowListHover;
  1838. color: $inBlue;
  1839. border: 1px $countBorder;
  1840. }
  1841. .btm-r-pop-info-box {
  1842. width: 100%;
  1843. display: flex;
  1844. flex-direction: column;
  1845. background-color: $deepBG;
  1846. padding: .5rem;
  1847. border-radius: .5rem;
  1848. color: $inBlue;
  1849. border: 1px $searchBorder;
  1850. margin-bottom: 1rem;
  1851. .btm-r-pop-info-tit {
  1852. display: flex;
  1853. padding: .5rem;
  1854. h3 {
  1855. font-weight: bolder;
  1856. }
  1857. }
  1858. .btm-r-pop-info-con {
  1859. padding: .5rem;
  1860. display: flex;
  1861. flex-direction: column;
  1862. border-top: 1px $searchBorder;
  1863. border-bottom: 1px $searchBorder;
  1864. .btm-r-pop-info-list {
  1865. display: flex;
  1866. padding: .3rem 0;
  1867. .btm-r-pop-info-list-name {
  1868. width: 3.6rem;
  1869. text-align: right;
  1870. margin-right: 1rem;
  1871. }
  1872. .btm-r-pop-info-list-text {
  1873. }
  1874. }
  1875. }
  1876. .btm-r-pop-info-btm {
  1877. padding: .5rem;
  1878. display: flex;
  1879. justify-content: space-between;
  1880. .btm-r-pop-info-btm-btn {
  1881. button {
  1882. padding: .5rem;
  1883. }
  1884. }
  1885. }
  1886. }
  1887. }
  1888. //警铃
  1889. .fire-tip {
  1890. text-align: center;
  1891. width: 100%;
  1892. font-size: 44px;
  1893. color: #ff0000;
  1894. text-shadow: 0 0 1px #ffffff;
  1895. }
  1896. .fire-address {
  1897. text-align: center;
  1898. width: 100%;
  1899. font-size: 14px;
  1900. color: rgba(255, 255, 255, 0.8);
  1901. margin-top: 44px;
  1902. }
  1903. .fire-handle {
  1904. display: block;
  1905. text-align: center;
  1906. background: #00BFF0;
  1907. color: #ffffff;
  1908. border-radius: 20px;
  1909. font-size: 14px;
  1910. width: 80px;
  1911. height: 40px;
  1912. line-height: 40px;
  1913. margin: 24px auto;
  1914. text-decoration: none
  1915. }
  1916. .fire-handle:hover {
  1917. background: #06a2ca;
  1918. }
  1919. .bell {
  1920. position: absolute;
  1921. right: 10px;
  1922. bottom: -20px;
  1923. width: 100%;
  1924. height: 320px;
  1925. z-index: 999;
  1926. }
  1927. .bell canvas {
  1928. display: block;
  1929. position: absolute;
  1930. left: 0;
  1931. top: -9px;
  1932. }
  1933. /* 保持大小不变的小圆圈 */
  1934. .dot {
  1935. position: absolute;
  1936. width: 96px;
  1937. height: 96px;
  1938. left: 160px;
  1939. top: 160px;
  1940. background: url('../assets/images/bell.gif') no-repeat;
  1941. // background: url(.) no-repeat;
  1942. background-size: 100%;
  1943. z-index: 200;
  1944. }
  1945. /* 产生动画(向外扩散变大)的圆圈 */
  1946. .pulse,
  1947. .pulse-big {
  1948. position: absolute;
  1949. width: 420px;
  1950. height: 420px;
  1951. border: 2px solid #EF2D02;
  1952. background: rgba(239, 45, 2, 0.8);
  1953. border-radius: 50%;
  1954. z-index: 100;
  1955. opacity: 0;
  1956. }
  1957. .pulse {
  1958. background: rgba(239, 45, 2, 0.6) !important;
  1959. -webkit-animation: warn 0.9s ease-out;
  1960. -moz-animation: warn 0.9s ease-out;
  1961. animation: warn 0.9s ease-out;
  1962. -webkit-animation-iteration-count: infinite;
  1963. -moz-animation-iteration-count: infinite;
  1964. animation-iteration-count: infinite;
  1965. box-shadow: 1px 1px 30px #EF2D02;
  1966. }
  1967. .pulse-big {
  1968. background: rgba(239, 45, 2, 0.6) !important;
  1969. -webkit-animation: warn1 0.9s ease-out;
  1970. -moz-animation: warn1 0.9s ease-out;
  1971. animation: warn1 0.9s ease-out;
  1972. -webkit-animation-iteration-count: infinite;
  1973. -moz-animation-iteration-count: infinite;
  1974. animation-iteration-count: infinite;
  1975. box-shadow: 1px 1px 30px #EF2D02;
  1976. }
  1977. @keyframes warn {
  1978. 0% {
  1979. -moz-transform: scale(0);
  1980. transform: scale(0);
  1981. opacity: 1;
  1982. }
  1983. 100% {
  1984. -moz-transform: scale(1);
  1985. transform: scale(1);
  1986. opacity: 0;
  1987. }
  1988. }
  1989. @keyframes warn1 {
  1990. 0% {
  1991. -o-transform: scale(0);
  1992. transform: scale(0);
  1993. opacity: 1;
  1994. }
  1995. 100% {
  1996. -o-transform: scale(0.6);
  1997. transform: scale(0.6);
  1998. opacity: 0;
  1999. }
  2000. }
  2001. </style>