eventdetailsdialog.vue 130 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185
  1. <template>
  2. <div class="visual-con">
  3. <!--主体-->
  4. <div class="visual-body">
  5. <button @click="showEventDialog" style="position: absolute; left:50%;top: 50vh; transform: translateX(-50%);">
  6. </button>
  7. <!-- 弹层 -->
  8. <el-dialog title="事件详情" :visible.sync="eventDialog" customClass="customWidth" v-if="eventDialog"
  9. @close="cancelEventShow()">
  10. <div class="dia-event-info">
  11. <el-row>
  12. <!-- 左侧 -->
  13. <el-col :span="18" class="dia-left">
  14. <div ref="imageTofile" style="height: 75vh;">
  15. <!-- 应急预案 -->
  16. <div class="dia-left-top">
  17. <div class="dia-left-top-tit">应急预案</div>
  18. <div class="dia-left-top-carousel">
  19. <el-carousel height="30px" direction="vertical" :interval="2000">
  20. <el-carousel-item v-if="visuForestCloudYuAnBo!=null">
  21. <!-- <el-tooltip class="item" effect="dark" :content="visuForestCloudYuAnBo.reserveName" placement="top-start">
  22. <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>
  23. </el-tooltip> -->
  24. <el-tooltip placement="top" popper-class="js-tps"
  25. :visible-arrow="visuForestCloudYuAnBo.reserveName.length>6">
  26. <div slot="content" class="leader-info-container">
  27. <div class="leader-info-list-con" v-show="visuForestCloudYuAnBo.reserveName.length>6">
  28. <h4>{{ visuForestCloudYuAnBo.reserveName }}</h4>
  29. </div>
  30. </div>
  31. <a
  32. :href="visuForestCloudYuAnBo.fileUrl">{{ visuForestCloudYuAnBo.reserveName | ellipsisFont6 }}</a>
  33. </el-tooltip>
  34. </el-carousel-item>
  35. <el-carousel-item v-else>
  36. <a href="#">暂未关联预案</a>
  37. </el-carousel-item>
  38. </el-carousel>
  39. </div>
  40. <el-button size="mini" type="primary" class="yatz_button" @click="showUpdateYjYuAn">预案调整
  41. </el-button>
  42. </div>
  43. <!-- 应急预案end -->
  44. <!-- 左侧资源 -->
  45. <div class="leftbar" style="width:fit-content !important;bottom:0rem;left: 1rem; top: unset;">
  46. <div class="forthis" style="width:1320px; display: flex;">
  47. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">
  48. <div class="i-list-con"
  49. style="width: 100%;display: flex; align-items: center;justify-content: space-between">
  50. <div class="d-l-con-icon" style="width: fit-content; flex-direction:row;flex-wrap: nowrap;"
  51. ref="thisWidthWH">
  52. <leftRightSwiperScroll v-if="isLoading">
  53. <div class="icon-con" style="width: fit-content !important;"
  54. v-for="(item,index) in resourcesList" @click="fireControlViewPoint(item.type)"
  55. :key="index">
  56. <div class="iconfont icon icon-normal" :class="item.icon"
  57. :style="'background:' + item.bg"></div>
  58. <div class="icon-text">
  59. <h5 style="white-space: nowrap;">{{ item.resourceName }}</h5>
  60. </div>
  61. </div>
  62. </leftRightSwiperScroll>
  63. </div>
  64. <el-input type="number" v-model="radius" class="d-input-bottom" placeholder="请输入搜索半径" />
  65. </div>
  66. </dv-border-box-7>
  67. </div>
  68. </div>
  69. <!-- 左侧资源end -->
  70. <!-- 底部工具栏 -->
  71. <!-- <div class="dia-left-btm-tool">
  72. </div> -->
  73. <!-- 底部工具栏end -->
  74. <div class="fire-m" style="bottom:5rem">
  75. <el-button size="small" icon="el-icon-s-grid" @click="showTVWallDiaLog()" v-show="eventType==1">视频联动</el-button>
  76. <el-button size="small" icon="el-icon-upload" @click="showheatPlotting()" v-show="eventType==1">火灾蔓延
  77. </el-button>
  78. </div>
  79. <!-- 地图 -->
  80. <supermapDialog ref="supermapDialog" style="position: absolute; top:0;left: 0;"
  81. :mapDiv="'forestWarmSuperMap'"
  82. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}" :codes="['9fa5']"
  83. :isSideBySide="false" :isdynamicPlotting="true" @preview="preview" />
  84. <!-- <supermapDialog ref="supermapDialog" -->
  85. <!-- @preview="preview"/> -->
  86. <!-- 地图end -->
  87. </div>
  88. </el-col>
  89. <!-- 左侧end -->
  90. <!-- 右侧 -->
  91. <el-col :span="6" class="dia-right">
  92. <div class="e-right">
  93. <div class="forthis1">
  94. <dv-border-box-7 backgroundColor="#040b1f" style="padding-bottom:1rem ;">
  95. <div class="i-list-con">
  96. <div class="this-con">
  97. <div class="z-info-list" style="margin-top: 0;">
  98. <el-timeline>
  99. <el-timeline-item color="#2bacf7" :timestamp="item.createTime" placement="top"
  100. v-for="(item,index) in eventLogList">
  101. <el-card style="width: 40vh">
  102. <div class="z-info-list-con">
  103. <div class="user-and-time flex-d">
  104. <span>{{ item.createName }}</span>
  105. <span v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  106. class="el-icon-location"></i> {{ address }}</span>
  107. <span v-else></span>
  108. </div>
  109. <div class="z-info">
  110. <div class="this-con-list-info">
  111. {{ item.logContent }}
  112. </div>
  113. <div>
  114. <router-link to="#"
  115. @click.native="clickFile(itemfile.fileUrl,itemfile.fileName,itemfile.fileType)"
  116. v-for="(itemfile,indexfile) in item.fileVOs">
  117. <el-image :src="itemfile.fileUrl" v-if="itemfile.fileType=='image'"
  118. :preview-src-list="assetTypeAnImage(item.fileVOs)"
  119. style="width:3rem; height:3rem;margin: 2px;" :title="itemfile.fileName">
  120. </el-image>
  121. <img v-else-if="itemfile.fileType=='video'"
  122. style="width:3rem; height:3rem;margin: 2px;"
  123. :src="require('@/assets/fileTypeImage/mp4.png')" :title="itemfile.fileName">
  124. </img>
  125. <img v-else-if="itemfile.fileType=='word'"
  126. style="width:3rem; height:3rem;margin: 2px;"
  127. :src="require('@/assets/fileTypeImage/word.png')" :title="itemfile.fileName">
  128. </img>
  129. <img v-else-if="itemfile.fileType=='excel'"
  130. style="width:3rem; height:3rem;margin: 2px;"
  131. :src="require('@/assets/fileTypeImage/excel.png')" :title="itemfile.fileName">
  132. </img>
  133. <img v-else style="width:3rem; height:3rem;margin: 2px;"
  134. :src="require('@/assets/fileTypeImage/file.png')" :title="itemfile.fileName">
  135. </img>
  136. </router-link>
  137. </div>
  138. </div>
  139. </div>
  140. </el-card>
  141. </el-timeline-item>
  142. </el-timeline>
  143. </div>
  144. </div>
  145. </div>
  146. </dv-border-box-7>
  147. </div>
  148. <div class="forthis2">
  149. <dv-border-box-7 backgroundColor="#040b1f">
  150. <div class="i-list-con">
  151. <div class="this-con h-25 no-padding">
  152. <div class="z-info-list" style="margin-top: 0;">
  153. <div class="z-info-btm-grp">
  154. <div class="z-info-btm-grp-top">
  155. <div class="z-info-btm-grp-left">
  156. <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传
  157. </el-button>
  158. <el-button size="small" icon="el-icon-download" @click="toImage()">截图上传
  159. </el-button>
  160. <el-button size="small" icon="el-icon-download" @click="showResponsibility()"
  161. v-if="eventStatusValue!='forest_event_status_1'&&eventStatusValue!='forest_event_status_7'">责任制
  162. </el-button>
  163. <el-button
  164. v-if="eventStatusValue=='forest_event_status_2' && statusFlag=='1' && dataStatus=='0'"
  165. size="small" icon="el-icon-download"
  166. @click="updateCentereventTEventcatalogueStatus('cz',true)">处置
  167. </el-button>
  168. </div>
  169. <div class="z-info-btm-grp-right">
  170. <el-button size="small" icon="el-icon-mic" @click="Meeting()">会议
  171. </el-button>
  172. </div>
  173. </div>
  174. <div class="z-info-btm-input">
  175. <el-input type="textarea" v-model="eventLog" :autosize="{ minRows: 7, maxRows: 7}" :maxlength="500"
  176. placeholder="请输入反馈信息">
  177. </el-input>
  178. <div class="z-info-btm-input-btn" v-if="eventStatusValue=='forest_event_status_1'">
  179. <div style="text-align:left">
  180. <el-button size="small" icon="el-icon-s-flag"
  181. @click="updateCentereventTEventcatalogueStatus('qr',true)">
  182. 确认
  183. </el-button>
  184. <el-button size="small" icon="el-icon-question"
  185. @click="updateCentereventTEventcatalogueStatus('wb',true)">
  186. 误报
  187. </el-button>
  188. <el-button size="small" icon="el-icon-warning"
  189. @click="updateCentereventTEventcatalogueStatus('cf',true)">
  190. 重复
  191. </el-button>
  192. </div>
  193. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  194. </el-button>
  195. </div>
  196. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_7'">
  197. <div style="text-align:left">
  198. <el-button size="small" icon="el-icon-s-flag"
  199. @click="updateCentereventTEventcatalogueStatus('qs',false)">
  200. 签收
  201. </el-button>
  202. <el-button size="small" icon="el-icon-question"
  203. @click="updateCentereventTEventcatalogueStatus('wb',false)">
  204. 误报
  205. </el-button>
  206. <el-button size="small" icon="el-icon-warning"
  207. @click="updateCentereventTEventcatalogueStatus('cf',false)">
  208. 重复
  209. </el-button>
  210. </div>
  211. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  212. </el-button>
  213. </div>
  214. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_2'">
  215. <div>
  216. <!--<el-button size="small"-->
  217. <!--icon="el-icon-question"-->
  218. <!--@click="updateCentereventTEventcatalogueStatus('wb',false)">-->
  219. <!--误报-->
  220. <!--</el-button>-->
  221. <!--<el-button size="small"-->
  222. <!--icon="el-icon-warning"-->
  223. <!--@click="updateCentereventTEventcatalogueStatus('cf',false)">-->
  224. <!--重复-->
  225. <!--</el-button>-->
  226. <el-button size="small" icon="el-icon-phone" style="text-align:left"
  227. @click="updateCentereventTEventcatalogueStatus('ld',false)">
  228. 联动
  229. </el-button>
  230. <el-button size="small" v-if="statusFlag=='1'" icon="el-icon-success"
  231. style="text-align:left" @click="updateCentereventTEventcatalogueStatus('bj',true)">
  232. 办结
  233. </el-button>
  234. </div>
  235. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  236. </el-button>
  237. </div>
  238. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_5'">
  239. <el-button size="small" icon="el-icon-success" style="text-align:left"
  240. v-if="eventTypeXl == 101&&statusFlag=='1'"
  241. @click="updateCentereventTEventcatalogueStatus('gd',false)">
  242. 填报
  243. </el-button>
  244. <el-button size="small" icon="el-icon-success" style="text-align:left"
  245. v-else-if="eventTypeXl != 101&&statusFlag=='1'"
  246. @click="updateCentereventTEventcatalogueStatus('gd',true)">
  247. 归档
  248. </el-button>
  249. <el-button size="small" v-else-if="statusFlag=='2'" icon="el-icon-success"
  250. style="text-align:left" @click="updateCentereventTEventcatalogueStatus('sh',false)">
  251. 审核
  252. </el-button>
  253. <el-button size="small" v-else-if="isExamine =='0'" icon="el-icon-loading" style="text-align:left">
  254. 请等待复核,复核通过后方可归档。
  255. </el-button>
  256. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  257. </el-button>
  258. </div>
  259. <div class="z-info-btm-input-btn" v-else>
  260. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  261. </el-button>
  262. </div>
  263. </div>
  264. </div>
  265. </div>
  266. </div>
  267. </div>
  268. </dv-border-box-7>
  269. </div>
  270. </div>
  271. </el-col>
  272. <!-- 左侧end -->
  273. </el-row>
  274. </div>
  275. </el-dialog>
  276. </div>
  277. <vBottomMenu ref="bottomMenu"></vBottomMenu>
  278. <eventLogUpload ref="eventLogUpload"></eventLogUpload>
  279. <el-dialog :title="eventConfirmTitle" :visible.sync="showEventConfirm" v-if="showEventConfirm" width="50%"
  280. class="top-dialog" @close="cancelEventConfirm()">
  281. <el-form label-width="80px">
  282. <el-form-item label="火灾半径" v-if="eventStatusButton=='qs'&&eventTypeXl==null">
  283. <el-input type="number" v-model="sendHuoZaiBanJing" placeholder="请输入火灾半径" />
  284. </el-form-item>
  285. <el-form-item
  286. v-if="eventStatusButton=='wb'||eventStatusButton=='qs'||eventStatusButton=='cf'||eventStatusButton=='ld'"
  287. :label="deptNameitem">
  288. <!-- <treeselect v-model="deptId" :options="deptOptions" multiple :show-count="true"-->
  289. <!-- placeholder="请选择签收部门"/>-->
  290. <el-select v-model="sendDeptName" clearable placeholder="请选择部门" class="m-r-1rem" @change="setValue"
  291. v-if="eventStatusButton=='wb'||eventStatusButton=='qs'||eventStatusButton=='cf'||eventStatusButton=='ld'">
  292. <el-option v-for="item in deptOptions" :key="item.deptId" :label="item.deptName"
  293. :value="{value:item.deptId,label:item.deptName}">
  294. </el-option>
  295. </el-select>
  296. </el-form-item>
  297. <el-form-item label="事件类型" v-if="eventStatusButton=='qs'&& eventTypeXl == null">
  298. <el-select v-model="sendEventType" placeholder="请选择事件类型!" clearable>
  299. <el-option v-for="item in eventTypeList" :key="item.id" :label="item.eventTypeName" :value="item.id" />
  300. </el-select>
  301. </el-form-item>
  302. <el-form-item label="任务来源" v-if="eventStatusButton=='ld'">
  303. <el-select v-model="sendTaskSource" placeholder="请选择任务来源!" clearable>
  304. <el-option v-for="dict in dict.type.task_source" :key="dict.value" :label="dict.label"
  305. :value="dict.value" />
  306. </el-select>
  307. </el-form-item>
  308. <el-form-item label="联动标题" v-if="eventStatusButton=='ld'">
  309. <el-input v-model="sendTaskTitle" placeholder="请输入联动标题" :maxlength="50"/>
  310. </el-form-item>
  311. <el-form-item label="联动内容" v-if="eventStatusButton=='ld'">
  312. <el-input type="textarea" v-model="sendTaskContent" :autosize="{ minRows: 7, maxRows: 7}" :maxlength="500"
  313. placeholder="请输入联动内容">
  314. </el-input>
  315. </el-form-item>
  316. <el-form-item label="联动部门" v-if="eventStatusButton=='ld'">
  317. <el-input placeholder="输入关键字进行过滤" v-model="filterText">
  318. </el-input>
  319. <el-tree class="tree-border tree_scroll" style="height: 20vh; overflow-y:scroll" :data="deptOptionsLiandong"
  320. show-checkbox ref="LiandongDept" node-key="id" :check-strictly="true" :filter-node-method="filterNode"
  321. :accordion="true" empty-text="加载中,请稍候" :props="defaultProps"></el-tree>
  322. <!-- default-expand-all-->
  323. </el-form-item>
  324. <el-form-item label="关联预案" v-if="eventStatusButton=='qs'">
  325. <el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" filterable clearable>
  326. <el-option v-for="item in guanLianYuAnList" :key="item.id" :label="item.resTitle" :value="item.id" />
  327. </el-select>
  328. </el-form-item>
  329. <el-form-item label="审核意见" v-if="eventStatusButton=='sh'">
  330. <el-input type="textarea" v-model="eventDescription" :autosize="{ minRows: 7, maxRows: 7}"
  331. placeholder="请输入审核意见">
  332. </el-input>
  333. </el-form-item>
  334. <el-form-item label="附件" prop="schedulePictures" v-if="eventStatusButton=='sh'">
  335. <ImageUpload ref="ImageUpload" :limit="10" :fileType="['jpg', 'png','jpeg']" :value="uploadAttachList"
  336. @input="getUrl"></ImageUpload>
  337. </el-form-item>
  338. <!--<el-form-item label="联系人" v-if="eventStatusButton=='qs'">-->
  339. <!--<el-select multiple collapse-tags v-model='sendUserFegin' placeholder='请选择联系人!' clearable filterable>-->
  340. <!--<el-option-->
  341. <!--v-for="item in userFeginList"-->
  342. <!--:label="item.nickName"-->
  343. <!--:value="item.phonenumber"-->
  344. <!--/>-->
  345. <!--</el-select>-->
  346. <!--</el-form-item>-->
  347. <el-button size="mini" type="primary" v-if="eventStatusButton=='qr'"
  348. @click="updateCentereventTEventcatalogueStatus('qr',false)">确认
  349. </el-button>
  350. <el-button size="mini" type="primary" v-if="eventStatusButton=='qs'"
  351. @click="updateCentereventTEventcatalogueStatus('qs',true)">签收
  352. </el-button>
  353. <el-button size="mini" type="primary" v-if="eventStatusButton=='wb'"
  354. @click="updateCentereventTEventcatalogueStatus('wb',true)">误报
  355. </el-button>
  356. <el-button size="mini" type="primary" v-if="eventStatusButton=='cf'"
  357. @click="updateCentereventTEventcatalogueStatus('cf',true)">重复
  358. </el-button>
  359. <el-button size="mini" type="primary" v-if="eventStatusButton=='ld'"
  360. @click="updateCentereventTEventcatalogueStatus('ld',true)">发起联动
  361. </el-button>
  362. <el-button size="mini" type="primary" v-if="eventStatusButton=='sh'"
  363. @click="updateCentereventTEventcatalogueStatus('shtg',true)">通过
  364. </el-button>
  365. <el-button size="mini" type="primary" v-if="eventStatusButton=='sh'"
  366. @click="updateCentereventTEventcatalogueStatus('shbtg',true)">不通过
  367. </el-button>
  368. </el-form>
  369. </el-dialog>
  370. <el-dialog title="调整预案" :visible.sync="showGuanLianYuAnConfirm" v-if="showGuanLianYuAnConfirm" width="50%"
  371. class="top-dialog tz_tk">
  372. <el-form label-width="80px">
  373. <el-form-item label="关联预案">
  374. <el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" clearable>
  375. <el-option v-for="item in guanLianYuAnList" :key="item.id" :label="item.resTitle" :value="item.id" />
  376. </el-select>
  377. </el-form-item>
  378. <el-button size="mini" type="primary" class="fr_button" @click="updateYjYuAn">确定
  379. </el-button>
  380. <div style="clear: both;"></div>
  381. </el-form>
  382. </el-dialog>
  383. <el-dialog title="责任制" :visible.sync="showResponsibilityDialog" v-if="showResponsibilityDialog" width="65%"
  384. @close="closeResponsibilityDialog()">
  385. <el-form label-width="1500px">
  386. <div class="bottom">
  387. <!-- 左侧菜单栏 -->
  388. <div class="bottomLeft">
  389. <div class="leftItem d-l-con padding-box nowrap" v-for="(item,index) in depteventList">
  390. <div class="bgt-info">
  391. <div class="bgt-info-name" :class="{on:iconCurrentIndex==item.deptId}"
  392. @click="dutysystemSelect(item.deptId,item.deptName,item.id)">{{ item.deptName }}
  393. </div>
  394. </div>
  395. </div>
  396. </div>
  397. <!-- 左侧菜单栏对应的右侧的内容 -->
  398. <div class="bottomRight" ref="wrapper">
  399. <el-button size="mini" type="danger" v-if="depteventId!=null&&depteventId!=''" @click="addLine">添加
  400. </el-button>
  401. <el-button size="mini" type="danger" v-if="depteventId!=null&&depteventId!=''" @click="finUserByDept">选择
  402. </el-button>
  403. <el-table :data="dutysystemTableData" style="width: 100%" :rules="rules">
  404. <el-table-column prop="id" label="主键" v-if="false">
  405. <template slot-scope="scope" hidden>
  406. <el-input v-model="scope.row.id" readonly placeholder="主键"></el-input>
  407. </template>
  408. </el-table-column>
  409. <el-table-column prop="name" label="姓名">
  410. <template slot-scope="scope">
  411. <el-input v-model="scope.row.name" placeholder="姓名"
  412. οninput="value=value.replace(/^[\u4e00-\u9fa5]{2,4}$/,'')"></el-input>
  413. </template>
  414. </el-table-column>
  415. <el-table-column prop="post" label="岗位">
  416. <template slot-scope="scope">
  417. <el-input v-model="scope.row.post" placeholder="岗位"></el-input>
  418. </template>
  419. </el-table-column>
  420. <el-table-column prop="telphone" label="手机号码">
  421. <template slot-scope="scope">
  422. <el-input v-model="scope.row.telphone" placeholder="手机号码"
  423. οninput="value=value.replace(/^((13[0-9])|(14[5-9])|(15([0-3]|[5-9]))|(16[6-7])|(17[1-8])|(18[0-9])|(19[1|3])|(19[5|6])|(19[8|9]))\d{8}$/,'')"></el-input>
  424. </template>
  425. </el-table-column>
  426. <el-table-column prop="bookbuytime" label="操作">
  427. <template slot-scope="scope">
  428. <el-button size="mini" type="danger" icon="el-icon-delete"
  429. @click="handleDelete(scope.$index, scope.row)">删除
  430. </el-button>
  431. <!--<el-button-->
  432. <!--size="mini"-->
  433. <!--type="danger"-->
  434. <!--icon="el-icon-save"-->
  435. <!--@click="handleSave(scope.$index, scope.row)">保存-->
  436. <!--</el-button>-->
  437. </template>
  438. </el-table-column>
  439. </el-table>
  440. </div>
  441. </div>
  442. <el-button size="mini" type="primary" class="fr_button" @click="addResponsibilityDialog">确定
  443. </el-button>
  444. <div style="clear: both;"></div>
  445. </el-form>
  446. </el-dialog>
  447. <!-- 会议弹窗 start -->
  448. <el-dialog title="视频会议" :visible.sync="showMeetingMsgDialog" v-if="showMeetingMsgDialog" width="65%"
  449. @close="closeMeetingMsgDialog()">
  450. <el-form label-width="1500px">
  451. <div class="bottom">
  452. <!-- 左侧菜单栏 -->
  453. <div class="bottomLeft">
  454. <div class="leftItem d-l-con padding-box nowrap" v-for="(item,index) in depteventList">
  455. <div class="bgt-info">
  456. <div class="bgt-info-name" :class="{on:iconCurrentIndex==item.deptId}"
  457. @click="dutysystemSelect(item.deptId,item.deptName,item.id)">{{ item.deptName }}
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. <!-- 左侧菜单栏对应的右侧的内容 -->
  463. <div class="bottomRight" ref="wrapper">
  464. <el-button size="mini" type="danger" v-if="depteventId!=null&&depteventId!=''" @click="addLine">添加
  465. </el-button>
  466. <el-button size="mini" type="danger" v-if="depteventId!=null&&depteventId!=''" @click="finUserByDept">选择
  467. </el-button>
  468. <el-table :data="dutysystemTableData" style="width: 100%" :rules="rules">
  469. <el-table-column prop="id" label="主键" v-if="false">
  470. <template slot-scope="scope" hidden>
  471. <el-input v-model="scope.row.id" readonly placeholder="主键"></el-input>
  472. </template>
  473. </el-table-column>
  474. <el-table-column prop="name" label="姓名">
  475. <template slot-scope="scope">
  476. <el-input v-model="scope.row.name" placeholder="姓名"
  477. οninput="value=value.replace(/^[\u4e00-\u9fa5]{2,4}$/,'')"></el-input>
  478. </template>
  479. </el-table-column>
  480. <el-table-column prop="post" label="岗位">
  481. <template slot-scope="scope">
  482. <el-input v-model="scope.row.post" placeholder="岗位"></el-input>
  483. </template>
  484. </el-table-column>
  485. <el-table-column prop="telphone" label="手机号码">
  486. <template slot-scope="scope">
  487. <el-input v-model="scope.row.telphone" placeholder="手机号码"
  488. οninput="value=value.replace(/^((13[0-9])|(14[5-9])|(15([0-3]|[5-9]))|(16[6-7])|(17[1-8])|(18[0-9])|(19[1|3])|(19[5|6])|(19[8|9]))\d{8}$/,'')"></el-input>
  489. </template>
  490. </el-table-column>
  491. <el-table-column prop="bookbuytime" label="操作">
  492. <template slot-scope="scope">
  493. <el-button size="mini" type="danger" icon="el-icon-delete"
  494. @click="handleDelete(scope.$index, scope.row)">删除
  495. </el-button>
  496. <!--<el-button-->
  497. <!--size="mini"-->
  498. <!--type="danger"-->
  499. <!--icon="el-icon-save"-->
  500. <!--@click="handleSave(scope.$index, scope.row)">保存-->
  501. <!--</el-button>-->
  502. </template>
  503. </el-table-column>
  504. </el-table>
  505. </div>
  506. </div>
  507. <el-button size="mini" type="primary" class="fr_button" @click="sendMsg">发送短信
  508. </el-button>
  509. <div style="clear: both;"></div>
  510. </el-form>
  511. </el-dialog>
  512. <!-- 会议弹窗 end -->
  513. <el-dialog title="火险报告" :visible.sync="showEventConfirm_gd" v-if="showEventConfirm_gd" width="100%"
  514. class="top-dialog" @close="cancelEventConfirm_gd()">
  515. <div class="table-container">
  516. <form>
  517. <table id="table1" cellpadding="0" cellspacing="0">
  518. <thead style="width: 100%;padding:.5rem 0;">
  519. <th rowspan="1" colspan="1" class="txt_left" width="100px">填报单位:</th>
  520. <th rowspan="1" colspan="6" align="left"><input type="text" style=" width:100%;margin-left: .5rem;"
  521. v-model="table1.reportUnit" /></th>
  522. <th rowspan="1" colspan="2" class="txt_right">填报时间:</th>
  523. <th rowspan="1" colspan="6" align="left"><input type="text" style="width:3rem;text-align: center;"
  524. v-model="table1.reportTimeY" />年<input type="text" style="width:4rem;text-align: center;"
  525. v-model="table1.reportTimeM" />月<input type="text" style="width:3rem;text-align: center;"
  526. v-model="table1.reportTimeD" />日
  527. </th>
  528. <th rowspan="1" colspan="8" style="text-align: right;">吉林省人民政府森林防火指挥部办公室制</th>
  529. </thead>
  530. <tbody>
  531. <tr>
  532. <td colspan="22" rowspan="1" class="font1" style="letter-spacing:3rem;padding: .5rem 0">森林火灾损失</td>
  533. <td colspan="1" rowspan="6">
  534. <table class="border0">
  535. <tr>
  536. <td>备注</td>
  537. </tr>
  538. </table>
  539. </td>
  540. </tr>
  541. <tr>
  542. <td rowspan="4" colspan="1">
  543. <table class="border0">
  544. <tr>
  545. <td>森林火灾<br>损失总计</td>
  546. </tr>
  547. </table>
  548. </td>
  549. <td rowspan="1" colspan="12">火灾损失价值</td>
  550. <td rowspan="1" colspan="9">扑火费用支出</td>
  551. </tr>
  552. <tr>
  553. <td rowspan="3" colspan="1">
  554. <table class="border0">
  555. <tr>
  556. <td>合计</td>
  557. </tr>
  558. </table>
  559. </td>
  560. <td rowspan="1" colspan="4">林木资源</td>
  561. <td rowspan="1" colspan="6">人员伤亡</td>
  562. <td rowspan="3" colspan="1">
  563. <table class="border0">
  564. <tr>
  565. <td>其他<br>火灾<br>损失</td>
  566. </tr>
  567. </table>
  568. </td>
  569. <td rowspan="3" colspan="1">
  570. <table class="border0">
  571. <tr>
  572. <td>合计</td>
  573. </tr>
  574. </table>
  575. </td>
  576. <td rowspan="1" colspan="2">
  577. <table class="border0">
  578. <tr>
  579. <td>人工费</td>
  580. </tr>
  581. </table>
  582. </td>
  583. <td rowspan="1" colspan="3">
  584. <table class="border0">
  585. <tr>
  586. <td>车辆费</td>
  587. </tr>
  588. </table>
  589. </td>
  590. <td rowspan="1" colspan="2">
  591. <table class="border0">
  592. <tr>
  593. <td>飞行费</td>
  594. </tr>
  595. </table>
  596. </td>
  597. <td rowspan="3" colspan="1">
  598. <table class="border0">
  599. <tr>
  600. <td>其他<br>扑火<br>费用</td>
  601. </tr>
  602. </table>
  603. </td>
  604. </tr>
  605. <tr>
  606. <td rowspan="1" colspan="2">成林</td>
  607. <td rowspan="1" colspan="2">幼林</td>
  608. <td rowspan="1" colspan="2">轻伤</td>
  609. <td rowspan="1" colspan="2">重伤</td>
  610. <td rowspan="1" colspan="2">死亡</td>
  611. <td rowspan="2" colspan="1">
  612. <table class="border0">
  613. <tr>
  614. <td>出动<br>人工</td>
  615. </tr>
  616. </table>
  617. </td>
  618. <td rowspan="2" colspan="1">
  619. <table class="border0">
  620. <tr>
  621. <td>支出<br>费用</td>
  622. </tr>
  623. </table>
  624. </td>
  625. <td rowspan="2" colspan="1">
  626. <table class="border0">
  627. <tr>
  628. <td>计</td>
  629. </tr>
  630. </table>
  631. </td>
  632. <td rowspan="2" colspan="1">
  633. <table class="border0">
  634. <tr>
  635. <td>其中<br>汽车</td>
  636. </tr>
  637. </table>
  638. </td>
  639. <td rowspan="2" colspan="1">
  640. <table class="border0">
  641. <tr>
  642. <td>支出<br>费用</td>
  643. </tr>
  644. </table>
  645. </td>
  646. <td rowspan="2" colspan="1">
  647. <table class="border0">
  648. <tr>
  649. <td>出动<br>飞机</td>
  650. </tr>
  651. </table>
  652. </td>
  653. <td rowspan="2" colspan="1">
  654. <table class="border0">
  655. <tr>
  656. <td>支出<br>费用</td>
  657. </tr>
  658. </table>
  659. </td>
  660. </tr>
  661. <tr>
  662. <td rowspan="1" colspan="1">蓄积</td>
  663. <td rowspan="1" colspan="1">价值</td>
  664. <td rowspan="1" colspan="1">株数</td>
  665. <td rowspan="1" colspan="1">价值</td>
  666. <td rowspan="1" colspan="1">人数</td>
  667. <td rowspan="1" colspan="1">支出费用</td>
  668. <td rowspan="1" colspan="1">人数</td>
  669. <td rowspan="1" colspan="1">支出费用</td>
  670. <td rowspan="1" colspan="1">人数</td>
  671. <td rowspan="1" colspan="1">支出费用</td>
  672. </tr>
  673. <tr>
  674. <td rowspan="1" colspan="1">万元</td>
  675. <td rowspan="1" colspan="1">万元</td>
  676. <td rowspan="1" colspan="1">米³</td>
  677. <td rowspan="1" colspan="1">万元</td>
  678. <td rowspan="1" colspan="1">万株</td>
  679. <td rowspan="1" colspan="1">万元</td>
  680. <td rowspan="1" colspan="1">人</td>
  681. <td rowspan="1" colspan="1">万元</td>
  682. <td rowspan="1" colspan="1">人</td>
  683. <td rowspan="1" colspan="1">万元</td>
  684. <td rowspan="1" colspan="1">人</td>
  685. <td rowspan="1" colspan="1">万元</td>
  686. <td rowspan="1" colspan="1">万元</td>
  687. <td rowspan="1" colspan="1">万元</td>
  688. <td rowspan="1" colspan="1">工日</td>
  689. <td rowspan="1" colspan="1">万元</td>
  690. <td rowspan="1" colspan="1">台</td>
  691. <td rowspan="1" colspan="1">台</td>
  692. <td rowspan="1" colspan="1">万元</td>
  693. <td rowspan="1" colspan="1">架次</td>
  694. <td rowspan="1" colspan="1">万元</td>
  695. <td rowspan="1" colspan="1">万元</td>
  696. </tr>
  697. <tr>
  698. <td rowspan="1" colspan="1">1</td>
  699. <td rowspan="1" colspan="1">2</td>
  700. <td rowspan="1" colspan="1">3</td>
  701. <td rowspan="1" colspan="1">4</td>
  702. <td rowspan="1" colspan="1">5</td>
  703. <td rowspan="1" colspan="1">6</td>
  704. <td rowspan="1" colspan="1">7</td>
  705. <td rowspan="1" colspan="1">8</td>
  706. <td rowspan="1" colspan="1">9</td>
  707. <td rowspan="1" colspan="1">10</td>
  708. <td rowspan="1" colspan="1">11</td>
  709. <td rowspan="1" colspan="1">12</td>
  710. <td rowspan="1" colspan="1">13</td>
  711. <td rowspan="1" colspan="1">14</td>
  712. <td rowspan="1" colspan="1">15</td>
  713. <td rowspan="1" colspan="1">16</td>
  714. <td rowspan="1" colspan="1">17</td>
  715. <td rowspan="1" colspan="1">18</td>
  716. <td rowspan="1" colspan="1">19</td>
  717. <td rowspan="1" colspan="1">20</td>
  718. <td rowspan="1" colspan="1">21</td>
  719. <td rowspan="1" colspan="1">22</td>
  720. <td rowspan="1" colspan="1">23</td>
  721. </tr>
  722. <tr class="int_tr">
  723. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestFireLossTotal" />
  724. </td>
  725. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.fireLossTotal" /></td>
  726. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestArea" /></td>
  727. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestPrice" /></td>
  728. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.treesNumber" /></td>
  729. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.treesPrice" /></td>
  730. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.minorInjuriesNumber" />
  731. </td>
  732. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.minorInjuriesPrice" />
  733. </td>
  734. <td rowspan="1" colspan="1"><input type="text" class="border0"
  735. v-model="table1.seriouslyInjuredNumber" />
  736. </td>
  737. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.seriouslyInjuredPrice" />
  738. </td>
  739. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.deathNumber" /></td>
  740. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.deathPrice" /></td>
  741. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.elseFireLossPrice" />
  742. </td>
  743. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.blazesPriceTotal" /></td>
  744. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.artificialDays" /></td>
  745. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.artificialPrice" /></td>
  746. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.vehicleNumber" /></td>
  747. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.carNumber" /></td>
  748. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.vehiclePrice" /></td>
  749. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.planeNumber" /></td>
  750. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.planePrice" /></td>
  751. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.elseBlazesPrice" /></td>
  752. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.note" /></td>
  753. </tr>
  754. </tbody>
  755. </table>
  756. <table class="table2" cellpadding="0" cellspacing="0" style="white-space: nowrap;">
  757. <tbody>
  758. <tr>
  759. <th rowspan="1" colspan="26" style="letter-spacing:6rem">火场资料</th>
  760. </tr>
  761. <tr>
  762. <td colspan="2" rowspan="1" class="txt_left">&nbsp;1.起火时间</td>
  763. <td colspan="5" rowspan="1"><input type="text" v-model="table2.fireTime" /></td>
  764. <td colspan="2" rowspan="1">发现时间</td>
  765. <td colspan="8" rowspan="1"><input type="text" v-model="table2.foundTime" /></td>
  766. <td colspan="2" rowspan="1">扑灭时间</td>
  767. <td colspan="7" rowspan="1"><input type="text" v-model="table2.blazesTime" /></td>
  768. </tr>
  769. <tr>
  770. <td colspan="2" rowspan="1" class="txt_left">&nbsp;2.地点及发现方式</td>
  771. <td colspan="2" rowspan="1" class="txt_left"><select v-model="table2.address">
  772. <option>吉林市</option>
  773. <option>延边州</option>
  774. <option>白山市</option>
  775. <option>通化市</option>
  776. <option>辽源市</option>
  777. <option>四平市</option>
  778. <option>长春市</option>
  779. <option>白城市</option>
  780. <option>松原市</option>
  781. <option>敦化航站</option>
  782. <option>长白山管委会</option>
  783. </select></td>
  784. <td colspan="13" rowspan="1"><input type="text" v-model="table2.firePlace" /></td>
  785. <td colspan="2" rowspan="1">发现方式</td>
  786. <td colspan="7" rowspan="1"><input type="text" v-model="table2.foundType" /></td>
  787. </tr>
  788. <tr>
  789. <td colspan="2" rowspan="1" class="txt_left">&nbsp;3.火场位置</td>
  790. <td colspan="2" rowspan="1" class="border_l0">东经:</td>
  791. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  792. v-model="table2.longitudeD" /></td>
  793. <td colspan="1" rowspan="1" class="border_l0">度</td>
  794. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  795. v-model="table2.longitudeM" /></td>
  796. <td colspan="1" rowspan="1" class="border_l0">分</td>
  797. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  798. v-model="table2.longitudeS" /></td>
  799. <td colspan="2" rowspan="1" class="border_l0">秒</td>
  800. <td colspan="1" rowspan="1" class="border_l0">;</td>
  801. <td colspan="2" rowspan="1" class="border_l0">北纬:</td>
  802. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  803. v-model="table2.latitudeD" /></td>
  804. <td colspan="1" rowspan="1" class="border_l0">度</td>
  805. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  806. v-model="table2.latitudeM" /></td>
  807. <td colspan="1" rowspan="1" class="border_l0">分</td>
  808. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  809. v-model="table2.latitudeS" /></td>
  810. <td colspan="1" rowspan="1" class="border_l0">秒</td>
  811. <td class="border_l0"></td>
  812. <td class="border_l0"></td>
  813. <td class="border_l0"></td>
  814. <td class="border_l0"></td>
  815. <td class="border_l0"></td>
  816. <td></td>
  817. </tr>
  818. <tr>
  819. <td colspan="2" rowspan="1" class="txt_left">&nbsp;4.起火原因</td>
  820. <td colspan="3" rowspan="1" class="txt_left"><select v-model="table2.fireSource">
  821. <option>未查明火源</option>
  822. <option>烧荒烧炭</option>
  823. <option>炼山造林</option>
  824. <option>烧牧场</option>
  825. <option disabled>烧窑</option>
  826. <option>烧隔离带</option>
  827. <option>火车喷漏</option>
  828. <option>火车甩瓦</option>
  829. <option>机车喷火</option>
  830. <option>其他(生产性火源)</option>
  831. <option>野外吸烟</option>
  832. <option>取暖做饭</option>
  833. <option>上坟烧纸</option>
  834. <option>烧山驱兽</option>
  835. <option>小孩玩火</option>
  836. <option>痴呆弄火</option>
  837. <option>家火上山</option>
  838. <option>电线引起</option>
  839. <option>其他(非生产性用火)</option>
  840. <option>故意放火</option>
  841. <option>外省(区)烧入</option>
  842. <option>外国烧入</option>
  843. <option>雷击火</option>
  844. <option>其他自然火</option>
  845. </select></td>
  846. <td colspan="3" rowspan="1">火灾种类</td>
  847. <td colspan="4" rowspan="1" class="txt_left"><select v-model="table2.fireType">
  848. <option>地表火</option>
  849. <option>树冠火</option>
  850. <option>地下火</option>
  851. </select></td>
  852. <td colspan="3" rowspan="1">火灾等级</td>
  853. <td colspan="11" rowspan="1" class="txt_left"><select v-model="table2.fireLevel">
  854. <option>一般</option>
  855. <option>较大</option>
  856. <option>重大</option>
  857. <option>特大</option>
  858. </select></td>
  859. </tr>
  860. <tr>
  861. <td colspan="2" rowspan="1" class="txt_left">&nbsp;5.火场面积(公顷)</td>
  862. <td colspan="2" rowspan="1">总面积合计</td>
  863. <td colspan="3" rowspan="1"><input type="text" v-model="table2.areaTotal" /></td>
  864. <td colspan="4" rowspan="1">受害森林面积合计</td>
  865. <td colspan="3" rowspan="1"><input type="text" v-model="table2.forestLossAreaTotal" /></td>
  866. <td colspan="1" rowspan="1">其中:</td>
  867. <td colspan="2" rowspan="1">原森林</td>
  868. <td colspan="4" rowspan="1"><input type="text" v-model="table2.originalForestArea" /></td>
  869. <td colspan="2" rowspan="1">人工林</td>
  870. <td colspan="3" rowspan="1"><input type="text" v-model="table2.artificialForestArea" /></td>
  871. </tr>
  872. <tr>
  873. <td colspan="2" rowspan="1" class="txt_left">&nbsp;6.扑火人力物力投入</td>
  874. <td colspan="2" rowspan="1">出动总人数</td>
  875. <td colspan="1" rowspan="1"><input type="text" v-model="table2.peopleTotal" /></td>
  876. <td colspan="2" rowspan="1">其中扑火队</td>
  877. <td colspan="1" rowspan="1"><input type="text" v-model="table2.blazesTeamNumber" /></td>
  878. <td colspan="1" rowspan="1">森警</td>
  879. <td colspan="2" rowspan="1"><input type="text" v-model="table2.policeNumber" /></td>
  880. <td colspan="1" rowspan="1">军队</td>
  881. <td colspan="1" rowspan="1"><input type="text" v-model="table2.armyNumber" /></td>
  882. <td colspan="1" rowspan="1">群众</td>
  883. <td colspan="1" rowspan="1"><input type="text" v-model="table2.crowdNumber" /></td>
  884. <td colspan="2" rowspan="1">风力灭火机</td>
  885. <td colspan="1" rowspan="1"><input type="text" v-model="table2.windExtinguisher" /></td>
  886. <td colspan="2" rowspan="1">二号工具</td>
  887. <td colspan="1" rowspan="1"><input type="text" v-model="table2.secondTool" /></td>
  888. <td colspan="2" rowspan="1">水枪</td>
  889. <td colspan="1" rowspan="1"><input type="text" v-model="table2.waterGun" /></td>
  890. <td colspan="1" rowspan="1">其他</td>
  891. <td colspan="1" rowspan="1"><input type="text" v-model="table2.elseThings" /></td>
  892. </tr>
  893. <tr>
  894. <td colspan="2" rowspan="1" class="txt_left">&nbsp;7.受害森林概况</td>
  895. <td colspan="2" rowspan="1">林木组成</td>
  896. <td colspan="11" rowspan="1"><input type="text" v-model="table2.forestComposition" /></td>
  897. <td colspan="2" rowspan="1">林令</td>
  898. <td colspan="4" rowspan="1"><input type="text" v-model="table2.forestToken" /></td>
  899. <td colspan="2" rowspan="1">疏密度</td>
  900. <td colspan="3" rowspan="1"><input type="text" v-model="table2.porosities" /></td>
  901. </tr>
  902. <tr>
  903. <td colspan="2" rowspan="1" class="txt_left">&nbsp;8.当日天气实况</td>
  904. <td colspan="2" rowspan="1">天气</td>
  905. <td colspan="3" rowspan="1"><input type="text" v-model="table2.weather" /></td>
  906. <td colspan="1" rowspan="1">气温</td>
  907. <td colspan="2" rowspan="1"><input type="text" v-model="table2.temperature" /></td>
  908. <td colspan="1" rowspan="1">C°</td>
  909. <td colspan="3" rowspan="1">火险等级</td>
  910. <td colspan="1" rowspan="1"><input type="text" v-model="table2.fireInsuranceLevel" /></td>
  911. <td colspan="2" rowspan="1">风力</td>
  912. <td colspan="2" rowspan="1" class="border_l0"><input type="text" v-model="table2.windLevel" /></td>
  913. <td colspan="2" rowspan="1" class="txt_left">级</td>
  914. <td colspan="2" rowspan="1">风向</td>
  915. <td colspan="3" rowspan="1"><input type="text" v-model="table2.windDirection" /></td>
  916. </tr>
  917. <tr>
  918. <td colspan="2" rowspan="1" class="txt_left">&nbsp;9.指挥扑火负责人</td>
  919. <td colspan="2" rowspan="1">单位</td>
  920. <td colspan="11" rowspan="1"><input type="text" v-model="table2.commandUnit" /></td>
  921. <td colspan="2" rowspan="1">姓名</td>
  922. <td colspan="4" rowspan="1"><input type="text" v-model="table2.commandName" /></td>
  923. <td colspan="2" rowspan="1">职务</td>
  924. <td colspan="3" rowspan="1"><input type="text" v-model="table2.commandPosition" /></td>
  925. </tr>
  926. <tr>
  927. <td colspan="2" rowspan="1" class="txt_left">&nbsp;10.火场调查负责人</td>
  928. <td colspan="2" rowspan="1">单位</td>
  929. <td colspan="11" rowspan="1"><input type="text" v-model="table2.surveyUnit" /></td>
  930. <td colspan="2" rowspan="1">姓名</td>
  931. <td colspan="4" rowspan="1"><input type="text" v-model="table2.surveyName" /></td>
  932. <td colspan="2" rowspan="1">职务</td>
  933. <td colspan="3" rowspan="1"><input type="text" v-model="table2.surveyPosition" /></td>
  934. </tr>
  935. <tr>
  936. <td colspan="2" rowspan="1" class="txt_left">&nbsp;11.火灾肇事人情况</td>
  937. <td colspan="2" rowspan="1">姓名</td>
  938. <td colspan="2" rowspan="1"><input type="text" v-model="table2.accidentName" /></td>
  939. <td colspan="2" rowspan="1">性别</td>
  940. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentSex" /></td>
  941. <td colspan="3" rowspan="1">年龄</td>
  942. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentAge" /></td>
  943. <td colspan="1" rowspan="1">职业</td>
  944. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentPosition" /></td>
  945. <td colspan="2" rowspan="1">单位或住址</td>
  946. <td colspan="9" rowspan="1"><input type="text" v-model="table2.accidentUnit" /></td>
  947. </tr>
  948. <tr>
  949. <td colspan="2" rowspan="1" class="txt_left">&nbsp;12.火灾处理情况</td>
  950. <td colspan="2" rowspan="1">处理方式</td>
  951. <td colspan="4" rowspan="1"><select v-model="table2.dealType">
  952. <option>立案(刑事处理)</option>
  953. <option>破案(刑事处理)</option>
  954. <option>行政处理</option>
  955. <option>待查</option>
  956. <option>拘留</option>
  957. <option>处理</option>
  958. <option>未处理</option>
  959. </select></td>
  960. <td colspan="3" rowspan="1">已处理人数</td>
  961. <td colspan="4" rowspan="1"><input type="text" v-model="table2.dealNumber" /></td>
  962. <td colspan="4" rowspan="1">刑事处罚人数</td>
  963. <td colspan="7" rowspan="1"><input type="text" v-model="table2.criminalDealNumber" /></td>
  964. </tr>
  965. <tr>
  966. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">
  967. &nbsp;13.对火灾肇事人<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;的处理情况
  968. </td>
  969. <td colspan="24" rowspan="1" class="txt_left">
  970. <textarea v-model="table2.accidentDealSituation"></textarea>
  971. </td>
  972. </tr>
  973. <tr>
  974. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">
  975. &nbsp;14.对责任人员的<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;责任人追查情况
  976. </td>
  977. <td colspan="24" rowspan="1" class="txt_left">
  978. <textarea v-model="table2.responsibilityDealSituation"></textarea>
  979. </td>
  980. </tr>
  981. <tr>
  982. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">
  983. &nbsp;15.对有关领导的<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;责任追查情况
  984. </td>
  985. <td colspan="24" rowspan="1" class="txt_left">
  986. <textarea v-model="table2.leadershipDealSituation"></textarea>
  987. </td>
  988. </tr>
  989. <tr class="tr_border">
  990. <td colspan="4" rowspan="1">县(市、区、局、站)填表人:</td>
  991. <td colspan="2" rowspan="1"><input type="text" v-model="table2.townForm" /></td>
  992. <td colspan="4" rowspan="1">县(市、区、局、站)审核人:</td>
  993. <td colspan="3" rowspan="1"><input type="text" v-model="table2.townAudit" /></td>
  994. <td colspan="4" rowspan="1">市(州、管委会)填表人:</td>
  995. <td colspan="2" rowspan="1"><input type="text" v-model="table2.cityForm" /></td>
  996. <td colspan="4" rowspan="1">市(州、管委会)审核人:</td>
  997. <td colspan="3" rowspan="1"><input type="text" v-model="table2.cityAudit" /></td>
  998. </tr>
  999. </tbody>
  1000. </table>
  1001. <div class="btm-btn-group">
  1002. <el-button size="mini" type="primary" @click="updateCentereventTEventcatalogueStatus('gd',true)">归档
  1003. </el-button>
  1004. <el-button size="mini" type="primary" @click="regionalFlagAdd()">火灾区域
  1005. </el-button>
  1006. </div>
  1007. </form>
  1008. </div>
  1009. </el-dialog>
  1010. <!-- 添加区域标记 -->
  1011. <el-dialog :title="title" :visible.sync="regionalFlagOpen" width="1000px">
  1012. <areaSupermap ref="fireAreaSupermap" v-if="regionalFlagOpen" style="width: 100%;height:74vh"
  1013. :mapDiv="'fireAreaSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"
  1014. :showAreaLatLng="showAreaLatLng"></areaSupermap>
  1015. <!-- <areaSupermap ref="fireAreaSupermap" v-if="regionalFlagOpen" :showAreaLatLng="showAreaLatLng"></areaSupermap> -->
  1016. </el-dialog>
  1017. <!-- 图片,视频预览 -->
  1018. <el-dialog title="视频预览" :visible.sync="showTcPlayer" width="40%" customClass="customWidthMp4">
  1019. <TcPlayer ref="TcPlayer" :playVideo="playVideo" :widthHeigt="[100,100]"></TcPlayer>
  1020. </el-dialog>
  1021. <el-dialog :title="cameraTitle" :visible.sync="cameraVisible" v-if="cameraVisible" customClass="videoCustomWidth"
  1022. @close="cancelEventLocationShow()">
  1023. <div style="width:1020px;height:625px;position:relative;">
  1024. <!--视频窗口展示---海康-->
  1025. <div id="playWnd" class="playWnd" style="left: 0px; top: 0px;"></div>
  1026. </div>
  1027. </el-dialog>
  1028. <el-dialog title="人员选择" :visible.sync="showFindUserByDept" width="40%">
  1029. <findUserByDept v-if="showFindUserByDept" ref="findUserByDept" :deptId="iconCurrentIndex"
  1030. @addSelection="addSelection"></findUserByDept>
  1031. </el-dialog>
  1032. <TVWall ref="TVWall"></TVWall>
  1033. </div>
  1034. </template>
  1035. <script>
  1036. import html2canvas from 'html2canvas' //截图组件
  1037. import supermapDialog from '@/components/supermap' //超图
  1038. import TVWall from '@/components/TVWall.vue' //电视墙弹窗
  1039. import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
  1040. import eventLogUpload from '@/views/eventLogUpload.vue' //日志上传文件
  1041. import areaSupermap from '@/components/supermap' //区域标记地图
  1042. import TcPlayer from '@/components/TcPlayer' //视频预览
  1043. import findUserByDept from '@/views/findUserByDept' //责任人选择弹框
  1044. import leftRightSwiperScroll from '@/components/leftRightSwiperScroll.vue'; //事件中心底部资源内容溢出组件
  1045. import {
  1046. getIconBg
  1047. } from '@/api/components/sookaMapIcon'; //资源底色控制文件
  1048. import {
  1049. fireControlViewPoint,
  1050. fireControlViewList,
  1051. getEventDetail,
  1052. sendEventLog,
  1053. listSJfl,
  1054. listYuAn,
  1055. selectByeventCode,
  1056. updateCentereventTEventcatalogueStatus,
  1057. sendTask,
  1058. listResourceByWz,
  1059. updateYjYuAn,
  1060. uploadBase64,
  1061. centereventtdepteventList,
  1062. dutysystemList,
  1063. dutysystemAdd,
  1064. dutysystemRemove,
  1065. sendMessage,
  1066. userFeginlist,
  1067. eventExamine,
  1068. eventHandling,
  1069. initByCameras
  1070. } from '@/api/forest'
  1071. import {
  1072. joinConferences
  1073. } from "@/api/meeting";
  1074. import {
  1075. treeselectAll as deptTreeselect
  1076. } from '@/api/system/dept'
  1077. import {
  1078. getHaiKangVideoServer
  1079. } from '@/api/haikang/haikang'
  1080. import {
  1081. hasConferences,
  1082. createConferences,
  1083. getUserInfo
  1084. } from "@/api/meeting"
  1085. import {
  1086. getDahuaVideoServer
  1087. } from '@/api/dahua/dahua'
  1088. import DHWs from '@/dahua/lib/DHWs'
  1089. import {
  1090. selectConfigKey
  1091. } from "@/api/system/config";
  1092. import Cookies from 'js-cookie';
  1093. import request from "../utils/request";
  1094. export default {
  1095. dicts: ['task_source'],
  1096. watch: {
  1097. filterText(val) {
  1098. this.$refs.LiandongDept.filter(val)
  1099. }
  1100. },
  1101. components: {
  1102. leftRightSwiperScroll,
  1103. TVWall,
  1104. vBottomMenu,
  1105. supermapDialog,
  1106. eventLogUpload,
  1107. areaSupermap,
  1108. TcPlayer,
  1109. findUserByDept
  1110. },
  1111. data() {
  1112. return {
  1113. title:"火灾区域\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000《双击选中区域获取数据》",
  1114. isLoading: false,
  1115. showFindUserByDept: false, //责任人选择框
  1116. //海康
  1117. cameraTitle: '',
  1118. cameraCode: '',
  1119. cameraVisible: false,
  1120. initCount: 0,
  1121. pubKey: '',
  1122. oWebControl: null,
  1123. version: 0,
  1124. playVideo: '', //视频预览地址
  1125. showTcPlayer: false, //视频预览弹窗
  1126. regionalFlagOpen: false, //区域标记
  1127. //区域标记
  1128. regionalFlagObj: {
  1129. array: []
  1130. },
  1131. filterText: '', //树搜索
  1132. /** *****************事件流程***************************/
  1133. deptNameitem: '签收部门',
  1134. sendDeptId: null, //签收部门/发起部门
  1135. sendDeptName: null, //签收部门/发起部门
  1136. sendEventType: null, //事件类型
  1137. sendHuoZaiBanJing: 0, //火灾报告
  1138. sendGuanLianYuAn: null, //关联预案
  1139. sendUserFegin: [], //联系人
  1140. sendTaskSource: null, //任务来源
  1141. sendTaskTitle: null, //联动标题
  1142. sendTaskContent: null, //联动内容
  1143. sendLianDongDept: [], //联动部门
  1144. eventTypeList: [], //事件类型列表
  1145. guanLianYuAnList: [], //关联预案列表
  1146. userFeginList: [], //联系人列表
  1147. deptOptions: [], //签收部门
  1148. deptOptionsLiandong: [], //联动部门
  1149. eventStatusButton: null, //流程按钮标识
  1150. eventConfirmTitle: null, //弹窗标题 ---签收 误报 重复 审核意见
  1151. eventDescription: null, //审核意见
  1152. uploadAttachList: [], //审核上传图片回显集合
  1153. attachExamine: [], //审核图片集合
  1154. defaultProps: {
  1155. children: 'children',
  1156. label: 'label'
  1157. },
  1158. table1: {
  1159. reportUnit: null,
  1160. reportTimeY: null,
  1161. reportTimeM: null,
  1162. reportTimeD: null,
  1163. forestFireLossTotal: null,
  1164. fireLossTotal: null,
  1165. forestArea: null,
  1166. forestPrice: null,
  1167. treesNumber: null,
  1168. treesPrice: null,
  1169. minorInjuriesNumber: null,
  1170. minorInjuriesPrice: null,
  1171. seriouslyInjuredNumber: null,
  1172. seriouslyInjuredPrice: null,
  1173. deathNumber: null,
  1174. deathPrice: null,
  1175. elseFireLossPrice: null,
  1176. blazesPriceTotal: null,
  1177. artificialDays: null,
  1178. artificialPrice: null,
  1179. vehicleNumber: null,
  1180. carNumber: null,
  1181. vehiclePrice: null,
  1182. planeNumber: null,
  1183. planePrice: null,
  1184. elseBlazesPrice: null,
  1185. note: null
  1186. },
  1187. table2: {
  1188. fireTime: null,
  1189. foundTime: null,
  1190. blazesTime: null,
  1191. address: null,
  1192. firePlace: null,
  1193. foundType: null,
  1194. longitudeD: null,
  1195. longitudeM: null,
  1196. longitudeS: null,
  1197. latitudeD: null,
  1198. latitudeM: null,
  1199. latitudeS: null,
  1200. fireSource: null,
  1201. fireType: null,
  1202. fireLevel: null,
  1203. areaTotal: null,
  1204. forestLossAreaTotal: null,
  1205. originalForestArea: null,
  1206. artificialForestArea: null,
  1207. peopleTotal: null,
  1208. blazesTeamNumber: null,
  1209. policeNumber: null,
  1210. armyNumber: null,
  1211. crowdNumber: null,
  1212. windExtinguisher: null,
  1213. secondTool: null,
  1214. waterGun: null,
  1215. elseThings: null,
  1216. forestComposition: null,
  1217. forestToken: null,
  1218. porosities: null,
  1219. weather: null,
  1220. temperature: null,
  1221. fireInsuranceLevel: null,
  1222. windLevel: null,
  1223. windDirection: null,
  1224. commandUnit: null,
  1225. commandName: null,
  1226. commandPosition: null,
  1227. surveyUnit: null,
  1228. surveyName: null,
  1229. surveyPosition: null,
  1230. accidentName: null,
  1231. accidentSex: null,
  1232. accidentAge: null,
  1233. accidentPosition: null,
  1234. accidentUnit: null,
  1235. dealType: null,
  1236. dealNumber: null,
  1237. criminalDealNumber: null,
  1238. accidentDealSituation: null,
  1239. responsibilityDealSituation: null,
  1240. leadershipDealSituation: null,
  1241. townForm: null,
  1242. townAudit: null,
  1243. cityForm: null,
  1244. cityAudit: null
  1245. },
  1246. /** *****************事件流程***************************/
  1247. showEventConfirm: false, //事件签收弹窗
  1248. showGuanLianYuAnConfirm: false, //调整关联预案弹窗
  1249. showEventConfirm_gd: false, //事件火险报告弹窗
  1250. address: null, //事件上报地址
  1251. eventStatusValue: null, //事件状态
  1252. isExamine: "0", //事件审核 1通过 0不通过
  1253. eventId: null, //事件ID
  1254. eventType: null, //事件类型-大类
  1255. eventTypeXl: null, //事件类型-小类
  1256. statusFlag: null, //事件流程按钮
  1257. dataStatus: null, //事件处置按钮
  1258. deptId: null, //事件流程部门
  1259. eventCode: null,
  1260. eventName: null,
  1261. longitude: null,
  1262. latitude: null,
  1263. eventLog: null,
  1264. eventLogList: [],
  1265. visuForestCloudYuAnBo: null,
  1266. eventDialog: false,
  1267. showResponsibilityDialog: false, //责任制弹窗
  1268. showMeetingMsgDialog: false, //发送会议短信弹窗
  1269. depteventList: [], //责任制部门列表
  1270. iconCurrentIndex: '',
  1271. dutysystemDeptName: '',
  1272. depteventId: '',
  1273. dutysystemTableData: [],
  1274. radius: 5000, //资源搜索半径
  1275. resourcesList: [{
  1276. resourceName: '取水口',
  1277. type: 'qsk',
  1278. count: '1',
  1279. icon: 'sj-icon-waterintake'
  1280. },
  1281. {
  1282. resourceName: '水鹤',
  1283. type: 'sh',
  1284. icon: 'sj-icon-watercrane'
  1285. },
  1286. {
  1287. resourceName: '消防栓',
  1288. type: 'xfs',
  1289. count: '1',
  1290. icon: 'sj-icon-firehydrant'
  1291. },
  1292. {
  1293. resourceName: '起降点',
  1294. type: 'qjd',
  1295. count: '1',
  1296. icon: 'sj-icon-landing'
  1297. },
  1298. {
  1299. resourceName: '检查站',
  1300. type: 'jcz',
  1301. count: '1',
  1302. icon: 'sj-icon-checkpoint'
  1303. },
  1304. {
  1305. resourceName: '防火队',
  1306. type: 'fhd',
  1307. count: '1',
  1308. icon: 'sj-icon-fireteam'
  1309. },
  1310. {
  1311. resourceName: '重点区域',
  1312. type: 'zdqy',
  1313. count: '1',
  1314. icon: 'sj-icon-keyAreas'
  1315. },
  1316. {
  1317. resourceName: '摄像头',
  1318. type: 'sxt',
  1319. count: '1',
  1320. icon: 'sj-icon-jkzx'
  1321. }
  1322. ],
  1323. resourcesListCheck: [],
  1324. //文本域
  1325. feedback: '',
  1326. }
  1327. },
  1328. props: {
  1329. calendarDay: null //首页日历选择
  1330. },
  1331. created() {
  1332. this.isLoading = true;
  1333. /** ----------------------------------摄像头预览开始------------------------------------- */
  1334. const DHWsInstance = DHWs.getInstance()
  1335. this.ws = DHWsInstance
  1336. /** ----------------------------------摄像头预览结束------------------------------------- */
  1337. },
  1338. methods: {
  1339. // 获取消防左侧菜单列表
  1340. fireControlViewList() {
  1341. this.resourcesList = [];
  1342. let _this = this;
  1343. // {
  1344. // resourceName: '取水口',
  1345. // type: 'qsk',
  1346. // count: '1',
  1347. // icon: 'sj-icon-waterintake'
  1348. // },
  1349. fireControlViewList().then(function(res) {
  1350. // _this.resourcesList = res.data
  1351. //截取data.resourceTable字段中“_”分隔符最后一个作为关键字,重新拼接成前端需要的图标:class,格式sj-icon-xxxx,将其set回原数组
  1352. res.data.forEach(function(data, index) {
  1353. let obj = {};
  1354. let icon = 'sj' + '-' + 'icon' + '-' + data.type.replaceAll("_", "-").replaceAll("@", "-");
  1355. let resourceName = data.name.replaceAll("(个)", "");
  1356. obj.resourceName = resourceName;
  1357. obj.type = data.type;
  1358. obj.count = data.num;
  1359. obj.icon = icon;
  1360. // if(resourceName != "重点场所"
  1361. // && resourceName != "基本联动力量"
  1362. // && resourceName != "其他联动力量"){
  1363. // _this.resourcesList.push(obj);
  1364. // }
  1365. _this.resourcesList.push(obj);
  1366. console.log("icon_" + (index + 1) + "=", icon);
  1367. //每个图标对应固定颜色
  1368. _this.$set(_this.resourcesList[index], "bg", getIconBg(icon));
  1369. })
  1370. _this.resourcesList.push({
  1371. resourceName: '摄像头',
  1372. type: 'sxt',
  1373. count: '1',
  1374. icon: 'sj-icon-jkzx',
  1375. bg: '#f5ad1b'
  1376. })
  1377. })
  1378. },
  1379. /************************************责任制-开始****************************************/
  1380. addLine: function() { //添加负责人行数
  1381. var newValue = {
  1382. id: '', //主键
  1383. userId: '', //用户主键
  1384. dept: '', //部门名称
  1385. depteventId: '', //事件部门关联责任人
  1386. name: '', //姓名
  1387. post: '', //岗位
  1388. telphone: '' //手机号addSelection
  1389. }
  1390. //添加新的行数
  1391. this.dutysystemTableData.push(newValue)
  1392. },
  1393. finUserByDept: function() { //根据部门选择责任人
  1394. this.showFindUserByDept = true;
  1395. },
  1396. addSelection: function(userList) {
  1397. for (let i in this.dutysystemTableData) {
  1398. for (let j in userList) {
  1399. if (this.dutysystemTableData[i].name == userList[j].name && this.dutysystemTableData[i].telphone ==
  1400. userList[j].telphone) {
  1401. userList.splice(j, 1);
  1402. }
  1403. }
  1404. }
  1405. this.dutysystemTableData = this.dutysystemTableData.concat(userList);
  1406. this.showFindUserByDept = false;
  1407. },
  1408. handleDelete: function(index, row) { //删除负责人行数
  1409. if (row.id != null && row.id != '') {
  1410. let param = {
  1411. ids: row.id
  1412. }
  1413. dutysystemRemove(param).then(res => {
  1414. this.$message.success(`删除成功!`)
  1415. this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId)
  1416. })
  1417. } else {
  1418. this.dutysystemTableData.splice(index, 1)
  1419. }
  1420. },
  1421. handleSave: function(index, rowData) { //保存负责人行数
  1422. rowData.dept = this.dutysystemDeptName
  1423. rowData.depteventId = this.depteventId
  1424. dutysystemAdd(rowData).then(res => {
  1425. this.$message.success(`保存成功!`)
  1426. this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId)
  1427. })
  1428. },
  1429. dutysystemSelect: function(deptId, dutysystemDeptName, depteventId) { //通过部门查询负责人信息
  1430. this.dutysystemDeptName = dutysystemDeptName
  1431. this.depteventId = depteventId
  1432. this.iconCurrentIndex = deptId
  1433. let param = {
  1434. depteventId: depteventId
  1435. }
  1436. dutysystemList(param).then(res => {
  1437. if (res.data != null && res.data.length > 0) {
  1438. this.dutysystemTableData = res.data
  1439. } else {
  1440. this.dutysystemTableData = []
  1441. }
  1442. })
  1443. },
  1444. showResponsibility() { //弹出责任制弹窗
  1445. //初始化责任制数据列表
  1446. this.dutysystemTableData = [];
  1447. let param = {
  1448. eventCode: this.eventCode
  1449. }
  1450. centereventtdepteventList(param).then(res => {
  1451. this.depteventList = res.data
  1452. this.showResponsibilityDialog = true
  1453. })
  1454. },
  1455. closeResponsibilityDialog() { //责任制关闭
  1456. this.dutysystemTableData = []
  1457. this.dutysystemDeptName = ''
  1458. this.depteventId = ''
  1459. this.iconCurrentIndex = ''
  1460. this.showResponsibilityDialog = false
  1461. },
  1462. closeMeetingMsgDialog() { //会议弹窗关闭
  1463. this.dutysystemTableData = []
  1464. this.dutysystemDeptName = ''
  1465. this.depteventId = ''
  1466. this.iconCurrentIndex = ''
  1467. this.showMeetingMsgDialog = false
  1468. },
  1469. addResponsibilityDialog() { //责任制保存
  1470. console.log(this.dutysystemTableData)
  1471. let reg_user = /^[\u4e00-\u9fa5]{2,4}$/; //2-4个中文字符正则
  1472. let reg_tel = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/; //11位手机号码正则
  1473. for (let i in this.dutysystemTableData) {
  1474. if (!reg_user.test(this.dutysystemTableData[i].name)) {
  1475. this.$message.error(`请输入正确姓名!`)
  1476. return;
  1477. }
  1478. if (!reg_tel.test(this.dutysystemTableData[i].telphone)) {
  1479. this.$message.error(`请输入正确手机号码!`)
  1480. return;
  1481. }
  1482. if (this.dutysystemTableData[i].id == null || this.dutysystemTableData[i].id == '') {
  1483. this.dutysystemTableData[i].dept = this.dutysystemDeptName;
  1484. this.dutysystemTableData[i].depteventId = this.depteventId;
  1485. }
  1486. }
  1487. const param = {
  1488. centereventTDutySystemList: this.dutysystemTableData,
  1489. eventCode: this.eventCode,
  1490. eventName: this.eventName
  1491. }
  1492. dutysystemAdd(param).then(res => {
  1493. this.$message.success(`保存成功!`)
  1494. this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId);
  1495. this.closeResponsibilityDialog();
  1496. })
  1497. },
  1498. /************************************责任制-结束****************************************/
  1499. showheatPlotting() {
  1500. // if (!this.$refs.supermapDialog.isheatPlotting) {
  1501. // this.$refs.supermapDialog.showheatPlotting(this.latitude, this.longitude)
  1502. // } else {
  1503. // this.$refs.supermapDialog.isheatPlotting = false
  1504. // }
  1505. // this.cancelEventShow();
  1506. this.eventDialog = false;
  1507. this.$emit('getFirespread', this.eventCode);
  1508. },
  1509. showTVWallDiaLog() {
  1510. this.initByCameras()
  1511. // this.$refs.TVWall.showTVWall();
  1512. },
  1513. showTVWall(channelCode, channelName) {
  1514. let tvListJson = [{
  1515. "switchTab": "2",
  1516. "treeLabels": [{
  1517. "id": null,
  1518. "labelCode": "999",
  1519. "labelName": "电视墙",
  1520. "cameraType": null,
  1521. "parentLabelCode": ""
  1522. },
  1523. {
  1524. "id": "spcamera00010",
  1525. "labelCode": channelCode,
  1526. "labelName": channelName,
  1527. "cameraType": "1",
  1528. "parentLabelCode": "999"
  1529. }
  1530. ],
  1531. "labelChannels": [{
  1532. "labelCode": channelCode,
  1533. "channelDates": [{
  1534. "channelCode": channelCode,
  1535. "channelName": channelName,
  1536. "channelSn": null,
  1537. "cameraType": "1",
  1538. "online": "1",
  1539. "cameraCode": "1"
  1540. }]
  1541. }]
  1542. }]
  1543. this.$refs.TVWall.showTVWall(tvListJson, [{
  1544. "channelId": channelCode
  1545. }]);
  1546. this.$refs.bottomMenu.showMeasure = false;
  1547. this.$refs.bottomMenu.showChild = false;
  1548. this.$refs.bottomMenu.showBanChild = false;
  1549. this.$refs.bottomMenu.showChangChild = false;
  1550. },
  1551. initByCameras() {
  1552. const params = Object.assign({})
  1553. params.longitude = this.longitude;
  1554. params.latitude = this.latitude;
  1555. params.type = '8'
  1556. initByCameras(params).then(res => {
  1557. this.$refs.TVWall.showTVWall1(this.longitude, this.latitude, res.data);
  1558. this.$refs.bottomMenu.showMeasure = false
  1559. this.$refs.bottomMenu.showChild = false
  1560. this.$refs.bottomMenu.showBanChild = false
  1561. this.$refs.bottomMenu.showChangChild = false
  1562. })
  1563. },
  1564. showUpdateYjYuAn() {
  1565. listYuAn().then(res => {
  1566. //关联预案列表
  1567. if (res.code == 200) {
  1568. this.guanLianYuAnList = res.data
  1569. this.showGuanLianYuAnConfirm = true
  1570. }
  1571. })
  1572. },
  1573. updateYjYuAn() {
  1574. if (this.eventStatusValue == 'forest_event_status_1' || this.eventStatusValue == 'forest_event_status_7') {
  1575. this.$message.error(`修改预案信息在签收后方可修改!`)
  1576. return
  1577. } else if (this.eventStatusValue == 'forest_event_status_3') {
  1578. this.$message.error(`误报事件无法修改预案信息!`)
  1579. return
  1580. } else {
  1581. let param = {
  1582. eventCode: this.eventCode,
  1583. reserve: this.sendGuanLianYuAn
  1584. }
  1585. if (this.sendGuanLianYuAn == '' || this.sendGuanLianYuAn == null) {
  1586. this.$message.error(`请选择预案信息!`)
  1587. return
  1588. }
  1589. updateYjYuAn(param).then(res => {
  1590. //事件调整关联预案
  1591. if (res.code == 200) {
  1592. this.$message.success(`预案调整成功!`)
  1593. this.refreshEventDialog(this.eventCode)
  1594. this.sendGuanLianYuAn = null
  1595. this.showGuanLianYuAnConfirm = false
  1596. }
  1597. })
  1598. }
  1599. },
  1600. fireControlViewPoint(type) {
  1601. // alert(type)
  1602. if (this.resourcesListCheck.indexOf(type) > -1) {
  1603. this.resourcesListCheck.splice(this.resourcesListCheck.indexOf(type), 1)
  1604. setTimeout(() => {
  1605. this.$refs.supermapDialog.clearMByType(type)
  1606. }, 1000)
  1607. } else {
  1608. // 消防资源落点
  1609. let param = {
  1610. longitude: this.longitude,
  1611. latitude: this.latitude,
  1612. type: type,
  1613. radius: this.radius
  1614. }
  1615. if (type != 'sxt') {
  1616. fireControlViewPoint(param).then(res => {
  1617. if (res.data != null && res.data.pointList.length > 0) {
  1618. this.resourcesListCheck.push(type)
  1619. var markersList = []
  1620. for (let i = 0; i < res.data.pointList.length; i++) {
  1621. let markersMap = {
  1622. lng: 124.59,
  1623. lat: 43.02,
  1624. icon: 'marker',
  1625. bindPopupHtml: '',
  1626. click: '',
  1627. parameter: '',
  1628. keepBindPopup: false,
  1629. isAggregation: true
  1630. }
  1631. markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
  1632. markersMap.lng = res.data.pointList[i].longitude;
  1633. markersMap.lat = res.data.pointList[i].latitude;
  1634. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1635. '<span>' +
  1636. ' <div class="d-l-con">' +
  1637. ' <div class="d-l-l-text">' +
  1638. ' <h4>资源名称:' + res.data.pointList[i].name + '</h4>' +
  1639. ' </div>' +
  1640. ' </div>' +
  1641. ' </span>' +
  1642. '<span>' +
  1643. ' <div class="d-l-con">' +
  1644. ' <div class="d-l-l-text">' +
  1645. ' <h4>经纬度:' + res.data.pointList[i].longitude + ',' + res.data.pointList[i]
  1646. .latitude + '</h4>' +
  1647. ' </div>' +
  1648. ' </div>' +
  1649. ' </span>' +
  1650. '<span>' +
  1651. ' <div class="d-l-con">' +
  1652. ' <div class="d-l-l-text">' +
  1653. ' <h4>联系人:' + res.data.pointList[i].contacts + '</h4>' +
  1654. ' </div>' +
  1655. ' </div>' +
  1656. ' </span>' +
  1657. '<span>' +
  1658. ' <div class="d-l-con">' +
  1659. ' <div class="d-l-l-text">' +
  1660. ' <h4>电话:' + res.data.pointList[i].phone + '</h4>' +
  1661. ' </div>' +
  1662. ' </div>' +
  1663. ' </span>' +
  1664. '</div>'
  1665. markersList.push(markersMap)
  1666. }
  1667. setTimeout(() => {
  1668. this.$refs.supermapDialog.setMarkersByType(markersList, type)
  1669. }, 1000)
  1670. }
  1671. })
  1672. } else {
  1673. this.listResourceByWz(type);
  1674. }
  1675. }
  1676. },
  1677. listResourceByWz(type) {
  1678. if (this.resourcesListCheck.indexOf(type) > -1) {
  1679. this.resourcesListCheck.splice(this.resourcesListCheck.indexOf(type), 1)
  1680. setTimeout(() => {
  1681. this.$refs.supermapDialog.clearMByType(type)
  1682. }, 1000)
  1683. } else {
  1684. //搜索物资
  1685. let param = {
  1686. longitude: this.longitude,
  1687. latitude: this.latitude,
  1688. type: type,
  1689. radius: this.radius
  1690. }
  1691. request({
  1692. url: `/center-monitor/camera/findNearbyCameras/${param.longitude}/${param.latitude}/${param.radius}`,
  1693. method: 'get'
  1694. }).then(res => {
  1695. if (res.data != null && res.data.length > 0) {
  1696. this.resourcesListCheck.push(type)
  1697. var markersList = []
  1698. for (let i = 0; i < res.data.length; i++) {
  1699. let markersMap = {
  1700. lng: 124.59,
  1701. lat: 43.02,
  1702. icon: 'marker',
  1703. bindPopupHtml: '',
  1704. click: '',
  1705. parameter: '',
  1706. keepBindPopup: false,
  1707. isAggregation: true
  1708. }
  1709. if (type == 'qsk') {
  1710. markersMap.icon = 'sj-icon-centerdata-t-forest-waterintake'
  1711. } else if (type == 'sh') {
  1712. markersMap.icon = 'sj-icon-centerdata-t-forest-watercrane'
  1713. } else if (type == 'xfs') {
  1714. markersMap.icon = 'sj-icon-centerdata-t-forest-firehydrant'
  1715. } else if (type == 'qjd') {
  1716. markersMap.icon = 'sj-icon-landing'
  1717. } else if (type == 'jcz') {
  1718. markersMap.icon = 'sj-icon-checkpoint'
  1719. } else if (type == 'fhd') {
  1720. markersMap.icon = 'sj-icon-fireteam'
  1721. } else if (type == 'zdqy') {
  1722. markersMap.icon = 'sj-icon-keyAreas'
  1723. } else if (type == 'sxt') {
  1724. if(res.data[i].cameraUse==1)
  1725. {
  1726. markersMap.icon='sj-icon-map-centerdata-slmonitor'
  1727. } else if(res.data[i].cameraUse==2){
  1728. markersMap.icon='camera'
  1729. }
  1730. if (res.data[i].cameraCode != null) {
  1731. markersMap.click = 'preview'
  1732. // markersMap.parameter = res.data[i].cameraCode
  1733. markersMap.parameter = {code:res.data[i].cameraCode,
  1734. type:res.data[i].cameraFactory?res.data[i].cameraFactory:1,name:res.data[i].cameraName}
  1735. }
  1736. }
  1737. markersMap.lng = res.data[i].longitude
  1738. markersMap.lat = res.data[i].latitude
  1739. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1740. '<span>' +
  1741. ' <div class="d-l-con">' +
  1742. ' <div class="d-l-l-text">' +
  1743. ' <h4>资源名称:' + res.data[i].cameraName + '</h4>' +
  1744. ' </div>' +
  1745. ' </div>' +
  1746. ' </span>' +
  1747. '</div>'
  1748. markersList.push(markersMap)
  1749. }
  1750. setTimeout(() => {
  1751. this.$refs.supermapDialog.setMarkersByType(markersList, type)
  1752. }, 1000)
  1753. }
  1754. })
  1755. }
  1756. },
  1757. // 返回图片列表
  1758. assetTypeAnImage(filePath) {
  1759. let imageList = []
  1760. if (filePath != null && filePath.length > 0) {
  1761. for (let i = 0; i < filePath.length; i++) {
  1762. if (filePath[i].fileType == 'image') {
  1763. imageList.push(filePath[i].fileUrl)
  1764. }
  1765. }
  1766. }
  1767. return imageList
  1768. },
  1769. clickFile(fileUrl, fileName, fileType) {
  1770. if (fileType == 'image') {
  1771. return
  1772. } else if (fileType == 'video') {
  1773. this.showTcPlayer = true
  1774. setTimeout(() => {
  1775. this.playVideo = fileUrl
  1776. }, 500)
  1777. } else {
  1778. let a = document.createElement('a')
  1779. a.download = fileName
  1780. a.href = fileUrl
  1781. a.target = '_blank'
  1782. a.click()
  1783. }
  1784. },
  1785. setValue(event) {
  1786. //签收选择部门
  1787. this.sendDeptName = event.label
  1788. this.sendDeptId = event.value
  1789. },
  1790. cancelEventConfirm() {
  1791. //关闭事件签收弹窗
  1792. this.sendDeptId = null
  1793. this.sendDeptName = null
  1794. this.sendUserFegin = []
  1795. this.sendEventType = null
  1796. this.sendHuoZaiBanJing = 0
  1797. this.sendGuanLianYuAn = null
  1798. // this.longitude = null
  1799. // this.latitude = null
  1800. this.sendTaskTitle = null
  1801. this.sendTaskSource = null
  1802. this.sendTaskContent = null
  1803. this.sendLianDongDept = []
  1804. this.eventTypeList = [] //事件类型列表
  1805. this.guanLianYuAnList = [] //关联预案列表
  1806. this.deptOptions = [] //签收部门
  1807. this.deptOptionsLiandong = [] //联动部门
  1808. this.eventStatusButton = null //流程按钮标识
  1809. this.eventConfirmTitle = null //流程按钮标识
  1810. this.resourcesListCheck = []
  1811. this.userFeginList = [] //联系人列表
  1812. },
  1813. cancelEventConfirm_send() {
  1814. //清空表单数据
  1815. this.sendDeptId = null
  1816. this.sendDeptName = null
  1817. this.sendUserFegin = []
  1818. this.sendEventType = null
  1819. this.sendHuoZaiBanJing = 0
  1820. this.sendGuanLianYuAn = null
  1821. this.sendTaskTitle = null
  1822. this.sendTaskSource = null
  1823. this.sendTaskContent = null
  1824. this.sendLianDongDept = []
  1825. this.eventTypeList = [] //事件类型列表
  1826. this.guanLianYuAnList = [] //关联预案列表
  1827. this.deptOptions = [] //签收部门
  1828. this.deptOptionsLiandong = [] //联动部门
  1829. this.userFeginList = [] //联系人列表
  1830. },
  1831. cancelEventConfirm_gd() {
  1832. //关闭事件火险报告窗口
  1833. this.resetTable1()
  1834. this.resetTable2()
  1835. },
  1836. cancelEventConfirm_mp4() {
  1837. //关闭视频窗口
  1838. this.playVideo = ''
  1839. this.$refs.TcPlayer.destroyed()
  1840. },
  1841. resetTable1() {
  1842. this.table1 = {
  1843. reportUnit: null,
  1844. reportTimeY: null,
  1845. reportTimeM: null,
  1846. reportTimeD: null,
  1847. forestFireLossTotal: null,
  1848. fireLossTotal: null,
  1849. forestArea: null,
  1850. forestPrice: null,
  1851. treesNumber: null,
  1852. treesPrice: null,
  1853. minorInjuriesNumber: null,
  1854. minorInjuriesPrice: null,
  1855. seriouslyInjuredNumber: null,
  1856. seriouslyInjuredPrice: null,
  1857. deathNumber: null,
  1858. deathPrice: null,
  1859. elseFireLossPrice: null,
  1860. blazesPriceTotal: null,
  1861. artificialDays: null,
  1862. artificialPrice: null,
  1863. vehicleNumber: null,
  1864. carNumber: null,
  1865. vehiclePrice: null,
  1866. planeNumber: null,
  1867. planePrice: null,
  1868. elseBlazesPrice: null,
  1869. note: null
  1870. }
  1871. },
  1872. resetTable2() {
  1873. this.table2 = {
  1874. fireTime: null,
  1875. foundTime: null,
  1876. blazesTime: null,
  1877. address: null,
  1878. firePlace: null,
  1879. foundType: null,
  1880. longitudeD: null,
  1881. longitudeM: null,
  1882. longitudeS: null,
  1883. latitudeD: null,
  1884. latitudeM: null,
  1885. latitudeS: null,
  1886. fireSource: null,
  1887. fireType: null,
  1888. fireLevel: null,
  1889. areaTotal: null,
  1890. forestLossAreaTotal: null,
  1891. originalForestArea: null,
  1892. artificialForestArea: null,
  1893. peopleTotal: null,
  1894. blazesTeamNumber: null,
  1895. policeNumber: null,
  1896. armyNumber: null,
  1897. crowdNumber: null,
  1898. windExtinguisher: null,
  1899. secondTool: null,
  1900. waterGun: null,
  1901. elseThings: null,
  1902. forestComposition: null,
  1903. forestToken: null,
  1904. porosities: null,
  1905. weather: null,
  1906. temperature: null,
  1907. fireInsuranceLevel: null,
  1908. windLevel: null,
  1909. windDirection: null,
  1910. commandUnit: null,
  1911. commandName: null,
  1912. commandPosition: null,
  1913. surveyUnit: null,
  1914. surveyName: null,
  1915. surveyPosition: null,
  1916. accidentName: null,
  1917. accidentSex: null,
  1918. accidentAge: null,
  1919. accidentPosition: null,
  1920. accidentUnit: null,
  1921. dealType: null,
  1922. dealNumber: null,
  1923. criminalDealNumber: null,
  1924. accidentDealSituation: null,
  1925. responsibilityDealSituation: null,
  1926. leadershipDealSituation: null,
  1927. townForm: null,
  1928. townAudit: null,
  1929. cityForm: null,
  1930. cityAudit: null
  1931. }
  1932. },
  1933. getUrl(urlList) {
  1934. this.uploadAttachList = urlList
  1935. this.attachExamine = []
  1936. urlList.forEach(item => {
  1937. var attachPath = {
  1938. attachPath: item.name
  1939. }
  1940. this.attachExamine.push(attachPath)
  1941. });
  1942. },
  1943. /**
  1944. * eventStatusValue 事件状态
  1945. * isSend 是否办理
  1946. * */
  1947. async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
  1948. this.eventStatusButton = eventStatus
  1949. let that = this
  1950. if (!isSend) { //事件弹窗
  1951. if (eventStatus == 'qs') { //签收
  1952. that.eventConfirmTitle = '事件签收'
  1953. let param = {
  1954. parentId: that.eventType
  1955. }
  1956. if (that.eventTypeXl != null) {
  1957. that.sendEventType = that.eventTypeXl;
  1958. } else {
  1959. await listSJfl(param).then(res => {
  1960. //事件类型
  1961. if (res.code == 200) {
  1962. that.eventTypeList = res.data
  1963. }
  1964. })
  1965. }
  1966. await listYuAn().then(res => {
  1967. //关联预案
  1968. if (res.code == 200) {
  1969. that.guanLianYuAnList = res.data
  1970. }
  1971. })
  1972. await selectByeventCode(that.eventCode).then(res => {
  1973. //签收部门
  1974. if (res.code == 200) {
  1975. that.deptOptions = res.data
  1976. that.deptNameitem = '签收部门'
  1977. }
  1978. })
  1979. that.showEventConfirm = true
  1980. } else if (eventStatus == 'qr') { //确认
  1981. that.eventConfirmTitle = '事件确认'
  1982. } else if (eventStatus == 'wb') { //误报
  1983. that.eventConfirmTitle = '事件误报'
  1984. await selectByeventCode(that.eventCode).then(res => {
  1985. //签收部门
  1986. if (res.code == 200) {
  1987. that.deptOptions = res.data
  1988. that.deptNameitem = '签收部门'
  1989. }
  1990. })
  1991. that.showEventConfirm = true
  1992. } else if (eventStatus == 'cf') { //重复
  1993. that.eventConfirmTitle = '事件重复'
  1994. await selectByeventCode(that.eventCode).then(res => {
  1995. //签收部门
  1996. if (res.code == 200) {
  1997. that.deptOptions = res.data
  1998. that.deptNameitem = '签收部门'
  1999. }
  2000. })
  2001. that.showEventConfirm = true
  2002. } else if (eventStatus == 'ld') { //联动
  2003. await selectByeventCode(that.eventCode).then(res => {
  2004. //签收部门
  2005. if (res.code == 200) {
  2006. that.deptOptions = res.data
  2007. that.deptNameitem = '发起部门'
  2008. }
  2009. })
  2010. that.eventConfirmTitle = '事件联动'
  2011. /** 查询部门树结构 */
  2012. await deptTreeselect().then(response => {
  2013. that.deptOptionsLiandong = response.data
  2014. })
  2015. that.showEventConfirm = true
  2016. } else if (eventStatus == 'sh') { //审核
  2017. that.eventConfirmTitle = '事件审核'
  2018. that.showEventConfirm = true
  2019. } else if (eventStatus == 'gd') { //归档填报
  2020. that.showEventConfirm_gd = true
  2021. }
  2022. } else { //事件提交后台
  2023. if (eventStatus == 'ld') {
  2024. //事件处理流程--联动1
  2025. let array = that.$refs.LiandongDept.getCheckedNodes()
  2026. if (array != null && array.length > 0) {
  2027. for (let i = 0; i < array.length; i++) {
  2028. that.sendLianDongDept.push({
  2029. 'taskDeptId': array[i].id,
  2030. 'taskDeptName': array[i].label
  2031. })
  2032. }
  2033. }
  2034. if (that.sendTaskSource == '' || that.sendTaskSource == null) {
  2035. that.$message.error(`请选择任务来源!`)
  2036. return
  2037. }
  2038. if (that.sendTaskContent == '' || that.sendTaskContent == null) {
  2039. that.$message.error(`请输入任务内容!`)
  2040. return
  2041. }
  2042. if (that.sendTaskTitle == '' || that.sendTaskTitle == null) {
  2043. that.$message.error(`请输入任务标题!`)
  2044. return
  2045. }
  2046. if (that.sendLianDongDept == '' || that.sendLianDongDept == null) {
  2047. that.$message.error(`请选择任务联动部门!`)
  2048. return
  2049. }
  2050. if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName ==
  2051. null) {
  2052. that.$message.error(`请选择任务发起部门!`)
  2053. return
  2054. }
  2055. let eventState = "";
  2056. listSJfl({
  2057. parentId: that.eventType
  2058. }).then(res => {
  2059. if (res.code == 200) {
  2060. for (let i in res.data) {
  2061. if (res.data[i].id == that.eventTypeXl) {
  2062. eventState = res.data[i].eventTypeName;
  2063. }
  2064. }
  2065. let param = {
  2066. sendDeptId: that.sendDeptId,
  2067. sendDept: that.sendDeptName,
  2068. eventCode: that.eventCode,
  2069. longitude: that.longitude,
  2070. latitude: that.latitude,
  2071. taskTitle: that.sendTaskTitle,
  2072. taskSource: that.sendTaskSource,
  2073. taskContent: that.sendTaskContent,
  2074. taskDept: that.sendLianDongDept,
  2075. eventAddress: that.address,
  2076. eventState: eventState,
  2077. eventName: that.eventName
  2078. }
  2079. sendTask(param).then(res => {
  2080. if (res.code == 200) {
  2081. that.$message.success(`联动发起成功!`)
  2082. that.refreshEventDialog(that.eventCode)
  2083. that.cancelEventConfirm_send()
  2084. that.showEventConfirm = false
  2085. }
  2086. })
  2087. }
  2088. })
  2089. } else if (eventStatus == 'gd') {
  2090. if (that.eventTypeXl == 101) {
  2091. let double = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //数字和两位小数
  2092. let number = /^[+]{0,1}(\d+)$/g; //正整数
  2093. if (!double.test(that.table2.areaTotal)) {
  2094. that.$message.error(`面积只能填写到小数后两位!`)
  2095. return
  2096. }
  2097. if (!number.test(that.table2.peopleTotal)) {
  2098. that.$message.error(`人员请填写正整数!`)
  2099. return
  2100. }
  2101. if (that.table2.forestComposition == '' || that.table2.forestComposition == null) {
  2102. that.$message.error(`林木组成不能为空!`)
  2103. return
  2104. }
  2105. if (that.table2.forestToken == '' || that.table2.forestToken == null) {
  2106. that.$message.error(`林令不能为空!`)
  2107. return
  2108. }
  2109. if (that.table2.porosities == '' || that.table2.porosities == null) {
  2110. that.$message.error(`疏密度不能为空!`)
  2111. return
  2112. }
  2113. }
  2114. //事件处理流程--归档
  2115. let param = {
  2116. deptId: that.deptId,
  2117. eventCode: that.eventCode,
  2118. eventStatus: eventStatus,
  2119. id: that.eventId,
  2120. version: that.version,
  2121. czlx: '',
  2122. forestFireLoss: {
  2123. eventId: that.eventCode,
  2124. table1: that.table1
  2125. },
  2126. fireInformation: {
  2127. eventId: that.eventCode,
  2128. table2: that.table2
  2129. },
  2130. array: that.regionalFlagObj.array
  2131. }
  2132. updateCentereventTEventcatalogueStatus(param).then(res => {
  2133. if (res.code == 200) {
  2134. that.$message.success(`处理成功!`)
  2135. that.refreshEvent(that.eventCode)
  2136. that.cancelEventConfirm_send()
  2137. that.showEventConfirm_gd = false
  2138. that.$emit('getEventList', that.calendarDay, 10, 1)
  2139. that.$emit('getSupermap', that.calendarDay)
  2140. } else if (res.code == 304) {
  2141. console.log(that.eventCode)
  2142. this.$message.warning(res.msg)
  2143. this.showEventDialog(that.eventCode)
  2144. //获取事件详情
  2145. }
  2146. })
  2147. } else if (eventStatus == 'shtg') {
  2148. that.eventStatusButton = 'sh'
  2149. if (that.eventDescription == '' || that.eventDescription == null) {
  2150. that.$message.error(`请填写审核意见!`)
  2151. return
  2152. }
  2153. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  2154. that.$message.error(`请上传审核图片!`)
  2155. return
  2156. }
  2157. //事件处理流程--审核通过
  2158. let param = {
  2159. id: that.eventId, //事件id
  2160. eventCode: that.eventCode, //事件编号
  2161. eventName: that.eventName, //事件名称
  2162. isExamine: 1, //通过传1,不通过传0
  2163. version: that.version,
  2164. eventDescription: that.eventDescription, //审核意见
  2165. attach: that.attachExamine
  2166. }
  2167. eventExamine(param).then(res => {
  2168. if (res.code == 200) {
  2169. that.$message.success(`处理成功!`)
  2170. that.refreshEvent(that.eventCode)
  2171. that.cancelEventConfirm_send()
  2172. that.showEventConfirm = false
  2173. } else if (res.code == 304) {
  2174. console.log(that.eventCode)
  2175. this.$message.warning(res.msg)
  2176. this.showEventDialog(that.eventCode)
  2177. //获取事件详情
  2178. }
  2179. that.attachExamine = []
  2180. that.uploadAttachList = []
  2181. that.eventDescription = ""
  2182. })
  2183. } else if (eventStatus == 'shbtg') {
  2184. that.eventStatusButton = 'sh'
  2185. if (that.eventDescription == '' || that.eventDescription == null) {
  2186. that.$message.error(`请填写审核意见!`)
  2187. return
  2188. }
  2189. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  2190. that.$message.error(`请上传审核图片!`)
  2191. return
  2192. }
  2193. //事件处理流程--审核不通过
  2194. let param = {
  2195. id: that.eventId, //事件id
  2196. eventCode: that.eventCode, //事件编号
  2197. eventName: that.eventName, //事件名称
  2198. isExamine: 0, //通过传1,不通过传0
  2199. version: that.version,
  2200. eventDescription: that.eventDescription, //审核意见
  2201. attach: that.attachExamine
  2202. }
  2203. eventExamine(param).then(res => {
  2204. if (res.code == 200) {
  2205. that.$message.success(`处理成功!`)
  2206. that.refreshEvent(that.eventCode)
  2207. that.cancelEventConfirm_send()
  2208. that.showEventConfirm = false
  2209. } else if (res.code == 304) {
  2210. console.log(that.eventCode)
  2211. this.$message.warning(res.msg)
  2212. this.showEventDialog(that.eventCode)
  2213. //获取事件详情
  2214. }
  2215. that.attachExamine = []
  2216. that.uploadAttachList = []
  2217. that.eventDescription = ""
  2218. })
  2219. } else if (eventStatus == 'cz') {
  2220. eventHandling(that.eventId, that.eventCode).then(res => {
  2221. if (res.code == 200) {
  2222. that.$message.success(`处理成功!`)
  2223. that.refreshEvent(that.eventCode)
  2224. that.cancelEventConfirm_send()
  2225. that.showEventConfirm = false
  2226. }
  2227. })
  2228. } else {
  2229. if (eventStatus == 'qs') {
  2230. if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName ==
  2231. null) {
  2232. that.$message.error(`请选择部门!`)
  2233. return
  2234. }
  2235. if (eventStatus == 'qs') {
  2236. if (that.sendEventType == '' || that.sendEventType == null) {
  2237. that.$message.error(`请选择事件类型!`)
  2238. return
  2239. }
  2240. }
  2241. } else {
  2242. that.sendDeptId = that.deptId
  2243. }
  2244. //事件处理流程
  2245. let param = {
  2246. phones: that.sendUserFegin,
  2247. eventCode: that.eventCode,
  2248. deptId: that.sendDeptId,
  2249. deptName: that.sendDeptName,
  2250. eventStatus: eventStatus,
  2251. eventType: that.sendEventType,
  2252. id: that.eventId,
  2253. czlx: '',
  2254. version: that.version,
  2255. cameraCode: that.cameraCode,
  2256. fireRadius: that.sendHuoZaiBanJing,
  2257. reserve: that.sendGuanLianYuAn,
  2258. address: that.address,
  2259. }
  2260. updateCentereventTEventcatalogueStatus(param).then(res => {
  2261. if (res.code == 200) {
  2262. that.$message.success(`处理成功!`)
  2263. that.cancelEventConfirm_send()
  2264. that.showEventConfirm = false
  2265. that.$emit('getEventList', that.calendarDay, 10, 1)
  2266. that.$emit('getSupermap', that.calendarDay)
  2267. if (eventStatus == "cf" || eventStatus == "wb") {
  2268. this.eventDialog = false;
  2269. return;
  2270. }
  2271. that.refreshEvent(that.eventCode)
  2272. } else if (res.code == 304) {
  2273. console.log(that.eventCode)
  2274. this.$message.warning(res.msg)
  2275. this.showEventDialog(that.eventCode)
  2276. //获取事件详情
  2277. }
  2278. })
  2279. }
  2280. }
  2281. },
  2282. filterNode(value, data) {
  2283. //树搜索
  2284. if (!value) return true
  2285. return data.label.indexOf(value) !== -1
  2286. },
  2287. sendEventLog() {
  2288. if (this.eventLog == '' || this.eventLog == null) {
  2289. return;
  2290. }
  2291. //日志发送
  2292. let param = {
  2293. eventCode: this.eventCode,
  2294. logContent: this.eventLog,
  2295. operation: "bus_oper_type_2",
  2296. operationType: "log_oper_type_1"
  2297. }
  2298. sendEventLog(param).then(res => {
  2299. if (res.code == 200) {
  2300. this.$message.success(`发送成功!`)
  2301. this.eventLog = null
  2302. this.refreshEventDialog(this.eventCode)
  2303. }
  2304. })
  2305. },
  2306. showEventLogUpload() {
  2307. this.$refs.eventLogUpload.eventLogUpload(this.eventCode)
  2308. },
  2309. cancelEventShow() {
  2310. this.statusFlag = null
  2311. this.deptId = null
  2312. console.log('关闭事件弹窗')
  2313. this.eventLogList = []
  2314. },
  2315. showEventDialog(eventCode) {
  2316. this.fireControlViewList()
  2317. this.eventCode = eventCode
  2318. let that = this
  2319. //获取事件详情
  2320. getEventDetail({
  2321. eventCode: eventCode
  2322. }).then(res => {
  2323. let markersMapList = [];
  2324. that.eventDialog = true
  2325. that.eventLogList = res.data.eventlog //日志列表
  2326. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  2327. that.address = res.data.catalogue.address
  2328. that.eventStatusValue = res.data.catalogue.eventStatusValue
  2329. that.eventType = res.data.catalogue.eventType
  2330. that.statusFlag = res.data.catalogue.statusFlag
  2331. that.isExamine = res.data.catalogue.isExamine
  2332. that.dataStatus = res.data.catalogue.dataStatus
  2333. that.deptId = res.data.catalogue.deptId
  2334. that.eventId = res.data.catalogue.id
  2335. that.longitude = res.data.catalogue.longitude
  2336. that.latitude = res.data.catalogue.latitude
  2337. that.eventName = res.data.catalogue.eventName
  2338. that.version = res.data.catalogue.version
  2339. that.eventTypeXl = res.data.catalogue.eventTypeXl
  2340. let markersMap = {
  2341. lng: 124.59,
  2342. lat: 43.02,
  2343. icon: 'marker',
  2344. bindPopupHtml: '',
  2345. click: '',
  2346. parameter: '',
  2347. keepBindPopup: false,
  2348. isAggregation: true,
  2349. radius: 0
  2350. }
  2351. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  2352. markersMap.icon = 'sj-icon-map-xinshangbao'
  2353. }
  2354. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  2355. markersMap.icon = 'sj-icon-map-cuiban'
  2356. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  2357. markersMap.icon = 'sj-icon-map-qianshou'
  2358. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  2359. markersMap.icon = 'sj-icon-map-banjie'
  2360. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  2361. markersMap.icon = 'sj-icon-map-guidang'
  2362. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  2363. markersMap.icon = 'sj-icon-map-queren'
  2364. }
  2365. markersMap.lng = res.data.catalogue.longitude
  2366. markersMap.lat = res.data.catalogue.latitude
  2367. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  2368. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius >
  2369. 0) {
  2370. markersMap.radius = res.data.eventdetail[0].fireRadius
  2371. }
  2372. markersMapList.push(markersMap);
  2373. if (res.data.centermonitorTCamera != null) {
  2374. that.cameraCode = res.data.centermonitorTCamera.id;
  2375. let markersMap = {
  2376. lng: 124.59,
  2377. lat: 43.02,
  2378. icon: 'camera',
  2379. bindPopupHtml: '',
  2380. click: 'preview',
  2381. parameter: {
  2382. code: res.data.centermonitorTCamera.cameraCode,
  2383. type: res.data.centermonitorTCamera.cameraFactory,
  2384. name: res.data.centermonitorTCamera.cameraName
  2385. },
  2386. keepBindPopup: false,
  2387. isAggregation: true,
  2388. radius: 0
  2389. }
  2390. markersMap.bindPopupHtml = '<div class="map-tip">' +
  2391. '<span>' +
  2392. ' <div class="d-l-con">' +
  2393. ' <div class="d-l-l-text">' +
  2394. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  2395. ' </div>' +
  2396. ' </div>' +
  2397. ' </span>' +
  2398. '<span>' +
  2399. '</div>'
  2400. markersMap.lng = res.data.centermonitorTCamera.longitude
  2401. markersMap.lat = res.data.centermonitorTCamera.latitude
  2402. markersMapList.push(markersMap)
  2403. }
  2404. setTimeout(() => {
  2405. that.$refs.supermapDialog.dynamicPlotting() //弹出动态绘制窗口,防止截图位置改变
  2406. that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  2407. that.$refs.supermapDialog.clearM(false)
  2408. that.$refs.supermapDialog.clearM(true)
  2409. that.$refs.supermapDialog.setMarkersRadius(markersMapList)
  2410. }, 2000)
  2411. })
  2412. },
  2413. refreshEvent(eventCode) {
  2414. this.eventCode = eventCode
  2415. let that = this
  2416. //刷新--事件详情
  2417. getEventDetail({
  2418. eventCode: eventCode
  2419. }).then(res => {
  2420. let markersMapList = [];
  2421. that.eventDialog = true
  2422. that.eventLogList = res.data.eventlog
  2423. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  2424. that.address = res.data.catalogue.address
  2425. that.eventStatusValue = res.data.catalogue.eventStatusValue
  2426. that.eventType = res.data.catalogue.eventType
  2427. that.statusFlag = res.data.catalogue.statusFlag
  2428. that.isExamine = res.data.catalogue.isExamine
  2429. that.dataStatus = res.data.catalogue.dataStatus
  2430. that.deptId = res.data.catalogue.deptId
  2431. that.eventId = res.data.catalogue.id
  2432. that.latitude = res.data.catalogue.latitude
  2433. that.longitude = res.data.catalogue.longitude
  2434. that.eventName = res.data.catalogue.eventName
  2435. that.version = res.data.catalogue.version
  2436. that.eventTypeXl = res.data.catalogue.eventTypeXl
  2437. let markersMap = {
  2438. lng: 124.59,
  2439. lat: 43.02,
  2440. icon: 'marker',
  2441. bindPopupHtml: '',
  2442. click: '',
  2443. parameter: '',
  2444. keepBindPopup: false,
  2445. isAggregation: true,
  2446. radius: 0
  2447. }
  2448. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  2449. markersMap.icon = 'sj-icon-map-xinshangbao'
  2450. }
  2451. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  2452. markersMap.icon = 'sj-icon-map-cuiban'
  2453. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  2454. markersMap.icon = 'sj-icon-map-qianshou'
  2455. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  2456. markersMap.icon = 'sj-icon-map-banjie'
  2457. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  2458. markersMap.icon = 'sj-icon-map-guidang'
  2459. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  2460. markersMap.icon = 'sj-icon-map-queren'
  2461. }
  2462. markersMap.lng = res.data.catalogue.longitude
  2463. markersMap.lat = res.data.catalogue.latitude
  2464. if (res.data.eventdetail != null && res.data.eventdetail.length > 0 && res.data.eventdetail[0]
  2465. .fireRadius != null && res.data.eventdetail[0].fireRadius != '' && res.data.eventdetail[0].fireRadius >
  2466. 0) {
  2467. markersMap.radius = res.data.eventdetail[0].fireRadius
  2468. }
  2469. markersMapList.push(markersMap)
  2470. if (res.data.centermonitorTCamera != null) {
  2471. let markersMap = {
  2472. lng: 124.59,
  2473. lat: 43.02,
  2474. icon: 'camera',
  2475. bindPopupHtml: '',
  2476. click: 'preview',
  2477. parameter: {
  2478. code: res.data.centermonitorTCamera.cameraCode,
  2479. type: res.data.centermonitorTCamera.cameraFactory,
  2480. name: res.data.centermonitorTCamera.cameraName
  2481. },
  2482. keepBindPopup: false,
  2483. isAggregation: true,
  2484. radius: 0
  2485. }
  2486. markersMap.bindPopupHtml = '<div class="map-tip">' +
  2487. '<span>' +
  2488. ' <div class="d-l-con">' +
  2489. ' <div class="d-l-l-text">' +
  2490. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  2491. ' </div>' +
  2492. ' </div>' +
  2493. ' </span>' +
  2494. '<span>' +
  2495. '</div>'
  2496. markersMap.lng = res.data.centermonitorTCamera.longitude
  2497. markersMap.lat = res.data.centermonitorTCamera.latitude
  2498. markersMapList.push(markersMap)
  2499. }
  2500. setTimeout(() => {
  2501. that.$refs.supermapDialog.clearM(false)
  2502. that.$refs.supermapDialog.clearM(true)
  2503. that.$refs.supermapDialog.setMarkersRadius(markersMapList)
  2504. that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  2505. }, 2000)
  2506. })
  2507. },
  2508. refreshEventDialog(eventCode) {
  2509. //刷新--事件日志12
  2510. getEventDetail({
  2511. eventCode: eventCode
  2512. }).then(res => {
  2513. this.eventLogList = res.data.eventlog
  2514. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo //应急预案
  2515. })
  2516. },
  2517. // 页面元素转图片
  2518. toImage() {
  2519. this.$message.success(`正在上传!请稍后...`)
  2520. // 手动创建一个 canvas 标签
  2521. const canvas = document.createElement('canvas')
  2522. // 获取父标签,意思是这个标签内的 DOM 元素生成图片
  2523. // imageTofile是给截图范围内的父级元素自定义的ref名称
  2524. // let canvasBox = this.$refs.imageTofile
  2525. let canvasBox = document.getElementById('forestWarmSuperMap')
  2526. let toolbar = document.getElementById('toolbar')
  2527. if (toolbar != null) {
  2528. canvasBox.removeChild(toolbar)
  2529. }
  2530. // 获取父级的宽高
  2531. const width = parseInt(window.getComputedStyle(canvasBox).width)
  2532. const height = parseInt(window.getComputedStyle(canvasBox).height)
  2533. // 宽高 * 2 并放大 2 倍 是为了防止图片模糊
  2534. canvas.width = width * 2
  2535. canvas.height = height * 2
  2536. canvas.style.width = width + 'px'
  2537. canvas.style.height = height + 'px'
  2538. const context = canvas.getContext('2d')
  2539. context.scale(2, 2)
  2540. const options = {
  2541. backgroundColor: null,
  2542. canvas: canvas,
  2543. useCORS: true
  2544. }
  2545. html2canvas(canvasBox, options).then((canvas) => {
  2546. // toDataURL 图片格式转成 base64
  2547. let dataBase64 = canvas.toDataURL('image/png')
  2548. this.uploadBase64(dataBase64)
  2549. })
  2550. canvasBox.appendChild(toolbar)
  2551. },
  2552. uploadBase64(dataBase64) {
  2553. //事件详情截图直接上传日志
  2554. uploadBase64({
  2555. eventCode: this.eventCode,
  2556. base64: dataBase64
  2557. }).then(res => {
  2558. if (res.code == 200) {
  2559. this.$message.success(`截图上传成功!`)
  2560. this.refreshEventDialog(this.eventCode)
  2561. }
  2562. })
  2563. },
  2564. regionalFlagAdd: function() { //火灾区域
  2565. this.regionalFlagObj.array = []
  2566. this.regionalFlagOpen = true
  2567. },
  2568. showAreaLatLng: function(latlng) { //获取火灾区域经纬度
  2569. this.regionalFlagObj.array = latlng
  2570. this.$modal.msgSuccess('获取坐标成功!')
  2571. },
  2572. /** ----------------------------------摄像头预览开始------------------------------------- */
  2573. alertLogin: function() {
  2574. this.$modal.msg('登录中....')
  2575. },
  2576. alertLoginSuccess: function() {
  2577. this.$modal.msgSuccess('登录成功!')
  2578. },
  2579. alertLoginFailed: function() {
  2580. this.$modal.msgError('登陆失败!')
  2581. },
  2582. alertReinstall: function() {
  2583. this.$modal.msgWarning('请重新安装客户端')
  2584. },
  2585. cancelEventLocationShow() {
  2586. if (this.oWebControl != null) {
  2587. this.oWebControl.JS_HideWnd() // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题
  2588. this.oWebControl.JS_Disconnect().then(function() { // 断开与插件服务连接成功
  2589. },
  2590. function() { // 断开与插件服务连接失败
  2591. })
  2592. }
  2593. },
  2594. /** 预览按钮操作 */
  2595. preview(cameraParam) {
  2596. if (cameraParam.type == '1') {
  2597. this.showTVWall(cameraParam.code, cameraParam.name)
  2598. // getDahuaVideoServer().then(newResponse => {
  2599. // console.log(newResponse)
  2600. // this.ws.detectConnectQt().then(res => {
  2601. // if (res) { // 连接客户端成功
  2602. // this.alertLogin()
  2603. // this.ws.login({
  2604. // loginIp: newResponse.loginIp,
  2605. // loginPort: newResponse.loginPort,
  2606. // userName: newResponse.userName,
  2607. // userPwd: newResponse.userPwd,
  2608. // token: '',
  2609. // https: 1
  2610. // })
  2611. // this.ws.on('loginState', (res) => {
  2612. // this.isLogin = res
  2613. // console.log('---res-----', res)
  2614. // if (res) {
  2615. // this.alertLoginSuccess()
  2616. // this.activePanel = 'key2'
  2617. // this.realTimeVideoDialog(cameraParam.code)
  2618. // } else {
  2619. // this.alertLoginFailed()
  2620. // }
  2621. // })
  2622. // } else { // 连接客户端失败
  2623. // this.alertReinstall()
  2624. // }
  2625. // })
  2626. // })
  2627. } else if (cameraParam.type == '0') {
  2628. let that = this
  2629. that.cameraVisible = true
  2630. getHaiKangVideoServer({
  2631. cameraCode: cameraParam.code
  2632. }).then(newResponse => {
  2633. that.cameraTitle = '摄像头-' + newResponse.data.cameraName
  2634. that.initPlugin(newResponse.data.appkey, newResponse.data.loginIp, newResponse.data.secret, newResponse
  2635. .data.loginPort)
  2636. setTimeout(function() {
  2637. that.playhk(newResponse.data.channelCode)
  2638. }, 5000)
  2639. })
  2640. }
  2641. },
  2642. realTimeVideoDialog(cameraParams) { // 调用弹窗实时播放接口
  2643. if (!this.isLogin) {
  2644. this.$Message.info('正在登陆客户端,请稍等......')
  2645. return false
  2646. }
  2647. const param = [cameraParams]
  2648. this.ws.openVideo(param)
  2649. },
  2650. /** ----------------------------------摄像头预览结束------------------------------------- */
  2651. /** ----------------------------------海康摄像头预览开始------------------------------------- */
  2652. // 创建播放实例
  2653. initPlugin(newappkey, newloginIp, newsecret, newloginPort) {
  2654. let that = this
  2655. that.oWebControl = new WebControl({
  2656. szPluginContainer: 'playWnd', // 指定容器id
  2657. iServicePortStart: 15900, // 指定起止端口号,建议使用该值
  2658. iServicePortEnd: 15909,
  2659. szClassId: '23BF3B0A-2C56-4D97-9C03-0CB103AA8F11', // 用于IE10使用ActiveX的clsid
  2660. cbConnectSuccess: function() { // 创建WebControl实例成功
  2661. that.oWebControl.JS_StartService('window', { // WebControl实例创建成功后需要启动服务
  2662. dllPath: './VideoPluginConnect.dll' // 值"./VideoPluginConnect.dll"写死
  2663. }).then(function() { // 启动插件服务成功
  2664. that.oWebControl.JS_SetWindowControlCallback({ // 设置消息回调
  2665. cbIntegrationCallBack: cbIntegrationCallBack
  2666. })
  2667. that.oWebControl.JS_CreateWnd('playWnd', 1020, 600).then(
  2668. function() { //JS_CreateWnd创建视频播放窗口,宽高可设定
  2669. that.init(newappkey, newloginIp, newsecret, newloginPort) // 创建播放实例成功后初始化
  2670. })
  2671. }, function() { // 启动插件服务失败
  2672. })
  2673. },
  2674. cbConnectError: function() { // 创建WebControl实例失败
  2675. that.oWebControl = null
  2676. $('#playWnd').html('插件未启动,正在尝试启动,请稍候...<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>')
  2677. WebControl.JS_WakeUp('VideoWebPlugin://') // 程序未启动时执行error函数,采用wakeup来启动程序
  2678. that.initCount++
  2679. if (that.initCount < 3) {
  2680. setTimeout(function() {
  2681. that.initPlugin(newappkey, newloginIp, newsecret, newloginPort)
  2682. }, 3000)
  2683. } else {
  2684. $('#playWnd').html('插件启动失败,请检查插件是否安装!<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>')
  2685. }
  2686. },
  2687. cbConnectClose: function(bNormalClose) {
  2688. // 异常断开:bNormalClose = false
  2689. // JS_Disconnect正常断开:bNormalClose = true
  2690. that.oWebControl = null
  2691. }
  2692. })
  2693. },
  2694. //播放海康摄像头
  2695. playhk(channelCode) {
  2696. var cameraIndexCode = channelCode //获取输入的监控点编号值,必填
  2697. var streamMode = 0 //主子码流标识:0-主码流,1-子码流
  2698. var transMode = 1 //传输协议:0-UDP,1-TCP
  2699. var gpuMode = 0 //是否启用GPU硬解,0-不启用,1-启用
  2700. var wndId = -1 //播放窗口序号(在2x2以上布局下可指定播放窗口)
  2701. cameraIndexCode = cameraIndexCode.replace(/(^\s*)/g, '')
  2702. cameraIndexCode = cameraIndexCode.replace(/(\s*$)/g, '')
  2703. this.oWebControl.JS_RequestInterface({
  2704. funcName: 'startPreview',
  2705. argument: JSON.stringify({
  2706. cameraIndexCode: cameraIndexCode, //监控点编号
  2707. streamMode: streamMode, //主子码流标识
  2708. transMode: transMode, //传输协议
  2709. gpuMode: gpuMode, //是否开启GPU硬解
  2710. wndId: wndId //可指定播放窗口
  2711. })
  2712. })
  2713. },
  2714. //初始化
  2715. init(newappkey, newloginIp, newsecret, newloginPort) {
  2716. let that = this
  2717. that.getPubKey(function() {
  2718. ////////////////////////////////// 请自行修改以下变量值 ////////////////////////////////////
  2719. var appkey = newappkey //综合安防管理平台提供的appkey,必填
  2720. var secret = that.setEncrypt(newsecret) //综合安防管理平台提供的secret,必填
  2721. var ip = newloginIp //综合安防管理平台IP地址,必填
  2722. var playMode = 0 //初始播放模式:0-预览,1-回放
  2723. var port = Number(newloginPort) //综合安防管理平台端口,若启用HTTPS协议,默认443
  2724. var snapDir = 'D:\\SnapDir' //抓图存储路径
  2725. var videoDir = 'D:\\VideoDir' //紧急录像或录像剪辑存储路径
  2726. var layout = '1x1' //playMode指定模式的布局
  2727. var enableHTTPS = 1 //是否启用HTTPS协议与综合安防管理平台交互,这里总是填1
  2728. var encryptedFields = 'secret' //加密字段,默认加密领域为secret
  2729. var showToolbar = 1 //是否显示工具栏,0-不显示,非0-显示
  2730. var showSmart = 1 //是否显示智能信息(如配置移动侦测后画面上的线框),0-不显示,非0-显示
  2731. var buttonIDs = '0,16,256,257,258,259,260,512,513,514,515,516,517,768,769' //自定义工具条按钮
  2732. ////////////////////////////////// 请自行修改以上变量值 ////////////////////////////////////
  2733. that.oWebControl.JS_RequestInterface({
  2734. funcName: 'init',
  2735. argument: JSON.stringify({
  2736. appkey: appkey, //API网关提供的appkey
  2737. secret: secret, //API网关提供的secret
  2738. ip: ip, //API网关IP地址
  2739. playMode: playMode, //播放模式(决定显示预览还是回放界面)
  2740. port: port, //端口
  2741. snapDir: snapDir, //抓图存储路径
  2742. videoDir: videoDir, //紧急录像或录像剪辑存储路径
  2743. layout: layout, //布局
  2744. enableHTTPS: enableHTTPS, //是否启用HTTPS协议
  2745. encryptedFields: encryptedFields, //加密字段
  2746. showToolbar: showToolbar, //是否显示工具栏
  2747. showSmart: showSmart, //是否显示智能信息
  2748. buttonIDs: buttonIDs //自定义工具条按钮
  2749. })
  2750. }).then(function(oData) {
  2751. that.oWebControl.JS_Resize(1020, 600) // 初始化后resize一次,规避firefox下首次显示窗口后插件窗口未与DIV窗口重合问题
  2752. })
  2753. })
  2754. },
  2755. //获取公钥
  2756. getPubKey(callback) {
  2757. let that = this
  2758. that.oWebControl.JS_RequestInterface({
  2759. funcName: 'getRSAPubKey',
  2760. argument: JSON.stringify({
  2761. keyLength: 1024
  2762. })
  2763. }).then(function(oData) {
  2764. console.log(oData)
  2765. if (oData.responseMsg.data) {
  2766. that.pubKey = oData.responseMsg.data
  2767. callback()
  2768. }
  2769. })
  2770. },
  2771. //RSA加密
  2772. setEncrypt(value) {
  2773. var encrypt = new JSEncrypt()
  2774. encrypt.setPublicKey(this.pubKey)
  2775. return encrypt.encrypt(value)
  2776. },
  2777. /** ----------------------------------海康摄像头预览结束------------------------------------- */
  2778. /** ----------------------------------视频会议开始------------------------------------- */
  2779. sendMsg() { // 视频会议发送短信
  2780. let reg_user = /^[\u4e00-\u9fa5]{2,4}$/; //2-4个中文字符正则
  2781. let reg_tel = /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/; //11位手机号码正则
  2782. for (let i in this.dutysystemTableData) {
  2783. if (!reg_user.test(this.dutysystemTableData[i].name)) {
  2784. this.$message.error(`请输入正确姓名!`)
  2785. return;
  2786. }
  2787. if (!reg_tel.test(this.dutysystemTableData[i].telphone)) {
  2788. this.$message.error(`请输入正确手机号码!`)
  2789. return;
  2790. }
  2791. if (this.dutysystemTableData[i].id == null || this.dutysystemTableData[i].id == '') {
  2792. this.dutysystemTableData[i].dept = this.dutysystemDeptName;
  2793. this.dutysystemTableData[i].depteventId = this.depteventId;
  2794. }
  2795. }
  2796. const param = {
  2797. centereventTDutySystemList: this.dutysystemTableData,
  2798. eventCode: this.eventCode,
  2799. eventName: this.eventName,
  2800. eventId: this.eventId
  2801. }
  2802. this.joinMeeting(param);
  2803. },
  2804. joinMeeting(param) {
  2805. this.$message({
  2806. message: '正在启动云会议客户端,请稍候...',
  2807. type: 'success',
  2808. });
  2809. joinConferences(this.eventId, this.eventName + "的会议", Cookies.get("nickName")).then(res => {
  2810. if (res.code == 200) {
  2811. let conferenceID = res.data.info.conferenceID;
  2812. let password = res.data.info.password;
  2813. let nickName = res.data.nickName;
  2814. let nonce = res.data.nonce;
  2815. window.open(
  2816. "cloudlink://welinksoftclient/h5page?page=LoginAndJoinConf&server_url=meeting.huaweicloud.com&port=8443&conf_id=" +
  2817. conferenceID + "&enter_code=" + password + "&name=" + nickName +
  2818. "&open_mic=true&open_camera=false&nonce=" + nonce);
  2819. sendMessage(param).then(res => {
  2820. //this.$message.success(res.msg);
  2821. this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId);
  2822. this.showMeetingMsgDialog = false;
  2823. })
  2824. }
  2825. })
  2826. },
  2827. Meeting() { //弹出发送会议短信弹窗
  2828. let that = this;
  2829. that.$alert(
  2830. "如您已经安装请点击【确定】,如未安装可<a style='text-decoration:underline;color:blue;' href='http://172.18.1.37:15001/CLOUDMeeting_Win.exe'>点击此处</a>进行下载",
  2831. '该功能需要使用云会议客户端', {
  2832. confirmButtonText: '确定',
  2833. dangerouslyUseHTMLString: true,
  2834. callback: action => {
  2835. let param = {
  2836. eventCode: that.eventCode
  2837. }
  2838. centereventtdepteventList(param).then(res => {
  2839. that.depteventList = res.data
  2840. that.showMeetingMsgDialog = true
  2841. })
  2842. }
  2843. });
  2844. },
  2845. /** ----------------------------------视频会议结束------------------------------------- */
  2846. }
  2847. }
  2848. // 推送消息
  2849. function cbIntegrationCallBack(oData) {
  2850. console.log(JSON.stringify(oData.responseMsg))
  2851. }
  2852. </script>
  2853. <style lang="scss" scoped>
  2854. @import '@/assets/styles/base.scss';
  2855. //弹层样式
  2856. //.customWidthMp4 {
  2857. // width: 70px !important;
  2858. // height: 70px !important;
  2859. //}
  2860. .tree-border {
  2861. border: 1px $barBorder;
  2862. }
  2863. button {
  2864. padding: .5rem;
  2865. }
  2866. /** 火灾报告**/
  2867. //@font-face {
  2868. // font-family: 'fontnameRegular';
  2869. // src: url('../../../../assets/styles/FZYTJW_0.TTF');
  2870. //}
  2871. body,
  2872. html,
  2873. * {
  2874. padding: 0px;
  2875. margin: 0px;
  2876. font-family: "fontnameRegular";
  2877. }
  2878. .table-container {
  2879. width: 100%;
  2880. }
  2881. .txt_right {
  2882. text-align: right !important;
  2883. }
  2884. .txt_left {
  2885. text-align: left !important;
  2886. }
  2887. table {
  2888. border-spacing: 0;
  2889. border-collapse: collapse;
  2890. width: 99%;
  2891. margin: 0 auto;
  2892. color: $inBlue;
  2893. }
  2894. table input {
  2895. font-size: 1rem;
  2896. border: 0px;
  2897. outline: 0px;
  2898. font-family: "微软雅黑";
  2899. background: none;
  2900. color: $inBlue;
  2901. }
  2902. table th input:hover {
  2903. background: $eventBG;
  2904. }
  2905. table thead th {
  2906. font-size: 1rem;
  2907. font-family: "宋体";
  2908. height: 2rem;
  2909. border-top: 0px;
  2910. border-left: 0px;
  2911. border-right: 0px;
  2912. outline: 0px;
  2913. }
  2914. table tr td {
  2915. font-size: 1rem;
  2916. font-family: "fontnameRegular";
  2917. height: 2rem;
  2918. border: 1px $searchBorder;
  2919. text-align: center;
  2920. }
  2921. .font1 {
  2922. font-size: 1.7rem;
  2923. font-weight: bolder;
  2924. }
  2925. .border0 {
  2926. width: 100% !important;
  2927. }
  2928. .border0 tr td {
  2929. border: 0px !important;
  2930. }
  2931. table tr td input {
  2932. width: 100%;
  2933. /* display: inline-block;*/
  2934. outline: 0px;
  2935. text-align: left;
  2936. height: 94%;
  2937. color: $inBlue;
  2938. background: none;
  2939. float: left;
  2940. padding: 0 .5rem;
  2941. }
  2942. table tr td input:hover {
  2943. background: $eventBG;
  2944. }
  2945. .int_tr td input {
  2946. text-align: center !important;
  2947. }
  2948. .table2 tr th {
  2949. font-size: 1.7rem;
  2950. padding: .5rem 0;
  2951. font-family: 'fontnameRegular';
  2952. }
  2953. .table2 tr td {
  2954. font-size: 1rem;
  2955. }
  2956. .table2 tr td select {
  2957. border: 0px !important;
  2958. outline: 0px;
  2959. width: 100%;
  2960. font-family: "微软雅黑";
  2961. font-size: 1rem;
  2962. padding-left: 1%;
  2963. color: $inBlue;
  2964. background: none;
  2965. }
  2966. .table2 tr td select:hover {
  2967. background: $eventBG;
  2968. }
  2969. .table2 tr td select option {
  2970. font-size: 1rem;
  2971. font-family: "微软雅黑";
  2972. }
  2973. .border_l0 {
  2974. // border-right: 1px solid #ececec !important;
  2975. }
  2976. .table2 tr td textarea {
  2977. border: 0px !important;
  2978. outline: 0px;
  2979. width: 98%;
  2980. padding: .5rem;
  2981. font-size: 1rem;
  2982. resize: none;
  2983. background: none;
  2984. color: $inBlue;
  2985. }
  2986. .table2 tr td textarea:hover {
  2987. background: $eventBG;
  2988. }
  2989. .tr_border td {
  2990. border-right: 0px !important;
  2991. border-left: 0px !important;
  2992. border-bottom: 0px !important;
  2993. font-size: 15px;
  2994. }
  2995. .btm-btn-group {
  2996. padding: 1rem 0;
  2997. width: 100%;
  2998. display: flex;
  2999. button {
  3000. padding: .5rem 2rem;
  3001. }
  3002. }
  3003. // 20220928
  3004. .yatz_button {
  3005. padding: 0.5rem 0.5rem;
  3006. color: #409EFF;
  3007. background: none;
  3008. border-color: #409EFF;
  3009. }
  3010. .yatz_button:hover {
  3011. color: #fff;
  3012. background: #409EFF;
  3013. border-color: #409EFF;
  3014. }
  3015. .fr_button {
  3016. float: right;
  3017. padding: 0.5rem 1.5rem;
  3018. }
  3019. .bottom {
  3020. width: 100%;
  3021. height: calc(100% - 80px);
  3022. display: flex;
  3023. .bottomLeft {
  3024. width: 288px;
  3025. height: 500px;
  3026. overflow-y: auto;
  3027. .leftItem {
  3028. width: 100%;
  3029. height: 50px;
  3030. line-height: 50px;
  3031. text-align: center;
  3032. cursor: pointer;
  3033. }
  3034. }
  3035. .bottomRight {
  3036. width: calc(100% - 288px);
  3037. height: 500px;
  3038. box-sizing: border-box;
  3039. padding: 36px 36px 0 36px;
  3040. overflow-y: auto;
  3041. .bottomRightContent {
  3042. width: 100%;
  3043. box-sizing: border-box;
  3044. padding-bottom: 36px;
  3045. .bottomRightContentHead {
  3046. height: 25px;
  3047. font-family: PingFang SC;
  3048. font-style: normal;
  3049. font-weight: 600;
  3050. font-size: 24px;
  3051. line-height: 25px;
  3052. text-transform: capitalize;
  3053. color: rgba(0, 0, 0, 0.85);
  3054. margin-bottom: 32px;
  3055. }
  3056. .bottomRightContentBody {
  3057. .el-col {
  3058. position: relative;
  3059. margin-bottom: 18px;
  3060. .circle {
  3061. display: inline-block;
  3062. width: 6px;
  3063. height: 6px;
  3064. background: #4677f6;
  3065. border-radius: 50%;
  3066. position: absolute;
  3067. top: 8px;
  3068. left: 0;
  3069. }
  3070. .word {
  3071. margin-left: 12px;
  3072. font-family: PingFang SC;
  3073. font-style: normal;
  3074. font-weight: normal;
  3075. font-size: 14px;
  3076. color: #4677f6;
  3077. cursor: pointer;
  3078. }
  3079. .word:hover {
  3080. text-decoration: underline;
  3081. }
  3082. .topPlace {
  3083. position: absolute;
  3084. top: 1px;
  3085. margin-left: 8px;
  3086. }
  3087. }
  3088. }
  3089. .bottomRightContentFooter {
  3090. height: 1px;
  3091. width: 100%;
  3092. margin-top: 14px;
  3093. }
  3094. }
  3095. }
  3096. }
  3097. </style>