firespread.vue 108 KB

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