eventdetailsdialog.vue 107 KB

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