eventdetailsdialog.vue 101 KB

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