eventdetailsdialog.vue 126 KB

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