firespread.vue 122 KB

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