eventdetailsdialog.vue 109 KB

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