eventdetailsdialog.vue 174 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858
  1. <template>
  2. <div class="visual-con">
  3. <!--主体-->
  4. <div class="visual-body">
  5. <button
  6. @click="showEventDialog"
  7. style="
  8. position: absolute;
  9. left: 50%;
  10. top: 50vh;
  11. transform: translateX(-50%);
  12. "
  13. ></button>
  14. <!-- 弹层 -->
  15. <el-dialog
  16. title="事件详情"
  17. :visible.sync="eventDialog"
  18. customClass="customWidth"
  19. v-if="eventDialog"
  20. @close="cancelEventShow()"
  21. >
  22. <div class="dia-event-info">
  23. <el-row>
  24. <!-- 左侧 -->
  25. <el-col :span="18" class="dia-left">
  26. <div class="sj-map-tool-select">
  27. <!-- 复选框-->
  28. <transition-group
  29. appear
  30. name="animate__animated animate__bounce"
  31. enter-active-class="animate__lightSpeedInRight"
  32. leave-active-class="animate__backOutRight"
  33. >
  34. <div
  35. class="sj-map-tool-select-list"
  36. v-show="mapToolShow"
  37. id="eventMapToolOnly"
  38. key="1"
  39. >
  40. <el-checkbox
  41. v-model="mapToolCheckAll"
  42. @change="mapToolCheckAllChange"
  43. class="sj-map-tool-checkbox-all"
  44. >全选</el-checkbox
  45. >
  46. <el-checkbox-group
  47. v-model="mapToolCheckItem"
  48. @change="mapToolCheckChange"
  49. class="sj-map-tool-checkbox"
  50. >
  51. <el-checkbox
  52. v-for="tools in mapToolCheck"
  53. :label="tools"
  54. :key="tools"
  55. >{{ tools }}</el-checkbox
  56. >
  57. </el-checkbox-group>
  58. </div>
  59. </transition-group>
  60. <el-button
  61. size="small"
  62. icon="el-icon-s-grid"
  63. id="eventMapToolOnlyButton"
  64. @click="mapToolShow = !mapToolShow"
  65. >地图功能</el-button
  66. >
  67. </div>
  68. <div ref="imageTofile" style="height: 75vh">
  69. <!-- 应急预案 -->
  70. <transition-group
  71. appear
  72. name="animate__animated animate__bounce"
  73. enter-active-class="animate__backInDown"
  74. leave-active-class="animate__backOutUp"
  75. >
  76. <div
  77. class="dia-left-top"
  78. v-show="mapToolCheckItem.includes('应急预案')"
  79. key="yingji"
  80. >
  81. <div class="dia-left-top-tit">应急预案</div>
  82. <div class="dia-left-top-carousel">
  83. <el-carousel
  84. height="30px"
  85. direction="vertical"
  86. :interval="2000"
  87. >
  88. <el-carousel-item v-if="visuForestCloudYuAnBo != null">
  89. <!-- <el-tooltip class="item" effect="dark" :content="visuForestCloudYuAnBo.reserveName" placement="top-start">
  90. <a :href="visuForestCloudYuAnBo.fileUrl" ><span><div style=" width: 50px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;word-break: keep-all;">{{ visuForestCloudYuAnBo.reserveName }}</div></span></a>
  91. </el-tooltip> -->
  92. <el-tooltip
  93. placement="top"
  94. popper-class="js-tps"
  95. :visible-arrow="
  96. visuForestCloudYuAnBo.reserveName.length > 6
  97. "
  98. >
  99. <div slot="content" class="leader-info-container">
  100. <div
  101. class="leader-info-list-con"
  102. v-show="
  103. visuForestCloudYuAnBo.reserveName.length > 6
  104. "
  105. >
  106. <h4>{{ visuForestCloudYuAnBo.reserveName }}</h4>
  107. </div>
  108. </div>
  109. <a :href="visuForestCloudYuAnBo.fileUrl">{{
  110. visuForestCloudYuAnBo.reserveName | ellipsisFont6
  111. }}</a>
  112. </el-tooltip>
  113. </el-carousel-item>
  114. <el-carousel-item v-else>
  115. <a href="#">暂未关联预案</a>
  116. </el-carousel-item>
  117. </el-carousel>
  118. </div>
  119. <el-button
  120. size="mini"
  121. type="primary"
  122. class="yatz_button"
  123. @click="showUpdateYjYuAn"
  124. >预案调整
  125. </el-button>
  126. </div>
  127. </transition-group>
  128. <!-- 应急预案end -->
  129. <!-- 左侧资源 -->
  130. <transition-group
  131. appear
  132. name="animate__animated animate__bounce"
  133. enter-active-class="animate__backInUp"
  134. leave-active-class="animate__backOutDown"
  135. >
  136. <div
  137. v-show="mapToolCheckItem.includes('资源与操作')"
  138. key="mapToolziyuan"
  139. class="leftbar"
  140. style="
  141. width: fit-content !important;
  142. bottom: 0rem;
  143. left: 1rem;
  144. top: unset;
  145. "
  146. >
  147. <div class="forthis" style="width: 1320px; display: flex">
  148. <dv-border-box-7
  149. backgroundColor="#040b1f"
  150. :color="['#25335d', '#5baffd']"
  151. >
  152. <div
  153. class="i-list-con"
  154. style="
  155. width: 100%;
  156. display: flex;
  157. align-items: center;
  158. justify-content: space-between;
  159. "
  160. >
  161. <div
  162. class="d-l-con-icon"
  163. style="
  164. width: fit-content;
  165. flex-direction: row;
  166. flex-wrap: nowrap;
  167. "
  168. ref="thisWidthWH"
  169. >
  170. <leftRightSwiperScroll v-if="mapToolCheckItem.includes('资源与操作')">
  171. <div
  172. class="icon-con"
  173. style="width: fit-content !important"
  174. v-for="(item, index) in resourcesList"
  175. @click="fireControlViewPoint(item.type)"
  176. :key="index"
  177. >
  178. <div
  179. class="iconfont icon icon-normal"
  180. :class="item.icon"
  181. :style="'background:' + item.bg"
  182. ></div>
  183. <div class="icon-text">
  184. <h5 style="white-space: nowrap">
  185. {{ item.resourceName }}
  186. </h5>
  187. </div>
  188. </div>
  189. </leftRightSwiperScroll>
  190. </div>
  191. <el-input
  192. type="number"
  193. v-model="radius"
  194. class="d-input-bottom"
  195. placeholder="请输入搜索半径"
  196. max="99999999"
  197. />
  198. </div>
  199. </dv-border-box-7>
  200. </div>
  201. </div>
  202. <!-- 左侧资源end -->
  203. <!-- 底部工具栏 -->
  204. <!-- <div class="dia-left-btm-tool">
  205. </div> -->
  206. <!-- 底部工具栏end -->
  207. <div
  208. class="fire-m"
  209. style="bottom: 5rem"
  210. v-show="mapToolCheckItem.includes('资源与操作')"
  211. key="ziyuan"
  212. >
  213. <!-- <el-button-->
  214. <!-- size="small"-->
  215. <!-- icon="el-icon-s-grid"-->
  216. <!-- @click="showTVWallDiaLog()"-->
  217. <!-- v-show="eventType == 1"-->
  218. <!-- >视频联动</el-button-->
  219. <!-- >-->
  220. <el-button
  221. size="small"
  222. icon="el-icon-upload"
  223. @click="showheatPlotting()"
  224. >火灾蔓延
  225. </el-button>
  226. </div>
  227. </transition-group>
  228. <!-- 地图 -->
  229. <supermapDialog
  230. ref="supermapDialog"
  231. style="position: absolute; top: 0; left: 0"
  232. :mapDiv="'forestWarmSuperMap'"
  233. :mapSite="{
  234. doubleClickZoom: false,
  235. dragging: false,
  236. scrollWheelZoom: false,
  237. }"
  238. :codes="['9fa5']"
  239. :isSideBySide="false"
  240. :isdynamicPlotting="true"
  241. @preview="preview"
  242. @jump="jump"
  243. :mapToolShowBH="mapToolShowBH"
  244. />
  245. <!-- <supermapDialog ref="supermapDialog" -->
  246. <!-- @preview="preview"/> -->
  247. <!-- 地图end -->
  248. </div>
  249. </el-col>
  250. <!-- 左侧end -->
  251. <!-- 右侧 -->
  252. <el-col :span="6" class="dia-right">
  253. <div class="e-right">
  254. <div class="forthis1">
  255. <dv-border-box-7
  256. backgroundColor="#040b1f"
  257. style="padding-bottom: 1rem"
  258. >
  259. <div class="i-list-con">
  260. <div class="this-con">
  261. <div class="z-info-list" style="margin-top: 0">
  262. <el-timeline>
  263. <el-timeline-item
  264. color="#2bacf7"
  265. :timestamp="item.createTime"
  266. placement="top"
  267. v-for="(item, index) in eventLogList"
  268. >
  269. <el-card style="width: 40vh">
  270. <div class="z-info-list-con">
  271. <div class="user-and-time flex-d">
  272. <span>{{ item.createName }}</span>
  273. <span
  274. v-if="
  275. eventLogList.length - 1 == index &&
  276. address != null &&
  277. address != ''
  278. "
  279. ><i class="el-icon-location"></i>
  280. {{ address }}</span
  281. >
  282. <span v-else></span>
  283. </div>
  284. <div class="z-info">
  285. <div class="this-con-list-info">
  286. {{ item.logContent }}
  287. </div>
  288. <div>
  289. <router-link
  290. to="#"
  291. @click.native="
  292. clickFile(
  293. itemfile.fileUrl,
  294. itemfile.fileName,
  295. itemfile.fileType
  296. )
  297. "
  298. v-for="(
  299. itemfile, indexfile
  300. ) in item.fileVOs"
  301. >
  302. <el-image
  303. :src="itemfile.fileUrl"
  304. v-if="itemfile.fileType == 'image'"
  305. :preview-src-list="
  306. assetTypeAnImage(item.fileVOs)
  307. "
  308. style="
  309. width: 3rem;
  310. height: 3rem;
  311. margin: 2px;
  312. "
  313. :title="itemfile.fileName"
  314. >
  315. </el-image>
  316. <img
  317. v-else-if="
  318. itemfile.fileType == 'video'
  319. "
  320. style="
  321. width: 3rem;
  322. height: 3rem;
  323. margin: 2px;
  324. "
  325. :src="
  326. require('@/assets/fileTypeImage/mp4.png')
  327. "
  328. :title="itemfile.fileName"
  329. />
  330. <img
  331. v-else-if="
  332. itemfile.fileType == 'word'
  333. "
  334. style="
  335. width: 3rem;
  336. height: 3rem;
  337. margin: 2px;
  338. "
  339. :src="
  340. require('@/assets/fileTypeImage/word.png')
  341. "
  342. :title="itemfile.fileName"
  343. />
  344. <img
  345. v-else-if="
  346. itemfile.fileType == 'excel'
  347. "
  348. style="
  349. width: 3rem;
  350. height: 3rem;
  351. margin: 2px;
  352. "
  353. :src="
  354. require('@/assets/fileTypeImage/excel.png')
  355. "
  356. :title="itemfile.fileName"
  357. />
  358. <img
  359. v-else
  360. style="
  361. width: 3rem;
  362. height: 3rem;
  363. margin: 2px;
  364. "
  365. :src="
  366. require('@/assets/fileTypeImage/file.png')
  367. "
  368. :title="itemfile.fileName"
  369. />
  370. </router-link>
  371. </div>
  372. </div>
  373. </div>
  374. </el-card>
  375. </el-timeline-item>
  376. </el-timeline>
  377. </div>
  378. </div>
  379. </div>
  380. </dv-border-box-7>
  381. </div>
  382. <div class="forthis2">
  383. <dv-border-box-7 backgroundColor="#040b1f">
  384. <div class="i-list-con">
  385. <div class="this-con h-25 no-padding">
  386. <div class="z-info-list" style="margin-top: 0">
  387. <div class="z-info-btm-grp">
  388. <div class="z-info-btm-grp-top">
  389. <div class="z-info-btm-grp-left">
  390. <el-button
  391. size="small"
  392. icon="el-icon-upload"
  393. @click="showEventLogUpload()"
  394. >上传
  395. </el-button>
  396. <el-button
  397. size="small"
  398. icon="el-icon-download"
  399. @click="toImage()"
  400. >截图上传
  401. </el-button>
  402. <el-button
  403. size="small"
  404. icon="el-icon-download"
  405. @click="showResponsibility()"
  406. v-if="
  407. eventStatusValue !=
  408. 'forest_event_status_1' &&
  409. eventStatusValue != 'forest_event_status_7'
  410. "
  411. >责任制
  412. </el-button>
  413. <el-button
  414. v-if="
  415. eventStatusValue ==
  416. 'forest_event_status_2' &&
  417. statusFlag == '1' &&
  418. dataStatus == '0'
  419. "
  420. size="small"
  421. icon="el-icon-download"
  422. @click="
  423. updateCentereventTEventcatalogueStatus(
  424. 'cz',
  425. true
  426. )
  427. "
  428. >处置
  429. </el-button>
  430. </div>
  431. <div class="z-info-btm-grp-right">
  432. <el-button
  433. size="small"
  434. icon="el-icon-mic"
  435. @click="Meeting()"
  436. >会议
  437. </el-button>
  438. </div>
  439. </div>
  440. <div class="z-info-btm-input">
  441. <el-input
  442. type="textarea"
  443. v-model="eventLog"
  444. :autosize="{ minRows: 7, maxRows: 7 }"
  445. placeholder="请输入反馈信息"
  446. >
  447. </el-input>
  448. <div
  449. class="z-info-btm-input-btn"
  450. v-if="
  451. eventStatusValue == 'forest_event_status_1'
  452. "
  453. >
  454. <div style="text-align: left">
  455. <el-button
  456. size="small"
  457. icon="el-icon-s-flag"
  458. @click="
  459. updateCentereventTEventcatalogueStatus(
  460. 'qr',
  461. true
  462. )
  463. "
  464. >
  465. 确认
  466. </el-button>
  467. <el-button
  468. size="small"
  469. icon="el-icon-question"
  470. @click="
  471. updateCentereventTEventcatalogueStatus(
  472. 'wb',
  473. true
  474. )
  475. "
  476. >
  477. 误报
  478. </el-button>
  479. <el-button
  480. size="small"
  481. icon="el-icon-warning"
  482. @click="
  483. updateCentereventTEventcatalogueStatus(
  484. 'cf',
  485. true
  486. )
  487. "
  488. >
  489. 重复
  490. </el-button>
  491. </div>
  492. <el-button
  493. size="small"
  494. icon="el-icon-chat-dot-square"
  495. @click="sendEventLog()"
  496. >发送
  497. </el-button>
  498. </div>
  499. <div
  500. class="z-info-btm-input-btn"
  501. v-else-if="
  502. eventStatusValue == 'forest_event_status_7'
  503. "
  504. >
  505. <div style="text-align: left">
  506. <el-button
  507. size="small"
  508. icon="el-icon-s-flag"
  509. @click="
  510. updateCentereventTEventcatalogueStatus(
  511. 'qs',
  512. false
  513. )
  514. "
  515. >
  516. 签收
  517. </el-button>
  518. <el-button
  519. size="small"
  520. icon="el-icon-question"
  521. @click="
  522. updateCentereventTEventcatalogueStatus(
  523. 'wb',
  524. true
  525. )
  526. "
  527. >
  528. 误报
  529. </el-button>
  530. <el-button
  531. size="small"
  532. icon="el-icon-warning"
  533. @click="
  534. updateCentereventTEventcatalogueStatus(
  535. 'cf',
  536. true
  537. )
  538. "
  539. >
  540. 重复
  541. </el-button>
  542. </div>
  543. <el-button
  544. size="small"
  545. icon="el-icon-chat-dot-square"
  546. @click="sendEventLog()"
  547. >发送
  548. </el-button>
  549. </div>
  550. <div
  551. class="z-info-btm-input-btn"
  552. v-else-if="
  553. eventStatusValue == 'forest_event_status_2'
  554. "
  555. >
  556. <div>
  557. <!--<el-button size="small"-->
  558. <!--icon="el-icon-question"-->
  559. <!--@click="updateCentereventTEventcatalogueStatus('wb',false)">-->
  560. <!--误报-->
  561. <!--</el-button>-->
  562. <!--<el-button size="small"-->
  563. <!--icon="el-icon-warning"-->
  564. <!--@click="updateCentereventTEventcatalogueStatus('cf',false)">-->
  565. <!--重复-->
  566. <!--</el-button>-->
  567. <el-button
  568. size="small"
  569. icon="el-icon-phone"
  570. style="text-align: left"
  571. @click="
  572. updateCentereventTEventcatalogueStatus(
  573. 'ld',
  574. false
  575. )
  576. "
  577. >
  578. 联动
  579. </el-button>
  580. <el-button
  581. size="small"
  582. v-if="statusFlag == '1'"
  583. icon="el-icon-success"
  584. style="text-align: left"
  585. @click="
  586. updateCentereventTEventcatalogueStatus(
  587. 'bj',
  588. true
  589. )
  590. "
  591. >
  592. 办结
  593. </el-button>
  594. </div>
  595. <el-button
  596. size="small"
  597. icon="el-icon-chat-dot-square"
  598. @click="sendEventLog()"
  599. >发送
  600. </el-button>
  601. </div>
  602. <div
  603. class="z-info-btm-input-btn"
  604. v-else-if="
  605. eventStatusValue == 'forest_event_status_5'
  606. "
  607. >
  608. <el-button
  609. size="small"
  610. icon="el-icon-success"
  611. style="text-align: left"
  612. v-if="eventTypeXl == 101 && statusFlag == '1'"
  613. @click="
  614. updateCentereventTEventcatalogueStatus(
  615. 'gd',
  616. false
  617. )
  618. "
  619. >
  620. 填报
  621. </el-button>
  622. <el-button
  623. size="small"
  624. icon="el-icon-success"
  625. style="text-align: left"
  626. v-else-if="
  627. eventTypeXl != 101 && statusFlag == '1'
  628. "
  629. @click="
  630. updateCentereventTEventcatalogueStatus(
  631. 'gd',
  632. true
  633. )
  634. "
  635. >
  636. 归档
  637. </el-button>
  638. <el-button
  639. size="small"
  640. v-else-if="statusFlag == '2'"
  641. icon="el-icon-success"
  642. style="text-align: left"
  643. @click="
  644. updateCentereventTEventcatalogueStatus(
  645. 'sh',
  646. false
  647. )
  648. "
  649. >
  650. 审核
  651. </el-button>
  652. <el-button
  653. size="small"
  654. v-else-if="isExamine == '0'"
  655. icon="el-icon-loading"
  656. style="text-align: left"
  657. >
  658. 请等待复核,复核通过后方可归档。
  659. </el-button>
  660. <el-button
  661. size="small"
  662. icon="el-icon-chat-dot-square"
  663. @click="sendEventLog()"
  664. >发送
  665. </el-button>
  666. </div>
  667. <div class="z-info-btm-input-btn" v-else>
  668. <el-button
  669. size="small"
  670. icon="el-icon-chat-dot-square"
  671. @click="sendEventLog()"
  672. >发送
  673. </el-button>
  674. </div>
  675. </div>
  676. </div>
  677. </div>
  678. </div>
  679. </div>
  680. </dv-border-box-7>
  681. </div>
  682. </div>
  683. </el-col>
  684. <!-- 左侧end -->
  685. </el-row>
  686. </div>
  687. </el-dialog>
  688. </div>
  689. <vBottomMenu ref="bottomMenu"></vBottomMenu>
  690. <eventLogUpload ref="eventLogUpload"></eventLogUpload>
  691. <el-dialog
  692. :title="eventConfirmTitle"
  693. :visible.sync="showEventConfirm"
  694. v-if="showEventConfirm"
  695. width="50%"
  696. class="top-dialog"
  697. @close="cancelEventConfirm()"
  698. >
  699. <el-form label-width="80px">
  700. <el-form-item
  701. label="火灾半径"
  702. v-if="eventStatusButton == 'qs' && eventTypeXl == null"
  703. >
  704. <el-input
  705. type="number"
  706. v-model="sendHuoZaiBanJing"
  707. placeholder="请输入火灾半径"
  708. />
  709. </el-form-item>
  710. <el-form-item
  711. v-if="
  712. eventStatusButton == 'wb' ||
  713. eventStatusButton == 'qs' ||
  714. eventStatusButton == 'cf'
  715. "
  716. :label="deptNameitem"
  717. >
  718. <!-- <treeselect v-model="deptId" :options="deptOptions" multiple :show-count="true"-->
  719. <!-- placeholder="请选择签收部门"/>-->
  720. <el-select
  721. v-model="sendDeptName"
  722. clearable
  723. placeholder="请选择部门"
  724. class="m-r-1rem"
  725. @change="setValue"
  726. v-if="
  727. eventStatusButton == 'wb' ||
  728. eventStatusButton == 'qs' ||
  729. eventStatusButton == 'cf'
  730. "
  731. >
  732. <el-option
  733. v-for="item in deptOptions"
  734. :key="item.deptId"
  735. :label="item.deptName"
  736. :value="{ value: item.deptId, label: item.deptName }"
  737. >
  738. </el-option>
  739. </el-select>
  740. </el-form-item>
  741. <el-form-item
  742. label="事件类型"
  743. v-if="eventStatusButton == 'qs' && eventTypeXl == null"
  744. >
  745. <el-select
  746. v-model="sendEventType"
  747. placeholder="请选择事件类型!"
  748. clearable
  749. >
  750. <el-option
  751. v-for="item in eventTypeList"
  752. :key="item.id"
  753. :label="item.eventTypeName"
  754. :value="item.id"
  755. />
  756. </el-select>
  757. </el-form-item>
  758. <el-form-item label="任务来源" v-if="eventStatusButton == 'ld'">
  759. <el-select
  760. v-model="sendTaskSource"
  761. placeholder="请选择任务来源!"
  762. clearable
  763. >
  764. <el-option
  765. v-for="dict in dict.type.task_source"
  766. :key="dict.value"
  767. :label="dict.label"
  768. :value="dict.value"
  769. />
  770. </el-select>
  771. </el-form-item>
  772. <el-form-item label="联动标题" v-if="eventStatusButton == 'ld'">
  773. <el-input v-model="sendTaskTitle" placeholder="请输入联动标题" />
  774. </el-form-item>
  775. <el-form-item label="联动内容" v-if="eventStatusButton == 'ld'">
  776. <el-input
  777. type="textarea"
  778. v-model="sendTaskContent"
  779. :autosize="{ minRows: 7, maxRows: 7 }"
  780. placeholder="请输入联动内容"
  781. >
  782. </el-input>
  783. </el-form-item>
  784. <el-form-item label="联动部门" v-if="eventStatusButton == 'ld'">
  785. <el-input placeholder="输入关键字进行过滤" v-model="filterText">
  786. </el-input>
  787. <el-tree
  788. class="tree-border tree_scroll"
  789. style="height: 20vh; overflow-y: scroll"
  790. :data="deptOptionsLiandong"
  791. show-checkbox
  792. ref="LiandongDept"
  793. node-key="id"
  794. :check-strictly="true"
  795. :filter-node-method="filterNode"
  796. :accordion="true"
  797. empty-text="加载中,请稍候"
  798. :props="defaultProps"
  799. ></el-tree>
  800. <!-- default-expand-all-->
  801. </el-form-item>
  802. <el-form-item label="关联预案" v-if="eventStatusButton == 'qs'">
  803. <el-select
  804. v-model="sendGuanLianYuAn"
  805. placeholder="请选择关联预案!"
  806. filterable
  807. clearable
  808. >
  809. <el-option
  810. v-for="item in guanLianYuAnList"
  811. :key="item.id"
  812. :label="item.resTitle"
  813. :value="item.id"
  814. />
  815. </el-select>
  816. </el-form-item>
  817. <el-form-item label="审核意见" v-if="eventStatusButton == 'sh'">
  818. <el-input
  819. type="textarea"
  820. v-model="eventDescription"
  821. :autosize="{ minRows: 7, maxRows: 7 }"
  822. placeholder="请输入审核意见"
  823. >
  824. </el-input>
  825. </el-form-item>
  826. <el-form-item
  827. label="附件"
  828. prop="schedulePictures"
  829. v-if="eventStatusButton == 'sh'"
  830. >
  831. <ImageUpload
  832. class="sj-upload"
  833. ref="ImageUpload"
  834. :limit="10"
  835. :fileType="['jpg', 'png', 'jpeg']"
  836. :value="uploadAttachList"
  837. @input="getUrl"
  838. ></ImageUpload>
  839. </el-form-item>
  840. <!--<el-form-item label="联系人" v-if="eventStatusButton=='qs'">-->
  841. <!--<el-select multiple collapse-tags v-model='sendUserFegin' placeholder='请选择联系人!' clearable filterable>-->
  842. <!--<el-option-->
  843. <!--v-for="item in userFeginList"-->
  844. <!--:label="item.nickName"-->
  845. <!--:value="item.phonenumber"-->
  846. <!--/>-->
  847. <!--</el-select>-->
  848. <!--</el-form-item>-->
  849. <el-button
  850. size="mini"
  851. type="primary"
  852. v-if="eventStatusButton == 'qr'"
  853. class="sj-icon-btn"
  854. icon="el-icon-document-checked"
  855. @click="updateCentereventTEventcatalogueStatus('qr', false)"
  856. >确认
  857. </el-button>
  858. <el-button
  859. size="mini"
  860. type="primary"
  861. v-if="eventStatusButton == 'qs'"
  862. class="sj-icon-btn"
  863. icon="el-icon-edit"
  864. @click="updateCentereventTEventcatalogueStatus('qs', true)"
  865. >签收
  866. </el-button>
  867. <el-button
  868. size="mini"
  869. type="primary"
  870. v-if="eventStatusButton == 'wb'"
  871. class="sj-icon-btn"
  872. icon="el-icon-close-notification"
  873. @click="updateCentereventTEventcatalogueStatus('wb', true)"
  874. >误报
  875. </el-button>
  876. <el-button
  877. size="mini"
  878. type="primary"
  879. v-if="eventStatusButton == 'cf'"
  880. class="sj-icon-btn"
  881. icon="el-icon-document-copy"
  882. @click="updateCentereventTEventcatalogueStatus('cf', true)"
  883. >重复
  884. </el-button>
  885. <el-button
  886. size="mini"
  887. type="primary"
  888. v-if="eventStatusButton == 'ld'"
  889. class="sj-icon-btn"
  890. icon="el-icon-phone"
  891. @click="updateCentereventTEventcatalogueStatus('ld', true)"
  892. >发起联动
  893. </el-button>
  894. <el-button
  895. size="mini"
  896. type="primary"
  897. v-if="eventStatusButton == 'sh'"
  898. class="sj-icon-btn"
  899. icon="el-icon-circle-check"
  900. @click="updateCentereventTEventcatalogueStatus('shtg', true)"
  901. >通过
  902. </el-button>
  903. <el-button
  904. size="mini"
  905. type="primary"
  906. v-if="eventStatusButton == 'sh'"
  907. class="sj-icon-btn"
  908. icon="el-icon-circle-close"
  909. @click="updateCentereventTEventcatalogueStatus('shbtg', true)"
  910. >不通过
  911. </el-button>
  912. </el-form>
  913. </el-dialog>
  914. <el-dialog
  915. title="调整预案"
  916. :visible.sync="showGuanLianYuAnConfirm"
  917. v-if="showGuanLianYuAnConfirm"
  918. width="50%"
  919. class="top-dialog tz_tk"
  920. >
  921. <el-form label-width="80px">
  922. <el-form-item label="关联预案">
  923. <el-select
  924. v-model="sendGuanLianYuAn"
  925. placeholder="请选择关联预案!"
  926. clearable
  927. >
  928. <el-option
  929. v-for="item in guanLianYuAnList"
  930. :key="item.id"
  931. :label="item.resTitle"
  932. :value="item.id"
  933. />
  934. </el-select>
  935. </el-form-item>
  936. <el-button
  937. size="mini"
  938. type="primary"
  939. class="fr_button"
  940. @click="updateYjYuAn"
  941. >确定
  942. </el-button>
  943. <div style="clear: both"></div>
  944. </el-form>
  945. </el-dialog>
  946. <el-dialog
  947. title="责任制"
  948. :visible.sync="showResponsibilityDialog"
  949. v-if="showResponsibilityDialog"
  950. width="65%"
  951. @close="closeResponsibilityDialog()"
  952. >
  953. <el-form label-width="1500px">
  954. <div class="bottom">
  955. <!-- 左侧菜单栏 -->
  956. <div class="bottomLeft">
  957. <div
  958. class="leftItem d-l-con padding-box nowrap"
  959. v-for="(item, index) in depteventList"
  960. >
  961. <div class="bgt-info">
  962. <el-tooltip :content="item.deptName" placement="bottom">
  963. <div style="line-height: normal"
  964. class="bgt-info-name"
  965. :class="{ on: iconCurrentIndex === item.deptId }"
  966. @click="dutysystemSelect(item.deptId, item.deptName, item.id)"
  967. >
  968. {{ truncateText(item.deptName, 12) }}
  969. </div>
  970. </el-tooltip>
  971. </div>
  972. </div>
  973. </div>
  974. <!-- 左侧菜单栏对应的右侧的内容 -->
  975. <div class="bottomRight" ref="wrapper">
  976. <el-button
  977. size="mini"
  978. type="danger"
  979. v-if="depteventId != null && depteventId != ''"
  980. @click="addLine"
  981. >添加
  982. </el-button>
  983. <el-button
  984. size="mini"
  985. type="danger"
  986. v-if="depteventId != null && depteventId != ''"
  987. @click="finUserByDept"
  988. >选择
  989. </el-button>
  990. <el-table
  991. :data="dutysystemTableData"
  992. style="width: 100%"
  993. :rules="rules"
  994. >
  995. <el-table-column prop="id" label="主键" v-if="false">
  996. <template slot-scope="scope" hidden>
  997. <el-input
  998. v-model="scope.row.id"
  999. readonly
  1000. placeholder="主键"
  1001. ></el-input>
  1002. </template>
  1003. </el-table-column>
  1004. <el-table-column prop="name" label="姓名">
  1005. <template slot-scope="scope">
  1006. <el-input
  1007. v-model="scope.row.name"
  1008. placeholder="姓名"
  1009. οninput="value=value.replace(/^[\u4e00-\u9fa5]{2,4}$/,'')"
  1010. ></el-input>
  1011. </template>
  1012. </el-table-column>
  1013. <el-table-column prop="post" label="岗位">
  1014. <template slot-scope="scope">
  1015. <el-input
  1016. v-model="scope.row.post"
  1017. placeholder="岗位"
  1018. ></el-input>
  1019. </template>
  1020. </el-table-column>
  1021. <el-table-column prop="telphone" label="手机号码">
  1022. <template slot-scope="scope">
  1023. <el-input
  1024. v-model="scope.row.telphone"
  1025. placeholder="手机号码"
  1026. ο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}$/,'')"
  1027. ></el-input>
  1028. </template>
  1029. </el-table-column>
  1030. <el-table-column prop="bookbuytime" label="操作">
  1031. <template slot-scope="scope">
  1032. <el-button
  1033. size="mini"
  1034. type="danger"
  1035. icon="el-icon-delete"
  1036. @click="handleDelete(scope.$index, scope.row)"
  1037. >删除
  1038. </el-button>
  1039. <!--<el-button-->
  1040. <!--size="mini"-->
  1041. <!--type="danger"-->
  1042. <!--icon="el-icon-save"-->
  1043. <!--@click="handleSave(scope.$index, scope.row)">保存-->
  1044. <!--</el-button>-->
  1045. </template>
  1046. </el-table-column>
  1047. </el-table>
  1048. </div>
  1049. </div>
  1050. <el-button
  1051. size="mini"
  1052. type="primary"
  1053. class="fr_button"
  1054. @click="addResponsibilityDialog"
  1055. >确定
  1056. </el-button>
  1057. <div style="clear: both"></div>
  1058. </el-form>
  1059. </el-dialog>
  1060. <!-- 会议弹窗 start -->
  1061. <el-dialog
  1062. title="视频会议"
  1063. :visible.sync="showMeetingMsgDialog"
  1064. v-if="showMeetingMsgDialog"
  1065. width="65%"
  1066. @close="closeMeetingMsgDialog()"
  1067. >
  1068. <el-form label-width="1500px">
  1069. <div class="bottom">
  1070. <!-- 左侧菜单栏 -->
  1071. <div class="bottomLeft">
  1072. <div
  1073. class="leftItem d-l-con padding-box nowrap"
  1074. v-for="(item, index) in depteventList"
  1075. >
  1076. <div class="bgt-info">
  1077. <div
  1078. class="bgt-info-name"
  1079. :class="{ on: iconCurrentIndex == item.deptId }"
  1080. @click="dutysystemSelect(item.deptId, item.deptName, item.id)"
  1081. >
  1082. {{ item.deptName }}
  1083. </div>
  1084. </div>
  1085. </div>
  1086. </div>
  1087. <!-- 左侧菜单栏对应的右侧的内容 -->
  1088. <div class="bottomRight" ref="wrapper">
  1089. <el-button
  1090. size="mini"
  1091. type="danger"
  1092. v-if="depteventId != null && depteventId != ''"
  1093. @click="addLine"
  1094. >添加
  1095. </el-button>
  1096. <el-button
  1097. size="mini"
  1098. type="danger"
  1099. v-if="depteventId != null && depteventId != ''"
  1100. @click="finUserByDept"
  1101. >选择
  1102. </el-button>
  1103. <el-table
  1104. :data="dutysystemTableData"
  1105. style="width: 100%"
  1106. :rules="rules"
  1107. >
  1108. <el-table-column prop="id" label="主键" v-if="false">
  1109. <template slot-scope="scope" hidden>
  1110. <el-input
  1111. v-model="scope.row.id"
  1112. readonly
  1113. placeholder="主键"
  1114. ></el-input>
  1115. </template>
  1116. </el-table-column>
  1117. <el-table-column prop="name" label="姓名">
  1118. <template slot-scope="scope">
  1119. <el-input
  1120. v-model="scope.row.name"
  1121. placeholder="姓名"
  1122. οninput="value=value.replace(/^[\u4e00-\u9fa5]{2,4}$/,'')"
  1123. ></el-input>
  1124. </template>
  1125. </el-table-column>
  1126. <el-table-column prop="post" label="岗位">
  1127. <template slot-scope="scope">
  1128. <el-input
  1129. v-model="scope.row.post"
  1130. placeholder="岗位"
  1131. ></el-input>
  1132. </template>
  1133. </el-table-column>
  1134. <el-table-column prop="telphone" label="手机号码">
  1135. <template slot-scope="scope">
  1136. <el-input
  1137. v-model="scope.row.telphone"
  1138. placeholder="手机号码"
  1139. ο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}$/,'')"
  1140. ></el-input>
  1141. </template>
  1142. </el-table-column>
  1143. <el-table-column prop="bookbuytime" label="操作">
  1144. <template slot-scope="scope">
  1145. <el-button
  1146. size="mini"
  1147. type="danger"
  1148. icon="el-icon-delete"
  1149. @click="handleDelete(scope.$index, scope.row)"
  1150. >删除
  1151. </el-button>
  1152. <!--<el-button-->
  1153. <!--size="mini"-->
  1154. <!--type="danger"-->
  1155. <!--icon="el-icon-save"-->
  1156. <!--@click="handleSave(scope.$index, scope.row)">保存-->
  1157. <!--</el-button>-->
  1158. </template>
  1159. </el-table-column>
  1160. </el-table>
  1161. </div>
  1162. </div>
  1163. <el-button size="mini" type="primary" class="fr_button" @click="sendMsg"
  1164. >发送短信
  1165. </el-button>
  1166. <div style="clear: both"></div>
  1167. </el-form>
  1168. </el-dialog>
  1169. <!-- 会议弹窗 end -->
  1170. <el-dialog
  1171. title="火险报告"
  1172. :visible.sync="showEventConfirm_gd"
  1173. v-if="showEventConfirm_gd"
  1174. width="100%"
  1175. class="top-dialog"
  1176. @close="cancelEventConfirm_gd()"
  1177. >
  1178. <div class="table-container">
  1179. <form>
  1180. <table id="table1" cellpadding="0" cellspacing="0">
  1181. <thead style="width: 100%; padding: 0.5rem 0">
  1182. <th rowspan="1" colspan="1" class="txt_left" width="100px">
  1183. 填报单位:
  1184. </th>
  1185. <th rowspan="1" colspan="6" align="left">
  1186. <input
  1187. type="text"
  1188. style="width: 100%; margin-left: 0.5rem"
  1189. v-model="table1.reportUnit"
  1190. />
  1191. </th>
  1192. <th rowspan="1" colspan="2" class="txt_right">填报时间:</th>
  1193. <th rowspan="1" colspan="6" align="left">
  1194. <input
  1195. type="text"
  1196. style="width: 3rem; text-align: center"
  1197. v-model="table1.reportTimeY"
  1198. />年<input
  1199. type="text"
  1200. style="width: 4rem; text-align: center"
  1201. v-model="table1.reportTimeM"
  1202. />月<input
  1203. type="text"
  1204. style="width: 3rem; text-align: center"
  1205. v-model="table1.reportTimeD"
  1206. />日
  1207. </th>
  1208. <th rowspan="1" colspan="8" style="text-align: right">
  1209. 吉林省人民政府森林防火指挥部办公室制
  1210. </th>
  1211. </thead>
  1212. <tbody>
  1213. <tr>
  1214. <td
  1215. colspan="22"
  1216. rowspan="1"
  1217. class="font1"
  1218. style="letter-spacing: 3rem; padding: 0.5rem 0"
  1219. >
  1220. 森林火灾损失
  1221. </td>
  1222. <td colspan="1" rowspan="6">
  1223. <table class="border0">
  1224. <tr>
  1225. <td>备注</td>
  1226. </tr>
  1227. </table>
  1228. </td>
  1229. </tr>
  1230. <tr>
  1231. <td rowspan="4" colspan="1">
  1232. <table class="border0">
  1233. <tr>
  1234. <td>森林火灾<br />损失总计</td>
  1235. </tr>
  1236. </table>
  1237. </td>
  1238. <td rowspan="1" colspan="12">火灾损失价值</td>
  1239. <td rowspan="1" colspan="9">扑火费用支出</td>
  1240. </tr>
  1241. <tr>
  1242. <td rowspan="3" colspan="1">
  1243. <table class="border0">
  1244. <tr>
  1245. <td>合计</td>
  1246. </tr>
  1247. </table>
  1248. </td>
  1249. <td rowspan="1" colspan="4">林木资源</td>
  1250. <td rowspan="1" colspan="6">人员伤亡</td>
  1251. <td rowspan="3" colspan="1">
  1252. <table class="border0">
  1253. <tr>
  1254. <td>其他<br />火灾<br />损失</td>
  1255. </tr>
  1256. </table>
  1257. </td>
  1258. <td rowspan="3" colspan="1">
  1259. <table class="border0">
  1260. <tr>
  1261. <td>合计</td>
  1262. </tr>
  1263. </table>
  1264. </td>
  1265. <td rowspan="1" colspan="2">
  1266. <table class="border0">
  1267. <tr>
  1268. <td>人工费</td>
  1269. </tr>
  1270. </table>
  1271. </td>
  1272. <td rowspan="1" colspan="3">
  1273. <table class="border0">
  1274. <tr>
  1275. <td>车辆费</td>
  1276. </tr>
  1277. </table>
  1278. </td>
  1279. <td rowspan="1" colspan="2">
  1280. <table class="border0">
  1281. <tr>
  1282. <td>飞行费</td>
  1283. </tr>
  1284. </table>
  1285. </td>
  1286. <td rowspan="3" colspan="1">
  1287. <table class="border0">
  1288. <tr>
  1289. <td>其他<br />扑火<br />费用</td>
  1290. </tr>
  1291. </table>
  1292. </td>
  1293. </tr>
  1294. <tr>
  1295. <td rowspan="1" colspan="2">成林</td>
  1296. <td rowspan="1" colspan="2">幼林</td>
  1297. <td rowspan="1" colspan="2">轻伤</td>
  1298. <td rowspan="1" colspan="2">重伤</td>
  1299. <td rowspan="1" colspan="2">死亡</td>
  1300. <td rowspan="2" colspan="1">
  1301. <table class="border0">
  1302. <tr>
  1303. <td>出动<br />人工</td>
  1304. </tr>
  1305. </table>
  1306. </td>
  1307. <td rowspan="2" colspan="1">
  1308. <table class="border0">
  1309. <tr>
  1310. <td>支出<br />费用</td>
  1311. </tr>
  1312. </table>
  1313. </td>
  1314. <td rowspan="2" colspan="1">
  1315. <table class="border0">
  1316. <tr>
  1317. <td>计</td>
  1318. </tr>
  1319. </table>
  1320. </td>
  1321. <td rowspan="2" colspan="1">
  1322. <table class="border0">
  1323. <tr>
  1324. <td>其中<br />汽车</td>
  1325. </tr>
  1326. </table>
  1327. </td>
  1328. <td rowspan="2" colspan="1">
  1329. <table class="border0">
  1330. <tr>
  1331. <td>支出<br />费用</td>
  1332. </tr>
  1333. </table>
  1334. </td>
  1335. <td rowspan="2" colspan="1">
  1336. <table class="border0">
  1337. <tr>
  1338. <td>出动<br />飞机</td>
  1339. </tr>
  1340. </table>
  1341. </td>
  1342. <td rowspan="2" colspan="1">
  1343. <table class="border0">
  1344. <tr>
  1345. <td>支出<br />费用</td>
  1346. </tr>
  1347. </table>
  1348. </td>
  1349. </tr>
  1350. <tr>
  1351. <td rowspan="1" colspan="1">蓄积</td>
  1352. <td rowspan="1" colspan="1">价值</td>
  1353. <td rowspan="1" colspan="1">株数</td>
  1354. <td rowspan="1" colspan="1">价值</td>
  1355. <td rowspan="1" colspan="1">人数</td>
  1356. <td rowspan="1" colspan="1">支出费用</td>
  1357. <td rowspan="1" colspan="1">人数</td>
  1358. <td rowspan="1" colspan="1">支出费用</td>
  1359. <td rowspan="1" colspan="1">人数</td>
  1360. <td rowspan="1" colspan="1">支出费用</td>
  1361. </tr>
  1362. <tr>
  1363. <td rowspan="1" colspan="1">万元</td>
  1364. <td rowspan="1" colspan="1">万元</td>
  1365. <td rowspan="1" colspan="1">米³</td>
  1366. <td rowspan="1" colspan="1">万元</td>
  1367. <td rowspan="1" colspan="1">万株</td>
  1368. <td rowspan="1" colspan="1">万元</td>
  1369. <td rowspan="1" colspan="1">人</td>
  1370. <td rowspan="1" colspan="1">万元</td>
  1371. <td rowspan="1" colspan="1">人</td>
  1372. <td rowspan="1" colspan="1">万元</td>
  1373. <td rowspan="1" colspan="1">人</td>
  1374. <td rowspan="1" colspan="1">万元</td>
  1375. <td rowspan="1" colspan="1">万元</td>
  1376. <td rowspan="1" colspan="1">万元</td>
  1377. <td rowspan="1" colspan="1">工日</td>
  1378. <td rowspan="1" colspan="1">万元</td>
  1379. <td rowspan="1" colspan="1">台</td>
  1380. <td rowspan="1" colspan="1">台</td>
  1381. <td rowspan="1" colspan="1">万元</td>
  1382. <td rowspan="1" colspan="1">架次</td>
  1383. <td rowspan="1" colspan="1">万元</td>
  1384. <td rowspan="1" colspan="1">万元</td>
  1385. </tr>
  1386. <tr>
  1387. <td rowspan="1" colspan="1">1</td>
  1388. <td rowspan="1" colspan="1">2</td>
  1389. <td rowspan="1" colspan="1">3</td>
  1390. <td rowspan="1" colspan="1">4</td>
  1391. <td rowspan="1" colspan="1">5</td>
  1392. <td rowspan="1" colspan="1">6</td>
  1393. <td rowspan="1" colspan="1">7</td>
  1394. <td rowspan="1" colspan="1">8</td>
  1395. <td rowspan="1" colspan="1">9</td>
  1396. <td rowspan="1" colspan="1">10</td>
  1397. <td rowspan="1" colspan="1">11</td>
  1398. <td rowspan="1" colspan="1">12</td>
  1399. <td rowspan="1" colspan="1">13</td>
  1400. <td rowspan="1" colspan="1">14</td>
  1401. <td rowspan="1" colspan="1">15</td>
  1402. <td rowspan="1" colspan="1">16</td>
  1403. <td rowspan="1" colspan="1">17</td>
  1404. <td rowspan="1" colspan="1">18</td>
  1405. <td rowspan="1" colspan="1">19</td>
  1406. <td rowspan="1" colspan="1">20</td>
  1407. <td rowspan="1" colspan="1">21</td>
  1408. <td rowspan="1" colspan="1">22</td>
  1409. <td rowspan="1" colspan="1">23</td>
  1410. </tr>
  1411. <tr class="int_tr">
  1412. <td rowspan="1" colspan="1">
  1413. <input
  1414. type="text"
  1415. class="border0"
  1416. v-model="table1.forestFireLossTotal"
  1417. />
  1418. </td>
  1419. <td rowspan="1" colspan="1">
  1420. <input
  1421. type="text"
  1422. class="border0"
  1423. v-model="table1.fireLossTotal"
  1424. />
  1425. </td>
  1426. <td rowspan="1" colspan="1">
  1427. <input
  1428. type="text"
  1429. class="border0"
  1430. v-model="table1.forestArea"
  1431. />
  1432. </td>
  1433. <td rowspan="1" colspan="1">
  1434. <input
  1435. type="text"
  1436. class="border0"
  1437. v-model="table1.forestPrice"
  1438. />
  1439. </td>
  1440. <td rowspan="1" colspan="1">
  1441. <input
  1442. type="text"
  1443. class="border0"
  1444. v-model="table1.treesNumber"
  1445. />
  1446. </td>
  1447. <td rowspan="1" colspan="1">
  1448. <input
  1449. type="text"
  1450. class="border0"
  1451. v-model="table1.treesPrice"
  1452. />
  1453. </td>
  1454. <td rowspan="1" colspan="1">
  1455. <input
  1456. type="text"
  1457. class="border0"
  1458. v-model="table1.minorInjuriesNumber"
  1459. />
  1460. </td>
  1461. <td rowspan="1" colspan="1">
  1462. <input
  1463. type="text"
  1464. class="border0"
  1465. v-model="table1.minorInjuriesPrice"
  1466. />
  1467. </td>
  1468. <td rowspan="1" colspan="1">
  1469. <input
  1470. type="text"
  1471. class="border0"
  1472. v-model="table1.seriouslyInjuredNumber"
  1473. />
  1474. </td>
  1475. <td rowspan="1" colspan="1">
  1476. <input
  1477. type="text"
  1478. class="border0"
  1479. v-model="table1.seriouslyInjuredPrice"
  1480. />
  1481. </td>
  1482. <td rowspan="1" colspan="1">
  1483. <input
  1484. type="text"
  1485. class="border0"
  1486. v-model="table1.deathNumber"
  1487. />
  1488. </td>
  1489. <td rowspan="1" colspan="1">
  1490. <input
  1491. type="text"
  1492. class="border0"
  1493. v-model="table1.deathPrice"
  1494. />
  1495. </td>
  1496. <td rowspan="1" colspan="1">
  1497. <input
  1498. type="text"
  1499. class="border0"
  1500. v-model="table1.elseFireLossPrice"
  1501. />
  1502. </td>
  1503. <td rowspan="1" colspan="1">
  1504. <input
  1505. type="text"
  1506. class="border0"
  1507. v-model="table1.blazesPriceTotal"
  1508. />
  1509. </td>
  1510. <td rowspan="1" colspan="1">
  1511. <input
  1512. type="text"
  1513. class="border0"
  1514. v-model="table1.artificialDays"
  1515. />
  1516. </td>
  1517. <td rowspan="1" colspan="1">
  1518. <input
  1519. type="text"
  1520. class="border0"
  1521. v-model="table1.artificialPrice"
  1522. />
  1523. </td>
  1524. <td rowspan="1" colspan="1">
  1525. <input
  1526. type="text"
  1527. class="border0"
  1528. v-model="table1.vehicleNumber"
  1529. />
  1530. </td>
  1531. <td rowspan="1" colspan="1">
  1532. <input
  1533. type="text"
  1534. class="border0"
  1535. v-model="table1.carNumber"
  1536. />
  1537. </td>
  1538. <td rowspan="1" colspan="1">
  1539. <input
  1540. type="text"
  1541. class="border0"
  1542. v-model="table1.vehiclePrice"
  1543. />
  1544. </td>
  1545. <td rowspan="1" colspan="1">
  1546. <input
  1547. type="text"
  1548. class="border0"
  1549. v-model="table1.planeNumber"
  1550. />
  1551. </td>
  1552. <td rowspan="1" colspan="1">
  1553. <input
  1554. type="text"
  1555. class="border0"
  1556. v-model="table1.planePrice"
  1557. />
  1558. </td>
  1559. <td rowspan="1" colspan="1">
  1560. <input
  1561. type="text"
  1562. class="border0"
  1563. v-model="table1.elseBlazesPrice"
  1564. />
  1565. </td>
  1566. <td rowspan="1" colspan="1">
  1567. <input type="text" class="border0" v-model="table1.note" />
  1568. </td>
  1569. </tr>
  1570. </tbody>
  1571. </table>
  1572. <table
  1573. class="table2"
  1574. cellpadding="0"
  1575. cellspacing="0"
  1576. style="white-space: nowrap"
  1577. >
  1578. <tbody>
  1579. <tr>
  1580. <th rowspan="1" colspan="26" style="letter-spacing: 6rem">
  1581. 火场资料
  1582. </th>
  1583. </tr>
  1584. <tr>
  1585. <td colspan="2" rowspan="1" class="txt_left">
  1586. &nbsp;1.起火时间
  1587. </td>
  1588. <td colspan="5" rowspan="1">
  1589. <input type="text" v-model="table2.fireTime" />
  1590. </td>
  1591. <td colspan="2" rowspan="1">发现时间</td>
  1592. <td colspan="8" rowspan="1">
  1593. <input type="text" v-model="table2.foundTime" />
  1594. </td>
  1595. <td colspan="2" rowspan="1">扑灭时间</td>
  1596. <td colspan="7" rowspan="1">
  1597. <input type="text" v-model="table2.blazesTime" />
  1598. </td>
  1599. </tr>
  1600. <tr>
  1601. <td colspan="2" rowspan="1" class="txt_left">
  1602. &nbsp;2.地点及发现方式
  1603. </td>
  1604. <td colspan="2" rowspan="1" class="txt_left">
  1605. <select v-model="table2.address">
  1606. <option>吉林市</option>
  1607. <option>延边州</option>
  1608. <option>白山市</option>
  1609. <option>通化市</option>
  1610. <option>辽源市</option>
  1611. <option>四平市</option>
  1612. <option>长春市</option>
  1613. <option>白城市</option>
  1614. <option>松原市</option>
  1615. <option>敦化航站</option>
  1616. <option>长白山管委会</option>
  1617. </select>
  1618. </td>
  1619. <td colspan="13" rowspan="1">
  1620. <input type="text" v-model="table2.firePlace" />
  1621. </td>
  1622. <td colspan="2" rowspan="1">发现方式</td>
  1623. <td colspan="7" rowspan="1">
  1624. <input type="text" v-model="table2.foundType" />
  1625. </td>
  1626. </tr>
  1627. <tr>
  1628. <td colspan="2" rowspan="1" class="txt_left">
  1629. &nbsp;3.火场位置
  1630. </td>
  1631. <td colspan="2" rowspan="1" class="border_l0">东经:</td>
  1632. <td colspan="1" rowspan="1" class="border_l0">
  1633. <input
  1634. type="text"
  1635. style="width: 50px"
  1636. v-model="table2.longitudeD"
  1637. />
  1638. </td>
  1639. <td colspan="1" rowspan="1" class="border_l0">度</td>
  1640. <td colspan="1" rowspan="1" class="border_l0">
  1641. <input
  1642. type="text"
  1643. style="width: 50px"
  1644. v-model="table2.longitudeM"
  1645. />
  1646. </td>
  1647. <td colspan="1" rowspan="1" class="border_l0">分</td>
  1648. <td colspan="1" rowspan="1" class="border_l0">
  1649. <input
  1650. type="text"
  1651. style="width: 50px"
  1652. v-model="table2.longitudeS"
  1653. />
  1654. </td>
  1655. <td colspan="2" rowspan="1" class="border_l0">秒</td>
  1656. <td colspan="1" rowspan="1" class="border_l0">;</td>
  1657. <td colspan="2" rowspan="1" class="border_l0">北纬:</td>
  1658. <td colspan="1" rowspan="1" class="border_l0">
  1659. <input
  1660. type="text"
  1661. style="width: 50px"
  1662. v-model="table2.latitudeD"
  1663. />
  1664. </td>
  1665. <td colspan="1" rowspan="1" class="border_l0">度</td>
  1666. <td colspan="1" rowspan="1" class="border_l0">
  1667. <input
  1668. type="text"
  1669. style="width: 50px"
  1670. v-model="table2.latitudeM"
  1671. />
  1672. </td>
  1673. <td colspan="1" rowspan="1" class="border_l0">分</td>
  1674. <td colspan="1" rowspan="1" class="border_l0">
  1675. <input
  1676. type="text"
  1677. style="width: 50px"
  1678. v-model="table2.latitudeS"
  1679. />
  1680. </td>
  1681. <td colspan="1" rowspan="1" class="border_l0">秒</td>
  1682. <td class="border_l0"></td>
  1683. <td class="border_l0"></td>
  1684. <td class="border_l0"></td>
  1685. <td class="border_l0"></td>
  1686. <td class="border_l0"></td>
  1687. <td></td>
  1688. </tr>
  1689. <tr>
  1690. <td colspan="2" rowspan="1" class="txt_left">
  1691. &nbsp;4.起火原因
  1692. </td>
  1693. <td colspan="3" rowspan="1" class="txt_left">
  1694. <select v-model="table2.fireSource">
  1695. <option>未查明火源</option>
  1696. <option>烧荒烧炭</option>
  1697. <option>炼山造林</option>
  1698. <option>烧牧场</option>
  1699. <option disabled>烧窑</option>
  1700. <option>烧隔离带</option>
  1701. <option>火车喷漏</option>
  1702. <option>火车甩瓦</option>
  1703. <option>机车喷火</option>
  1704. <option>其他(生产性火源)</option>
  1705. <option>野外吸烟</option>
  1706. <option>取暖做饭</option>
  1707. <option>上坟烧纸</option>
  1708. <option>烧山驱兽</option>
  1709. <option>小孩玩火</option>
  1710. <option>痴呆弄火</option>
  1711. <option>家火上山</option>
  1712. <option>电线引起</option>
  1713. <option>其他(非生产性用火)</option>
  1714. <option>故意放火</option>
  1715. <option>外省(区)烧入</option>
  1716. <option>外国烧入</option>
  1717. <option>雷击火</option>
  1718. <option>其他自然火</option>
  1719. </select>
  1720. </td>
  1721. <td colspan="3" rowspan="1">火灾种类</td>
  1722. <td colspan="4" rowspan="1" class="txt_left">
  1723. <select v-model="table2.fireType">
  1724. <option>地表火</option>
  1725. <option>树冠火</option>
  1726. <option>地下火</option>
  1727. </select>
  1728. </td>
  1729. <td colspan="3" rowspan="1">火灾等级</td>
  1730. <td colspan="11" rowspan="1" class="txt_left">
  1731. <select v-model="table2.fireLevel">
  1732. <option>一般</option>
  1733. <option>较大</option>
  1734. <option>重大</option>
  1735. <option>特大</option>
  1736. </select>
  1737. </td>
  1738. </tr>
  1739. <tr>
  1740. <td colspan="2" rowspan="1" class="txt_left">
  1741. &nbsp;5.火场面积(公顷)
  1742. </td>
  1743. <td colspan="2" rowspan="1">总面积合计</td>
  1744. <td colspan="3" rowspan="1">
  1745. <input type="text" v-model="table2.areaTotal" />
  1746. </td>
  1747. <td colspan="4" rowspan="1">受害森林面积合计</td>
  1748. <td colspan="3" rowspan="1">
  1749. <input type="text" v-model="table2.forestLossAreaTotal" />
  1750. </td>
  1751. <td colspan="1" rowspan="1">其中:</td>
  1752. <td colspan="2" rowspan="1">原森林</td>
  1753. <td colspan="4" rowspan="1">
  1754. <input type="text" v-model="table2.originalForestArea" />
  1755. </td>
  1756. <td colspan="2" rowspan="1">人工林</td>
  1757. <td colspan="3" rowspan="1">
  1758. <input type="text" v-model="table2.artificialForestArea" />
  1759. </td>
  1760. </tr>
  1761. <tr>
  1762. <td colspan="2" rowspan="1" class="txt_left">
  1763. &nbsp;6.扑火人力物力投入
  1764. </td>
  1765. <td colspan="2" rowspan="1">出动总人数</td>
  1766. <td colspan="1" rowspan="1">
  1767. <input type="text" v-model="table2.peopleTotal" />
  1768. </td>
  1769. <td colspan="2" rowspan="1">其中扑火队</td>
  1770. <td colspan="1" rowspan="1">
  1771. <input type="text" v-model="table2.blazesTeamNumber" />
  1772. </td>
  1773. <td colspan="1" rowspan="1">森警</td>
  1774. <td colspan="2" rowspan="1">
  1775. <input type="text" v-model="table2.policeNumber" />
  1776. </td>
  1777. <td colspan="1" rowspan="1">军队</td>
  1778. <td colspan="1" rowspan="1">
  1779. <input type="text" v-model="table2.armyNumber" />
  1780. </td>
  1781. <td colspan="1" rowspan="1">群众</td>
  1782. <td colspan="1" rowspan="1">
  1783. <input type="text" v-model="table2.crowdNumber" />
  1784. </td>
  1785. <td colspan="2" rowspan="1">风力灭火机</td>
  1786. <td colspan="1" rowspan="1">
  1787. <input type="text" v-model="table2.windExtinguisher" />
  1788. </td>
  1789. <td colspan="2" rowspan="1">二号工具</td>
  1790. <td colspan="1" rowspan="1">
  1791. <input type="text" v-model="table2.secondTool" />
  1792. </td>
  1793. <td colspan="2" rowspan="1">水枪</td>
  1794. <td colspan="1" rowspan="1">
  1795. <input type="text" v-model="table2.waterGun" />
  1796. </td>
  1797. <td colspan="1" rowspan="1">其他</td>
  1798. <td colspan="1" rowspan="1">
  1799. <input type="text" v-model="table2.elseThings" />
  1800. </td>
  1801. </tr>
  1802. <tr>
  1803. <td colspan="2" rowspan="1" class="txt_left">
  1804. &nbsp;7.受害森林概况
  1805. </td>
  1806. <td colspan="2" rowspan="1">林木组成</td>
  1807. <td colspan="11" rowspan="1">
  1808. <input type="text" v-model="table2.forestComposition" />
  1809. </td>
  1810. <td colspan="2" rowspan="1">林令</td>
  1811. <td colspan="4" rowspan="1">
  1812. <input type="text" v-model="table2.forestToken" />
  1813. </td>
  1814. <td colspan="2" rowspan="1">疏密度</td>
  1815. <td colspan="3" rowspan="1">
  1816. <input type="text" v-model="table2.porosities" />
  1817. </td>
  1818. </tr>
  1819. <tr>
  1820. <td colspan="2" rowspan="1" class="txt_left">
  1821. &nbsp;8.当日天气实况
  1822. </td>
  1823. <td colspan="2" rowspan="1">天气</td>
  1824. <td colspan="3" rowspan="1">
  1825. <input type="text" v-model="table2.weather" />
  1826. </td>
  1827. <td colspan="1" rowspan="1">气温</td>
  1828. <td colspan="2" rowspan="1">
  1829. <input type="text" v-model="table2.temperature" />
  1830. </td>
  1831. <td colspan="1" rowspan="1">C°</td>
  1832. <td colspan="3" rowspan="1">火险等级</td>
  1833. <td colspan="1" rowspan="1">
  1834. <input type="text" v-model="table2.fireInsuranceLevel" />
  1835. </td>
  1836. <td colspan="2" rowspan="1">风力</td>
  1837. <td colspan="2" rowspan="1" class="border_l0">
  1838. <input type="text" v-model="table2.windLevel" />
  1839. </td>
  1840. <td colspan="2" rowspan="1" class="txt_left">级</td>
  1841. <td colspan="2" rowspan="1">风向</td>
  1842. <td colspan="3" rowspan="1">
  1843. <input type="text" v-model="table2.windDirection" />
  1844. </td>
  1845. </tr>
  1846. <tr>
  1847. <td colspan="2" rowspan="1" class="txt_left">
  1848. &nbsp;9.指挥扑火负责人
  1849. </td>
  1850. <td colspan="2" rowspan="1">单位</td>
  1851. <td colspan="11" rowspan="1">
  1852. <input type="text" v-model="table2.commandUnit" />
  1853. </td>
  1854. <td colspan="2" rowspan="1">姓名</td>
  1855. <td colspan="4" rowspan="1">
  1856. <input type="text" v-model="table2.commandName" />
  1857. </td>
  1858. <td colspan="2" rowspan="1">职务</td>
  1859. <td colspan="3" rowspan="1">
  1860. <input type="text" v-model="table2.commandPosition" />
  1861. </td>
  1862. </tr>
  1863. <tr>
  1864. <td colspan="2" rowspan="1" class="txt_left">
  1865. &nbsp;10.火场调查负责人
  1866. </td>
  1867. <td colspan="2" rowspan="1">单位</td>
  1868. <td colspan="11" rowspan="1">
  1869. <input type="text" v-model="table2.surveyUnit" />
  1870. </td>
  1871. <td colspan="2" rowspan="1">姓名</td>
  1872. <td colspan="4" rowspan="1">
  1873. <input type="text" v-model="table2.surveyName" />
  1874. </td>
  1875. <td colspan="2" rowspan="1">职务</td>
  1876. <td colspan="3" rowspan="1">
  1877. <input type="text" v-model="table2.surveyPosition" />
  1878. </td>
  1879. </tr>
  1880. <tr>
  1881. <td colspan="2" rowspan="1" class="txt_left">
  1882. &nbsp;11.火灾肇事人情况
  1883. </td>
  1884. <td colspan="2" rowspan="1">姓名</td>
  1885. <td colspan="2" rowspan="1">
  1886. <input type="text" v-model="table2.accidentName" />
  1887. </td>
  1888. <td colspan="2" rowspan="1">性别</td>
  1889. <td colspan="1" rowspan="1">
  1890. <input type="text" v-model="table2.accidentSex" />
  1891. </td>
  1892. <td colspan="3" rowspan="1">年龄</td>
  1893. <td colspan="1" rowspan="1">
  1894. <input type="text" v-model="table2.accidentAge" />
  1895. </td>
  1896. <td colspan="1" rowspan="1">职业</td>
  1897. <td colspan="1" rowspan="1">
  1898. <input type="text" v-model="table2.accidentPosition" />
  1899. </td>
  1900. <td colspan="2" rowspan="1">单位或住址</td>
  1901. <td colspan="9" rowspan="1">
  1902. <input type="text" v-model="table2.accidentUnit" />
  1903. </td>
  1904. </tr>
  1905. <tr>
  1906. <td colspan="2" rowspan="1" class="txt_left">
  1907. &nbsp;12.火灾处理情况
  1908. </td>
  1909. <td colspan="2" rowspan="1">处理方式</td>
  1910. <td colspan="4" rowspan="1">
  1911. <select v-model="table2.dealType">
  1912. <option>立案(刑事处理)</option>
  1913. <option>破案(刑事处理)</option>
  1914. <option>行政处理</option>
  1915. <option>待查</option>
  1916. <option>拘留</option>
  1917. <option>处理</option>
  1918. <option>未处理</option>
  1919. </select>
  1920. </td>
  1921. <td colspan="3" rowspan="1">已处理人数</td>
  1922. <td colspan="4" rowspan="1">
  1923. <input type="text" v-model="table2.dealNumber" />
  1924. </td>
  1925. <td colspan="4" rowspan="1">刑事处罚人数</td>
  1926. <td colspan="7" rowspan="1">
  1927. <input type="text" v-model="table2.criminalDealNumber" />
  1928. </td>
  1929. </tr>
  1930. <tr>
  1931. <td
  1932. colspan="2"
  1933. rowspan="1"
  1934. class="txt_left"
  1935. style="height: 60px"
  1936. >
  1937. &nbsp;13.对火灾肇事人<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;的处理情况
  1938. </td>
  1939. <td colspan="24" rowspan="1" class="txt_left">
  1940. <textarea v-model="table2.accidentDealSituation"></textarea>
  1941. </td>
  1942. </tr>
  1943. <tr>
  1944. <td
  1945. colspan="2"
  1946. rowspan="1"
  1947. class="txt_left"
  1948. style="height: 60px"
  1949. >
  1950. &nbsp;14.对责任人员的<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;责任人追查情况
  1951. </td>
  1952. <td colspan="24" rowspan="1" class="txt_left">
  1953. <textarea
  1954. v-model="table2.responsibilityDealSituation"
  1955. ></textarea>
  1956. </td>
  1957. </tr>
  1958. <tr>
  1959. <td
  1960. colspan="2"
  1961. rowspan="1"
  1962. class="txt_left"
  1963. style="height: 60px"
  1964. >
  1965. &nbsp;15.对有关领导的<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;责任追查情况
  1966. </td>
  1967. <td colspan="24" rowspan="1" class="txt_left">
  1968. <textarea v-model="table2.leadershipDealSituation"></textarea>
  1969. </td>
  1970. </tr>
  1971. <tr class="tr_border">
  1972. <td colspan="4" rowspan="1">县(市、区、局、站)填表人:</td>
  1973. <td colspan="2" rowspan="1">
  1974. <input type="text" v-model="table2.townForm" />
  1975. </td>
  1976. <td colspan="4" rowspan="1">县(市、区、局、站)审核人:</td>
  1977. <td colspan="3" rowspan="1">
  1978. <input type="text" v-model="table2.townAudit" />
  1979. </td>
  1980. <td colspan="4" rowspan="1">市(州、管委会)填表人:</td>
  1981. <td colspan="2" rowspan="1">
  1982. <input type="text" v-model="table2.cityForm" />
  1983. </td>
  1984. <td colspan="4" rowspan="1">市(州、管委会)审核人:</td>
  1985. <td colspan="3" rowspan="1">
  1986. <input type="text" v-model="table2.cityAudit" />
  1987. </td>
  1988. </tr>
  1989. </tbody>
  1990. </table>
  1991. <div class="btm-btn-group">
  1992. <el-button
  1993. size="mini"
  1994. type="primary"
  1995. @click="updateCentereventTEventcatalogueStatus('gd', true)"
  1996. >归档
  1997. </el-button>
  1998. <el-button size="mini" type="primary" @click="regionalFlagAdd()"
  1999. >火灾区域
  2000. </el-button>
  2001. </div>
  2002. </form>
  2003. </div>
  2004. </el-dialog>
  2005. <!-- 添加区域标记 -->
  2006. <el-dialog title="火灾区域" :visible.sync="regionalFlagOpen" width="1000px">
  2007. <areaSupermap
  2008. ref="fireAreaSupermap"
  2009. v-if="regionalFlagOpen"
  2010. style="width: 100%; height: 74vh"
  2011. :mapDiv="'fireAreaSuperMap'"
  2012. :mapSite="{ doubleClickZoom: false }"
  2013. :codes="['9fa5']"
  2014. :isSideBySide="false"
  2015. :showAreaLatLng="showAreaLatLng"
  2016. ></areaSupermap>
  2017. <!-- <areaSupermap ref="fireAreaSupermap" v-if="regionalFlagOpen" :showAreaLatLng="showAreaLatLng"></areaSupermap> -->
  2018. </el-dialog>
  2019. <!-- 图片,视频预览 -->
  2020. <el-dialog
  2021. title="视频预览"
  2022. :visible.sync="showTcPlayer"
  2023. width="28%"
  2024. customClass="customWidthMp4"
  2025. >
  2026. <TcPlayer
  2027. ref="TcPlayer"
  2028. :playVideo="playVideo"
  2029. :widthHeigt="[100, 100]"
  2030. ></TcPlayer>
  2031. </el-dialog>
  2032. <el-dialog
  2033. :title="cameraTitle"
  2034. :visible.sync="cameraVisible"
  2035. v-if="cameraVisible"
  2036. customClass="videoCustomWidth"
  2037. @close="cancelEventLocationShow()"
  2038. >
  2039. <div style="width: 1020px; height: 625px; position: relative">
  2040. <!--视频窗口展示---海康-->
  2041. <div id="playWnd" class="playWnd" style="left: 0px; top: 0px"></div>
  2042. </div>
  2043. </el-dialog>
  2044. <el-dialog title="人员选择" :visible.sync="showFindUserByDept" width="40%">
  2045. <findUserByDept
  2046. v-if="showFindUserByDept"
  2047. ref="findUserByDept"
  2048. :deptId="iconCurrentIndex"
  2049. @addSelection="addSelection"
  2050. ></findUserByDept>
  2051. </el-dialog>
  2052. <TVWall ref="TVWall"></TVWall>
  2053. </div>
  2054. </template>
  2055. <script>
  2056. import html2canvas from "html2canvas"; //截图组件
  2057. import supermapDialog from "@/components/supermap"; //超图
  2058. import TVWall from "@/components/TVWall.vue"; //电视墙弹窗
  2059. import vBottomMenu from "@/components/vBottomMenu.vue"; //一体化公共底部菜单
  2060. import eventLogUpload from "@/views/eventLogUpload.vue"; //日志上传文件
  2061. import areaSupermap from "@/components/supermap"; //区域标记地图
  2062. import TcPlayer from "@/components/TcPlayer"; //视频预览
  2063. import findUserByDept from "@/views/findUserByDept"; //责任人选择弹框
  2064. import leftRightSwiperScroll from "@/components/leftRightSwiperScroll.vue"; //事件中心底部资源内容溢出组件
  2065. import "animate.css"; //动画库
  2066. import { getIconBg } from "@/api/components/sookaMapIcon"; //资源底色控制文件
  2067. import request from "@/utils/request";
  2068. import {
  2069. fireControlViewPoint,
  2070. fireControlViewList,
  2071. getEventDetail,
  2072. sendEventLog,
  2073. listSJfl,
  2074. listYuAn,
  2075. selectByeventCode,
  2076. updateCentereventTEventcatalogueStatus,
  2077. sendTask,
  2078. listResourceByWz,
  2079. updateYjYuAn,
  2080. uploadBase64,
  2081. centereventtdepteventList,
  2082. dutysystemList,
  2083. dutysystemAdd,
  2084. dutysystemRemove,
  2085. sendMessage,
  2086. userFeginlist,
  2087. eventExamine,
  2088. eventHandling,
  2089. initByCameras,
  2090. dutysystemRemove_direct,
  2091. dutysystemList_direct,
  2092. centereventtdepteventList_direct,
  2093. dutysystemAdd_direct,
  2094. listYuAn_direct,
  2095. updateYjYuAn_direct,
  2096. listSJfl_direct,
  2097. selectByeventCode_direct,
  2098. getEventDetail_direct, eventHandling_direct, sendTask_direct
  2099. } from "@/api/forest";
  2100. import { joinConferences } from "@/api/meeting";
  2101. import { treeselectAll as deptTreeselect } from "@/api/system/dept";
  2102. import { getHaiKangVideoServer } from "@/api/haikang/haikang";
  2103. import { hasConferences, createConferences, getUserInfo } from "@/api/meeting";
  2104. import { getDahuaVideoServer } from "@/api/dahua/dahua";
  2105. import DHWs from "@/dahua/lib/DHWs";
  2106. import { selectConfigKey } from "@/api/system/config";
  2107. import Cookies from "js-cookie";
  2108. import {getBroadcast} from "@/api/datacenter";
  2109. export default {
  2110. dicts: ["task_source"],
  2111. watch: {
  2112. filterText(val) {
  2113. this.$refs.LiandongDept.filter(val);
  2114. },
  2115. },
  2116. components: {
  2117. leftRightSwiperScroll,
  2118. TVWall,
  2119. vBottomMenu,
  2120. supermapDialog,
  2121. eventLogUpload,
  2122. areaSupermap,
  2123. TcPlayer,
  2124. findUserByDept,
  2125. },
  2126. data() {
  2127. return {
  2128. centermonitorTCamera:null,
  2129. //地图tool开关
  2130. mapToolShow: false,
  2131. mapToolCheckAll: false,
  2132. mapToolCheck: ["应急预案", "地图标绘", "资源与操作"],
  2133. mapToolCheckItem: [],
  2134. mapToolShowBH:false,
  2135. // isIndeterminate: true,
  2136. isLoading: false,
  2137. showFindUserByDept: false, //责任人选择框
  2138. //海康
  2139. cameraTitle: "",
  2140. cameraCode: "",
  2141. cameraVisible: false,
  2142. initCount: 0,
  2143. pubKey: "",
  2144. oWebControl: null,
  2145. version: 0,
  2146. playVideo: "", //视频预览地址
  2147. showTcPlayer: false, //视频预览弹窗
  2148. regionalFlagOpen: false, //区域标记
  2149. //区域标记
  2150. regionalFlagObj: {
  2151. array: [],
  2152. },
  2153. filterText: "", //树搜索
  2154. /** *****************事件流程***************************/
  2155. deptNameitem: "签收部门",
  2156. sendDeptId: null, //签收部门/发起部门
  2157. sendDeptName: null, //签收部门/发起部门
  2158. sendEventType: null, //事件类型
  2159. sendHuoZaiBanJing: 0, //火灾报告
  2160. sendGuanLianYuAn: null, //关联预案
  2161. sendUserFegin: [], //联系人
  2162. sendTaskSource: null, //任务来源
  2163. sendTaskTitle: null, //联动标题
  2164. sendTaskContent: null, //联动内容
  2165. sendLianDongDept: [], //联动部门
  2166. eventTypeList: [], //事件类型列表
  2167. guanLianYuAnList: [], //关联预案列表
  2168. userFeginList: [], //联系人列表
  2169. deptOptions: [], //签收部门
  2170. deptOptionsLiandong: [], //联动部门
  2171. eventStatusButton: null, //流程按钮标识
  2172. eventConfirmTitle: null, //弹窗标题 ---签收 误报 重复 审核意见
  2173. eventDescription: null, //审核意见
  2174. uploadAttachList: [], //审核上传图片回显集合
  2175. attachExamine: [], //审核图片集合
  2176. defaultProps: {
  2177. children: "children",
  2178. label: "label",
  2179. },
  2180. table1: {
  2181. reportUnit: null,
  2182. reportTimeY: new Date().getFullYear(),
  2183. reportTimeM: new Date().getMonth() + 1,
  2184. reportTimeD: new Date().getDate(),
  2185. forestFireLossTotal: null,
  2186. fireLossTotal: null,
  2187. forestArea: null,
  2188. forestPrice: null,
  2189. treesNumber: null,
  2190. treesPrice: null,
  2191. minorInjuriesNumber: null,
  2192. minorInjuriesPrice: null,
  2193. seriouslyInjuredNumber: null,
  2194. seriouslyInjuredPrice: null,
  2195. deathNumber: null,
  2196. deathPrice: null,
  2197. elseFireLossPrice: null,
  2198. blazesPriceTotal: null,
  2199. artificialDays: null,
  2200. artificialPrice: null,
  2201. vehicleNumber: null,
  2202. carNumber: null,
  2203. vehiclePrice: null,
  2204. planeNumber: null,
  2205. planePrice: null,
  2206. elseBlazesPrice: null,
  2207. note: null,
  2208. },
  2209. table2: {
  2210. fireTime: null,
  2211. foundTime: null,
  2212. blazesTime: null,
  2213. address: null,
  2214. firePlace: null,
  2215. foundType: null,
  2216. longitudeD: null,
  2217. longitudeM: null,
  2218. longitudeS: null,
  2219. latitudeD: null,
  2220. latitudeM: null,
  2221. latitudeS: null,
  2222. fireSource: null,
  2223. fireType: null,
  2224. fireLevel: null,
  2225. areaTotal: 0,
  2226. forestLossAreaTotal: null,
  2227. originalForestArea: null,
  2228. artificialForestArea: null,
  2229. peopleTotal: 0,
  2230. blazesTeamNumber: null,
  2231. policeNumber: null,
  2232. armyNumber: null,
  2233. crowdNumber: null,
  2234. windExtinguisher: null,
  2235. secondTool: null,
  2236. waterGun: null,
  2237. elseThings: null,
  2238. forestComposition: "无",
  2239. forestToken: "无",
  2240. porosities: "无",
  2241. weather: null,
  2242. temperature: null,
  2243. fireInsuranceLevel: null,
  2244. windLevel: null,
  2245. windDirection: null,
  2246. commandUnit: null,
  2247. commandName: null,
  2248. commandPosition: null,
  2249. surveyUnit: null,
  2250. surveyName: null,
  2251. surveyPosition: null,
  2252. accidentName: null,
  2253. accidentSex: null,
  2254. accidentAge: null,
  2255. accidentPosition: null,
  2256. accidentUnit: null,
  2257. dealType: null,
  2258. dealNumber: null,
  2259. criminalDealNumber: null,
  2260. accidentDealSituation: null,
  2261. responsibilityDealSituation: null,
  2262. leadershipDealSituation: null,
  2263. townForm: null,
  2264. townAudit: null,
  2265. cityForm: null,
  2266. cityAudit: null,
  2267. },
  2268. /** *****************事件流程***************************/
  2269. showEventConfirm: false, //事件签收弹窗
  2270. showGuanLianYuAnConfirm: false, //调整关联预案弹窗
  2271. showEventConfirm_gd: false, //事件火险报告弹窗
  2272. address: null, //事件上报地址
  2273. eventStatusValue: null, //事件状态
  2274. isExamine: "0", //事件审核 1通过 0不通过
  2275. eventId: null, //事件ID
  2276. eventType: null, //事件类型-大类
  2277. eventTypeXl: null, //事件类型-小类
  2278. statusFlag: null, //事件流程按钮
  2279. dataStatus: null, //事件处置按钮
  2280. deptId: null, //事件流程部门
  2281. eventCode: null,
  2282. eventName: null,
  2283. longitude: null,
  2284. latitude: null,
  2285. eventLog: null,
  2286. eventLogList: [],
  2287. visuForestCloudYuAnBo: null,
  2288. eventDialog: false,
  2289. showResponsibilityDialog: false, //责任制弹窗
  2290. showMeetingMsgDialog: false, //发送会议短信弹窗
  2291. depteventList: [], //责任制部门列表
  2292. iconCurrentIndex: "",
  2293. dutysystemDeptName: "",
  2294. depteventId: "",
  2295. dutysystemTableData: [],
  2296. radius: 5000, //资源搜索半径
  2297. resourcesList: [
  2298. {
  2299. resourceName: "取水口",
  2300. type: "qsk",
  2301. count: "1",
  2302. icon: "sj-icon-waterintake",
  2303. },
  2304. {
  2305. resourceName: "水鹤",
  2306. type: "sh",
  2307. icon: "sj-icon-watercrane",
  2308. },
  2309. {
  2310. resourceName: "消防栓",
  2311. type: "xfs",
  2312. count: "1",
  2313. icon: "sj-icon-firehydrant",
  2314. },
  2315. {
  2316. resourceName: "起降点",
  2317. type: "qjd",
  2318. count: "1",
  2319. icon: "sj-icon-landing",
  2320. },
  2321. {
  2322. resourceName: "检查站",
  2323. type: "jcz",
  2324. count: "1",
  2325. icon: "sj-icon-checkpoint",
  2326. },
  2327. {
  2328. resourceName: "防火队",
  2329. type: "fhd",
  2330. count: "1",
  2331. icon: "sj-icon-fireteam",
  2332. },
  2333. {
  2334. resourceName: "重点区域",
  2335. type: "zdqy",
  2336. count: "1",
  2337. icon: "sj-icon-keyAreas",
  2338. },
  2339. {
  2340. resourceName: "摄像头",
  2341. type: "sxt",
  2342. count: "1",
  2343. icon: "sj-icon-jkzx",
  2344. },
  2345. ],
  2346. resourcesListCheck: [],
  2347. //文本域
  2348. feedback: "",
  2349. };
  2350. },
  2351. props: {
  2352. calendarDay: null, //首页日历选择
  2353. },
  2354. created() {
  2355. this.closedEventDiaTool()
  2356. // this.isLoading = true;
  2357. /** ----------------------------------摄像头预览开始------------------------------------- */
  2358. const DHWsInstance = DHWs.getInstance();
  2359. this.ws = DHWsInstance;
  2360. /** ----------------------------------摄像头预览结束------------------------------------- */
  2361. },
  2362. methods: {
  2363. truncateText(text, length) {
  2364. if (text.length <= length) {
  2365. return text;
  2366. } else {
  2367. return text.substr(0, length) + "...";
  2368. }
  2369. },
  2370. closedEventDiaTool() {
  2371. document.addEventListener("click", (e) => {
  2372. let b = document.getElementById("eventMapToolOnly");
  2373. let c = document.getElementById("eventMapToolOnlyButton");
  2374. if (this.mapToolShow && !b.contains(e.target) && !c.contains(e.target)) {
  2375. this.mapToolShow = false;
  2376. }
  2377. });
  2378. },
  2379. // 地图tool显隐
  2380. mapToolCheckAllChange(val) {
  2381. this.mapToolCheckItem = [];
  2382. this.mapToolCheckItem = val ? this.mapToolCheck : [];
  2383. // this.isIndeterminate = false;
  2384. this.mapToolCheckChangeBH()
  2385. },
  2386. mapToolCheckChangeBH(){
  2387. if (this.mapToolCheckItem.includes("地图标绘")) {
  2388. this.mapToolShowBH= true
  2389. } else {
  2390. this.mapToolShowBH= false
  2391. }
  2392. },
  2393. mapToolCheckChange(value) {
  2394. let checkedCount = value.length;
  2395. this.mapToolCheckAll = checkedCount === this.mapToolCheck.length;
  2396. this.mapToolCheckChangeBH()
  2397. },
  2398. // 获取消防左侧菜单列表
  2399. fireControlViewList() {
  2400. this.resourcesList = [];
  2401. let _this = this;
  2402. fireControlViewList("xiaofang").then(function (res) {
  2403. // _this.resourcesList = res.data
  2404. //截取data.resourceTable字段中“_”分隔符最后一个作为关键字,重新拼接成前端需要的图标:class,格式sj-icon-xxxx,将其set回原数组
  2405. res.data.forEach(function (data, index) {
  2406. let obj = {};
  2407. let icon =
  2408. "sj" +
  2409. "-" +
  2410. "icon" +
  2411. "-" +
  2412. data.type.replaceAll("_", "-").replaceAll("@", "-");
  2413. let resourceName = data.name.replaceAll("(个)", "");
  2414. obj.resourceName = resourceName;
  2415. obj.type = data.type;
  2416. obj.count = data.num;
  2417. obj.icon = icon;
  2418. _this.resourcesList.push(obj);
  2419. console.log("icon_" + (index + 1) + "=", icon);
  2420. //每个图标对应固定颜色
  2421. _this.$set(_this.resourcesList[index], "bg", getIconBg(icon));
  2422. });
  2423. _this.resourcesList.push({
  2424. resourceName: "摄像头",
  2425. type: "sxt",
  2426. count: "1",
  2427. icon: "sj-icon-jkzx",
  2428. bg: "#f5ad1b",
  2429. });
  2430. _this.resourcesList.push({
  2431. resourceName: "云广播",
  2432. type: "broadcast",
  2433. count: "1",
  2434. icon: "sj-icon-big-horn",
  2435. bg: "#841bf5",
  2436. });
  2437. });
  2438. },
  2439. jump() {
  2440. // 跳转云广播页面
  2441. window.open("https://sts.sty1818.com");
  2442. },
  2443. /************************************责任制-开始****************************************/
  2444. addLine: function () {
  2445. //添加负责人行数
  2446. var newValue = {
  2447. id: "", //主键
  2448. userId: "", //用户主键
  2449. dept: "", //部门名称
  2450. depteventId: "", //事件部门关联责任人
  2451. name: "", //姓名
  2452. post: "", //岗位
  2453. telphone: "", //手机号addSelection
  2454. };
  2455. //添加新的行数
  2456. this.dutysystemTableData.push(newValue);
  2457. },
  2458. finUserByDept: function () {
  2459. //根据部门选择责任人
  2460. this.showFindUserByDept = true;
  2461. },
  2462. addSelection: function (userList) {
  2463. for (let i in this.dutysystemTableData) {
  2464. for (let j in userList) {
  2465. if (
  2466. this.dutysystemTableData[i].name == userList[j].name &&
  2467. this.dutysystemTableData[i].telphone == userList[j].telphone
  2468. ) {
  2469. userList.splice(j, 1);
  2470. }
  2471. }
  2472. }
  2473. this.dutysystemTableData = this.dutysystemTableData.concat(userList);
  2474. this.showFindUserByDept = false;
  2475. },
  2476. handleDelete: function (index, row) {
  2477. //删除负责人行数
  2478. if (row.id != null && row.id != "") {
  2479. let param = {
  2480. ids: row.id,
  2481. };
  2482. dutysystemRemove_direct(param.ids).then((res) => {
  2483. this.$message.success(`删除成功!`);
  2484. this.dutysystemSelect(
  2485. this.iconCurrentIndex,
  2486. this.dutysystemDeptName,
  2487. this.depteventId
  2488. );
  2489. });
  2490. } else {
  2491. this.dutysystemTableData.splice(index, 1);
  2492. }
  2493. },
  2494. handleSave: function (index, rowData) {
  2495. //保存负责人行数
  2496. rowData.dept = this.dutysystemDeptName;
  2497. rowData.depteventId = this.depteventId;
  2498. dutysystemAdd_direct(rowData).then((res) => {
  2499. this.$message.success(`保存成功!`);
  2500. this.dutysystemSelect(
  2501. this.iconCurrentIndex,
  2502. this.dutysystemDeptName,
  2503. this.depteventId
  2504. );
  2505. });
  2506. },
  2507. dutysystemSelect: function (deptId, dutysystemDeptName, depteventId) {
  2508. //通过部门查询负责人信息
  2509. this.dutysystemDeptName = dutysystemDeptName;
  2510. this.depteventId = depteventId;
  2511. this.iconCurrentIndex = deptId;
  2512. let param = {
  2513. depteventId: depteventId,
  2514. };
  2515. dutysystemList_direct(param).then((res) => {
  2516. if (res.data != null && res.data.length > 0) {
  2517. this.dutysystemTableData = res.data;
  2518. } else {
  2519. this.dutysystemTableData = [];
  2520. }
  2521. });
  2522. },
  2523. showResponsibility() {
  2524. //弹出责任制弹窗
  2525. //初始化责任制数据列表
  2526. this.dutysystemTableData = [];
  2527. let param = {
  2528. eventCode: this.eventCode,
  2529. };
  2530. centereventtdepteventList_direct(param).then((res) => {
  2531. this.depteventList = res.data;
  2532. this.showResponsibilityDialog = true;
  2533. });
  2534. },
  2535. closeResponsibilityDialog() {
  2536. //责任制关闭
  2537. this.dutysystemTableData = [];
  2538. this.dutysystemDeptName = "";
  2539. this.depteventId = "";
  2540. this.iconCurrentIndex = "";
  2541. this.showResponsibilityDialog = false;
  2542. },
  2543. closeMeetingMsgDialog() {
  2544. //会议弹窗关闭
  2545. this.dutysystemTableData = [];
  2546. this.dutysystemDeptName = "";
  2547. this.depteventId = "";
  2548. this.iconCurrentIndex = "";
  2549. this.showMeetingMsgDialog = false;
  2550. },
  2551. addResponsibilityDialog() {
  2552. //责任制保存
  2553. console.log(this.dutysystemTableData);
  2554. let reg_user = /^[\u4e00-\u9fa5]{2,4}$/; //2-4个中文字符正则
  2555. let reg_tel =
  2556. /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/; //11位手机号码正则
  2557. for (let i in this.dutysystemTableData) {
  2558. if (!reg_user.test(this.dutysystemTableData[i].name)) {
  2559. this.$message.error(`请输入正确姓名!`);
  2560. return;
  2561. }
  2562. if (!reg_tel.test(this.dutysystemTableData[i].telphone)) {
  2563. this.$message.error(`请输入正确手机号码!`);
  2564. return;
  2565. }
  2566. if (
  2567. this.dutysystemTableData[i].id == null ||
  2568. this.dutysystemTableData[i].id == ""
  2569. ) {
  2570. this.dutysystemTableData[i].dept = this.dutysystemDeptName;
  2571. this.dutysystemTableData[i].depteventId = this.depteventId;
  2572. }
  2573. }
  2574. const param = {
  2575. centereventTDutySystemList: this.dutysystemTableData,
  2576. eventCode: this.eventCode,
  2577. eventName: this.eventName,
  2578. };
  2579. dutysystemAdd_direct(param).then((res) => {
  2580. this.$message.success(`保存成功!`);
  2581. this.dutysystemSelect(
  2582. this.iconCurrentIndex,
  2583. this.dutysystemDeptName,
  2584. this.depteventId
  2585. );
  2586. this.closeResponsibilityDialog();
  2587. });
  2588. },
  2589. /************************************责任制-结束****************************************/
  2590. showheatPlotting() {
  2591. // if (!this.$refs.supermapDialog.isheatPlotting) {
  2592. // this.$refs.supermapDialog.showheatPlotting(this.latitude, this.longitude)
  2593. // } else {
  2594. // this.$refs.supermapDialog.isheatPlotting = false
  2595. // }
  2596. // this.cancelEventShow();
  2597. this.eventDialog = false;
  2598. this.$emit('showEventDialog', this.eventCode);
  2599. },
  2600. showTVWallDiaLog() {
  2601. this.initByCameras();
  2602. // this.$refs.TVWall.showTVWall();
  2603. },
  2604. showTVWall(channelCode, channelName) {
  2605. let tvListJson = [
  2606. {
  2607. switchTab: "2",
  2608. treeLabels: [
  2609. {
  2610. id: null,
  2611. labelCode: "999",
  2612. labelName: "电视墙",
  2613. cameraType: null,
  2614. parentLabelCode: "",
  2615. },
  2616. {
  2617. id: "spcamera00010",
  2618. labelCode: channelCode,
  2619. labelName: channelName,
  2620. cameraType: "1",
  2621. parentLabelCode: "999",
  2622. },
  2623. ],
  2624. labelChannels: [
  2625. {
  2626. labelCode: channelCode,
  2627. channelDates: [
  2628. {
  2629. channelCode: channelCode,
  2630. channelName: channelName,
  2631. channelSn: null,
  2632. cameraType: "1",
  2633. online: "1",
  2634. cameraCode: "1",
  2635. },
  2636. ],
  2637. },
  2638. ],
  2639. },
  2640. ];
  2641. this.$refs.TVWall.showTVWall(tvListJson, [
  2642. {
  2643. channelId: channelCode,
  2644. },
  2645. ]);
  2646. this.$refs.bottomMenu.showMeasure = false;
  2647. this.$refs.bottomMenu.showChild = false;
  2648. this.$refs.bottomMenu.showBanChild = false;
  2649. this.$refs.bottomMenu.showChangChild = false;
  2650. },
  2651. initByCameras() {
  2652. // const params = Object.assign({})
  2653. // params.longitude = this.longitude;
  2654. // params.latitude = this.latitude;
  2655. // params.type = '8'
  2656. // initByCameras(params).then(res => {
  2657. // this.$refs.TVWall.showTVWall1(this.longitude, this.latitude, res.data);
  2658. // this.$refs.bottomMenu.showMeasure = false
  2659. // this.$refs.bottomMenu.showChild = false
  2660. // this.$refs.bottomMenu.showBanChild = false
  2661. // this.$refs.bottomMenu.showChangChild = false
  2662. // })
  2663. let that = this
  2664. if(that.centermonitorTCamera == null){
  2665. this.$message.warning("当前事件无绑定摄像头")
  2666. return
  2667. }
  2668. let tvListJson = [{
  2669. "switchTab": "2",
  2670. "treeLabels": [{
  2671. "id": null,
  2672. "labelCode": "999",
  2673. "labelName": "电视墙",
  2674. "cameraType": null,
  2675. "parentLabelCode": ""
  2676. },
  2677. {
  2678. "id": "spcamera00010",
  2679. "labelCode": that.centermonitorTCamera.cameraCode,
  2680. "labelName": that.centermonitorTCamera.cameraName,
  2681. "cameraType": that.centermonitorTCamera.cameraType,
  2682. "parentLabelCode": "999"
  2683. }
  2684. ],
  2685. "labelChannels": [{
  2686. "labelCode": that.centermonitorTCamera.cameraCode,
  2687. "channelDates": [{
  2688. "channelCode": that.centermonitorTCamera.cameraCode,
  2689. "channelName": that.centermonitorTCamera.cameraName,
  2690. "channelSn": null,
  2691. "cameraType": that.centermonitorTCamera.cameraType,
  2692. "online": "1",
  2693. "cameraCode": null
  2694. }]
  2695. }]
  2696. }]
  2697. this.$refs.TVWall.showTVWall1(this.longitude, this.latitude, tvListJson);
  2698. this.$refs.bottomMenu.showMeasure = false
  2699. this.$refs.bottomMenu.showChild = false
  2700. this.$refs.bottomMenu.showBanChild = false
  2701. this.$refs.bottomMenu.showChangChild = false
  2702. },
  2703. showUpdateYjYuAn() {
  2704. listYuAn_direct({}).then((res) => {
  2705. //关联预案列表
  2706. if (res.code == 200) {
  2707. this.guanLianYuAnList = res.data;
  2708. this.showGuanLianYuAnConfirm = true;
  2709. }
  2710. });
  2711. },
  2712. updateYjYuAn() {
  2713. if (
  2714. this.eventStatusValue == "forest_event_status_1" ||
  2715. this.eventStatusValue == "forest_event_status_7"
  2716. ) {
  2717. this.$message.error(`修改预案信息在签收后方可修改!`);
  2718. return;
  2719. } else if (this.eventStatusValue == "forest_event_status_3") {
  2720. this.$message.error(`误报事件无法修改预案信息!`);
  2721. return;
  2722. } else {
  2723. let param = {
  2724. eventCode: this.eventCode,
  2725. reserve: this.sendGuanLianYuAn,
  2726. };
  2727. if (this.sendGuanLianYuAn == "" || this.sendGuanLianYuAn == null) {
  2728. this.$message.error(`请选择预案信息!`);
  2729. return;
  2730. }
  2731. updateYjYuAn_direct(param).then((res) => {
  2732. //事件调整关联预案
  2733. if (res.code == 200) {
  2734. this.$message.success(`预案调整成功!`);
  2735. this.refreshEventDialog(this.eventCode);
  2736. this.sendGuanLianYuAn = null;
  2737. this.showGuanLianYuAnConfirm = false;
  2738. }
  2739. });
  2740. }
  2741. },
  2742. fireControlViewPoint(type) {
  2743. // alert(type)
  2744. if (this.resourcesListCheck.indexOf(type) > -1) {
  2745. this.resourcesListCheck.splice(
  2746. this.resourcesListCheck.indexOf(type),
  2747. 1
  2748. );
  2749. setTimeout(() => {
  2750. this.$refs.supermapDialog.clearMByType(type);
  2751. }, 1000);
  2752. } else {
  2753. // 消防资源落点
  2754. let param = {
  2755. longitude: this.longitude,
  2756. latitude: this.latitude,
  2757. type: type,
  2758. radius: this.radius,
  2759. };
  2760. if (type != "sxt"&&type!="broadcast") {
  2761. fireControlViewPoint(param).then((res) => {
  2762. if (res.data != null && res.data.pointList.length > 0) {
  2763. this.resourcesListCheck.push(type);
  2764. var markersList = [];
  2765. for (let i = 0; i < res.data.pointList.length; i++) {
  2766. let markersMap = {
  2767. lng: 124.59,
  2768. lat: 43.02,
  2769. icon: "marker",
  2770. bindPopupHtml: "",
  2771. click: "",
  2772. parameter: "",
  2773. keepBindPopup: false,
  2774. isAggregation: true,
  2775. };
  2776. markersMap.icon = "sj-icon-map-" + type.replaceAll("_", "-");
  2777. markersMap.lng = res.data.pointList[i].longitude;
  2778. markersMap.lat = res.data.pointList[i].latitude;
  2779. markersMap.bindPopupHtml =
  2780. '<div class="map-tip">' +
  2781. "<span>" +
  2782. ' <div class="d-l-con">' +
  2783. ' <div class="d-l-l-text">' +
  2784. " <h4>资源名称:" +
  2785. res.data.pointList[i].name +
  2786. "</h4>" +
  2787. " </div>" +
  2788. " </div>" +
  2789. " </span>" +
  2790. "<span>" +
  2791. ' <div class="d-l-con">' +
  2792. ' <div class="d-l-l-text">' +
  2793. " <h4>经纬度:" +
  2794. res.data.pointList[i].longitude +
  2795. "," +
  2796. res.data.pointList[i].latitude +
  2797. "</h4>" +
  2798. " </div>" +
  2799. " </div>" +
  2800. " </span>" +
  2801. "<span>" +
  2802. ' <div class="d-l-con">' +
  2803. ' <div class="d-l-l-text">' +
  2804. " <h4>名称:" +
  2805. (res.data.pointList[i].name?res.data.pointList[i].name:'无') +
  2806. "</h4>" +
  2807. " </div>" +
  2808. " </div>" +
  2809. " </span>" +
  2810. "<span>" +
  2811. ' <div class="d-l-con">' +
  2812. ' <div class="d-l-l-text">' +
  2813. " <h4>地址:" +
  2814. (res.data.pointList[i].address?res.data.pointList[i].address:'无') +
  2815. "</h4>" +
  2816. " </div>" +
  2817. " </div>" +
  2818. " </span>" +
  2819. "<span>" +
  2820. ' <div class="d-l-con">' +
  2821. ' <div class="d-l-l-text">' +
  2822. " <h4>联系人:" +
  2823. (res.data.pointList[i].contacts?res.data.pointList[i].contacts:'无') +
  2824. "</h4>" +
  2825. " </div>" +
  2826. " </div>" +
  2827. " </span>" +
  2828. "<span>" +
  2829. ' <div class="d-l-con">' +
  2830. ' <div class="d-l-l-text">' +
  2831. " <h4>电话:" +
  2832. (res.data.pointList[i].phone?res.data.pointList[i].phone:'无') +
  2833. "</h4>" +
  2834. " </div>" +
  2835. " </div>" +
  2836. " </span>" +
  2837. "<span>" +
  2838. ' <div class="d-l-con">' +
  2839. ' <div class="d-l-l-text">' +
  2840. " <h4>距离事件距离:" +
  2841. (res.data.pointList[i].distance?res.data.pointList[i].distance+'米':'无') +
  2842. "</h4>" +
  2843. " </div>" +
  2844. " </div>" +
  2845. " </span>" +
  2846. "</div>";
  2847. markersList.push(markersMap);
  2848. }
  2849. setTimeout(() => {
  2850. this.$refs.supermapDialog.setMarkersByType(markersList, type);
  2851. }, 1000);
  2852. } else {
  2853. this.$message.warning("当前点位附近无资源数据");
  2854. }
  2855. });
  2856. }
  2857. else if(type=="sxt"){
  2858. this.listResourceByWz(type);
  2859. }
  2860. else if(type=="broadcast"){
  2861. this.listResourceBybroadcast(type);
  2862. }
  2863. }
  2864. },
  2865. listResourceBybroadcast(type) {
  2866. if (this.resourcesListCheck.indexOf(type) > -1) {
  2867. this.resourcesListCheck.splice(
  2868. this.resourcesListCheck.indexOf(type),
  2869. 1
  2870. );
  2871. setTimeout(() => {
  2872. this.$refs.supermapDialog.clearMByType(type);
  2873. }, 1000);
  2874. } else {
  2875. //搜索物资
  2876. let param = {
  2877. longitude: this.longitude,
  2878. latitude: this.latitude,
  2879. type: 5,
  2880. distance: this.radius,
  2881. };
  2882. getBroadcast(param).then(res => {
  2883. if(res.data!=null&&res.data.length==0){
  2884. this.$message.warning("设定范围内无该资源信息!")
  2885. }
  2886. if (res.data != null && res.data.length > 0) {
  2887. this.resourcesListCheck.push(type);
  2888. var markersList = [];
  2889. for (let i = 0; i < res.data.length; i++) {
  2890. let markersMap = {
  2891. lng: 124.59,
  2892. lat: 43.02,
  2893. icon: "big-horn",
  2894. click: "jump",
  2895. bindPopupHtml: "",
  2896. parameter: "",
  2897. keepBindPopup: false,
  2898. isAggregation: true,
  2899. };
  2900. if (type == "qsk") {
  2901. markersMap.icon = "sj-icon-centerdata-t-forest-waterintake";
  2902. } else if (type == "sh") {
  2903. markersMap.icon = "sj-icon-centerdata-t-forest-watercrane";
  2904. } else if (type == "xfs") {
  2905. markersMap.icon = "sj-icon-centerdata-t-forest-firehydrant";
  2906. } else if (type == "qjd") {
  2907. markersMap.icon = "sj-icon-landing";
  2908. } else if (type == "jcz") {
  2909. markersMap.icon = "sj-icon-checkpoint";
  2910. } else if (type == "fhd") {
  2911. markersMap.icon = "sj-icon-fireteam";
  2912. } else if (type == "zdqy") {
  2913. markersMap.icon = "sj-icon-keyAreas";
  2914. } else if (type == "broadcast") {
  2915. markersMap.icon = "big-horn";
  2916. }
  2917. else if (type == "sxt") {
  2918. if (res.data[i].cameraUse == 1) {
  2919. if (res.data[i].workingStatus == '0') {
  2920. markersMap.icon = 'sj-icon-map-centerdata-slmonitor'
  2921. markersMap.click='preview'
  2922. } else {
  2923. markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor'
  2924. markersMap.click=''
  2925. }
  2926. }
  2927. else if (res.data[i].cameraUse == 2) {
  2928. if (res.data[i].workingStatus == '0') {
  2929. markersMap.icon = 'camera'
  2930. markersMap.click='preview'
  2931. } else {
  2932. markersMap.icon = 'camera-not'
  2933. markersMap.click=''
  2934. }
  2935. }
  2936. else if (res.data[i].cameraUse == 3) {
  2937. if (res.data[i].workingStatus == '0') {
  2938. markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
  2939. markersMap.click='preview'
  2940. } else {
  2941. markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor-traffic'
  2942. markersMap.click=''
  2943. }
  2944. }
  2945. else if (res.data[i].cameraUse == 5) {
  2946. if (res.data[i].workingStatus == '0') {
  2947. markersMap.icon = 'sj-icon-map-centerdata-river_camera'
  2948. markersMap.click='preview'
  2949. } else {
  2950. markersMap.icon = 'sj-icon-map-not-centerdata-river_camera'
  2951. markersMap.click=''
  2952. }
  2953. }
  2954. else if (res.data[i].cameraUse == 4) {
  2955. if (res.data[i].workingStatus == '0') {
  2956. markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
  2957. markersMap.click='preview'
  2958. } else {
  2959. markersMap.icon = 'sj-icon-map-not-centerdata-sand-quarry-camera'
  2960. markersMap.click=''
  2961. }
  2962. }
  2963. if (res.data[i].cameraCode != null) {
  2964. // markersMap.click = "preview";
  2965. // markersMap.parameter = res.data[i].cameraCode
  2966. markersMap.parameter = {
  2967. code: res.data[i].cameraCode,
  2968. type: res.data[i].cameraFactory
  2969. ? res.data[i].cameraFactory
  2970. : 1,
  2971. name: res.data[i].cameraName,
  2972. };
  2973. }
  2974. }
  2975. markersMap.lng = res.data[i].longitude;
  2976. markersMap.lat = res.data[i].latitude;
  2977. markersMap.bindPopupHtml =
  2978. '<div class="map-tip">' +
  2979. "<span>" +
  2980. ' <div class="d-l-con">' +
  2981. ' <div class="d-l-l-text">' +
  2982. " <h4>资源名称:" +
  2983. res.data[i].name +
  2984. "</h4>" +
  2985. " </div>" +
  2986. " </div>" +
  2987. " </span>" +
  2988. "</div>";
  2989. markersList.push(markersMap);
  2990. }
  2991. setTimeout(() => {
  2992. this.$refs.supermapDialog.setMarkersByType(markersList, type);
  2993. }, 1000);
  2994. }
  2995. });
  2996. }
  2997. },
  2998. //设置联动部门不可选择本部门
  2999. recursiveChildren(arrayList,deptId) {
  3000. arrayList.forEach((item, index) => {
  3001. if(item.id==deptId){
  3002. item.disabled="true";
  3003. return
  3004. }
  3005. if(item.children){
  3006. this.recursiveChildren(item.children,deptId)
  3007. }
  3008. });
  3009. },
  3010. listResourceByWz(type) {
  3011. if (this.resourcesListCheck.indexOf(type) > -1) {
  3012. this.resourcesListCheck.splice(
  3013. this.resourcesListCheck.indexOf(type),
  3014. 1
  3015. );
  3016. setTimeout(() => {
  3017. this.$refs.supermapDialog.clearMByType(type);
  3018. }, 1000);
  3019. } else {
  3020. //搜索物资
  3021. let param = {
  3022. longitude: this.longitude,
  3023. latitude: this.latitude,
  3024. type: type,
  3025. radius: this.radius,
  3026. };
  3027. // listResourceByWz(param).then((res) => {
  3028. request({
  3029. url: `/center-monitor/camera/findNearbyCameras/${param.longitude}/${param.latitude}/${param.radius}`,
  3030. method: 'get'
  3031. }).then(res => {
  3032. if(res.data!=null&&res.data.length==0){
  3033. this.$message.warning("设定范围内无该资源信息!")
  3034. }
  3035. if (res.data != null && res.data.length > 0) {
  3036. this.resourcesListCheck.push(type);
  3037. var markersList = [];
  3038. for (let i = 0; i < res.data.length; i++) {
  3039. let markersMap = {
  3040. lng: 124.59,
  3041. lat: 43.02,
  3042. icon: "marker",
  3043. bindPopupHtml: "",
  3044. click: "",
  3045. parameter: "",
  3046. keepBindPopup: false,
  3047. isAggregation: true,
  3048. };
  3049. if (type == "qsk") {
  3050. markersMap.icon = "sj-icon-centerdata-t-forest-waterintake";
  3051. } else if (type == "sh") {
  3052. markersMap.icon = "sj-icon-centerdata-t-forest-watercrane";
  3053. } else if (type == "xfs") {
  3054. markersMap.icon = "sj-icon-centerdata-t-forest-firehydrant";
  3055. } else if (type == "qjd") {
  3056. markersMap.icon = "sj-icon-landing";
  3057. } else if (type == "jcz") {
  3058. markersMap.icon = "sj-icon-checkpoint";
  3059. } else if (type == "fhd") {
  3060. markersMap.icon = "sj-icon-fireteam";
  3061. } else if (type == "zdqy") {
  3062. markersMap.icon = "sj-icon-keyAreas";
  3063. } else if (type == "sxt") {
  3064. if (res.data[i].cameraUse == 1) {
  3065. if (res.data[i].workingStatus == '0') {
  3066. markersMap.icon = 'sj-icon-map-centerdata-slmonitor'
  3067. markersMap.click='preview'
  3068. } else {
  3069. markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor'
  3070. markersMap.click=''
  3071. }
  3072. }
  3073. else if (res.data[i].cameraUse == 2) {
  3074. if (res.data[i].workingStatus == '0') {
  3075. markersMap.icon = 'camera'
  3076. markersMap.click='preview'
  3077. } else {
  3078. markersMap.icon = 'camera-not'
  3079. markersMap.click=''
  3080. }
  3081. }
  3082. else if (res.data[i].cameraUse == 3) {
  3083. if (res.data[i].workingStatus == '0') {
  3084. markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
  3085. markersMap.click='preview'
  3086. } else {
  3087. markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor-traffic'
  3088. markersMap.click=''
  3089. }
  3090. }
  3091. else if (res.data[i].cameraUse == 5) {
  3092. if (res.data[i].workingStatus == '0') {
  3093. markersMap.icon = 'sj-icon-map-centerdata-river_camera'
  3094. markersMap.click='preview'
  3095. } else {
  3096. markersMap.icon = 'sj-icon-map-not-centerdata-river_camera'
  3097. markersMap.click=''
  3098. }
  3099. }
  3100. else if (res.data[i].cameraUse == 4) {
  3101. if (res.data[i].workingStatus == '0') {
  3102. markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
  3103. markersMap.click='preview'
  3104. } else {
  3105. markersMap.icon = 'sj-icon-map-not-centerdata-sand-quarry-camera'
  3106. markersMap.click=''
  3107. }
  3108. }
  3109. if (res.data[i].cameraCode != null) {
  3110. // markersMap.click = "preview";
  3111. // markersMap.parameter = res.data[i].cameraCode
  3112. markersMap.parameter = {
  3113. code: res.data[i].cameraCode,
  3114. type: res.data[i].cameraFactory
  3115. ? res.data[i].cameraFactory
  3116. : 1,
  3117. name: res.data[i].cameraName,
  3118. };
  3119. }
  3120. }
  3121. markersMap.lng = res.data[i].longitude;
  3122. markersMap.lat = res.data[i].latitude;
  3123. markersMap.bindPopupHtml =
  3124. '<div class="map-tip">' +
  3125. "<span>" +
  3126. ' <div class="d-l-con">' +
  3127. ' <div class="d-l-l-text">' +
  3128. " <h4>资源名称:" +
  3129. res.data[i].cameraName +
  3130. "</h4>" +
  3131. " </div>" +
  3132. " </div>" +
  3133. " </span>" +
  3134. "</div>";
  3135. markersList.push(markersMap);
  3136. }
  3137. setTimeout(() => {
  3138. this.$refs.supermapDialog.setMarkersByType(markersList, type);
  3139. }, 1000);
  3140. }
  3141. });
  3142. }
  3143. },
  3144. // 返回图片列表
  3145. assetTypeAnImage(filePath) {
  3146. let imageList = [];
  3147. if (filePath != null && filePath.length > 0) {
  3148. for (let i = 0; i < filePath.length; i++) {
  3149. if (filePath[i].fileType == "image") {
  3150. imageList.push(filePath[i].fileUrl);
  3151. }
  3152. }
  3153. }
  3154. return imageList;
  3155. },
  3156. clickFile(fileUrl, fileName, fileType) {
  3157. if (fileType == "image") {
  3158. return;
  3159. } else if (fileType == "video") {
  3160. this.showTcPlayer = true;
  3161. setTimeout(() => {
  3162. this.playVideo = fileUrl;
  3163. }, 500);
  3164. } else {
  3165. let a = document.createElement("a");
  3166. a.download = fileName;
  3167. a.href = fileUrl;
  3168. a.target = "_blank";
  3169. a.click();
  3170. }
  3171. },
  3172. setValue(event) {
  3173. //签收选择部门
  3174. this.sendDeptName = event.label;
  3175. this.sendDeptId = event.value;
  3176. },
  3177. cancelEventConfirm() {
  3178. //关闭事件签收弹窗
  3179. this.sendDeptId = null;
  3180. this.sendDeptName = null;
  3181. this.sendUserFegin = [];
  3182. this.sendEventType = null;
  3183. this.sendHuoZaiBanJing = 0;
  3184. this.sendGuanLianYuAn = null;
  3185. // this.longitude = null
  3186. // this.latitude = null
  3187. this.sendTaskTitle = null;
  3188. this.sendTaskSource = null;
  3189. this.sendTaskContent = null;
  3190. this.sendLianDongDept = [];
  3191. this.eventTypeList = []; //事件类型列表
  3192. this.guanLianYuAnList = []; //关联预案列表
  3193. this.deptOptions = []; //签收部门
  3194. this.deptOptionsLiandong = []; //联动部门
  3195. this.eventStatusButton = null; //流程按钮标识
  3196. this.eventConfirmTitle = null; //流程按钮标识
  3197. this.resourcesListCheck = [];
  3198. this.userFeginList = []; //联系人列表
  3199. },
  3200. cancelEventConfirm_send() {
  3201. //清空表单数据
  3202. this.sendDeptId = null;
  3203. this.sendDeptName = null;
  3204. this.sendUserFegin = [];
  3205. this.sendEventType = null;
  3206. this.sendHuoZaiBanJing = 0;
  3207. this.sendGuanLianYuAn = null;
  3208. this.sendTaskTitle = null;
  3209. this.sendTaskSource = null;
  3210. this.sendTaskContent = null;
  3211. this.sendLianDongDept = [];
  3212. this.eventTypeList = []; //事件类型列表
  3213. this.guanLianYuAnList = []; //关联预案列表
  3214. this.deptOptions = []; //签收部门
  3215. this.deptOptionsLiandong = []; //联动部门
  3216. this.userFeginList = []; //联系人列表
  3217. },
  3218. cancelEventConfirm_gd() {
  3219. //关闭事件火险报告窗口
  3220. this.resetTable1();
  3221. this.resetTable2();
  3222. },
  3223. cancelEventConfirm_mp4() {
  3224. //关闭视频窗口
  3225. this.playVideo = "";
  3226. this.$refs.TcPlayer.destroyed();
  3227. },
  3228. resetTable1() {
  3229. this.table1 = {
  3230. reportUnit: null,
  3231. reportTimeY: null,
  3232. reportTimeM: null,
  3233. reportTimeD: null,
  3234. forestFireLossTotal: null,
  3235. fireLossTotal: null,
  3236. forestArea: null,
  3237. forestPrice: null,
  3238. treesNumber: null,
  3239. treesPrice: null,
  3240. minorInjuriesNumber: null,
  3241. minorInjuriesPrice: null,
  3242. seriouslyInjuredNumber: null,
  3243. seriouslyInjuredPrice: null,
  3244. deathNumber: null,
  3245. deathPrice: null,
  3246. elseFireLossPrice: null,
  3247. blazesPriceTotal: null,
  3248. artificialDays: null,
  3249. artificialPrice: null,
  3250. vehicleNumber: null,
  3251. carNumber: null,
  3252. vehiclePrice: null,
  3253. planeNumber: null,
  3254. planePrice: null,
  3255. elseBlazesPrice: null,
  3256. note: null,
  3257. };
  3258. },
  3259. resetTable2() {
  3260. this.table2 = {
  3261. fireTime: null,
  3262. foundTime: null,
  3263. blazesTime: null,
  3264. address: null,
  3265. firePlace: null,
  3266. foundType: null,
  3267. longitudeD: null,
  3268. longitudeM: null,
  3269. longitudeS: null,
  3270. latitudeD: null,
  3271. latitudeM: null,
  3272. latitudeS: null,
  3273. fireSource: null,
  3274. fireType: null,
  3275. fireLevel: null,
  3276. areaTotal: null,
  3277. forestLossAreaTotal: null,
  3278. originalForestArea: null,
  3279. artificialForestArea: null,
  3280. peopleTotal: null,
  3281. blazesTeamNumber: null,
  3282. policeNumber: null,
  3283. armyNumber: null,
  3284. crowdNumber: null,
  3285. windExtinguisher: null,
  3286. secondTool: null,
  3287. waterGun: null,
  3288. elseThings: null,
  3289. forestComposition: null,
  3290. forestToken: null,
  3291. porosities: null,
  3292. weather: null,
  3293. temperature: null,
  3294. fireInsuranceLevel: null,
  3295. windLevel: null,
  3296. windDirection: null,
  3297. commandUnit: null,
  3298. commandName: null,
  3299. commandPosition: null,
  3300. surveyUnit: null,
  3301. surveyName: null,
  3302. surveyPosition: null,
  3303. accidentName: null,
  3304. accidentSex: null,
  3305. accidentAge: null,
  3306. accidentPosition: null,
  3307. accidentUnit: null,
  3308. dealType: null,
  3309. dealNumber: null,
  3310. criminalDealNumber: null,
  3311. accidentDealSituation: null,
  3312. responsibilityDealSituation: null,
  3313. leadershipDealSituation: null,
  3314. townForm: null,
  3315. townAudit: null,
  3316. cityForm: null,
  3317. cityAudit: null,
  3318. };
  3319. },
  3320. getUrl(urlList) {
  3321. this.uploadAttachList = urlList;
  3322. this.attachExamine = [];
  3323. urlList.forEach((item) => {
  3324. var attachPath = {
  3325. attachPath: item.name,
  3326. };
  3327. this.attachExamine.push(attachPath);
  3328. });
  3329. },
  3330. /**
  3331. * eventStatusValue 事件状态
  3332. * isSend 是否办理
  3333. * */
  3334. async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
  3335. this.eventStatusButton = eventStatus;
  3336. let that = this;
  3337. if (!isSend) {
  3338. //事件弹窗
  3339. if (eventStatus == "qs") {
  3340. //签收
  3341. that.eventConfirmTitle = "事件签收";
  3342. let param = {
  3343. parentId: that.eventType,
  3344. };
  3345. if (that.eventTypeXl != null) {
  3346. that.sendEventType = that.eventTypeXl;
  3347. } else {
  3348. await listSJfl_direct(param).then((res) => {
  3349. //事件类型
  3350. if (res.code == 200) {
  3351. that.eventTypeList = res.data;
  3352. }
  3353. });
  3354. }
  3355. await listYuAn_direct({}).then((res) => {
  3356. //关联预案
  3357. if (res.code == 200) {
  3358. that.guanLianYuAnList = res.data;
  3359. }
  3360. });
  3361. await selectByeventCode_direct(that.eventCode).then((res) => {
  3362. //签收部门
  3363. if (res.code == 200) {
  3364. that.deptOptions = res.data;
  3365. that.deptNameitem = "签收部门";
  3366. }
  3367. });
  3368. that.showEventConfirm = true;
  3369. } else if (eventStatus == "qr") {
  3370. //确认
  3371. that.eventConfirmTitle = "事件确认";
  3372. } else if (eventStatus == "wb") {
  3373. //误报
  3374. that.eventConfirmTitle = "事件误报";
  3375. await selectByeventCode_direct(that.eventCode).then((res) => {
  3376. //签收部门
  3377. if (res.code == 200) {
  3378. that.deptOptions = res.data;
  3379. that.deptNameitem = "签收部门";
  3380. }
  3381. });
  3382. that.showEventConfirm = true;
  3383. } else if (eventStatus == "cf") {
  3384. //重复
  3385. that.eventConfirmTitle = "事件重复";
  3386. await selectByeventCode_direct(that.eventCode).then((res) => {
  3387. //签收部门
  3388. if (res.code == 200) {
  3389. that.deptOptions = res.data;
  3390. that.deptNameitem = "签收部门";
  3391. }
  3392. });
  3393. that.showEventConfirm = true;
  3394. } else if (eventStatus == "ld") {
  3395. //联动
  3396. await selectByeventCode_direct(that.eventCode).then((res) => {
  3397. //签收部门
  3398. if (res.code == 200) {
  3399. that.deptOptions = res.data;
  3400. that.deptNameitem = "发起部门";
  3401. }
  3402. });
  3403. that.eventConfirmTitle = "事件联动";
  3404. /** 查询部门树结构 */
  3405. await deptTreeselect().then((response) => {
  3406. let deptId=Cookies.get("deptId")
  3407. that.recursiveChildren(response.data,deptId)
  3408. that.deptOptionsLiandong = response.data;
  3409. });
  3410. that.showEventConfirm = true;
  3411. } else if (eventStatus == "sh") {
  3412. //审核
  3413. that.eventConfirmTitle = "事件审核";
  3414. that.showEventConfirm = true;
  3415. } else if (eventStatus == "gd") {
  3416. //归档填报
  3417. that.showEventConfirm_gd = true;
  3418. }
  3419. } else {
  3420. //事件提交后台
  3421. if (eventStatus == "ld") {
  3422. //事件处理流程--联动1
  3423. let array = that.$refs.LiandongDept.getCheckedNodes();
  3424. if (array != null && array.length > 0) {
  3425. for (let i = 0; i < array.length; i++) {
  3426. that.sendLianDongDept.push({
  3427. taskDeptId: array[i].id,
  3428. taskDeptName: array[i].label,
  3429. });
  3430. }
  3431. }
  3432. if (that.sendTaskSource == "" || that.sendTaskSource == null) {
  3433. that.$message.error(`请选择任务来源!`);
  3434. return;
  3435. }
  3436. if (that.sendTaskContent == "" || that.sendTaskContent == null) {
  3437. that.$message.error(`请输入任务内容!`);
  3438. return;
  3439. }
  3440. if (that.sendTaskTitle == "" || that.sendTaskTitle == null) {
  3441. that.$message.error(`请输入任务标题!`);
  3442. return;
  3443. }
  3444. if (that.sendLianDongDept == "" || that.sendLianDongDept == null) {
  3445. that.$message.error(`请选择任务联动部门!`);
  3446. return;
  3447. }
  3448. // if (
  3449. // that.sendDeptId == "" ||
  3450. // that.sendDeptId == null ||
  3451. // that.sendDeptName == "" ||
  3452. // that.sendDeptName == null
  3453. // ) {
  3454. // that.$message.error(`请选择任务发起部门!`);
  3455. // return;
  3456. // }
  3457. let eventState = "";
  3458. listSJfl_direct({
  3459. parentId: that.eventType,
  3460. }).then((res) => {
  3461. if (res.code == 200) {
  3462. for (let i in res.data) {
  3463. if (res.data[i].id == that.eventTypeXl) {
  3464. eventState = res.data[i].eventTypeName;
  3465. }
  3466. }
  3467. let param = {
  3468. sendDeptId: Cookies.get("deptId"),
  3469. sendDept: Cookies.get("deptName"),
  3470. eventCode: that.eventCode,
  3471. longitude: that.longitude,
  3472. latitude: that.latitude,
  3473. taskTitle: that.sendTaskTitle,
  3474. taskSource: that.sendTaskSource,
  3475. taskContent: that.sendTaskContent,
  3476. taskDept: that.sendLianDongDept,
  3477. eventAddress: that.address,
  3478. eventState: eventState,
  3479. eventName: that.eventName,
  3480. };
  3481. sendTask_direct(param).then((res) => {
  3482. if (res.code == 200) {
  3483. that.$message.success(`联动发起成功!`);
  3484. that.refreshEventDialog(that.eventCode);
  3485. that.cancelEventConfirm_send();
  3486. that.showEventConfirm = false;
  3487. }
  3488. });
  3489. }
  3490. });
  3491. } else if (eventStatus == "gd") {
  3492. if (that.eventTypeXl == 101) {
  3493. let double =
  3494. /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //数字和两位小数
  3495. let number = /^[+]{0,1}(\d+)$/g; //正整数
  3496. if (!double.test(that.table2.areaTotal)) {
  3497. that.$message.error(`面积只能填写到小数后两位!`);
  3498. return;
  3499. }
  3500. if (!number.test(that.table2.peopleTotal)) {
  3501. that.$message.error(`人员请填写正整数!`);
  3502. return;
  3503. }
  3504. if (
  3505. that.table2.forestComposition == "" ||
  3506. that.table2.forestComposition == null
  3507. ) {
  3508. that.$message.error(`林木组成不能为空!`);
  3509. return;
  3510. }
  3511. if (
  3512. that.table2.forestToken == "" ||
  3513. that.table2.forestToken == null
  3514. ) {
  3515. that.$message.error(`林令不能为空!`);
  3516. return;
  3517. }
  3518. if (
  3519. that.table2.porosities == "" ||
  3520. that.table2.porosities == null
  3521. ) {
  3522. that.$message.error(`疏密度不能为空!`);
  3523. return;
  3524. }
  3525. }
  3526. //事件处理流程--归档
  3527. let param = {
  3528. deptId: that.deptId,
  3529. eventCode: that.eventCode,
  3530. eventStatus: eventStatus,
  3531. id: that.eventId,
  3532. version: that.version,
  3533. czlx: "",
  3534. forestFireLoss: {
  3535. eventId: that.eventCode,
  3536. table1: that.table1,
  3537. },
  3538. fireInformation: {
  3539. eventId: that.eventCode,
  3540. table2: that.table2,
  3541. },
  3542. array: that.regionalFlagObj.array,
  3543. };
  3544. updateCentereventTEventcatalogueStatus(param).then((res) => {
  3545. if (res.code == 200) {
  3546. that.$message.success(`处理成功!`);
  3547. that.refreshEvent(that.eventCode);
  3548. that.cancelEventConfirm_send();
  3549. that.showEventConfirm_gd = false;
  3550. that.$emit("getEventList", that.calendarDay, 10, 1);
  3551. that.$emit("getSupermap", that.calendarDay);
  3552. } else if (res.code == 304) {
  3553. console.log(that.eventCode);
  3554. this.$message.warning(res.msg);
  3555. this.showEventDialog(that.eventCode);
  3556. //获取事件详情
  3557. }
  3558. });
  3559. } else if (eventStatus == "shtg") {
  3560. that.eventStatusButton = "sh";
  3561. if (that.eventDescription == "" || that.eventDescription == null) {
  3562. that.$message.error(`请填写审核意见!`);
  3563. return;
  3564. }
  3565. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  3566. that.$message.error(`请上传审核图片!`);
  3567. return;
  3568. }
  3569. //事件处理流程--审核通过
  3570. let param = {
  3571. id: that.eventId, //事件id
  3572. eventCode: that.eventCode, //事件编号
  3573. eventName: that.eventName, //事件名称
  3574. isExamine: 1, //通过传1,不通过传0
  3575. version: that.version,
  3576. eventDescription: that.eventDescription, //审核意见
  3577. attach: that.attachExamine,
  3578. };
  3579. eventExamine(param).then((res) => {
  3580. if (res.code == 200) {
  3581. that.$message.success(`处理成功!`);
  3582. that.refreshEvent(that.eventCode);
  3583. that.cancelEventConfirm_send();
  3584. that.showEventConfirm = false;
  3585. } else if (res.code == 304) {
  3586. console.log(that.eventCode);
  3587. this.$message.warning(res.msg);
  3588. this.showEventDialog(that.eventCode);
  3589. //获取事件详情
  3590. }
  3591. that.attachExamine = [];
  3592. that.uploadAttachList = [];
  3593. that.eventDescription = "";
  3594. });
  3595. } else if (eventStatus == "shbtg") {
  3596. that.eventStatusButton = "sh";
  3597. if (that.eventDescription == "" || that.eventDescription == null) {
  3598. that.$message.error(`请填写审核意见!`);
  3599. return;
  3600. }
  3601. if (that.attachExamine.length == 0 || that.attachExamine == null) {
  3602. that.$message.error(`请上传审核图片!`);
  3603. return;
  3604. }
  3605. //事件处理流程--审核不通过
  3606. let param = {
  3607. id: that.eventId, //事件id
  3608. eventCode: that.eventCode, //事件编号
  3609. eventName: that.eventName, //事件名称
  3610. isExamine: 0, //通过传1,不通过传0
  3611. version: that.version,
  3612. eventDescription: that.eventDescription, //审核意见
  3613. attach: that.attachExamine,
  3614. };
  3615. eventExamine(param).then((res) => {
  3616. if (res.code == 200) {
  3617. that.$message.success(`处理成功!`);
  3618. that.refreshEvent(that.eventCode);
  3619. that.cancelEventConfirm_send();
  3620. that.showEventConfirm = false;
  3621. } else if (res.code == 304) {
  3622. console.log(that.eventCode);
  3623. this.$message.warning(res.msg);
  3624. this.showEventDialog(that.eventCode);
  3625. //获取事件详情
  3626. }
  3627. that.attachExamine = [];
  3628. that.uploadAttachList = [];
  3629. that.eventDescription = "";
  3630. });
  3631. } else if (eventStatus == "cz") {
  3632. eventHandling_direct(that.eventId, that.eventCode).then((res) => {
  3633. if (res.code == 200) {
  3634. that.$message.success(`处理成功!`);
  3635. that.refreshEvent(that.eventCode);
  3636. that.cancelEventConfirm_send();
  3637. that.showEventConfirm = false;
  3638. }
  3639. });
  3640. } else {
  3641. if (eventStatus == "qs") {
  3642. if (
  3643. that.sendDeptId == "" ||
  3644. that.sendDeptId == null ||
  3645. that.sendDeptName == "" ||
  3646. that.sendDeptName == null
  3647. ) {
  3648. that.$message.error(`请选择部门!`);
  3649. return;
  3650. }
  3651. if (eventStatus == "qs") {
  3652. if (that.sendEventType == "" || that.sendEventType == null) {
  3653. that.$message.error(`请选择事件类型!`);
  3654. return;
  3655. }
  3656. }
  3657. } else {
  3658. that.sendDeptId = that.deptId;
  3659. }
  3660. //事件处理流程
  3661. let param = {
  3662. phones: that.sendUserFegin,
  3663. eventCode: that.eventCode,
  3664. deptId: that.sendDeptId,
  3665. deptName: that.sendDeptName,
  3666. eventStatus: eventStatus,
  3667. eventType: that.sendEventType,
  3668. id: that.eventId,
  3669. czlx: "",
  3670. version: that.version,
  3671. cameraCode: that.cameraCode,
  3672. fireRadius: that.sendHuoZaiBanJing,
  3673. reserve: that.sendGuanLianYuAn,
  3674. address: that.address,
  3675. };
  3676. updateCentereventTEventcatalogueStatus(param).then((res) => {
  3677. if (res.code == 200) {
  3678. that.$message.success(`处理成功!`);
  3679. that.cancelEventConfirm_send();
  3680. that.showEventConfirm = false;
  3681. that.$emit("getEventList", that.calendarDay, 10, 1);
  3682. that.$emit("getSupermap", that.calendarDay);
  3683. if (eventStatus == "cf" || eventStatus == "wb") {
  3684. this.eventDialog = false;
  3685. return;
  3686. }
  3687. that.refreshEvent(that.eventCode);
  3688. } else if (res.code == 304) {
  3689. console.log(that.eventCode);
  3690. this.$message.warning(res.msg);
  3691. this.showEventDialog(that.eventCode);
  3692. //获取事件详情
  3693. }
  3694. });
  3695. }
  3696. }
  3697. },
  3698. filterNode(value, data) {
  3699. //树搜索
  3700. if (!value) return true;
  3701. return data.label.indexOf(value) !== -1;
  3702. },
  3703. sendEventLog() {
  3704. if (this.eventLog == "" || this.eventLog == null) {
  3705. return;
  3706. }
  3707. //日志发送
  3708. let param = {
  3709. eventCode: this.eventCode,
  3710. logContent: this.eventLog,
  3711. operation: "bus_oper_type_2",
  3712. operationType: "log_oper_type_1",
  3713. };
  3714. sendEventLog(param).then((res) => {
  3715. if (res.code == 200) {
  3716. this.$message.success(`发送成功!`);
  3717. this.eventLog = null;
  3718. this.refreshEventDialog(this.eventCode);
  3719. }
  3720. });
  3721. },
  3722. showEventLogUpload() {
  3723. this.$refs.eventLogUpload.eventLogUpload(this.eventCode);
  3724. },
  3725. cancelEventShow() {
  3726. this.mapToolShow=false
  3727. this.mapToolCheckItem = [];
  3728. this.mapToolCheckAll=false
  3729. this.mapToolShowBH=false
  3730. this.statusFlag = null;
  3731. this.deptId = null;
  3732. console.log("关闭事件弹窗");
  3733. this.eventLogList = [];
  3734. this.mapToolShow = false;
  3735. },
  3736. showEventDialog(eventCode) {
  3737. this.mapToolShow=false
  3738. this.mapToolCheckItem = [];
  3739. this.mapToolCheckAll=false
  3740. this.mapToolShowBH=false
  3741. this.fireControlViewList();
  3742. this.eventCode = eventCode;
  3743. let that = this;
  3744. //获取事件详情
  3745. getEventDetail_direct({
  3746. eventCode: eventCode,
  3747. }).then((res) => {
  3748. let markersMapList = [];
  3749. that.eventDialog = true;
  3750. that.eventLogList = res.data.eventlog; //日志列表
  3751. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo; //应急预案
  3752. that.address = res.data.catalogue.address;
  3753. that.eventStatusValue = res.data.catalogue.eventStatusValue;
  3754. that.eventType = res.data.catalogue.eventType;
  3755. that.statusFlag = res.data.catalogue.statusFlag;
  3756. that.dataStatus = res.data.catalogue.dataStatus;
  3757. that.deptId = res.data.catalogue.deptId;
  3758. that.eventId = res.data.catalogue.id;
  3759. that.longitude = res.data.catalogue.longitude;
  3760. that.latitude = res.data.catalogue.latitude;
  3761. that.eventName = res.data.catalogue.eventName;
  3762. that.version = res.data.catalogue.version;
  3763. that.eventTypeXl = res.data.catalogue.eventTypeXl;
  3764. that.isExamine = res.data.catalogue.isExamine;
  3765. let markersMap = {
  3766. lng: 124.59,
  3767. lat: 43.02,
  3768. icon: "marker",
  3769. bindPopupHtml: "",
  3770. click: "",
  3771. parameter: "",
  3772. keepBindPopup: false,
  3773. isAggregation: true,
  3774. radius: 0,
  3775. };
  3776. if (
  3777. res.data.catalogue.eventStatusValue == "forest_event_status_1" &&
  3778. res.data.catalogue.urgeCount == 0
  3779. ) {
  3780. markersMap.icon = "sj-icon-map-xinshangbao";
  3781. }
  3782. if (
  3783. res.data.catalogue.eventStatusValue == "forest_event_status_1" &&
  3784. res.data.catalogue.urgeCount > 0
  3785. ) {
  3786. markersMap.icon = "sj-icon-map-cuiban";
  3787. } else if (
  3788. res.data.catalogue.eventStatusValue == "forest_event_status_2"
  3789. ) {
  3790. markersMap.icon = "sj-icon-map-qianshou";
  3791. } else if (
  3792. res.data.catalogue.eventStatusValue == "forest_event_status_5"
  3793. ) {
  3794. markersMap.icon = "sj-icon-map-banjie";
  3795. } else if (
  3796. res.data.catalogue.eventStatusValue == "forest_event_status_6"
  3797. ) {
  3798. markersMap.icon = "sj-icon-map-guidang";
  3799. } else if (
  3800. res.data.catalogue.eventStatusValue == "forest_event_status_7"
  3801. ) {
  3802. markersMap.icon = "sj-icon-map-queren";
  3803. }
  3804. markersMap.lng = res.data.catalogue.longitude;
  3805. markersMap.lat = res.data.catalogue.latitude;
  3806. if (
  3807. res.data.eventdetail != null &&
  3808. res.data.eventdetail.length > 0 &&
  3809. res.data.eventdetail[0].fireRadius != null &&
  3810. res.data.eventdetail[0].fireRadius != "" &&
  3811. res.data.eventdetail[0].fireRadius > 0
  3812. ) {
  3813. markersMap.radius = res.data.eventdetail[0].fireRadius;
  3814. }
  3815. markersMapList.push(markersMap);
  3816. if (res.data.centermonitorTCamera != null) {
  3817. that.centermonitorTCamera = null;
  3818. that.cameraCode = res.data.centermonitorTCamera.id;
  3819. if(res.data.centermonitorTCamera.longitude != null && res.data.centermonitorTCamera.latitude != null) {
  3820. that.centermonitorTCamera = res.data.centermonitorTCamera;
  3821. let markersMap = {
  3822. lng: 124.59,
  3823. lat: 43.02,
  3824. icon: "camera",
  3825. bindPopupHtml: "",
  3826. click: "preview",
  3827. parameter: {
  3828. code: res.data.centermonitorTCamera.cameraCode,
  3829. type: res.data.centermonitorTCamera.cameraFactory,
  3830. name: res.data.centermonitorTCamera.cameraName,
  3831. },
  3832. keepBindPopup: false,
  3833. isAggregation: true,
  3834. radius: 0,
  3835. };
  3836. if (res.data.centermonitorTCamera.cameraUse == 1) {
  3837. if (res.data.centermonitorTCamera.workingStatus == '0') {
  3838. markersMap.icon = 'sj-icon-map-centerdata-slmonitor'
  3839. markersMap.click = 'preview'
  3840. } else {
  3841. markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor'
  3842. markersMap.click = ''
  3843. }
  3844. } else if (res.data.centermonitorTCamera.cameraUse == 2) {
  3845. if (res.data.centermonitorTCamera.workingStatus == '0') {
  3846. markersMap.icon = 'camera'
  3847. markersMap.click = 'preview'
  3848. } else {
  3849. markersMap.icon = 'camera-not'
  3850. markersMap.click = ''
  3851. }
  3852. } else if (res.data.centermonitorTCamera.cameraUse == 3) {
  3853. if (res.data.centermonitorTCamera.workingStatus == '0') {
  3854. markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
  3855. markersMap.click = 'preview'
  3856. } else {
  3857. markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor-traffic'
  3858. markersMap.click = ''
  3859. }
  3860. } else if (res.data.centermonitorTCamera.cameraUse == 5) {
  3861. if (res.data.centermonitorTCamera.workingStatus == '0') {
  3862. markersMap.icon = 'sj-icon-map-centerdata-river_camera'
  3863. markersMap.click = 'preview'
  3864. } else {
  3865. markersMap.icon = 'sj-icon-map-not-centerdata-river_camera'
  3866. markersMap.click = ''
  3867. }
  3868. } else if (res.data.centermonitorTCamera.cameraUse == 4) {
  3869. if (res.data.centermonitorTCamera.workingStatus == '0') {
  3870. markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
  3871. markersMap.click = 'preview'
  3872. } else {
  3873. markersMap.icon = 'sj-icon-map-not-centerdata-sand-quarry-camera'
  3874. markersMap.click = ''
  3875. }
  3876. }
  3877. markersMap.bindPopupHtml =
  3878. '<div class="map-tip">' +
  3879. "<span>" +
  3880. ' <div class="d-l-con">' +
  3881. ' <div class="d-l-l-text">' +
  3882. " <h4>摄像头名称:" +
  3883. res.data.centermonitorTCamera.cameraName +
  3884. "</h4>" +
  3885. " </div>" +
  3886. " </div>" +
  3887. " </span>" +
  3888. "<span>" +
  3889. "</div>";
  3890. markersMap.lng = res.data.centermonitorTCamera.longitude;
  3891. markersMap.lat = res.data.centermonitorTCamera.latitude;
  3892. markersMapList.push(markersMap);
  3893. }
  3894. }
  3895. setTimeout(() => {
  3896. that.$refs.supermapDialog.dynamicPlotting(); //弹出动态绘制窗口,防止截图位置改变
  3897. that.$refs.supermapDialog.dropLocation10(
  3898. res.data.catalogue.latitude,
  3899. res.data.catalogue.longitude
  3900. );
  3901. that.$refs.supermapDialog.clearM(false);
  3902. that.$refs.supermapDialog.clearM(true);
  3903. that.$refs.supermapDialog.setMarkersRadius(markersMapList);
  3904. }, 2000);
  3905. });
  3906. },
  3907. refreshEvent(eventCode) {
  3908. this.eventCode = eventCode;
  3909. let that = this;
  3910. //刷新--事件详情
  3911. getEventDetail_direct({
  3912. eventCode: eventCode,
  3913. }).then((res) => {
  3914. let markersMapList = [];
  3915. that.eventDialog = true;
  3916. that.eventLogList = res.data.eventlog;
  3917. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo; //应急预案
  3918. that.address = res.data.catalogue.address;
  3919. that.eventStatusValue = res.data.catalogue.eventStatusValue;
  3920. that.eventType = res.data.catalogue.eventType;
  3921. that.statusFlag = res.data.catalogue.statusFlag;
  3922. that.dataStatus = res.data.catalogue.dataStatus;
  3923. that.deptId = res.data.catalogue.deptId;
  3924. that.eventId = res.data.catalogue.id;
  3925. that.latitude = res.data.catalogue.latitude;
  3926. that.longitude = res.data.catalogue.longitude;
  3927. that.eventName = res.data.catalogue.eventName;
  3928. that.version = res.data.catalogue.version;
  3929. that.eventTypeXl = res.data.catalogue.eventTypeXl;
  3930. that.isExamine = res.data.catalogue.isExamine;
  3931. let markersMap = {
  3932. lng: 124.59,
  3933. lat: 43.02,
  3934. icon: "marker",
  3935. bindPopupHtml: "",
  3936. click: "",
  3937. parameter: "",
  3938. keepBindPopup: false,
  3939. isAggregation: true,
  3940. radius: 0,
  3941. };
  3942. if (
  3943. res.data.catalogue.eventStatusValue == "forest_event_status_1" &&
  3944. res.data.catalogue.urgeCount == 0
  3945. ) {
  3946. markersMap.icon = "sj-icon-map-xinshangbao";
  3947. }
  3948. if (
  3949. res.data.catalogue.eventStatusValue == "forest_event_status_1" &&
  3950. res.data.catalogue.urgeCount > 0
  3951. ) {
  3952. markersMap.icon = "sj-icon-map-cuiban";
  3953. } else if (
  3954. res.data.catalogue.eventStatusValue == "forest_event_status_2"
  3955. ) {
  3956. markersMap.icon = "sj-icon-map-qianshou";
  3957. } else if (
  3958. res.data.catalogue.eventStatusValue == "forest_event_status_5"
  3959. ) {
  3960. markersMap.icon = "sj-icon-map-banjie";
  3961. } else if (
  3962. res.data.catalogue.eventStatusValue == "forest_event_status_6"
  3963. ) {
  3964. markersMap.icon = "sj-icon-map-guidang";
  3965. } else if (
  3966. res.data.catalogue.eventStatusValue == "forest_event_status_7"
  3967. ) {
  3968. markersMap.icon = "sj-icon-map-queren";
  3969. }
  3970. markersMap.lng = res.data.catalogue.longitude;
  3971. markersMap.lat = res.data.catalogue.latitude;
  3972. if (
  3973. res.data.eventdetail != null &&
  3974. res.data.eventdetail.length > 0 &&
  3975. res.data.eventdetail[0].fireRadius != null &&
  3976. res.data.eventdetail[0].fireRadius != "" &&
  3977. res.data.eventdetail[0].fireRadius > 0
  3978. ) {
  3979. markersMap.radius = res.data.eventdetail[0].fireRadius;
  3980. }
  3981. markersMapList.push(markersMap);
  3982. if (res.data.centermonitorTCamera != null) {
  3983. that.centermonitorTCamera = null;
  3984. that.cameraCode = res.data.centermonitorTCamera.id;
  3985. if(res.data.centermonitorTCamera.longitude != null && res.data.centermonitorTCamera.latitude != null) {
  3986. that.centermonitorTCamera = res.data.centermonitorTCamera;
  3987. let markersMap = {
  3988. lng: 124.59,
  3989. lat: 43.02,
  3990. icon: "camera",
  3991. bindPopupHtml: "",
  3992. click: "preview",
  3993. parameter: {
  3994. code: res.data.centermonitorTCamera.cameraCode,
  3995. type: res.data.centermonitorTCamera.cameraFactory,
  3996. name: res.data.centermonitorTCamera.cameraName,
  3997. },
  3998. keepBindPopup: false,
  3999. isAggregation: true,
  4000. radius: 0,
  4001. };
  4002. if (res.data.centermonitorTCamera.cameraUse == 1) {
  4003. if (res.data.centermonitorTCamera.workingStatus == '0') {
  4004. markersMap.icon = 'sj-icon-map-centerdata-slmonitor'
  4005. markersMap.click = 'preview'
  4006. } else {
  4007. markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor'
  4008. markersMap.click = ''
  4009. }
  4010. } else if (res.data.centermonitorTCamera.cameraUse == 2) {
  4011. if (res.data.centermonitorTCamera.workingStatus == '0') {
  4012. markersMap.icon = 'camera'
  4013. markersMap.click = 'preview'
  4014. } else {
  4015. markersMap.icon = 'camera-not'
  4016. markersMap.click = ''
  4017. }
  4018. } else if (res.data.centermonitorTCamera.cameraUse == 3) {
  4019. if (res.data.centermonitorTCamera.workingStatus == '0') {
  4020. markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
  4021. markersMap.click = 'preview'
  4022. } else {
  4023. markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor-traffic'
  4024. markersMap.click = ''
  4025. }
  4026. } else if (res.data.centermonitorTCamera.cameraUse == 5) {
  4027. if (res.data.centermonitorTCamera.workingStatus == '0') {
  4028. markersMap.icon = 'sj-icon-map-centerdata-river_camera'
  4029. markersMap.click = 'preview'
  4030. } else {
  4031. markersMap.icon = 'sj-icon-map-not-centerdata-river_camera'
  4032. markersMap.click = ''
  4033. }
  4034. } else if (res.data.centermonitorTCamera.cameraUse == 4) {
  4035. if (res.data.centermonitorTCamera.workingStatus == '0') {
  4036. markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
  4037. markersMap.click = 'preview'
  4038. } else {
  4039. markersMap.icon = 'sj-icon-map-not-centerdata-sand-quarry-camera'
  4040. markersMap.click = ''
  4041. }
  4042. }
  4043. markersMap.bindPopupHtml =
  4044. '<div class="map-tip">' +
  4045. "<span>" +
  4046. ' <div class="d-l-con">' +
  4047. ' <div class="d-l-l-text">' +
  4048. " <h4>摄像头名称:" +
  4049. res.data.centermonitorTCamera.cameraName +
  4050. "</h4>" +
  4051. " </div>" +
  4052. " </div>" +
  4053. " </span>" +
  4054. "<span>" +
  4055. "</div>";
  4056. markersMap.lng = res.data.centermonitorTCamera.longitude;
  4057. markersMap.lat = res.data.centermonitorTCamera.latitude;
  4058. markersMapList.push(markersMap);
  4059. }
  4060. }
  4061. setTimeout(() => {
  4062. that.$refs.supermapDialog.clearM(false);
  4063. that.$refs.supermapDialog.clearM(true);
  4064. that.$refs.supermapDialog.setMarkersRadius(markersMapList);
  4065. that.$refs.supermapDialog.dropLocation10(
  4066. res.data.catalogue.latitude,
  4067. res.data.catalogue.longitude
  4068. );
  4069. }, 2000);
  4070. });
  4071. },
  4072. refreshEventDialog(eventCode) {
  4073. //刷新--事件日志12
  4074. getEventDetail_direct({
  4075. eventCode: eventCode,
  4076. }).then((res) => {
  4077. this.eventLogList = res.data.eventlog;
  4078. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo; //应急预案
  4079. });
  4080. },
  4081. // 页面元素转图片
  4082. toImage() {
  4083. this.$message.success(`正在上传!请稍后...`);
  4084. // 手动创建一个 canvas 标签
  4085. const canvas = document.createElement("canvas");
  4086. // 获取父标签,意思是这个标签内的 DOM 元素生成图片
  4087. // imageTofile是给截图范围内的父级元素自定义的ref名称
  4088. // let canvasBox = this.$refs.imageTofile
  4089. let canvasBox = document.getElementById("forestWarmSuperMap");
  4090. // let toolbar = document.getElementById("toolbar");
  4091. // if (toolbar != null) {
  4092. // canvasBox.removeChild(toolbar);
  4093. // }
  4094. // 获取父级的宽高
  4095. const width = parseInt(window.getComputedStyle(canvasBox).width);
  4096. const height = parseInt(window.getComputedStyle(canvasBox).height);
  4097. // 宽高 * 2 并放大 2 倍 是为了防止图片模糊
  4098. canvas.width = width * 2;
  4099. canvas.height = height * 2;
  4100. canvas.style.width = width + "px";
  4101. canvas.style.height = height + "px";
  4102. const context = canvas.getContext("2d");
  4103. context.scale(2, 2);
  4104. const options = {
  4105. backgroundColor: null,
  4106. canvas: canvas,
  4107. useCORS: true,
  4108. };
  4109. html2canvas(canvasBox, options).then((canvas) => {
  4110. // toDataURL 图片格式转成 base64
  4111. let dataBase64 = canvas.toDataURL("image/png");
  4112. this.uploadBase64(dataBase64);
  4113. });
  4114. // canvasBox.appendChild(toolbar);
  4115. },
  4116. uploadBase64(dataBase64) {
  4117. //事件详情截图直接上传日志
  4118. uploadBase64({
  4119. eventCode: this.eventCode,
  4120. base64: dataBase64,
  4121. }).then((res) => {
  4122. if (res.code == 200) {
  4123. this.$message.success(`截图上传成功!`);
  4124. this.refreshEventDialog(this.eventCode);
  4125. }
  4126. });
  4127. },
  4128. regionalFlagAdd: function () {
  4129. //火灾区域
  4130. this.regionalFlagObj.array = [];
  4131. this.regionalFlagOpen = true;
  4132. },
  4133. showAreaLatLng: function (latlng) {
  4134. //获取火灾区域经纬度
  4135. this.regionalFlagObj.array = latlng;
  4136. this.$modal.msgSuccess("获取坐标成功!");
  4137. },
  4138. /** ----------------------------------摄像头预览开始------------------------------------- */
  4139. alertLogin: function () {
  4140. this.$modal.msg("登录中....");
  4141. },
  4142. alertLoginSuccess: function () {
  4143. this.$modal.msgSuccess("登录成功!");
  4144. },
  4145. alertLoginFailed: function () {
  4146. this.$modal.msgError("登陆失败!");
  4147. },
  4148. alertReinstall: function () {
  4149. this.$modal.msgWarning("请重新安装客户端");
  4150. },
  4151. cancelEventLocationShow() {
  4152. if (this.oWebControl != null) {
  4153. this.oWebControl.JS_HideWnd(); // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题
  4154. this.oWebControl.JS_Disconnect().then(
  4155. function () {
  4156. // 断开与插件服务连接成功
  4157. },
  4158. function () {
  4159. // 断开与插件服务连接失败
  4160. }
  4161. );
  4162. }
  4163. },
  4164. /** 预览按钮操作 */
  4165. preview(cameraParam) {
  4166. if (cameraParam.type == "1") {
  4167. this.showTVWall(cameraParam.code, cameraParam.name);
  4168. // getDahuaVideoServer().then(newResponse => {
  4169. // console.log(newResponse)
  4170. // this.ws.detectConnectQt().then(res => {
  4171. // if (res) { // 连接客户端成功
  4172. // this.alertLogin()
  4173. // this.ws.login({
  4174. // loginIp: newResponse.loginIp,
  4175. // loginPort: newResponse.loginPort,
  4176. // userName: newResponse.userName,
  4177. // userPwd: newResponse.userPwd,
  4178. // token: '',
  4179. // https: 1
  4180. // })
  4181. // this.ws.on('loginState', (res) => {
  4182. // this.isLogin = res
  4183. // console.log('---res-----', res)
  4184. // if (res) {
  4185. // this.alertLoginSuccess()
  4186. // this.activePanel = 'key2'
  4187. // this.realTimeVideoDialog(cameraParam.code)
  4188. // } else {
  4189. // this.alertLoginFailed()
  4190. // }
  4191. // })
  4192. // } else { // 连接客户端失败
  4193. // this.alertReinstall()
  4194. // }
  4195. // })
  4196. // })
  4197. } else if (cameraParam.type == "0") {
  4198. let that = this;
  4199. that.cameraVisible = true;
  4200. getHaiKangVideoServer({
  4201. cameraCode: cameraParam.code,
  4202. }).then((newResponse) => {
  4203. that.cameraTitle = "摄像头-" + newResponse.data.cameraName;
  4204. that.initPlugin(
  4205. newResponse.data.appkey,
  4206. newResponse.data.loginIp,
  4207. newResponse.data.secret,
  4208. newResponse.data.loginPort
  4209. );
  4210. setTimeout(function () {
  4211. that.playhk(newResponse.data.channelCode);
  4212. }, 5000);
  4213. });
  4214. }
  4215. },
  4216. realTimeVideoDialog(cameraParams) {
  4217. // 调用弹窗实时播放接口
  4218. if (!this.isLogin) {
  4219. this.$Message.info("正在登陆客户端,请稍等......");
  4220. return false;
  4221. }
  4222. const param = [cameraParams];
  4223. this.ws.openVideo(param);
  4224. },
  4225. /** ----------------------------------摄像头预览结束------------------------------------- */
  4226. /** ----------------------------------海康摄像头预览开始------------------------------------- */
  4227. // 创建播放实例
  4228. initPlugin(newappkey, newloginIp, newsecret, newloginPort) {
  4229. let that = this;
  4230. that.oWebControl = new WebControl({
  4231. szPluginContainer: "playWnd", // 指定容器id
  4232. iServicePortStart: 15900, // 指定起止端口号,建议使用该值
  4233. iServicePortEnd: 15909,
  4234. szClassId: "23BF3B0A-2C56-4D97-9C03-0CB103AA8F11", // 用于IE10使用ActiveX的clsid
  4235. cbConnectSuccess: function () {
  4236. // 创建WebControl实例成功
  4237. that.oWebControl
  4238. .JS_StartService("window", {
  4239. // WebControl实例创建成功后需要启动服务
  4240. dllPath: "./VideoPluginConnect.dll", // 值"./VideoPluginConnect.dll"写死
  4241. })
  4242. .then(
  4243. function () {
  4244. // 启动插件服务成功
  4245. that.oWebControl.JS_SetWindowControlCallback({
  4246. // 设置消息回调
  4247. cbIntegrationCallBack: cbIntegrationCallBack,
  4248. });
  4249. that.oWebControl
  4250. .JS_CreateWnd("playWnd", 1020, 600)
  4251. .then(function () {
  4252. //JS_CreateWnd创建视频播放窗口,宽高可设定
  4253. that.init(newappkey, newloginIp, newsecret, newloginPort); // 创建播放实例成功后初始化
  4254. });
  4255. },
  4256. function () {
  4257. // 启动插件服务失败
  4258. }
  4259. );
  4260. },
  4261. cbConnectError: function () {
  4262. // 创建WebControl实例失败
  4263. that.oWebControl = null;
  4264. $("#playWnd").html(
  4265. '插件未启动,正在尝试启动,请稍候...<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>'
  4266. );
  4267. WebControl.JS_WakeUp("VideoWebPlugin://"); // 程序未启动时执行error函数,采用wakeup来启动程序
  4268. that.initCount++;
  4269. if (that.initCount < 3) {
  4270. setTimeout(function () {
  4271. that.initPlugin(newappkey, newloginIp, newsecret, newloginPort);
  4272. }, 3000);
  4273. } else {
  4274. $("#playWnd").html(
  4275. '插件启动失败,请检查插件是否安装!<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>'
  4276. );
  4277. }
  4278. },
  4279. cbConnectClose: function (bNormalClose) {
  4280. // 异常断开:bNormalClose = false
  4281. // JS_Disconnect正常断开:bNormalClose = true
  4282. that.oWebControl = null;
  4283. },
  4284. });
  4285. },
  4286. //播放海康摄像头
  4287. playhk(channelCode) {
  4288. var cameraIndexCode = channelCode; //获取输入的监控点编号值,必填
  4289. var streamMode = 0; //主子码流标识:0-主码流,1-子码流
  4290. var transMode = 1; //传输协议:0-UDP,1-TCP
  4291. var gpuMode = 0; //是否启用GPU硬解,0-不启用,1-启用
  4292. var wndId = -1; //播放窗口序号(在2x2以上布局下可指定播放窗口)
  4293. cameraIndexCode = cameraIndexCode.replace(/(^\s*)/g, "");
  4294. cameraIndexCode = cameraIndexCode.replace(/(\s*$)/g, "");
  4295. this.oWebControl.JS_RequestInterface({
  4296. funcName: "startPreview",
  4297. argument: JSON.stringify({
  4298. cameraIndexCode: cameraIndexCode, //监控点编号
  4299. streamMode: streamMode, //主子码流标识
  4300. transMode: transMode, //传输协议
  4301. gpuMode: gpuMode, //是否开启GPU硬解
  4302. wndId: wndId, //可指定播放窗口
  4303. }),
  4304. });
  4305. },
  4306. //初始化
  4307. init(newappkey, newloginIp, newsecret, newloginPort) {
  4308. let that = this;
  4309. that.getPubKey(function () {
  4310. ////////////////////////////////// 请自行修改以下变量值 ////////////////////////////////////
  4311. var appkey = newappkey; //综合安防管理平台提供的appkey,必填
  4312. var secret = that.setEncrypt(newsecret); //综合安防管理平台提供的secret,必填
  4313. var ip = newloginIp; //综合安防管理平台IP地址,必填
  4314. var playMode = 0; //初始播放模式:0-预览,1-回放
  4315. var port = Number(newloginPort); //综合安防管理平台端口,若启用HTTPS协议,默认443
  4316. var snapDir = "D:\\SnapDir"; //抓图存储路径
  4317. var videoDir = "D:\\VideoDir"; //紧急录像或录像剪辑存储路径
  4318. var layout = "1x1"; //playMode指定模式的布局
  4319. var enableHTTPS = 1; //是否启用HTTPS协议与综合安防管理平台交互,这里总是填1
  4320. var encryptedFields = "secret"; //加密字段,默认加密领域为secret
  4321. var showToolbar = 1; //是否显示工具栏,0-不显示,非0-显示
  4322. var showSmart = 1; //是否显示智能信息(如配置移动侦测后画面上的线框),0-不显示,非0-显示
  4323. var buttonIDs =
  4324. "0,16,256,257,258,259,260,512,513,514,515,516,517,768,769"; //自定义工具条按钮
  4325. ////////////////////////////////// 请自行修改以上变量值 ////////////////////////////////////
  4326. that.oWebControl
  4327. .JS_RequestInterface({
  4328. funcName: "init",
  4329. argument: JSON.stringify({
  4330. appkey: appkey, //API网关提供的appkey
  4331. secret: secret, //API网关提供的secret
  4332. ip: ip, //API网关IP地址
  4333. playMode: playMode, //播放模式(决定显示预览还是回放界面)
  4334. port: port, //端口
  4335. snapDir: snapDir, //抓图存储路径
  4336. videoDir: videoDir, //紧急录像或录像剪辑存储路径
  4337. layout: layout, //布局
  4338. enableHTTPS: enableHTTPS, //是否启用HTTPS协议
  4339. encryptedFields: encryptedFields, //加密字段
  4340. showToolbar: showToolbar, //是否显示工具栏
  4341. showSmart: showSmart, //是否显示智能信息
  4342. buttonIDs: buttonIDs, //自定义工具条按钮
  4343. }),
  4344. })
  4345. .then(function (oData) {
  4346. that.oWebControl.JS_Resize(1020, 600); // 初始化后resize一次,规避firefox下首次显示窗口后插件窗口未与DIV窗口重合问题
  4347. });
  4348. });
  4349. },
  4350. //获取公钥
  4351. getPubKey(callback) {
  4352. let that = this;
  4353. that.oWebControl
  4354. .JS_RequestInterface({
  4355. funcName: "getRSAPubKey",
  4356. argument: JSON.stringify({
  4357. keyLength: 1024,
  4358. }),
  4359. })
  4360. .then(function (oData) {
  4361. console.log(oData);
  4362. if (oData.responseMsg.data) {
  4363. that.pubKey = oData.responseMsg.data;
  4364. callback();
  4365. }
  4366. });
  4367. },
  4368. //RSA加密
  4369. setEncrypt(value) {
  4370. var encrypt = new JSEncrypt();
  4371. encrypt.setPublicKey(this.pubKey);
  4372. return encrypt.encrypt(value);
  4373. },
  4374. /** ----------------------------------海康摄像头预览结束------------------------------------- */
  4375. /** ----------------------------------视频会议开始------------------------------------- */
  4376. sendMsg() {
  4377. // 视频会议发送短信
  4378. let reg_user = /^[\u4e00-\u9fa5]{2,4}$/; //2-4个中文字符正则
  4379. let reg_tel =
  4380. /^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\d{8}$/; //11位手机号码正则
  4381. for (let i in this.dutysystemTableData) {
  4382. if (!reg_user.test(this.dutysystemTableData[i].name)) {
  4383. this.$message.error(`请输入正确姓名!`);
  4384. return;
  4385. }
  4386. if (!reg_tel.test(this.dutysystemTableData[i].telphone)) {
  4387. this.$message.error(`请输入正确手机号码!`);
  4388. return;
  4389. }
  4390. if (
  4391. this.dutysystemTableData[i].id == null ||
  4392. this.dutysystemTableData[i].id == ""
  4393. ) {
  4394. this.dutysystemTableData[i].dept = this.dutysystemDeptName;
  4395. this.dutysystemTableData[i].depteventId = this.depteventId;
  4396. }
  4397. }
  4398. const param = {
  4399. centereventTDutySystemList: this.dutysystemTableData,
  4400. eventCode: this.eventCode,
  4401. eventName: this.eventName,
  4402. eventId: this.eventId,
  4403. };
  4404. this.joinMeeting(param);
  4405. },
  4406. joinMeeting(param) {
  4407. this.$message({
  4408. message: "正在启动云会议客户端,请稍候...",
  4409. type: "success",
  4410. });
  4411. joinConferences(
  4412. this.eventId,
  4413. this.eventName + "的会议",
  4414. Cookies.get("nickName")
  4415. ).then((res) => {
  4416. if (res.code == 200) {
  4417. let conferenceID = res.data.info.conferenceID;
  4418. let password = res.data.info.password;
  4419. let nickName = res.data.nickName;
  4420. let nonce = res.data.nonce;
  4421. window.open(
  4422. "cloudlink://welinksoftclient/h5page?page=LoginAndJoinConf&server_url=meeting.huaweicloud.com&port=8443&conf_id=" +
  4423. conferenceID +
  4424. "&enter_code=" +
  4425. password +
  4426. "&name=" +
  4427. nickName +
  4428. "&open_mic=true&open_camera=false&nonce=" +
  4429. nonce
  4430. );
  4431. sendMessage(param).then((res) => {
  4432. //this.$message.success(res.msg);
  4433. this.dutysystemSelect(
  4434. this.iconCurrentIndex,
  4435. this.dutysystemDeptName,
  4436. this.depteventId
  4437. );
  4438. this.showMeetingMsgDialog = false;
  4439. });
  4440. }
  4441. });
  4442. },
  4443. Meeting() {
  4444. //弹出发送会议短信弹窗
  4445. let that = this;
  4446. selectConfigKey('meeting_plugin_url').then(response => {
  4447. that.$alert(
  4448. "如您已经安装请点击【确定】,如未安装可<a style='text-decoration:underline;color:blue;' href='"+response.data+"'>点击此处</ a>进行下载",
  4449. "该功能需要使用云会议客户端",
  4450. {
  4451. confirmButtonText: "确定",
  4452. dangerouslyUseHTMLString: true,
  4453. callback: (action) => {
  4454. let param = {
  4455. eventCode: that.eventCode,
  4456. };
  4457. centereventtdepteventList(param).then((res) => {
  4458. that.depteventList = res.data;
  4459. that.showMeetingMsgDialog = true;
  4460. });
  4461. },
  4462. }
  4463. );
  4464. })
  4465. },
  4466. /** ----------------------------------视频会议结束------------------------------------- */
  4467. },
  4468. };
  4469. // 推送消息
  4470. function cbIntegrationCallBack(oData) {
  4471. console.log(JSON.stringify(oData.responseMsg));
  4472. }
  4473. </script>
  4474. <style lang="scss">
  4475. .sj-map-tool-checkbox-all {
  4476. display: flex;
  4477. align-items: center;
  4478. margin-right: 1rem !important;
  4479. .el-checkbox__input {
  4480. line-height: 0;
  4481. }
  4482. .el-checkbox__label {
  4483. font-size: 14px;
  4484. color: white;
  4485. padding-left: 5px;
  4486. }
  4487. .el-checkbox__input.is-checked + .el-checkbox__label {
  4488. color: #01d1eb;
  4489. }
  4490. }
  4491. .sj-map-tool-checkbox {
  4492. display: flex;
  4493. .el-checkbox {
  4494. margin-right: 1rem;
  4495. display: flex;
  4496. align-items: center;
  4497. .el-checkbox__input {
  4498. line-height: 0;
  4499. }
  4500. }
  4501. .el-checkbox__label {
  4502. font-size: 14px;
  4503. color: white;
  4504. padding-left: 5px;
  4505. }
  4506. .el-checkbox__input.is-checked + .el-checkbox__label {
  4507. color: #01d1eb;
  4508. }
  4509. }
  4510. </style>
  4511. <style lang="scss" scoped>
  4512. @import "@/assets/styles/base.scss";
  4513. //弹层样式
  4514. //.customWidthMp4 {
  4515. // width: 70px !important;
  4516. // height: 70px !important;
  4517. //}
  4518. .tree-border {
  4519. border: 1px $barBorder;
  4520. }
  4521. button {
  4522. padding: 0.5rem;
  4523. }
  4524. /** 火灾报告**/
  4525. //@font-face {
  4526. // font-family: 'fontnameRegular';
  4527. // src: url('../../../../assets/styles/FZYTJW_0.TTF');
  4528. //}
  4529. body,
  4530. html,
  4531. * {
  4532. padding: 0px;
  4533. margin: 0px;
  4534. font-family: "fontnameRegular";
  4535. }
  4536. .table-container {
  4537. width: 100%;
  4538. }
  4539. .txt_right {
  4540. text-align: right !important;
  4541. }
  4542. .txt_left {
  4543. text-align: left !important;
  4544. }
  4545. table {
  4546. border-spacing: 0;
  4547. border-collapse: collapse;
  4548. width: 99%;
  4549. margin: 0 auto;
  4550. color: $inBlue;
  4551. }
  4552. table input {
  4553. font-size: 1rem;
  4554. border: 0px;
  4555. outline: 0px;
  4556. font-family: "微软雅黑";
  4557. background: none;
  4558. color: $inBlue;
  4559. }
  4560. table th input:hover {
  4561. background: $eventBG;
  4562. }
  4563. table thead th {
  4564. font-size: 1rem;
  4565. font-family: "宋体";
  4566. height: 2rem;
  4567. border-top: 0px;
  4568. border-left: 0px;
  4569. border-right: 0px;
  4570. outline: 0px;
  4571. }
  4572. table tr td {
  4573. font-size: 1rem;
  4574. font-family: "fontnameRegular";
  4575. height: 2rem;
  4576. border: 1px $searchBorder;
  4577. text-align: center;
  4578. }
  4579. .font1 {
  4580. font-size: 1.7rem;
  4581. font-weight: bolder;
  4582. }
  4583. .border0 {
  4584. width: 100% !important;
  4585. }
  4586. .border0 tr td {
  4587. border: 0px !important;
  4588. }
  4589. table tr td input {
  4590. width: 100%;
  4591. /* display: inline-block;*/
  4592. outline: 0px;
  4593. text-align: left;
  4594. height: 94%;
  4595. color: $inBlue;
  4596. background: none;
  4597. float: left;
  4598. padding: 0 0.5rem;
  4599. }
  4600. table tr td input:hover {
  4601. background: $eventBG;
  4602. }
  4603. .int_tr td input {
  4604. text-align: center !important;
  4605. }
  4606. .table2 tr th {
  4607. font-size: 1.7rem;
  4608. padding: 0.5rem 0;
  4609. font-family: "fontnameRegular";
  4610. }
  4611. .table2 tr td {
  4612. font-size: 1rem;
  4613. }
  4614. .table2 tr td select {
  4615. border: 0px !important;
  4616. outline: 0px;
  4617. width: 100%;
  4618. font-family: "微软雅黑";
  4619. font-size: 1rem;
  4620. padding-left: 1%;
  4621. color: $inBlue;
  4622. background: none;
  4623. }
  4624. .table2 tr td select:hover {
  4625. background: $eventBG;
  4626. }
  4627. .table2 tr td select option {
  4628. font-size: 1rem;
  4629. font-family: "微软雅黑";
  4630. }
  4631. .border_l0 {
  4632. // border-right: 1px solid #ececec !important;
  4633. }
  4634. .table2 tr td textarea {
  4635. border: 0px !important;
  4636. outline: 0px;
  4637. width: 98%;
  4638. padding: 0.5rem;
  4639. font-size: 1rem;
  4640. resize: none;
  4641. background: none;
  4642. color: $inBlue;
  4643. }
  4644. .table2 tr td textarea:hover {
  4645. background: $eventBG;
  4646. }
  4647. .tr_border td {
  4648. border-right: 0px !important;
  4649. border-left: 0px !important;
  4650. border-bottom: 0px !important;
  4651. font-size: 15px;
  4652. }
  4653. .btm-btn-group {
  4654. padding: 1rem 0;
  4655. width: 100%;
  4656. display: flex;
  4657. button {
  4658. padding: 0.5rem 2rem;
  4659. }
  4660. }
  4661. .sj-map-tool-select {
  4662. position: absolute;
  4663. right: 1rem;
  4664. top: 1rem;
  4665. z-index: 1000;
  4666. display: flex;
  4667. height: 30px;
  4668. align-items: center;
  4669. }
  4670. .sj-map-tool-select-list {
  4671. position: relative;
  4672. padding: 0.3rem 1rem;
  4673. border-radius: 1rem;
  4674. background-color: #fff;
  4675. z-index: 1000;
  4676. background-image: linear-gradient(
  4677. 180deg,
  4678. rgba(18, 71, 153, 1),
  4679. rgba(4, 21, 30, 1)
  4680. );
  4681. box-shadow: 0 -0.2rem 0.5rem 0.3rem rgba(13, 192, 219, 0.09) inset;
  4682. display: flex;
  4683. align-items: center;
  4684. }
  4685. // 20220928
  4686. .yatz_button {
  4687. padding: 0.5rem 0.5rem;
  4688. color: #409eff;
  4689. background: none;
  4690. border-color: #409eff;
  4691. }
  4692. .yatz_button:hover {
  4693. color: #fff;
  4694. background: #409eff;
  4695. border-color: #409eff;
  4696. }
  4697. .fr_button {
  4698. float: right;
  4699. padding: 0.5rem 1.5rem;
  4700. }
  4701. .bottom {
  4702. width: 100%;
  4703. height: calc(100% - 80px);
  4704. display: flex;
  4705. .bottomLeft {
  4706. width: 288px;
  4707. height: 500px;
  4708. overflow-y: auto;
  4709. .leftItem {
  4710. width: 100%;
  4711. height: 50px;
  4712. line-height: 50px;
  4713. text-align: center;
  4714. cursor: pointer;
  4715. }
  4716. }
  4717. .bottomRight {
  4718. width: calc(100% - 288px);
  4719. height: 500px;
  4720. box-sizing: border-box;
  4721. padding: 36px 36px 0 36px;
  4722. overflow-y: auto;
  4723. .bottomRightContent {
  4724. width: 100%;
  4725. box-sizing: border-box;
  4726. padding-bottom: 36px;
  4727. .bottomRightContentHead {
  4728. height: 25px;
  4729. font-family: PingFang SC;
  4730. font-style: normal;
  4731. font-weight: 600;
  4732. font-size: 24px;
  4733. line-height: 25px;
  4734. text-transform: capitalize;
  4735. color: rgba(0, 0, 0, 0.85);
  4736. margin-bottom: 32px;
  4737. }
  4738. .bottomRightContentBody {
  4739. .el-col {
  4740. position: relative;
  4741. margin-bottom: 18px;
  4742. .circle {
  4743. display: inline-block;
  4744. width: 6px;
  4745. height: 6px;
  4746. background: #4677f6;
  4747. border-radius: 50%;
  4748. position: absolute;
  4749. top: 8px;
  4750. left: 0;
  4751. }
  4752. .word {
  4753. margin-left: 12px;
  4754. font-family: PingFang SC;
  4755. font-style: normal;
  4756. font-weight: normal;
  4757. font-size: 14px;
  4758. color: #4677f6;
  4759. cursor: pointer;
  4760. }
  4761. .word:hover {
  4762. text-decoration: underline;
  4763. }
  4764. .topPlace {
  4765. position: absolute;
  4766. top: 1px;
  4767. margin-left: 8px;
  4768. }
  4769. }
  4770. }
  4771. .bottomRightContentFooter {
  4772. height: 1px;
  4773. width: 100%;
  4774. margin-top: 14px;
  4775. }
  4776. }
  4777. }
  4778. }
  4779. </style>