eventdetailsdialog.vue 125 KB

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