eventdetailsdialog.vue 101 KB

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