eventdetailsdialog.vue 120 KB

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