eventdetailsdialog.vue 130 KB

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