firespread.vue 149 KB

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