vBottomMenu.vue 78 KB

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