eventdetailsdialog.vue 106 KB

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