eventdetailsdialog.vue 122 KB

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