map-data1.js 180 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442
  1. import axios from "axios";
  2. import data from "@c/mixins/anbao";
  3. export default {
  4. data() {
  5. return {
  6. stores: this.$useStore(),
  7. map: null,
  8. oldPopup: null,
  9. oldPopupId: null,
  10. };
  11. },
  12. mounted() {
  13. window.vue = this;
  14. window.jMap = null;
  15. window.jmapQuery = null;
  16. },
  17. methods: {
  18. streetTownMap(name) {
  19. return name
  20. },
  21. /**
  22. *地图初始化
  23. *
  24. */
  25. async initMap(type) {
  26. window.vue = this;
  27. window.jMap = null;
  28. window.jmapQuery = null;
  29. window.jMap = new JMap();
  30. var map_params = {
  31. camera: {
  32. x: 121.4175597,
  33. y: 31.119248,
  34. radius: 18000.0,
  35. offset: { heading: -4, pitch: -70, range: 0 },
  36. },
  37. map_complete_callback: () => {
  38. window.jmapQuery = new JMapQuery(window.jMap);
  39. // ToDo...
  40. },
  41. map_left_click_callback: (obj, type, movement, event) => {
  42. this.stores.$state.tankuangXY = { x: movement.position.x, y: movement.position.y };
  43. },
  44. map_right_click_callback: (obj) => {},
  45. };
  46. let res = await this.$axios.get(this.$api.dt);
  47. // 加载地图
  48. window.jMap.createMap("mapF", res.data, window.location.origin, map_params, {});
  49. // 地图背景样式
  50. window.jMap.switchBaseLayer("blue");
  51. /**
  52. * 获取街镇信息
  53. */
  54. var options = {
  55. click: addLayerCallBack,
  56. isZoom: false,
  57. style: {
  58. outline: true,
  59. outlineColor: "rgb(255,0,0,0.8)",
  60. // material: "rgb(154,255,154,0)",
  61. perPositionHeight: true,
  62. height: 200,
  63. width: "10px",
  64. size: "10px",
  65. label: {
  66. show: true,
  67. text: "name",
  68. font: "16px Helvetica",
  69. fillColor: "rgb(0,255,0,0.9)",
  70. pixelOffset: [0, -40],
  71. backgroundColor: "rgb(0,0,0,0)",
  72. showBackground: false,
  73. },
  74. },
  75. // where:"name = '莘庄镇'"
  76. };
  77. window.jMap.addLayer("mh_dyn_district", [1], options);
  78. // 街镇标题绘制
  79. // var qp = new JMapQueryParam({
  80. // queryMapService: "mh_dyn_district",
  81. // queryMapLayers: [1],
  82. // outFields: ["code", "name", "center_x", "center_y"],
  83. // // queryWhere: "name like '%莘庄镇%' ",
  84. // callBack: (res) => {
  85. // res.features.forEach(async(val) => {
  86. // await window.jMap.FlagInfo.show({
  87. // id: val.attributes.code,
  88. // position: { x: Number(val.attributes.center_x), y: Number(val.attributes.center_y), z: 0 },
  89. // element: `<div class='ysc-dynamic-layer ys-css3-box' onclick="vue.clickFlag(${val.attributes.code})">
  90. // <div class='biaozhu' style="font-size:18px !important">${val.attributes.name} ${val.attributes.code}</div>
  91. // </div>`,
  92. // }, { isZoom: false });
  93. // });
  94. // },
  95. // });
  96. // new JMapQuery(window.jMap).execQuery(qp)
  97. },
  98. /**
  99. * 疏导区网格
  100. */
  101. anbaoSDUWG() {
  102. // arr["疏导区","核心区","新虹","虹桥","七宝","疏导区","疏导区","疏导区","疏导区","疏导区","疏导区"]
  103. let arr = [
  104. [
  105. { x: 121.36194587932806, y: 31.16013705465239, z: 0 },
  106. { x: 121.34727553811794, y: 31.15828077299882, z: 0 },
  107. { x: 121.32700411033827, y: 31.148247489434965, z: 0 },
  108. { x: 121.31514606604391, y: 31.139440444833916, z: 0 },
  109. { x: 121.30048786370499, y: 31.134903156770502, z: 0 },
  110. { x: 121.29284839062778, y: 31.12773298212305, z: 0 },
  111. { x: 121.28484794201171, y: 31.12306873887283, z: 0 },
  112. { x: 121.2434981967536, y: 31.119911283997425, z: 0 },
  113. { x: 121.22295978253271, y: 31.11453182095247, z: 0 },
  114. { x: 121.22093534994545, y: 31.128184924119704, z: 0 },
  115. { x: 121.22476714240756, y: 31.137743873822444, z: 0 },
  116. { x: 121.22284789103668, y: 31.151848705517672, z: 0 },
  117. { x: 121.2192245740552, y: 31.185051824029983, z: 0 },
  118. { x: 121.21634530262463, y: 31.19305254070648, z: 0 },
  119. { x: 121.21666410880577, y: 31.199965150511076, z: 0 },
  120. { x: 121.20802887999594, y: 31.252419358825662, z: 0 },
  121. { x: 121.2510308379889, y: 31.25199056924825, z: 0 },
  122. { x: 121.26975280768023, y: 31.256161713215423, z: 0 },
  123. { x: 121.29758483246128, y: 31.25239812402721, z: 0 },
  124. { x: 121.34774474510056, y: 31.253635862387053, z: 0 },
  125. { x: 121.34278143296902, y: 31.239737181776324, z: 0 },
  126. { x: 121.34412376809345, y: 31.224709084528335, z: 0 },
  127. { x: 121.35105449522602, y: 31.20248989001769, z: 0 },
  128. { x: 121.35374042236845, y: 31.182090361752536, z: 0 },
  129. { x: 121.36194587932806, y: 31.16013705465239, z: 0 },
  130. ],
  131. [{
  132. "x": 121.29577137421792,
  133. "y": 31.186824696355163,
  134. "z": 0
  135. },
  136. {
  137. "x": 121.29418329761764,
  138. "y": 31.18872030124066,
  139. "z": 0
  140. },
  141. {
  142. "x": 121.29280475525546,
  143. "y": 31.190723474492756,
  144. "z": 0
  145. },
  146. {
  147. "x": 121.29005251449192,
  148. "y": 31.194744686426272,
  149. "z": 0
  150. },
  151. {
  152. "x": 121.29837921625169,
  153. "y": 31.198135776426472,
  154. "z": 0
  155. },
  156. {
  157. "x": 121.29990431690115,
  158. "y": 31.195743378525012,
  159. "z": 0
  160. },
  161. {
  162. "x": 121.3017996230984,
  163. "y": 31.19308143590054,
  164. "z": 0
  165. },
  166. {
  167. "x": 121.30362101641953,
  168. "y": 31.190462548748194,
  169. "z": 0
  170. },
  171. {
  172. "x": 121.30470085312731,
  173. "y": 31.188890418122178,
  174. "z": 0
  175. },
  176. {
  177. "x": 121.30488549898331,
  178. "y": 31.18841532634147,
  179. "z": 0
  180. },
  181. {
  182. "x": 121.30489353090678,
  183. "y": 31.187841598865855,
  184. "z": 0
  185. },
  186. {
  187. "x": 121.30487462397232,
  188. "y": 31.187226940195103,
  189. "z": 0
  190. },
  191. {
  192. "x": 121.30467806077046,
  193. "y": 31.187033387433935,
  194. "z": 0
  195. },
  196. {
  197. "x": 121.30391173448861,
  198. "y": 31.18654998998803,
  199. "z": 0
  200. },
  201. {
  202. "x": 121.3031354194004,
  203. "y": 31.186067600959273,
  204. "z": 0
  205. },
  206. {
  207. "x": 121.30162566409005,
  208. "y": 31.18515069662575,
  209. "z": 0
  210. },
  211. {
  212. "x": 121.29858007896227,
  213. "y": 31.183287832294678,
  214. "z": 0
  215. },
  216. {
  217. "x": 121.29577137421792,
  218. "y": 31.186824696355163,
  219. "z": 0
  220. },
  221. ],
  222. ]
  223. //高德转84
  224. // let sz = [
  225. // [121.30025, 31.184825],
  226. // [121.298659, 31.186719],
  227. // [121.297278, 31.188721],
  228. // [121.294521, 31.19274],
  229. // [121.302864, 31.196146],
  230. // [121.304392, 31.193755],
  231. // [121.306291, 31.191095],
  232. // [121.308116, 31.188478],
  233. // [121.309198, 31.186907],
  234. // [121.309383, 31.186432],
  235. // [121.309391, 31.185858],
  236. // [121.309372, 31.185243],
  237. // [121.309175, 31.185049],
  238. // [121.308407, 31.184564],
  239. // [121.307629, 31.18408],
  240. // [121.306116, 31.18316],
  241. // [121.303064, 31.181291]
  242. // ]
  243. // let result = {}
  244. // for (let i = 0; i < sz.length; i++) {
  245. // result = CoordUtil.gcj02towgs84(sz[i][0], sz[i][1]);
  246. // arr[1].push({ x: result[0], y: result[1], z: 0 })
  247. // }
  248. // console.log(111, arr)
  249. for (let i = 0; i < arr.length; i++) {
  250. let target = {
  251. id: i,
  252. attributes: {
  253. name: i,
  254. },
  255. position: arr[i],
  256. label: {
  257. text: i,
  258. font: "16px Helvetica",
  259. color: i == 0 ? "red" : "orange",
  260. pixelOffset: [0, -50],
  261. backgroundColor: "red"
  262. }
  263. }
  264. let options = {
  265. isZoom: false,
  266. style: {
  267. color: i == 0 ? "red" : i == 1 ? "orange" : "",
  268. transparency: 1,
  269. outline: true,
  270. outlineColor: 'transparent',
  271. perPositionHeight: true
  272. },
  273. // click: regionLocateCallBack111
  274. };
  275. setTimeout(() => {
  276. window.jMap.Locate.trackLocate(target, options);
  277. }, 1000)
  278. }
  279. },
  280. /**
  281. * 疏导区网格
  282. */
  283. anbaoSDUWG2() {
  284. // arr["疏导区","核心区","新虹","虹桥","七宝","疏导区","疏导区","疏导区","疏导区","疏导区","疏导区"]
  285. let arr = [
  286. [
  287. { x: 121.36194587932806, y: 31.16013705465239, z: 0 },
  288. { x: 121.34727553811794, y: 31.15828077299882, z: 0 },
  289. { x: 121.32700411033827, y: 31.148247489434965, z: 0 },
  290. { x: 121.31514606604391, y: 31.139440444833916, z: 0 },
  291. { x: 121.30048786370499, y: 31.134903156770502, z: 0 },
  292. { x: 121.29284839062778, y: 31.12773298212305, z: 0 },
  293. { x: 121.28484794201171, y: 31.12306873887283, z: 0 },
  294. { x: 121.2434981967536, y: 31.119911283997425, z: 0 },
  295. { x: 121.22295978253271, y: 31.11453182095247, z: 0 },
  296. { x: 121.22093534994545, y: 31.128184924119704, z: 0 },
  297. { x: 121.22476714240756, y: 31.137743873822444, z: 0 },
  298. { x: 121.22284789103668, y: 31.151848705517672, z: 0 },
  299. { x: 121.2192245740552, y: 31.185051824029983, z: 0 },
  300. { x: 121.21634530262463, y: 31.19305254070648, z: 0 },
  301. { x: 121.21666410880577, y: 31.199965150511076, z: 0 },
  302. { x: 121.20802887999594, y: 31.252419358825662, z: 0 },
  303. { x: 121.2510308379889, y: 31.25199056924825, z: 0 },
  304. { x: 121.26975280768023, y: 31.256161713215423, z: 0 },
  305. { x: 121.29758483246128, y: 31.25239812402721, z: 0 },
  306. { x: 121.34774474510056, y: 31.253635862387053, z: 0 },
  307. { x: 121.34278143296902, y: 31.239737181776324, z: 0 },
  308. { x: 121.34412376809345, y: 31.224709084528335, z: 0 },
  309. { x: 121.35105449522602, y: 31.20248989001769, z: 0 },
  310. { x: 121.35374042236845, y: 31.182090361752536, z: 0 },
  311. { x: 121.36194587932806, y: 31.16013705465239, z: 0 },
  312. ],
  313. [{
  314. "x": 121.29577137421792,
  315. "y": 31.186824696355163,
  316. "z": 0
  317. },
  318. {
  319. "x": 121.29418329761764,
  320. "y": 31.18872030124066,
  321. "z": 0
  322. },
  323. {
  324. "x": 121.29280475525546,
  325. "y": 31.190723474492756,
  326. "z": 0
  327. },
  328. {
  329. "x": 121.29005251449192,
  330. "y": 31.194744686426272,
  331. "z": 0
  332. },
  333. {
  334. "x": 121.29837921625169,
  335. "y": 31.198135776426472,
  336. "z": 0
  337. },
  338. {
  339. "x": 121.29990431690115,
  340. "y": 31.195743378525012,
  341. "z": 0
  342. },
  343. {
  344. "x": 121.3017996230984,
  345. "y": 31.19308143590054,
  346. "z": 0
  347. },
  348. {
  349. "x": 121.30362101641953,
  350. "y": 31.190462548748194,
  351. "z": 0
  352. },
  353. {
  354. "x": 121.30470085312731,
  355. "y": 31.188890418122178,
  356. "z": 0
  357. },
  358. {
  359. "x": 121.30488549898331,
  360. "y": 31.18841532634147,
  361. "z": 0
  362. },
  363. {
  364. "x": 121.30489353090678,
  365. "y": 31.187841598865855,
  366. "z": 0
  367. },
  368. {
  369. "x": 121.30487462397232,
  370. "y": 31.187226940195103,
  371. "z": 0
  372. },
  373. {
  374. "x": 121.30467806077046,
  375. "y": 31.187033387433935,
  376. "z": 0
  377. },
  378. {
  379. "x": 121.30391173448861,
  380. "y": 31.18654998998803,
  381. "z": 0
  382. },
  383. {
  384. "x": 121.3031354194004,
  385. "y": 31.186067600959273,
  386. "z": 0
  387. },
  388. {
  389. "x": 121.30162566409005,
  390. "y": 31.18515069662575,
  391. "z": 0
  392. },
  393. {
  394. "x": 121.29858007896227,
  395. "y": 31.183287832294678,
  396. "z": 0
  397. },
  398. {
  399. "x": 121.29577137421792,
  400. "y": 31.186824696355163,
  401. "z": 0
  402. },
  403. {
  404. "x": 121.29577137421792,
  405. "y": 31.186824696355163,
  406. "z": 0
  407. },
  408. ],
  409. [{
  410. "x": 121.30273636473034,
  411. "y": 31.2198977980581,
  412. "z": 0
  413. },
  414. {
  415. "x": 121.29858295212301,
  416. "y": 31.21979797448395,
  417. "z": 0
  418. },
  419. {
  420. "x": 121.29956982474825,
  421. "y": 31.209507227504808,
  422. "z": 0
  423. },
  424. {
  425. "x": 121.29920600370836,
  426. "y": 31.204402317941,
  427. "z": 0
  428. },
  429. {
  430. "x": 121.30115745085595,
  431. "y": 31.199027612153586,
  432. "z": 0
  433. },
  434. {
  435. "x": 121.29693509877501,
  436. "y": 31.198268111287387,
  437. "z": 0
  438. },
  439. {
  440. "x": 121.2998305936312,
  441. "y": 31.194274230550622,
  442. "z": 0
  443. },
  444. {
  445. "x": 121.30403211938238,
  446. "y": 31.19074867933738,
  447. "z": 0
  448. },
  449. {
  450. "x": 121.31253766412574,
  451. "y": 31.177473826775493,
  452. "z": 0
  453. },
  454. {
  455. "x": 121.315349691171,
  456. "y": 31.173434590837402,
  457. "z": 0
  458. },
  459. {
  460. "x": 121.31925691122792,
  461. "y": 31.17245465391409,
  462. "z": 0
  463. },
  464. {
  465. "x": 121.32390048093693,
  466. "y": 31.170568716589433,
  467. "z": 0
  468. },
  469. {
  470. "x": 121.32616056996633,
  471. "y": 31.167764822098988,
  472. "z": 0
  473. },
  474. {
  475. "x": 121.33127182948746,
  476. "y": 31.169693074849317,
  477. "z": 0
  478. },
  479. {
  480. "x": 121.3354384069199,
  481. "y": 31.17126742825148,
  482. "z": 0
  483. },
  484. {
  485. "x": 121.33714887246975,
  486. "y": 31.168692577494745,
  487. "z": 0
  488. },
  489. {
  490. "x": 121.3403344015155,
  491. "y": 31.163862248714743,
  492. "z": 0
  493. },
  494. {
  495. "x": 121.34528486521597,
  496. "y": 31.16583845246894,
  497. "z": 0
  498. },
  499. {
  500. "x": 121.35120094247694,
  501. "y": 31.16826127346991,
  502. "z": 0
  503. },
  504. {
  505. "x": 121.35749722559409,
  506. "y": 31.17110007381761,
  507. "z": 0
  508. },
  509. {
  510. "x": 121.35512965416443,
  511. "y": 31.179768207777574,
  512. "z": 0
  513. },
  514. {
  515. "x": 121.35410500715878,
  516. "y": 31.185618837915666,
  517. "z": 0
  518. },
  519. {
  520. "x": 121.34837311330138,
  521. "y": 31.183574136266312,
  522. "z": 0
  523. },
  524. {
  525. "x": 121.3469467923959,
  526. "y": 31.18549258283246,
  527. "z": 0
  528. },
  529. {
  530. "x": 121.33742914963742,
  531. "y": 31.181555501135435,
  532. "z": 0
  533. },
  534. {
  535. "x": 121.33725368441635,
  536. "y": 31.179798713266624,
  537. "z": 0
  538. },
  539. {
  540. "x": 121.33674866036101,
  541. "y": 31.181289892310865,
  542. "z": 0
  543. },
  544. {
  545. "x": 121.332501016653,
  546. "y": 31.181933513222692,
  547. "z": 0
  548. },
  549. {
  550. "x": 121.32672712369686,
  551. "y": 31.192809064312954,
  552. "z": 0
  553. },
  554. {
  555. "x": 121.33390476125636,
  556. "y": 31.194946367619707,
  557. "z": 0
  558. },
  559. {
  560. "x": 121.33439003374988,
  561. "y": 31.214038166797163,
  562. "z": 0
  563. },
  564. {
  565. "x": 121.33549657393999,
  566. "y": 31.21415804204388,
  567. "z": 0
  568. },
  569. {
  570. "x": 121.3354385349542,
  571. "y": 31.21609122683711,
  572. "z": 0
  573. },
  574. {
  575. "x": 121.33450141290005,
  576. "y": 31.21836189705601,
  577. "z": 0
  578. },
  579. {
  580. "x": 121.33784500531124,
  581. "y": 31.219012381734945,
  582. "z": 0
  583. },
  584. {
  585. "x": 121.3384451733604,
  586. "y": 31.225114402730796,
  587. "z": 0
  588. },
  589. {
  590. "x": 121.33590564782995,
  591. "y": 31.226002674540123,
  592. "z": 0
  593. },
  594. {
  595. "x": 121.32937128911844,
  596. "y": 31.225656158547864,
  597. "z": 0
  598. },
  599. {
  600. "x": 121.32315754421998,
  601. "y": 31.224375662366445,
  602. "z": 0
  603. },
  604. {
  605. "x": 121.31760625340529,
  606. "y": 31.22378157061199,
  607. "z": 0
  608. },
  609. {
  610. "x": 121.31268346643918,
  611. "y": 31.222581443941348,
  612. "z": 0
  613. },
  614. {
  615. "x": 121.30781741345972,
  616. "y": 31.220468440291086,
  617. "z": 0
  618. },
  619. {
  620. "x": 121.30502250919344,
  621. "y": 31.219897754208514,
  622. "z": 0
  623. }
  624. ],
  625. [{
  626. "x": 121.35379785226752,
  627. "y": 31.159300786342637,
  628. "z": 0
  629. },
  630. {
  631. "x": 121.35868617827254,
  632. "y": 31.159720227812123,
  633. "z": 0
  634. },
  635. {
  636. "x": 121.36215949997082,
  637. "y": 31.15969540722189,
  638. "z": 0
  639. },
  640. {
  641. "x": 121.3614223065673,
  642. "y": 31.163905217450328,
  643. "z": 0
  644. },
  645. {
  646. "x": 121.35761905377441,
  647. "y": 31.17065412368764,
  648. "z": 0
  649. },
  650. {
  651. "x": 121.3515233621259,
  652. "y": 31.16787295256606,
  653. "z": 0
  654. },
  655. {
  656. "x": 121.35190868564712,
  657. "y": 31.167252652709518,
  658. "z": 0
  659. },
  660. {
  661. "x": 121.35248467261219,
  662. "y": 31.16643115648518,
  663. "z": 0
  664. },
  665. {
  666. "x": 121.35260055257123,
  667. "y": 31.165311550786598,
  668. "z": 0
  669. },
  670. {
  671. "x": 121.35264451648362,
  672. "y": 31.164778756595926,
  673. "z": 0
  674. },
  675. {
  676. "x": 121.35257069903504,
  677. "y": 31.164266139223166,
  678. "z": 0
  679. },
  680. {
  681. "x": 121.3527395933964,
  682. "y": 31.161840129615992,
  683. "z": 0
  684. },
  685. {
  686. "x": 121.35261594211822,
  687. "y": 31.160483031631124,
  688. "z": 0
  689. },
  690. {
  691. "x": 121.35303028598638,
  692. "y": 31.15913507784978,
  693. "z": 0
  694. }
  695. ],
  696. [{
  697. "x": 121.31381416174536,
  698. "y": 31.173294561163896,
  699. "z": 0
  700. },
  701. {
  702. "x": 121.31893528098777,
  703. "y": 31.16503208910045,
  704. "z": 0
  705. },
  706. {
  707. "x": 121.31698881664984,
  708. "y": 31.16371048577948,
  709. "z": 0
  710. },
  711. {
  712. "x": 121.31739504671911,
  713. "y": 31.16194462885501,
  714. "z": 0
  715. },
  716. {
  717. "x": 121.31615092409753,
  718. "y": 31.16126834601621,
  719. "z": 0
  720. },
  721. {
  722. "x": 121.31462430632025,
  723. "y": 31.16201984561443,
  724. "z": 0
  725. },
  726. {
  727. "x": 121.31316274059677,
  728. "y": 31.160264510387556,
  729. "z": 0
  730. },
  731. {
  732. "x": 121.31416659944752,
  733. "y": 31.15895330555726,
  734. "z": 0
  735. },
  736. {
  737. "x": 121.31628077339099,
  738. "y": 31.15959996815232,
  739. "z": 0
  740. },
  741. {
  742. "x": 121.31707708415921,
  743. "y": 31.1582611528663,
  744. "z": 0
  745. },
  746. {
  747. "x": 121.32182512562508,
  748. "y": 31.160003164501763,
  749. "z": 0
  750. },
  751. {
  752. "x": 121.3229785983771,
  753. "y": 31.15878058813032,
  754. "z": 0
  755. },
  756. {
  757. "x": 121.32507392067637,
  758. "y": 31.15759418545812,
  759. "z": 0
  760. },
  761. {
  762. "x": 121.32703374847145,
  763. "y": 31.154227191490985,
  764. "z": 0
  765. },
  766. {
  767. "x": 121.32685538778749,
  768. "y": 31.15150996204829,
  769. "z": 0
  770. },
  771. {
  772. "x": 121.3293947025788,
  773. "y": 31.150651560754508,
  774. "z": 0
  775. },
  776. {
  777. "x": 121.3289787715014,
  778. "y": 31.149165138732467,
  779. "z": 0
  780. },
  781. {
  782. "x": 121.33233212135764,
  783. "y": 31.15030816527726,
  784. "z": 0
  785. },
  786. {
  787. "x": 121.3358401685583,
  788. "y": 31.152175601747718,
  789. "z": 0
  790. },
  791. {
  792. "x": 121.3392884840699,
  793. "y": 31.154160207841365,
  794. "z": 0
  795. },
  796. {
  797. "x": 121.34272004027888,
  798. "y": 31.15587413621922,
  799. "z": 0
  800. },
  801. {
  802. "x": 121.34550413532479,
  803. "y": 31.15753438865423,
  804. "z": 0
  805. },
  806. {
  807. "x": 121.34689129783092,
  808. "y": 31.15783684854342,
  809. "z": 0
  810. },
  811. {
  812. "x": 121.349876341794,
  813. "y": 31.158456520738092,
  814. "z": 0
  815. },
  816. {
  817. "x": 121.35269990799088,
  818. "y": 31.159064637430497,
  819. "z": 0
  820. },
  821. {
  822. "x": 121.35239139069755,
  823. "y": 31.16016255568717,
  824. "z": 0
  825. },
  826. {
  827. "x": 121.35251902666961,
  828. "y": 31.161601603806915,
  829. "z": 0
  830. },
  831. {
  832. "x": 121.35243288542387,
  833. "y": 31.165095928962824,
  834. "z": 0
  835. },
  836. {
  837. "x": 121.35237092238553,
  838. "y": 31.166011554330634,
  839. "z": 0
  840. },
  841. {
  842. "x": 121.3519037161686,
  843. "y": 31.167008786470195,
  844. "z": 0
  845. },
  846. {
  847. "x": 121.3478587161376,
  848. "y": 31.165302327392354,
  849. "z": 0
  850. },
  851. {
  852. "x": 121.34094326123495,
  853. "y": 31.162030100817073,
  854. "z": 0
  855. },
  856. {
  857. "x": 121.33697029395886,
  858. "y": 31.16833309250413,
  859. "z": 0
  860. },
  861. {
  862. "x": 121.33526482912758,
  863. "y": 31.170815983506582,
  864. "z": 0
  865. },
  866. {
  867. "x": 121.3300506385267,
  868. "y": 31.169020740661125,
  869. "z": 0
  870. },
  871. {
  872. "x": 121.32544322389143,
  873. "y": 31.16753331721317,
  874. "z": 0
  875. },
  876. {
  877. "x": 121.32384068400313,
  878. "y": 31.16979422919267,
  879. "z": 0
  880. },
  881. {
  882. "x": 121.31831508397927,
  883. "y": 31.172109630126858,
  884. "z": 0
  885. }
  886. ],
  887. [{
  888. "x": 121.23756418907722,
  889. "y": 31.25204958351479,
  890. "z": 0
  891. },
  892. {
  893. "x": 121.2359335663678,
  894. "y": 31.242651276616975,
  895. "z": 0
  896. },
  897. {
  898. "x": 121.24327950842967,
  899. "y": 31.243111618844317,
  900. "z": 0
  901. },
  902. {
  903. "x": 121.24439277635044,
  904. "y": 31.23929340943388,
  905. "z": 0
  906. },
  907. {
  908. "x": 121.24520576391103,
  909. "y": 31.23855875639746,
  910. "z": 0
  911. },
  912. {
  913. "x": 121.24666341933748,
  914. "y": 31.240193969445425,
  915. "z": 0
  916. },
  917. {
  918. "x": 121.248574120126,
  919. "y": 31.238883389654468,
  920. "z": 0
  921. },
  922. {
  923. "x": 121.24957316552148,
  924. "y": 31.235069988504467,
  925. "z": 0
  926. },
  927. {
  928. "x": 121.2530350806222,
  929. "y": 31.232562340356846,
  930. "z": 0
  931. },
  932. {
  933. "x": 121.25364709748692,
  934. "y": 31.229021792865762,
  935. "z": 0
  936. },
  937. {
  938. "x": 121.2520588543979,
  939. "y": 31.228368558627455,
  940. "z": 0
  941. },
  942. {
  943. "x": 121.25390540252931,
  944. "y": 31.223955077752723,
  945. "z": 0
  946. },
  947. {
  948. "x": 121.2530789424986,
  949. "y": 31.222159182988158,
  950. "z": 0
  951. },
  952. {
  953. "x": 121.25679839926686,
  954. "y": 31.217054229105234,
  955. "z": 0
  956. },
  957. {
  958. "x": 121.25500962092444,
  959. "y": 31.214723065123064,
  960. "z": 0
  961. },
  962. {
  963. "x": 121.25944017551635,
  964. "y": 31.210717975244496,
  965. "z": 0
  966. },
  967. {
  968. "x": 121.26056153588941,
  969. "y": 31.20840046946333,
  970. "z": 0
  971. },
  972. {
  973. "x": 121.25850711197234,
  974. "y": 31.207403059344745,
  975. "z": 0
  976. },
  977. {
  978. "x": 121.2603719359508,
  979. "y": 31.205392035994464,
  980. "z": 0
  981. },
  982. {
  983. "x": 121.26227042625798,
  984. "y": 31.205273946466036,
  985. "z": 0
  986. },
  987. {
  988. "x": 121.27289706598678,
  989. "y": 31.19557693648754,
  990. "z": 0
  991. },
  992. {
  993. "x": 121.28154768028995,
  994. "y": 31.19749512451051,
  995. "z": 0
  996. },
  997. {
  998. "x": 121.28651620321617,
  999. "y": 31.201339578297116,
  1000. "z": 0
  1001. },
  1002. {
  1003. "x": 121.2880073420067,
  1004. "y": 31.204493911516277,
  1005. "z": 0
  1006. },
  1007. {
  1008. "x": 121.29022431931928,
  1009. "y": 31.20509335336672,
  1010. "z": 0
  1011. },
  1012. {
  1013. "x": 121.29390965201385,
  1014. "y": 31.20244095781758,
  1015. "z": 0
  1016. },
  1017. {
  1018. "x": 121.29693509877501,
  1019. "y": 31.198268111287387,
  1020. "z": 0
  1021. },
  1022. {
  1023. "x": 121.30002185627976,
  1024. "y": 31.1983099132369,
  1025. "z": 0
  1026. },
  1027. {
  1028. "x": 121.29855690752807,
  1029. "y": 31.209243065234233,
  1030. "z": 0
  1031. },
  1032. {
  1033. "x": 121.29796316119037,
  1034. "y": 31.220282782349148,
  1035. "z": 0
  1036. },
  1037. {
  1038. "x": 121.30273636473034,
  1039. "y": 31.2198977980581,
  1040. "z": 0
  1041. },
  1042. {
  1043. "x": 121.30650431740165,
  1044. "y": 31.219898092718612,
  1045. "z": 0
  1046. },
  1047. {
  1048. "x": 121.31466693662834,
  1049. "y": 31.223442307803612,
  1050. "z": 0
  1051. },
  1052. {
  1053. "x": 121.32017338272325,
  1054. "y": 31.22407752612719,
  1055. "z": 0
  1056. },
  1057. {
  1058. "x": 121.32170385876948,
  1059. "y": 31.22443642374149,
  1060. "z": 0
  1061. },
  1062. {
  1063. "x": 121.32315754421998,
  1064. "y": 31.224375662366445,
  1065. "z": 0
  1066. },
  1067. {
  1068. "x": 121.32575953681125,
  1069. "y": 31.22518129048498,
  1070. "z": 0
  1071. },
  1072. {
  1073. "x": 121.33105147728227,
  1074. "y": 31.225876859171215,
  1075. "z": 0
  1076. },
  1077. {
  1078. "x": 121.33363568072438,
  1079. "y": 31.225963936912688,
  1080. "z": 0
  1081. },
  1082. {
  1083. "x": 121.33634667702704,
  1084. "y": 31.226009852146642,
  1085. "z": 0
  1086. },
  1087. {
  1088. "x": 121.33730442954683,
  1089. "y": 31.22773427459837,
  1090. "z": 0
  1091. },
  1092. {
  1093. "x": 121.3404264021786,
  1094. "y": 31.23094507911442,
  1095. "z": 0
  1096. },
  1097. {
  1098. "x": 121.33896208217749,
  1099. "y": 31.23634524864817,
  1100. "z": 0
  1101. },
  1102. {
  1103. "x": 121.33577568582193,
  1104. "y": 31.240433256180633,
  1105. "z": 0
  1106. },
  1107. {
  1108. "x": 121.33312567151678,
  1109. "y": 31.23923076590377,
  1110. "z": 0
  1111. },
  1112. {
  1113. "x": 121.32994797524155,
  1114. "y": 31.237349644608877,
  1115. "z": 0
  1116. },
  1117. {
  1118. "x": 121.32976168220047,
  1119. "y": 31.234039519625362,
  1120. "z": 0
  1121. },
  1122. {
  1123. "x": 121.32024159770803,
  1124. "y": 31.231386985365518,
  1125. "z": 0
  1126. },
  1127. {
  1128. "x": 121.31122215716051,
  1129. "y": 31.229214066244523,
  1130. "z": 0
  1131. },
  1132. {
  1133. "x": 121.29264943919313,
  1134. "y": 31.232998413933927,
  1135. "z": 0
  1136. },
  1137. {
  1138. "x": 121.28796282539214,
  1139. "y": 31.23491756870379,
  1140. "z": 0
  1141. },
  1142. {
  1143. "x": 121.28363864609534,
  1144. "y": 31.24090783276285,
  1145. "z": 0
  1146. },
  1147. {
  1148. "x": 121.28257094917196,
  1149. "y": 31.2458180167782,
  1150. "z": 0
  1151. },
  1152. {
  1153. "x": 121.27689311211255,
  1154. "y": 31.250055030813865,
  1155. "z": 0
  1156. },
  1157. {
  1158. "x": 121.27985448004428,
  1159. "y": 31.253831868309994,
  1160. "z": 0
  1161. },
  1162. {
  1163. "x": 121.2709103980883,
  1164. "y": 31.255509815537213,
  1165. "z": 0
  1166. },
  1167. {
  1168. "x": 121.26665218405257,
  1169. "y": 31.254393999505126,
  1170. "z": 0
  1171. },
  1172. {
  1173. "x": 121.26532839900652,
  1174. "y": 31.255543512788588,
  1175. "z": 0
  1176. },
  1177. {
  1178. "x": 121.25351513097648,
  1179. "y": 31.25294996585441,
  1180. "z": 0
  1181. },
  1182. {
  1183. "x": 121.24481469452851,
  1184. "y": 31.251644860116766,
  1185. "z": 0
  1186. }
  1187. ]
  1188. ]
  1189. //高德转84
  1190. // let sz = [
  1191. // [121.30025, 31.184825],
  1192. // [121.298659, 31.186719],
  1193. // [121.297278, 31.188721],
  1194. // [121.294521, 31.19274],
  1195. // [121.302864, 31.196146],
  1196. // [121.304392, 31.193755],
  1197. // [121.306291, 31.191095],
  1198. // [121.308116, 31.188478],
  1199. // [121.309198, 31.186907],
  1200. // [121.309383, 31.186432],
  1201. // [121.309391, 31.185858],
  1202. // [121.309372, 31.185243],
  1203. // [121.309175, 31.185049],
  1204. // [121.308407, 31.184564],
  1205. // [121.307629, 31.18408],
  1206. // [121.306116, 31.18316],
  1207. // [121.303064, 31.181291]
  1208. // ]
  1209. // let result = {}
  1210. // for (let i = 0; i < sz.length; i++) {
  1211. // result = CoordUtil.gcj02towgs84(sz[i][0], sz[i][1]);
  1212. // arr[1].push({ x: result[0], y: result[1], z: 0 })
  1213. // }
  1214. // console.log(111, arr)
  1215. for (let i = 0; i < arr.length; i++) {
  1216. let target = {
  1217. id: i,
  1218. attributes: {
  1219. name: i,
  1220. },
  1221. position: arr[i],
  1222. label: {
  1223. text: i,
  1224. font: "16px Helvetica",
  1225. color: i == 0 ? "red" : "orange",
  1226. pixelOffset: [0, -50],
  1227. backgroundColor: "red"
  1228. }
  1229. }
  1230. let options = {
  1231. isZoom: false,
  1232. style: {
  1233. color: i == 0 ? "red" : i == 1 ? "orange" : "",
  1234. transparency: 1,
  1235. outline: true,
  1236. outlineColor: 'transparent',
  1237. perPositionHeight: true
  1238. },
  1239. // click: regionLocateCallBack111
  1240. };
  1241. setTimeout(() => {
  1242. window.jMap.Locate.trackLocate(target, options);
  1243. }, 1000)
  1244. }
  1245. },
  1246. /**
  1247. * 安保区域
  1248. * @param {*} status 是否有图层
  1249. * @param {*} id 1大网格 2小网格
  1250. * @param {*} query 搜索内容
  1251. */
  1252. anbao(status, id, query) {
  1253. var that = this
  1254. var color = [
  1255. "#2c6395",
  1256. "#1b6cb6",
  1257. "#40a4ff",
  1258. "#8ac7ff",
  1259. "#b1cce5",
  1260. "#a03523",
  1261. "#d7le00",
  1262. "#ffa192",
  1263. "#dba197",
  1264. "#009081",
  1265. "#00ae9c",
  1266. "#50fed",
  1267. "#4d6700",
  1268. "#729900",
  1269. // "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100", "#009b8a", "#b72727", "#71a382", "#1c6093", "#a4294f", "#3f8a3f", "#68afc1",
  1270. // "#5081c5", "#c3a102", "#d17100", , "#a4294f", "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100",
  1271. // "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100", "#009b8a", "#b72727", "#71a382", "#1c6093", "#a4294f", "#3f8a3f", "#68afc1",
  1272. // "#5081c5", "#c3a102", "#d17100", , "#a4294f", "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100",
  1273. // "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100", "#009b8a", "#b72727", "#71a382", "#1c6093", "#a4294f", "#3f8a3f", "#68afc1",
  1274. // "#5081c5", "#c3a102", "#d17100", , "#a4294f", "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100",
  1275. // "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100", "#009b8a", "#b72727", "#71a382", "#1c6093", "#a4294f", "#3f8a3f", "#68afc1",
  1276. // "#5081c5", "#c3a102", "#d17100", , "#a4294f", "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100",
  1277. // "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100", "#009b8a", "#b72727", "#71a382", "#1c6093", "#a4294f", "#3f8a3f", "#68afc1",
  1278. // "#5081c5", "#c3a102", "#d17100", , "#a4294f", "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100",
  1279. // "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100", "#009b8a", "#b72727", "#71a382", "#1c6093", "#a4294f", "#3f8a3f", "#68afc1",
  1280. // "#5081c5", "#c3a102", "#d17100", , "#a4294f", "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100",
  1281. // "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100", "#009b8a", "#b72727", "#71a382", "#1c6093", "#a4294f", "#3f8a3f", "#68afc1",
  1282. // "#5081c5", "#c3a102", "#d17100", , "#a4294f", "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100",
  1283. // "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100", "#009b8a", "#b72727", "#71a382", "#1c6093", "#a4294f", "#3f8a3f", "#68afc1",
  1284. // "#5081c5", "#c3a102", "#d17100", , "#a4294f", "#3f8a3f", "#68afc1", "#5081c5", "#c3a102", "#d17100",
  1285. ];
  1286. var JmapQuery = new JMapQuery(window.jMap); // JMap为初始化地图时,实例化的JMap对象
  1287. if (status) {
  1288. window.jMap.Locate.clearLocate(); //清楚分布
  1289. // window.jMap.removeLayer(); // 空值清除所有已添加图层
  1290. }
  1291. //中网格
  1292. if (id == 1) {
  1293. setTimeout(() => {
  1294. // 例: 8.1 2 查询图层列表
  1295. var qp2 = new JMapQueryParam({
  1296. queryMapService: "mh_dyn_cywg",
  1297. queryMapLayers: [0],
  1298. // queryGeometry: result[0], // 默认进行属性查询,放开该段注释将在选定的几何空间内进行空间查询
  1299. // queryWhere: "name like '%莘庄镇%' ", // 可自定义查询条件,也可不传该参数
  1300. outFields: ["*"], // 返回字段信息
  1301. callBack: testQueryCallBack2
  1302. });
  1303. JmapQuery.execQuery(qp2);
  1304. // 图层查询完毕的回调函数
  1305. function testQueryCallBack2(obj) {
  1306. var bigNewArr = [];
  1307. var name = [];
  1308. //画线--------------
  1309. var bigArr = obj.features.filter(function(el) {
  1310. // return el.attributes.name.indexOf('新虹街道') > -1
  1311. return el.attributes.name.indexOf('新虹街道') > -1 ||
  1312. el.attributes.name.indexOf('华漕') > -1 ||
  1313. el.attributes.name.indexOf('七宝中片') > -1 ||
  1314. el.attributes.name.indexOf('航华网格') > -1 ||
  1315. el.attributes.name.indexOf('七宝北片网格') > -1 ||
  1316. el.attributes.name.indexOf('紫藤、红松') > -1 ||
  1317. el.attributes.name.indexOf('虹梅区域') > -1
  1318. })
  1319. let arr = []
  1320. for (let i = 0; i < bigArr.length; i++) {
  1321. arr.push([])
  1322. for (let ii = 0; ii < bigArr[i].geometry.rings[0].length; ii++) {
  1323. arr[i].push({
  1324. x: bigArr[i].geometry.rings[0][ii][0],
  1325. y: bigArr[i].geometry.rings[0][ii][1],
  1326. z: 0,
  1327. })
  1328. }
  1329. }
  1330. for (let i = 0; i < arr.length; i++) {
  1331. let target = {
  1332. id: 1000 + i,
  1333. attributes: {
  1334. name: i,
  1335. },
  1336. position: arr[i],
  1337. label: {
  1338. text: i,
  1339. font: "16px Helvetica",
  1340. color: "red",
  1341. pixelOffset: [0, -50],
  1342. backgroundColor: "red"
  1343. }
  1344. }
  1345. var options = {
  1346. isZoom: false,
  1347. style: {
  1348. color: 'rgb(79, 226, 97)',
  1349. transparency: 1,
  1350. outline: true,
  1351. outlineColor: 'transparent',
  1352. perPositionHeight: true
  1353. },
  1354. click: regionLocateCallBack111
  1355. };
  1356. setTimeout(() => {
  1357. window.jMap.Locate.trackLocate(target, options);
  1358. }, 100)
  1359. }
  1360. function regionLocateCallBack111(obj) {
  1361. // console.log(obj); // obj为返回值
  1362. }
  1363. //画线----------------------------------
  1364. //区域----------------------------------
  1365. var bigArr = obj.features.filter(function(el) {
  1366. return el.attributes.name.indexOf('新虹街道') > -1 ||
  1367. el.attributes.name.indexOf('华漕') > -1 ||
  1368. el.attributes.name.indexOf('七宝中片') > -1 ||
  1369. el.attributes.name.indexOf('航华网格') > -1 ||
  1370. el.attributes.name.indexOf('七宝北片网格') > -1 ||
  1371. el.attributes.name.indexOf('紫藤、红松') > -1 ||
  1372. el.attributes.name.indexOf('虹梅区域') > -1
  1373. })
  1374. // console.log(111, bigArr)
  1375. bigArr.forEach(function(item, index) {
  1376. var aaa = item.geometry.rings[0];
  1377. var newArr = aaa.map(function(value, index) {
  1378. var obj = {
  1379. x: value[0],
  1380. y: value[1],
  1381. z: 0.1
  1382. }
  1383. return obj
  1384. })
  1385. bigNewArr.push(newArr);
  1386. name.push(item.attributes.name)
  1387. })
  1388. bigNewArr.forEach(function(item, index) {
  1389. var idx = index;
  1390. setTimeout(() => {
  1391. // 2区域分布
  1392. var target = {
  1393. id: idx,
  1394. attributes: {
  1395. position: item[0],
  1396. name: name[index] == "华漕镇处置网格二(纪王西片区)" ? "闵S1-1(纪王西网格)" : name[index] == "华漕镇处置网格一(纪王东片区)" ? "闵S1-2(纪王东网格)" : name[index] == "华漕镇处置网格四(诸翟北片区)" ? "闵S1-3(诸翟北网格)" : name[index] == "华漕镇处置网格五(诸翟南片区)" ? "闵S1-4(诸翟南网格)" : name[index] == "华漕镇处置网格三(老华漕片区)" ? "闵S1-5(老华漕网格)" : name[index] == "新虹街道处置网格二(爱博)" ? "闵S2-1(爱博网格)" : name[index] == "新虹街道处置网格三(华美)" ? "闵S2-2(华美网格)" : name[index] == "新虹街道处置网格一(枢纽)" ? "闵S2-3(枢纽网格)" : name[index] == "新虹街道处置网格四(航华)" ? "闵S2-4(航华网格)" : name[index] == "七宝镇处置网格一(七宝北片网格)" ? "闵S3-1(七宝北片网格)" : name[index] == "七宝镇处置网格二(七宝中片网格)" ? "闵S3-2(七宝吴宝路网格)" : name[index] == "七宝镇处置网格五(航华网格)" ? "闵S3-3(七宝航华网格)" : name[index] == "虹桥镇处置网格四(紫藤、红松区域)" ? "闵S4-1(紫藤红松网格)" : name[index] == "虹桥镇处置网格二(虹梅区域)" ? "闵S4-2(虹梅网格)" : name[index]
  1397. },
  1398. position: item,
  1399. label: {
  1400. text: name[index] == "华漕镇处置网格二(纪王西片区)" ? "闵S1-1(纪王西网格)" : name[index] == "华漕镇处置网格一(纪王东片区)" ? "闵S1-2(纪王东网格)" : name[index] == "华漕镇处置网格四(诸翟北片区)" ? "闵S1-3(诸翟北网格)" : name[index] == "华漕镇处置网格五(诸翟南片区)" ? "闵S1-4(诸翟南网格)" : name[index] == "华漕镇处置网格三(老华漕片区)" ? "闵S1-5(老华漕网格)" : name[index] == "新虹街道处置网格二(爱博)" ? "闵S2-1(爱博网格)" : name[index] == "新虹街道处置网格三(华美)" ? "闵S2-2(华美网格)" : name[index] == "新虹街道处置网格一(枢纽)" ? "闵S2-3(枢纽网格)" : name[index] == "新虹街道处置网格四(航华)" ? "闵S2-4(航华网格)" : name[index] == "七宝镇处置网格一(七宝北片网格)" ? "闵S3-1(七宝北片网格)" : name[index] == "七宝镇处置网格二(七宝中片网格)" ? "闵S3-2(七宝吴宝路网格)" : name[index] == "七宝镇处置网格五(航华网格)" ? "闵S3-3(七宝航华网格)" : name[index] == "虹桥镇处置网格四(紫藤、红松区域)" ? "闵S4-1(紫藤红松网格)" : name[index] == "虹桥镇处置网格二(虹梅区域)" ? "闵S4-2(虹梅网格)" : name[index],
  1401. font: "14px Helvetica",
  1402. color: "#fff",
  1403. pixelOffset: [0, -40]
  1404. }
  1405. };
  1406. var options = {
  1407. isZoom: false,
  1408. camera: {
  1409. x: 121.4175597,
  1410. y: 31.119248,
  1411. radius: 18000.0,
  1412. offset: { heading: -4, pitch: -70, range: 0 },
  1413. },
  1414. click: regionLocateCallBack,
  1415. style: {
  1416. // color: name[index] == "华漕镇处置网格二(纪王西片区)" ? "#2c6395" : name[index] == "华漕镇处置网格一(纪王东片区)" ? "#1b6cb6" : name[index] == "华漕镇处置网格四(诸翟北片区)" ? "#40a4ff" : name[index] == "华漕镇处置网格五(诸翟南片区)" ? "#8ac7ff" : name[index] == "华漕镇处置网格三(老华漕片区)" ? "#b1cce5" : name[index] == "新虹街道处置网格二(爱博)" ? "#a03523" : name[index] == "新虹街道处置网格三(华美)" ? "#d71e00" : name[index] == "新虹街道处置网格一(枢纽)" ? "#ffa192" : name[index] == "新虹街道处置网格四(航华)" ? "#dba197" : name[index] == "七宝镇处置网格一(七宝北片网格)" ? "#009081" : name[index] == "七宝镇处置网格二(七宝中片网格)" ? "#00ae9c" : name[index] == "七宝镇处置网格五(航华网格)" ? "#50ffed" : name[index] == "虹桥镇处置网格四(紫藤、红松区域)" ? "#b2ec0a" : name[index] == "虹桥镇处置网格二(虹梅区域)" ? "#b2ec4a" : "#729900",
  1417. color: "transparent",
  1418. transparency: 0,
  1419. outline: true,
  1420. outlineColor: 'blue',
  1421. // "#4d6700",
  1422. // "#729900",
  1423. }
  1424. };
  1425. setTimeout(() => {
  1426. jMap.Locate.regionLocate(target, options);
  1427. }, 500)
  1428. // 分布点点击事件的回调函数
  1429. function regionLocateCallBack(obj) {
  1430. console.log(obj)
  1431. that.stores.gridDataChange(obj._attributes);
  1432. }
  1433. }, idx * 1)
  1434. })
  1435. }
  1436. }, 1000)
  1437. }
  1438. //小网格(居委会)
  1439. if (id == 2 && query) {
  1440. let dataddd = []
  1441. // console.log(query)
  1442. let queryName = ""
  1443. for (let i = 0; i < query.length; i++) {
  1444. // console.log(query[i].mapGridName)
  1445. queryName = queryName ? `${queryName},'${query[i].mapGridName}'` : `'${query[i].mapGridName}'`
  1446. }
  1447. // queryName = queryName + ",'涞港星苑筹备组','爱博四村居委','爱博五村居委','爱博二村居委','爱博一村居委','爱博三村居委','万科润园居委','华美路一居委','华美路二居委','沙茂居委','航华一村2居委','航华一村5居委','航华一村7居委','航华一村6居委'"
  1448. console.log(queryName)
  1449. setTimeout(() => {
  1450. var name2 = [];
  1451. var qp3 = new JMapQueryParam({
  1452. queryMapService: "mh_dyn_district",
  1453. queryMapLayers: [2],
  1454. // queryGeometry: result[0], // 默认进行属性查询,放开该段注释将在选定的几何空间内进行空间查询
  1455. // queryWhere: "name like '%纪东村村委会%' ", // 可自定义查询条件,也可不传该参数
  1456. // queryWhere: "grid_type in ('居委网格','村委网格') and subdistrict like '%华漕镇%' ", // 可自定义查询条件,也可不传该参数
  1457. // queryWhere: `name in ('沪星村村委会','九星村村委会','新龙村经济合作社','中春路第二居委会',
  1458. // ) and subdistrict in ('华漕镇','新虹街道','虹桥镇','七宝镇')`, // 可自定义查询条件,也可不传该参数
  1459. // queryWhere: `name in (${queryName}) and subdistrict in ('华漕镇','新虹街道','虹桥镇','七宝镇')`, // 可自定义查询条件,也可不传该参数
  1460. // queryWhere: `subdistrict in ('华漕镇','新虹街道','虹桥镇','七宝镇')`, // 可自定义查询条件,也可不传该参数
  1461. queryWhere: `grid_type in ('居委网格','村委网格') and subdistrict in ('华漕镇','新虹街道','虹桥镇','七宝镇')`, // 可自定义查询条件,也可不传该参数
  1462. outFields: ["*"], // 返回字段信息
  1463. callBack: testQueryCallBack3
  1464. });
  1465. JmapQuery.execQuery(qp3);
  1466. function testQueryCallBack3(obj) {
  1467. console.log(obj)
  1468. let a = []
  1469. for (let i = 0; i < obj.features.length; i++) {
  1470. a[i] = {
  1471. name: obj.features[i].attributes.name,
  1472. subdistrict: obj.features[i].attributes.subdistrict,
  1473. }
  1474. }
  1475. var big2Arr = []
  1476. obj.features.forEach(function(item, index) {
  1477. var b2 = item.geometry.rings;
  1478. b2.forEach(function(item2, index2) {
  1479. var newArr2 = b2[index2].map(function(value, index3) {
  1480. var obj = {
  1481. x: value[0],
  1482. y: value[1],
  1483. z: 0.1
  1484. }
  1485. return obj
  1486. })
  1487. big2Arr.push(newArr2);
  1488. name2.push(item.attributes.name)
  1489. })
  1490. })
  1491. //画线---------------------------------
  1492. let huaxian = []
  1493. for (let i = 0; i < big2Arr.length; i++) {
  1494. huaxian.push([])
  1495. for (let ii = 0; ii < big2Arr[i].length; ii++) {
  1496. huaxian[i].push(
  1497. big2Arr[i][ii]
  1498. )
  1499. }
  1500. }
  1501. for (let i = 0; i < huaxian.length; i++) {
  1502. let target = {
  1503. id: 10000 + i,
  1504. attributes: {
  1505. name: i,
  1506. },
  1507. position: huaxian[i],
  1508. label: {
  1509. text: i,
  1510. font: "16px Helvetica",
  1511. color: "rgba(255,255,255,0.1)",
  1512. pixelOffset: [0, -50],
  1513. backgroundColor: "red"
  1514. }
  1515. }
  1516. var options = {
  1517. isZoom: false,
  1518. style: {
  1519. color: 'rgb(1, 224, 255)',
  1520. transparency: 1,
  1521. outline: true,
  1522. outlineColor: 'transparent',
  1523. perPositionHeight: true
  1524. },
  1525. click: regionLocateCallBack111
  1526. };
  1527. setTimeout(() => {
  1528. window.jMap.Locate.trackLocate(target, options);
  1529. }, 1000)
  1530. }
  1531. function regionLocateCallBack111(obj) {
  1532. // console.log(obj); // obj为返回值
  1533. }
  1534. //画线---------------------------------
  1535. //画区域-----------------------------
  1536. big2Arr.forEach(function(item, index) {
  1537. var idx = index + 1;
  1538. setTimeout(() => {
  1539. // 2区域分布
  1540. var target = {
  1541. id: idx,
  1542. attributes: {
  1543. position: item[0],
  1544. name: name2[index]
  1545. },
  1546. position: item,
  1547. label: {
  1548. text: name2[index],
  1549. font: "12px Helvetica",
  1550. color: "transparent",
  1551. // color: "red",
  1552. pixelOffset: [0, -40]
  1553. }
  1554. };
  1555. var options = {
  1556. isZoom: false,
  1557. click: regionLocateCallBack2,
  1558. style: {
  1559. color: "#68afc1",
  1560. transparency: 0.6,
  1561. outline: true,
  1562. outlineColor: 'blue',
  1563. }
  1564. };
  1565. setTimeout(() => {
  1566. jMap.Locate.regionLocate(target, options);
  1567. }, 500)
  1568. // 分布点点击事件的回调函数
  1569. function regionLocateCallBack2(obj) {
  1570. that.stores.gridDataChange(obj._attributes);
  1571. }
  1572. }, idx * 1)
  1573. })
  1574. //画区域-----------------------------
  1575. }
  1576. }, 2000);
  1577. }
  1578. //大网格
  1579. if (id == 3) {
  1580. setTimeout(() => {
  1581. // 例: 8.1 2 查询图层列表
  1582. var qp2 = new JMapQueryParam({
  1583. queryMapService: "mh_dyn_cywg",
  1584. queryMapLayers: [0],
  1585. // queryGeometry: result[0], // 默认进行属性查询,放开该段注释将在选定的几何空间内进行空间查询
  1586. // queryWhere: "name like '%莘庄镇%' ", // 可自定义查询条件,也可不传该参数
  1587. outFields: ["*"], // 返回字段信息
  1588. callBack: testQueryCallBack2
  1589. });
  1590. JmapQuery.execQuery(qp2);
  1591. // 图层查询完毕的回调函数
  1592. function testQueryCallBack2(obj) {
  1593. var bigNewArr = [];
  1594. var name = [];
  1595. var bigArr = obj.features.filter(function(el) {
  1596. // return el.attributes.name.indexOf('新虹街道') > -1
  1597. return el.attributes.name.indexOf('新虹街道') > -1 ||
  1598. el.attributes.name.indexOf('华漕') > -1 ||
  1599. el.attributes.name.indexOf('七宝中片') > -1 ||
  1600. el.attributes.name.indexOf('航华网格') > -1 ||
  1601. el.attributes.name.indexOf('七宝北片网格') > -1 ||
  1602. el.attributes.name.indexOf('紫藤、红松') > -1 ||
  1603. el.attributes.name.indexOf('虹梅区域') > -1
  1604. })
  1605. //画区域
  1606. // bigArr.forEach(function(item, index) {
  1607. // var aaa = item.geometry.rings[0];
  1608. // var newArr = aaa.map(function(value, index) {
  1609. // var obj = {
  1610. // x: value[0],
  1611. // y: value[1],
  1612. // z: 0.1
  1613. // }
  1614. // return obj
  1615. // })
  1616. // bigNewArr.push(newArr);
  1617. // name.push(item.attributes.name)
  1618. // })
  1619. // bigNewArr.forEach(function(item, index) {
  1620. // var idx = index + 1;
  1621. // setTimeout(() => {
  1622. // // 2区域分布
  1623. // var target = {
  1624. // id: idx,
  1625. // attributes: {
  1626. // position: item[0],
  1627. // name: name[index] == "华漕镇处置网格二(纪王西片区)" ? "闵S1-1(纪王西网格)" : name[index] == "华漕镇处置网格一(纪王东片区)" ? "闵S1-2(纪王东网格)" : name[index] == "华漕镇处置网格四(诸翟北片区)" ? "闵S1-3(诸翟北网格)" : name[index] == "华漕镇处置网格五(诸翟南片区)" ? "闵S1-4(诸翟南网格)" : name[index] == "华漕镇处置网格三(老华漕片区)" ? "闵S1-5(老华漕网格)" : name[index] == "新虹街道处置网格二(爱博)" ? "闵S2-1(爱博网格)" : name[index] == "新虹街道处置网格三(华美)" ? "闵S2-2(华美网格)" : name[index] == "新虹街道处置网格一(枢纽)" ? "闵S2-3(枢纽网格)" : name[index] == "新虹街道处置网格四(航华)" ? "闵S2-4(航华网格)" : name[index] == "七宝镇处置网格一(七宝北片网格)" ? "闵S3-1(七宝北片网格)" : name[index] == "七宝镇处置网格二(七宝中片网格)" ? "闵S3-2(七宝吴宝路网格)" : name[index] == "七宝镇处置网格五(航华网格)" ? "闵S3-3(七宝航华网格)" : name[index] == "虹桥镇处置网格四(紫藤、红松区域)" ? "闵S4-1(紫藤红松网格)" : name[index] == "虹桥镇处置网格二(虹梅区域)" ? "闵S4-2(虹梅网格)" : name[index]
  1628. // },
  1629. // position: item,
  1630. // label: {
  1631. // // text: name[index] == "华漕镇处置网格二(纪王西片区)" ? "闵S1-1(纪王西网格)" : name[index] == "华漕镇处置网格一(纪王东片区)" ? "闵S1-2(纪王东网格)" : name[index] == "华漕镇处置网格四(诸翟北片区)" ? "闵S1-3(诸翟北网格)" : name[index] == "华漕镇处置网格五(诸翟南片区)" ? "闵S1-4(诸翟南网格)" : name[index] == "华漕镇处置网格三(老华漕片区)" ? "闵S1-5(老华漕网格)" : name[index] == "新虹街道处置网格二(爱博)" ? "闵S2-1(爱博网格)" : name[index] == "新虹街道处置网格三(华美)" ? "闵S2-2(华美网格)" : name[index] == "新虹街道处置网格一(枢纽)" ? "闵S2-3(枢纽网格)" : name[index] == "新虹街道处置网格四(航华)" ? "闵S2-4(航华网格)" : name[index] == "七宝镇处置网格一(七宝北片网格)" ? "闵S3-1(七宝北片网格)" : name[index] == "七宝镇处置网格二(七宝中片网格)" ? "闵S3-2(七宝吴宝路网格)" : name[index] == "七宝镇处置网格五(航华网格)" ? "闵S3-3(七宝航华网格)" : name[index] == "虹桥镇处置网格四(紫藤、红松区域)" ? "闵S4-1(紫藤红松网格)" : name[index] == "虹桥镇处置网格二(虹梅区域)" ? "闵S4-2(虹梅网格)" : name[index],
  1632. // font: "14px Helvetica",
  1633. // color: "#fff",
  1634. // pixelOffset: [0, -40]
  1635. // }
  1636. // };
  1637. // var options = {
  1638. // isZoom: false,
  1639. // camera: {
  1640. // x: 121.4175597,
  1641. // y: 31.119248,
  1642. // radius: 9000.0,
  1643. // offset: { heading: -4, pitch: -70, range: 0 },
  1644. // },
  1645. // click: regionLocateCallBack,
  1646. // style: {
  1647. // color: "#5b9bd5",
  1648. // transparency: 0.6,
  1649. // // name[index] == "华漕镇处置网格二(纪王西片区)" ? "#5b9bd5" :
  1650. // // name[index] == "华漕镇处置网格一(纪王东片区)" ? "#5b9bd5" :
  1651. // // name[index] == "华漕镇处置网格四(诸翟北片区)" ? "#5b9bd5" :
  1652. // // name[index] == "华漕镇处置网格五(诸翟南片区)" ? "#5b9bd5" :
  1653. // // name[index] == "华漕镇处置网格三(老华漕片区)" ? "#5b9bd5" :
  1654. // // name[index] == "新虹街道处置网格二(爱博)" ? "#17cfbc" :
  1655. // // name[index] == "新虹街道处置网格三(华美)" ? "#17cfbc" :
  1656. // // name[index] == "新虹街道处置网格一(枢纽)" ? "#17cfbc" :
  1657. // // name[index] == "新虹街道处置网格四(航华)" ? "#17cfbc" :
  1658. // // name[index] == "七宝镇处置网格一(七宝北片网格)" ? "#fca091" :
  1659. // // name[index] == "七宝镇处置网格二(七宝中片网格)" ? "#fca091" :
  1660. // // name[index] == "七宝镇处置网格五(航华网格)" ? "#fca091" :
  1661. // // name[index] == "虹桥镇处置网格四(紫藤、红松区域)" ? "rgb(37, 95, 37)" :
  1662. // // name[index] == "虹桥镇处置网格二(虹梅区域)" ? "rgb(37, 95, 37)" : "rgb(37, 95, 37)",
  1663. // outline: true,
  1664. // outlineColor: 'blue',
  1665. // // "#4d6700",
  1666. // // "#729900",
  1667. // }
  1668. // };
  1669. // setTimeout(() => {
  1670. // jMap.Locate.regionLocate(target, options);
  1671. // }, 500)
  1672. // // 分布点点击事件的回调函数
  1673. // function regionLocateCallBack(obj) {
  1674. // // that.stores.gridDataChange(obj._attributes);
  1675. // }
  1676. // }, idx * 1)
  1677. // })
  1678. }
  1679. }, 1000)
  1680. }
  1681. },
  1682. /**
  1683. * 安保气泡窗
  1684. * @param {*} data
  1685. */
  1686. anbaoPopup(data) {
  1687. var children = []
  1688. if (data.type == 15) {
  1689. children = [
  1690. ["街道:", data.content.streetTown, 12],
  1691. ["安监所人员:", data.content[0].type1, 12],
  1692. ["城运中心人员:", data.content[0].type2, 12],
  1693. ["消防助理员:", data.content[0].type3, 12],
  1694. ]
  1695. }
  1696. if (data.type == 16) {
  1697. children = [
  1698. ["街道:", data.content[0].streetTown, 12],
  1699. ["小网格人员:", data.content[0].type1, 12],
  1700. ["小网格长:", data.content[0].type2, 12],
  1701. ]
  1702. }
  1703. let arrayList = [{
  1704. title: [data.name, true],
  1705. children: []
  1706. }]
  1707. arrayList[0].children = children
  1708. data.gisX = data.position.x
  1709. data.gisY = data.position.y
  1710. this.popup(data, arrayList, true, null, 1)
  1711. },
  1712. /**
  1713. *添加动态图层
  1714. *
  1715. */
  1716. addLayer() {
  1717. var wheres = [];
  1718. wheres[1] = "subdistrict='七宝镇'"; // 1:图层序号 subdistrict='七宝镇' 筛选条件
  1719. var options = {
  1720. click: windowGxLayer,
  1721. wheres: wheres
  1722. };
  1723. setTimeout(() => {
  1724. jMap.addImageryLayer("mh_dyn_cywg", [1], options);
  1725. }, 3000);
  1726. },
  1727. // 点击事件回调函数
  1728. addLayerCallBack(obj) {
  1729. },
  1730. /**
  1731. *安保区域划分
  1732. *
  1733. */
  1734. anbaoMap() {
  1735. let target = {
  1736. id: '100001',
  1737. attributes: {
  1738. name: '大型安保范围',
  1739. },
  1740. position: data[0],
  1741. label: {
  1742. text: "大型安保范围",
  1743. font: "16px Helvetica",
  1744. color: "rgba(255,255,255,0.1)",
  1745. pixelOffset: [0, -50],
  1746. backgroundColor: "red"
  1747. }
  1748. }
  1749. var options = {
  1750. isZoom: true,
  1751. style: {
  1752. color: 'rgb(255,255,0,0.9)',
  1753. transparency: 1,
  1754. outline: true,
  1755. outlineColor: 'transparent',
  1756. perPositionHeight: true
  1757. },
  1758. // click: regionLocateCallBack
  1759. };
  1760. setTimeout(() => {
  1761. window.jMap.Locate.trackLocate(target, options);
  1762. }, 1000)
  1763. },
  1764. // 安保分布点点击事件的回调函数
  1765. regionLocateCallBack(obj) {},
  1766. /**
  1767. * @聚合撒点
  1768. * @param {数据list} data
  1769. * @param {页面类型} pageType
  1770. * @param {类型} type
  1771. */
  1772. initMarkers(data, pageType, type) {
  1773. var _this = this;
  1774. var tag = 1; //1.自定义图标 2.完全自定义 3.默认
  1775. var style = ""; //地图最大化小图标
  1776. var points = []; //地图撒点处理数据存储
  1777. var options = {
  1778. style: { pixelRange: 10 },
  1779. isZoom: true,
  1780. click: clusterMapCallBack,
  1781. };
  1782. jMap.ClusterMap.show(data, options);
  1783. },
  1784. clickFlag(val) {},
  1785. randomColor() {
  1786. var color = "#";
  1787. //for循环中,如果后面仅有一条语句,{}可省略不写
  1788. //随机生成6位0-15之间的数字,再用toString(16)将数字转成16进制
  1789. for (var i = 0; i < 6; i++) color += parseInt(Math.random() * 16).toString(16);
  1790. return color;
  1791. },
  1792. removeMarkers(lnglats) {
  1793. this.map.remove(lnglats);
  1794. },
  1795. /**
  1796. *街镇切换
  1797. */
  1798. streetTownSwitch(data) {
  1799. let sf = 2800.0;
  1800. if (data.id == 12) {
  1801. //区缩放比例调整
  1802. sf = 18000.0;
  1803. }
  1804. var options = {
  1805. area: data.id,
  1806. base_layer_name: "dark",
  1807. model_data_name: "dark",
  1808. isShowDistrictLabel: true,
  1809. camera: {
  1810. x: data.x,
  1811. y: data.y,
  1812. radius: sf,
  1813. offset: { heading: 4, pitch: -89, range: 0 },
  1814. },
  1815. };
  1816. jMap.switchStreet(options);
  1817. },
  1818. /**
  1819. * 点分布(撒点)
  1820. * @param {坐标信息} lnglats
  1821. * @param {页面类型} type
  1822. */
  1823. addMarker(lnglats, pageType, type) {
  1824. window.jMap.Locate.clearLocate();
  1825. let that = this
  1826. let icon = "";
  1827. let arr = []
  1828. let arr1 = []
  1829. let arr2 = []
  1830. let arr3 = []
  1831. let arr4 = []
  1832. let arr5 = []
  1833. var target = lnglats.map((val, ind) => {
  1834. var wgs84 = CoordUtil.gcj02towgs84(Number(val.gisX) || Number(val.longitude), Number(val.gisY) || Number(val.latitude))
  1835. var x = wgs84[0]
  1836. var y = wgs84[1]
  1837. if (pageType == "enforcement-dynamic" ||
  1838. pageType == "self-management" ||
  1839. pageType == "comprehensive-disposal" ||
  1840. pageType == "rescue-station" ||
  1841. pageType == "security-plan" ||
  1842. pageType == "fire-signs" ||
  1843. pageType == "fire-data-analysis" ||
  1844. pageType == "water-sources") {
  1845. let marker = {
  1846. id: ind + 1,
  1847. attrbutes: val,
  1848. position: {
  1849. x: x,
  1850. y: y,
  1851. // x: Number(val.gisX) || Number(val.longitude),
  1852. // y: Number(val.gisY) || Number(val.latitude),
  1853. z: 0
  1854. },
  1855. image: {
  1856. url: type == "双随机执法单位" ? this.stores.sadianIcon.ssjzf : type == "安全检查单位" ? this.stores.sadianIcon.aqjcdw : type == "举报投诉" ? this.stores.sadianIcon.jbts : type == "执法记录仪" && val.type == "执法记录仪" ? this.stores.sadianIcon.zfjly :
  1857. type == "执法记录仪" && val.type == "国家会展中心" ? this.stores.sadianIcon.hzzx :
  1858. type == "重点单位" ? this.stores.sadianIcon.zddw : type == "龙湖天街(试点)" ? this.stores.sadianIcon.lhtj : type == "一般单位" ? this.stores.sadianIcon.ybdw : type == "九小场所" ? this.stores.sadianIcon.jxcs : type == "其他单位" ? this.stores.sadianIcon.qtdw :
  1859. type == "厂房" ? this.stores.sadianIcon.cf : type == "仓库" ? this.stores.sadianIcon.ck :
  1860. type == "车辆" && val.type != "国家会展中心" ? this.stores.sadianIcon.xfc : type == "历史警情" && val.type != "国家会展中心" ? this.stores.sadianIcon.lsjq :
  1861. type == "历史火灾" && val.type != "国家会展中心" ? this.stores.sadianIcon.lshz : val.type == "国家会展中心" ? this.stores.sadianIcon.hzzx :
  1862. type == "亡人火灾" ? this.stores.sadianIcon.wrhz : type == "伤人火灾" ? this.stores.sadianIcon.srhz :
  1863. type == "消火栓可用" ? this.stores.sadianIcon.xhs : type == "消火栓不可用" ? this.stores.sadianIcon.xhsH :
  1864. type == "天然水源" ? this.stores.sadianIcon.trsy : type == "科普教育基地" ? this.stores.sadianIcon.kpjyjd :
  1865. type == "消防站" ? this.stores.sadianIcon.xfz : type == "高层建筑覆盖" && val.stationType == 1 ? this.stores.sadianIcon.xfdjl :
  1866. type == "高层建筑覆盖" && val.stationType == 2 ? this.stores.sadianIcon.xfdj2 : type == "高层建筑覆盖" && val.stationType == 3 ? this.stores.sadianIcon.xfdj3 :
  1867. type == "高层建筑覆盖" && val.stationType == 4 ? this.stores.sadianIcon.zzd : type == "高层建筑覆盖" && val.stationType == 5 ? this.stores.sadianIcon.jzwxxfz :
  1868. type == "高层建筑覆盖" && val.stationType == 111 ? this.stores.sadianIcon.dian : type == "高层建筑" ? this.stores.sadianIcon.gcggjz :
  1869. type == "专职队" ? this.stores.sadianIcon.zzd : type == "微型消防站" ? this.stores.sadianIcon.jzwxxfz : type == "大型综合体" && val.facilityType == "lhtj" ? this.stores.sadianIcon.lhtj :
  1870. type == "大型综合体" && (val.facilityType == 2 || val.facilityType == 3) ? this.stores.sadianIcon.dxzht : type == "重大火灾隐患" ? this.stores.sadianIcon.lsjq :
  1871. type == "企业消防" && val.facilityType == 13 ? this.stores.sadianIcon.zddw : type == "企业消防" && val.facilityType == 14 ? this.stores.sadianIcon.ybdw :
  1872. type == "社区消防" && val.facilityType == 15 ? this.stores.sadianIcon.zddw : type == "社区消防" && val.facilityType == 16 ? this.stores.sadianIcon.ybdw :
  1873. type == "一级微型消防站" ? this.stores.sadianIcon.yjxfz : type == "街镇专职消防队" ? this.stores.sadianIcon.jzzzxfd : type == "中小学" ? this.stores.sadianIcon.zs : type == "幼儿园" ? this.stores.sadianIcon.yey : type == "其他学校" ? this.stores.sadianIcon.qtxx :
  1874. type == "三合一" ? this.stores.sadianIcon.shy : type == "实时警情" ? this.stores.sadianIcon.ssjq :
  1875. type == "本年度重点事项推进情况" && val.status == 1 ? this.stores.sadianIcon.ywc : type == "本年度重点事项推进情况" && val.status == 2 ? this.stores.sadianIcon.jxz : type == "本年度重点事项推进情况" && val.status == 3 ? this.stores.sadianIcon.zbz :
  1876. type == "高风险" ? this.stores.sadianIcon.gfx : type == "较高风险" ? this.stores.sadianIcon.jgfx : type == "一般风险" ? this.stores.sadianIcon.ybfx : type == "低风险" ? this.stores.sadianIcon.dfx :
  1877. type == "单位巡检" ? this.stores.sadianIcon.dwxj : type == "物联网设备" ? this.stores.sadianIcon.dwxj : type == "监控视频" ? this.stores.sadianIcon.ssjq : type == "监督检查" ? this.stores.sadianIcon.jdjc : type == "养老机构" ? this.stores.sadianIcon.xfdjl : type == "医疗机构" ? this.stores.sadianIcon.zzd : type == "流动消防站(一级)" ? this.stores.sadianIcon.ldxfzyj : type == "流动消防站(二级)" ? this.stores.sadianIcon.ldxfzej : type == "重点微型消防站" ? this.stores.sadianIcon.zdwxxfz :
  1878. this.stores.sadianIcon.trsy,
  1879. // this.jqzhczIcon3 : val.type == "4" ?
  1880. // this.jqzhczIcon4 : val.type == "5" ?
  1881. // this.jqzhczIcon5 : val.type == "消火栓" && val.status == "1" ?
  1882. // this.jqzhczIcon5 : val.type == "消火栓" && val.status == "2" ?
  1883. // this.jqzhczIcon51 : val.type == "天然水源" ?
  1884. // this.jqzhczIcon7 : this.xfzfdtIcon4,
  1885. width: val.type == "国家会展中心" ? 83 : type == "高层建筑覆盖" && val.stationType == 111 ? 7 : type == 111 ? 74 : 19.5,
  1886. height: val.type == "国家会展中心" ? 59 : type == "高层建筑覆盖" && val.stationType == 111 ? 7 : type == 111 ? 66 : 25,
  1887. },
  1888. };
  1889. if (type == "高层建筑覆盖" && val.stationType == 1) {
  1890. arr1.push(val)
  1891. }
  1892. if (type == "高层建筑覆盖" && val.stationType == 2) {
  1893. arr2.push(val)
  1894. }
  1895. if (type == "高层建筑覆盖" && val.stationType == 3) {
  1896. arr3.push(val)
  1897. }
  1898. if (type == "高层建筑覆盖" && val.stationType == 4) {
  1899. arr4.push(val)
  1900. }
  1901. if (type == "高层建筑覆盖" && val.stationType == 5) {
  1902. arr5.push(val)
  1903. }
  1904. return marker;
  1905. } else {
  1906. let marker = {
  1907. id: ind + 1,
  1908. attrbutes: val,
  1909. position: { x: val.gisBaiDuX, y: val.gisBaiDuY, z: 0 },
  1910. image: { url: icon, width: 300, height: 300 },
  1911. };
  1912. return marker;
  1913. }
  1914. });
  1915. if (type == "高层建筑覆盖") {
  1916. if (arr1.length > 0) {
  1917. this.bufferL1(arr1)
  1918. }
  1919. if (arr2.length > 0) {
  1920. this.bufferL2(arr2)
  1921. }
  1922. if (arr3.length > 0) {
  1923. this.bufferL3(arr3)
  1924. }
  1925. if (arr4.length > 0) {
  1926. this.bufferL4(arr4)
  1927. }
  1928. if (arr5.length > 0) {
  1929. this.bufferL5(arr5)
  1930. }
  1931. // this.bufferL(arr)
  1932. }
  1933. //消防水源
  1934. if (pageType == "water-sources") {
  1935. var array = {
  1936. clusterId: 100001,
  1937. clusterData: []
  1938. }
  1939. var target1 = lnglats.map((val, ind) => {
  1940. var wgs84 = CoordUtil.gcj02towgs84(Number(val.gisX) || Number(val.longitude), Number(val.gisY) || Number(val.latitude))
  1941. var x = wgs84[0]
  1942. var y = wgs84[1]
  1943. val.type2 = type
  1944. var array1 = {
  1945. attributes: val,
  1946. position: {
  1947. x: x,
  1948. y: y,
  1949. z: 0,
  1950. },
  1951. image: {
  1952. url: type == "消火栓可用" ? this.stores.sadianIcon.xhs : type == "消火栓不可用" ? this.stores.sadianIcon.xhsH : type == "天然水源" ? this.stores.sadianIcon.trsy : this.stores.sadianIcon.trsy,
  1953. width: 19.5,
  1954. height: 25,
  1955. }
  1956. }
  1957. array.clusterData.push(array1)
  1958. })
  1959. var options = {
  1960. style: { pixelRange: 60 },
  1961. isZoom: true,
  1962. click: this.clusterMapCallBack
  1963. };
  1964. window.jMap.ClusterMap.show(array, options)
  1965. } else {
  1966. //撒点类型
  1967. window.jMap.Locate.pointLocate(target, {
  1968. //撒点
  1969. isZoom: false,
  1970. //animate: { "show": true },
  1971. scaleByDistance: {
  1972. minScaling: 1,
  1973. maxScaling: 1,
  1974. minDistance: 50, //最小距离
  1975. maxDistance: 120000 //最大距离
  1976. },
  1977. click: (val) => {
  1978. //消防执法
  1979. if (pageType == "enforcement-dynamic") {
  1980. if (type == "安全检查单位" || type == "双随机执法单位") {
  1981. this.$axios
  1982. .get(
  1983. this.$api.siaeall.one +
  1984. "?" +
  1985. this.$qs.stringify({
  1986. companyId: val.attrbutes.number,
  1987. companyName: val.attrbutes.name,
  1988. })
  1989. )
  1990. .then((res) => {
  1991. res.data[0].company = val._attrbutes.name;
  1992. res.data[0].streetTown = val._attrbutes.streetTown;
  1993. let arrayList = [{
  1994. title: [res.data[0].company, res.data[0].company ? true : false],
  1995. children: [
  1996. ["单位地址:", res.data[0].companyAddress, 24],
  1997. ["负责人:", res.data[0].linkPerson, 10],
  1998. ["联系电话:", res.data[0].linkPhone, 14],
  1999. ["历史火灾次数:", res.data[0].fireCount, 12],
  2000. ],
  2001. },
  2002. {
  2003. title: ["行政许可情况", res.data[0].processDate && res.data[0].carefullyCheckDate && res.data[0].securityCheckDates],
  2004. children: [
  2005. ["审核时间:", res.data[0].processDate, 12],
  2006. ["验收时间:", res.data[0].carefullyCheckDate, 12],
  2007. ["安检时间:", res.data[0].securityCheckDates, 12],
  2008. ],
  2009. },
  2010. {
  2011. title: ["历史检查情况", res.data[0].inspectCompany && res.data[0].fireHazard && res.data[0].rectificateFireHazard && res.data[0].punishmentDecision && res.data[0].orderThreeStops && res.data[0].correctionNotice && res.data[0].temporarySeizure && res.data[0].penaltyAmount],
  2012. children: [
  2013. ["检查:", res.data[0].inspectCompany + "(家)", 8],
  2014. ["隐患:", res.data[0].fireHazard + "(起)", 8],
  2015. ["整改:", res.data[0].rectificateFireHazard + "(起)", 8],
  2016. ["行罚:", res.data[0].punishmentDecision + "(份)", 8],
  2017. ["三停:", res.data[0].orderThreeStops + "(家)", 8],
  2018. ["责改:", res.data[0].correctionNotice + "(份)", 8],
  2019. ["临封:", res.data[0].temporarySeizure + "(份)", 8],
  2020. ["罚金:", res.data[0].penaltyAmount + "(万元)", 8],
  2021. ],
  2022. },
  2023. {
  2024. title: ["相关火灾情况", res.data[0].fireTime && res.data[0].disposalDuration && res.data[0].burnedArea && res.data[0].fireGrade && res.data[0].mobilizeVehicles && res.data[0].squadron && res.data[0].status && res.data[0].initialFuelType1],
  2025. children: [
  2026. ["报警时间:", res.data[0].fireTime, 12],
  2027. ["处置时长:", res.data[0].disposalDuration, 12],
  2028. ["过火面积:", res.data[0].burnedArea, 12],
  2029. ["火灾等级:", res.data[0].fireGrade, 12],
  2030. ["调动车辆:", res.data[0].mobilizeVehicles + "(辆)", 12],
  2031. ["所属中队:", res.data[0].squadron, 12],
  2032. ["状况:", res.data[0].status, 12],
  2033. ["起火物:", res.data[0].initialFuelType1, 12],
  2034. ],
  2035. },
  2036. ];
  2037. this.popup(val._attrbutes, arrayList, true)
  2038. });
  2039. } else if (type == "举报投诉") {
  2040. let arrayList = [{
  2041. title: [val._attrbutes.name, true],
  2042. children: [
  2043. ],
  2044. }]
  2045. this.popup(val._attrbutes, arrayList, true)
  2046. } else if (type == "执法记录仪") {
  2047. let arrayList = [{
  2048. title: [val._attrbutes.groupName, true],
  2049. children: [
  2050. ["执法人:", val._attrbutes.name, 12],
  2051. ],
  2052. type: type,
  2053. url: val._attrbutes.url,
  2054. },
  2055. ]
  2056. this.popup(val._attrbutes, arrayList, true)
  2057. } else if (type == "重大火灾隐患") {
  2058. let msgParse = JSON.parse(val.attrbutes.extendData)
  2059. let arrayList = [{
  2060. title: [val.attrbutes.facilityName, true],
  2061. children: [
  2062. ["地址:", val.attrbutes.address, 24],
  2063. ["分类等级:", val.attrbutes.address, 24],
  2064. ["基础信息:", msgParse.test1, 24],
  2065. ["消防安全隐患情况:", msgParse.test2, 24],
  2066. ],
  2067. }, ];
  2068. this.popup(val._attrbutes, arrayList, true)
  2069. } else if (type == "三合一") {
  2070. let msgParse = JSON.parse(val.attrbutes.extendData)
  2071. let arrayList = [{
  2072. title: [val.attrbutes.facilityName, true],
  2073. children: [
  2074. ["单位地址:", val.attrbutes.address.replace("\t", ""), 24],
  2075. ["单位类别:", "三合一九小场所", 24],
  2076. ["单位法人:", val.attrbutes.facilityName.replace("\t", ""), 24],
  2077. ["检查人员姓名:", msgParse.test1, 24],
  2078. ["检查时间:", msgParse.test3, 24],
  2079. ["单位使用性质:", msgParse.test4, 24],
  2080. ["单位所属街道:", msgParse.test8, 24],
  2081. ["消消防安全责任人:", msgParse.test10, 24],
  2082. ["消防安全管理人(联系人):", msgParse.test11, 24],
  2083. ["联系电话(手机):", msgParse.test12, 24],
  2084. ["单位(场所)面积(m²):", msgParse.test17, 24],
  2085. ["地上:", msgParse.test18, 24],
  2086. ["地下:", msgParse.test19, 24],
  2087. ["建筑性质:", msgParse.test21, 24],
  2088. ["建筑结构:", msgParse.test22, 24],
  2089. ],
  2090. }, ];
  2091. this.popup(val._attrbutes, arrayList, true)
  2092. } else if (type == "本年度重点事项推进情况") {
  2093. let msgParse = JSON.parse(val.attrbutes.extendData)
  2094. let arrayList = [{
  2095. title: [val.attrbutes.facilityName, true],
  2096. children: [
  2097. ["街道名称:", val.attrbutes.streetTown, 24],
  2098. ["地址:", val.attrbutes.address, 24],
  2099. ["状态:", val.attrbutes.status == 1 ? "已完成" : val.attrbutes.status == 2 ? "施工中" : val.attrbutes.status == 3 ? "招标中" : "", 24],
  2100. ],
  2101. }, ];
  2102. this.popup(val._attrbutes, arrayList, true)
  2103. }
  2104. }
  2105. //企业自主
  2106. if (pageType == "self-management") {
  2107. if (val.attrbutes.type == "重点单位") {
  2108. console.log(111111111111111111)
  2109. // this.elementInfo(val.attrbutes, "重点单位")
  2110. that.stores.zddwIdSD(val.attrbutes.companyId);
  2111. } else if (val.attrbutes.type == "大型综合体") {
  2112. let msgParse = JSON.parse(val.attrbutes.extendData)
  2113. let arrayList = [{
  2114. title: [val.attrbutes.facilityName, true],
  2115. children: [
  2116. ["地址:", val.attrbutes.address, 24],
  2117. ["类型:", val.attrbutes.facilityType == 2 ? "5W平大型商业综合体" : val.attrbutes.facilityType == 3 ? "3-5万平大型商业综合体" : "", 24],
  2118. ["平面布局:", msgParse.planeLayout, 24],
  2119. ["用火用电用气管理:", msgParse.fireGasManage, 24],
  2120. ["油烟管道管理:", msgParse.oilFumeManage, 24],
  2121. ["消防设施:", msgParse.fireFacility, 24],
  2122. ["其他安全管理:", msgParse.otherSecurityManage, 24],
  2123. ["合计汇总:", msgParse.totalSummary, 24],
  2124. ],
  2125. }, ];
  2126. this.popup(val._attrbutes, arrayList, true)
  2127. } else if (val.attrbutes.type == "中小学" || val.attrbutes.type == "幼儿园" || val.attrbutes.type == "其他学校") {
  2128. let msgParse = JSON.parse(val.attrbutes.extendData)
  2129. let phone = val.attrbutes.contactPhone
  2130. let arrayList = [{
  2131. title: [val.attrbutes.facilityName, true],
  2132. children: [
  2133. ["机构简称:", msgParse.test1, 24],
  2134. // ["学校办别:", val.attrbutes.facilityType, 24],
  2135. ["学校类型:", val.attrbutes.type, 24],
  2136. ["所在街镇:", val.attrbutes.streetTown, 24],
  2137. ["地址:", msgParse.address, 24],
  2138. ["法人代表:", val.attrbutes.contact, 24],
  2139. ["手机:", phone.length > 8 ? phone.substring(0, 3) + '****' + phone.substring(phone.length - 3, phone.length) : phone.substring(0, 2) + '***' + phone.substring(phone.length - 3, phone.length), 24],
  2140. ],
  2141. }, ];
  2142. this.popup(val._attrbutes, arrayList, true)
  2143. } else if (val.attrbutes.facilityType == "22") {
  2144. let msgParse = JSON.parse(val.attrbutes.extendData)
  2145. let arrayList = [{
  2146. title: [val.attrbutes.facilityName, true],
  2147. children: [
  2148. ["单位地址:", msgParse.address, 24],
  2149. ["单位负责人:", val.attrbutes.contact, 24],
  2150. ["负责人电话:", val.attrbutes.contactPhone, 24],
  2151. ["巡检部位:", msgParse.test1, 24],
  2152. ["巡检人员:", msgParse.test2, 24],
  2153. ["巡检情况:", msgParse.test3, 24],
  2154. ],
  2155. }, ];
  2156. this.popup(val._attrbutes, arrayList, true)
  2157. } else if (type == "物联网设备") {
  2158. let arrayList = [{
  2159. title: [val.attrbutes.buildName, true],
  2160. children: [
  2161. ["建筑地址:", val.address, 24],
  2162. ["建筑面积:", val.attrbutes.buildArea, 24],
  2163. ["建筑高度:", val.attrbutes.buildHigh, 24],
  2164. ["地上(层):", val.attrbutes.aboveFloor, 24],
  2165. ["地下(层):", val.attrbutes.underFloor, 24],
  2166. ],
  2167. }, ];
  2168. this.popup(val._attrbutes, arrayList, true)
  2169. } else {
  2170. let arrayList = [{
  2171. title: ["单位详情", val.attrbutes.companyName ? true : false],
  2172. children: [
  2173. ["单位名称:", val.attrbutes.companyName, 24],
  2174. ["单位类型:", val.attrbutes.companyTypeName, 24],
  2175. ["联系电话:", val.attrbutes.linkPhone, 24],
  2176. ["地址:", val.attrbutes.address, 24],
  2177. ],
  2178. }, ];
  2179. this.popup(val._attrbutes, arrayList, true)
  2180. }
  2181. }
  2182. //大型安保 、火灾数据分析
  2183. if (pageType == "security-plan") {
  2184. if (type == "监控视频") {
  2185. let arrayList = [{
  2186. title: ["监控视频", true],
  2187. children: [
  2188. ["监控名称:", val.attrbutes.name, 24],
  2189. ["监控地址:", val.attrbutes.installPlace, 24],
  2190. ],
  2191. url: val.attrbutes.viewUrl,
  2192. id: val.attrbutes.id
  2193. }, ];
  2194. that.stores.jkspChange(arrayList);
  2195. }
  2196. if (type == "监督检查") {
  2197. let arrayList = [{
  2198. title: ["监督检查", true],
  2199. children: [
  2200. ["检查员名称:", val.attrbutes.checkName, 24],
  2201. ["检查人员所属单位:", val.attrbutes.subordinateCompany, 24],
  2202. ["检查时间:", val.attrbutes.checkTime, 24],
  2203. ["单位类型:", val.attrbutes.companyType, 24],
  2204. ["单位使用性质:", val.attrbutes.companyUseNature, 24],
  2205. ["单位法人:", val.attrbutes.companyName, 24],
  2206. ["单位(场所)实际名称:", val.attrbutes.companyActualName, 24],
  2207. ["网格号:", val.attrbutes.gridNum, 24],
  2208. ["所辖派出所:", val.attrbutes.subordinatePoliceStation, 24],
  2209. ["街镇:", val.attrbutes.street, 24],
  2210. ["单位地址:", val.attrbutes.companyAddress, 24],
  2211. ["消防安全责任人姓名:", val.attrbutes.fireDutyName, 24],
  2212. ["消防安全管理人姓名:", val.attrbutes.fireManageName, 24],
  2213. ["联系电话:", val.attrbutes.phone, 24],
  2214. // ["隐患图片:", val.attrbutes.hiddImage ? JSON.parse(val.attrbutes.hiddImage) : NULL, 24],
  2215. ],
  2216. }, ];
  2217. this.popup(val._attrbutes, arrayList, true)
  2218. }
  2219. //疏导区单位情况----------------------
  2220. if (type == "养老机构") {
  2221. let msgParse = JSON.parse(val.attrbutes.extendData)
  2222. let arrayList = [{
  2223. title: [type, true],
  2224. children: [
  2225. ["单位名称:", val.attrbutes.facilityName, 24],
  2226. ["地址:", val.attrbutes.address, 24],
  2227. ["所属街镇:", val.attrbutes.streetTown, 24],
  2228. ["隐患问题:", msgParse.test1, 24],
  2229. ],
  2230. }, ];
  2231. this.popup(val._attrbutes, arrayList, true)
  2232. }
  2233. if (type == "医疗机构") {
  2234. let msgParse = JSON.parse(val.attrbutes.extendData)
  2235. let arrayList = [{
  2236. title: [type, true],
  2237. children: [
  2238. ["单位名称:", val.attrbutes.facilityName, 24],
  2239. ["地址:", val.attrbutes.address, 24],
  2240. ["所属街镇:", val.attrbutes.streetTown, 24],
  2241. ["描述:", msgParse.test1, 24],
  2242. ["隐患问题:", msgParse.test2, 24],
  2243. ],
  2244. }, ];
  2245. this.popup(val._attrbutes, arrayList, true)
  2246. }
  2247. if (type == "流动消防站(一级)") {
  2248. let msgParse = JSON.parse(val.attrbutes.extendData)
  2249. let arrayList = [{
  2250. title: [val.attrbutes.facilityName, true],
  2251. children: [
  2252. ["街镇:", val.attrbutes.streetTown, 24],
  2253. ["驻防位置:", val.attrbutes.address, 24],
  2254. ["保卫区域:", val.attrbutes.facilityName, 24],
  2255. ["负责人:", val.attrbutes.contact, 24],
  2256. ["联系电话:", val.attrbutes.contactPhone, 24],
  2257. ["支队:", msgParse.test1, 24],
  2258. ["辖区中队:", msgParse.test2, 24],
  2259. ["驻防车辆:", msgParse.test3, 24],
  2260. ["车型/跟车人数:", `${msgParse.test4}/ ${msgParse.test5}`, 24],
  2261. ["设立原因:", msgParse.test6, 24],
  2262. ["驻防时间:", msgParse.test7, 24],
  2263. ["视频设备编号:", msgParse.test8, 24],
  2264. ["跟车人员姓名及岗位1:", `${msgParse.test10} ${msgParse.test9}`, 24],
  2265. ["跟车人员姓名及岗位2:", `${msgParse.test12} ${msgParse.test11}`, 24],
  2266. ["跟车人员姓名及岗位3:", `${msgParse.test14} ${msgParse.test14}`, 24],
  2267. ["跟车人员姓名及岗位4:", `${msgParse.test16} ${msgParse.test15}`, 24],
  2268. ["跟车人员姓名及岗位5:", `${msgParse.test18} ${msgParse.test17}`, 24],
  2269. ["跟车人员姓名及岗位6:", `${msgParse.test20} ${msgParse.test19}`, 24],
  2270. ["跟车人员姓名及岗位7:", `${msgParse.test22} ${msgParse.test21}`, 24],
  2271. ["户号:", msgParse.test23, 24],
  2272. ["车型:", msgParse.test24, 24],
  2273. ["车辆号牌:", msgParse.test25, 24],
  2274. ["所属单位:", msgParse.test26, 24],
  2275. ["电台呼号:", msgParse.test27, 24],
  2276. ["车辆类型:", `${msgParse.test28} ${msgParse.test29} ${msgParse.test30} ${msgParse.test31} ${msgParse.test32}`, 24],
  2277. ["总质量:", msgParse.test33, 24],
  2278. ["乘员数:", msgParse.test34, 24],
  2279. ["云梯高度(米)、油箱容量(升):", `${msgParse.test35} 、${msgParse.test36}`, 24],
  2280. ["发动机功率(千瓦):", msgParse.test37, 24],
  2281. ["水泵流量(升/分钟):", msgParse.test38, 24],
  2282. ["泡沫流量(升/分钟):", msgParse.test39, 24],
  2283. ["水箱容量(吨):", msgParse.test40, 24],
  2284. ["名称修改为(载水量):", msgParse.test41, 24],
  2285. ["泡沫容量(吨):", msgParse.test42, 24],
  2286. ],
  2287. }, ];
  2288. this.popup(val._attrbutes, arrayList, true)
  2289. }
  2290. if (type == "流动消防站(二级)") {
  2291. let msgParse = JSON.parse(val.attrbutes.extendData)
  2292. let arrayList = [{
  2293. title: [val.attrbutes.facilityName, true],
  2294. children: [
  2295. ["街镇:", val.attrbutes.streetTown, 24],
  2296. ["驻防位置:", val.attrbutes.address, 24],
  2297. ["保卫区域:", val.attrbutes.facilityName, 24],
  2298. ["负责人:", val.attrbutes.contact, 24],
  2299. ["联系电话:", val.attrbutes.contactPhone, 24],
  2300. ["人数:", msgParse.test1, 24],
  2301. ["设立原因:", msgParse.test2, 24],
  2302. ["驻防时间:", msgParse.test3, 24],
  2303. ["定位设备编号:", msgParse.test4, 24],
  2304. ["对讲设备编号:", msgParse.test5, 24],
  2305. ["跟车人员姓名及岗位:", `${msgParse.test7} ${msgParse.test6}`, 24],
  2306. ["跟车人员姓名及岗位:", `${msgParse.test9} ${msgParse.test8}`, 24],
  2307. ],
  2308. }, ];
  2309. this.popup(val._attrbutes, arrayList, true)
  2310. }
  2311. if (type == "重点微型消防站") {
  2312. let msgParse = JSON.parse(val.attrbutes.extendData)
  2313. let arrayList = [{
  2314. title: [val.attrbutes.facilityName, true],
  2315. children: [
  2316. ["街镇:", val.attrbutes.streetTown, 24],
  2317. ["地址:", val.attrbutes.address, 24],
  2318. ["名称:", val.attrbutes.facilityName, 24],
  2319. ["负责人:", val.attrbutes.contact, 24],
  2320. ["联系电话:", val.attrbutes.contactPhone, 24],
  2321. ["支队:", msgParse.test1, 24],
  2322. ["性质:", msgParse.test2, 24],
  2323. ["固定电话:", msgParse.test3, 24],
  2324. ["是否配备电动车:", msgParse.test5, 24],
  2325. ["备注:", msgParse.test6, 24],
  2326. ],
  2327. }, ];
  2328. this.popup(val._attrbutes, arrayList, true)
  2329. }
  2330. if (type == "宾馆酒店" || type == "酒店/宾馆") {
  2331. let msgParse = JSON.parse(val.attrbutes.extendData)
  2332. let arrayList = [{
  2333. title: [type, true],
  2334. children: [
  2335. ["宾馆酒店名称:", val.attrbutes.facilityName, 24],
  2336. ["街镇:", val.attrbutes.streetTown, 24],
  2337. ["地址:", val.attrbutes.address, 24],
  2338. ["房间数:", msgParse.test1, 24],
  2339. ],
  2340. }, ];
  2341. this.popup(val._attrbutes, arrayList, true)
  2342. }
  2343. if (type == "大型商业综合体") {
  2344. let msgParse = JSON.parse(val.attrbutes.extendData)
  2345. let arrayList = [{
  2346. title: [type, true],
  2347. children: [
  2348. ["单位名称:", val.attrbutes.facilityName, 24],
  2349. ["街镇:", val.attrbutes.streetTown, 24],
  2350. ["地址:", val.attrbutes.address, 24],
  2351. ["管理人:", msgParse.test1, 24],
  2352. ["电话:", msgParse.test2, 24],
  2353. ],
  2354. }, ];
  2355. this.popup(val._attrbutes, arrayList, true)
  2356. }
  2357. if (type == "厂房仓库" || type == "厂房/仓库") {
  2358. let msgParse = JSON.parse(val.attrbutes.extendData)
  2359. let arrayList = [{
  2360. title: [type, true],
  2361. children: [
  2362. ["单位名称:", val.attrbutes.facilityName, 24],
  2363. ["街镇:", val.attrbutes.streetTown, 24],
  2364. ["地址:", val.attrbutes.address, 24],
  2365. // ["所属单位:",msgParse.test1, 24],
  2366. // ["公司名称:",msgParse.test2, 24],
  2367. ["公司负责人及联系方式:", `${msgParse.test3} ${msgParse.test4}`, 24],
  2368. ],
  2369. }, ];
  2370. this.popup(val._attrbutes, arrayList, true)
  2371. }
  2372. if (type == "批发市场") {
  2373. // let msgParse = JSON.parse(val.attrbutes.extendData)
  2374. let arrayList = [{
  2375. title: [type, true],
  2376. children: [
  2377. ["单位名称:", val.attrbutes.facilityName, 24],
  2378. ["街镇:", val.attrbutes.streetTown, 24],
  2379. ["地址:", val.attrbutes.address, 24],
  2380. ["联系人:", val.attrbutes.contact, 24],
  2381. ["联系电话:", val.attrbutes.contactPhone, 24],
  2382. ],
  2383. }, ];
  2384. this.popup(val._attrbutes, arrayList, true)
  2385. }
  2386. if (type == "规模租赁公寓") {
  2387. let msgParse = JSON.parse(val.attrbutes.extendData)
  2388. let arrayList = [{
  2389. title: [type, true],
  2390. children: [
  2391. ["单位名称:", val.attrbutes.facilityName, 24],
  2392. ["街镇:", val.attrbutes.streetTown, 24],
  2393. ["地址:", val.attrbutes.address, 24],
  2394. ["联系人:", val.attrbutes.contact, 24],
  2395. ["联系电话:", val.attrbutes.contactPhone, 24],
  2396. ["建筑面积 ( 平方米 ):", msgParse.test1, 24],
  2397. ["房间数量(间):", msgParse.test2, 24],
  2398. ],
  2399. }, ];
  2400. this.popup(val._attrbutes, arrayList, true)
  2401. }
  2402. if (type == "三合一场所") {
  2403. let msgParse = JSON.parse(val.attrbutes.extendData)
  2404. let arrayList = [{
  2405. title: [type, true],
  2406. children: [
  2407. ["单位名称:", val.attrbutes.facilityName, 24],
  2408. ["街镇:", val.attrbutes.streetTown, 24],
  2409. ["地址:", val.attrbutes.address, 24],
  2410. ["联系人:", val.attrbutes.contact, 24],
  2411. ["联系电话:", val.attrbutes.contactPhone, 24],
  2412. ["住宿人员数量:", msgParse.test1, 24],
  2413. ["是否整改:", msgParse.test2, 24],
  2414. ],
  2415. }, ];
  2416. this.popup(val._attrbutes, arrayList, true)
  2417. }
  2418. // if (type == "重点微型消防站") {
  2419. // let msgParse = JSON.parse(val.attrbutes.extendData)
  2420. // console.log(msgParse)
  2421. // let arrayList = [{
  2422. // title: [type, true],
  2423. // children: [
  2424. // ["单位名称:", val.attrbutes.facilityName, 24],
  2425. // ["街镇:", val.attrbutes.streetTown, 24],
  2426. // ["地址:", val.attrbutes.address, 24],
  2427. // ["联系人:", val.attrbutes.contact, 24],
  2428. // ["联系电话:", val.attrbutes.contactPhone, 24],
  2429. // ["支队:", msgParse.test1, 24],
  2430. // ["性质:", msgParse.test2, 24],
  2431. // ["固定电话:", msgParse.test3, 24],
  2432. // ["是否配备电动车:", msgParse.test5, 24],
  2433. // ["备注:", msgParse.test6, 24],
  2434. // ],
  2435. // }, ];
  2436. // console.log(arrayList)
  2437. // this.popup(val._attrbutes, arrayList, true)
  2438. // }
  2439. //疏导区单位情况----------------------
  2440. //四色分级
  2441. if (type == "高风险" || type == "较高风险" || type == "一般风险" || type == "低风险") {
  2442. if (val.attrbutes.extendData) {
  2443. let msgParse = JSON.parse(val.attrbutes.extendData)
  2444. //九小场所
  2445. if (val.attrbutes.facilityType == 39) {
  2446. let arrayList = [{
  2447. title: [val.attrbutes.facilityName, true],
  2448. children: [
  2449. ["所属街镇:", val.attrbutes.streetTown, 12],
  2450. ["网格号:", msgParse.facilityNum, 12],
  2451. ["位置:", val.attrbutes.address, 24],
  2452. ["统一社会代码:", msgParse.test5, 24],
  2453. ["场所面积:", msgParse.test7, 12],
  2454. ["安全责任人:", val.attrbutes.contact, 12],
  2455. ["安全管理人:", msgParse.test6, 12],
  2456. ["单位类型:", msgParse.test3, 12],
  2457. ["单位使用性质:", msgParse.test4, 12],
  2458. ["建筑性质:", msgParse.test8, 12],
  2459. ["建筑结构:", msgParse.test9, 12],
  2460. ["隐患扣分:", msgParse.test111, 12],
  2461. // ["隐患等级:", val.attrbutes.address, 24],
  2462. ["风险等级:", msgParse.test112, 12],
  2463. ],
  2464. }, ];
  2465. this.popup(val._attrbutes, arrayList, true)
  2466. }
  2467. //消防安全重点单位
  2468. if (val.attrbutes.facilityType == 1000) {
  2469. let arrayList = [{
  2470. title: [val.attrbutes.facilityName, true],
  2471. children: [
  2472. ["所属街镇:", val.attrbutes.streetTown, 12],
  2473. ["网格号:", msgParse.facilityNum, 12],
  2474. ["位置:", val.attrbutes.address, 24],
  2475. ["统一社会代码:", msgParse.test5, 24],
  2476. ["场所面积:", msgParse.test7, 12],
  2477. ["安全责任人:", val.attrbutes.contact, 12],
  2478. ["安全管理人:", msgParse.test6, 12],
  2479. ["单位类型:", msgParse.test3, 12],
  2480. ["单位使用性质:", msgParse.test4, 12],
  2481. ["建筑性质:", msgParse.test8, 12],
  2482. ["建筑结构:", msgParse.test9, 12],
  2483. ["隐患扣分:", msgParse.test111, 12],
  2484. // ["隐患等级:", val.attrbutes.address, 24],
  2485. ["风险等级:", msgParse.test112, 12],
  2486. ],
  2487. }, ];
  2488. this.popup(val._attrbutes, arrayList, true)
  2489. }
  2490. }
  2491. }
  2492. //疏导区基本情况----------------------
  2493. if (type == "学校") {
  2494. let msgParse = JSON.parse(val.attrbutes.extendData)
  2495. let arrayList = [{
  2496. title: [type, true],
  2497. children: [
  2498. ["单位名称:", val.attrbutes.facilityName, 24],
  2499. ["街镇:", val.attrbutes.streetTown, 24],
  2500. ["地址:", val.attrbutes.address, 24],
  2501. ["联系人:", val.attrbutes.contact, 24],
  2502. ["联系电话:", val.attrbutes.contactPhone, 24],
  2503. ["场所名称:", msgParse.test1, 24],
  2504. ["法定代表人:", msgParse.test2, 24],
  2505. ["主标签:", msgParse.test3, 24],
  2506. ["次标签:", msgParse.test4, 24],
  2507. ],
  2508. }, ];
  2509. this.popup(val._attrbutes, arrayList, true)
  2510. }
  2511. if (type == "居民小区") {
  2512. // let msgParse = JSON.parse(val.attrbutes.extendData)
  2513. let arrayList = [{
  2514. title: [type, true],
  2515. children: [
  2516. ["单位名称:", val.attrbutes.facilityName, 24],
  2517. ["街镇:", val.attrbutes.streetTown, 24],
  2518. ["地址:", val.attrbutes.address, 24],
  2519. ["联系人:", val.attrbutes.contact, 24],
  2520. ["联系电话:", val.attrbutes.contactPhone, 24],
  2521. ],
  2522. }, ];
  2523. this.popup(val._attrbutes, arrayList, true)
  2524. }
  2525. }
  2526. //火灾数据分析
  2527. if (pageType == "fire-data-analysis") {
  2528. if (type == "历史火灾") {
  2529. let arrayList = [{
  2530. title: ["案件详情", true],
  2531. children: [
  2532. ["案件编号:", val.attrbutes.ajbh, 24],
  2533. ["案件描述:", val.attrbutes.bcxx, 24],
  2534. ["报警时间:", val.attrbutes.tzsj, 24],
  2535. ["案件类型:", val.attrbutes.ajlx, 24],
  2536. ["警情类别:", type, 24],
  2537. ["警情等级:", val.attrbutes.ajdj, 24],
  2538. ["调动车辆:", val.attrbutes.cdcl, 24],
  2539. ["处置对象:", val.attrbutes.czdx, 24],
  2540. ["主责中队:", val.attrbutes.zhongdui, 24],
  2541. ["案件状态:", val.attrbutes.ajzt, 24],
  2542. ["到场时间:", val.attrbutes.cssj, 24],
  2543. ["控制时间:", val.attrbutes.kzsj, 24],
  2544. ["熄灭时间:", val.attrbutes.xmsj, 24],
  2545. ["返队时间:", val.attrbutes.fdsj, 24],
  2546. ["所属街道:", val.attrbutes.streettown, 24],
  2547. ],
  2548. }, ];
  2549. this.popup(val._attrbutes, arrayList, true)
  2550. }
  2551. if (type == "伤人火灾" || type == "亡人火灾") {
  2552. let arrayList = [{
  2553. title: ["案件详情", true],
  2554. children: [
  2555. ["火灾序号:", val.attrbutes.fireNumber, 24],
  2556. ["所属街道:", val.attrbutes.street, 24],
  2557. ["起火地点:", val.attrbutes.fireAddress, 24],
  2558. ["起火时间:", val.attrbutes.fireTime, 24],
  2559. ["直接财产损失:", val.attrbutes.directPropertyLoss + "万", 24],
  2560. ["过火面积:", val.attrbutes.burnedArea + "㎡", , 24],
  2561. ["受灾户数:", val.attrbutes.affectedHouse + "户", 24],
  2562. ["受灾人数:", val.attrbutes.victimNumber + "人", 24],
  2563. ["死亡人数:", val.attrbutes.deathToll + "人", 24],
  2564. ["受伤人数:", val.attrbutes.injuredNumber + "人", 24],
  2565. ["起火经过:", val.attrbutes.fireProcess, 24],
  2566. ],
  2567. }, ];
  2568. this.popup(val._attrbutes, arrayList, true)
  2569. }
  2570. }
  2571. //消防救援站点
  2572. if (pageType == "rescue-station") {
  2573. if (type == "科普教育基地") {
  2574. let arrayList = [{
  2575. title: [val.attrbutes.type, true],
  2576. children: [
  2577. ["成立时间/联系人:", val.attrbutes.policeTime, 24],
  2578. ["站点地址:", val.attrbutes.alertLevel, 24],
  2579. ["预约电话:", val.attrbutes.address, 24],
  2580. ],
  2581. }, ];
  2582. this.popup(val._attrbutes, arrayList, true)
  2583. }
  2584. if (type == "消防站" || type == "专职队" || type == "高层建筑覆盖" || type == "高层建筑" || type == "微型消防站" || type == "一级微型消防站" || type == "街镇专职消防队") {
  2585. if (val.attrbutes.stationType == 1 || val.attrbutes.stationType == 2 || val.attrbutes.stationType == 3 || val.attrbutes.stationType == 4) {
  2586. let arrayList = [{
  2587. title: [val.attrbutes.stationName, true],
  2588. children: [
  2589. ["消防站地址:", val.attrbutes.stationAddress, 24],
  2590. ["消防站类型:", val.attrbutes.stationType == 1 ? "一级消防站" : val.attrbutes.stationType == 2 ? "二级消防站" : val.attrbutes.stationType == 3 ? "三级消防站" : val.attrbutes.stationType == 4 ? "专职队" : "", 24],
  2591. ],
  2592. }, ];
  2593. this.popup(val._attrbutes, arrayList, true)
  2594. }
  2595. if (val.attrbutes.stationType == 5) {
  2596. let arrayList = [{
  2597. title: [val.attrbutes.streetTown + "微型消防站(" + val.attrbutes.stationCode + '号)', true],
  2598. children: [
  2599. ["地址:", val.attrbutes.stationAddress, 24],
  2600. ["编号:", val.attrbutes.stationCode, 24],
  2601. ["距消防站直线距离:", val.attrbutes.stationAddress, 24],
  2602. ["距消防站行驶距离:", val.attrbutes.driveDistance, 24],
  2603. ["交通拥堵行驶时间:", val.attrbutes.jamDrive, 24],
  2604. ["交通畅通行驶时间:", val.attrbutes.unimpededDrive, 24],
  2605. // ["点位情况:", val.attrbutes.pointSituation, 24],
  2606. ["建筑情况:", val.attrbutes.buildSituation, 24],
  2607. ["车辆停放:", val.attrbutes.vehiclePark, 24],
  2608. ["是否有产证:", val.attrbutes.birthCert, 24],
  2609. ["产证情况:", val.attrbutes.birthCertSituation, 24],
  2610. ],
  2611. }, ];
  2612. this.popup(val._attrbutes, arrayList, true)
  2613. }
  2614. if (val.attrbutes.stationType == 111 || val.attrbutes.stationType == 112) {
  2615. let arrayList = [{
  2616. title: [val.attrbutes.buildName, true],
  2617. children: [
  2618. ["建筑地址:", val.attrbutes.address, 24],
  2619. ["主要产权人:", val.attrbutes.principalPropertyOwner, 24],
  2620. ["统一社会信用代码:", val.attrbutes.creditCode, 24],
  2621. ["物业服务企业名称:", val.attrbutes.propertyServiceName, 24],
  2622. ["建成年份:", val.attrbutes.completeYear, 24],
  2623. ["建筑高度:", val.attrbutes.buildHigh, 24],
  2624. ["地上建筑层数:", val.attrbutes.aboveFloor, 24],
  2625. ["地下建筑层数:", val.attrbutes.underFloor, 24],
  2626. ["建筑类型:", val.attrbutes.buildType, 24],
  2627. ["功能用途:", val.attrbutes.functionalPurpose, 24],
  2628. ],
  2629. }, ];
  2630. this.popup(val._attrbutes, arrayList, true)
  2631. }
  2632. if (val.attrbutes.stationType == 17 || val.attrbutes.stationType == 18) {
  2633. let bianhao = JSON.parse(val.attrbutes.extendData).test1
  2634. let arrayList = [{
  2635. title: [val.attrbutes.facilityName, true],
  2636. children: [
  2637. ["编号:", bianhao, 24],
  2638. ["消防站地址:", val.attrbutes.address, 24],
  2639. ["消防站类型:", val.attrbutes.stationType == 17 ? "一级微型消防站" : val.attrbutes.stationType == 18 ? "街镇专职消防队" : "", 24],
  2640. ],
  2641. }, ];
  2642. this.popup(val._attrbutes, arrayList, true)
  2643. }
  2644. }
  2645. if (type == "企业消防" || type == "社区消防") {
  2646. let arrayList = [{
  2647. title: [val.attrbutes.facilityName, true],
  2648. children: [
  2649. ["站点地址:", val.attrbutes.address, 24],
  2650. ["站点类型:", val.attrbutes.facilityType == 13 ? "重点单位微站" :
  2651. val.attrbutes.facilityType == 14 ? "一般单位微站" : val.attrbutes.facilityType == 15 ? "居委会微站" : val.attrbutes.facilityType == 16 ? "村委会微站" : "", 24
  2652. ],
  2653. ["街镇:", val.attrbutes.streetTown, 24],
  2654. ],
  2655. }, ];
  2656. this.popup(val._attrbutes, arrayList, true)
  2657. }
  2658. }
  2659. //警情综合处置
  2660. if (pageType == "comprehensive-disposal") {
  2661. if (type == "实时警情") {
  2662. let arrayList = [{
  2663. title: ["案件详情", true],
  2664. children: [
  2665. ["案件编号:", val.attrbutes.ajbh, 24],
  2666. ["案件描述:", val.attrbutes.bcxx, 24],
  2667. ["报警时间:", val.attrbutes.tzsj, 24],
  2668. ["案件类型:", val.attrbutes.ajlx, 24],
  2669. ["警情类别:", val.attrbutes.type, 24],
  2670. ["警情等级:", val.attrbutes.ajdj, 24],
  2671. ["案发地址:", val.attrbutes.afdz, 24],
  2672. ["调动车辆:", val.attrbutes.cdcl, 24],
  2673. ["处置对象:", val.attrbutes.czdx, 24],
  2674. ["主责中队:", val.attrbutes.zhongdui, 24],
  2675. ["案件状态:", val.attrbutes.cssj, 24],
  2676. ["到场时间:", val.attrbutes.dcsj, 24],
  2677. ["出水时间:", val.attrbutes.cssj, 24],
  2678. ["控制时间:", val.attrbutes.kzsj, 24],
  2679. ["熄灭时间:", val.attrbutes.xmsj, 24],
  2680. ["所属街道:", val.attrbutes.streettown, 24],
  2681. ],
  2682. }, ];
  2683. this.popup(val._attrbutes, arrayList, true)
  2684. }
  2685. }
  2686. //城市消防体征
  2687. if (pageType == "fire-signs") {
  2688. if (type == "仓库") {
  2689. let arrayList = [{
  2690. title: [val.attrbutes.companyName, true],
  2691. children: [
  2692. ["单位地址:", val.attrbutes.address, 24],
  2693. ["单位类别:", val.attrbutes.companyType, 24],
  2694. ["单位使用性质:", val.attrbutes.companyNature, 24],
  2695. ["单位(法人)名称:", val.attrbutes.delegateName, 24],
  2696. ["统一社会信用代码:", val.attrbutes.socialCode, 24],
  2697. ["所辖派出所:", val.attrbutes.policeStation, 24],
  2698. ["消防安全责任人:", val.attrbutes.fireDutyName, 24],
  2699. ["消防安全管理人:", val.attrbutes.fireManageName, 24],
  2700. ["联系电话(手机):", val.attrbutes.linkPhone, 24],
  2701. ["是否自主消防安全管理:", val.attrbutes.fireSafetyManage, 24],
  2702. ["单位(场所)面积(㎡):", val.attrbutes.companyArea, 24],
  2703. ["行业类别:", val.attrbutes.industryType, 24],
  2704. ["是否为洁净厂房:", val.attrbutes.cleanRoom, 24],
  2705. ["生产经营组织形式:", val.attrbutes.organizationForm, 24],
  2706. ["网格号:", val.attrbutes.gridNo, 24],
  2707. ["年份:", val.attrbutes.particularYear, 24],
  2708. ["提交时间:", val.attrbutes.submitTime, 24],
  2709. ["经度:", val.attrbutes.longitude, 24],
  2710. ["纬度:", val.attrbutes.latitude, 24],
  2711. ],
  2712. }, ];
  2713. this.popup(val._attrbutes, arrayList, true)
  2714. }
  2715. }
  2716. },
  2717. });
  2718. }
  2719. },
  2720. /**
  2721. * 点分布(撒点四叶草 安保专用)
  2722. * @param {坐标信息} lnglats
  2723. * @param {页面类型} type
  2724. */
  2725. addMarkerSYC(lnglats, pageType, type) {
  2726. let that = this
  2727. let icon = "";
  2728. var target = lnglats.map((val, ind) => {
  2729. var wgs84 = CoordUtil.gcj02towgs84(Number(val.gisX) || Number(val.longitude), Number(val.gisY) || Number(val.latitude))
  2730. var x = wgs84[0]
  2731. var y = wgs84[1]
  2732. if (
  2733. pageType == "security-plan") {
  2734. let marker = {
  2735. id: ind + 1,
  2736. attrbutes: val,
  2737. position: {
  2738. x: x,
  2739. y: y,
  2740. z: 0
  2741. },
  2742. image: {
  2743. url: type == "国家会展中心" ? this.stores.sadianIcon.hzzx : this.stores.sadianIcon.zdwxxfz,
  2744. width: val.type == "国家会展中心" ? 83 : 19.5,
  2745. height: val.type == "国家会展中心" ? 59 : 25,
  2746. },
  2747. };
  2748. return marker;
  2749. } else {
  2750. let marker = {
  2751. id: ind + 1,
  2752. attrbutes: val,
  2753. position: { x: val.gisBaiDuX, y: val.gisBaiDuY, z: 0 },
  2754. image: { url: icon, width: 300, height: 300 },
  2755. };
  2756. return marker;
  2757. }
  2758. });
  2759. //撒点类型
  2760. window.jMap.Locate.pointLocate(target, {
  2761. //撒点
  2762. isZoom: false,
  2763. //animate: { "show": true },
  2764. scaleByDistance: {
  2765. minScaling: 1,
  2766. maxScaling: 1,
  2767. minDistance: 50, //最小距离
  2768. maxDistance: 120000 //最大距离
  2769. },
  2770. click: (val) => {
  2771. },
  2772. });
  2773. },
  2774. /**
  2775. * 点分布(网格名称 安保专用)
  2776. * @param {坐标信息} lnglats
  2777. * @param {页面类型} type
  2778. */
  2779. addMarkerWG(lnglats, pageType, type) {
  2780. let that = this
  2781. let icon = "";
  2782. var target = lnglats.map((val, ind) => {
  2783. var wgs84 = CoordUtil.gcj02towgs84(Number(val.gisX) || Number(val.longitude), Number(val.gisY) || Number(val.latitude))
  2784. var x = wgs84[0]
  2785. var y = wgs84[1]
  2786. if (
  2787. pageType == "security-plan") {
  2788. let marker = {
  2789. id: ind + 1,
  2790. attrbutes: val,
  2791. position: {
  2792. x: x,
  2793. y: y,
  2794. z: 0
  2795. },
  2796. image: {
  2797. url: val.type == "wgmc_hc" ? this.stores.sadianIcon.wgmc_hc : val.type == "wgmc_xh" ? this.stores.sadianIcon.wgmc_xh : val.type == "wgmc_qb" ? this.stores.sadianIcon.wgmc_qb : val.type == "wgmc_hq" ? this.stores.sadianIcon.wgmc_hq : val.type == "国家会展中心" ? this.stores.sadianIcon.hzzx : this.stores.sadianIcon.zdwxxfz,
  2798. width: val.type == "wgmc_hc" ? 98 : val.type == "wgmc_xh" ? 98 : val.type == "wgmc_qb" ? 98 : val.type == "wgmc_hq" ? 98 : val.type == "国家会展中心" ? 83 : 19.5,
  2799. height: val.type == "wgmc_hc" ? 33 : val.type == "wgmc_xh" ? 33 : val.type == "wgmc_qb" ? 33 : val.type == "wgmc_hq" ? 33 : val.type == "国家会展中心" ? 59 : 25,
  2800. },
  2801. };
  2802. return marker;
  2803. } else {
  2804. let marker = {
  2805. id: ind + 1,
  2806. attrbutes: val,
  2807. position: { x: val.gisBaiDuX, y: val.gisBaiDuY, z: 0 },
  2808. image: { url: icon, width: 300, height: 300 },
  2809. };
  2810. return marker;
  2811. }
  2812. });
  2813. //撒点类型
  2814. window.jMap.Locate.pointLocate(target, {
  2815. //撒点
  2816. isZoom: false,
  2817. //animate: { "show": true },
  2818. scaleByDistance: {
  2819. minScaling: 1,
  2820. maxScaling: 1,
  2821. minDistance: 50, //最小距离
  2822. maxDistance: 120000 //最大距离
  2823. },
  2824. click: (val) => {
  2825. },
  2826. });
  2827. },
  2828. //聚合点击事件
  2829. clusterMapCallBack(clusterPointArr, clickPoint) {
  2830. let val = clusterPointArr.attributes
  2831. if (val.type2 == "消火栓可用" || val.type2 == "消火栓不可用") {
  2832. let arrayList = [{
  2833. title: ["消火栓", true],
  2834. children: [
  2835. ["水源位置:", val.address, 24],
  2836. ["电话:", val.phone, 12],
  2837. ["责任人:", val.dutyPerson, 12],
  2838. ["支队名称:", val.detachmentName, 24],
  2839. ["管辖机构:", val.jurisdictionalAgency, 12],
  2840. ["水源类型:", val.type, 12],
  2841. ["取水形式:", val.getWaterType, 12],
  2842. ["水源性质:", val.waterAdministrative, 12],
  2843. ["供水单位:", val.waterUnit, 24],
  2844. ["水压(Mpa):", val.waterGage, 24],
  2845. ["状态:", val.status == 1 ? "可用" : "不可用", 12],
  2846. ],
  2847. }, ];
  2848. this.popup(val, arrayList, true)
  2849. } else if (type == "天然水源") {
  2850. let arrayList = [{
  2851. title: [val.facilityName, true],
  2852. children: [
  2853. ["水源位置:", val.address, 24],
  2854. ],
  2855. }, ];
  2856. this.popup(val, arrayList, true)
  2857. }
  2858. },
  2859. /**
  2860. * 热力图
  2861. * @param {} data
  2862. */
  2863. heatMap(data) {
  2864. let target = []
  2865. if (data.length > 0) {
  2866. for (let i = 0; i < data.length; i++) {
  2867. var wgs84 = CoordUtil.gcj02towgs84(Number(data[i].gisX) || Number(data[i].longitude), Number(data[i].gisY) || Number(data[i].latitude))
  2868. var x = wgs84[0]
  2869. var y = wgs84[1]
  2870. target[i] = []
  2871. target[i].x = x
  2872. target[i].y = y
  2873. }
  2874. let options = {
  2875. style: {
  2876. minOpacity: 0.6,
  2877. maxOpacity: 0.9,
  2878. radius: 50,
  2879. gradient: {
  2880. '.10': 'green',
  2881. '.45': 'yellow',
  2882. '.65': 'orange',
  2883. '.80': 'red'
  2884. }
  2885. },
  2886. isZoom: false
  2887. }
  2888. jMap.HeatMap.show(target, options)
  2889. } else {
  2890. jMap.HeatMap.hide()
  2891. }
  2892. },
  2893. // 无经纬度创建标点和点击事件
  2894. addMarkerAddress(lnglats) {
  2895. let target = lnglats.map((val, ind) => {
  2896. if (!val.addressId) {
  2897. let addressInfo = window.jMap.queryMphInfo(val.address)[val.address][0];
  2898. return {
  2899. ...val,
  2900. addressId: addressInfo.address_id, // 地址id
  2901. province: addressInfo.province, // 市
  2902. district: addressInfo.district, // 区
  2903. sub_district: addressInfo.sub_district, // 街镇
  2904. streetname: addressInfo.streetname, // 路
  2905. address: addressInfo.address, // 户
  2906. committee: addressInfo.committee, // 居委会
  2907. };
  2908. }
  2909. });
  2910. target = target.reduce((item, next) => {
  2911. !item.some((val) => val.addressId === next.addressId) && item.push(next);
  2912. return item;
  2913. }, []);
  2914. for (let item = 0; item < Math.floor(target.length / 100); item++) {
  2915. setTimeout(() => {
  2916. window.jMap.locateMph(
  2917. target
  2918. .slice(item * 100, (item + 1) * 100)
  2919. .map((val) => val.addressId)
  2920. .join(), {
  2921. isZoom: false,
  2922. scaleByDistance: { minScaling: 0, maxScaling: 1, minDistance: 1000, maxDistance: 30000 },
  2923. click: (value) => {
  2924. this.elementInfo(value, "fire");
  2925. },
  2926. }
  2927. );
  2928. }, 0);
  2929. }
  2930. },
  2931. elementInfo(value, type) {
  2932. let element = "";
  2933. if (type == "重点单位") {
  2934. element = `<div class="ysc-dynamic-layer ys-css3-box" onclick="vue.removePopup">
  2935. <div class="tableTooltip mapTab">
  2936. <div class="tableTitle">
  2937. <div>1212121</div>
  2938. </div>
  2939. </div>
  2940. </div>`;
  2941. }
  2942. this.addMarkerInfo(element, value, type);
  2943. },
  2944. bufferL(val) {
  2945. let target = {
  2946. geometry: [{
  2947. position: [],
  2948. type: 'point'
  2949. }],
  2950. distance: 7000
  2951. }
  2952. for (let i = 0; i < val.length; i++) {
  2953. // var wgs84 = CoordUtil.gcj02towgs84(Number(val.longitude + '0000000' ), Number(val.latitude + '0000000' ))
  2954. // var x = wgs84[0]
  2955. // var y = wgs84[1]
  2956. target.geometry[i] = {
  2957. position: [{ x: Number(val[i].longitude) + '0000000', y: Number(val[i].latitude) + '0000000' }],
  2958. type: 'point'
  2959. }
  2960. // if(val[i].stationType ==7 ){
  2961. // target
  2962. // }
  2963. }
  2964. var options = { callBack: this.bufferCallback };
  2965. jMap.Buffer.generate(target, options);
  2966. },
  2967. bufferL1(val) {
  2968. let target = {
  2969. geometry: [{
  2970. position: [],
  2971. type: 'point'
  2972. }],
  2973. distance: ((Math.sqrt(7 / 3.14) * 1000) / 2).toFixed(0)
  2974. }
  2975. for (let i = 0; i < val.length; i++) {
  2976. var wgs84 = CoordUtil.gcj02towgs84(Number(val[i].longitude), Number(val[i].latitude))
  2977. var x = wgs84[0].toFixed(13)
  2978. var y = wgs84[1].toFixed(13)
  2979. target.geometry[i] = {
  2980. position: [{ x: x, y: y }],
  2981. type: 'point'
  2982. }
  2983. }
  2984. var options = { callBack: bufferCallback };
  2985. jMap.Buffer.generate(target, options);
  2986. },
  2987. bufferL2(val) {
  2988. let target = {
  2989. geometry: [{
  2990. position: [],
  2991. type: 'point'
  2992. }],
  2993. distance: ((Math.sqrt(4 / 3.14) * 1000) / 2).toFixed(0)
  2994. }
  2995. for (let i = 0; i < val.length; i++) {
  2996. var wgs84 = CoordUtil.gcj02towgs84(Number(val[i].longitude), Number(val[i].latitude))
  2997. var x = wgs84[0].toFixed(13)
  2998. var y = wgs84[1].toFixed(13)
  2999. target.geometry[i] = {
  3000. position: [{ x: x, y: y }],
  3001. type: 'point'
  3002. }
  3003. }
  3004. var options = { callBack: bufferCallback };
  3005. jMap.Buffer.generate(target, options);
  3006. },
  3007. bufferL3(val) {
  3008. let target = {
  3009. geometry: [{
  3010. position: [],
  3011. type: 'point'
  3012. }],
  3013. distance: ((Math.sqrt(2 / 3.14) * 1000) / 2).toFixed(0)
  3014. }
  3015. for (let i = 0; i < val.length; i++) {
  3016. var wgs84 = CoordUtil.gcj02towgs84(Number(val[i].longitude), Number(val[i].latitude))
  3017. var x = wgs84[0].toFixed(13)
  3018. var y = wgs84[1].toFixed(13)
  3019. target.geometry[i] = {
  3020. position: [{ x: x, y: y }],
  3021. type: 'point'
  3022. }
  3023. }
  3024. var options = { callBack: bufferCallback };
  3025. jMap.Buffer.generate(target, options);
  3026. },
  3027. bufferL4(val) {
  3028. let target = {
  3029. geometry: [{
  3030. position: [],
  3031. type: 'point'
  3032. }],
  3033. distance: ((Math.sqrt(2 / 3.14) * 1000) / 2).toFixed(0)
  3034. }
  3035. for (let i = 0; i < val.length; i++) {
  3036. var wgs84 = CoordUtil.gcj02towgs84(Number(val[i].longitude), Number(val[i].latitude))
  3037. var x = wgs84[0].toFixed(13)
  3038. var y = wgs84[1].toFixed(13)
  3039. target.geometry[i] = {
  3040. position: [{ x: x, y: y }],
  3041. type: 'point'
  3042. }
  3043. }
  3044. var options = { callBack: bufferCallback };
  3045. jMap.Buffer.generate(target, options);
  3046. },
  3047. bufferL5(val) {
  3048. let target = {
  3049. geometry: [{
  3050. position: [],
  3051. type: 'point'
  3052. }],
  3053. distance: ((Math.sqrt(2 / 3.14) * 1000) / 2).toFixed(0)
  3054. }
  3055. for (let i = 0; i < val.length; i++) {
  3056. var wgs84 = CoordUtil.gcj02towgs84(Number(val[i].longitude), Number(val[i].latitude))
  3057. var x = wgs84[0].toFixed(13)
  3058. var y = wgs84[1].toFixed(13)
  3059. target.geometry[i] = {
  3060. position: [{ x: x, y: y }],
  3061. type: 'point'
  3062. }
  3063. }
  3064. var options = { callBack: bufferCallback };
  3065. jMap.Buffer.generate(target, options);
  3066. },
  3067. bufferCallback(result) {
  3068. for (var i in result) {
  3069. var target = {
  3070. id: i,
  3071. position: CoordUtil.arrayToJson(result[i].rings[0]) // 二维坐标数组转JSON数组,详见三中
  3072. };
  3073. var options = {
  3074. style: {
  3075. color: 'red',
  3076. transparency: 0.6,
  3077. }
  3078. }
  3079. // if (result[i].stationType == 1) {
  3080. // options.style.color = '#f80000',
  3081. // options.style.transparency = 0.6
  3082. // }
  3083. // if (result[i].stationType == 2) {
  3084. // options.style.color = '#f88c00',
  3085. // options.style.transparency = 0.6
  3086. // }
  3087. // if (result[i].stationType == 3) {
  3088. // options.style.color = '#0092f8',
  3089. // options.style.transparency = 0.6
  3090. // }
  3091. jMap.Locate.regionLocate(target, options)
  3092. }
  3093. },
  3094. bufferCallback1(result) {
  3095. for (var i in result) {
  3096. var target = {
  3097. id: i,
  3098. position: CoordUtil.arrayToJson(result[i].rings[0]) // 二维坐标数组转JSON数组,详见三中
  3099. };
  3100. jMap.Locate.regionLocate(target, {
  3101. style: {
  3102. color: '#f80000',
  3103. transparency: 0.6,
  3104. }
  3105. })
  3106. }
  3107. },
  3108. bufferCallback2(result2) {
  3109. for (var i in result2) {
  3110. var target = {
  3111. id: i,
  3112. position: CoordUtil.arrayToJson(result2[i].rings[0]) // 二维坐标数组转JSON数组,详见三中
  3113. };
  3114. jMap.Locate.regionLocate(target, {
  3115. isZoom: true,
  3116. style: {
  3117. color: '#f88c00',
  3118. transparency: 0.6,
  3119. }
  3120. })
  3121. }
  3122. },
  3123. bufferCallback3(result3) {
  3124. for (var i in result3) {
  3125. var target = {
  3126. id: i,
  3127. position: CoordUtil.arrayToJson(result3[i].rings[0]) // 二维坐标数组转JSON数组,详见三中
  3128. };
  3129. jMap.Locate.regionLocate(target, {
  3130. style: {
  3131. color: '#0092f8',
  3132. transparency: 0.6,
  3133. }
  3134. })
  3135. }
  3136. },
  3137. addMarkerInfo(element, value, type, isBtn = false) {
  3138. var wgs84 = CoordUtil.gcj02towgs84(Number(value.gisX) || Number(value.longitude), Number(value.gisY) || Number(value.latitude))
  3139. var x = wgs84[0]
  3140. var y = wgs84[1]
  3141. let _this = this
  3142. // window.jMap.Popup && window.jMap.Popup.hide([this.oldPopup && this.oldPopup.id]);
  3143. if (this.oldPopup && value.id === this.oldPopup.id) {
  3144. window.jMap.Popup.hide();
  3145. return (this.oldPopup = null);
  3146. }
  3147. if (type == "selfManagement" || type == "water") {
  3148. window.jMap.Popup.show({
  3149. id: value.id,
  3150. //position: value.wgs84position, //使用自定义窗体
  3151. position: { x: x, y: y }, //使用自定义窗体
  3152. element: element,
  3153. }, { isZoom: false, offset: [0, -40] });
  3154. }
  3155. if (type == "重点单位") {
  3156. _this.stores.zddwIdSD(value.companyId);
  3157. // localStorage.setItem("zddw",)
  3158. // window.jMap.Popup.show({
  3159. // // position: { x: value.gisX, y: value.gisY }, //使用自定义窗体
  3160. // position: { x: x, y: y }, //使用自定义窗体
  3161. // element: element,
  3162. // }, { isZoom: 100, offset: [0, -40] });
  3163. }
  3164. // if (!isBtn) {
  3165. // window.jMap.goTo({
  3166. // x: Number(value.wgs84position.x),
  3167. // y: Number(value.wgs84position.y),
  3168. // radius: 1000,
  3169. // }, {
  3170. // duration: 3,
  3171. // offset: {
  3172. // heading: -4,
  3173. // pitch: -70,
  3174. // range: 0,
  3175. // },
  3176. // });
  3177. // window.jMap.Buffer.generate({
  3178. // geometry: [{ position: [{ x: Number(value.wgs84position.x), y: Number(value.wgs84position.y) }], type: "point" }],
  3179. // distance: 1000,
  3180. // }, {
  3181. // callBack: (el) => {
  3182. // for (const i in el) {
  3183. // var target = {
  3184. // id: i,
  3185. // position: CoordUtil.arrayToJson(el[i].rings[0]),
  3186. // };
  3187. // }
  3188. // window.jMap.Locate.regionLocate(target, {
  3189. // style: {
  3190. // color: "rgba(235, 98, 98, .1)",
  3191. // transparency: 0.3,
  3192. // },
  3193. // });
  3194. // },
  3195. // });
  3196. // }
  3197. this.oldPopup = value;
  3198. },
  3199. removePopup(e) {
  3200. },
  3201. /**
  3202. * 气泡窗
  3203. * @param {*} data
  3204. * @param {*} arrayList 展示数据
  3205. * @param {*} type
  3206. * @param {*} other
  3207. * @param {*} zb 坐标类型
  3208. */
  3209. popup(data, arrayList, type, other, zb) {
  3210. if (type) {
  3211. if (!other) {
  3212. var html = document.createElement('div');
  3213. html.className = 'ysc-dynamic-layer ys-css3-box';
  3214. var line = document.createElement('div');
  3215. line.className = 'line';
  3216. var main = document.createElement('div');
  3217. main.className = 'main';
  3218. if (zb) {
  3219. main.setAttribute('style', 'position: fixed;top:120px;left:39%;max-height:500px;overflow-y: scroll;background:none;width:400px;bottom:auto; padding:10px 10px 5px 0 !important; border-radius: 0.05rem;border:1px solid rgba(115, 251, 253, 1);box - shadow: inset 0 0 1px 0.0125rem rgba(115, 251, 253, 1); background:rgba(0, 0, 0, 0.6)');
  3220. } else {
  3221. main.setAttribute('style', 'position: absolute;top:50%;max-height:500px;overflow-y: scroll;background:none;width:400px;bottom:auto; padding:10px 10px 5px 0 !important; border-radius: 0.05rem;border:1px solid rgba(115, 251, 253, 1);box - shadow: inset 0 0 1px 0.0125rem rgba(115, 251, 253, 1); background:rgba(0, 0, 0, 0.6)');
  3222. }
  3223. var click = document.createElement('div');
  3224. click.setAttribute('style', 'float: right;width: 13px;height: 13px;position: absolute;top:8px;right:16px;cursor: pointer');
  3225. var img = document.createElement('img');
  3226. img.className = 'click';
  3227. img.setAttribute("src", this.stores.sadianIcon.close);
  3228. img.setAttribute("style", 'width: 20px;height: 20px;')
  3229. click.appendChild(img)
  3230. var contain = document.createElement('div');
  3231. contain.setAttribute('style', 'margin-left: 3%;right:50px;top:30px;padding: 0px 0 ');
  3232. if (arrayList[0].title[1]) {
  3233. var p = document.createElement('div');
  3234. p.setAttribute('style', 'font-size:18px;color:#73fbfd;line-height:25px');
  3235. p.innerHTML = arrayList[0].title[0]
  3236. contain.appendChild(p)
  3237. }
  3238. for (let i = 0; i < arrayList[0].children.length; i++) {
  3239. if (arrayList[0].children[i][1]) {
  3240. let textWrap = document.createElement('div');
  3241. textWrap.setAttribute('style', 'font-size:14px;color:#fff;line-height:25px;');
  3242. let p1 = document.createElement('span');
  3243. p1.setAttribute('style', 'color:#73fbfd;');
  3244. p1.innerHTML = arrayList[0].children[i][0]
  3245. // if()
  3246. let p2 = document.createElement('span');
  3247. p2.setAttribute('style', 'color:#fff;word-break:break-all !important');
  3248. p2.innerHTML = arrayList[0].children[i][1]
  3249. textWrap.appendChild(p1)
  3250. textWrap.appendChild(p2)
  3251. contain.appendChild(textWrap)
  3252. }
  3253. }
  3254. setTimeout(() => {
  3255. main.appendChild(click)
  3256. main.appendChild(contain)
  3257. if (zb) {
  3258. } else {
  3259. html.appendChild(line)
  3260. }
  3261. html.appendChild(main)
  3262. let text = html.innerHTML.replace(/"click"/g, '"click" onclick="vue.popup(false, false, false)"')
  3263. if (zb) {
  3264. var wgs84 = [Number(data.gisX), Number(data.gisY)]
  3265. } else {
  3266. var wgs84 = CoordUtil.gcj02towgs84(Number(data.gisX) || Number(data.longitude), Number(data.gisY) || Number(data.latitude))
  3267. }
  3268. var x = wgs84[0]
  3269. var y = wgs84[1]
  3270. var target = {
  3271. id: '100001',
  3272. position: { x: x, y: y, z: 0 },
  3273. element: `<div class="ysc-dynamic-layer ys-css3-box" style="">${text}</div>`
  3274. };
  3275. var options = {
  3276. // isZoom: true,
  3277. offset: [-6, -275]
  3278. };
  3279. jMap.Popup.show(target, options);
  3280. }, 10)
  3281. } else {
  3282. }
  3283. } else {
  3284. jMap.Popup.hide();
  3285. }
  3286. },
  3287. }
  3288. }