eventdetailsdialog.vue 75 KB

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