firespread.vue 124 KB

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