eventdetailsdialog.vue 99 KB

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