firespread.vue 148 KB

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