eventdetailsdialog.vue 125 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024
  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. userId: '',//用户主键
  1414. dept: '',//部门名称
  1415. depteventId: '',//事件部门关联责任人
  1416. name: '',//姓名
  1417. post: '',//岗位
  1418. telphone: ''//手机号addSelection
  1419. }
  1420. //添加新的行数
  1421. this.dutysystemTableData.push(newValue)
  1422. },
  1423. finUserByDept: function(){ //根据部门选择责任人
  1424. this.showFindUserByDept=true;
  1425. },
  1426. addSelection: function(userList){
  1427. for (let i in this.dutysystemTableData) {
  1428. for (let j in userList) {
  1429. if(this.dutysystemTableData[i].name == userList[j].name && this.dutysystemTableData[i].telphone == userList[j].telphone){
  1430. userList.splice(j, 1);
  1431. }
  1432. }
  1433. }
  1434. this.dutysystemTableData = this.dutysystemTableData.concat(userList);
  1435. this.showFindUserByDept=false;
  1436. },
  1437. handleDelete: function(index, row) {//删除负责人行数
  1438. if (row.id != null && row.id != '') {
  1439. let param = { ids: row.id }
  1440. dutysystemRemove(param).then(res => {
  1441. this.$message.success(`删除成功!`)
  1442. this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId)
  1443. })
  1444. } else {
  1445. this.dutysystemTableData.splice(index, 1)
  1446. }
  1447. },
  1448. handleSave: function(index, rowData) {//保存负责人行数
  1449. rowData.dept = this.dutysystemDeptName
  1450. rowData.depteventId = this.depteventId
  1451. dutysystemAdd(rowData).then(res => {
  1452. this.$message.success(`保存成功!`)
  1453. this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId)
  1454. })
  1455. },
  1456. dutysystemSelect: function(deptId, dutysystemDeptName, depteventId) {//通过部门查询负责人信息
  1457. this.dutysystemDeptName = dutysystemDeptName
  1458. this.depteventId = depteventId
  1459. this.iconCurrentIndex = deptId
  1460. let param = { depteventId: depteventId }
  1461. dutysystemList(param).then(res => {
  1462. if (res.data != null && res.data.length > 0) {
  1463. this.dutysystemTableData = res.data
  1464. }else {
  1465. this.dutysystemTableData = []
  1466. }
  1467. })
  1468. },
  1469. showResponsibility() {//弹出责任制弹窗
  1470. //初始化责任制数据列表
  1471. this.dutysystemTableData = [];
  1472. let param = { eventCode: this.eventCode }
  1473. centereventtdepteventList(param).then(res => {
  1474. this.depteventList = res.data
  1475. this.showResponsibilityDialog = true
  1476. })
  1477. },
  1478. closeResponsibilityDialog() {//责任制关闭
  1479. this.dutysystemTableData = []
  1480. this.dutysystemDeptName = ''
  1481. this.depteventId = ''
  1482. this.iconCurrentIndex = ''
  1483. this.showResponsibilityDialog = false
  1484. },
  1485. closeMeetingMsgDialog() {//会议弹窗关闭
  1486. this.dutysystemTableData = []
  1487. this.dutysystemDeptName = ''
  1488. this.depteventId = ''
  1489. this.iconCurrentIndex = ''
  1490. this.showMeetingMsgDialog = false
  1491. },
  1492. addResponsibilityDialog() {//责任制保存
  1493. console.log(this.dutysystemTableData)
  1494. let reg_user = /^[\u4e00-\u9fa5]{2,4}$/; //2-4个中文字符正则
  1495. 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位手机号码正则
  1496. for(let i in this.dutysystemTableData){
  1497. if(!reg_user.test(this.dutysystemTableData[i].name)){
  1498. this.$message.error(`请输入正确姓名!`)
  1499. return;
  1500. }
  1501. if(!reg_tel.test(this.dutysystemTableData[i].telphone)){
  1502. this.$message.error(`请输入正确手机号码!`)
  1503. return;
  1504. }
  1505. if(this.dutysystemTableData[i].id==null || this.dutysystemTableData[i].id==''){
  1506. this.dutysystemTableData[i].dept = this.dutysystemDeptName;
  1507. this.dutysystemTableData[i].depteventId = this.depteventId;
  1508. }
  1509. }
  1510. const param = {centereventTDutySystemList:this.dutysystemTableData,eventCode:this.eventCode,eventName:this.eventName}
  1511. dutysystemAdd(param).then(res => {
  1512. this.$message.success(`保存成功!`)
  1513. this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId);
  1514. this.closeResponsibilityDialog();
  1515. })
  1516. },
  1517. /************************************责任制-结束****************************************/
  1518. showheatPlotting() {
  1519. // if (!this.$refs.supermapDialog.isheatPlotting) {
  1520. // this.$refs.supermapDialog.showheatPlotting(this.latitude, this.longitude)
  1521. // } else {
  1522. // this.$refs.supermapDialog.isheatPlotting = false
  1523. // }
  1524. // this.cancelEventShow();
  1525. this.eventDialog = false;
  1526. this.$emit('getFirespread', this.eventCode);
  1527. },
  1528. showTVWallDiaLog() {
  1529. this.initByCameras()
  1530. // this.$refs.TVWall.showTVWall();
  1531. },
  1532. showTVWall(channelCode, channelName) {
  1533. let tvListJson = [{
  1534. "switchTab": "2",
  1535. "treeLabels": [{
  1536. "id": null,
  1537. "labelCode": "999",
  1538. "labelName": "电视墙",
  1539. "cameraType": null,
  1540. "parentLabelCode": ""
  1541. },
  1542. {
  1543. "id": "spcamera00010",
  1544. "labelCode": channelCode,
  1545. "labelName": channelName,
  1546. "cameraType": "1",
  1547. "parentLabelCode": "999"
  1548. }
  1549. ],
  1550. "labelChannels": [{
  1551. "labelCode": channelCode,
  1552. "channelDates": [{
  1553. "channelCode": channelCode,
  1554. "channelName": channelName,
  1555. "channelSn": null,
  1556. "cameraType": "1",
  1557. "online": "1",
  1558. "cameraCode": "1"
  1559. }]
  1560. }]
  1561. }]
  1562. this.$refs.TVWall.showTVWall(tvListJson, [{
  1563. "channelId": channelCode
  1564. }]);
  1565. this.$refs.bottomMenu.showMeasure = false;
  1566. this.$refs.bottomMenu.showChild = false;
  1567. this.$refs.bottomMenu.showBanChild = false;
  1568. this.$refs.bottomMenu.showChangChild = false;
  1569. },
  1570. initByCameras()
  1571. {
  1572. const params=Object.assign({})
  1573. params.longitude=this.longitude;
  1574. params.latitude=this.latitude;
  1575. params.type='8'
  1576. initByCameras(params).then(res=>
  1577. {
  1578. this.$refs.TVWall.showTVWall1(this.longitude,this.latitude,res.data);
  1579. this.$refs.bottomMenu.showMeasure = false
  1580. this.$refs.bottomMenu.showChild = false
  1581. this.$refs.bottomMenu.showBanChild = false
  1582. this.$refs.bottomMenu.showChangChild = false
  1583. })
  1584. },
  1585. showUpdateYjYuAn() {
  1586. listYuAn().then(res => {
  1587. //关联预案列表
  1588. if (res.code == 200) {
  1589. this.guanLianYuAnList = res.data
  1590. this.showGuanLianYuAnConfirm = true
  1591. }
  1592. })
  1593. },
  1594. updateYjYuAn() {
  1595. if(this.eventStatusValue=='forest_event_status_1'||this.eventStatusValue=='forest_event_status_7') {
  1596. this.$message.error(`修改预案信息在签收后方可修改!`)
  1597. return
  1598. }else if(this.eventStatusValue=='forest_event_status_3'){
  1599. this.$message.error(`误报事件无法修改预案信息!`)
  1600. return
  1601. }else{
  1602. let param = { eventCode: this.eventCode, reserve: this.sendGuanLianYuAn }
  1603. if(this.sendGuanLianYuAn==''||this.sendGuanLianYuAn==null){
  1604. this.$message.error(`请选择预案信息!`)
  1605. return
  1606. }
  1607. updateYjYuAn(param).then(res => {
  1608. //事件调整关联预案
  1609. if (res.code == 200) {
  1610. this.$message.success(`预案调整成功!`)
  1611. this.refreshEventDialog(this.eventCode)
  1612. this.sendGuanLianYuAn = null
  1613. this.showGuanLianYuAnConfirm = false
  1614. }
  1615. })
  1616. }
  1617. },
  1618. fireControlViewPoint(type) {
  1619. // alert(type)
  1620. if (this.resourcesListCheck.indexOf(type) > -1) {
  1621. this.resourcesListCheck.splice(this.resourcesListCheck.indexOf(type), 1)
  1622. setTimeout(() => {
  1623. this.$refs.supermapDialog.clearMByType(type)
  1624. }, 1000)
  1625. } else {
  1626. // 消防资源落点
  1627. let param = { longitude: this.longitude, latitude: this.latitude, type: type, radius: this.radius }
  1628. if (type != 'sxt') {
  1629. fireControlViewPoint(param).then(res => {
  1630. if (res.data != null && res.data.pointList.length > 0) {
  1631. this.resourcesListCheck.push(type)
  1632. var markersList = []
  1633. for (let i = 0; i < res.data.pointList.length; i++) {
  1634. let markersMap = {
  1635. lng: 124.59,
  1636. lat: 43.02,
  1637. icon: 'marker',
  1638. bindPopupHtml: '',
  1639. click: '',
  1640. parameter: '',
  1641. keepBindPopup: false,
  1642. isAggregation: true
  1643. }
  1644. markersMap.icon = 'sj-icon-map-' + type.replaceAll("_", "-");
  1645. markersMap.lng = res.data.pointList[i].longitude;
  1646. markersMap.lat = res.data.pointList[i].latitude;
  1647. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1648. '<span>' +
  1649. ' <div class="d-l-con">' +
  1650. ' <div class="d-l-l-text">' +
  1651. ' <h4>资源名称:' + res.data.pointList[i].name + '</h4>' +
  1652. ' </div>' +
  1653. ' </div>' +
  1654. ' </span>' +
  1655. '<span>' +
  1656. ' <div class="d-l-con">' +
  1657. ' <div class="d-l-l-text">' +
  1658. ' <h4>经纬度:' + res.data.pointList[i].longitude +','+ res.data.pointList[i].latitude + '</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].contacts + '</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].phone + '</h4>' +
  1673. ' </div>' +
  1674. ' </div>' +
  1675. ' </span>' +
  1676. '</div>'
  1677. markersList.push(markersMap)
  1678. }
  1679. setTimeout(() => {
  1680. this.$refs.supermapDialog.setMarkersByType(markersList, type)
  1681. }, 1000)
  1682. }
  1683. })
  1684. }else {
  1685. this.listResourceByWz(type);
  1686. }
  1687. }
  1688. },
  1689. listResourceByWz(type) {
  1690. if (this.resourcesListCheck.indexOf(type) > -1) {
  1691. this.resourcesListCheck.splice(this.resourcesListCheck.indexOf(type), 1)
  1692. setTimeout(() => {
  1693. this.$refs.supermapDialog.clearMByType(type)
  1694. }, 1000)
  1695. } else {
  1696. //搜索物资
  1697. let param = { longitude: this.longitude, latitude: this.latitude, type: type, radius: this.radius }
  1698. listResourceByWz(param).then(res => {
  1699. if (res.data != null && res.data.length > 0) {
  1700. this.resourcesListCheck.push(type)
  1701. var markersList = []
  1702. for (let i = 0; i < res.data.length; i++) {
  1703. let markersMap = {
  1704. lng: 124.59,
  1705. lat: 43.02,
  1706. icon: 'marker',
  1707. bindPopupHtml: '',
  1708. click: '',
  1709. parameter: '',
  1710. keepBindPopup: false,
  1711. isAggregation: true
  1712. }
  1713. if (type == 'qsk') {
  1714. markersMap.icon = 'sj-icon-centerdata-t-forest-waterintake'
  1715. } else if (type == 'sh') {
  1716. markersMap.icon = 'sj-icon-centerdata-t-forest-watercrane'
  1717. } else if (type == 'xfs') {
  1718. markersMap.icon = 'sj-icon-centerdata-t-forest-firehydrant'
  1719. } else if (type == 'qjd') {
  1720. markersMap.icon = 'sj-icon-landing'
  1721. } else if (type == 'jcz') {
  1722. markersMap.icon = 'sj-icon-checkpoint'
  1723. } else if (type == 'fhd') {
  1724. markersMap.icon = 'sj-icon-fireteam'
  1725. } else if (type == 'zdqy') {
  1726. markersMap.icon = 'sj-icon-keyAreas'
  1727. } else if (type == 'sxt') {
  1728. markersMap.icon = 'camera'
  1729. if (res.data[i].cameraCode != null) {
  1730. markersMap.click = 'preview'
  1731. // markersMap.parameter = res.data[i].cameraCode
  1732. markersMap.parameter = {code:res.data[i].cameraCode,
  1733. type:res.data[i].cameraFactory?res.data[i].cameraFactory:1,name:res.data[i].name}
  1734. }
  1735. }
  1736. markersMap.lng = res.data[i].longitude
  1737. markersMap.lat = res.data[i].latitude
  1738. markersMap.bindPopupHtml = '<div class="map-tip">' +
  1739. '<span>' +
  1740. ' <div class="d-l-con">' +
  1741. ' <div class="d-l-l-text">' +
  1742. ' <h4>资源名称:' + res.data[i].name + '</h4>' +
  1743. ' </div>' +
  1744. ' </div>' +
  1745. ' </span>' +
  1746. '</div>'
  1747. markersList.push(markersMap)
  1748. }
  1749. setTimeout(() => {
  1750. this.$refs.supermapDialog.setMarkersByType(markersList, type)
  1751. }, 1000)
  1752. }
  1753. })
  1754. }
  1755. },
  1756. // 返回图片列表
  1757. assetTypeAnImage(filePath) {
  1758. let imageList = []
  1759. if (filePath != null && filePath.length > 0) {
  1760. for (let i = 0; i < filePath.length; i++) {
  1761. if (filePath[i].fileType == 'image') {
  1762. imageList.push(filePath[i].fileUrl)
  1763. }
  1764. }
  1765. }
  1766. return imageList
  1767. },
  1768. clickFile(fileUrl, fileName, fileType) {
  1769. if (fileType == 'image') {
  1770. return
  1771. } else if (fileType == 'video') {
  1772. this.showTcPlayer = true
  1773. setTimeout(() => {
  1774. this.playVideo = fileUrl
  1775. }, 500)
  1776. } else {
  1777. let a = document.createElement('a')
  1778. a.download = fileName
  1779. a.href = fileUrl
  1780. a.target = '_blank'
  1781. a.click()
  1782. }
  1783. },
  1784. setValue(event) {
  1785. //签收选择部门
  1786. this.sendDeptName = event.label
  1787. this.sendDeptId = event.value
  1788. },
  1789. cancelEventConfirm() {
  1790. //关闭事件签收弹窗
  1791. this.sendDeptId = null
  1792. this.sendDeptName = null
  1793. this.sendUserFegin = []
  1794. this.sendEventType = null
  1795. this.sendHuoZaiBanJing = 0
  1796. this.sendGuanLianYuAn = null
  1797. this.longitude = null
  1798. this.latitude = null
  1799. this.sendTaskTitle = null
  1800. this.sendTaskSource = null
  1801. this.sendTaskContent = null
  1802. this.sendLianDongDept = []
  1803. this.eventTypeList = []//事件类型列表
  1804. this.guanLianYuAnList = []//关联预案列表
  1805. this.deptOptions = []//签收部门
  1806. this.deptOptionsLiandong = []//联动部门
  1807. this.eventStatusButton = null//流程按钮标识
  1808. this.eventConfirmTitle = null//流程按钮标识
  1809. this.resourcesListCheck = []
  1810. this.userFeginList = [] //联系人列表
  1811. },
  1812. cancelEventConfirm_send() {
  1813. //清空表单数据
  1814. this.sendDeptId = null
  1815. this.sendDeptName = null
  1816. this.sendUserFegin = []
  1817. this.sendEventType = null
  1818. this.sendHuoZaiBanJing = 0
  1819. this.sendGuanLianYuAn = null
  1820. this.sendTaskTitle = null
  1821. this.sendTaskSource = null
  1822. this.sendTaskContent = null
  1823. this.sendLianDongDept = []
  1824. this.eventTypeList = []//事件类型列表
  1825. this.guanLianYuAnList = []//关联预案列表
  1826. this.deptOptions = []//签收部门
  1827. this.deptOptionsLiandong = []//联动部门
  1828. this.userFeginList = [] //联系人列表
  1829. },
  1830. cancelEventConfirm_gd() {
  1831. //关闭事件火险报告窗口
  1832. this.resetTable1()
  1833. this.resetTable2()
  1834. },
  1835. cancelEventConfirm_mp4() {
  1836. //关闭视频窗口
  1837. this.playVideo = ''
  1838. this.$refs.TcPlayer.destroyed()
  1839. },
  1840. resetTable1() {
  1841. this.table1 = {
  1842. reportUnit: null,
  1843. reportTimeY: null,
  1844. reportTimeM: null,
  1845. reportTimeD: null,
  1846. forestFireLossTotal: null,
  1847. fireLossTotal: null,
  1848. forestArea: null,
  1849. forestPrice: null,
  1850. treesNumber: null,
  1851. treesPrice: null,
  1852. minorInjuriesNumber: null,
  1853. minorInjuriesPrice: null,
  1854. seriouslyInjuredNumber: null,
  1855. seriouslyInjuredPrice: null,
  1856. deathNumber: null,
  1857. deathPrice: null,
  1858. elseFireLossPrice: null,
  1859. blazesPriceTotal: null,
  1860. artificialDays: null,
  1861. artificialPrice: null,
  1862. vehicleNumber: null,
  1863. carNumber: null,
  1864. vehiclePrice: null,
  1865. planeNumber: null,
  1866. planePrice: null,
  1867. elseBlazesPrice: null,
  1868. note: null
  1869. }
  1870. },
  1871. resetTable2() {
  1872. this.table2 = {
  1873. fireTime: null,
  1874. foundTime: null,
  1875. blazesTime: null,
  1876. address: null,
  1877. firePlace: null,
  1878. foundType: null,
  1879. longitudeD: null,
  1880. longitudeM: null,
  1881. longitudeS: null,
  1882. latitudeD: null,
  1883. latitudeM: null,
  1884. latitudeS: null,
  1885. fireSource: null,
  1886. fireType: null,
  1887. fireLevel: null,
  1888. areaTotal: null,
  1889. forestLossAreaTotal: null,
  1890. originalForestArea: null,
  1891. artificialForestArea: null,
  1892. peopleTotal: null,
  1893. blazesTeamNumber: null,
  1894. policeNumber: null,
  1895. armyNumber: null,
  1896. crowdNumber: null,
  1897. windExtinguisher: null,
  1898. secondTool: null,
  1899. waterGun: null,
  1900. elseThings: null,
  1901. forestComposition: null,
  1902. forestToken: null,
  1903. porosities: null,
  1904. weather: null,
  1905. temperature: null,
  1906. fireInsuranceLevel: null,
  1907. windLevel: null,
  1908. windDirection: null,
  1909. commandUnit: null,
  1910. commandName: null,
  1911. commandPosition: null,
  1912. surveyUnit: null,
  1913. surveyName: null,
  1914. surveyPosition: null,
  1915. accidentName: null,
  1916. accidentSex: null,
  1917. accidentAge: null,
  1918. accidentPosition: null,
  1919. accidentUnit: null,
  1920. dealType: null,
  1921. dealNumber: null,
  1922. criminalDealNumber: null,
  1923. accidentDealSituation: null,
  1924. responsibilityDealSituation: null,
  1925. leadershipDealSituation: null,
  1926. townForm: null,
  1927. townAudit: null,
  1928. cityForm: null,
  1929. cityAudit: null
  1930. }
  1931. },
  1932. /**
  1933. * eventStatusValue 事件状态
  1934. * isSend 是否办理
  1935. * */
  1936. async updateCentereventTEventcatalogueStatus(eventStatus, isSend) {
  1937. this.eventStatusButton = eventStatus
  1938. let that=this
  1939. if (!isSend) {//事件弹窗
  1940. if (eventStatus == 'qs') {//签收
  1941. that.eventConfirmTitle = '事件签收'
  1942. let param = { parentId: that.eventType }
  1943. if(that.eventTypeXl != null){
  1944. that.sendEventType = that.eventTypeXl;
  1945. }else{
  1946. await listSJfl(param).then(res => {
  1947. //事件类型
  1948. if (res.code == 200) {
  1949. that.eventTypeList = res.data
  1950. }
  1951. })
  1952. }
  1953. await listYuAn().then(res => {
  1954. //关联预案
  1955. if (res.code == 200) {
  1956. that.guanLianYuAnList = res.data
  1957. }
  1958. })
  1959. await selectByeventCode(that.eventCode).then(res => {
  1960. //签收部门
  1961. if (res.code == 200) {
  1962. that.deptOptions = res.data
  1963. that.deptNameitem = '签收部门'
  1964. }
  1965. })
  1966. that.showEventConfirm = true
  1967. } else if (eventStatus == 'qr') {//确认
  1968. that.eventConfirmTitle = '事件确认'
  1969. } else if (eventStatus == 'wb') {//误报
  1970. that.eventConfirmTitle = '事件误报'
  1971. await selectByeventCode(that.eventCode).then(res => {
  1972. //签收部门
  1973. if (res.code == 200) {
  1974. that.deptOptions = res.data
  1975. that.deptNameitem = '签收部门'
  1976. }
  1977. })
  1978. that.showEventConfirm = true
  1979. } else if (eventStatus == 'cf') {//重复
  1980. that.eventConfirmTitle = '事件重复'
  1981. await selectByeventCode(that.eventCode).then(res => {
  1982. //签收部门
  1983. if (res.code == 200) {
  1984. that.deptOptions = res.data
  1985. that.deptNameitem = '签收部门'
  1986. }
  1987. })
  1988. that.showEventConfirm = true
  1989. } else if (eventStatus == 'ld') {//联动
  1990. await selectByeventCode(that.eventCode).then(res => {
  1991. //签收部门
  1992. if (res.code == 200) {
  1993. that.deptOptions = res.data
  1994. that.deptNameitem = '发起部门'
  1995. }
  1996. })
  1997. that.eventConfirmTitle = '事件联动'
  1998. /** 查询部门树结构 */
  1999. await deptTreeselect().then(response => {
  2000. that.deptOptionsLiandong = response.data
  2001. })
  2002. that.showEventConfirm = true
  2003. } else if (eventStatus == 'gd') {//归档填报
  2004. that.showEventConfirm_gd = true
  2005. }
  2006. } else {//事件提交后台
  2007. if (eventStatus == 'ld') {
  2008. //事件处理流程--联动1
  2009. let array = that.$refs.LiandongDept.getCheckedNodes()
  2010. if (array != null && array.length > 0) {
  2011. for (let i = 0; i < array.length; i++) {
  2012. that.sendLianDongDept.push({ 'taskDeptId': array[i].id, 'taskDeptName': array[i].label })
  2013. }
  2014. }
  2015. if (that.sendTaskSource == '' || that.sendTaskSource == null) {
  2016. that.$message.error(`请选择任务来源!`)
  2017. return
  2018. }
  2019. if (that.sendTaskContent == '' || that.sendTaskContent == null) {
  2020. that.$message.error(`请输入任务内容!`)
  2021. return
  2022. }
  2023. if (that.sendTaskTitle == '' || that.sendTaskTitle == null) {
  2024. that.$message.error(`请输入任务标题!`)
  2025. return
  2026. }
  2027. if (that.sendLianDongDept == '' || that.sendLianDongDept == null) {
  2028. that.$message.error(`请选择任务联动部门!`)
  2029. return
  2030. }
  2031. if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName == null) {
  2032. that.$message.error(`请选择任务发起部门!`)
  2033. return
  2034. }
  2035. let eventState = "";
  2036. listSJfl({ parentId: that.eventType }).then(res => {
  2037. if (res.code == 200) {
  2038. for(let i in res.data){
  2039. if(res.data[i].id = that.eventTypeXl){
  2040. eventState = res.data[i].eventTypeName;
  2041. }
  2042. }
  2043. let param = {
  2044. sendDeptId: that.sendDeptId,
  2045. sendDept: that.sendDeptName,
  2046. eventCode: that.eventCode,
  2047. longitude: that.longitude,
  2048. latitude: that.latitude,
  2049. taskTitle: that.sendTaskTitle,
  2050. taskSource: that.sendTaskSource,
  2051. taskContent: that.sendTaskContent,
  2052. taskDept: that.sendLianDongDept,
  2053. eventAddress:that.address,
  2054. eventState:eventState,
  2055. eventName:that.eventName
  2056. }
  2057. sendTask(param).then(res => {
  2058. if (res.code == 200) {
  2059. that.$message.success(`联动发起成功!`)
  2060. that.refreshEventDialog(that.eventCode)
  2061. that.cancelEventConfirm_send()
  2062. that.showEventConfirm = false
  2063. }
  2064. })
  2065. }
  2066. })
  2067. } else if (eventStatus == 'gd') {
  2068. if(that.eventType == 1){
  2069. let double = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //数字和两位小数
  2070. let number = /^[+]{0,1}(\d+)$/g; //正整数
  2071. if(!double.test(that.table2.areaTotal)){
  2072. that.$message.error(`面积只能填写到小数后两位!`)
  2073. return
  2074. }
  2075. if(!number.test(that.table2.peopleTotal)){
  2076. that.$message.error(`人员请填写正整数!`)
  2077. return
  2078. }
  2079. if(that.table2.forestComposition == '' || that.table2.forestComposition==null){
  2080. that.$message.error(`林木组成不能为空!`)
  2081. return
  2082. }
  2083. if(that.table2.forestToken == '' || that.table2.forestToken==null){
  2084. that.$message.error(`林令不能为空!`)
  2085. return
  2086. }
  2087. if(that.table2.porosities == '' || that.table2.porosities==null){
  2088. that.$message.error(`疏密度不能为空!`)
  2089. return
  2090. }
  2091. }
  2092. //事件处理流程--归档
  2093. let param = {
  2094. deptId: that.deptId,
  2095. eventCode: that.eventCode,
  2096. eventStatus: eventStatus,
  2097. id: that.eventId,
  2098. czlx: '',
  2099. forestFireLoss: { eventId: that.eventCode, table1: that.table1 },
  2100. fireInformation: { eventId: that.eventCode, table2: that.table2 },
  2101. array: that.regionalFlagObj.array
  2102. }
  2103. updateCentereventTEventcatalogueStatus(param).then(res => {
  2104. if (res.code == 200) {
  2105. that.$message.success(`处理成功!`)
  2106. that.refreshEvent(that.eventCode)
  2107. that.cancelEventConfirm_send()
  2108. that.showEventConfirm_gd = false
  2109. that.$emit('getEventList', that.calendarDay,10,1)
  2110. that.$emit('getSupermap', that.calendarDay)
  2111. }
  2112. })
  2113. } else if(eventStatus == 'cz'){
  2114. eventHandling(that.eventId,that.eventCode).then(res => {
  2115. if (res.code == 200) {
  2116. that.$message.success(`处理成功!`)
  2117. that.refreshEvent(that.eventCode)
  2118. that.cancelEventConfirm_send()
  2119. that.showEventConfirm = false
  2120. }
  2121. })
  2122. } else {
  2123. if (eventStatus == 'qs' ) {
  2124. if (that.sendDeptId == '' || that.sendDeptId == null || that.sendDeptName == '' || that.sendDeptName == null) {
  2125. that.$message.error(`请选择部门!`)
  2126. return
  2127. }
  2128. if (eventStatus == 'qs') {
  2129. if (that.sendEventType == '' || that.sendEventType == null) {
  2130. that.$message.error(`请选择事件类型!`)
  2131. return
  2132. }
  2133. }
  2134. } else {
  2135. that.sendDeptId = that.deptId
  2136. }
  2137. //事件处理流程
  2138. let param = {
  2139. phones:that.sendUserFegin,
  2140. eventCode: that.eventCode,
  2141. deptId: that.sendDeptId,
  2142. deptName: that.sendDeptName,
  2143. eventStatus: eventStatus,
  2144. eventType: that.sendEventType,
  2145. id: that.eventId,
  2146. czlx: '',
  2147. cameraCode: that.cameraCode,
  2148. fireRadius: that.sendHuoZaiBanJing,
  2149. reserve: that.sendGuanLianYuAn,
  2150. address:that.address,
  2151. }
  2152. updateCentereventTEventcatalogueStatus(param).then(res => {
  2153. if (res.code == 200) {
  2154. that.$message.success(`处理成功!`)
  2155. that.cancelEventConfirm_send()
  2156. that.showEventConfirm = false
  2157. that.$emit('getEventList', that.calendarDay,10,1)
  2158. that.$emit('getSupermap', that.calendarDay)
  2159. if (eventStatus == "cf" || eventStatus == "wb") {
  2160. this.eventDialog = false;
  2161. return;
  2162. }
  2163. that.refreshEvent(that.eventCode)
  2164. }
  2165. })
  2166. }
  2167. }
  2168. },
  2169. filterNode(value, data) {
  2170. //树搜索
  2171. if (!value) return true
  2172. return data.label.indexOf(value) !== -1
  2173. },
  2174. sendEventLog() {
  2175. if( this.eventLog == '' || this.eventLog == null ){
  2176. return;
  2177. }
  2178. //日志发送
  2179. let param = { eventCode: this.eventCode, logContent: this.eventLog,operation:"bus_oper_type_2",operationType:"log_oper_type_1"}
  2180. sendEventLog(param).then(res => {
  2181. if (res.code == 200) {
  2182. this.$message.success(`发送成功!`)
  2183. this.eventLog = null
  2184. this.refreshEventDialog(this.eventCode)
  2185. }
  2186. })
  2187. },
  2188. showEventLogUpload() {
  2189. this.$refs.eventLogUpload.eventLogUpload(this.eventCode)
  2190. },
  2191. cancelEventShow() {
  2192. this.statusFlag = null
  2193. this.deptId = null
  2194. console.log('关闭事件弹窗')
  2195. this.eventLogList = []
  2196. },
  2197. showEventDialog(eventCode) {
  2198. this.fireControlViewList()
  2199. this.eventCode = eventCode
  2200. let that = this
  2201. //获取事件详情
  2202. getEventDetail({ eventCode: eventCode }).then(res => {
  2203. let markersMapList=[];
  2204. that.eventDialog = true
  2205. that.eventLogList = res.data.eventlog//日志列表
  2206. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
  2207. that.address = res.data.catalogue.address
  2208. that.eventStatusValue = res.data.catalogue.eventStatusValue
  2209. that.eventType = res.data.catalogue.eventType
  2210. that.statusFlag = res.data.catalogue.statusFlag
  2211. that.dataStatus = res.data.catalogue.dataStatus
  2212. that.deptId = res.data.catalogue.deptId
  2213. that.eventId = res.data.catalogue.id
  2214. that.longitude = res.data.catalogue.longitude
  2215. that.latitude = res.data.catalogue.latitude
  2216. that.eventName = res.data.catalogue.eventName
  2217. that.eventTypeXl = res.data.catalogue.eventTypeXl
  2218. let markersMap = {
  2219. lng: 124.59,
  2220. lat: 43.02,
  2221. icon: 'marker',
  2222. bindPopupHtml: '',
  2223. click: '',
  2224. parameter: '',
  2225. keepBindPopup: false,
  2226. isAggregation: true,
  2227. radius: 0
  2228. }
  2229. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  2230. markersMap.icon = 'sj-icon-map-xinshangbao'
  2231. }
  2232. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  2233. markersMap.icon = 'sj-icon-map-cuiban'
  2234. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  2235. markersMap.icon = 'sj-icon-map-qianshou'
  2236. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  2237. markersMap.icon = 'sj-icon-map-banjie'
  2238. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  2239. markersMap.icon = 'sj-icon-map-guidang'
  2240. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  2241. markersMap.icon = 'sj-icon-map-queren'
  2242. }
  2243. markersMap.lng = res.data.catalogue.longitude
  2244. markersMap.lat = res.data.catalogue.latitude
  2245. 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) {
  2246. markersMap.radius = res.data.eventdetail[0].fireRadius
  2247. }
  2248. markersMapList.push(markersMap);
  2249. if (res.data.centermonitorTCamera != null) {
  2250. that.cameraCode = res.data.centermonitorTCamera.id;
  2251. let markersMap = {
  2252. lng: 124.59,
  2253. lat: 43.02,
  2254. icon: 'camera',
  2255. bindPopupHtml: '',
  2256. click: 'preview',
  2257. parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory,name:res.data.centermonitorTCamera.cameraName},
  2258. keepBindPopup: false,
  2259. isAggregation: true,
  2260. radius: 0
  2261. }
  2262. markersMap.bindPopupHtml = '<div class="map-tip">' +
  2263. '<span>' +
  2264. ' <div class="d-l-con">' +
  2265. ' <div class="d-l-l-text">' +
  2266. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  2267. ' </div>' +
  2268. ' </div>' +
  2269. ' </span>' +
  2270. '<span>' +
  2271. '</div>'
  2272. markersMap.lng = res.data.centermonitorTCamera.longitude
  2273. markersMap.lat = res.data.centermonitorTCamera.latitude
  2274. markersMapList.push(markersMap)
  2275. }
  2276. setTimeout(() => {
  2277. that.$refs.supermapDialog.dynamicPlotting()//弹出动态绘制窗口,防止截图位置改变
  2278. that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  2279. that.$refs.supermapDialog.clearM(false)
  2280. that.$refs.supermapDialog.clearM(true)
  2281. that.$refs.supermapDialog.setMarkersRadius(markersMapList)
  2282. }, 2000)
  2283. })
  2284. },
  2285. refreshEvent(eventCode) {
  2286. this.eventCode = eventCode
  2287. let that = this
  2288. //刷新--事件详情
  2289. getEventDetail({ eventCode: eventCode }).then(res => {
  2290. let markersMapList=[];
  2291. that.eventDialog = true
  2292. that.eventLogList = res.data.eventlog
  2293. that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
  2294. that.address = res.data.catalogue.address
  2295. that.eventStatusValue = res.data.catalogue.eventStatusValue
  2296. that.eventType = res.data.catalogue.eventType
  2297. that.statusFlag = res.data.catalogue.statusFlag
  2298. that.dataStatus = res.data.catalogue.dataStatus
  2299. that.deptId = res.data.catalogue.deptId
  2300. that.eventId = res.data.catalogue.id
  2301. that.latitude = res.data.catalogue.latitude
  2302. that.longitude = res.data.catalogue.longitude
  2303. that.eventName = res.data.catalogue.eventName
  2304. that.eventTypeXl = res.data.catalogue.eventTypeXl
  2305. let markersMap = {
  2306. lng: 124.59,
  2307. lat: 43.02,
  2308. icon: 'marker',
  2309. bindPopupHtml: '',
  2310. click: '',
  2311. parameter: '',
  2312. keepBindPopup: false,
  2313. isAggregation: true,
  2314. radius: 0
  2315. }
  2316. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount == 0) {
  2317. markersMap.icon = 'sj-icon-map-xinshangbao'
  2318. }
  2319. if (res.data.catalogue.eventStatusValue == 'forest_event_status_1' && res.data.catalogue.urgeCount > 0) {
  2320. markersMap.icon = 'sj-icon-map-cuiban'
  2321. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_2') {
  2322. markersMap.icon = 'sj-icon-map-qianshou'
  2323. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_5') {
  2324. markersMap.icon = 'sj-icon-map-banjie'
  2325. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_6') {
  2326. markersMap.icon = 'sj-icon-map-guidang'
  2327. } else if (res.data.catalogue.eventStatusValue == 'forest_event_status_7') {
  2328. markersMap.icon = 'sj-icon-map-queren'
  2329. }
  2330. markersMap.lng = res.data.catalogue.longitude
  2331. markersMap.lat = res.data.catalogue.latitude
  2332. 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) {
  2333. markersMap.radius = res.data.eventdetail[0].fireRadius
  2334. }
  2335. markersMapList.push(markersMap)
  2336. if (res.data.centermonitorTCamera != null) {
  2337. let markersMap = {
  2338. lng: 124.59,
  2339. lat: 43.02,
  2340. icon: 'camera',
  2341. bindPopupHtml: '',
  2342. click: 'preview',
  2343. parameter: {code:res.data.centermonitorTCamera.cameraCode,type:res.data.centermonitorTCamera.cameraFactory,name:res.data.centermonitorTCamera.cameraName},
  2344. keepBindPopup: false,
  2345. isAggregation: true,
  2346. radius: 0
  2347. }
  2348. markersMap.bindPopupHtml = '<div class="map-tip">' +
  2349. '<span>' +
  2350. ' <div class="d-l-con">' +
  2351. ' <div class="d-l-l-text">' +
  2352. ' <h4>摄像头名称:' + res.data.centermonitorTCamera.cameraName + '</h4>' +
  2353. ' </div>' +
  2354. ' </div>' +
  2355. ' </span>' +
  2356. '<span>' +
  2357. '</div>'
  2358. markersMap.lng = res.data.centermonitorTCamera.longitude
  2359. markersMap.lat = res.data.centermonitorTCamera.latitude
  2360. markersMapList.push(markersMap)
  2361. }
  2362. setTimeout(() => {
  2363. that.$refs.supermapDialog.clearM(false)
  2364. that.$refs.supermapDialog.clearM(true)
  2365. that.$refs.supermapDialog.setMarkersRadius(markersMapList)
  2366. that.$refs.supermapDialog.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
  2367. }, 2000)
  2368. })
  2369. },
  2370. refreshEventDialog(eventCode) {
  2371. //刷新--事件日志12
  2372. getEventDetail({ eventCode: eventCode }).then(res => {
  2373. this.eventLogList = res.data.eventlog
  2374. this.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo//应急预案
  2375. })
  2376. },
  2377. // 页面元素转图片
  2378. toImage() {
  2379. this.$message.success(`正在上传!请稍后...`)
  2380. // 手动创建一个 canvas 标签
  2381. const canvas = document.createElement('canvas')
  2382. // 获取父标签,意思是这个标签内的 DOM 元素生成图片
  2383. // imageTofile是给截图范围内的父级元素自定义的ref名称
  2384. // let canvasBox = this.$refs.imageTofile
  2385. let canvasBox = document.getElementById('forestWarmSuperMap')
  2386. let toolbar = document.getElementById('toolbar')
  2387. if(toolbar!=null){
  2388. canvasBox.removeChild(toolbar)
  2389. }
  2390. // 获取父级的宽高
  2391. const width = parseInt(window.getComputedStyle(canvasBox).width)
  2392. const height = parseInt(window.getComputedStyle(canvasBox).height)
  2393. // 宽高 * 2 并放大 2 倍 是为了防止图片模糊
  2394. canvas.width = width * 2
  2395. canvas.height = height * 2
  2396. canvas.style.width = width + 'px'
  2397. canvas.style.height = height + 'px'
  2398. const context = canvas.getContext('2d')
  2399. context.scale(2, 2)
  2400. const options = {
  2401. backgroundColor: null,
  2402. canvas: canvas,
  2403. useCORS: true
  2404. }
  2405. html2canvas(canvasBox, options).then((canvas) => {
  2406. // toDataURL 图片格式转成 base64
  2407. let dataBase64 = canvas.toDataURL('image/png')
  2408. this.uploadBase64(dataBase64)
  2409. })
  2410. canvasBox.appendChild(toolbar)
  2411. },
  2412. uploadBase64(dataBase64) {
  2413. //事件详情截图直接上传日志
  2414. uploadBase64({ eventCode: this.eventCode, base64: dataBase64 }).then(res => {
  2415. if (res.code == 200) {
  2416. this.$message.success(`截图上传成功!`)
  2417. this.refreshEventDialog(this.eventCode)
  2418. }
  2419. })
  2420. },
  2421. regionalFlagAdd: function() {//火灾区域
  2422. this.regionalFlagObj.array = []
  2423. this.regionalFlagOpen = true
  2424. },
  2425. showAreaLatLng: function(latlng) {//获取火灾区域经纬度
  2426. this.regionalFlagObj.array = latlng
  2427. this.$modal.msgSuccess('获取坐标成功!')
  2428. },
  2429. /** ----------------------------------摄像头预览开始------------------------------------- */
  2430. alertLogin: function() {
  2431. this.$modal.msg('登录中....')
  2432. },
  2433. alertLoginSuccess: function() {
  2434. this.$modal.msgSuccess('登录成功!')
  2435. },
  2436. alertLoginFailed: function() {
  2437. this.$modal.msgError('登陆失败!')
  2438. },
  2439. alertReinstall: function() {
  2440. this.$modal.msgWarning('请重新安装客户端')
  2441. },
  2442. cancelEventLocationShow() {
  2443. if (this.oWebControl != null) {
  2444. this.oWebControl.JS_HideWnd() // 先让窗口隐藏,规避可能的插件窗口滞后于浏览器消失问题
  2445. this.oWebControl.JS_Disconnect().then(function() { // 断开与插件服务连接成功
  2446. },
  2447. function() { // 断开与插件服务连接失败
  2448. })
  2449. }
  2450. },
  2451. /** 预览按钮操作 */
  2452. preview(cameraParam) {
  2453. if(cameraParam.type=='1'){
  2454. this.showTVWall(cameraParam.code,cameraParam.name)
  2455. // getDahuaVideoServer().then(newResponse => {
  2456. // console.log(newResponse)
  2457. // this.ws.detectConnectQt().then(res => {
  2458. // if (res) { // 连接客户端成功
  2459. // this.alertLogin()
  2460. // this.ws.login({
  2461. // loginIp: newResponse.loginIp,
  2462. // loginPort: newResponse.loginPort,
  2463. // userName: newResponse.userName,
  2464. // userPwd: newResponse.userPwd,
  2465. // token: '',
  2466. // https: 1
  2467. // })
  2468. // this.ws.on('loginState', (res) => {
  2469. // this.isLogin = res
  2470. // console.log('---res-----', res)
  2471. // if (res) {
  2472. // this.alertLoginSuccess()
  2473. // this.activePanel = 'key2'
  2474. // this.realTimeVideoDialog(cameraParam.code)
  2475. // } else {
  2476. // this.alertLoginFailed()
  2477. // }
  2478. // })
  2479. // } else { // 连接客户端失败
  2480. // this.alertReinstall()
  2481. // }
  2482. // })
  2483. // })
  2484. }else if(cameraParam.type=='0'){
  2485. let that = this
  2486. that.cameraVisible = true
  2487. getHaiKangVideoServer({cameraCode:cameraParam.code}).then(newResponse => {
  2488. that.cameraTitle = '摄像头-'+newResponse.data.cameraName
  2489. that.initPlugin(newResponse.data.appkey,newResponse.data.loginIp,newResponse.data.secret,newResponse.data.loginPort)
  2490. setTimeout(function() {
  2491. that.playhk(newResponse.data.channelCode)
  2492. }, 5000)
  2493. })
  2494. }
  2495. },
  2496. realTimeVideoDialog(cameraParams) { // 调用弹窗实时播放接口
  2497. if (!this.isLogin) {
  2498. this.$Message.info('正在登陆客户端,请稍等......')
  2499. return false
  2500. }
  2501. const param = [cameraParams]
  2502. this.ws.openVideo(param)
  2503. },
  2504. /** ----------------------------------摄像头预览结束------------------------------------- */
  2505. /** ----------------------------------海康摄像头预览开始------------------------------------- */
  2506. // 创建播放实例
  2507. initPlugin(newappkey, newloginIp, newsecret, newloginPort) {
  2508. let that = this
  2509. that.oWebControl = new WebControl({
  2510. szPluginContainer: 'playWnd', // 指定容器id
  2511. iServicePortStart: 15900, // 指定起止端口号,建议使用该值
  2512. iServicePortEnd: 15909,
  2513. szClassId: '23BF3B0A-2C56-4D97-9C03-0CB103AA8F11', // 用于IE10使用ActiveX的clsid
  2514. cbConnectSuccess: function() { // 创建WebControl实例成功
  2515. that.oWebControl.JS_StartService('window', { // WebControl实例创建成功后需要启动服务
  2516. dllPath: './VideoPluginConnect.dll' // 值"./VideoPluginConnect.dll"写死
  2517. }).then(function() { // 启动插件服务成功
  2518. that.oWebControl.JS_SetWindowControlCallback({ // 设置消息回调
  2519. cbIntegrationCallBack: cbIntegrationCallBack
  2520. })
  2521. that.oWebControl.JS_CreateWnd('playWnd', 1020, 600).then(function() { //JS_CreateWnd创建视频播放窗口,宽高可设定
  2522. that.init(newappkey, newloginIp, newsecret, newloginPort) // 创建播放实例成功后初始化
  2523. })
  2524. }, function() { // 启动插件服务失败
  2525. })
  2526. },
  2527. cbConnectError: function() { // 创建WebControl实例失败
  2528. that.oWebControl = null
  2529. $('#playWnd').html('插件未启动,正在尝试启动,请稍候...<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>')
  2530. WebControl.JS_WakeUp('VideoWebPlugin://') // 程序未启动时执行error函数,采用wakeup来启动程序
  2531. that.initCount++
  2532. if (that.initCount < 3) {
  2533. setTimeout(function() {
  2534. that.initPlugin(newappkey, newloginIp, newsecret, newloginPort)
  2535. }, 3000)
  2536. } else {
  2537. $('#playWnd').html('插件启动失败,请检查插件是否安装!<a href="./hk/VideoWebPlugin.exe">点击下载插件</a>')
  2538. }
  2539. },
  2540. cbConnectClose: function(bNormalClose) {
  2541. // 异常断开:bNormalClose = false
  2542. // JS_Disconnect正常断开:bNormalClose = true
  2543. that.oWebControl = null
  2544. }
  2545. })
  2546. },
  2547. //播放海康摄像头
  2548. playhk(channelCode) {
  2549. var cameraIndexCode = channelCode //获取输入的监控点编号值,必填
  2550. var streamMode = 0 //主子码流标识:0-主码流,1-子码流
  2551. var transMode = 1 //传输协议:0-UDP,1-TCP
  2552. var gpuMode = 0 //是否启用GPU硬解,0-不启用,1-启用
  2553. var wndId = -1 //播放窗口序号(在2x2以上布局下可指定播放窗口)
  2554. cameraIndexCode = cameraIndexCode.replace(/(^\s*)/g, '')
  2555. cameraIndexCode = cameraIndexCode.replace(/(\s*$)/g, '')
  2556. this.oWebControl.JS_RequestInterface({
  2557. funcName: 'startPreview',
  2558. argument: JSON.stringify({
  2559. cameraIndexCode: cameraIndexCode, //监控点编号
  2560. streamMode: streamMode, //主子码流标识
  2561. transMode: transMode, //传输协议
  2562. gpuMode: gpuMode, //是否开启GPU硬解
  2563. wndId: wndId //可指定播放窗口
  2564. })
  2565. })
  2566. },
  2567. //初始化
  2568. init(newappkey, newloginIp, newsecret, newloginPort) {
  2569. let that = this
  2570. that.getPubKey(function() {
  2571. ////////////////////////////////// 请自行修改以下变量值 ////////////////////////////////////
  2572. var appkey = newappkey //综合安防管理平台提供的appkey,必填
  2573. var secret = that.setEncrypt(newsecret) //综合安防管理平台提供的secret,必填
  2574. var ip = newloginIp //综合安防管理平台IP地址,必填
  2575. var playMode = 0 //初始播放模式:0-预览,1-回放
  2576. var port = Number(newloginPort) //综合安防管理平台端口,若启用HTTPS协议,默认443
  2577. var snapDir = 'D:\\SnapDir' //抓图存储路径
  2578. var videoDir = 'D:\\VideoDir' //紧急录像或录像剪辑存储路径
  2579. var layout = '1x1' //playMode指定模式的布局
  2580. var enableHTTPS = 1 //是否启用HTTPS协议与综合安防管理平台交互,这里总是填1
  2581. var encryptedFields = 'secret' //加密字段,默认加密领域为secret
  2582. var showToolbar = 1 //是否显示工具栏,0-不显示,非0-显示
  2583. var showSmart = 1 //是否显示智能信息(如配置移动侦测后画面上的线框),0-不显示,非0-显示
  2584. var buttonIDs = '0,16,256,257,258,259,260,512,513,514,515,516,517,768,769' //自定义工具条按钮
  2585. ////////////////////////////////// 请自行修改以上变量值 ////////////////////////////////////
  2586. that.oWebControl.JS_RequestInterface({
  2587. funcName: 'init',
  2588. argument: JSON.stringify({
  2589. appkey: appkey, //API网关提供的appkey
  2590. secret: secret, //API网关提供的secret
  2591. ip: ip, //API网关IP地址
  2592. playMode: playMode, //播放模式(决定显示预览还是回放界面)
  2593. port: port, //端口
  2594. snapDir: snapDir, //抓图存储路径
  2595. videoDir: videoDir, //紧急录像或录像剪辑存储路径
  2596. layout: layout, //布局
  2597. enableHTTPS: enableHTTPS, //是否启用HTTPS协议
  2598. encryptedFields: encryptedFields, //加密字段
  2599. showToolbar: showToolbar, //是否显示工具栏
  2600. showSmart: showSmart, //是否显示智能信息
  2601. buttonIDs: buttonIDs //自定义工具条按钮
  2602. })
  2603. }).then(function(oData) {
  2604. that.oWebControl.JS_Resize(1020, 600) // 初始化后resize一次,规避firefox下首次显示窗口后插件窗口未与DIV窗口重合问题
  2605. })
  2606. })
  2607. },
  2608. //获取公钥
  2609. getPubKey(callback) {
  2610. let that = this
  2611. that.oWebControl.JS_RequestInterface({
  2612. funcName: 'getRSAPubKey',
  2613. argument: JSON.stringify({
  2614. keyLength: 1024
  2615. })
  2616. }).then(function(oData) {
  2617. console.log(oData)
  2618. if (oData.responseMsg.data) {
  2619. that.pubKey = oData.responseMsg.data
  2620. callback()
  2621. }
  2622. })
  2623. },
  2624. //RSA加密
  2625. setEncrypt(value) {
  2626. var encrypt = new JSEncrypt()
  2627. encrypt.setPublicKey(this.pubKey)
  2628. return encrypt.encrypt(value)
  2629. },
  2630. /** ----------------------------------海康摄像头预览结束------------------------------------- */
  2631. /** ----------------------------------视频会议开始------------------------------------- */
  2632. sendMsg() {// 视频会议发送短信
  2633. let reg_user = /^[\u4e00-\u9fa5]{2,4}$/; //2-4个中文字符正则
  2634. 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位手机号码正则
  2635. for(let i in this.dutysystemTableData){
  2636. if(!reg_user.test(this.dutysystemTableData[i].name)){
  2637. this.$message.error(`请输入正确姓名!`)
  2638. return;
  2639. }
  2640. if(!reg_tel.test(this.dutysystemTableData[i].telphone)){
  2641. this.$message.error(`请输入正确手机号码!`)
  2642. return;
  2643. }
  2644. if(this.dutysystemTableData[i].id==null || this.dutysystemTableData[i].id==''){
  2645. this.dutysystemTableData[i].dept = this.dutysystemDeptName;
  2646. this.dutysystemTableData[i].depteventId = this.depteventId;
  2647. }
  2648. }
  2649. const param = {centereventTDutySystemList:this.dutysystemTableData,eventCode:this.eventCode,eventName:this.eventName,eventId:this.eventId}
  2650. this.joinMeeting(param);
  2651. },
  2652. joinMeeting(param) {
  2653. this.$message({
  2654. message: '正在启动云会议客户端,请稍候...',
  2655. type: 'success',
  2656. });
  2657. joinConferences(this.eventId, this.eventName + "的会议", Cookies.get("nickName")).then(res => {
  2658. if (res.code == 200) {
  2659. let conferenceID = res.data.info.conferenceID;
  2660. let password = res.data.info.password;
  2661. let nickName = res.data.nickName;
  2662. let nonce = res.data.nonce;
  2663. 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);
  2664. sendMessage(param).then(res => {
  2665. //this.$message.success(res.msg);
  2666. this.dutysystemSelect(this.iconCurrentIndex, this.dutysystemDeptName, this.depteventId);
  2667. this.showMeetingMsgDialog = false;
  2668. })
  2669. }
  2670. })
  2671. },
  2672. Meeting() {//弹出发送会议短信弹窗
  2673. let that = this;
  2674. that.$alert("如您已经安装请点击【确定】,如未安装可<a style='text-decoration:underline;color:blue;' href='http://172.18.1.37:15001/CLOUDMeeting_Win.exe'>点击此处</a>进行下载", '该功能需要使用云会议客户端', {
  2675. confirmButtonText: '确定',
  2676. dangerouslyUseHTMLString: true,
  2677. callback: action => {
  2678. let param = { eventCode: that.eventCode }
  2679. centereventtdepteventList(param).then(res => {
  2680. that.depteventList = res.data
  2681. that.showMeetingMsgDialog = true
  2682. })
  2683. }
  2684. });
  2685. },
  2686. /** ----------------------------------视频会议结束------------------------------------- */
  2687. }
  2688. }
  2689. // 推送消息
  2690. function cbIntegrationCallBack(oData) {
  2691. console.log(JSON.stringify(oData.responseMsg))
  2692. }
  2693. </script>
  2694. <style lang="scss" scoped>
  2695. @import '@/assets/styles/base.scss';
  2696. //弹层样式
  2697. //.customWidthMp4 {
  2698. // width: 70px !important;
  2699. // height: 70px !important;
  2700. //}
  2701. .tree-border {
  2702. border: 1px $barBorder;
  2703. }
  2704. button {
  2705. padding: .5rem;
  2706. }
  2707. /** 火灾报告**/
  2708. //@font-face {
  2709. // font-family: 'fontnameRegular';
  2710. // src: url('../../../../assets/styles/FZYTJW_0.TTF');
  2711. //}
  2712. body,
  2713. html,
  2714. * {
  2715. padding: 0px;
  2716. margin: 0px;
  2717. font-family: "fontnameRegular";
  2718. }
  2719. .table-container {
  2720. width: 100%;
  2721. }
  2722. .txt_right {
  2723. text-align: right !important;
  2724. }
  2725. .txt_left {
  2726. text-align: left !important;
  2727. }
  2728. table {
  2729. border-spacing: 0;
  2730. border-collapse: collapse;
  2731. width: 99%;
  2732. margin: 0 auto;
  2733. color: $inBlue;
  2734. }
  2735. table input {
  2736. font-size: 1rem;
  2737. border: 0px;
  2738. outline: 0px;
  2739. font-family: "微软雅黑";
  2740. background: none;
  2741. color: $inBlue;
  2742. }
  2743. table th input:hover {
  2744. background: $eventBG;
  2745. }
  2746. table thead th {
  2747. font-size: 1rem;
  2748. font-family: "宋体";
  2749. height: 2rem;
  2750. border-top: 0px;
  2751. border-left: 0px;
  2752. border-right: 0px;
  2753. outline: 0px;
  2754. }
  2755. table tr td {
  2756. font-size: 1rem;
  2757. font-family: "fontnameRegular";
  2758. height: 2rem;
  2759. border: 1px $searchBorder;
  2760. text-align: center;
  2761. }
  2762. .font1 {
  2763. font-size: 1.7rem;
  2764. font-weight: bolder;
  2765. }
  2766. .border0 {
  2767. width: 100% !important;
  2768. }
  2769. .border0 tr td {
  2770. border: 0px !important;
  2771. }
  2772. table tr td input {
  2773. width: 100%;
  2774. /* display: inline-block;*/
  2775. outline: 0px;
  2776. text-align: left;
  2777. height: 94%;
  2778. color: $inBlue;
  2779. background: none;
  2780. float: left;
  2781. padding: 0 .5rem;
  2782. }
  2783. table tr td input:hover {
  2784. background: $eventBG;
  2785. }
  2786. .int_tr td input {
  2787. text-align: center !important;
  2788. }
  2789. .table2 tr th {
  2790. font-size: 1.7rem;
  2791. padding: .5rem 0;
  2792. font-family: 'fontnameRegular';
  2793. }
  2794. .table2 tr td {
  2795. font-size: 1rem;
  2796. }
  2797. .table2 tr td select {
  2798. border: 0px !important;
  2799. outline: 0px;
  2800. width: 100%;
  2801. font-family: "微软雅黑";
  2802. font-size: 1rem;
  2803. padding-left: 1%;
  2804. color: $inBlue;
  2805. background: none;
  2806. }
  2807. .table2 tr td select:hover {
  2808. background: $eventBG;
  2809. }
  2810. .table2 tr td select option {
  2811. font-size: 1rem;
  2812. font-family: "微软雅黑";
  2813. }
  2814. .border_l0 {
  2815. // border-right: 1px solid #ececec !important;
  2816. }
  2817. .table2 tr td textarea {
  2818. border: 0px !important;
  2819. outline: 0px;
  2820. width: 98%;
  2821. padding: .5rem;
  2822. font-size: 1rem;
  2823. resize: none;
  2824. background: none;
  2825. color: $inBlue;
  2826. }
  2827. .table2 tr td textarea:hover {
  2828. background: $eventBG;
  2829. }
  2830. .tr_border td {
  2831. border-right: 0px !important;
  2832. border-left: 0px !important;
  2833. border-bottom: 0px !important;
  2834. font-size: 15px;
  2835. }
  2836. .btm-btn-group {
  2837. padding: 1rem 0;
  2838. width: 100%;
  2839. display: flex;
  2840. button {
  2841. padding: .5rem 2rem;
  2842. }
  2843. }
  2844. // 20220928
  2845. .yatz_button {
  2846. padding: 0.5rem 0.5rem;
  2847. color: #409EFF;
  2848. background: none;
  2849. border-color: #409EFF;
  2850. }
  2851. .yatz_button:hover {
  2852. color: #fff;
  2853. background: #409EFF;
  2854. border-color: #409EFF;
  2855. }
  2856. .fr_button {
  2857. float: right;
  2858. padding: 0.5rem 1.5rem;
  2859. }
  2860. .bottom {
  2861. width: 100%;
  2862. height: calc(100% - 80px);
  2863. display: flex;
  2864. .bottomLeft {
  2865. width: 288px;
  2866. height: 500px;
  2867. overflow-y: auto;
  2868. .leftItem {
  2869. width: 100%;
  2870. height: 50px;
  2871. line-height: 50px;
  2872. text-align: center;
  2873. cursor: pointer;
  2874. }
  2875. }
  2876. .bottomRight {
  2877. width: calc(100% - 288px);
  2878. height: 500px;
  2879. box-sizing: border-box;
  2880. padding: 36px 36px 0 36px;
  2881. overflow-y: auto;
  2882. .bottomRightContent {
  2883. width: 100%;
  2884. box-sizing: border-box;
  2885. padding-bottom: 36px;
  2886. .bottomRightContentHead {
  2887. height: 25px;
  2888. font-family: PingFang SC;
  2889. font-style: normal;
  2890. font-weight: 600;
  2891. font-size: 24px;
  2892. line-height: 25px;
  2893. text-transform: capitalize;
  2894. color: rgba(0, 0, 0, 0.85);
  2895. margin-bottom: 32px;
  2896. }
  2897. .bottomRightContentBody {
  2898. .el-col {
  2899. position: relative;
  2900. margin-bottom: 18px;
  2901. .circle {
  2902. display: inline-block;
  2903. width: 6px;
  2904. height: 6px;
  2905. background: #4677f6;
  2906. border-radius: 50%;
  2907. position: absolute;
  2908. top: 8px;
  2909. left: 0;
  2910. }
  2911. .word {
  2912. margin-left: 12px;
  2913. font-family: PingFang SC;
  2914. font-style: normal;
  2915. font-weight: normal;
  2916. font-size: 14px;
  2917. color: #4677f6;
  2918. cursor: pointer;
  2919. }
  2920. .word:hover {
  2921. text-decoration: underline;
  2922. }
  2923. .topPlace {
  2924. position: absolute;
  2925. top: 1px;
  2926. margin-left: 8px;
  2927. }
  2928. }
  2929. }
  2930. .bottomRightContentFooter {
  2931. height: 1px;
  2932. width: 100%;
  2933. margin-top: 14px;
  2934. }
  2935. }
  2936. }
  2937. }
  2938. </style>