eventdetailsdialog.vue 120 KB

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