security-plan.vue 144 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169
  1. <template>
  2. <el-row class="contentBox">
  3. <transition name="el-fade-in-linear">
  4. <el-col class="leftBox" v-show="stroes.$state.leftBtn">
  5. <div class="leftTop">
  6. <h4>疏导区基本情况</h4>
  7. <div class="leftTopContent2">
  8. <!-- <el-row>
  9. <div v-for="(item,index) in diversionArea" :key="index">
  10. <p>{{ item.name }}</p>
  11. <p><strong><CountTo :startVal='0' :endVal='item.value' :duration='5000'> {{ item.value || 0 }}</CountTo></strong>{{ item.unit }}</p>
  12. </div>
  13. </el-row> -->
  14. <el-row class="sdqBasicInfo sdline1">
  15. <div
  16. class="basicItem"
  17. v-for="(item, index) in diversionArea.slice(0,5)"
  18. :key="index"
  19. >
  20. <div style="padding: 0.03rem 0; text-align: center">
  21. <span style="display: block">
  22. <Strong
  23. style="color: #01E0FF;font-weight: 600;font-size: 0.3rem"
  24. >
  25. <CountTo :startVal="0" :endVal="item.value || 0" :duration="3000" v-if="!isNaN(item.value)">{{ item.value || 0 }}</CountTo>
  26. <span v-if="isNaN(item.value)" style="fontSize: 0.2rem !important">{{ item.value || 0 }}</span>
  27. </Strong>
  28. {{ item.unit }}
  29. </span>
  30. <span class="nameBox" style="">{{ item.name }}</span>
  31. </div>
  32. </div>
  33. </el-row>
  34. <el-row class="sdqBasicInfo sdline2">
  35. <div
  36. class="basicItem"
  37. v-for="(item, index) in diversionArea.slice(7,10)"
  38. :key="index"
  39. >
  40. <div style="padding: 0.03rem 0; text-align: center">
  41. <span style="display: block">
  42. <Strong
  43. style="color: #F48354;font-weight: 600;font-size: 0.3rem"
  44. >
  45. <CountTo :startVal="0" :endVal="item.value || 0" :duration="3000" v-if="!isNaN(item.value)">{{ item.value || 0 }}</CountTo>
  46. <span v-if="isNaN(item.value)" style="fontSize: 0.2rem !important">{{ item.value || 0 }}</span>
  47. </Strong>
  48. {{ item.unit }}
  49. </span>
  50. <span class="nameBox" style="">{{ item.name }}</span>
  51. </div>
  52. </div>
  53. </el-row>
  54. <el-row class="sdline3">
  55. <div
  56. class="basicItem"
  57. v-for="(item, index) in line3Array"
  58. :key="index"
  59. >
  60. <div style="padding: 0.03rem 0; text-align: center">
  61. <span style="display: block">
  62. <Strong
  63. style="color: #4FE261;font-weight: 600;font-size: .225rem"
  64. >
  65. <CountTo :startVal="0" :endVal="item.count || 0" :duration="3000" v-if="!isNaN(item.count)">{{ item.count || 0 }}</CountTo>
  66. <span v-if="isNaN(item.count)" style="fontSize: 0.2rem !important">{{ item.count || 0 }}</span>
  67. </Strong>
  68. {{ item.unit }}
  69. </span>
  70. <span class="nameBox" style="font-size:12px">{{ item.name }}</span>
  71. </div>
  72. </div>
  73. </el-row>
  74. </div>
  75. </div>
  76. <div class="leftCenter">
  77. <div style="display: flex;">
  78. <h4>疏导区社会单位情况</h4>
  79. <div style="display: flex; border-bottom: 0.0125rem solid rgba(115, 251, 253, 0.5);">
  80. <el-form class="titleElForm" :inline="true" size="mini" :model="barForm" style="height: 0">
  81. <el-form-item>
  82. <!-- <el-select v-model="barForm.fireType" @change="getHouse()" filterable clearable placeholder="场所">
  83. <el-option v-for="(item, ind) in fireTypeList" :key="ind" :label="item" :value="item"></el-option>
  84. </el-select> -->
  85. <!-- <el-select v-model="units" filterable clearable placeholder="场所">
  86. <el-option v-for="(item, ind) in diversionArea" :key="ind" :label="item.name" :value="item.value"></el-option>
  87. </el-select> -->
  88. <el-select v-model="value111" @change="getOneUnit" class="m-2" placeholder="请选择" style="width:200px">
  89. <el-option
  90. v-for="item in options"
  91. :key="item.value"
  92. :label="item.label"
  93. :value="item.value"
  94. />
  95. </el-select>
  96. </el-form-item>
  97. </el-form>
  98. </div>
  99. </div>
  100. <unit-box :typeValue="value111" :arrayData="arrayData" :staticData="staticData" v-if="staticData.total" ></unit-box>
  101. <div v-else>暂无数据</div>
  102. <!-- <category
  103. ref="category"
  104. v-show="category"
  105. :dataMap="reportComplaintList.map((val, ind) => val.value)"
  106. :xData="reportComplaintList.map((val, ind) => val.name)"
  107. :isSlice="10"
  108. :width="40"
  109. color="#73FBFD"
  110. @echartsClick="categoryClick"
  111. ></category> -->
  112. </div>
  113. <div class="rightCenter">
  114. <h4>执勤战备力量部署</h4>
  115. <div class="rightTopContent">
  116. <div style="width:95%;margin:0 auto;border: 1px solid rgba(48, 207, 255, 0.6); box-shadow: inset 0 0 0.07rem 0.04rem rgb(115 251 253 / 40%); box-sizing: border-box;display: flex;
  117. justify-content: space-between;padding: .15rem .125rem .15rem">
  118. <span>闵行支队安保分指挥所</span> <span>淮虹路151弄9号</span> <span>电台:闵101</span> <span>值班电话:33281293</span>
  119. </div>
  120. <el-row>
  121. <el-col :span="5" style="border: 1px solid rgba(48, 207, 255, 0.6); margin: .25rem .08rem .125rem .16rem; box-shadow: inset 0 0 0.07rem 0.04rem rgb(115 251 253 / 40%); box-sizing: border-box"
  122. v-for="(item,index) in staticData.array1" :key="index">
  123. <div style="padding: 0.2rem 0; text-align: center">
  124. <span style="display: block">
  125. <Strong :style="{ color: item.color, fontSize: '0.3rem'}" >
  126. <CountTo :startVal='0' :endVal='item.count || 0' :duration='3000'>{{ item.count || 0 }}</CountTo>
  127. </Strong>
  128. </span>
  129. <span style="font-size:.1375rem">{{item.streetTown}}</span>
  130. </div>
  131. </el-col>
  132. </el-row>
  133. <!-- <el-table :data="tableData2" class="transparentTableRow" height="100%" :empty-text="dataNo">
  134. <el-table-column type="expand">
  135. <template #default="props">
  136. <template v-if="props.row.children">
  137. <template v-for="(item, ind) in props.row.children" :key="ind">
  138. <el-row class="tableExpendTitle" style="margin-top: 10px">
  139. 状态:{{ item.carStatus }}({{ item.equipTypeName ? item.equipTypeName + "," : "" }}{{ item.renyuanNum }}人)
  140. </el-row>
  141. <el-row class="tableExpendcontent">
  142. <el-col>
  143. <div>
  144. 车牌号:<span style="color: #6ff3f6">{{ item.cphm }}</span>
  145. </div>
  146. </el-col>
  147. <el-col v-if="item.zhy" :span="12">
  148. <div>
  149. 指挥员:<span style="color: #6ff3f6">{{ item.zhy }}</span>
  150. </div>
  151. </el-col>
  152. <el-col v-if="item.txy" :span="12">
  153. <div>
  154. 通讯员:<span style="color: #6ff3f6">{{ item.txy }}</span>
  155. </div>
  156. </el-col>
  157. <el-col v-if="item.jsy" :span="12">
  158. <div>
  159. 驾驶员:<span style="color: #6ff3f6">{{ item.jsy }}</span>
  160. </div>
  161. </el-col>
  162. <el-col v-if="item.zsry" :span="24">
  163. <div>
  164. 战士人员:<span style="color: #6ff3f6">{{ item.zsry }}</span>
  165. </div>
  166. </el-col>
  167. </el-row>
  168. </template>
  169. </template>
  170. </template>
  171. </el-table-column>
  172. <el-table-column show-overflow-tooltip v-for="item in headerData2" :key="item.prop" :prop="item.prop" align="center" min-width="20" :label="item.name">
  173. <template v-if="item.prop === 'car'" #default="scope">
  174. <span style="color: #6ff3f6">{{ scope.row.car }}</span>
  175. </template>
  176. <template v-if="item.prop === 'personnel'" #default="scope">
  177. <span style="color: #6ff3f6">{{ scope.row.personnel }}</span>
  178. </template>
  179. </el-table-column>
  180. </el-table> -->
  181. </div>
  182. </div>
  183. <!-- <div class="leftCenter">
  184. <h4 class="h4Top">接警处置情况</h4>
  185. <category
  186. ref="category"
  187. v-show="category"
  188. :dataMap="reportComplaintList.map((val, ind) => val.value)"
  189. :xData="reportComplaintList.map((val, ind) => val.name)"
  190. :isSlice="10"
  191. :width="40"
  192. color="#73FBFD"
  193. @echartsClick="categoryClick"
  194. ></category>
  195. <div @click="goBack" class="return" v-if="!category">
  196. <div class="returnText">返回</div>
  197. </div>
  198. </div> -->
  199. <div class="leftBotContent2">
  200. <el-table v-if="!category" :data="tableData" class="transparentTableRow" height="100%" ref="reportTable" @mouseenter="autoScroll(true)" @mouseleave="autoScroll()">
  201. <el-table-column v-for="item in headerData" show-overflow-tooltip :key="item.prop" :prop="item.prop" align="center" min-width="20" :label="item.name">
  202. <template #default="scope">
  203. {{ item.prop === "type" ? "" : item.prop === "status" ? (scope.row[item.prop] == 1 ? "可用" : "不可用") : scope.row[item.prop] }}
  204. </template>
  205. </el-table-column>
  206. </el-table>
  207. </div>
  208. </el-col>
  209. </transition>
  210. <transition name="el-fade-in-linear">
  211. <el-col class="centerBox" style="width: 100%">
  212. <div :class="stroes.$state.leftBtn ? 'leftBtn btnW' : 'leftBtn0 btnW'" @click="stroes.leftBtnClick()">
  213. <img src="@/assets/img/svg/left.svg" alt="" class="img" />
  214. </div>
  215. <el-col class="centerContent" id="mapF"></el-col>
  216. <div :class="stroes.$state.rightBtn ? 'rightBtn btnW' : 'rightBtn0 btnW'" @click="stroes.rightBtnClick()">
  217. <img src="@/assets/img/svg/left.svg" alt="" class="img" />
  218. </div>
  219. <div class="mapTips_type">
  220. <img src="@/assets/img/svg/danweitop.svg" alt="" class="img" />
  221. <div class="content">
  222. <p>类型筛选</p>
  223. <div class="selectType">
  224. <!-- <div @click="checkboxChange(0)" :class="checkedArray.checkedData[0] == 0 ? 'checkTypeSelect' : ''">
  225. <img :src="stores.sadianIcon.xfc" alt="" />
  226. <span>车辆</span>
  227. </div> -->
  228. <!-- <div @click="checkboxChange(1)" :class="checkedArray.checkedData[0] == 1 ? 'checkTypeSelect' : ''">
  229. <img :src="stores.sadianIcon.lsjq" alt="" />
  230. <span>历史警情</span>
  231. </div>
  232. <div @click="checkboxChange(2)" :class="checkedArray.checkedData[0] == 2 ? 'checkTypeSelect' : ''">
  233. <img :src="stores.sadianIcon.lshz" alt="" />
  234. <span>历史火灾</span>
  235. </div> -->
  236. <!-- <div @click="checkboxChange(3)" :class="checkedArray.checkedData[0] == 3 ? 'checkTypeSelect' : ''">
  237. <img :src="stores.sadianIcon.zddw" alt="" />
  238. <span>重点单位</span>
  239. </div> -->
  240. <div
  241. :class="
  242. checkedArray.checkedData[0] == 4
  243. ? 'checkTypeSelect'
  244. : checkedArray.checkedData[0] == 40
  245. ? 'checkTypeSelect'
  246. : checkedArray.checkedData[0] == 41
  247. ? 'checkTypeSelect'
  248. : checkedArray.checkedData[0] == 42
  249. ? 'checkTypeSelect'
  250. : checkedArray.checkedData[0] == 43
  251. ? 'checkTypeSelect'
  252. : checkedArray.checkedData[0] == 44
  253. ? 'checkTypeSelect'
  254. : checkedArray.checkedData[0] == 45
  255. ? 'checkTypeSelect'
  256. : checkedSelectValue == '46'
  257. ? stores.sadianIcon.yjxfz
  258. : checkedSelectValue == '47'
  259. ? stores.sadianIcon.jzzzxfd
  260. : ' '
  261. "
  262. >
  263. <img
  264. :src="
  265. checkedSelectValue == '40'
  266. ? stores.sadianIcon.xfz
  267. : checkedSelectValue == '41'
  268. ? stores.sadianIcon.zzd
  269. : checkedSelectValue == '42'
  270. ? stores.sadianIcon.jzwxxfz
  271. : checkedSelectValue == '43'
  272. ? stores.sadianIcon.csxfz
  273. : checkedSelectValue == '44'
  274. ? stores.sadianIcon.qyxfd
  275. : checkedSelectValue == '45'
  276. ? stores.sadianIcon.sqwxxfz
  277. : checkedSelectValue == '46'
  278. ? stores.sadianIcon.sqwxxfz
  279. : checkedSelectValue == '47'
  280. ? stores.sadianIcon.sqwxxfz
  281. : stores.sadianIcon.xfz
  282. "
  283. alt=""
  284. />
  285. <span>{{ checkedSelectLabel }}</span>
  286. <el-select
  287. v-model="checkedSelectValue"
  288. placeholder="消防站"
  289. class="selectTypeIcon"
  290. style="display: inline-block; width: 100%; position: absolute; right: 0"
  291. @change="selectArray"
  292. >
  293. <el-option v-for="item in checkedSelectArray" :key="item.value" :label="item.label" :value="item.value"> </el-option>
  294. </el-select>
  295. </div>
  296. <div @click="checkboxChange(19)" :class="checkedArray.checkedData[0] == 19 ? 'checkTypeSelect' : ''">
  297. <img :src="stores.sadianIcon.zddw" alt="" />
  298. <span>大网格</span>
  299. </div>
  300. <div @click="checkboxChange(15)" :class="checkedArray.checkedData[0] == 15 ? 'checkTypeSelect' : ''">
  301. <img :src="stores.sadianIcon.zddw" alt="" />
  302. <span>中网格</span>
  303. </div>
  304. <div @click="checkboxChange(16)" :class="checkedArray.checkedData[0] == 16 ? 'checkTypeSelect' : ''">
  305. <img :src="stores.sadianIcon.zddw" alt="" />
  306. <span>小网格</span>
  307. </div>
  308. <div @click="checkboxChange(17)" :class="checkedArray.checkedData[0] == 17 ? 'checkTypeSelect' : ''">
  309. <img :src="stores.sadianIcon.ssjq" alt="" />
  310. <span>监控视频</span>
  311. </div>
  312. <div @click="checkboxChange(18)" :class="checkedArray.checkedData[0] == 18 ? 'checkTypeSelect' : ''">
  313. <img :src="stores.sadianIcon.jdjc" alt="" />
  314. <span>监督检查</span>
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. </el-col>
  320. </transition>
  321. <transition name="el-fade-in-linear">
  322. <el-col class="rightBox" v-show="stroes.$state.rightBtn">
  323. <!-- 疏导区网格检查情况 start -->
  324. <div class="rightTop1">
  325. <h4 style="display: flex">疏导区网格检查情况</h4>
  326. <div class="girdCheckItem">
  327. <p>大网格<span>&nbsp;&nbsp;&nbsp;街镇分营领导:10&nbsp;&nbsp;城运中心主任:10&nbsp;&nbsp;安监所所长:10&nbsp;&nbsp;支队外参谋:10</span></p>
  328. <div class="row_g">
  329. <div >累计:</div>
  330. <div >检查家数<br>100(家/次)</div>
  331. <div >发现隐患数<br>20(处)</div>
  332. <div >整改隐患<br>20(处)</div>
  333. <div >处罚金额<br>20(万元)</div>
  334. <div >三停<br>20(万元)</div>
  335. <div >查封<br>4(处)</div>
  336. </div>
  337. <div class="row_g">
  338. <div >今日:</div>
  339. <div >100(家/次)</div>
  340. <div >20(处)</div>
  341. <div >20(处)</div>
  342. <div >20(万元)</div>
  343. <div >20(万元)</div>
  344. <div >4(处)</div>
  345. </div>
  346. <div class="row_g2">
  347. <div >消防安全重点单位四色分级情况</div>
  348. <div style="color:red">高风险<br>100(家)</div>
  349. <div style="color:orange">较高风险<br>20(家)</div>
  350. <div style="color:yellow">一般风险<br>20(家)</div>
  351. <div style="color:green">低风险<br>20(家)</div>
  352. </div>
  353. </div>
  354. <div class="girdCheckItem">
  355. <p>中网格<span>&nbsp;&nbsp;&nbsp;安监所人员: 10&nbsp;&nbsp;城运中心人员:10&nbsp;&nbsp;消防助理员:10</span></p>
  356. <div class="row_g3">
  357. <div >累计:</div>
  358. <div >检查家数<br>100(家/次)</div>
  359. <div >发现隐患数<br>20(处)</div>
  360. <div >整改隐患<br>20(处)</div>
  361. <div >签约承诺书<br>20(份)</div>
  362. <div >检查覆盖率<br>100%</div>
  363. </div>
  364. <div class="row_g3">
  365. <div >今日:</div>
  366. <div >100(家/次)</div>
  367. <div >20(处)</div>
  368. <div >20(处)</div>
  369. </div>
  370. <div class="row_g2">
  371. <div >九小场所四色分级情况</div>
  372. <div style="color:red">高风险<br>100(家)</div>
  373. <div style="color:orange">较高风险<br>20(家)</div>
  374. <div style="color:yellow">一般风险<br>20(家)</div>
  375. <div style="color:green">低风险<br>20(家)</div>
  376. </div>
  377. </div>
  378. <div class="girdCheckItem">
  379. <p>小网格<span>&nbsp;&nbsp;&nbsp;安网格长: 10&nbsp;&nbsp;网格人员:10</span></p>
  380. <div class="row_g">
  381. <div >累计:</div>
  382. <div >主动发现<br>100(起)</div>
  383. <div >被动处置<br>100(起)</div>
  384. <div >隐患整改<br>100(起)</div>
  385. <div >派发<br>20(起)</div>
  386. <div >完成<br>20(起)</div>
  387. <div >处置率<br>100%</div>
  388. </div>
  389. <div class="row_g">
  390. <div >累计:</div>
  391. <div >100(起)</div>
  392. <div >20(起)</div>
  393. <div >20(起)</div>
  394. </div>
  395. </div>
  396. <br>
  397. </div>
  398. <!-- <div class="rightTop1">
  399. <h4 style="display: flex">疏导区网格检查情况</h4>
  400. <div class="girdCheckItem">
  401. <p>大网格<span>&nbsp;&nbsp;&nbsp;街镇分营领导:10&nbsp;&nbsp;城运中心主任:10&nbsp;&nbsp;安监所所长:10&nbsp;&nbsp;支队外参谋:10</span></p>
  402. <el-row>
  403. <el-col :span="6">检查家数: 100</el-col>
  404. <el-col :span="6">发现隐患数: 20</el-col>
  405. <el-col :span="6">督改隐患数: 20</el-col>
  406. <el-col :span="6">签约承诺数: 20</el-col>
  407. </el-row>
  408. </div>
  409. <div class="girdCheckItem">
  410. <p>中网格</p>
  411. <el-row>
  412. <el-col :span="6">检查家数: 100</el-col>
  413. <el-col :span="6">发现隐患数: 20</el-col>
  414. <el-col :span="6">督改隐患数: 20</el-col>
  415. <el-col :span="6">签约承诺数: 20</el-col>
  416. </el-row>
  417. </div>
  418. <div class="girdCheckItem">
  419. <p>小网格</p>
  420. <el-row>
  421. <el-col :span="6">检查家数: 100</el-col>
  422. <el-col :span="6">发现隐患数: 20</el-col>
  423. <el-col :span="6">督改隐患数: 20</el-col>
  424. <el-col :span="6">签约承诺数: 20</el-col>
  425. </el-row>
  426. </div>
  427. <br>
  428. </div> -->
  429. <!-- 疏导区网格检查情况 end -->
  430. <!-- <div class="rightTop3">
  431. <h4 style="display: flex">处置网格</h4>
  432. <div class="rightTopContent">
  433. <el-row v-if="gridStatisticsStatus">
  434. <el-col :span="12" @click="gridStatistics(1)">
  435. <div>
  436. <div class="left">
  437. <img src="@a/img/sadian/sbs.png" alt="" />
  438. <div>上报数</div>
  439. </div>
  440. <el-row class="right">
  441. <el-col :span="24" style="color: #ff0000">{{ gridStatisticsNum.total || 0 }}</el-col>
  442. </el-row>
  443. </div>
  444. </el-col>
  445. <el-col :span="12" @click="gridStatistics(3)">
  446. <div>
  447. <div class="left">
  448. <img src="@a/img/sadian/yhs.png" alt="" />
  449. <div>隐患数</div>
  450. </div>
  451. <el-row class="right">
  452. <el-col :span="24" style="color: #ff5a00">{{ gridStatisticsNum.yinhuan || 0 }}</el-col>
  453. </el-row>
  454. </div>
  455. </el-col>
  456. <el-col :span="12" @click="gridStatistics(2)">
  457. <div>
  458. <div class="left">
  459. <img src="@a/img/sadian/czs.png" alt="" />
  460. <div>处置数</div>
  461. </div>
  462. <el-row class="right">
  463. <el-col :span="24" style="color: #ffd800">{{ gridStatisticsNum.over || 0 }}</el-col>
  464. </el-row>
  465. </div>
  466. </el-col>
  467. <el-col :span="12">
  468. <div>
  469. <div class="left">
  470. <img src="@a/img/sadian/czl.png" alt="" />
  471. <div>处置率</div>
  472. </div>
  473. <el-row class="right">
  474. <el-col :span="24" style="color: #0084ff">{{ gridStatisticsNum.rate || 0 }}%</el-col>
  475. </el-row>
  476. </div>
  477. </el-col>
  478. </el-row>
  479. <el-row v-if="!gridStatisticsStatus">
  480. <el-table
  481. :data="gridStatisticsTableType"
  482. class="transparentTableRow"
  483. height="100%"
  484. :empty-text="dataNo3"
  485. ref="reportTable"
  486. @mouseenter="autoScroll1(true)"
  487. @mouseleave="autoScroll1()"
  488. >
  489. <el-table-column v-for="item in gridStatisticsHeader" show-overflow-tooltip :key="item.prop" :prop="item.prop" align="left" min-width="20" :label="item.name">
  490. <template v-if="item.prop =='案件状态' || item.prop =='街镇' || item.prop =='自治网格' || item.prop =='案件子类' || item.prop =='发现时间'" #default="scope">
  491. <el-tooltip placement="left" >
  492. <template #content >
  493. <div class="tableTooltip" ref="ff">
  494. <div class="tableTitle">
  495. <div>案件详情</div>
  496. </div>
  497. <img src="~@a/img/icon/close.png" alt="" class="close" @click="closeIsTooltip" />
  498. <el-row class="tableContent">
  499. <el-col :span="20" v-if="scope.row['案件状态']">案件状态:{{scope.row["案件状态"]}}</el-col>
  500. <el-col :span="24" v-if="scope.row['任务号'] ">任务号:{{scope.row["任务号"] }}</el-col>
  501. <el-col :span="24" v-if="scope.row['发现时间']">发现时间:{{scope.row["发现时间"]}}</el-col>
  502. <el-col :span="24" v-if="scope.row['案件来源']">案件来源:{{scope.row["案件来源"]}}</el-col>
  503. <el-col :span="24" v-if="scope.row['案件属性']">案件属性:{{scope.row["案件属性"]}}</el-col>
  504. <el-col :span="24" v-if="scope.row['街镇']">街镇:{{scope.row["街镇"]}}</el-col>
  505. <el-col :span="12" v-if="scope.row['自治网格类型']">自治网格类型:{{scope.row["自治网格类型"]}}</el-col>
  506. <el-col :span="24" v-if="scope.row['责任块']">责任块:{{scope.row["责任块"]}}</el-col>
  507. <el-col :span="24" v-if="scope.row['案件大类']">案件大类:{{scope.row["案件大类"]}}</el-col>
  508. <el-col :span="24" v-if="scope.row['案件小类']">案件小类:{{scope.row["案件小类"]}}</el-col>
  509. <el-col :span="24" v-if="scope.row['自治网格']">自治网格:{{scope.row["自治网格"]}}</el-col>
  510. <el-col :span="24" v-if="scope.row['处置网格']">处置网格:{{scope.row["处置网格"]}}</el-col>
  511. <el-col :span="24" v-if="scope.row['发生地址']">发生地址:{{scope.row["发生地址"]}}</el-col>
  512. <el-col :span="24" v-if="scope.row['诉求联系人']">诉求联系人:{{scope.row["诉求联系人"]}}</el-col>
  513. <el-col :span="24" v-if="scope.row['流转方向']">流转方向:{{scope.row["流转方向"]}}</el-col>
  514. <el-col :span="24" v-if="scope.row['派遣时间'] ">派遣时间:{{scope.row["派遣时间"] }}</el-col>
  515. <el-col :span="24" v-if="scope.row['主责部门']">主责部门:{{scope.row["主责部门"] }}</el-col>
  516. <el-col :span="24" v-if="scope.row['三级主责部门']">三级主责部门:{{scope.row["三级主责部门"] }}</el-col>
  517. <el-col :span="24" v-if="scope.row['处理时间']">处理时间:{{scope.row["处理时间"] }}</el-col>
  518. </el-row>
  519. </div>
  520. </template>
  521. <template>
  522. <div class="name-wrapper" >{{ scope.row[item.prop] }}</div>
  523. </template>
  524. </el-tooltip>
  525. </template>
  526. <template v-else #default="scope">
  527. {{ scope.row[item.prop] }}
  528. </template>
  529. </el-table-column>
  530. </el-table>
  531. </el-row>
  532. </div>
  533. <div class="leftTopContent" v-if="tabsArea == 'jc'">
  534. <el-row>
  535. <el-col :span="12">
  536. <div>
  537. <div class="title">
  538. <div>检查单位数(家次)</div>
  539. </div>
  540. <div class="content">
  541. <span>6276</span>
  542. <span>同比</span>
  543. <span style="color: #fe0505">+29.48%</span>
  544. </div>
  545. </div>
  546. </el-col>
  547. <el-col :span="12">
  548. <div>
  549. <div class="title">
  550. <div>发现隐患数(处)</div>
  551. </div>
  552. <div class="content">
  553. <span>1340</span>
  554. <span>同比</span>
  555. <span style="color: #fe0505">+14.18%</span>
  556. </div>
  557. </div>
  558. </el-col>
  559. <el-col :span="12">
  560. <div>
  561. <div class="title">
  562. <div>督改隐患数(处)</div>
  563. </div>
  564. <div class="content">
  565. <span>1090</span>
  566. <span>同比</span>
  567. <span style="color: #fe0505">+7.34%</span>
  568. </div>
  569. </div>
  570. </el-col>
  571. <el-col :span="12">
  572. <div style="width: 80%">
  573. <div class="title">
  574. <div>签约承诺书(份)</div>
  575. </div>
  576. <div class="content">
  577. <span>5410</span>
  578. </div>
  579. </div>
  580. </el-col>
  581. </el-row>
  582. </div>
  583. </div> -->
  584. <!-- <div class="rightTop">
  585. <h4 style="display: flex">疏导区社会面风险评估情况</h4>
  586. <div style="display: flex;float:right;margin-top:-36px;">
  587. <el-button size="mini" @click="tabsArea = 'fx'" :class="{ btnClick: tabsArea == 'fx' }"> 风险情况 </el-button>
  588. <el-button size="mini" @click="tabsArea = 'jc'" :class="{ btnClick: tabsArea == 'jc' }"> 检查情况 </el-button>
  589. </div>
  590. <div class="rightTopContent" v-if="tabsArea == 'fx'">
  591. <el-row>
  592. <el-col :span="12">
  593. <div>
  594. <div class="left">
  595. <img src="@a/img/securityPlan/right1.png" alt="" />
  596. <div>高风险场所</div>
  597. </div>
  598. <el-row class="right">
  599. <el-col :span="24">单位总数(家)</el-col>
  600. <el-col :span="24" style="color: #ff0000">8</el-col>
  601. </el-row>
  602. </div>
  603. </el-col>
  604. <el-col :span="12">
  605. <div>
  606. <div class="left">
  607. <img src="@a/img/securityPlan/right2.png" alt="" />
  608. <div>较高风险场所</div>
  609. </div>
  610. <el-row class="right">
  611. <el-col :span="24">单位总数(家)</el-col>
  612. <el-col :span="24" style="color: #ff5a00">0</el-col>
  613. </el-row>
  614. </div>
  615. </el-col>
  616. <el-col :span="12">
  617. <div>
  618. <div class="left">
  619. <img src="@a/img/securityPlan/right3.png" alt="" />
  620. <div>一般风险场所</div>
  621. </div>
  622. <el-row class="right">
  623. <el-col :span="24">单位总数(家)</el-col>
  624. <el-col :span="24" style="color: #ffd800">6</el-col>
  625. </el-row>
  626. </div>
  627. </el-col>
  628. <el-col :span="12">
  629. <div>
  630. <div class="left">
  631. <img src="@a/img/securityPlan/right4.png" alt="" />
  632. <div>低风险场所</div>
  633. </div>
  634. <el-row class="right">
  635. <el-col :span="24">单位总数(家)</el-col>
  636. <el-col :span="24" style="color: #0084ff">18</el-col>
  637. </el-row>
  638. </div>
  639. </el-col>
  640. </el-row>
  641. </div>
  642. <div class="leftTopContent" v-if="tabsArea == 'jc'">
  643. <el-row>
  644. <el-col :span="12">
  645. <div>
  646. <div class="title">
  647. <div>检查单位数(家次)</div>
  648. </div>
  649. <div class="content">
  650. <span>6276</span>
  651. <span>同比</span>
  652. <span style="color: #fe0505">+29.48%</span>
  653. </div>
  654. </div>
  655. </el-col>
  656. <el-col :span="12">
  657. <div>
  658. <div class="title">
  659. <div>发现隐患数(处)</div>
  660. </div>
  661. <div class="content">
  662. <span>1340</span>
  663. <span>同比</span>
  664. <span style="color: #fe0505">+14.18%</span>
  665. </div>
  666. </div>
  667. </el-col>
  668. <el-col :span="12">
  669. <div>
  670. <div class="title">
  671. <div>督改隐患数(处)</div>
  672. </div>
  673. <div class="content">
  674. <span>1090</span>
  675. <span>同比</span>
  676. <span style="color: #fe0505">+7.34%</span>
  677. </div>
  678. </div>
  679. </el-col>
  680. <el-col :span="12">
  681. <div style="width: 80%">
  682. <div class="title">
  683. <div>签约承诺书(份)</div>
  684. </div>
  685. <div class="content">
  686. <span>5410</span>
  687. </div>
  688. </div>
  689. </el-col>
  690. </el-row>
  691. </div>
  692. </div> -->
  693. <div class="rightTop">
  694. <!-- <h4>安保推送情况</h4>
  695. <el-row class="rightTop2">
  696. <el-col :span="8" v-for="(item, index) in proptionList" :key="index">
  697. <div>
  698. <div style="text-align: center; font-size: 0.18rem">
  699. {{ item.type }}
  700. </div>
  701. <div style="height: 1.5rem">
  702. <gauge ref="gauge1" :data="item"></gauge>
  703. </div>
  704. </div>
  705. </el-col>
  706. </el-row> -->
  707. <h4>疏导区执法及监控视频画面</h4>
  708. <el-row class="monitor-list" >
  709. <div class="list">
  710. <el-select
  711. v-model="zfjly1"
  712. placeholder="请选择执法记录仪"
  713. class="videoSelect"
  714. >
  715. <el-option
  716. v-for="item in selectVideoData"
  717. :key="item.url"
  718. :label="item.name"
  719. :value="item.url"
  720. >
  721. </el-option>
  722. </el-select>
  723. <img src="@/assets/img/home/video.jpg" alt="" v-if="!zfjly1">
  724. <iframe
  725. class="hlsVideo monitor-height"
  726. :src="zfjly1"
  727. allowfullscreen="true"
  728. ></iframe>
  729. </div>
  730. <div class="list" :offset="2">
  731. <el-select
  732. v-model="zfjly2"
  733. placeholder="请选择监控视频"
  734. class="videoSelect"
  735. >
  736. <el-option
  737. v-for="item in selectVideoData"
  738. :key="item.url"
  739. :label="item.name"
  740. :value="item.url"
  741. >
  742. </el-option>
  743. </el-select>
  744. <img src="@/assets/img/home/video.jpg" alt="" v-if="!zfjly2">
  745. <iframe
  746. class="hlsVideo monitor-height"
  747. :src="zfjly2"
  748. allowfullscreen="true"
  749. ></iframe>
  750. </div>
  751. </el-row>
  752. </div>
  753. <!-- <div class="rightBot">
  754. <h4>网格人员信息</h4>
  755. <div class="rightBotContent" v-if="erpData.length > 0">
  756. <el-table
  757. :data="rightArray.tableData"
  758. class="transparentTableRow"
  759. height="100%"
  760. :empty-text="dataNo2"
  761. ref="reportTable"
  762. @mouseenter="autoScroll(true)"
  763. @mouseleave="autoScroll()"
  764. >
  765. <el-table-column v-for="item in rightArray.headerData2" show-overflow-tooltip :key="item.prop" :prop="item.prop" align="left" min-width="20" :label="item.name">
  766. <template #default="scope">
  767. {{ item.prop === "type" ? "" : item.prop === "status" ? (scope.row[item.prop] == 1 ? "可用" : "不可用") : scope.row[item.prop] }}
  768. </template>
  769. </el-table-column>
  770. </el-table>
  771. </div>
  772. </div> -->
  773. </el-col>
  774. </transition>
  775. <!-- 普通弹框 -->
  776. <!-- <div class="tableTooltipwt sadianTankang" v-show="stores.$state.arrayList.length > 0 && !jkspStatus">
  777. <img src="~@a/img/icon/close.png" alt="" class="close" @click="close" />
  778. <el-row class="tableContent">
  779. <el-col class="mk" v-for="li in stores.$state.arrayList" :key="li" v-show="li.title[1]">
  780. <p v-show="li.title[1]">{{ li.title[0] }}</p>
  781. <el-row>
  782. <el-col v-for="ch in li.children" :key="ch" :span="ch[2]" v-show="li.title[1] && ch[1]">
  783. <span class="color1">{{ ch[0] }}</span>
  784. <span class="color2">{{ ch[1] }}</span>
  785. </el-col>
  786. <el-row style="margin-top: 10px" v-if="li.type">
  787. <iframe :src="li.url" allowfullscreen="true" style="width: 100%"></iframe>
  788. </el-row>
  789. </el-row>
  790. </el-col>
  791. </el-row>
  792. </div> -->
  793. <!-- 普通弹框 -->
  794. <div class="tableTooltipwt sadianTankang " v-if="jkspStatus">
  795. <img src="~@a/img/icon/close.png" alt="" class="close" @click="closeJkspStatus" />
  796. <el-row class="tableContent">
  797. <el-col class="mk">
  798. <p style="font-size:0.2rem">监控视频</p>
  799. <el-row>
  800. <el-col v-for="ch in stores.$state.jkspData.children" :key="ch" :span="24" >
  801. <span class="color1">{{ ch[0] }}</span>
  802. <span class="color2">{{ ch[1] }}</span>
  803. </el-col>
  804. </el-row>
  805. </el-col>
  806. <div class="video">
  807. <video :id="Message.videoId" preload="true" autoplay="autoplay"
  808. class="hlsVideo monitor-height" ref="hlsVideo" style="width: 100%" controls muted></video>
  809. </div>
  810. </el-row>
  811. </div>
  812. </el-row>
  813. </template>
  814. <script>
  815. import axios from "axios";
  816. import linstener from "@c/mixins/linstener";
  817. import map from "@c/mixins/map-data1";
  818. import gauge from "@c/gauge/index6";
  819. // import map from "@c/mixins/map-gaode-public";
  820. import category from "@c/category/index22";
  821. import unitBox from "@c/unitBox/index";
  822. import CountTo from "@/components/count-to/index.js";
  823. import Hls from "hls.js";
  824. export default {
  825. mixins: [linstener, map],
  826. components: { category, gauge, CountTo,unitBox },
  827. data() {
  828. return {
  829. gridStatisticsNum:{
  830. total:0,
  831. over:0,
  832. rate:0,
  833. yinhuan:0,
  834. },
  835. hls: "",
  836. Message: {
  837. "name": undefined,
  838. "videoId": undefined,
  839. "videoUrl": false,
  840. },
  841. jkspStatus:false,//监控视频弹框状态
  842. gridStatisticsStatus:true,//处置网格统计状态
  843. dataNo3:"加载中...",
  844. gridStatisticsTable:[
  845. // {
  846. // "案件状态": "待申请核查",
  847. // "任务号": "2310M2253844",
  848. // "发现时间": "2023-10-13 09:18",
  849. // "案件来源": "12345上报",
  850. // "案件属性": "部件",
  851. // "案件大类": "其他设施",
  852. // "案件小类": "充电站(桩)",
  853. // "案件子类": "其他充电桩相关问题",
  854. // "街镇": "华漕镇",
  855. // "自治网格": "诸新路居委会",
  856. // "自治网格类型": "居委",
  857. // "处置网格": "华漕镇处置网格五(诸翟南片区)",
  858. // "责任块": "九方家园",
  859. // "发生地址": "闵行区华漕镇保乐路168弄九方家园",
  860. // "诉求联系人": "臧婷婷",
  861. // "流转方向": "平台流转",
  862. // "派遣时间": "2023-10-13 09:20",
  863. // "主责部门": "华漕镇",
  864. // "三级主责部门": "诸新路居委会",
  865. // "处理时间": null,
  866. // "处理备注": null,
  867. // "结案时间": null,
  868. // "结案评判": null,
  869. // "结案意见": null,
  870. // "X坐标": -17369.89850242,
  871. // "Y坐标": -2808.9159114,
  872. // "问题描述": "市民来电反映:其是上述地址小区居民,要申请安装充电站,物业不肯给其敲章,市民为此不满,故来来电投诉上述小区物业。"
  873. // }
  874. ],//处置网格table数据
  875. gridStatisticsTableType:[],
  876. gridStatisticsHeader:[
  877. { prop: "发现时间", name: "发现时间" },
  878. { prop: "街镇", name: "街镇" },
  879. { prop: "自治网格", name: "自治网格" },
  880. { prop: "案件子类", name: "案件子类" },
  881. { prop: "案件状态", name: "案件状态" },
  882. ],//处置网格header
  883. value111:'23',
  884. //24、厂房仓库?? 25、大型商业综合体?? 27、批发市场??
  885. // 23、宾馆酒店 26、规模租赁公寓 28、三合一场所 29、养老机构 30、医疗机构
  886. options: [
  887. {
  888. value: '23',
  889. label: '宾馆酒店',
  890. },
  891. {
  892. value: '1',
  893. label: '大型商业综合体',
  894. },
  895. {
  896. value: '2',
  897. label: '消防安全重点单位',
  898. },
  899. {
  900. value: '30',
  901. label: '医疗机构',
  902. },
  903. {
  904. value: '29',
  905. label: '养老机构',
  906. },
  907. {
  908. value: '3',
  909. label: '厂房仓库',
  910. },
  911. {
  912. value: '4',
  913. label: '批发市场',
  914. },
  915. {
  916. value: '5',
  917. label: '居民小区',
  918. },
  919. {
  920. value: '26',
  921. label: '规模租赁公寓',
  922. },
  923. {
  924. value: '28',
  925. label: '三合一场所',
  926. },
  927. {
  928. value: '6',
  929. label: '电动自行车领域',
  930. },
  931. ],
  932. arrayData:[],
  933. line3Array:[
  934. {
  935. "name": "大型综合体",
  936. "count": 4,
  937. },
  938. {
  939. "name": "重点单位",
  940. "count": 14,
  941. },
  942. {
  943. "name": "酒店/宾馆",
  944. "count": 11,
  945. },
  946. {
  947. "name": "高层建筑",
  948. "count": 14,
  949. },{
  950. "name": "厂房/仓库",
  951. "count": 11,
  952. },
  953. {
  954. "name": "商市场",
  955. "count": 11,
  956. },
  957. {
  958. "name": "公共娱乐场所",
  959. "count": 11,
  960. },
  961. {
  962. "name": "医疗机构",
  963. "count": 103,
  964. },{
  965. "name": "养老机构",
  966. "count": 11,
  967. },
  968. {
  969. "name": "规模租赁",
  970. "count": 103,
  971. },
  972. {
  973. "name": "办公楼宇",
  974. "count": 103,
  975. },
  976. {
  977. "name": "在建工地",
  978. "count": 11,
  979. },
  980. {
  981. "name": "居民小区",
  982. "count": 4,
  983. },{
  984. "name": "沿街门面",
  985. "count": 20,
  986. },
  987. {
  988. "name": "宗教场所",
  989. "count": 4,
  990. },
  991. {
  992. "name": "学校",
  993. "count": 20,
  994. },
  995. {
  996. "name": "加油(汽)站",
  997. "count": 20,
  998. },{
  999. "name": "地铁站",
  1000. "count": 11,
  1001. },{
  1002. "name": "社会消费组织(微站/专职队)",
  1003. "count": 11,
  1004. }
  1005. ],
  1006. staticData:{
  1007. array:[],
  1008. total:0,
  1009. array1:[
  1010. {
  1011. "streetTown": "消防站",
  1012. "count": 21,
  1013. "color": "#FF0709"
  1014. },
  1015. {
  1016. "streetTown": "流动消防站(一级)",
  1017. "count": 27,
  1018. "color": "#F48354"
  1019. },
  1020. {
  1021. "streetTown": "流动消防站(二级",
  1022. "count": 26,
  1023. "color": "#73FBFD"
  1024. },
  1025. {
  1026. "streetTown": "微型消防站",
  1027. "count": 11,
  1028. "color": "#4FE261"
  1029. }
  1030. ]
  1031. },
  1032. zfjly1:undefined,
  1033. zfjly2:undefined,
  1034. selectVideoData: [],
  1035. tabsArea: "fx", //切换
  1036. diversionArea: [
  1037. { name: "疏导区总面积", value: 61.46, unit: "km²", color: "#7DD807" },
  1038. { name: "华漕镇", value: 28.2, unit: "km²", color: "#01C3B4" },
  1039. { name: "新虹街道", value: 19.26, unit: "km²", color: "#01C3B4" },
  1040. { name: "七宝镇", value: 7, unit: "㎡", color: "#01C3B4" },
  1041. { name: "虹桥镇", value: 7, unit: "km²", color: "#01C3B4" },
  1042. { name: "分管领导", value: 20, unit: "人", color: "#058DFE" },
  1043. { name: "增援干部", value: 11, unit: "人", color: "#058DD1" },
  1044. { name: "大网格", value: 4, unit: "个", color: "#FC0609 " },
  1045. { name: "中网格", value: 14, unit: "个", color: "#FD843A" },
  1046. { name: "小网格", value: 103, unit: "个", color: "#7DD807" },
  1047. // {name:"人员力量",value:41,unit:"人",color:"#058DD1"},
  1048. ], //疏导区基本情况
  1049. gridStatus: 15,
  1050. dataNo: "加载中...",
  1051. dataNo2: "加载中...",
  1052. stores: this.$useStore(),
  1053. proptionList: [
  1054. {
  1055. type: "已推送单位",
  1056. number: 306,
  1057. month: null,
  1058. radio: "1",
  1059. sameStatus: 2,
  1060. avg: null,
  1061. color: ["#BF4216 ", "#F68E6A"],
  1062. },
  1063. {
  1064. type: "已接收单位",
  1065. number: 303,
  1066. month: null,
  1067. radio: "1",
  1068. sameStatus: 2,
  1069. avg: null,
  1070. color: ["#06B1B9 ", "#14E1EA"],
  1071. },
  1072. {
  1073. type: "推送接收率",
  1074. number: 99,
  1075. month: null,
  1076. radio: "0.99",
  1077. sameStatus: 2,
  1078. avg: null,
  1079. color: ["#E4951E ", "#F8ED41"],
  1080. },
  1081. ],
  1082. category: true,
  1083. tableData2: [],
  1084. headerData2: [
  1085. { prop: "name", name: "站点名称" },
  1086. { prop: "car", name: "站点车辆" },
  1087. { prop: "personnel", name: "人员" },
  1088. ],
  1089. reportComplaintList: [
  1090. { name: "火灾扑救", value: 100 },
  1091. { name: "社会救助", value: 90 },
  1092. { name: "抢险救援", value: 60 },
  1093. ], //接处警情况
  1094. checkedArray: {
  1095. checkedData: [19],
  1096. checkedList: [
  1097. { value: 0, label: "车辆" },
  1098. { value: 1, label: "历史警情" },
  1099. { value: 2, label: "历史火灾" },
  1100. { value: 3, label: "重点单位" },
  1101. { value: 4, label: "消防站" },
  1102. { value: 19, label: "大网格" },
  1103. { value: 15, label: "中网格" },
  1104. { value: 16, label: "小网格" },
  1105. { value: 17, label: "监控视频" },
  1106. { value: 18, label: "监督检查" },
  1107. ],
  1108. }, //类型筛选
  1109. checkedSelectValue: "40",
  1110. checkedSelectLabel: "消防站",
  1111. checkedSelectArray: [
  1112. { value: 40, label: "消防站" },
  1113. { value: 41, label: "专职队" },
  1114. // { value: 43, label: "城市消防站" },
  1115. { value: 44, label: "企业消防队" },
  1116. { value: 42, label: "街镇微型消防站" },
  1117. { value: 45, label: "社区微型消防站" },
  1118. { value: 46, label: "一级微型消防站" },
  1119. { value: 47, label: "街镇专职消防队" },
  1120. ],
  1121. tableData: [
  1122. {
  1123. type: "火灾",
  1124. policeTime: "23:00:00",
  1125. alertLevel: "二级",
  1126. address: "闵行区",
  1127. car: "2辆",
  1128. policeCause: "电器火灾",
  1129. department: "吴泾支队",
  1130. status: "1",
  1131. callingUp: "1号",
  1132. equipName: "一七",
  1133. carNumber: "沪X5477应急",
  1134. carStatus: "出动",
  1135. disposeTime: "1:00:00",
  1136. correspondent: "张三",
  1137. commander: "李四",
  1138. firemen: "王五",
  1139. driver: "赵六",
  1140. },
  1141. {
  1142. type: "火灾",
  1143. policeTime: "23:00:00",
  1144. alertLevel: "二级",
  1145. address: "闵行区",
  1146. car: "2辆",
  1147. policeCause: "电器火灾",
  1148. department: "吴泾支队",
  1149. status: "1",
  1150. callingUp: "1号",
  1151. equipName: "一七",
  1152. carNumber: "沪X5477应急",
  1153. carStatus: "出动",
  1154. disposeTime: "1:00:00",
  1155. correspondent: "张三",
  1156. commander: "李四",
  1157. firemen: "王五",
  1158. driver: "赵六",
  1159. },
  1160. {
  1161. type: "火灾",
  1162. policeTime: "23:00:00",
  1163. alertLevel: "二级",
  1164. address: "闵行区",
  1165. car: "2辆",
  1166. policeCause: "电器火灾",
  1167. department: "吴泾支队",
  1168. status: "1",
  1169. callingUp: "1号",
  1170. equipName: "一七",
  1171. carNumber: "沪X5477应急",
  1172. carStatus: "出动",
  1173. disposeTime: "1:00:00",
  1174. correspondent: "张三",
  1175. commander: "李四",
  1176. firemen: "王五",
  1177. driver: "赵六",
  1178. },
  1179. {
  1180. type: "社会救援",
  1181. policeTime: "23:00:00",
  1182. alertLevel: "二级",
  1183. address: "闵行区",
  1184. car: "2辆",
  1185. policeCause: "电器火灾",
  1186. department: "吴泾支队",
  1187. status: "1",
  1188. callingUp: "1号",
  1189. equipName: "一七",
  1190. carNumber: "沪X5477应急",
  1191. carStatus: "出动",
  1192. disposeTime: "1:00:00",
  1193. correspondent: "张三",
  1194. commander: "李四",
  1195. firemen: "王五",
  1196. driver: "赵六",
  1197. },
  1198. {
  1199. type: "社会救援",
  1200. policeTime: "23:00:00",
  1201. alertLevel: "二级",
  1202. address: "闵行区",
  1203. car: "2辆",
  1204. policeCause: "电器火灾",
  1205. department: "吴泾支队",
  1206. status: "1",
  1207. callingUp: "1号",
  1208. equipName: "一七",
  1209. carNumber: "沪X5477应急",
  1210. carStatus: "出动",
  1211. disposeTime: "1:00:00",
  1212. correspondent: "张三",
  1213. commander: "李四",
  1214. firemen: "王五",
  1215. driver: "赵六",
  1216. },
  1217. {
  1218. type: "社会救援",
  1219. policeTime: "23:00:00",
  1220. alertLevel: "二级",
  1221. address: "闵行区",
  1222. car: "2辆",
  1223. policeCause: "电器火灾",
  1224. department: "吴泾支队",
  1225. status: "1",
  1226. callingUp: "1号",
  1227. equipName: "一七",
  1228. carNumber: "沪X5477应急",
  1229. carStatus: "出动",
  1230. disposeTime: "1:00:00",
  1231. correspondent: "张三",
  1232. commander: "李四",
  1233. firemen: "王五",
  1234. driver: "赵六",
  1235. },
  1236. {
  1237. type: "抢险救援",
  1238. policeTime: "23:00:00",
  1239. alertLevel: "二级",
  1240. address: "闵行区",
  1241. car: "2辆",
  1242. policeCause: "电器火灾",
  1243. department: "吴泾支队",
  1244. status: "1",
  1245. callingUp: "1号",
  1246. equipName: "一七",
  1247. carNumber: "沪X5477应急",
  1248. carStatus: "出动",
  1249. disposeTime: "1:00:00",
  1250. correspondent: "张三",
  1251. commander: "李四",
  1252. firemen: "王五",
  1253. driver: "赵六",
  1254. },
  1255. {
  1256. type: "抢险救援",
  1257. policeTime: "23:00:00",
  1258. alertLevel: "二级",
  1259. address: "闵行区",
  1260. car: "2辆",
  1261. policeCause: "电器火灾",
  1262. department: "吴泾支队",
  1263. status: "1",
  1264. callingUp: "1号",
  1265. equipName: "一七",
  1266. carNumber: "沪X5477应急",
  1267. carStatus: "出动",
  1268. disposeTime: "1:00:00",
  1269. correspondent: "张三",
  1270. commander: "李四",
  1271. firemen: "王五",
  1272. driver: "赵六",
  1273. },
  1274. {
  1275. type: "抢险救援",
  1276. policeTime: "23:00:00",
  1277. alertLevel: "二级",
  1278. address: "闵行区",
  1279. car: "2辆",
  1280. policeCause: "电器火灾",
  1281. department: "吴泾支队",
  1282. status: "1",
  1283. callingUp: "1号",
  1284. equipName: "一七",
  1285. carNumber: "沪X5477应急",
  1286. carStatus: "出动",
  1287. disposeTime: "1:00:00",
  1288. correspondent: "张三",
  1289. commander: "李四",
  1290. firemen: "王五",
  1291. driver: "赵六",
  1292. },
  1293. {
  1294. type: "抢险救援",
  1295. policeTime: "23:00:00",
  1296. alertLevel: "二级",
  1297. address: "闵行区",
  1298. car: "2辆",
  1299. policeCause: "电器火灾",
  1300. department: "吴泾支队",
  1301. status: "1",
  1302. callingUp: "1号",
  1303. equipName: "一七",
  1304. carNumber: "沪X5477应急",
  1305. carStatus: "出动",
  1306. disposeTime: "1:00:00",
  1307. correspondent: "张三",
  1308. commander: "李四",
  1309. firemen: "王五",
  1310. driver: "赵六",
  1311. },
  1312. {
  1313. type: "火灾",
  1314. policeTime: "23:00:00",
  1315. alertLevel: "二级",
  1316. address: "闵行区",
  1317. car: "2辆",
  1318. policeCause: "电器火灾",
  1319. department: "吴泾支队",
  1320. status: "1",
  1321. callingUp: "1号",
  1322. equipName: "一七",
  1323. carNumber: "沪X5477应急",
  1324. carStatus: "出动",
  1325. disposeTime: "1:00:00",
  1326. correspondent: "张三",
  1327. commander: "李四",
  1328. firemen: "王五",
  1329. driver: "赵六",
  1330. },
  1331. ],
  1332. headerData: [
  1333. { prop: "policeTime", name: "立案时间" },
  1334. { prop: "alertLevel", name: "警情等级" },
  1335. { prop: "address", name: "案发地址" },
  1336. { prop: "car", name: "调动车辆" },
  1337. // { prop: "type", name: "类型" },
  1338. { prop: "policeCause", name: "原因" },
  1339. { prop: "department", name: "所属中队" },
  1340. { prop: "status", name: "状况" },
  1341. ],
  1342. erpData: [
  1343. {
  1344. linkPhone: "13917453877",
  1345. address: "上海市闵行区新虹街道申滨南路1156号龙湖天街A栋112、115室",
  1346. employeeNum: "",
  1347. registrar: "市场监督管理局",
  1348. companyType: "9",
  1349. fireDutyName: "魏良满",
  1350. delegateName: "魏静",
  1351. completedTime: null,
  1352. companyName: "龙湖虹桥天街",
  1353. fireManageName: "魏良满",
  1354. businessStatus: "开业",
  1355. buildArea: "0.0",
  1356. paidCapital: "500",
  1357. companyId: "2DB679350A0F4023B74C4261539AA031",
  1358. foundTime: null,
  1359. buildingStructure: "钢筋混凝土",
  1360. registeredCapital: "500",
  1361. organization: "91310112MA1GEKG30K",
  1362. companyNature: 9,
  1363. buildingHeight: "25",
  1364. fireRating: "一级",
  1365. construction: null,
  1366. id: 1415,
  1367. },
  1368. ],
  1369. rightArray: {
  1370. tableData: [],
  1371. headerData2: [
  1372. { prop: "gridArea", name: "网格区域" },
  1373. { prop: "streetTown", name: "街道" },
  1374. { prop: "gridPeople", name: "网格人员" },
  1375. { prop: "recruiting", name: "增援干部" },
  1376. { prop: "responsibilities", name: "分管领导" },
  1377. ],
  1378. },
  1379. };
  1380. },
  1381. mounted() {
  1382. this.gridStatisticsData()//处置网格数据
  1383. this.surveillance()//监控视频
  1384. this.grid(15);
  1385. setTimeout(() => {
  1386. this.autoScroll();
  1387. });
  1388. window.addEventListener("resize", () => this.resizeTimeActions([this.$refs.category, this.$refs.gauge1]), true);
  1389. this.initMap("anbao"); //地图初始化
  1390. this.anbao(null, 3);
  1391. this.anbaoMap()
  1392. this.getFireSiteDuty(); //各站点执勤实力
  1393. this.selectVideo(); //视频在线
  1394. // this.sadianSelect(this.checkedArray.checkedData[0]); //撒点
  1395. this.getStaticData(this.value111)
  1396. },
  1397. methods: {
  1398. getStaticData(type){
  1399. // this.$axios.post(
  1400. // this.$api.water.baseGgpFacilityStatistic +
  1401. // "?" +
  1402. // this.$qs.stringify({
  1403. // facilityType: type,
  1404. // })
  1405. // ).then(res=>{
  1406. this.$axios.post(this.$api.water.baseGgpFacilityStatistic,{
  1407. "facilityType": [type ]
  1408. }).then((res) => {
  1409. this.staticData.array=res.data;
  1410. var colorArr=['#00C8B8','#068DFF','#FF843A','#7DD807'];
  1411. this.staticData.array.forEach((item, index) => {
  1412. item.color = colorArr[index]
  1413. })
  1414. console.log(this.staticData.array)
  1415. var totalCount=0
  1416. res.data.forEach(function(item){
  1417. totalCount+=Number(item.count)
  1418. })
  1419. this.staticData.total=totalCount
  1420. })
  1421. },
  1422. getOneUnit(val){
  1423. if(val=='29'||val=='30'){ //表格及撒点
  1424. this.$axios.post(this.$api.water.baseGgpFacilityList,{
  1425. "facilityType": [val ]
  1426. }).then((res) => {
  1427. console.log(res)
  1428. let arr = []
  1429. if(res.data.length>0){
  1430. arr = res.data;
  1431. this.arrayData= res.data;
  1432. if(val=='29'){
  1433. this.addMarker(arr, "security-plan", "养老机构安全隐患清单")
  1434. }else{
  1435. this.addMarker(arr, "security-plan", "医疗机构安全隐患清单")
  1436. }
  1437. }
  1438. });
  1439. }else if(val=='23'||val=='26'||val=='28'){ //统计
  1440. this.getStaticData(val)
  1441. }
  1442. },
  1443. beforeDestroy() {
  1444. this.autoScroll(true);
  1445. },
  1446. closeJkspStatus(){
  1447. this.jkspStatus = false
  1448. this.destroyHls()
  1449. },
  1450. //播放按钮
  1451. play() {
  1452. this.destroyHls()
  1453. this.loadVideoFn(this.Message.videoUrl)
  1454. },
  1455. destroyHls: function () {//关闭视频拉取
  1456. if (this.hls) {
  1457. this.$refs.hlsVideo.pause();
  1458. this.hls.destroy();
  1459. this.hls = null;
  1460. }
  1461. },
  1462. loadVideoFn(url) {//视频播放
  1463. setTimeout(() => {
  1464. if (Hls.isSupported()) {
  1465. this.hls = new Hls();
  1466. this.hls.loadSource(url);
  1467. this.hls.attachMedia(this.$refs.hlsVideo);
  1468. this.hls.on(Hls.Events.MANIFEST_PARSED, () => {
  1469. // console.log("加载成功");
  1470. this.$refs.hlsVideo.play();
  1471. });
  1472. this.hls.on(Hls.Events.ERROR, (event, data) => {
  1473. // console.log(event, data);
  1474. // 监听出错事件
  1475. //console.log("加载失败");
  1476. });
  1477. }
  1478. }, 1000)
  1479. },
  1480. /**
  1481. * 监控视频
  1482. */
  1483. surveillance(){
  1484. axios({
  1485. method: "get",
  1486. url: "http://32.1.7.96:8086/fireMajorSecurityProcess/selectSecurityViewUrl",
  1487. params:{
  1488. "pageNum":"1",
  1489. "pageSize":"500",
  1490. }
  1491. }).then((res) => {
  1492. this.sadian(res.data.data, "security-plan", "监控视频");
  1493. })
  1494. },
  1495. /**
  1496. * 网格统计状态切换
  1497. */
  1498. gridStatisticsGoBack(){
  1499. this.gridStatisticsStatus = true
  1500. },
  1501. /**
  1502. * 网格数据统计
  1503. */
  1504. gridStatisticsData(){
  1505. let formData = new FormData()
  1506. formData.append('grant_type', "client_credentials")
  1507. formData.append('client_id', "12016")
  1508. formData.append('client_secret', "956DD43944464DCeB262cED7d351AAA4")
  1509. formData.append('scope', "api.read")
  1510. axios({
  1511. headers: {
  1512. 'Content-Type': 'multipart/form-data'
  1513. },
  1514. method: "post",
  1515. url: "http://32.1.8.124:5001/connect/token",
  1516. data:formData
  1517. }).then((res) => {
  1518. axios({
  1519. headers: {
  1520. 'Content-Type': 'multipart/form-data',
  1521. "AppId": "12016",
  1522. "ResourceId": "1884",
  1523. "Authorization":'Bearer ' + res.access_token
  1524. },
  1525. method: "get",
  1526. url: "http://32.1.8.124:5002/api/data-share/1884/json",
  1527. params:{
  1528. "STARTTIME":dayjs().subtract(0, "day").format("YYYY-MM-DD"),
  1529. "ENDTIME":dayjs().subtract(0, "day").format("YYYY-MM-DD"),
  1530. "STREETCODE":"",
  1531. "INFOTYPEID":"",
  1532. "INFOBCCODE":"",
  1533. "INFOSCCODE":"",
  1534. "INFOZCCODE":"",
  1535. // "ENDTIME":"2023-12-01",
  1536. }
  1537. }).then((res2) => {
  1538. console.table(res2.values)
  1539. this.gridStatisticsTable.total = []
  1540. this.gridStatisticsTable.over = []
  1541. this.gridStatisticsTable.yinhuan = []
  1542. this.gridStatisticsTable.total = res2.values
  1543. this.gridStatisticsTableType = this.gridStatisticsTable.total
  1544. this.gridStatisticsNum.total = res2.values.length
  1545. let num = 0;
  1546. let yinhuan = 0
  1547. for(let i =0;i<res2.values.length;i++){
  1548. if(res2.values[i]["案件状态"] == "已结案"){
  1549. num ++
  1550. this.gridStatisticsTable.over.push(res2.values[i])
  1551. }
  1552. if(res2.values[i]["案件子类"].indexOf("部件") > -1 ||
  1553. res2.values[i]["案件子类"].indexOf("三违") > -1 ||
  1554. res2.values[i]["案件子类"].indexOf("扰乱火灾") > -1 ||
  1555. res2.values[i]["案件子类"].indexOf("焚烧") > -1 ||
  1556. res2.values[i]["案件子类"].indexOf("森林火灾") > -1 ){
  1557. }else{
  1558. yinhuan ++
  1559. this.gridStatisticsTable.yinhuan.push(res2.values[i])
  1560. }
  1561. }
  1562. setTimeout(()=>{
  1563. this.gridStatisticsNum.over = num
  1564. this.gridStatisticsNum.yinhuan = yinhuan
  1565. if(num){
  1566. this.gridStatisticsNum.rate = ((num / this.gridStatisticsNum.total) * 100).toFixed(2)
  1567. }else{
  1568. this.gridStatisticsNum.rate = 0
  1569. }
  1570. },50)
  1571. })
  1572. })
  1573. },
  1574. /**
  1575. * 网格统计
  1576. * @param {} id 1上报数,2隐患数,3处置数
  1577. */
  1578. gridStatistics(id){
  1579. this.gridStatisticsStatus = false
  1580. if(id == 1){
  1581. this.gridStatisticsTableType = this.gridStatisticsTable.total
  1582. }
  1583. if(id == 2){
  1584. this.gridStatisticsTableType = this.gridStatisticsTable.over
  1585. }
  1586. if(id == 3){
  1587. this.gridStatisticsTableType = this.gridStatisticsTable.yinhuan
  1588. }
  1589. },
  1590. /**
  1591. * 在线视频
  1592. */
  1593. async selectVideo(id) {
  1594. await axios({
  1595. headers: {
  1596. "Content-Type": "application/json;charset=UTF-8",
  1597. },
  1598. method: "get",
  1599. // url: "http://32.0.15.107:8080/video-api/kiop-gateway-core/4G/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022",
  1600. url: "http://32.0.15.107:8080/video-api/kiop-gateway-core/tysbs/device/ext?apikey=643e6591-a489-4648-ba35-c15c39c64022&f_in_civilCode=31021019,31020414&pageNo=0&pageSize=10000",
  1601. }).then((res) => {
  1602. let arr = [];
  1603. let zfjly = [];
  1604. if (res.data.length > 0) {
  1605. let data = res.data;
  1606. for (let i = 0; i < data.length; i++) {
  1607. if (data[i].otherNames?.status_name == "在线") {
  1608. var num = {
  1609. id: data[i].id,
  1610. name: data[i]?.deviceName,
  1611. groupName: data[i]?.groupName,
  1612. gisX: data[i]?.longitude
  1613. ? data[i]?.longitude
  1614. : 0,
  1615. gisY: data[i]?.latitude ? data[i]?.latitude : 0,
  1616. type: "执法记录仪",
  1617. gbid: data[i].gbid,
  1618. url:
  1619. "http://10.107.31.215:50080/dispatch-ms/#/conference/single_url?ipc_live=1&key=643e6591-a489-4648-ba35-c15c39c64022&gbids=" +
  1620. data[i].gbid,
  1621. };
  1622. arr.push(num);
  1623. }
  1624. }
  1625. for (let i = 0; i < arr.length; i++) {
  1626. if (
  1627. arr[i].name.indexOf("单兵") == "-1" &&
  1628. arr[i].name.indexOf("无人机") == "-1" &&
  1629. arr[i].name.indexOf("布控球") == "-1"
  1630. ) {
  1631. zfjly.push(arr[i]);
  1632. }
  1633. }
  1634. this.selectVideoData = zfjly;
  1635. if (arr.length > 0 && id) {
  1636. this.addMarker(arr, "enforcement-dynamic","执法记录仪");
  1637. }
  1638. }
  1639. });
  1640. // 测试
  1641. // let arr =
  1642. // [{
  1643. // id: "5708ad6382517cd68ea2d2f8cd01bb58",
  1644. // name: "上海闵行闵行消防站4G布控球",
  1645. // groupName: "009闵行支队",
  1646. // gisX: 121.386128,
  1647. // gisY:31.139253 ,
  1648. // type:"video",
  1649. // gbid:31.01411,
  1650. // type:"执法记录仪",
  1651. // url:"http://10.107.31.215:50080/dispatch-ms/#/conference/single_url?ipc_live=1&key=643e6591-a489-4648-ba35-c15c39c64022&gbids=31000000001320003271&nmediaid=121"
  1652. // }
  1653. // ]
  1654. // if(id){
  1655. // this.addMarker(arr, "enforcement-dynamic");
  1656. // }
  1657. },
  1658. selectArray(id) {
  1659. this.checkedArray.checkedData[0] = 4;
  1660. let data = this.checkedSelectArray.filter((val) => {
  1661. if (val.value == id) {
  1662. return val.label;
  1663. }
  1664. });
  1665. this.checkedSelectLabel = data[0].label;
  1666. this.sadianSelect(data[0].value);
  1667. },
  1668. /**
  1669. *
  1670. */
  1671. goBack() {
  1672. this.category = true;
  1673. },
  1674. /**
  1675. * categoryClick echarts 点击事件
  1676. */
  1677. categoryClick() {
  1678. this.category = false;
  1679. },
  1680. /* 各站点执勤实力分页 */
  1681. async getFireSiteDuty() {
  1682. await this.$axios
  1683. .get(
  1684. this.$api.fireSite.page +
  1685. "?" +
  1686. this.$qs.stringify({
  1687. current: 1,
  1688. size: 100,
  1689. })
  1690. )
  1691. .then((res) => {
  1692. if (res.data.records.length > 0) {
  1693. let arr = res.data.records;
  1694. let data = arr.filter((item) => {
  1695. let data = [];
  1696. if (item.name == "华漕站" || item.name == "新虹站" || item.name == "七宝站" || item.name == "申虹站") {
  1697. data.push(item);
  1698. return data;
  1699. }
  1700. });
  1701. for (let i = 0; i < data.length; i++) {
  1702. data[i].cheliang = {};
  1703. data[i].personnel = undefined;
  1704. data[i].car = undefined;
  1705. this.$axios
  1706. .get(
  1707. this.$api.fireSite.list +
  1708. "?" +
  1709. this.$qs.stringify({
  1710. zdCode: data[i].xfjgId,
  1711. })
  1712. )
  1713. .then((Response) => {
  1714. if (Response.data.length > 0) {
  1715. let children = Response.data;
  1716. data[i].cheliang = children;
  1717. data[i].car = children.length;
  1718. data[i].children = [];
  1719. data[i].personnel = 0;
  1720. for (let a = 0; a < children.length; a++) {
  1721. children[a].renyuan = "";
  1722. children[a].renyuanNum = 0;
  1723. if (children[a].zhy) {
  1724. children[a].renyuan = children[a].zhy + ",";
  1725. }
  1726. if (children[a].jsy) {
  1727. children[a].renyuan += children[a].jsy + ",";
  1728. }
  1729. if (children[a].txy) {
  1730. children[a].renyuan += children[a].txy + ",";
  1731. }
  1732. if (children[a].zsry) {
  1733. children[a].renyuan += children[a].zsry + ",";
  1734. }
  1735. data[i].children.push(children[a]);
  1736. if (children[a].renyuan.indexOf(",") > -1) {
  1737. children[a].renyuanNum += children[a].renyuan.match(/,/g).length;
  1738. }
  1739. data[i].personnel += children[a].renyuanNum;
  1740. }
  1741. for (let i = 0; i < data.length; i++) {
  1742. if (data[i].name == "闵行支队") {
  1743. data[i].name = "支队";
  1744. } else {
  1745. data[i].name = data[i].name.slice(0, 2);
  1746. }
  1747. }
  1748. setTimeout(() => {
  1749. this.cldt = data;
  1750. }, 1500);
  1751. }
  1752. });
  1753. }
  1754. setTimeout(() => {
  1755. this.tableData2 = data;
  1756. }, 1000);
  1757. } else {
  1758. this.dataNo = "暂未数据";
  1759. }
  1760. });
  1761. },
  1762. /**
  1763. * 撒点类型选择
  1764. */
  1765. checkboxChange(id) {
  1766. this.checkedArray.checkedData[0] = id;
  1767. if (id == 15) {
  1768. this.gridStatus = id;
  1769. this.anbao(1, 1);
  1770. this.anbaoMap()
  1771. this.grid(id);
  1772. } else if (id == 16) {
  1773. this.gridStatus = id;
  1774. this.grid(16, null, null, 1);
  1775. this.anbaoMap()
  1776. this.anbao(1, 2);
  1777. } else if (id == 17) {
  1778. this.surveillance()
  1779. } else if (id == 18) {
  1780. this.gridStatus = id;
  1781. this.anbao(1, 3);
  1782. this.anbaoMap()
  1783. } else {
  1784. this.sadianSelect(id);
  1785. }
  1786. },
  1787. /* 历史警情 */
  1788. async historicalWarning() {
  1789. let monthDay = dayjs().subtract(30, "day").format("YYYY-MM-DD HH:mm:ss");
  1790. let today = dayjs().subtract(0, "day").format("YYYY-MM-DD HH:mm:ss");
  1791. return await this.$axios.get(
  1792. this.$api.jqzhcz.page2 +
  1793. "?" +
  1794. this.$qs.stringify({
  1795. // streetTown: this.stroes.$state.streetTown, //街镇
  1796. current: 1,
  1797. size: 150,
  1798. startTime: monthDay,
  1799. endTime: today,
  1800. })
  1801. );
  1802. },
  1803. /**
  1804. * 撒点测绘院、高德
  1805. */
  1806. sadianSelect(id) {
  1807. let type = undefined
  1808. for(let i =0;i<this.checkedArray.checkedList.length;i++){
  1809. if(id ==this.checkedArray.checkedList[i].value ){
  1810. type = this.checkedArray.checkedList[i].label
  1811. // this.checkedSelectLabel = type
  1812. }
  1813. }
  1814. let that = this;
  1815. let arr = [];
  1816. if (this.stroes.$state.mapBool == 1) {
  1817. if (id == 0) {
  1818. this.initMarkers(arr.slice(0, 500), "security-plan", type);
  1819. } else if (id == 1 || id == 2) {
  1820. this.historicalWarning()
  1821. .then((res) => {
  1822. if (res) {
  1823. let data = res.data.records;
  1824. arr = data;
  1825. arr = data.filter((item) => item.zhongdui === "华漕" || item.zhongdui === "新虹" || item.zhongdui === "七宝" || item.zhongdui === "虹桥");
  1826. if (id == 2) {
  1827. arr = arr.filter((item) => {
  1828. return item.ajlxdm == 1;
  1829. });
  1830. }
  1831. }
  1832. })
  1833. .then((res) => {
  1834. this.initMarkers(arr.slice(0, 500), "security-plan", type);
  1835. });
  1836. } else {
  1837. this.initMarkers([], "security-plan", type);
  1838. }
  1839. } else {
  1840. if (id == 0) {
  1841. let data = {
  1842. gisX: 121.302183,
  1843. gisY: 31.189991,
  1844. type: "国家会展中心",
  1845. };
  1846. arr.push(data);
  1847. this.sadian(arr, "security-plan", type);
  1848. }
  1849. if (id == 1 || id == 2) {
  1850. this.historicalWarning()
  1851. .then((res) => {
  1852. if (res) {
  1853. let data = res.data.records;
  1854. arr = data;
  1855. arr = data.filter((item) => item.zhongdui === "华漕" || item.zhongdui === "新虹" || item.zhongdui === "七宝" || item.zhongdui === "虹桥");
  1856. if (id == 2) {
  1857. arr = arr.filter((item) => {
  1858. return item.ajlxdm == 1;
  1859. });
  1860. }
  1861. }
  1862. })
  1863. .then((res) => {
  1864. let data = {
  1865. gisX: 121.302183,
  1866. gisY: 31.189991,
  1867. type: "国家会展中心",
  1868. };
  1869. arr.push(data);
  1870. this.sadian(arr, "security-plan", type);
  1871. });
  1872. }
  1873. if (this.checkedArray.checkedData[0] == 40) {
  1874. this.$axios
  1875. .post(this.$api.fireSite.demFireStationList, {
  1876. stationType: [1, 2, 3, 4],
  1877. })
  1878. .then((res) => {
  1879. for (let i = 0; i < res.data.length; i++) {
  1880. if (
  1881. res.data[i].streetTown.indexOf("华漕") > -1 ||
  1882. res.data[i].streetTown.indexOf("新虹") > -1 ||
  1883. res.data[i].streetTown.indexOf("七宝") > -1 ||
  1884. res.data[i].streetTown.indexOf("虹桥") > -1
  1885. ) {
  1886. res.data[i].type = "消防站";
  1887. arr.push(res.data[i]);
  1888. }
  1889. }
  1890. let data = {
  1891. gisX: 121.302183,
  1892. gisY: 31.189991,
  1893. type: "国家会展中心",
  1894. };
  1895. arr.push(data);
  1896. this.addMarker(arr, "rescue-station", "消防站");
  1897. });
  1898. }
  1899. if (id == 41) {
  1900. this.$axios
  1901. .post(this.$api.fireSite.demFireStationList, {
  1902. stationType: [4],
  1903. })
  1904. .then((res) => {
  1905. for (let i = 0; i < res.data.length; i++) {
  1906. if (
  1907. res.data[i].streetTown.indexOf("华漕") > -1 ||
  1908. res.data[i].streetTown.indexOf("新虹") > -1 ||
  1909. res.data[i].streetTown.indexOf("七宝") > -1 ||
  1910. res.data[i].streetTown.indexOf("虹桥") > -1
  1911. ) {
  1912. res.data[i].type = "专职队";
  1913. arr.push(res.data[i]);
  1914. }
  1915. }
  1916. let data = {
  1917. gisX: 121.302183,
  1918. gisY: 31.189991,
  1919. type: "国家会展中心",
  1920. };
  1921. arr.push(data);
  1922. this.addMarker(arr, "rescue-station", "专职队");
  1923. });
  1924. }
  1925. if (id == 42) {
  1926. this.$axios.get(this.$api.fireSite.demStreetMicroStationList + "?" + this.$qs.stringify({})).then((res) => {
  1927. for (let i = 0; i < res.data.length; i++) {
  1928. if (
  1929. res.data[i].streetTown.indexOf("华漕") > -1 ||
  1930. res.data[i].streetTown.indexOf("新虹") > -1 ||
  1931. res.data[i].streetTown.indexOf("七宝") > -1 ||
  1932. res.data[i].streetTown.indexOf("虹桥") > -1
  1933. ) {
  1934. res.data[i].stationType = 5;
  1935. arr.push(res.data[i]);
  1936. }
  1937. }
  1938. let data = {
  1939. gisX: 121.302183,
  1940. gisY: 31.189991,
  1941. type: "国家会展中心",
  1942. };
  1943. arr.push(data);
  1944. this.addMarker(arr, "rescue-station", "微型消防站");
  1945. });
  1946. }
  1947. if (id == 44) {
  1948. this.$axios
  1949. .post(this.$api.water.baseGgpFacilityList, {
  1950. facilityType: [13, 14],
  1951. })
  1952. .then((res) => {
  1953. for (let i = 0; i < res.data.length; i++) {
  1954. if (
  1955. res.data[i].streetTown.indexOf("华漕") > -1 ||
  1956. res.data[i].streetTown.indexOf("新虹") > -1 ||
  1957. res.data[i].streetTown.indexOf("七宝") > -1 ||
  1958. res.data[i].streetTown.indexOf("虹桥") > -1
  1959. ) {
  1960. res.data[i].stationType = 112;
  1961. arr.push(res.data[i]);
  1962. }
  1963. }
  1964. let data = {
  1965. gisX: 121.302183,
  1966. gisY: 31.189991,
  1967. type: "国家会展中心",
  1968. };
  1969. arr.push(data);
  1970. this.addMarker(arr, "rescue-station", "企业消防");
  1971. });
  1972. }
  1973. if (id == 45) {
  1974. this.$axios
  1975. .post(this.$api.water.baseGgpFacilityList, {
  1976. facilityType: [15, 16],
  1977. })
  1978. .then((res) => {
  1979. for (let i = 0; i < res.data.length; i++) {
  1980. if (
  1981. res.data[i].streetTown.indexOf("华漕") > -1 ||
  1982. res.data[i].streetTown.indexOf("新虹") > -1 ||
  1983. res.data[i].streetTown.indexOf("七宝") > -1 ||
  1984. res.data[i].streetTown.indexOf("虹桥") > -1
  1985. ) {
  1986. res.data[i].stationType = 112;
  1987. arr.push(res.data[i]);
  1988. }
  1989. }
  1990. let data = {
  1991. gisX: 121.302183,
  1992. gisY: 31.189991,
  1993. type: "国家会展中心",
  1994. };
  1995. arr.push(data);
  1996. this.addMarker(arr, "rescue-station", "社区消防");
  1997. });
  1998. }
  1999. if (id == 46) {
  2000. this.$axios
  2001. .post(this.$api.water.baseGgpFacilityList, {
  2002. facilityType: [17],
  2003. })
  2004. .then((res) => {
  2005. for (let i = 0; i < res.data.length; i++) {
  2006. if (
  2007. res.data[i].streetTown.indexOf("华漕") > -1 ||
  2008. res.data[i].streetTown.indexOf("新虹") > -1 ||
  2009. res.data[i].streetTown.indexOf("七宝") > -1 ||
  2010. res.data[i].streetTown.indexOf("虹桥") > -1
  2011. ) {
  2012. res.data[i].stationType = 17;
  2013. arr.push(res.data[i]);
  2014. }
  2015. }
  2016. let data = {
  2017. gisX: 121.302183,
  2018. gisY: 31.189991,
  2019. type: "国家会展中心",
  2020. };
  2021. arr.push(data);
  2022. this.addMarker(arr, "rescue-station", "一级微型消防站");
  2023. });
  2024. }
  2025. if (id == 47) {
  2026. this.$axios
  2027. .post(this.$api.water.baseGgpFacilityList, {
  2028. facilityType: [18],
  2029. })
  2030. .then((res) => {
  2031. for (let i = 0; i < res.data.length; i++) {
  2032. if (
  2033. res.data[i].streetTown.indexOf("华漕") > -1 ||
  2034. res.data[i].streetTown.indexOf("新虹") > -1 ||
  2035. res.data[i].streetTown.indexOf("七宝") > -1 ||
  2036. res.data[i].streetTown.indexOf("虹桥") > -1
  2037. ) {
  2038. res.data[i].stationType = 18;
  2039. arr.push(res.data[i]);
  2040. }
  2041. }
  2042. let data = {
  2043. gisX: 121.302183,
  2044. gisY: 31.189991,
  2045. type: "国家会展中心",
  2046. };
  2047. arr.push(data);
  2048. this.addMarker(arr, "rescue-station", "街镇专职消防队");
  2049. });
  2050. }
  2051. if (id == 18) {
  2052. this.$axios
  2053. .get(this.$api.fire.fireSafetyInspectionScatter)
  2054. .then((res) => {
  2055. console.log(123,res)
  2056. for(let i =0;i<res.data.length;i++){
  2057. res.data[i].type = "监督检查"
  2058. arr.push(res.data[i])
  2059. }
  2060. let data = {
  2061. gisX: 121.302183,
  2062. gisY: 31.189991,
  2063. type: "国家会展中心",
  2064. };
  2065. arr.push(data);
  2066. this.addMarker(arr, "security-plan", "监督检查");
  2067. });
  2068. }
  2069. }
  2070. },
  2071. /**
  2072. * 撒点
  2073. */
  2074. sadian(data, pageType, type) {
  2075. if (this.stroes.$state.mapBool == 1) {
  2076. if (data.length > 0) {
  2077. this.initMarkers(data.slice(0, 500), pageType, type);
  2078. } else {
  2079. this.initMarkers([], pageType, type);
  2080. }
  2081. } else {
  2082. // this.anbaoMapNew(); //安保区域
  2083. if (data.length > 0) {
  2084. this.addMarker(data.slice(0, 500), pageType, type);
  2085. } else {
  2086. this.addMarker([], pageType, type);
  2087. }
  2088. }
  2089. },
  2090. /**
  2091. * 网格人员
  2092. * id 15中网格
  2093. * area 区域名称
  2094. * position 坐标
  2095. * query 查询居委会名称
  2096. */
  2097. grid(id, area, position, query) {
  2098. let querySearch = {};
  2099. let hzzx =[{
  2100. gisX: 121.302183,
  2101. gisY: 31.189991,
  2102. type: "国家会展中心",
  2103. }];
  2104. // this.sadian(hzzx, "security-plan", "国家会展中心");
  2105. if (id == 15) {
  2106. this.rightArray.headerData2 = [
  2107. { prop: "gridArea", name: "网格区域" },
  2108. { prop: "streetTown", name: "街道" },
  2109. { prop: "type1", name: "安监所人员" },
  2110. { prop: "type2", name: "城运中心人员" },
  2111. { prop: "type3", name: "消防助理员" },
  2112. ];
  2113. querySearch = {
  2114. gridArea: area,
  2115. gridGrade: 2,
  2116. };
  2117. }
  2118. if (id == 16) {
  2119. this.rightArray.headerData2 = [
  2120. { prop: "gridArea", name: "网格区域" },
  2121. { prop: "streetTown", name: "街道" },
  2122. { prop: "type1", name: "小网格人员" },
  2123. { prop: "type2", name: "小网格长" },
  2124. ];
  2125. querySearch = {
  2126. mapGridName: area,
  2127. gridGrade: 3,
  2128. };
  2129. }
  2130. this.$axios.get(this.$api.fireSite.gridMemberScatter + "?" + this.$qs.stringify(querySearch)).then((res) => {
  2131. let data = res.data;
  2132. let gridData = [];
  2133. if (data.length > 0) {
  2134. for (let i = 0; i < data.length; i++) {
  2135. if (data[i].gridMemderViceList && data[i].gridMemderViceList.length > 0) {
  2136. gridData[i] = {
  2137. gridArea: data[i].gridArea,
  2138. streetTown: data[i].streetTown,
  2139. mapGridName: data[i].mapGridName,
  2140. seniorGrid: data[i].seniorGrid,
  2141. type1: undefined,
  2142. type2: undefined,
  2143. type3: undefined,
  2144. };
  2145. if (data[i].gridMemderViceList) {
  2146. for (let ii = 0; ii < data[i].gridMemderViceList.length; ii++) {
  2147. if (id == 15) {
  2148. if (data[i].gridMemderViceList[ii].personnelType == 7) {
  2149. if (gridData[i].type1) {
  2150. gridData[i].type1 = `${gridData[i].type1}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2151. } else {
  2152. gridData[i].type1 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2153. }
  2154. }
  2155. if (data[i].gridMemderViceList[ii].personnelType == 8) {
  2156. if (gridData[i].type2) {
  2157. gridData[i].type2 = `${gridData[i].type2}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2158. } else {
  2159. gridData[i].type2 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2160. }
  2161. }
  2162. if (data[i].gridMemderViceList[ii].personnelType == 9) {
  2163. if (gridData[i].type3) {
  2164. gridData[i].type3 = `${gridData[i].type3}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2165. } else {
  2166. gridData[i].type3 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2167. }
  2168. }
  2169. }
  2170. if (id == 16) {
  2171. if (data[i].gridMemderViceList[ii].personnelType == 10) {
  2172. if (gridData[i].type1) {
  2173. gridData[i].type1 = `${gridData[i].type1}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2174. } else {
  2175. gridData[i].type1 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2176. }
  2177. }
  2178. if (data[i].gridMemderViceList[ii].personnelType == 11) {
  2179. if (gridData[i].type2) {
  2180. gridData[i].type2 = `${gridData[i].type2}</br>${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2181. } else {
  2182. gridData[i].type2 = `${data[i].gridMemderViceList[ii].personnelName} ${data[i].gridMemderViceList[ii].phone}`;
  2183. }
  2184. }
  2185. }
  2186. }
  2187. }
  2188. }
  2189. }
  2190. if (position) {
  2191. let arr = {};
  2192. arr.type = id;
  2193. arr.name = area;
  2194. arr.position = position;
  2195. arr.content = gridData;
  2196. this.anbaoPopup(arr);
  2197. this.superiorGrid(gridData[0].seniorGrid, id == 15 ? 1 : id == 16 ? 2 : "");
  2198. } else {
  2199. }
  2200. this.rightArray.tableData = gridData;
  2201. } else {
  2202. this.dataNo2 = "暂无数据";
  2203. }
  2204. //用于地图居委会区块查询
  2205. if (query && id == 16) {
  2206. var queryData = [];
  2207. let qw = []
  2208. for (let i = 0; i < gridData.length; i++) {
  2209. if (gridData[i].mapGridName) {
  2210. queryData.push(gridData[i]);
  2211. }else{
  2212. qw.push(gridData[i])
  2213. }
  2214. }
  2215. console.log(queryData)
  2216. this.anbao(1, 2, queryData);
  2217. }
  2218. });
  2219. },
  2220. /**
  2221. * 上级网格
  2222. * @param {*网格上级id} id
  2223. * @param {*等级} type 1镇级 2片区
  2224. */
  2225. superiorGrid(id, type) {
  2226. this.$axios
  2227. .get(
  2228. this.$api.fireSite.gridMemberScatter +
  2229. "?" +
  2230. this.$qs.stringify({
  2231. seniorGrid: id,
  2232. })
  2233. )
  2234. .then((res) => {
  2235. this.diversionArea = [];
  2236. if (res.data.length > 0) {
  2237. let data = res.data[0];
  2238. if (type == 1) {
  2239. //镇级
  2240. this.diversionArea[0] = {
  2241. name: `${data.gridArea}面积`,
  2242. value: data.gridArea == "华漕镇" ? 61.46 : data.gridArea == "新虹街道" ? "19.26" : data.gridArea == "七宝镇" ? "7" : data.gridArea == "虹桥镇" ? "17" : "",
  2243. unit: "km²",
  2244. color: "#7DD807",
  2245. };
  2246. this.diversionArea[1] = {
  2247. name: "分管领导",
  2248. value: 0,
  2249. unit: "人",
  2250. color: "#01C3B4",
  2251. };
  2252. this.diversionArea[2] = {
  2253. name: "城运中心主任",
  2254. value: 0,
  2255. unit: "人",
  2256. color: "#FD843A",
  2257. };
  2258. this.diversionArea[3] = {
  2259. name: "安监所所长",
  2260. value: 0,
  2261. unit: "人",
  2262. color: "#7DD807",
  2263. };
  2264. this.diversionArea[4] = {
  2265. name: "支队外勤参谋",
  2266. value: 0,
  2267. unit: "人",
  2268. color: "#058DFE",
  2269. };
  2270. this.diversionArea[5] = {
  2271. name: "中网格",
  2272. value: data.gridArea == "华漕镇" ? 5 : data.gridArea == "新虹街道" ? "4" : data.gridArea == "七宝镇" ? "3" : data.gridArea == "虹桥镇" ? "2" : "",
  2273. unit: "个",
  2274. color: "#058DFE",
  2275. };
  2276. this.diversionArea[6] = {
  2277. name: "小网格",
  2278. value: data.gridArea == "华漕镇" ? 36 : data.gridArea == "新虹街道" ? "22" : data.gridArea == "七宝镇" ? "34" : data.gridArea == "虹桥镇" ? "11" : "",
  2279. unit: "个",
  2280. color: "#058DFE",
  2281. };
  2282. for (let i = 0; i < data.gridMemderViceList.length; i++) {
  2283. if (data.gridMemderViceList[i].personnelType == 3) {
  2284. //分管领导
  2285. this.diversionArea[1].value++;
  2286. }
  2287. if (data.gridMemderViceList[i].personnelType == 4) {
  2288. //城运中心主任
  2289. this.diversionArea[2].value++;
  2290. }
  2291. if (data.gridMemderViceList[i].personnelType == 5) {
  2292. //安监所所长
  2293. this.diversionArea[3].value++;
  2294. }
  2295. if (data.gridMemderViceList[i].personnelType == 6) {
  2296. //支队外勤参谋
  2297. this.diversionArea[4].value++;
  2298. }
  2299. }
  2300. }
  2301. if (type == 2) {
  2302. //片区
  2303. this.diversionArea[0] = {
  2304. name: "",
  2305. value: data.gridArea,
  2306. unit: "",
  2307. color: "#7DD807",
  2308. };
  2309. this.diversionArea[1] = {
  2310. name: "安监所人员",
  2311. value: 0,
  2312. unit: "人",
  2313. color: "#01C3B4",
  2314. };
  2315. this.diversionArea[2] = {
  2316. name: "城运中心人员",
  2317. value: 0,
  2318. unit: "人",
  2319. color: "#FD843A",
  2320. };
  2321. this.diversionArea[3] = {
  2322. name: "消防助理员",
  2323. value: 0,
  2324. unit: "人",
  2325. color: "#7DD807",
  2326. };
  2327. this.diversionArea[4] = {
  2328. name: "小网格",
  2329. value:
  2330. data.gridArea == "闵S1-1(纪王西网格)"
  2331. ? "4"
  2332. : data.gridArea == "闵S1-2(纪王东网格)"
  2333. ? "6"
  2334. : data.gridArea == "闵S1-3(诸翟北网格)"
  2335. ? "12"
  2336. : data.gridArea == "闵S1-4(诸翟南网格)"
  2337. ? "8"
  2338. : data.gridArea == "闵S1-5(老华漕网格)"
  2339. ? "6"
  2340. : data.gridArea == "闵S2-1(爱博网格)"
  2341. ? "4"
  2342. : data.gridArea == "闵S2-2(华美网格)"
  2343. ? "6"
  2344. : data.gridArea == "闵S2-3(枢纽网格)"
  2345. ? "6"
  2346. : data.gridArea == "闵S2-4(航华网格)"
  2347. ? "6"
  2348. : data.gridArea == "闵S3-1(七宝北片网格)"
  2349. ? "10"
  2350. : data.gridArea == "闵S3-2(七宝吴宝路网格)"
  2351. ? "9"
  2352. : data.gridArea == "闵S3-3(七宝航华网格)"
  2353. ? "15"
  2354. : data.gridArea == "闵S4-1(紫藤红松网格)"
  2355. ? "6"
  2356. : data.gridArea == "闵S4-2(虹梅网格)"
  2357. ? "5"
  2358. : "0",
  2359. unit: "个",
  2360. color: "#7DD807",
  2361. };
  2362. for (let i = 0; i < data.gridMemderViceList.length; i++) {
  2363. if (data.gridMemderViceList[i].personnelType == 7) {
  2364. //安监所人员
  2365. this.diversionArea[1].value++;
  2366. }
  2367. if (data.gridMemderViceList[i].personnelType == 8) {
  2368. //城运中心人员
  2369. this.diversionArea[2].value++;
  2370. }
  2371. if (data.gridMemderViceList[i].personnelType == 9) {
  2372. //消防助理员
  2373. this.diversionArea[3].value++;
  2374. }
  2375. }
  2376. }
  2377. }
  2378. // diversionArea:[
  2379. // {name:"疏导区总面积",value:61.46,unit:"km²",color:"#7DD807"},
  2380. // {name:"华漕镇",value:28.2,unit:"km²",color:"#01C3B4"},
  2381. // {name:"新虹街道",value:19.26,unit:"km²",color:"#01C3B4"},
  2382. // {name:"七宝镇",value:7,unit:"㎡",color:"#01C3B4"},
  2383. // {name:"虹桥镇",value:7,unit:"km²",color:"#01C3B4"},
  2384. // {name:"大网格",value:4,unit:"个",color:"#FC0609 "},
  2385. // {name:"中网格",value:14,unit:"个",color:"#FD843A"},
  2386. // {name:"小网格",value:103,unit:"个",color:"#7DD807"},
  2387. // {name:"分管领导",value:20,unit:"人",color:"#058DFE"},
  2388. // {name:"增援干部",value:11,unit:"人",color:"#058DD1"},
  2389. // ],//疏导区基本情况
  2390. });
  2391. },
  2392. },
  2393. watch: {
  2394. "stores.$state.gridData": function (newValue, oldValue) {
  2395. if (this.gridStatus == 15) {
  2396. this.grid(15, newValue.name, newValue.position);
  2397. }
  2398. if (this.gridStatus == 16) {
  2399. this.grid(16, newValue.name, newValue.position);
  2400. }
  2401. },
  2402. "stores.$state.jkspData": function (newValue, oldValue) {
  2403. this.jkspStatus = true
  2404. this.Message.name = newValue.children[0][1]
  2405. this.Message.videoId = newValue.id
  2406. this.Message.videoUrl = newValue.url
  2407. // "http://videocdn.didano.com/school765class0channelId2761namedingdangm/playlist.m3u8"
  2408. this.play()
  2409. },
  2410. },
  2411. // watch: {
  2412. // "stores.$state.jkspData": function (newValue, oldValue) {
  2413. // console.log(123,newValue,this.stores.$state.jkspData)
  2414. // this.jkspStatus = true
  2415. // console.log(this.jkspStatus)
  2416. // this.Message.name = newValue.children[0][1]
  2417. // this.Message.videoId = newValue.id
  2418. // this.Message.videoUrl = "http://videocdn.didano.com/school765class0channelId2761namedingdangm/playlist.m3u8"
  2419. // // this.Message.videoUrl = newValue.url
  2420. // this.play()
  2421. // },
  2422. // },
  2423. };
  2424. </script>
  2425. <style lang="scss" scoped>
  2426. @import "@/assets/scss/color.scss";
  2427. .contentBox {
  2428. .leftBox {
  2429. .leftTop {
  2430. height: 43%;
  2431. max-height: 43%;
  2432. justify-content: center;
  2433. align-items: center;
  2434. box-sizing: border-box;
  2435. .leftTopContent {
  2436. color: #ffffff;
  2437. height: calc(100% - 0.4375rem);
  2438. display: flex;
  2439. > .el-row {
  2440. width: 100%;
  2441. > .el-col {
  2442. display: flex;
  2443. > div {
  2444. margin: auto;
  2445. > .title {
  2446. width: 1.075rem;
  2447. height: 0.225rem;
  2448. font-size: 0.175rem;
  2449. padding-left: 0.1625rem;
  2450. margin: 0.0625rem 0 0.0625rem 0;
  2451. position: relative;
  2452. background-image: url(~@a/img/securityPlan/fhxcqk.png);
  2453. background-size: 100% 100%;
  2454. > div {
  2455. position: absolute;
  2456. bottom: 0.0625rem;
  2457. width: 150%;
  2458. }
  2459. }
  2460. > .content {
  2461. > span:nth-child(1) {
  2462. font-size: 0.3rem;
  2463. padding: 0 0.5625rem 0 0.1625rem;
  2464. color: #73fbfd;
  2465. }
  2466. > span:nth-child(2) {
  2467. font-size: 0.175rem;
  2468. margin-right: 0.125rem;
  2469. }
  2470. > span:nth-child(3) {
  2471. font-size: 0.175rem;
  2472. }
  2473. }
  2474. }
  2475. }
  2476. }
  2477. }
  2478. .leftTopContent2 {
  2479. color: #fff;
  2480. font-size: 0.175rem;
  2481. .sdqBasicInfo{
  2482. .basicItem{
  2483. width:19%; margin: 4px 0; box-sizing: border-box;
  2484. .nameBox{
  2485. background-image: url(~@a/img/securityPlan/sdTextBg.png);
  2486. background-size: contain;
  2487. width: 100%;
  2488. display: inline-block
  2489. }
  2490. }
  2491. .basicItem:not(:last-child){
  2492. margin-right:.07rem
  2493. }
  2494. }
  2495. .sdqBasicInfo.sdline2{
  2496. .basicItem{
  2497. margin:0 .4rem;
  2498. }
  2499. }
  2500. .sdline3 {
  2501. margin-top:.25rem;
  2502. .basicItem{
  2503. width:14.28%; margin: 0px 0; box-sizing: border-box;
  2504. position:relative;
  2505. }
  2506. // .basicItem::after {
  2507. // position: absolute; /*绝对定位*/
  2508. // top: 50%; /*Y轴方向偏移自身高度的50%*/
  2509. // transform: translatey(-40%); /*Y轴方向偏移微调*/
  2510. // right: 0; /*紧靠容器左边缘*/
  2511. // content: ''; /*伪元素需要有内容才能显示*/
  2512. // width: 1px; /*伪元素宽度*/
  2513. // height: 40px; /*伪元素高度*/
  2514. // background-color: rgba(168, 164, 164,.4); /*伪元素颜色*/
  2515. // }
  2516. }
  2517. .sdline3 .basicItem:last-child{
  2518. width:auto
  2519. }
  2520. .el-row {
  2521. > div {
  2522. width: 20%;
  2523. margin-top: 40px;
  2524. p:nth-child(2) {
  2525. // text-align: center;
  2526. strong {
  2527. font-size: 0.2rem;
  2528. }
  2529. }
  2530. }
  2531. }
  2532. }
  2533. }
  2534. .leftCenter {
  2535. height: 32%;
  2536. max-height: 32%;
  2537. margin-top: 0.125rem;
  2538. width: 100%;
  2539. justify-content: center;
  2540. align-items: center;
  2541. // box-sizing: border-box;
  2542. color: #ffffff;
  2543. .leftCenterContent {
  2544. width: 100%;
  2545. height: calc(100% - 0.4375rem);
  2546. display: flex;
  2547. .content1,
  2548. .content2,
  2549. .content3 {
  2550. width: 33.33%;
  2551. overflow: hidden;
  2552. margin: auto 0;
  2553. > div:nth-child(1) {
  2554. display: flex;
  2555. > img {
  2556. width: 1.17rem; //大屏
  2557. height: 1.08rem; //大屏
  2558. margin: auto;
  2559. }
  2560. }
  2561. > div:nth-child(2) {
  2562. font-size: 0.2rem;
  2563. text-align: center;
  2564. & > span {
  2565. b {
  2566. margin-right: 0.0625rem;
  2567. font-size: 0.3rem;
  2568. line-height: 0.5rem;
  2569. }
  2570. }
  2571. p {
  2572. margin-top: 0.1rem;
  2573. color: #fff;
  2574. }
  2575. }
  2576. }
  2577. }
  2578. }
  2579. .rightCenter {
  2580. color: #ffffff;
  2581. height: calc(35% - 0.125rem);
  2582. max-height: calc(35% - 0.125rem);
  2583. margin-top: 0.125rem;
  2584. .rightTopContent {
  2585. width: 100%;
  2586. padding: 0.25rem 0 10px 0;
  2587. height: calc(100% - 0.8125rem);
  2588. .content {
  2589. height: 100%;
  2590. overflow: scroll;
  2591. position: relative;
  2592. & > .el-row {
  2593. overflow: hidden;
  2594. width: 100%;
  2595. height: auto;
  2596. & > .title {
  2597. width: 100%;
  2598. height: 0.4375rem;
  2599. line-height: 0.4375rem;
  2600. font-size: 0.175rem;
  2601. padding: 0 0.125rem;
  2602. background: rgba(115, 251, 253, 0.3) !important;
  2603. margin-bottom: 0.025rem;
  2604. }
  2605. & > .data {
  2606. width: 100%;
  2607. font-size: 0.175rem;
  2608. padding: 0 0.125rem;
  2609. background: rgba(115, 251, 253, 0.1) !important;
  2610. margin-bottom: 0.025rem;
  2611. white-space: initial;
  2612. .el-col {
  2613. line-height: 0.35rem;
  2614. span {
  2615. color: #73fbfd;
  2616. }
  2617. }
  2618. }
  2619. }
  2620. &::-webkit-scrollbar {
  2621. display: none;
  2622. }
  2623. }
  2624. }
  2625. }
  2626. }
  2627. .rightBox {
  2628. color: #ffffff;
  2629. .rightTop {
  2630. height: 30%;
  2631. max-height: 30%;
  2632. .rightTopContent {
  2633. width: 100%;
  2634. height: calc(100% - 0.4375rem);
  2635. display: flex;
  2636. > .el-row {
  2637. > .el-col {
  2638. display: flex;
  2639. margin: auto 0;
  2640. > div {
  2641. display: flex;
  2642. .left {
  2643. width: 1.375rem;
  2644. margin-right: 0.25rem;
  2645. div {
  2646. text-align: center;
  2647. font-size: 0.175rem;
  2648. overflow: hidden !important;
  2649. white-space: nowrap !important;
  2650. text-overflow: ellipsis !important;
  2651. }
  2652. img {
  2653. width: 0.675rem;
  2654. height: 0.675rem;
  2655. display: flex;
  2656. margin: auto auto 0.0625rem auto;
  2657. }
  2658. }
  2659. .right {
  2660. overflow: hidden !important;
  2661. white-space: nowrap !important;
  2662. text-overflow: ellipsis !important;
  2663. .el-col:nth-child(1) {
  2664. display: flex;
  2665. margin: auto 0 0 0;
  2666. font-size: 0.175rem;
  2667. }
  2668. .el-col:nth-child(2) {
  2669. display: flex;
  2670. margin: auto 0 0 0;
  2671. font-size: 0.3rem;
  2672. font-weight: bold;
  2673. }
  2674. }
  2675. }
  2676. }
  2677. }
  2678. }
  2679. }
  2680. .rightTop3 {
  2681. height: 30%;
  2682. max-height: 30%;
  2683. position:relative;
  2684. .return{
  2685. position: absolute;
  2686. top:0px;
  2687. right:0px;
  2688. .returnText {
  2689. width: 0.5rem;
  2690. text-align: center;
  2691. height: 0.3rem;
  2692. line-height: 0.3rem;
  2693. box-shadow: inset 0 0 0.05rem 0.05rem #1b4f90;
  2694. background: rgba(19, 42, 90, 0.2) !important;
  2695. color: #fff;
  2696. float: right;
  2697. margin-top: 0;
  2698. }
  2699. }
  2700. .rightTopContent {
  2701. width: 100%;
  2702. height: calc(100% - 0.4375rem);
  2703. display: flex;
  2704. > .el-row {
  2705. > .el-col {
  2706. display: flex;
  2707. margin: auto 0;
  2708. > div {
  2709. display: flex;
  2710. .left {
  2711. width: 1.375rem;
  2712. margin-right: 0.25rem;
  2713. div {
  2714. text-align: center;
  2715. font-size: 0.175rem;
  2716. overflow: hidden !important;
  2717. white-space: nowrap !important;
  2718. text-overflow: ellipsis !important;
  2719. }
  2720. img {
  2721. width: 0.675rem;
  2722. height: 0.675rem;
  2723. display: flex;
  2724. margin: auto auto 0.0625rem auto;
  2725. }
  2726. }
  2727. .right {
  2728. overflow: hidden !important;
  2729. white-space: nowrap !important;
  2730. text-overflow: ellipsis !important;
  2731. .el-col:nth-child(1) {
  2732. font-size: 0.3rem;
  2733. margin-top:14px;
  2734. vertical-align: bottom;
  2735. }
  2736. // .el-col:nth-child(2) {
  2737. // display: flex;
  2738. // margin: auto 0 0 0;
  2739. // font-size: 0.3rem;
  2740. // font-weight: bold;
  2741. // }
  2742. }
  2743. }
  2744. }
  2745. }
  2746. }
  2747. }
  2748. .leftTopContent {
  2749. color: #ffffff;
  2750. height: calc(100% - 0.4375rem);
  2751. display: flex;
  2752. > .el-row {
  2753. width: 100%;
  2754. > .el-col {
  2755. display: flex;
  2756. > div {
  2757. margin: auto;
  2758. > .title {
  2759. width: 1.075rem;
  2760. height: 0.225rem;
  2761. font-size: 0.175rem;
  2762. padding-left: 0.1625rem;
  2763. margin: 0.0625rem 0 0.0625rem 0;
  2764. position: relative;
  2765. background-image: url(~@a/img/securityPlan/fhxcqk.png);
  2766. background-size: 100% 100%;
  2767. > div {
  2768. position: absolute;
  2769. bottom: 0.0625rem;
  2770. width: 150%;
  2771. }
  2772. }
  2773. > .content {
  2774. > span:nth-child(1) {
  2775. font-size: 0.3rem;
  2776. padding: 0 0.5625rem 0 0.1625rem;
  2777. color: #73fbfd;
  2778. }
  2779. > span:nth-child(2) {
  2780. font-size: 0.175rem;
  2781. margin-right: 0.125rem;
  2782. }
  2783. > span:nth-child(3) {
  2784. font-size: 0.175rem;
  2785. }
  2786. }
  2787. }
  2788. }
  2789. }
  2790. }
  2791. .leftBot {
  2792. height: calc(35% - 0.125rem);
  2793. max-height: calc(35% - 0.125rem);
  2794. margin-top: 0.125rem;
  2795. width: 100%;
  2796. .leftBotContent {
  2797. padding: 0.25rem 0 0 0;
  2798. height: calc(100% - 0.6875rem);
  2799. }
  2800. }
  2801. .rightBot {
  2802. height: calc(39% - 0.125rem);
  2803. max-height: calc(35% - 0.125rem);
  2804. margin-top: 0.125rem;
  2805. .rightBotContent {
  2806. padding: 0.25rem 0 0 0;
  2807. height: 100%;
  2808. }
  2809. }
  2810. .rightTop1{
  2811. height:70.5%;
  2812. .girdCheckItem{
  2813. p{
  2814. font-size:0.225rem;
  2815. margin:.1875rem 0 .125rem;
  2816. color:rgb(234, 183, 147);
  2817. font-weight:700;
  2818. span{
  2819. font-size: 0.175rem;
  2820. color:#fff;
  2821. }
  2822. }
  2823. .row_g{
  2824. margin-top:-10px;
  2825. width:100%;
  2826. div{
  2827. width:14% !important;
  2828. display: inline-block;
  2829. font-size:.155rem;
  2830. margin:.125rem 0;
  2831. text-align: left;
  2832. vertical-align: top;
  2833. }
  2834. }
  2835. .row_g2{
  2836. margin-top:-10px;
  2837. width:100%;
  2838. div{
  2839. width:20% !important;
  2840. display: inline-block;
  2841. font-size:.155rem;
  2842. margin:.125rem 0;
  2843. text-align: left;
  2844. vertical-align: top;
  2845. text-align: center;
  2846. }
  2847. }
  2848. .row_g3{
  2849. margin-top:-10px;
  2850. width:100%;
  2851. div{
  2852. width:16% !important;
  2853. display: inline-block;
  2854. font-size:.155rem;
  2855. margin:.125rem 0;
  2856. text-align: left;
  2857. vertical-align: top;
  2858. text-align: center;
  2859. }
  2860. }
  2861. }
  2862. }
  2863. }
  2864. }
  2865. .leftBotContent2 {
  2866. height: 23%;
  2867. margin-top: -35%;
  2868. }
  2869. .rightTop2 {
  2870. > .el-col {
  2871. > div {
  2872. > div:nth-child(1) {
  2873. margin: 0.3rem 0;
  2874. }
  2875. > div:nth-child(3) {
  2876. width: 50%;
  2877. margin: 0.2rem auto;
  2878. padding: 0.075rem;
  2879. border-radius: 0.25rem;
  2880. box-shadow: inset 0 0 0.05rem 0.05rem rgba(27, 79, 144, 1);
  2881. background: rgba(#132a5a, 0.2) !important;
  2882. span {
  2883. margin-left: 0.075rem;
  2884. }
  2885. }
  2886. }
  2887. }
  2888. }
  2889. .monitor-list {
  2890. overflow: hidden;
  2891. margin-top:0.25rem;
  2892. > .list {
  2893. border: 1px solid #3a7e8e;
  2894. position: relative;
  2895. width:48%;
  2896. height:21vh;
  2897. box-sizing: border-box;
  2898. .videoSelect {
  2899. position: absolute;
  2900. width: 100%;
  2901. }
  2902. img{
  2903. width:100%;
  2904. height:192px;
  2905. overflow: hidden;
  2906. }
  2907. }
  2908. .list:nth-child(2){
  2909. margin-left:4%;
  2910. }
  2911. }
  2912. iframe {
  2913. border: none;
  2914. width:100%;
  2915. }
  2916. .tableTooltipwt {
  2917. position: fixed;
  2918. top:120px;left:39%;
  2919. max-height:500px;
  2920. overflow-y: scroll;
  2921. background:none;
  2922. width:400px;
  2923. bottom:auto;
  2924. padding:10px 10px 5px 10px !important;
  2925. border-radius: 0.05rem;
  2926. border:1px solid rgba(115, 251, 253, 1);
  2927. box-shadow: inset 0 0 1px 0.0125rem rgba(115, 251, 253, 1);
  2928. background:rgba(0, 0, 0, 0.6);
  2929. z-index: 10000;
  2930. .close {
  2931. width: 20px;
  2932. height: 20px;
  2933. position: absolute;
  2934. right: 10px;
  2935. top: 10px;
  2936. z-index: 10000;
  2937. display: block;
  2938. }
  2939. .tableContent {
  2940. p {
  2941. @include color_primary($color-primary1);
  2942. font-size: 0.2rem;
  2943. }
  2944. .el-col {
  2945. margin-top: 0.05rem;
  2946. line-height: 0.3rem;
  2947. text-overflow: ellipsis !important;
  2948. white-space: normal !important;
  2949. font-size: 0.18rem;
  2950. }
  2951. .mk {
  2952. margin-top: 0px;
  2953. .color1 {
  2954. @include color_primary($color-primary3);
  2955. }
  2956. .color2 {
  2957. @include color_primary($color-primary1);
  2958. }
  2959. }
  2960. .video{
  2961. width:100%;
  2962. margin:10px 0;
  2963. }
  2964. }
  2965. }
  2966. </style>
  2967. <style>
  2968. .el-tooltip__popper {
  2969. width: 200px;
  2970. }
  2971. .table-tooltip {
  2972. max-width: 200px;
  2973. }
  2974. .table-style .cell {
  2975. width: 200px;
  2976. overflow: hidden;
  2977. text-overflow: ellipsis;
  2978. white-space: nowrap;
  2979. }
  2980. .el-popper {
  2981. max-width: 30%;
  2982. padding-bottom: 5px !important;
  2983. display: -webkit-box;
  2984. overflow: hidden;
  2985. text-overflow: ellipsis;
  2986. -webkit-line-clamp: 15;
  2987. -webkit-box-orient: vertical;
  2988. }
  2989. </style>