eventdetailsdialog.vue 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832
  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. </div>
  89. <div class="z-info">
  90. <div class="this-con-list-info">
  91. {{ item.logContent }}
  92. </div>
  93. <div>
  94. <el-image :src="itemfile.fileUrl" v-if="isAssetTypeAnImage(itemfile.fileUrl)"
  95. :preview-src-list="assetTypeAnImage(item.attachs)"
  96. style="width:3rem; height:3rem;margin: 2px;"
  97. v-for="(itemfile,index1) in item.fileVOs">
  98. </el-image>
  99. <br>
  100. <el-link :href="itemfile.fileUrl" :underline="false" target="_blank"
  101. v-for="(itemfile,index1) in item.fileVOs"
  102. v-if="!isAssetTypeAnImage(itemfile.fileUrl)">
  103. <span class="el-icon-document"> {{ itemfile.fileName }} </span>
  104. </el-link>
  105. </div>
  106. </div>
  107. </div>
  108. </el-card>
  109. </el-timeline-item>
  110. </el-timeline>
  111. </div>
  112. </div>
  113. </div>
  114. </dv-border-box-7>
  115. </div>
  116. <div class="forthis">
  117. <dv-border-box-7 backgroundColor="#040b1f" :color="['#25335d', '#5baffd']">
  118. <div class="i-list-con">
  119. <div class="this-con h-25 no-padding">
  120. <div class="z-info-list" style="margin-top: 0;">
  121. <div class="z-info-btm-grp">
  122. <div class="z-info-btm-grp-top">
  123. <div class="z-info-btm-grp-left">
  124. <!-- <el-button size="small" icon="el-icon-s-flag">责任制-->
  125. <!-- </el-button>-->
  126. <el-button size="small" icon="el-icon-upload" @click="showEventLogUpload()">上传
  127. </el-button>
  128. <el-button size="small" icon="el-icon-download" @click="toImage()">截图
  129. </el-button>
  130. </div>
  131. <div class="z-info-btm-grp-right">
  132. <el-button size="small" icon="el-icon-mic">会议
  133. </el-button>
  134. </div>
  135. </div>
  136. <div class="z-info-btm-input">
  137. <el-input type="textarea" v-model="eventLog"
  138. :autosize="{ minRows: 7, maxRows: 7}" placeholder="请输入反馈信息">
  139. </el-input>
  140. <div class="z-info-btm-input-btn" v-if="eventStatusValue=='forest_event_status_1'">
  141. <div style="text-align:left">
  142. <el-button size="small"
  143. icon="el-icon-s-flag"
  144. @click="updateCentereventTEventcatalogueStatus('qs',false)">
  145. 签收
  146. </el-button>
  147. <el-button size="small"
  148. icon="el-icon-question"
  149. @click="updateCentereventTEventcatalogueStatus('wb',false)">
  150. 误报
  151. </el-button>
  152. <el-button size="small"
  153. icon="el-icon-warning"
  154. @click="updateCentereventTEventcatalogueStatus('cf',false)">
  155. 重复
  156. </el-button>
  157. </div>
  158. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  159. </el-button>
  160. </div>
  161. <div class="z-info-btm-input-btn" v-else-if="eventStatusValue=='forest_event_status_2'">
  162. <div>
  163. <el-button size="small"
  164. icon="el-icon-question"
  165. @click="updateCentereventTEventcatalogueStatus('wb',false)">
  166. 误报
  167. </el-button>
  168. <el-button size="small"
  169. icon="el-icon-warning"
  170. @click="updateCentereventTEventcatalogueStatus('cf',false)">
  171. 重复
  172. </el-button>
  173. <el-button size="small"
  174. icon="el-icon-phone" style="text-align:left"
  175. @click="updateCentereventTEventcatalogueStatus('ld',false)">
  176. 联动
  177. </el-button>
  178. <el-button size="small"
  179. icon="el-icon-success" style="text-align:left"
  180. @click="updateCentereventTEventcatalogueStatus('bj',true)">
  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_5'">
  188. <el-button size="small"
  189. icon="el-icon-success" style="text-align:left"
  190. @click="updateCentereventTEventcatalogueStatus('gd',false)">
  191. 填报
  192. </el-button>
  193. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  194. </el-button>
  195. </div>
  196. <div class="z-info-btm-input-btn" v-else>
  197. <el-button size="small" icon="el-icon-chat-dot-square" @click="sendEventLog()">发送
  198. </el-button>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. </div>
  205. </dv-border-box-7>
  206. </div>
  207. </div>
  208. </el-col>
  209. <!-- 左侧end -->
  210. </el-row>
  211. </div>
  212. </el-dialog>
  213. </div>
  214. <vBottomMenu ref="bottomMenu"></vBottomMenu>
  215. <eventLogUpload ref="eventLogUpload"></eventLogUpload>
  216. <el-dialog :title="eventConfirmTitle" :visible.sync="showEventConfirm" v-if="showEventConfirm" width="50%"
  217. class="top-dialog"
  218. @close="cancelEventConfirm()">
  219. <el-form label-width="80px">
  220. <el-form-item label="火灾半径" v-if="eventStatusButton=='qs'">
  221. <el-input type="number" v-model="sendHuoZaiBanJing" placeholder="请输入火灾半径"/>
  222. </el-form-item>
  223. <el-form-item :label="deptNameitem">
  224. <!-- <treeselect v-model="deptId" :options="deptOptions" multiple :show-count="true"-->
  225. <!-- placeholder="请选择签收部门"/>-->
  226. <el-select v-model="sendDeptName" clearable placeholder="请选择部门" class="m-r-1rem" @change="setValue"
  227. v-if="eventStatusButton=='wb'||eventStatusButton=='qs'||eventStatusButton=='cf'||eventStatusButton=='ld'">
  228. <el-option
  229. v-for="item in deptOptions"
  230. :key="item.deptId"
  231. :label="item.deptName"
  232. :value="{value:item.deptId,label:item.deptName}">
  233. </el-option>
  234. </el-select>
  235. </el-form-item>
  236. <el-form-item label="事件类型" v-if="eventStatusButton=='qs'">
  237. <el-select v-model="sendEventType" placeholder="请选择事件类型!" clearable>
  238. <el-option
  239. v-for="item in eventTypeList"
  240. :key="item.id"
  241. :label="item.eventTypeName"
  242. :value="item.id"
  243. />
  244. </el-select>
  245. </el-form-item>
  246. <el-form-item label="任务来源" v-if="eventStatusButton=='ld'">
  247. <el-select v-model="sendTaskSource" placeholder="请选择任务来源!" clearable>
  248. <el-option
  249. v-for="dict in dict.type.task_source"
  250. :key="dict.value"
  251. :label="dict.label"
  252. :value="dict.value"
  253. />
  254. </el-select>
  255. </el-form-item>
  256. <el-form-item label="联动标题" v-if="eventStatusButton=='ld'">
  257. <el-input v-model="sendTaskTitle" placeholder="请输入联动标题"/>
  258. </el-form-item>
  259. <el-form-item label="联动内容" v-if="eventStatusButton=='ld'">
  260. <el-input type="textarea" v-model="sendTaskContent"
  261. :autosize="{ minRows: 7, maxRows: 7}" placeholder="请输入联动内容">
  262. </el-input>
  263. </el-form-item>
  264. <el-form-item label="联动部门" v-if="eventStatusButton=='ld'">
  265. <el-input
  266. placeholder="输入关键字进行过滤"
  267. v-model="filterText">
  268. </el-input>
  269. <el-tree
  270. class="tree-border"
  271. style="height: 20vh; overflow-y:scroll"
  272. :data="deptOptionsLiandong"
  273. show-checkbox
  274. ref="LiandongDept"
  275. node-key="id"
  276. :check-strictly="true"
  277. :filter-node-method="filterNode"
  278. :accordion="true"
  279. empty-text="加载中,请稍候"
  280. :props="defaultProps"
  281. ></el-tree>
  282. <!-- default-expand-all-->
  283. </el-form-item>
  284. <el-form-item label="关联预案" v-if="eventStatusButton=='qs'">
  285. <el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" clearable>
  286. <el-option
  287. v-for="item in guanLianYuAnList"
  288. :key="item.id"
  289. :label="item.resTitle"
  290. :value="item.id"
  291. />
  292. </el-select>
  293. </el-form-item>
  294. <el-button size="mini" type="primary" v-if="eventStatusButton=='qs'"
  295. @click="updateCentereventTEventcatalogueStatus('qs',true)">签收
  296. </el-button>
  297. <el-button size="mini" type="primary" v-if="eventStatusButton=='wb'"
  298. @click="updateCentereventTEventcatalogueStatus('wb',true)">误报
  299. </el-button>
  300. <el-button size="mini" type="primary" v-if="eventStatusButton=='cf'"
  301. @click="updateCentereventTEventcatalogueStatus('cf',true)">重复
  302. </el-button>
  303. <el-button size="mini" type="primary" v-if="eventStatusButton=='ld'"
  304. @click="updateCentereventTEventcatalogueStatus('ld',true)">发起联动
  305. </el-button>
  306. </el-form>
  307. </el-dialog>
  308. <el-dialog title="调整预案" :visible.sync="showGuanLianYuAnConfirm" v-if="showGuanLianYuAnConfirm" width="50%"
  309. class="top-dialog">
  310. <el-form label-width="80px">
  311. <el-form-item label="关联预案">
  312. <el-select v-model="sendGuanLianYuAn" placeholder="请选择关联预案!" clearable>
  313. <el-option
  314. v-for="item in guanLianYuAnList"
  315. :key="item.id"
  316. :label="item.resTitle"
  317. :value="item.id"
  318. />
  319. </el-select>
  320. </el-form-item>
  321. <el-button size="mini" type="primary" @click="updateYjYuAn">确定
  322. </el-button>
  323. </el-form>
  324. </el-dialog>
  325. <el-dialog title="火险报告" :visible.sync="showEventConfirm_gd" v-if="showEventConfirm_gd" width="100%"
  326. class="top-dialog"
  327. @close="cancelEventConfirm_gd()">
  328. <div class="table-container">
  329. <form>
  330. <table id="table1" cellpadding="0" cellspacing="0">
  331. <thead style="width: 100%;padding:.5rem 0;">
  332. <th rowspan="1" colspan="1" class="txt_left" width="100px">填报单位:</th>
  333. <th rowspan="1" colspan="6" align="left"><input type="text" style=" width:100%;margin-left: .5rem;"
  334. v-model="table1.reportUnit"/></th>
  335. <th rowspan="1" colspan="2" class="txt_right">填报时间:</th>
  336. <th rowspan="1" colspan="6" align="left"><input type="text" style="width:3rem;text-align: center;"
  337. v-model="table1.reportTimeY"/>年<input
  338. type="text" style="width:4rem;text-align: center;" v-model="table1.reportTimeM"/>月<input type="text"
  339. style="width:3rem;text-align: center;"
  340. v-model="table1.reportTimeD"/>日
  341. </th>
  342. <th rowspan="1" colspan="8" style="text-align: right;">吉林省人民政府森林防火指挥部办公室制</th>
  343. </thead>
  344. <tbody>
  345. <tr>
  346. <td colspan="22" rowspan="1" class="font1" style="letter-spacing:3rem;padding: .5rem 0">森林火灾损失</td>
  347. <td colspan="1" rowspan="6">
  348. <table class="border0">
  349. <tr>
  350. <td>备注</td>
  351. </tr>
  352. </table>
  353. </td>
  354. </tr>
  355. <tr>
  356. <td rowspan="4" colspan="1">
  357. <table class="border0">
  358. <tr>
  359. <td>森林火灾<br>损失总计</td>
  360. </tr>
  361. </table>
  362. </td>
  363. <td rowspan="1" colspan="12">火灾损失价值</td>
  364. <td rowspan="1" colspan="9">扑火费用支出</td>
  365. </tr>
  366. <tr>
  367. <td rowspan="3" colspan="1">
  368. <table class="border0">
  369. <tr>
  370. <td>合计</td>
  371. </tr>
  372. </table>
  373. </td>
  374. <td rowspan="1" colspan="4">林木资源</td>
  375. <td rowspan="1" colspan="6">人员伤亡</td>
  376. <td rowspan="3" colspan="1">
  377. <table class="border0">
  378. <tr>
  379. <td>其他<br>火灾<br>损失</td>
  380. </tr>
  381. </table>
  382. </td>
  383. <td rowspan="3" colspan="1">
  384. <table class="border0">
  385. <tr>
  386. <td>合计</td>
  387. </tr>
  388. </table>
  389. </td>
  390. <td rowspan="1" colspan="2">
  391. <table class="border0">
  392. <tr>
  393. <td>人工费</td>
  394. </tr>
  395. </table>
  396. </td>
  397. <td rowspan="1" colspan="3">
  398. <table class="border0">
  399. <tr>
  400. <td>车辆费</td>
  401. </tr>
  402. </table>
  403. </td>
  404. <td rowspan="1" colspan="2">
  405. <table class="border0">
  406. <tr>
  407. <td>飞行费</td>
  408. </tr>
  409. </table>
  410. </td>
  411. <td rowspan="3" colspan="1">
  412. <table class="border0">
  413. <tr>
  414. <td>其他<br>扑火<br>费用</td>
  415. </tr>
  416. </table>
  417. </td>
  418. </tr>
  419. <tr>
  420. <td rowspan="1" colspan="2">成林</td>
  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="2" colspan="1">
  426. <table class="border0">
  427. <tr>
  428. <td>出动<br>人工</td>
  429. </tr>
  430. </table>
  431. </td>
  432. <td rowspan="2" colspan="1">
  433. <table class="border0">
  434. <tr>
  435. <td>支出<br>费用</td>
  436. </tr>
  437. </table>
  438. </td>
  439. <td rowspan="2" colspan="1">
  440. <table class="border0">
  441. <tr>
  442. <td>计</td>
  443. </tr>
  444. </table>
  445. </td>
  446. <td rowspan="2" colspan="1">
  447. <table class="border0">
  448. <tr>
  449. <td>其中<br>汽车</td>
  450. </tr>
  451. </table>
  452. </td>
  453. <td rowspan="2" colspan="1">
  454. <table class="border0">
  455. <tr>
  456. <td>支出<br>费用</td>
  457. </tr>
  458. </table>
  459. </td>
  460. <td rowspan="2" colspan="1">
  461. <table class="border0">
  462. <tr>
  463. <td>出动<br>飞机</td>
  464. </tr>
  465. </table>
  466. </td>
  467. <td rowspan="2" colspan="1">
  468. <table class="border0">
  469. <tr>
  470. <td>支出<br>费用</td>
  471. </tr>
  472. </table>
  473. </td>
  474. </tr>
  475. <tr>
  476. <td rowspan="1" colspan="1">蓄积</td>
  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. </tr>
  487. <tr>
  488. <td rowspan="1" colspan="1">万元</td>
  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. </tr>
  511. <tr>
  512. <td rowspan="1" colspan="1">1</td>
  513. <td rowspan="1" colspan="1">2</td>
  514. <td rowspan="1" colspan="1">3</td>
  515. <td rowspan="1" colspan="1">4</td>
  516. <td rowspan="1" colspan="1">5</td>
  517. <td rowspan="1" colspan="1">6</td>
  518. <td rowspan="1" colspan="1">7</td>
  519. <td rowspan="1" colspan="1">8</td>
  520. <td rowspan="1" colspan="1">9</td>
  521. <td rowspan="1" colspan="1">10</td>
  522. <td rowspan="1" colspan="1">11</td>
  523. <td rowspan="1" colspan="1">12</td>
  524. <td rowspan="1" colspan="1">13</td>
  525. <td rowspan="1" colspan="1">14</td>
  526. <td rowspan="1" colspan="1">15</td>
  527. <td rowspan="1" colspan="1">16</td>
  528. <td rowspan="1" colspan="1">17</td>
  529. <td rowspan="1" colspan="1">18</td>
  530. <td rowspan="1" colspan="1">19</td>
  531. <td rowspan="1" colspan="1">20</td>
  532. <td rowspan="1" colspan="1">21</td>
  533. <td rowspan="1" colspan="1">22</td>
  534. <td rowspan="1" colspan="1">23</td>
  535. </tr>
  536. <tr class="int_tr">
  537. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestFireLossTotal"/></td>
  538. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.fireLossTotal"/></td>
  539. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestArea"/></td>
  540. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.forestPrice"/></td>
  541. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.treesNumber"/></td>
  542. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.treesPrice"/></td>
  543. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.minorInjuriesNumber"/></td>
  544. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.minorInjuriesPrice"/></td>
  545. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.seriouslyInjuredNumber"/>
  546. </td>
  547. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.seriouslyInjuredPrice"/>
  548. </td>
  549. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.deathNumber"/></td>
  550. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.deathPrice"/></td>
  551. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.elseFireLossPrice"/></td>
  552. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.blazesPriceTotal"/></td>
  553. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.artificialDays"/></td>
  554. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.artificialPrice"/></td>
  555. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.vehicleNumber"/></td>
  556. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.carNumber"/></td>
  557. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.vehiclePrice"/></td>
  558. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.planeNumber"/></td>
  559. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.planePrice"/></td>
  560. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.elseBlazesPrice"/></td>
  561. <td rowspan="1" colspan="1"><input type="text" class="border0" v-model="table1.note"/></td>
  562. </tr>
  563. </tbody>
  564. </table>
  565. <table class="table2" cellpadding="0" cellspacing="0" style="white-space: nowrap;">
  566. <tbody>
  567. <tr>
  568. <th rowspan="1" colspan="26" style="letter-spacing:6rem">火场资料</th>
  569. </tr>
  570. <tr>
  571. <td colspan="2" rowspan="1" class="txt_left">&nbsp;1.起火时间</td>
  572. <td colspan="5" rowspan="1"><input type="text" v-model="table2.fireTime"/></td>
  573. <td colspan="2" rowspan="1">发现时间</td>
  574. <td colspan="8" rowspan="1"><input type="text" v-model="table2.foundTime"/></td>
  575. <td colspan="2" rowspan="1">扑灭时间</td>
  576. <td colspan="7" rowspan="1"><input type="text" v-model="table2.blazesTime"/></td>
  577. </tr>
  578. <tr>
  579. <td colspan="2" rowspan="1" class="txt_left">&nbsp;2.地点及发现方式</td>
  580. <td colspan="2" rowspan="1" class="txt_left"><select v-model="table2.address">
  581. <option>吉林市</option>
  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. </select></td>
  593. <td colspan="13" rowspan="1"><input type="text" v-model="table2.firePlace"/></td>
  594. <td colspan="2" rowspan="1">发现方式</td>
  595. <td colspan="7" rowspan="1"><input type="text" v-model="table2.foundType"/></td>
  596. </tr>
  597. <tr>
  598. <td colspan="2" rowspan="1" class="txt_left">&nbsp;3.火场位置</td>
  599. <td colspan="2" rowspan="1" class="border_l0">东经:</td>
  600. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  601. v-model="table2.longitudeD"/></td>
  602. <td colspan="1" rowspan="1" class="border_l0">度</td>
  603. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  604. v-model="table2.longitudeM"/></td>
  605. <td colspan="1" rowspan="1" class="border_l0">分</td>
  606. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  607. v-model="table2.longitudeS"/></td>
  608. <td colspan="2" rowspan="1" class="border_l0">秒</td>
  609. <td colspan="1" rowspan="1" class="border_l0">;</td>
  610. <td colspan="2" rowspan="1" class="border_l0">北纬:</td>
  611. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  612. v-model="table2.latitudeD"/></td>
  613. <td colspan="1" rowspan="1" class="border_l0">度</td>
  614. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  615. v-model="table2.latitudeM"/></td>
  616. <td colspan="1" rowspan="1" class="border_l0">分</td>
  617. <td colspan="1" rowspan="1" class="border_l0"><input type="text" style="width:50px;"
  618. v-model="table2.latitudeS"/></td>
  619. <td colspan="1" rowspan="1" class="border_l0">秒</td>
  620. <td 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></td>
  626. </tr>
  627. <tr>
  628. <td colspan="2" rowspan="1" class="txt_left">&nbsp;4.起火原因</td>
  629. <td colspan="3" rowspan="1" class="txt_left"><select v-model="table2.fireSource">
  630. <option>未查明火源</option>
  631. <option>烧荒烧炭</option>
  632. <option>炼山造林</option>
  633. <option>烧牧场</option>
  634. <option disabled>烧窑</option>
  635. <option>烧隔离带</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. </select></td>
  655. <td colspan="3" rowspan="1">火灾种类</td>
  656. <td colspan="4" rowspan="1" class="txt_left"><select v-model="table2.fireType">
  657. <option>地表火</option>
  658. <option>树冠火</option>
  659. <option>地下火</option>
  660. </select></td>
  661. <td colspan="3" rowspan="1">火灾等级</td>
  662. <td colspan="11" rowspan="1" class="txt_left"><select v-model="table2.fireLevel">
  663. <option>一般</option>
  664. <option>较大</option>
  665. <option>重大</option>
  666. <option>特大</option>
  667. </select></td>
  668. </tr>
  669. <tr>
  670. <td colspan="2" rowspan="1" class="txt_left">&nbsp;5.火场面积(公顷)</td>
  671. <td colspan="2" rowspan="1">总面积合计</td>
  672. <td colspan="3" rowspan="1"><input type="text" v-model="table2.areaTotal"/></td>
  673. <td colspan="4" rowspan="1">受害森林面积合计</td>
  674. <td colspan="3" rowspan="1"><input type="text" v-model="table2.forestLossAreaTotal"/></td>
  675. <td colspan="1" rowspan="1">其中:</td>
  676. <td colspan="2" rowspan="1">原森林</td>
  677. <td colspan="4" rowspan="1"><input type="text" v-model="table2.originalForestArea"/></td>
  678. <td colspan="2" rowspan="1">人工林</td>
  679. <td colspan="3" rowspan="1"><input type="text" v-model="table2.artificialForestArea"/></td>
  680. </tr>
  681. <tr>
  682. <td colspan="2" rowspan="1" class="txt_left">&nbsp;6.扑火人力物力投入</td>
  683. <td colspan="2" rowspan="1">出动总人数</td>
  684. <td colspan="1" rowspan="1"><input type="text" v-model="table2.peopleTotal"/></td>
  685. <td colspan="2" rowspan="1">其中扑火队</td>
  686. <td colspan="1" rowspan="1"><input type="text" v-model="table2.blazesTeamNumber"/></td>
  687. <td colspan="1" rowspan="1">森警</td>
  688. <td colspan="2" rowspan="1"><input type="text" v-model="table2.policeNumber"/></td>
  689. <td colspan="1" rowspan="1">军队</td>
  690. <td colspan="1" rowspan="1"><input type="text" v-model="table2.armyNumber"/></td>
  691. <td colspan="1" rowspan="1">群众</td>
  692. <td colspan="1" rowspan="1"><input type="text" v-model="table2.crowdNumber"/></td>
  693. <td colspan="2" rowspan="1">风力灭火机</td>
  694. <td colspan="1" rowspan="1"><input type="text" v-model="table2.windExtinguisher"/></td>
  695. <td colspan="2" rowspan="1">二号工具</td>
  696. <td colspan="1" rowspan="1"><input type="text" v-model="table2.secondTool"/></td>
  697. <td colspan="2" rowspan="1">水枪</td>
  698. <td colspan="1" rowspan="1"><input type="text" v-model="table2.waterGun"/></td>
  699. <td colspan="1" rowspan="1">其他</td>
  700. <td colspan="1" rowspan="1"><input type="text" v-model="table2.elseThings"/></td>
  701. </tr>
  702. <tr>
  703. <td colspan="2" rowspan="1" class="txt_left">&nbsp;7.受害森林概况</td>
  704. <td colspan="2" rowspan="1">林木组成</td>
  705. <td colspan="11" rowspan="1"><input type="text" v-model="table2.forestComposition"/></td>
  706. <td colspan="2" rowspan="1">林令</td>
  707. <td colspan="4" rowspan="1"><input type="text" v-model="table2.forestToken"/></td>
  708. <td colspan="2" rowspan="1">疏密度</td>
  709. <td colspan="3" rowspan="1"><input type="text" v-model="table2.porosities"/></td>
  710. </tr>
  711. <tr>
  712. <td colspan="2" rowspan="1" class="txt_left">&nbsp;8.当日天气实况</td>
  713. <td colspan="2" rowspan="1">天气</td>
  714. <td colspan="3" rowspan="1"><input type="text" v-model="table2.weather"/></td>
  715. <td colspan="1" rowspan="1">气温</td>
  716. <td colspan="2" rowspan="1"><input type="text" v-model="table2.temperature"/></td>
  717. <td colspan="1" rowspan="1">C°</td>
  718. <td colspan="3" rowspan="1">火险等级</td>
  719. <td colspan="1" rowspan="1"><input type="text" v-model="table2.fireInsuranceLevel"/></td>
  720. <td colspan="2" rowspan="1">风力</td>
  721. <td colspan="2" rowspan="1" class="border_l0"><input type="text" v-model="table2.windLevel"/></td>
  722. <td colspan="2" rowspan="1" class="txt_left">级</td>
  723. <td colspan="2" rowspan="1">风向</td>
  724. <td colspan="3" rowspan="1"><input type="text" v-model="table2.windDirection"/></td>
  725. </tr>
  726. <tr>
  727. <td colspan="2" rowspan="1" class="txt_left">&nbsp;9.指挥扑火负责人</td>
  728. <td colspan="2" rowspan="1">单位</td>
  729. <td colspan="11" rowspan="1"><input type="text" v-model="table2.commandUnit"/></td>
  730. <td colspan="2" rowspan="1">姓名</td>
  731. <td colspan="4" rowspan="1"><input type="text" v-model="table2.commandName"/></td>
  732. <td colspan="2" rowspan="1">职务</td>
  733. <td colspan="3" rowspan="1"><input type="text" v-model="table2.commandPosition"/></td>
  734. </tr>
  735. <tr>
  736. <td colspan="2" rowspan="1" class="txt_left">&nbsp;10.火场调查负责人</td>
  737. <td colspan="2" rowspan="1">单位</td>
  738. <td colspan="11" rowspan="1"><input type="text" v-model="table2.surveyUnit"/></td>
  739. <td colspan="2" rowspan="1">姓名</td>
  740. <td colspan="4" rowspan="1"><input type="text" v-model="table2.surveyName"/></td>
  741. <td colspan="2" rowspan="1">职务</td>
  742. <td colspan="3" rowspan="1"><input type="text" v-model="table2.surveyPosition"/></td>
  743. </tr>
  744. <tr>
  745. <td colspan="2" rowspan="1" class="txt_left">&nbsp;11.火灾肇事人情况</td>
  746. <td colspan="2" rowspan="1">姓名</td>
  747. <td colspan="2" rowspan="1"><input type="text" v-model="table2.accidentName"/></td>
  748. <td colspan="2" rowspan="1">性别</td>
  749. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentSex"/></td>
  750. <td colspan="3" rowspan="1">年龄</td>
  751. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentAge"/></td>
  752. <td colspan="1" rowspan="1">职业</td>
  753. <td colspan="1" rowspan="1"><input type="text" v-model="table2.accidentPosition"/></td>
  754. <td colspan="2" rowspan="1">单位或住址</td>
  755. <td colspan="9" rowspan="1"><input type="text" v-model="table2.accidentUnit"/></td>
  756. </tr>
  757. <tr>
  758. <td colspan="2" rowspan="1" class="txt_left">&nbsp;12.火灾处理情况</td>
  759. <td colspan="2" rowspan="1">处理方式</td>
  760. <td colspan="4" rowspan="1"><select v-model="table2.dealType">
  761. <option>立案(刑事处理)</option>
  762. <option>破案(刑事处理)</option>
  763. <option>行政处理</option>
  764. <option>待查</option>
  765. <option>拘留</option>
  766. <option>处理</option>
  767. <option>未处理</option>
  768. </select></td>
  769. <td colspan="3" rowspan="1">已处理人数</td>
  770. <td colspan="4" rowspan="1"><input type="text" v-model="table2.dealNumber"/></td>
  771. <td colspan="4" rowspan="1">刑事处罚人数</td>
  772. <td colspan="7" rowspan="1"><input type="text" v-model="table2.criminalDealNumber"/></td>
  773. </tr>
  774. <tr>
  775. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">&nbsp;13.对火灾肇事人<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;的处理情况
  776. </td>
  777. <td colspan="24" rowspan="1" class="txt_left">
  778. <textarea v-model="table2.accidentDealSituation"></textarea>
  779. </td>
  780. </tr>
  781. <tr>
  782. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">&nbsp;14.对责任人员的<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;责任人追查情况
  783. </td>
  784. <td colspan="24" rowspan="1" class="txt_left">
  785. <textarea v-model="table2.responsibilityDealSituation"></textarea></td>
  786. </tr>
  787. <tr>
  788. <td colspan="2" rowspan="1" class="txt_left" style="height: 60px;">&nbsp;15.对有关领导的<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;责任追查情况
  789. </td>
  790. <td colspan="24" rowspan="1" class="txt_left">
  791. <textarea v-model="table2.leadershipDealSituation"></textarea></td>
  792. </tr>
  793. <tr class="tr_border">
  794. <td colspan="4" rowspan="1">县(市、区、局、站)填表人:</td>
  795. <td colspan="2" rowspan="1"><input type="text" v-model="table2.townForm"/></td>
  796. <td colspan="4" rowspan="1">县(市、区、局、站)审核人:</td>
  797. <td colspan="3" rowspan="1"><input type="text" v-model="table2.townAudit"/></td>
  798. <td colspan="4" rowspan="1">市(州、管委会)填表人:</td>
  799. <td colspan="2" rowspan="1"><input type="text" v-model="table2.cityForm"/></td>
  800. <td colspan="4" rowspan="1">市(州、管委会)审核人:</td>
  801. <td colspan="3" rowspan="1"><input type="text" v-model="table2.cityAudit"/></td>
  802. </tr>
  803. </tbody>
  804. </table>
  805. <div class="btm-btn-group">
  806. <el-button size="mini" type="primary"
  807. @click="updateCentereventTEventcatalogueStatus('gd',true)">归档
  808. </el-button>
  809. </div>
  810. </form>
  811. </div>
  812. </el-dialog>
  813. </div>
  814. </template>
  815. <script>
  816. import html2canvas from 'html2canvas'//截图组件
  817. import supermapDialog from '@/components/supermap' //超图
  818. import vheader from '@/components/v-header.vue' //一体化共用头部
  819. import vBottomMenu from '@/components/vBottomMenu.vue' //一体化公共底部菜单
  820. import eventLogUpload from '@/views/eventLogUpload.vue' //日志上传文件
  821. import {
  822. getEventDetail,
  823. sendEventLog,
  824. listSJfl,
  825. listYuAn,
  826. selectByeventCode,
  827. updateCentereventTEventcatalogueStatus,
  828. sendTask,
  829. listResourceByWz,
  830. updateYjYuAn
  831. } from '@/api/forest'
  832. import {
  833. treeselectAll as deptTreeselect
  834. } from '@/api/system/dept'
  835. export default {
  836. dicts: ['task_source'],
  837. watch: {
  838. filterText(val) {
  839. this.$refs.LiandongDept.filter(val);
  840. }
  841. },
  842. components: {
  843. vheader,
  844. vBottomMenu,
  845. supermapDialog,
  846. eventLogUpload
  847. },
  848. data() {
  849. return {
  850. filterText:'',//树搜索
  851. /** *****************事件流程***************************/
  852. deptNameitem: '签收部门',
  853. sendDeptId: null,//签收部门/发起部门
  854. sendDeptName: null,//签收部门/发起部门
  855. sendEventType: null,//事件类型
  856. sendHuoZaiBanJing: null,//火灾报告
  857. sendGuanLianYuAn: null,//关联预案
  858. sendTaskSource:null,//任务来源
  859. sendTaskTitle: null,//联动标题
  860. sendTaskContent: null,//联动内容
  861. sendLianDongDept: [],//联动部门
  862. eventTypeList: [],//事件类型列表
  863. guanLianYuAnList: [],//关联预案列表
  864. deptOptions: [],//签收部门
  865. deptOptionsLiandong: [],//联动部门
  866. eventStatusButton: null,//流程按钮标识
  867. eventConfirmTitle: null,//弹窗标题 ---签收 误报 重复
  868. defaultProps: {
  869. children: 'children',
  870. label: 'label'
  871. },
  872. table1: {
  873. reportUnit: null,
  874. reportTimeY: null,
  875. reportTimeM: null,
  876. reportTimeD: null,
  877. forestFireLossTotal: null,
  878. fireLossTotal: null,
  879. forestArea: null,
  880. forestPrice: null,
  881. treesNumber: null,
  882. treesPrice: null,
  883. minorInjuriesNumber: null,
  884. minorInjuriesPrice: null,
  885. seriouslyInjuredNumber: null,
  886. seriouslyInjuredPrice: null,
  887. deathNumber: null,
  888. deathPrice: null,
  889. elseFireLossPrice: null,
  890. blazesPriceTotal: null,
  891. artificialDays: null,
  892. artificialPrice: null,
  893. vehicleNumber: null,
  894. carNumber: null,
  895. vehiclePrice: null,
  896. planeNumber: null,
  897. planePrice: null,
  898. elseBlazesPrice: null,
  899. note: null
  900. },
  901. table2: {
  902. fireTime: null,
  903. foundTime: null,
  904. blazesTime: null,
  905. address: null,
  906. firePlace: null,
  907. foundType: null,
  908. longitudeD: null,
  909. longitudeM: null,
  910. longitudeS: null,
  911. latitudeD: null,
  912. latitudeM: null,
  913. latitudeS: null,
  914. fireSource: null,
  915. fireType: null,
  916. fireLevel: null,
  917. areaTotal: null,
  918. forestLossAreaTotal: null,
  919. originalForestArea: null,
  920. artificialForestArea: null,
  921. peopleTotal: null,
  922. blazesTeamNumber: null,
  923. policeNumber: null,
  924. armyNumber: null,
  925. crowdNumber: null,
  926. windExtinguisher: null,
  927. secondTool: null,
  928. waterGun: null,
  929. elseThings: null,
  930. forestComposition: null,
  931. forestToken: null,
  932. porosities: null,
  933. weather: null,
  934. temperature: null,
  935. fireInsuranceLevel: null,
  936. windLevel: null,
  937. windDirection: null,
  938. commandUnit: null,
  939. commandName: null,
  940. commandPosition: null,
  941. surveyUnit: null,
  942. surveyName: null,
  943. surveyPosition: null,
  944. accidentName: null,
  945. accidentSex: null,
  946. accidentAge: null,
  947. accidentPosition: null,
  948. accidentUnit: null,
  949. dealType: null,
  950. dealNumber: null,
  951. criminalDealNumber: null,
  952. accidentDealSituation: null,
  953. responsibilityDealSituation: null,
  954. leadershipDealSituation: null,
  955. townForm: null,
  956. townAudit: null,
  957. cityForm: null,
  958. cityAudit: null
  959. },
  960. /** *****************事件流程***************************/
  961. showEventConfirm: false,//事件签收弹窗
  962. showGuanLianYuAnConfirm: false,//调整关联预案弹窗
  963. showEventConfirm_gd: false,//事件火险报告弹窗
  964. address:null,//事件上报地址
  965. eventStatusValue: null,//事件状态
  966. eventId: null,//事件ID
  967. eventType: null,//事件类型-大类
  968. eventCode: null,
  969. longitude: null,
  970. latitude: null,
  971. eventLog: null,
  972. eventLogList: [],
  973. visuForestCloudYuAnBo: null,
  974. eventDialog: false,
  975. radius: 1,//资源搜索半径
  976. resourcesList: [
  977. {
  978. resourceName: '取水口',
  979. type: 'qsk',
  980. count: '1',
  981. icon: 'sj-icon-waterintake'
  982. },
  983. {
  984. resourceName: '水鹤',
  985. type: 'sh',
  986. icon: 'sj-icon-watercrane'
  987. },
  988. {
  989. resourceName: '消防栓',
  990. type: 'xfs',
  991. count: '1',
  992. icon: 'sj-icon-firehydrant'
  993. },
  994. {
  995. resourceName: '起降点',
  996. type: 'qjd',
  997. count: '1',
  998. icon: 'sj-icon-landing'
  999. },
  1000. {
  1001. resourceName: '检查站',
  1002. type: 'jcz',
  1003. count: '1',
  1004. icon: 'sj-icon-checkpoint'
  1005. },
  1006. {
  1007. resourceName: '防火队',
  1008. type: 'fhd',
  1009. count: '1',
  1010. icon: 'sj-icon-fireteam'
  1011. },
  1012. {
  1013. resourceName: '重点区域',
  1014. type: 'zdqy',
  1015. count: '1',
  1016. icon: 'sj-icon-tcqh'
  1017. },
  1018. {
  1019. resourceName: '摄像头',
  1020. type: 'sxt',
  1021. count: '1',
  1022. icon: 'camera'
  1023. }
  1024. ],
  1025. //文本域
  1026. feedback: ''
  1027. }
  1028. },
  1029. props: {
  1030. calendarDay: null//首页日历选择
  1031. },
  1032. methods: {
  1033. showUpdateYjYuAn() {
  1034. listYuAn().then(res => {
  1035. //关联预案列表
  1036. if (res.code == 200) {
  1037. this.guanLianYuAnList = res.data
  1038. this.showGuanLianYuAnConfirm = true
  1039. }
  1040. })
  1041. },
  1042. updateYjYuAn() {
  1043. let param = {eventCode: this.eventCode, reserve: this.sendGuanLianYuAn}
  1044. updateYjYuAn(param).then(res => {
  1045. //事件调整关联预案
  1046. if (res.code == 200) {
  1047. this.$message.success(`预案调整成功!`)
  1048. this.refreshEventDialog(this.eventCode)
  1049. this.sendGuanLianYuAn=null
  1050. this.showGuanLianYuAnConfirm = false
  1051. }
  1052. })
  1053. },
  1054. listResourceByWz(type) {
  1055. //搜索物资
  1056. let param = {longitude: this.longitude, latitude: this.latitude, type: type, radius: this.radius}
  1057. listResourceByWz(param).then(res => {
  1058. if (res.data != null && res.data.length > 0) {
  1059. var markersList = []
  1060. for (let i = 0; i < res.data.length; i++) {
  1061. let markersMap = {
  1062. lng: 124.59,
  1063. lat: 43.02,
  1064. icon: 'marker',
  1065. bindPopupHtml: '',
  1066. click: '',
  1067. parameter: '',
  1068. keepBindPopup: false,
  1069. isAggregation: false
  1070. }
  1071. if (res.data.length > 50) {
  1072. markersMap.isAggregation = true
  1073. }
  1074. if (type == 'qsk') {
  1075. markersMap.icon = 'sj-icon-waterintake'
  1076. } else if (type == 'sh') {
  1077. markersMap.icon = 'sj-icon-watercrane'
  1078. } else if (type == 'xfs') {
  1079. markersMap.icon = 'sj-icon-firehydrant'
  1080. } else if (type == 'qjd') {
  1081. markersMap.icon = 'sj-icon-landing'
  1082. } else if (type == 'jcz') {
  1083. markersMap.icon = 'sj-icon-checkpoint'
  1084. } else if (type == 'fhd') {
  1085. markersMap.icon = 'sj-icon-fireteam'
  1086. } else if (type == 'zdqy') {
  1087. markersMap.icon = 'sj-icon-tcqh'
  1088. } else if (type == 'sxt') {
  1089. markersMap.icon = 'sj-icon-jkzx'
  1090. }
  1091. markersMap.lng = res.data[i].longitude
  1092. markersMap.lat = res.data[i].latitude
  1093. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1094. '<span>' +
  1095. ' <div class="d-l-con">' +
  1096. ' <div class="d-l-l-text">' +
  1097. ' <h4>资源名称:' + res.data[i].name + '</h4>' +
  1098. ' </div>' +
  1099. ' </div>' +
  1100. ' </span>' +
  1101. '</div>'
  1102. markersList.push(markersMap)
  1103. }
  1104. setTimeout(() => {
  1105. this.$refs.supermapDialog.setMarkers(markersList)
  1106. }, 1000)
  1107. }
  1108. })
  1109. },
  1110. // 返回图片列表
  1111. assetTypeAnImage(filePath) {
  1112. let imageList=[]
  1113. if(filePath!=null&&filePath.length>0){
  1114. for (let i = 0; i < filePath.length; i++) {
  1115. //获取最后一个.的位置
  1116. var index = filePath[i].lastIndexOf('.')
  1117. //获取后缀
  1118. var ext = filePath[i].substr(index + 1)
  1119. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  1120. if(aa){
  1121. imageList.push(filePath[i])
  1122. }
  1123. }
  1124. }
  1125. return imageList
  1126. },
  1127. // 判断是否为图片
  1128. isAssetTypeAnImage(filePath) {
  1129. //获取最后一个.的位置
  1130. var index = filePath.lastIndexOf('.')
  1131. //获取后缀
  1132. var ext = filePath.substr(index + 1)
  1133. let aa = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'psd', 'svg', 'tiff'].indexOf(ext.toLowerCase()) !== -1
  1134. return aa
  1135. },
  1136. // 获取文件名称
  1137. getFileName(name) {
  1138. if (name.lastIndexOf('/') > -1) {
  1139. return name.slice(name.lastIndexOf('/') + 1)
  1140. } else {
  1141. return ''
  1142. }
  1143. },
  1144. setValue(event) {
  1145. //签收选择部门
  1146. this.sendDeptName = event.label
  1147. this.sendDeptId = event.value
  1148. },
  1149. cancelEventConfirm() {
  1150. //关闭事件签收弹窗
  1151. this.sendDeptId = null
  1152. this.sendDeptName = null
  1153. this.sendEventType = null
  1154. this.sendHuoZaiBanJing = null
  1155. this.sendGuanLianYuAn = null
  1156. this.longitude = null
  1157. this.latitude = null
  1158. this.sendTaskTitle = null
  1159. this.sendTaskSource = null
  1160. this.sendTaskContent = null
  1161. this.sendLianDongDept = []
  1162. this.eventTypeList = []//事件类型列表
  1163. this.guanLianYuAnList = []//关联预案列表
  1164. this.deptOptions = []//签收部门
  1165. this.deptOptionsLiandong = []//联动部门
  1166. this.eventStatusButton = null//流程按钮标识
  1167. this.eventConfirmTitle = null//流程按钮标识
  1168. },
  1169. cancelEventConfirm_send() {
  1170. //清空表单数据
  1171. this.sendDeptId = null
  1172. this.sendDeptName = null
  1173. this.sendEventType = null
  1174. this.sendHuoZaiBanJing = null
  1175. this.sendGuanLianYuAn = null
  1176. this.sendTaskTitle = null
  1177. this.sendTaskSource = null
  1178. this.sendTaskContent = null
  1179. this.sendLianDongDept = []
  1180. this.eventTypeList = []//事件类型列表
  1181. this.guanLianYuAnList = []//关联预案列表
  1182. this.deptOptions = []//签收部门
  1183. this.deptOptionsLiandong = []//联动部门
  1184. },
  1185. cancelEventConfirm_gd() {
  1186. //关闭事件火险报告窗口
  1187. this.resetTable1()
  1188. this.resetTable2()
  1189. },
  1190. resetTable1() {
  1191. this.table1 = {
  1192. reportUnit: null,
  1193. reportTimeY: null,
  1194. reportTimeM: null,
  1195. reportTimeD: null,
  1196. forestFireLossTotal: null,
  1197. fireLossTotal: null,
  1198. forestArea: null,
  1199. forestPrice: null,
  1200. treesNumber: null,
  1201. treesPrice: null,
  1202. minorInjuriesNumber: null,
  1203. minorInjuriesPrice: null,
  1204. seriouslyInjuredNumber: null,
  1205. seriouslyInjuredPrice: null,
  1206. deathNumber: null,
  1207. deathPrice: null,
  1208. elseFireLossPrice: null,
  1209. blazesPriceTotal: null,
  1210. artificialDays: null,
  1211. artificialPrice: null,
  1212. vehicleNumber: null,
  1213. carNumber: null,
  1214. vehiclePrice: null,
  1215. planeNumber: null,
  1216. planePrice: null,
  1217. elseBlazesPrice: null,
  1218. note: null
  1219. }
  1220. },
  1221. resetTable2() {
  1222. this.table2 = {
  1223. fireTime: null,
  1224. foundTime: null,
  1225. blazesTime: null,
  1226. address: null,
  1227. firePlace: null,
  1228. foundType: null,
  1229. longitudeD: null,
  1230. longitudeM: null,
  1231. longitudeS: null,
  1232. latitudeD: null,
  1233. latitudeM: null,
  1234. latitudeS: null,
  1235. fireSource: null,
  1236. fireType: null,
  1237. fireLevel: null,
  1238. areaTotal: null,
  1239. forestLossAreaTotal: null,
  1240. originalForestArea: null,
  1241. artificialForestArea: null,
  1242. peopleTotal: null,
  1243. blazesTeamNumber: null,
  1244. policeNumber: null,
  1245. armyNumber: null,
  1246. crowdNumber: null,
  1247. windExtinguisher: null,
  1248. secondTool: null,
  1249. waterGun: null,
  1250. elseThings: null,
  1251. forestComposition: null,
  1252. forestToken: null,
  1253. porosities: null,
  1254. weather: null,
  1255. temperature: null,
  1256. fireInsuranceLevel: null,
  1257. windLevel: null,
  1258. windDirection: null,
  1259. commandUnit: null,
  1260. commandName: null,
  1261. commandPosition: null,
  1262. surveyUnit: null,
  1263. surveyName: null,
  1264. surveyPosition: null,
  1265. accidentName: null,
  1266. accidentSex: null,
  1267. accidentAge: null,
  1268. accidentPosition: null,
  1269. accidentUnit: null,
  1270. dealType: null,
  1271. dealNumber: null,
  1272. criminalDealNumber: null,
  1273. accidentDealSituation: null,
  1274. responsibilityDealSituation: null,
  1275. leadershipDealSituation: null,
  1276. townForm: null,
  1277. townAudit: null,
  1278. cityForm: null,
  1279. cityAudit: null
  1280. }
  1281. },
  1282. /**
  1283. * eventStatusValue 事件状态
  1284. * isSend 是否办理
  1285. * */
  1286. async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
  1287. this.eventStatusButton = eventStatus
  1288. if (!isSend) {//事件弹窗
  1289. if (eventStatus == 'qs') {//签收
  1290. this.eventConfirmTitle = '事件签收'
  1291. let param = {parentId: this.eventType}
  1292. await listSJfl(param).then(res => {
  1293. //事件类型
  1294. if (res.code == 200) {
  1295. this.eventTypeList = res.data
  1296. }
  1297. })
  1298. await listYuAn().then(res => {
  1299. //关联预案
  1300. if (res.code == 200) {
  1301. this.guanLianYuAnList = res.data
  1302. }
  1303. })
  1304. await selectByeventCode(this.eventCode).then(res => {
  1305. //签收部门
  1306. if (res.code == 200) {
  1307. this.deptOptions = res.data
  1308. this.deptNameitem = '签收部门'
  1309. }
  1310. })
  1311. this.showEventConfirm = true
  1312. } else if (eventStatus == 'wb') {//误报
  1313. this.eventConfirmTitle = '事件误报'
  1314. await selectByeventCode(this.eventCode).then(res => {
  1315. //签收部门
  1316. if (res.code == 200) {
  1317. this.deptOptions = res.data
  1318. this.deptNameitem = '签收部门'
  1319. }
  1320. })
  1321. this.showEventConfirm = true
  1322. } else if (eventStatus == 'cf') {//重复
  1323. this.eventConfirmTitle = '事件重复'
  1324. await selectByeventCode(this.eventCode).then(res => {
  1325. //签收部门
  1326. if (res.code == 200) {
  1327. this.deptOptions = res.data
  1328. this.deptNameitem = '签收部门'
  1329. }
  1330. })
  1331. this.showEventConfirm = true
  1332. } else if (eventStatus == 'ld') {//联动
  1333. await selectByeventCode(this.eventCode).then(res => {
  1334. //签收部门
  1335. if (res.code == 200) {
  1336. this.deptOptions = res.data
  1337. this.deptNameitem = '发起部门'
  1338. }
  1339. })
  1340. this.eventConfirmTitle = '事件联动'
  1341. /** 查询部门树结构 */
  1342. await deptTreeselect().then(response => {
  1343. this.deptOptionsLiandong = response.data
  1344. })
  1345. this.showEventConfirm = true
  1346. } else if (eventStatus == 'gd') {//归档填报
  1347. this.showEventConfirm_gd = true
  1348. }
  1349. } else {//事件提交后台
  1350. if (eventStatus == 'ld') {
  1351. //事件处理流程--联动
  1352. let array = this.$refs.LiandongDept.getCheckedNodes()
  1353. if (array != null && array.length > 0) {
  1354. for (let i = 0; i < array.length; i++) {
  1355. this.sendLianDongDept.push({'taskDeptId': array[i].id, 'taskDeptName': array[i].label})
  1356. }
  1357. }
  1358. if(this.sendTaskSource==""||this.sendTaskSource==null){
  1359. this.$message.error(`请选择任务来源!`)
  1360. return
  1361. }
  1362. if(this.sendTaskContent==""||this.sendTaskContent==null){
  1363. this.$message.error(`请输入任务内容!`)
  1364. return
  1365. }
  1366. if(this.sendTaskTitle==""||this.sendTaskTitle==null){
  1367. this.$message.error(`请输入任务标题!`)
  1368. return
  1369. }
  1370. if(this.sendLianDongDept==""||this.sendLianDongDept==null){
  1371. this.$message.error(`请选择任务联动部门!`)
  1372. return
  1373. }
  1374. if(this.sendDeptId==""||this.sendDeptId==null||this.sendDeptName==""||this.sendDeptName==null){
  1375. this.$message.error(`请选择任务发起部门!`)
  1376. return
  1377. }
  1378. let param = {
  1379. sendDeptId: this.sendDeptId,
  1380. sendDept: this.sendDeptName,
  1381. eventCode: this.eventCode,
  1382. longitude: this.longitude,
  1383. latitude: this.latitude,
  1384. taskTitle: this.sendTaskTitle,
  1385. taskSource: this.sendTaskSource,
  1386. taskContent: this.sendTaskContent,
  1387. taskDept: this.sendLianDongDept
  1388. }
  1389. sendTask(param).then(res => {
  1390. if (res.code == 200) {
  1391. this.$message.success(`联动发起成功!`)
  1392. this.refreshEventDialog(this.eventCode)
  1393. this.cancelEventConfirm_send()
  1394. this.showEventConfirm = false
  1395. }
  1396. })
  1397. } else if (eventStatus == 'gd') {
  1398. //事件处理流程--归档
  1399. let param = {
  1400. eventCode: this.eventCode,
  1401. deptId: this.sendDeptId,
  1402. deptName: this.sendDeptName,
  1403. eventStatus: eventStatus,
  1404. eventType: this.sendEventType,
  1405. id: this.eventId,
  1406. czlx: '',
  1407. fireRadius: this.sendHuoZaiBanJing,
  1408. reserve: this.sendGuanLianYuAn,
  1409. forestFireLoss: {
  1410. eventId: this.eventCode,
  1411. table1: this.table1
  1412. },
  1413. fireInformation: {
  1414. eventId: this.eventCode,
  1415. table2: this.table2
  1416. }
  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>