eventdetailsdialog.vue 108 KB

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