firespread.vue 127 KB

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