eventdetailsdialog.vue 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984
  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" @click="showUpdateYjYuAn">预案调整
  32. </el-button>
  33. </div>
  34. <!-- 应急预案end -->
  35. <!-- 左侧资源 -->
  36. <div class="leftbar" style="width:fit-content !important;bottom:0rem;left: 1rem; top: unset;">
  37. <div class="forthis">
  38. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">
  39. <div class="i-list-con">
  40. <div class="d-l-con-icon" style="flex-direction:row;flex-wrap: nowrap;">
  41. <div class="icon-con" style="width: fit-content !important;"
  42. v-for="(item,index) in resourcesList" @click="listResourceByWz(item.type)">
  43. <div class="iconfont icon icon-normal" :class="item.icon"></div>
  44. <div class="icon-text">
  45. <h5>{{ item.resourceName }}</h5>
  46. </div>
  47. </div>
  48. <el-input type="number" v-model="radius" style="width: 80px;" placeholder="请输入搜索半径"/>
  49. <el-button size="small" icon="el-icon-upload" @click="showheatPlotting()">火灾蔓延</el-button>
  50. </div>
  51. </div>
  52. </dv-border-box-7>
  53. </div>
  54. </div>
  55. <!-- 左侧资源end -->
  56. <!-- 底部工具栏 -->
  57. <!-- <div class="dia-left-btm-tool">
  58. </div> -->
  59. <!-- 底部工具栏end -->
  60. <!-- 地图 -->
  61. <supermapDialog ref="supermapDialog"
  62. style="position: absolute; top:0;left: 0;"
  63. :mapDiv="'forestWarmSuperMap'"
  64. :mapSite="{zoom:12,doubleClickZoom:false,dragging:false,scrollWheelZoom:false}"
  65. :codes="['9fa5']"
  66. :isSideBySide="false"
  67. :isdynamicPlotting="true"/>
  68. <!-- 地图end -->
  69. </div>
  70. </el-col>
  71. <!-- 左侧end -->
  72. <!-- 右侧 -->
  73. <el-col :span="6" class="dia-right">
  74. <div class="e-right">
  75. <div class="forthis1">
  76. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']"
  77. style="padding-bottom:1rem ;">
  78. <div class="i-list-con">
  79. <div class="this-con">
  80. <div class="z-info-list" style="margin-top: 0;">
  81. <el-timeline>
  82. <el-timeline-item color="#2bacf7" :timestamp="item.createTime"
  83. placement="top" v-for="(item,index) in eventLogList">
  84. <el-card style="width: 40vh">
  85. <div class="z-info-list-con">
  86. <div class="user-and-time flex-d">
  87. <span>{{ item.createName }}</span>
  88. <span v-if="eventLogList.length - 1 == index&&address!=null&&address!=''"><i
  89. class="el-icon-location"></i> {{ address }}</span>
  90. <span v-else></span>
  91. </div>
  92. <div class="z-info">
  93. <div class="this-con-list-info">
  94. {{ item.logContent }}
  95. </div>
  96. <div>
  97. <router-link to="#" @click.native="clickFile(itemfile.fileUrl,itemfile.fileName)"
  98. v-for="(itemfile,indexfile) in item.fileVOs">
  99. <!-- 使用el-image的:src需要加require -->
  100. <!-- <img v-if="isAssetTypeAnImage(itemfile.fileUrl)"-->
  101. <!-- style="width:3rem; height:3rem;margin: 2px;"-->
  102. <!-- :src="itemfile.fileUrl"-->
  103. <!-- :title="itemfile.fileName">-->
  104. <!-- </img>-->
  105. <el-image :src="itemfile.fileUrl" v-if="isAssetTypeAnImage(itemfile.fileUrl)"
  106. :preview-src-list="assetTypeAnImage(item.attachs)"
  107. style="width:3rem; height:3rem;margin: 2px;"
  108. :title="itemfile.fileName">
  109. </el-image>
  110. <img v-else-if="isAssetTypeAnMp4(itemfile.fileUrl)"
  111. style="width:3rem; height:3rem;margin: 2px;"
  112. :src="require('@/assets/fileTypeImage/mp4.png')"
  113. :title="itemfile.fileName">
  114. </img>
  115. <img v-else-if="isAssetTypeAnWord(itemfile.fileUrl)"
  116. style="width:3rem; height:3rem;margin: 2px;"
  117. :src="require('@/assets/fileTypeImage/word.png')"
  118. :title="itemfile.fileName">
  119. </img>
  120. <img v-else-if="isAssetTypeAnExcel(itemfile.fileUrl)"
  121. style="width:3rem; height:3rem;margin: 2px;"
  122. :src="require('@/assets/fileTypeImage/excel.png')"
  123. :title="itemfile.fileName">
  124. </img>
  125. <img v-else
  126. style="width:3rem; height:3rem;margin: 2px;"
  127. :src="require('@/assets/fileTypeImage/file.png')"
  128. :title="itemfile.fileName">
  129. </img>
  130. </router-link>
  131. </div>
  132. </div>
  133. </div>
  134. </el-card>
  135. </el-timeline-item>
  136. </el-timeline>
  137. </div>
  138. </div>
  139. </div>
  140. </dv-border-box-7>
  141. </div>
  142. <div class="forthis2">
  143. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">
  144. <div class="i-list-con">
  145. <div class="this-con h-25 no-padding">
  146. <div class="z-info-list" style="margin-top: 0;">
  147. <div class="z-info-btm-grp">
  148. <div class="z-info-btm-grp-top">
  149. <div class="z-info-btm-grp-left">
  150. <!-- <el-button size="small" icon="el-icon-s-flag">责任制-->
  151. <!-- </el-button>-->
  152. <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传
  153. </el-button>
  154. <el-button size="small" icon="el-icon-download" @click="toImage()">截图上传
  155. </el-button>
  156. </div>
  157. <div class="z-info-btm-grp-right">
  158. <el-button size="small" icon="el-icon-mic">会议
  159. </el-button>
  160. </div>
  161. </div>
  162. <div class="z-info-btm-input">
  163. <el-input type="textarea" v-model="eventLog"
  164. :autosize="{ minRows: 7, maxRows: 7}" placeholder="请输入反馈信息">
  165. </el-input>
  166. <div class="z-info-btm-input-btn" v-if="eventStatusValue=='forest_event_status_1'">
  167. <div style="text-align:left">
  168. <el-button size="small"
  169. icon="el-icon-s-flag"
  170. @click="updateCentereventTEventcatalogueStatus('qs',false)">
  171. 签收
  172. </el-button>
  173. <el-button size="small"
  174. icon="el-icon-question"
  175. @click="updateCentereventTEventcatalogueStatus('wb',false)">
  176. 误报
  177. </el-button>
  178. <el-button size="small"
  179. icon="el-icon-warning"
  180. @click="updateCentereventTEventcatalogueStatus('cf',false)">
  181. 重复
  182. </el-button>
  183. </div>
  184. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  185. </el-button>
  186. </div>
  187. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_2'">
  188. <div>
  189. <el-button size="small"
  190. icon="el-icon-question"
  191. @click="updateCentereventTEventcatalogueStatus('wb',false)">
  192. 误报
  193. </el-button>
  194. <el-button size="small"
  195. icon="el-icon-warning"
  196. @click="updateCentereventTEventcatalogueStatus('cf',false)">
  197. 重复
  198. </el-button>
  199. <el-button size="small"
  200. icon="el-icon-phone" style="text-align:left"
  201. @click="updateCentereventTEventcatalogueStatus('ld',false)">
  202. 联动
  203. </el-button>
  204. <el-button size="small"
  205. icon="el-icon-success" style="text-align:left"
  206. @click="updateCentereventTEventcatalogueStatus('bj',true)">
  207. 办结
  208. </el-button>
  209. </div>
  210. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  211. </el-button>
  212. </div>
  213. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_5'">
  214. <el-button size="small"
  215. icon="el-icon-success" style="text-align:left"
  216. @click="updateCentereventTEventcatalogueStatus('gd',false)">
  217. 填报
  218. </el-button>
  219. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  220. </el-button>
  221. </div>
  222. <div class="z-info-btm-input-btn" v-else>
  223. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  224. </el-button>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. </div>
  231. </dv-border-box-7>
  232. </div>
  233. </div>
  234. </el-col>
  235. <!-- 左侧end -->
  236. </el-row>
  237. </div>
  238. </el-dialog>
  239. </div>
  240. <vBottomMenu ref="bottomMenu"></vBottomMenu>
  241. <eventLogUpload ref="eventLogUpload"></eventLogUpload>
  242. <el-dialog :title="eventConfirmTitle" :visible.sync="showEventConfirm" v-if="showEventConfirm" width="50%"
  243. class="top-dialog"
  244. @close="cancelEventConfirm()">
  245. <el-form label-width="80px">
  246. <el-form-item label="火灾半径" v-if="eventStatusButton=='qs'">
  247. <el-input type="number" v-model="sendHuoZaiBanJing" placeholder="请输入火灾半径"/>
  248. </el-form-item>
  249. <el-form-item :label="deptNameitem">
  250. <!-- <treeselect v-model="deptId" :options="deptOptions" multiple :show-count="true"-->
  251. <!-- placeholder="请选择签收部门"/>-->
  252. <el-select v-model="sendDeptName" clearable placeholder="请选择部门" class="m-r-1rem" @change="setValue"
  253. v-if="eventStatusButton=='wb'||eventStatusButton=='qs'||eventStatusButton=='cf'||eventStatusButton=='ld'">
  254. <el-option
  255. v-for="item in deptOptions"
  256. :key="item.deptId"
  257. :label="item.deptName"
  258. :value="{value:item.deptId,label:item.deptName}">
  259. </el-option>
  260. </el-select>
  261. </el-form-item>
  262. <el-form-item label="事件类型" v-if="eventStatusButton=='qs'">
  263. <el-select v-model="sendEventType" placeholder="请选择事件类型!" clearable>
  264. <el-option
  265. v-for="item in eventTypeList"
  266. :key="item.id"
  267. :label="item.eventTypeName"
  268. :value="item.id"
  269. />
  270. </el-select>
  271. </el-form-item>
  272. <el-form-item label="任务来源" v-if="eventStatusButton=='ld'">
  273. <el-select v-model="sendTaskSource" placeholder="请选择任务来源!" clearable>
  274. <el-option
  275. v-for="dict in dict.type.task_source"
  276. :key="dict.value"
  277. :label="dict.label"
  278. :value="dict.value"
  279. />
  280. </el-select>
  281. </el-form-item>
  282. <el-form-item label="联动标题" v-if="eventStatusButton=='ld'">
  283. <el-input v-model="sendTaskTitle" placeholder="请输入联动标题"/>
  284. </el-form-item>
  285. <el-form-item label="联动内容" v-if="eventStatusButton=='ld'">
  286. <el-input type="textarea" v-model="sendTaskContent"
  287. :autosize="{ minRows: 7, maxRows: 7}" placeholder="请输入联动内容">
  288. </el-input>
  289. </el-form-item>
  290. <el-form-item label="联动部门" v-if="eventStatusButton=='ld'">
  291. <el-input
  292. placeholder="输入关键字进行过滤"
  293. v-model="filterText">
  294. </el-input>
  295. <el-tree
  296. class="tree-border"
  297. style="height: 20vh; overflow-y:scroll"
  298. :data="deptOptionsLiandong"
  299. show-checkbox
  300. ref="LiandongDept"
  301. node-key="id"
  302. :check-strictly="true"
  303. :filter-node-method="filterNode"
  304. :accordion="true"
  305. empty-text="加载中,请稍候"
  306. :props="defaultProps"
  307. ></el-tree>
  308. <!-- default-expand-all-->
  309. </el-form-item>
  310. <el-form-item label="关联预案" v-if="eventStatusButton=='qs'">
  311. <el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" clearable>
  312. <el-option
  313. v-for="item in guanLianYuAnList"
  314. :key="item.id"
  315. :label="item.resTitle"
  316. :value="item.id"
  317. />
  318. </el-select>
  319. </el-form-item>
  320. <el-button size="mini" type="primary" v-if="eventStatusButton=='qs'"
  321. @click="updateCentereventTEventcatalogueStatus('qs',true)">签收
  322. </el-button>
  323. <el-button size="mini" type="primary" v-if="eventStatusButton=='wb'"
  324. @click="updateCentereventTEventcatalogueStatus('wb',true)">误报
  325. </el-button>
  326. <el-button size="mini" type="primary" v-if="eventStatusButton=='cf'"
  327. @click="updateCentereventTEventcatalogueStatus('cf',true)">重复
  328. </el-button>
  329. <el-button size="mini" type="primary" v-if="eventStatusButton=='ld'"
  330. @click="updateCentereventTEventcatalogueStatus('ld',true)">发起联动
  331. </el-button>
  332. </el-form>
  333. </el-dialog>
  334. <el-dialog title="调整预案" :visible.sync="showGuanLianYuAnConfirm" v-if="showGuanLianYuAnConfirm" width="50%"
  335. class="top-dialog">
  336. <el-form label-width="80px">
  337. <el-form-item label="关联预案">
  338. <el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" clearable>
  339. <el-option
  340. v-for="item in guanLianYuAnList"
  341. :key="item.id"
  342. :label="item.resTitle"
  343. :value="item.id"
  344. />
  345. </el-select>
  346. </el-form-item>
  347. <el-button size="mini" type="primary" @click="updateYjYuAn">确定
  348. </el-button>
  349. </el-form>
  350. </el-dialog>
  351. <el-dialog title="火险报告" :visible.sync="showEventConfirm_gd" v-if="showEventConfirm_gd" width="100%"
  352. class="top-dialog"
  353. @close="cancelEventConfirm_gd()">
  354. <div class="table-container">
  355. <form>
  356. <table id="table1" cellpadding="0" cellspacing="0">
  357. <thead style="width: 100%;padding:.5rem 0;">
  358. <th rowspan="1" colspan="1" class="txt_left" width="100px">填报单位:</th>
  359. <th rowspan="1" colspan="6" align="left"><input type="text" style=" width:100%;margin-left: .5rem;"
  360. v-model="table1.reportUnit"/></th>
  361. <th rowspan="1" colspan="2" class="txt_right">填报时间:</th>
  362. <th rowspan="1" colspan="6" align="left"><input type="text" style="width:3rem;text-align: center;"
  363. v-model="table1.reportTimeY"/>年<input
  364. type="text" style="width:4rem;text-align: center;" v-model="table1.reportTimeM"/>月<input type="text"
  365. style="width:3rem;text-align: center;"
  366. v-model="table1.reportTimeD"/>日
  367. </th>
  368. <th rowspan="1" colspan="8" style="text-align: right;">吉林省人民政府森林防火指挥部办公室制</th>
  369. </thead>
  370. <tbody>
  371. <tr>
  372. <td colspan="22" rowspan="1" class="font1" style="letter-spacing:3rem;padding: .5rem 0">森林火灾损失</td>
  373. <td colspan="1" rowspan="6">
  374. <table class="border0">
  375. <tr>
  376. <td>备注</td>
  377. </tr>
  378. </table>
  379. </td>
  380. </tr>
  381. <tr>
  382. <td rowspan="4" colspan="1">
  383. <table class="border0">
  384. <tr>
  385. <td>森林火灾<br>损失总计</td>
  386. </tr>
  387. </table>
  388. </td>
  389. <td rowspan="1" colspan="12">火灾损失价值</td>
  390. <td rowspan="1" colspan="9">扑火费用支出</td>
  391. </tr>
  392. <tr>
  393. <td rowspan="3" colspan="1">
  394. <table class="border0">
  395. <tr>
  396. <td>合计</td>
  397. </tr>
  398. </table>
  399. </td>
  400. <td rowspan="1" colspan="4">林木资源</td>
  401. <td rowspan="1" colspan="6">人员伤亡</td>
  402. <td rowspan="3" colspan="1">
  403. <table class="border0">
  404. <tr>
  405. <td>其他<br>火灾<br>损失</td>
  406. </tr>
  407. </table>
  408. </td>
  409. <td rowspan="3" colspan="1">
  410. <table class="border0">
  411. <tr>
  412. <td>合计</td>
  413. </tr>
  414. </table>
  415. </td>
  416. <td rowspan="1" colspan="2">
  417. <table class="border0">
  418. <tr>
  419. <td>人工费</td>
  420. </tr>
  421. </table>
  422. </td>
  423. <td rowspan="1" colspan="3">
  424. <table class="border0">
  425. <tr>
  426. <td>车辆费</td>
  427. </tr>
  428. </table>
  429. </td>
  430. <td rowspan="1" colspan="2">
  431. <table class="border0">
  432. <tr>
  433. <td>飞行费</td>
  434. </tr>
  435. </table>
  436. </td>
  437. <td rowspan="3" colspan="1">
  438. <table class="border0">
  439. <tr>
  440. <td>其他<br>扑火<br>费用</td>
  441. </tr>
  442. </table>
  443. </td>
  444. </tr>
  445. <tr>
  446. <td rowspan="1" colspan="2">成林</td>
  447. <td rowspan="1" colspan="2">幼林</td>
  448. <td rowspan="1" colspan="2">轻伤</td>
  449. <td rowspan="1" colspan="2">重伤</td>
  450. <td rowspan="1" colspan="2">死亡</td>
  451. <td rowspan="2" colspan="1">
  452. <table class="border0">
  453. <tr>
  454. <td>出动<br>人工</td>
  455. </tr>
  456. </table>
  457. </td>
  458. <td rowspan="2" colspan="1">
  459. <table class="border0">
  460. <tr>
  461. <td>支出<br>费用</td>
  462. </tr>
  463. </table>
  464. </td>
  465. <td rowspan="2" colspan="1">
  466. <table class="border0">
  467. <tr>
  468. <td>计</td>
  469. </tr>
  470. </table>
  471. </td>
  472. <td rowspan="2" colspan="1">
  473. <table class="border0">
  474. <tr>
  475. <td>其中<br>汽车</td>
  476. </tr>
  477. </table>
  478. </td>
  479. <td rowspan="2" colspan="1">
  480. <table class="border0">
  481. <tr>
  482. <td>支出<br>费用</td>
  483. </tr>
  484. </table>
  485. </td>
  486. <td rowspan="2" colspan="1">
  487. <table class="border0">
  488. <tr>
  489. <td>出动<br>飞机</td>
  490. </tr>
  491. </table>
  492. </td>
  493. <td rowspan="2" colspan="1">
  494. <table class="border0">
  495. <tr>
  496. <td>支出<br>费用</td>
  497. </tr>
  498. </table>
  499. </td>
  500. </tr>
  501. <tr>
  502. <td rowspan="1" colspan="1">蓄积</td>
  503. <td rowspan="1" colspan="1">价值</td>
  504. <td rowspan="1" colspan="1">株数</td>
  505. <td rowspan="1" colspan="1">价值</td>
  506. <td rowspan="1" colspan="1">人数</td>
  507. <td rowspan="1" colspan="1">支出费用</td>
  508. <td rowspan="1" colspan="1">人数</td>
  509. <td rowspan="1" colspan="1">支出费用</td>
  510. <td rowspan="1" colspan="1">人数</td>
  511. <td rowspan="1" colspan="1">支出费用</td>
  512. </tr>
  513. <tr>
  514. <td rowspan="1" colspan="1">万元</td>
  515. <td rowspan="1" colspan="1">万元</td>
  516. <td rowspan="1" colspan="1">米³</td>
  517. <td rowspan="1" colspan="1">万元</td>
  518. <td rowspan="1" colspan="1">万株</td>
  519. <td rowspan="1" colspan="1">万元</td>
  520. <td rowspan="1" colspan="1">人</td>
  521. <td rowspan="1" colspan="1">万元</td>
  522. <td rowspan="1" colspan="1">人</td>
  523. <td rowspan="1" colspan="1">万元</td>
  524. <td rowspan="1" colspan="1">人</td>
  525. <td rowspan="1" colspan="1">万元</td>
  526. <td rowspan="1" colspan="1">万元</td>
  527. <td rowspan="1" colspan="1">万元</td>
  528. <td rowspan="1" colspan="1">工日</td>
  529. <td rowspan="1" colspan="1">万元</td>
  530. <td rowspan="1" colspan="1">台</td>
  531. <td rowspan="1" colspan="1">台</td>
  532. <td rowspan="1" colspan="1">万元</td>
  533. <td rowspan="1" colspan="1">架次</td>
  534. <td rowspan="1" colspan="1">万元</td>
  535. <td rowspan="1" colspan="1">万元</td>
  536. </tr>
  537. <tr>
  538. <td rowspan="1" colspan="1">1</td>
  539. <td rowspan="1" colspan="1">2</td>
  540. <td rowspan="1" colspan="1">3</td>
  541. <td rowspan="1" colspan="1">4</td>
  542. <td rowspan="1" colspan="1">5</td>
  543. <td rowspan="1" colspan="1">6</td>
  544. <td rowspan="1" colspan="1">7</td>
  545. <td rowspan="1" colspan="1">8</td>
  546. <td rowspan="1" colspan="1">9</td>
  547. <td rowspan="1" colspan="1">10</td>
  548. <td rowspan="1" colspan="1">11</td>
  549. <td rowspan="1" colspan="1">12</td>
  550. <td rowspan="1" colspan="1">13</td>
  551. <td rowspan="1" colspan="1">14</td>
  552. <td rowspan="1" colspan="1">15</td>
  553. <td rowspan="1" colspan="1">16</td>
  554. <td rowspan="1" colspan="1">17</td>
  555. <td rowspan="1" colspan="1">18</td>
  556. <td rowspan="1" colspan="1">19</td>
  557. <td rowspan="1" colspan="1">20</td>
  558. <td rowspan="1" colspan="1">21</td>
  559. <td rowspan="1" colspan="1">22</td>
  560. <td rowspan="1" colspan="1">23</td>
  561. </tr>
  562. <tr class="int_tr">
  563. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestFireLossTotal"/></td>
  564. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.fireLossTotal"/></td>
  565. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestArea"/></td>
  566. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestPrice"/></td>
  567. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.treesNumber"/></td>
  568. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.treesPrice"/></td>
  569. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.minorInjuriesNumber"/></td>
  570. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.minorInjuriesPrice"/></td>
  571. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.seriouslyInjuredNumber"/>
  572. </td>
  573. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.seriouslyInjuredPrice"/>
  574. </td>
  575. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.deathNumber"/></td>
  576. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.deathPrice"/></td>
  577. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.elseFireLossPrice"/></td>
  578. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.blazesPriceTotal"/></td>
  579. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.artificialDays"/></td>
  580. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.artificialPrice"/></td>
  581. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.vehicleNumber"/></td>
  582. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.carNumber"/></td>
  583. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.vehiclePrice"/></td>
  584. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.planeNumber"/></td>
  585. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.planePrice"/></td>
  586. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.elseBlazesPrice"/></td>
  587. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.note"/></td>
  588. </tr>
  589. </tbody>
  590. </table>
  591. <table class="table2" cellpadding="0" cellspacing="0" style="white-space: nowrap;">
  592. <tbody>
  593. <tr>
  594. <th rowspan="1" colspan="26" style="letter-spacing:6rem">火场资料</th>
  595. </tr>
  596. <tr>
  597. <td colspan="2" rowspan="1" class="txt_left">&nbsp;1.起火时间</td>
  598. <td colspan="5" rowspan="1"><input type="text" v-model="table2.fireTime"/></td>
  599. <td colspan="2" rowspan="1">发现时间</td>
  600. <td colspan="8" rowspan="1"><input type="text" v-model="table2.foundTime"/></td>
  601. <td colspan="2" rowspan="1">扑灭时间</td>
  602. <td colspan="7" rowspan="1"><input type="text" v-model="table2.blazesTime"/></td>
  603. </tr>
  604. <tr>
  605. <td colspan="2" rowspan="1" class="txt_left">&nbsp;2.地点及发现方式</td>
  606. <td colspan="2" rowspan="1" class="txt_left"><select v-model="table2.address">
  607. <option>吉林市</option>
  608. <option>延边州</option>
  609. <option>白山市</option>
  610. <option>通化市</option>
  611. <option>辽源市</option>
  612. <option>四平市</option>
  613. <option>长春市</option>
  614. <option>白城市</option>
  615. <option>松原市</option>
  616. <option>敦化航站</option>
  617. <option>长白山管委会</option>
  618. </select></td>
  619. <td colspan="13" rowspan="1"><input type="text" v-model="table2.firePlace"/></td>
  620. <td colspan="2" rowspan="1">发现方式</td>
  621. <td colspan="7" rowspan="1"><input type="text" v-model="table2.foundType"/></td>
  622. </tr>
  623. <tr>
  624. <td colspan="2" rowspan="1" class="txt_left">&nbsp;3.火场位置</td>
  625. <td colspan="2" rowspan="1" class="border_l0">东经:</td>
  626. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  627. v-model="table2.longitudeD"/></td>
  628. <td colspan="1" rowspan="1" class="border_l0">度</td>
  629. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  630. v-model="table2.longitudeM"/></td>
  631. <td colspan="1" rowspan="1" class="border_l0">分</td>
  632. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  633. v-model="table2.longitudeS"/></td>
  634. <td colspan="2" rowspan="1" class="border_l0">秒</td>
  635. <td colspan="1" rowspan="1" class="border_l0">;</td>
  636. <td colspan="2" rowspan="1" class="border_l0">北纬:</td>
  637. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  638. v-model="table2.latitudeD"/></td>
  639. <td colspan="1" rowspan="1" class="border_l0">度</td>
  640. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  641. v-model="table2.latitudeM"/></td>
  642. <td colspan="1" rowspan="1" class="border_l0">分</td>
  643. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  644. v-model="table2.latitudeS"/></td>
  645. <td colspan="1" rowspan="1" class="border_l0">秒</td>
  646. <td class="border_l0"></td>
  647. <td class="border_l0"></td>
  648. <td class="border_l0"></td>
  649. <td class="border_l0"></td>
  650. <td class="border_l0"></td>
  651. <td></td>
  652. </tr>
  653. <tr>
  654. <td colspan="2" rowspan="1" class="txt_left">&nbsp;4.起火原因</td>
  655. <td colspan="3" rowspan="1" class="txt_left"><select v-model="table2.fireSource">
  656. <option>未查明火源</option>
  657. <option>烧荒烧炭</option>
  658. <option>炼山造林</option>
  659. <option>烧牧场</option>
  660. <option disabled>烧窑</option>
  661. <option>烧隔离带</option>
  662. <option>火车喷漏</option>
  663. <option>火车甩瓦</option>
  664. <option>机车喷火</option>
  665. <option>其他(生产性火源)</option>
  666. <option>野外吸烟</option>
  667. <option>取暖做饭</option>
  668. <option>上坟烧纸</option>
  669. <option>烧山驱兽</option>
  670. <option>小孩玩火</option>
  671. <option>痴呆弄火</option>
  672. <option>家火上山</option>
  673. <option>电线引起</option>
  674. <option>其他(非生产性用火)</option>
  675. <option>故意放火</option>
  676. <option>外省(区)烧入</option>
  677. <option>外国烧入</option>
  678. <option>雷击火</option>
  679. <option>其他自然火</option>
  680. </select></td>
  681. <td colspan="3" rowspan="1">火灾种类</td>
  682. <td colspan="4" rowspan="1" class="txt_left"><select v-model="table2.fireType">
  683. <option>地表火</option>
  684. <option>树冠火</option>
  685. <option>地下火</option>
  686. </select></td>
  687. <td colspan="3" rowspan="1">火灾等级</td>
  688. <td colspan="11" rowspan="1" class="txt_left"><select v-model="table2.fireLevel">
  689. <option>一般</option>
  690. <option>较大</option>
  691. <option>重大</option>
  692. <option>特大</option>
  693. </select></td>
  694. </tr>
  695. <tr>
  696. <td colspan="2" rowspan="1" class="txt_left">&nbsp;5.火场面积(公顷)</td>
  697. <td colspan="2" rowspan="1">总面积合计</td>
  698. <td colspan="3" rowspan="1"><input type="text" v-model="table2.areaTotal"/></td>
  699. <td colspan="4" rowspan="1">受害森林面积合计</td>
  700. <td colspan="3" rowspan="1"><input type="text" v-model="table2.forestLossAreaTotal"/></td>
  701. <td colspan="1" rowspan="1">其中:</td>
  702. <td colspan="2" rowspan="1">原森林</td>
  703. <td colspan="4" rowspan="1"><input type="text" v-model="table2.originalForestArea"/></td>
  704. <td colspan="2" rowspan="1">人工林</td>
  705. <td colspan="3" rowspan="1"><input type="text" v-model="table2.artificialForestArea"/></td>
  706. </tr>
  707. <tr>
  708. <td colspan="2" rowspan="1" class="txt_left">&nbsp;6.扑火人力物力投入</td>
  709. <td colspan="2" rowspan="1">出动总人数</td>
  710. <td colspan="1" rowspan="1"><input type="text" v-model="table2.peopleTotal"/></td>
  711. <td colspan="2" rowspan="1">其中扑火队</td>
  712. <td colspan="1" rowspan="1"><input type="text" v-model="table2.blazesTeamNumber"/></td>
  713. <td colspan="1" rowspan="1">森警</td>
  714. <td colspan="2" rowspan="1"><input type="text" v-model="table2.policeNumber"/></td>
  715. <td colspan="1" rowspan="1">军队</td>
  716. <td colspan="1" rowspan="1"><input type="text" v-model="table2.armyNumber"/></td>
  717. <td colspan="1" rowspan="1">群众</td>
  718. <td colspan="1" rowspan="1"><input type="text" v-model="table2.crowdNumber"/></td>
  719. <td colspan="2" rowspan="1">风力灭火机</td>
  720. <td colspan="1" rowspan="1"><input type="text" v-model="table2.windExtinguisher"/></td>
  721. <td colspan="2" rowspan="1">二号工具</td>
  722. <td colspan="1" rowspan="1"><input type="text" v-model="table2.secondTool"/></td>
  723. <td colspan="2" rowspan="1">水枪</td>
  724. <td colspan="1" rowspan="1"><input type="text" v-model="table2.waterGun"/></td>
  725. <td colspan="1" rowspan="1">其他</td>
  726. <td colspan="1" rowspan="1"><input type="text" v-model="table2.elseThings"/></td>
  727. </tr>
  728. <tr>
  729. <td colspan="2" rowspan="1" class="txt_left">&nbsp;7.受害森林概况</td>
  730. <td colspan="2" rowspan="1">林木组成</td>
  731. <td colspan="11" rowspan="1"><input type="text" v-model="table2.forestComposition"/></td>
  732. <td colspan="2" rowspan="1">林令</td>
  733. <td colspan="4" rowspan="1"><input type="text" v-model="table2.forestToken"/></td>
  734. <td colspan="2" rowspan="1">疏密度</td>
  735. <td colspan="3" rowspan="1"><input type="text" v-model="table2.porosities"/></td>
  736. </tr>
  737. <tr>
  738. <td colspan="2" rowspan="1" class="txt_left">&nbsp;8.当日天气实况</td>
  739. <td colspan="2" rowspan="1">天气</td>
  740. <td colspan="3" rowspan="1"><input type="text" v-model="table2.weather"/></td>
  741. <td colspan="1" rowspan="1">气温</td>
  742. <td colspan="2" rowspan="1"><input type="text" v-model="table2.temperature"/></td>
  743. <td colspan="1" rowspan="1">C°</td>
  744. <td colspan="3" rowspan="1">火险等级</td>
  745. <td colspan="1" rowspan="1"><input type="text" v-model="table2.fireInsuranceLevel"/></td>
  746. <td colspan="2" rowspan="1">风力</td>
  747. <td colspan="2" rowspan="1" class="border_l0"><input type="text" v-model="table2.windLevel"/></td>
  748. <td colspan="2" rowspan="1" class="txt_left">级</td>
  749. <td colspan="2" rowspan="1">风向</td>
  750. <td colspan="3" rowspan="1"><input type="text" v-model="table2.windDirection"/></td>
  751. </tr>
  752. <tr>
  753. <td colspan="2" rowspan="1" class="txt_left">&nbsp;9.指挥扑火负责人</td>
  754. <td colspan="2" rowspan="1">单位</td>
  755. <td colspan="11" rowspan="1"><input type="text" v-model="table2.commandUnit"/></td>
  756. <td colspan="2" rowspan="1">姓名</td>
  757. <td colspan="4" rowspan="1"><input type="text" v-model="table2.commandName"/></td>
  758. <td colspan="2" rowspan="1">职务</td>
  759. <td colspan="3" rowspan="1"><input type="text" v-model="table2.commandPosition"/></td>
  760. </tr>
  761. <tr>
  762. <td colspan="2" rowspan="1" class="txt_left">&nbsp;10.火场调查负责人</td>
  763. <td colspan="2" rowspan="1">单位</td>
  764. <td colspan="11" rowspan="1"><input type="text" v-model="table2.surveyUnit"/></td>
  765. <td colspan="2" rowspan="1">姓名</td>
  766. <td colspan="4" rowspan="1"><input type="text" v-model="table2.surveyName"/></td>
  767. <td colspan="2" rowspan="1">职务</td>
  768. <td colspan="3" rowspan="1"><input type="text" v-model="table2.surveyPosition"/></td>
  769. </tr>
  770. <tr>
  771. <td colspan="2" rowspan="1" class="txt_left">&nbsp;11.火灾肇事人情况</td>
  772. <td colspan="2" rowspan="1">姓名</td>
  773. <td colspan="2" rowspan="1"><input type="text" v-model="table2.accidentName"/></td>
  774. <td colspan="2" rowspan="1">性别</td>
  775. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentSex"/></td>
  776. <td colspan="3" rowspan="1">年龄</td>
  777. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentAge"/></td>
  778. <td colspan="1" rowspan="1">职业</td>
  779. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentPosition"/></td>
  780. <td colspan="2" rowspan="1">单位或住址</td>
  781. <td colspan="9" rowspan="1"><input type="text" v-model="table2.accidentUnit"/></td>
  782. </tr>
  783. <tr>
  784. <td colspan="2" rowspan="1" class="txt_left">&nbsp;12.火灾处理情况</td>
  785. <td colspan="2" rowspan="1">处理方式</td>
  786. <td colspan="4" rowspan="1"><select v-model="table2.dealType">
  787. <option>立案(刑事处理)</option>
  788. <option>破案(刑事处理)</option>
  789. <option>行政处理</option>
  790. <option>待查</option>
  791. <option>拘留</option>
  792. <option>处理</option>
  793. <option>未处理</option>
  794. </select></td>
  795. <td colspan="3" rowspan="1">已处理人数</td>
  796. <td colspan="4" rowspan="1"><input type="text" v-model="table2.dealNumber"/></td>
  797. <td colspan="4" rowspan="1">刑事处罚人数</td>
  798. <td colspan="7" rowspan="1"><input type="text" v-model="table2.criminalDealNumber"/></td>
  799. </tr>
  800. <tr>
  801. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">&nbsp;13.对火灾肇事人<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;的处理情况
  802. </td>
  803. <td colspan="24" rowspan="1" class="txt_left">
  804. <textarea v-model="table2.accidentDealSituation"></textarea>
  805. </td>
  806. </tr>
  807. <tr>
  808. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">&nbsp;14.对责任人员的<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;责任人追查情况
  809. </td>
  810. <td colspan="24" rowspan="1" class="txt_left">
  811. <textarea v-model="table2.responsibilityDealSituation"></textarea></td>
  812. </tr>
  813. <tr>
  814. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">&nbsp;15.对有关领导的<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;责任追查情况
  815. </td>
  816. <td colspan="24" rowspan="1" class="txt_left">
  817. <textarea v-model="table2.leadershipDealSituation"></textarea></td>
  818. </tr>
  819. <tr class="tr_border">
  820. <td colspan="4" rowspan="1">县(市、区、局、站)填表人:</td>
  821. <td colspan="2" rowspan="1"><input type="text" v-model="table2.townForm"/></td>
  822. <td colspan="4" rowspan="1">县(市、区、局、站)审核人:</td>
  823. <td colspan="3" rowspan="1"><input type="text" v-model="table2.townAudit"/></td>
  824. <td colspan="4" rowspan="1">市(州、管委会)填表人:</td>
  825. <td colspan="2" rowspan="1"><input type="text" v-model="table2.cityForm"/></td>
  826. <td colspan="4" rowspan="1">市(州、管委会)审核人:</td>
  827. <td colspan="3" rowspan="1"><input type="text" v-model="table2.cityAudit"/></td>
  828. </tr>
  829. </tbody>
  830. </table>
  831. <div class="btm-btn-group">
  832. <el-button size="mini" type="primary"
  833. @click="updateCentereventTEventcatalogueStatus('gd',true)">归档
  834. </el-button>
  835. <el-button size="mini" type="primary"
  836. @click="regionalFlagAdd()">火灾区域
  837. </el-button>
  838. </div>
  839. </form>
  840. </div>
  841. </el-dialog>
  842. <!-- 添加区域标记 -->
  843. <el-dialog title="火灾区域" :visible.sync="regionalFlagOpen" width="1000px">
  844. <areaSupermap ref="fireAreaSupermap" v-if="regionalFlagOpen" style="width: 100%;height:74vh"
  845. :mapDiv="'fireAreaSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']"
  846. :isSideBySide="false" :showAreaLatLng="showAreaLatLng"></areaSupermap>
  847. </el-dialog>
  848. <!-- 图片,视频预览 -->
  849. <el-dialog title="视频预览" :visible.sync="showTcPlayer" width="40%" customClass="customWidthMp4">
  850. <TcPlayer ref="TcPlayer" :playVideo="playVideo" :widthHeigt="[100,100]"></TcPlayer>
  851. </el-dialog>
  852. </div>
  853. </template>
  854. <script>
  855. import html2canvas from 'html2canvas'//截图组件
  856. import supermapDialog from '@/components/supermap' //超图
  857. import vheader from '@/components/v-header.vue' //一体化共用头部
  858. import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
  859. import eventLogUpload from '@/views/eventLogUpload.vue' //日志上传文件
  860. import areaSupermap from '@/components/supermap'//区域标记地图
  861. import TcPlayer from '@/components/TcPlayer' //视频预览
  862. import {
  863. getEventDetail,
  864. sendEventLog,
  865. listSJfl,
  866. listYuAn,
  867. selectByeventCode,
  868. updateCentereventTEventcatalogueStatus,
  869. sendTask,
  870. listResourceByWz,
  871. updateYjYuAn,
  872. uploadBase64
  873. } from '@/api/forest'
  874. import {
  875. treeselectAll as deptTreeselect
  876. } from '@/api/system/dept'
  877. export default {
  878. dicts: ['task_source'],
  879. watch: {
  880. filterText(val) {
  881. this.$refs.LiandongDept.filter(val)
  882. }
  883. },
  884. components: {
  885. vheader,
  886. vBottomMenu,
  887. supermapDialog,
  888. eventLogUpload,
  889. areaSupermap,
  890. TcPlayer
  891. },
  892. data() {
  893. return {
  894. playVideo: '',//视频预览地址
  895. showTcPlayer: false,//视频预览弹窗
  896. regionalFlagOpen: false,//区域标记
  897. //区域标记
  898. regionalFlagObj: {
  899. array: []
  900. },
  901. filterText: '',//树搜索
  902. /** *****************事件流程***************************/
  903. deptNameitem: '签收部门',
  904. sendDeptId: null,//签收部门/发起部门
  905. sendDeptName: null,//签收部门/发起部门
  906. sendEventType: null,//事件类型
  907. sendHuoZaiBanJing: null,//火灾报告
  908. sendGuanLianYuAn: null,//关联预案
  909. sendTaskSource: null,//任务来源
  910. sendTaskTitle: null,//联动标题
  911. sendTaskContent: null,//联动内容
  912. sendLianDongDept: [],//联动部门
  913. eventTypeList: [],//事件类型列表
  914. guanLianYuAnList: [],//关联预案列表
  915. deptOptions: [],//签收部门
  916. deptOptionsLiandong: [],//联动部门
  917. eventStatusButton: null,//流程按钮标识
  918. eventConfirmTitle: null,//弹窗标题 ---签收 误报 重复
  919. defaultProps: {
  920. children: 'children',
  921. label: 'label'
  922. },
  923. table1: {
  924. reportUnit: null,
  925. reportTimeY: null,
  926. reportTimeM: null,
  927. reportTimeD: null,
  928. forestFireLossTotal: null,
  929. fireLossTotal: null,
  930. forestArea: null,
  931. forestPrice: null,
  932. treesNumber: null,
  933. treesPrice: null,
  934. minorInjuriesNumber: null,
  935. minorInjuriesPrice: null,
  936. seriouslyInjuredNumber: null,
  937. seriouslyInjuredPrice: null,
  938. deathNumber: null,
  939. deathPrice: null,
  940. elseFireLossPrice: null,
  941. blazesPriceTotal: null,
  942. artificialDays: null,
  943. artificialPrice: null,
  944. vehicleNumber: null,
  945. carNumber: null,
  946. vehiclePrice: null,
  947. planeNumber: null,
  948. planePrice: null,
  949. elseBlazesPrice: null,
  950. note: null
  951. },
  952. table2: {
  953. fireTime: null,
  954. foundTime: null,
  955. blazesTime: null,
  956. address: null,
  957. firePlace: null,
  958. foundType: null,
  959. longitudeD: null,
  960. longitudeM: null,
  961. longitudeS: null,
  962. latitudeD: null,
  963. latitudeM: null,
  964. latitudeS: null,
  965. fireSource: null,
  966. fireType: null,
  967. fireLevel: null,
  968. areaTotal: null,
  969. forestLossAreaTotal: null,
  970. originalForestArea: null,
  971. artificialForestArea: null,
  972. peopleTotal: null,
  973. blazesTeamNumber: null,
  974. policeNumber: null,
  975. armyNumber: null,
  976. crowdNumber: null,
  977. windExtinguisher: null,
  978. secondTool: null,
  979. waterGun: null,
  980. elseThings: null,
  981. forestComposition: null,
  982. forestToken: null,
  983. porosities: null,
  984. weather: null,
  985. temperature: null,
  986. fireInsuranceLevel: null,
  987. windLevel: null,
  988. windDirection: null,
  989. commandUnit: null,
  990. commandName: null,
  991. commandPosition: null,
  992. surveyUnit: null,
  993. surveyName: null,
  994. surveyPosition: null,
  995. accidentName: null,
  996. accidentSex: null,
  997. accidentAge: null,
  998. accidentPosition: null,
  999. accidentUnit: null,
  1000. dealType: null,
  1001. dealNumber: null,
  1002. criminalDealNumber: null,
  1003. accidentDealSituation: null,
  1004. responsibilityDealSituation: null,
  1005. leadershipDealSituation: null,
  1006. townForm: null,
  1007. townAudit: null,
  1008. cityForm: null,
  1009. cityAudit: null
  1010. },
  1011. /** *****************事件流程***************************/
  1012. showEventConfirm: false,//事件签收弹窗
  1013. showGuanLianYuAnConfirm: false,//调整关联预案弹窗
  1014. showEventConfirm_gd: false,//事件火险报告弹窗
  1015. address: null,//事件上报地址
  1016. eventStatusValue: null,//事件状态
  1017. eventId: null,//事件ID
  1018. eventType: null,//事件类型-大类
  1019. eventCode: null,
  1020. longitude: null,
  1021. latitude: null,
  1022. eventLog: null,
  1023. eventLogList: [],
  1024. visuForestCloudYuAnBo: null,
  1025. eventDialog: false,
  1026. radius: 50,//资源搜索半径
  1027. resourcesList: [
  1028. {
  1029. resourceName: '取水口',
  1030. type: 'qsk',
  1031. count: '1',
  1032. icon: 'sj-icon-waterintake'
  1033. },
  1034. {
  1035. resourceName: '水鹤',
  1036. type: 'sh',
  1037. icon: 'sj-icon-watercrane'
  1038. },
  1039. {
  1040. resourceName: '消防栓',
  1041. type: 'xfs',
  1042. count: '1',
  1043. icon: 'sj-icon-firehydrant'
  1044. },
  1045. {
  1046. resourceName: '起降点',
  1047. type: 'qjd',
  1048. count: '1',
  1049. icon: 'sj-icon-landing'
  1050. },
  1051. {
  1052. resourceName: '检查站',
  1053. type: 'jcz',
  1054. count: '1',
  1055. icon: 'sj-icon-checkpoint'
  1056. },
  1057. {
  1058. resourceName: '防火队',
  1059. type: 'fhd',
  1060. count: '1',
  1061. icon: 'sj-icon-fireteam'
  1062. },
  1063. {
  1064. resourceName: '重点区域',
  1065. type: 'zdqy',
  1066. count: '1',
  1067. icon: 'sj-icon-tcqh'
  1068. },
  1069. {
  1070. resourceName: '摄像头',
  1071. type: 'sxt',
  1072. count: '1',
  1073. icon: 'camera'
  1074. }
  1075. ],
  1076. resourcesListCheck: [],
  1077. //文本域
  1078. feedback: ''
  1079. }
  1080. },
  1081. props: {
  1082. calendarDay: null//首页日历选择
  1083. },
  1084. methods: {
  1085. showheatPlotting(){
  1086. if(!this.$refs.supermapDialog.isheatPlotting){
  1087. this.$refs.supermapDialog.showheatPlotting(this.latitude, this.longitude)//火灾蔓延
  1088. }else{
  1089. this.$refs.supermapDialog.isheatPlotting=false
  1090. }
  1091. },
  1092. showUpdateYjYuAn() {
  1093. listYuAn().then(res => {
  1094. //关联预案列表
  1095. if (res.code == 200) {
  1096. this.guanLianYuAnList = res.data
  1097. this.showGuanLianYuAnConfirm = true
  1098. }
  1099. })
  1100. },
  1101. updateYjYuAn() {
  1102. let param = { eventCode: this.eventCode, reserve: this.sendGuanLianYuAn }
  1103. updateYjYuAn(param).then(res => {
  1104. //事件调整关联预案
  1105. if (res.code == 200) {
  1106. this.$message.success(`预案调整成功!`)
  1107. this.refreshEventDialog(this.eventCode)
  1108. this.sendGuanLianYuAn = null
  1109. this.showGuanLianYuAnConfirm = false
  1110. }
  1111. })
  1112. },
  1113. listResourceByWz(type) {
  1114. if (this.resourcesListCheck.indexOf(type) > -1) {
  1115. this.resourcesListCheck.splice(this.resourcesListCheck.indexOf(type), 1)
  1116. setTimeout(() => {
  1117. this.$refs.supermapDialog.clearMByType(type)
  1118. }, 1000)
  1119. } else {
  1120. this.resourcesListCheck.push(type)
  1121. //搜索物资
  1122. let param = { longitude: this.longitude, latitude: this.latitude, type: type, radius: this.radius }
  1123. listResourceByWz(param).then(res => {
  1124. if (res.data != null && res.data.length > 0) {
  1125. var markersList = []
  1126. for (let i = 0; i < res.data.length; i++) {
  1127. let markersMap = {
  1128. lng: 124.59,
  1129. lat: 43.02,
  1130. icon: 'marker',
  1131. bindPopupHtml: '',
  1132. click: '',
  1133. parameter: '',
  1134. keepBindPopup: false,
  1135. isAggregation: false
  1136. }
  1137. if (res.data.length > 50) {
  1138. markersMap.isAggregation = true
  1139. }
  1140. if (type == 'qsk') {
  1141. markersMap.icon = 'sj-icon-waterintake'
  1142. } else if (type == 'sh') {
  1143. markersMap.icon = 'sj-icon-watercrane'
  1144. } else if (type == 'xfs') {
  1145. markersMap.icon = 'sj-icon-firehydrant'
  1146. } else if (type == 'qjd') {
  1147. markersMap.icon = 'sj-icon-landing'
  1148. } else if (type == 'jcz') {
  1149. markersMap.icon = 'sj-icon-checkpoint'
  1150. } else if (type == 'fhd') {
  1151. markersMap.icon = 'sj-icon-fireteam'
  1152. } else if (type == 'zdqy') {
  1153. markersMap.icon = 'sj-icon-tcqh'
  1154. } else if (type == 'sxt') {
  1155. markersMap.icon = 'sj-icon-jkzx'
  1156. }
  1157. markersMap.lng = res.data[i].longitude
  1158. markersMap.lat = res.data[i].latitude
  1159. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1160. '<span>' +
  1161. ' <div class="d-l-con">' +
  1162. ' <div class="d-l-l-text">' +
  1163. ' <h4>资源名称:' + res.data[i].name + '</h4>' +
  1164. ' </div>' +
  1165. ' </div>' +
  1166. ' </span>' +
  1167. '</div>'
  1168. markersList.push(markersMap)
  1169. }
  1170. setTimeout(() => {
  1171. this.$refs.supermapDialog.setMarkersByType(markersList, type)
  1172. }, 1000)
  1173. }
  1174. })
  1175. }
  1176. },
  1177. // 返回图片列表
  1178. assetTypeAnImage(filePath) {
  1179. let imageList = []
  1180. if (filePath != null && filePath.length > 0) {
  1181. for (let i = 0; i < filePath.length; i++) {
  1182. //获取最后一个.的位置
  1183. var index = filePath[i].lastIndexOf('.')
  1184. //获取后缀
  1185. var ext = filePath[i].substr(index + 1)
  1186. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  1187. if (aa) {
  1188. imageList.push(filePath[i])
  1189. }
  1190. }
  1191. }
  1192. return imageList
  1193. },
  1194. // 判断是否为图片
  1195. isAssetTypeAnImage(filePath) {
  1196. //获取最后一个.的位置
  1197. var index = filePath.lastIndexOf('.')
  1198. //获取后缀
  1199. var ext = filePath.substr(index + 1)
  1200. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  1201. return aa
  1202. },
  1203. // 判断是否为视频
  1204. isAssetTypeAnMp4(filePath) {
  1205. //获取最后一个.的位置
  1206. var index = filePath.lastIndexOf('.')
  1207. //获取后缀
  1208. var ext = filePath.substr(index + 1)
  1209. let aa = ['mp4'].indexOf(ext.toLowerCase()) !== -1
  1210. return aa
  1211. },
  1212. // 判断是否为Word
  1213. isAssetTypeAnWord(filePath) {
  1214. //获取最后一个.的位置
  1215. var index = filePath.lastIndexOf('.')
  1216. //获取后缀
  1217. var ext = filePath.substr(index + 1)
  1218. let aa = ['doc', 'docx'].indexOf(ext.toLowerCase()) !== -1
  1219. return aa
  1220. },
  1221. // 判断是否为Excel
  1222. isAssetTypeAnExcel(filePath) {
  1223. //获取最后一个.的位置
  1224. var index = filePath.lastIndexOf('.')
  1225. //获取后缀
  1226. var ext = filePath.substr(index + 1)
  1227. let aa = ['xlsx', 'xls', 'csv'].indexOf(ext.toLowerCase()) !== -1
  1228. return aa
  1229. },
  1230. // 获取文件名称
  1231. getFileName(name) {
  1232. if (name.lastIndexOf('/') > -1) {
  1233. return name.slice(name.lastIndexOf('/') + 1)
  1234. } else {
  1235. return ''
  1236. }
  1237. },
  1238. clickFile(fileUrl, fileName) {
  1239. if (this.isAssetTypeAnImage(fileUrl)) {
  1240. return
  1241. } else if (this.isAssetTypeAnMp4(fileUrl)) {
  1242. this.showTcPlayer = true
  1243. setTimeout(() => {
  1244. this.playVideo = fileUrl
  1245. }, 500)
  1246. } else {
  1247. let a = document.createElement('a')
  1248. a.download = fileName
  1249. a.href = fileUrl
  1250. a.target="_blank"
  1251. a.click()
  1252. }
  1253. },
  1254. setValue(event) {
  1255. //签收选择部门
  1256. this.sendDeptName = event.label
  1257. this.sendDeptId = event.value
  1258. },
  1259. cancelEventConfirm() {
  1260. //关闭事件签收弹窗
  1261. this.sendDeptId = null
  1262. this.sendDeptName = null
  1263. this.sendEventType = null
  1264. this.sendHuoZaiBanJing = null
  1265. this.sendGuanLianYuAn = null
  1266. this.longitude = null
  1267. this.latitude = null
  1268. this.sendTaskTitle = null
  1269. this.sendTaskSource = null
  1270. this.sendTaskContent = null
  1271. this.sendLianDongDept = []
  1272. this.eventTypeList = []//事件类型列表
  1273. this.guanLianYuAnList = []//关联预案列表
  1274. this.deptOptions = []//签收部门
  1275. this.deptOptionsLiandong = []//联动部门
  1276. this.eventStatusButton = null//流程按钮标识
  1277. this.eventConfirmTitle = null//流程按钮标识
  1278. this.resourcesListCheck = []
  1279. },
  1280. cancelEventConfirm_send() {
  1281. //清空表单数据
  1282. this.sendDeptId = null
  1283. this.sendDeptName = null
  1284. this.sendEventType = null
  1285. this.sendHuoZaiBanJing = null
  1286. this.sendGuanLianYuAn = null
  1287. this.sendTaskTitle = null
  1288. this.sendTaskSource = null
  1289. this.sendTaskContent = null
  1290. this.sendLianDongDept = []
  1291. this.eventTypeList = []//事件类型列表
  1292. this.guanLianYuAnList = []//关联预案列表
  1293. this.deptOptions = []//签收部门
  1294. this.deptOptionsLiandong = []//联动部门
  1295. },
  1296. cancelEventConfirm_gd() {
  1297. //关闭事件火险报告窗口
  1298. this.resetTable1()
  1299. this.resetTable2()
  1300. },
  1301. cancelEventConfirm_mp4() {
  1302. //关闭视频窗口
  1303. this.playVideo=''
  1304. this.$refs.TcPlayer.destroyed()
  1305. },
  1306. resetTable1() {
  1307. this.table1 = {
  1308. reportUnit: null,
  1309. reportTimeY: null,
  1310. reportTimeM: null,
  1311. reportTimeD: null,
  1312. forestFireLossTotal: null,
  1313. fireLossTotal: null,
  1314. forestArea: null,
  1315. forestPrice: null,
  1316. treesNumber: null,
  1317. treesPrice: null,
  1318. minorInjuriesNumber: null,
  1319. minorInjuriesPrice: null,
  1320. seriouslyInjuredNumber: null,
  1321. seriouslyInjuredPrice: null,
  1322. deathNumber: null,
  1323. deathPrice: null,
  1324. elseFireLossPrice: null,
  1325. blazesPriceTotal: null,
  1326. artificialDays: null,
  1327. artificialPrice: null,
  1328. vehicleNumber: null,
  1329. carNumber: null,
  1330. vehiclePrice: null,
  1331. planeNumber: null,
  1332. planePrice: null,
  1333. elseBlazesPrice: null,
  1334. note: null
  1335. }
  1336. },
  1337. resetTable2() {
  1338. this.table2 = {
  1339. fireTime: null,
  1340. foundTime: null,
  1341. blazesTime: null,
  1342. address: null,
  1343. firePlace: null,
  1344. foundType: null,
  1345. longitudeD: null,
  1346. longitudeM: null,
  1347. longitudeS: null,
  1348. latitudeD: null,
  1349. latitudeM: null,
  1350. latitudeS: null,
  1351. fireSource: null,
  1352. fireType: null,
  1353. fireLevel: null,
  1354. areaTotal: null,
  1355. forestLossAreaTotal: null,
  1356. originalForestArea: null,
  1357. artificialForestArea: null,
  1358. peopleTotal: null,
  1359. blazesTeamNumber: null,
  1360. policeNumber: null,
  1361. armyNumber: null,
  1362. crowdNumber: null,
  1363. windExtinguisher: null,
  1364. secondTool: null,
  1365. waterGun: null,
  1366. elseThings: null,
  1367. forestComposition: null,
  1368. forestToken: null,
  1369. porosities: null,
  1370. weather: null,
  1371. temperature: null,
  1372. fireInsuranceLevel: null,
  1373. windLevel: null,
  1374. windDirection: null,
  1375. commandUnit: null,
  1376. commandName: null,
  1377. commandPosition: null,
  1378. surveyUnit: null,
  1379. surveyName: null,
  1380. surveyPosition: null,
  1381. accidentName: null,
  1382. accidentSex: null,
  1383. accidentAge: null,
  1384. accidentPosition: null,
  1385. accidentUnit: null,
  1386. dealType: null,
  1387. dealNumber: null,
  1388. criminalDealNumber: null,
  1389. accidentDealSituation: null,
  1390. responsibilityDealSituation: null,
  1391. leadershipDealSituation: null,
  1392. townForm: null,
  1393. townAudit: null,
  1394. cityForm: null,
  1395. cityAudit: null
  1396. }
  1397. },
  1398. /**
  1399. * eventStatusValue 事件状态
  1400. * isSend 是否办理
  1401. * */
  1402. async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
  1403. this.eventStatusButton = eventStatus
  1404. if (!isSend) {//事件弹窗
  1405. if (eventStatus == 'qs') {//签收
  1406. this.eventConfirmTitle = '事件签收'
  1407. let param = { parentId: this.eventType }
  1408. await listSJfl(param).then(res => {
  1409. //事件类型
  1410. if (res.code == 200) {
  1411. this.eventTypeList = res.data
  1412. }
  1413. })
  1414. await listYuAn().then(res => {
  1415. //关联预案
  1416. if (res.code == 200) {
  1417. this.guanLianYuAnList = res.data
  1418. }
  1419. })
  1420. await selectByeventCode(this.eventCode).then(res => {
  1421. //签收部门
  1422. if (res.code == 200) {
  1423. this.deptOptions = res.data
  1424. this.deptNameitem = '签收部门'
  1425. }
  1426. })
  1427. this.showEventConfirm = true
  1428. } else if (eventStatus == 'wb') {//误报
  1429. this.eventConfirmTitle = '事件误报'
  1430. await selectByeventCode(this.eventCode).then(res => {
  1431. //签收部门
  1432. if (res.code == 200) {
  1433. this.deptOptions = res.data
  1434. this.deptNameitem = '签收部门'
  1435. }
  1436. })
  1437. this.showEventConfirm = true
  1438. } else if (eventStatus == 'cf') {//重复
  1439. this.eventConfirmTitle = '事件重复'
  1440. await selectByeventCode(this.eventCode).then(res => {
  1441. //签收部门
  1442. if (res.code == 200) {
  1443. this.deptOptions = res.data
  1444. this.deptNameitem = '签收部门'
  1445. }
  1446. })
  1447. this.showEventConfirm = true
  1448. } else if (eventStatus == 'ld') {//联动
  1449. await selectByeventCode(this.eventCode).then(res => {
  1450. //签收部门
  1451. if (res.code == 200) {
  1452. this.deptOptions = res.data
  1453. this.deptNameitem = '发起部门'
  1454. }
  1455. })
  1456. this.eventConfirmTitle = '事件联动'
  1457. /** 查询部门树结构 */
  1458. await deptTreeselect().then(response => {
  1459. this.deptOptionsLiandong = response.data
  1460. })
  1461. this.showEventConfirm = true
  1462. } else if (eventStatus == 'gd') {//归档填报
  1463. this.showEventConfirm_gd = true
  1464. }
  1465. } else {//事件提交后台
  1466. if (eventStatus == 'ld') {
  1467. //事件处理流程--联动
  1468. let array = this.$refs.LiandongDept.getCheckedNodes()
  1469. if (array != null && array.length > 0) {
  1470. for (let i = 0; i < array.length; i++) {
  1471. this.sendLianDongDept.push({ 'taskDeptId': array[i].id, 'taskDeptName': array[i].label })
  1472. }
  1473. }
  1474. if (this.sendTaskSource == '' || this.sendTaskSource == null) {
  1475. this.$message.error(`请选择任务来源!`)
  1476. return
  1477. }
  1478. if (this.sendTaskContent == '' || this.sendTaskContent == null) {
  1479. this.$message.error(`请输入任务内容!`)
  1480. return
  1481. }
  1482. if (this.sendTaskTitle == '' || this.sendTaskTitle == null) {
  1483. this.$message.error(`请输入任务标题!`)
  1484. return
  1485. }
  1486. if (this.sendLianDongDept == '' || this.sendLianDongDept == null) {
  1487. this.$message.error(`请选择任务联动部门!`)
  1488. return
  1489. }
  1490. if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this.sendDeptName == null) {
  1491. this.$message.error(`请选择任务发起部门!`)
  1492. return
  1493. }
  1494. let param = {
  1495. sendDeptId: this.sendDeptId,
  1496. sendDept: this.sendDeptName,
  1497. eventCode: this.eventCode,
  1498. longitude: this.longitude,
  1499. latitude: this.latitude,
  1500. taskTitle: this.sendTaskTitle,
  1501. taskSource: this.sendTaskSource,
  1502. taskContent: this.sendTaskContent,
  1503. taskDept: this.sendLianDongDept
  1504. }
  1505. sendTask(param).then(res => {
  1506. if (res.code == 200) {
  1507. this.$message.success(`联动发起成功!`)
  1508. this.refreshEventDialog(this.eventCode)
  1509. this.cancelEventConfirm_send()
  1510. this.showEventConfirm = false
  1511. }
  1512. })
  1513. } else if (eventStatus == 'gd') {
  1514. //事件处理流程--归档
  1515. let param = {
  1516. eventCode: this.eventCode,
  1517. eventStatus: eventStatus,
  1518. id: this.eventId,
  1519. czlx: '',
  1520. forestFireLoss: { eventId: this.eventCode, table1: this.table1 },
  1521. fireInformation: { eventId: this.eventCode, table2: this.table2 },
  1522. array: this.regionalFlagObj.array
  1523. }
  1524. updateCentereventTEventcatalogueStatus(param).then(res => {
  1525. if (res.code == 200) {
  1526. this.$message.success(`处理成功!`)
  1527. this.refreshEvent(this.eventCode)
  1528. this.cancelEventConfirm_send()
  1529. this.showEventConfirm_gd = false
  1530. this.$emit('getEventList', this.calendarDay)
  1531. this.$emit('getTodayEvents', this.calendarDay)
  1532. }
  1533. })
  1534. } else {
  1535. if (eventStatus == 'qs' || eventStatus == 'wb' || eventStatus == 'cf') {
  1536. if (this.sendDeptId == '' || this.sendDeptId == null || this.sendDeptName == '' || this.sendDeptName == null) {
  1537. this.$message.error(`请选择部门!`)
  1538. return
  1539. }
  1540. }
  1541. //事件处理流程
  1542. let param = {
  1543. eventCode: this.eventCode,
  1544. deptId: this.sendDeptId,
  1545. deptName: this.sendDeptName,
  1546. eventStatus: eventStatus,
  1547. eventType: this.sendEventType,
  1548. id: this.eventId,
  1549. czlx: '',
  1550. fireRadius: this.sendHuoZaiBanJing,
  1551. reserve: this.sendGuanLianYuAn
  1552. }
  1553. updateCentereventTEventcatalogueStatus(param).then(res => {
  1554. if (res.code == 200) {
  1555. this.$message.success(`处理成功!`)
  1556. this.refreshEvent(this.eventCode)
  1557. this.cancelEventConfirm_send()
  1558. this.showEventConfirm = false
  1559. this.$emit('getEventList', this.calendarDay)
  1560. this.$emit('getTodayEvents', this.calendarDay)
  1561. }
  1562. })
  1563. }
  1564. }
  1565. },
  1566. filterNode(value, data) {
  1567. //树搜索
  1568. if (!value) return true
  1569. return data.label.indexOf(value) !== -1
  1570. },
  1571. sendEventLog() {
  1572. //日志发送
  1573. let param = { eventCode: this.eventCode, conext: this.eventLog }
  1574. sendEventLog(param).then(res => {
  1575. if (res.code == 200) {
  1576. this.$message.success(`发送成功!`)
  1577. this.eventLog = null
  1578. this.refreshEventDialog(this.eventCode)
  1579. }
  1580. })
  1581. },
  1582. showEventLogUpload() {
  1583. this.$refs.eventLogUpload.eventLogUpload(this.eventCode)
  1584. },
  1585. cancelEventShow() {
  1586. console.log('关闭事件弹窗')
  1587. this.eventLogList = []
  1588. },
  1589. showEventDialog(eventCode) {
  1590. this.eventCode = eventCode
  1591. let that = this
  1592. //获取事件详情
  1593. getEventDetail({ eventCode: eventCode }).then(res => {
  1594. this.eventDialog = true
  1595. this.eventLogList = res.data.eventlog//日志列表
  1596. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
  1597. if (res.data.catalogue != null && res.data.catalogue.length > 0) {
  1598. this.address = res.data.catalogue[0].address
  1599. this.eventStatusValue = res.data.catalogue[0].eventStatusValue
  1600. this.eventType = res.data.catalogue[0].eventType
  1601. this.eventId = res.data.catalogue[0].id
  1602. this.longitude = res.data.catalogue[0].longitude
  1603. this.latitude = res.data.catalogue[0].latitude
  1604. let markersMap = {
  1605. lng: 124.59,
  1606. lat: 43.02,
  1607. icon: 'marker',
  1608. bindPopupHtml: '',
  1609. click: '',
  1610. parameter: '',
  1611. keepBindPopup: false,
  1612. isAggregation: false,
  1613. radius: 0
  1614. }
  1615. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1' && res.data.catalogue[0].urgeCount == 0) {
  1616. markersMap.icon = 'sj-icon-map-xinshangbao'
  1617. }
  1618. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1' && res.data.catalogue[0].urgeCount > 0) {
  1619. markersMap.icon = 'sj-icon-map-cuiban'
  1620. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_2') {
  1621. markersMap.icon = 'sj-icon-map-qianshou'
  1622. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_5') {
  1623. markersMap.icon = 'sj-icon-map-banjie'
  1624. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_6') {
  1625. markersMap.icon = 'sj-icon-map-guidnag'
  1626. }
  1627. markersMap.lng = res.data.catalogue[0].longitude
  1628. markersMap.lat = res.data.catalogue[0].latitude
  1629. 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) {
  1630. markersMap.radius = res.data.eventdetail[0].fireRadius
  1631. }
  1632. setTimeout(() => {
  1633. that.$refs.supermapDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  1634. that.$refs.supermapDialog.clearM(false)
  1635. that.$refs.supermapDialog.setMarkersRadius([markersMap])
  1636. that.$refs.supermapDialog.dropLocation(res.data.catalogue[0].latitude, res.data.catalogue[0].longitude)
  1637. }, 2000)
  1638. }
  1639. if (res.data.centermonitorTCamera != null) {
  1640. let markersMap = {
  1641. lng: 124.59,
  1642. lat: 43.02,
  1643. icon: 'camera',
  1644. bindPopupHtml: '',
  1645. click: '',
  1646. parameter: '',
  1647. keepBindPopup: false,
  1648. isAggregation: false,
  1649. radius: 0
  1650. }
  1651. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1652. '<span>' +
  1653. ' <div class="d-l-con">' +
  1654. ' <div class="d-l-l-text">' +
  1655. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  1656. ' </div>' +
  1657. ' </div>' +
  1658. ' </span>' +
  1659. '<span>' +
  1660. '</div>'
  1661. markersMap.lng = res.data.centermonitorTCamera.longitude
  1662. markersMap.lat = res.data.centermonitorTCamera.latitude
  1663. setTimeout(() => {
  1664. that.$refs.supermapDialog.setMarkers([markersMap])
  1665. }, 2000)
  1666. }
  1667. })
  1668. },
  1669. refreshEvent(eventCode) {
  1670. this.eventCode = eventCode
  1671. let that = this
  1672. //刷新--事件详情
  1673. getEventDetail({ eventCode: eventCode }).then(res => {
  1674. this.eventDialog = true
  1675. this.eventLogList = res.data.eventlog
  1676. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
  1677. if (res.data.catalogue != null && res.data.catalogue.length > 0) {
  1678. this.address = res.data.catalogue[0].address
  1679. this.eventStatusValue = res.data.catalogue[0].eventStatusValue
  1680. this.eventType = res.data.catalogue[0].eventType
  1681. this.eventId = res.data.catalogue[0].id
  1682. this.latitude = res.data.catalogue[0].latitude
  1683. this.longitude = res.data.catalogue[0].longitude
  1684. let markersMap = {
  1685. lng: 124.59,
  1686. lat: 43.02,
  1687. icon: 'marker',
  1688. bindPopupHtml: '',
  1689. click: '',
  1690. parameter: '',
  1691. keepBindPopup: false,
  1692. isAggregation: false,
  1693. radius: 0
  1694. }
  1695. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1' && res.data.catalogue[0].urgeCount == 0) {
  1696. markersMap.icon = 'sj-icon-map-xinshangbao'
  1697. }
  1698. if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_1' && res.data.catalogue[0].urgeCount > 0) {
  1699. markersMap.icon = 'sj-icon-map-cuiban'
  1700. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_2') {
  1701. markersMap.icon = 'sj-icon-map-qianshou'
  1702. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_5') {
  1703. markersMap.icon = 'sj-icon-map-banjie'
  1704. } else if (res.data.catalogue[0].eventStatusValue == 'forest_event_status_6') {
  1705. markersMap.icon = 'sj-icon-map-guidnag'
  1706. }
  1707. markersMap.lng = res.data.catalogue[0].longitude
  1708. markersMap.lat = res.data.catalogue[0].latitude
  1709. 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) {
  1710. markersMap.radius = res.data.eventdetail[0].fireRadius
  1711. }
  1712. setTimeout(() => {
  1713. that.$refs.supermapDialog.clearM(false)
  1714. 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) {
  1715. that.$refs.supermapDialog.setMarkersRadius([markersMap])
  1716. } else {
  1717. that.$refs.supermapDialog.setMarkers([markersMap])
  1718. }
  1719. that.$refs.supermapDialog.dropLocation(res.data.catalogue[0].latitude, res.data.catalogue[0].longitude)
  1720. }, 2000)
  1721. }
  1722. })
  1723. },
  1724. refreshEventDialog(eventCode) {
  1725. //刷新--事件日志
  1726. getEventDetail({ eventCode: eventCode }).then(res => {
  1727. this.eventLogList = res.data.eventlog
  1728. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
  1729. })
  1730. },
  1731. // 页面元素转图片
  1732. toImage() {
  1733. // 手动创建一个 canvas 标签
  1734. const canvas = document.createElement('canvas')
  1735. // 获取父标签,意思是这个标签内的 DOM 元素生成图片
  1736. // imageTofile是给截图范围内的父级元素自定义的ref名称
  1737. // let canvasBox = this.$refs.imageTofile
  1738. let canvasBox = document.getElementById('forestWarmSuperMap')
  1739. let toolbar = document.getElementById('toolbar')
  1740. canvasBox.removeChild(toolbar)
  1741. // 获取父级的宽高
  1742. const width = parseInt(window.getComputedStyle(canvasBox).width)
  1743. const height = parseInt(window.getComputedStyle(canvasBox).height)
  1744. // 宽高 * 2 并放大 2 倍 是为了防止图片模糊
  1745. canvas.width = width * 2
  1746. canvas.height = height * 2
  1747. canvas.style.width = width + 'px'
  1748. canvas.style.height = height + 'px'
  1749. const context = canvas.getContext('2d')
  1750. context.scale(2, 2)
  1751. const options = {
  1752. backgroundColor: null,
  1753. canvas: canvas,
  1754. useCORS: true
  1755. }
  1756. html2canvas(canvasBox, options).then((canvas) => {
  1757. // toDataURL 图片格式转成 base64
  1758. let dataBase64 = canvas.toDataURL('image/png')
  1759. console.log(dataBase64)
  1760. this.uploadBase64(dataBase64)
  1761. })
  1762. canvasBox.appendChild(toolbar)
  1763. },
  1764. uploadBase64(dataBase64) {
  1765. //事件详情截图直接上传日志
  1766. uploadBase64({ eventCode: this.eventCode, base64: dataBase64 }).then(res => {
  1767. if (res.code == 200) {
  1768. this.$message.success(`截图上传成功!`)
  1769. this.refreshEventDialog(this.eventCode)
  1770. }
  1771. })
  1772. },
  1773. regionalFlagAdd: function() {//火灾区域
  1774. this.regionalFlagObj.array = []
  1775. this.regionalFlagOpen = true
  1776. },
  1777. showAreaLatLng: function(latlng) {//获取火灾区域经纬度
  1778. console.log(latlng)
  1779. this.regionalFlagObj.array = latlng
  1780. this.$modal.msgSuccess('获取坐标成功!')
  1781. }
  1782. }
  1783. }
  1784. </script>
  1785. <style lang="scss" scoped>
  1786. @import '@/assets/styles/base.scss';
  1787. //弹层样式
  1788. //.customWidthMp4 {
  1789. // width: 70px !important;
  1790. // height: 70px !important;
  1791. //}
  1792. .tree-border {
  1793. border: 1px $barBorder;
  1794. }
  1795. button {
  1796. padding: .5rem;
  1797. }
  1798. /** 火灾报告**/
  1799. //@font-face {
  1800. // font-family: 'fontnameRegular';
  1801. // src: url('../../../../assets/styles/FZYTJW_0.TTF');
  1802. //}
  1803. body,
  1804. html,
  1805. * {
  1806. padding: 0px;
  1807. margin: 0px;
  1808. font-family: "fontnameRegular";
  1809. }
  1810. .table-container {
  1811. width: 100%;
  1812. }
  1813. .txt_right {
  1814. text-align: right !important;
  1815. }
  1816. .txt_left {
  1817. text-align: left !important;
  1818. }
  1819. table {
  1820. border-spacing: 0;
  1821. border-collapse: collapse;
  1822. width: 99%;
  1823. margin: 0 auto;
  1824. color: $inBlue;
  1825. }
  1826. table input {
  1827. font-size: 1rem;
  1828. border: 0px;
  1829. outline: 0px;
  1830. font-family: "微软雅黑";
  1831. background: none;
  1832. color: $inBlue;
  1833. }
  1834. table th input:hover {
  1835. background: $eventBG;
  1836. }
  1837. table thead th {
  1838. font-size: 1rem;
  1839. font-family: "宋体";
  1840. height: 2rem;
  1841. border-top: 0px;
  1842. border-left: 0px;
  1843. border-right: 0px;
  1844. outline: 0px;
  1845. }
  1846. table tr td {
  1847. font-size: 1rem;
  1848. font-family: "fontnameRegular";
  1849. height: 2rem;
  1850. border: 1px $searchBorder;
  1851. text-align: center;
  1852. }
  1853. .font1 {
  1854. font-size: 1.7rem;
  1855. font-weight: bolder;
  1856. }
  1857. .border0 {
  1858. width: 100% !important;
  1859. }
  1860. .border0 tr td {
  1861. border: 0px !important;
  1862. }
  1863. table tr td input {
  1864. width: 100%;
  1865. /* display: inline-block;*/
  1866. outline: 0px;
  1867. text-align: left;
  1868. height: 94%;
  1869. color: $inBlue;
  1870. background: none;
  1871. float: left;
  1872. padding: 0 .5rem;
  1873. }
  1874. table tr td input:hover {
  1875. background: $eventBG;
  1876. }
  1877. .int_tr td input {
  1878. text-align: center !important;
  1879. }
  1880. .table2 tr th {
  1881. font-size: 1.7rem;
  1882. padding: .5rem 0;
  1883. font-family: 'fontnameRegular';
  1884. }
  1885. .table2 tr td {
  1886. font-size: 1rem;
  1887. }
  1888. .table2 tr td select {
  1889. border: 0px !important;
  1890. outline: 0px;
  1891. width: 100%;
  1892. font-family: "微软雅黑";
  1893. font-size: 1rem;
  1894. padding-left: 1%;
  1895. color: $inBlue;
  1896. background: none;
  1897. }
  1898. .table2 tr td select:hover {
  1899. background: $eventBG;
  1900. }
  1901. .table2 tr td select option {
  1902. font-size: 1rem;
  1903. font-family: "微软雅黑";
  1904. }
  1905. .border_l0 {
  1906. // border-right: 1px solid #ececec !important;
  1907. }
  1908. .table2 tr td textarea {
  1909. border: 0px !important;
  1910. outline: 0px;
  1911. width: 98%;
  1912. padding: .5rem;
  1913. font-size: 1rem;
  1914. resize: none;
  1915. background: none;
  1916. color: $inBlue;
  1917. }
  1918. .table2 tr td textarea:hover {
  1919. background: $eventBG;
  1920. }
  1921. .tr_border td {
  1922. border-right: 0px !important;
  1923. border-left: 0px !important;
  1924. border-bottom: 0px !important;
  1925. font-size: 15px;
  1926. }
  1927. .btm-btn-group {
  1928. padding: 1rem 0;
  1929. width: 100%;
  1930. display: flex;
  1931. button {
  1932. padding: .5rem 2rem;
  1933. }
  1934. }
  1935. </style>