eventdetailsdialog.vue 125 KB

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