eventdetailsdialog.vue 108 KB

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