eventdetailsdialog.vue 74 KB

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