eventdetailsdialog.vue 99 KB

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