eventdetailsdialog.vue 90 KB

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