eventdetailsdialog.vue 124 KB

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