eventdetailsdialog.vue 98 KB

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