response/target/classes/static/assets/fixshanghaimap-f0420b51.js
2025-06-27 10:04:22 +08:00

2 lines
35 KiB
JavaScript

import{a as tl}from"./runtime-dom.esm-bundler-22744054.js";import{V as ul}from"./vue-draggable-resizable-b9fb2b7f.js";/* empty css */import{B as Wl}from"./barshow-13e7c767.js";import{v as Ll}from"./vue3-color.common-6905acff.js";import{q as rl,r as sl,s as $l,u as Gl,t as Zl}from"./SettingAPI-c096c500.js";import{E as jl}from"./linq-29a07fb5.js";import{_ as Ol}from"./headMenu.vue_vue_type_script_setup_true_component_true_lang-2701b4f3.js";import{bi as il}from"./index-aefe9e2d.js";import{d as le,a as H,b as L,B as ee,r as m,g as U,A as u,v as r,j as S,k as n,x as dl,F as el,o as _,l as h,i as pl,L as gl,c as cl,s as oe,n as c}from"./runtime-core.esm-bundler-381a9959.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./_commonjsHelpers-edff4021.js";import"./requests-80e4eb3a.js";import"./router-427c56b2.js";import"./vue-router-ac8e5fd1.js";const ae=n("span",{class:"bg-red-600 flex text-white px-12"},"red",-1),ne=n("span",{class:"bg-green-600 flex text-white px-12"},"green",-1),te=n("span",{class:"bg-yellow-600 flex text-white px-12"},"yellow",-1),ue=n("span",{class:"bg-blue-600 flex text-white px-12"},"blue",-1),Le=n("p",{class:"h-2"},null,-1),re={class:"w-full flex flex-col space-y-2"},se={class:"w-full flex flex-row"},ie=n("label",{for:"",class:"bg-red-50 px-2 mx-2"},"红",-1),de=n("label",{for:"",class:"bg-green-50 px-2 mx-2"},"绿",-1),pe=n("label",{for:"",class:"bg-yellow-50 px-2 mx-2"},"黄",-1),ge=n("label",{for:"",class:"bg-blue-50 px-2 mx-2"},"蓝",-1),ce={class:"w-full flex flex-row"},fe=n("label",{for:"",class:"bg-red-100 px-2 mx-2"},"红",-1),ve=n("label",{for:"",class:"bg-green-100 px-2 mx-2"},"绿",-1),me=n("label",{for:"",class:"bg-yellow-100 px-2 mx-2"},"黄",-1),he=n("label",{for:"",class:"bg-blue-100 px-2 mx-2"},"蓝",-1),xe={class:"w-full flex flex-row"},ye=n("label",{for:"",class:"bg-red-200 px-2 mx-2"},"红",-1),be=n("label",{for:"",class:"bg-green-200 px-2 mx-2"},"绿",-1),_e=n("label",{for:"",class:"bg-yellow-200 px-2 mx-2"},"黄",-1),ke=n("label",{for:"",class:"bg-blue-200 px-2 mx-2"},"蓝",-1),Ve={class:"w-full flex flex-row"},we=n("label",{for:"",class:"bg-red-300 px-2 mx-2"},"红",-1),Ce=n("label",{for:"",class:"bg-green-300 px-2 mx-2"},"绿",-1),Te=n("label",{for:"",class:"bg-yellow-300 px-2 mx-2"},"黄",-1),Se=n("label",{for:"",class:"bg-blue-300 px-2 mx-2"},"蓝",-1),Me={class:"w-full flex flex-row"},Pe=n("label",{for:"",class:"bg-red-400 px-2 mx-2"},"红",-1),Re=n("label",{for:"",class:"bg-green-400 px-2 mx-2"},"绿",-1),Je=n("label",{for:"",class:"bg-yellow-400 px-2 mx-2"},"黄",-1),He=n("label",{for:"",class:"bg-blue-400 px-2 mx-2"},"蓝",-1),Ue={class:"w-full flex flex-row"},Fe=n("label",{for:"",class:"bg-red-500 px-2 mx-2"},"红",-1),Be=n("label",{for:"",class:"bg-green-500 px-2 mx-2"},"绿",-1),De=n("label",{for:"",class:"bg-yellow-500 px-2 mx-2"},"黄",-1),ze=n("label",{for:"",class:"bg-blue-500 px-2 mx-2"},"蓝",-1),Ae={class:"w-full flex flex-row"},Xe=n("label",{for:"",class:"bg-red-600 px-2 mx-2"},"红",-1),Ne=n("label",{for:"",class:"bg-green-600 px-2 mx-2"},"绿",-1),Ye=n("label",{for:"",class:"bg-yellow-600 px-2 mx-2"},"黄",-1),Ke=n("label",{for:"",class:"bg-blue-600 px-2 mx-2"},"蓝",-1),Qe={class:"w-full flex flex-row"},qe=n("label",{for:"",class:"bg-red-700 px-2 mx-2"},"红",-1),Ee=n("label",{for:"",class:"bg-green-700 px-2 mx-2"},"绿",-1),Ie=n("label",{for:"",class:"bg-yellow-700 px-2 mx-2"},"黄",-1),We=n("label",{for:"",class:"bg-blue-700 px-2 mx-2"},"蓝",-1),$e={class:"w-full flex flex-row"},Ge=n("label",{for:"",class:"bg-red-800 px-2 mx-2"},"红",-1),Ze=n("label",{for:"",class:"bg-green-800 px-2 mx-2"},"绿",-1),je=n("label",{for:"",class:"bg-yellow-800 px-2 mx-2"},"黄",-1),Oe=n("label",{for:"",class:"bg-blue-800 px-2 mx-2"},"蓝",-1),l2={class:"w-full flex flex-row"},e2=n("label",{for:"",class:"bg-red-900 px-2 mx-2"},"红",-1),o2=n("label",{for:"",class:"bg-green-900 px-2 mx-2"},"绿",-1),a2=n("label",{for:"",class:"bg-yellow-900 px-2 mx-2"},"黄",-1),n2=n("label",{for:"",class:"bg-blue-900 px-2 mx-2"},"蓝",-1),t2=n("p",{class:"h-2"},null,-1),u2=n("p",{class:"h-2"},null,-1),L2=n("span",null,"标题文字:",-1),r2=n("span",null,"文字颜色:",-1),s2=n("span",null,"开平方计算:",-1),i2={class:"w-full h-12 bg-slate-600 px-4 space-x-2 flex justify-center items-center"},d2=n("div",{class:"text-white"},"加载保存配置:",-1),p2=n("p",{class:"w-5"},null,-1),g2=n("div",{class:"text-white"},"当前命名另存:",-1),c2={class:"w-64 flex flex-col justify-center items-center space-y-3"},f2={class:"w-full px-1 space-y-2"},v2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",contentScriptType:"text/ecmascript",zoomAndPan:"magnify",contentStyleType:"text/css",id:"图层_1",mapName:"上海市",mapType:"省市地图","enable-background":"0 0 600 500",version:"1.1","xml:space":"preserve",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 600 500",x:"0px",y:"0px"},M="2",H2=le({__name:"fixshanghaimap",setup(m2){const e=H({backgroundColor:"white",isPresetColorRange:!1,colorRange:["0","0","0","0","0","0","0","0","0"],radioColorType:"red",barTitle:"数据展示",barTextColor:"",isSqrt:!1}),k=L(!1),fl=()=>{k.value=!k.value},vl=a=>{a.isOk?(console.log("确定"),e.backgroundColor=a.activeColor,k.value=!1):(console.log("取消"),k.value=!1)},V=L(!1),ml=()=>{V.value=!V.value},hl=a=>{a.isOk?(console.log("确定"),e.barTextColor=a.activeColor,V.value=!1):(console.log("取消"),V.value=!1)},w=H({show1:!1,width:"30%",height:"100%"}),xl=()=>{w.show1=!0},ol=L(0),P=L(null),yl=L(null),bl=L(null),_l=L(null),kl=L(null),Vl=L(null),wl=L(null),Cl=L(null),Tl=L(null),Sl=L(null),Ml=L(null),Pl=L(null),Rl=L(null),Jl=L(null),Hl=L(null),Ul=L(null),Fl=L(null),R=L(null),Bl=L(null),F=L(null),B=L(null),D=L(null),z=L(null),A=L(null),X=L(null),N=L(null),Y=L(null),K=L(null),Q=L(null),q=L(null),E=L(null),I=L(null),W=L(null),$=L(null),G=L(null),o=H({Shanghai:{value:"0",color:"fill-red-100"},ChongMing:{value:"80",color:"fill-red-100"},PuDong:{value:"50",color:"fill-red-100"},BaoShan:{value:"100",color:"fill-red-100"},JiaDing:{value:"10",color:"fill-red-100"},QingPu:{value:"0",color:"fill-red-100"},JinShan:{value:"0",color:"fill-red-100"},FengXian:{value:"0",color:"fill-red-100"},SongJiang:{value:"0",color:"fill-red-100"},MinHang:{value:"0",color:"fill-red-100"},XuHui:{value:"0",color:"fill-red-100"},ChangNing:{value:"0",color:"fill-red-100"},PuTuo:{value:"0",color:"fill-red-100"},JingAn:{value:"0",color:"fill-red-100"},HongKou:{value:"0",color:"fill-red-100"},HuangPu:{value:"0",color:"fill-red-100"},YangPu:{value:"0",color:"fill-red-100"},Bar:{value:"0",color:"fill-red-100"},Options:{}}),Z=L([]),Dl=()=>{al(P.value,o.Shanghai),al(R.value,o.Bar)},J=a=>({left:a.left,top:a.top,width:a.width,height:a.height,value:"0",color:"fill-red-100"}),al=(a,l)=>{console.log("d显示布局",a,l),a.left=l.left,a.top=l.top,a.width=l.width,a.height=l.height};L(" font-xs");const d=a=>{let l=new Array;if(l.push({id:"Shanghai",value:o.Shanghai.value}),l.push({id:"ChongMing",value:o.ChongMing.value}),l.push({id:"PuDong",value:o.PuDong.value}),l.push({id:"BaoShan",value:o.BaoShan.value}),l.push({id:"JiaDing",value:o.JiaDing.value}),l.push({id:"QingPu",value:o.QingPu.value}),l.push({id:"JinShan",value:o.JinShan.value}),l.push({id:"FengXian",value:o.FengXian.value}),l.push({id:"SongJiang",value:o.SongJiang.value}),l.push({id:"MinHang",value:o.MinHang.value}),l.push({id:"XuHui",value:o.XuHui.value}),l.push({id:"ChangNing",value:o.ChangNing.value}),l.push({id:"PuTuo",value:o.PuTuo.value}),l.push({id:"JingAn",value:o.JingAn.value}),l.push({id:"HongKou",value:o.HongKou.value}),l.push({id:"HuangPu",value:o.HuangPu.value}),l.push({id:"YangPu",value:o.YangPu.value}),console.log("新生成数据值",l),e.isSqrt==!0&&(console.log("开方之前的值",a),a=Math.sqrt(a),console.log("开方之后的值",a)),e.isPresetColorRange==!0){for(let f=0;f<=10;f++)if(console.log("色彩区间",f,a,e.colorRange[f],e.colorRange[f+1]),a>parseFloat(e.colorRange[f])&&a<=parseFloat(e.colorRange[f+1]))return f+1;return 0}else{let f=l.reduce(function(s,b){return Math.max(s,b.value)},0),y=l.reduce(function(s,b){return Math.min(s,b.value)},0);var v=(f-y)/9;console.log("计算结果",f,y,v),ol.value=f;for(let s=0;s<=9;s++)if(v*s>=a)return s+1;return 1}},p=(a,l)=>{switch(l){case 1:e.radioColorType=="red"&&(a.value="fill-red-50"),e.radioColorType=="yellow"&&(a.value="fill-yellow-50"),e.radioColorType=="blue"&&(a.value="fill-blue-50"),e.radioColorType=="green"&&(a.value="fill-green-50");break;case 2:e.radioColorType=="red"&&(a.value="fill-red-100"),e.radioColorType=="yellow"&&(a.value="fill-yellow-100"),e.radioColorType=="blue"&&(a.value="fill-blue-100"),e.radioColorType=="green"&&(a.value="fill-green-100");break;case 3:e.radioColorType=="red"&&(a.value="fill-red-200"),e.radioColorType=="yellow"&&(a.value="fill-yellow-200"),e.radioColorType=="blue"&&(a.value="fill-blue-200"),e.radioColorType=="green"&&(a.value="fill-green-200");break;case 4:e.radioColorType=="red"&&(a.value="fill-red-300"),e.radioColorType=="yellow"&&(a.value="fill-yellow-300"),e.radioColorType=="blue"&&(a.value="fill-blue-300"),e.radioColorType=="green"&&(a.value="fill-green-300");break;case 5:e.radioColorType=="red"&&(a.value="fill-red-400"),e.radioColorType=="yellow"&&(a.value="fill-yellow-400"),e.radioColorType=="blue"&&(a.value="fill-blue-400"),e.radioColorType=="green"&&(a.value="fill-green-400");break;case 6:e.radioColorType=="red"&&(a.value="fill-red-500"),e.radioColorType=="yellow"&&(a.value="fill-yellow-500"),e.radioColorType=="blue"&&(a.value="fill-blue-500"),e.radioColorType=="green"&&(a.value="fill-green-500");break;case 7:e.radioColorType=="red"&&(a.value="fill-red-600"),e.radioColorType=="yellow"&&(a.value="fill-yellow-600"),e.radioColorType=="blue"&&(a.value="fill-blue-600"),e.radioColorType=="green"&&(a.value="fill-green-600");break;case 8:e.radioColorType=="red"&&(a.value="fill-red-700"),e.radioColorType=="yellow"&&(a.value="fill-yellow-700"),e.radioColorType=="blue"&&(a.value="fill-blue-700"),e.radioColorType=="green"&&(a.value="fill-green-700");break;case 9:e.radioColorType=="red"&&(a.value="fill-red-800"),e.radioColorType=="yellow"&&(a.value="fill-yellow-800"),e.radioColorType=="blue"&&(a.value="fill-blue-800"),e.radioColorType=="green"&&(a.value="fill-green-800");break;case 10:e.radioColorType=="red"&&(a.value="fill-red-900"),e.radioColorType=="yellow"&&(a.value="fill-yellow-900"),e.radioColorType=="blue"&&(a.value="fill-blue-900"),e.radioColorType=="green"&&(a.value="fill-green-900");break}},nl=()=>{var a=e.colorRange;console.log("cArr",a);for(let l=1;l<a.length;l++)if(console.log("arr1,arr2",a[l-1],a[l]),parseFloat(a[l])<parseFloat(a[l-1]))return!1;return!0},j=()=>{if(nl(),e.isPresetColorRange==!0&&(console.log("开始识别"),nl()===!1))return il({type:"success",message:"覆盖的数据结构配置不正确,需要按照从小到大的状态进行设置"}),!1;p(Bl,d(parseFloat(o.Shanghai.value))),p(F,d(parseFloat(o.ChongMing.value))),p(B,d(parseFloat(o.PuDong.value))),p(D,d(parseFloat(o.BaoShan.value))),p(z,d(parseFloat(o.JiaDing.value))),p(A,d(parseFloat(o.QingPu.value))),p(X,d(parseFloat(o.JinShan.value))),p(N,d(parseFloat(o.FengXian.value))),p(Y,d(parseFloat(o.SongJiang.value))),p(K,d(parseFloat(o.MinHang.value))),p(Q,d(parseFloat(o.XuHui.value))),p(q,d(parseFloat(o.ChangNing.value))),p(E,d(parseFloat(o.PuTuo.value))),p(I,d(parseFloat(o.JingAn.value))),p(W,d(parseFloat(o.HongKou.value))),p($,d(parseFloat(o.HuangPu.value))),p(G,d(parseFloat(o.YangPu.value)));const a=[];a.push({name:"崇明",value:o.ChongMing.value,color:F.value}),a.push({name:"浦东",value:o.PuDong.value,color:B.value}),a.push({name:"宝山",value:o.BaoShan.value,color:D.value}),a.push({name:"嘉定",value:o.JiaDing.value,color:z.value}),a.push({name:"青浦",value:o.QingPu.value,color:A.value}),a.push({name:"金山",value:o.JinShan.value,color:X.value}),a.push({name:"奉贤",value:o.FengXian.value,color:N.value}),a.push({name:"松江",value:o.SongJiang.value,color:Y.value}),a.push({name:"闵行",value:o.MinHang.value,color:K.value}),a.push({name:"徐汇",value:o.XuHui.value,color:Q.value}),a.push({name:"长宁",value:o.ChangNing.value,color:q.value}),a.push({name:"普陀",value:o.PuTuo.value,color:E.value}),a.push({name:"静安",value:o.JingAn.value,color:I.value}),a.push({name:"虹口",value:o.HongKou.value,color:W.value}),a.push({name:"黄浦",value:o.HuangPu.value,color:$.value}),a.push({name:"杨浦",value:o.YangPu.value,color:G.value}),Z.value=a.sort((l,v)=>parseFloat(l.value)>parseFloat(v.value)?-1:parseFloat(l.value)<parseFloat(v.value)?1:0),console.log("curArrayColor",Z.value)};ee(()=>{j(),zl(),Al()});const C=L([]),zl=()=>{rl(M).then(a=>{C.value=a.data,console.log("lstMapLayout",C)})},T=L([]),Al=()=>{sl(M).then(a=>{T.value=a.data.data,console.log("optMaps",T.value)})},x=H({name:"",value:""}),O=L(""),Xl=()=>{o.Shanghai=J(P.value),o.Bar=J(R.value),o.Options=e;var a={layouttype:M,layoutname:O.value,layoutdata:encodeURIComponent(JSON.stringify(o))};$l(JSON.stringify(a).replace(/\"/g,"'")),ll()},Nl=()=>{o.Shanghai=J(P.value),o.Bar=J(R.value),o.Options=e;var a={layoutname:x.value,id:x.value,layoutdata:encodeURIComponent(JSON.stringify(o))};Gl(JSON.stringify(a).replace(/\"/g,"'")),ll()},Yl=()=>{il({type:"success",message:"删除编号"+x.value+"的设计内容"});var a=Zl(x.value);console.log("删除返回",a),ll()},ll=()=>{rl(M).then(a=>{C.value=a.data,console.log("lstMapLayout",C)}),sl(M).then(a=>{T.value=a.data.data,console.log("optMaps",T.value)})},Kl=a=>{var l=JSON.parse(jl.from(C.value.data).where(function(v){return v.id==x.value}).first().layoutdata);e.backgroundColor=l.Options.backgroundColor,e.barTextColor=l.Options.barTextColor,e.barTitle=l.Options.barTitle,e.colorRange=l.Options.colorRange,e.isPresetColorRange=l.Options.isPresetColorRange,e.isSqrt=l.Options.isSqrt,e.radioColorType=l.Options.radioColorType,o.Shanghai=l.Shanghai,o.ChongMing=l.ChongMing,o.PuDong=l.PuDong,o.BaoShan=l.BaoShan,o.JiaDing=l.JiaDing,o.QingPu=l.QingPu,o.JinShan=l.JinShan,o.FengXian=l.FengXian,o.SongJiang=l.SongJiang,o.MinHang=l.MinHang,o.XuHui=l.XuHui,o.ChangNing=l.ChangNing,o.PuTuo=l.PuTuo,o.JingAn=l.JingAn,o.HongKou=l.HongKou,o.HuangPu=l.HuangPu,o.YangPu=l.YangPu,o.Bar=l.Bar,o.Bar=l.Bar,console.log("柱状图",l.Bar),Dl(),j()};return(a,l)=>{const v=m("nut-radio"),f=m("nut-radio-group"),y=m("nut-cell"),s=m("nut-form-item"),b=m("nut-checkbox"),i=m("nut-input-number"),g=m("nut-input"),Ql=m("nut-form"),ql=m("nut-popup"),El=m("el-option"),Il=m("el-select");return _(),U(el,null,[u(ql,{position:"right",visible:w.show1,"onUpdate:visible":l[42]||(l[42]=t=>w.show1=t),style:S({width:w.width,height:w.height})},{default:r(()=>[u(Ql,{class:"px-2"},{default:r(()=>[u(s,{label:"地图色系",class:"border border-red-500 rounded-2xl"},{default:r(()=>[u(y,null,{default:r(()=>[u(f,{modelValue:e.radioColorType,"onUpdate:modelValue":l[0]||(l[0]=t=>e.radioColorType=t)},{default:r(()=>[u(v,{label:"red"},{default:r(()=>[ae]),_:1}),u(v,{label:"green"},{default:r(()=>[ne]),_:1}),u(v,{label:"yellow"},{default:r(()=>[te]),_:1}),u(v,{label:"blue"},{default:r(()=>[ue]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),Le,u(s,{label:"色系值覆盖",class:"border border-red-500 rounded-2xl flex flex-row space-y-2"},{default:r(()=>[n("div",re,[u(b,{modelValue:e.isPresetColorRange,"onUpdate:modelValue":l[1]||(l[1]=t=>e.isPresetColorRange=t)},{default:r(()=>[h("覆盖预设")]),_:1},8,["modelValue"]),n("div",se,[u(i,{modelValue:e.colorRange[0],"onUpdate:modelValue":l[2]||(l[2]=t=>e.colorRange[0]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[1],"onUpdate:modelValue":l[3]||(l[3]=t=>e.colorRange[1]=t)},null,8,["modelValue"]),ie,de,pe,ge]),n("div",ce,[u(i,{modelValue:e.colorRange[1],"onUpdate:modelValue":l[4]||(l[4]=t=>e.colorRange[1]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[2],"onUpdate:modelValue":l[5]||(l[5]=t=>e.colorRange[2]=t)},null,8,["modelValue"]),fe,ve,me,he]),n("div",xe,[u(i,{modelValue:e.colorRange[2],"onUpdate:modelValue":l[6]||(l[6]=t=>e.colorRange[2]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[3],"onUpdate:modelValue":l[7]||(l[7]=t=>e.colorRange[3]=t)},null,8,["modelValue"]),ye,be,_e,ke]),n("div",Ve,[u(i,{modelValue:e.colorRange[3],"onUpdate:modelValue":l[8]||(l[8]=t=>e.colorRange[3]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[4],"onUpdate:modelValue":l[9]||(l[9]=t=>e.colorRange[4]=t)},null,8,["modelValue"]),we,Ce,Te,Se]),n("div",Me,[u(i,{modelValue:e.colorRange[4],"onUpdate:modelValue":l[10]||(l[10]=t=>e.colorRange[4]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[5],"onUpdate:modelValue":l[11]||(l[11]=t=>e.colorRange[5]=t)},null,8,["modelValue"]),Pe,Re,Je,He]),n("div",Ue,[u(i,{modelValue:e.colorRange[5],"onUpdate:modelValue":l[12]||(l[12]=t=>e.colorRange[5]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[6],"onUpdate:modelValue":l[13]||(l[13]=t=>e.colorRange[6]=t)},null,8,["modelValue"]),Fe,Be,De,ze]),n("div",Ae,[u(i,{modelValue:e.colorRange[6],"onUpdate:modelValue":l[14]||(l[14]=t=>e.colorRange[6]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[7],"onUpdate:modelValue":l[15]||(l[15]=t=>e.colorRange[7]=t)},null,8,["modelValue"]),Xe,Ne,Ye,Ke]),n("div",Qe,[u(i,{modelValue:e.colorRange[7],"onUpdate:modelValue":l[16]||(l[16]=t=>e.colorRange[7]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[8],"onUpdate:modelValue":l[17]||(l[17]=t=>e.colorRange[8]=t)},null,8,["modelValue"]),qe,Ee,Ie,We]),n("div",$e,[u(i,{modelValue:e.colorRange[8],"onUpdate:modelValue":l[18]||(l[18]=t=>e.colorRange[8]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[9],"onUpdate:modelValue":l[19]||(l[19]=t=>e.colorRange[9]=t)},null,8,["modelValue"]),Ge,Ze,je,Oe]),n("div",l2,[u(i,{modelValue:e.colorRange[9],"onUpdate:modelValue":l[20]||(l[20]=t=>e.colorRange[9]=t)},null,8,["modelValue"]),h("——"),u(i,{modelValue:e.colorRange[10],"onUpdate:modelValue":l[21]||(l[21]=t=>e.colorRange[10]=t)},null,8,["modelValue"]),e2,o2,a2,n2])])]),_:1}),t2,u(s,{label:"背景色",class:"border border-red-500 rounded-2xl flex flex-row space-y-2"},{default:r(()=>[n("div",null,[n("div",{style:S([{width:"150px",height:"20px",cursor:"pointer"},{backgroundColor:e.backgroundColor}]),onClick:fl}," 显示 ",4),u(pl(Ll.Sketch),{class:"-left-3",modelValue:e.backgroundColor,"onUpdate:modelValue":l[22]||(l[22]=t=>e.backgroundColor=t),show:k.value,onChangButton:vl},null,8,["modelValue","show"])])]),_:1}),u2,u(s,{label:"柱状图设置",class:"border border-red-500 rounded-2xl flex flex-row space-y-2"},{default:r(()=>[u(y,{title:""},{default:r(()=>[L2,dl(n("input",{type:"",name:"","onUpdate:modelValue":l[23]||(l[23]=t=>e.barTitle=t)},null,512),[[tl,e.barTitle]])]),_:1}),u(y,{title:""},{default:r(()=>[r2,n("div",null,[n("div",{style:S([{width:"150px",height:"20px",cursor:"pointer"},{backgroundColor:e.barTextColor}]),onClick:ml}," 显示 ",4),u(pl(Ll.Sketch),{class:"-left-3",modelValue:e.barTextColor,"onUpdate:modelValue":l[24]||(l[24]=t=>e.barTextColor=t),show:V.value,onChangButton:hl},null,8,["modelValue","show"])])]),_:1}),u(y,{title:""},{default:r(()=>[s2,u(b,{modelValue:e.isSqrt,"onUpdate:modelValue":l[25]||(l[25]=t=>e.isSqrt=t)},null,8,["modelValue"])]),_:1})]),_:1}),u(s,{label:"崇明"},{default:r(()=>[u(g,{modelValue:o.ChongMing.value,"onUpdate:modelValue":l[26]||(l[26]=t=>o.ChongMing.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"浦东"},{default:r(()=>[u(g,{modelValue:o.PuDong.value,"onUpdate:modelValue":l[27]||(l[27]=t=>o.PuDong.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"宝山"},{default:r(()=>[u(g,{modelValue:o.BaoShan.value,"onUpdate:modelValue":l[28]||(l[28]=t=>o.BaoShan.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"嘉定"},{default:r(()=>[u(g,{modelValue:o.JiaDing.value,"onUpdate:modelValue":l[29]||(l[29]=t=>o.JiaDing.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"青浦"},{default:r(()=>[u(g,{modelValue:o.QingPu.value,"onUpdate:modelValue":l[30]||(l[30]=t=>o.QingPu.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"金山"},{default:r(()=>[u(g,{modelValue:o.JinShan.value,"onUpdate:modelValue":l[31]||(l[31]=t=>o.JinShan.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"奉贤"},{default:r(()=>[u(g,{modelValue:o.FengXian.value,"onUpdate:modelValue":l[32]||(l[32]=t=>o.FengXian.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"松江"},{default:r(()=>[u(g,{modelValue:o.SongJiang.value,"onUpdate:modelValue":l[33]||(l[33]=t=>o.SongJiang.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"闵行"},{default:r(()=>[u(g,{modelValue:o.MinHang.value,"onUpdate:modelValue":l[34]||(l[34]=t=>o.MinHang.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"徐汇"},{default:r(()=>[u(g,{modelValue:o.XuHui.value,"onUpdate:modelValue":l[35]||(l[35]=t=>o.XuHui.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"长宁"},{default:r(()=>[u(g,{modelValue:o.ChangNing.value,"onUpdate:modelValue":l[36]||(l[36]=t=>o.ChangNing.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"普陀"},{default:r(()=>[u(g,{modelValue:o.PuTuo.value,"onUpdate:modelValue":l[37]||(l[37]=t=>o.PuTuo.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"静安"},{default:r(()=>[u(g,{modelValue:o.JingAn.value,"onUpdate:modelValue":l[38]||(l[38]=t=>o.JingAn.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"虹口"},{default:r(()=>[u(g,{modelValue:o.HongKou.value,"onUpdate:modelValue":l[39]||(l[39]=t=>o.HongKou.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"黄浦"},{default:r(()=>[u(g,{modelValue:o.HuangPu.value,"onUpdate:modelValue":l[40]||(l[40]=t=>o.HuangPu.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1}),u(s,{label:"杨浦"},{default:r(()=>[u(g,{modelValue:o.YangPu.value,"onUpdate:modelValue":l[41]||(l[41]=t=>o.YangPu.value=t),class:"nut-input-text",placeholder:"请输入值",type:"text"},null,8,["modelValue"])]),_:1})]),_:1}),n("button",{onClick:j,class:"w-full bg-red-300"},"确定")]),_:1},8,["visible","style"]),n("div",{class:"w-full h-screen bg-white",style:S({backgroundColor:e.backgroundColor})},[n("div",i2,[u(Ol,{menuname:"上海整体"}),d2,u(Il,{modelValue:x.value,"onUpdate:modelValue":l[43]||(l[43]=t=>x.value=t),class:"m-2",placeholder:"Select"},{default:r(()=>[(_(!0),U(el,null,gl(T.value,t=>(_(),cl(El,{key:t.value,label:t.name,value:t.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n("button",{class:"px-4 w-28 text-white rounded-lg bg-green-500 bg-gradient-to-br from-green-400 to-blue-800",onClick:Kl}," 加载数据 "),n("button",{class:"px-4 w-28 text-white rounded-lg bg-green-500 bg-gradient-to-br from-green-400 to-blue-800",onClick:Nl}," 覆盖保存 "),n("button",{class:"px-4 w-28 text-white rounded-lg bg-green-500 bg-gradient-to-br from-green-400 to-blue-800",onClick:Yl}," 删除数据 "),p2,g2,dl(n("input",{type:"",name:"","onUpdate:modelValue":l[44]||(l[44]=t=>O.value=t)},null,512),[[tl,O.value]]),n("button",{class:"px-4 w-28 text-white rounded-lg bg-green-500 bg-gradient-to-br from-green-400 to-blue-800",onClick:Xl}," 另存保存 "),n("button",{class:"px-4 w-28 text-white rounded-lg bg-green-500 bg-gradient-to-br from-green-400 to-blue-800",onClick:xl}," 设置参数 ")]),u(ul,{ref_key:"refBar",ref:R,style:{border:"none"}},{default:r(()=>[n("div",c2,[n("div",{class:"w-full justify-center text-center",style:S({color:e.barTextColor})},oe(e.barTitle),5),n("div",f2,[(_(!0),U(el,null,gl(Z.value,t=>(_(),cl(Wl,{name:t.name,value:t.value,color:e.barTextColor,max:ol.value},null,8,["name","value","color","max"]))),256))])])]),_:1},512),u(ul,{ref_key:"refShanghai",ref:P,style:{border:"none","z-index":"998"}},{default:r(()=>[(_(),U("svg",v2,[n("path",{ref_key:"refHuangPu",ref:Ul,class:c($.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M296 256L297 261L299 261L299 265L305 265L310 258L305 251L306 250L304 249L299 251L298 250L299 255L296 255z",id:"黄浦区"},null,2),n("path",{ref_key:"refXuHui",ref:Ml,class:c([Q.value,"leaflet-interactive"]),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M296 256L291 259L291 261L287 263L287 265L285 265L284 268L280 270L280 274L283 275L280 276L281 277L283 275L286 283L291 284L291 288L293 288L295 290L293 291L296 292L298 292L299 287L296 278L299 275L298 268L301 266L299 265L299 261L297 261L297 258z",id:"徐汇区"},null,2),n("path",{ref_key:"refChangNing",ref:Pl,class:c(q.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M292 258L290 255L287 254L281 257L275 256L267 249L265 251L267 252L267 257L265 260L266 263L264 265L266 269L276 265L287 265L287 263L290 262L291 259z",id:"长宁区"},null,2),n("path",{ref_key:"refJingAn",ref:Jl,class:c(I.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M296 256L299 255L298 250L303 250L302 246L297 239L299 227L291 226L286 235L288 241L289 240L292 242L295 247L288 254L292 258L295 257z",id:"静安区"},null,2),n("path",{ref_key:"refPuTuo",ref:Rl,class:c(E.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M270 251L272 255L273 254L274 256L281 257L289 253L295 247L291 241L289 240L286 243L281 239L282 236L280 234L272 235L272 231L262 236L264 236L265 240L267 241L273 241L271 243L273 245L276 244L275 248L273 248L270 251z",id:"普陀区"},null,2),n("path",{ref_key:"refHongKou",ref:Hl,class:c(W.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M303 229L300 227L297 234L297 239L302 245L303 250L306 250L312 247L306 237L308 235L305 234L303 231z",id:"虹口区"},null,2),n("path",{ref_key:"refYangPu",ref:Fl,class:c(G.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M311 248L318 247L325 240L323 224L314 218L312 220L309 218L305 223L307 225L306 229L303 229L305 234L308 235L306 239L309 241L311 247z",id:"杨浦区"},null,2),n("path",{ref_key:"refMinHang",ref:Sl,class:c(K.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M271 329L288 324L291 321L301 318L305 319L306 323L311 320L313 322L312 323L317 325L318 324L320 326L325 323L326 314L321 317L323 309L321 307L318 309L318 307L320 305L319 304L322 302L321 301L325 300L326 298L321 298L320 296L323 294L324 295L321 288L319 290L316 287L311 288L310 286L307 288L307 286L305 287L305 285L303 285L301 287L302 289L300 288L298 292L293 291L294 288L291 288L291 284L286 283L283 275L281 277L280 276L282 275L280 274L279 270L281 268L284 268L285 265L276 265L266 269L264 265L266 263L265 260L267 253L265 251L264 253L260 254L256 253L253 251L251 248L252 247L248 247L244 244L240 250L242 250L245 253L244 254L248 263L256 263L266 280L265 281L269 287L269 293L271 292L274 298L272 302L270 302L271 303L267 305L266 304L264 310L264 318L266 318L262 324L262 327L269 330z",id:"闵行区"},null,2),n("path",{ref_key:"refBaoShan",ref:_l,class:c(D.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M288 241L287 233L290 230L290 226L298 226L303 229L306 229L305 223L309 218L312 220L314 218L311 217L308 213L310 206L313 204L309 200L311 200L310 199L282 178L283 176L267 168L262 172L258 170L256 172L260 179L260 184L265 192L264 199L263 198L259 200L259 203L262 204L262 208L264 209L266 214L264 218L268 221L266 222L268 226L264 232L266 234L271 231L272 235L280 234L282 236L281 239L283 239L286 243z",id:"宝山区"},null,2),n("path",{ref_key:"refJiaDing",ref:kl,class:c(z.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M218 239L217 242L219 241L222 243L222 245L226 247L231 246L231 244L233 244L234 246L237 243L239 243L251 247L251 249L255 253L260 254L264 253L267 249L271 251L273 248L275 248L276 245L273 245L271 243L273 241L265 240L264 236L262 236L265 234L264 233L268 226L266 223L267 221L264 217L266 215L265 211L262 208L262 204L259 203L259 200L263 198L264 199L265 193L262 188L262 185L260 185L261 181L259 180L260 179L257 173L254 175L250 175L248 177L247 176L244 179L244 177L242 179L242 177L241 178L239 174L237 179L231 179L231 181L226 184L225 187L216 189L216 191L220 192L221 194L218 194L216 196L219 199L217 201L218 203L215 204L217 206L208 210L209 211L207 213L206 212L206 216L209 217L209 219L212 219L213 224L211 228L213 232L215 229L216 230L218 234L217 235L220 237L218 239z",id:"嘉定区"},null,2),n("path",{ref_key:"refPuDong",ref:bl,class:c(B.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M325 323L337 322L338 325L356 325L362 328L371 337L374 338L374 341L379 343L379 353L376 367L383 377L411 378L416 380L421 389L428 386L424 375L434 364L435 342L430 318L426 308L407 286L406 283L387 263L370 237L362 229L334 210L313 204L310 206L308 213L311 217L320 221L323 224L325 240L318 247L309 248L305 251L310 257L307 264L298 268L299 274L296 280L299 284L298 289L302 289L301 287L303 285L305 285L305 287L307 286L307 288L309 286L315 287L319 290L321 288L323 289L324 294L320 295L320 298L323 297L325 298L325 300L323 300L319 304L320 305L318 306L318 308L321 307L323 309L321 316L322 317L323 315L324 316L326 314L324 319L325 322zM421 258L422 269L425 275L435 274L439 266L439 257L428 253L422 255zM406 250L406 255L410 262L412 264L416 263L417 253L407 249z",id:"浦东新区"},null,2),n("path",{ref_key:"refJinShan",ref:wl,class:c(X.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M178 337L178 350L180 350L177 351L176 353L177 356L183 358L184 361L182 361L182 367L180 367L176 372L176 376L181 372L186 374L190 378L190 376L188 377L190 374L191 375L190 373L193 372L194 369L204 365L205 367L210 367L209 371L214 375L211 379L211 385L209 386L210 389L220 389L223 391L228 388L229 390L231 387L233 387L237 391L238 396L248 403L247 410L249 419L272 419L288 403L302 396L291 377L286 378L285 376L283 376L282 372L281 374L277 372L277 360L271 355L269 349L256 350L254 347L253 354L249 354L249 352L247 352L246 350L242 350L240 345L236 343L232 347L223 348L219 346L219 349L214 347L215 351L212 353L207 352L210 346L204 345L201 349L203 350L203 352L193 351L189 353L189 351L188 352L185 350L187 341L179 337zM288 418L289 418zM287 415L288 415zM283 411L284 411z",id:"金山区"},null,2),n("path",{ref_key:"refSongJiang",ref:Tl,class:c(Y.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M262 273L260 275L250 277L251 282L247 281L245 283L246 284L242 282L240 283L242 284L236 288L235 286L237 282L232 282L230 280L228 281L225 279L226 287L224 287L223 290L221 290L221 292L218 293L218 295L208 289L206 290L203 294L204 298L209 300L211 304L204 306L202 305L202 303L199 305L204 311L203 315L200 315L205 319L204 331L203 330L203 332L197 336L195 336L190 331L190 335L188 335L186 339L187 341L185 349L188 352L189 351L189 353L192 351L203 352L204 350L201 349L204 345L210 346L207 352L208 353L215 352L215 347L217 349L219 349L219 347L221 346L222 348L232 347L236 343L242 347L242 350L246 350L249 354L253 354L253 347L255 350L266 350L270 348L269 343L272 342L271 329L269 330L262 327L262 324L267 318L264 318L265 304L267 305L271 303L270 302L272 302L274 298L272 292L269 293L268 290L270 289L263 275z",id:"松江区"},null,2),n("path",{ref_key:"refQingPu",ref:Vl,class:c(A.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M218 239L215 240L209 236L205 240L202 235L200 236L200 240L195 242L194 251L196 253L194 255L198 270L198 275L195 278L194 276L190 276L189 281L185 279L183 282L174 283L160 280L157 282L148 282L142 290L142 292L144 293L150 293L154 298L151 307L153 311L153 317L155 317L155 319L162 320L162 318L165 317L166 315L165 313L168 314L168 316L171 318L176 318L176 323L179 329L176 332L176 336L180 338L181 337L183 341L187 338L188 335L190 335L190 331L195 336L201 334L203 330L204 331L205 320L200 315L202 315L204 312L199 305L202 303L203 306L211 305L211 302L204 298L203 294L207 289L217 295L219 293L218 292L221 292L221 290L223 290L223 288L226 287L225 279L228 281L230 280L232 282L237 281L235 288L239 287L239 285L242 284L240 283L245 284L247 281L251 282L252 280L250 279L250 277L260 274L261 275L262 273L254 261L251 264L248 263L246 260L244 254L245 253L242 250L240 250L244 245L237 243L234 246L233 244L231 244L231 246L226 247L223 245L222 246L220 241L218 241z",id:"青浦区"},null,2),n("path",{ref_key:"refFengXian",ref:Cl,class:c(N.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M325 323L321 324L321 326L318 324L314 324L311 320L307 323L304 318L301 318L298 320L294 320L288 324L271 329L272 341L269 344L269 349L271 355L277 359L277 372L279 374L281 374L281 372L283 376L285 376L285 378L291 377L302 396L321 386L345 378L383 377L376 367L377 358L379 354L379 344L376 341L374 341L375 340L370 335L368 335L362 328L356 325L338 325L337 322L327 323z",id:"奉贤区"},null,2),n("path",{ref_key:"refChongMing",ref:yl,class:c(F.value),stroke:"#333","stroke-opacity":"1","stroke-width":"1","stroke-linecap":"round","stroke-linejoin":"round",fill:"#eee","fill-opacity":"0.5","fill-rule":"evenodd",d:"M429 137L363 119L344 112L341 113L334 109L331 110L307 95L294 93L288 89L284 82L286 82L277 71L260 59L251 60L230 71L209 94L215 95L253 137L274 156L280 146L285 144L290 145L300 149L319 162L337 171L354 175L389 191L399 193L415 192L431 183L434 179L435 174L433 163zM379 229L384 229L383 216L378 206L361 196L329 186L323 176L313 174L309 175L311 179L317 182L330 194L369 218L372 221L375 228L377 229zM498 196L499 196zM385 215L386 225L390 230L398 235L401 234L418 237L440 238L454 242L461 246L463 244L467 230L466 226L446 225L423 221L389 208L383 208L382 209L384 213zM340 188L342 188L342 186L339 183L332 178L327 178L329 183L337 188z",id:"崇明区"},null,2)]))]),_:1},512)],4)],64)}}});export{H2 as default};