ace-component-lib 0.0.35 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ace-component-lib.umd.js +25 -25
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function($t,Xe){typeof exports=="object"&&typeof module<"u"?module.exports=Xe(require("pinia"),require("@wangeditor/editor"),require("vue"),require("element-plus"),require("dayjs"),require("echarts/core"),require("@wangeditor/editor-for-vue")):typeof define=="function"&&define.amd?define(["pinia","@wangeditor/editor","vue","element-plus","dayjs","echarts/core","@wangeditor/editor-for-vue"],Xe):($t=typeof globalThis<"u"?globalThis:$t||self,$t["ace-component-lib"]=Xe($t.pinia,$t.editor,$t.Vue,$t.elementPlus,$t.dayjs,$t.core,$t.editorForVue))})(this,function($t,Xe,e,S,dr,Im,hd){"use strict";const zm="0.0.35",sB="";let Rm=class{constructor(n){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,n),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let n="";this.settings.url&&!this.settings.asyncUrl&&(n=this.settings.url);let r=this;if(this.settings.asyncUrl)return void r.settings.asyncUrl(function(i){let a=r.getPrintWindow(i);r.settings.preview?r.previewIfrmaeLoad():r.print(a)},r.settings.vue);let o=this.getPrintWindow(n);this.settings.url||this.write(o.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(o)}addEvent(n,r,o){n.addEventListener?n.addEventListener(r,o,!1):n.attachEvent?n.attachEvent("on"+r,o):n["on"+r]=o}previewIfrmaeLoad(){let n=document.getElementById("vue-pirnt-nb-previewBox");if(n){let r=this,o=n.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(o,"load",function(){r.previewBoxShow(),r.removeCanvasImg(),r.settings.previewOpenCallback()}),this.addEvent(n.querySelector(".previewBodyUtilPrintBtn"),"click",function(){r.settings.beforeOpenCallback(),r.settings.openCallback(),o.contentWindow.print(),r.settings.closeCallback()})}}removeCanvasImg(){let n=this;try{if(n.elsdom){let r=n.elsdom.querySelectorAll(".canvasImg");for(let o=0;o<r.length;o++)r[o].remove()}}catch(r){console.log(r)}}print(n){var r=this;let o=document.getElementById(this.settings.id)||n.f,i=document.getElementById(this.settings.id).contentWindow||n.f.contentWindow;r.settings.beforeOpenCallback(),r.addEvent(o,"load",function(){i.focus(),r.settings.openCallback(),i.print(),o.remove(),r.settings.closeCallback(),r.removeCanvasImg()})}write(n){n.open(),n.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),n.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let n="",r="",o="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,a=>{n+=a}),[].forEach.call(document.querySelectorAll("link"),function(a){a.href.indexOf(".css")>=0&&(r+=`<link type="text/css" rel="stylesheet" href="${a.href}" >`)});let i=document.styleSheets;if(i&&i.length>0)for(let a=0;a<i.length;a++)try{if(i[a].cssRules||i[a].rules){let l=i[a].cssRules||i[a].rules;for(let c=0;c<l.length;c++)o+=l[c].cssText}}catch(l){console.log(i[a].href+l)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,a=>{r+=`<link type="text/css" rel="stylesheet" href="${a}">`}),`<head><title>${this.settings.popTitle}</title>${n}${r}<style type="text/css">${o}</style></head>`}getBody(){let n=this.settings.ids;return n=n.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(n)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(n){let r=n.querySelectorAll("canvas");for(let o=0;o<r.length;o++)if(!r[o].style.display){let i=r[o].parentNode,a=r[o].toDataURL("image/png"),l=new Image;l.className="canvasImg",l.style.display="none",l.src=a,i.appendChild(l)}return n}getFormData(n){let r=n.cloneNode(!0),o=r.querySelectorAll("input,select,textarea"),i=r.querySelectorAll(".canvasImg,canvas"),a=-1;for(let l=0;l<i.length;l++){let c=i[l].parentNode,s=i[l];s.tagName.toLowerCase()==="canvas"?c.removeChild(s):s.style.display="block"}for(let l=0;l<o.length;l++){let c=o[l],s=c.getAttribute("type"),d=o[l];if(s||(s=c.tagName==="SELECT"?"select":c.tagName==="TEXTAREA"?"textarea":""),c.tagName==="INPUT")s==="radio"||s==="checkbox"?c.checked&&d.setAttribute("checked",c.checked):(d.value=c.value,d.setAttribute("value",c.value));else if(s==="select"){a++;for(let f=0;f<n.querySelectorAll("select").length;f++){let u=n.querySelectorAll("select")[f];if(!u.getAttribute("newbs")&&u.setAttribute("newbs",f),u.getAttribute("newbs")==a){let p=n.querySelectorAll("select")[a].selectedIndex;c.options[p].setAttribute("selected",!0)}}}else d.innerHTML=c.value,d.setAttribute("html",c.value)}return r}getPrintWindow(n){var r=this.Iframe(n);return{f:r,win:r.contentWindow||r,doc:r.doc}}previewBoxShow(){let n=document.getElementById("vue-pirnt-nb-previewBox");n&&(document.querySelector("html").setAttribute("style","overflow: hidden"),n.style.display="block")}previewBoxHide(){let n=document.getElementById("vue-pirnt-nb-previewBox");n&&(document.querySelector("html").setAttribute("style","overflow: visible;"),n.querySelector("iframe")&&n.querySelector("iframe").remove(),n.style.display="none")}previewBox(){let n=document.getElementById("vue-pirnt-nb-previewBox"),r="previewBody";if(n)return n.querySelector("iframe")&&n.querySelector("iframe").remove(),{close:n.querySelector(".previewClose"),previewBody:n.querySelector(".previewBody")};let o=document.createElement("div");o.setAttribute("id","vue-pirnt-nb-previewBox"),o.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),o.style.zIndex=this.settings.zIndex;let i=document.createElement("div");i.setAttribute("class","previewHeader"),i.setAttribute("style","padding: 5px 20px;"),i.innerHTML=this.settings.previewTitle,o.appendChild(i),this.close=document.createElement("div");let a=this.close;a.setAttribute("class","previewClose"),a.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let l=document.createElement("div"),c=document.createElement("div");l.setAttribute("class","closeBefore"),l.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),c.setAttribute("class","closeAfter"),c.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),a.appendChild(l),a.appendChild(c),i.appendChild(a),this.previewBody=document.createElement("div");let s=this.previewBody;s.setAttribute("class",r),s.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),o.appendChild(s);let d=document.createElement("div");d.setAttribute("class","previewBodyUtil"),d.setAttribute("style","height: 32px;background: #474747;position: relative;"),s.appendChild(d),this.previewBodyUtilPrintBtn=document.createElement("div");let f=this.previewBodyUtilPrintBtn;return f.setAttribute("class","previewBodyUtilPrintBtn"),f.innerHTML=this.settings.previewPrintBtnLabel,f.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),d.appendChild(f),document.body.appendChild(o),{close:this.close,previewBody:this.previewBody}}iframeBox(n,r){let o=document.createElement("iframe");return o.style.border="0px",o.style.position="absolute",o.style.width="0px",o.style.height="0px",o.style.right="0px",o.style.top="0px",o.setAttribute("id",n),o.setAttribute("src",r),o}Iframe(n){let r=this.settings.id;n=n||new Date().getTime();let o=this,i=this.iframeBox(r,n);try{if(this.settings.preview){i.setAttribute("style","border: 0px;flex: 1;");let a=this.previewBox(),l=a.previewBody,c=a.close;l.appendChild(i),this.addEvent(c,"click",function(){o.previewBoxHide()})}else document.body.appendChild(i);i.doc=null,i.doc=i.contentDocument?i.contentDocument:i.contentWindow?i.contentWindow.document:i.document}catch(a){throw new Error(a+". iframes may not be supported in this browser.")}if(i.doc==null)throw new Error("Cannot find document.");return i}};var md={directiveName:"print",mounted(t,n,r){let o=n.instance,i="";var a,l,c;l="click",c=()=>{if(typeof n.value=="string")i=n.value;else{if(typeof n.value!="object"||!n.value.id)return void window.print();{i=n.value.id;let d=i.replace(new RegExp("#","g"),"");document.getElementById(d)||(console.log("id in Error"),i="")}}s()},(a=t).addEventListener?a.addEventListener(l,c,!1):a.attachEvent?a.attachEvent("on"+l,c):a["on"+l]=c;const s=()=>{new Rm({ids:i,vue:o,url:n.value.url,standard:"",extraHead:n.value.extraHead,extraCss:n.value.extraCss,zIndex:n.value.zIndex||20002,previewTitle:n.value.previewTitle||"打印预览",previewPrintBtnLabel:n.value.previewPrintBtnLabel||"打印",popTitle:n.value.popTitle,preview:n.value.preview||!1,asyncUrl:n.value.asyncUrl,previewBeforeOpenCallback(){n.value.previewBeforeOpenCallback&&n.value.previewBeforeOpenCallback(o)},previewOpenCallback(){n.value.previewOpenCallback&&n.value.previewOpenCallback(o)},openCallback(){n.value.openCallback&&n.value.openCallback(o)},closeCallback(){n.value.closeCallback&&n.value.closeCallback(o)},beforeOpenCallback(){n.value.beforeOpenCallback&&n.value.beforeOpenCallback(o)}})}},install:function(t){t.directive("print",md)}},Fn=(t=>(t.Text="text",t.Select="select",t.Date="date",t.DateTime="datetime",t.CheckBox="checkbox",t.Switch="switch",t.Radio="radio",t.Textarea="textarea",t.Nnumber="number",t.NumberRange="numberRange",t.Cascader="cascader",t.Daterange="daterange",t.DateTimeRange="datetimerange",t.File="file",t.TreeSelect="treeSelect",t.Year="year",t.Hr="hr",t.Slot="slot",t.Editor="editor",t.Password="password",t.Json="json",t.Markdown="markdown",t.Rate="rate",t))(Fn||{});let ua=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((n,r)=>(r&=63,r<36?n+=r.toString(36):r<62?n+=(r-26).toString(36).toUpperCase():r>62?n+="-":n+="_",n),"");const Te=$t.defineStore({id:"design",state:()=>({theme:localStorage.getItem("design-theme")||"",stageWidth:1920,stageHeight:1080,scale:.2,targetsWidget:[],sketchRuleLine:{h:[],v:[]},widgetConfg:{config:{backgroundColor:"transparent",backgroundImage:""},list:[]},widgetHoverIds:[],pasteWidget:[],createLoading:!1,showRightPannel:!1,tempChartData:{},chartData:{}}),getters:{getScale(){return this.scale},getStage(){return{stageWidth:this.stageWidth,stageHeight:this.stageHeight}},getSketchRuleLine(){return this.sketchRuleLine},getTargetWidget(){return this.targetsWidget},getWidgetConfig(){return this.widgetConfg.config},getWidgetList(){return this.widgetConfg.list},getWidgetHoverIds(){return this.widgetHoverIds},getPasteWidget(){return this.pasteWidget},getCreateLoading(){return this.createLoading},getRightPannel(){return this.showRightPannel},getTheme(){return this.theme},getChartData(){return this.chartData}},actions:{setSacle(t){this.scale=t/100},setSketchRuleLine(t,n){this.sketchRuleLine.h=t,this.sketchRuleLine.v=n},clearSketchRuleLine(){this.sketchRuleLine={h:[],v:[]}},setTargetWidget(t){this.targetsWidget=t},setWidgetList(t){this.widgetConfg.list=t},setWidgetHoverIds(t){this.widgetHoverIds=t},delWidgetItem(t){this.setWidgetList(this.getWidgetList.filter(n=>!t.includes(n.id))),this.setTargetWidget(this.getTargetWidget.filter(n=>!t.includes(n.id)))},copyWidgetItem(t){this.pasteWidget=[],t.forEach(n=>{const r=this.getWidgetList.find(o=>o.id==n);r&&this.pasteWidget.push(r)})},pasteWidgetItem(){this.pasteWidget.forEach(r=>{const o=JSON.parse(JSON.stringify(r));let i=o.x,a=o.y;o.x+40>this.stageWidth-o.w?i=this.stageWidth-o.w-40:i+=40,o.y+40>this.stageHeight-o.h?a=this.stageHeight-o.h-40:a+=40,this.widgetConfg.list.unshift({...o,id:ua(),x:i,y:a,z:this.widgetConfg.list.length+1,locked:!1})})},sortWidgetList(){this.widgetConfg.list.sort((t,n)=>n.z-t.z)},setCreateLoading(t){this.createLoading=t,t&&(this.targetsWidget=[],this.clearSketchRuleLine())},setRightPannel(t){this.showRightPannel=t},setStageWidth(t){this.stageWidth=t,this.widgetConfg.config.stageWidth=t},setStageHeight(t){this.stageHeight=t,this.widgetConfg.config.stageHeight=t},setTheme(){this.theme=this.theme=="dark"?"":"dark",document.getElementsByTagName("html")[0].className=this.theme,localStorage.setItem("design-theme",this.theme)},setChartData(t){this.chartData=t}}});/*!
|
|
1
|
+
(function($t,Xe){typeof exports=="object"&&typeof module<"u"?module.exports=Xe(require("pinia"),require("@wangeditor/editor"),require("vue"),require("element-plus"),require("dayjs"),require("echarts/core"),require("@wangeditor/editor-for-vue")):typeof define=="function"&&define.amd?define(["pinia","@wangeditor/editor","vue","element-plus","dayjs","echarts/core","@wangeditor/editor-for-vue"],Xe):($t=typeof globalThis<"u"?globalThis:$t||self,$t["ace-component-lib"]=Xe($t.pinia,$t.editor,$t.Vue,$t.elementPlus,$t.dayjs,$t.core,$t.editorForVue))})(this,function($t,Xe,e,S,dr,Im,hd){"use strict";const zm="0.0.37",sB="";let Rm=class{constructor(n){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,n),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let n="";this.settings.url&&!this.settings.asyncUrl&&(n=this.settings.url);let r=this;if(this.settings.asyncUrl)return void r.settings.asyncUrl(function(i){let a=r.getPrintWindow(i);r.settings.preview?r.previewIfrmaeLoad():r.print(a)},r.settings.vue);let o=this.getPrintWindow(n);this.settings.url||this.write(o.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(o)}addEvent(n,r,o){n.addEventListener?n.addEventListener(r,o,!1):n.attachEvent?n.attachEvent("on"+r,o):n["on"+r]=o}previewIfrmaeLoad(){let n=document.getElementById("vue-pirnt-nb-previewBox");if(n){let r=this,o=n.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(o,"load",function(){r.previewBoxShow(),r.removeCanvasImg(),r.settings.previewOpenCallback()}),this.addEvent(n.querySelector(".previewBodyUtilPrintBtn"),"click",function(){r.settings.beforeOpenCallback(),r.settings.openCallback(),o.contentWindow.print(),r.settings.closeCallback()})}}removeCanvasImg(){let n=this;try{if(n.elsdom){let r=n.elsdom.querySelectorAll(".canvasImg");for(let o=0;o<r.length;o++)r[o].remove()}}catch(r){console.log(r)}}print(n){var r=this;let o=document.getElementById(this.settings.id)||n.f,i=document.getElementById(this.settings.id).contentWindow||n.f.contentWindow;r.settings.beforeOpenCallback(),r.addEvent(o,"load",function(){i.focus(),r.settings.openCallback(),i.print(),o.remove(),r.settings.closeCallback(),r.removeCanvasImg()})}write(n){n.open(),n.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),n.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let n="",r="",o="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,a=>{n+=a}),[].forEach.call(document.querySelectorAll("link"),function(a){a.href.indexOf(".css")>=0&&(r+=`<link type="text/css" rel="stylesheet" href="${a.href}" >`)});let i=document.styleSheets;if(i&&i.length>0)for(let a=0;a<i.length;a++)try{if(i[a].cssRules||i[a].rules){let l=i[a].cssRules||i[a].rules;for(let c=0;c<l.length;c++)o+=l[c].cssText}}catch(l){console.log(i[a].href+l)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,a=>{r+=`<link type="text/css" rel="stylesheet" href="${a}">`}),`<head><title>${this.settings.popTitle}</title>${n}${r}<style type="text/css">${o}</style></head>`}getBody(){let n=this.settings.ids;return n=n.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(n)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(n){let r=n.querySelectorAll("canvas");for(let o=0;o<r.length;o++)if(!r[o].style.display){let i=r[o].parentNode,a=r[o].toDataURL("image/png"),l=new Image;l.className="canvasImg",l.style.display="none",l.src=a,i.appendChild(l)}return n}getFormData(n){let r=n.cloneNode(!0),o=r.querySelectorAll("input,select,textarea"),i=r.querySelectorAll(".canvasImg,canvas"),a=-1;for(let l=0;l<i.length;l++){let c=i[l].parentNode,s=i[l];s.tagName.toLowerCase()==="canvas"?c.removeChild(s):s.style.display="block"}for(let l=0;l<o.length;l++){let c=o[l],s=c.getAttribute("type"),d=o[l];if(s||(s=c.tagName==="SELECT"?"select":c.tagName==="TEXTAREA"?"textarea":""),c.tagName==="INPUT")s==="radio"||s==="checkbox"?c.checked&&d.setAttribute("checked",c.checked):(d.value=c.value,d.setAttribute("value",c.value));else if(s==="select"){a++;for(let f=0;f<n.querySelectorAll("select").length;f++){let u=n.querySelectorAll("select")[f];if(!u.getAttribute("newbs")&&u.setAttribute("newbs",f),u.getAttribute("newbs")==a){let p=n.querySelectorAll("select")[a].selectedIndex;c.options[p].setAttribute("selected",!0)}}}else d.innerHTML=c.value,d.setAttribute("html",c.value)}return r}getPrintWindow(n){var r=this.Iframe(n);return{f:r,win:r.contentWindow||r,doc:r.doc}}previewBoxShow(){let n=document.getElementById("vue-pirnt-nb-previewBox");n&&(document.querySelector("html").setAttribute("style","overflow: hidden"),n.style.display="block")}previewBoxHide(){let n=document.getElementById("vue-pirnt-nb-previewBox");n&&(document.querySelector("html").setAttribute("style","overflow: visible;"),n.querySelector("iframe")&&n.querySelector("iframe").remove(),n.style.display="none")}previewBox(){let n=document.getElementById("vue-pirnt-nb-previewBox"),r="previewBody";if(n)return n.querySelector("iframe")&&n.querySelector("iframe").remove(),{close:n.querySelector(".previewClose"),previewBody:n.querySelector(".previewBody")};let o=document.createElement("div");o.setAttribute("id","vue-pirnt-nb-previewBox"),o.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),o.style.zIndex=this.settings.zIndex;let i=document.createElement("div");i.setAttribute("class","previewHeader"),i.setAttribute("style","padding: 5px 20px;"),i.innerHTML=this.settings.previewTitle,o.appendChild(i),this.close=document.createElement("div");let a=this.close;a.setAttribute("class","previewClose"),a.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let l=document.createElement("div"),c=document.createElement("div");l.setAttribute("class","closeBefore"),l.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),c.setAttribute("class","closeAfter"),c.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),a.appendChild(l),a.appendChild(c),i.appendChild(a),this.previewBody=document.createElement("div");let s=this.previewBody;s.setAttribute("class",r),s.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),o.appendChild(s);let d=document.createElement("div");d.setAttribute("class","previewBodyUtil"),d.setAttribute("style","height: 32px;background: #474747;position: relative;"),s.appendChild(d),this.previewBodyUtilPrintBtn=document.createElement("div");let f=this.previewBodyUtilPrintBtn;return f.setAttribute("class","previewBodyUtilPrintBtn"),f.innerHTML=this.settings.previewPrintBtnLabel,f.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),d.appendChild(f),document.body.appendChild(o),{close:this.close,previewBody:this.previewBody}}iframeBox(n,r){let o=document.createElement("iframe");return o.style.border="0px",o.style.position="absolute",o.style.width="0px",o.style.height="0px",o.style.right="0px",o.style.top="0px",o.setAttribute("id",n),o.setAttribute("src",r),o}Iframe(n){let r=this.settings.id;n=n||new Date().getTime();let o=this,i=this.iframeBox(r,n);try{if(this.settings.preview){i.setAttribute("style","border: 0px;flex: 1;");let a=this.previewBox(),l=a.previewBody,c=a.close;l.appendChild(i),this.addEvent(c,"click",function(){o.previewBoxHide()})}else document.body.appendChild(i);i.doc=null,i.doc=i.contentDocument?i.contentDocument:i.contentWindow?i.contentWindow.document:i.document}catch(a){throw new Error(a+". iframes may not be supported in this browser.")}if(i.doc==null)throw new Error("Cannot find document.");return i}};var md={directiveName:"print",mounted(t,n,r){let o=n.instance,i="";var a,l,c;l="click",c=()=>{if(typeof n.value=="string")i=n.value;else{if(typeof n.value!="object"||!n.value.id)return void window.print();{i=n.value.id;let d=i.replace(new RegExp("#","g"),"");document.getElementById(d)||(console.log("id in Error"),i="")}}s()},(a=t).addEventListener?a.addEventListener(l,c,!1):a.attachEvent?a.attachEvent("on"+l,c):a["on"+l]=c;const s=()=>{new Rm({ids:i,vue:o,url:n.value.url,standard:"",extraHead:n.value.extraHead,extraCss:n.value.extraCss,zIndex:n.value.zIndex||20002,previewTitle:n.value.previewTitle||"打印预览",previewPrintBtnLabel:n.value.previewPrintBtnLabel||"打印",popTitle:n.value.popTitle,preview:n.value.preview||!1,asyncUrl:n.value.asyncUrl,previewBeforeOpenCallback(){n.value.previewBeforeOpenCallback&&n.value.previewBeforeOpenCallback(o)},previewOpenCallback(){n.value.previewOpenCallback&&n.value.previewOpenCallback(o)},openCallback(){n.value.openCallback&&n.value.openCallback(o)},closeCallback(){n.value.closeCallback&&n.value.closeCallback(o)},beforeOpenCallback(){n.value.beforeOpenCallback&&n.value.beforeOpenCallback(o)}})}},install:function(t){t.directive("print",md)}},Fn=(t=>(t.Text="text",t.Select="select",t.Date="date",t.DateTime="datetime",t.CheckBox="checkbox",t.Switch="switch",t.Radio="radio",t.Textarea="textarea",t.Nnumber="number",t.NumberRange="numberRange",t.Cascader="cascader",t.Daterange="daterange",t.DateTimeRange="datetimerange",t.File="file",t.TreeSelect="treeSelect",t.Year="year",t.Hr="hr",t.Slot="slot",t.Editor="editor",t.Password="password",t.Json="json",t.Markdown="markdown",t.Rate="rate",t))(Fn||{});let ua=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((n,r)=>(r&=63,r<36?n+=r.toString(36):r<62?n+=(r-26).toString(36).toUpperCase():r>62?n+="-":n+="_",n),"");const Te=$t.defineStore({id:"design",state:()=>({theme:localStorage.getItem("design-theme")||"",stageWidth:1920,stageHeight:1080,scale:.2,targetsWidget:[],sketchRuleLine:{h:[],v:[]},widgetConfg:{config:{backgroundColor:"transparent",backgroundImage:""},list:[]},widgetHoverIds:[],pasteWidget:[],createLoading:!1,showRightPannel:!1,tempChartData:{},chartData:{}}),getters:{getScale(){return this.scale},getStage(){return{stageWidth:this.stageWidth,stageHeight:this.stageHeight}},getSketchRuleLine(){return this.sketchRuleLine},getTargetWidget(){return this.targetsWidget},getWidgetConfig(){return this.widgetConfg.config},getWidgetList(){return this.widgetConfg.list},getWidgetHoverIds(){return this.widgetHoverIds},getPasteWidget(){return this.pasteWidget},getCreateLoading(){return this.createLoading},getRightPannel(){return this.showRightPannel},getTheme(){return this.theme},getChartData(){return this.chartData}},actions:{setSacle(t){this.scale=t/100},setSketchRuleLine(t,n){this.sketchRuleLine.h=t,this.sketchRuleLine.v=n},clearSketchRuleLine(){this.sketchRuleLine={h:[],v:[]}},setTargetWidget(t){this.targetsWidget=t},setWidgetList(t){this.widgetConfg.list=t},setWidgetHoverIds(t){this.widgetHoverIds=t},delWidgetItem(t){this.setWidgetList(this.getWidgetList.filter(n=>!t.includes(n.id))),this.setTargetWidget(this.getTargetWidget.filter(n=>!t.includes(n.id)))},copyWidgetItem(t){this.pasteWidget=[],t.forEach(n=>{const r=this.getWidgetList.find(o=>o.id==n);r&&this.pasteWidget.push(r)})},pasteWidgetItem(){this.pasteWidget.forEach(r=>{const o=JSON.parse(JSON.stringify(r));let i=o.x,a=o.y;o.x+40>this.stageWidth-o.w?i=this.stageWidth-o.w-40:i+=40,o.y+40>this.stageHeight-o.h?a=this.stageHeight-o.h-40:a+=40,this.widgetConfg.list.unshift({...o,id:ua(),x:i,y:a,z:this.widgetConfg.list.length+1,locked:!1})})},sortWidgetList(){this.widgetConfg.list.sort((t,n)=>n.z-t.z)},setCreateLoading(t){this.createLoading=t,t&&(this.targetsWidget=[],this.clearSketchRuleLine())},setRightPannel(t){this.showRightPannel=t},setStageWidth(t){this.stageWidth=t,this.widgetConfg.config.stageWidth=t},setStageHeight(t){this.stageHeight=t,this.widgetConfg.config.stageHeight=t},setTheme(){this.theme=this.theme=="dark"?"":"dark",document.getElementsByTagName("html")[0].className=this.theme,localStorage.setItem("design-theme",this.theme)},setChartData(t){this.chartData=t}}});/*!
|
|
2
2
|
* Compressor.js v1.2.1
|
|
3
3
|
* https://fengyuanchen.github.io/compressorjs
|
|
4
4
|
*
|
|
@@ -607,7 +607,7 @@ cursor: move;
|
|
|
607
607
|
fill: none;
|
|
608
608
|
stroke-width: 1;
|
|
609
609
|
`("border-svg-container"),Zx=De(e.defineComponent({name:"BorderBox6",props:Rt(),setup(t,{slots:n,expose:r}){const{autoBindRef:o,refreshLayoutSize:i,domSize:a}=ze();return r({refreshLayoutSize:i}),()=>{const{color:l,backgroundColor:c}=t,{width:s,height:d}=a,f=Mt(Jx,l);return e.createVNode(At,{class:me.getClassNameForBind("border-box-6"),ref:o},{default:()=>[e.createVNode(Kx,{width:s,height:d},{default:()=>[e.createVNode("polygon",{fill:c,points:`
|
|
610
|
-
9, 7 ${s-9}, 7 ${s-9}, ${d-7} 9, ${d-7}`},null),e.createVNode("circle",{fill:f[1],cx:"5",cy:"5",r:"2"},null),e.createVNode("circle",{fill:f[1],cx:s-5,cy:"5",r:"2"},null),e.createVNode("circle",{fill:f[1],cx:s-5,cy:d-5,r:"2"},null),e.createVNode("circle",{fill:f[1],cx:"5",cy:d-5,r:"2"},null),e.createVNode("polyline",{stroke:f[0],points:`10, 4 ${s-10}, 4`},null),e.createVNode("polyline",{stroke:f[0],points:`10, ${d-4} ${s-10}, ${d-4}`},null),e.createVNode("polyline",{stroke:f[0],points:`5, 70 5, ${d-70}`},null),e.createVNode("polyline",{stroke:f[0],points:`${s-5}, 70 ${s-5}, ${d-70}`},null),e.createVNode("polyline",{stroke:f[0],points:"3, 10, 3, 50"},null),e.createVNode("polyline",{stroke:f[0],points:"7, 30 7, 80"},null),e.createVNode("polyline",{stroke:f[0],points:`${s-3}, 10 ${s-3}, 50`},null),e.createVNode("polyline",{stroke:f[0],points:`${s-7}, 30 ${s-7}, 80`},null),e.createVNode("polyline",{stroke:f[0],points:`3, ${d-10} 3, ${d-50}`},null),e.createVNode("polyline",{stroke:f[0],points:`7, ${d-30} 7, ${d-80}`},null),e.createVNode("polyline",{stroke:f[0],points:`${s-3}, ${d-10} ${s-3}, ${d-50}`},null),e.createVNode("polyline",{stroke:f[0],points:`${s-7}, ${d-30} ${s-7}, ${d-80}`},null)]}),e.createVNode(Lt,null,{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n)]}})]})}}})),Qx=["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],
|
|
610
|
+
9, 7 ${s-9}, 7 ${s-9}, ${d-7} 9, ${d-7}`},null),e.createVNode("circle",{fill:f[1],cx:"5",cy:"5",r:"2"},null),e.createVNode("circle",{fill:f[1],cx:s-5,cy:"5",r:"2"},null),e.createVNode("circle",{fill:f[1],cx:s-5,cy:d-5,r:"2"},null),e.createVNode("circle",{fill:f[1],cx:"5",cy:d-5,r:"2"},null),e.createVNode("polyline",{stroke:f[0],points:`10, 4 ${s-10}, 4`},null),e.createVNode("polyline",{stroke:f[0],points:`10, ${d-4} ${s-10}, ${d-4}`},null),e.createVNode("polyline",{stroke:f[0],points:`5, 70 5, ${d-70}`},null),e.createVNode("polyline",{stroke:f[0],points:`${s-5}, 70 ${s-5}, ${d-70}`},null),e.createVNode("polyline",{stroke:f[0],points:"3, 10, 3, 50"},null),e.createVNode("polyline",{stroke:f[0],points:"7, 30 7, 80"},null),e.createVNode("polyline",{stroke:f[0],points:`${s-3}, 10 ${s-3}, 50`},null),e.createVNode("polyline",{stroke:f[0],points:`${s-7}, 30 ${s-7}, 80`},null),e.createVNode("polyline",{stroke:f[0],points:`3, ${d-10} 3, ${d-50}`},null),e.createVNode("polyline",{stroke:f[0],points:`7, ${d-30} 7, ${d-80}`},null),e.createVNode("polyline",{stroke:f[0],points:`${s-3}, ${d-10} ${s-3}, ${d-50}`},null),e.createVNode("polyline",{stroke:f[0],points:`${s-7}, ${d-30} ${s-7}, ${d-80}`},null)]}),e.createVNode(Lt,null,{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n)]}})]})}}})),Qx=["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],eV=me.svg`
|
|
611
611
|
position: absolute;
|
|
612
612
|
top: 0px;
|
|
613
613
|
left: 0px;
|
|
@@ -623,19 +623,19 @@ cursor: move;
|
|
|
623
623
|
}
|
|
624
624
|
.__STYLED__ .stroke-width5 {
|
|
625
625
|
stroke-width: 5px;
|
|
626
|
-
`("border-svg-container"),
|
|
626
|
+
`("border-svg-container"),tV=De(e.defineComponent({name:"BorderBox7",props:Rt(),setup(t,{slots:n,expose:r}){const{autoBindRef:o,refreshLayoutSize:i,domSize:a}=ze();return r({refreshLayoutSize:i}),()=>{const{color:l,backgroundColor:c}=t,{width:s,height:d}=a,f=Mt(Qx,l);return e.createVNode(At,{class:me.getClassNameForBind("border-box-7"),ref:o,style:{boxShadow:`inset 0 0 40px ${f[0]}`,border:`1px solid ${f[0]}`,backgroundColor:c}},{default:()=>[e.createVNode(eV,{width:s,height:d},{default:()=>[e.createVNode("polyline",{class:"stroke-width2",stroke:f[0],points:"0, 25 0, 0 25, 0"},null),e.createVNode("polyline",{class:"stroke-width2",stroke:f[0],points:`${s-25}, 0 ${s}, 0 ${s}, 25`},null),e.createVNode("polyline",{class:"stroke-width2",stroke:f[0],points:`${s-25}, ${d} ${s}, ${d} ${s}, ${d-25}`},null),e.createVNode("polyline",{class:"stroke-width2",stroke:f[0],points:`0, ${d-25} 0, ${d} 25, ${d}`},null),e.createVNode("polyline",{class:"stroke-width5",stroke:f[1],points:"0, 10 0, 0 10, 0"},null),e.createVNode("polyline",{class:"stroke-width5",stroke:f[1],points:`${s-10}, 0 ${s}, 0 ${s}, 10`},null),e.createVNode("polyline",{class:"stroke-width5",stroke:f[1],points:`${s-10}, ${d} ${s}, ${d} ${s}, ${d-10}`},null),e.createVNode("polyline",{class:"stroke-width5",stroke:f[1],points:`0, ${d-10} 0, ${d} 10, ${d}`},null)]}),e.createVNode(Lt,null,{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n)]}})]})}}}));var nV=Object.defineProperty,rV=Object.defineProperties,oV=Object.getOwnPropertyDescriptors,Vh=Object.getOwnPropertySymbols,iV=Object.prototype.hasOwnProperty,aV=Object.prototype.propertyIsEnumerable,Eh=(t,n,r)=>n in t?nV(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,lV=(t,n)=>{for(var r in n||(n={}))iV.call(n,r)&&Eh(t,r,n[r]);if(Vh)for(var r of Vh(n))aV.call(n,r)&&Eh(t,r,n[r]);return t},cV=(t,n)=>rV(t,oV(n));const dV=["#235fa7","#4fd2dd"],sV=me.svg`
|
|
627
627
|
position: absolute;
|
|
628
628
|
width: 100%;
|
|
629
629
|
height: 100%;
|
|
630
630
|
left: 0px;
|
|
631
631
|
top: 0px;
|
|
632
|
-
`("border-svg-container"),
|
|
632
|
+
`("border-svg-container"),fV=()=>cV(lV({},Rt()),{duration:{type:Number,default:3},reverse:{type:Boolean,default:!1}}),uV=De(e.defineComponent({name:"BorderBox8",props:fV(),setup(t,{slots:n,expose:r}){const{autoBindRef:o,refreshLayoutSize:i,domSize:a}=ze();r({refreshLayoutSize:i});const l=ar();return()=>{const{color:c,backgroundColor:s,duration:d,reverse:f}=t,{width:u,height:p}=a,m=Mt(dV,c),h=`border-box-8-path-${l.id}`,_=`border-box-8-gradient-${l.id}`,g=`border-box-8-mask-${l.id}`,v=f?`M 2.5, 2.5 L 2.5, ${p-2.5} L ${u-2.5}, ${p-2.5} L ${u-2.5}, 2.5 L 2.5, 2.5`:`M2.5, 2.5 L${u-2.5}, 2.5 L${u-2.5}, ${p-2.5} L2.5, ${p-2.5} L2.5, 2.5`;return e.createVNode(At,{class:me.getClassNameForBind("border-box-8"),ref:o},{default:()=>[e.createVNode(sV,{width:u,height:p},{default:()=>[e.createVNode("defs",null,[e.createVNode("path",{id:h,d:v,fill:"transparent"},null),e.createVNode("radialGradient",{id:_,cx:"50%",cy:"50%",r:"50%"},[e.createVNode("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null),e.createVNode("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null)]),e.createVNode("mask",{id:g},[e.createVNode("circle",{cx:"0",cy:"0",r:"150",fill:`url(#${_})`},[e.createVNode("animateMotion",{dur:`${d}s`,path:v,rotate:"auto",repeatCount:"indefinite"},null)])])]),e.createVNode("polygon",{fill:s,points:`5, 5 ${u-5}, 5 ${u-5} ${p-5} 5, ${p-5}`},null),e.createVNode("use",{stroke:m[0],"stroke-width":"1","xlink:href":`#${h}`},null),e.createVNode("use",{stroke:m[1],"stroke-width":"3","xlink:href":`#${h}`,mask:`url(#${g})`},[e.createVNode("animate",{attributeName:"stroke-dasharray",from:`0, ${length}`,to:`${length}, 0`,dur:`${d}s`,repeatCount:"indefinite"},null)])]}),e.createVNode(Lt,null,{default:()=>{var b;return[(b=n.default)==null?void 0:b.call(n)]}})]})}}})),pV=["#11eefd","#0078d2"],hV=me.svg`
|
|
633
633
|
position: absolute;
|
|
634
634
|
width: 100%;
|
|
635
635
|
height: 100%;
|
|
636
636
|
left: 0px;
|
|
637
637
|
top: 0px;
|
|
638
|
-
`("border-svg-container"),
|
|
638
|
+
`("border-svg-container"),mV=De(e.defineComponent({name:"BorderBox9",props:Rt(),setup(t,{slots:n,expose:r}){const{autoBindRef:o,refreshLayoutSize:i,domSize:a}=ze();r({refreshLayoutSize:i});const l=ar();return()=>{const{color:c,backgroundColor:s}=t,{width:d,height:f}=a,u=Mt(pV,c),p=`border-box-9-gradient-${l.id}`,m=`border-box-9-mask-${l.id}`;return e.createVNode(At,{class:me.getClassNameForBind("border-box-9"),ref:o},{default:()=>[e.createVNode(hV,{width:d,height:f},{default:()=>[e.createVNode("defs",null,[e.createVNode("linearGradient",{id:p,x1:"0%",y1:"0%",x2:"100%",y2:"100%"},[e.createVNode("animate",{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"},null),e.createVNode("stop",{offset:"0%","stop-color":u[0]},[e.createVNode("animate",{attributeName:"stop-color",values:`${u[0]};${u[1]};${u[0]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)]),e.createVNode("stop",{offset:"100%","stop-color":u[1]},[e.createVNode("animate",{attributeName:"stop-color",values:`${u[1]};${u[0]};${u[1]}`,dur:"10s",begin:"0s",repeatCount:"indefinite"},null)])]),e.createVNode("mask",{id:m},[e.createVNode("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`8, ${f*.4} 8, 3, ${d*.4+7}, 3`},null),e.createVNode("polyline",{fill:"#fff",points:`
|
|
639
639
|
8, ${f*.15} 8, 3, ${d*.1+7}, 3
|
|
640
640
|
${d*.1}, 8 14, 8 14, ${f*.15-7}
|
|
641
641
|
`},null),e.createVNode("polyline",{stroke:"#fff","stroke-width":"3",fill:"transparent",points:`${d*.5}, 3 ${d-3}, 3, ${d-3}, ${f*.25}`},null),e.createVNode("polyline",{fill:"#fff",points:`
|
|
@@ -655,22 +655,22 @@ cursor: move;
|
|
|
655
655
|
${d-6}, ${f*.1-1} ${d-6}, ${f*.8+1} ${d-10}, ${f*.8+6}
|
|
656
656
|
${d-10}, ${f-10} ${d*.92+7}, ${f-10} ${d*.92+2}, ${f-6}
|
|
657
657
|
11, ${f-6} 11, ${f*.15-2} 15, ${f*.15-7}
|
|
658
|
-
`},null),e.createVNode("rect",{x:"0",y:"0",width:d,height:f,fill:`url(#${p})`,mask:`url(#${m})`},null)]}),e.createVNode(Lt,null,{default:()=>{var h;return[(h=n.default)==null?void 0:h.call(n)]}})]})}}}));function qt(){return{color:{type:uh(Array),default:()=>[]}}}function Rc(){return{reverse:{type:Boolean,default:!1}}}function aa(t){return{duration:{type:Number,default:t}}}function
|
|
658
|
+
`},null),e.createVNode("rect",{x:"0",y:"0",width:d,height:f,fill:`url(#${p})`,mask:`url(#${m})`},null)]}),e.createVNode(Lt,null,{default:()=>{var h;return[(h=n.default)==null?void 0:h.call(n)]}})]})}}}));function qt(){return{color:{type:uh(Array),default:()=>[]}}}function Rc(){return{reverse:{type:Boolean,default:!1}}}function aa(t){return{duration:{type:Number,default:t}}}function gV({width:t,height:n,rowPoints:r,rowCount:o}){const i=t/(r+1),a=n/(o+1);return new Array(o).fill(0).map((l,c)=>new Array(r).fill(0).map((s,d)=>[i*(d+1),a*(c+1)])).reduce((l,c)=>[...l,...c],[])}const _V=["#fff","#0de7c2"],Mc=200,Ac=50,Lc=20,vV=4,vt=2.5,kh=vt/2,Fc=gV({width:Mc,height:Ac,rowPoints:Lc,rowCount:vV}),Fr=Fc[Lc*2-1],Ro=Fc[Lc*2-3],yV=me.div`
|
|
659
659
|
width: 100%;
|
|
660
660
|
height: 100%;
|
|
661
661
|
}
|
|
662
662
|
.__STYLED__ svg {
|
|
663
663
|
transform-origin: left top;
|
|
664
|
-
`("decoration-1"),
|
|
664
|
+
`("decoration-1"),bV=De(e.defineComponent({name:"Decoration1",props:qt(),setup(t,{expose:n}){const{autoBindRef:r,refreshLayoutSize:o,domSize:i}=ze();return n({refreshLayoutSize:o}),()=>{const{color:a}=t,{width:l,height:c}=i,s=Xt(_V,a),d={transform:`scale(${l/Mc},${c/Ac})`};return e.createVNode(yV,{ref:r},{default:()=>[e.createVNode("svg",{width:Mc,height:Ac,style:d},[Fc.map(([f,u],p)=>{const m=f-kh,h=u-kh;return Math.random()>.6?e.createVNode("rect",{key:p,x:m,y:h,width:vt,height:vt,fill:s[0]},[Math.random()>.6&&e.createVNode("animate",{attributeName:"fill",values:`${s[0]};transparent`,dur:"1s",begin:Math.random()*2,repeatCount:"indefinite"},null)]):null}),e.createVNode("rect",{fill:s[1],x:Fr[0]-vt,y:Fr[1]-vt,width:vt*2,height:vt*2},[e.createVNode("animate",{attributeName:"width",values:`0;${vt*2}`,dur:"2s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"height",values:`0;${vt*2}`,dur:"2s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"x",values:`${Fr[0]};${Fr[0]-vt}`,dur:"2s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"y",values:`${Fr[1]};${Fr[1]-vt}`,dur:"2s",repeatCount:"indefinite"},null)]),e.createVNode("rect",{fill:s[1],x:Ro[0]-vt,y:Ro[1]-vt,width:vt*2,height:vt*2},[e.createVNode("animate",{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"x",values:`${Ro[0]};${Ro[0]-40};${Ro[0]}`,dur:"2s",repeatCount:"indefinite"},null)])])]})}}})),wV=me.div`
|
|
665
665
|
width: 100%;
|
|
666
666
|
height: 100%;
|
|
667
667
|
display: flex;
|
|
668
|
-
`("decoration-10"),
|
|
668
|
+
`("decoration-10"),CV=["#00c2ff","rgba(0, 194, 255, 0.3)"],SV=De(e.defineComponent({name:"Decoration10",props:qt(),setup(t,{expose:n}){const{autoBindRef:r,refreshLayoutSize:o,domSize:i}=ze();n({refreshLayoutSize:o});const a=ar(),l=`d10ani${a.id}1`,c=`d10ani${a.id}2`,s=`d10ani${a.id}3`,d=`d10ani${a.id}4`,f=`d10ani${a.id}5`,u=`d10ani${a.id}6`,p=`d10ani${a.id}7`;return()=>{const{width:m,height:h}=i,{color:_}=t,g=Xt(CV,_);return e.createVNode(wV,{ref:r},{default:()=>[e.createVNode("svg",{width:m,height:h},[e.createVNode("polyline",{stroke:g[1],"stroke-width":"2",points:`0, ${h/2} ${m}, ${h/2}`},null),e.createVNode("polyline",{stroke:g[0],"stroke-width":"2",points:`5, ${h/2} ${m*.2-3}, ${h/2}`,"stroke-dasharray":`0, ${m*.2}`,fill:"freeze"},[e.createVNode("animate",{id:c,attributeName:"stroke-dasharray",values:`0, ${m*.2};${m*.2}, 0;`,dur:"3s",begin:`${l}.end`,fill:"freeze"},null),e.createVNode("animate",{attributeName:"stroke-dasharray",values:`${m*.2}, 0;0, ${m*.2}`,dur:"0.01s",begin:`${p}.end`,fill:"freeze"},null)]),e.createVNode("polyline",{stroke:g[0],"stroke-width":"2",points:`${m*.2+3}, ${h/2} ${m*.8-3}, ${h/2}`,"stroke-dasharray":`0, ${m*.6}`},[e.createVNode("animate",{id:d,attributeName:"stroke-dasharray",values:`0, ${m*.6};${m*.6}, 0`,dur:"3s",begin:`${s}.end + 1s`,fill:"freeze"},null),e.createVNode("animate",{attributeName:"stroke-dasharray",values:`${m*.6}, 0;0, ${m*.6}`,dur:"0.01s",begin:`${p}.end`,fill:"freeze"},null)]),e.createVNode("polyline",{stroke:g[0],"stroke-width":"2",points:`${m*.8+3}, ${h/2} ${m-5}, ${h/2}`,"stroke-dasharray":`0, ${m*.2}`},[e.createVNode("animate",{id:u,attributeName:"stroke-dasharray",values:`0, ${m*.2};${m*.2}, 0`,dur:"3s",begin:`${f}.end + 1s`,fill:"freeze"},null),e.createVNode("animate",{attributeName:"stroke-dasharray",values:`${m*.2}, 0;0, ${m*.3}`,dur:"0.01s",begin:`${p}.end`,fill:"freeze"},null)]),e.createVNode("circle",{cx:"2",cy:h/2,r:"2",fill:g[1]},[e.createVNode("animate",{id:l,attributeName:"fill",values:`${g[1]};${g[0]}`,begin:`0s;${p}.end`,dur:"0.3s",fill:"freeze"},null)]),e.createVNode("circle",{cx:m*.2,cy:h/2,r:"2",fill:g[1]},[e.createVNode("animate",{id:s,attributeName:"fill",values:`${g[1]};${g[0]}`,begin:`${c}.end`,dur:"0.3s",fill:"freeze"},null),e.createVNode("animate",{attributeName:"fill",values:`${g[1]};${g[1]}`,dur:"0.01s",begin:`${p}.end`,fill:"freeze"},null)]),e.createVNode("circle",{cx:m*.8,cy:h/2,r:"2",fill:g[1]},[e.createVNode("animate",{id:f,attributeName:"fill",values:`${g[1]};${g[0]}`,begin:`${d}.end`,dur:"0.3s",fill:"freeze"},null),e.createVNode("animate",{attributeName:"fill",values:`${g[1]};${g[1]}`,dur:"0.01s",begin:`${p}.end`,fill:"freeze"},null)]),e.createVNode("circle",{cx:m-2,cy:h/2,r:"2",fill:g[1]},[e.createVNode("animate",{id:p,attributeName:"fill",values:`${g[1]};${g[0]}`,begin:`${u}.end`,dur:"0.3s",fill:"freeze"},null),e.createVNode("animate",{attributeName:"fill",values:`${g[1]};${g[1]}`,dur:"0.01s",begin:`${p}.end`,fill:"freeze"},null)])])]})}}})),xV=me.div`
|
|
669
669
|
position: relative;
|
|
670
670
|
width: 100%;
|
|
671
671
|
height: 100%;
|
|
672
672
|
display: flex;
|
|
673
|
-
`("decoration-11"),
|
|
673
|
+
`("decoration-11"),VV=me.div`
|
|
674
674
|
position: absolute;
|
|
675
675
|
top: 0px;
|
|
676
676
|
left: 0px;
|
|
@@ -679,15 +679,15 @@ cursor: move;
|
|
|
679
679
|
display: flex;
|
|
680
680
|
align-items: center;
|
|
681
681
|
justify-content: center;
|
|
682
|
-
`("decoration-content"),Ln=["#1a98fc","#2cf7fe"],
|
|
682
|
+
`("decoration-content"),Ln=["#1a98fc","#2cf7fe"],EV=De(e.defineComponent({name:"Decoration11",props:qt(),setup(t,{slots:n,expose:r}){const{autoBindRef:o,refreshLayoutSize:i,domSize:a}=ze();return r({refreshLayoutSize:i}),()=>{const{width:l,height:c}=a,{color:s}=t,d=Xt(Ln,s);return e.createVNode(xV,{ref:o},{default:()=>[e.createVNode("svg",{width:l,height:c},[e.createVNode("polygon",{fill:ut(d[1]||Ln[1],10),stroke:d[1],points:"20 10, 25 4, 55 4 60 10"},null),e.createVNode("polygon",{fill:ut(d[1]||Ln[1],10),stroke:d[1],points:`20 ${c-10}, 25 ${c-4}, 55 ${c-4} 60 ${c-10}`},null),e.createVNode("polygon",{fill:ut(d[1]||Ln[1],10),stroke:d[1],points:`${l-20} 10, ${l-25} 4, ${l-55} 4 ${l-60} 10`},null),e.createVNode("polygon",{fill:ut(d[1]||Ln[1],10),stroke:d[1],points:`${l-20} ${c-10}, ${l-25} ${c-4}, ${l-55} ${c-4} ${l-60} ${c-10}`},null),e.createVNode("polygon",{fill:ut(d[0]||Ln[0],20),stroke:d[0],points:`
|
|
683
683
|
20 10, 5 ${c/2} 20 ${c-10}
|
|
684
684
|
${l-20} ${c-10} ${l-5} ${c/2} ${l-20} 10
|
|
685
|
-
`},null),e.createVNode("polyline",{fill:"transparent",stroke:ut(d[0]||Ln[0],70),points:`25 18, 15 ${c/2} 25 ${c-18}`},null),e.createVNode("polyline",{fill:"transparent",stroke:ut(d[0]||Ln[0],70),points:`${l-25} 18, ${l-15} ${c/2} ${l-25} ${c-18}`},null)]),e.createVNode(
|
|
685
|
+
`},null),e.createVNode("polyline",{fill:"transparent",stroke:ut(d[0]||Ln[0],70),points:`25 18, 15 ${c/2} 25 ${c-18}`},null),e.createVNode("polyline",{fill:"transparent",stroke:ut(d[0]||Ln[0],70),points:`${l-25} 18, ${l-15} ${c/2} ${l-25} ${c-18}`},null)]),e.createVNode(VV,null,{default:()=>{var f;return[(f=n.default)==null?void 0:f.call(n)]}})]})}}}));var kV=Object.defineProperty,NV=Object.defineProperties,$V=Object.getOwnPropertyDescriptors,Nh=Object.getOwnPropertySymbols,DV=Object.prototype.hasOwnProperty,BV=Object.prototype.propertyIsEnumerable,$h=(t,n,r)=>n in t?kV(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,TV=(t,n)=>{for(var r in n||(n={}))DV.call(n,r)&&$h(t,r,n[r]);if(Nh)for(var r of Nh(n))BV.call(n,r)&&$h(t,r,n[r]);return t},OV=(t,n)=>NV(t,$V(n));const IV=me.div`
|
|
686
686
|
position: relative;
|
|
687
687
|
width: 100%;
|
|
688
688
|
height: 100%;
|
|
689
689
|
display: flex;
|
|
690
|
-
`("decoration-12"),
|
|
690
|
+
`("decoration-12"),zV=me.div`
|
|
691
691
|
position: absolute;
|
|
692
692
|
top: 0px;
|
|
693
693
|
left: 0px;
|
|
@@ -696,23 +696,23 @@ cursor: move;
|
|
|
696
696
|
display: flex;
|
|
697
697
|
align-items: center;
|
|
698
698
|
justify-content: center;
|
|
699
|
-
`("decoration-content"),Dh=["#2783ce","#2cf7fe"],Bh=30,
|
|
699
|
+
`("decoration-content"),Dh=["#2783ce","#2cf7fe"],Bh=30,RV=Math.PI/3,MV=3,AV=1,LV=(t,n)=>{const r=100/(n-1);return new Array(n).fill(t).map((o,i)=>ut(t,100-i*r))};function FV(){return OV(TV({},qt()),{scanDuration:{type:Number,default:3},haloDuration:{type:Number,default:2}})}const jr=(t,n,r,o)=>[t+Math.cos(o)*r,n+Math.sin(o)*r],jV=({x:t,y:n,width:r,segment:o,sectorAngle:i})=>{const a=-Math.PI/2,l=i/o,c=r/4;let s=jr(t,n,c,a);return new Array(o).fill("").map((d,f)=>{const u=jr(t,n,c,a-(f+1)*l).map(m=>m.toFixed(5)),p=`M${s.join(",")} A${c}, ${c} 0 0 0 ${u.join(",")}`;return s=u,p})},PV=({ringNum:t,width:n,ringWidth:r})=>{const o=(n/2-r/2)/t;return new Array(t).fill(0).map((i,a)=>o*(a+1))},UV=({x:t,y:n,width:r})=>{const o=Math.PI/6,i=r/2;return new Array(6).fill("").map((a,l)=>{const c=o*(l+1),s=c+Math.PI,d=jr(t,n,i,c),f=jr(t,n,i,s);return`${d.join(",")} ${f.join(",")}`})},WV=({x:t,y:n,width:r})=>{const o=Math.PI/6,i=r/2-1;return new Array(4).fill("").map((a,l)=>{const c=o*(3*l+1),s=c+o,d=jr(t,n,i,c),f=jr(t,n,i,s);return`M${d.join(",")} A${t}, ${n} 0 0 1 ${f.join(",")}`})},GV=De(e.defineComponent({name:"Decoration12",props:FV(),setup(t,{slots:n,expose:r}){const{autoBindRef:o,refreshLayoutSize:i,domSize:a}=ze();r({refreshLayoutSize:i});const l=ar();return()=>{const{width:c,height:s}=a,d=c/2,f=s/2,{color:u,scanDuration:p,haloDuration:m}=t,h=`decoration-12-g-${l.id}`,_=`decoration-12-gradient-${l.id}`,g=Xt(Dh,u),v=LV(g[0],Bh),b=jV({x:d,y:f,width:c,segment:Bh,sectorAngle:RV}),y=PV({ringNum:MV,ringWidth:AV,width:c}),w=UV({x:d,y:f,width:c}),C=WV({x:d,y:f,width:c});return e.createVNode(IV,{ref:o},{default:()=>[e.createVNode("svg",{width:c,height:s},[e.createVNode("defs",null,[e.createVNode("g",{id:h},[b.map((x,V)=>e.createVNode("path",{stroke:v[V],"stroke-width":c/2,fill:"transparent",key:x,d:x},null))]),e.createVNode("radialGradient",{id:_,cx:"50%",cy:"50%",r:"50%"},[e.createVNode("stop",{offset:"0%","stop-color":"transparent","stop-opacity":"1"},null),e.createVNode("stop",{offset:"100%","stop-color":ut(g[1]||Dh[1],30),"stop-opacity":"1"},null)])]),y.map(x=>e.createVNode("circle",{r:x,cx:d,cy:f,stroke:g[1],"stroke-width":"0.5",fill:"transparent"},null)),e.createVNode("circle",{r:"1",cx:d,cy:f,stroke:"transparent",fill:`url(#${_})`},[e.createVNode("animate",{attributeName:"r",values:`1;${c/2}`,dur:`${m}s`,repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"opacity",values:"1;0",dur:`${m}s`,repeatCount:"indefinite"},null)]),e.createVNode("circle",{r:"2",cx:d,cy:f,fill:g[1]},null),e.createVNode("g",null,[w.map(x=>e.createVNode("polyline",{key:x,points:x,stroke:g[1],"stroke-width":"0.5",opacity:"0.5"},null))]),C.map(x=>e.createVNode("path",{key:x,d:x,stroke:g[1],"stroke-width":"2",fill:"transparent"},null)),e.createVNode("use",{"xlink:href":`#${h}`},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:`0, ${d} ${f};360, ${d} ${f}`,dur:`${p}s`,repeatCount:"indefinite"},null)])]),e.createVNode(zV,null,{default:()=>{var x;return[(x=n.default)==null?void 0:x.call(n)]}})]})}}}));var HV=Object.defineProperty,Th=Object.getOwnPropertySymbols,YV=Object.prototype.hasOwnProperty,XV=Object.prototype.propertyIsEnumerable,Oh=(t,n,r)=>n in t?HV(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,jc=(t,n)=>{for(var r in n||(n={}))YV.call(n,r)&&Oh(t,r,n[r]);if(Th)for(var r of Th(n))XV.call(n,r)&&Oh(t,r,n[r]);return t};const qV=["#3faacb","#fff"];function JV(){return jc(jc(jc({},qt()),Rc()),aa(6))}function KV(t,n,r){return t?{width:1,height:r,x:n/2,y:0}:{width:n,height:1,x:0,y:r/2}}const ZV=me.div`
|
|
700
700
|
display: flex;
|
|
701
701
|
width: 100%;
|
|
702
702
|
height: 100%;
|
|
703
703
|
justify-content: center;
|
|
704
704
|
align-items: center;
|
|
705
|
-
`("decoration-2"),
|
|
705
|
+
`("decoration-2"),QV=De(e.defineComponent({name:"Decoration2",props:JV(),setup(t,{expose:n}){const{autoBindRef:r,refreshLayoutSize:o,domSize:i}=ze();return n({refreshLayoutSize:o}),()=>{const{width:a,height:l}=i,{color:c,reverse:s,duration:d}=t,f=Xt(qV,c),{x:u,y:p,width:m,height:h}=KV(s,a,l);return e.createVNode(ZV,{ref:r},{default:()=>[e.createVNode("svg",{width:a,height:l},[e.createVNode("rect",{x:u,y:p,width:m,height:h,fill:f[0]},[e.createVNode("animate",{attributeName:s?"height":"width",from:"0",to:s?l:a,dur:`${d}s`,calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"},null)]),e.createVNode("rect",{x:u,y:p,width:"1",height:"1",fill:f[1]},[e.createVNode("animate",{attributeName:s?"y":"x",from:"0",to:s?l:a,dur:`${d}s`,calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"},null)])])]})}}}));function e4({width:t,height:n,rowPoints:r,rowCount:o}){const i=t/(r+1),a=n/(o+1);return new Array(o).fill(0).map((l,c)=>new Array(r).fill(0).map((s,d)=>[i*(d+1),a*(c+1)])).reduce((l,c)=>[...l,...c],[])}const t4=["#7acaec","transparent"],Pc=300,Uc=35,n4=25,r4=2,Wc=7,Ih=Wc/2,o4=e4({width:Pc,height:Uc,rowPoints:n4,rowCount:r4}),i4=me.div`
|
|
706
706
|
width: 100%;
|
|
707
707
|
height: 100%;
|
|
708
708
|
}
|
|
709
709
|
.__STYLED__ svg {
|
|
710
710
|
transform-origin: left top;
|
|
711
|
-
`("decoration-3"),
|
|
711
|
+
`("decoration-3"),a4=De(e.defineComponent({name:"Decoration3",props:qt(),setup(t,{expose:n}){const{autoBindRef:r,refreshLayoutSize:o,domSize:i}=ze();return n({refreshLayoutSize:o}),()=>{const{width:a,height:l}=i,{color:c}=t,s=Xt(t4,c);return e.createVNode(i4,{ref:r},{default:()=>[e.createVNode("svg",{width:Pc,height:Uc,style:{transform:`scale(${a/Pc},${l/Uc})`}},[o4.map(([d,f],u)=>{const p=d-Ih,m=f-Ih;return Math.random()>.6?e.createVNode("rect",{key:u,x:p,y:m,width:Wc,height:Wc,fill:s[0]},[Math.random()>.6&&e.createVNode("animate",{attributeName:"fill",values:s.join(";"),dur:`${Math.random()+1}s`,begin:Math.random()*2,repeatCount:"indefinite"},null)]):null})])]})}}}));var l4=Object.defineProperty,zh=Object.getOwnPropertySymbols,c4=Object.prototype.hasOwnProperty,d4=Object.prototype.propertyIsEnumerable,Rh=(t,n,r)=>n in t?l4(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Gc=(t,n)=>{for(var r in n||(n={}))c4.call(n,r)&&Rh(t,r,n[r]);if(zh)for(var r of zh(n))d4.call(n,r)&&Rh(t,r,n[r]);return t};function s4(){return Gc(Gc(Gc({},qt()),Rc()),aa(3))}const f4=["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],u4=me.div`
|
|
712
712
|
position: relative;
|
|
713
713
|
width: 100%;
|
|
714
714
|
height: 100%;
|
|
715
|
-
`("decoration-4"),
|
|
715
|
+
`("decoration-4"),p4=me.div`
|
|
716
716
|
display: flex;
|
|
717
717
|
overflow: hidden;
|
|
718
718
|
position: absolute;
|
|
@@ -749,26 +749,26 @@ cursor: move;
|
|
|
749
749
|
100% {
|
|
750
750
|
width: 100%;
|
|
751
751
|
}
|
|
752
|
-
`("decoration-content"),
|
|
752
|
+
`("decoration-content"),h4=De(e.defineComponent({name:"Decoration4",props:s4(),setup(t,{expose:n}){const{autoBindRef:r,refreshLayoutSize:o,domSize:i}=ze();return n({refreshLayoutSize:o}),()=>{const{width:a,height:l}=i,{color:c,reverse:s,duration:d}=t,f=Xt(f4,c),u=s?a:5,p=s?5:l,m={width:`${u}px`,height:`${p}px`,animationDuration:`${d}s`},h=s?`0, 2.5 ${a}, 2.5`:`2.5, 0 2.5, ${l}`;return e.createVNode(u4,{ref:r},{default:()=>[e.createVNode(p4,{class:zc(s?"reverse":"normal"),style:m},{default:()=>[e.createVNode("svg",{width:u,height:p},[e.createVNode("polyline",{stroke:f[0],points:h},null),e.createVNode("polyline",{class:"bold-line",stroke:f[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:h},null)])]})]})}}}));var m4=Object.defineProperty,Mh=Object.getOwnPropertySymbols,g4=Object.prototype.hasOwnProperty,_4=Object.prototype.propertyIsEnumerable,Ah=(t,n,r)=>n in t?m4(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Lh=(t,n)=>{for(var r in n||(n={}))g4.call(n,r)&&Ah(t,r,n[r]);if(Mh)for(var r of Mh(n))_4.call(n,r)&&Ah(t,r,n[r]);return t};const v4=["#3f96a5","#3f96a5"];function y4(){return Lh(Lh({},qt()),aa(1.2))}function Fh(t){return new Array(t.length-1).fill(0).map((n,r)=>US(t[r],t[r+1]))}function b4(t,n){const r=[[0,n*.2],[t*.18,n*.2],[t*.2,n*.4],[t*.25,n*.4],[t*.27,n*.6],[t*.72,n*.6],[t*.75,n*.4],[t*.8,n*.4],[t*.82,n*.2],[t,n*.2]],o=[[t*.3,n*.8],[t*.7,n*.8]];return{line1Sum:sh(Fh(r)),line2Sum:sh(Fh(o)),line1Point:r.map(i=>i.join(",")).join(" "),line2Point:o.map(i=>i.join(",")).join(" ")}}const w4=me.div`
|
|
753
753
|
width: 100%;
|
|
754
754
|
height: 100%;
|
|
755
|
-
`("decoration-5"),
|
|
755
|
+
`("decoration-5"),C4=De(e.defineComponent({name:"Decoration5",props:y4(),setup(t,{expose:n}){const{autoBindRef:r,refreshLayoutSize:o,domSize:i}=ze();return n({refreshLayoutSize:o}),()=>{const{width:a,height:l}=i,{color:c,duration:s}=t,d=Xt(v4,c),{line1Sum:f,line2Sum:u,line1Point:p,line2Point:m}=b4(a,l);return e.createVNode(w4,{ref:r},{default:()=>[e.createVNode("svg",{width:a,height:l},[e.createVNode("polyline",{fill:"transparent",stroke:d[0],"stroke-width":"3",points:p},[e.createVNode("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${f/2}, 0, ${f/2}`,to:`0, 0, ${f}, 0`,dur:`${s}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"},null)]),e.createVNode("polyline",{fill:"transparent",stroke:d[1],"stroke-width":"2",points:m},[e.createVNode("animate",{attributeName:"stroke-dasharray",attributeType:"XML",from:`0, ${u/2}, 0, ${u/2}`,to:`0, 0, ${u}, 0`,dur:`${s}s`,begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"},null)])])]})}}})),S4=["#7acaec","#7acaec"],jh=300,Ph=35,x4=1,V4=40,Uh=7,E4=Uh/2,k4=me.div`
|
|
756
756
|
width: 100%;
|
|
757
757
|
height: 100%;
|
|
758
758
|
}
|
|
759
759
|
.__STYLED__ .svg-origin {
|
|
760
760
|
transform-origin: left top;
|
|
761
|
-
`("decoration-6");function
|
|
761
|
+
`("decoration-6");function N4({width:t,height:n,rowPoints:r,rowCount:o}){const i=t/(r+1),a=n/(o+1),l=new Array(o).fill(0).map((f,u)=>new Array(r).fill(0).map((p,m)=>[i*(m+1),a*(u+1)])).reduce((f,u)=>[...f,...u],[]),c=new Array(o*r).fill(0).map(()=>Math.random()>.8?dh(.7*n,n):dh(.2*n,.5*n)),s=new Array(o*r).fill(0).map((f,u)=>c[u]*Math.random()),d=new Array(o*r).fill(0).map(()=>Math.random()+1.5);return{points:l,heights:c,minHeights:s,randoms:d}}const{points:$4,heights:la,minHeights:ca,randoms:Wh}=N4({width:jh,height:Ph,rowPoints:V4,rowCount:x4}),D4=De(e.defineComponent({name:"Decoration6",props:qt(),setup(t,{expose:n}){const{autoBindRef:r,refreshLayoutSize:o,domSize:i}=ze();return n({refreshLayoutSize:o}),()=>{const{width:a,height:l}=i,{color:c}=t,s=Xt(S4,c),d={transform:`scale(${a/jh},${l/Ph})`},f=()=>s[Math.random()>.5?0:1];return e.createVNode(k4,{ref:r},{default:()=>[e.createVNode("svg",{class:"svg-origin",width:a,height:l,style:d},[$4.map(([u,p],m)=>e.createVNode("rect",{key:`rect${m}`,fill:f(),x:u-E4,y:p-la[m],width:Uh,height:la[m]},[e.createVNode("animate",{attributeName:"y",values:`${p-ca[m]/2};${p-la[m]/2};${p-ca[m]/2}`,dur:Wh[m],keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"height",values:`${ca[m]};${la[m]};${ca[m]}`,dur:Wh[m],keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"},null)]))])]})}}})),B4=me.div`
|
|
762
762
|
display: flex;
|
|
763
763
|
width: 100%;
|
|
764
764
|
height: 100%;
|
|
765
765
|
justify-content: center;
|
|
766
766
|
align-items: center;
|
|
767
|
-
`("decoration-7"),
|
|
767
|
+
`("decoration-7"),T4=["#1dc1f5","#1dc1f5"];e.defineComponent({name:"Decoration7",props:qt(),setup(t,{slots:n,expose:r}){const{autoBindRef:o,refreshLayoutSize:i}=ze();return r({refreshLayoutSize:i}),()=>{const{color:a}=t,l=Xt(T4,a);return e.createVNode(B4,{ref:o},{default:()=>{var c;return[e.createVNode("svg",{width:"21px",height:"20px"},[e.createVNode("polyline",{"stroke-width":"4",fill:"transparent",stroke:l[0],points:"10, 0 19, 10 10, 20"},null),e.createVNode("polyline",{"stroke-width":"2",fill:"transparent",stroke:l[1],points:"2, 0 11, 10 2, 20"},null)]),(c=n.default)==null?void 0:c.call(n),e.createVNode("svg",{width:"21px",height:"20px"},[e.createVNode("polyline",{"stroke-width":"4",fill:"transparent",stroke:l[0],points:"11, 0 2, 10 11, 20"},null),e.createVNode("polyline",{"stroke-width":"2",fill:"transparent",stroke:l[1],points:"19, 0 10, 10 19, 20"},null)])]}})}}});var O4=Object.defineProperty,Gh=Object.getOwnPropertySymbols,I4=Object.prototype.hasOwnProperty,z4=Object.prototype.propertyIsEnumerable,Hh=(t,n,r)=>n in t?O4(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Yh=(t,n)=>{for(var r in n||(n={}))I4.call(n,r)&&Hh(t,r,n[r]);if(Gh)for(var r of Gh(n))z4.call(n,r)&&Hh(t,r,n[r]);return t};const R4=["#3f96a5","#3f96a5"];function M4(){return Yh(Yh({},qt()),Rc())}const A4=me.div`
|
|
768
768
|
display: flex;
|
|
769
769
|
width: 100%;
|
|
770
770
|
height: 100%;
|
|
771
|
-
`("decoration-8"),
|
|
771
|
+
`("decoration-8"),L4=De(e.defineComponent({name:"Decoration8",props:M4(),setup(t,{expose:n}){const{autoBindRef:r,refreshLayoutSize:o,domSize:i}=ze();return n({refreshLayoutSize:o}),()=>{const{color:a,reverse:l}=t,{width:c,height:s}=i,d=u=>l?c-u:u,f=Xt(R4,a);return e.createVNode(A4,{ref:r},{default:()=>[e.createVNode("svg",{width:c,height:s},[e.createVNode("polyline",{stroke:f[0],"stroke-width":"2",fill:"transparent",points:`${d(0)}, 0 ${d(30)}, ${s/2}`},null),e.createVNode("polyline",{stroke:f[0],"stroke-width":"2",fill:"transparent",points:`${d(20)}, 0 ${d(50)}, ${s/2} ${d(c)}, ${s/2}`},null),e.createVNode("polyline",{stroke:f[1],fill:"transparent","stroke-width":"3",points:`${d(0)}, ${s-3}, ${d(200)}, ${s-3}`},null)])]})}}}));var F4=Object.defineProperty,Xh=Object.getOwnPropertySymbols,j4=Object.prototype.hasOwnProperty,P4=Object.prototype.propertyIsEnumerable,qh=(t,n,r)=>n in t?F4(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,Jh=(t,n)=>{for(var r in n||(n={}))j4.call(n,r)&&qh(t,r,n[r]);if(Xh)for(var r of Xh(n))P4.call(n,r)&&qh(t,r,n[r]);return t};function U4(){return Jh(Jh({},qt()),aa(3))}const Hc=["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],Kh=100,Zh=100,W4=me.div`
|
|
772
772
|
position: relative;
|
|
773
773
|
width: 100%;
|
|
774
774
|
height: 100%;
|
|
@@ -781,7 +781,7 @@ cursor: move;
|
|
|
781
781
|
left: 0px;
|
|
782
782
|
top: 0px;
|
|
783
783
|
transform-origin: left top;
|
|
784
|
-
`("decoration-9"),
|
|
784
|
+
`("decoration-9"),G4=De(e.defineComponent({name:"Decoration9",props:U4(),setup(t,{slots:n,expose:r}){const{autoBindRef:o,refreshLayoutSize:i,domSize:a}=ze();r({refreshLayoutSize:i});const l=`decoration-9-polygon-${ar().id}`;return()=>{const{width:c,height:s}=a,{color:d,duration:f}=t,u=Xt(Hc,d),p={transform:`scale(${c/Kh},${s/Zh})`};return e.createVNode(W4,{ref:o},{default:()=>{var m;return[e.createVNode("svg",{class:"svg-origin",width:Kh,height:Zh,style:p},[e.createVNode("defs",null,[e.createVNode("polygon",{id:l,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"},null)]),e.createVNode("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:u[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${f}s`,repeatCount:"indefinite"},null)]),e.createVNode("circle",{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:u[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:`${f}s`,repeatCount:"indefinite"},null)]),e.createVNode("circle",{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:ut(u[1]||Hc[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null),new Array(20).fill(0).map((h,_)=>e.createVNode("use",{key:_,"xlink:href":`#${l}`,stroke:u[1],fill:Math.random()>.4?"transparent":u[0]},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:`${f}s`,begin:`${_*f/20}s`,repeatCount:"indefinite"},null)])),e.createVNode("circle",{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:ut(u[1]||Hc[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"},null)]),(m=n.default)==null?void 0:m.call(n)]}})}}})),H4=me.div`
|
|
785
785
|
width: 100%;
|
|
786
786
|
height: 100%;
|
|
787
787
|
display: flex;
|
|
@@ -791,7 +791,7 @@ cursor: move;
|
|
|
791
791
|
}
|
|
792
792
|
.__STYLED__ .loading-tip {
|
|
793
793
|
font-size: 15px;
|
|
794
|
-
`("loading");e.defineComponent({name:"Loading",setup(t,{slots:n}){return()=>e.createVNode(HV,null,{default:()=>{var r;return[e.createVNode("svg",{width:"50px",height:"50px"},[e.createVNode("circle",{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"},null)]),e.createVNode("circle",{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"},null)])]),e.createVNode("div",{class:"loading-tip"},[(r=n.default)==null?void 0:r.call(n)])]}})}});const YV=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(b4),{color:e.unref(r),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),XV=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(S4),{color:e.unref(r),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),qV=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(E4),{color:e.unref(r),ref_key:"customRef",ref:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.config.customize.title),1)]),_:1},8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),JV=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(G4),{color:e.unref(r),scanDuration:i.config.customize.scanDuration,haloDuration:i.config.customize.haloDuration,ref_key:"customRef",ref:o},null,8,["color","scanDuration","haloDuration"]))}})},Symbol.toStringTag,{value:"Module"})),KV=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(Q4),{color:e.unref(r),duration:i.config.customize.duration,reverse:i.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","duration","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),ZV=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(aV),{color:e.unref(r),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),QV=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(hV),{color:e.unref(r),duration:i.config.customize.duration,reverse:i.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","duration","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),eE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(CV),{color:e.unref(r),duration:i.config.customize.duration,ref_key:"customRef",ref:o},null,8,["color","duration"]))}})},Symbol.toStringTag,{value:"Module"})),tE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(DV),{color:e.unref(r),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),nE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(LV),{color:e.unref(r),reverse:i.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),rE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(GV),{color:e.unref(r),reverse:i.config.customize.duration,ref_key:"customRef",ref:o},null,8,["color","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),oE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(XS),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),iE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(KS),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),aE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l,c,s;return e.openBlock(),e.createBlock(e.unref(hx),{color:e.unref(r),title:(l=n.config)==null?void 0:l.customize.title,titleWidth:(c=n.config)==null?void 0:c.customize.titleWidth,backgroundColor:(s=n.config)==null?void 0:s.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","title","titleWidth","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),lE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(gx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),cE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(yx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),dE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(Cx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),sE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(Vx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),fE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l,c;return e.openBlock(),e.createBlock(e.unref(Ax),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,reverse:(c=n.config)==null?void 0:c.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse"])}}})},Symbol.toStringTag,{value:"Module"})),uE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l,c;return e.openBlock(),e.createBlock(e.unref(qx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,reverse:(c=n.config)==null?void 0:c.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse"])}}})},Symbol.toStringTag,{value:"Module"})),pE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(Zx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),hE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(t4),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),mE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l,c,s;return e.openBlock(),e.createBlock(e.unref(u4),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,reverse:(c=n.config)==null?void 0:c.customize.reverse,duration:(s=n.config)==null?void 0:s.customize.duration,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse","duration"])}}})},Symbol.toStringTag,{value:"Module"})),gE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(m4),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),_E=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{const o=n.config.customize.gradientColor0,i=n.config.customize.gradientColor1;return`linear-gradient(to bottom, ${o||i} , ${i||o})`});return(o,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:n.config.customize.width+"px","background-image":e.unref(r)}),class:"h-full"},null,4))}})},Symbol.toStringTag,{value:"Module"})),vE=["src"],yE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t;return(r,o)=>(e.openBlock(),e.createElementBlock("iframe",{src:n.config.customize.url,class:"w-full h-full border-0"},null,8,vE))}})},Symbol.toStringTag,{value:"Module"})),bE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const{proxy:n}=e.getCurrentInstance(),{resetUrl:r}=n.$globalUtils,o=t;return(i,a)=>(e.openBlock(),e.createBlock(e.unref(S.ElImage),{class:"w-full h-full",src:e.unref(r)(o.config.customize.url),fit:o.config.customize.fit},null,8,["src","fit"]))}})},Symbol.toStringTag,{value:"Module"})),wE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>`-webkit-linear-gradient(${n.config.customize.colorPosition}, ${n.config.customize.startColor}, ${n.config.customize.endColor}`);return(o,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...n.config.customize,fontSize:n.config.customize.fontSize+"px",letterSpacing:n.config.customize.letterSpacing+"px",backgroundImage:e.unref(r),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(n.config.customize.title),5))}})},Symbol.toStringTag,{value:"Module"})),CE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{const o=n.config.customize.gradientColor0,i=n.config.customize.gradientColor1;return`linear-gradient(to ${n.config.customize.colorPosition}, ${o||i} , ${i||o})`});return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full",style:e.normalizeStyle({"background-image":e.unref(r),borderRadius:n.config.customize.borderRadius+"px"})},null,4))}})},Symbol.toStringTag,{value:"Module"})),SE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>`-webkit-linear-gradient(${n.config.customize.colorPosition}, ${n.config.customize.startColor}, ${n.config.customize.endColor}`);return(o,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...n.config.customize,fontSize:n.config.customize.fontSize+"px",letterSpacing:n.config.customize.letterSpacing+"px",backgroundImage:e.unref(r),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(n.config.customize.title),5))}})},Symbol.toStringTag,{value:"Module"})),xE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.ref(),o=()=>{r.value=dr().format("YYYY-MM-DD HH:mm:ss")},i=setInterval(()=>{o()},1e3);o(),e.onBeforeUnmount(()=>{i&&clearInterval(i)});const a=e.computed(()=>`-webkit-linear-gradient(${n.config.customize.colorPosition}, ${n.config.customize.startColor}, ${n.config.customize.endColor}`);return(l,c)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...n.config.customize,fontSize:n.config.customize.fontSize+"px",letterSpacing:n.config.customize.letterSpacing+"px",backgroundImage:e.unref(a),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(e.unref(r)),5))}})},Symbol.toStringTag,{value:"Module"})),VE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{const o=n.config.customize.gradientColor0,i=n.config.customize.gradientColor1;return`linear-gradient(to right, ${o||i} , ${i||o})`});return(o,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:n.config.customize.height+"px","background-image":e.unref(r)}),class:"w-full"},null,4))}})},Symbol.toStringTag,{value:"Module"})),Qh={};for(let t=0;t<=4;t+=1){let n=null;if(t==0&&(n=Object.assign({"../decoration/decoration1/index.vue":YV,"../decoration/decoration10/index.vue":XV,"../decoration/decoration11/index.vue":qV,"../decoration/decoration12/index.vue":JV,"../decoration/decoration2/index.vue":KV,"../decoration/decoration3/index.vue":ZV,"../decoration/decoration4/index.vue":QV,"../decoration/decoration5/index.vue":eE,"../decoration/decoration6/index.vue":tE,"../decoration/decoration8/index.vue":nE,"../decoration/decoration9/index.vue":rE})),t==1&&(n=Object.assign({"../border/border1/index.vue":oE,"../border/border10/index.vue":iE,"../border/border11/index.vue":aE,"../border/border12/index.vue":lE,"../border/border13/index.vue":cE,"../border/border2/index.vue":dE,"../border/border3/index.vue":sE,"../border/border4/index.vue":fE,"../border/border5/index.vue":uE,"../border/border6/index.vue":pE,"../border/border7/index.vue":hE,"../border/border8/index.vue":mE,"../border/border9/index.vue":gE})),t==2&&(n=Object.assign({"../basic/horizontal-line/index.vue":_E,"../basic/iframe/index.vue":yE,"../basic/img/index.vue":bE,"../basic/number/index.vue":wE,"../basic/square/index.vue":CE,"../basic/text/index.vue":SE,"../basic/time/index.vue":xE,"../basic/vertical-line/index.vue":VE})),n)for(const[r,o]of Object.entries(n)){const i=r.split("/")[2];Qh[i]=o.default}}function Yc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(c=>!i.dataShow.hide.includes(c));i.dataset.dimensions=[i.dataShow.x,...l],i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(c=>{c.label.formatter=s=>{const d=i.custom,f=s.data[s.seriesName];if((d==null?void 0:d.toFixed)!=="")try{return Number(f).toFixed(d.toFixed)}catch{return f}return f}}),i.series=l.map((c,s)=>t.value[c]),a&&a()})},r={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:n,customSeriesData:t,seriesItem:r,barConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function da(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(c=>!i.dataShow.hide.includes(c));i.dataset.dimensions=[i.dataShow.x,...l],i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(c=>{c.label.formatter=s=>{const d=i.custom,f=s.data[s.seriesName];if((d==null?void 0:d.toFixed)!=="")try{return Number(f).toFixed(d.toFixed)}catch{return f}return f}}),i.series=l.map((c,s)=>t.value[c]),a&&a()})},r={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,position:"top",color:"#000000",fontSize:10,rotate:0}};return{init:n,customSeriesData:t,seriesItem:r,lineConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Xc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{i.dataset.dimensions=[i.dataShow.x,i.dataShow.y],t.value[i.dataShow.y]||(t.value[i.dataShow.y]=JSON.parse(JSON.stringify(r))),window.customSeriesData=t.value,i.series=[t.value[i.dataShow.y]],a&&a()})},r={type:"pie",radius:["40%","65%"],center:["50%","50%"],roseType:!1,avoidLabelOverlap:!1,itemStyle:{show:!0,borderRadius:10,borderColor:"#fff",borderWidth:2},emphasis:{labelLine:{show:!0}},labelLine:{show:!0},label:{show:!0,color:"#000000",fontSize:10,position:"center",formatter:"{b}"}};return{init:n,customSeriesData:t,seriesItem:r,pieConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"item"},dataShow:{x:"",y:""},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},dataset:{},series:[]}}}function qc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(a,l)=>{a.series=[],setTimeout(()=>{const c=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=[a.dataShow.x,...c],a.dataShow.y.forEach((s,d)=>{if(t.value[s])return;const f=a.dataShow.y.length==d+1&&a.dataShow.y.length>0;t.value[s]=JSON.parse(JSON.stringify(f?r:o))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(s=>{s.label.formatter=d=>{const f=a.custom,u=d.data[d.seriesName];if((f==null?void 0:f.toFixed)!=="")try{return Number(u).toFixed(f.toFixed)}catch{return u}return u}}),a.series=c.map((s,d)=>t.value[s]),l&&l()})},r={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}},o={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:n,customSeriesData:t,seriesLineItem:r,seriesBarItem:o,barsLinesConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Jc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(c=>!i.dataShow.hide.includes(c));i.dataset.dimensions=[i.dataShow.x,...l],i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(c=>{c.label.formatter=s=>{const d=i.custom,f=s.data[s.seriesName];if((d==null?void 0:d.toFixed)!=="")try{return Number(f).toFixed(d.toFixed)}catch{return f}return f}}),i.series=l.map((c,s)=>t.value[c]),a&&a()})},r={type:"scatter",emphasis:{focus:"series"},symbolSize:12,itemStyle:{color:null},markArea:{silent:!0,itemStyle:{color:"transparent",borderWidth:1,borderType:"dashed"},data:[[{xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:n,customSeriesData:t,seriesItem:r,scatterCfg:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Kc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(s=>!i.dataShow.hide.includes(s));i.dataset.dimensions=l,e.unref(t).type||(t.value=JSON.parse(JSON.stringify(r))),window.customSeriesData=t.value,i.radar.indicator=i.dataset.source.map(s=>({name:s[i.dataShow.x]}));const c=[];i.dataset.dimensions.forEach(s=>{c.push({name:s,value:i.dataset.source.map(d=>d[s])})}),i.series=[{...t.value,data:c}],e.unref(t).label.formatter=s=>{const d=i.custom,f=s.value;if((d==null?void 0:d.toFixed)!=="")try{return Number(f).toFixed(d.toFixed)}catch{return f}return f},a&&a()})},r={type:"radar",areaStyle:{opacity:.1},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10},data:[]};return{init:n,customSeriesData:t,seriesItem:r,radarConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},radar:{shape:"polygon",radius:["0%","60%"],center:["50%","55%"],splitArea:{show:!0},splitLine:{show:!0},axisName:{show:!0,color:"#000",fontSize:12},axisLine:{show:!0},axisTick:{show:!0},indicator:[]},dataset:{},series:[]}}}function em(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{typeof i.dataShow.y=="string"&&i.dataShow.y&&(i.dataShow.y=[i.dataShow.y]);const l=i.dataShow.y.filter(c=>{var s;return!(((s=i.dataShow)==null?void 0:s.hide)??[]).includes(c)});i.dataset.dimensions=l,i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),i.customSeriesData=t.value,window.customSeriesData=t.value,a&&a()})},r={prefix:"",suffix:"",toFixed:0,color:null,fontSize:14,bgColor:null};return{init:n,seriesItem:r,customSeriesData:t,numberConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}function sa(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(c=>!i.dataShow.hide.includes(c));i.dataset.dimensions=l,i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),i.customSeriesData=t.value,window.customSeriesData=t.value,a&&a()})},r={prefix:"",suffix:"",toFixed:0,color:null};return{init:n,customSeriesData:t,tableConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}const tm=[{code:"100000",name:"中华人民共和国",region_level:0,children:[{code:"11",name:"北京市",region_level:1,children:[{code:"1101",name:"北京市",region_level:2,children:[{code:"110101",name:"东城区",region_level:3,children:[]},{code:"110102",name:"西城区",region_level:3,children:[]},{code:"110105",name:"朝阳区",region_level:3,children:[]},{code:"110106",name:"丰台区",region_level:3,children:[]},{code:"110107",name:"石景山区",region_level:3,children:[]},{code:"110108",name:"海淀区",region_level:3,children:[]},{code:"110109",name:"门头沟区",region_level:3,children:[]},{code:"110111",name:"房山区",region_level:3,children:[]},{code:"110112",name:"通州区",region_level:3,children:[]},{code:"110113",name:"顺义区",region_level:3,children:[]},{code:"110114",name:"昌平区",region_level:3,children:[]},{code:"110115",name:"大兴区",region_level:3,children:[]},{code:"110116",name:"怀柔区",region_level:3,children:[]},{code:"110117",name:"平谷区",region_level:3,children:[]},{code:"110118",name:"密云区",region_level:3,children:[]},{code:"110119",name:"延庆区",region_level:3,children:[]}]}]},{code:"12",name:"天津市",region_level:1,children:[{code:"1201",name:"天津市",region_level:2,children:[{code:"120101",name:"和平区",region_level:3,children:[]},{code:"120102",name:"河东区",region_level:3,children:[]},{code:"120103",name:"河西区",region_level:3,children:[]},{code:"120104",name:"南开区",region_level:3,children:[]},{code:"120105",name:"河北区",region_level:3,children:[]},{code:"120106",name:"红桥区",region_level:3,children:[]},{code:"120110",name:"东丽区",region_level:3,children:[]},{code:"120111",name:"西青区",region_level:3,children:[]},{code:"120112",name:"津南区",region_level:3,children:[]},{code:"120113",name:"北辰区",region_level:3,children:[]},{code:"120114",name:"武清区",region_level:3,children:[]},{code:"120115",name:"宝坻区",region_level:3,children:[]},{code:"120116",name:"滨海新区",region_level:3,children:[]},{code:"120117",name:"宁河区",region_level:3,children:[]},{code:"120118",name:"静海区",region_level:3,children:[]},{code:"120119",name:"蓟州区",region_level:3,children:[]}]}]},{code:"13",name:"河北省",region_level:1,children:[{code:"1301",name:"石家庄市",region_level:2,children:[{code:"130102",name:"长安区",region_level:3,children:[]},{code:"130104",name:"桥西区",region_level:3,children:[]},{code:"130105",name:"新华区",region_level:3,children:[]},{code:"130107",name:"井陉矿区",region_level:3,children:[]},{code:"130108",name:"裕华区",region_level:3,children:[]},{code:"130109",name:"藁城区",region_level:3,children:[]},{code:"130110",name:"鹿泉区",region_level:3,children:[]},{code:"130111",name:"栾城区",region_level:3,children:[]},{code:"130121",name:"井陉县",region_level:3,children:[]},{code:"130123",name:"正定县",region_level:3,children:[]},{code:"130125",name:"行唐县",region_level:3,children:[]},{code:"130126",name:"灵寿县",region_level:3,children:[]},{code:"130127",name:"高邑县",region_level:3,children:[]},{code:"130128",name:"深泽县",region_level:3,children:[]},{code:"130129",name:"赞皇县",region_level:3,children:[]},{code:"130130",name:"无极县",region_level:3,children:[]},{code:"130131",name:"平山县",region_level:3,children:[]},{code:"130132",name:"元氏县",region_level:3,children:[]},{code:"130133",name:"赵县",region_level:3,children:[]},{code:"130181",name:"辛集市",region_level:3,children:[]},{code:"130183",name:"晋州市",region_level:3,children:[]},{code:"130184",name:"新乐市",region_level:3,children:[]}]},{code:"1302",name:"唐山市",region_level:2,children:[{code:"130202",name:"路南区",region_level:3,children:[]},{code:"130203",name:"路北区",region_level:3,children:[]},{code:"130204",name:"古冶区",region_level:3,children:[]},{code:"130205",name:"开平区",region_level:3,children:[]},{code:"130207",name:"丰南区",region_level:3,children:[]},{code:"130208",name:"丰润区",region_level:3,children:[]},{code:"130209",name:"曹妃甸区",region_level:3,children:[]},{code:"130224",name:"滦南县",region_level:3,children:[]},{code:"130225",name:"乐亭县",region_level:3,children:[]},{code:"130227",name:"迁西县",region_level:3,children:[]},{code:"130229",name:"玉田县",region_level:3,children:[]},{code:"130281",name:"遵化市",region_level:3,children:[]},{code:"130283",name:"迁安市",region_level:3,children:[]},{code:"130284",name:"滦州市",region_level:3,children:[]}]},{code:"1303",name:"秦皇岛市",region_level:2,children:[{code:"130302",name:"海港区",region_level:3,children:[]},{code:"130303",name:"山海关区",region_level:3,children:[]},{code:"130304",name:"北戴河区",region_level:3,children:[]},{code:"130306",name:"抚宁区",region_level:3,children:[]},{code:"130321",name:"青龙满族自治县",region_level:3,children:[]},{code:"130322",name:"昌黎县",region_level:3,children:[]},{code:"130324",name:"卢龙县",region_level:3,children:[]}]},{code:"1304",name:"邯郸市",region_level:2,children:[{code:"130402",name:"邯山区",region_level:3,children:[]},{code:"130403",name:"丛台区",region_level:3,children:[]},{code:"130404",name:"复兴区",region_level:3,children:[]},{code:"130406",name:"峰峰矿区",region_level:3,children:[]},{code:"130407",name:"肥乡区",region_level:3,children:[]},{code:"130408",name:"永年区",region_level:3,children:[]},{code:"130423",name:"临漳县",region_level:3,children:[]},{code:"130424",name:"成安县",region_level:3,children:[]},{code:"130425",name:"大名县",region_level:3,children:[]},{code:"130426",name:"涉县",region_level:3,children:[]},{code:"130427",name:"磁县",region_level:3,children:[]},{code:"130430",name:"邱县",region_level:3,children:[]},{code:"130431",name:"鸡泽县",region_level:3,children:[]},{code:"130432",name:"广平县",region_level:3,children:[]},{code:"130433",name:"馆陶县",region_level:3,children:[]},{code:"130434",name:"魏县",region_level:3,children:[]},{code:"130435",name:"曲周县",region_level:3,children:[]},{code:"130481",name:"武安市",region_level:3,children:[]}]},{code:"1305",name:"邢台市",region_level:2,children:[{code:"130502",name:"桥东区",region_level:3,children:[]},{code:"130503",name:"桥西区",region_level:3,children:[]},{code:"130521",name:"邢台县",region_level:3,children:[]},{code:"130522",name:"临城县",region_level:3,children:[]},{code:"130523",name:"内丘县",region_level:3,children:[]},{code:"130524",name:"柏乡县",region_level:3,children:[]},{code:"130525",name:"隆尧县",region_level:3,children:[]},{code:"130526",name:"任县",region_level:3,children:[]},{code:"130527",name:"南和县",region_level:3,children:[]},{code:"130528",name:"宁晋县",region_level:3,children:[]},{code:"130529",name:"巨鹿县",region_level:3,children:[]},{code:"130530",name:"新河县",region_level:3,children:[]},{code:"130531",name:"广宗县",region_level:3,children:[]},{code:"130532",name:"平乡县",region_level:3,children:[]},{code:"130533",name:"威县",region_level:3,children:[]},{code:"130534",name:"清河县",region_level:3,children:[]},{code:"130535",name:"临西县",region_level:3,children:[]},{code:"130581",name:"南宫市",region_level:3,children:[]},{code:"130582",name:"沙河市",region_level:3,children:[]}]},{code:"1306",name:"保定市",region_level:2,children:[{code:"130602",name:"竞秀区",region_level:3,children:[]},{code:"130606",name:"莲池区",region_level:3,children:[]},{code:"130607",name:"满城区",region_level:3,children:[]},{code:"130608",name:"清苑区",region_level:3,children:[]},{code:"130609",name:"徐水区",region_level:3,children:[]},{code:"130623",name:"涞水县",region_level:3,children:[]},{code:"130624",name:"阜平县",region_level:3,children:[]},{code:"130626",name:"定兴县",region_level:3,children:[]},{code:"130627",name:"唐县",region_level:3,children:[]},{code:"130628",name:"高阳县",region_level:3,children:[]},{code:"130629",name:"容城县",region_level:3,children:[]},{code:"130630",name:"涞源县",region_level:3,children:[]},{code:"130631",name:"望都县",region_level:3,children:[]},{code:"130632",name:"安新县",region_level:3,children:[]},{code:"130633",name:"易县",region_level:3,children:[]},{code:"130634",name:"曲阳县",region_level:3,children:[]},{code:"130635",name:"蠡县",region_level:3,children:[]},{code:"130636",name:"顺平县",region_level:3,children:[]},{code:"130637",name:"博野县",region_level:3,children:[]},{code:"130638",name:"雄县",region_level:3,children:[]},{code:"130681",name:"涿州市",region_level:3,children:[]},{code:"130682",name:"定州市",region_level:3,children:[]},{code:"130683",name:"安国市",region_level:3,children:[]},{code:"130684",name:"高碑店市",region_level:3,children:[]}]},{code:"1307",name:"张家口市",region_level:2,children:[{code:"130702",name:"桥东区",region_level:3,children:[]},{code:"130703",name:"桥西区",region_level:3,children:[]},{code:"130705",name:"宣化区",region_level:3,children:[]},{code:"130706",name:"下花园区",region_level:3,children:[]},{code:"130708",name:"万全区",region_level:3,children:[]},{code:"130709",name:"崇礼区",region_level:3,children:[]},{code:"130722",name:"张北县",region_level:3,children:[]},{code:"130723",name:"康保县",region_level:3,children:[]},{code:"130724",name:"沽源县",region_level:3,children:[]},{code:"130725",name:"尚义县",region_level:3,children:[]},{code:"130726",name:"蔚县",region_level:3,children:[]},{code:"130727",name:"阳原县",region_level:3,children:[]},{code:"130728",name:"怀安县",region_level:3,children:[]},{code:"130730",name:"怀来县",region_level:3,children:[]},{code:"130731",name:"涿鹿县",region_level:3,children:[]},{code:"130732",name:"赤城县",region_level:3,children:[]}]},{code:"1308",name:"承德市",region_level:2,children:[{code:"130802",name:"双桥区",region_level:3,children:[]},{code:"130803",name:"双滦区",region_level:3,children:[]},{code:"130804",name:"鹰手营子矿区",region_level:3,children:[]},{code:"130821",name:"承德县",region_level:3,children:[]},{code:"130822",name:"兴隆县",region_level:3,children:[]},{code:"130824",name:"滦平县",region_level:3,children:[]},{code:"130825",name:"隆化县",region_level:3,children:[]},{code:"130826",name:"丰宁满族自治县",region_level:3,children:[]},{code:"130827",name:"宽城满族自治县",region_level:3,children:[]},{code:"130828",name:"围场满族蒙古族自治县",region_level:3,children:[]},{code:"130881",name:"平泉市",region_level:3,children:[]}]},{code:"1309",name:"沧州市",region_level:2,children:[{code:"130902",name:"新华区",region_level:3,children:[]},{code:"130903",name:"运河区",region_level:3,children:[]},{code:"130921",name:"沧县",region_level:3,children:[]},{code:"130922",name:"青县",region_level:3,children:[]},{code:"130923",name:"东光县",region_level:3,children:[]},{code:"130924",name:"海兴县",region_level:3,children:[]},{code:"130925",name:"盐山县",region_level:3,children:[]},{code:"130926",name:"肃宁县",region_level:3,children:[]},{code:"130927",name:"南皮县",region_level:3,children:[]},{code:"130928",name:"吴桥县",region_level:3,children:[]},{code:"130929",name:"献县",region_level:3,children:[]},{code:"130930",name:"孟村回族自治县",region_level:3,children:[]},{code:"130981",name:"泊头市",region_level:3,children:[]},{code:"130982",name:"任丘市",region_level:3,children:[]},{code:"130983",name:"黄骅市",region_level:3,children:[]},{code:"130984",name:"河间市",region_level:3,children:[]}]},{code:"1310",name:"廊坊市",region_level:2,children:[{code:"131002",name:"安次区",region_level:3,children:[]},{code:"131003",name:"广阳区",region_level:3,children:[]},{code:"131022",name:"固安县",region_level:3,children:[]},{code:"131023",name:"永清县",region_level:3,children:[]},{code:"131024",name:"香河县",region_level:3,children:[]},{code:"131025",name:"大城县",region_level:3,children:[]},{code:"131026",name:"文安县",region_level:3,children:[]},{code:"131028",name:"大厂回族自治县",region_level:3,children:[]},{code:"131081",name:"霸州市",region_level:3,children:[]},{code:"131082",name:"三河市",region_level:3,children:[]}]},{code:"1311",name:"衡水市",region_level:2,children:[{code:"131102",name:"桃城区",region_level:3,children:[]},{code:"131103",name:"冀州区",region_level:3,children:[]},{code:"131121",name:"枣强县",region_level:3,children:[]},{code:"131122",name:"武邑县",region_level:3,children:[]},{code:"131123",name:"武强县",region_level:3,children:[]},{code:"131124",name:"饶阳县",region_level:3,children:[]},{code:"131125",name:"安平县",region_level:3,children:[]},{code:"131126",name:"故城县",region_level:3,children:[]},{code:"131127",name:"景县",region_level:3,children:[]},{code:"131128",name:"阜城县",region_level:3,children:[]},{code:"131182",name:"深州市",region_level:3,children:[]}]}]},{code:"14",name:"山西省",region_level:1,children:[{code:"1401",name:"太原市",region_level:2,children:[{code:"140105",name:"小店区",region_level:3,children:[]},{code:"140106",name:"迎泽区",region_level:3,children:[]},{code:"140107",name:"杏花岭区",region_level:3,children:[]},{code:"140108",name:"尖草坪区",region_level:3,children:[]},{code:"140109",name:"万柏林区",region_level:3,children:[]},{code:"140110",name:"晋源区",region_level:3,children:[]},{code:"140121",name:"清徐县",region_level:3,children:[]},{code:"140122",name:"阳曲县",region_level:3,children:[]},{code:"140123",name:"娄烦县",region_level:3,children:[]},{code:"140181",name:"古交市",region_level:3,children:[]}]},{code:"1402",name:"大同市",region_level:2,children:[{code:"140212",name:"新荣区",region_level:3,children:[]},{code:"140213",name:"平城区",region_level:3,children:[]},{code:"140214",name:"云冈区",region_level:3,children:[]},{code:"140215",name:"云州区",region_level:3,children:[]},{code:"140221",name:"阳高县",region_level:3,children:[]},{code:"140222",name:"天镇县",region_level:3,children:[]},{code:"140223",name:"广灵县",region_level:3,children:[]},{code:"140224",name:"灵丘县",region_level:3,children:[]},{code:"140225",name:"浑源县",region_level:3,children:[]},{code:"140226",name:"左云县",region_level:3,children:[]}]},{code:"1403",name:"阳泉市",region_level:2,children:[{code:"140302",name:"城区",region_level:3,children:[]},{code:"140303",name:"矿区",region_level:3,children:[]},{code:"140311",name:"郊区",region_level:3,children:[]},{code:"140321",name:"平定县",region_level:3,children:[]},{code:"140322",name:"盂县",region_level:3,children:[]}]},{code:"1404",name:"长治市",region_level:2,children:[{code:"140403",name:"潞州区",region_level:3,children:[]},{code:"140404",name:"上党区",region_level:3,children:[]},{code:"140405",name:"屯留区",region_level:3,children:[]},{code:"140406",name:"潞城区",region_level:3,children:[]},{code:"140423",name:"襄垣县",region_level:3,children:[]},{code:"140425",name:"平顺县",region_level:3,children:[]},{code:"140426",name:"黎城县",region_level:3,children:[]},{code:"140427",name:"壶关县",region_level:3,children:[]},{code:"140428",name:"长子县",region_level:3,children:[]},{code:"140429",name:"武乡县",region_level:3,children:[]},{code:"140430",name:"沁县",region_level:3,children:[]},{code:"140431",name:"沁源县",region_level:3,children:[]}]},{code:"1405",name:"晋城市",region_level:2,children:[{code:"140502",name:"城区",region_level:3,children:[]},{code:"140521",name:"沁水县",region_level:3,children:[]},{code:"140522",name:"阳城县",region_level:3,children:[]},{code:"140524",name:"陵川县",region_level:3,children:[]},{code:"140525",name:"泽州县",region_level:3,children:[]},{code:"140581",name:"高平市",region_level:3,children:[]}]},{code:"1406",name:"朔州市",region_level:2,children:[{code:"140602",name:"朔城区",region_level:3,children:[]},{code:"140603",name:"平鲁区",region_level:3,children:[]},{code:"140621",name:"山阴县",region_level:3,children:[]},{code:"140622",name:"应县",region_level:3,children:[]},{code:"140623",name:"右玉县",region_level:3,children:[]},{code:"140681",name:"怀仁市",region_level:3,children:[]}]},{code:"1407",name:"晋中市",region_level:2,children:[{code:"140702",name:"榆次区",region_level:3,children:[]},{code:"140703",name:"太谷区",region_level:3,children:[]},{code:"140721",name:"榆社县",region_level:3,children:[]},{code:"140722",name:"左权县",region_level:3,children:[]},{code:"140723",name:"和顺县",region_level:3,children:[]},{code:"140724",name:"昔阳县",region_level:3,children:[]},{code:"140725",name:"寿阳县",region_level:3,children:[]},{code:"140727",name:"祁县",region_level:3,children:[]},{code:"140728",name:"平遥县",region_level:3,children:[]},{code:"140729",name:"灵石县",region_level:3,children:[]},{code:"140781",name:"介休市",region_level:3,children:[]}]},{code:"1408",name:"运城市",region_level:2,children:[{code:"140802",name:"盐湖区",region_level:3,children:[]},{code:"140821",name:"临猗县",region_level:3,children:[]},{code:"140822",name:"万荣县",region_level:3,children:[]},{code:"140823",name:"闻喜县",region_level:3,children:[]},{code:"140824",name:"稷山县",region_level:3,children:[]},{code:"140825",name:"新绛县",region_level:3,children:[]},{code:"140826",name:"绛县",region_level:3,children:[]},{code:"140827",name:"垣曲县",region_level:3,children:[]},{code:"140828",name:"夏县",region_level:3,children:[]},{code:"140829",name:"平陆县",region_level:3,children:[]},{code:"140830",name:"芮城县",region_level:3,children:[]},{code:"140881",name:"永济市",region_level:3,children:[]},{code:"140882",name:"河津市",region_level:3,children:[]}]},{code:"1409",name:"忻州市",region_level:2,children:[{code:"140902",name:"忻府区",region_level:3,children:[]},{code:"140921",name:"定襄县",region_level:3,children:[]},{code:"140922",name:"五台县",region_level:3,children:[]},{code:"140923",name:"代县",region_level:3,children:[]},{code:"140924",name:"繁峙县",region_level:3,children:[]},{code:"140925",name:"宁武县",region_level:3,children:[]},{code:"140926",name:"静乐县",region_level:3,children:[]},{code:"140927",name:"神池县",region_level:3,children:[]},{code:"140928",name:"五寨县",region_level:3,children:[]},{code:"140929",name:"岢岚县",region_level:3,children:[]},{code:"140930",name:"河曲县",region_level:3,children:[]},{code:"140931",name:"保德县",region_level:3,children:[]},{code:"140932",name:"偏关县",region_level:3,children:[]},{code:"140981",name:"原平市",region_level:3,children:[]}]},{code:"1410",name:"临汾市",region_level:2,children:[{code:"141002",name:"尧都区",region_level:3,children:[]},{code:"141021",name:"曲沃县",region_level:3,children:[]},{code:"141022",name:"翼城县",region_level:3,children:[]},{code:"141023",name:"襄汾县",region_level:3,children:[]},{code:"141024",name:"洪洞县",region_level:3,children:[]},{code:"141025",name:"古县",region_level:3,children:[]},{code:"141026",name:"安泽县",region_level:3,children:[]},{code:"141027",name:"浮山县",region_level:3,children:[]},{code:"141028",name:"吉县",region_level:3,children:[]},{code:"141029",name:"乡宁县",region_level:3,children:[]},{code:"141030",name:"大宁县",region_level:3,children:[]},{code:"141031",name:"隰县",region_level:3,children:[]},{code:"141032",name:"永和县",region_level:3,children:[]},{code:"141033",name:"蒲县",region_level:3,children:[]},{code:"141034",name:"汾西县",region_level:3,children:[]},{code:"141081",name:"侯马市",region_level:3,children:[]},{code:"141082",name:"霍州市",region_level:3,children:[]}]},{code:"1411",name:"吕梁市",region_level:2,children:[{code:"141102",name:"离石区",region_level:3,children:[]},{code:"141121",name:"文水县",region_level:3,children:[]},{code:"141122",name:"交城县",region_level:3,children:[]},{code:"141123",name:"兴县",region_level:3,children:[]},{code:"141124",name:"临县",region_level:3,children:[]},{code:"141125",name:"柳林县",region_level:3,children:[]},{code:"141126",name:"石楼县",region_level:3,children:[]},{code:"141127",name:"岚县",region_level:3,children:[]},{code:"141128",name:"方山县",region_level:3,children:[]},{code:"141129",name:"中阳县",region_level:3,children:[]},{code:"141130",name:"交口县",region_level:3,children:[]},{code:"141181",name:"孝义市",region_level:3,children:[]},{code:"141182",name:"汾阳市",region_level:3,children:[]}]}]},{code:"15",name:"内蒙古自治区",region_level:1,children:[{code:"1501",name:"呼和浩特市",region_level:2,children:[{code:"150102",name:"新城区",region_level:3,children:[]},{code:"150103",name:"回民区",region_level:3,children:[]},{code:"150104",name:"玉泉区",region_level:3,children:[]},{code:"150105",name:"赛罕区",region_level:3,children:[]},{code:"150121",name:"土默特左旗",region_level:3,children:[]},{code:"150122",name:"托克托县",region_level:3,children:[]},{code:"150123",name:"和林格尔县",region_level:3,children:[]},{code:"150124",name:"清水河县",region_level:3,children:[]},{code:"150125",name:"武川县",region_level:3,children:[]}]},{code:"1502",name:"包头市",region_level:2,children:[{code:"150202",name:"东河区",region_level:3,children:[]},{code:"150203",name:"昆都仑区",region_level:3,children:[]},{code:"150204",name:"青山区",region_level:3,children:[]},{code:"150205",name:"石拐区",region_level:3,children:[]},{code:"150206",name:"白云鄂博矿区",region_level:3,children:[]},{code:"150207",name:"九原区",region_level:3,children:[]},{code:"150221",name:"土默特右旗",region_level:3,children:[]},{code:"150222",name:"固阳县",region_level:3,children:[]},{code:"150223",name:"达尔罕茂明安联合旗",region_level:3,children:[]}]},{code:"1503",name:"乌海市",region_level:2,children:[{code:"150302",name:"海勃湾区",region_level:3,children:[]},{code:"150303",name:"海南区",region_level:3,children:[]},{code:"150304",name:"乌达区",region_level:3,children:[]}]},{code:"1504",name:"赤峰市",region_level:2,children:[{code:"150402",name:"红山区",region_level:3,children:[]},{code:"150403",name:"元宝山区",region_level:3,children:[]},{code:"150404",name:"松山区",region_level:3,children:[]},{code:"150421",name:"阿鲁科尔沁旗",region_level:3,children:[]},{code:"150422",name:"巴林左旗",region_level:3,children:[]},{code:"150423",name:"巴林右旗",region_level:3,children:[]},{code:"150424",name:"林西县",region_level:3,children:[]},{code:"150425",name:"克什克腾旗",region_level:3,children:[]},{code:"150426",name:"翁牛特旗",region_level:3,children:[]},{code:"150428",name:"喀喇沁旗",region_level:3,children:[]},{code:"150429",name:"宁城县",region_level:3,children:[]},{code:"150430",name:"敖汉旗",region_level:3,children:[]}]},{code:"1505",name:"通辽市",region_level:2,children:[{code:"150502",name:"科尔沁区",region_level:3,children:[]},{code:"150521",name:"科尔沁左翼中旗",region_level:3,children:[]},{code:"150522",name:"科尔沁左翼后旗",region_level:3,children:[]},{code:"150523",name:"开鲁县",region_level:3,children:[]},{code:"150524",name:"库伦旗",region_level:3,children:[]},{code:"150525",name:"奈曼旗",region_level:3,children:[]},{code:"150526",name:"扎鲁特旗",region_level:3,children:[]},{code:"150581",name:"霍林郭勒市",region_level:3,children:[]}]},{code:"1506",name:"鄂尔多斯市",region_level:2,children:[{code:"150602",name:"东胜区",region_level:3,children:[]},{code:"150603",name:"康巴什区",region_level:3,children:[]},{code:"150621",name:"达拉特旗",region_level:3,children:[]},{code:"150622",name:"准格尔旗",region_level:3,children:[]},{code:"150623",name:"鄂托克前旗",region_level:3,children:[]},{code:"150624",name:"鄂托克旗",region_level:3,children:[]},{code:"150625",name:"杭锦旗",region_level:3,children:[]},{code:"150626",name:"乌审旗",region_level:3,children:[]},{code:"150627",name:"伊金霍洛旗",region_level:3,children:[]}]},{code:"1507",name:"呼伦贝尔市",region_level:2,children:[{code:"150702",name:"海拉尔区",region_level:3,children:[]},{code:"150703",name:"扎赉诺尔区",region_level:3,children:[]},{code:"150721",name:"阿荣旗",region_level:3,children:[]},{code:"150722",name:"莫力达瓦达斡尔族自治旗",region_level:3,children:[]},{code:"150723",name:"鄂伦春自治旗",region_level:3,children:[]},{code:"150724",name:"鄂温克族自治旗",region_level:3,children:[]},{code:"150725",name:"陈巴尔虎旗",region_level:3,children:[]},{code:"150726",name:"新巴尔虎左旗",region_level:3,children:[]},{code:"150727",name:"新巴尔虎右旗",region_level:3,children:[]},{code:"150781",name:"满洲里市",region_level:3,children:[]},{code:"150782",name:"牙克石市",region_level:3,children:[]},{code:"150783",name:"扎兰屯市",region_level:3,children:[]},{code:"150784",name:"额尔古纳市",region_level:3,children:[]},{code:"150785",name:"根河市",region_level:3,children:[]}]},{code:"1508",name:"巴彦淖尔市",region_level:2,children:[{code:"150802",name:"临河区",region_level:3,children:[]},{code:"150821",name:"五原县",region_level:3,children:[]},{code:"150822",name:"磴口县",region_level:3,children:[]},{code:"150823",name:"乌拉特前旗",region_level:3,children:[]},{code:"150824",name:"乌拉特中旗",region_level:3,children:[]},{code:"150825",name:"乌拉特后旗",region_level:3,children:[]},{code:"150826",name:"杭锦后旗",region_level:3,children:[]}]},{code:"1509",name:"乌兰察布市",region_level:2,children:[{code:"150902",name:"集宁区",region_level:3,children:[]},{code:"150921",name:"卓资县",region_level:3,children:[]},{code:"150922",name:"化德县",region_level:3,children:[]},{code:"150923",name:"商都县",region_level:3,children:[]},{code:"150924",name:"兴和县",region_level:3,children:[]},{code:"150925",name:"凉城县",region_level:3,children:[]},{code:"150926",name:"察哈尔右翼前旗",region_level:3,children:[]},{code:"150927",name:"察哈尔右翼中旗",region_level:3,children:[]},{code:"150928",name:"察哈尔右翼后旗",region_level:3,children:[]},{code:"150929",name:"四子王旗",region_level:3,children:[]},{code:"150981",name:"丰镇市",region_level:3,children:[]}]},{code:"1522",name:"兴安盟",region_level:2,children:[{code:"152201",name:"乌兰浩特市",region_level:3,children:[]},{code:"152202",name:"阿尔山市",region_level:3,children:[]},{code:"152221",name:"科尔沁右翼前旗",region_level:3,children:[]},{code:"152222",name:"科尔沁右翼中旗",region_level:3,children:[]},{code:"152223",name:"扎赉特旗",region_level:3,children:[]},{code:"152224",name:"突泉县",region_level:3,children:[]}]},{code:"1525",name:"锡林郭勒盟",region_level:2,children:[{code:"152501",name:"二连浩特市",region_level:3,children:[]},{code:"152502",name:"锡林浩特市",region_level:3,children:[]},{code:"152522",name:"阿巴嘎旗",region_level:3,children:[]},{code:"152523",name:"苏尼特左旗",region_level:3,children:[]},{code:"152524",name:"苏尼特右旗",region_level:3,children:[]},{code:"152525",name:"东乌珠穆沁旗",region_level:3,children:[]},{code:"152526",name:"西乌珠穆沁旗",region_level:3,children:[]},{code:"152527",name:"太仆寺旗",region_level:3,children:[]},{code:"152528",name:"镶黄旗",region_level:3,children:[]},{code:"152529",name:"正镶白旗",region_level:3,children:[]},{code:"152530",name:"正蓝旗",region_level:3,children:[]},{code:"152531",name:"多伦县",region_level:3,children:[]}]},{code:"1529",name:"阿拉善盟",region_level:2,children:[{code:"152921",name:"阿拉善左旗",region_level:3,children:[]},{code:"152922",name:"阿拉善右旗",region_level:3,children:[]},{code:"152923",name:"额济纳旗",region_level:3,children:[]}]}]},{code:"21",name:"辽宁省",region_level:1,children:[{code:"2101",name:"沈阳市",region_level:2,children:[{code:"210102",name:"和平区",region_level:3,children:[]},{code:"210103",name:"沈河区",region_level:3,children:[]},{code:"210104",name:"大东区",region_level:3,children:[]},{code:"210105",name:"皇姑区",region_level:3,children:[]},{code:"210106",name:"铁西区",region_level:3,children:[]},{code:"210111",name:"苏家屯区",region_level:3,children:[]},{code:"210112",name:"浑南区",region_level:3,children:[]},{code:"210113",name:"沈北新区",region_level:3,children:[]},{code:"210114",name:"于洪区",region_level:3,children:[]},{code:"210115",name:"辽中区",region_level:3,children:[]},{code:"210123",name:"康平县",region_level:3,children:[]},{code:"210124",name:"法库县",region_level:3,children:[]},{code:"210181",name:"新民市",region_level:3,children:[]}]},{code:"2102",name:"大连市",region_level:2,children:[{code:"210202",name:"中山区",region_level:3,children:[]},{code:"210203",name:"西岗区",region_level:3,children:[]},{code:"210204",name:"沙河口区",region_level:3,children:[]},{code:"210211",name:"甘井子区",region_level:3,children:[]},{code:"210212",name:"旅顺口区",region_level:3,children:[]},{code:"210213",name:"金州区",region_level:3,children:[]},{code:"210214",name:"普兰店区",region_level:3,children:[]},{code:"210224",name:"长海县",region_level:3,children:[]},{code:"210281",name:"瓦房店市",region_level:3,children:[]},{code:"210283",name:"庄河市",region_level:3,children:[]}]},{code:"2103",name:"鞍山市",region_level:2,children:[{code:"210302",name:"铁东区",region_level:3,children:[]},{code:"210303",name:"铁西区",region_level:3,children:[]},{code:"210304",name:"立山区",region_level:3,children:[]},{code:"210311",name:"千山区",region_level:3,children:[]},{code:"210321",name:"台安县",region_level:3,children:[]},{code:"210323",name:"岫岩满族自治县",region_level:3,children:[]},{code:"210381",name:"海城市",region_level:3,children:[]}]},{code:"2104",name:"抚顺市",region_level:2,children:[{code:"210402",name:"新抚区",region_level:3,children:[]},{code:"210403",name:"东洲区",region_level:3,children:[]},{code:"210404",name:"望花区",region_level:3,children:[]},{code:"210411",name:"顺城区",region_level:3,children:[]},{code:"210421",name:"抚顺县",region_level:3,children:[]},{code:"210422",name:"新宾满族自治县",region_level:3,children:[]},{code:"210423",name:"清原满族自治县",region_level:3,children:[]}]},{code:"2105",name:"本溪市",region_level:2,children:[{code:"210502",name:"平山区",region_level:3,children:[]},{code:"210503",name:"溪湖区",region_level:3,children:[]},{code:"210504",name:"明山区",region_level:3,children:[]},{code:"210505",name:"南芬区",region_level:3,children:[]},{code:"210521",name:"本溪满族自治县",region_level:3,children:[]},{code:"210522",name:"桓仁满族自治县",region_level:3,children:[]}]},{code:"2106",name:"丹东市",region_level:2,children:[{code:"210602",name:"元宝区",region_level:3,children:[]},{code:"210603",name:"振兴区",region_level:3,children:[]},{code:"210604",name:"振安区",region_level:3,children:[]},{code:"210624",name:"宽甸满族自治县",region_level:3,children:[]},{code:"210681",name:"东港市",region_level:3,children:[]},{code:"210682",name:"凤城市",region_level:3,children:[]}]},{code:"2107",name:"锦州市",region_level:2,children:[{code:"210702",name:"古塔区",region_level:3,children:[]},{code:"210703",name:"凌河区",region_level:3,children:[]},{code:"210711",name:"太和区",region_level:3,children:[]},{code:"210726",name:"黑山县",region_level:3,children:[]},{code:"210727",name:"义县",region_level:3,children:[]},{code:"210781",name:"凌海市",region_level:3,children:[]},{code:"210782",name:"北镇市",region_level:3,children:[]}]},{code:"2108",name:"营口市",region_level:2,children:[{code:"210802",name:"站前区",region_level:3,children:[]},{code:"210803",name:"西市区",region_level:3,children:[]},{code:"210804",name:"鲅鱼圈区",region_level:3,children:[]},{code:"210811",name:"老边区",region_level:3,children:[]},{code:"210881",name:"盖州市",region_level:3,children:[]},{code:"210882",name:"大石桥市",region_level:3,children:[]}]},{code:"2109",name:"阜新市",region_level:2,children:[{code:"210902",name:"海州区",region_level:3,children:[]},{code:"210903",name:"新邱区",region_level:3,children:[]},{code:"210904",name:"太平区",region_level:3,children:[]},{code:"210905",name:"清河门区",region_level:3,children:[]},{code:"210911",name:"细河区",region_level:3,children:[]},{code:"210921",name:"阜新蒙古族自治县",region_level:3,children:[]},{code:"210922",name:"彰武县",region_level:3,children:[]}]},{code:"2110",name:"辽阳市",region_level:2,children:[{code:"211002",name:"白塔区",region_level:3,children:[]},{code:"211003",name:"文圣区",region_level:3,children:[]},{code:"211004",name:"宏伟区",region_level:3,children:[]},{code:"211005",name:"弓长岭区",region_level:3,children:[]},{code:"211011",name:"太子河区",region_level:3,children:[]},{code:"211021",name:"辽阳县",region_level:3,children:[]},{code:"211081",name:"灯塔市",region_level:3,children:[]}]},{code:"2111",name:"盘锦市",region_level:2,children:[{code:"211102",name:"双台子区",region_level:3,children:[]},{code:"211103",name:"兴隆台区",region_level:3,children:[]},{code:"211104",name:"大洼区",region_level:3,children:[]},{code:"211122",name:"盘山县",region_level:3,children:[]}]},{code:"2112",name:"铁岭市",region_level:2,children:[{code:"211202",name:"银州区",region_level:3,children:[]},{code:"211204",name:"清河区",region_level:3,children:[]},{code:"211221",name:"铁岭县",region_level:3,children:[]},{code:"211223",name:"西丰县",region_level:3,children:[]},{code:"211224",name:"昌图县",region_level:3,children:[]},{code:"211281",name:"调兵山市",region_level:3,children:[]},{code:"211282",name:"开原市",region_level:3,children:[]}]},{code:"2113",name:"朝阳市",region_level:2,children:[{code:"211302",name:"双塔区",region_level:3,children:[]},{code:"211303",name:"龙城区",region_level:3,children:[]},{code:"211321",name:"朝阳县",region_level:3,children:[]},{code:"211322",name:"建平县",region_level:3,children:[]},{code:"211324",name:"喀喇沁左翼蒙古族自治县",region_level:3,children:[]},{code:"211381",name:"北票市",region_level:3,children:[]},{code:"211382",name:"凌源市",region_level:3,children:[]}]},{code:"2114",name:"葫芦岛市",region_level:2,children:[{code:"211402",name:"连山区",region_level:3,children:[]},{code:"211403",name:"龙港区",region_level:3,children:[]},{code:"211404",name:"南票区",region_level:3,children:[]},{code:"211421",name:"绥中县",region_level:3,children:[]},{code:"211422",name:"建昌县",region_level:3,children:[]},{code:"211481",name:"兴城市",region_level:3,children:[]}]}]},{code:"22",name:"吉林省",region_level:1,children:[{code:"2201",name:"长春市",region_level:2,children:[{code:"220102",name:"南关区",region_level:3,children:[]},{code:"220103",name:"宽城区",region_level:3,children:[]},{code:"220104",name:"朝阳区",region_level:3,children:[]},{code:"220105",name:"二道区",region_level:3,children:[]},{code:"220106",name:"绿园区",region_level:3,children:[]},{code:"220112",name:"双阳区",region_level:3,children:[]},{code:"220113",name:"九台区",region_level:3,children:[]},{code:"220122",name:"农安县",region_level:3,children:[]},{code:"220182",name:"榆树市",region_level:3,children:[]},{code:"220183",name:"德惠市",region_level:3,children:[]}]},{code:"2202",name:"吉林市",region_level:2,children:[{code:"220202",name:"昌邑区",region_level:3,children:[]},{code:"220203",name:"龙潭区",region_level:3,children:[]},{code:"220204",name:"船营区",region_level:3,children:[]},{code:"220211",name:"丰满区",region_level:3,children:[]},{code:"220221",name:"永吉县",region_level:3,children:[]},{code:"220281",name:"蛟河市",region_level:3,children:[]},{code:"220282",name:"桦甸市",region_level:3,children:[]},{code:"220283",name:"舒兰市",region_level:3,children:[]},{code:"220284",name:"磐石市",region_level:3,children:[]}]},{code:"2203",name:"四平市",region_level:2,children:[{code:"220302",name:"铁西区",region_level:3,children:[]},{code:"220303",name:"铁东区",region_level:3,children:[]},{code:"220322",name:"梨树县",region_level:3,children:[]},{code:"220323",name:"伊通满族自治县",region_level:3,children:[]},{code:"220381",name:"公主岭市",region_level:3,children:[]},{code:"220382",name:"双辽市",region_level:3,children:[]}]},{code:"2204",name:"辽源市",region_level:2,children:[{code:"220402",name:"龙山区",region_level:3,children:[]},{code:"220403",name:"西安区",region_level:3,children:[]},{code:"220421",name:"东丰县",region_level:3,children:[]},{code:"220422",name:"东辽县",region_level:3,children:[]}]},{code:"2205",name:"通化市",region_level:2,children:[{code:"220502",name:"东昌区",region_level:3,children:[]},{code:"220503",name:"二道江区",region_level:3,children:[]},{code:"220521",name:"通化县",region_level:3,children:[]},{code:"220523",name:"辉南县",region_level:3,children:[]},{code:"220524",name:"柳河县",region_level:3,children:[]},{code:"220581",name:"梅河口市",region_level:3,children:[]},{code:"220582",name:"集安市",region_level:3,children:[]}]},{code:"2206",name:"白山市",region_level:2,children:[{code:"220602",name:"浑江区",region_level:3,children:[]},{code:"220605",name:"江源区",region_level:3,children:[]},{code:"220621",name:"抚松县",region_level:3,children:[]},{code:"220622",name:"靖宇县",region_level:3,children:[]},{code:"220623",name:"长白朝鲜族自治县",region_level:3,children:[]},{code:"220681",name:"临江市",region_level:3,children:[]}]},{code:"2207",name:"松原市",region_level:2,children:[{code:"220702",name:"宁江区",region_level:3,children:[]},{code:"220721",name:"前郭尔罗斯蒙古族自治县",region_level:3,children:[]},{code:"220722",name:"长岭县",region_level:3,children:[]},{code:"220723",name:"乾安县",region_level:3,children:[]},{code:"220781",name:"扶余市",region_level:3,children:[]}]},{code:"2208",name:"白城市",region_level:2,children:[{code:"220802",name:"洮北区",region_level:3,children:[]},{code:"220821",name:"镇赉县",region_level:3,children:[]},{code:"220822",name:"通榆县",region_level:3,children:[]},{code:"220881",name:"洮南市",region_level:3,children:[]},{code:"220882",name:"大安市",region_level:3,children:[]}]},{code:"2224",name:"延边朝鲜族自治州",region_level:2,children:[{code:"222401",name:"延吉市",region_level:3,children:[]},{code:"222402",name:"图们市",region_level:3,children:[]},{code:"222403",name:"敦化市",region_level:3,children:[]},{code:"222404",name:"珲春市",region_level:3,children:[]},{code:"222405",name:"龙井市",region_level:3,children:[]},{code:"222406",name:"和龙市",region_level:3,children:[]},{code:"222424",name:"汪清县",region_level:3,children:[]},{code:"222426",name:"安图县",region_level:3,children:[]}]}]},{code:"23",name:"黑龙江省",region_level:1,children:[{code:"2301",name:"哈尔滨市",region_level:2,children:[{code:"230102",name:"道里区",region_level:3,children:[]},{code:"230103",name:"南岗区",region_level:3,children:[]},{code:"230104",name:"道外区",region_level:3,children:[]},{code:"230108",name:"平房区",region_level:3,children:[]},{code:"230109",name:"松北区",region_level:3,children:[]},{code:"230110",name:"香坊区",region_level:3,children:[]},{code:"230111",name:"呼兰区",region_level:3,children:[]},{code:"230112",name:"阿城区",region_level:3,children:[]},{code:"230113",name:"双城区",region_level:3,children:[]},{code:"230123",name:"依兰县",region_level:3,children:[]},{code:"230124",name:"方正县",region_level:3,children:[]},{code:"230125",name:"宾县",region_level:3,children:[]},{code:"230126",name:"巴彦县",region_level:3,children:[]},{code:"230127",name:"木兰县",region_level:3,children:[]},{code:"230128",name:"通河县",region_level:3,children:[]},{code:"230129",name:"延寿县",region_level:3,children:[]},{code:"230183",name:"尚志市",region_level:3,children:[]},{code:"230184",name:"五常市",region_level:3,children:[]}]},{code:"2302",name:"齐齐哈尔市",region_level:2,children:[{code:"230202",name:"龙沙区",region_level:3,children:[]},{code:"230203",name:"建华区",region_level:3,children:[]},{code:"230204",name:"铁锋区",region_level:3,children:[]},{code:"230205",name:"昂昂溪区",region_level:3,children:[]},{code:"230206",name:"富拉尔基区",region_level:3,children:[]},{code:"230207",name:"碾子山区",region_level:3,children:[]},{code:"230208",name:"梅里斯达斡尔族区",region_level:3,children:[]},{code:"230221",name:"龙江县",region_level:3,children:[]},{code:"230223",name:"依安县",region_level:3,children:[]},{code:"230224",name:"泰来县",region_level:3,children:[]},{code:"230225",name:"甘南县",region_level:3,children:[]},{code:"230227",name:"富裕县",region_level:3,children:[]},{code:"230229",name:"克山县",region_level:3,children:[]},{code:"230230",name:"克东县",region_level:3,children:[]},{code:"230231",name:"拜泉县",region_level:3,children:[]},{code:"230281",name:"讷河市",region_level:3,children:[]}]},{code:"2303",name:"鸡西市",region_level:2,children:[{code:"230302",name:"鸡冠区",region_level:3,children:[]},{code:"230303",name:"恒山区",region_level:3,children:[]},{code:"230304",name:"滴道区",region_level:3,children:[]},{code:"230305",name:"梨树区",region_level:3,children:[]},{code:"230306",name:"城子河区",region_level:3,children:[]},{code:"230307",name:"麻山区",region_level:3,children:[]},{code:"230321",name:"鸡东县",region_level:3,children:[]},{code:"230381",name:"虎林市",region_level:3,children:[]},{code:"230382",name:"密山市",region_level:3,children:[]}]},{code:"2304",name:"鹤岗市",region_level:2,children:[{code:"230402",name:"向阳区",region_level:3,children:[]},{code:"230403",name:"工农区",region_level:3,children:[]},{code:"230404",name:"南山区",region_level:3,children:[]},{code:"230405",name:"兴安区",region_level:3,children:[]},{code:"230406",name:"东山区",region_level:3,children:[]},{code:"230407",name:"兴山区",region_level:3,children:[]},{code:"230421",name:"萝北县",region_level:3,children:[]},{code:"230422",name:"绥滨县",region_level:3,children:[]}]},{code:"2305",name:"双鸭山市",region_level:2,children:[{code:"230502",name:"尖山区",region_level:3,children:[]},{code:"230503",name:"岭东区",region_level:3,children:[]},{code:"230505",name:"四方台区",region_level:3,children:[]},{code:"230506",name:"宝山区",region_level:3,children:[]},{code:"230521",name:"集贤县",region_level:3,children:[]},{code:"230522",name:"友谊县",region_level:3,children:[]},{code:"230523",name:"宝清县",region_level:3,children:[]},{code:"230524",name:"饶河县",region_level:3,children:[]}]},{code:"2306",name:"大庆市",region_level:2,children:[{code:"230602",name:"萨尔图区",region_level:3,children:[]},{code:"230603",name:"龙凤区",region_level:3,children:[]},{code:"230604",name:"让胡路区",region_level:3,children:[]},{code:"230605",name:"红岗区",region_level:3,children:[]},{code:"230606",name:"大同区",region_level:3,children:[]},{code:"230621",name:"肇州县",region_level:3,children:[]},{code:"230622",name:"肇源县",region_level:3,children:[]},{code:"230623",name:"林甸县",region_level:3,children:[]},{code:"230624",name:"杜尔伯特蒙古族自治县",region_level:3,children:[]}]},{code:"2307",name:"伊春市",region_level:2,children:[{code:"230717",name:"伊美区",region_level:3,children:[]},{code:"230718",name:"乌翠区",region_level:3,children:[]},{code:"230719",name:"友好区",region_level:3,children:[]},{code:"230722",name:"嘉荫县",region_level:3,children:[]},{code:"230723",name:"汤旺县",region_level:3,children:[]},{code:"230724",name:"丰林县",region_level:3,children:[]},{code:"230725",name:"大箐山县",region_level:3,children:[]},{code:"230726",name:"南岔县",region_level:3,children:[]},{code:"230751",name:"金林区",region_level:3,children:[]},{code:"230781",name:"铁力市",region_level:3,children:[]}]},{code:"2308",name:"佳木斯市",region_level:2,children:[{code:"230803",name:"向阳区",region_level:3,children:[]},{code:"230804",name:"前进区",region_level:3,children:[]},{code:"230805",name:"东风区",region_level:3,children:[]},{code:"230811",name:"郊区",region_level:3,children:[]},{code:"230822",name:"桦南县",region_level:3,children:[]},{code:"230826",name:"桦川县",region_level:3,children:[]},{code:"230828",name:"汤原县",region_level:3,children:[]},{code:"230881",name:"同江市",region_level:3,children:[]},{code:"230882",name:"富锦市",region_level:3,children:[]},{code:"230883",name:"抚远市",region_level:3,children:[]}]},{code:"2309",name:"七台河市",region_level:2,children:[{code:"230902",name:"新兴区",region_level:3,children:[]},{code:"230903",name:"桃山区",region_level:3,children:[]},{code:"230904",name:"茄子河区",region_level:3,children:[]},{code:"230921",name:"勃利县",region_level:3,children:[]}]},{code:"2310",name:"牡丹江市",region_level:2,children:[{code:"231002",name:"东安区",region_level:3,children:[]},{code:"231003",name:"阳明区",region_level:3,children:[]},{code:"231004",name:"爱民区",region_level:3,children:[]},{code:"231005",name:"西安区",region_level:3,children:[]},{code:"231025",name:"林口县",region_level:3,children:[]},{code:"231081",name:"绥芬河市",region_level:3,children:[]},{code:"231083",name:"海林市",region_level:3,children:[]},{code:"231084",name:"宁安市",region_level:3,children:[]},{code:"231085",name:"穆棱市",region_level:3,children:[]},{code:"231086",name:"东宁市",region_level:3,children:[]}]},{code:"2311",name:"黑河市",region_level:2,children:[{code:"231102",name:"爱辉区",region_level:3,children:[]},{code:"231123",name:"逊克县",region_level:3,children:[]},{code:"231124",name:"孙吴县",region_level:3,children:[]},{code:"231181",name:"北安市",region_level:3,children:[]},{code:"231182",name:"五大连池市",region_level:3,children:[]},{code:"231183",name:"嫩江市",region_level:3,children:[]}]},{code:"2312",name:"绥化市",region_level:2,children:[{code:"231202",name:"北林区",region_level:3,children:[]},{code:"231221",name:"望奎县",region_level:3,children:[]},{code:"231222",name:"兰西县",region_level:3,children:[]},{code:"231223",name:"青冈县",region_level:3,children:[]},{code:"231224",name:"庆安县",region_level:3,children:[]},{code:"231225",name:"明水县",region_level:3,children:[]},{code:"231226",name:"绥棱县",region_level:3,children:[]},{code:"231281",name:"安达市",region_level:3,children:[]},{code:"231282",name:"肇东市",region_level:3,children:[]},{code:"231283",name:"海伦市",region_level:3,children:[]}]},{code:"2327",name:"大兴安岭地区",region_level:2,children:[{code:"232701",name:"漠河市",region_level:3,children:[]},{code:"232721",name:"呼玛县",region_level:3,children:[]},{code:"232722",name:"塔河县",region_level:3,children:[]}]}]},{code:"31",name:"上海市",region_level:1,children:[{code:"3101",name:"上海市",region_level:2,children:[{code:"310101",name:"黄浦区",region_level:3,children:[]},{code:"310104",name:"徐汇区",region_level:3,children:[]},{code:"310105",name:"长宁区",region_level:3,children:[]},{code:"310106",name:"静安区",region_level:3,children:[]},{code:"310107",name:"普陀区",region_level:3,children:[]},{code:"310109",name:"虹口区",region_level:3,children:[]},{code:"310110",name:"杨浦区",region_level:3,children:[]},{code:"310112",name:"闵行区",region_level:3,children:[]},{code:"310113",name:"宝山区",region_level:3,children:[]},{code:"310114",name:"嘉定区",region_level:3,children:[]},{code:"310115",name:"浦东新区",region_level:3,children:[]},{code:"310116",name:"金山区",region_level:3,children:[]},{code:"310117",name:"松江区",region_level:3,children:[]},{code:"310118",name:"青浦区",region_level:3,children:[]},{code:"310120",name:"奉贤区",region_level:3,children:[]},{code:"310151",name:"崇明区",region_level:3,children:[]}]}]},{code:"32",name:"江苏省",region_level:1,children:[{code:"3201",name:"南京市",region_level:2,children:[{code:"320102",name:"玄武区",region_level:3,children:[]},{code:"320104",name:"秦淮区",region_level:3,children:[]},{code:"320105",name:"建邺区",region_level:3,children:[]},{code:"320106",name:"鼓楼区",region_level:3,children:[]},{code:"320111",name:"浦口区",region_level:3,children:[]},{code:"320113",name:"栖霞区",region_level:3,children:[]},{code:"320114",name:"雨花台区",region_level:3,children:[]},{code:"320115",name:"江宁区",region_level:3,children:[]},{code:"320116",name:"六合区",region_level:3,children:[]},{code:"320117",name:"溧水区",region_level:3,children:[]},{code:"320118",name:"高淳区",region_level:3,children:[]}]},{code:"3202",name:"无锡市",region_level:2,children:[{code:"320205",name:"锡山区",region_level:3,children:[]},{code:"320206",name:"惠山区",region_level:3,children:[]},{code:"320211",name:"滨湖区",region_level:3,children:[]},{code:"320213",name:"梁溪区",region_level:3,children:[]},{code:"320214",name:"新吴区",region_level:3,children:[]},{code:"320281",name:"江阴市",region_level:3,children:[]},{code:"320282",name:"宜兴市",region_level:3,children:[]}]},{code:"3203",name:"徐州市",region_level:2,children:[{code:"320302",name:"鼓楼区",region_level:3,children:[]},{code:"320303",name:"云龙区",region_level:3,children:[]},{code:"320305",name:"贾汪区",region_level:3,children:[]},{code:"320311",name:"泉山区",region_level:3,children:[]},{code:"320312",name:"铜山区",region_level:3,children:[]},{code:"320321",name:"丰县",region_level:3,children:[]},{code:"320322",name:"沛县",region_level:3,children:[]},{code:"320324",name:"睢宁县",region_level:3,children:[]},{code:"320381",name:"新沂市",region_level:3,children:[]},{code:"320382",name:"邳州市",region_level:3,children:[]}]},{code:"3204",name:"常州市",region_level:2,children:[{code:"320402",name:"天宁区",region_level:3,children:[]},{code:"320404",name:"钟楼区",region_level:3,children:[]},{code:"320411",name:"新北区",region_level:3,children:[]},{code:"320412",name:"武进区",region_level:3,children:[]},{code:"320413",name:"金坛区",region_level:3,children:[]},{code:"320481",name:"溧阳市",region_level:3,children:[]}]},{code:"3205",name:"苏州市",region_level:2,children:[{code:"320505",name:"虎丘区",region_level:3,children:[]},{code:"320506",name:"吴中区",region_level:3,children:[]},{code:"320507",name:"相城区",region_level:3,children:[]},{code:"320508",name:"姑苏区",region_level:3,children:[]},{code:"320509",name:"吴江区",region_level:3,children:[]},{code:"320581",name:"常熟市",region_level:3,children:[]},{code:"320582",name:"张家港市",region_level:3,children:[]},{code:"320583",name:"昆山市",region_level:3,children:[]},{code:"320585",name:"太仓市",region_level:3,children:[]}]},{code:"3206",name:"南通市",region_level:2,children:[{code:"320602",name:"崇川区",region_level:3,children:[]},{code:"320611",name:"港闸区",region_level:3,children:[]},{code:"320612",name:"通州区",region_level:3,children:[]},{code:"320623",name:"如东县",region_level:3,children:[]},{code:"320681",name:"启东市",region_level:3,children:[]},{code:"320682",name:"如皋市",region_level:3,children:[]},{code:"320684",name:"海门市",region_level:3,children:[]},{code:"320685",name:"海安市",region_level:3,children:[]}]},{code:"3207",name:"连云港市",region_level:2,children:[{code:"320703",name:"连云区",region_level:3,children:[]},{code:"320706",name:"海州区",region_level:3,children:[]},{code:"320707",name:"赣榆区",region_level:3,children:[]},{code:"320722",name:"东海县",region_level:3,children:[]},{code:"320723",name:"灌云县",region_level:3,children:[]},{code:"320724",name:"灌南县",region_level:3,children:[]}]},{code:"3208",name:"淮安市",region_level:2,children:[{code:"320803",name:"淮安区",region_level:3,children:[]},{code:"320804",name:"淮阴区",region_level:3,children:[]},{code:"320812",name:"清江浦区",region_level:3,children:[]},{code:"320813",name:"洪泽区",region_level:3,children:[]},{code:"320826",name:"涟水县",region_level:3,children:[]},{code:"320830",name:"盱眙县",region_level:3,children:[]},{code:"320831",name:"金湖县",region_level:3,children:[]}]},{code:"3209",name:"盐城市",region_level:2,children:[{code:"320902",name:"亭湖区",region_level:3,children:[]},{code:"320903",name:"盐都区",region_level:3,children:[]},{code:"320904",name:"大丰区",region_level:3,children:[]},{code:"320921",name:"响水县",region_level:3,children:[]},{code:"320922",name:"滨海县",region_level:3,children:[]},{code:"320923",name:"阜宁县",region_level:3,children:[]},{code:"320924",name:"射阳县",region_level:3,children:[]},{code:"320925",name:"建湖县",region_level:3,children:[]},{code:"320981",name:"东台市",region_level:3,children:[]}]},{code:"3210",name:"扬州市",region_level:2,children:[{code:"321002",name:"广陵区",region_level:3,children:[]},{code:"321003",name:"邗江区",region_level:3,children:[]},{code:"321012",name:"江都区",region_level:3,children:[]},{code:"321023",name:"宝应县",region_level:3,children:[]},{code:"321081",name:"仪征市",region_level:3,children:[]},{code:"321084",name:"高邮市",region_level:3,children:[]}]},{code:"3211",name:"镇江市",region_level:2,children:[{code:"321102",name:"京口区",region_level:3,children:[]},{code:"321111",name:"润州区",region_level:3,children:[]},{code:"321112",name:"丹徒区",region_level:3,children:[]},{code:"321181",name:"丹阳市",region_level:3,children:[]},{code:"321182",name:"扬中市",region_level:3,children:[]},{code:"321183",name:"句容市",region_level:3,children:[]}]},{code:"3212",name:"泰州市",region_level:2,children:[{code:"321202",name:"海陵区",region_level:3,children:[]},{code:"321203",name:"高港区",region_level:3,children:[]},{code:"321204",name:"姜堰区",region_level:3,children:[]},{code:"321281",name:"兴化市",region_level:3,children:[]},{code:"321282",name:"靖江市",region_level:3,children:[]},{code:"321283",name:"泰兴市",region_level:3,children:[]}]},{code:"3213",name:"宿迁市",region_level:2,children:[{code:"321302",name:"宿城区",region_level:3,children:[]},{code:"321311",name:"宿豫区",region_level:3,children:[]},{code:"321322",name:"沭阳县",region_level:3,children:[]},{code:"321323",name:"泗阳县",region_level:3,children:[]},{code:"321324",name:"泗洪县",region_level:3,children:[]}]}]},{code:"33",name:"浙江省",region_level:1,children:[{code:"3301",name:"杭州市",region_level:2,children:[{code:"330102",name:"上城区",region_level:3,children:[]},{code:"330103",name:"下城区",region_level:3,children:[]},{code:"330104",name:"江干区",region_level:3,children:[]},{code:"330105",name:"拱墅区",region_level:3,children:[]},{code:"330106",name:"西湖区",region_level:3,children:[]},{code:"330108",name:"滨江区",region_level:3,children:[]},{code:"330109",name:"萧山区",region_level:3,children:[]},{code:"330110",name:"余杭区",region_level:3,children:[]},{code:"330111",name:"富阳区",region_level:3,children:[]},{code:"330112",name:"临安区",region_level:3,children:[]},{code:"330122",name:"桐庐县",region_level:3,children:[]},{code:"330127",name:"淳安县",region_level:3,children:[]},{code:"330182",name:"建德市",region_level:3,children:[]}]},{code:"3302",name:"宁波市",region_level:2,children:[{code:"330203",name:"海曙区",region_level:3,children:[]},{code:"330205",name:"江北区",region_level:3,children:[]},{code:"330206",name:"北仑区",region_level:3,children:[]},{code:"330211",name:"镇海区",region_level:3,children:[]},{code:"330212",name:"鄞州区",region_level:3,children:[]},{code:"330213",name:"奉化区",region_level:3,children:[]},{code:"330225",name:"象山县",region_level:3,children:[]},{code:"330226",name:"宁海县",region_level:3,children:[]},{code:"330281",name:"余姚市",region_level:3,children:[]},{code:"330282",name:"慈溪市",region_level:3,children:[]}]},{code:"3303",name:"温州市",region_level:2,children:[{code:"330302",name:"鹿城区",region_level:3,children:[]},{code:"330303",name:"龙湾区",region_level:3,children:[]},{code:"330304",name:"瓯海区",region_level:3,children:[]},{code:"330305",name:"洞头区",region_level:3,children:[]},{code:"330324",name:"永嘉县",region_level:3,children:[]},{code:"330326",name:"平阳县",region_level:3,children:[]},{code:"330327",name:"苍南县",region_level:3,children:[]},{code:"330328",name:"文成县",region_level:3,children:[]},{code:"330329",name:"泰顺县",region_level:3,children:[]},{code:"330381",name:"瑞安市",region_level:3,children:[]},{code:"330382",name:"乐清市",region_level:3,children:[]},{code:"330383",name:"龙港市",region_level:3,children:[]}]},{code:"3304",name:"嘉兴市",region_level:2,children:[{code:"330402",name:"南湖区",region_level:3,children:[]},{code:"330411",name:"秀洲区",region_level:3,children:[]},{code:"330421",name:"嘉善县",region_level:3,children:[]},{code:"330424",name:"海盐县",region_level:3,children:[]},{code:"330481",name:"海宁市",region_level:3,children:[]},{code:"330482",name:"平湖市",region_level:3,children:[]},{code:"330483",name:"桐乡市",region_level:3,children:[]}]},{code:"3305",name:"湖州市",region_level:2,children:[{code:"330502",name:"吴兴区",region_level:3,children:[]},{code:"330503",name:"南浔区",region_level:3,children:[]},{code:"330521",name:"德清县",region_level:3,children:[]},{code:"330522",name:"长兴县",region_level:3,children:[]},{code:"330523",name:"安吉县",region_level:3,children:[]}]},{code:"3306",name:"绍兴市",region_level:2,children:[{code:"330602",name:"越城区",region_level:3,children:[]},{code:"330603",name:"柯桥区",region_level:3,children:[]},{code:"330604",name:"上虞区",region_level:3,children:[]},{code:"330624",name:"新昌县",region_level:3,children:[]},{code:"330681",name:"诸暨市",region_level:3,children:[]},{code:"330683",name:"嵊州市",region_level:3,children:[]}]},{code:"3307",name:"金华市",region_level:2,children:[{code:"330702",name:"婺城区",region_level:3,children:[]},{code:"330703",name:"金东区",region_level:3,children:[]},{code:"330723",name:"武义县",region_level:3,children:[]},{code:"330726",name:"浦江县",region_level:3,children:[]},{code:"330727",name:"磐安县",region_level:3,children:[]},{code:"330781",name:"兰溪市",region_level:3,children:[]},{code:"330782",name:"义乌市",region_level:3,children:[]},{code:"330783",name:"东阳市",region_level:3,children:[]},{code:"330784",name:"永康市",region_level:3,children:[]}]},{code:"3308",name:"衢州市",region_level:2,children:[{code:"330802",name:"柯城区",region_level:3,children:[]},{code:"330803",name:"衢江区",region_level:3,children:[]},{code:"330822",name:"常山县",region_level:3,children:[]},{code:"330824",name:"开化县",region_level:3,children:[]},{code:"330825",name:"龙游县",region_level:3,children:[]},{code:"330881",name:"江山市",region_level:3,children:[]}]},{code:"3309",name:"舟山市",region_level:2,children:[{code:"330902",name:"定海区",region_level:3,children:[]},{code:"330903",name:"普陀区",region_level:3,children:[]},{code:"330921",name:"岱山县",region_level:3,children:[]},{code:"330922",name:"嵊泗县",region_level:3,children:[]}]},{code:"3310",name:"台州市",region_level:2,children:[{code:"331002",name:"椒江区",region_level:3,children:[]},{code:"331003",name:"黄岩区",region_level:3,children:[]},{code:"331004",name:"路桥区",region_level:3,children:[]},{code:"331022",name:"三门县",region_level:3,children:[]},{code:"331023",name:"天台县",region_level:3,children:[]},{code:"331024",name:"仙居县",region_level:3,children:[]},{code:"331081",name:"温岭市",region_level:3,children:[]},{code:"331082",name:"临海市",region_level:3,children:[]},{code:"331083",name:"玉环市",region_level:3,children:[]}]},{code:"3311",name:"丽水市",region_level:2,children:[{code:"331102",name:"莲都区",region_level:3,children:[]},{code:"331121",name:"青田县",region_level:3,children:[]},{code:"331122",name:"缙云县",region_level:3,children:[]},{code:"331123",name:"遂昌县",region_level:3,children:[]},{code:"331124",name:"松阳县",region_level:3,children:[]},{code:"331125",name:"云和县",region_level:3,children:[]},{code:"331126",name:"庆元县",region_level:3,children:[]},{code:"331127",name:"景宁畲族自治县",region_level:3,children:[]},{code:"331181",name:"龙泉市",region_level:3,children:[]}]}]},{code:"34",name:"安徽省",region_level:1,children:[{code:"3401",name:"合肥市",region_level:2,children:[{code:"340102",name:"瑶海区",region_level:3,children:[]},{code:"340103",name:"庐阳区",region_level:3,children:[]},{code:"340104",name:"蜀山区",region_level:3,children:[]},{code:"340111",name:"包河区",region_level:3,children:[]},{code:"340121",name:"长丰县",region_level:3,children:[]},{code:"340122",name:"肥东县",region_level:3,children:[]},{code:"340123",name:"肥西县",region_level:3,children:[]},{code:"340124",name:"庐江县",region_level:3,children:[]},{code:"340181",name:"巢湖市",region_level:3,children:[]}]},{code:"3402",name:"芜湖市",region_level:2,children:[{code:"340202",name:"镜湖区",region_level:3,children:[]},{code:"340203",name:"弋江区",region_level:3,children:[]},{code:"340207",name:"鸠江区",region_level:3,children:[]},{code:"340208",name:"三山区",region_level:3,children:[]},{code:"340221",name:"芜湖县",region_level:3,children:[]},{code:"340222",name:"繁昌县",region_level:3,children:[]},{code:"340223",name:"南陵县",region_level:3,children:[]},{code:"340281",name:"无为市",region_level:3,children:[]}]},{code:"3403",name:"蚌埠市",region_level:2,children:[{code:"340302",name:"龙子湖区",region_level:3,children:[]},{code:"340303",name:"蚌山区",region_level:3,children:[]},{code:"340304",name:"禹会区",region_level:3,children:[]},{code:"340311",name:"淮上区",region_level:3,children:[]},{code:"340321",name:"怀远县",region_level:3,children:[]},{code:"340322",name:"五河县",region_level:3,children:[]},{code:"340323",name:"固镇县",region_level:3,children:[]}]},{code:"3404",name:"淮南市",region_level:2,children:[{code:"340402",name:"大通区",region_level:3,children:[]},{code:"340403",name:"田家庵区",region_level:3,children:[]},{code:"340404",name:"谢家集区",region_level:3,children:[]},{code:"340405",name:"八公山区",region_level:3,children:[]},{code:"340406",name:"潘集区",region_level:3,children:[]},{code:"340421",name:"凤台县",region_level:3,children:[]},{code:"340422",name:"寿县",region_level:3,children:[]}]},{code:"3405",name:"马鞍山市",region_level:2,children:[{code:"340503",name:"花山区",region_level:3,children:[]},{code:"340504",name:"雨山区",region_level:3,children:[]},{code:"340506",name:"博望区",region_level:3,children:[]},{code:"340521",name:"当涂县",region_level:3,children:[]},{code:"340522",name:"含山县",region_level:3,children:[]},{code:"340523",name:"和县",region_level:3,children:[]}]},{code:"3406",name:"淮北市",region_level:2,children:[{code:"340602",name:"杜集区",region_level:3,children:[]},{code:"340603",name:"相山区",region_level:3,children:[]},{code:"340604",name:"烈山区",region_level:3,children:[]},{code:"340621",name:"濉溪县",region_level:3,children:[]}]},{code:"3407",name:"铜陵市",region_level:2,children:[{code:"340705",name:"铜官区",region_level:3,children:[]},{code:"340706",name:"义安区",region_level:3,children:[]},{code:"340711",name:"郊区",region_level:3,children:[]},{code:"340722",name:"枞阳县",region_level:3,children:[]}]},{code:"3408",name:"安庆市",region_level:2,children:[{code:"340802",name:"迎江区",region_level:3,children:[]},{code:"340803",name:"大观区",region_level:3,children:[]},{code:"340811",name:"宜秀区",region_level:3,children:[]},{code:"340822",name:"怀宁县",region_level:3,children:[]},{code:"340825",name:"太湖县",region_level:3,children:[]},{code:"340826",name:"宿松县",region_level:3,children:[]},{code:"340827",name:"望江县",region_level:3,children:[]},{code:"340828",name:"岳西县",region_level:3,children:[]},{code:"340881",name:"桐城市",region_level:3,children:[]},{code:"340882",name:"潜山市",region_level:3,children:[]}]},{code:"3410",name:"黄山市",region_level:2,children:[{code:"341002",name:"屯溪区",region_level:3,children:[]},{code:"341003",name:"黄山区",region_level:3,children:[]},{code:"341004",name:"徽州区",region_level:3,children:[]},{code:"341021",name:"歙县",region_level:3,children:[]},{code:"341022",name:"休宁县",region_level:3,children:[]},{code:"341023",name:"黟县",region_level:3,children:[]},{code:"341024",name:"祁门县",region_level:3,children:[]}]},{code:"3411",name:"滁州市",region_level:2,children:[{code:"341102",name:"琅琊区",region_level:3,children:[]},{code:"341103",name:"南谯区",region_level:3,children:[]},{code:"341122",name:"来安县",region_level:3,children:[]},{code:"341124",name:"全椒县",region_level:3,children:[]},{code:"341125",name:"定远县",region_level:3,children:[]},{code:"341126",name:"凤阳县",region_level:3,children:[]},{code:"341181",name:"天长市",region_level:3,children:[]},{code:"341182",name:"明光市",region_level:3,children:[]}]},{code:"3412",name:"阜阳市",region_level:2,children:[{code:"341202",name:"颍州区",region_level:3,children:[]},{code:"341203",name:"颍东区",region_level:3,children:[]},{code:"341204",name:"颍泉区",region_level:3,children:[]},{code:"341221",name:"临泉县",region_level:3,children:[]},{code:"341222",name:"太和县",region_level:3,children:[]},{code:"341225",name:"阜南县",region_level:3,children:[]},{code:"341226",name:"颍上县",region_level:3,children:[]},{code:"341282",name:"界首市",region_level:3,children:[]}]},{code:"3413",name:"宿州市",region_level:2,children:[{code:"341302",name:"埇桥区",region_level:3,children:[]},{code:"341321",name:"砀山县",region_level:3,children:[]},{code:"341322",name:"萧县",region_level:3,children:[]},{code:"341323",name:"灵璧县",region_level:3,children:[]},{code:"341324",name:"泗县",region_level:3,children:[]}]},{code:"3415",name:"六安市",region_level:2,children:[{code:"341502",name:"金安区",region_level:3,children:[]},{code:"341503",name:"裕安区",region_level:3,children:[]},{code:"341504",name:"叶集区",region_level:3,children:[]},{code:"341522",name:"霍邱县",region_level:3,children:[]},{code:"341523",name:"舒城县",region_level:3,children:[]},{code:"341524",name:"金寨县",region_level:3,children:[]},{code:"341525",name:"霍山县",region_level:3,children:[]}]},{code:"3416",name:"亳州市",region_level:2,children:[{code:"341602",name:"谯城区",region_level:3,children:[]},{code:"341621",name:"涡阳县",region_level:3,children:[]},{code:"341622",name:"蒙城县",region_level:3,children:[]},{code:"341623",name:"利辛县",region_level:3,children:[]}]},{code:"3417",name:"池州市",region_level:2,children:[{code:"341702",name:"贵池区",region_level:3,children:[]},{code:"341721",name:"东至县",region_level:3,children:[]},{code:"341722",name:"石台县",region_level:3,children:[]},{code:"341723",name:"青阳县",region_level:3,children:[]}]},{code:"3418",name:"宣城市",region_level:2,children:[{code:"341802",name:"宣州区",region_level:3,children:[]},{code:"341821",name:"郎溪县",region_level:3,children:[]},{code:"341823",name:"泾县",region_level:3,children:[]},{code:"341824",name:"绩溪县",region_level:3,children:[]},{code:"341825",name:"旌德县",region_level:3,children:[]},{code:"341881",name:"宁国市",region_level:3,children:[]},{code:"341882",name:"广德市",region_level:3,children:[]}]}]},{code:"35",name:"福建省",region_level:1,children:[{code:"3501",name:"福州市",region_level:2,children:[{code:"350102",name:"鼓楼区",region_level:3,children:[]},{code:"350103",name:"台江区",region_level:3,children:[]},{code:"350104",name:"仓山区",region_level:3,children:[]},{code:"350105",name:"马尾区",region_level:3,children:[]},{code:"350111",name:"晋安区",region_level:3,children:[]},{code:"350112",name:"长乐区",region_level:3,children:[]},{code:"350121",name:"闽侯县",region_level:3,children:[]},{code:"350122",name:"连江县",region_level:3,children:[]},{code:"350123",name:"罗源县",region_level:3,children:[]},{code:"350124",name:"闽清县",region_level:3,children:[]},{code:"350125",name:"永泰县",region_level:3,children:[]},{code:"350128",name:"平潭县",region_level:3,children:[]},{code:"350181",name:"福清市",region_level:3,children:[]}]},{code:"3502",name:"厦门市",region_level:2,children:[{code:"350203",name:"思明区",region_level:3,children:[]},{code:"350205",name:"海沧区",region_level:3,children:[]},{code:"350206",name:"湖里区",region_level:3,children:[]},{code:"350211",name:"集美区",region_level:3,children:[]},{code:"350212",name:"同安区",region_level:3,children:[]},{code:"350213",name:"翔安区",region_level:3,children:[]}]},{code:"3503",name:"莆田市",region_level:2,children:[{code:"350302",name:"城厢区",region_level:3,children:[]},{code:"350303",name:"涵江区",region_level:3,children:[]},{code:"350304",name:"荔城区",region_level:3,children:[]},{code:"350305",name:"秀屿区",region_level:3,children:[]},{code:"350322",name:"仙游县",region_level:3,children:[]}]},{code:"3504",name:"三明市",region_level:2,children:[{code:"350402",name:"梅列区",region_level:3,children:[]},{code:"350403",name:"三元区",region_level:3,children:[]},{code:"350421",name:"明溪县",region_level:3,children:[]},{code:"350423",name:"清流县",region_level:3,children:[]},{code:"350424",name:"宁化县",region_level:3,children:[]},{code:"350425",name:"大田县",region_level:3,children:[]},{code:"350426",name:"尤溪县",region_level:3,children:[]},{code:"350427",name:"沙县",region_level:3,children:[]},{code:"350428",name:"将乐县",region_level:3,children:[]},{code:"350429",name:"泰宁县",region_level:3,children:[]},{code:"350430",name:"建宁县",region_level:3,children:[]},{code:"350481",name:"永安市",region_level:3,children:[]}]},{code:"3505",name:"泉州市",region_level:2,children:[{code:"350502",name:"鲤城区",region_level:3,children:[]},{code:"350503",name:"丰泽区",region_level:3,children:[]},{code:"350504",name:"洛江区",region_level:3,children:[]},{code:"350505",name:"泉港区",region_level:3,children:[]},{code:"350521",name:"惠安县",region_level:3,children:[]},{code:"350524",name:"安溪县",region_level:3,children:[]},{code:"350525",name:"永春县",region_level:3,children:[]},{code:"350526",name:"德化县",region_level:3,children:[]},{code:"350527",name:"金门县",region_level:3,children:[]},{code:"350581",name:"石狮市",region_level:3,children:[]},{code:"350582",name:"晋江市",region_level:3,children:[]},{code:"350583",name:"南安市",region_level:3,children:[]}]},{code:"3506",name:"漳州市",region_level:2,children:[{code:"350602",name:"芗城区",region_level:3,children:[]},{code:"350603",name:"龙文区",region_level:3,children:[]},{code:"350622",name:"云霄县",region_level:3,children:[]},{code:"350623",name:"漳浦县",region_level:3,children:[]},{code:"350624",name:"诏安县",region_level:3,children:[]},{code:"350625",name:"长泰县",region_level:3,children:[]},{code:"350626",name:"东山县",region_level:3,children:[]},{code:"350627",name:"南靖县",region_level:3,children:[]},{code:"350628",name:"平和县",region_level:3,children:[]},{code:"350629",name:"华安县",region_level:3,children:[]},{code:"350681",name:"龙海市",region_level:3,children:[]}]},{code:"3507",name:"南平市",region_level:2,children:[{code:"350702",name:"延平区",region_level:3,children:[]},{code:"350703",name:"建阳区",region_level:3,children:[]},{code:"350721",name:"顺昌县",region_level:3,children:[]},{code:"350722",name:"浦城县",region_level:3,children:[]},{code:"350723",name:"光泽县",region_level:3,children:[]},{code:"350724",name:"松溪县",region_level:3,children:[]},{code:"350725",name:"政和县",region_level:3,children:[]},{code:"350781",name:"邵武市",region_level:3,children:[]},{code:"350782",name:"武夷山市",region_level:3,children:[]},{code:"350783",name:"建瓯市",region_level:3,children:[]}]},{code:"3508",name:"龙岩市",region_level:2,children:[{code:"350802",name:"新罗区",region_level:3,children:[]},{code:"350803",name:"永定区",region_level:3,children:[]},{code:"350821",name:"长汀县",region_level:3,children:[]},{code:"350823",name:"上杭县",region_level:3,children:[]},{code:"350824",name:"武平县",region_level:3,children:[]},{code:"350825",name:"连城县",region_level:3,children:[]},{code:"350881",name:"漳平市",region_level:3,children:[]}]},{code:"3509",name:"宁德市",region_level:2,children:[{code:"350902",name:"蕉城区",region_level:3,children:[]},{code:"350921",name:"霞浦县",region_level:3,children:[]},{code:"350922",name:"古田县",region_level:3,children:[]},{code:"350923",name:"屏南县",region_level:3,children:[]},{code:"350924",name:"寿宁县",region_level:3,children:[]},{code:"350925",name:"周宁县",region_level:3,children:[]},{code:"350926",name:"柘荣县",region_level:3,children:[]},{code:"350981",name:"福安市",region_level:3,children:[]},{code:"350982",name:"福鼎市",region_level:3,children:[]}]}]},{code:"36",name:"江西省",region_level:1,children:[{code:"3601",name:"南昌市",region_level:2,children:[{code:"360102",name:"东湖区",region_level:3,children:[]},{code:"360103",name:"西湖区",region_level:3,children:[]},{code:"360104",name:"青云谱区",region_level:3,children:[]},{code:"360111",name:"青山湖区",region_level:3,children:[]},{code:"360112",name:"新建区",region_level:3,children:[]},{code:"360113",name:"红谷滩区",region_level:3,children:[]},{code:"360121",name:"南昌县",region_level:3,children:[]},{code:"360123",name:"安义县",region_level:3,children:[]},{code:"360124",name:"进贤县",region_level:3,children:[]}]},{code:"3602",name:"景德镇市",region_level:2,children:[{code:"360202",name:"昌江区",region_level:3,children:[]},{code:"360203",name:"珠山区",region_level:3,children:[]},{code:"360222",name:"浮梁县",region_level:3,children:[]},{code:"360281",name:"乐平市",region_level:3,children:[]}]},{code:"3603",name:"萍乡市",region_level:2,children:[{code:"360302",name:"安源区",region_level:3,children:[]},{code:"360313",name:"湘东区",region_level:3,children:[]},{code:"360321",name:"莲花县",region_level:3,children:[]},{code:"360322",name:"上栗县",region_level:3,children:[]},{code:"360323",name:"芦溪县",region_level:3,children:[]}]},{code:"3604",name:"九江市",region_level:2,children:[{code:"360402",name:"濂溪区",region_level:3,children:[]},{code:"360403",name:"浔阳区",region_level:3,children:[]},{code:"360404",name:"柴桑区",region_level:3,children:[]},{code:"360423",name:"武宁县",region_level:3,children:[]},{code:"360424",name:"修水县",region_level:3,children:[]},{code:"360425",name:"永修县",region_level:3,children:[]},{code:"360426",name:"德安县",region_level:3,children:[]},{code:"360428",name:"都昌县",region_level:3,children:[]},{code:"360429",name:"湖口县",region_level:3,children:[]},{code:"360430",name:"彭泽县",region_level:3,children:[]},{code:"360481",name:"瑞昌市",region_level:3,children:[]},{code:"360482",name:"共青城市",region_level:3,children:[]},{code:"360483",name:"庐山市",region_level:3,children:[]}]},{code:"3605",name:"新余市",region_level:2,children:[{code:"360502",name:"渝水区",region_level:3,children:[]},{code:"360521",name:"分宜县",region_level:3,children:[]}]},{code:"3606",name:"鹰潭市",region_level:2,children:[{code:"360602",name:"月湖区",region_level:3,children:[]},{code:"360603",name:"余江区",region_level:3,children:[]},{code:"360681",name:"贵溪市",region_level:3,children:[]}]},{code:"3607",name:"赣州市",region_level:2,children:[{code:"360702",name:"章贡区",region_level:3,children:[]},{code:"360703",name:"南康区",region_level:3,children:[]},{code:"360704",name:"赣县区",region_level:3,children:[]},{code:"360722",name:"信丰县",region_level:3,children:[]},{code:"360723",name:"大余县",region_level:3,children:[]},{code:"360724",name:"上犹县",region_level:3,children:[]},{code:"360725",name:"崇义县",region_level:3,children:[]},{code:"360726",name:"安远县",region_level:3,children:[]},{code:"360727",name:"龙南县",region_level:3,children:[]},{code:"360728",name:"定南县",region_level:3,children:[]},{code:"360729",name:"全南县",region_level:3,children:[]},{code:"360730",name:"宁都县",region_level:3,children:[]},{code:"360731",name:"于都县",region_level:3,children:[]},{code:"360732",name:"兴国县",region_level:3,children:[]},{code:"360733",name:"会昌县",region_level:3,children:[]},{code:"360734",name:"寻乌县",region_level:3,children:[]},{code:"360735",name:"石城县",region_level:3,children:[]},{code:"360781",name:"瑞金市",region_level:3,children:[]}]},{code:"3608",name:"吉安市",region_level:2,children:[{code:"360802",name:"吉州区",region_level:3,children:[]},{code:"360803",name:"青原区",region_level:3,children:[]},{code:"360821",name:"吉安县",region_level:3,children:[]},{code:"360822",name:"吉水县",region_level:3,children:[]},{code:"360823",name:"峡江县",region_level:3,children:[]},{code:"360824",name:"新干县",region_level:3,children:[]},{code:"360825",name:"永丰县",region_level:3,children:[]},{code:"360826",name:"泰和县",region_level:3,children:[]},{code:"360827",name:"遂川县",region_level:3,children:[]},{code:"360828",name:"万安县",region_level:3,children:[]},{code:"360829",name:"安福县",region_level:3,children:[]},{code:"360830",name:"永新县",region_level:3,children:[]},{code:"360881",name:"井冈山市",region_level:3,children:[]}]},{code:"3609",name:"宜春市",region_level:2,children:[{code:"360902",name:"袁州区",region_level:3,children:[]},{code:"360921",name:"奉新县",region_level:3,children:[]},{code:"360922",name:"万载县",region_level:3,children:[]},{code:"360923",name:"上高县",region_level:3,children:[]},{code:"360924",name:"宜丰县",region_level:3,children:[]},{code:"360925",name:"靖安县",region_level:3,children:[]},{code:"360926",name:"铜鼓县",region_level:3,children:[]},{code:"360981",name:"丰城市",region_level:3,children:[]},{code:"360982",name:"樟树市",region_level:3,children:[]},{code:"360983",name:"高安市",region_level:3,children:[]}]},{code:"3610",name:"抚州市",region_level:2,children:[{code:"361002",name:"临川区",region_level:3,children:[]},{code:"361003",name:"东乡区",region_level:3,children:[]},{code:"361021",name:"南城县",region_level:3,children:[]},{code:"361022",name:"黎川县",region_level:3,children:[]},{code:"361023",name:"南丰县",region_level:3,children:[]},{code:"361024",name:"崇仁县",region_level:3,children:[]},{code:"361025",name:"乐安县",region_level:3,children:[]},{code:"361026",name:"宜黄县",region_level:3,children:[]},{code:"361027",name:"金溪县",region_level:3,children:[]},{code:"361028",name:"资溪县",region_level:3,children:[]},{code:"361030",name:"广昌县",region_level:3,children:[]}]},{code:"3611",name:"上饶市",region_level:2,children:[{code:"361102",name:"信州区",region_level:3,children:[]},{code:"361103",name:"广丰区",region_level:3,children:[]},{code:"361104",name:"广信区",region_level:3,children:[]},{code:"361123",name:"玉山县",region_level:3,children:[]},{code:"361124",name:"铅山县",region_level:3,children:[]},{code:"361125",name:"横峰县",region_level:3,children:[]},{code:"361126",name:"弋阳县",region_level:3,children:[]},{code:"361127",name:"余干县",region_level:3,children:[]},{code:"361128",name:"鄱阳县",region_level:3,children:[]},{code:"361129",name:"万年县",region_level:3,children:[]},{code:"361130",name:"婺源县",region_level:3,children:[]},{code:"361181",name:"德兴市",region_level:3,children:[]}]}]},{code:"37",name:"山东省",region_level:1,children:[{code:"3701",name:"济南市",region_level:2,children:[{code:"370102",name:"历下区",region_level:3,children:[]},{code:"370103",name:"市中区",region_level:3,children:[]},{code:"370104",name:"槐荫区",region_level:3,children:[]},{code:"370105",name:"天桥区",region_level:3,children:[]},{code:"370112",name:"历城区",region_level:3,children:[]},{code:"370113",name:"长清区",region_level:3,children:[]},{code:"370114",name:"章丘区",region_level:3,children:[]},{code:"370115",name:"济阳区",region_level:3,children:[]},{code:"370116",name:"莱芜区",region_level:3,children:[]},{code:"370117",name:"钢城区",region_level:3,children:[]},{code:"370124",name:"平阴县",region_level:3,children:[]},{code:"370126",name:"商河县",region_level:3,children:[]}]},{code:"3702",name:"青岛市",region_level:2,children:[{code:"370202",name:"市南区",region_level:3,children:[]},{code:"370203",name:"市北区",region_level:3,children:[]},{code:"370211",name:"黄岛区",region_level:3,children:[]},{code:"370212",name:"崂山区",region_level:3,children:[]},{code:"370213",name:"李沧区",region_level:3,children:[]},{code:"370214",name:"城阳区",region_level:3,children:[]},{code:"370215",name:"即墨区",region_level:3,children:[]},{code:"370281",name:"胶州市",region_level:3,children:[]},{code:"370283",name:"平度市",region_level:3,children:[]},{code:"370285",name:"莱西市",region_level:3,children:[]}]},{code:"3703",name:"淄博市",region_level:2,children:[{code:"370302",name:"淄川区",region_level:3,children:[]},{code:"370303",name:"张店区",region_level:3,children:[]},{code:"370304",name:"博山区",region_level:3,children:[]},{code:"370305",name:"临淄区",region_level:3,children:[]},{code:"370306",name:"周村区",region_level:3,children:[]},{code:"370321",name:"桓台县",region_level:3,children:[]},{code:"370322",name:"高青县",region_level:3,children:[]},{code:"370323",name:"沂源县",region_level:3,children:[]}]},{code:"3704",name:"枣庄市",region_level:2,children:[{code:"370402",name:"市中区",region_level:3,children:[]},{code:"370403",name:"薛城区",region_level:3,children:[]},{code:"370404",name:"峄城区",region_level:3,children:[]},{code:"370405",name:"台儿庄区",region_level:3,children:[]},{code:"370406",name:"山亭区",region_level:3,children:[]},{code:"370481",name:"滕州市",region_level:3,children:[]}]},{code:"3705",name:"东营市",region_level:2,children:[{code:"370502",name:"东营区",region_level:3,children:[]},{code:"370503",name:"河口区",region_level:3,children:[]},{code:"370505",name:"垦利区",region_level:3,children:[]},{code:"370522",name:"利津县",region_level:3,children:[]},{code:"370523",name:"广饶县",region_level:3,children:[]}]},{code:"3706",name:"烟台市",region_level:2,children:[{code:"370602",name:"芝罘区",region_level:3,children:[]},{code:"370611",name:"福山区",region_level:3,children:[]},{code:"370612",name:"牟平区",region_level:3,children:[]},{code:"370613",name:"莱山区",region_level:3,children:[]},{code:"370634",name:"长岛县",region_level:3,children:[]},{code:"370681",name:"龙口市",region_level:3,children:[]},{code:"370682",name:"莱阳市",region_level:3,children:[]},{code:"370683",name:"莱州市",region_level:3,children:[]},{code:"370684",name:"蓬莱市",region_level:3,children:[]},{code:"370685",name:"招远市",region_level:3,children:[]},{code:"370686",name:"栖霞市",region_level:3,children:[]},{code:"370687",name:"海阳市",region_level:3,children:[]}]},{code:"3707",name:"潍坊市",region_level:2,children:[{code:"370702",name:"潍城区",region_level:3,children:[]},{code:"370703",name:"寒亭区",region_level:3,children:[]},{code:"370704",name:"坊子区",region_level:3,children:[]},{code:"370705",name:"奎文区",region_level:3,children:[]},{code:"370724",name:"临朐县",region_level:3,children:[]},{code:"370725",name:"昌乐县",region_level:3,children:[]},{code:"370781",name:"青州市",region_level:3,children:[]},{code:"370782",name:"诸城市",region_level:3,children:[]},{code:"370783",name:"寿光市",region_level:3,children:[]},{code:"370784",name:"安丘市",region_level:3,children:[]},{code:"370785",name:"高密市",region_level:3,children:[]},{code:"370786",name:"昌邑市",region_level:3,children:[]}]},{code:"3708",name:"济宁市",region_level:2,children:[{code:"370811",name:"任城区",region_level:3,children:[]},{code:"370812",name:"兖州区",region_level:3,children:[]},{code:"370826",name:"微山县",region_level:3,children:[]},{code:"370827",name:"鱼台县",region_level:3,children:[]},{code:"370828",name:"金乡县",region_level:3,children:[]},{code:"370829",name:"嘉祥县",region_level:3,children:[]},{code:"370830",name:"汶上县",region_level:3,children:[]},{code:"370831",name:"泗水县",region_level:3,children:[]},{code:"370832",name:"梁山县",region_level:3,children:[]},{code:"370881",name:"曲阜市",region_level:3,children:[]},{code:"370883",name:"邹城市",region_level:3,children:[]}]},{code:"3709",name:"泰安市",region_level:2,children:[{code:"370902",name:"泰山区",region_level:3,children:[]},{code:"370911",name:"岱岳区",region_level:3,children:[]},{code:"370921",name:"宁阳县",region_level:3,children:[]},{code:"370923",name:"东平县",region_level:3,children:[]},{code:"370982",name:"新泰市",region_level:3,children:[]},{code:"370983",name:"肥城市",region_level:3,children:[]}]},{code:"3710",name:"威海市",region_level:2,children:[{code:"371002",name:"环翠区",region_level:3,children:[]},{code:"371003",name:"文登区",region_level:3,children:[]},{code:"371082",name:"荣成市",region_level:3,children:[]},{code:"371083",name:"乳山市",region_level:3,children:[]}]},{code:"3711",name:"日照市",region_level:2,children:[{code:"371102",name:"东港区",region_level:3,children:[]},{code:"371103",name:"岚山区",region_level:3,children:[]},{code:"371121",name:"五莲县",region_level:3,children:[]},{code:"371122",name:"莒县",region_level:3,children:[]}]},{code:"3713",name:"临沂市",region_level:2,children:[{code:"371302",name:"兰山区",region_level:3,children:[]},{code:"371311",name:"罗庄区",region_level:3,children:[]},{code:"371312",name:"河东区",region_level:3,children:[]},{code:"371321",name:"沂南县",region_level:3,children:[]},{code:"371322",name:"郯城县",region_level:3,children:[]},{code:"371323",name:"沂水县",region_level:3,children:[]},{code:"371324",name:"兰陵县",region_level:3,children:[]},{code:"371325",name:"费县",region_level:3,children:[]},{code:"371326",name:"平邑县",region_level:3,children:[]},{code:"371327",name:"莒南县",region_level:3,children:[]},{code:"371328",name:"蒙阴县",region_level:3,children:[]},{code:"371329",name:"临沭县",region_level:3,children:[]}]},{code:"3714",name:"德州市",region_level:2,children:[{code:"371402",name:"德城区",region_level:3,children:[]},{code:"371403",name:"陵城区",region_level:3,children:[]},{code:"371422",name:"宁津县",region_level:3,children:[]},{code:"371423",name:"庆云县",region_level:3,children:[]},{code:"371424",name:"临邑县",region_level:3,children:[]},{code:"371425",name:"齐河县",region_level:3,children:[]},{code:"371426",name:"平原县",region_level:3,children:[]},{code:"371427",name:"夏津县",region_level:3,children:[]},{code:"371428",name:"武城县",region_level:3,children:[]},{code:"371481",name:"乐陵市",region_level:3,children:[]},{code:"371482",name:"禹城市",region_level:3,children:[]}]},{code:"3715",name:"聊城市",region_level:2,children:[{code:"371502",name:"东昌府区",region_level:3,children:[]},{code:"371503",name:"茌平区",region_level:3,children:[]},{code:"371521",name:"阳谷县",region_level:3,children:[]},{code:"371522",name:"莘县",region_level:3,children:[]},{code:"371524",name:"东阿县",region_level:3,children:[]},{code:"371525",name:"冠县",region_level:3,children:[]},{code:"371526",name:"高唐县",region_level:3,children:[]},{code:"371581",name:"临清市",region_level:3,children:[]}]},{code:"3716",name:"滨州市",region_level:2,children:[{code:"371602",name:"滨城区",region_level:3,children:[]},{code:"371603",name:"沾化区",region_level:3,children:[]},{code:"371621",name:"惠民县",region_level:3,children:[]},{code:"371622",name:"阳信县",region_level:3,children:[]},{code:"371623",name:"无棣县",region_level:3,children:[]},{code:"371625",name:"博兴县",region_level:3,children:[]},{code:"371681",name:"邹平市",region_level:3,children:[]}]},{code:"3717",name:"菏泽市",region_level:2,children:[{code:"371702",name:"牡丹区",region_level:3,children:[]},{code:"371703",name:"定陶区",region_level:3,children:[]},{code:"371721",name:"曹县",region_level:3,children:[]},{code:"371722",name:"单县",region_level:3,children:[]},{code:"371723",name:"成武县",region_level:3,children:[]},{code:"371724",name:"巨野县",region_level:3,children:[]},{code:"371725",name:"郓城县",region_level:3,children:[]},{code:"371726",name:"鄄城县",region_level:3,children:[]},{code:"371728",name:"东明县",region_level:3,children:[]}]}]},{code:"41",name:"河南省",region_level:1,children:[{code:"4101",name:"郑州市",region_level:2,children:[{code:"410102",name:"中原区",region_level:3,children:[]},{code:"410103",name:"二七区",region_level:3,children:[]},{code:"410104",name:"管城回族区",region_level:3,children:[]},{code:"410105",name:"金水区",region_level:3,children:[]},{code:"410106",name:"上街区",region_level:3,children:[]},{code:"410108",name:"惠济区",region_level:3,children:[]},{code:"410122",name:"中牟县",region_level:3,children:[]},{code:"410181",name:"巩义市",region_level:3,children:[]},{code:"410182",name:"荥阳市",region_level:3,children:[]},{code:"410183",name:"新密市",region_level:3,children:[]},{code:"410184",name:"新郑市",region_level:3,children:[]},{code:"410185",name:"登封市",region_level:3,children:[]}]},{code:"4102",name:"开封市",region_level:2,children:[{code:"410202",name:"龙亭区",region_level:3,children:[]},{code:"410203",name:"顺河回族区",region_level:3,children:[]},{code:"410204",name:"鼓楼区",region_level:3,children:[]},{code:"410205",name:"禹王台区",region_level:3,children:[]},{code:"410212",name:"祥符区",region_level:3,children:[]},{code:"410221",name:"杞县",region_level:3,children:[]},{code:"410222",name:"通许县",region_level:3,children:[]},{code:"410223",name:"尉氏县",region_level:3,children:[]},{code:"410225",name:"兰考县",region_level:3,children:[]}]},{code:"4103",name:"洛阳市",region_level:2,children:[{code:"410302",name:"老城区",region_level:3,children:[]},{code:"410303",name:"西工区",region_level:3,children:[]},{code:"410304",name:"瀍河回族区",region_level:3,children:[]},{code:"410305",name:"涧西区",region_level:3,children:[]},{code:"410306",name:"吉利区",region_level:3,children:[]},{code:"410311",name:"洛龙区",region_level:3,children:[]},{code:"410322",name:"孟津县",region_level:3,children:[]},{code:"410323",name:"新安县",region_level:3,children:[]},{code:"410324",name:"栾川县",region_level:3,children:[]},{code:"410325",name:"嵩县",region_level:3,children:[]},{code:"410326",name:"汝阳县",region_level:3,children:[]},{code:"410327",name:"宜阳县",region_level:3,children:[]},{code:"410328",name:"洛宁县",region_level:3,children:[]},{code:"410329",name:"伊川县",region_level:3,children:[]},{code:"410381",name:"偃师市",region_level:3,children:[]}]},{code:"4104",name:"平顶山市",region_level:2,children:[{code:"410402",name:"新华区",region_level:3,children:[]},{code:"410403",name:"卫东区",region_level:3,children:[]},{code:"410404",name:"石龙区",region_level:3,children:[]},{code:"410411",name:"湛河区",region_level:3,children:[]},{code:"410421",name:"宝丰县",region_level:3,children:[]},{code:"410422",name:"叶县",region_level:3,children:[]},{code:"410423",name:"鲁山县",region_level:3,children:[]},{code:"410425",name:"郏县",region_level:3,children:[]},{code:"410481",name:"舞钢市",region_level:3,children:[]},{code:"410482",name:"汝州市",region_level:3,children:[]}]},{code:"4105",name:"安阳市",region_level:2,children:[{code:"410502",name:"文峰区",region_level:3,children:[]},{code:"410503",name:"北关区",region_level:3,children:[]},{code:"410505",name:"殷都区",region_level:3,children:[]},{code:"410506",name:"龙安区",region_level:3,children:[]},{code:"410522",name:"安阳县",region_level:3,children:[]},{code:"410523",name:"汤阴县",region_level:3,children:[]},{code:"410526",name:"滑县",region_level:3,children:[]},{code:"410527",name:"内黄县",region_level:3,children:[]},{code:"410581",name:"林州市",region_level:3,children:[]}]},{code:"4106",name:"鹤壁市",region_level:2,children:[{code:"410602",name:"鹤山区",region_level:3,children:[]},{code:"410603",name:"山城区",region_level:3,children:[]},{code:"410611",name:"淇滨区",region_level:3,children:[]},{code:"410621",name:"浚县",region_level:3,children:[]},{code:"410622",name:"淇县",region_level:3,children:[]}]},{code:"4107",name:"新乡市",region_level:2,children:[{code:"410702",name:"红旗区",region_level:3,children:[]},{code:"410703",name:"卫滨区",region_level:3,children:[]},{code:"410704",name:"凤泉区",region_level:3,children:[]},{code:"410711",name:"牧野区",region_level:3,children:[]},{code:"410721",name:"新乡县",region_level:3,children:[]},{code:"410724",name:"获嘉县",region_level:3,children:[]},{code:"410725",name:"原阳县",region_level:3,children:[]},{code:"410726",name:"延津县",region_level:3,children:[]},{code:"410727",name:"封丘县",region_level:3,children:[]},{code:"410781",name:"卫辉市",region_level:3,children:[]},{code:"410782",name:"辉县市",region_level:3,children:[]},{code:"410783",name:"长垣市",region_level:3,children:[]}]},{code:"4108",name:"焦作市",region_level:2,children:[{code:"410802",name:"解放区",region_level:3,children:[]},{code:"410803",name:"中站区",region_level:3,children:[]},{code:"410804",name:"马村区",region_level:3,children:[]},{code:"410811",name:"山阳区",region_level:3,children:[]},{code:"410821",name:"修武县",region_level:3,children:[]},{code:"410822",name:"博爱县",region_level:3,children:[]},{code:"410823",name:"武陟县",region_level:3,children:[]},{code:"410825",name:"温县",region_level:3,children:[]},{code:"410882",name:"沁阳市",region_level:3,children:[]},{code:"410883",name:"孟州市",region_level:3,children:[]}]},{code:"4109",name:"濮阳市",region_level:2,children:[{code:"410902",name:"华龙区",region_level:3,children:[]},{code:"410922",name:"清丰县",region_level:3,children:[]},{code:"410923",name:"南乐县",region_level:3,children:[]},{code:"410926",name:"范县",region_level:3,children:[]},{code:"410927",name:"台前县",region_level:3,children:[]},{code:"410928",name:"濮阳县",region_level:3,children:[]}]},{code:"4110",name:"许昌市",region_level:2,children:[{code:"411002",name:"魏都区",region_level:3,children:[]},{code:"411003",name:"建安区",region_level:3,children:[]},{code:"411024",name:"鄢陵县",region_level:3,children:[]},{code:"411025",name:"襄城县",region_level:3,children:[]},{code:"411081",name:"禹州市",region_level:3,children:[]},{code:"411082",name:"长葛市",region_level:3,children:[]}]},{code:"4111",name:"漯河市",region_level:2,children:[{code:"411102",name:"源汇区",region_level:3,children:[]},{code:"411103",name:"郾城区",region_level:3,children:[]},{code:"411104",name:"召陵区",region_level:3,children:[]},{code:"411121",name:"舞阳县",region_level:3,children:[]},{code:"411122",name:"临颍县",region_level:3,children:[]}]},{code:"4112",name:"三门峡市",region_level:2,children:[{code:"411202",name:"湖滨区",region_level:3,children:[]},{code:"411203",name:"陕州区",region_level:3,children:[]},{code:"411221",name:"渑池县",region_level:3,children:[]},{code:"411224",name:"卢氏县",region_level:3,children:[]},{code:"411281",name:"义马市",region_level:3,children:[]},{code:"411282",name:"灵宝市",region_level:3,children:[]}]},{code:"4113",name:"南阳市",region_level:2,children:[{code:"411302",name:"宛城区",region_level:3,children:[]},{code:"411303",name:"卧龙区",region_level:3,children:[]},{code:"411321",name:"南召县",region_level:3,children:[]},{code:"411322",name:"方城县",region_level:3,children:[]},{code:"411323",name:"西峡县",region_level:3,children:[]},{code:"411324",name:"镇平县",region_level:3,children:[]},{code:"411325",name:"内乡县",region_level:3,children:[]},{code:"411326",name:"淅川县",region_level:3,children:[]},{code:"411327",name:"社旗县",region_level:3,children:[]},{code:"411328",name:"唐河县",region_level:3,children:[]},{code:"411329",name:"新野县",region_level:3,children:[]},{code:"411330",name:"桐柏县",region_level:3,children:[]},{code:"411381",name:"邓州市",region_level:3,children:[]}]},{code:"4114",name:"商丘市",region_level:2,children:[{code:"411402",name:"梁园区",region_level:3,children:[]},{code:"411403",name:"睢阳区",region_level:3,children:[]},{code:"411421",name:"民权县",region_level:3,children:[]},{code:"411422",name:"睢县",region_level:3,children:[]},{code:"411423",name:"宁陵县",region_level:3,children:[]},{code:"411424",name:"柘城县",region_level:3,children:[]},{code:"411425",name:"虞城县",region_level:3,children:[]},{code:"411426",name:"夏邑县",region_level:3,children:[]},{code:"411481",name:"永城市",region_level:3,children:[]}]},{code:"4115",name:"信阳市",region_level:2,children:[{code:"411502",name:"浉河区",region_level:3,children:[]},{code:"411503",name:"平桥区",region_level:3,children:[]},{code:"411521",name:"罗山县",region_level:3,children:[]},{code:"411522",name:"光山县",region_level:3,children:[]},{code:"411523",name:"新县",region_level:3,children:[]},{code:"411524",name:"商城县",region_level:3,children:[]},{code:"411525",name:"固始县",region_level:3,children:[]},{code:"411526",name:"潢川县",region_level:3,children:[]},{code:"411527",name:"淮滨县",region_level:3,children:[]},{code:"411528",name:"息县",region_level:3,children:[]}]},{code:"4116",name:"周口市",region_level:2,children:[{code:"411602",name:"川汇区",region_level:3,children:[]},{code:"411603",name:"淮阳区",region_level:3,children:[]},{code:"411621",name:"扶沟县",region_level:3,children:[]},{code:"411622",name:"西华县",region_level:3,children:[]},{code:"411623",name:"商水县",region_level:3,children:[]},{code:"411624",name:"沈丘县",region_level:3,children:[]},{code:"411625",name:"郸城县",region_level:3,children:[]},{code:"411627",name:"太康县",region_level:3,children:[]},{code:"411628",name:"鹿邑县",region_level:3,children:[]},{code:"411681",name:"项城市",region_level:3,children:[]}]},{code:"4117",name:"驻马店市",region_level:2,children:[{code:"411702",name:"驿城区",region_level:3,children:[]},{code:"411721",name:"西平县",region_level:3,children:[]},{code:"411722",name:"上蔡县",region_level:3,children:[]},{code:"411723",name:"平舆县",region_level:3,children:[]},{code:"411724",name:"正阳县",region_level:3,children:[]},{code:"411725",name:"确山县",region_level:3,children:[]},{code:"411726",name:"泌阳县",region_level:3,children:[]},{code:"411727",name:"汝南县",region_level:3,children:[]},{code:"411728",name:"遂平县",region_level:3,children:[]},{code:"411729",name:"新蔡县",region_level:3,children:[]}]},{code:"4190",name:"省直辖县级行政区",region_level:2,children:[{code:"419001",name:"济源市",region_level:3,children:[]}]}]},{code:"42",name:"湖北省",region_level:1,children:[{code:"4201",name:"武汉市",region_level:2,children:[{code:"420102",name:"江岸区",region_level:3,children:[]},{code:"420103",name:"江汉区",region_level:3,children:[]},{code:"420104",name:"硚口区",region_level:3,children:[]},{code:"420105",name:"汉阳区",region_level:3,children:[]},{code:"420106",name:"武昌区",region_level:3,children:[]},{code:"420107",name:"青山区",region_level:3,children:[]},{code:"420111",name:"洪山区",region_level:3,children:[]},{code:"420112",name:"东西湖区",region_level:3,children:[]},{code:"420113",name:"汉南区",region_level:3,children:[]},{code:"420114",name:"蔡甸区",region_level:3,children:[]},{code:"420115",name:"江夏区",region_level:3,children:[]},{code:"420116",name:"黄陂区",region_level:3,children:[]},{code:"420117",name:"新洲区",region_level:3,children:[]}]},{code:"4202",name:"黄石市",region_level:2,children:[{code:"420202",name:"黄石港区",region_level:3,children:[]},{code:"420203",name:"西塞山区",region_level:3,children:[]},{code:"420204",name:"下陆区",region_level:3,children:[]},{code:"420205",name:"铁山区",region_level:3,children:[]},{code:"420222",name:"阳新县",region_level:3,children:[]},{code:"420281",name:"大冶市",region_level:3,children:[]}]},{code:"4203",name:"十堰市",region_level:2,children:[{code:"420302",name:"茅箭区",region_level:3,children:[]},{code:"420303",name:"张湾区",region_level:3,children:[]},{code:"420304",name:"郧阳区",region_level:3,children:[]},{code:"420322",name:"郧西县",region_level:3,children:[]},{code:"420323",name:"竹山县",region_level:3,children:[]},{code:"420324",name:"竹溪县",region_level:3,children:[]},{code:"420325",name:"房县",region_level:3,children:[]},{code:"420381",name:"丹江口市",region_level:3,children:[]}]},{code:"4205",name:"宜昌市",region_level:2,children:[{code:"420502",name:"西陵区",region_level:3,children:[]},{code:"420503",name:"伍家岗区",region_level:3,children:[]},{code:"420504",name:"点军区",region_level:3,children:[]},{code:"420505",name:"猇亭区",region_level:3,children:[]},{code:"420506",name:"夷陵区",region_level:3,children:[]},{code:"420525",name:"远安县",region_level:3,children:[]},{code:"420526",name:"兴山县",region_level:3,children:[]},{code:"420527",name:"秭归县",region_level:3,children:[]},{code:"420528",name:"长阳土家族自治县",region_level:3,children:[]},{code:"420529",name:"五峰土家族自治县",region_level:3,children:[]},{code:"420581",name:"宜都市",region_level:3,children:[]},{code:"420582",name:"当阳市",region_level:3,children:[]},{code:"420583",name:"枝江市",region_level:3,children:[]}]},{code:"4206",name:"襄阳市",region_level:2,children:[{code:"420602",name:"襄城区",region_level:3,children:[]},{code:"420606",name:"樊城区",region_level:3,children:[]},{code:"420607",name:"襄州区",region_level:3,children:[]},{code:"420624",name:"南漳县",region_level:3,children:[]},{code:"420625",name:"谷城县",region_level:3,children:[]},{code:"420626",name:"保康县",region_level:3,children:[]},{code:"420682",name:"老河口市",region_level:3,children:[]},{code:"420683",name:"枣阳市",region_level:3,children:[]},{code:"420684",name:"宜城市",region_level:3,children:[]}]},{code:"4207",name:"鄂州市",region_level:2,children:[{code:"420702",name:"梁子湖区",region_level:3,children:[]},{code:"420703",name:"华容区",region_level:3,children:[]},{code:"420704",name:"鄂城区",region_level:3,children:[]}]},{code:"4208",name:"荆门市",region_level:2,children:[{code:"420802",name:"东宝区",region_level:3,children:[]},{code:"420804",name:"掇刀区",region_level:3,children:[]},{code:"420822",name:"沙洋县",region_level:3,children:[]},{code:"420881",name:"钟祥市",region_level:3,children:[]},{code:"420882",name:"京山市",region_level:3,children:[]}]},{code:"4209",name:"孝感市",region_level:2,children:[{code:"420902",name:"孝南区",region_level:3,children:[]},{code:"420921",name:"孝昌县",region_level:3,children:[]},{code:"420922",name:"大悟县",region_level:3,children:[]},{code:"420923",name:"云梦县",region_level:3,children:[]},{code:"420981",name:"应城市",region_level:3,children:[]},{code:"420982",name:"安陆市",region_level:3,children:[]},{code:"420984",name:"汉川市",region_level:3,children:[]}]},{code:"4210",name:"荆州市",region_level:2,children:[{code:"421002",name:"沙市区",region_level:3,children:[]},{code:"421003",name:"荆州区",region_level:3,children:[]},{code:"421022",name:"公安县",region_level:3,children:[]},{code:"421023",name:"监利县",region_level:3,children:[]},{code:"421024",name:"江陵县",region_level:3,children:[]},{code:"421081",name:"石首市",region_level:3,children:[]},{code:"421083",name:"洪湖市",region_level:3,children:[]},{code:"421087",name:"松滋市",region_level:3,children:[]}]},{code:"4211",name:"黄冈市",region_level:2,children:[{code:"421102",name:"黄州区",region_level:3,children:[]},{code:"421121",name:"团风县",region_level:3,children:[]},{code:"421122",name:"红安县",region_level:3,children:[]},{code:"421123",name:"罗田县",region_level:3,children:[]},{code:"421124",name:"英山县",region_level:3,children:[]},{code:"421125",name:"浠水县",region_level:3,children:[]},{code:"421126",name:"蕲春县",region_level:3,children:[]},{code:"421127",name:"黄梅县",region_level:3,children:[]},{code:"421181",name:"麻城市",region_level:3,children:[]},{code:"421182",name:"武穴市",region_level:3,children:[]}]},{code:"4212",name:"咸宁市",region_level:2,children:[{code:"421202",name:"咸安区",region_level:3,children:[]},{code:"421221",name:"嘉鱼县",region_level:3,children:[]},{code:"421222",name:"通城县",region_level:3,children:[]},{code:"421223",name:"崇阳县",region_level:3,children:[]},{code:"421224",name:"通山县",region_level:3,children:[]},{code:"421281",name:"赤壁市",region_level:3,children:[]}]},{code:"4213",name:"随州市",region_level:2,children:[{code:"421303",name:"曾都区",region_level:3,children:[]},{code:"421321",name:"随县",region_level:3,children:[]},{code:"421381",name:"广水市",region_level:3,children:[]}]},{code:"4228",name:"恩施土家族苗族自治州",region_level:2,children:[{code:"422801",name:"恩施市",region_level:3,children:[]},{code:"422802",name:"利川市",region_level:3,children:[]},{code:"422822",name:"建始县",region_level:3,children:[]},{code:"422823",name:"巴东县",region_level:3,children:[]},{code:"422825",name:"宣恩县",region_level:3,children:[]},{code:"422826",name:"咸丰县",region_level:3,children:[]},{code:"422827",name:"来凤县",region_level:3,children:[]},{code:"422828",name:"鹤峰县",region_level:3,children:[]}]},{code:"4290",name:"省直辖县级行政区",region_level:2,children:[{code:"429004",name:"仙桃市",region_level:3,children:[]},{code:"429005",name:"潜江市",region_level:3,children:[]},{code:"429006",name:"天门市",region_level:3,children:[]},{code:"429021",name:"神农架林区",region_level:3,children:[]}]}]},{code:"43",name:"湖南省",region_level:1,children:[{code:"4301",name:"长沙市",region_level:2,children:[{code:"430102",name:"芙蓉区",region_level:3,children:[]},{code:"430103",name:"天心区",region_level:3,children:[]},{code:"430104",name:"岳麓区",region_level:3,children:[]},{code:"430105",name:"开福区",region_level:3,children:[]},{code:"430111",name:"雨花区",region_level:3,children:[]},{code:"430112",name:"望城区",region_level:3,children:[]},{code:"430121",name:"长沙县",region_level:3,children:[]},{code:"430181",name:"浏阳市",region_level:3,children:[]},{code:"430182",name:"宁乡市",region_level:3,children:[]}]},{code:"4302",name:"株洲市",region_level:2,children:[{code:"430202",name:"荷塘区",region_level:3,children:[]},{code:"430203",name:"芦淞区",region_level:3,children:[]},{code:"430204",name:"石峰区",region_level:3,children:[]},{code:"430211",name:"天元区",region_level:3,children:[]},{code:"430212",name:"渌口区",region_level:3,children:[]},{code:"430223",name:"攸县",region_level:3,children:[]},{code:"430224",name:"茶陵县",region_level:3,children:[]},{code:"430225",name:"炎陵县",region_level:3,children:[]},{code:"430281",name:"醴陵市",region_level:3,children:[]}]},{code:"4303",name:"湘潭市",region_level:2,children:[{code:"430302",name:"雨湖区",region_level:3,children:[]},{code:"430304",name:"岳塘区",region_level:3,children:[]},{code:"430321",name:"湘潭县",region_level:3,children:[]},{code:"430381",name:"湘乡市",region_level:3,children:[]},{code:"430382",name:"韶山市",region_level:3,children:[]}]},{code:"4304",name:"衡阳市",region_level:2,children:[{code:"430405",name:"珠晖区",region_level:3,children:[]},{code:"430406",name:"雁峰区",region_level:3,children:[]},{code:"430407",name:"石鼓区",region_level:3,children:[]},{code:"430408",name:"蒸湘区",region_level:3,children:[]},{code:"430412",name:"南岳区",region_level:3,children:[]},{code:"430421",name:"衡阳县",region_level:3,children:[]},{code:"430422",name:"衡南县",region_level:3,children:[]},{code:"430423",name:"衡山县",region_level:3,children:[]},{code:"430424",name:"衡东县",region_level:3,children:[]},{code:"430426",name:"祁东县",region_level:3,children:[]},{code:"430481",name:"耒阳市",region_level:3,children:[]},{code:"430482",name:"常宁市",region_level:3,children:[]}]},{code:"4305",name:"邵阳市",region_level:2,children:[{code:"430502",name:"双清区",region_level:3,children:[]},{code:"430503",name:"大祥区",region_level:3,children:[]},{code:"430511",name:"北塔区",region_level:3,children:[]},{code:"430522",name:"新邵县",region_level:3,children:[]},{code:"430523",name:"邵阳县",region_level:3,children:[]},{code:"430524",name:"隆回县",region_level:3,children:[]},{code:"430525",name:"洞口县",region_level:3,children:[]},{code:"430527",name:"绥宁县",region_level:3,children:[]},{code:"430528",name:"新宁县",region_level:3,children:[]},{code:"430529",name:"城步苗族自治县",region_level:3,children:[]},{code:"430581",name:"武冈市",region_level:3,children:[]},{code:"430582",name:"邵东市",region_level:3,children:[]}]},{code:"4306",name:"岳阳市",region_level:2,children:[{code:"430602",name:"岳阳楼区",region_level:3,children:[]},{code:"430603",name:"云溪区",region_level:3,children:[]},{code:"430611",name:"君山区",region_level:3,children:[]},{code:"430621",name:"岳阳县",region_level:3,children:[]},{code:"430623",name:"华容县",region_level:3,children:[]},{code:"430624",name:"湘阴县",region_level:3,children:[]},{code:"430626",name:"平江县",region_level:3,children:[]},{code:"430681",name:"汨罗市",region_level:3,children:[]},{code:"430682",name:"临湘市",region_level:3,children:[]}]},{code:"4307",name:"常德市",region_level:2,children:[{code:"430702",name:"武陵区",region_level:3,children:[]},{code:"430703",name:"鼎城区",region_level:3,children:[]},{code:"430721",name:"安乡县",region_level:3,children:[]},{code:"430722",name:"汉寿县",region_level:3,children:[]},{code:"430723",name:"澧县",region_level:3,children:[]},{code:"430724",name:"临澧县",region_level:3,children:[]},{code:"430725",name:"桃源县",region_level:3,children:[]},{code:"430726",name:"石门县",region_level:3,children:[]},{code:"430781",name:"津市市",region_level:3,children:[]}]},{code:"4308",name:"张家界市",region_level:2,children:[{code:"430802",name:"永定区",region_level:3,children:[]},{code:"430811",name:"武陵源区",region_level:3,children:[]},{code:"430821",name:"慈利县",region_level:3,children:[]},{code:"430822",name:"桑植县",region_level:3,children:[]}]},{code:"4309",name:"益阳市",region_level:2,children:[{code:"430902",name:"资阳区",region_level:3,children:[]},{code:"430903",name:"赫山区",region_level:3,children:[]},{code:"430921",name:"南县",region_level:3,children:[]},{code:"430922",name:"桃江县",region_level:3,children:[]},{code:"430923",name:"安化县",region_level:3,children:[]},{code:"430981",name:"沅江市",region_level:3,children:[]}]},{code:"4310",name:"郴州市",region_level:2,children:[{code:"431002",name:"北湖区",region_level:3,children:[]},{code:"431003",name:"苏仙区",region_level:3,children:[]},{code:"431021",name:"桂阳县",region_level:3,children:[]},{code:"431022",name:"宜章县",region_level:3,children:[]},{code:"431023",name:"永兴县",region_level:3,children:[]},{code:"431024",name:"嘉禾县",region_level:3,children:[]},{code:"431025",name:"临武县",region_level:3,children:[]},{code:"431026",name:"汝城县",region_level:3,children:[]},{code:"431027",name:"桂东县",region_level:3,children:[]},{code:"431028",name:"安仁县",region_level:3,children:[]},{code:"431081",name:"资兴市",region_level:3,children:[]}]},{code:"4311",name:"永州市",region_level:2,children:[{code:"431102",name:"零陵区",region_level:3,children:[]},{code:"431103",name:"冷水滩区",region_level:3,children:[]},{code:"431121",name:"祁阳县",region_level:3,children:[]},{code:"431122",name:"东安县",region_level:3,children:[]},{code:"431123",name:"双牌县",region_level:3,children:[]},{code:"431124",name:"道县",region_level:3,children:[]},{code:"431125",name:"江永县",region_level:3,children:[]},{code:"431126",name:"宁远县",region_level:3,children:[]},{code:"431127",name:"蓝山县",region_level:3,children:[]},{code:"431128",name:"新田县",region_level:3,children:[]},{code:"431129",name:"江华瑶族自治县",region_level:3,children:[]}]},{code:"4312",name:"怀化市",region_level:2,children:[{code:"431202",name:"鹤城区",region_level:3,children:[]},{code:"431221",name:"中方县",region_level:3,children:[]},{code:"431222",name:"沅陵县",region_level:3,children:[]},{code:"431223",name:"辰溪县",region_level:3,children:[]},{code:"431224",name:"溆浦县",region_level:3,children:[]},{code:"431225",name:"会同县",region_level:3,children:[]},{code:"431226",name:"麻阳苗族自治县",region_level:3,children:[]},{code:"431227",name:"新晃侗族自治县",region_level:3,children:[]},{code:"431228",name:"芷江侗族自治县",region_level:3,children:[]},{code:"431229",name:"靖州苗族侗族自治县",region_level:3,children:[]},{code:"431230",name:"通道侗族自治县",region_level:3,children:[]},{code:"431281",name:"洪江市",region_level:3,children:[]}]},{code:"4313",name:"娄底市",region_level:2,children:[{code:"431302",name:"娄星区",region_level:3,children:[]},{code:"431321",name:"双峰县",region_level:3,children:[]},{code:"431322",name:"新化县",region_level:3,children:[]},{code:"431381",name:"冷水江市",region_level:3,children:[]},{code:"431382",name:"涟源市",region_level:3,children:[]}]},{code:"4331",name:"湘西土家族苗族自治州",region_level:2,children:[{code:"433101",name:"吉首市",region_level:3,children:[]},{code:"433122",name:"泸溪县",region_level:3,children:[]},{code:"433123",name:"凤凰县",region_level:3,children:[]},{code:"433124",name:"花垣县",region_level:3,children:[]},{code:"433125",name:"保靖县",region_level:3,children:[]},{code:"433126",name:"古丈县",region_level:3,children:[]},{code:"433127",name:"永顺县",region_level:3,children:[]},{code:"433130",name:"龙山县",region_level:3,children:[]}]}]},{code:"44",name:"广东省",region_level:1,children:[{code:"4401",name:"广州市",region_level:2,children:[{code:"440103",name:"荔湾区",region_level:3,children:[]},{code:"440104",name:"越秀区",region_level:3,children:[]},{code:"440105",name:"海珠区",region_level:3,children:[]},{code:"440106",name:"天河区",region_level:3,children:[]},{code:"440111",name:"白云区",region_level:3,children:[]},{code:"440112",name:"黄埔区",region_level:3,children:[]},{code:"440113",name:"番禺区",region_level:3,children:[]},{code:"440114",name:"花都区",region_level:3,children:[]},{code:"440115",name:"南沙区",region_level:3,children:[]},{code:"440117",name:"从化区",region_level:3,children:[]},{code:"440118",name:"增城区",region_level:3,children:[]}]},{code:"4402",name:"韶关市",region_level:2,children:[{code:"440203",name:"武江区",region_level:3,children:[]},{code:"440204",name:"浈江区",region_level:3,children:[]},{code:"440205",name:"曲江区",region_level:3,children:[]},{code:"440222",name:"始兴县",region_level:3,children:[]},{code:"440224",name:"仁化县",region_level:3,children:[]},{code:"440229",name:"翁源县",region_level:3,children:[]},{code:"440232",name:"乳源瑶族自治县",region_level:3,children:[]},{code:"440233",name:"新丰县",region_level:3,children:[]},{code:"440281",name:"乐昌市",region_level:3,children:[]},{code:"440282",name:"南雄市",region_level:3,children:[]}]},{code:"4403",name:"深圳市",region_level:2,children:[{code:"440303",name:"罗湖区",region_level:3,children:[]},{code:"440304",name:"福田区",region_level:3,children:[]},{code:"440305",name:"南山区",region_level:3,children:[]},{code:"440306",name:"宝安区",region_level:3,children:[]},{code:"440307",name:"龙岗区",region_level:3,children:[]},{code:"440308",name:"盐田区",region_level:3,children:[]},{code:"440309",name:"龙华区",region_level:3,children:[]},{code:"440310",name:"坪山区",region_level:3,children:[]},{code:"440311",name:"光明区",region_level:3,children:[]}]},{code:"4404",name:"珠海市",region_level:2,children:[{code:"440402",name:"香洲区",region_level:3,children:[]},{code:"440403",name:"斗门区",region_level:3,children:[]},{code:"440404",name:"金湾区",region_level:3,children:[]}]},{code:"4405",name:"汕头市",region_level:2,children:[{code:"440507",name:"龙湖区",region_level:3,children:[]},{code:"440511",name:"金平区",region_level:3,children:[]},{code:"440512",name:"濠江区",region_level:3,children:[]},{code:"440513",name:"潮阳区",region_level:3,children:[]},{code:"440514",name:"潮南区",region_level:3,children:[]},{code:"440515",name:"澄海区",region_level:3,children:[]},{code:"440523",name:"南澳县",region_level:3,children:[]}]},{code:"4406",name:"佛山市",region_level:2,children:[{code:"440604",name:"禅城区",region_level:3,children:[]},{code:"440605",name:"南海区",region_level:3,children:[]},{code:"440606",name:"顺德区",region_level:3,children:[]},{code:"440607",name:"三水区",region_level:3,children:[]},{code:"440608",name:"高明区",region_level:3,children:[]}]},{code:"4407",name:"江门市",region_level:2,children:[{code:"440703",name:"蓬江区",region_level:3,children:[]},{code:"440704",name:"江海区",region_level:3,children:[]},{code:"440705",name:"新会区",region_level:3,children:[]},{code:"440781",name:"台山市",region_level:3,children:[]},{code:"440783",name:"开平市",region_level:3,children:[]},{code:"440784",name:"鹤山市",region_level:3,children:[]},{code:"440785",name:"恩平市",region_level:3,children:[]}]},{code:"4408",name:"湛江市",region_level:2,children:[{code:"440802",name:"赤坎区",region_level:3,children:[]},{code:"440803",name:"霞山区",region_level:3,children:[]},{code:"440804",name:"坡头区",region_level:3,children:[]},{code:"440811",name:"麻章区",region_level:3,children:[]},{code:"440823",name:"遂溪县",region_level:3,children:[]},{code:"440825",name:"徐闻县",region_level:3,children:[]},{code:"440881",name:"廉江市",region_level:3,children:[]},{code:"440882",name:"雷州市",region_level:3,children:[]},{code:"440883",name:"吴川市",region_level:3,children:[]}]},{code:"4409",name:"茂名市",region_level:2,children:[{code:"440902",name:"茂南区",region_level:3,children:[]},{code:"440904",name:"电白区",region_level:3,children:[]},{code:"440981",name:"高州市",region_level:3,children:[]},{code:"440982",name:"化州市",region_level:3,children:[]},{code:"440983",name:"信宜市",region_level:3,children:[]}]},{code:"4412",name:"肇庆市",region_level:2,children:[{code:"441202",name:"端州区",region_level:3,children:[]},{code:"441203",name:"鼎湖区",region_level:3,children:[]},{code:"441204",name:"高要区",region_level:3,children:[]},{code:"441223",name:"广宁县",region_level:3,children:[]},{code:"441224",name:"怀集县",region_level:3,children:[]},{code:"441225",name:"封开县",region_level:3,children:[]},{code:"441226",name:"德庆县",region_level:3,children:[]},{code:"441284",name:"四会市",region_level:3,children:[]}]},{code:"4413",name:"惠州市",region_level:2,children:[{code:"441302",name:"惠城区",region_level:3,children:[]},{code:"441303",name:"惠阳区",region_level:3,children:[]},{code:"441322",name:"博罗县",region_level:3,children:[]},{code:"441323",name:"惠东县",region_level:3,children:[]},{code:"441324",name:"龙门县",region_level:3,children:[]}]},{code:"4414",name:"梅州市",region_level:2,children:[{code:"441402",name:"梅江区",region_level:3,children:[]},{code:"441403",name:"梅县区",region_level:3,children:[]},{code:"441422",name:"大埔县",region_level:3,children:[]},{code:"441423",name:"丰顺县",region_level:3,children:[]},{code:"441424",name:"五华县",region_level:3,children:[]},{code:"441426",name:"平远县",region_level:3,children:[]},{code:"441427",name:"蕉岭县",region_level:3,children:[]},{code:"441481",name:"兴宁市",region_level:3,children:[]}]},{code:"4415",name:"汕尾市",region_level:2,children:[{code:"441502",name:"城区",region_level:3,children:[]},{code:"441521",name:"海丰县",region_level:3,children:[]},{code:"441523",name:"陆河县",region_level:3,children:[]},{code:"441581",name:"陆丰市",region_level:3,children:[]}]},{code:"4416",name:"河源市",region_level:2,children:[{code:"441602",name:"源城区",region_level:3,children:[]},{code:"441621",name:"紫金县",region_level:3,children:[]},{code:"441622",name:"龙川县",region_level:3,children:[]},{code:"441623",name:"连平县",region_level:3,children:[]},{code:"441624",name:"和平县",region_level:3,children:[]},{code:"441625",name:"东源县",region_level:3,children:[]}]},{code:"4417",name:"阳江市",region_level:2,children:[{code:"441702",name:"江城区",region_level:3,children:[]},{code:"441704",name:"阳东区",region_level:3,children:[]},{code:"441721",name:"阳西县",region_level:3,children:[]},{code:"441781",name:"阳春市",region_level:3,children:[]}]},{code:"4418",name:"清远市",region_level:2,children:[{code:"441802",name:"清城区",region_level:3,children:[]},{code:"441803",name:"清新区",region_level:3,children:[]},{code:"441821",name:"佛冈县",region_level:3,children:[]},{code:"441823",name:"阳山县",region_level:3,children:[]},{code:"441825",name:"连山壮族瑶族自治县",region_level:3,children:[]},{code:"441826",name:"连南瑶族自治县",region_level:3,children:[]},{code:"441881",name:"英德市",region_level:3,children:[]},{code:"441882",name:"连州市",region_level:3,children:[]}]},{code:"4419",name:"东莞市",region_level:2,children:[{code:"441900",name:"东莞市",region_level:3,children:[]}]},{code:"4420",name:"中山市",region_level:2,children:[{code:"442000",name:"中山市",region_level:3,children:[]}]},{code:"4451",name:"潮州市",region_level:2,children:[{code:"445102",name:"湘桥区",region_level:3,children:[]},{code:"445103",name:"潮安区",region_level:3,children:[]},{code:"445122",name:"饶平县",region_level:3,children:[]}]},{code:"4452",name:"揭阳市",region_level:2,children:[{code:"445202",name:"榕城区",region_level:3,children:[]},{code:"445203",name:"揭东区",region_level:3,children:[]},{code:"445222",name:"揭西县",region_level:3,children:[]},{code:"445224",name:"惠来县",region_level:3,children:[]},{code:"445281",name:"普宁市",region_level:3,children:[]}]},{code:"4453",name:"云浮市",region_level:2,children:[{code:"445302",name:"云城区",region_level:3,children:[]},{code:"445303",name:"云安区",region_level:3,children:[]},{code:"445321",name:"新兴县",region_level:3,children:[]},{code:"445322",name:"郁南县",region_level:3,children:[]},{code:"445381",name:"罗定市",region_level:3,children:[]}]}]},{code:"45",name:"广西壮族自治区",region_level:1,children:[{code:"4501",name:"南宁市",region_level:2,children:[{code:"450102",name:"兴宁区",region_level:3,children:[]},{code:"450103",name:"青秀区",region_level:3,children:[]},{code:"450105",name:"江南区",region_level:3,children:[]},{code:"450107",name:"西乡塘区",region_level:3,children:[]},{code:"450108",name:"良庆区",region_level:3,children:[]},{code:"450109",name:"邕宁区",region_level:3,children:[]},{code:"450110",name:"武鸣区",region_level:3,children:[]},{code:"450123",name:"隆安县",region_level:3,children:[]},{code:"450124",name:"马山县",region_level:3,children:[]},{code:"450125",name:"上林县",region_level:3,children:[]},{code:"450126",name:"宾阳县",region_level:3,children:[]},{code:"450127",name:"横县",region_level:3,children:[]}]},{code:"4502",name:"柳州市",region_level:2,children:[{code:"450202",name:"城中区",region_level:3,children:[]},{code:"450203",name:"鱼峰区",region_level:3,children:[]},{code:"450204",name:"柳南区",region_level:3,children:[]},{code:"450205",name:"柳北区",region_level:3,children:[]},{code:"450206",name:"柳江区",region_level:3,children:[]},{code:"450222",name:"柳城县",region_level:3,children:[]},{code:"450223",name:"鹿寨县",region_level:3,children:[]},{code:"450224",name:"融安县",region_level:3,children:[]},{code:"450225",name:"融水苗族自治县",region_level:3,children:[]},{code:"450226",name:"三江侗族自治县",region_level:3,children:[]}]},{code:"4503",name:"桂林市",region_level:2,children:[{code:"450302",name:"秀峰区",region_level:3,children:[]},{code:"450303",name:"叠彩区",region_level:3,children:[]},{code:"450304",name:"象山区",region_level:3,children:[]},{code:"450305",name:"七星区",region_level:3,children:[]},{code:"450311",name:"雁山区",region_level:3,children:[]},{code:"450312",name:"临桂区",region_level:3,children:[]},{code:"450321",name:"阳朔县",region_level:3,children:[]},{code:"450323",name:"灵川县",region_level:3,children:[]},{code:"450324",name:"全州县",region_level:3,children:[]},{code:"450325",name:"兴安县",region_level:3,children:[]},{code:"450326",name:"永福县",region_level:3,children:[]},{code:"450327",name:"灌阳县",region_level:3,children:[]},{code:"450328",name:"龙胜各族自治县",region_level:3,children:[]},{code:"450329",name:"资源县",region_level:3,children:[]},{code:"450330",name:"平乐县",region_level:3,children:[]},{code:"450332",name:"恭城瑶族自治县",region_level:3,children:[]},{code:"450381",name:"荔浦市",region_level:3,children:[]}]},{code:"4504",name:"梧州市",region_level:2,children:[{code:"450403",name:"万秀区",region_level:3,children:[]},{code:"450405",name:"长洲区",region_level:3,children:[]},{code:"450406",name:"龙圩区",region_level:3,children:[]},{code:"450421",name:"苍梧县",region_level:3,children:[]},{code:"450422",name:"藤县",region_level:3,children:[]},{code:"450423",name:"蒙山县",region_level:3,children:[]},{code:"450481",name:"岑溪市",region_level:3,children:[]}]},{code:"4505",name:"北海市",region_level:2,children:[{code:"450502",name:"海城区",region_level:3,children:[]},{code:"450503",name:"银海区",region_level:3,children:[]},{code:"450512",name:"铁山港区",region_level:3,children:[]},{code:"450521",name:"合浦县",region_level:3,children:[]}]},{code:"4506",name:"防城港市",region_level:2,children:[{code:"450602",name:"港口区",region_level:3,children:[]},{code:"450603",name:"防城区",region_level:3,children:[]},{code:"450621",name:"上思县",region_level:3,children:[]},{code:"450681",name:"东兴市",region_level:3,children:[]}]},{code:"4507",name:"钦州市",region_level:2,children:[{code:"450702",name:"钦南区",region_level:3,children:[]},{code:"450703",name:"钦北区",region_level:3,children:[]},{code:"450721",name:"灵山县",region_level:3,children:[]},{code:"450722",name:"浦北县",region_level:3,children:[]}]},{code:"4508",name:"贵港市",region_level:2,children:[{code:"450802",name:"港北区",region_level:3,children:[]},{code:"450803",name:"港南区",region_level:3,children:[]},{code:"450804",name:"覃塘区",region_level:3,children:[]},{code:"450821",name:"平南县",region_level:3,children:[]},{code:"450881",name:"桂平市",region_level:3,children:[]}]},{code:"4509",name:"玉林市",region_level:2,children:[{code:"450902",name:"玉州区",region_level:3,children:[]},{code:"450903",name:"福绵区",region_level:3,children:[]},{code:"450921",name:"容县",region_level:3,children:[]},{code:"450922",name:"陆川县",region_level:3,children:[]},{code:"450923",name:"博白县",region_level:3,children:[]},{code:"450924",name:"兴业县",region_level:3,children:[]},{code:"450981",name:"北流市",region_level:3,children:[]}]},{code:"4510",name:"百色市",region_level:2,children:[{code:"451002",name:"右江区",region_level:3,children:[]},{code:"451003",name:"田阳区",region_level:3,children:[]},{code:"451022",name:"田东县",region_level:3,children:[]},{code:"451024",name:"德保县",region_level:3,children:[]},{code:"451026",name:"那坡县",region_level:3,children:[]},{code:"451027",name:"凌云县",region_level:3,children:[]},{code:"451028",name:"乐业县",region_level:3,children:[]},{code:"451029",name:"田林县",region_level:3,children:[]},{code:"451030",name:"西林县",region_level:3,children:[]},{code:"451031",name:"隆林各族自治县",region_level:3,children:[]},{code:"451081",name:"靖西市",region_level:3,children:[]},{code:"451082",name:"平果市",region_level:3,children:[]}]},{code:"4511",name:"贺州市",region_level:2,children:[{code:"451102",name:"八步区",region_level:3,children:[]},{code:"451103",name:"平桂区",region_level:3,children:[]},{code:"451121",name:"昭平县",region_level:3,children:[]},{code:"451122",name:"钟山县",region_level:3,children:[]},{code:"451123",name:"富川瑶族自治县",region_level:3,children:[]}]},{code:"4512",name:"河池市",region_level:2,children:[{code:"451202",name:"金城江区",region_level:3,children:[]},{code:"451203",name:"宜州区",region_level:3,children:[]},{code:"451221",name:"南丹县",region_level:3,children:[]},{code:"451222",name:"天峨县",region_level:3,children:[]},{code:"451223",name:"凤山县",region_level:3,children:[]},{code:"451224",name:"东兰县",region_level:3,children:[]},{code:"451225",name:"罗城仫佬族自治县",region_level:3,children:[]},{code:"451226",name:"环江毛南族自治县",region_level:3,children:[]},{code:"451227",name:"巴马瑶族自治县",region_level:3,children:[]},{code:"451228",name:"都安瑶族自治县",region_level:3,children:[]},{code:"451229",name:"大化瑶族自治县",region_level:3,children:[]}]},{code:"4513",name:"来宾市",region_level:2,children:[{code:"451302",name:"兴宾区",region_level:3,children:[]},{code:"451321",name:"忻城县",region_level:3,children:[]},{code:"451322",name:"象州县",region_level:3,children:[]},{code:"451323",name:"武宣县",region_level:3,children:[]},{code:"451324",name:"金秀瑶族自治县",region_level:3,children:[]},{code:"451381",name:"合山市",region_level:3,children:[]}]},{code:"4514",name:"崇左市",region_level:2,children:[{code:"451402",name:"江州区",region_level:3,children:[]},{code:"451421",name:"扶绥县",region_level:3,children:[]},{code:"451422",name:"宁明县",region_level:3,children:[]},{code:"451423",name:"龙州县",region_level:3,children:[]},{code:"451424",name:"大新县",region_level:3,children:[]},{code:"451425",name:"天等县",region_level:3,children:[]},{code:"451481",name:"凭祥市",region_level:3,children:[]}]}]},{code:"46",name:"海南省",region_level:1,children:[{code:"4601",name:"海口市",region_level:2,children:[{code:"460105",name:"秀英区",region_level:3,children:[]},{code:"460106",name:"龙华区",region_level:3,children:[]},{code:"460107",name:"琼山区",region_level:3,children:[]},{code:"460108",name:"美兰区",region_level:3,children:[]}]},{code:"4602",name:"三亚市",region_level:2,children:[{code:"460202",name:"海棠区",region_level:3,children:[]},{code:"460203",name:"吉阳区",region_level:3,children:[]},{code:"460204",name:"天涯区",region_level:3,children:[]},{code:"460205",name:"崖州区",region_level:3,children:[]}]},{code:"4603",name:"三沙市",region_level:2,children:[{code:"460300",name:"三沙市",region_level:3,children:[]}]},{code:"4604",name:"儋州市",region_level:2,children:[{code:"460400",name:"儋州市",region_level:3,children:[]}]},{code:"4690",name:"省直辖县级行政区",region_level:2,children:[{code:"469001",name:"五指山市",region_level:3,children:[]},{code:"469002",name:"琼海市",region_level:3,children:[]},{code:"469005",name:"文昌市",region_level:3,children:[]},{code:"469006",name:"万宁市",region_level:3,children:[]},{code:"469007",name:"东方市",region_level:3,children:[]},{code:"469021",name:"定安县",region_level:3,children:[]},{code:"469022",name:"屯昌县",region_level:3,children:[]},{code:"469023",name:"澄迈县",region_level:3,children:[]},{code:"469024",name:"临高县",region_level:3,children:[]},{code:"469025",name:"白沙黎族自治县",region_level:3,children:[]},{code:"469026",name:"昌江黎族自治县",region_level:3,children:[]},{code:"469027",name:"乐东黎族自治县",region_level:3,children:[]},{code:"469028",name:"陵水黎族自治县",region_level:3,children:[]},{code:"469029",name:"保亭黎族苗族自治县",region_level:3,children:[]},{code:"469030",name:"琼中黎族苗族自治县",region_level:3,children:[]}]}]},{code:"50",name:"重庆市",region_level:1,children:[{code:"5001",name:"重庆市",region_level:2,children:[{code:"500101",name:"万州区",region_level:3,children:[]},{code:"500102",name:"涪陵区",region_level:3,children:[]},{code:"500103",name:"渝中区",region_level:3,children:[]},{code:"500104",name:"大渡口区",region_level:3,children:[]},{code:"500105",name:"江北区",region_level:3,children:[]},{code:"500106",name:"沙坪坝区",region_level:3,children:[]},{code:"500107",name:"九龙坡区",region_level:3,children:[]},{code:"500108",name:"南岸区",region_level:3,children:[]},{code:"500109",name:"北碚区",region_level:3,children:[]},{code:"500110",name:"綦江区",region_level:3,children:[]},{code:"500111",name:"大足区",region_level:3,children:[]},{code:"500112",name:"渝北区",region_level:3,children:[]},{code:"500113",name:"巴南区",region_level:3,children:[]},{code:"500114",name:"黔江区",region_level:3,children:[]},{code:"500115",name:"长寿区",region_level:3,children:[]},{code:"500116",name:"江津区",region_level:3,children:[]},{code:"500117",name:"合川区",region_level:3,children:[]},{code:"500118",name:"永川区",region_level:3,children:[]},{code:"500119",name:"南川区",region_level:3,children:[]},{code:"500120",name:"璧山区",region_level:3,children:[]},{code:"500151",name:"铜梁区",region_level:3,children:[]},{code:"500152",name:"潼南区",region_level:3,children:[]},{code:"500153",name:"荣昌区",region_level:3,children:[]},{code:"500154",name:"开州区",region_level:3,children:[]},{code:"500155",name:"梁平区",region_level:3,children:[]},{code:"500156",name:"武隆区",region_level:3,children:[]}]},{code:"5002",name:"重庆市",region_level:2,children:[{code:"500229",name:"城口县",region_level:3,children:[]},{code:"500230",name:"丰都县",region_level:3,children:[]},{code:"500231",name:"垫江县",region_level:3,children:[]},{code:"500233",name:"忠县",region_level:3,children:[]},{code:"500235",name:"云阳县",region_level:3,children:[]},{code:"500236",name:"奉节县",region_level:3,children:[]},{code:"500237",name:"巫山县",region_level:3,children:[]},{code:"500238",name:"巫溪县",region_level:3,children:[]},{code:"500240",name:"石柱土家族自治县",region_level:3,children:[]},{code:"500241",name:"秀山土家族苗族自治县",region_level:3,children:[]},{code:"500242",name:"酉阳土家族苗族自治县",region_level:3,children:[]},{code:"500243",name:"彭水苗族土家族自治县",region_level:3,children:[]}]}]},{code:"51",name:"四川省",region_level:1,children:[{code:"5101",name:"成都市",region_level:2,children:[{code:"510104",name:"锦江区",region_level:3,children:[]},{code:"510105",name:"青羊区",region_level:3,children:[]},{code:"510106",name:"金牛区",region_level:3,children:[]},{code:"510107",name:"武侯区",region_level:3,children:[]},{code:"510108",name:"成华区",region_level:3,children:[]},{code:"510112",name:"龙泉驿区",region_level:3,children:[]},{code:"510113",name:"青白江区",region_level:3,children:[]},{code:"510114",name:"新都区",region_level:3,children:[]},{code:"510115",name:"温江区",region_level:3,children:[]},{code:"510116",name:"双流区",region_level:3,children:[]},{code:"510117",name:"郫都区",region_level:3,children:[]},{code:"510121",name:"金堂县",region_level:3,children:[]},{code:"510129",name:"大邑县",region_level:3,children:[]},{code:"510131",name:"蒲江县",region_level:3,children:[]},{code:"510132",name:"新津县",region_level:3,children:[]},{code:"510181",name:"都江堰市",region_level:3,children:[]},{code:"510182",name:"彭州市",region_level:3,children:[]},{code:"510183",name:"邛崃市",region_level:3,children:[]},{code:"510184",name:"崇州市",region_level:3,children:[]},{code:"510185",name:"简阳市",region_level:3,children:[]}]},{code:"5103",name:"自贡市",region_level:2,children:[{code:"510302",name:"自流井区",region_level:3,children:[]},{code:"510303",name:"贡井区",region_level:3,children:[]},{code:"510304",name:"大安区",region_level:3,children:[]},{code:"510311",name:"沿滩区",region_level:3,children:[]},{code:"510321",name:"荣县",region_level:3,children:[]},{code:"510322",name:"富顺县",region_level:3,children:[]}]},{code:"5104",name:"攀枝花市",region_level:2,children:[{code:"510402",name:"东区",region_level:3,children:[]},{code:"510403",name:"西区",region_level:3,children:[]},{code:"510411",name:"仁和区",region_level:3,children:[]},{code:"510421",name:"米易县",region_level:3,children:[]},{code:"510422",name:"盐边县",region_level:3,children:[]}]},{code:"5105",name:"泸州市",region_level:2,children:[{code:"510502",name:"江阳区",region_level:3,children:[]},{code:"510503",name:"纳溪区",region_level:3,children:[]},{code:"510504",name:"龙马潭区",region_level:3,children:[]},{code:"510521",name:"泸县",region_level:3,children:[]},{code:"510522",name:"合江县",region_level:3,children:[]},{code:"510524",name:"叙永县",region_level:3,children:[]},{code:"510525",name:"古蔺县",region_level:3,children:[]}]},{code:"5106",name:"德阳市",region_level:2,children:[{code:"510603",name:"旌阳区",region_level:3,children:[]},{code:"510604",name:"罗江区",region_level:3,children:[]},{code:"510623",name:"中江县",region_level:3,children:[]},{code:"510681",name:"广汉市",region_level:3,children:[]},{code:"510682",name:"什邡市",region_level:3,children:[]},{code:"510683",name:"绵竹市",region_level:3,children:[]}]},{code:"5107",name:"绵阳市",region_level:2,children:[{code:"510703",name:"涪城区",region_level:3,children:[]},{code:"510704",name:"游仙区",region_level:3,children:[]},{code:"510705",name:"安州区",region_level:3,children:[]},{code:"510722",name:"三台县",region_level:3,children:[]},{code:"510723",name:"盐亭县",region_level:3,children:[]},{code:"510725",name:"梓潼县",region_level:3,children:[]},{code:"510726",name:"北川羌族自治县",region_level:3,children:[]},{code:"510727",name:"平武县",region_level:3,children:[]},{code:"510781",name:"江油市",region_level:3,children:[]}]},{code:"5108",name:"广元市",region_level:2,children:[{code:"510802",name:"利州区",region_level:3,children:[]},{code:"510811",name:"昭化区",region_level:3,children:[]},{code:"510812",name:"朝天区",region_level:3,children:[]},{code:"510821",name:"旺苍县",region_level:3,children:[]},{code:"510822",name:"青川县",region_level:3,children:[]},{code:"510823",name:"剑阁县",region_level:3,children:[]},{code:"510824",name:"苍溪县",region_level:3,children:[]}]},{code:"5109",name:"遂宁市",region_level:2,children:[{code:"510903",name:"船山区",region_level:3,children:[]},{code:"510904",name:"安居区",region_level:3,children:[]},{code:"510921",name:"蓬溪县",region_level:3,children:[]},{code:"510923",name:"大英县",region_level:3,children:[]},{code:"510981",name:"射洪市",region_level:3,children:[]}]},{code:"5110",name:"内江市",region_level:2,children:[{code:"511002",name:"市中区",region_level:3,children:[]},{code:"511011",name:"东兴区",region_level:3,children:[]},{code:"511024",name:"威远县",region_level:3,children:[]},{code:"511025",name:"资中县",region_level:3,children:[]},{code:"511083",name:"隆昌市",region_level:3,children:[]}]},{code:"5111",name:"乐山市",region_level:2,children:[{code:"511102",name:"市中区",region_level:3,children:[]},{code:"511111",name:"沙湾区",region_level:3,children:[]},{code:"511112",name:"五通桥区",region_level:3,children:[]},{code:"511113",name:"金口河区",region_level:3,children:[]},{code:"511123",name:"犍为县",region_level:3,children:[]},{code:"511124",name:"井研县",region_level:3,children:[]},{code:"511126",name:"夹江县",region_level:3,children:[]},{code:"511129",name:"沐川县",region_level:3,children:[]},{code:"511132",name:"峨边彝族自治县",region_level:3,children:[]},{code:"511133",name:"马边彝族自治县",region_level:3,children:[]},{code:"511181",name:"峨眉山市",region_level:3,children:[]}]},{code:"5113",name:"南充市",region_level:2,children:[{code:"511302",name:"顺庆区",region_level:3,children:[]},{code:"511303",name:"高坪区",region_level:3,children:[]},{code:"511304",name:"嘉陵区",region_level:3,children:[]},{code:"511321",name:"南部县",region_level:3,children:[]},{code:"511322",name:"营山县",region_level:3,children:[]},{code:"511323",name:"蓬安县",region_level:3,children:[]},{code:"511324",name:"仪陇县",region_level:3,children:[]},{code:"511325",name:"西充县",region_level:3,children:[]},{code:"511381",name:"阆中市",region_level:3,children:[]}]},{code:"5114",name:"眉山市",region_level:2,children:[{code:"511402",name:"东坡区",region_level:3,children:[]},{code:"511403",name:"彭山区",region_level:3,children:[]},{code:"511421",name:"仁寿县",region_level:3,children:[]},{code:"511423",name:"洪雅县",region_level:3,children:[]},{code:"511424",name:"丹棱县",region_level:3,children:[]},{code:"511425",name:"青神县",region_level:3,children:[]}]},{code:"5115",name:"宜宾市",region_level:2,children:[{code:"511502",name:"翠屏区",region_level:3,children:[]},{code:"511503",name:"南溪区",region_level:3,children:[]},{code:"511504",name:"叙州区",region_level:3,children:[]},{code:"511523",name:"江安县",region_level:3,children:[]},{code:"511524",name:"长宁县",region_level:3,children:[]},{code:"511525",name:"高县",region_level:3,children:[]},{code:"511526",name:"珙县",region_level:3,children:[]},{code:"511527",name:"筠连县",region_level:3,children:[]},{code:"511528",name:"兴文县",region_level:3,children:[]},{code:"511529",name:"屏山县",region_level:3,children:[]}]},{code:"5116",name:"广安市",region_level:2,children:[{code:"511602",name:"广安区",region_level:3,children:[]},{code:"511603",name:"前锋区",region_level:3,children:[]},{code:"511621",name:"岳池县",region_level:3,children:[]},{code:"511622",name:"武胜县",region_level:3,children:[]},{code:"511623",name:"邻水县",region_level:3,children:[]},{code:"511681",name:"华蓥市",region_level:3,children:[]}]},{code:"5117",name:"达州市",region_level:2,children:[{code:"511702",name:"通川区",region_level:3,children:[]},{code:"511703",name:"达川区",region_level:3,children:[]},{code:"511722",name:"宣汉县",region_level:3,children:[]},{code:"511723",name:"开江县",region_level:3,children:[]},{code:"511724",name:"大竹县",region_level:3,children:[]},{code:"511725",name:"渠县",region_level:3,children:[]},{code:"511781",name:"万源市",region_level:3,children:[]}]},{code:"5118",name:"雅安市",region_level:2,children:[{code:"511802",name:"雨城区",region_level:3,children:[]},{code:"511803",name:"名山区",region_level:3,children:[]},{code:"511822",name:"荥经县",region_level:3,children:[]},{code:"511823",name:"汉源县",region_level:3,children:[]},{code:"511824",name:"石棉县",region_level:3,children:[]},{code:"511825",name:"天全县",region_level:3,children:[]},{code:"511826",name:"芦山县",region_level:3,children:[]},{code:"511827",name:"宝兴县",region_level:3,children:[]}]},{code:"5119",name:"巴中市",region_level:2,children:[{code:"511902",name:"巴州区",region_level:3,children:[]},{code:"511903",name:"恩阳区",region_level:3,children:[]},{code:"511921",name:"通江县",region_level:3,children:[]},{code:"511922",name:"南江县",region_level:3,children:[]},{code:"511923",name:"平昌县",region_level:3,children:[]}]},{code:"5120",name:"资阳市",region_level:2,children:[{code:"512002",name:"雁江区",region_level:3,children:[]},{code:"512021",name:"安岳县",region_level:3,children:[]},{code:"512022",name:"乐至县",region_level:3,children:[]}]},{code:"5132",name:"阿坝藏族羌族自治州",region_level:2,children:[{code:"513201",name:"马尔康市",region_level:3,children:[]},{code:"513221",name:"汶川县",region_level:3,children:[]},{code:"513222",name:"理县",region_level:3,children:[]},{code:"513223",name:"茂县",region_level:3,children:[]},{code:"513224",name:"松潘县",region_level:3,children:[]},{code:"513225",name:"九寨沟县",region_level:3,children:[]},{code:"513226",name:"金川县",region_level:3,children:[]},{code:"513227",name:"小金县",region_level:3,children:[]},{code:"513228",name:"黑水县",region_level:3,children:[]},{code:"513230",name:"壤塘县",region_level:3,children:[]},{code:"513231",name:"阿坝县",region_level:3,children:[]},{code:"513232",name:"若尔盖县",region_level:3,children:[]},{code:"513233",name:"红原县",region_level:3,children:[]}]},{code:"5133",name:"甘孜藏族自治州",region_level:2,children:[{code:"513301",name:"康定市",region_level:3,children:[]},{code:"513322",name:"泸定县",region_level:3,children:[]},{code:"513323",name:"丹巴县",region_level:3,children:[]},{code:"513324",name:"九龙县",region_level:3,children:[]},{code:"513325",name:"雅江县",region_level:3,children:[]},{code:"513326",name:"道孚县",region_level:3,children:[]},{code:"513327",name:"炉霍县",region_level:3,children:[]},{code:"513328",name:"甘孜县",region_level:3,children:[]},{code:"513329",name:"新龙县",region_level:3,children:[]},{code:"513330",name:"德格县",region_level:3,children:[]},{code:"513331",name:"白玉县",region_level:3,children:[]},{code:"513332",name:"石渠县",region_level:3,children:[]},{code:"513333",name:"色达县",region_level:3,children:[]},{code:"513334",name:"理塘县",region_level:3,children:[]},{code:"513335",name:"巴塘县",region_level:3,children:[]},{code:"513336",name:"乡城县",region_level:3,children:[]},{code:"513337",name:"稻城县",region_level:3,children:[]},{code:"513338",name:"得荣县",region_level:3,children:[]}]},{code:"5134",name:"凉山彝族自治州",region_level:2,children:[{code:"513401",name:"西昌市",region_level:3,children:[]},{code:"513422",name:"木里藏族自治县",region_level:3,children:[]},{code:"513423",name:"盐源县",region_level:3,children:[]},{code:"513424",name:"德昌县",region_level:3,children:[]},{code:"513425",name:"会理县",region_level:3,children:[]},{code:"513426",name:"会东县",region_level:3,children:[]},{code:"513427",name:"宁南县",region_level:3,children:[]},{code:"513428",name:"普格县",region_level:3,children:[]},{code:"513429",name:"布拖县",region_level:3,children:[]},{code:"513430",name:"金阳县",region_level:3,children:[]},{code:"513431",name:"昭觉县",region_level:3,children:[]},{code:"513432",name:"喜德县",region_level:3,children:[]},{code:"513433",name:"冕宁县",region_level:3,children:[]},{code:"513434",name:"越西县",region_level:3,children:[]},{code:"513435",name:"甘洛县",region_level:3,children:[]},{code:"513436",name:"美姑县",region_level:3,children:[]},{code:"513437",name:"雷波县",region_level:3,children:[]}]}]},{code:"52",name:"贵州省",region_level:1,children:[{code:"5201",name:"贵阳市",region_level:2,children:[{code:"520102",name:"南明区",region_level:3,children:[]},{code:"520103",name:"云岩区",region_level:3,children:[]},{code:"520111",name:"花溪区",region_level:3,children:[]},{code:"520112",name:"乌当区",region_level:3,children:[]},{code:"520113",name:"白云区",region_level:3,children:[]},{code:"520115",name:"观山湖区",region_level:3,children:[]},{code:"520121",name:"开阳县",region_level:3,children:[]},{code:"520122",name:"息烽县",region_level:3,children:[]},{code:"520123",name:"修文县",region_level:3,children:[]},{code:"520181",name:"清镇市",region_level:3,children:[]}]},{code:"5202",name:"六盘水市",region_level:2,children:[{code:"520201",name:"钟山区",region_level:3,children:[]},{code:"520203",name:"六枝特区",region_level:3,children:[]},{code:"520221",name:"水城县",region_level:3,children:[]},{code:"520281",name:"盘州市",region_level:3,children:[]}]},{code:"5203",name:"遵义市",region_level:2,children:[{code:"520302",name:"红花岗区",region_level:3,children:[]},{code:"520303",name:"汇川区",region_level:3,children:[]},{code:"520304",name:"播州区",region_level:3,children:[]},{code:"520322",name:"桐梓县",region_level:3,children:[]},{code:"520323",name:"绥阳县",region_level:3,children:[]},{code:"520324",name:"正安县",region_level:3,children:[]},{code:"520325",name:"道真仡佬族苗族自治县",region_level:3,children:[]},{code:"520326",name:"务川仡佬族苗族自治县",region_level:3,children:[]},{code:"520327",name:"凤冈县",region_level:3,children:[]},{code:"520328",name:"湄潭县",region_level:3,children:[]},{code:"520329",name:"余庆县",region_level:3,children:[]},{code:"520330",name:"习水县",region_level:3,children:[]},{code:"520381",name:"赤水市",region_level:3,children:[]},{code:"520382",name:"仁怀市",region_level:3,children:[]}]},{code:"5204",name:"安顺市",region_level:2,children:[{code:"520402",name:"西秀区",region_level:3,children:[]},{code:"520403",name:"平坝区",region_level:3,children:[]},{code:"520422",name:"普定县",region_level:3,children:[]},{code:"520423",name:"镇宁布依族苗族自治县",region_level:3,children:[]},{code:"520424",name:"关岭布依族苗族自治县",region_level:3,children:[]},{code:"520425",name:"紫云苗族布依族自治县",region_level:3,children:[]}]},{code:"5205",name:"毕节市",region_level:2,children:[{code:"520502",name:"七星关区",region_level:3,children:[]},{code:"520521",name:"大方县",region_level:3,children:[]},{code:"520522",name:"黔西县",region_level:3,children:[]},{code:"520523",name:"金沙县",region_level:3,children:[]},{code:"520524",name:"织金县",region_level:3,children:[]},{code:"520525",name:"纳雍县",region_level:3,children:[]},{code:"520526",name:"威宁彝族回族苗族自治县",region_level:3,children:[]},{code:"520527",name:"赫章县",region_level:3,children:[]}]},{code:"5206",name:"铜仁市",region_level:2,children:[{code:"520602",name:"碧江区",region_level:3,children:[]},{code:"520603",name:"万山区",region_level:3,children:[]},{code:"520621",name:"江口县",region_level:3,children:[]},{code:"520622",name:"玉屏侗族自治县",region_level:3,children:[]},{code:"520623",name:"石阡县",region_level:3,children:[]},{code:"520624",name:"思南县",region_level:3,children:[]},{code:"520625",name:"印江土家族苗族自治县",region_level:3,children:[]},{code:"520626",name:"德江县",region_level:3,children:[]},{code:"520627",name:"沿河土家族自治县",region_level:3,children:[]},{code:"520628",name:"松桃苗族自治县",region_level:3,children:[]}]},{code:"5223",name:"黔西南布依族苗族自治州",region_level:2,children:[{code:"522301",name:"兴义市",region_level:3,children:[]},{code:"522302",name:"兴仁市",region_level:3,children:[]},{code:"522323",name:"普安县",region_level:3,children:[]},{code:"522324",name:"晴隆县",region_level:3,children:[]},{code:"522325",name:"贞丰县",region_level:3,children:[]},{code:"522326",name:"望谟县",region_level:3,children:[]},{code:"522327",name:"册亨县",region_level:3,children:[]},{code:"522328",name:"安龙县",region_level:3,children:[]}]},{code:"5226",name:"黔东南苗族侗族自治州",region_level:2,children:[{code:"522601",name:"凯里市",region_level:3,children:[]},{code:"522622",name:"黄平县",region_level:3,children:[]},{code:"522623",name:"施秉县",region_level:3,children:[]},{code:"522624",name:"三穗县",region_level:3,children:[]},{code:"522625",name:"镇远县",region_level:3,children:[]},{code:"522626",name:"岑巩县",region_level:3,children:[]},{code:"522627",name:"天柱县",region_level:3,children:[]},{code:"522628",name:"锦屏县",region_level:3,children:[]},{code:"522629",name:"剑河县",region_level:3,children:[]},{code:"522630",name:"台江县",region_level:3,children:[]},{code:"522631",name:"黎平县",region_level:3,children:[]},{code:"522632",name:"榕江县",region_level:3,children:[]},{code:"522633",name:"从江县",region_level:3,children:[]},{code:"522634",name:"雷山县",region_level:3,children:[]},{code:"522635",name:"麻江县",region_level:3,children:[]},{code:"522636",name:"丹寨县",region_level:3,children:[]}]},{code:"5227",name:"黔南布依族苗族自治州",region_level:2,children:[{code:"522701",name:"都匀市",region_level:3,children:[]},{code:"522702",name:"福泉市",region_level:3,children:[]},{code:"522722",name:"荔波县",region_level:3,children:[]},{code:"522723",name:"贵定县",region_level:3,children:[]},{code:"522725",name:"瓮安县",region_level:3,children:[]},{code:"522726",name:"独山县",region_level:3,children:[]},{code:"522727",name:"平塘县",region_level:3,children:[]},{code:"522728",name:"罗甸县",region_level:3,children:[]},{code:"522729",name:"长顺县",region_level:3,children:[]},{code:"522730",name:"龙里县",region_level:3,children:[]},{code:"522731",name:"惠水县",region_level:3,children:[]},{code:"522732",name:"三都水族自治县",region_level:3,children:[]}]}]},{code:"53",name:"云南省",region_level:1,children:[{code:"5301",name:"昆明市",region_level:2,children:[{code:"530102",name:"五华区",region_level:3,children:[]},{code:"530103",name:"盘龙区",region_level:3,children:[]},{code:"530111",name:"官渡区",region_level:3,children:[]},{code:"530112",name:"西山区",region_level:3,children:[]},{code:"530113",name:"东川区",region_level:3,children:[]},{code:"530114",name:"呈贡区",region_level:3,children:[]},{code:"530115",name:"晋宁区",region_level:3,children:[]},{code:"530124",name:"富民县",region_level:3,children:[]},{code:"530125",name:"宜良县",region_level:3,children:[]},{code:"530126",name:"石林彝族自治县",region_level:3,children:[]},{code:"530127",name:"嵩明县",region_level:3,children:[]},{code:"530128",name:"禄劝彝族苗族自治县",region_level:3,children:[]},{code:"530129",name:"寻甸回族彝族自治县",region_level:3,children:[]},{code:"530181",name:"安宁市",region_level:3,children:[]}]},{code:"5303",name:"曲靖市",region_level:2,children:[{code:"530302",name:"麒麟区",region_level:3,children:[]},{code:"530303",name:"沾益区",region_level:3,children:[]},{code:"530304",name:"马龙区",region_level:3,children:[]},{code:"530322",name:"陆良县",region_level:3,children:[]},{code:"530323",name:"师宗县",region_level:3,children:[]},{code:"530324",name:"罗平县",region_level:3,children:[]},{code:"530325",name:"富源县",region_level:3,children:[]},{code:"530326",name:"会泽县",region_level:3,children:[]},{code:"530381",name:"宣威市",region_level:3,children:[]}]},{code:"5304",name:"玉溪市",region_level:2,children:[{code:"530402",name:"红塔区",region_level:3,children:[]},{code:"530403",name:"江川区",region_level:3,children:[]},{code:"530423",name:"通海县",region_level:3,children:[]},{code:"530424",name:"华宁县",region_level:3,children:[]},{code:"530425",name:"易门县",region_level:3,children:[]},{code:"530426",name:"峨山彝族自治县",region_level:3,children:[]},{code:"530427",name:"新平彝族傣族自治县",region_level:3,children:[]},{code:"530428",name:"元江哈尼族彝族傣族自治县",region_level:3,children:[]},{code:"530481",name:"澄江市",region_level:3,children:[]}]},{code:"5305",name:"保山市",region_level:2,children:[{code:"530502",name:"隆阳区",region_level:3,children:[]},{code:"530521",name:"施甸县",region_level:3,children:[]},{code:"530523",name:"龙陵县",region_level:3,children:[]},{code:"530524",name:"昌宁县",region_level:3,children:[]},{code:"530581",name:"腾冲市",region_level:3,children:[]}]},{code:"5306",name:"昭通市",region_level:2,children:[{code:"530602",name:"昭阳区",region_level:3,children:[]},{code:"530621",name:"鲁甸县",region_level:3,children:[]},{code:"530622",name:"巧家县",region_level:3,children:[]},{code:"530623",name:"盐津县",region_level:3,children:[]},{code:"530624",name:"大关县",region_level:3,children:[]},{code:"530625",name:"永善县",region_level:3,children:[]},{code:"530626",name:"绥江县",region_level:3,children:[]},{code:"530627",name:"镇雄县",region_level:3,children:[]},{code:"530628",name:"彝良县",region_level:3,children:[]},{code:"530629",name:"威信县",region_level:3,children:[]},{code:"530681",name:"水富市",region_level:3,children:[]}]},{code:"5307",name:"丽江市",region_level:2,children:[{code:"530702",name:"古城区",region_level:3,children:[]},{code:"530721",name:"玉龙纳西族自治县",region_level:3,children:[]},{code:"530722",name:"永胜县",region_level:3,children:[]},{code:"530723",name:"华坪县",region_level:3,children:[]},{code:"530724",name:"宁蒗彝族自治县",region_level:3,children:[]}]},{code:"5308",name:"普洱市",region_level:2,children:[{code:"530802",name:"思茅区",region_level:3,children:[]},{code:"530821",name:"宁洱哈尼族彝族自治县",region_level:3,children:[]},{code:"530822",name:"墨江哈尼族自治县",region_level:3,children:[]},{code:"530823",name:"景东彝族自治县",region_level:3,children:[]},{code:"530824",name:"景谷傣族彝族自治县",region_level:3,children:[]},{code:"530825",name:"镇沅彝族哈尼族拉祜族自治县",region_level:3,children:[]},{code:"530826",name:"江城哈尼族彝族自治县",region_level:3,children:[]},{code:"530827",name:"孟连傣族拉祜族佤族自治县",region_level:3,children:[]},{code:"530828",name:"澜沧拉祜族自治县",region_level:3,children:[]},{code:"530829",name:"西盟佤族自治县",region_level:3,children:[]}]},{code:"5309",name:"临沧市",region_level:2,children:[{code:"530902",name:"临翔区",region_level:3,children:[]},{code:"530921",name:"凤庆县",region_level:3,children:[]},{code:"530922",name:"云县",region_level:3,children:[]},{code:"530923",name:"永德县",region_level:3,children:[]},{code:"530924",name:"镇康县",region_level:3,children:[]},{code:"530925",name:"双江拉祜族佤族布朗族傣族自治县",region_level:3,children:[]},{code:"530926",name:"耿马傣族佤族自治县",region_level:3,children:[]},{code:"530927",name:"沧源佤族自治县",region_level:3,children:[]}]},{code:"5323",name:"楚雄彝族自治州",region_level:2,children:[{code:"532301",name:"楚雄市",region_level:3,children:[]},{code:"532322",name:"双柏县",region_level:3,children:[]},{code:"532323",name:"牟定县",region_level:3,children:[]},{code:"532324",name:"南华县",region_level:3,children:[]},{code:"532325",name:"姚安县",region_level:3,children:[]},{code:"532326",name:"大姚县",region_level:3,children:[]},{code:"532327",name:"永仁县",region_level:3,children:[]},{code:"532328",name:"元谋县",region_level:3,children:[]},{code:"532329",name:"武定县",region_level:3,children:[]},{code:"532331",name:"禄丰县",region_level:3,children:[]}]},{code:"5325",name:"红河哈尼族彝族自治州",region_level:2,children:[{code:"532501",name:"个旧市",region_level:3,children:[]},{code:"532502",name:"开远市",region_level:3,children:[]},{code:"532503",name:"蒙自市",region_level:3,children:[]},{code:"532504",name:"弥勒市",region_level:3,children:[]},{code:"532523",name:"屏边苗族自治县",region_level:3,children:[]},{code:"532524",name:"建水县",region_level:3,children:[]},{code:"532525",name:"石屏县",region_level:3,children:[]},{code:"532527",name:"泸西县",region_level:3,children:[]},{code:"532528",name:"元阳县",region_level:3,children:[]},{code:"532529",name:"红河县",region_level:3,children:[]},{code:"532530",name:"金平苗族瑶族傣族自治县",region_level:3,children:[]},{code:"532531",name:"绿春县",region_level:3,children:[]},{code:"532532",name:"河口瑶族自治县",region_level:3,children:[]}]},{code:"5326",name:"文山壮族苗族自治州",region_level:2,children:[{code:"532601",name:"文山市",region_level:3,children:[]},{code:"532622",name:"砚山县",region_level:3,children:[]},{code:"532623",name:"西畴县",region_level:3,children:[]},{code:"532624",name:"麻栗坡县",region_level:3,children:[]},{code:"532625",name:"马关县",region_level:3,children:[]},{code:"532626",name:"丘北县",region_level:3,children:[]},{code:"532627",name:"广南县",region_level:3,children:[]},{code:"532628",name:"富宁县",region_level:3,children:[]}]},{code:"5328",name:"西双版纳傣族自治州",region_level:2,children:[{code:"532801",name:"景洪市",region_level:3,children:[]},{code:"532822",name:"勐海县",region_level:3,children:[]},{code:"532823",name:"勐腊县",region_level:3,children:[]}]},{code:"5329",name:"大理白族自治州",region_level:2,children:[{code:"532901",name:"大理市",region_level:3,children:[]},{code:"532922",name:"漾濞彝族自治县",region_level:3,children:[]},{code:"532923",name:"祥云县",region_level:3,children:[]},{code:"532924",name:"宾川县",region_level:3,children:[]},{code:"532925",name:"弥渡县",region_level:3,children:[]},{code:"532926",name:"南涧彝族自治县",region_level:3,children:[]},{code:"532927",name:"巍山彝族回族自治县",region_level:3,children:[]},{code:"532928",name:"永平县",region_level:3,children:[]},{code:"532929",name:"云龙县",region_level:3,children:[]},{code:"532930",name:"洱源县",region_level:3,children:[]},{code:"532931",name:"剑川县",region_level:3,children:[]},{code:"532932",name:"鹤庆县",region_level:3,children:[]}]},{code:"5331",name:"德宏傣族景颇族自治州",region_level:2,children:[{code:"533102",name:"瑞丽市",region_level:3,children:[]},{code:"533103",name:"芒市",region_level:3,children:[]},{code:"533122",name:"梁河县",region_level:3,children:[]},{code:"533123",name:"盈江县",region_level:3,children:[]},{code:"533124",name:"陇川县",region_level:3,children:[]}]},{code:"5333",name:"怒江傈僳族自治州",region_level:2,children:[{code:"533301",name:"泸水市",region_level:3,children:[]},{code:"533323",name:"福贡县",region_level:3,children:[]},{code:"533324",name:"贡山独龙族怒族自治县",region_level:3,children:[]},{code:"533325",name:"兰坪白族普米族自治县",region_level:3,children:[]}]},{code:"5334",name:"迪庆藏族自治州",region_level:2,children:[{code:"533401",name:"香格里拉市",region_level:3,children:[]},{code:"533422",name:"德钦县",region_level:3,children:[]},{code:"533423",name:"维西傈僳族自治县",region_level:3,children:[]}]}]},{code:"54",name:"西藏自治区",region_level:1,children:[{code:"5401",name:"拉萨市",region_level:2,children:[{code:"540102",name:"城关区",region_level:3,children:[]},{code:"540103",name:"堆龙德庆区",region_level:3,children:[]},{code:"540104",name:"达孜区",region_level:3,children:[]},{code:"540121",name:"林周县",region_level:3,children:[]},{code:"540122",name:"当雄县",region_level:3,children:[]},{code:"540123",name:"尼木县",region_level:3,children:[]},{code:"540124",name:"曲水县",region_level:3,children:[]},{code:"540127",name:"墨竹工卡县",region_level:3,children:[]}]},{code:"5402",name:"日喀则市",region_level:2,children:[{code:"540202",name:"桑珠孜区",region_level:3,children:[]},{code:"540221",name:"南木林县",region_level:3,children:[]},{code:"540222",name:"江孜县",region_level:3,children:[]},{code:"540223",name:"定日县",region_level:3,children:[]},{code:"540224",name:"萨迦县",region_level:3,children:[]},{code:"540225",name:"拉孜县",region_level:3,children:[]},{code:"540226",name:"昂仁县",region_level:3,children:[]},{code:"540227",name:"谢通门县",region_level:3,children:[]},{code:"540228",name:"白朗县",region_level:3,children:[]},{code:"540229",name:"仁布县",region_level:3,children:[]},{code:"540230",name:"康马县",region_level:3,children:[]},{code:"540231",name:"定结县",region_level:3,children:[]},{code:"540232",name:"仲巴县",region_level:3,children:[]},{code:"540233",name:"亚东县",region_level:3,children:[]},{code:"540234",name:"吉隆县",region_level:3,children:[]},{code:"540235",name:"聂拉木县",region_level:3,children:[]},{code:"540236",name:"萨嘎县",region_level:3,children:[]},{code:"540237",name:"岗巴县",region_level:3,children:[]}]},{code:"5403",name:"昌都市",region_level:2,children:[{code:"540302",name:"卡若区",region_level:3,children:[]},{code:"540321",name:"江达县",region_level:3,children:[]},{code:"540322",name:"贡觉县",region_level:3,children:[]},{code:"540323",name:"类乌齐县",region_level:3,children:[]},{code:"540324",name:"丁青县",region_level:3,children:[]},{code:"540325",name:"察雅县",region_level:3,children:[]},{code:"540326",name:"八宿县",region_level:3,children:[]},{code:"540327",name:"左贡县",region_level:3,children:[]},{code:"540328",name:"芒康县",region_level:3,children:[]},{code:"540329",name:"洛隆县",region_level:3,children:[]},{code:"540330",name:"边坝县",region_level:3,children:[]}]},{code:"5404",name:"林芝市",region_level:2,children:[{code:"540402",name:"巴宜区",region_level:3,children:[]},{code:"540421",name:"工布江达县",region_level:3,children:[]},{code:"540422",name:"米林县",region_level:3,children:[]},{code:"540423",name:"墨脱县",region_level:3,children:[]},{code:"540424",name:"波密县",region_level:3,children:[]},{code:"540425",name:"察隅县",region_level:3,children:[]},{code:"540426",name:"朗县",region_level:3,children:[]}]},{code:"5405",name:"山南市",region_level:2,children:[{code:"540502",name:"乃东区",region_level:3,children:[]},{code:"540521",name:"扎囊县",region_level:3,children:[]},{code:"540522",name:"贡嘎县",region_level:3,children:[]},{code:"540523",name:"桑日县",region_level:3,children:[]},{code:"540524",name:"琼结县",region_level:3,children:[]},{code:"540525",name:"曲松县",region_level:3,children:[]},{code:"540526",name:"措美县",region_level:3,children:[]},{code:"540527",name:"洛扎县",region_level:3,children:[]},{code:"540528",name:"加查县",region_level:3,children:[]},{code:"540529",name:"隆子县",region_level:3,children:[]},{code:"540530",name:"错那县",region_level:3,children:[]},{code:"540531",name:"浪卡子县",region_level:3,children:[]}]},{code:"5406",name:"那曲市",region_level:2,children:[{code:"540602",name:"色尼区",region_level:3,children:[]},{code:"540621",name:"嘉黎县",region_level:3,children:[]},{code:"540622",name:"比如县",region_level:3,children:[]},{code:"540623",name:"聂荣县",region_level:3,children:[]},{code:"540624",name:"安多县",region_level:3,children:[]},{code:"540625",name:"申扎县",region_level:3,children:[]},{code:"540626",name:"索县",region_level:3,children:[]},{code:"540627",name:"班戈县",region_level:3,children:[]},{code:"540628",name:"巴青县",region_level:3,children:[]},{code:"540629",name:"尼玛县",region_level:3,children:[]},{code:"540630",name:"双湖县",region_level:3,children:[]}]},{code:"5425",name:"阿里地区",region_level:2,children:[{code:"542521",name:"普兰县",region_level:3,children:[]},{code:"542522",name:"札达县",region_level:3,children:[]},{code:"542523",name:"噶尔县",region_level:3,children:[]},{code:"542524",name:"日土县",region_level:3,children:[]},{code:"542525",name:"革吉县",region_level:3,children:[]},{code:"542526",name:"改则县",region_level:3,children:[]},{code:"542527",name:"措勤县",region_level:3,children:[]}]}]},{code:"61",name:"陕西省",region_level:1,children:[{code:"6101",name:"西安市",region_level:2,children:[{code:"610102",name:"新城区",region_level:3,children:[]},{code:"610103",name:"碑林区",region_level:3,children:[]},{code:"610104",name:"莲湖区",region_level:3,children:[]},{code:"610111",name:"灞桥区",region_level:3,children:[]},{code:"610112",name:"未央区",region_level:3,children:[]},{code:"610113",name:"雁塔区",region_level:3,children:[]},{code:"610114",name:"阎良区",region_level:3,children:[]},{code:"610115",name:"临潼区",region_level:3,children:[]},{code:"610116",name:"长安区",region_level:3,children:[]},{code:"610117",name:"高陵区",region_level:3,children:[]},{code:"610118",name:"鄠邑区",region_level:3,children:[]},{code:"610122",name:"蓝田县",region_level:3,children:[]},{code:"610124",name:"周至县",region_level:3,children:[]}]},{code:"6102",name:"铜川市",region_level:2,children:[{code:"610202",name:"王益区",region_level:3,children:[]},{code:"610203",name:"印台区",region_level:3,children:[]},{code:"610204",name:"耀州区",region_level:3,children:[]},{code:"610222",name:"宜君县",region_level:3,children:[]}]},{code:"6103",name:"宝鸡市",region_level:2,children:[{code:"610302",name:"渭滨区",region_level:3,children:[]},{code:"610303",name:"金台区",region_level:3,children:[]},{code:"610304",name:"陈仓区",region_level:3,children:[]},{code:"610322",name:"凤翔县",region_level:3,children:[]},{code:"610323",name:"岐山县",region_level:3,children:[]},{code:"610324",name:"扶风县",region_level:3,children:[]},{code:"610326",name:"眉县",region_level:3,children:[]},{code:"610327",name:"陇县",region_level:3,children:[]},{code:"610328",name:"千阳县",region_level:3,children:[]},{code:"610329",name:"麟游县",region_level:3,children:[]},{code:"610330",name:"凤县",region_level:3,children:[]},{code:"610331",name:"太白县",region_level:3,children:[]}]},{code:"6104",name:"咸阳市",region_level:2,children:[{code:"610402",name:"秦都区",region_level:3,children:[]},{code:"610403",name:"杨陵区",region_level:3,children:[]},{code:"610404",name:"渭城区",region_level:3,children:[]},{code:"610422",name:"三原县",region_level:3,children:[]},{code:"610423",name:"泾阳县",region_level:3,children:[]},{code:"610424",name:"乾县",region_level:3,children:[]},{code:"610425",name:"礼泉县",region_level:3,children:[]},{code:"610426",name:"永寿县",region_level:3,children:[]},{code:"610428",name:"长武县",region_level:3,children:[]},{code:"610429",name:"旬邑县",region_level:3,children:[]},{code:"610430",name:"淳化县",region_level:3,children:[]},{code:"610431",name:"武功县",region_level:3,children:[]},{code:"610481",name:"兴平市",region_level:3,children:[]},{code:"610482",name:"彬州市",region_level:3,children:[]}]},{code:"6105",name:"渭南市",region_level:2,children:[{code:"610502",name:"临渭区",region_level:3,children:[]},{code:"610503",name:"华州区",region_level:3,children:[]},{code:"610522",name:"潼关县",region_level:3,children:[]},{code:"610523",name:"大荔县",region_level:3,children:[]},{code:"610524",name:"合阳县",region_level:3,children:[]},{code:"610525",name:"澄城县",region_level:3,children:[]},{code:"610526",name:"蒲城县",region_level:3,children:[]},{code:"610527",name:"白水县",region_level:3,children:[]},{code:"610528",name:"富平县",region_level:3,children:[]},{code:"610581",name:"韩城市",region_level:3,children:[]},{code:"610582",name:"华阴市",region_level:3,children:[]}]},{code:"6106",name:"延安市",region_level:2,children:[{code:"610602",name:"宝塔区",region_level:3,children:[]},{code:"610603",name:"安塞区",region_level:3,children:[]},{code:"610621",name:"延长县",region_level:3,children:[]},{code:"610622",name:"延川县",region_level:3,children:[]},{code:"610625",name:"志丹县",region_level:3,children:[]},{code:"610626",name:"吴起县",region_level:3,children:[]},{code:"610627",name:"甘泉县",region_level:3,children:[]},{code:"610628",name:"富县",region_level:3,children:[]},{code:"610629",name:"洛川县",region_level:3,children:[]},{code:"610630",name:"宜川县",region_level:3,children:[]},{code:"610631",name:"黄龙县",region_level:3,children:[]},{code:"610632",name:"黄陵县",region_level:3,children:[]},{code:"610681",name:"子长市",region_level:3,children:[]}]},{code:"6107",name:"汉中市",region_level:2,children:[{code:"610702",name:"汉台区",region_level:3,children:[]},{code:"610703",name:"南郑区",region_level:3,children:[]},{code:"610722",name:"城固县",region_level:3,children:[]},{code:"610723",name:"洋县",region_level:3,children:[]},{code:"610724",name:"西乡县",region_level:3,children:[]},{code:"610725",name:"勉县",region_level:3,children:[]},{code:"610726",name:"宁强县",region_level:3,children:[]},{code:"610727",name:"略阳县",region_level:3,children:[]},{code:"610728",name:"镇巴县",region_level:3,children:[]},{code:"610729",name:"留坝县",region_level:3,children:[]},{code:"610730",name:"佛坪县",region_level:3,children:[]}]},{code:"6108",name:"榆林市",region_level:2,children:[{code:"610802",name:"榆阳区",region_level:3,children:[]},{code:"610803",name:"横山区",region_level:3,children:[]},{code:"610822",name:"府谷县",region_level:3,children:[]},{code:"610824",name:"靖边县",region_level:3,children:[]},{code:"610825",name:"定边县",region_level:3,children:[]},{code:"610826",name:"绥德县",region_level:3,children:[]},{code:"610827",name:"米脂县",region_level:3,children:[]},{code:"610828",name:"佳县",region_level:3,children:[]},{code:"610829",name:"吴堡县",region_level:3,children:[]},{code:"610830",name:"清涧县",region_level:3,children:[]},{code:"610831",name:"子洲县",region_level:3,children:[]},{code:"610881",name:"神木市",region_level:3,children:[]}]},{code:"6109",name:"安康市",region_level:2,children:[{code:"610902",name:"汉滨区",region_level:3,children:[]},{code:"610921",name:"汉阴县",region_level:3,children:[]},{code:"610922",name:"石泉县",region_level:3,children:[]},{code:"610923",name:"宁陕县",region_level:3,children:[]},{code:"610924",name:"紫阳县",region_level:3,children:[]},{code:"610925",name:"岚皋县",region_level:3,children:[]},{code:"610926",name:"平利县",region_level:3,children:[]},{code:"610927",name:"镇坪县",region_level:3,children:[]},{code:"610928",name:"旬阳县",region_level:3,children:[]},{code:"610929",name:"白河县",region_level:3,children:[]}]},{code:"6110",name:"商洛市",region_level:2,children:[{code:"611002",name:"商州区",region_level:3,children:[]},{code:"611021",name:"洛南县",region_level:3,children:[]},{code:"611022",name:"丹凤县",region_level:3,children:[]},{code:"611023",name:"商南县",region_level:3,children:[]},{code:"611024",name:"山阳县",region_level:3,children:[]},{code:"611025",name:"镇安县",region_level:3,children:[]},{code:"611026",name:"柞水县",region_level:3,children:[]}]}]},{code:"62",name:"甘肃省",region_level:1,children:[{code:"6201",name:"兰州市",region_level:2,children:[{code:"620102",name:"城关区",region_level:3,children:[]},{code:"620103",name:"七里河区",region_level:3,children:[]},{code:"620104",name:"西固区",region_level:3,children:[]},{code:"620105",name:"安宁区",region_level:3,children:[]},{code:"620111",name:"红古区",region_level:3,children:[]},{code:"620121",name:"永登县",region_level:3,children:[]},{code:"620122",name:"皋兰县",region_level:3,children:[]},{code:"620123",name:"榆中县",region_level:3,children:[]}]},{code:"6202",name:"嘉峪关市",region_level:2,children:[{code:"620200",name:"嘉峪关市",region_level:3,children:[]}]},{code:"6203",name:"金昌市",region_level:2,children:[{code:"620302",name:"金川区",region_level:3,children:[]},{code:"620321",name:"永昌县",region_level:3,children:[]}]},{code:"6204",name:"白银市",region_level:2,children:[{code:"620402",name:"白银区",region_level:3,children:[]},{code:"620403",name:"平川区",region_level:3,children:[]},{code:"620421",name:"靖远县",region_level:3,children:[]},{code:"620422",name:"会宁县",region_level:3,children:[]},{code:"620423",name:"景泰县",region_level:3,children:[]}]},{code:"6205",name:"天水市",region_level:2,children:[{code:"620502",name:"秦州区",region_level:3,children:[]},{code:"620503",name:"麦积区",region_level:3,children:[]},{code:"620521",name:"清水县",region_level:3,children:[]},{code:"620522",name:"秦安县",region_level:3,children:[]},{code:"620523",name:"甘谷县",region_level:3,children:[]},{code:"620524",name:"武山县",region_level:3,children:[]},{code:"620525",name:"张家川回族自治县",region_level:3,children:[]}]},{code:"6206",name:"武威市",region_level:2,children:[{code:"620602",name:"凉州区",region_level:3,children:[]},{code:"620621",name:"民勤县",region_level:3,children:[]},{code:"620622",name:"古浪县",region_level:3,children:[]},{code:"620623",name:"天祝藏族自治县",region_level:3,children:[]}]},{code:"6207",name:"张掖市",region_level:2,children:[{code:"620702",name:"甘州区",region_level:3,children:[]},{code:"620721",name:"肃南裕固族自治县",region_level:3,children:[]},{code:"620722",name:"民乐县",region_level:3,children:[]},{code:"620723",name:"临泽县",region_level:3,children:[]},{code:"620724",name:"高台县",region_level:3,children:[]},{code:"620725",name:"山丹县",region_level:3,children:[]}]},{code:"6208",name:"平凉市",region_level:2,children:[{code:"620802",name:"崆峒区",region_level:3,children:[]},{code:"620821",name:"泾川县",region_level:3,children:[]},{code:"620822",name:"灵台县",region_level:3,children:[]},{code:"620823",name:"崇信县",region_level:3,children:[]},{code:"620825",name:"庄浪县",region_level:3,children:[]},{code:"620826",name:"静宁县",region_level:3,children:[]},{code:"620881",name:"华亭市",region_level:3,children:[]}]},{code:"6209",name:"酒泉市",region_level:2,children:[{code:"620902",name:"肃州区",region_level:3,children:[]},{code:"620921",name:"金塔县",region_level:3,children:[]},{code:"620922",name:"瓜州县",region_level:3,children:[]},{code:"620923",name:"肃北蒙古族自治县",region_level:3,children:[]},{code:"620924",name:"阿克塞哈萨克族自治县",region_level:3,children:[]},{code:"620981",name:"玉门市",region_level:3,children:[]},{code:"620982",name:"敦煌市",region_level:3,children:[]}]},{code:"6210",name:"庆阳市",region_level:2,children:[{code:"621002",name:"西峰区",region_level:3,children:[]},{code:"621021",name:"庆城县",region_level:3,children:[]},{code:"621022",name:"环县",region_level:3,children:[]},{code:"621023",name:"华池县",region_level:3,children:[]},{code:"621024",name:"合水县",region_level:3,children:[]},{code:"621025",name:"正宁县",region_level:3,children:[]},{code:"621026",name:"宁县",region_level:3,children:[]},{code:"621027",name:"镇原县",region_level:3,children:[]}]},{code:"6211",name:"定西市",region_level:2,children:[{code:"621102",name:"安定区",region_level:3,children:[]},{code:"621121",name:"通渭县",region_level:3,children:[]},{code:"621122",name:"陇西县",region_level:3,children:[]},{code:"621123",name:"渭源县",region_level:3,children:[]},{code:"621124",name:"临洮县",region_level:3,children:[]},{code:"621125",name:"漳县",region_level:3,children:[]},{code:"621126",name:"岷县",region_level:3,children:[]}]},{code:"6212",name:"陇南市",region_level:2,children:[{code:"621202",name:"武都区",region_level:3,children:[]},{code:"621221",name:"成县",region_level:3,children:[]},{code:"621222",name:"文县",region_level:3,children:[]},{code:"621223",name:"宕昌县",region_level:3,children:[]},{code:"621224",name:"康县",region_level:3,children:[]},{code:"621225",name:"西和县",region_level:3,children:[]},{code:"621226",name:"礼县",region_level:3,children:[]},{code:"621227",name:"徽县",region_level:3,children:[]},{code:"621228",name:"两当县",region_level:3,children:[]}]},{code:"6229",name:"临夏回族自治州",region_level:2,children:[{code:"622901",name:"临夏市",region_level:3,children:[]},{code:"622921",name:"临夏县",region_level:3,children:[]},{code:"622922",name:"康乐县",region_level:3,children:[]},{code:"622923",name:"永靖县",region_level:3,children:[]},{code:"622924",name:"广河县",region_level:3,children:[]},{code:"622925",name:"和政县",region_level:3,children:[]},{code:"622926",name:"东乡族自治县",region_level:3,children:[]},{code:"622927",name:"积石山保安族东乡族撒拉族自治县",region_level:3,children:[]}]},{code:"6230",name:"甘南藏族自治州",region_level:2,children:[{code:"623001",name:"合作市",region_level:3,children:[]},{code:"623021",name:"临潭县",region_level:3,children:[]},{code:"623022",name:"卓尼县",region_level:3,children:[]},{code:"623023",name:"舟曲县",region_level:3,children:[]},{code:"623024",name:"迭部县",region_level:3,children:[]},{code:"623025",name:"玛曲县",region_level:3,children:[]},{code:"623026",name:"碌曲县",region_level:3,children:[]},{code:"623027",name:"夏河县",region_level:3,children:[]}]}]},{code:"63",name:"青海省",region_level:1,children:[{code:"6301",name:"西宁市",region_level:2,children:[{code:"630102",name:"城东区",region_level:3,children:[]},{code:"630103",name:"城中区",region_level:3,children:[]},{code:"630104",name:"城西区",region_level:3,children:[]},{code:"630105",name:"城北区",region_level:3,children:[]},{code:"630106",name:"湟中区",region_level:3,children:[]},{code:"630121",name:"大通回族土族自治县",region_level:3,children:[]},{code:"630123",name:"湟源县",region_level:3,children:[]}]},{code:"6302",name:"海东市",region_level:2,children:[{code:"630202",name:"乐都区",region_level:3,children:[]},{code:"630203",name:"平安区",region_level:3,children:[]},{code:"630222",name:"民和回族土族自治县",region_level:3,children:[]},{code:"630223",name:"互助土族自治县",region_level:3,children:[]},{code:"630224",name:"化隆回族自治县",region_level:3,children:[]},{code:"630225",name:"循化撒拉族自治县",region_level:3,children:[]}]},{code:"6322",name:"海北藏族自治州",region_level:2,children:[{code:"632221",name:"门源回族自治县",region_level:3,children:[]},{code:"632222",name:"祁连县",region_level:3,children:[]},{code:"632223",name:"海晏县",region_level:3,children:[]},{code:"632224",name:"刚察县",region_level:3,children:[]}]},{code:"6323",name:"黄南藏族自治州",region_level:2,children:[{code:"632321",name:"同仁县",region_level:3,children:[]},{code:"632322",name:"尖扎县",region_level:3,children:[]},{code:"632323",name:"泽库县",region_level:3,children:[]},{code:"632324",name:"河南蒙古族自治县",region_level:3,children:[]}]},{code:"6325",name:"海南藏族自治州",region_level:2,children:[{code:"632521",name:"共和县",region_level:3,children:[]},{code:"632522",name:"同德县",region_level:3,children:[]},{code:"632523",name:"贵德县",region_level:3,children:[]},{code:"632524",name:"兴海县",region_level:3,children:[]},{code:"632525",name:"贵南县",region_level:3,children:[]}]},{code:"6326",name:"果洛藏族自治州",region_level:2,children:[{code:"632621",name:"玛沁县",region_level:3,children:[]},{code:"632622",name:"班玛县",region_level:3,children:[]},{code:"632623",name:"甘德县",region_level:3,children:[]},{code:"632624",name:"达日县",region_level:3,children:[]},{code:"632625",name:"久治县",region_level:3,children:[]},{code:"632626",name:"玛多县",region_level:3,children:[]}]},{code:"6327",name:"玉树藏族自治州",region_level:2,children:[{code:"632701",name:"玉树市",region_level:3,children:[]},{code:"632722",name:"杂多县",region_level:3,children:[]},{code:"632723",name:"称多县",region_level:3,children:[]},{code:"632724",name:"治多县",region_level:3,children:[]},{code:"632725",name:"囊谦县",region_level:3,children:[]},{code:"632726",name:"曲麻莱县",region_level:3,children:[]}]},{code:"6328",name:"海西蒙古族藏族自治州",region_level:2,children:[{code:"632801",name:"格尔木市",region_level:3,children:[]},{code:"632802",name:"德令哈市",region_level:3,children:[]},{code:"632803",name:"茫崖市",region_level:3,children:[]},{code:"632821",name:"乌兰县",region_level:3,children:[]},{code:"632822",name:"都兰县",region_level:3,children:[]},{code:"632823",name:"天峻县",region_level:3,children:[]}]}]},{code:"64",name:"宁夏回族自治区",region_level:1,children:[{code:"6401",name:"银川市",region_level:2,children:[{code:"640104",name:"兴庆区",region_level:3,children:[]},{code:"640105",name:"西夏区",region_level:3,children:[]},{code:"640106",name:"金凤区",region_level:3,children:[]},{code:"640121",name:"永宁县",region_level:3,children:[]},{code:"640122",name:"贺兰县",region_level:3,children:[]},{code:"640181",name:"灵武市",region_level:3,children:[]}]},{code:"6402",name:"石嘴山市",region_level:2,children:[{code:"640202",name:"大武口区",region_level:3,children:[]},{code:"640205",name:"惠农区",region_level:3,children:[]},{code:"640221",name:"平罗县",region_level:3,children:[]}]},{code:"6403",name:"吴忠市",region_level:2,children:[{code:"640302",name:"利通区",region_level:3,children:[]},{code:"640303",name:"红寺堡区",region_level:3,children:[]},{code:"640323",name:"盐池县",region_level:3,children:[]},{code:"640324",name:"同心县",region_level:3,children:[]},{code:"640381",name:"青铜峡市",region_level:3,children:[]}]},{code:"6404",name:"固原市",region_level:2,children:[{code:"640402",name:"原州区",region_level:3,children:[]},{code:"640422",name:"西吉县",region_level:3,children:[]},{code:"640423",name:"隆德县",region_level:3,children:[]},{code:"640424",name:"泾源县",region_level:3,children:[]},{code:"640425",name:"彭阳县",region_level:3,children:[]}]},{code:"6405",name:"中卫市",region_level:2,children:[{code:"640502",name:"沙坡头区",region_level:3,children:[]},{code:"640521",name:"中宁县",region_level:3,children:[]},{code:"640522",name:"海原县",region_level:3,children:[]}]}]},{code:"65",name:"新疆维吾尔自治区",region_level:1,children:[{code:"6501",name:"乌鲁木齐市",region_level:2,children:[{code:"650102",name:"天山区",region_level:3,children:[]},{code:"650103",name:"沙依巴克区",region_level:3,children:[]},{code:"650104",name:"新市区",region_level:3,children:[]},{code:"650105",name:"水磨沟区",region_level:3,children:[]},{code:"650106",name:"头屯河区",region_level:3,children:[]},{code:"650107",name:"达坂城区",region_level:3,children:[]},{code:"650109",name:"米东区",region_level:3,children:[]},{code:"650121",name:"乌鲁木齐县",region_level:3,children:[]}]},{code:"6502",name:"克拉玛依市",region_level:2,children:[{code:"650202",name:"独山子区",region_level:3,children:[]},{code:"650203",name:"克拉玛依区",region_level:3,children:[]},{code:"650204",name:"白碱滩区",region_level:3,children:[]},{code:"650205",name:"乌尔禾区",region_level:3,children:[]}]},{code:"6504",name:"吐鲁番市",region_level:2,children:[{code:"650402",name:"高昌区",region_level:3,children:[]},{code:"650421",name:"鄯善县",region_level:3,children:[]},{code:"650422",name:"托克逊县",region_level:3,children:[]}]},{code:"6505",name:"哈密市",region_level:2,children:[{code:"650502",name:"伊州区",region_level:3,children:[]},{code:"650521",name:"巴里坤哈萨克自治县",region_level:3,children:[]},{code:"650522",name:"伊吾县",region_level:3,children:[]}]},{code:"6523",name:"昌吉回族自治州",region_level:2,children:[{code:"652301",name:"昌吉市",region_level:3,children:[]},{code:"652302",name:"阜康市",region_level:3,children:[]},{code:"652323",name:"呼图壁县",region_level:3,children:[]},{code:"652324",name:"玛纳斯县",region_level:3,children:[]},{code:"652325",name:"奇台县",region_level:3,children:[]},{code:"652327",name:"吉木萨尔县",region_level:3,children:[]},{code:"652328",name:"木垒哈萨克自治县",region_level:3,children:[]}]},{code:"6527",name:"博尔塔拉蒙古自治州",region_level:2,children:[{code:"652701",name:"博乐市",region_level:3,children:[]},{code:"652702",name:"阿拉山口市",region_level:3,children:[]},{code:"652722",name:"精河县",region_level:3,children:[]},{code:"652723",name:"温泉县",region_level:3,children:[]}]},{code:"6528",name:"巴音郭楞蒙古自治州",region_level:2,children:[{code:"652801",name:"库尔勒市",region_level:3,children:[]},{code:"652822",name:"轮台县",region_level:3,children:[]},{code:"652823",name:"尉犁县",region_level:3,children:[]},{code:"652824",name:"若羌县",region_level:3,children:[]},{code:"652825",name:"且末县",region_level:3,children:[]},{code:"652826",name:"焉耆回族自治县",region_level:3,children:[]},{code:"652827",name:"和静县",region_level:3,children:[]},{code:"652828",name:"和硕县",region_level:3,children:[]},{code:"652829",name:"博湖县",region_level:3,children:[]}]},{code:"6529",name:"阿克苏地区",region_level:2,children:[{code:"652901",name:"阿克苏市",region_level:3,children:[]},{code:"652902",name:"库车市",region_level:3,children:[]},{code:"652922",name:"温宿县",region_level:3,children:[]},{code:"652924",name:"沙雅县",region_level:3,children:[]},{code:"652925",name:"新和县",region_level:3,children:[]},{code:"652926",name:"拜城县",region_level:3,children:[]},{code:"652927",name:"乌什县",region_level:3,children:[]},{code:"652928",name:"阿瓦提县",region_level:3,children:[]},{code:"652929",name:"柯坪县",region_level:3,children:[]}]},{code:"6530",name:"克孜勒苏柯尔克孜自治州",region_level:2,children:[{code:"653001",name:"阿图什市",region_level:3,children:[]},{code:"653022",name:"阿克陶县",region_level:3,children:[]},{code:"653023",name:"阿合奇县",region_level:3,children:[]},{code:"653024",name:"乌恰县",region_level:3,children:[]}]},{code:"6531",name:"喀什地区",region_level:2,children:[{code:"653101",name:"喀什市",region_level:3,children:[]},{code:"653121",name:"疏附县",region_level:3,children:[]},{code:"653122",name:"疏勒县",region_level:3,children:[]},{code:"653123",name:"英吉沙县",region_level:3,children:[]},{code:"653124",name:"泽普县",region_level:3,children:[]},{code:"653125",name:"莎车县",region_level:3,children:[]},{code:"653126",name:"叶城县",region_level:3,children:[]},{code:"653127",name:"麦盖提县",region_level:3,children:[]},{code:"653128",name:"岳普湖县",region_level:3,children:[]},{code:"653129",name:"伽师县",region_level:3,children:[]},{code:"653130",name:"巴楚县",region_level:3,children:[]},{code:"653131",name:"塔什库尔干塔吉克自治县",region_level:3,children:[]}]},{code:"6532",name:"和田地区",region_level:2,children:[{code:"653201",name:"和田市",region_level:3,children:[]},{code:"653221",name:"和田县",region_level:3,children:[]},{code:"653222",name:"墨玉县",region_level:3,children:[]},{code:"653223",name:"皮山县",region_level:3,children:[]},{code:"653224",name:"洛浦县",region_level:3,children:[]},{code:"653225",name:"策勒县",region_level:3,children:[]},{code:"653226",name:"于田县",region_level:3,children:[]},{code:"653227",name:"民丰县",region_level:3,children:[]}]},{code:"6540",name:"伊犁哈萨克自治州",region_level:2,children:[{code:"654002",name:"伊宁市",region_level:3,children:[]},{code:"654003",name:"奎屯市",region_level:3,children:[]},{code:"654004",name:"霍尔果斯市",region_level:3,children:[]},{code:"654021",name:"伊宁县",region_level:3,children:[]},{code:"654022",name:"察布查尔锡伯自治县",region_level:3,children:[]},{code:"654023",name:"霍城县",region_level:3,children:[]},{code:"654024",name:"巩留县",region_level:3,children:[]},{code:"654025",name:"新源县",region_level:3,children:[]},{code:"654026",name:"昭苏县",region_level:3,children:[]},{code:"654027",name:"特克斯县",region_level:3,children:[]},{code:"654028",name:"尼勒克县",region_level:3,children:[]}]},{code:"6542",name:"塔城地区",region_level:2,children:[{code:"654201",name:"塔城市",region_level:3,children:[]},{code:"654202",name:"乌苏市",region_level:3,children:[]},{code:"654221",name:"额敏县",region_level:3,children:[]},{code:"654223",name:"沙湾县",region_level:3,children:[]},{code:"654224",name:"托里县",region_level:3,children:[]},{code:"654225",name:"裕民县",region_level:3,children:[]},{code:"654226",name:"和布克赛尔蒙古自治县",region_level:3,children:[]}]},{code:"6543",name:"阿勒泰地区",region_level:2,children:[{code:"654301",name:"阿勒泰市",region_level:3,children:[]},{code:"654321",name:"布尔津县",region_level:3,children:[]},{code:"654322",name:"富蕴县",region_level:3,children:[]},{code:"654323",name:"福海县",region_level:3,children:[]},{code:"654324",name:"哈巴河县",region_level:3,children:[]},{code:"654325",name:"青河县",region_level:3,children:[]},{code:"654326",name:"吉木乃县",region_level:3,children:[]}]},{code:"6590",name:"自治区直辖县级行政区",region_level:2,children:[{code:"659001",name:"石河子市",region_level:3,children:[]},{code:"659002",name:"阿拉尔市",region_level:3,children:[]},{code:"659003",name:"图木舒克市",region_level:3,children:[]},{code:"659004",name:"五家渠市",region_level:3,children:[]},{code:"659005",name:"北屯市",region_level:3,children:[]},{code:"659006",name:"铁门关市",region_level:3,children:[]},{code:"659007",name:"双河市",region_level:3,children:[]},{code:"659008",name:"可克达拉市",region_level:3,children:[]},{code:"659009",name:"昆玉市",region_level:3,children:[]},{code:"659010",name:"胡杨河市",region_level:3,children:[]}]}]},{code:"71",name:"台湾省",region_level:1,children:[]},{code:"81",name:"香港特别行政区",region_level:1,children:[]},{code:"82",name:"澳门特别行政区",region_level:1,children:[]}]}];function Zc(){const t=async(i,a)=>{let l=String(i.code).padEnd(6,"0");const c=r(e.unref(tm)[0],l);i.series=[];const s=await n(`${l}${(c==null?void 0:c.region_level)!=3?"_full":""}`);Im.registerMap(l,s),i.geo.map=l;const d=i.dataset.source,f=[];((s==null?void 0:s.features)??[]).forEach(u=>{const m=(d.find(g=>g[i.dataShow.x]==u.properties.name)??{})[i.dataShow.y]??0,h=u.properties.center?[...u.properties.center,m]:u.properties.center,_={name:u.properties.name,value:h,code:u.properties.adcode,data:m};Number(m)<=0&&(_.symbolSize=0),f.push(_)}),i.series=[{type:"map",map:l,roam:!0,geoIndex:0,select:!1,data:f},{...i.style.style1,data:f},{...i.style.style2,data:f}],setTimeout(()=>{a&&a()})},n=async i=>{const a=`https://geo.datav.aliyun.com/areas_v3/bound/${i}.json`;return await fetch(a).then(c=>c.json())};function r(i,a){var l;if(String(i.code).padEnd(6,"0")==a)return i;for(let c=0;c<((l=i==null?void 0:i.children)==null?void 0:l.length);c+=1){const s=i.children[c],d=r(s,a);if(d)return d}return null}return{init:t,city:tm,mapConfig:{code:"100000",tooltip:{show:!0},dataShow:{x:"",y:""},custom:{prefix:"",suffix:"",toFixed:0},style:{style1:{name:"散点",type:"scatter",coordinateSystem:"geo",symbol:"circle",itemStyle:{color:"#05C3F9"}},style2:{name:"点",type:"scatter",coordinateSystem:"geo",symbol:"pin",symbolSize:20,itemStyle:{color:"#F62157"},label:{show:!0,formatter:i=>i.data.data||"",color:"#fff",fontSize:9},zlevel:6}},geo:{map:"",roam:!0,zoom:1.2,label:{show:!0,fontSize:12,color:"#000"},emphasis:{itemStyle:{areaColor:"#389BB7",borderColor:"#389BB7",borderWidth:0},label:{fontSize:14,color:"#fff"}}},visualMap:{show:!0,left:"left",top:"bottom",text:["高","低"],min:0,max:200,calculable:!0,seriesIndex:[0],inRange:{color:["#00467F","#A5CC82"]}},dataset:{},series:[]}}}function yt(){const{proxy:t}=e.getCurrentInstance(),{chartJsonFormat:n,chartJsonToStringFormat:r}=t.$globalUtils,o=e.ref({}),i=e.ref(""),a=e.ref(null),l=async(p,m,h)=>await new Promise(async _=>{var C,x;const g=Te(),v=JSON.parse(JSON.stringify(((C=e.unref(a))==null?void 0:C.params)??((x=g.getChartData)==null?void 0:x.params))),b=JSON.parse((v==null?void 0:v.groupArgsJson)??"[]"),y=JSON.parse((v==null?void 0:v.aggArgsJson)??"[]");if(m){const V=b.find(E=>E.comment==m);V&&(v.groupArgsJson=JSON.stringify([V]))}if(["2"].includes(p)&&h){const V=y.find(E=>E.showLabel==h);V&&(v.aggArgsJson=JSON.stringify([V]))}const w=await t.$baseHttp.post("/api/ace-data-center/model-indicators/debug",v);_(w.data.records)}),c=async(p,m,h)=>await new Promise(async _=>{let g=m;const v=Te();if(p){const b=await t.$baseHttp.get(`/api/ace-data-center/model-indicators-echarts/detail?id=${p}`);if(!b)return;h=n(b.data.echartsConfig),g=b.data.echartsType}i.value=g,setTimeout(async()=>{var b,y,w,C,x,V,E,$,B,R,T,k,O,N,D,z,I,M,P,F,G,H,X,J,U,W,Q,ne,re,Y,Z,_e,ae,se,oe,ve,ye,ue,Se,Ye,ot,nt,Pe,We,cn,dn,Lo,Fo;switch(g){case"1":{const{lineConfig:ct,customSeriesData:it,init:rt}=da();it.value=((b=e.unref(h))==null?void 0:b.customSeriesData)??{},o.value=h??n(r(ct)),delete o.value.legend.icon,e.unref(o).dataShow.x=((y=h==null?void 0:h.dataShow)==null?void 0:y.x)??((C=(w=v.getChartData)==null?void 0:w.x[0])==null?void 0:C.comment),e.unref(o).dataShow.y=(((x=e.unref(a))==null?void 0:x.y)??((V=v.getChartData)==null?void 0:V.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u(m))}break;case"2":{const{pieConfig:ct,customSeriesData:it,init:rt}=Xc();it.value=(h==null?void 0:h.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((E=h==null?void 0:h.dataShow)==null?void 0:E.x)??((B=($=v.getChartData)==null?void 0:$.x[0])==null?void 0:B.comment),e.unref(o).dataShow.y=((R=h==null?void 0:h.dataShow)==null?void 0:R.y)??((k=(T=v.getChartData)==null?void 0:T.y[0])==null?void 0:k.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x,e.unref(o).dataShow.y),rt(e.unref(o),()=>u(m))}break;case"3":{const{barConfig:ct,customSeriesData:it,init:rt}=Yc();it.value=(h==null?void 0:h.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((O=h==null?void 0:h.dataShow)==null?void 0:O.x)??((D=(N=v.getChartData)==null?void 0:N.x[0])==null?void 0:D.comment),e.unref(o).dataShow.y=(((z=e.unref(a))==null?void 0:z.y)??((I=v.getChartData)==null?void 0:I.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u(m))}break;case"4":{const{radarConfig:ct,customSeriesData:it,init:rt}=Kc();it.value=((M=e.unref(h))==null?void 0:M.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((P=h==null?void 0:h.dataShow)==null?void 0:P.x)??((G=(F=v.getChartData)==null?void 0:F.x[0])==null?void 0:G.comment),e.unref(o).dataShow.y=(((H=e.unref(a))==null?void 0:H.y)??((X=v.getChartData)==null?void 0:X.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u(m))}break;case"5":{const{barsLinesConfig:ct,customSeriesData:it,init:rt}=qc();it.value=((J=e.unref(h))==null?void 0:J.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((U=h==null?void 0:h.dataShow)==null?void 0:U.x)??((Q=(W=v.getChartData)==null?void 0:W.x[0])==null?void 0:Q.comment),e.unref(o).dataShow.y=(((ne=e.unref(a))==null?void 0:ne.y)??((re=v.getChartData)==null?void 0:re.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u(m))}break;case"6":{const{scatterCfg:ct,customSeriesData:it,init:rt}=Jc();it.value=((Y=e.unref(h))==null?void 0:Y.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((Z=h==null?void 0:h.dataShow)==null?void 0:Z.x)??((ae=(_e=v.getChartData)==null?void 0:_e.x[0])==null?void 0:ae.comment),e.unref(o).dataShow.y=(((se=e.unref(a))==null?void 0:se.y)??((oe=v.getChartData)==null?void 0:oe.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u(m))}break;case"7":{const{numberConfig:ct,customSeriesData:it,init:rt}=em();it.value=(h==null?void 0:h.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.y=(((ve=e.unref(a))==null?void 0:ve.y)??((ye=v.getChartData)==null?void 0:ye.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g),rt(e.unref(o),()=>u(m))}break;case"8":{const{customSeriesData:ct,tableConfig:it,init:rt}=sa();o.value=h??n(r(it)),ct.value=((ue=e.unref(h))==null?void 0:ue.customSeriesData)??{},e.unref(o).dataShow.y=[...(((Se=e.unref(a))==null?void 0:Se.x)??((Ye=v.getChartData)==null?void 0:Ye.x)).map(dt=>dt.comment),...(((ot=e.unref(a))==null?void 0:ot.y)??((nt=v.getChartData)==null?void 0:nt.y)).map(dt=>dt.showLabel)],e.unref(o).dataset.source=await l(g),rt(e.unref(o),()=>u(m))}break;case"9":const{mapConfig:fd,init:Ur}=Zc(),Jt=h??n(r(fd));Jt.series=[],Jt.dataShow.x=((Pe=h==null?void 0:h.dataShow)==null?void 0:Pe.x)??((cn=(We=v.getChartData)==null?void 0:We.x[0])==null?void 0:cn.comment),Jt.dataShow.y=((dn=h==null?void 0:h.dataShow)==null?void 0:dn.y)??((Fo=(Lo=v.getChartData)==null?void 0:Lo.y[0])==null?void 0:Fo.showLabel),Jt.dataset.source=await l(g,Jt.dataShow.x,Jt.dataShow.y),Ur(Jt,()=>{o.value=Jt,u(m)});break}_(o.value)},100)}),s=()=>{var p,m,h,_,g,v,b;switch(e.unref(i)){case"1":{const{customSeriesData:y,init:w}=da();y.value=((p=e.unref(o))==null?void 0:p.customSeriesData)??{},w(e.unref(o))}break;case"2":{const{customSeriesData:y,init:w}=Xc();y.value=((m=e.unref(o))==null?void 0:m.customSeriesData)??{},w(e.unref(o))}break;case"3":{const{customSeriesData:y,init:w}=Yc();y.value=((h=e.unref(o))==null?void 0:h.customSeriesData)??{},w(e.unref(o))}break;case"4":{const{customSeriesData:y,init:w}=Kc();y.value=((_=e.unref(o))==null?void 0:_.customSeriesData)??{},w(e.unref(o))}break;case"5":{const{customSeriesData:y,init:w}=qc();y.value=((g=e.unref(o))==null?void 0:g.customSeriesData)??{},w(e.unref(o))}break;case"6":{const{customSeriesData:y,init:w}=Jc();y.value=((v=e.unref(o))==null?void 0:v.customSeriesData)??{},w(e.unref(o))}break;case"7":{const{init:y}=em();y(e.unref(o))}break;case"8":{const{customSeriesData:y,init:w}=sa();y.value=((b=e.unref(o))==null?void 0:b.customSeriesData)??{},w(e.unref(o))}break}},d=async(p,m,h)=>{await new Promise(async _=>{var V;const g=Te(),{dynamicSearchFormat:v,dynamicSearchParams:b}=t.$globalHooks.useDynamicSearch();let y;y=await t.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${p}`);const w=JSON.parse(y.data.sortArgsJson??"{}"),C=Object.keys(e.unref(w)).map(E=>({field:E,type:w[E]=="ascending"?"asc":"desc"}));g.setChartData({x:JSON.parse(y.data.groupArgsJson),y:JSON.parse(y.data.aggArgsJson),params:{aggArgsJson:y.data.aggArgsJson,groupArgsJson:y.data.groupArgsJson,sortArgsJson:JSON.stringify(C),params:b(v(JSON.parse(h??((V=e.unref(y))==null?void 0:V.formConfJson)??"[]"))),pageSize:y.data.pageSize,modelIndicatorsId:y.data.id,modelId:y.data.modelId}});const x=y.data.echarts.find(E=>E.type==m);await c(x==null?void 0:x.code),_(x==null?void 0:x.code)})},f=p=>{const m=e.unref(o),h=e.unref(o).customSeriesData[p]??{};return((h==null?void 0:h.prefix)??"")+m.dataset.source.reduce((_,g)=>_+(g[p]?Number(g[p]):0),0).toFixed(h.toFixed??0)+(h.suffix??"")},u=p=>{if(p=="9"){o.value.tooltip.formatter=m=>{const h=o.value.custom;if(m&&m.data){const{name:_,data:g}=m.data;return`${_}: ${(h==null?void 0:h.prefix)??""}${Number(g).toFixed((h==null?void 0:h.toFixed)??0)}${(h==null?void 0:h.suffix)??""}`}},o.value.series[2].label.formatter=m=>{const h=o.value.custom,_=m.data.data;return _?`${(h==null?void 0:h.prefix)??""}${Number(_).toFixed((h==null?void 0:h.toFixed)??0)}${(h==null?void 0:h.suffix)??""}`:""};return}if(e.unref(o).tooltip){const m=o.value.custom;o.value.tooltip.valueFormatter=h=>`${(m==null?void 0:m.prefix)??""}${Number(h).toFixed(m==null?void 0:m.toFixed)}${(m==null?void 0:m.suffix)??""}`}e.unref(o).dataset.temp_source=JSON.parse(JSON.stringify(o.value.dataset.source))};return{option:o,chartDataParams:a,chartType:i,setChartData:l,formatChart:c,getModelIndicatorsData:d,changeChartSeries:s,setSingleValue:f}}const EE={key:1,class:"flex items-center justify-center w-full h-full"},kE=e.defineComponent({__name:"render",props:{config:{default:()=>({})}},setup(t){const n=t,{proxy:r}=e.getCurrentInstance(),o=Te(),{dynamicSearchFormat:i,dynamicSearchParams:a}=r.$globalHooks.useDynamicSearch(),{option:l,formatChart:c,chartDataParams:s}=yt();if(n.config.chartId&&n.config.indicatorsId){const{indicatorsId:f,chartType:u}=n.config;r.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${f}`).then(async p=>{const m=JSON.parse(p.data.sortArgsJson??"{}"),h=Object.keys(e.unref(m)).map(_=>({field:_,type:m[_]=="ascending"?"asc":"desc"}));s.value={x:JSON.parse(p.data.groupArgsJson),y:JSON.parse(p.data.aggArgsJson),params:{aggArgsJson:p.data.aggArgsJson,groupArgsJson:p.data.groupArgsJson,sortArgsJson:JSON.stringify(h),modelIndicatorsId:f,params:a(i(JSON.parse(p.data.formConfJson??"[]"))),pageSize:p.data.pageSize,modelId:p.data.modelId}},o.tempChartData[n.config.id]={params:s.value,customize:n.config.customize},o.setChartData(s.value),c("",u,{...n.config.customize,id:n.config.id})})}const d=e.computed(()=>Qh[n.config.type]);return(f,u)=>{var h,_;const p=e.resolveComponent("aceCustomChart"),m=e.resolveComponent("AppLoading");return n.config.chartId?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[((_=(h=e.unref(l))==null?void 0:h.dataset)==null?void 0:_.source.length)>0?(e.openBlock(),e.createBlock(p,{key:0,option:n.config.customize,chartType:n.config.chartType,maxHeight:n.config.h-10+"px"},null,8,["option","chartType","maxHeight"])):(e.openBlock(),e.createElementBlock("div",EE,[e.createVNode(m,{size:"80"})]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(d)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d)),{key:0,ref:"componentRef",config:n.config},null,8,["config"])):e.createCommentVNode("",!0)],64))}}}),QB="",nm=ke(kE,[["__scopeId","data-v-b05b523d"]]),NE=t=>(e.pushScopeId("data-v-283f83db"),t=t(),e.popScopeId(),t),$E=["id","onDblclick","onMousedown","onClick"],DE={key:0,class:"absolute flex items-center justify-center w-8 h-8 bg-blue-500 rounded-full -right-2 -top-2"},BE=[NE(()=>e.createElementVNode("i",{class:"text-base text-white ri-lock-line"},null,-1))],TE={key:1,class:"absolute ml-4 text-xs tool left-full whitespace-nowrap"},OE=["onClick"],IE={key:1,class:"absolute w-full h-full"},zE=e.defineComponent({__name:"main",setup(t){e.useCssVars(N=>({"157a88c2":e.unref(u)}));const{proxy:n}=e.getCurrentInstance(),{chartJsonFormat:r}=n.$globalUtils,o=Te(),i=e.computed(()=>o.stageWidth),a=e.computed(()=>o.stageHeight),l=document.body,c=e.ref(null),s=__("Shift"),d=e.computed(()=>o.targetsWidget.length===1?di(o.targetsWidget[0]):null),f=[{label:"置于顶层",clickFunc:N=>{N.z=o.getWidgetList.length,o.widgetConfg.list.filter(D=>D.id!=N.id).forEach((D,z)=>{D.z=o.getWidgetList.length-1-z}),o.sortWidgetList()}},{label:"置于底层",clickFunc:N=>{N.z=1,o.widgetConfg.list.filter(D=>D.id!=N.id).forEach((D,z)=>{D.z=o.getWidgetList.length-z}),o.sortWidgetList()}}],u=e.computed(()=>.8/o.getScale),p=()=>Array.prototype.slice.call(document.querySelectorAll(".drag-item"),0),m=(N,D)=>{if(Array.isArray(N)){if(N.length===0){o.setTargetWidget([]);return}o.setTargetWidget(N.filter(I=>I.className.indexOf("locked")==-1).map(I=>di(I)));return}const z=di(N);!z||o.targetsWidget.includes(z)||N.locked||(s.value===!0?o.setTargetWidget([...o.getTargetWidget.filter(I=>I.className.indexOf("locked")==-1),z]):o.setTargetWidget([z]),e.nextTick(()=>{D&&e.nextTick(()=>{var I;return(I=e.unref(c))==null?void 0:I.dragStart(D)})}))},h=N=>{const D=B(e.unref(d));D!=null&&D.locked&&N.stopDrag(),console.log("开始拖拽",N)},_=N=>{console.log("拖拽中",N),N.target.style.transform=N.transform;const[D,z]=N.translate;o.setSketchRuleLine([D],[z]);const I=B(e.unref(d));I&&(I.x=Math.floor(N.translate[0]),I.y=Math.floor(N.translate[1]))},g=N=>{console.log("拖拽结束",N),o.clearSketchRuleLine()},v=N=>{console.log("开始组拖拽",N)},b=N=>{console.log("组拖拽中",N),N.events.forEach(D=>{D.target.style.transform=D.transform})},y=N=>{console.log("组拖拽完毕",N),N.events.forEach(D=>{const z=B(D.target);!z||!D.lastEvent||(z.x=Math.floor(D.lastEvent.translate[0]),z.y=Math.floor(D.lastEvent.translate[1]))}),o.clearSketchRuleLine()},w=N=>{console.log("开始组修改大小",N)},C=N=>{console.log("组修改大小中",N),N.events.forEach(D=>{D.target.style.transform=D.drag.transform,D.target.style.width=`${D.width}px`,D.target.style.height=`${D.height}px`;const z=B(D.target);z&&(z.x=Math.floor(D.drag.translate[0]),z.y=Math.floor(D.drag.translate[1]),z.w=D.drag.width,z.h=D.drag.height)})},x=N=>{console.log("修改大小结束",N),o.clearSketchRuleLine()},V=N=>{const D=B(e.unref(d));D!=null&&D.locked&&N.stopDrag(),console.log("开始改变大小",N)},E=N=>{console.log("改变中",N),N.target.style.transform=N.drag.transform,N.target.style.width=`${N.width}px`,N.target.style.height=`${N.height}px`;const D=B(N.target);if(!D)return;D.x=Math.floor(N.drag.translate[0]),D.y=Math.floor(N.drag.translate[1]),D.w=N.drag.width,D.h=N.drag.height;const[z,I]=N.drag.translate;o.setSketchRuleLine([z],[I])};function $(N){console.log("改变结束",N),o.clearSketchRuleLine()}n.$baseEventBus.on("clear-stage",()=>{console.log("清空画布"),o.setWidgetList([]),o.setTargetWidget([]),o.clearSketchRuleLine()}),n.$baseEventBus.on("update-rect",()=>{var N,D;console.log("更新画布"),(N=c.value)==null||N.updateTarget(),(D=c.value)==null||D.updateRect()}),n.$baseEventBus.on("change-align",N=>{e.nextTick(()=>{var I;if(console.log("修改居中方式"),!o.targetsWidget.length)return;const D=c.value.getRect(),z=c.value.getMoveables();if(z.length<=1){const M={};N=="left"&&(M.x=0),N=="right"&&(M.x=e.unref(i)-D.width),N=="top"&&(M.y=0),N=="bottom"&&(M.y=e.unref(a)-D.height),N=="middle"&&(M.y=e.unref(a)/2-D.height/2),N=="center"&&(M.x=e.unref(i)/2-D.width/2),z[0].request("draggable",M,!0);const P=B(z[0].props.target);if(!P)return;Object.keys(M).forEach(F=>{P[F]=M[F]})}else switch(N){case"left":case"right":case"top":case"bottom":case"middle":case"center":{const M=Math.max.apply(Math,D.children.map(F=>F.top+F.height)),P=Math.max.apply(Math,D.children.map(F=>F.left+F.width));z.forEach((F,G)=>{const H={};N=="left"&&(H.x=D.left),N=="right"&&(H.x=P-D.children[G].width),N=="top"&&(H.y=D.top),N=="bottom"&&(H.y=M-D.children[G].height),N=="middle"&&(H.y=D.top+D.height/2-D.children[G].height/2),N=="center"&&(H.x=D.left+D.width/2-D.children[G].width/2),F.request("draggable",H,!0);const X=B(F.props.target);X&&Object.keys(H).forEach(J=>{X[J]=H[J]})}),o.clearSketchRuleLine()}break;case"verticalAround":case"levelAround":{const M=N=="verticalAround"?"top":"left",P=N=="verticalAround"?"height":"width";let F=D[M];const G=(D[P]-D.children.reduce((H,X)=>H+X[P],0))/(z.length-1);z.sort((H,X)=>H.state[M]-X.state[M]),z.forEach(H=>{const X=H.getRect(),J={};M=="top"&&(J.y=F),M=="left"&&(J.x=F),H.request("draggable",J,!0);const U=B(H.props.target);U&&(Object.keys(J).forEach(W=>{U[W]=J[W]}),F+=X[P]+G)}),o.clearSketchRuleLine()}break}(I=c.value)==null||I.updateRect()})});const B=N=>o.getWidgetList.find(D=>D.id==(N==null?void 0:N.id)),R=N=>{N.preventDefault(),N.stopPropagation();const D=N.dataTransfer.getData("dragComponent");if(D){let z=JSON.parse(D);z.chartId&&(z.customize=r(z.customize)),console.log(z);const{w:I,h:M}=z;let P=N.offsetX-I/2,F=N.offsetY-M/2;P<=0?P=0:P+I>=e.unref(i)&&(P=e.unref(i)-I),F<=0?F=0:F+M>=e.unref(a)&&(F=e.unref(a)-M),o.setWidgetList([{...z,x:P,y:F,z:o.getWidgetList.length+1},...o.getWidgetList])}},T=e.ref([]),k=()=>{const N=(z,I)=>{const M=m_(z,P=>{document.activeElement&&["INPUT"].includes(document.activeElement.tagName)||(P.preventDefault(),P.stopPropagation(),I(P))},{eventName:"keydown"});T.value.push(M)},D=z=>navigator.userAgent.toLowerCase().includes("macintosh")?z.metaKey:z.ctrlKey;N(["Backspace","Delete"],z=>{console.log("删除触发",z),o.targetsWidget.length&&o.delWidgetItem(o.getTargetWidget.map(I=>I.id))}),N(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],z=>{if(!o.targetsWidget.length)return;console.log("触发移动",z);let I=0,M=0;z.key=="ArrowLeft"&&(I=-2),z.key=="ArrowRight"&&(I=2),z.key=="ArrowUp"&&(M=-2),z.key=="ArrowDown"&&(M=2),z.shiftKey&&(I*=10,M*=10),e.nextTick(()=>{c.value.getMoveables().forEach(F=>{const G=B(F.props.target);!G||G.locked||(G.x+I<0?G.x=0:G.x+I>e.unref(i)-G.w?G.x=e.unref(i)-G.w:G.x+=I,G.y+M<0?G.y=0:G.y+M>e.unref(a)-G.h?G.y=e.unref(a)-G.h:G.y+=M)}),e.nextTick(()=>{var F;return(F=c.value)==null?void 0:F.updateRect()})})}),N(["c"],z=>{console.log("复制",z),D(z)&&o.getTargetWidget.length&&o.copyWidgetItem(o.getTargetWidget.map(I=>I.id))}),N(["v"],z=>{console.log("粘贴",z),D(z)&&o.getPasteWidget.length&&o.pasteWidgetItem()})},O=e.ref(null);return e.nextTick(()=>{k(),O.value=new vb({rootContainer:null,dragContainer:".render",selectableTargets:[".drag-item"],selectByClick:!0,selectFromInside:!0,continueSelect:!1,preventDefault:!0,toggleContinueSelect:null,keyContainer:window,hitRate:0}),e.unref(O).on("dragStart",N=>{o.setRightPannel(!1),console.log("开始全选拖拽",N)}),e.unref(O).on("dragEnd",N=>{console.log("全选拖拽结束",N)}),e.unref(O).on("select",N=>{console.log("选中结果",N),N.added.forEach(D=>{D.className.indexOf("loccked")||D.classList.add("selected")}),N.removed.forEach(D=>{D.classList.remove("selected")}),m(N.selected)}),e.unref(O).on("selectEnd",N=>{console.log("选中结束",N),m(N.selected)})}),e.onBeforeUnmount(()=>{T.value.forEach(N=>N()),e.unref(O)&&e.unref(O).destroy()}),(N,D)=>(e.openBlock(),e.createBlock(H_,null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:"relative w-full h-full",onDrop:D[1]||(D[1]=z=>R(z)),onDragover:D[2]||(D[2]=e.withModifiers(()=>{},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).getWidgetList,z=>{var I,M;return e.openBlock(),e.createElementBlock("div",{key:z.id,class:e.normalizeClass(["absolute",{"drag-item":!0,locked:z.locked,selected:e.unref(o).widgetHoverIds.includes(z.id),active:((I=e.unref(d))==null?void 0:I.id)==z.id}]),id:z.id,style:e.normalizeStyle(e.unref(cs)(z)),onDblclick:e.withModifiers(P=>z.locked=!z.locked,["stop"]),onMousedown:P=>m(z,P),onClick:e.withModifiers(P=>m(z,P),["stop"])},[e.unref(o).createLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[z.locked?(e.openBlock(),e.createElementBlock("div",DE,BE)):e.createCommentVNode("",!0),((M=e.unref(d))==null?void 0:M.id)==z.id&&!z.locked?(e.openBlock(),e.createElementBlock("div",TE,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,P=>e.createElementVNode("div",{key:z.label,onClick:e.withModifiers(F=>P.clickFunc(z),["stop"]),onDblclick:D[0]||(D[0]=e.withModifiers(()=>{},["prevent","stop"])),class:"flex items-center justify-center w-16 h-6 mb-2 text-white rounded-sm cursor-pointer bg-color-primary"},e.toDisplayString(P.label),41,OE)),64))])):e.createCommentVNode("",!0)],64)),z.type=="iframe"?(e.openBlock(),e.createElementBlock("div",IE)):e.createCommentVNode("",!0),e.createVNode(nm,{config:z},null,8,["config"])],46,$E)}),128)),e.createVNode(e.unref(rb),{rootContainer:e.unref(l),ref_key:"moveableRef",ref:c,origin:!1,stopPropagation:!0,target:e.unref(o).targetsWidget,draggable:!0,resizable:!0,scalable:!1,snappable:!0,maxSnapElementGuidelineDistance:100,maxSnapElementGapDistance:100,isDisplayInnerSnapDigit:!0,snapDirections:!0,elementSnapDirections:!0,elementGuidelines:p(),bounds:{left:0,top:0,bottom:0,right:0,position:"css"},onDragStart:h,onDrag:_,onDragEnd:g,onResizeStart:V,onResize:E,onResizeEnd:$,onDragGroupStart:v,onDragGroup:b,onDragGroupEnd:y,onResizeGroupStart:w,onResizeGroup:C,onResizeGroupEnd:x},null,8,["rootContainer","target","elementGuidelines"])],32)]),_:1}))}}),t6="",RE=ke(zE,[["__scopeId","data-v-283f83db"]]),kt=e.defineComponent({__name:"colorPicker",props:{modelValue:{default:""},showInput:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:n}){const r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=e.ref(r.modelValue=="transparent"?"":r.modelValue),l=n;return e.watch(a,c=>{l("update:modelValue",c||"transparent")}),(c,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c.showInput?(e.openBlock(),e.createBlock(e.unref(S.ElInput),{key:0,value:e.unref(a),class:"mr-1",style:{width:"80%"}},null,8,["value"])):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElColorPicker),{modelValue:e.unref(a),"onUpdate:modelValue":s[0]||(s[0]=d=>e.isRef(a)?a.value=d:null),predefine:e.unref(i),"show-alpha":""},null,8,["modelValue","predefine"])],64))}}),ME={class:"flex h-10 items-center p-2"},AE=e.createElementVNode("span",{class:"w-1 h-4 bg-color-primary mr-2"},null,-1),on=e.defineComponent({__name:"group",props:{title:{default:"标题"}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ME,[AE,e.createTextVNode(" "+e.toDisplayString(n.title),1)]),e.renderSlot(n.$slots,"default")],64))}}),Qc=t=>(e.pushScopeId("data-v-cece7aca"),t=t(),e.popScopeId(),t),LE={class:"flex items-center"},FE=Qc(()=>e.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1)),jE=["src"],PE={key:1,class:"pt-4 pb-4"},UE=[Qc(()=>e.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),Qc(()=>e.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1))],WE=e.defineComponent({__name:"stageSetting",setup(t){const n=Te(),{proxy:r}=e.getCurrentInstance(),{resetUrl:o}=r.$globalUtils,i=async a=>{const l=new FormData;l.append("file",a.file);const c=await r.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",l,{headers:{"Content-Type":"multipart/form-data",loading:!0}});c&&(n.widgetConfg.config.backgroundImage=c.data.link)};return(a,l)=>(e.openBlock(),e.createBlock(e.unref(S.ElForm),{"label-position":"left",size:"small","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(on,{title:"整体布局"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"尺寸"},{default:e.withCtx(()=>[e.createElementVNode("div",LE,[e.createVNode(e.unref(S.ElInputNumber),{"model-value":e.unref(n).stageWidth,onChange:e.unref(n).setStageWidth,size:"small",min:0,"value-on-clear":1920},null,8,["model-value","onChange"]),FE,e.createVNode(e.unref(S.ElInputNumber),{"model-value":e.unref(n).stageHeight,onChange:e.unref(n).setStageHeight,size:"small",min:0,"value-on-clear":1080},null,8,["model-value","onChange"])])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"背景图"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElUpload),{drag:"",limit:1,"http-request":i,"show-file-list":!1,accept:"image/*"},{default:e.withCtx(()=>[e.unref(n).widgetConfg.config.backgroundImage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("img",{class:"object-contain max-h-40",src:e.unref(o)(e.unref(n).widgetConfg.config.backgroundImage)},null,8,jE),e.createElementVNode("i",{class:"absolute text-xl ri-close-circle-line right-4 top-4",onClick:l[0]||(l[0]=e.withModifiers(c=>e.unref(n).widgetConfg.config.backgroundImage=null,["stop"]))})],64)):(e.openBlock(),e.createElementBlock("div",PE,UE))]),_:1})]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).widgetConfg.config.backgroundColor,"onUpdate:modelValue":l[1]||(l[1]=c=>e.unref(n).widgetConfg.config.backgroundColor=c)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),o6="",GE=ke(WE,[["__scopeId","data-v-cece7aca"]]),an=e.defineComponent({__name:"decorationSetting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>e.unref(n)?(e.openBlock(),e.createBlock(on,{key:0,title:"基础"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"主颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.decorationColor1,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).customize.decorationColor1=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"副颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.decorationColor2,"onUpdate:modelValue":o[1]||(o[1]=i=>e.unref(n).customize.decorationColor2=i)},null,8,["modelValue"])]),_:1}),Object.keys(e.unref(n).customize).includes("reverse")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:0,label:"是否反转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(n).customize.reverse,"onUpdate:modelValue":o[2]||(o[2]=i=>e.unref(n).customize.reverse=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(n).customize).includes("duration")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:1,label:"动画时长"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(n).customize.duration,"onUpdate:modelValue":o[3]||(o[3]=i=>e.unref(n).customize.duration=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)}}),Ce=e.defineComponent({__name:"setting",setup(t){const{proxy:n}=e.getCurrentInstance(),r=e.inject("widgetConfig");return(o,i)=>e.unref(r)?(e.openBlock(),e.createBlock(e.unref(S.ElForm),{key:0,"label-position":"left",size:"small","label-width":"100px",class:"design-form"},{default:e.withCtx(()=>[e.createVNode(on,{title:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(r).name,"onUpdate:modelValue":i[0]||(i[0]=a=>e.unref(r).name=a)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(on,{title:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).w,"onUpdate:modelValue":i[1]||(i[1]=a=>e.unref(r).w=a),onBlur:i[2]||(i[2]=a=>e.unref(n).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).h,"onUpdate:modelValue":i[3]||(i[3]=a=>e.unref(r).h=a),onBlur:i[4]||(i[4]=a=>e.unref(n).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"x轴坐标"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).x,"onUpdate:modelValue":i[5]||(i[5]=a=>e.unref(r).x=a),onBlur:i[6]||(i[6]=a=>e.unref(n).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"y轴坐标"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).y,"onUpdate:modelValue":i[7]||(i[7]=a=>e.unref(r).y=a),onBlur:i[8]||(i[8]=a=>e.unref(n).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1})]),_:1}),e.renderSlot(o.$slots,"default")]),_:3})):e.createCommentVNode("",!0)}}),HE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),YE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),XE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),qE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),JE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),KE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ZE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),QE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ek=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),tk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),nk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Ft=e.defineComponent({__name:"borderSetting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>e.unref(n)?(e.openBlock(),e.createBlock(on,{key:0,title:"基础"},{default:e.withCtx(()=>[Object.keys(e.unref(n).customize).includes("title")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:0,label:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(n).customize.title,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).customize.title=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(n).customize).includes("titleWidth")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:1,label:"标题宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(n).customize.titleWidth,"onUpdate:modelValue":o[1]||(o[1]=i=>e.unref(n).customize.titleWidth=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElFormItem),{label:"边框主颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.borderMainColor,"onUpdate:modelValue":o[2]||(o[2]=i=>e.unref(n).customize.borderMainColor=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"边框副颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.borderSecondaryColor,"onUpdate:modelValue":o[3]||(o[3]=i=>e.unref(n).customize.borderSecondaryColor=i)},null,8,["modelValue"])]),_:1}),Object.keys(e.unref(n).customize).includes("reverse")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:2,label:"是否反转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(n).customize.reverse,"onUpdate:modelValue":o[4]||(o[4]=i=>e.unref(n).customize.reverse=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(n).customize).includes("duration")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:3,label:"动画时长"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(n).customize.duration,"onUpdate:modelValue":o[5]||(o[5]=i=>e.unref(n).customize.duration=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElFormItem),{label:"背景"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.backgroundColor,"onUpdate:modelValue":o[6]||(o[6]=i=>e.unref(n).customize.backgroundColor=i)},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),rk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ok=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ik=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ak=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),lk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ck=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),dk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),sk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),fk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),uk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),pk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),hk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),mk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),gk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>{const i=e.resolveComponent("el-form-item"),a=e.resolveComponent("el-input-number");return e.unref(n)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(i,{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor0,"onUpdate:modelValue":o[0]||(o[0]=l=>e.unref(n).customize.gradientColor0=l)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor1,"onUpdate:modelValue":o[1]||(o[1]=l=>e.unref(n).customize.gradientColor1=l)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).customize.width,"onUpdate:modelValue":o[2]||(o[2]=l=>e.unref(n).customize.width=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),_k=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>e.unref(n)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"地址配置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(n).customize.url,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).customize.url=i)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),rm=t=>(e.pushScopeId("data-v-ba7d8f9c"),t=t(),e.popScopeId(),t),vk={class:"p-3"},yk=["src"],bk={key:1,class:"pt-4 pb-4"},wk=[rm(()=>e.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),rm(()=>e.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1))],Ck=e.defineComponent({__name:"setting",setup(t){const n=[{label:"压缩",value:"fill"},{label:"填充",value:"cover"},{label:"自适应",value:"contain"},{label:"原始大小",value:"none"},{label:"展示最小",value:"scale-down"}],{proxy:r}=e.getCurrentInstance(),{resetUrl:o}=r.$globalUtils,i=e.inject("widgetConfig"),a=async l=>{const c=new FormData;c.append("file",l.file);const s=await r.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",c,{headers:{"Content-Type":"multipart/form-data",loading:!0}});s&&(i.value.customize.url=s.data.link)};return(l,c)=>e.unref(i)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"图片配置"},{default:e.withCtx(()=>[e.createElementVNode("div",vk,[e.createVNode(e.unref(S.ElUpload),{drag:"",limit:1,"http-request":a,"show-file-list":!1,accept:"image/*"},{default:e.withCtx(()=>[e.unref(i).customize.url?(e.openBlock(),e.createElementBlock("img",{key:0,class:"max-h-40",src:e.unref(o)(e.unref(i).customize.url)},null,8,yk)):(e.openBlock(),e.createElementBlock("div",bk,wk))]),_:1})]),e.createVNode(e.unref(S.ElFormItem),{label:"地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(i).customize.url,"onUpdate:modelValue":c[0]||(c[0]=s=>e.unref(i).customize.url=s)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"展示方式"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(i).customize.fit,"onUpdate:modelValue":c[1]||(c[1]=s=>e.unref(i).customize.fit=s)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,s=>e.createVNode(e.unref(S.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),O6="",Sk=Object.freeze(Object.defineProperty({__proto__:null,default:ke(Ck,[["__scopeId","data-v-ba7d8f9c"]])},Symbol.toStringTag,{value:"Module"})),xk=e.createElementVNode("i",{class:"ri-arrow-right-fill ml-2 mr-2"},null,-1),ed=e.defineComponent({__name:"text",setup(t){const n=[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],r=e.inject("widgetConfig");return(o,i)=>e.unref(r)?(e.openBlock(),e.createBlock(on,{key:0,title:"文本"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"文本"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(r).customize.title,"onUpdate:modelValue":i[0]||(i[0]=a=>e.unref(r).customize.title=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(r).customize.fontSize,"onUpdate:modelValue":i[1]||(i[1]=a=>e.unref(r).customize.fontSize=a)},{suffix:e.withCtx(()=>[e.createTextVNode("px")]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字权重"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(r).customize.fontWeight,"onUpdate:modelValue":i[2]||(i[2]=a=>e.unref(r).customize.fontWeight=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字间距"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).customize.letterSpacing,"onUpdate:modelValue":i[3]||(i[3]=a=>e.unref(r).customize.letterSpacing=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字对齐方式"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(r).customize.textAlign,"onUpdate:modelValue":i[4]||(i[4]=a=>e.unref(r).customize.textAlign=a)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,a=>e.createVNode(e.unref(S.ElOption),{key:a.value,label:a.label,value:a.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字渐变方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(r).customize.colorPosition,"onUpdate:modelValue":i[5]||(i[5]=a=>e.unref(r).customize.colorPosition=a)},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadio),{value:"top",label:"top"},{default:e.withCtx(()=>[e.createTextVNode("上下")]),_:1}),e.createVNode(e.unref(S.ElRadio),{value:"left",label:"left"},{default:e.withCtx(()=>[e.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字渐变颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(r).customize.startColor,"onUpdate:modelValue":i[6]||(i[6]=a=>e.unref(r).customize.startColor=a),showInput:!1},null,8,["modelValue"]),xk,e.createVNode(kt,{modelValue:e.unref(r).customize.endColor,"onUpdate:modelValue":i[7]||(i[7]=a=>e.unref(r).customize.endColor=a),showInput:!1},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),Vk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(ed)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Ek=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>e.unref(n)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"渐变方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(n).customize.colorPosition,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).customize.colorPosition=i)},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadio),{value:"bottom",label:"bottom"},{default:e.withCtx(()=>[e.createTextVNode("上下")]),_:1}),e.createVNode(e.unref(S.ElRadio),{value:"right",label:"right"},{default:e.withCtx(()=>[e.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"边角宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(n).customize.borderRadius,"onUpdate:modelValue":o[1]||(o[1]=i=>e.unref(n).customize.borderRadius=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor0,"onUpdate:modelValue":o[2]||(o[2]=i=>e.unref(n).customize.gradientColor0=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor1,"onUpdate:modelValue":o[3]||(o[3]=i=>e.unref(n).customize.gradientColor1=i)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),kk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(ed)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Nk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(ed)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),$k=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>{const i=e.resolveComponent("el-form-item"),a=e.resolveComponent("el-input-number");return e.unref(n)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(i,{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor0,"onUpdate:modelValue":o[0]||(o[0]=l=>e.unref(n).customize.gradientColor0=l)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor1,"onUpdate:modelValue":o[1]||(o[1]=l=>e.unref(n).customize.gradientColor1=l)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).customize.height,"onUpdate:modelValue":o[2]||(o[2]=l=>e.unref(n).customize.height=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),ln={lengendX:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],lengendY:[{label:"靠上",value:"top"},{label:"居中",value:"center"},{label:"靠下",value:"bottom"}],orient:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],shape:[{label:"圆形",value:"circle"},{label:"方形",value:"rect"},{label:"圆角方形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"钢笔形",value:"pin"},{label:"箭头形",value:"arrow"}],xposition:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"}],yposition:[{label:"左侧",value:"left"},{label:"右侧",value:"right"}],lineStyle:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],category:[{label:"数据轴",value:"value"},{label:"类目轴",value:"category"}]},Dk={class:"flex w-full flex-col justify-start"},Bk={key:0,class:"w-16 font-bold flex items-center"},Tk=e.createElementVNode("span",{class:"bg-color-primary mr-2 w-1 h-4"},null,-1),Ok={class:"flex-1 flex-wrap flex"},Ik=e.createElementVNode("div",{class:"h-4"},null,-1),de=e.defineComponent({__name:"setting-item-box",props:{name:{default:""}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Dk,[n.name?(e.openBlock(),e.createElementBlock("div",Bk,[Tk,e.createTextVNode(" "+e.toDisplayString(n.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ok,[e.renderSlot(n.$slots,"default")])]),Ik],64))}}),zk={class:"w-1/2 pr-2 mt-2"},Rk={class:"text-xs mb-2"},j=e.defineComponent({__name:"setting-item",props:{name:{default:""}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",zk,[e.createElementVNode("div",Rk,e.toDisplayString(n.name),1),e.renderSlot(n.$slots,"default")]))}}),Mk=e.defineComponent({__name:"setting-common",props:{option:{default:{}},type:{default:0}},setup(t){const n=t,{proxy:r}=e.getCurrentInstance(),o=r.$globalPreColor,i=[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}];return e.watch(()=>n.option.custom,a=>{n.option.yAxis&&(n.option.yAxis.axisLabel.formatter=`${a.prefix??""}{value}${a.suffix??""}`)},{deep:!0}),e.watch(()=>n.option.showScroll,a=>{if(a)n.option.dataZoom=[{type:"slider",backgroundColor:"#eef8fd",fillerColor:"#14b1f8",borderColor:"#eef8fd",startValue:0,endValue:5,filterMode:"",showDetail:!1,width:"90%",height:10,handleSize:30,left:"5%",bottom:15},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0}];else{const l=n.option.series;n.option.series=[],n.option.direction="",setTimeout(()=>{delete n.option.dataZoom,n.option.series=l})}}),e.watch(()=>n.option.direction,a=>{n.option.dataZoom.forEach((l,c)=>{a=="vertical"?l.yAxisIndex=[0]:delete l.yAxisIndex})}),(a,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.option.grid?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:0,title:"容器"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"左侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.grid.left,"onUpdate:modelValue":l[0]||(l[0]=c=>a.option.grid.left=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"右侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.grid.right,"onUpdate:modelValue":l[1]||(l[1]=c=>a.option.grid.right=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"上侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.grid.top,"onUpdate:modelValue":l[2]||(l[2]=c=>a.option.grid.top=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"下侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.grid.bottom,"onUpdate:modelValue":l[3]||(l[3]=c=>a.option.grid.bottom=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"自适应"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.grid.containLabel,"onUpdate:modelValue":l[4]||(l[4]=c=>a.option.grid.containLabel=c)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),[1,3,5].includes(a.type)?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:1,title:"滚动条"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.showScroll,"onUpdate:modelValue":l[5]||(l[5]=c=>a.option.showScroll=c)},null,8,["modelValue"])]),_:1})]),_:1}),a.option.showScroll?(e.openBlock(),e.createBlock(de,{key:0,name:"参数"},{default:e.withCtx(()=>[e.createVNode(j,{name:"滚动条方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.direction,"onUpdate:modelValue":l[6]||(l[6]=c=>a.option.direction=c),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,c=>e.createVNode(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"范围结束值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.dataZoom[0].endValue,"onUpdate:modelValue":l[7]||(l[7]=c=>a.option.dataZoom[0].endValue=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"拖拽宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].handleSize,"onUpdate:modelValue":l[8]||(l[8]=c=>a.option.dataZoom[0].handleSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].width,"onUpdate:modelValue":l[9]||(l[9]=c=>a.option.dataZoom[0].width=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].height,"onUpdate:modelValue":l[10]||(l[10]=c=>a.option.dataZoom[0].height=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"上"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].top,"onUpdate:modelValue":l[11]||(l[11]=c=>a.option.dataZoom[0].top=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"右"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].right,"onUpdate:modelValue":l[12]||(l[12]=c=>a.option.dataZoom[0].right=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"下"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].bottom,"onUpdate:modelValue":l[13]||(l[13]=c=>a.option.dataZoom[0].bottom=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"左"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].left,"onUpdate:modelValue":l[14]||(l[14]=c=>a.option.dataZoom[0].left=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.dataZoom[0].backgroundColor,"onUpdate:modelValue":l[15]||(l[15]=c=>a.option.dataZoom[0].backgroundColor=c)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"选中范围颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.dataZoom[0].fillerColor,"onUpdate:modelValue":l[16]||(l[16]=c=>a.option.dataZoom[0].fillerColor=c)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"边框颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.dataZoom[0].borderColor,"onUpdate:modelValue":l[17]||(l[17]=c=>a.option.dataZoom[0].borderColor=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),a.option.legend?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:2,title:"图例"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.legend.show,"onUpdate:modelValue":l[18]||(l[18]=c=>a.option.legend.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.legend.textStyle.color,"onUpdate:modelValue":l[19]||(l[19]=c=>a.option.legend.textStyle.color=c)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.legend.textStyle.fontSize,"onUpdate:modelValue":l[20]||(l[20]=c=>a.option.legend.textStyle.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"x轴"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.legend.x,"onUpdate:modelValue":l[21]||(l[21]=c=>a.option.legend.x=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).lengendX,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"y轴"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.legend.y,"onUpdate:modelValue":l[22]||(l[22]=c=>a.option.legend.y=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).lengendY,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.legend.orient,"onUpdate:modelValue":l[23]||(l[23]=c=>a.option.legend.orient=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).orient,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a.option.legend.icon?(e.openBlock(),e.createBlock(j,{key:0,name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.legend.icon,"onUpdate:modelValue":l[24]||(l[24]=c=>a.option.legend.icon=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).shape,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(j,{name:"宽"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.legend.itemWidth,"onUpdate:modelValue":l[25]||(l[25]=c=>a.option.legend.itemWidth=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"高"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.legend.itemHeight,"onUpdate:modelValue":l[26]||(l[26]=c=>a.option.legend.itemHeight=c),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),a.option.xAxis?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:3,title:"x轴"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.xAxis.show,"onUpdate:modelValue":l[27]||(l[27]=c=>a.option.xAxis.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.xAxis.type,"onUpdate:modelValue":l[28]||(l[28]=c=>a.option.xAxis.type=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).category,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最小值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:a.option.xAxis.min,"onUpdate:modelValue":l[29]||(l[29]=c=>a.option.xAxis.min=c),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最大值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:a.option.xAxis.max,"onUpdate:modelValue":l[30]||(l[30]=c=>a.option.xAxis.max=c),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.xAxis.position,"onUpdate:modelValue":l[31]||(l[31]=c=>a.option.xAxis.position=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).xposition,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"反向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.xAxis.inverse,"onUpdate:modelValue":l[32]||(l[32]=c=>a.option.xAxis.inverse=c)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.axisLabel.fontSize,"onUpdate:modelValue":l[33]||(l[33]=c=>a.option.xAxis.axisLabel.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"间隔"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.axisLabel.interval,"onUpdate:modelValue":l[34]||(l[34]=c=>a.option.xAxis.axisLabel.interval=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.axisLabel.rotate,"onUpdate:modelValue":l[35]||(l[35]=c=>a.option.xAxis.axisLabel.rotate=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.xAxis.axisLabel.color,"onUpdate:modelValue":l[36]||(l[36]=c=>a.option.xAxis.axisLabel.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"单位"},{default:e.withCtx(()=>[e.createVNode(j,{name:"名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.xAxis.name,"onUpdate:modelValue":l[37]||(l[37]=c=>a.option.xAxis.name=c),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.nameTextStyle.fontSize,"onUpdate:modelValue":l[38]||(l[38]=c=>a.option.xAxis.nameTextStyle.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.xAxis.nameTextStyle.color,"onUpdate:modelValue":l[39]||(l[39]=c=>a.option.xAxis.nameTextStyle.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.xAxis.splitLine.show,"onUpdate:modelValue":l[40]||(l[40]=c=>a.option.xAxis.splitLine.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"粗细"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.splitLine.lineStyle.width,"onUpdate:modelValue":l[41]||(l[41]=c=>a.option.xAxis.splitLine.lineStyle.width=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.xAxis.splitLine.lineStyle.type,"onUpdate:modelValue":l[42]||(l[42]=c=>a.option.xAxis.splitLine.lineStyle.type=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).lineStyle,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.xAxis.splitLine.lineStyle.color,"onUpdate:modelValue":l[43]||(l[43]=c=>a.option.xAxis.splitLine.lineStyle.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),a.option.yAxis?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:4,title:"y轴"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.yAxis.show,"onUpdate:modelValue":l[44]||(l[44]=c=>a.option.yAxis.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.yAxis.type,"onUpdate:modelValue":l[45]||(l[45]=c=>a.option.yAxis.type=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).category,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最小值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:a.option.yAxis.min,"onUpdate:modelValue":l[46]||(l[46]=c=>a.option.yAxis.min=c),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最大值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:a.option.yAxis.max,"onUpdate:modelValue":l[47]||(l[47]=c=>a.option.yAxis.max=c),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.yAxis.position,"onUpdate:modelValue":l[48]||(l[48]=c=>a.option.yAxis.position=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).yposition,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"反向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.yAxis.inverse,"onUpdate:modelValue":l[49]||(l[49]=c=>a.option.yAxis.inverse=c)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.axisLabel.fontSize,"onUpdate:modelValue":l[50]||(l[50]=c=>a.option.yAxis.axisLabel.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"间隔"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.axisLabel.interval,"onUpdate:modelValue":l[51]||(l[51]=c=>a.option.yAxis.axisLabel.interval=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.axisLabel.rotate,"onUpdate:modelValue":l[52]||(l[52]=c=>a.option.yAxis.axisLabel.rotate=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.yAxis.axisLabel.color,"onUpdate:modelValue":l[53]||(l[53]=c=>a.option.yAxis.axisLabel.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"单位"},{default:e.withCtx(()=>[e.createVNode(j,{name:"名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.yAxis.name,"onUpdate:modelValue":l[54]||(l[54]=c=>a.option.yAxis.name=c),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.nameTextStyle.fontSize,"onUpdate:modelValue":l[55]||(l[55]=c=>a.option.yAxis.nameTextStyle.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.yAxis.nameTextStyle.color,"onUpdate:modelValue":l[56]||(l[56]=c=>a.option.yAxis.nameTextStyle.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.yAxis.splitLine.show,"onUpdate:modelValue":l[57]||(l[57]=c=>a.option.yAxis.splitLine.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"粗细"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.splitLine.lineStyle.width,"onUpdate:modelValue":l[58]||(l[58]=c=>a.option.yAxis.splitLine.lineStyle.width=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.yAxis.splitLine.lineStyle.type,"onUpdate:modelValue":l[59]||(l[59]=c=>a.option.yAxis.splitLine.lineStyle.type=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).lineStyle,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.yAxis.splitLine.lineStyle.color,"onUpdate:modelValue":l[60]||(l[60]=c=>a.option.yAxis.splitLine.lineStyle.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),a.option.custom&&![2].includes(a.type)?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:5,title:"显示"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.custom.prefix,"onUpdate:modelValue":l[61]||(l[61]=c=>a.option.custom.prefix=c),size:"small",placeholder:"前缀"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.custom.suffix,"onUpdate:modelValue":l[62]||(l[62]=c=>a.option.custom.suffix=c),size:"small",placeholder:"后缀"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:a.option.custom.toFixed,"onUpdate:modelValue":l[63]||(l[63]=c=>a.option.custom.toFixed=c),size:"small"},null,8,["modelValue"])]),_:1}),a.type==7?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.custom.fontSize,"onUpdate:modelValue":l[64]||(l[64]=c=>a.option.custom.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.custom.color,"onUpdate:modelValue":l[65]||(l[65]=c=>a.option.custom.color=c)},null,8,["predefine","modelValue"])]),_:1})],64)):e.createCommentVNode("",!0)]),_:1})]),_:1})):e.createCommentVNode("",!0)],64))}}),F6="",lr=ke(Mk,[["__scopeId","data-v-1e9066c5"]]),Ak={id:"sortable"},Lk={class:"ml-2"},Fk={class:"flex-1 flex justify-end"},jk=["onClick"],Pk=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),om=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:l}=yt(),{seriesItem:c,init:s,customSeriesData:d}=Yc(),f=e.ref(null),u=e.ref(JSON.parse(JSON.stringify(Object.values(d.value)[0]??c)));e.nextTick(()=>{f.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:h,oldIndex:_}){const g=r.option.dataShow.y,v=g.splice(_,1)[0];g.splice(h,0,v);const b=r.option.series.splice(_,1)[0];r.option.series.splice(h,0,b)}})}),e.onBeforeUnmount(()=>{var h;e.unref(f)&&((h=e.unref(f))==null||h.destroy())}),e.watch(u,()=>p(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{s(r.option,()=>{p()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await l(r.type,r.option.dataShow.x)});const p=()=>{const h=u.value,_=g=>{g.barWidth=h.barWidth,g.stack=h.stack,g.label.show=h.label.show,g.label.color=h.label.color,g.label.position=h.label.position,g.label.fontSize=h.label.fontSize,g.label.rotate=h.label.rotate,g.itemStyle.borderRadius=[h.borderRadiusNumber,h.borderRadiusNumber,0,0]};r.option.series.forEach(g=>{_(g)}),Object.keys(d.value).forEach(g=>{_(e.unref(d)[g])}),window.customSeriesData=d.value},m=h=>{const{hide:_}=r.option.dataShow;_.includes(h)?_.splice(_.findIndex(g=>g==h),1):_.push(h)};return(h,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:h.option,type:3},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"柱状配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).barWidth,"onUpdate:modelValue":_[0]||(_[0]=g=>e.unref(u).barWidth=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"堆栈"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).stack,"onUpdate:modelValue":_[1]||(_[1]=g=>e.unref(u).stack=g)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:e.unref(u).borderRadiusNumber,"onUpdate:modelValue":_[2]||(_[2]=g=>e.unref(u).borderRadiusNumber=g),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).label.show,"onUpdate:modelValue":_[3]||(_[3]=g=>e.unref(u).label.show=g)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(u).label.position,"onUpdate:modelValue":_[4]||(_[4]=g=>e.unref(u).label.position=g),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,g=>e.createVNode(e.unref(S.ElOption),{key:g.value,label:g.label,value:g.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).label.rotate,"onUpdate:modelValue":_[5]||(_[5]=g=>e.unref(u).label.rotate=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).label.fontSize,"onUpdate:modelValue":_[6]||(_[6]=g=>e.unref(u).label.fontSize=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(u).label.color,"onUpdate:modelValue":_[7]||(_[7]=g=>e.unref(u).label.color=g)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:h.option.dataShow.x,"onUpdate:modelValue":_[8]||(_[8]=g=>h.option.dataShow.x=g),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,g=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:g.comment,label:g.comment,value:g.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Ak,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.option.dataShow.y,(g,v)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"sort-item w-full"},[e.unref(d)[g]?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,predefine:e.unref(i),size:"small",modelValue:e.unref(d)[g].itemStyle.color,"onUpdate:modelValue":b=>e.unref(d)[g].itemStyle.color=b},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(d)[g].itemStyle.color)+" ",1),e.createElementVNode("span",Lk,e.toDisplayString(g),1),e.createElementVNode("div",Fk,[e.createElementVNode("i",{onClick:b=>m(g),class:e.normalizeClass([h.option.dataShow.hide.includes(g)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,jk),Pk])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),Uk={id:"sortable"},Wk={class:"ml-2"},Gk={class:"flex-1 flex justify-end"},Hk=["onClick"],Yk=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),im=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:c}=yt(),{seriesItem:s,init:d,customSeriesData:f}=da(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??s)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:_,oldIndex:g}){const v=r.option.dataShow.y,b=v.splice(g,1)[0];v.splice(_,0,b);const y=r.option.series.splice(g,1)[0];r.option.series.splice(_,0,y)}})}),e.onBeforeUnmount(()=>{var _;e.unref(u)&&((_=e.unref(u))==null||_.destroy())}),e.watch(p,()=>m(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{d(r.option,()=>{m()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x)});const m=()=>{const _=JSON.parse(JSON.stringify(p.value)),g=v=>{Object.keys(_).forEach(b=>{b=="lineStyle"?Object.keys(v[b]).forEach(y=>{y!="color"&&(v[b][y]=_[b][y])}):v[b]=_[b]})};r.option.series.forEach(v=>{g(v)}),Object.keys(f.value).forEach(v=>{g(e.unref(f)[v])}),window.customSeriesData=f.value},h=_=>{const{hide:g}=r.option.dataShow;g.includes(_)?g.splice(g.findIndex(v=>v==_),1):g.push(_)};return(_,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:_.option,type:1},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"折线配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:"线条"},{default:e.withCtx(()=>[e.createVNode(j,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).lineStyle.width,"onUpdate:modelValue":g[0]||(g[0]=v=>e.unref(p).lineStyle.width=v),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).lineStyle.type,"onUpdate:modelValue":g[1]||(g[1]=v=>e.unref(p).lineStyle.type=v),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,v=>e.createVNode(e.unref(S.ElOption),{key:v.value,label:v.label,value:v.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"实心点"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).symbolSize,"onUpdate:modelValue":g[2]||(g[2]=v=>e.unref(p).symbolSize=v),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"平滑"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(p).smooth,"onUpdate:modelValue":g[3]||(g[3]=v=>e.unref(p).smooth=v)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":g[4]||(g[4]=v=>e.unref(p).label.show=v)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":g[5]||(g[5]=v=>e.unref(p).label.position=v),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,v=>e.createVNode(e.unref(S.ElOption),{key:v.value,label:v.label,value:v.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":g[6]||(g[6]=v=>e.unref(p).label.rotate=v),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":g[7]||(g[7]=v=>e.unref(p).label.fontSize=v),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(p).label.color,"onUpdate:modelValue":g[8]||(g[8]=v=>e.unref(p).label.color=v)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:_.option.dataShow.x,"onUpdate:modelValue":g[9]||(g[9]=v=>_.option.dataShow.x=v),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,v=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:v.comment,label:v.comment,value:v.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Uk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.option.dataShow.y,(v,b)=>(e.openBlock(),e.createElementBlock("div",{key:v,class:"sort-item w-full"},[e.unref(f)[v]?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,size:"small",predefine:e.unref(i),modelValue:e.unref(f)[v].lineStyle.color,"onUpdate:modelValue":y=>e.unref(f)[v].lineStyle.color=y},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",Wk,e.toDisplayString(v),1),e.createElementVNode("div",Gk,[e.createElementVNode("i",{onClick:y=>h(v),class:e.normalizeClass([_.option.dataShow.hide.includes(v)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,Hk),Yk])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),am=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"外侧",value:"outside"},{label:"内部",value:"inside"},{label:"中心",value:"center"}],l=[{label:"数据名",value:"{b}"},{label:"百分比",value:"{d}"},{label:"列名:百分比",value:"{b}:{d}%"}],{setChartData:c}=yt(),{seriesItem:s,init:d,customSeriesData:f}=Xc(),u=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??s)));e.watch(u,()=>p(),{deep:!0}),e.watch(()=>r.option.dataShow,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x),d(r.option,()=>{p()})},{deep:!0,immediate:r.immediate});const p=()=>{const m=u.value,h=_=>{Object.keys(m).forEach(g=>{_[g]=m[g]})};r.option.series.forEach(_=>{h(_)}),Object.keys(f.value).forEach(_=>{h(e.unref(f)[_])}),window.customSeriesData=f.value};return(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:m.option,type:2},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"饼图配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(j,{name:"半径1"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(u).radius[0],"onUpdate:modelValue":h[0]||(h[0]=_=>e.unref(u).radius[0]=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"半径2"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(u).radius[1],"onUpdate:modelValue":h[1]||(h[1]=_=>e.unref(u).radius[1]=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"距离1"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(u).center[0],"onUpdate:modelValue":h[2]||(h[2]=_=>e.unref(u).center[0]=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"距离2"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(u).center[1],"onUpdate:modelValue":h[3]||(h[3]=_=>e.unref(u).center[1]=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"南丁格尔图"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).roseType,"onUpdate:modelValue":h[4]||(h[4]=_=>e.unref(u).roseType=_)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).label.show,"onUpdate:modelValue":h[5]||(h[5]=_=>e.unref(u).label.show=_)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"引导线"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).labelLine.show,"onUpdate:modelValue":h[6]||(h[6]=_=>e.unref(u).labelLine.show=_)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"展示类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(u).label.formatter,"onUpdate:modelValue":h[7]||(h[7]=_=>e.unref(u).label.formatter=_),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,_=>e.createVNode(e.unref(S.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(u).label.position,"onUpdate:modelValue":h[8]||(h[8]=_=>e.unref(u).label.position=_),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,_=>e.createVNode(e.unref(S.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{predefine:e.unref(i),modelValue:e.unref(u).label.fontSize,"onUpdate:modelValue":h[9]||(h[9]=_=>e.unref(u).label.fontSize=_),size:"small"},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(u).label.color,"onUpdate:modelValue":h[10]||(h[10]=_=>e.unref(u).label.color=_)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).itemStyle.borderRadius,"onUpdate:modelValue":h[11]||(h[11]=_=>e.unref(u).itemStyle.borderRadius=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).itemStyle.borderWidth,"onUpdate:modelValue":h[12]||(h[12]=_=>e.unref(u).itemStyle.borderWidth=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(u).itemStyle.borderColor,"onUpdate:modelValue":h[13]||(h[13]=_=>e.unref(u).itemStyle.borderColor=_)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"维度",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:m.option.dataShow.x,"onUpdate:modelValue":h[14]||(h[14]=_=>m.option.dataShow.x=_),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,_=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:_.comment,label:_.comment,value:_.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"统计",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:m.option.dataShow.y,"onUpdate:modelValue":h[15]||(h[15]=_=>m.option.dataShow.y=_),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.y,_=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:_.showLabel,label:_.showLabel,value:_.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),Xk={id:"sortable"},qk={class:"ml-2"},Jk={class:"flex-1 flex justify-end items-center"},Kk={class:"cursor-pointer mr-2 text-xs"},Zk=["onClick"],Qk=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),lm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:c}=yt(),{seriesLineItem:s,seriesBarItem:d,init:f,customSeriesData:u}=qc(),p=e.ref(null),m=e.ref(JSON.parse(JSON.stringify(Object.values(u.value).find(b=>b.type=="bar")??d))),h=e.ref(JSON.parse(JSON.stringify(Object.values(u.value).find(b=>b.type=="line")??s)));e.nextTick(()=>{p.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:b,oldIndex:y}){const w=r.option.dataShow.y,C=w.splice(y,1)[0];w.splice(b,0,C);const x=r.option.series.splice(y,1)[0];r.option.series.splice(b,0,x)}})}),e.onBeforeUnmount(()=>{var b;e.unref(p)&&((b=e.unref(p))==null||b.destroy())}),e.watch([m,h],()=>g(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{f(r.option,()=>{g()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x)});const _=(b,y)=>{var C,x,V,E;if(e.unref(u)[y].type!=b){const $=JSON.parse(JSON.stringify({...b=="line"?h.value:m.value})),B=((x=(C=e.unref(u)[y])==null?void 0:C.lineStyle)==null?void 0:x.color)??((E=(V=e.unref(u)[y])==null?void 0:V.itemStyle)==null?void 0:E.color);$[$!=null&&$.lineStyle?"lineStyle":"itemStyle"].color=B,u.value[y]=$,f(r.option,()=>{})}},g=()=>{const b=m.value,y=h.value,w=C=>{const x=JSON.parse(JSON.stringify(C.type=="bar"?b:y));Object.keys(x).forEach(V=>{["lineStyle","itemStyle"].includes(V)?Object.keys(C[V]).forEach(E=>{E=="borderRadius"?C[V][E]=[b.borderRadiusNumber,b.borderRadiusNumber,0,0]:E!="color"&&(C[V][E]=x[V][E])}):C[V]=x[V]})};r.option.series.forEach(C=>{w(C)}),Object.keys(u.value).forEach(C=>{w(e.unref(u)[C])}),window.customSeriesData=u.value},v=b=>{const{hide:y}=r.option.dataShow;y.includes(b)?y.splice(y.findIndex(w=>w==b),1):y.push(b)};return(b,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:b.option,type:5},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"柱状配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(m).barWidth,"onUpdate:modelValue":y[0]||(y[0]=w=>e.unref(m).barWidth=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:e.unref(m).borderRadiusNumber,"onUpdate:modelValue":y[1]||(y[1]=w=>e.unref(m).borderRadiusNumber=w),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(m).label.show,"onUpdate:modelValue":y[2]||(y[2]=w=>e.unref(m).label.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(m).label.position,"onUpdate:modelValue":y[3]||(y[3]=w=>e.unref(m).label.position=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,w=>e.createVNode(e.unref(S.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(m).label.rotate,"onUpdate:modelValue":y[4]||(y[4]=w=>e.unref(m).label.rotate=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(m).label.fontSize,"onUpdate:modelValue":y[5]||(y[5]=w=>e.unref(m).label.fontSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(m).label.color,"onUpdate:modelValue":y[6]||(y[6]=w=>e.unref(m).label.color=w)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"折线配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:"线条"},{default:e.withCtx(()=>[e.createVNode(j,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(h).lineStyle.width,"onUpdate:modelValue":y[7]||(y[7]=w=>e.unref(h).lineStyle.width=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(h).lineStyle.type,"onUpdate:modelValue":y[8]||(y[8]=w=>e.unref(h).lineStyle.type=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,w=>e.createVNode(e.unref(S.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"实心点"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(h).symbolSize,"onUpdate:modelValue":y[9]||(y[9]=w=>e.unref(h).symbolSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"平滑"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(h).smooth,"onUpdate:modelValue":y[10]||(y[10]=w=>e.unref(h).smooth=w)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(h).label.show,"onUpdate:modelValue":y[11]||(y[11]=w=>e.unref(h).label.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(h).label.position,"onUpdate:modelValue":y[12]||(y[12]=w=>e.unref(h).label.position=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,w=>e.createVNode(e.unref(S.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(h).label.rotate,"onUpdate:modelValue":y[13]||(y[13]=w=>e.unref(h).label.rotate=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(h).label.fontSize,"onUpdate:modelValue":y[14]||(y[14]=w=>e.unref(h).label.fontSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(h).label.color,"onUpdate:modelValue":y[15]||(y[15]=w=>e.unref(h).label.color=w)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:b.option.dataShow.x,"onUpdate:modelValue":y[16]||(y[16]=w=>b.option.dataShow.x=w),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,w=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:w.comment,label:w.comment,value:w.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Xk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.option.dataShow.y,(w,C)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"sort-item w-full"},[e.unref(u)[w]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(u)[w].type=="bar"?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,predefine:e.unref(i),size:"small",modelValue:e.unref(u)[w].itemStyle.color,"onUpdate:modelValue":x=>e.unref(u)[w].itemStyle.color=x},null,8,["predefine","modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:1,predefine:e.unref(i),size:"small",modelValue:e.unref(u)[w].lineStyle.color,"onUpdate:modelValue":x=>e.unref(u)[w].lineStyle.color=x},null,8,["predefine","modelValue","onUpdate:modelValue"]))],64)):e.createCommentVNode("",!0),e.createElementVNode("span",qk,e.toDisplayString(w),1),e.createElementVNode("div",Jk,[e.unref(u)[w]?(e.openBlock(),e.createBlock(e.unref(S.ElDropdown),{key:0,onCommand:x=>_(x,w)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownMenu),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownItem),{command:"bar"},{default:e.withCtx(()=>[e.createTextVNode("柱状")]),_:1}),e.createVNode(e.unref(S.ElDropdownItem),{command:"line"},{default:e.withCtx(()=>[e.createTextVNode("折线")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",Kk,e.toDisplayString(e.unref(u)[w].type=="bar"?"柱状":"折线"),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:x=>v(w),class:e.normalizeClass([b.option.dataShow.hide.includes(w)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,Zk),Qk])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),e5={id:"sortable"},t5={class:"ml-2"},n5={class:"flex-1 flex justify-end items-center"},r5={class:"cursor-pointer mr-2 text-xs"},o5=["onClick"],i5=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),cm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],l=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:c}=yt(),{seriesItem:s,init:d,customSeriesData:f}=Jc(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??s)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:g,oldIndex:v}){const b=r.option.dataShow.y,y=b.splice(v,1)[0];b.splice(g,0,y);const w=r.option.series.splice(v,1)[0];r.option.series.splice(g,0,w)}})}),e.onBeforeUnmount(()=>{var g;e.unref(u)&&((g=e.unref(u))==null||g.destroy())}),e.watch(p,()=>m(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{d(r.option,()=>{m()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x)});const m=()=>{const g=JSON.parse(JSON.stringify(p.value)),v=b=>{Object.keys(g).forEach(y=>{y!="type"&&(["itemStyle"].includes(y)||(b[y]=g[y]))})};r.option.series.forEach(b=>{v(b)}),Object.keys(f.value).forEach(b=>{v(e.unref(f)[b])}),window.customSeriesData=f.value},h=(g,v)=>{const b=e.unref(f)[v];b.type!=g&&(b.type=g,d(r.option,()=>{}))},_=g=>{const{hide:v}=r.option.dataShow;v.includes(g)?v.splice(v.findIndex(b=>b==g),1):v.push(g)};return(g,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:g.option,type:6},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"散点图配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).symbolSize,"onUpdate:modelValue":v[0]||(v[0]=b=>e.unref(p).symbolSize=b),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标域"},{default:e.withCtx(()=>[e.createVNode(j,{name:"粗细(0不显示)"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).markArea.itemStyle.borderWidth,"onUpdate:modelValue":v[1]||(v[1]=b=>e.unref(p).markArea.itemStyle.borderWidth=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).markArea.itemStyle.borderType,"onUpdate:modelValue":v[2]||(v[2]=b=>e.unref(p).markArea.itemStyle.borderType=b),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,b=>e.createVNode(e.unref(S.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":v[3]||(v[3]=b=>e.unref(p).label.show=b)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":v[4]||(v[4]=b=>e.unref(p).label.position=b),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,b=>e.createVNode(e.unref(S.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":v[5]||(v[5]=b=>e.unref(p).label.rotate=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":v[6]||(v[6]=b=>e.unref(p).label.fontSize=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(p).label.color,"onUpdate:modelValue":v[7]||(v[7]=b=>e.unref(p).label.color=b)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:g.option.dataShow.x,"onUpdate:modelValue":v[8]||(v[8]=b=>g.option.dataShow.x=b),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,b=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:b.comment,label:b.comment,value:b.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",e5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.option.dataShow.y,(b,y)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"sort-item w-full"},[e.unref(f)[b]?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,predefine:e.unref(i),size:"small",modelValue:e.unref(f)[b].itemStyle.color,"onUpdate:modelValue":w=>e.unref(f)[b].itemStyle.color=w},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",t5,e.toDisplayString(b),1),e.createElementVNode("div",n5,[e.unref(f)[b]?(e.openBlock(),e.createBlock(e.unref(S.ElDropdown),{key:0,onCommand:w=>h(w,b)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownMenu),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownItem),{command:"scatter"},{default:e.withCtx(()=>[e.createTextVNode("普通")]),_:1}),e.createVNode(e.unref(S.ElDropdownItem),{command:"effectScatter"},{default:e.withCtx(()=>[e.createTextVNode("特效")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",r5,e.toDisplayString(e.unref(f)[b].type=="scatter"?"普通":"特效"),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:w=>_(b),class:e.normalizeClass([g.option.dataShow.hide.includes(b)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,o5),i5])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),a5={id:"sortable"},l5={class:"flex-1 flex justify-end items-center"},c5=["onClick"],d5=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),dm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){var _;const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}],{setChartData:c}=yt(),{seriesItem:s,init:d,customSeriesData:f}=Kc(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify((_=e.unref(f))!=null&&_.type?f.value:s)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:g,oldIndex:v}){const b=r.option.dataShow.y,y=b.splice(v,1)[0];b.splice(g,0,y);const w=r.option.series.splice(v,1)[0];r.option.series.splice(g,0,w)}})}),e.onBeforeUnmount(()=>{var g;e.unref(u)&&((g=e.unref(u))==null||g.destroy())}),e.watch(p,()=>m(),{deep:!0}),e.watch([()=>r.option.dataShow.y,()=>r.option.dataShow.hide],()=>{d(r.option,()=>{m()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x),d(r.option,()=>{m()})});const m=()=>{const g=p.value;Object.keys(r.option.series[0]).forEach(v=>{["areaStyle","label"].includes(v)&&(r.option.series[0][v]=g[v])}),f.value={...r.option.series[0],data:[]},window.customSeriesData=f.value},h=g=>{const{hide:v}=r.option.dataShow;v.includes(g)?v.splice(v.findIndex(b=>b==g),1):v.push(g)};return(g,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:g.option,type:4},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"雷达图配置"},{default:e.withCtx(()=>{var b;return[e.createVNode(de,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(j,{name:"背景"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.splitArea.show,"onUpdate:modelValue":v[0]||(v[0]=y=>g.option.radar.splitArea.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.splitLine.show,"onUpdate:modelValue":v[1]||(v[1]=y=>g.option.radar.splitLine.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:g.option.radar.shape,"onUpdate:modelValue":v[2]||(v[2]=y=>g.option.radar.shape=y),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,y=>e.createVNode(e.unref(S.ElOption),{key:y.value,label:y.label,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"坐标轴"},{default:e.withCtx(()=>[e.createVNode(j,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.axisLine.show,"onUpdate:modelValue":v[3]||(v[3]=y=>g.option.radar.axisLine.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"刻度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.axisTick.show,"onUpdate:modelValue":v[4]||(v[4]=y=>g.option.radar.axisTick.show=y)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"范围"},{default:e.withCtx(()=>[e.createVNode(j,{name:"最小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:g.option.radar.radius[0],"onUpdate:modelValue":v[5]||(v[5]=y=>g.option.radar.radius[0]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最大"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:g.option.radar.radius[1],"onUpdate:modelValue":v[6]||(v[6]=y=>g.option.radar.radius[1]=y),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"偏移"},{default:e.withCtx(()=>[e.createVNode(j,{name:"x"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:g.option.radar.center[0],"onUpdate:modelValue":v[7]||(v[7]=y=>g.option.radar.center[0]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"y"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:g.option.radar.center[1],"onUpdate:modelValue":v[8]||(v[8]=y=>g.option.radar.center[1]=y),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"指示器"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.axisName.show,"onUpdate:modelValue":v[9]||(v[9]=y=>g.option.radar.axisName.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:g.option.radar.axisName.fontSize,"onUpdate:modelValue":v[10]||(v[10]=y=>g.option.radar.axisName.fontSize=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:g.option.radar.axisName.color,"onUpdate:modelValue":v[11]||(v[11]=y=>g.option.radar.axisName.color=y)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":v[12]||(v[12]=y=>e.unref(p).label.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":v[13]||(v[13]=y=>e.unref(p).label.position=y),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,y=>e.createVNode(e.unref(S.ElOption),{key:y.value,label:y.label,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":v[14]||(v[14]=y=>e.unref(p).label.rotate=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":v[15]||(v[15]=y=>e.unref(p).label.fontSize=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(p).label.color,"onUpdate:modelValue":v[16]||(v[16]=y=>e.unref(p).label.color=y)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),(b=e.unref(p))!=null&&b.type?(e.openBlock(),e.createBlock(de,{key:0,name:"系列"},{default:e.withCtx(()=>[e.createVNode(j,{name:"背景透明度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).areaStyle.opacity,"onUpdate:modelValue":v[17]||(v[17]=y=>e.unref(p).areaStyle.opacity=y),min:0,max:1,size:"small",step:.1},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]}),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:g.option.dataShow.x,"onUpdate:modelValue":v[18]||(v[18]=b=>g.option.dataShow.x=b),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,b=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:b.comment,label:b.comment,value:b.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",a5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.option.dataShow.y,(b,y)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"sort-item w-full"},[e.createElementVNode("span",null,e.toDisplayString(b),1),e.createElementVNode("div",l5,[e.createElementVNode("i",{onClick:w=>h(b),class:e.normalizeClass([g.option.dataShow.hide.includes(b)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,c5),d5])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),s5={id:"sortable"},f5={class:"ml-2"},u5={class:"flex-1 flex justify-end items-center"},p5=e.createElementVNode("i",{class:"ri-more-line mr-2 cursor-pointer"},null,-1),h5=["onClick"],m5=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),sm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){Te();const n=t,{proxy:r}=e.getCurrentInstance(),o=r.$globalPreColor;yt();const{init:i,tableConfig:a,customSeriesData:l}=sa(),c=e.ref(null),s=e.ref(JSON.parse(JSON.stringify(a)));e.nextTick(()=>{c.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:u,oldIndex:p}){const m=n.option.dataShow.y,h=m.splice(p,1)[0];m.splice(u,0,h);const _=n.option.series.splice(p,1)[0];n.option.series.splice(u,0,_)}})}),e.onBeforeUnmount(()=>{var u;e.unref(c)&&((u=e.unref(c))==null||u.destroy())}),e.watch(s,()=>d(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{i(n.option)},{deep:!0,immediate:n.immediate});const d=()=>{},f=u=>{const{hide:p=[]}=n.option.dataShow;p.includes(u)?p.splice(p.findIndex(m=>m==u),1):p.push(u),n.option.dataShow.hide=p};return(u,p)=>{const m=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:"列名"},{default:e.withCtx(()=>[e.createVNode(j,{name:"",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",s5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.option.dataShow.y,(h,_)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"sort-item w-full"},[e.unref(l)[h]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),size:"small",modelValue:e.unref(l)[h].bgColor,"onUpdate:modelValue":g=>e.unref(l)[h].bgColor=g},null,8,["predefine","modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),size:"small",modelValue:e.unref(l)[h].color,"onUpdate:modelValue":g=>e.unref(l)[h].color=g},null,8,["predefine","modelValue","onUpdate:modelValue"])],64)):e.createCommentVNode("",!0),e.createElementVNode("span",f5,e.toDisplayString(h),1),e.createElementVNode("div",u5,[e.unref(l)[h]?(e.openBlock(),e.createBlock(e.unref(S.ElPopover),{key:0,width:400,trigger:"hover"},{reference:e.withCtx(()=>[p5]),default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:e.unref(l)[h].prefix,"onUpdate:modelValue":g=>e.unref(l)[h].prefix=g,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:e.unref(l)[h].suffix,"onUpdate:modelValue":g=>e.unref(l)[h].suffix=g,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:e.unref(l)[h].toFixed,"onUpdate:modelValue":g=>e.unref(l)[h].toFixed=g,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(l)[h].fontSize,"onUpdate:modelValue":g=>e.unref(l)[h].fontSize=g,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:g=>f(h),class:e.normalizeClass([(u.option.dataShow.hide??[]).includes(h)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,h5),m5])]))),128))])]),_:1})]),_:1})]),_:1})}}}),g5={id:"sortable"},_5={class:"ml-2"},v5={class:"flex-1 flex justify-end items-center"},y5=e.createElementVNode("i",{class:"ri-more-line mr-2 cursor-pointer"},null,-1),b5=["onClick"],w5=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),fm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){Te();const n=t,{proxy:r}=e.getCurrentInstance(),o=r.$globalPreColor;yt();const{init:i,tableConfig:a,customSeriesData:l}=sa(),c=e.ref(null),s=e.ref(JSON.parse(JSON.stringify(a)));e.nextTick(()=>{c.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:u,oldIndex:p}){const m=n.option.dataShow.y,h=m.splice(p,1)[0];m.splice(u,0,h);const _=n.option.series.splice(p,1)[0];n.option.series.splice(u,0,_)}})}),e.onBeforeUnmount(()=>{var u;e.unref(c)&&((u=e.unref(c))==null||u.destroy())}),e.watch(s,()=>d(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{i(n.option)},{deep:!0,immediate:n.immediate});const d=()=>{},f=u=>{const{hide:p}=n.option.dataShow;p.includes(u)?p.splice(p.findIndex(m=>m==u),1):p.push(u)};return(u,p)=>(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:"列名"},{default:e.withCtx(()=>[e.createVNode(j,{name:"",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",g5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.option.dataShow.y,(m,h)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"sort-item w-full"},[e.unref(l)[m]?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,predefine:e.unref(o),size:"small",modelValue:e.unref(l)[m].color,"onUpdate:modelValue":_=>e.unref(l)[m].color=_},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",_5,e.toDisplayString(m),1),e.createElementVNode("div",v5,[e.unref(l)[m]?(e.openBlock(),e.createBlock(e.unref(S.ElPopover),{key:0,width:400,trigger:"hover"},{reference:e.withCtx(()=>[y5]),default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(l)[m].prefix,"onUpdate:modelValue":_=>e.unref(l)[m].prefix=_,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(l)[m].suffix,"onUpdate:modelValue":_=>e.unref(l)[m].suffix=_,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:e.unref(l)[m].toFixed,"onUpdate:modelValue":_=>e.unref(l)[m].toFixed=_,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:_=>f(m),class:e.normalizeClass([u.option.dataShow.hide.includes(m)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,b5),w5])]))),128))])]),_:1})]),_:1})]),_:1}))}}),C5={class:"flex items-center"},S5=e.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),x5={class:"flex items-center"},V5=e.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),um=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,{init:a,city:l}=Zc();return e.watch(()=>r.option.style.style1,async c=>{r.option.series[1]=c},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.style.style2,async c=>{r.option.series[2]=c},{deep:!0,immediate:r.immediate}),(c,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:c.option,type:9},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"地图数据"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElTreeSelect),{modelValue:c.option.code,"onUpdate:modelValue":s[0]||(s[0]=d=>c.option.code=d),data:e.unref(l),props:{label:"name",value:"code",children:"children"},onChange:s[1]||(s[1]=d=>e.unref(a)(c.option)),filterable:"","node-key":"code","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"视觉映射"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:c.option.visualMap.show,"onUpdate:modelValue":s[2]||(s[2]=d=>c.option.visualMap.show=d)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"文本"},{default:e.withCtx(()=>[e.createElementVNode("div",C5,[e.createVNode(e.unref(S.ElInput),{modelValue:c.option.visualMap.text[1],"onUpdate:modelValue":s[3]||(s[3]=d=>c.option.visualMap.text[1]=d),size:"small"},null,8,["modelValue"]),S5,e.createVNode(e.unref(S.ElInput),{modelValue:c.option.visualMap.text[0],"onUpdate:modelValue":s[4]||(s[4]=d=>c.option.visualMap.text[0]=d),size:"small"},null,8,["modelValue"])])]),_:1}),e.createVNode(j,{name:"最小值-最高值"},{default:e.withCtx(()=>[e.createElementVNode("div",x5,[e.createVNode(e.unref(S.ElInput),{modelValue:c.option.visualMap.min,"onUpdate:modelValue":s[5]||(s[5]=d=>c.option.visualMap.min=d),size:"small"},null,8,["modelValue"]),V5,e.createVNode(e.unref(S.ElInput),{modelValue:c.option.visualMap.max,"onUpdate:modelValue":s[6]||(s[6]=d=>c.option.visualMap.max=d),size:"small"},null,8,["modelValue"])])]),_:1}),e.createVNode(j,{name:"最小颜色-最高颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.visualMap.inRange.color[0],"onUpdate:modelValue":s[7]||(s[7]=d=>c.option.visualMap.inRange.color[0]=d)},null,8,["predefine","modelValue"]),e.createTextVNode(" - "),e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.visualMap.inRange.color[1],"onUpdate:modelValue":s[8]||(s[8]=d=>c.option.visualMap.inRange.color[1]=d)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"地图"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示标签"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:c.option.geo.label.show,"onUpdate:modelValue":s[9]||(s[9]=d=>c.option.geo.label.show=d)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"缩放"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{step:.1,modelValue:c.option.geo.zoom,"onUpdate:modelValue":s[10]||(s[10]=d=>c.option.geo.zoom=d),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.geo.label.fontSize,"onUpdate:modelValue":s[11]||(s[11]=d=>c.option.geo.label.fontSize=d),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.geo.label.color,"onUpdate:modelValue":s[12]||(s[12]=d=>c.option.geo.label.color=d)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"移动效果"},{default:e.withCtx(()=>[e.createVNode(j,{name:"区块颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.geo.emphasis.itemStyle.areaColor,"onUpdate:modelValue":s[13]||(s[13]=d=>c.option.geo.emphasis.itemStyle.areaColor=d)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"边框颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.geo.emphasis.itemStyle.borderColor,"onUpdate:modelValue":s[14]||(s[14]=d=>c.option.geo.emphasis.itemStyle.borderColor=d)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"边框大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.geo.emphasis.itemStyle.borderWidth,"onUpdate:modelValue":s[15]||(s[15]=d=>c.option.geo.emphasis.itemStyle.borderWidth=d),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.geo.emphasis.label.fontSize,"onUpdate:modelValue":s[16]||(s[16]=d=>c.option.geo.emphasis.label.fontSize=d),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.geo.emphasis.label.color,"onUpdate:modelValue":s[17]||(s[17]=d=>c.option.geo.emphasis.label.color=d)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["style1","style2"],d=>e.createVNode(e.unref(S.ElCollapseItem),{title:d=="style1"?"散点样式":"点位样式"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:c.option.style[d].symbol,"onUpdate:modelValue":f=>c.option.style[d].symbol=f,size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).shape,f=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.style[d].symbolSize,"onUpdate:modelValue":f=>c.option.style[d].symbolSize=f,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"形状颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.style[d].itemStyle.color,"onUpdate:modelValue":f=>c.option.style[d].itemStyle.color=f},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),c.option.style[d].label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(j,{name:"值显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:c.option.style[d].label.show,"onUpdate:modelValue":f=>c.option.style[d].label.show=f},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.style[d].label.color,"onUpdate:modelValue":f=>c.option.style[d].label.color=f},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.style[d].label.fontSize,"onUpdate:modelValue":f=>c.option.style[d].label.fontSize=f,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):e.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["title"])),64)),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"维度",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:c.option.dataShow.x,"onUpdate:modelValue":s[18]||(s[18]=d=>c.option.dataShow.x=d),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,d=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:d.comment,label:d.comment,value:d.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"统计",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:c.option.dataShow.y,"onUpdate:modelValue":s[19]||(s[19]=d=>c.option.dataShow.y=d),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.y,d=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:d.showLabel,label:d.showLabel,value:d.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),jt={};for(let t=0;t<=3;t+=1){let n=null;if(t==0&&(n=Object.assign({"../decoration/decoration1/setting.vue":HE,"../decoration/decoration10/setting.vue":YE,"../decoration/decoration11/setting.vue":XE,"../decoration/decoration12/setting.vue":qE,"../decoration/decoration2/setting.vue":JE,"../decoration/decoration3/setting.vue":KE,"../decoration/decoration4/setting.vue":ZE,"../decoration/decoration5/setting.vue":QE,"../decoration/decoration6/setting.vue":ek,"../decoration/decoration8/setting.vue":tk,"../decoration/decoration9/setting.vue":nk})),t==1&&(n=Object.assign({"../border/border1/setting.vue":rk,"../border/border10/setting.vue":ok,"../border/border11/setting.vue":ik,"../border/border12/setting.vue":ak,"../border/border13/setting.vue":lk,"../border/border2/setting.vue":ck,"../border/border3/setting.vue":dk,"../border/border4/setting.vue":sk,"../border/border5/setting.vue":fk,"../border/border6/setting.vue":uk,"../border/border7/setting.vue":pk,"../border/border8/setting.vue":hk,"../border/border9/setting.vue":mk})),t==2&&(n=Object.assign({"../basic/horizontal-line/setting.vue":gk,"../basic/iframe/setting.vue":_k,"../basic/img/setting.vue":Sk,"../basic/number/setting.vue":Vk,"../basic/square/setting.vue":Ek,"../basic/text/setting.vue":kk,"../basic/time/setting.vue":Nk,"../basic/vertical-line/setting.vue":$k})),t==3&&(jt[3]=om,jt[2]=am,jt[1]=im,jt[4]=dm,jt[5]=lm,jt[6]=cm,jt[7]=sm,jt[8]=fm,jt[9]=um),n)for(const[r,o]of Object.entries(n)){const i=r.split("/")[2];jt[i]=o.default}}const pm=t=>(e.pushScopeId("data-v-19259c54"),t=t(),e.popScopeId(),t),E5=pm(()=>e.createElementVNode("div",{class:"flex h-10 items-center p-2"},[e.createElementVNode("span",{class:"w-1 h-4 bg-color-primary mr-2"}),e.createTextVNode(" 大屏设置 ")],-1)),k5=pm(()=>e.createElementVNode("div",{class:"h-px mb-2",style:{"background-color":"var(--el-border-color-light)"}},null,-1)),N5={class:"p-2"},$5=e.defineComponent({__name:"rightPannel",setup(t){const n=Te(),r=e.ref({});e.provide("widgetConfig",r);const o=e.ref(""),i=e.computed(()=>n.targetsWidget.length===1?n.getWidgetList.find(l=>{var c;return l.id==((c=n.targetsWidget[0])==null?void 0:c.id)}):null);e.watch(i,l=>{a()});const a=()=>{if(!e.unref(i)){r.value={};return}const l=n.getWidgetList.find(c=>c.id==e.unref(i).id);e.unref(i).chartType&&(window.customSeriesData=l.customize.customSeriesData,n.setChartData(n.tempChartData[l.id].params)),r.value=l,o.value=""};return a(),(l,c)=>(e.openBlock(),e.createBlock(e.unref(S.ElScrollbar),{height:"100%"},{default:e.withCtx(()=>{var s,d;return[E5,k5,(s=e.unref(r))!=null&&s.chartType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(Ce),e.createElementVNode("div",N5,[e.createVNode(e.unref(S.ElCollapse),{accordion:"",modelValue:e.unref(o),"onUpdate:modelValue":c[0]||(c[0]=f=>e.isRef(o)?o.value=f:null)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(jt)[e.unref(r).chartType]),{key:e.unref(r).id,immediate:"",option:e.unref(r).customize,type:e.unref(r).chartType},null,8,["option","type"]))]),_:1},8,["modelValue"])])],64)):e.unref(jt)[(d=e.unref(r))==null?void 0:d.type]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(jt)[e.unref(r).type]),{key:e.unref(r).id})):(e.openBlock(),e.createBlock(GE,{key:2}))]}),_:1}))}}),j6="",D5=ke($5,[["__scopeId","data-v-19259c54"]]),B5={class:"flex flex-col overflow-hidden ace-big-screen"},T5={class:"h-10 top-pannel"},O5={class:"relative flex flex-1"},I5={class:"left-pannel"},z5={class:"flex-1 p-2 overflow-hidden",id:"design-container"},R5={class:"relative w-full h-full"},M5={key:0,class:"right-pannel w-80"},A5=e.defineComponent({__name:"design",emits:["preview","save"],setup(t,{expose:n,emit:r}){const o=r,{proxy:i}=e.getCurrentInstance(),{chartJsonFormat:a}=i.$globalUtils,l=Te(),c=e.ref(!1),s=e.ref(""),d=e.ref("");return e.watch(c,u=>{u?document.getElementsByTagName("html")[0].className=l.theme:document.getElementsByTagName("html")[0].className=""}),n({init:async(u="")=>{if(d.value=u,s.value="大屏管理",l.widgetConfg={config:{},list:[]},l.clearSketchRuleLine(),l.setRightPannel(!1),u){const p=await i.$baseHttp.get("/api/ace-data-center/screen/detail",{params:{id:u},headers:{loading:!0}});s.value=p.data.title,l.widgetConfg=a(p.data.config)}l.setStageWidth(l.widgetConfg.config.stageWidth??1920),l.setStageHeight(l.widgetConfg.config.stageHeight??1080),c.value=!0}}),(u,p)=>{const m=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(m,{modelValue:e.unref(c),"onUpdate:modelValue":p[4]||(p[4]=h=>e.isRef(c)?c.value=h:null),title:"大屏设计",size:"100%",withHeader:!1,modalClass:"ace-modal-drawer",customClass:"ace-big-design-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",B5,[e.createElementVNode("div",T5,[e.createVNode(t0,{title:e.unref(s),"onUpdate:title":p[0]||(p[0]=h=>e.isRef(s)?s.value=h:null),id:e.unref(d),onPreview:p[1]||(p[1]=h=>o("preview",h)),onSave:p[2]||(p[2]=()=>o("save")),onBack:p[3]||(p[3]=()=>c.value=!1)},null,8,["title","id"])]),e.createElementVNode("div",O5,[e.createElementVNode("div",I5,[e.createVNode(l_)]),e.createElementVNode("div",z5,[e.createElementVNode("div",R5,[e.createVNode(RE)])]),e.unref(l).getRightPannel?(e.openBlock(),e.createElementBlock("div",M5,[e.createVNode(D5)])):e.createCommentVNode("",!0)])])]),_:1},8,["modelValue"])}}}),P6="",Mo=t=>(e.pushScopeId("data-v-f6c5b693"),t=t(),e.popScopeId(),t),L5={key:1,class:"flex flex-wrap items-center justify-between"},F5={class:"item-container"},j5={class:"item-image"},P5=["src"],U5=["onClick"],W5=[Mo(()=>e.createElementVNode("span",{class:"text-base text-white cursor-pointer"},"预览大屏",-1))],G5={class:"flex items-center justify-between item-footer"},H5={class:"flex"},Y5=["onClick"],X5=Mo(()=>e.createElementVNode("i",{class:"mr-1 ri-edit-line"},null,-1)),q5=["onClick"],J5=Mo(()=>e.createElementVNode("i",{class:"mr-1 ri-delete-bin-line"},null,-1)),K5=Mo(()=>e.createElementVNode("div",{class:"item"},null,-1)),Z5=Mo(()=>e.createElementVNode("div",{class:"item"},null,-1)),Q5=e.defineComponent({__name:"index",emits:["preview"],setup(t,{emit:n}){const r=n,{proxy:o}=e.getCurrentInstance(),{resetUrl:i}=o.$globalUtils,a=e.ref(null),l=e.ref(null),c=e.reactive([{name:"新增",key:"ADD",type:"primary"}]),s=e.reactive([{name:"名称",type:Fn.Text,fieldName:"title",value:""}]),d=async f=>{const{type:u,row:p}=f;switch(u){case"PREVIEW":r("preview","list",(p==null?void 0:p.id)??"");break;case"ADD":case"EDIT":e.unref(l).init((p==null?void 0:p.id)??"");break;case"DEL":o.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await o.$baseHttp.post("/api/ace-data-center/screen/remove",{},{params:{ids:p.id},headers:{loading:!0}})&&(o.$message({type:"success",message:"删除成功",plain:!0}),e.unref(a).getData())}});break}};return(f,u)=>{const p=e.resolveComponent("AppEmpty"),m=e.resolveComponent("AppList");return e.openBlock(),e.createBlock(m,{url:`/api/ace-data-center/screen/list?descs=create_time&projectId=${e.unref(o).$baseGetCurrentProjectId}`,tableData:[],searchForm:e.unref(s),searchBtns:e.unref(c),listType:"custom",onBtnClick:d,ref_key:"appListRef",ref:a},{"list-slot":e.withCtx(({list:h,loading:_})=>[e.createVNode(e.unref(S.ElSkeleton),{loading:_,animated:""},{default:e.withCtx(()=>[h.length==0?(e.openBlock(),e.createBlock(p,{key:0,description:"暂无数据"})):(e.openBlock(),e.createElementBlock("div",L5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,(g,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,class:"item"},[e.createElementVNode("div",F5,[e.createElementVNode("div",j5,[e.createElementVNode("img",{src:e.unref(i)(g.imageUrl??"")||"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg"},null,8,P5),e.createElementVNode("div",{class:"flex items-center justify-center item-popup",onClick:b=>d({type:"PREVIEW",row:g,index:v})},W5,8,U5)]),e.createElementVNode("div",G5,[e.createElementVNode("div",null,e.toDisplayString(g.title),1),e.createElementVNode("div",H5,[e.createElementVNode("span",{onClick:b=>d({type:"EDIT",row:g,index:v}),class:"flex items-center text-xs text-gray-600 cursor-pointer"},[X5,e.createTextVNode(" 编辑大屏 ")],8,Y5),e.createElementVNode("span",{onClick:b=>d({type:"DEL",row:g,index:v}),class:"flex items-center ml-2 text-xs cursor-pointer text-color-danger"},[J5,e.createTextVNode(" 删除 ")],8,q5)])])])]))),128)),K5,Z5]))]),_:2},1032,["loading"])]),default:e.withCtx(()=>[e.createVNode(A5,{ref_key:"designRef",ref:l,onSave:u[0]||(u[0]=h=>e.unref(a).getData()),onPreview:u[1]||(u[1]=h=>r("preview","content",h))},null,512)]),_:1},8,["url","searchForm","searchBtns"])}}}),W6="",eN=ke(Q5,[["__scopeId","data-v-f6c5b693"]]);let td=null,Ao="",nd="",rd="",od=null,hm=null,Nt=1,Pr=!1;const mm={isAutofitRunnig:!1,init(t={},n=!0){n&&console.log("autofit.js is running");const{dw:r=1920,dh:o=1080,el:i=typeof t=="string"?t:"body",resize:a=!0,ignore:l=[],transition:c="none",delay:s=0,limit:d=.1}=t;td=i;let f=document.querySelector(i);if(!f){console.error(`autofit: '${i}' is not exist`);return}const u=document.createElement("style"),p=document.createElement("style");u.lang="text/css",p.lang="text/css",u.id="autofit-style",p.id="ignoreStyle",u.innerHTML="body {overflow: hidden;}";const m=document.querySelector("body");m.appendChild(u),m.appendChild(p),f.style.height=`${o}px`,f.style.width=`${r}px`,f.style.transformOrigin="0 0",f.style.overflow="hidden",id(r,o,f,l,d),od=()=>{clearTimeout(hm),s!=0?hm=setTimeout(()=>{id(r,o,f,l,d),Pr&&gm(Ao,rd,nd)},s):(id(r,o,f,l,d),Pr&&gm(Ao,rd,nd))},a&&window.addEventListener("resize",od),this.isAutofitRunnig=!0,setTimeout(()=>{f.style.transition=`${c}s`})},off(t="body"){try{Pr=!1,window.removeEventListener("resize",od),document.querySelector("#autofit-style").remove();const n=document.querySelector("#ignoreStyle");n&&n.remove(),document.querySelector(td||t).style="",Pr&&tN()}catch(n){console.error("autofit: Failed to remove normally",n),this.isAutofitRunnig=!1}this.isAutofitRunnig&&console.log("autofit.js is off")}};function gm(t,n=!0,r=1){mm.isAutofitRunnig||console.error("autofit.js:autofit has not been initialized yet"),!t&&console.error(`autofit.js:bad selector: ${t}`),Ao=t,nd=r,rd=n;const o=document.querySelectorAll(t);if(o.length==0){console.error("autofit.js:elRectification found no element");return}for(let i of o){let a=Nt==1?1:Nt*r;Pr||(i.originalWidth=i.clientWidth,i.originalHeight=i.clientHeight),n?(i.style.width=`${i.originalWidth*a}px`,i.style.height=`${i.originalHeight*a}px`):(i.style.width=`${100*a}%`,i.style.height=`${100*a}%`),i.style.transform=`scale(${1/Nt})`,i.style.transformOrigin="0 0"}Pr=!0}function tN(){if(Ao)for(let t of document.querySelectorAll(Ao))t.style.width="",t.style.height="",t.style.transform=""}function id(t,n,r,o,i){let a=document.documentElement.clientHeight,l=document.documentElement.clientWidth;Nt=l/a<t/n?l/t:a/n,Nt=Math.abs(1-Nt)>i?Nt.toFixed(2):1;let c=Math.round(a/Nt),s=Math.round(l/Nt);r.style.height=`${c}px`,r.style.width=`${s}px`,r.style.transform=`scale(${Nt})`;const d=document.querySelector("#ignoreStyle");d.innerHTML="";for(let f of o){let u=f.el||f.dom;if(typeof f=="string"&&(u=f),!u){console.error(`autofit: bad selector: ${u}`);continue}let p=f.scale?f.scale:1/Nt,m=p!=Nt?f.fontSize:"autofit",h=p!=Nt?f.width:"autofit",_=p!=Nt?f.height:"autofit";new RegExp(`${u}( |{)`,"gm").test(d.innerHTML)||(d.innerHTML+=`
|
|
794
|
+
`("loading");e.defineComponent({name:"Loading",setup(t,{slots:n}){return()=>e.createVNode(H4,null,{default:()=>{var r;return[e.createVNode("svg",{width:"50px",height:"50px"},[e.createVNode("circle",{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"},null)]),e.createVNode("circle",{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"},null)])]),e.createVNode("div",{class:"loading-tip"},[(r=n.default)==null?void 0:r.call(n)])]}})}});const Y4=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(bV),{color:e.unref(r),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),X4=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(SV),{color:e.unref(r),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),q4=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(EV),{color:e.unref(r),ref_key:"customRef",ref:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.config.customize.title),1)]),_:1},8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),J4=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(GV),{color:e.unref(r),scanDuration:i.config.customize.scanDuration,haloDuration:i.config.customize.haloDuration,ref_key:"customRef",ref:o},null,8,["color","scanDuration","haloDuration"]))}})},Symbol.toStringTag,{value:"Module"})),K4=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(QV),{color:e.unref(r),duration:i.config.customize.duration,reverse:i.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","duration","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),Z4=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(a4),{color:e.unref(r),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),Q4=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(h4),{color:e.unref(r),duration:i.config.customize.duration,reverse:i.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","duration","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),eE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(C4),{color:e.unref(r),duration:i.config.customize.duration,ref_key:"customRef",ref:o},null,8,["color","duration"]))}})},Symbol.toStringTag,{value:"Module"})),tE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(D4),{color:e.unref(r),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),nE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(L4),{color:e.unref(r),reverse:i.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),rE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.decorationColor1||(a=n.config.customize)!=null&&a.decorationColor2?[n.config.customize.decorationColor1,n.config.customize.decorationColor2]:[]}),{customRef:o}=Me(n.config);return(i,a)=>(e.openBlock(),e.createBlock(e.unref(G4),{color:e.unref(r),reverse:i.config.customize.duration,ref_key:"customRef",ref:o},null,8,["color","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),oE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(XS),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),iE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(KS),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),aE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l,c,s;return e.openBlock(),e.createBlock(e.unref(hx),{color:e.unref(r),title:(l=n.config)==null?void 0:l.customize.title,titleWidth:(c=n.config)==null?void 0:c.customize.titleWidth,backgroundColor:(s=n.config)==null?void 0:s.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","title","titleWidth","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),lE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(gx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),cE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(yx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),dE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(Cx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),sE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(Vx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),fE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l,c;return e.openBlock(),e.createBlock(e.unref(Ax),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,reverse:(c=n.config)==null?void 0:c.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse"])}}})},Symbol.toStringTag,{value:"Module"})),uE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l,c;return e.openBlock(),e.createBlock(e.unref(qx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,reverse:(c=n.config)==null?void 0:c.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse"])}}})},Symbol.toStringTag,{value:"Module"})),pE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(Zx),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),hE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(tV),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),mE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l,c,s;return e.openBlock(),e.createBlock(e.unref(uV),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,reverse:(c=n.config)==null?void 0:c.customize.reverse,duration:(s=n.config)==null?void 0:s.customize.duration,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse","duration"])}}})},Symbol.toStringTag,{value:"Module"})),gE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{var i,a;return(i=n.config.customize)!=null&&i.borderMainColor||(a=n.config.customize)!=null&&a.borderSecondaryColor?[n.config.customize.borderMainColor,n.config.customize.borderSecondaryColor]:[]}),{customRef:o}=Me(n.config);return(i,a)=>{var l;return e.openBlock(),e.createBlock(e.unref(mV),{color:e.unref(r),backgroundColor:(l=n.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),_E=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{const o=n.config.customize.gradientColor0,i=n.config.customize.gradientColor1;return`linear-gradient(to bottom, ${o||i} , ${i||o})`});return(o,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:n.config.customize.width+"px","background-image":e.unref(r)}),class:"h-full"},null,4))}})},Symbol.toStringTag,{value:"Module"})),vE=["src"],yE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t;return(r,o)=>(e.openBlock(),e.createElementBlock("iframe",{src:n.config.customize.url,class:"w-full h-full border-0"},null,8,vE))}})},Symbol.toStringTag,{value:"Module"})),bE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const{proxy:n}=e.getCurrentInstance(),{resetUrl:r}=n.$globalUtils,o=t;return(i,a)=>(e.openBlock(),e.createBlock(e.unref(S.ElImage),{class:"w-full h-full",src:e.unref(r)(o.config.customize.url),fit:o.config.customize.fit},null,8,["src","fit"]))}})},Symbol.toStringTag,{value:"Module"})),wE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>`-webkit-linear-gradient(${n.config.customize.colorPosition}, ${n.config.customize.startColor}, ${n.config.customize.endColor}`);return(o,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...n.config.customize,fontSize:n.config.customize.fontSize+"px",letterSpacing:n.config.customize.letterSpacing+"px",backgroundImage:e.unref(r),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(n.config.customize.title),5))}})},Symbol.toStringTag,{value:"Module"})),CE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{const o=n.config.customize.gradientColor0,i=n.config.customize.gradientColor1;return`linear-gradient(to ${n.config.customize.colorPosition}, ${o||i} , ${i||o})`});return(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full",style:e.normalizeStyle({"background-image":e.unref(r),borderRadius:n.config.customize.borderRadius+"px"})},null,4))}})},Symbol.toStringTag,{value:"Module"})),SE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>`-webkit-linear-gradient(${n.config.customize.colorPosition}, ${n.config.customize.startColor}, ${n.config.customize.endColor}`);return(o,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...n.config.customize,fontSize:n.config.customize.fontSize+"px",letterSpacing:n.config.customize.letterSpacing+"px",backgroundImage:e.unref(r),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(n.config.customize.title),5))}})},Symbol.toStringTag,{value:"Module"})),xE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.ref(),o=()=>{r.value=dr().format("YYYY-MM-DD HH:mm:ss")},i=setInterval(()=>{o()},1e3);o(),e.onBeforeUnmount(()=>{i&&clearInterval(i)});const a=e.computed(()=>`-webkit-linear-gradient(${n.config.customize.colorPosition}, ${n.config.customize.startColor}, ${n.config.customize.endColor}`);return(l,c)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...n.config.customize,fontSize:n.config.customize.fontSize+"px",letterSpacing:n.config.customize.letterSpacing+"px",backgroundImage:e.unref(a),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(e.unref(r)),5))}})},Symbol.toStringTag,{value:"Module"})),VE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const n=t,r=e.computed(()=>{const o=n.config.customize.gradientColor0,i=n.config.customize.gradientColor1;return`linear-gradient(to right, ${o||i} , ${i||o})`});return(o,i)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:n.config.customize.height+"px","background-image":e.unref(r)}),class:"w-full"},null,4))}})},Symbol.toStringTag,{value:"Module"})),Qh={};for(let t=0;t<=4;t+=1){let n=null;if(t==0&&(n=Object.assign({"../decoration/decoration1/index.vue":Y4,"../decoration/decoration10/index.vue":X4,"../decoration/decoration11/index.vue":q4,"../decoration/decoration12/index.vue":J4,"../decoration/decoration2/index.vue":K4,"../decoration/decoration3/index.vue":Z4,"../decoration/decoration4/index.vue":Q4,"../decoration/decoration5/index.vue":eE,"../decoration/decoration6/index.vue":tE,"../decoration/decoration8/index.vue":nE,"../decoration/decoration9/index.vue":rE})),t==1&&(n=Object.assign({"../border/border1/index.vue":oE,"../border/border10/index.vue":iE,"../border/border11/index.vue":aE,"../border/border12/index.vue":lE,"../border/border13/index.vue":cE,"../border/border2/index.vue":dE,"../border/border3/index.vue":sE,"../border/border4/index.vue":fE,"../border/border5/index.vue":uE,"../border/border6/index.vue":pE,"../border/border7/index.vue":hE,"../border/border8/index.vue":mE,"../border/border9/index.vue":gE})),t==2&&(n=Object.assign({"../basic/horizontal-line/index.vue":_E,"../basic/iframe/index.vue":yE,"../basic/img/index.vue":bE,"../basic/number/index.vue":wE,"../basic/square/index.vue":CE,"../basic/text/index.vue":SE,"../basic/time/index.vue":xE,"../basic/vertical-line/index.vue":VE})),n)for(const[r,o]of Object.entries(n)){const i=r.split("/")[2];Qh[i]=o.default}}function Yc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(c=>!i.dataShow.hide.includes(c));i.dataset.dimensions=[i.dataShow.x,...l],i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(c=>{c.label.formatter=s=>{const d=i.custom,f=s.data[s.seriesName];if((d==null?void 0:d.toFixed)!=="")try{return Number(f).toFixed(d.toFixed)}catch{return f}return f}}),i.series=l.map((c,s)=>t.value[c]),a&&a()})},r={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:n,customSeriesData:t,seriesItem:r,barConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function da(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(c=>!i.dataShow.hide.includes(c));i.dataset.dimensions=[i.dataShow.x,...l],i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(c=>{c.label.formatter=s=>{const d=i.custom,f=s.data[s.seriesName];if((d==null?void 0:d.toFixed)!=="")try{return Number(f).toFixed(d.toFixed)}catch{return f}return f}}),i.series=l.map((c,s)=>t.value[c]),a&&a()})},r={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,position:"top",color:"#000000",fontSize:10,rotate:0}};return{init:n,customSeriesData:t,seriesItem:r,lineConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Xc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{i.dataset.dimensions=[i.dataShow.x,i.dataShow.y],t.value[i.dataShow.y]||(t.value[i.dataShow.y]=JSON.parse(JSON.stringify(r))),window.customSeriesData=t.value,i.series=[t.value[i.dataShow.y]],a&&a()})},r={type:"pie",radius:["40%","65%"],center:["50%","50%"],roseType:!1,avoidLabelOverlap:!1,itemStyle:{show:!0,borderRadius:10,borderColor:"#fff",borderWidth:2},emphasis:{labelLine:{show:!0}},labelLine:{show:!0},label:{show:!0,color:"#000000",fontSize:10,position:"center",formatter:"{b}"}};return{init:n,customSeriesData:t,seriesItem:r,pieConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"item"},dataShow:{x:"",y:""},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},dataset:{},series:[]}}}function qc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(a,l)=>{a.series=[],setTimeout(()=>{const c=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=[a.dataShow.x,...c],a.dataShow.y.forEach((s,d)=>{if(t.value[s])return;const f=a.dataShow.y.length==d+1&&a.dataShow.y.length>0;t.value[s]=JSON.parse(JSON.stringify(f?r:o))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(s=>{s.label.formatter=d=>{const f=a.custom,u=d.data[d.seriesName];if((f==null?void 0:f.toFixed)!=="")try{return Number(u).toFixed(f.toFixed)}catch{return u}return u}}),a.series=c.map((s,d)=>t.value[s]),l&&l()})},r={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}},o={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:n,customSeriesData:t,seriesLineItem:r,seriesBarItem:o,barsLinesConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Jc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(c=>!i.dataShow.hide.includes(c));i.dataset.dimensions=[i.dataShow.x,...l],i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(c=>{c.label.formatter=s=>{const d=i.custom,f=s.data[s.seriesName];if((d==null?void 0:d.toFixed)!=="")try{return Number(f).toFixed(d.toFixed)}catch{return f}return f}}),i.series=l.map((c,s)=>t.value[c]),a&&a()})},r={type:"scatter",emphasis:{focus:"series"},symbolSize:12,itemStyle:{color:null},markArea:{silent:!0,itemStyle:{color:"transparent",borderWidth:1,borderType:"dashed"},data:[[{xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:n,customSeriesData:t,seriesItem:r,scatterCfg:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Kc(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(s=>!i.dataShow.hide.includes(s));i.dataset.dimensions=l,e.unref(t).type||(t.value=JSON.parse(JSON.stringify(r))),window.customSeriesData=t.value,i.radar.indicator=i.dataset.source.map(s=>({name:s[i.dataShow.x]}));const c=[];i.dataset.dimensions.forEach(s=>{c.push({name:s,value:i.dataset.source.map(d=>d[s])})}),i.series=[{...t.value,data:c}],e.unref(t).label.formatter=s=>{const d=i.custom,f=s.value;if((d==null?void 0:d.toFixed)!=="")try{return Number(f).toFixed(d.toFixed)}catch{return f}return f},a&&a()})},r={type:"radar",areaStyle:{opacity:.1},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10},data:[]};return{init:n,customSeriesData:t,seriesItem:r,radarConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},radar:{shape:"polygon",radius:["0%","60%"],center:["50%","55%"],splitArea:{show:!0},splitLine:{show:!0},axisName:{show:!0,color:"#000",fontSize:12},axisLine:{show:!0},axisTick:{show:!0},indicator:[]},dataset:{},series:[]}}}function em(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{typeof i.dataShow.y=="string"&&i.dataShow.y&&(i.dataShow.y=[i.dataShow.y]);const l=i.dataShow.y.filter(c=>{var s;return!(((s=i.dataShow)==null?void 0:s.hide)??[]).includes(c)});i.dataset.dimensions=l,i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),i.customSeriesData=t.value,window.customSeriesData=t.value,a&&a()})},r={prefix:"",suffix:"",toFixed:0,color:null,fontSize:14,bgColor:null};return{init:n,seriesItem:r,customSeriesData:t,numberConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}function sa(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),n=(i,a)=>{i.series=[],setTimeout(()=>{const l=i.dataShow.y.filter(c=>!i.dataShow.hide.includes(c));i.dataset.dimensions=l,i.dataShow.y.forEach(c=>{t.value[c]||(t.value[c]=JSON.parse(JSON.stringify(r)))}),i.customSeriesData=t.value,window.customSeriesData=t.value,a&&a()})},r={prefix:"",suffix:"",toFixed:0,color:null};return{init:n,customSeriesData:t,tableConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}const tm=[{code:"100000",name:"中华人民共和国",region_level:0,children:[{code:"11",name:"北京市",region_level:1,children:[{code:"1101",name:"北京市",region_level:2,children:[{code:"110101",name:"东城区",region_level:3,children:[]},{code:"110102",name:"西城区",region_level:3,children:[]},{code:"110105",name:"朝阳区",region_level:3,children:[]},{code:"110106",name:"丰台区",region_level:3,children:[]},{code:"110107",name:"石景山区",region_level:3,children:[]},{code:"110108",name:"海淀区",region_level:3,children:[]},{code:"110109",name:"门头沟区",region_level:3,children:[]},{code:"110111",name:"房山区",region_level:3,children:[]},{code:"110112",name:"通州区",region_level:3,children:[]},{code:"110113",name:"顺义区",region_level:3,children:[]},{code:"110114",name:"昌平区",region_level:3,children:[]},{code:"110115",name:"大兴区",region_level:3,children:[]},{code:"110116",name:"怀柔区",region_level:3,children:[]},{code:"110117",name:"平谷区",region_level:3,children:[]},{code:"110118",name:"密云区",region_level:3,children:[]},{code:"110119",name:"延庆区",region_level:3,children:[]}]}]},{code:"12",name:"天津市",region_level:1,children:[{code:"1201",name:"天津市",region_level:2,children:[{code:"120101",name:"和平区",region_level:3,children:[]},{code:"120102",name:"河东区",region_level:3,children:[]},{code:"120103",name:"河西区",region_level:3,children:[]},{code:"120104",name:"南开区",region_level:3,children:[]},{code:"120105",name:"河北区",region_level:3,children:[]},{code:"120106",name:"红桥区",region_level:3,children:[]},{code:"120110",name:"东丽区",region_level:3,children:[]},{code:"120111",name:"西青区",region_level:3,children:[]},{code:"120112",name:"津南区",region_level:3,children:[]},{code:"120113",name:"北辰区",region_level:3,children:[]},{code:"120114",name:"武清区",region_level:3,children:[]},{code:"120115",name:"宝坻区",region_level:3,children:[]},{code:"120116",name:"滨海新区",region_level:3,children:[]},{code:"120117",name:"宁河区",region_level:3,children:[]},{code:"120118",name:"静海区",region_level:3,children:[]},{code:"120119",name:"蓟州区",region_level:3,children:[]}]}]},{code:"13",name:"河北省",region_level:1,children:[{code:"1301",name:"石家庄市",region_level:2,children:[{code:"130102",name:"长安区",region_level:3,children:[]},{code:"130104",name:"桥西区",region_level:3,children:[]},{code:"130105",name:"新华区",region_level:3,children:[]},{code:"130107",name:"井陉矿区",region_level:3,children:[]},{code:"130108",name:"裕华区",region_level:3,children:[]},{code:"130109",name:"藁城区",region_level:3,children:[]},{code:"130110",name:"鹿泉区",region_level:3,children:[]},{code:"130111",name:"栾城区",region_level:3,children:[]},{code:"130121",name:"井陉县",region_level:3,children:[]},{code:"130123",name:"正定县",region_level:3,children:[]},{code:"130125",name:"行唐县",region_level:3,children:[]},{code:"130126",name:"灵寿县",region_level:3,children:[]},{code:"130127",name:"高邑县",region_level:3,children:[]},{code:"130128",name:"深泽县",region_level:3,children:[]},{code:"130129",name:"赞皇县",region_level:3,children:[]},{code:"130130",name:"无极县",region_level:3,children:[]},{code:"130131",name:"平山县",region_level:3,children:[]},{code:"130132",name:"元氏县",region_level:3,children:[]},{code:"130133",name:"赵县",region_level:3,children:[]},{code:"130181",name:"辛集市",region_level:3,children:[]},{code:"130183",name:"晋州市",region_level:3,children:[]},{code:"130184",name:"新乐市",region_level:3,children:[]}]},{code:"1302",name:"唐山市",region_level:2,children:[{code:"130202",name:"路南区",region_level:3,children:[]},{code:"130203",name:"路北区",region_level:3,children:[]},{code:"130204",name:"古冶区",region_level:3,children:[]},{code:"130205",name:"开平区",region_level:3,children:[]},{code:"130207",name:"丰南区",region_level:3,children:[]},{code:"130208",name:"丰润区",region_level:3,children:[]},{code:"130209",name:"曹妃甸区",region_level:3,children:[]},{code:"130224",name:"滦南县",region_level:3,children:[]},{code:"130225",name:"乐亭县",region_level:3,children:[]},{code:"130227",name:"迁西县",region_level:3,children:[]},{code:"130229",name:"玉田县",region_level:3,children:[]},{code:"130281",name:"遵化市",region_level:3,children:[]},{code:"130283",name:"迁安市",region_level:3,children:[]},{code:"130284",name:"滦州市",region_level:3,children:[]}]},{code:"1303",name:"秦皇岛市",region_level:2,children:[{code:"130302",name:"海港区",region_level:3,children:[]},{code:"130303",name:"山海关区",region_level:3,children:[]},{code:"130304",name:"北戴河区",region_level:3,children:[]},{code:"130306",name:"抚宁区",region_level:3,children:[]},{code:"130321",name:"青龙满族自治县",region_level:3,children:[]},{code:"130322",name:"昌黎县",region_level:3,children:[]},{code:"130324",name:"卢龙县",region_level:3,children:[]}]},{code:"1304",name:"邯郸市",region_level:2,children:[{code:"130402",name:"邯山区",region_level:3,children:[]},{code:"130403",name:"丛台区",region_level:3,children:[]},{code:"130404",name:"复兴区",region_level:3,children:[]},{code:"130406",name:"峰峰矿区",region_level:3,children:[]},{code:"130407",name:"肥乡区",region_level:3,children:[]},{code:"130408",name:"永年区",region_level:3,children:[]},{code:"130423",name:"临漳县",region_level:3,children:[]},{code:"130424",name:"成安县",region_level:3,children:[]},{code:"130425",name:"大名县",region_level:3,children:[]},{code:"130426",name:"涉县",region_level:3,children:[]},{code:"130427",name:"磁县",region_level:3,children:[]},{code:"130430",name:"邱县",region_level:3,children:[]},{code:"130431",name:"鸡泽县",region_level:3,children:[]},{code:"130432",name:"广平县",region_level:3,children:[]},{code:"130433",name:"馆陶县",region_level:3,children:[]},{code:"130434",name:"魏县",region_level:3,children:[]},{code:"130435",name:"曲周县",region_level:3,children:[]},{code:"130481",name:"武安市",region_level:3,children:[]}]},{code:"1305",name:"邢台市",region_level:2,children:[{code:"130502",name:"桥东区",region_level:3,children:[]},{code:"130503",name:"桥西区",region_level:3,children:[]},{code:"130521",name:"邢台县",region_level:3,children:[]},{code:"130522",name:"临城县",region_level:3,children:[]},{code:"130523",name:"内丘县",region_level:3,children:[]},{code:"130524",name:"柏乡县",region_level:3,children:[]},{code:"130525",name:"隆尧县",region_level:3,children:[]},{code:"130526",name:"任县",region_level:3,children:[]},{code:"130527",name:"南和县",region_level:3,children:[]},{code:"130528",name:"宁晋县",region_level:3,children:[]},{code:"130529",name:"巨鹿县",region_level:3,children:[]},{code:"130530",name:"新河县",region_level:3,children:[]},{code:"130531",name:"广宗县",region_level:3,children:[]},{code:"130532",name:"平乡县",region_level:3,children:[]},{code:"130533",name:"威县",region_level:3,children:[]},{code:"130534",name:"清河县",region_level:3,children:[]},{code:"130535",name:"临西县",region_level:3,children:[]},{code:"130581",name:"南宫市",region_level:3,children:[]},{code:"130582",name:"沙河市",region_level:3,children:[]}]},{code:"1306",name:"保定市",region_level:2,children:[{code:"130602",name:"竞秀区",region_level:3,children:[]},{code:"130606",name:"莲池区",region_level:3,children:[]},{code:"130607",name:"满城区",region_level:3,children:[]},{code:"130608",name:"清苑区",region_level:3,children:[]},{code:"130609",name:"徐水区",region_level:3,children:[]},{code:"130623",name:"涞水县",region_level:3,children:[]},{code:"130624",name:"阜平县",region_level:3,children:[]},{code:"130626",name:"定兴县",region_level:3,children:[]},{code:"130627",name:"唐县",region_level:3,children:[]},{code:"130628",name:"高阳县",region_level:3,children:[]},{code:"130629",name:"容城县",region_level:3,children:[]},{code:"130630",name:"涞源县",region_level:3,children:[]},{code:"130631",name:"望都县",region_level:3,children:[]},{code:"130632",name:"安新县",region_level:3,children:[]},{code:"130633",name:"易县",region_level:3,children:[]},{code:"130634",name:"曲阳县",region_level:3,children:[]},{code:"130635",name:"蠡县",region_level:3,children:[]},{code:"130636",name:"顺平县",region_level:3,children:[]},{code:"130637",name:"博野县",region_level:3,children:[]},{code:"130638",name:"雄县",region_level:3,children:[]},{code:"130681",name:"涿州市",region_level:3,children:[]},{code:"130682",name:"定州市",region_level:3,children:[]},{code:"130683",name:"安国市",region_level:3,children:[]},{code:"130684",name:"高碑店市",region_level:3,children:[]}]},{code:"1307",name:"张家口市",region_level:2,children:[{code:"130702",name:"桥东区",region_level:3,children:[]},{code:"130703",name:"桥西区",region_level:3,children:[]},{code:"130705",name:"宣化区",region_level:3,children:[]},{code:"130706",name:"下花园区",region_level:3,children:[]},{code:"130708",name:"万全区",region_level:3,children:[]},{code:"130709",name:"崇礼区",region_level:3,children:[]},{code:"130722",name:"张北县",region_level:3,children:[]},{code:"130723",name:"康保县",region_level:3,children:[]},{code:"130724",name:"沽源县",region_level:3,children:[]},{code:"130725",name:"尚义县",region_level:3,children:[]},{code:"130726",name:"蔚县",region_level:3,children:[]},{code:"130727",name:"阳原县",region_level:3,children:[]},{code:"130728",name:"怀安县",region_level:3,children:[]},{code:"130730",name:"怀来县",region_level:3,children:[]},{code:"130731",name:"涿鹿县",region_level:3,children:[]},{code:"130732",name:"赤城县",region_level:3,children:[]}]},{code:"1308",name:"承德市",region_level:2,children:[{code:"130802",name:"双桥区",region_level:3,children:[]},{code:"130803",name:"双滦区",region_level:3,children:[]},{code:"130804",name:"鹰手营子矿区",region_level:3,children:[]},{code:"130821",name:"承德县",region_level:3,children:[]},{code:"130822",name:"兴隆县",region_level:3,children:[]},{code:"130824",name:"滦平县",region_level:3,children:[]},{code:"130825",name:"隆化县",region_level:3,children:[]},{code:"130826",name:"丰宁满族自治县",region_level:3,children:[]},{code:"130827",name:"宽城满族自治县",region_level:3,children:[]},{code:"130828",name:"围场满族蒙古族自治县",region_level:3,children:[]},{code:"130881",name:"平泉市",region_level:3,children:[]}]},{code:"1309",name:"沧州市",region_level:2,children:[{code:"130902",name:"新华区",region_level:3,children:[]},{code:"130903",name:"运河区",region_level:3,children:[]},{code:"130921",name:"沧县",region_level:3,children:[]},{code:"130922",name:"青县",region_level:3,children:[]},{code:"130923",name:"东光县",region_level:3,children:[]},{code:"130924",name:"海兴县",region_level:3,children:[]},{code:"130925",name:"盐山县",region_level:3,children:[]},{code:"130926",name:"肃宁县",region_level:3,children:[]},{code:"130927",name:"南皮县",region_level:3,children:[]},{code:"130928",name:"吴桥县",region_level:3,children:[]},{code:"130929",name:"献县",region_level:3,children:[]},{code:"130930",name:"孟村回族自治县",region_level:3,children:[]},{code:"130981",name:"泊头市",region_level:3,children:[]},{code:"130982",name:"任丘市",region_level:3,children:[]},{code:"130983",name:"黄骅市",region_level:3,children:[]},{code:"130984",name:"河间市",region_level:3,children:[]}]},{code:"1310",name:"廊坊市",region_level:2,children:[{code:"131002",name:"安次区",region_level:3,children:[]},{code:"131003",name:"广阳区",region_level:3,children:[]},{code:"131022",name:"固安县",region_level:3,children:[]},{code:"131023",name:"永清县",region_level:3,children:[]},{code:"131024",name:"香河县",region_level:3,children:[]},{code:"131025",name:"大城县",region_level:3,children:[]},{code:"131026",name:"文安县",region_level:3,children:[]},{code:"131028",name:"大厂回族自治县",region_level:3,children:[]},{code:"131081",name:"霸州市",region_level:3,children:[]},{code:"131082",name:"三河市",region_level:3,children:[]}]},{code:"1311",name:"衡水市",region_level:2,children:[{code:"131102",name:"桃城区",region_level:3,children:[]},{code:"131103",name:"冀州区",region_level:3,children:[]},{code:"131121",name:"枣强县",region_level:3,children:[]},{code:"131122",name:"武邑县",region_level:3,children:[]},{code:"131123",name:"武强县",region_level:3,children:[]},{code:"131124",name:"饶阳县",region_level:3,children:[]},{code:"131125",name:"安平县",region_level:3,children:[]},{code:"131126",name:"故城县",region_level:3,children:[]},{code:"131127",name:"景县",region_level:3,children:[]},{code:"131128",name:"阜城县",region_level:3,children:[]},{code:"131182",name:"深州市",region_level:3,children:[]}]}]},{code:"14",name:"山西省",region_level:1,children:[{code:"1401",name:"太原市",region_level:2,children:[{code:"140105",name:"小店区",region_level:3,children:[]},{code:"140106",name:"迎泽区",region_level:3,children:[]},{code:"140107",name:"杏花岭区",region_level:3,children:[]},{code:"140108",name:"尖草坪区",region_level:3,children:[]},{code:"140109",name:"万柏林区",region_level:3,children:[]},{code:"140110",name:"晋源区",region_level:3,children:[]},{code:"140121",name:"清徐县",region_level:3,children:[]},{code:"140122",name:"阳曲县",region_level:3,children:[]},{code:"140123",name:"娄烦县",region_level:3,children:[]},{code:"140181",name:"古交市",region_level:3,children:[]}]},{code:"1402",name:"大同市",region_level:2,children:[{code:"140212",name:"新荣区",region_level:3,children:[]},{code:"140213",name:"平城区",region_level:3,children:[]},{code:"140214",name:"云冈区",region_level:3,children:[]},{code:"140215",name:"云州区",region_level:3,children:[]},{code:"140221",name:"阳高县",region_level:3,children:[]},{code:"140222",name:"天镇县",region_level:3,children:[]},{code:"140223",name:"广灵县",region_level:3,children:[]},{code:"140224",name:"灵丘县",region_level:3,children:[]},{code:"140225",name:"浑源县",region_level:3,children:[]},{code:"140226",name:"左云县",region_level:3,children:[]}]},{code:"1403",name:"阳泉市",region_level:2,children:[{code:"140302",name:"城区",region_level:3,children:[]},{code:"140303",name:"矿区",region_level:3,children:[]},{code:"140311",name:"郊区",region_level:3,children:[]},{code:"140321",name:"平定县",region_level:3,children:[]},{code:"140322",name:"盂县",region_level:3,children:[]}]},{code:"1404",name:"长治市",region_level:2,children:[{code:"140403",name:"潞州区",region_level:3,children:[]},{code:"140404",name:"上党区",region_level:3,children:[]},{code:"140405",name:"屯留区",region_level:3,children:[]},{code:"140406",name:"潞城区",region_level:3,children:[]},{code:"140423",name:"襄垣县",region_level:3,children:[]},{code:"140425",name:"平顺县",region_level:3,children:[]},{code:"140426",name:"黎城县",region_level:3,children:[]},{code:"140427",name:"壶关县",region_level:3,children:[]},{code:"140428",name:"长子县",region_level:3,children:[]},{code:"140429",name:"武乡县",region_level:3,children:[]},{code:"140430",name:"沁县",region_level:3,children:[]},{code:"140431",name:"沁源县",region_level:3,children:[]}]},{code:"1405",name:"晋城市",region_level:2,children:[{code:"140502",name:"城区",region_level:3,children:[]},{code:"140521",name:"沁水县",region_level:3,children:[]},{code:"140522",name:"阳城县",region_level:3,children:[]},{code:"140524",name:"陵川县",region_level:3,children:[]},{code:"140525",name:"泽州县",region_level:3,children:[]},{code:"140581",name:"高平市",region_level:3,children:[]}]},{code:"1406",name:"朔州市",region_level:2,children:[{code:"140602",name:"朔城区",region_level:3,children:[]},{code:"140603",name:"平鲁区",region_level:3,children:[]},{code:"140621",name:"山阴县",region_level:3,children:[]},{code:"140622",name:"应县",region_level:3,children:[]},{code:"140623",name:"右玉县",region_level:3,children:[]},{code:"140681",name:"怀仁市",region_level:3,children:[]}]},{code:"1407",name:"晋中市",region_level:2,children:[{code:"140702",name:"榆次区",region_level:3,children:[]},{code:"140703",name:"太谷区",region_level:3,children:[]},{code:"140721",name:"榆社县",region_level:3,children:[]},{code:"140722",name:"左权县",region_level:3,children:[]},{code:"140723",name:"和顺县",region_level:3,children:[]},{code:"140724",name:"昔阳县",region_level:3,children:[]},{code:"140725",name:"寿阳县",region_level:3,children:[]},{code:"140727",name:"祁县",region_level:3,children:[]},{code:"140728",name:"平遥县",region_level:3,children:[]},{code:"140729",name:"灵石县",region_level:3,children:[]},{code:"140781",name:"介休市",region_level:3,children:[]}]},{code:"1408",name:"运城市",region_level:2,children:[{code:"140802",name:"盐湖区",region_level:3,children:[]},{code:"140821",name:"临猗县",region_level:3,children:[]},{code:"140822",name:"万荣县",region_level:3,children:[]},{code:"140823",name:"闻喜县",region_level:3,children:[]},{code:"140824",name:"稷山县",region_level:3,children:[]},{code:"140825",name:"新绛县",region_level:3,children:[]},{code:"140826",name:"绛县",region_level:3,children:[]},{code:"140827",name:"垣曲县",region_level:3,children:[]},{code:"140828",name:"夏县",region_level:3,children:[]},{code:"140829",name:"平陆县",region_level:3,children:[]},{code:"140830",name:"芮城县",region_level:3,children:[]},{code:"140881",name:"永济市",region_level:3,children:[]},{code:"140882",name:"河津市",region_level:3,children:[]}]},{code:"1409",name:"忻州市",region_level:2,children:[{code:"140902",name:"忻府区",region_level:3,children:[]},{code:"140921",name:"定襄县",region_level:3,children:[]},{code:"140922",name:"五台县",region_level:3,children:[]},{code:"140923",name:"代县",region_level:3,children:[]},{code:"140924",name:"繁峙县",region_level:3,children:[]},{code:"140925",name:"宁武县",region_level:3,children:[]},{code:"140926",name:"静乐县",region_level:3,children:[]},{code:"140927",name:"神池县",region_level:3,children:[]},{code:"140928",name:"五寨县",region_level:3,children:[]},{code:"140929",name:"岢岚县",region_level:3,children:[]},{code:"140930",name:"河曲县",region_level:3,children:[]},{code:"140931",name:"保德县",region_level:3,children:[]},{code:"140932",name:"偏关县",region_level:3,children:[]},{code:"140981",name:"原平市",region_level:3,children:[]}]},{code:"1410",name:"临汾市",region_level:2,children:[{code:"141002",name:"尧都区",region_level:3,children:[]},{code:"141021",name:"曲沃县",region_level:3,children:[]},{code:"141022",name:"翼城县",region_level:3,children:[]},{code:"141023",name:"襄汾县",region_level:3,children:[]},{code:"141024",name:"洪洞县",region_level:3,children:[]},{code:"141025",name:"古县",region_level:3,children:[]},{code:"141026",name:"安泽县",region_level:3,children:[]},{code:"141027",name:"浮山县",region_level:3,children:[]},{code:"141028",name:"吉县",region_level:3,children:[]},{code:"141029",name:"乡宁县",region_level:3,children:[]},{code:"141030",name:"大宁县",region_level:3,children:[]},{code:"141031",name:"隰县",region_level:3,children:[]},{code:"141032",name:"永和县",region_level:3,children:[]},{code:"141033",name:"蒲县",region_level:3,children:[]},{code:"141034",name:"汾西县",region_level:3,children:[]},{code:"141081",name:"侯马市",region_level:3,children:[]},{code:"141082",name:"霍州市",region_level:3,children:[]}]},{code:"1411",name:"吕梁市",region_level:2,children:[{code:"141102",name:"离石区",region_level:3,children:[]},{code:"141121",name:"文水县",region_level:3,children:[]},{code:"141122",name:"交城县",region_level:3,children:[]},{code:"141123",name:"兴县",region_level:3,children:[]},{code:"141124",name:"临县",region_level:3,children:[]},{code:"141125",name:"柳林县",region_level:3,children:[]},{code:"141126",name:"石楼县",region_level:3,children:[]},{code:"141127",name:"岚县",region_level:3,children:[]},{code:"141128",name:"方山县",region_level:3,children:[]},{code:"141129",name:"中阳县",region_level:3,children:[]},{code:"141130",name:"交口县",region_level:3,children:[]},{code:"141181",name:"孝义市",region_level:3,children:[]},{code:"141182",name:"汾阳市",region_level:3,children:[]}]}]},{code:"15",name:"内蒙古自治区",region_level:1,children:[{code:"1501",name:"呼和浩特市",region_level:2,children:[{code:"150102",name:"新城区",region_level:3,children:[]},{code:"150103",name:"回民区",region_level:3,children:[]},{code:"150104",name:"玉泉区",region_level:3,children:[]},{code:"150105",name:"赛罕区",region_level:3,children:[]},{code:"150121",name:"土默特左旗",region_level:3,children:[]},{code:"150122",name:"托克托县",region_level:3,children:[]},{code:"150123",name:"和林格尔县",region_level:3,children:[]},{code:"150124",name:"清水河县",region_level:3,children:[]},{code:"150125",name:"武川县",region_level:3,children:[]}]},{code:"1502",name:"包头市",region_level:2,children:[{code:"150202",name:"东河区",region_level:3,children:[]},{code:"150203",name:"昆都仑区",region_level:3,children:[]},{code:"150204",name:"青山区",region_level:3,children:[]},{code:"150205",name:"石拐区",region_level:3,children:[]},{code:"150206",name:"白云鄂博矿区",region_level:3,children:[]},{code:"150207",name:"九原区",region_level:3,children:[]},{code:"150221",name:"土默特右旗",region_level:3,children:[]},{code:"150222",name:"固阳县",region_level:3,children:[]},{code:"150223",name:"达尔罕茂明安联合旗",region_level:3,children:[]}]},{code:"1503",name:"乌海市",region_level:2,children:[{code:"150302",name:"海勃湾区",region_level:3,children:[]},{code:"150303",name:"海南区",region_level:3,children:[]},{code:"150304",name:"乌达区",region_level:3,children:[]}]},{code:"1504",name:"赤峰市",region_level:2,children:[{code:"150402",name:"红山区",region_level:3,children:[]},{code:"150403",name:"元宝山区",region_level:3,children:[]},{code:"150404",name:"松山区",region_level:3,children:[]},{code:"150421",name:"阿鲁科尔沁旗",region_level:3,children:[]},{code:"150422",name:"巴林左旗",region_level:3,children:[]},{code:"150423",name:"巴林右旗",region_level:3,children:[]},{code:"150424",name:"林西县",region_level:3,children:[]},{code:"150425",name:"克什克腾旗",region_level:3,children:[]},{code:"150426",name:"翁牛特旗",region_level:3,children:[]},{code:"150428",name:"喀喇沁旗",region_level:3,children:[]},{code:"150429",name:"宁城县",region_level:3,children:[]},{code:"150430",name:"敖汉旗",region_level:3,children:[]}]},{code:"1505",name:"通辽市",region_level:2,children:[{code:"150502",name:"科尔沁区",region_level:3,children:[]},{code:"150521",name:"科尔沁左翼中旗",region_level:3,children:[]},{code:"150522",name:"科尔沁左翼后旗",region_level:3,children:[]},{code:"150523",name:"开鲁县",region_level:3,children:[]},{code:"150524",name:"库伦旗",region_level:3,children:[]},{code:"150525",name:"奈曼旗",region_level:3,children:[]},{code:"150526",name:"扎鲁特旗",region_level:3,children:[]},{code:"150581",name:"霍林郭勒市",region_level:3,children:[]}]},{code:"1506",name:"鄂尔多斯市",region_level:2,children:[{code:"150602",name:"东胜区",region_level:3,children:[]},{code:"150603",name:"康巴什区",region_level:3,children:[]},{code:"150621",name:"达拉特旗",region_level:3,children:[]},{code:"150622",name:"准格尔旗",region_level:3,children:[]},{code:"150623",name:"鄂托克前旗",region_level:3,children:[]},{code:"150624",name:"鄂托克旗",region_level:3,children:[]},{code:"150625",name:"杭锦旗",region_level:3,children:[]},{code:"150626",name:"乌审旗",region_level:3,children:[]},{code:"150627",name:"伊金霍洛旗",region_level:3,children:[]}]},{code:"1507",name:"呼伦贝尔市",region_level:2,children:[{code:"150702",name:"海拉尔区",region_level:3,children:[]},{code:"150703",name:"扎赉诺尔区",region_level:3,children:[]},{code:"150721",name:"阿荣旗",region_level:3,children:[]},{code:"150722",name:"莫力达瓦达斡尔族自治旗",region_level:3,children:[]},{code:"150723",name:"鄂伦春自治旗",region_level:3,children:[]},{code:"150724",name:"鄂温克族自治旗",region_level:3,children:[]},{code:"150725",name:"陈巴尔虎旗",region_level:3,children:[]},{code:"150726",name:"新巴尔虎左旗",region_level:3,children:[]},{code:"150727",name:"新巴尔虎右旗",region_level:3,children:[]},{code:"150781",name:"满洲里市",region_level:3,children:[]},{code:"150782",name:"牙克石市",region_level:3,children:[]},{code:"150783",name:"扎兰屯市",region_level:3,children:[]},{code:"150784",name:"额尔古纳市",region_level:3,children:[]},{code:"150785",name:"根河市",region_level:3,children:[]}]},{code:"1508",name:"巴彦淖尔市",region_level:2,children:[{code:"150802",name:"临河区",region_level:3,children:[]},{code:"150821",name:"五原县",region_level:3,children:[]},{code:"150822",name:"磴口县",region_level:3,children:[]},{code:"150823",name:"乌拉特前旗",region_level:3,children:[]},{code:"150824",name:"乌拉特中旗",region_level:3,children:[]},{code:"150825",name:"乌拉特后旗",region_level:3,children:[]},{code:"150826",name:"杭锦后旗",region_level:3,children:[]}]},{code:"1509",name:"乌兰察布市",region_level:2,children:[{code:"150902",name:"集宁区",region_level:3,children:[]},{code:"150921",name:"卓资县",region_level:3,children:[]},{code:"150922",name:"化德县",region_level:3,children:[]},{code:"150923",name:"商都县",region_level:3,children:[]},{code:"150924",name:"兴和县",region_level:3,children:[]},{code:"150925",name:"凉城县",region_level:3,children:[]},{code:"150926",name:"察哈尔右翼前旗",region_level:3,children:[]},{code:"150927",name:"察哈尔右翼中旗",region_level:3,children:[]},{code:"150928",name:"察哈尔右翼后旗",region_level:3,children:[]},{code:"150929",name:"四子王旗",region_level:3,children:[]},{code:"150981",name:"丰镇市",region_level:3,children:[]}]},{code:"1522",name:"兴安盟",region_level:2,children:[{code:"152201",name:"乌兰浩特市",region_level:3,children:[]},{code:"152202",name:"阿尔山市",region_level:3,children:[]},{code:"152221",name:"科尔沁右翼前旗",region_level:3,children:[]},{code:"152222",name:"科尔沁右翼中旗",region_level:3,children:[]},{code:"152223",name:"扎赉特旗",region_level:3,children:[]},{code:"152224",name:"突泉县",region_level:3,children:[]}]},{code:"1525",name:"锡林郭勒盟",region_level:2,children:[{code:"152501",name:"二连浩特市",region_level:3,children:[]},{code:"152502",name:"锡林浩特市",region_level:3,children:[]},{code:"152522",name:"阿巴嘎旗",region_level:3,children:[]},{code:"152523",name:"苏尼特左旗",region_level:3,children:[]},{code:"152524",name:"苏尼特右旗",region_level:3,children:[]},{code:"152525",name:"东乌珠穆沁旗",region_level:3,children:[]},{code:"152526",name:"西乌珠穆沁旗",region_level:3,children:[]},{code:"152527",name:"太仆寺旗",region_level:3,children:[]},{code:"152528",name:"镶黄旗",region_level:3,children:[]},{code:"152529",name:"正镶白旗",region_level:3,children:[]},{code:"152530",name:"正蓝旗",region_level:3,children:[]},{code:"152531",name:"多伦县",region_level:3,children:[]}]},{code:"1529",name:"阿拉善盟",region_level:2,children:[{code:"152921",name:"阿拉善左旗",region_level:3,children:[]},{code:"152922",name:"阿拉善右旗",region_level:3,children:[]},{code:"152923",name:"额济纳旗",region_level:3,children:[]}]}]},{code:"21",name:"辽宁省",region_level:1,children:[{code:"2101",name:"沈阳市",region_level:2,children:[{code:"210102",name:"和平区",region_level:3,children:[]},{code:"210103",name:"沈河区",region_level:3,children:[]},{code:"210104",name:"大东区",region_level:3,children:[]},{code:"210105",name:"皇姑区",region_level:3,children:[]},{code:"210106",name:"铁西区",region_level:3,children:[]},{code:"210111",name:"苏家屯区",region_level:3,children:[]},{code:"210112",name:"浑南区",region_level:3,children:[]},{code:"210113",name:"沈北新区",region_level:3,children:[]},{code:"210114",name:"于洪区",region_level:3,children:[]},{code:"210115",name:"辽中区",region_level:3,children:[]},{code:"210123",name:"康平县",region_level:3,children:[]},{code:"210124",name:"法库县",region_level:3,children:[]},{code:"210181",name:"新民市",region_level:3,children:[]}]},{code:"2102",name:"大连市",region_level:2,children:[{code:"210202",name:"中山区",region_level:3,children:[]},{code:"210203",name:"西岗区",region_level:3,children:[]},{code:"210204",name:"沙河口区",region_level:3,children:[]},{code:"210211",name:"甘井子区",region_level:3,children:[]},{code:"210212",name:"旅顺口区",region_level:3,children:[]},{code:"210213",name:"金州区",region_level:3,children:[]},{code:"210214",name:"普兰店区",region_level:3,children:[]},{code:"210224",name:"长海县",region_level:3,children:[]},{code:"210281",name:"瓦房店市",region_level:3,children:[]},{code:"210283",name:"庄河市",region_level:3,children:[]}]},{code:"2103",name:"鞍山市",region_level:2,children:[{code:"210302",name:"铁东区",region_level:3,children:[]},{code:"210303",name:"铁西区",region_level:3,children:[]},{code:"210304",name:"立山区",region_level:3,children:[]},{code:"210311",name:"千山区",region_level:3,children:[]},{code:"210321",name:"台安县",region_level:3,children:[]},{code:"210323",name:"岫岩满族自治县",region_level:3,children:[]},{code:"210381",name:"海城市",region_level:3,children:[]}]},{code:"2104",name:"抚顺市",region_level:2,children:[{code:"210402",name:"新抚区",region_level:3,children:[]},{code:"210403",name:"东洲区",region_level:3,children:[]},{code:"210404",name:"望花区",region_level:3,children:[]},{code:"210411",name:"顺城区",region_level:3,children:[]},{code:"210421",name:"抚顺县",region_level:3,children:[]},{code:"210422",name:"新宾满族自治县",region_level:3,children:[]},{code:"210423",name:"清原满族自治县",region_level:3,children:[]}]},{code:"2105",name:"本溪市",region_level:2,children:[{code:"210502",name:"平山区",region_level:3,children:[]},{code:"210503",name:"溪湖区",region_level:3,children:[]},{code:"210504",name:"明山区",region_level:3,children:[]},{code:"210505",name:"南芬区",region_level:3,children:[]},{code:"210521",name:"本溪满族自治县",region_level:3,children:[]},{code:"210522",name:"桓仁满族自治县",region_level:3,children:[]}]},{code:"2106",name:"丹东市",region_level:2,children:[{code:"210602",name:"元宝区",region_level:3,children:[]},{code:"210603",name:"振兴区",region_level:3,children:[]},{code:"210604",name:"振安区",region_level:3,children:[]},{code:"210624",name:"宽甸满族自治县",region_level:3,children:[]},{code:"210681",name:"东港市",region_level:3,children:[]},{code:"210682",name:"凤城市",region_level:3,children:[]}]},{code:"2107",name:"锦州市",region_level:2,children:[{code:"210702",name:"古塔区",region_level:3,children:[]},{code:"210703",name:"凌河区",region_level:3,children:[]},{code:"210711",name:"太和区",region_level:3,children:[]},{code:"210726",name:"黑山县",region_level:3,children:[]},{code:"210727",name:"义县",region_level:3,children:[]},{code:"210781",name:"凌海市",region_level:3,children:[]},{code:"210782",name:"北镇市",region_level:3,children:[]}]},{code:"2108",name:"营口市",region_level:2,children:[{code:"210802",name:"站前区",region_level:3,children:[]},{code:"210803",name:"西市区",region_level:3,children:[]},{code:"210804",name:"鲅鱼圈区",region_level:3,children:[]},{code:"210811",name:"老边区",region_level:3,children:[]},{code:"210881",name:"盖州市",region_level:3,children:[]},{code:"210882",name:"大石桥市",region_level:3,children:[]}]},{code:"2109",name:"阜新市",region_level:2,children:[{code:"210902",name:"海州区",region_level:3,children:[]},{code:"210903",name:"新邱区",region_level:3,children:[]},{code:"210904",name:"太平区",region_level:3,children:[]},{code:"210905",name:"清河门区",region_level:3,children:[]},{code:"210911",name:"细河区",region_level:3,children:[]},{code:"210921",name:"阜新蒙古族自治县",region_level:3,children:[]},{code:"210922",name:"彰武县",region_level:3,children:[]}]},{code:"2110",name:"辽阳市",region_level:2,children:[{code:"211002",name:"白塔区",region_level:3,children:[]},{code:"211003",name:"文圣区",region_level:3,children:[]},{code:"211004",name:"宏伟区",region_level:3,children:[]},{code:"211005",name:"弓长岭区",region_level:3,children:[]},{code:"211011",name:"太子河区",region_level:3,children:[]},{code:"211021",name:"辽阳县",region_level:3,children:[]},{code:"211081",name:"灯塔市",region_level:3,children:[]}]},{code:"2111",name:"盘锦市",region_level:2,children:[{code:"211102",name:"双台子区",region_level:3,children:[]},{code:"211103",name:"兴隆台区",region_level:3,children:[]},{code:"211104",name:"大洼区",region_level:3,children:[]},{code:"211122",name:"盘山县",region_level:3,children:[]}]},{code:"2112",name:"铁岭市",region_level:2,children:[{code:"211202",name:"银州区",region_level:3,children:[]},{code:"211204",name:"清河区",region_level:3,children:[]},{code:"211221",name:"铁岭县",region_level:3,children:[]},{code:"211223",name:"西丰县",region_level:3,children:[]},{code:"211224",name:"昌图县",region_level:3,children:[]},{code:"211281",name:"调兵山市",region_level:3,children:[]},{code:"211282",name:"开原市",region_level:3,children:[]}]},{code:"2113",name:"朝阳市",region_level:2,children:[{code:"211302",name:"双塔区",region_level:3,children:[]},{code:"211303",name:"龙城区",region_level:3,children:[]},{code:"211321",name:"朝阳县",region_level:3,children:[]},{code:"211322",name:"建平县",region_level:3,children:[]},{code:"211324",name:"喀喇沁左翼蒙古族自治县",region_level:3,children:[]},{code:"211381",name:"北票市",region_level:3,children:[]},{code:"211382",name:"凌源市",region_level:3,children:[]}]},{code:"2114",name:"葫芦岛市",region_level:2,children:[{code:"211402",name:"连山区",region_level:3,children:[]},{code:"211403",name:"龙港区",region_level:3,children:[]},{code:"211404",name:"南票区",region_level:3,children:[]},{code:"211421",name:"绥中县",region_level:3,children:[]},{code:"211422",name:"建昌县",region_level:3,children:[]},{code:"211481",name:"兴城市",region_level:3,children:[]}]}]},{code:"22",name:"吉林省",region_level:1,children:[{code:"2201",name:"长春市",region_level:2,children:[{code:"220102",name:"南关区",region_level:3,children:[]},{code:"220103",name:"宽城区",region_level:3,children:[]},{code:"220104",name:"朝阳区",region_level:3,children:[]},{code:"220105",name:"二道区",region_level:3,children:[]},{code:"220106",name:"绿园区",region_level:3,children:[]},{code:"220112",name:"双阳区",region_level:3,children:[]},{code:"220113",name:"九台区",region_level:3,children:[]},{code:"220122",name:"农安县",region_level:3,children:[]},{code:"220182",name:"榆树市",region_level:3,children:[]},{code:"220183",name:"德惠市",region_level:3,children:[]}]},{code:"2202",name:"吉林市",region_level:2,children:[{code:"220202",name:"昌邑区",region_level:3,children:[]},{code:"220203",name:"龙潭区",region_level:3,children:[]},{code:"220204",name:"船营区",region_level:3,children:[]},{code:"220211",name:"丰满区",region_level:3,children:[]},{code:"220221",name:"永吉县",region_level:3,children:[]},{code:"220281",name:"蛟河市",region_level:3,children:[]},{code:"220282",name:"桦甸市",region_level:3,children:[]},{code:"220283",name:"舒兰市",region_level:3,children:[]},{code:"220284",name:"磐石市",region_level:3,children:[]}]},{code:"2203",name:"四平市",region_level:2,children:[{code:"220302",name:"铁西区",region_level:3,children:[]},{code:"220303",name:"铁东区",region_level:3,children:[]},{code:"220322",name:"梨树县",region_level:3,children:[]},{code:"220323",name:"伊通满族自治县",region_level:3,children:[]},{code:"220381",name:"公主岭市",region_level:3,children:[]},{code:"220382",name:"双辽市",region_level:3,children:[]}]},{code:"2204",name:"辽源市",region_level:2,children:[{code:"220402",name:"龙山区",region_level:3,children:[]},{code:"220403",name:"西安区",region_level:3,children:[]},{code:"220421",name:"东丰县",region_level:3,children:[]},{code:"220422",name:"东辽县",region_level:3,children:[]}]},{code:"2205",name:"通化市",region_level:2,children:[{code:"220502",name:"东昌区",region_level:3,children:[]},{code:"220503",name:"二道江区",region_level:3,children:[]},{code:"220521",name:"通化县",region_level:3,children:[]},{code:"220523",name:"辉南县",region_level:3,children:[]},{code:"220524",name:"柳河县",region_level:3,children:[]},{code:"220581",name:"梅河口市",region_level:3,children:[]},{code:"220582",name:"集安市",region_level:3,children:[]}]},{code:"2206",name:"白山市",region_level:2,children:[{code:"220602",name:"浑江区",region_level:3,children:[]},{code:"220605",name:"江源区",region_level:3,children:[]},{code:"220621",name:"抚松县",region_level:3,children:[]},{code:"220622",name:"靖宇县",region_level:3,children:[]},{code:"220623",name:"长白朝鲜族自治县",region_level:3,children:[]},{code:"220681",name:"临江市",region_level:3,children:[]}]},{code:"2207",name:"松原市",region_level:2,children:[{code:"220702",name:"宁江区",region_level:3,children:[]},{code:"220721",name:"前郭尔罗斯蒙古族自治县",region_level:3,children:[]},{code:"220722",name:"长岭县",region_level:3,children:[]},{code:"220723",name:"乾安县",region_level:3,children:[]},{code:"220781",name:"扶余市",region_level:3,children:[]}]},{code:"2208",name:"白城市",region_level:2,children:[{code:"220802",name:"洮北区",region_level:3,children:[]},{code:"220821",name:"镇赉县",region_level:3,children:[]},{code:"220822",name:"通榆县",region_level:3,children:[]},{code:"220881",name:"洮南市",region_level:3,children:[]},{code:"220882",name:"大安市",region_level:3,children:[]}]},{code:"2224",name:"延边朝鲜族自治州",region_level:2,children:[{code:"222401",name:"延吉市",region_level:3,children:[]},{code:"222402",name:"图们市",region_level:3,children:[]},{code:"222403",name:"敦化市",region_level:3,children:[]},{code:"222404",name:"珲春市",region_level:3,children:[]},{code:"222405",name:"龙井市",region_level:3,children:[]},{code:"222406",name:"和龙市",region_level:3,children:[]},{code:"222424",name:"汪清县",region_level:3,children:[]},{code:"222426",name:"安图县",region_level:3,children:[]}]}]},{code:"23",name:"黑龙江省",region_level:1,children:[{code:"2301",name:"哈尔滨市",region_level:2,children:[{code:"230102",name:"道里区",region_level:3,children:[]},{code:"230103",name:"南岗区",region_level:3,children:[]},{code:"230104",name:"道外区",region_level:3,children:[]},{code:"230108",name:"平房区",region_level:3,children:[]},{code:"230109",name:"松北区",region_level:3,children:[]},{code:"230110",name:"香坊区",region_level:3,children:[]},{code:"230111",name:"呼兰区",region_level:3,children:[]},{code:"230112",name:"阿城区",region_level:3,children:[]},{code:"230113",name:"双城区",region_level:3,children:[]},{code:"230123",name:"依兰县",region_level:3,children:[]},{code:"230124",name:"方正县",region_level:3,children:[]},{code:"230125",name:"宾县",region_level:3,children:[]},{code:"230126",name:"巴彦县",region_level:3,children:[]},{code:"230127",name:"木兰县",region_level:3,children:[]},{code:"230128",name:"通河县",region_level:3,children:[]},{code:"230129",name:"延寿县",region_level:3,children:[]},{code:"230183",name:"尚志市",region_level:3,children:[]},{code:"230184",name:"五常市",region_level:3,children:[]}]},{code:"2302",name:"齐齐哈尔市",region_level:2,children:[{code:"230202",name:"龙沙区",region_level:3,children:[]},{code:"230203",name:"建华区",region_level:3,children:[]},{code:"230204",name:"铁锋区",region_level:3,children:[]},{code:"230205",name:"昂昂溪区",region_level:3,children:[]},{code:"230206",name:"富拉尔基区",region_level:3,children:[]},{code:"230207",name:"碾子山区",region_level:3,children:[]},{code:"230208",name:"梅里斯达斡尔族区",region_level:3,children:[]},{code:"230221",name:"龙江县",region_level:3,children:[]},{code:"230223",name:"依安县",region_level:3,children:[]},{code:"230224",name:"泰来县",region_level:3,children:[]},{code:"230225",name:"甘南县",region_level:3,children:[]},{code:"230227",name:"富裕县",region_level:3,children:[]},{code:"230229",name:"克山县",region_level:3,children:[]},{code:"230230",name:"克东县",region_level:3,children:[]},{code:"230231",name:"拜泉县",region_level:3,children:[]},{code:"230281",name:"讷河市",region_level:3,children:[]}]},{code:"2303",name:"鸡西市",region_level:2,children:[{code:"230302",name:"鸡冠区",region_level:3,children:[]},{code:"230303",name:"恒山区",region_level:3,children:[]},{code:"230304",name:"滴道区",region_level:3,children:[]},{code:"230305",name:"梨树区",region_level:3,children:[]},{code:"230306",name:"城子河区",region_level:3,children:[]},{code:"230307",name:"麻山区",region_level:3,children:[]},{code:"230321",name:"鸡东县",region_level:3,children:[]},{code:"230381",name:"虎林市",region_level:3,children:[]},{code:"230382",name:"密山市",region_level:3,children:[]}]},{code:"2304",name:"鹤岗市",region_level:2,children:[{code:"230402",name:"向阳区",region_level:3,children:[]},{code:"230403",name:"工农区",region_level:3,children:[]},{code:"230404",name:"南山区",region_level:3,children:[]},{code:"230405",name:"兴安区",region_level:3,children:[]},{code:"230406",name:"东山区",region_level:3,children:[]},{code:"230407",name:"兴山区",region_level:3,children:[]},{code:"230421",name:"萝北县",region_level:3,children:[]},{code:"230422",name:"绥滨县",region_level:3,children:[]}]},{code:"2305",name:"双鸭山市",region_level:2,children:[{code:"230502",name:"尖山区",region_level:3,children:[]},{code:"230503",name:"岭东区",region_level:3,children:[]},{code:"230505",name:"四方台区",region_level:3,children:[]},{code:"230506",name:"宝山区",region_level:3,children:[]},{code:"230521",name:"集贤县",region_level:3,children:[]},{code:"230522",name:"友谊县",region_level:3,children:[]},{code:"230523",name:"宝清县",region_level:3,children:[]},{code:"230524",name:"饶河县",region_level:3,children:[]}]},{code:"2306",name:"大庆市",region_level:2,children:[{code:"230602",name:"萨尔图区",region_level:3,children:[]},{code:"230603",name:"龙凤区",region_level:3,children:[]},{code:"230604",name:"让胡路区",region_level:3,children:[]},{code:"230605",name:"红岗区",region_level:3,children:[]},{code:"230606",name:"大同区",region_level:3,children:[]},{code:"230621",name:"肇州县",region_level:3,children:[]},{code:"230622",name:"肇源县",region_level:3,children:[]},{code:"230623",name:"林甸县",region_level:3,children:[]},{code:"230624",name:"杜尔伯特蒙古族自治县",region_level:3,children:[]}]},{code:"2307",name:"伊春市",region_level:2,children:[{code:"230717",name:"伊美区",region_level:3,children:[]},{code:"230718",name:"乌翠区",region_level:3,children:[]},{code:"230719",name:"友好区",region_level:3,children:[]},{code:"230722",name:"嘉荫县",region_level:3,children:[]},{code:"230723",name:"汤旺县",region_level:3,children:[]},{code:"230724",name:"丰林县",region_level:3,children:[]},{code:"230725",name:"大箐山县",region_level:3,children:[]},{code:"230726",name:"南岔县",region_level:3,children:[]},{code:"230751",name:"金林区",region_level:3,children:[]},{code:"230781",name:"铁力市",region_level:3,children:[]}]},{code:"2308",name:"佳木斯市",region_level:2,children:[{code:"230803",name:"向阳区",region_level:3,children:[]},{code:"230804",name:"前进区",region_level:3,children:[]},{code:"230805",name:"东风区",region_level:3,children:[]},{code:"230811",name:"郊区",region_level:3,children:[]},{code:"230822",name:"桦南县",region_level:3,children:[]},{code:"230826",name:"桦川县",region_level:3,children:[]},{code:"230828",name:"汤原县",region_level:3,children:[]},{code:"230881",name:"同江市",region_level:3,children:[]},{code:"230882",name:"富锦市",region_level:3,children:[]},{code:"230883",name:"抚远市",region_level:3,children:[]}]},{code:"2309",name:"七台河市",region_level:2,children:[{code:"230902",name:"新兴区",region_level:3,children:[]},{code:"230903",name:"桃山区",region_level:3,children:[]},{code:"230904",name:"茄子河区",region_level:3,children:[]},{code:"230921",name:"勃利县",region_level:3,children:[]}]},{code:"2310",name:"牡丹江市",region_level:2,children:[{code:"231002",name:"东安区",region_level:3,children:[]},{code:"231003",name:"阳明区",region_level:3,children:[]},{code:"231004",name:"爱民区",region_level:3,children:[]},{code:"231005",name:"西安区",region_level:3,children:[]},{code:"231025",name:"林口县",region_level:3,children:[]},{code:"231081",name:"绥芬河市",region_level:3,children:[]},{code:"231083",name:"海林市",region_level:3,children:[]},{code:"231084",name:"宁安市",region_level:3,children:[]},{code:"231085",name:"穆棱市",region_level:3,children:[]},{code:"231086",name:"东宁市",region_level:3,children:[]}]},{code:"2311",name:"黑河市",region_level:2,children:[{code:"231102",name:"爱辉区",region_level:3,children:[]},{code:"231123",name:"逊克县",region_level:3,children:[]},{code:"231124",name:"孙吴县",region_level:3,children:[]},{code:"231181",name:"北安市",region_level:3,children:[]},{code:"231182",name:"五大连池市",region_level:3,children:[]},{code:"231183",name:"嫩江市",region_level:3,children:[]}]},{code:"2312",name:"绥化市",region_level:2,children:[{code:"231202",name:"北林区",region_level:3,children:[]},{code:"231221",name:"望奎县",region_level:3,children:[]},{code:"231222",name:"兰西县",region_level:3,children:[]},{code:"231223",name:"青冈县",region_level:3,children:[]},{code:"231224",name:"庆安县",region_level:3,children:[]},{code:"231225",name:"明水县",region_level:3,children:[]},{code:"231226",name:"绥棱县",region_level:3,children:[]},{code:"231281",name:"安达市",region_level:3,children:[]},{code:"231282",name:"肇东市",region_level:3,children:[]},{code:"231283",name:"海伦市",region_level:3,children:[]}]},{code:"2327",name:"大兴安岭地区",region_level:2,children:[{code:"232701",name:"漠河市",region_level:3,children:[]},{code:"232721",name:"呼玛县",region_level:3,children:[]},{code:"232722",name:"塔河县",region_level:3,children:[]}]}]},{code:"31",name:"上海市",region_level:1,children:[{code:"3101",name:"上海市",region_level:2,children:[{code:"310101",name:"黄浦区",region_level:3,children:[]},{code:"310104",name:"徐汇区",region_level:3,children:[]},{code:"310105",name:"长宁区",region_level:3,children:[]},{code:"310106",name:"静安区",region_level:3,children:[]},{code:"310107",name:"普陀区",region_level:3,children:[]},{code:"310109",name:"虹口区",region_level:3,children:[]},{code:"310110",name:"杨浦区",region_level:3,children:[]},{code:"310112",name:"闵行区",region_level:3,children:[]},{code:"310113",name:"宝山区",region_level:3,children:[]},{code:"310114",name:"嘉定区",region_level:3,children:[]},{code:"310115",name:"浦东新区",region_level:3,children:[]},{code:"310116",name:"金山区",region_level:3,children:[]},{code:"310117",name:"松江区",region_level:3,children:[]},{code:"310118",name:"青浦区",region_level:3,children:[]},{code:"310120",name:"奉贤区",region_level:3,children:[]},{code:"310151",name:"崇明区",region_level:3,children:[]}]}]},{code:"32",name:"江苏省",region_level:1,children:[{code:"3201",name:"南京市",region_level:2,children:[{code:"320102",name:"玄武区",region_level:3,children:[]},{code:"320104",name:"秦淮区",region_level:3,children:[]},{code:"320105",name:"建邺区",region_level:3,children:[]},{code:"320106",name:"鼓楼区",region_level:3,children:[]},{code:"320111",name:"浦口区",region_level:3,children:[]},{code:"320113",name:"栖霞区",region_level:3,children:[]},{code:"320114",name:"雨花台区",region_level:3,children:[]},{code:"320115",name:"江宁区",region_level:3,children:[]},{code:"320116",name:"六合区",region_level:3,children:[]},{code:"320117",name:"溧水区",region_level:3,children:[]},{code:"320118",name:"高淳区",region_level:3,children:[]}]},{code:"3202",name:"无锡市",region_level:2,children:[{code:"320205",name:"锡山区",region_level:3,children:[]},{code:"320206",name:"惠山区",region_level:3,children:[]},{code:"320211",name:"滨湖区",region_level:3,children:[]},{code:"320213",name:"梁溪区",region_level:3,children:[]},{code:"320214",name:"新吴区",region_level:3,children:[]},{code:"320281",name:"江阴市",region_level:3,children:[]},{code:"320282",name:"宜兴市",region_level:3,children:[]}]},{code:"3203",name:"徐州市",region_level:2,children:[{code:"320302",name:"鼓楼区",region_level:3,children:[]},{code:"320303",name:"云龙区",region_level:3,children:[]},{code:"320305",name:"贾汪区",region_level:3,children:[]},{code:"320311",name:"泉山区",region_level:3,children:[]},{code:"320312",name:"铜山区",region_level:3,children:[]},{code:"320321",name:"丰县",region_level:3,children:[]},{code:"320322",name:"沛县",region_level:3,children:[]},{code:"320324",name:"睢宁县",region_level:3,children:[]},{code:"320381",name:"新沂市",region_level:3,children:[]},{code:"320382",name:"邳州市",region_level:3,children:[]}]},{code:"3204",name:"常州市",region_level:2,children:[{code:"320402",name:"天宁区",region_level:3,children:[]},{code:"320404",name:"钟楼区",region_level:3,children:[]},{code:"320411",name:"新北区",region_level:3,children:[]},{code:"320412",name:"武进区",region_level:3,children:[]},{code:"320413",name:"金坛区",region_level:3,children:[]},{code:"320481",name:"溧阳市",region_level:3,children:[]}]},{code:"3205",name:"苏州市",region_level:2,children:[{code:"320505",name:"虎丘区",region_level:3,children:[]},{code:"320506",name:"吴中区",region_level:3,children:[]},{code:"320507",name:"相城区",region_level:3,children:[]},{code:"320508",name:"姑苏区",region_level:3,children:[]},{code:"320509",name:"吴江区",region_level:3,children:[]},{code:"320581",name:"常熟市",region_level:3,children:[]},{code:"320582",name:"张家港市",region_level:3,children:[]},{code:"320583",name:"昆山市",region_level:3,children:[]},{code:"320585",name:"太仓市",region_level:3,children:[]}]},{code:"3206",name:"南通市",region_level:2,children:[{code:"320602",name:"崇川区",region_level:3,children:[]},{code:"320611",name:"港闸区",region_level:3,children:[]},{code:"320612",name:"通州区",region_level:3,children:[]},{code:"320623",name:"如东县",region_level:3,children:[]},{code:"320681",name:"启东市",region_level:3,children:[]},{code:"320682",name:"如皋市",region_level:3,children:[]},{code:"320684",name:"海门市",region_level:3,children:[]},{code:"320685",name:"海安市",region_level:3,children:[]}]},{code:"3207",name:"连云港市",region_level:2,children:[{code:"320703",name:"连云区",region_level:3,children:[]},{code:"320706",name:"海州区",region_level:3,children:[]},{code:"320707",name:"赣榆区",region_level:3,children:[]},{code:"320722",name:"东海县",region_level:3,children:[]},{code:"320723",name:"灌云县",region_level:3,children:[]},{code:"320724",name:"灌南县",region_level:3,children:[]}]},{code:"3208",name:"淮安市",region_level:2,children:[{code:"320803",name:"淮安区",region_level:3,children:[]},{code:"320804",name:"淮阴区",region_level:3,children:[]},{code:"320812",name:"清江浦区",region_level:3,children:[]},{code:"320813",name:"洪泽区",region_level:3,children:[]},{code:"320826",name:"涟水县",region_level:3,children:[]},{code:"320830",name:"盱眙县",region_level:3,children:[]},{code:"320831",name:"金湖县",region_level:3,children:[]}]},{code:"3209",name:"盐城市",region_level:2,children:[{code:"320902",name:"亭湖区",region_level:3,children:[]},{code:"320903",name:"盐都区",region_level:3,children:[]},{code:"320904",name:"大丰区",region_level:3,children:[]},{code:"320921",name:"响水县",region_level:3,children:[]},{code:"320922",name:"滨海县",region_level:3,children:[]},{code:"320923",name:"阜宁县",region_level:3,children:[]},{code:"320924",name:"射阳县",region_level:3,children:[]},{code:"320925",name:"建湖县",region_level:3,children:[]},{code:"320981",name:"东台市",region_level:3,children:[]}]},{code:"3210",name:"扬州市",region_level:2,children:[{code:"321002",name:"广陵区",region_level:3,children:[]},{code:"321003",name:"邗江区",region_level:3,children:[]},{code:"321012",name:"江都区",region_level:3,children:[]},{code:"321023",name:"宝应县",region_level:3,children:[]},{code:"321081",name:"仪征市",region_level:3,children:[]},{code:"321084",name:"高邮市",region_level:3,children:[]}]},{code:"3211",name:"镇江市",region_level:2,children:[{code:"321102",name:"京口区",region_level:3,children:[]},{code:"321111",name:"润州区",region_level:3,children:[]},{code:"321112",name:"丹徒区",region_level:3,children:[]},{code:"321181",name:"丹阳市",region_level:3,children:[]},{code:"321182",name:"扬中市",region_level:3,children:[]},{code:"321183",name:"句容市",region_level:3,children:[]}]},{code:"3212",name:"泰州市",region_level:2,children:[{code:"321202",name:"海陵区",region_level:3,children:[]},{code:"321203",name:"高港区",region_level:3,children:[]},{code:"321204",name:"姜堰区",region_level:3,children:[]},{code:"321281",name:"兴化市",region_level:3,children:[]},{code:"321282",name:"靖江市",region_level:3,children:[]},{code:"321283",name:"泰兴市",region_level:3,children:[]}]},{code:"3213",name:"宿迁市",region_level:2,children:[{code:"321302",name:"宿城区",region_level:3,children:[]},{code:"321311",name:"宿豫区",region_level:3,children:[]},{code:"321322",name:"沭阳县",region_level:3,children:[]},{code:"321323",name:"泗阳县",region_level:3,children:[]},{code:"321324",name:"泗洪县",region_level:3,children:[]}]}]},{code:"33",name:"浙江省",region_level:1,children:[{code:"3301",name:"杭州市",region_level:2,children:[{code:"330102",name:"上城区",region_level:3,children:[]},{code:"330103",name:"下城区",region_level:3,children:[]},{code:"330104",name:"江干区",region_level:3,children:[]},{code:"330105",name:"拱墅区",region_level:3,children:[]},{code:"330106",name:"西湖区",region_level:3,children:[]},{code:"330108",name:"滨江区",region_level:3,children:[]},{code:"330109",name:"萧山区",region_level:3,children:[]},{code:"330110",name:"余杭区",region_level:3,children:[]},{code:"330111",name:"富阳区",region_level:3,children:[]},{code:"330112",name:"临安区",region_level:3,children:[]},{code:"330122",name:"桐庐县",region_level:3,children:[]},{code:"330127",name:"淳安县",region_level:3,children:[]},{code:"330182",name:"建德市",region_level:3,children:[]}]},{code:"3302",name:"宁波市",region_level:2,children:[{code:"330203",name:"海曙区",region_level:3,children:[]},{code:"330205",name:"江北区",region_level:3,children:[]},{code:"330206",name:"北仑区",region_level:3,children:[]},{code:"330211",name:"镇海区",region_level:3,children:[]},{code:"330212",name:"鄞州区",region_level:3,children:[]},{code:"330213",name:"奉化区",region_level:3,children:[]},{code:"330225",name:"象山县",region_level:3,children:[]},{code:"330226",name:"宁海县",region_level:3,children:[]},{code:"330281",name:"余姚市",region_level:3,children:[]},{code:"330282",name:"慈溪市",region_level:3,children:[]}]},{code:"3303",name:"温州市",region_level:2,children:[{code:"330302",name:"鹿城区",region_level:3,children:[]},{code:"330303",name:"龙湾区",region_level:3,children:[]},{code:"330304",name:"瓯海区",region_level:3,children:[]},{code:"330305",name:"洞头区",region_level:3,children:[]},{code:"330324",name:"永嘉县",region_level:3,children:[]},{code:"330326",name:"平阳县",region_level:3,children:[]},{code:"330327",name:"苍南县",region_level:3,children:[]},{code:"330328",name:"文成县",region_level:3,children:[]},{code:"330329",name:"泰顺县",region_level:3,children:[]},{code:"330381",name:"瑞安市",region_level:3,children:[]},{code:"330382",name:"乐清市",region_level:3,children:[]},{code:"330383",name:"龙港市",region_level:3,children:[]}]},{code:"3304",name:"嘉兴市",region_level:2,children:[{code:"330402",name:"南湖区",region_level:3,children:[]},{code:"330411",name:"秀洲区",region_level:3,children:[]},{code:"330421",name:"嘉善县",region_level:3,children:[]},{code:"330424",name:"海盐县",region_level:3,children:[]},{code:"330481",name:"海宁市",region_level:3,children:[]},{code:"330482",name:"平湖市",region_level:3,children:[]},{code:"330483",name:"桐乡市",region_level:3,children:[]}]},{code:"3305",name:"湖州市",region_level:2,children:[{code:"330502",name:"吴兴区",region_level:3,children:[]},{code:"330503",name:"南浔区",region_level:3,children:[]},{code:"330521",name:"德清县",region_level:3,children:[]},{code:"330522",name:"长兴县",region_level:3,children:[]},{code:"330523",name:"安吉县",region_level:3,children:[]}]},{code:"3306",name:"绍兴市",region_level:2,children:[{code:"330602",name:"越城区",region_level:3,children:[]},{code:"330603",name:"柯桥区",region_level:3,children:[]},{code:"330604",name:"上虞区",region_level:3,children:[]},{code:"330624",name:"新昌县",region_level:3,children:[]},{code:"330681",name:"诸暨市",region_level:3,children:[]},{code:"330683",name:"嵊州市",region_level:3,children:[]}]},{code:"3307",name:"金华市",region_level:2,children:[{code:"330702",name:"婺城区",region_level:3,children:[]},{code:"330703",name:"金东区",region_level:3,children:[]},{code:"330723",name:"武义县",region_level:3,children:[]},{code:"330726",name:"浦江县",region_level:3,children:[]},{code:"330727",name:"磐安县",region_level:3,children:[]},{code:"330781",name:"兰溪市",region_level:3,children:[]},{code:"330782",name:"义乌市",region_level:3,children:[]},{code:"330783",name:"东阳市",region_level:3,children:[]},{code:"330784",name:"永康市",region_level:3,children:[]}]},{code:"3308",name:"衢州市",region_level:2,children:[{code:"330802",name:"柯城区",region_level:3,children:[]},{code:"330803",name:"衢江区",region_level:3,children:[]},{code:"330822",name:"常山县",region_level:3,children:[]},{code:"330824",name:"开化县",region_level:3,children:[]},{code:"330825",name:"龙游县",region_level:3,children:[]},{code:"330881",name:"江山市",region_level:3,children:[]}]},{code:"3309",name:"舟山市",region_level:2,children:[{code:"330902",name:"定海区",region_level:3,children:[]},{code:"330903",name:"普陀区",region_level:3,children:[]},{code:"330921",name:"岱山县",region_level:3,children:[]},{code:"330922",name:"嵊泗县",region_level:3,children:[]}]},{code:"3310",name:"台州市",region_level:2,children:[{code:"331002",name:"椒江区",region_level:3,children:[]},{code:"331003",name:"黄岩区",region_level:3,children:[]},{code:"331004",name:"路桥区",region_level:3,children:[]},{code:"331022",name:"三门县",region_level:3,children:[]},{code:"331023",name:"天台县",region_level:3,children:[]},{code:"331024",name:"仙居县",region_level:3,children:[]},{code:"331081",name:"温岭市",region_level:3,children:[]},{code:"331082",name:"临海市",region_level:3,children:[]},{code:"331083",name:"玉环市",region_level:3,children:[]}]},{code:"3311",name:"丽水市",region_level:2,children:[{code:"331102",name:"莲都区",region_level:3,children:[]},{code:"331121",name:"青田县",region_level:3,children:[]},{code:"331122",name:"缙云县",region_level:3,children:[]},{code:"331123",name:"遂昌县",region_level:3,children:[]},{code:"331124",name:"松阳县",region_level:3,children:[]},{code:"331125",name:"云和县",region_level:3,children:[]},{code:"331126",name:"庆元县",region_level:3,children:[]},{code:"331127",name:"景宁畲族自治县",region_level:3,children:[]},{code:"331181",name:"龙泉市",region_level:3,children:[]}]}]},{code:"34",name:"安徽省",region_level:1,children:[{code:"3401",name:"合肥市",region_level:2,children:[{code:"340102",name:"瑶海区",region_level:3,children:[]},{code:"340103",name:"庐阳区",region_level:3,children:[]},{code:"340104",name:"蜀山区",region_level:3,children:[]},{code:"340111",name:"包河区",region_level:3,children:[]},{code:"340121",name:"长丰县",region_level:3,children:[]},{code:"340122",name:"肥东县",region_level:3,children:[]},{code:"340123",name:"肥西县",region_level:3,children:[]},{code:"340124",name:"庐江县",region_level:3,children:[]},{code:"340181",name:"巢湖市",region_level:3,children:[]}]},{code:"3402",name:"芜湖市",region_level:2,children:[{code:"340202",name:"镜湖区",region_level:3,children:[]},{code:"340203",name:"弋江区",region_level:3,children:[]},{code:"340207",name:"鸠江区",region_level:3,children:[]},{code:"340208",name:"三山区",region_level:3,children:[]},{code:"340221",name:"芜湖县",region_level:3,children:[]},{code:"340222",name:"繁昌县",region_level:3,children:[]},{code:"340223",name:"南陵县",region_level:3,children:[]},{code:"340281",name:"无为市",region_level:3,children:[]}]},{code:"3403",name:"蚌埠市",region_level:2,children:[{code:"340302",name:"龙子湖区",region_level:3,children:[]},{code:"340303",name:"蚌山区",region_level:3,children:[]},{code:"340304",name:"禹会区",region_level:3,children:[]},{code:"340311",name:"淮上区",region_level:3,children:[]},{code:"340321",name:"怀远县",region_level:3,children:[]},{code:"340322",name:"五河县",region_level:3,children:[]},{code:"340323",name:"固镇县",region_level:3,children:[]}]},{code:"3404",name:"淮南市",region_level:2,children:[{code:"340402",name:"大通区",region_level:3,children:[]},{code:"340403",name:"田家庵区",region_level:3,children:[]},{code:"340404",name:"谢家集区",region_level:3,children:[]},{code:"340405",name:"八公山区",region_level:3,children:[]},{code:"340406",name:"潘集区",region_level:3,children:[]},{code:"340421",name:"凤台县",region_level:3,children:[]},{code:"340422",name:"寿县",region_level:3,children:[]}]},{code:"3405",name:"马鞍山市",region_level:2,children:[{code:"340503",name:"花山区",region_level:3,children:[]},{code:"340504",name:"雨山区",region_level:3,children:[]},{code:"340506",name:"博望区",region_level:3,children:[]},{code:"340521",name:"当涂县",region_level:3,children:[]},{code:"340522",name:"含山县",region_level:3,children:[]},{code:"340523",name:"和县",region_level:3,children:[]}]},{code:"3406",name:"淮北市",region_level:2,children:[{code:"340602",name:"杜集区",region_level:3,children:[]},{code:"340603",name:"相山区",region_level:3,children:[]},{code:"340604",name:"烈山区",region_level:3,children:[]},{code:"340621",name:"濉溪县",region_level:3,children:[]}]},{code:"3407",name:"铜陵市",region_level:2,children:[{code:"340705",name:"铜官区",region_level:3,children:[]},{code:"340706",name:"义安区",region_level:3,children:[]},{code:"340711",name:"郊区",region_level:3,children:[]},{code:"340722",name:"枞阳县",region_level:3,children:[]}]},{code:"3408",name:"安庆市",region_level:2,children:[{code:"340802",name:"迎江区",region_level:3,children:[]},{code:"340803",name:"大观区",region_level:3,children:[]},{code:"340811",name:"宜秀区",region_level:3,children:[]},{code:"340822",name:"怀宁县",region_level:3,children:[]},{code:"340825",name:"太湖县",region_level:3,children:[]},{code:"340826",name:"宿松县",region_level:3,children:[]},{code:"340827",name:"望江县",region_level:3,children:[]},{code:"340828",name:"岳西县",region_level:3,children:[]},{code:"340881",name:"桐城市",region_level:3,children:[]},{code:"340882",name:"潜山市",region_level:3,children:[]}]},{code:"3410",name:"黄山市",region_level:2,children:[{code:"341002",name:"屯溪区",region_level:3,children:[]},{code:"341003",name:"黄山区",region_level:3,children:[]},{code:"341004",name:"徽州区",region_level:3,children:[]},{code:"341021",name:"歙县",region_level:3,children:[]},{code:"341022",name:"休宁县",region_level:3,children:[]},{code:"341023",name:"黟县",region_level:3,children:[]},{code:"341024",name:"祁门县",region_level:3,children:[]}]},{code:"3411",name:"滁州市",region_level:2,children:[{code:"341102",name:"琅琊区",region_level:3,children:[]},{code:"341103",name:"南谯区",region_level:3,children:[]},{code:"341122",name:"来安县",region_level:3,children:[]},{code:"341124",name:"全椒县",region_level:3,children:[]},{code:"341125",name:"定远县",region_level:3,children:[]},{code:"341126",name:"凤阳县",region_level:3,children:[]},{code:"341181",name:"天长市",region_level:3,children:[]},{code:"341182",name:"明光市",region_level:3,children:[]}]},{code:"3412",name:"阜阳市",region_level:2,children:[{code:"341202",name:"颍州区",region_level:3,children:[]},{code:"341203",name:"颍东区",region_level:3,children:[]},{code:"341204",name:"颍泉区",region_level:3,children:[]},{code:"341221",name:"临泉县",region_level:3,children:[]},{code:"341222",name:"太和县",region_level:3,children:[]},{code:"341225",name:"阜南县",region_level:3,children:[]},{code:"341226",name:"颍上县",region_level:3,children:[]},{code:"341282",name:"界首市",region_level:3,children:[]}]},{code:"3413",name:"宿州市",region_level:2,children:[{code:"341302",name:"埇桥区",region_level:3,children:[]},{code:"341321",name:"砀山县",region_level:3,children:[]},{code:"341322",name:"萧县",region_level:3,children:[]},{code:"341323",name:"灵璧县",region_level:3,children:[]},{code:"341324",name:"泗县",region_level:3,children:[]}]},{code:"3415",name:"六安市",region_level:2,children:[{code:"341502",name:"金安区",region_level:3,children:[]},{code:"341503",name:"裕安区",region_level:3,children:[]},{code:"341504",name:"叶集区",region_level:3,children:[]},{code:"341522",name:"霍邱县",region_level:3,children:[]},{code:"341523",name:"舒城县",region_level:3,children:[]},{code:"341524",name:"金寨县",region_level:3,children:[]},{code:"341525",name:"霍山县",region_level:3,children:[]}]},{code:"3416",name:"亳州市",region_level:2,children:[{code:"341602",name:"谯城区",region_level:3,children:[]},{code:"341621",name:"涡阳县",region_level:3,children:[]},{code:"341622",name:"蒙城县",region_level:3,children:[]},{code:"341623",name:"利辛县",region_level:3,children:[]}]},{code:"3417",name:"池州市",region_level:2,children:[{code:"341702",name:"贵池区",region_level:3,children:[]},{code:"341721",name:"东至县",region_level:3,children:[]},{code:"341722",name:"石台县",region_level:3,children:[]},{code:"341723",name:"青阳县",region_level:3,children:[]}]},{code:"3418",name:"宣城市",region_level:2,children:[{code:"341802",name:"宣州区",region_level:3,children:[]},{code:"341821",name:"郎溪县",region_level:3,children:[]},{code:"341823",name:"泾县",region_level:3,children:[]},{code:"341824",name:"绩溪县",region_level:3,children:[]},{code:"341825",name:"旌德县",region_level:3,children:[]},{code:"341881",name:"宁国市",region_level:3,children:[]},{code:"341882",name:"广德市",region_level:3,children:[]}]}]},{code:"35",name:"福建省",region_level:1,children:[{code:"3501",name:"福州市",region_level:2,children:[{code:"350102",name:"鼓楼区",region_level:3,children:[]},{code:"350103",name:"台江区",region_level:3,children:[]},{code:"350104",name:"仓山区",region_level:3,children:[]},{code:"350105",name:"马尾区",region_level:3,children:[]},{code:"350111",name:"晋安区",region_level:3,children:[]},{code:"350112",name:"长乐区",region_level:3,children:[]},{code:"350121",name:"闽侯县",region_level:3,children:[]},{code:"350122",name:"连江县",region_level:3,children:[]},{code:"350123",name:"罗源县",region_level:3,children:[]},{code:"350124",name:"闽清县",region_level:3,children:[]},{code:"350125",name:"永泰县",region_level:3,children:[]},{code:"350128",name:"平潭县",region_level:3,children:[]},{code:"350181",name:"福清市",region_level:3,children:[]}]},{code:"3502",name:"厦门市",region_level:2,children:[{code:"350203",name:"思明区",region_level:3,children:[]},{code:"350205",name:"海沧区",region_level:3,children:[]},{code:"350206",name:"湖里区",region_level:3,children:[]},{code:"350211",name:"集美区",region_level:3,children:[]},{code:"350212",name:"同安区",region_level:3,children:[]},{code:"350213",name:"翔安区",region_level:3,children:[]}]},{code:"3503",name:"莆田市",region_level:2,children:[{code:"350302",name:"城厢区",region_level:3,children:[]},{code:"350303",name:"涵江区",region_level:3,children:[]},{code:"350304",name:"荔城区",region_level:3,children:[]},{code:"350305",name:"秀屿区",region_level:3,children:[]},{code:"350322",name:"仙游县",region_level:3,children:[]}]},{code:"3504",name:"三明市",region_level:2,children:[{code:"350402",name:"梅列区",region_level:3,children:[]},{code:"350403",name:"三元区",region_level:3,children:[]},{code:"350421",name:"明溪县",region_level:3,children:[]},{code:"350423",name:"清流县",region_level:3,children:[]},{code:"350424",name:"宁化县",region_level:3,children:[]},{code:"350425",name:"大田县",region_level:3,children:[]},{code:"350426",name:"尤溪县",region_level:3,children:[]},{code:"350427",name:"沙县",region_level:3,children:[]},{code:"350428",name:"将乐县",region_level:3,children:[]},{code:"350429",name:"泰宁县",region_level:3,children:[]},{code:"350430",name:"建宁县",region_level:3,children:[]},{code:"350481",name:"永安市",region_level:3,children:[]}]},{code:"3505",name:"泉州市",region_level:2,children:[{code:"350502",name:"鲤城区",region_level:3,children:[]},{code:"350503",name:"丰泽区",region_level:3,children:[]},{code:"350504",name:"洛江区",region_level:3,children:[]},{code:"350505",name:"泉港区",region_level:3,children:[]},{code:"350521",name:"惠安县",region_level:3,children:[]},{code:"350524",name:"安溪县",region_level:3,children:[]},{code:"350525",name:"永春县",region_level:3,children:[]},{code:"350526",name:"德化县",region_level:3,children:[]},{code:"350527",name:"金门县",region_level:3,children:[]},{code:"350581",name:"石狮市",region_level:3,children:[]},{code:"350582",name:"晋江市",region_level:3,children:[]},{code:"350583",name:"南安市",region_level:3,children:[]}]},{code:"3506",name:"漳州市",region_level:2,children:[{code:"350602",name:"芗城区",region_level:3,children:[]},{code:"350603",name:"龙文区",region_level:3,children:[]},{code:"350622",name:"云霄县",region_level:3,children:[]},{code:"350623",name:"漳浦县",region_level:3,children:[]},{code:"350624",name:"诏安县",region_level:3,children:[]},{code:"350625",name:"长泰县",region_level:3,children:[]},{code:"350626",name:"东山县",region_level:3,children:[]},{code:"350627",name:"南靖县",region_level:3,children:[]},{code:"350628",name:"平和县",region_level:3,children:[]},{code:"350629",name:"华安县",region_level:3,children:[]},{code:"350681",name:"龙海市",region_level:3,children:[]}]},{code:"3507",name:"南平市",region_level:2,children:[{code:"350702",name:"延平区",region_level:3,children:[]},{code:"350703",name:"建阳区",region_level:3,children:[]},{code:"350721",name:"顺昌县",region_level:3,children:[]},{code:"350722",name:"浦城县",region_level:3,children:[]},{code:"350723",name:"光泽县",region_level:3,children:[]},{code:"350724",name:"松溪县",region_level:3,children:[]},{code:"350725",name:"政和县",region_level:3,children:[]},{code:"350781",name:"邵武市",region_level:3,children:[]},{code:"350782",name:"武夷山市",region_level:3,children:[]},{code:"350783",name:"建瓯市",region_level:3,children:[]}]},{code:"3508",name:"龙岩市",region_level:2,children:[{code:"350802",name:"新罗区",region_level:3,children:[]},{code:"350803",name:"永定区",region_level:3,children:[]},{code:"350821",name:"长汀县",region_level:3,children:[]},{code:"350823",name:"上杭县",region_level:3,children:[]},{code:"350824",name:"武平县",region_level:3,children:[]},{code:"350825",name:"连城县",region_level:3,children:[]},{code:"350881",name:"漳平市",region_level:3,children:[]}]},{code:"3509",name:"宁德市",region_level:2,children:[{code:"350902",name:"蕉城区",region_level:3,children:[]},{code:"350921",name:"霞浦县",region_level:3,children:[]},{code:"350922",name:"古田县",region_level:3,children:[]},{code:"350923",name:"屏南县",region_level:3,children:[]},{code:"350924",name:"寿宁县",region_level:3,children:[]},{code:"350925",name:"周宁县",region_level:3,children:[]},{code:"350926",name:"柘荣县",region_level:3,children:[]},{code:"350981",name:"福安市",region_level:3,children:[]},{code:"350982",name:"福鼎市",region_level:3,children:[]}]}]},{code:"36",name:"江西省",region_level:1,children:[{code:"3601",name:"南昌市",region_level:2,children:[{code:"360102",name:"东湖区",region_level:3,children:[]},{code:"360103",name:"西湖区",region_level:3,children:[]},{code:"360104",name:"青云谱区",region_level:3,children:[]},{code:"360111",name:"青山湖区",region_level:3,children:[]},{code:"360112",name:"新建区",region_level:3,children:[]},{code:"360113",name:"红谷滩区",region_level:3,children:[]},{code:"360121",name:"南昌县",region_level:3,children:[]},{code:"360123",name:"安义县",region_level:3,children:[]},{code:"360124",name:"进贤县",region_level:3,children:[]}]},{code:"3602",name:"景德镇市",region_level:2,children:[{code:"360202",name:"昌江区",region_level:3,children:[]},{code:"360203",name:"珠山区",region_level:3,children:[]},{code:"360222",name:"浮梁县",region_level:3,children:[]},{code:"360281",name:"乐平市",region_level:3,children:[]}]},{code:"3603",name:"萍乡市",region_level:2,children:[{code:"360302",name:"安源区",region_level:3,children:[]},{code:"360313",name:"湘东区",region_level:3,children:[]},{code:"360321",name:"莲花县",region_level:3,children:[]},{code:"360322",name:"上栗县",region_level:3,children:[]},{code:"360323",name:"芦溪县",region_level:3,children:[]}]},{code:"3604",name:"九江市",region_level:2,children:[{code:"360402",name:"濂溪区",region_level:3,children:[]},{code:"360403",name:"浔阳区",region_level:3,children:[]},{code:"360404",name:"柴桑区",region_level:3,children:[]},{code:"360423",name:"武宁县",region_level:3,children:[]},{code:"360424",name:"修水县",region_level:3,children:[]},{code:"360425",name:"永修县",region_level:3,children:[]},{code:"360426",name:"德安县",region_level:3,children:[]},{code:"360428",name:"都昌县",region_level:3,children:[]},{code:"360429",name:"湖口县",region_level:3,children:[]},{code:"360430",name:"彭泽县",region_level:3,children:[]},{code:"360481",name:"瑞昌市",region_level:3,children:[]},{code:"360482",name:"共青城市",region_level:3,children:[]},{code:"360483",name:"庐山市",region_level:3,children:[]}]},{code:"3605",name:"新余市",region_level:2,children:[{code:"360502",name:"渝水区",region_level:3,children:[]},{code:"360521",name:"分宜县",region_level:3,children:[]}]},{code:"3606",name:"鹰潭市",region_level:2,children:[{code:"360602",name:"月湖区",region_level:3,children:[]},{code:"360603",name:"余江区",region_level:3,children:[]},{code:"360681",name:"贵溪市",region_level:3,children:[]}]},{code:"3607",name:"赣州市",region_level:2,children:[{code:"360702",name:"章贡区",region_level:3,children:[]},{code:"360703",name:"南康区",region_level:3,children:[]},{code:"360704",name:"赣县区",region_level:3,children:[]},{code:"360722",name:"信丰县",region_level:3,children:[]},{code:"360723",name:"大余县",region_level:3,children:[]},{code:"360724",name:"上犹县",region_level:3,children:[]},{code:"360725",name:"崇义县",region_level:3,children:[]},{code:"360726",name:"安远县",region_level:3,children:[]},{code:"360727",name:"龙南县",region_level:3,children:[]},{code:"360728",name:"定南县",region_level:3,children:[]},{code:"360729",name:"全南县",region_level:3,children:[]},{code:"360730",name:"宁都县",region_level:3,children:[]},{code:"360731",name:"于都县",region_level:3,children:[]},{code:"360732",name:"兴国县",region_level:3,children:[]},{code:"360733",name:"会昌县",region_level:3,children:[]},{code:"360734",name:"寻乌县",region_level:3,children:[]},{code:"360735",name:"石城县",region_level:3,children:[]},{code:"360781",name:"瑞金市",region_level:3,children:[]}]},{code:"3608",name:"吉安市",region_level:2,children:[{code:"360802",name:"吉州区",region_level:3,children:[]},{code:"360803",name:"青原区",region_level:3,children:[]},{code:"360821",name:"吉安县",region_level:3,children:[]},{code:"360822",name:"吉水县",region_level:3,children:[]},{code:"360823",name:"峡江县",region_level:3,children:[]},{code:"360824",name:"新干县",region_level:3,children:[]},{code:"360825",name:"永丰县",region_level:3,children:[]},{code:"360826",name:"泰和县",region_level:3,children:[]},{code:"360827",name:"遂川县",region_level:3,children:[]},{code:"360828",name:"万安县",region_level:3,children:[]},{code:"360829",name:"安福县",region_level:3,children:[]},{code:"360830",name:"永新县",region_level:3,children:[]},{code:"360881",name:"井冈山市",region_level:3,children:[]}]},{code:"3609",name:"宜春市",region_level:2,children:[{code:"360902",name:"袁州区",region_level:3,children:[]},{code:"360921",name:"奉新县",region_level:3,children:[]},{code:"360922",name:"万载县",region_level:3,children:[]},{code:"360923",name:"上高县",region_level:3,children:[]},{code:"360924",name:"宜丰县",region_level:3,children:[]},{code:"360925",name:"靖安县",region_level:3,children:[]},{code:"360926",name:"铜鼓县",region_level:3,children:[]},{code:"360981",name:"丰城市",region_level:3,children:[]},{code:"360982",name:"樟树市",region_level:3,children:[]},{code:"360983",name:"高安市",region_level:3,children:[]}]},{code:"3610",name:"抚州市",region_level:2,children:[{code:"361002",name:"临川区",region_level:3,children:[]},{code:"361003",name:"东乡区",region_level:3,children:[]},{code:"361021",name:"南城县",region_level:3,children:[]},{code:"361022",name:"黎川县",region_level:3,children:[]},{code:"361023",name:"南丰县",region_level:3,children:[]},{code:"361024",name:"崇仁县",region_level:3,children:[]},{code:"361025",name:"乐安县",region_level:3,children:[]},{code:"361026",name:"宜黄县",region_level:3,children:[]},{code:"361027",name:"金溪县",region_level:3,children:[]},{code:"361028",name:"资溪县",region_level:3,children:[]},{code:"361030",name:"广昌县",region_level:3,children:[]}]},{code:"3611",name:"上饶市",region_level:2,children:[{code:"361102",name:"信州区",region_level:3,children:[]},{code:"361103",name:"广丰区",region_level:3,children:[]},{code:"361104",name:"广信区",region_level:3,children:[]},{code:"361123",name:"玉山县",region_level:3,children:[]},{code:"361124",name:"铅山县",region_level:3,children:[]},{code:"361125",name:"横峰县",region_level:3,children:[]},{code:"361126",name:"弋阳县",region_level:3,children:[]},{code:"361127",name:"余干县",region_level:3,children:[]},{code:"361128",name:"鄱阳县",region_level:3,children:[]},{code:"361129",name:"万年县",region_level:3,children:[]},{code:"361130",name:"婺源县",region_level:3,children:[]},{code:"361181",name:"德兴市",region_level:3,children:[]}]}]},{code:"37",name:"山东省",region_level:1,children:[{code:"3701",name:"济南市",region_level:2,children:[{code:"370102",name:"历下区",region_level:3,children:[]},{code:"370103",name:"市中区",region_level:3,children:[]},{code:"370104",name:"槐荫区",region_level:3,children:[]},{code:"370105",name:"天桥区",region_level:3,children:[]},{code:"370112",name:"历城区",region_level:3,children:[]},{code:"370113",name:"长清区",region_level:3,children:[]},{code:"370114",name:"章丘区",region_level:3,children:[]},{code:"370115",name:"济阳区",region_level:3,children:[]},{code:"370116",name:"莱芜区",region_level:3,children:[]},{code:"370117",name:"钢城区",region_level:3,children:[]},{code:"370124",name:"平阴县",region_level:3,children:[]},{code:"370126",name:"商河县",region_level:3,children:[]}]},{code:"3702",name:"青岛市",region_level:2,children:[{code:"370202",name:"市南区",region_level:3,children:[]},{code:"370203",name:"市北区",region_level:3,children:[]},{code:"370211",name:"黄岛区",region_level:3,children:[]},{code:"370212",name:"崂山区",region_level:3,children:[]},{code:"370213",name:"李沧区",region_level:3,children:[]},{code:"370214",name:"城阳区",region_level:3,children:[]},{code:"370215",name:"即墨区",region_level:3,children:[]},{code:"370281",name:"胶州市",region_level:3,children:[]},{code:"370283",name:"平度市",region_level:3,children:[]},{code:"370285",name:"莱西市",region_level:3,children:[]}]},{code:"3703",name:"淄博市",region_level:2,children:[{code:"370302",name:"淄川区",region_level:3,children:[]},{code:"370303",name:"张店区",region_level:3,children:[]},{code:"370304",name:"博山区",region_level:3,children:[]},{code:"370305",name:"临淄区",region_level:3,children:[]},{code:"370306",name:"周村区",region_level:3,children:[]},{code:"370321",name:"桓台县",region_level:3,children:[]},{code:"370322",name:"高青县",region_level:3,children:[]},{code:"370323",name:"沂源县",region_level:3,children:[]}]},{code:"3704",name:"枣庄市",region_level:2,children:[{code:"370402",name:"市中区",region_level:3,children:[]},{code:"370403",name:"薛城区",region_level:3,children:[]},{code:"370404",name:"峄城区",region_level:3,children:[]},{code:"370405",name:"台儿庄区",region_level:3,children:[]},{code:"370406",name:"山亭区",region_level:3,children:[]},{code:"370481",name:"滕州市",region_level:3,children:[]}]},{code:"3705",name:"东营市",region_level:2,children:[{code:"370502",name:"东营区",region_level:3,children:[]},{code:"370503",name:"河口区",region_level:3,children:[]},{code:"370505",name:"垦利区",region_level:3,children:[]},{code:"370522",name:"利津县",region_level:3,children:[]},{code:"370523",name:"广饶县",region_level:3,children:[]}]},{code:"3706",name:"烟台市",region_level:2,children:[{code:"370602",name:"芝罘区",region_level:3,children:[]},{code:"370611",name:"福山区",region_level:3,children:[]},{code:"370612",name:"牟平区",region_level:3,children:[]},{code:"370613",name:"莱山区",region_level:3,children:[]},{code:"370634",name:"长岛县",region_level:3,children:[]},{code:"370681",name:"龙口市",region_level:3,children:[]},{code:"370682",name:"莱阳市",region_level:3,children:[]},{code:"370683",name:"莱州市",region_level:3,children:[]},{code:"370684",name:"蓬莱市",region_level:3,children:[]},{code:"370685",name:"招远市",region_level:3,children:[]},{code:"370686",name:"栖霞市",region_level:3,children:[]},{code:"370687",name:"海阳市",region_level:3,children:[]}]},{code:"3707",name:"潍坊市",region_level:2,children:[{code:"370702",name:"潍城区",region_level:3,children:[]},{code:"370703",name:"寒亭区",region_level:3,children:[]},{code:"370704",name:"坊子区",region_level:3,children:[]},{code:"370705",name:"奎文区",region_level:3,children:[]},{code:"370724",name:"临朐县",region_level:3,children:[]},{code:"370725",name:"昌乐县",region_level:3,children:[]},{code:"370781",name:"青州市",region_level:3,children:[]},{code:"370782",name:"诸城市",region_level:3,children:[]},{code:"370783",name:"寿光市",region_level:3,children:[]},{code:"370784",name:"安丘市",region_level:3,children:[]},{code:"370785",name:"高密市",region_level:3,children:[]},{code:"370786",name:"昌邑市",region_level:3,children:[]}]},{code:"3708",name:"济宁市",region_level:2,children:[{code:"370811",name:"任城区",region_level:3,children:[]},{code:"370812",name:"兖州区",region_level:3,children:[]},{code:"370826",name:"微山县",region_level:3,children:[]},{code:"370827",name:"鱼台县",region_level:3,children:[]},{code:"370828",name:"金乡县",region_level:3,children:[]},{code:"370829",name:"嘉祥县",region_level:3,children:[]},{code:"370830",name:"汶上县",region_level:3,children:[]},{code:"370831",name:"泗水县",region_level:3,children:[]},{code:"370832",name:"梁山县",region_level:3,children:[]},{code:"370881",name:"曲阜市",region_level:3,children:[]},{code:"370883",name:"邹城市",region_level:3,children:[]}]},{code:"3709",name:"泰安市",region_level:2,children:[{code:"370902",name:"泰山区",region_level:3,children:[]},{code:"370911",name:"岱岳区",region_level:3,children:[]},{code:"370921",name:"宁阳县",region_level:3,children:[]},{code:"370923",name:"东平县",region_level:3,children:[]},{code:"370982",name:"新泰市",region_level:3,children:[]},{code:"370983",name:"肥城市",region_level:3,children:[]}]},{code:"3710",name:"威海市",region_level:2,children:[{code:"371002",name:"环翠区",region_level:3,children:[]},{code:"371003",name:"文登区",region_level:3,children:[]},{code:"371082",name:"荣成市",region_level:3,children:[]},{code:"371083",name:"乳山市",region_level:3,children:[]}]},{code:"3711",name:"日照市",region_level:2,children:[{code:"371102",name:"东港区",region_level:3,children:[]},{code:"371103",name:"岚山区",region_level:3,children:[]},{code:"371121",name:"五莲县",region_level:3,children:[]},{code:"371122",name:"莒县",region_level:3,children:[]}]},{code:"3713",name:"临沂市",region_level:2,children:[{code:"371302",name:"兰山区",region_level:3,children:[]},{code:"371311",name:"罗庄区",region_level:3,children:[]},{code:"371312",name:"河东区",region_level:3,children:[]},{code:"371321",name:"沂南县",region_level:3,children:[]},{code:"371322",name:"郯城县",region_level:3,children:[]},{code:"371323",name:"沂水县",region_level:3,children:[]},{code:"371324",name:"兰陵县",region_level:3,children:[]},{code:"371325",name:"费县",region_level:3,children:[]},{code:"371326",name:"平邑县",region_level:3,children:[]},{code:"371327",name:"莒南县",region_level:3,children:[]},{code:"371328",name:"蒙阴县",region_level:3,children:[]},{code:"371329",name:"临沭县",region_level:3,children:[]}]},{code:"3714",name:"德州市",region_level:2,children:[{code:"371402",name:"德城区",region_level:3,children:[]},{code:"371403",name:"陵城区",region_level:3,children:[]},{code:"371422",name:"宁津县",region_level:3,children:[]},{code:"371423",name:"庆云县",region_level:3,children:[]},{code:"371424",name:"临邑县",region_level:3,children:[]},{code:"371425",name:"齐河县",region_level:3,children:[]},{code:"371426",name:"平原县",region_level:3,children:[]},{code:"371427",name:"夏津县",region_level:3,children:[]},{code:"371428",name:"武城县",region_level:3,children:[]},{code:"371481",name:"乐陵市",region_level:3,children:[]},{code:"371482",name:"禹城市",region_level:3,children:[]}]},{code:"3715",name:"聊城市",region_level:2,children:[{code:"371502",name:"东昌府区",region_level:3,children:[]},{code:"371503",name:"茌平区",region_level:3,children:[]},{code:"371521",name:"阳谷县",region_level:3,children:[]},{code:"371522",name:"莘县",region_level:3,children:[]},{code:"371524",name:"东阿县",region_level:3,children:[]},{code:"371525",name:"冠县",region_level:3,children:[]},{code:"371526",name:"高唐县",region_level:3,children:[]},{code:"371581",name:"临清市",region_level:3,children:[]}]},{code:"3716",name:"滨州市",region_level:2,children:[{code:"371602",name:"滨城区",region_level:3,children:[]},{code:"371603",name:"沾化区",region_level:3,children:[]},{code:"371621",name:"惠民县",region_level:3,children:[]},{code:"371622",name:"阳信县",region_level:3,children:[]},{code:"371623",name:"无棣县",region_level:3,children:[]},{code:"371625",name:"博兴县",region_level:3,children:[]},{code:"371681",name:"邹平市",region_level:3,children:[]}]},{code:"3717",name:"菏泽市",region_level:2,children:[{code:"371702",name:"牡丹区",region_level:3,children:[]},{code:"371703",name:"定陶区",region_level:3,children:[]},{code:"371721",name:"曹县",region_level:3,children:[]},{code:"371722",name:"单县",region_level:3,children:[]},{code:"371723",name:"成武县",region_level:3,children:[]},{code:"371724",name:"巨野县",region_level:3,children:[]},{code:"371725",name:"郓城县",region_level:3,children:[]},{code:"371726",name:"鄄城县",region_level:3,children:[]},{code:"371728",name:"东明县",region_level:3,children:[]}]}]},{code:"41",name:"河南省",region_level:1,children:[{code:"4101",name:"郑州市",region_level:2,children:[{code:"410102",name:"中原区",region_level:3,children:[]},{code:"410103",name:"二七区",region_level:3,children:[]},{code:"410104",name:"管城回族区",region_level:3,children:[]},{code:"410105",name:"金水区",region_level:3,children:[]},{code:"410106",name:"上街区",region_level:3,children:[]},{code:"410108",name:"惠济区",region_level:3,children:[]},{code:"410122",name:"中牟县",region_level:3,children:[]},{code:"410181",name:"巩义市",region_level:3,children:[]},{code:"410182",name:"荥阳市",region_level:3,children:[]},{code:"410183",name:"新密市",region_level:3,children:[]},{code:"410184",name:"新郑市",region_level:3,children:[]},{code:"410185",name:"登封市",region_level:3,children:[]}]},{code:"4102",name:"开封市",region_level:2,children:[{code:"410202",name:"龙亭区",region_level:3,children:[]},{code:"410203",name:"顺河回族区",region_level:3,children:[]},{code:"410204",name:"鼓楼区",region_level:3,children:[]},{code:"410205",name:"禹王台区",region_level:3,children:[]},{code:"410212",name:"祥符区",region_level:3,children:[]},{code:"410221",name:"杞县",region_level:3,children:[]},{code:"410222",name:"通许县",region_level:3,children:[]},{code:"410223",name:"尉氏县",region_level:3,children:[]},{code:"410225",name:"兰考县",region_level:3,children:[]}]},{code:"4103",name:"洛阳市",region_level:2,children:[{code:"410302",name:"老城区",region_level:3,children:[]},{code:"410303",name:"西工区",region_level:3,children:[]},{code:"410304",name:"瀍河回族区",region_level:3,children:[]},{code:"410305",name:"涧西区",region_level:3,children:[]},{code:"410306",name:"吉利区",region_level:3,children:[]},{code:"410311",name:"洛龙区",region_level:3,children:[]},{code:"410322",name:"孟津县",region_level:3,children:[]},{code:"410323",name:"新安县",region_level:3,children:[]},{code:"410324",name:"栾川县",region_level:3,children:[]},{code:"410325",name:"嵩县",region_level:3,children:[]},{code:"410326",name:"汝阳县",region_level:3,children:[]},{code:"410327",name:"宜阳县",region_level:3,children:[]},{code:"410328",name:"洛宁县",region_level:3,children:[]},{code:"410329",name:"伊川县",region_level:3,children:[]},{code:"410381",name:"偃师市",region_level:3,children:[]}]},{code:"4104",name:"平顶山市",region_level:2,children:[{code:"410402",name:"新华区",region_level:3,children:[]},{code:"410403",name:"卫东区",region_level:3,children:[]},{code:"410404",name:"石龙区",region_level:3,children:[]},{code:"410411",name:"湛河区",region_level:3,children:[]},{code:"410421",name:"宝丰县",region_level:3,children:[]},{code:"410422",name:"叶县",region_level:3,children:[]},{code:"410423",name:"鲁山县",region_level:3,children:[]},{code:"410425",name:"郏县",region_level:3,children:[]},{code:"410481",name:"舞钢市",region_level:3,children:[]},{code:"410482",name:"汝州市",region_level:3,children:[]}]},{code:"4105",name:"安阳市",region_level:2,children:[{code:"410502",name:"文峰区",region_level:3,children:[]},{code:"410503",name:"北关区",region_level:3,children:[]},{code:"410505",name:"殷都区",region_level:3,children:[]},{code:"410506",name:"龙安区",region_level:3,children:[]},{code:"410522",name:"安阳县",region_level:3,children:[]},{code:"410523",name:"汤阴县",region_level:3,children:[]},{code:"410526",name:"滑县",region_level:3,children:[]},{code:"410527",name:"内黄县",region_level:3,children:[]},{code:"410581",name:"林州市",region_level:3,children:[]}]},{code:"4106",name:"鹤壁市",region_level:2,children:[{code:"410602",name:"鹤山区",region_level:3,children:[]},{code:"410603",name:"山城区",region_level:3,children:[]},{code:"410611",name:"淇滨区",region_level:3,children:[]},{code:"410621",name:"浚县",region_level:3,children:[]},{code:"410622",name:"淇县",region_level:3,children:[]}]},{code:"4107",name:"新乡市",region_level:2,children:[{code:"410702",name:"红旗区",region_level:3,children:[]},{code:"410703",name:"卫滨区",region_level:3,children:[]},{code:"410704",name:"凤泉区",region_level:3,children:[]},{code:"410711",name:"牧野区",region_level:3,children:[]},{code:"410721",name:"新乡县",region_level:3,children:[]},{code:"410724",name:"获嘉县",region_level:3,children:[]},{code:"410725",name:"原阳县",region_level:3,children:[]},{code:"410726",name:"延津县",region_level:3,children:[]},{code:"410727",name:"封丘县",region_level:3,children:[]},{code:"410781",name:"卫辉市",region_level:3,children:[]},{code:"410782",name:"辉县市",region_level:3,children:[]},{code:"410783",name:"长垣市",region_level:3,children:[]}]},{code:"4108",name:"焦作市",region_level:2,children:[{code:"410802",name:"解放区",region_level:3,children:[]},{code:"410803",name:"中站区",region_level:3,children:[]},{code:"410804",name:"马村区",region_level:3,children:[]},{code:"410811",name:"山阳区",region_level:3,children:[]},{code:"410821",name:"修武县",region_level:3,children:[]},{code:"410822",name:"博爱县",region_level:3,children:[]},{code:"410823",name:"武陟县",region_level:3,children:[]},{code:"410825",name:"温县",region_level:3,children:[]},{code:"410882",name:"沁阳市",region_level:3,children:[]},{code:"410883",name:"孟州市",region_level:3,children:[]}]},{code:"4109",name:"濮阳市",region_level:2,children:[{code:"410902",name:"华龙区",region_level:3,children:[]},{code:"410922",name:"清丰县",region_level:3,children:[]},{code:"410923",name:"南乐县",region_level:3,children:[]},{code:"410926",name:"范县",region_level:3,children:[]},{code:"410927",name:"台前县",region_level:3,children:[]},{code:"410928",name:"濮阳县",region_level:3,children:[]}]},{code:"4110",name:"许昌市",region_level:2,children:[{code:"411002",name:"魏都区",region_level:3,children:[]},{code:"411003",name:"建安区",region_level:3,children:[]},{code:"411024",name:"鄢陵县",region_level:3,children:[]},{code:"411025",name:"襄城县",region_level:3,children:[]},{code:"411081",name:"禹州市",region_level:3,children:[]},{code:"411082",name:"长葛市",region_level:3,children:[]}]},{code:"4111",name:"漯河市",region_level:2,children:[{code:"411102",name:"源汇区",region_level:3,children:[]},{code:"411103",name:"郾城区",region_level:3,children:[]},{code:"411104",name:"召陵区",region_level:3,children:[]},{code:"411121",name:"舞阳县",region_level:3,children:[]},{code:"411122",name:"临颍县",region_level:3,children:[]}]},{code:"4112",name:"三门峡市",region_level:2,children:[{code:"411202",name:"湖滨区",region_level:3,children:[]},{code:"411203",name:"陕州区",region_level:3,children:[]},{code:"411221",name:"渑池县",region_level:3,children:[]},{code:"411224",name:"卢氏县",region_level:3,children:[]},{code:"411281",name:"义马市",region_level:3,children:[]},{code:"411282",name:"灵宝市",region_level:3,children:[]}]},{code:"4113",name:"南阳市",region_level:2,children:[{code:"411302",name:"宛城区",region_level:3,children:[]},{code:"411303",name:"卧龙区",region_level:3,children:[]},{code:"411321",name:"南召县",region_level:3,children:[]},{code:"411322",name:"方城县",region_level:3,children:[]},{code:"411323",name:"西峡县",region_level:3,children:[]},{code:"411324",name:"镇平县",region_level:3,children:[]},{code:"411325",name:"内乡县",region_level:3,children:[]},{code:"411326",name:"淅川县",region_level:3,children:[]},{code:"411327",name:"社旗县",region_level:3,children:[]},{code:"411328",name:"唐河县",region_level:3,children:[]},{code:"411329",name:"新野县",region_level:3,children:[]},{code:"411330",name:"桐柏县",region_level:3,children:[]},{code:"411381",name:"邓州市",region_level:3,children:[]}]},{code:"4114",name:"商丘市",region_level:2,children:[{code:"411402",name:"梁园区",region_level:3,children:[]},{code:"411403",name:"睢阳区",region_level:3,children:[]},{code:"411421",name:"民权县",region_level:3,children:[]},{code:"411422",name:"睢县",region_level:3,children:[]},{code:"411423",name:"宁陵县",region_level:3,children:[]},{code:"411424",name:"柘城县",region_level:3,children:[]},{code:"411425",name:"虞城县",region_level:3,children:[]},{code:"411426",name:"夏邑县",region_level:3,children:[]},{code:"411481",name:"永城市",region_level:3,children:[]}]},{code:"4115",name:"信阳市",region_level:2,children:[{code:"411502",name:"浉河区",region_level:3,children:[]},{code:"411503",name:"平桥区",region_level:3,children:[]},{code:"411521",name:"罗山县",region_level:3,children:[]},{code:"411522",name:"光山县",region_level:3,children:[]},{code:"411523",name:"新县",region_level:3,children:[]},{code:"411524",name:"商城县",region_level:3,children:[]},{code:"411525",name:"固始县",region_level:3,children:[]},{code:"411526",name:"潢川县",region_level:3,children:[]},{code:"411527",name:"淮滨县",region_level:3,children:[]},{code:"411528",name:"息县",region_level:3,children:[]}]},{code:"4116",name:"周口市",region_level:2,children:[{code:"411602",name:"川汇区",region_level:3,children:[]},{code:"411603",name:"淮阳区",region_level:3,children:[]},{code:"411621",name:"扶沟县",region_level:3,children:[]},{code:"411622",name:"西华县",region_level:3,children:[]},{code:"411623",name:"商水县",region_level:3,children:[]},{code:"411624",name:"沈丘县",region_level:3,children:[]},{code:"411625",name:"郸城县",region_level:3,children:[]},{code:"411627",name:"太康县",region_level:3,children:[]},{code:"411628",name:"鹿邑县",region_level:3,children:[]},{code:"411681",name:"项城市",region_level:3,children:[]}]},{code:"4117",name:"驻马店市",region_level:2,children:[{code:"411702",name:"驿城区",region_level:3,children:[]},{code:"411721",name:"西平县",region_level:3,children:[]},{code:"411722",name:"上蔡县",region_level:3,children:[]},{code:"411723",name:"平舆县",region_level:3,children:[]},{code:"411724",name:"正阳县",region_level:3,children:[]},{code:"411725",name:"确山县",region_level:3,children:[]},{code:"411726",name:"泌阳县",region_level:3,children:[]},{code:"411727",name:"汝南县",region_level:3,children:[]},{code:"411728",name:"遂平县",region_level:3,children:[]},{code:"411729",name:"新蔡县",region_level:3,children:[]}]},{code:"4190",name:"省直辖县级行政区",region_level:2,children:[{code:"419001",name:"济源市",region_level:3,children:[]}]}]},{code:"42",name:"湖北省",region_level:1,children:[{code:"4201",name:"武汉市",region_level:2,children:[{code:"420102",name:"江岸区",region_level:3,children:[]},{code:"420103",name:"江汉区",region_level:3,children:[]},{code:"420104",name:"硚口区",region_level:3,children:[]},{code:"420105",name:"汉阳区",region_level:3,children:[]},{code:"420106",name:"武昌区",region_level:3,children:[]},{code:"420107",name:"青山区",region_level:3,children:[]},{code:"420111",name:"洪山区",region_level:3,children:[]},{code:"420112",name:"东西湖区",region_level:3,children:[]},{code:"420113",name:"汉南区",region_level:3,children:[]},{code:"420114",name:"蔡甸区",region_level:3,children:[]},{code:"420115",name:"江夏区",region_level:3,children:[]},{code:"420116",name:"黄陂区",region_level:3,children:[]},{code:"420117",name:"新洲区",region_level:3,children:[]}]},{code:"4202",name:"黄石市",region_level:2,children:[{code:"420202",name:"黄石港区",region_level:3,children:[]},{code:"420203",name:"西塞山区",region_level:3,children:[]},{code:"420204",name:"下陆区",region_level:3,children:[]},{code:"420205",name:"铁山区",region_level:3,children:[]},{code:"420222",name:"阳新县",region_level:3,children:[]},{code:"420281",name:"大冶市",region_level:3,children:[]}]},{code:"4203",name:"十堰市",region_level:2,children:[{code:"420302",name:"茅箭区",region_level:3,children:[]},{code:"420303",name:"张湾区",region_level:3,children:[]},{code:"420304",name:"郧阳区",region_level:3,children:[]},{code:"420322",name:"郧西县",region_level:3,children:[]},{code:"420323",name:"竹山县",region_level:3,children:[]},{code:"420324",name:"竹溪县",region_level:3,children:[]},{code:"420325",name:"房县",region_level:3,children:[]},{code:"420381",name:"丹江口市",region_level:3,children:[]}]},{code:"4205",name:"宜昌市",region_level:2,children:[{code:"420502",name:"西陵区",region_level:3,children:[]},{code:"420503",name:"伍家岗区",region_level:3,children:[]},{code:"420504",name:"点军区",region_level:3,children:[]},{code:"420505",name:"猇亭区",region_level:3,children:[]},{code:"420506",name:"夷陵区",region_level:3,children:[]},{code:"420525",name:"远安县",region_level:3,children:[]},{code:"420526",name:"兴山县",region_level:3,children:[]},{code:"420527",name:"秭归县",region_level:3,children:[]},{code:"420528",name:"长阳土家族自治县",region_level:3,children:[]},{code:"420529",name:"五峰土家族自治县",region_level:3,children:[]},{code:"420581",name:"宜都市",region_level:3,children:[]},{code:"420582",name:"当阳市",region_level:3,children:[]},{code:"420583",name:"枝江市",region_level:3,children:[]}]},{code:"4206",name:"襄阳市",region_level:2,children:[{code:"420602",name:"襄城区",region_level:3,children:[]},{code:"420606",name:"樊城区",region_level:3,children:[]},{code:"420607",name:"襄州区",region_level:3,children:[]},{code:"420624",name:"南漳县",region_level:3,children:[]},{code:"420625",name:"谷城县",region_level:3,children:[]},{code:"420626",name:"保康县",region_level:3,children:[]},{code:"420682",name:"老河口市",region_level:3,children:[]},{code:"420683",name:"枣阳市",region_level:3,children:[]},{code:"420684",name:"宜城市",region_level:3,children:[]}]},{code:"4207",name:"鄂州市",region_level:2,children:[{code:"420702",name:"梁子湖区",region_level:3,children:[]},{code:"420703",name:"华容区",region_level:3,children:[]},{code:"420704",name:"鄂城区",region_level:3,children:[]}]},{code:"4208",name:"荆门市",region_level:2,children:[{code:"420802",name:"东宝区",region_level:3,children:[]},{code:"420804",name:"掇刀区",region_level:3,children:[]},{code:"420822",name:"沙洋县",region_level:3,children:[]},{code:"420881",name:"钟祥市",region_level:3,children:[]},{code:"420882",name:"京山市",region_level:3,children:[]}]},{code:"4209",name:"孝感市",region_level:2,children:[{code:"420902",name:"孝南区",region_level:3,children:[]},{code:"420921",name:"孝昌县",region_level:3,children:[]},{code:"420922",name:"大悟县",region_level:3,children:[]},{code:"420923",name:"云梦县",region_level:3,children:[]},{code:"420981",name:"应城市",region_level:3,children:[]},{code:"420982",name:"安陆市",region_level:3,children:[]},{code:"420984",name:"汉川市",region_level:3,children:[]}]},{code:"4210",name:"荆州市",region_level:2,children:[{code:"421002",name:"沙市区",region_level:3,children:[]},{code:"421003",name:"荆州区",region_level:3,children:[]},{code:"421022",name:"公安县",region_level:3,children:[]},{code:"421023",name:"监利县",region_level:3,children:[]},{code:"421024",name:"江陵县",region_level:3,children:[]},{code:"421081",name:"石首市",region_level:3,children:[]},{code:"421083",name:"洪湖市",region_level:3,children:[]},{code:"421087",name:"松滋市",region_level:3,children:[]}]},{code:"4211",name:"黄冈市",region_level:2,children:[{code:"421102",name:"黄州区",region_level:3,children:[]},{code:"421121",name:"团风县",region_level:3,children:[]},{code:"421122",name:"红安县",region_level:3,children:[]},{code:"421123",name:"罗田县",region_level:3,children:[]},{code:"421124",name:"英山县",region_level:3,children:[]},{code:"421125",name:"浠水县",region_level:3,children:[]},{code:"421126",name:"蕲春县",region_level:3,children:[]},{code:"421127",name:"黄梅县",region_level:3,children:[]},{code:"421181",name:"麻城市",region_level:3,children:[]},{code:"421182",name:"武穴市",region_level:3,children:[]}]},{code:"4212",name:"咸宁市",region_level:2,children:[{code:"421202",name:"咸安区",region_level:3,children:[]},{code:"421221",name:"嘉鱼县",region_level:3,children:[]},{code:"421222",name:"通城县",region_level:3,children:[]},{code:"421223",name:"崇阳县",region_level:3,children:[]},{code:"421224",name:"通山县",region_level:3,children:[]},{code:"421281",name:"赤壁市",region_level:3,children:[]}]},{code:"4213",name:"随州市",region_level:2,children:[{code:"421303",name:"曾都区",region_level:3,children:[]},{code:"421321",name:"随县",region_level:3,children:[]},{code:"421381",name:"广水市",region_level:3,children:[]}]},{code:"4228",name:"恩施土家族苗族自治州",region_level:2,children:[{code:"422801",name:"恩施市",region_level:3,children:[]},{code:"422802",name:"利川市",region_level:3,children:[]},{code:"422822",name:"建始县",region_level:3,children:[]},{code:"422823",name:"巴东县",region_level:3,children:[]},{code:"422825",name:"宣恩县",region_level:3,children:[]},{code:"422826",name:"咸丰县",region_level:3,children:[]},{code:"422827",name:"来凤县",region_level:3,children:[]},{code:"422828",name:"鹤峰县",region_level:3,children:[]}]},{code:"4290",name:"省直辖县级行政区",region_level:2,children:[{code:"429004",name:"仙桃市",region_level:3,children:[]},{code:"429005",name:"潜江市",region_level:3,children:[]},{code:"429006",name:"天门市",region_level:3,children:[]},{code:"429021",name:"神农架林区",region_level:3,children:[]}]}]},{code:"43",name:"湖南省",region_level:1,children:[{code:"4301",name:"长沙市",region_level:2,children:[{code:"430102",name:"芙蓉区",region_level:3,children:[]},{code:"430103",name:"天心区",region_level:3,children:[]},{code:"430104",name:"岳麓区",region_level:3,children:[]},{code:"430105",name:"开福区",region_level:3,children:[]},{code:"430111",name:"雨花区",region_level:3,children:[]},{code:"430112",name:"望城区",region_level:3,children:[]},{code:"430121",name:"长沙县",region_level:3,children:[]},{code:"430181",name:"浏阳市",region_level:3,children:[]},{code:"430182",name:"宁乡市",region_level:3,children:[]}]},{code:"4302",name:"株洲市",region_level:2,children:[{code:"430202",name:"荷塘区",region_level:3,children:[]},{code:"430203",name:"芦淞区",region_level:3,children:[]},{code:"430204",name:"石峰区",region_level:3,children:[]},{code:"430211",name:"天元区",region_level:3,children:[]},{code:"430212",name:"渌口区",region_level:3,children:[]},{code:"430223",name:"攸县",region_level:3,children:[]},{code:"430224",name:"茶陵县",region_level:3,children:[]},{code:"430225",name:"炎陵县",region_level:3,children:[]},{code:"430281",name:"醴陵市",region_level:3,children:[]}]},{code:"4303",name:"湘潭市",region_level:2,children:[{code:"430302",name:"雨湖区",region_level:3,children:[]},{code:"430304",name:"岳塘区",region_level:3,children:[]},{code:"430321",name:"湘潭县",region_level:3,children:[]},{code:"430381",name:"湘乡市",region_level:3,children:[]},{code:"430382",name:"韶山市",region_level:3,children:[]}]},{code:"4304",name:"衡阳市",region_level:2,children:[{code:"430405",name:"珠晖区",region_level:3,children:[]},{code:"430406",name:"雁峰区",region_level:3,children:[]},{code:"430407",name:"石鼓区",region_level:3,children:[]},{code:"430408",name:"蒸湘区",region_level:3,children:[]},{code:"430412",name:"南岳区",region_level:3,children:[]},{code:"430421",name:"衡阳县",region_level:3,children:[]},{code:"430422",name:"衡南县",region_level:3,children:[]},{code:"430423",name:"衡山县",region_level:3,children:[]},{code:"430424",name:"衡东县",region_level:3,children:[]},{code:"430426",name:"祁东县",region_level:3,children:[]},{code:"430481",name:"耒阳市",region_level:3,children:[]},{code:"430482",name:"常宁市",region_level:3,children:[]}]},{code:"4305",name:"邵阳市",region_level:2,children:[{code:"430502",name:"双清区",region_level:3,children:[]},{code:"430503",name:"大祥区",region_level:3,children:[]},{code:"430511",name:"北塔区",region_level:3,children:[]},{code:"430522",name:"新邵县",region_level:3,children:[]},{code:"430523",name:"邵阳县",region_level:3,children:[]},{code:"430524",name:"隆回县",region_level:3,children:[]},{code:"430525",name:"洞口县",region_level:3,children:[]},{code:"430527",name:"绥宁县",region_level:3,children:[]},{code:"430528",name:"新宁县",region_level:3,children:[]},{code:"430529",name:"城步苗族自治县",region_level:3,children:[]},{code:"430581",name:"武冈市",region_level:3,children:[]},{code:"430582",name:"邵东市",region_level:3,children:[]}]},{code:"4306",name:"岳阳市",region_level:2,children:[{code:"430602",name:"岳阳楼区",region_level:3,children:[]},{code:"430603",name:"云溪区",region_level:3,children:[]},{code:"430611",name:"君山区",region_level:3,children:[]},{code:"430621",name:"岳阳县",region_level:3,children:[]},{code:"430623",name:"华容县",region_level:3,children:[]},{code:"430624",name:"湘阴县",region_level:3,children:[]},{code:"430626",name:"平江县",region_level:3,children:[]},{code:"430681",name:"汨罗市",region_level:3,children:[]},{code:"430682",name:"临湘市",region_level:3,children:[]}]},{code:"4307",name:"常德市",region_level:2,children:[{code:"430702",name:"武陵区",region_level:3,children:[]},{code:"430703",name:"鼎城区",region_level:3,children:[]},{code:"430721",name:"安乡县",region_level:3,children:[]},{code:"430722",name:"汉寿县",region_level:3,children:[]},{code:"430723",name:"澧县",region_level:3,children:[]},{code:"430724",name:"临澧县",region_level:3,children:[]},{code:"430725",name:"桃源县",region_level:3,children:[]},{code:"430726",name:"石门县",region_level:3,children:[]},{code:"430781",name:"津市市",region_level:3,children:[]}]},{code:"4308",name:"张家界市",region_level:2,children:[{code:"430802",name:"永定区",region_level:3,children:[]},{code:"430811",name:"武陵源区",region_level:3,children:[]},{code:"430821",name:"慈利县",region_level:3,children:[]},{code:"430822",name:"桑植县",region_level:3,children:[]}]},{code:"4309",name:"益阳市",region_level:2,children:[{code:"430902",name:"资阳区",region_level:3,children:[]},{code:"430903",name:"赫山区",region_level:3,children:[]},{code:"430921",name:"南县",region_level:3,children:[]},{code:"430922",name:"桃江县",region_level:3,children:[]},{code:"430923",name:"安化县",region_level:3,children:[]},{code:"430981",name:"沅江市",region_level:3,children:[]}]},{code:"4310",name:"郴州市",region_level:2,children:[{code:"431002",name:"北湖区",region_level:3,children:[]},{code:"431003",name:"苏仙区",region_level:3,children:[]},{code:"431021",name:"桂阳县",region_level:3,children:[]},{code:"431022",name:"宜章县",region_level:3,children:[]},{code:"431023",name:"永兴县",region_level:3,children:[]},{code:"431024",name:"嘉禾县",region_level:3,children:[]},{code:"431025",name:"临武县",region_level:3,children:[]},{code:"431026",name:"汝城县",region_level:3,children:[]},{code:"431027",name:"桂东县",region_level:3,children:[]},{code:"431028",name:"安仁县",region_level:3,children:[]},{code:"431081",name:"资兴市",region_level:3,children:[]}]},{code:"4311",name:"永州市",region_level:2,children:[{code:"431102",name:"零陵区",region_level:3,children:[]},{code:"431103",name:"冷水滩区",region_level:3,children:[]},{code:"431121",name:"祁阳县",region_level:3,children:[]},{code:"431122",name:"东安县",region_level:3,children:[]},{code:"431123",name:"双牌县",region_level:3,children:[]},{code:"431124",name:"道县",region_level:3,children:[]},{code:"431125",name:"江永县",region_level:3,children:[]},{code:"431126",name:"宁远县",region_level:3,children:[]},{code:"431127",name:"蓝山县",region_level:3,children:[]},{code:"431128",name:"新田县",region_level:3,children:[]},{code:"431129",name:"江华瑶族自治县",region_level:3,children:[]}]},{code:"4312",name:"怀化市",region_level:2,children:[{code:"431202",name:"鹤城区",region_level:3,children:[]},{code:"431221",name:"中方县",region_level:3,children:[]},{code:"431222",name:"沅陵县",region_level:3,children:[]},{code:"431223",name:"辰溪县",region_level:3,children:[]},{code:"431224",name:"溆浦县",region_level:3,children:[]},{code:"431225",name:"会同县",region_level:3,children:[]},{code:"431226",name:"麻阳苗族自治县",region_level:3,children:[]},{code:"431227",name:"新晃侗族自治县",region_level:3,children:[]},{code:"431228",name:"芷江侗族自治县",region_level:3,children:[]},{code:"431229",name:"靖州苗族侗族自治县",region_level:3,children:[]},{code:"431230",name:"通道侗族自治县",region_level:3,children:[]},{code:"431281",name:"洪江市",region_level:3,children:[]}]},{code:"4313",name:"娄底市",region_level:2,children:[{code:"431302",name:"娄星区",region_level:3,children:[]},{code:"431321",name:"双峰县",region_level:3,children:[]},{code:"431322",name:"新化县",region_level:3,children:[]},{code:"431381",name:"冷水江市",region_level:3,children:[]},{code:"431382",name:"涟源市",region_level:3,children:[]}]},{code:"4331",name:"湘西土家族苗族自治州",region_level:2,children:[{code:"433101",name:"吉首市",region_level:3,children:[]},{code:"433122",name:"泸溪县",region_level:3,children:[]},{code:"433123",name:"凤凰县",region_level:3,children:[]},{code:"433124",name:"花垣县",region_level:3,children:[]},{code:"433125",name:"保靖县",region_level:3,children:[]},{code:"433126",name:"古丈县",region_level:3,children:[]},{code:"433127",name:"永顺县",region_level:3,children:[]},{code:"433130",name:"龙山县",region_level:3,children:[]}]}]},{code:"44",name:"广东省",region_level:1,children:[{code:"4401",name:"广州市",region_level:2,children:[{code:"440103",name:"荔湾区",region_level:3,children:[]},{code:"440104",name:"越秀区",region_level:3,children:[]},{code:"440105",name:"海珠区",region_level:3,children:[]},{code:"440106",name:"天河区",region_level:3,children:[]},{code:"440111",name:"白云区",region_level:3,children:[]},{code:"440112",name:"黄埔区",region_level:3,children:[]},{code:"440113",name:"番禺区",region_level:3,children:[]},{code:"440114",name:"花都区",region_level:3,children:[]},{code:"440115",name:"南沙区",region_level:3,children:[]},{code:"440117",name:"从化区",region_level:3,children:[]},{code:"440118",name:"增城区",region_level:3,children:[]}]},{code:"4402",name:"韶关市",region_level:2,children:[{code:"440203",name:"武江区",region_level:3,children:[]},{code:"440204",name:"浈江区",region_level:3,children:[]},{code:"440205",name:"曲江区",region_level:3,children:[]},{code:"440222",name:"始兴县",region_level:3,children:[]},{code:"440224",name:"仁化县",region_level:3,children:[]},{code:"440229",name:"翁源县",region_level:3,children:[]},{code:"440232",name:"乳源瑶族自治县",region_level:3,children:[]},{code:"440233",name:"新丰县",region_level:3,children:[]},{code:"440281",name:"乐昌市",region_level:3,children:[]},{code:"440282",name:"南雄市",region_level:3,children:[]}]},{code:"4403",name:"深圳市",region_level:2,children:[{code:"440303",name:"罗湖区",region_level:3,children:[]},{code:"440304",name:"福田区",region_level:3,children:[]},{code:"440305",name:"南山区",region_level:3,children:[]},{code:"440306",name:"宝安区",region_level:3,children:[]},{code:"440307",name:"龙岗区",region_level:3,children:[]},{code:"440308",name:"盐田区",region_level:3,children:[]},{code:"440309",name:"龙华区",region_level:3,children:[]},{code:"440310",name:"坪山区",region_level:3,children:[]},{code:"440311",name:"光明区",region_level:3,children:[]}]},{code:"4404",name:"珠海市",region_level:2,children:[{code:"440402",name:"香洲区",region_level:3,children:[]},{code:"440403",name:"斗门区",region_level:3,children:[]},{code:"440404",name:"金湾区",region_level:3,children:[]}]},{code:"4405",name:"汕头市",region_level:2,children:[{code:"440507",name:"龙湖区",region_level:3,children:[]},{code:"440511",name:"金平区",region_level:3,children:[]},{code:"440512",name:"濠江区",region_level:3,children:[]},{code:"440513",name:"潮阳区",region_level:3,children:[]},{code:"440514",name:"潮南区",region_level:3,children:[]},{code:"440515",name:"澄海区",region_level:3,children:[]},{code:"440523",name:"南澳县",region_level:3,children:[]}]},{code:"4406",name:"佛山市",region_level:2,children:[{code:"440604",name:"禅城区",region_level:3,children:[]},{code:"440605",name:"南海区",region_level:3,children:[]},{code:"440606",name:"顺德区",region_level:3,children:[]},{code:"440607",name:"三水区",region_level:3,children:[]},{code:"440608",name:"高明区",region_level:3,children:[]}]},{code:"4407",name:"江门市",region_level:2,children:[{code:"440703",name:"蓬江区",region_level:3,children:[]},{code:"440704",name:"江海区",region_level:3,children:[]},{code:"440705",name:"新会区",region_level:3,children:[]},{code:"440781",name:"台山市",region_level:3,children:[]},{code:"440783",name:"开平市",region_level:3,children:[]},{code:"440784",name:"鹤山市",region_level:3,children:[]},{code:"440785",name:"恩平市",region_level:3,children:[]}]},{code:"4408",name:"湛江市",region_level:2,children:[{code:"440802",name:"赤坎区",region_level:3,children:[]},{code:"440803",name:"霞山区",region_level:3,children:[]},{code:"440804",name:"坡头区",region_level:3,children:[]},{code:"440811",name:"麻章区",region_level:3,children:[]},{code:"440823",name:"遂溪县",region_level:3,children:[]},{code:"440825",name:"徐闻县",region_level:3,children:[]},{code:"440881",name:"廉江市",region_level:3,children:[]},{code:"440882",name:"雷州市",region_level:3,children:[]},{code:"440883",name:"吴川市",region_level:3,children:[]}]},{code:"4409",name:"茂名市",region_level:2,children:[{code:"440902",name:"茂南区",region_level:3,children:[]},{code:"440904",name:"电白区",region_level:3,children:[]},{code:"440981",name:"高州市",region_level:3,children:[]},{code:"440982",name:"化州市",region_level:3,children:[]},{code:"440983",name:"信宜市",region_level:3,children:[]}]},{code:"4412",name:"肇庆市",region_level:2,children:[{code:"441202",name:"端州区",region_level:3,children:[]},{code:"441203",name:"鼎湖区",region_level:3,children:[]},{code:"441204",name:"高要区",region_level:3,children:[]},{code:"441223",name:"广宁县",region_level:3,children:[]},{code:"441224",name:"怀集县",region_level:3,children:[]},{code:"441225",name:"封开县",region_level:3,children:[]},{code:"441226",name:"德庆县",region_level:3,children:[]},{code:"441284",name:"四会市",region_level:3,children:[]}]},{code:"4413",name:"惠州市",region_level:2,children:[{code:"441302",name:"惠城区",region_level:3,children:[]},{code:"441303",name:"惠阳区",region_level:3,children:[]},{code:"441322",name:"博罗县",region_level:3,children:[]},{code:"441323",name:"惠东县",region_level:3,children:[]},{code:"441324",name:"龙门县",region_level:3,children:[]}]},{code:"4414",name:"梅州市",region_level:2,children:[{code:"441402",name:"梅江区",region_level:3,children:[]},{code:"441403",name:"梅县区",region_level:3,children:[]},{code:"441422",name:"大埔县",region_level:3,children:[]},{code:"441423",name:"丰顺县",region_level:3,children:[]},{code:"441424",name:"五华县",region_level:3,children:[]},{code:"441426",name:"平远县",region_level:3,children:[]},{code:"441427",name:"蕉岭县",region_level:3,children:[]},{code:"441481",name:"兴宁市",region_level:3,children:[]}]},{code:"4415",name:"汕尾市",region_level:2,children:[{code:"441502",name:"城区",region_level:3,children:[]},{code:"441521",name:"海丰县",region_level:3,children:[]},{code:"441523",name:"陆河县",region_level:3,children:[]},{code:"441581",name:"陆丰市",region_level:3,children:[]}]},{code:"4416",name:"河源市",region_level:2,children:[{code:"441602",name:"源城区",region_level:3,children:[]},{code:"441621",name:"紫金县",region_level:3,children:[]},{code:"441622",name:"龙川县",region_level:3,children:[]},{code:"441623",name:"连平县",region_level:3,children:[]},{code:"441624",name:"和平县",region_level:3,children:[]},{code:"441625",name:"东源县",region_level:3,children:[]}]},{code:"4417",name:"阳江市",region_level:2,children:[{code:"441702",name:"江城区",region_level:3,children:[]},{code:"441704",name:"阳东区",region_level:3,children:[]},{code:"441721",name:"阳西县",region_level:3,children:[]},{code:"441781",name:"阳春市",region_level:3,children:[]}]},{code:"4418",name:"清远市",region_level:2,children:[{code:"441802",name:"清城区",region_level:3,children:[]},{code:"441803",name:"清新区",region_level:3,children:[]},{code:"441821",name:"佛冈县",region_level:3,children:[]},{code:"441823",name:"阳山县",region_level:3,children:[]},{code:"441825",name:"连山壮族瑶族自治县",region_level:3,children:[]},{code:"441826",name:"连南瑶族自治县",region_level:3,children:[]},{code:"441881",name:"英德市",region_level:3,children:[]},{code:"441882",name:"连州市",region_level:3,children:[]}]},{code:"4419",name:"东莞市",region_level:2,children:[{code:"441900",name:"东莞市",region_level:3,children:[]}]},{code:"4420",name:"中山市",region_level:2,children:[{code:"442000",name:"中山市",region_level:3,children:[]}]},{code:"4451",name:"潮州市",region_level:2,children:[{code:"445102",name:"湘桥区",region_level:3,children:[]},{code:"445103",name:"潮安区",region_level:3,children:[]},{code:"445122",name:"饶平县",region_level:3,children:[]}]},{code:"4452",name:"揭阳市",region_level:2,children:[{code:"445202",name:"榕城区",region_level:3,children:[]},{code:"445203",name:"揭东区",region_level:3,children:[]},{code:"445222",name:"揭西县",region_level:3,children:[]},{code:"445224",name:"惠来县",region_level:3,children:[]},{code:"445281",name:"普宁市",region_level:3,children:[]}]},{code:"4453",name:"云浮市",region_level:2,children:[{code:"445302",name:"云城区",region_level:3,children:[]},{code:"445303",name:"云安区",region_level:3,children:[]},{code:"445321",name:"新兴县",region_level:3,children:[]},{code:"445322",name:"郁南县",region_level:3,children:[]},{code:"445381",name:"罗定市",region_level:3,children:[]}]}]},{code:"45",name:"广西壮族自治区",region_level:1,children:[{code:"4501",name:"南宁市",region_level:2,children:[{code:"450102",name:"兴宁区",region_level:3,children:[]},{code:"450103",name:"青秀区",region_level:3,children:[]},{code:"450105",name:"江南区",region_level:3,children:[]},{code:"450107",name:"西乡塘区",region_level:3,children:[]},{code:"450108",name:"良庆区",region_level:3,children:[]},{code:"450109",name:"邕宁区",region_level:3,children:[]},{code:"450110",name:"武鸣区",region_level:3,children:[]},{code:"450123",name:"隆安县",region_level:3,children:[]},{code:"450124",name:"马山县",region_level:3,children:[]},{code:"450125",name:"上林县",region_level:3,children:[]},{code:"450126",name:"宾阳县",region_level:3,children:[]},{code:"450127",name:"横县",region_level:3,children:[]}]},{code:"4502",name:"柳州市",region_level:2,children:[{code:"450202",name:"城中区",region_level:3,children:[]},{code:"450203",name:"鱼峰区",region_level:3,children:[]},{code:"450204",name:"柳南区",region_level:3,children:[]},{code:"450205",name:"柳北区",region_level:3,children:[]},{code:"450206",name:"柳江区",region_level:3,children:[]},{code:"450222",name:"柳城县",region_level:3,children:[]},{code:"450223",name:"鹿寨县",region_level:3,children:[]},{code:"450224",name:"融安县",region_level:3,children:[]},{code:"450225",name:"融水苗族自治县",region_level:3,children:[]},{code:"450226",name:"三江侗族自治县",region_level:3,children:[]}]},{code:"4503",name:"桂林市",region_level:2,children:[{code:"450302",name:"秀峰区",region_level:3,children:[]},{code:"450303",name:"叠彩区",region_level:3,children:[]},{code:"450304",name:"象山区",region_level:3,children:[]},{code:"450305",name:"七星区",region_level:3,children:[]},{code:"450311",name:"雁山区",region_level:3,children:[]},{code:"450312",name:"临桂区",region_level:3,children:[]},{code:"450321",name:"阳朔县",region_level:3,children:[]},{code:"450323",name:"灵川县",region_level:3,children:[]},{code:"450324",name:"全州县",region_level:3,children:[]},{code:"450325",name:"兴安县",region_level:3,children:[]},{code:"450326",name:"永福县",region_level:3,children:[]},{code:"450327",name:"灌阳县",region_level:3,children:[]},{code:"450328",name:"龙胜各族自治县",region_level:3,children:[]},{code:"450329",name:"资源县",region_level:3,children:[]},{code:"450330",name:"平乐县",region_level:3,children:[]},{code:"450332",name:"恭城瑶族自治县",region_level:3,children:[]},{code:"450381",name:"荔浦市",region_level:3,children:[]}]},{code:"4504",name:"梧州市",region_level:2,children:[{code:"450403",name:"万秀区",region_level:3,children:[]},{code:"450405",name:"长洲区",region_level:3,children:[]},{code:"450406",name:"龙圩区",region_level:3,children:[]},{code:"450421",name:"苍梧县",region_level:3,children:[]},{code:"450422",name:"藤县",region_level:3,children:[]},{code:"450423",name:"蒙山县",region_level:3,children:[]},{code:"450481",name:"岑溪市",region_level:3,children:[]}]},{code:"4505",name:"北海市",region_level:2,children:[{code:"450502",name:"海城区",region_level:3,children:[]},{code:"450503",name:"银海区",region_level:3,children:[]},{code:"450512",name:"铁山港区",region_level:3,children:[]},{code:"450521",name:"合浦县",region_level:3,children:[]}]},{code:"4506",name:"防城港市",region_level:2,children:[{code:"450602",name:"港口区",region_level:3,children:[]},{code:"450603",name:"防城区",region_level:3,children:[]},{code:"450621",name:"上思县",region_level:3,children:[]},{code:"450681",name:"东兴市",region_level:3,children:[]}]},{code:"4507",name:"钦州市",region_level:2,children:[{code:"450702",name:"钦南区",region_level:3,children:[]},{code:"450703",name:"钦北区",region_level:3,children:[]},{code:"450721",name:"灵山县",region_level:3,children:[]},{code:"450722",name:"浦北县",region_level:3,children:[]}]},{code:"4508",name:"贵港市",region_level:2,children:[{code:"450802",name:"港北区",region_level:3,children:[]},{code:"450803",name:"港南区",region_level:3,children:[]},{code:"450804",name:"覃塘区",region_level:3,children:[]},{code:"450821",name:"平南县",region_level:3,children:[]},{code:"450881",name:"桂平市",region_level:3,children:[]}]},{code:"4509",name:"玉林市",region_level:2,children:[{code:"450902",name:"玉州区",region_level:3,children:[]},{code:"450903",name:"福绵区",region_level:3,children:[]},{code:"450921",name:"容县",region_level:3,children:[]},{code:"450922",name:"陆川县",region_level:3,children:[]},{code:"450923",name:"博白县",region_level:3,children:[]},{code:"450924",name:"兴业县",region_level:3,children:[]},{code:"450981",name:"北流市",region_level:3,children:[]}]},{code:"4510",name:"百色市",region_level:2,children:[{code:"451002",name:"右江区",region_level:3,children:[]},{code:"451003",name:"田阳区",region_level:3,children:[]},{code:"451022",name:"田东县",region_level:3,children:[]},{code:"451024",name:"德保县",region_level:3,children:[]},{code:"451026",name:"那坡县",region_level:3,children:[]},{code:"451027",name:"凌云县",region_level:3,children:[]},{code:"451028",name:"乐业县",region_level:3,children:[]},{code:"451029",name:"田林县",region_level:3,children:[]},{code:"451030",name:"西林县",region_level:3,children:[]},{code:"451031",name:"隆林各族自治县",region_level:3,children:[]},{code:"451081",name:"靖西市",region_level:3,children:[]},{code:"451082",name:"平果市",region_level:3,children:[]}]},{code:"4511",name:"贺州市",region_level:2,children:[{code:"451102",name:"八步区",region_level:3,children:[]},{code:"451103",name:"平桂区",region_level:3,children:[]},{code:"451121",name:"昭平县",region_level:3,children:[]},{code:"451122",name:"钟山县",region_level:3,children:[]},{code:"451123",name:"富川瑶族自治县",region_level:3,children:[]}]},{code:"4512",name:"河池市",region_level:2,children:[{code:"451202",name:"金城江区",region_level:3,children:[]},{code:"451203",name:"宜州区",region_level:3,children:[]},{code:"451221",name:"南丹县",region_level:3,children:[]},{code:"451222",name:"天峨县",region_level:3,children:[]},{code:"451223",name:"凤山县",region_level:3,children:[]},{code:"451224",name:"东兰县",region_level:3,children:[]},{code:"451225",name:"罗城仫佬族自治县",region_level:3,children:[]},{code:"451226",name:"环江毛南族自治县",region_level:3,children:[]},{code:"451227",name:"巴马瑶族自治县",region_level:3,children:[]},{code:"451228",name:"都安瑶族自治县",region_level:3,children:[]},{code:"451229",name:"大化瑶族自治县",region_level:3,children:[]}]},{code:"4513",name:"来宾市",region_level:2,children:[{code:"451302",name:"兴宾区",region_level:3,children:[]},{code:"451321",name:"忻城县",region_level:3,children:[]},{code:"451322",name:"象州县",region_level:3,children:[]},{code:"451323",name:"武宣县",region_level:3,children:[]},{code:"451324",name:"金秀瑶族自治县",region_level:3,children:[]},{code:"451381",name:"合山市",region_level:3,children:[]}]},{code:"4514",name:"崇左市",region_level:2,children:[{code:"451402",name:"江州区",region_level:3,children:[]},{code:"451421",name:"扶绥县",region_level:3,children:[]},{code:"451422",name:"宁明县",region_level:3,children:[]},{code:"451423",name:"龙州县",region_level:3,children:[]},{code:"451424",name:"大新县",region_level:3,children:[]},{code:"451425",name:"天等县",region_level:3,children:[]},{code:"451481",name:"凭祥市",region_level:3,children:[]}]}]},{code:"46",name:"海南省",region_level:1,children:[{code:"4601",name:"海口市",region_level:2,children:[{code:"460105",name:"秀英区",region_level:3,children:[]},{code:"460106",name:"龙华区",region_level:3,children:[]},{code:"460107",name:"琼山区",region_level:3,children:[]},{code:"460108",name:"美兰区",region_level:3,children:[]}]},{code:"4602",name:"三亚市",region_level:2,children:[{code:"460202",name:"海棠区",region_level:3,children:[]},{code:"460203",name:"吉阳区",region_level:3,children:[]},{code:"460204",name:"天涯区",region_level:3,children:[]},{code:"460205",name:"崖州区",region_level:3,children:[]}]},{code:"4603",name:"三沙市",region_level:2,children:[{code:"460300",name:"三沙市",region_level:3,children:[]}]},{code:"4604",name:"儋州市",region_level:2,children:[{code:"460400",name:"儋州市",region_level:3,children:[]}]},{code:"4690",name:"省直辖县级行政区",region_level:2,children:[{code:"469001",name:"五指山市",region_level:3,children:[]},{code:"469002",name:"琼海市",region_level:3,children:[]},{code:"469005",name:"文昌市",region_level:3,children:[]},{code:"469006",name:"万宁市",region_level:3,children:[]},{code:"469007",name:"东方市",region_level:3,children:[]},{code:"469021",name:"定安县",region_level:3,children:[]},{code:"469022",name:"屯昌县",region_level:3,children:[]},{code:"469023",name:"澄迈县",region_level:3,children:[]},{code:"469024",name:"临高县",region_level:3,children:[]},{code:"469025",name:"白沙黎族自治县",region_level:3,children:[]},{code:"469026",name:"昌江黎族自治县",region_level:3,children:[]},{code:"469027",name:"乐东黎族自治县",region_level:3,children:[]},{code:"469028",name:"陵水黎族自治县",region_level:3,children:[]},{code:"469029",name:"保亭黎族苗族自治县",region_level:3,children:[]},{code:"469030",name:"琼中黎族苗族自治县",region_level:3,children:[]}]}]},{code:"50",name:"重庆市",region_level:1,children:[{code:"5001",name:"重庆市",region_level:2,children:[{code:"500101",name:"万州区",region_level:3,children:[]},{code:"500102",name:"涪陵区",region_level:3,children:[]},{code:"500103",name:"渝中区",region_level:3,children:[]},{code:"500104",name:"大渡口区",region_level:3,children:[]},{code:"500105",name:"江北区",region_level:3,children:[]},{code:"500106",name:"沙坪坝区",region_level:3,children:[]},{code:"500107",name:"九龙坡区",region_level:3,children:[]},{code:"500108",name:"南岸区",region_level:3,children:[]},{code:"500109",name:"北碚区",region_level:3,children:[]},{code:"500110",name:"綦江区",region_level:3,children:[]},{code:"500111",name:"大足区",region_level:3,children:[]},{code:"500112",name:"渝北区",region_level:3,children:[]},{code:"500113",name:"巴南区",region_level:3,children:[]},{code:"500114",name:"黔江区",region_level:3,children:[]},{code:"500115",name:"长寿区",region_level:3,children:[]},{code:"500116",name:"江津区",region_level:3,children:[]},{code:"500117",name:"合川区",region_level:3,children:[]},{code:"500118",name:"永川区",region_level:3,children:[]},{code:"500119",name:"南川区",region_level:3,children:[]},{code:"500120",name:"璧山区",region_level:3,children:[]},{code:"500151",name:"铜梁区",region_level:3,children:[]},{code:"500152",name:"潼南区",region_level:3,children:[]},{code:"500153",name:"荣昌区",region_level:3,children:[]},{code:"500154",name:"开州区",region_level:3,children:[]},{code:"500155",name:"梁平区",region_level:3,children:[]},{code:"500156",name:"武隆区",region_level:3,children:[]}]},{code:"5002",name:"重庆市",region_level:2,children:[{code:"500229",name:"城口县",region_level:3,children:[]},{code:"500230",name:"丰都县",region_level:3,children:[]},{code:"500231",name:"垫江县",region_level:3,children:[]},{code:"500233",name:"忠县",region_level:3,children:[]},{code:"500235",name:"云阳县",region_level:3,children:[]},{code:"500236",name:"奉节县",region_level:3,children:[]},{code:"500237",name:"巫山县",region_level:3,children:[]},{code:"500238",name:"巫溪县",region_level:3,children:[]},{code:"500240",name:"石柱土家族自治县",region_level:3,children:[]},{code:"500241",name:"秀山土家族苗族自治县",region_level:3,children:[]},{code:"500242",name:"酉阳土家族苗族自治县",region_level:3,children:[]},{code:"500243",name:"彭水苗族土家族自治县",region_level:3,children:[]}]}]},{code:"51",name:"四川省",region_level:1,children:[{code:"5101",name:"成都市",region_level:2,children:[{code:"510104",name:"锦江区",region_level:3,children:[]},{code:"510105",name:"青羊区",region_level:3,children:[]},{code:"510106",name:"金牛区",region_level:3,children:[]},{code:"510107",name:"武侯区",region_level:3,children:[]},{code:"510108",name:"成华区",region_level:3,children:[]},{code:"510112",name:"龙泉驿区",region_level:3,children:[]},{code:"510113",name:"青白江区",region_level:3,children:[]},{code:"510114",name:"新都区",region_level:3,children:[]},{code:"510115",name:"温江区",region_level:3,children:[]},{code:"510116",name:"双流区",region_level:3,children:[]},{code:"510117",name:"郫都区",region_level:3,children:[]},{code:"510121",name:"金堂县",region_level:3,children:[]},{code:"510129",name:"大邑县",region_level:3,children:[]},{code:"510131",name:"蒲江县",region_level:3,children:[]},{code:"510132",name:"新津县",region_level:3,children:[]},{code:"510181",name:"都江堰市",region_level:3,children:[]},{code:"510182",name:"彭州市",region_level:3,children:[]},{code:"510183",name:"邛崃市",region_level:3,children:[]},{code:"510184",name:"崇州市",region_level:3,children:[]},{code:"510185",name:"简阳市",region_level:3,children:[]}]},{code:"5103",name:"自贡市",region_level:2,children:[{code:"510302",name:"自流井区",region_level:3,children:[]},{code:"510303",name:"贡井区",region_level:3,children:[]},{code:"510304",name:"大安区",region_level:3,children:[]},{code:"510311",name:"沿滩区",region_level:3,children:[]},{code:"510321",name:"荣县",region_level:3,children:[]},{code:"510322",name:"富顺县",region_level:3,children:[]}]},{code:"5104",name:"攀枝花市",region_level:2,children:[{code:"510402",name:"东区",region_level:3,children:[]},{code:"510403",name:"西区",region_level:3,children:[]},{code:"510411",name:"仁和区",region_level:3,children:[]},{code:"510421",name:"米易县",region_level:3,children:[]},{code:"510422",name:"盐边县",region_level:3,children:[]}]},{code:"5105",name:"泸州市",region_level:2,children:[{code:"510502",name:"江阳区",region_level:3,children:[]},{code:"510503",name:"纳溪区",region_level:3,children:[]},{code:"510504",name:"龙马潭区",region_level:3,children:[]},{code:"510521",name:"泸县",region_level:3,children:[]},{code:"510522",name:"合江县",region_level:3,children:[]},{code:"510524",name:"叙永县",region_level:3,children:[]},{code:"510525",name:"古蔺县",region_level:3,children:[]}]},{code:"5106",name:"德阳市",region_level:2,children:[{code:"510603",name:"旌阳区",region_level:3,children:[]},{code:"510604",name:"罗江区",region_level:3,children:[]},{code:"510623",name:"中江县",region_level:3,children:[]},{code:"510681",name:"广汉市",region_level:3,children:[]},{code:"510682",name:"什邡市",region_level:3,children:[]},{code:"510683",name:"绵竹市",region_level:3,children:[]}]},{code:"5107",name:"绵阳市",region_level:2,children:[{code:"510703",name:"涪城区",region_level:3,children:[]},{code:"510704",name:"游仙区",region_level:3,children:[]},{code:"510705",name:"安州区",region_level:3,children:[]},{code:"510722",name:"三台县",region_level:3,children:[]},{code:"510723",name:"盐亭县",region_level:3,children:[]},{code:"510725",name:"梓潼县",region_level:3,children:[]},{code:"510726",name:"北川羌族自治县",region_level:3,children:[]},{code:"510727",name:"平武县",region_level:3,children:[]},{code:"510781",name:"江油市",region_level:3,children:[]}]},{code:"5108",name:"广元市",region_level:2,children:[{code:"510802",name:"利州区",region_level:3,children:[]},{code:"510811",name:"昭化区",region_level:3,children:[]},{code:"510812",name:"朝天区",region_level:3,children:[]},{code:"510821",name:"旺苍县",region_level:3,children:[]},{code:"510822",name:"青川县",region_level:3,children:[]},{code:"510823",name:"剑阁县",region_level:3,children:[]},{code:"510824",name:"苍溪县",region_level:3,children:[]}]},{code:"5109",name:"遂宁市",region_level:2,children:[{code:"510903",name:"船山区",region_level:3,children:[]},{code:"510904",name:"安居区",region_level:3,children:[]},{code:"510921",name:"蓬溪县",region_level:3,children:[]},{code:"510923",name:"大英县",region_level:3,children:[]},{code:"510981",name:"射洪市",region_level:3,children:[]}]},{code:"5110",name:"内江市",region_level:2,children:[{code:"511002",name:"市中区",region_level:3,children:[]},{code:"511011",name:"东兴区",region_level:3,children:[]},{code:"511024",name:"威远县",region_level:3,children:[]},{code:"511025",name:"资中县",region_level:3,children:[]},{code:"511083",name:"隆昌市",region_level:3,children:[]}]},{code:"5111",name:"乐山市",region_level:2,children:[{code:"511102",name:"市中区",region_level:3,children:[]},{code:"511111",name:"沙湾区",region_level:3,children:[]},{code:"511112",name:"五通桥区",region_level:3,children:[]},{code:"511113",name:"金口河区",region_level:3,children:[]},{code:"511123",name:"犍为县",region_level:3,children:[]},{code:"511124",name:"井研县",region_level:3,children:[]},{code:"511126",name:"夹江县",region_level:3,children:[]},{code:"511129",name:"沐川县",region_level:3,children:[]},{code:"511132",name:"峨边彝族自治县",region_level:3,children:[]},{code:"511133",name:"马边彝族自治县",region_level:3,children:[]},{code:"511181",name:"峨眉山市",region_level:3,children:[]}]},{code:"5113",name:"南充市",region_level:2,children:[{code:"511302",name:"顺庆区",region_level:3,children:[]},{code:"511303",name:"高坪区",region_level:3,children:[]},{code:"511304",name:"嘉陵区",region_level:3,children:[]},{code:"511321",name:"南部县",region_level:3,children:[]},{code:"511322",name:"营山县",region_level:3,children:[]},{code:"511323",name:"蓬安县",region_level:3,children:[]},{code:"511324",name:"仪陇县",region_level:3,children:[]},{code:"511325",name:"西充县",region_level:3,children:[]},{code:"511381",name:"阆中市",region_level:3,children:[]}]},{code:"5114",name:"眉山市",region_level:2,children:[{code:"511402",name:"东坡区",region_level:3,children:[]},{code:"511403",name:"彭山区",region_level:3,children:[]},{code:"511421",name:"仁寿县",region_level:3,children:[]},{code:"511423",name:"洪雅县",region_level:3,children:[]},{code:"511424",name:"丹棱县",region_level:3,children:[]},{code:"511425",name:"青神县",region_level:3,children:[]}]},{code:"5115",name:"宜宾市",region_level:2,children:[{code:"511502",name:"翠屏区",region_level:3,children:[]},{code:"511503",name:"南溪区",region_level:3,children:[]},{code:"511504",name:"叙州区",region_level:3,children:[]},{code:"511523",name:"江安县",region_level:3,children:[]},{code:"511524",name:"长宁县",region_level:3,children:[]},{code:"511525",name:"高县",region_level:3,children:[]},{code:"511526",name:"珙县",region_level:3,children:[]},{code:"511527",name:"筠连县",region_level:3,children:[]},{code:"511528",name:"兴文县",region_level:3,children:[]},{code:"511529",name:"屏山县",region_level:3,children:[]}]},{code:"5116",name:"广安市",region_level:2,children:[{code:"511602",name:"广安区",region_level:3,children:[]},{code:"511603",name:"前锋区",region_level:3,children:[]},{code:"511621",name:"岳池县",region_level:3,children:[]},{code:"511622",name:"武胜县",region_level:3,children:[]},{code:"511623",name:"邻水县",region_level:3,children:[]},{code:"511681",name:"华蓥市",region_level:3,children:[]}]},{code:"5117",name:"达州市",region_level:2,children:[{code:"511702",name:"通川区",region_level:3,children:[]},{code:"511703",name:"达川区",region_level:3,children:[]},{code:"511722",name:"宣汉县",region_level:3,children:[]},{code:"511723",name:"开江县",region_level:3,children:[]},{code:"511724",name:"大竹县",region_level:3,children:[]},{code:"511725",name:"渠县",region_level:3,children:[]},{code:"511781",name:"万源市",region_level:3,children:[]}]},{code:"5118",name:"雅安市",region_level:2,children:[{code:"511802",name:"雨城区",region_level:3,children:[]},{code:"511803",name:"名山区",region_level:3,children:[]},{code:"511822",name:"荥经县",region_level:3,children:[]},{code:"511823",name:"汉源县",region_level:3,children:[]},{code:"511824",name:"石棉县",region_level:3,children:[]},{code:"511825",name:"天全县",region_level:3,children:[]},{code:"511826",name:"芦山县",region_level:3,children:[]},{code:"511827",name:"宝兴县",region_level:3,children:[]}]},{code:"5119",name:"巴中市",region_level:2,children:[{code:"511902",name:"巴州区",region_level:3,children:[]},{code:"511903",name:"恩阳区",region_level:3,children:[]},{code:"511921",name:"通江县",region_level:3,children:[]},{code:"511922",name:"南江县",region_level:3,children:[]},{code:"511923",name:"平昌县",region_level:3,children:[]}]},{code:"5120",name:"资阳市",region_level:2,children:[{code:"512002",name:"雁江区",region_level:3,children:[]},{code:"512021",name:"安岳县",region_level:3,children:[]},{code:"512022",name:"乐至县",region_level:3,children:[]}]},{code:"5132",name:"阿坝藏族羌族自治州",region_level:2,children:[{code:"513201",name:"马尔康市",region_level:3,children:[]},{code:"513221",name:"汶川县",region_level:3,children:[]},{code:"513222",name:"理县",region_level:3,children:[]},{code:"513223",name:"茂县",region_level:3,children:[]},{code:"513224",name:"松潘县",region_level:3,children:[]},{code:"513225",name:"九寨沟县",region_level:3,children:[]},{code:"513226",name:"金川县",region_level:3,children:[]},{code:"513227",name:"小金县",region_level:3,children:[]},{code:"513228",name:"黑水县",region_level:3,children:[]},{code:"513230",name:"壤塘县",region_level:3,children:[]},{code:"513231",name:"阿坝县",region_level:3,children:[]},{code:"513232",name:"若尔盖县",region_level:3,children:[]},{code:"513233",name:"红原县",region_level:3,children:[]}]},{code:"5133",name:"甘孜藏族自治州",region_level:2,children:[{code:"513301",name:"康定市",region_level:3,children:[]},{code:"513322",name:"泸定县",region_level:3,children:[]},{code:"513323",name:"丹巴县",region_level:3,children:[]},{code:"513324",name:"九龙县",region_level:3,children:[]},{code:"513325",name:"雅江县",region_level:3,children:[]},{code:"513326",name:"道孚县",region_level:3,children:[]},{code:"513327",name:"炉霍县",region_level:3,children:[]},{code:"513328",name:"甘孜县",region_level:3,children:[]},{code:"513329",name:"新龙县",region_level:3,children:[]},{code:"513330",name:"德格县",region_level:3,children:[]},{code:"513331",name:"白玉县",region_level:3,children:[]},{code:"513332",name:"石渠县",region_level:3,children:[]},{code:"513333",name:"色达县",region_level:3,children:[]},{code:"513334",name:"理塘县",region_level:3,children:[]},{code:"513335",name:"巴塘县",region_level:3,children:[]},{code:"513336",name:"乡城县",region_level:3,children:[]},{code:"513337",name:"稻城县",region_level:3,children:[]},{code:"513338",name:"得荣县",region_level:3,children:[]}]},{code:"5134",name:"凉山彝族自治州",region_level:2,children:[{code:"513401",name:"西昌市",region_level:3,children:[]},{code:"513422",name:"木里藏族自治县",region_level:3,children:[]},{code:"513423",name:"盐源县",region_level:3,children:[]},{code:"513424",name:"德昌县",region_level:3,children:[]},{code:"513425",name:"会理县",region_level:3,children:[]},{code:"513426",name:"会东县",region_level:3,children:[]},{code:"513427",name:"宁南县",region_level:3,children:[]},{code:"513428",name:"普格县",region_level:3,children:[]},{code:"513429",name:"布拖县",region_level:3,children:[]},{code:"513430",name:"金阳县",region_level:3,children:[]},{code:"513431",name:"昭觉县",region_level:3,children:[]},{code:"513432",name:"喜德县",region_level:3,children:[]},{code:"513433",name:"冕宁县",region_level:3,children:[]},{code:"513434",name:"越西县",region_level:3,children:[]},{code:"513435",name:"甘洛县",region_level:3,children:[]},{code:"513436",name:"美姑县",region_level:3,children:[]},{code:"513437",name:"雷波县",region_level:3,children:[]}]}]},{code:"52",name:"贵州省",region_level:1,children:[{code:"5201",name:"贵阳市",region_level:2,children:[{code:"520102",name:"南明区",region_level:3,children:[]},{code:"520103",name:"云岩区",region_level:3,children:[]},{code:"520111",name:"花溪区",region_level:3,children:[]},{code:"520112",name:"乌当区",region_level:3,children:[]},{code:"520113",name:"白云区",region_level:3,children:[]},{code:"520115",name:"观山湖区",region_level:3,children:[]},{code:"520121",name:"开阳县",region_level:3,children:[]},{code:"520122",name:"息烽县",region_level:3,children:[]},{code:"520123",name:"修文县",region_level:3,children:[]},{code:"520181",name:"清镇市",region_level:3,children:[]}]},{code:"5202",name:"六盘水市",region_level:2,children:[{code:"520201",name:"钟山区",region_level:3,children:[]},{code:"520203",name:"六枝特区",region_level:3,children:[]},{code:"520221",name:"水城县",region_level:3,children:[]},{code:"520281",name:"盘州市",region_level:3,children:[]}]},{code:"5203",name:"遵义市",region_level:2,children:[{code:"520302",name:"红花岗区",region_level:3,children:[]},{code:"520303",name:"汇川区",region_level:3,children:[]},{code:"520304",name:"播州区",region_level:3,children:[]},{code:"520322",name:"桐梓县",region_level:3,children:[]},{code:"520323",name:"绥阳县",region_level:3,children:[]},{code:"520324",name:"正安县",region_level:3,children:[]},{code:"520325",name:"道真仡佬族苗族自治县",region_level:3,children:[]},{code:"520326",name:"务川仡佬族苗族自治县",region_level:3,children:[]},{code:"520327",name:"凤冈县",region_level:3,children:[]},{code:"520328",name:"湄潭县",region_level:3,children:[]},{code:"520329",name:"余庆县",region_level:3,children:[]},{code:"520330",name:"习水县",region_level:3,children:[]},{code:"520381",name:"赤水市",region_level:3,children:[]},{code:"520382",name:"仁怀市",region_level:3,children:[]}]},{code:"5204",name:"安顺市",region_level:2,children:[{code:"520402",name:"西秀区",region_level:3,children:[]},{code:"520403",name:"平坝区",region_level:3,children:[]},{code:"520422",name:"普定县",region_level:3,children:[]},{code:"520423",name:"镇宁布依族苗族自治县",region_level:3,children:[]},{code:"520424",name:"关岭布依族苗族自治县",region_level:3,children:[]},{code:"520425",name:"紫云苗族布依族自治县",region_level:3,children:[]}]},{code:"5205",name:"毕节市",region_level:2,children:[{code:"520502",name:"七星关区",region_level:3,children:[]},{code:"520521",name:"大方县",region_level:3,children:[]},{code:"520522",name:"黔西县",region_level:3,children:[]},{code:"520523",name:"金沙县",region_level:3,children:[]},{code:"520524",name:"织金县",region_level:3,children:[]},{code:"520525",name:"纳雍县",region_level:3,children:[]},{code:"520526",name:"威宁彝族回族苗族自治县",region_level:3,children:[]},{code:"520527",name:"赫章县",region_level:3,children:[]}]},{code:"5206",name:"铜仁市",region_level:2,children:[{code:"520602",name:"碧江区",region_level:3,children:[]},{code:"520603",name:"万山区",region_level:3,children:[]},{code:"520621",name:"江口县",region_level:3,children:[]},{code:"520622",name:"玉屏侗族自治县",region_level:3,children:[]},{code:"520623",name:"石阡县",region_level:3,children:[]},{code:"520624",name:"思南县",region_level:3,children:[]},{code:"520625",name:"印江土家族苗族自治县",region_level:3,children:[]},{code:"520626",name:"德江县",region_level:3,children:[]},{code:"520627",name:"沿河土家族自治县",region_level:3,children:[]},{code:"520628",name:"松桃苗族自治县",region_level:3,children:[]}]},{code:"5223",name:"黔西南布依族苗族自治州",region_level:2,children:[{code:"522301",name:"兴义市",region_level:3,children:[]},{code:"522302",name:"兴仁市",region_level:3,children:[]},{code:"522323",name:"普安县",region_level:3,children:[]},{code:"522324",name:"晴隆县",region_level:3,children:[]},{code:"522325",name:"贞丰县",region_level:3,children:[]},{code:"522326",name:"望谟县",region_level:3,children:[]},{code:"522327",name:"册亨县",region_level:3,children:[]},{code:"522328",name:"安龙县",region_level:3,children:[]}]},{code:"5226",name:"黔东南苗族侗族自治州",region_level:2,children:[{code:"522601",name:"凯里市",region_level:3,children:[]},{code:"522622",name:"黄平县",region_level:3,children:[]},{code:"522623",name:"施秉县",region_level:3,children:[]},{code:"522624",name:"三穗县",region_level:3,children:[]},{code:"522625",name:"镇远县",region_level:3,children:[]},{code:"522626",name:"岑巩县",region_level:3,children:[]},{code:"522627",name:"天柱县",region_level:3,children:[]},{code:"522628",name:"锦屏县",region_level:3,children:[]},{code:"522629",name:"剑河县",region_level:3,children:[]},{code:"522630",name:"台江县",region_level:3,children:[]},{code:"522631",name:"黎平县",region_level:3,children:[]},{code:"522632",name:"榕江县",region_level:3,children:[]},{code:"522633",name:"从江县",region_level:3,children:[]},{code:"522634",name:"雷山县",region_level:3,children:[]},{code:"522635",name:"麻江县",region_level:3,children:[]},{code:"522636",name:"丹寨县",region_level:3,children:[]}]},{code:"5227",name:"黔南布依族苗族自治州",region_level:2,children:[{code:"522701",name:"都匀市",region_level:3,children:[]},{code:"522702",name:"福泉市",region_level:3,children:[]},{code:"522722",name:"荔波县",region_level:3,children:[]},{code:"522723",name:"贵定县",region_level:3,children:[]},{code:"522725",name:"瓮安县",region_level:3,children:[]},{code:"522726",name:"独山县",region_level:3,children:[]},{code:"522727",name:"平塘县",region_level:3,children:[]},{code:"522728",name:"罗甸县",region_level:3,children:[]},{code:"522729",name:"长顺县",region_level:3,children:[]},{code:"522730",name:"龙里县",region_level:3,children:[]},{code:"522731",name:"惠水县",region_level:3,children:[]},{code:"522732",name:"三都水族自治县",region_level:3,children:[]}]}]},{code:"53",name:"云南省",region_level:1,children:[{code:"5301",name:"昆明市",region_level:2,children:[{code:"530102",name:"五华区",region_level:3,children:[]},{code:"530103",name:"盘龙区",region_level:3,children:[]},{code:"530111",name:"官渡区",region_level:3,children:[]},{code:"530112",name:"西山区",region_level:3,children:[]},{code:"530113",name:"东川区",region_level:3,children:[]},{code:"530114",name:"呈贡区",region_level:3,children:[]},{code:"530115",name:"晋宁区",region_level:3,children:[]},{code:"530124",name:"富民县",region_level:3,children:[]},{code:"530125",name:"宜良县",region_level:3,children:[]},{code:"530126",name:"石林彝族自治县",region_level:3,children:[]},{code:"530127",name:"嵩明县",region_level:3,children:[]},{code:"530128",name:"禄劝彝族苗族自治县",region_level:3,children:[]},{code:"530129",name:"寻甸回族彝族自治县",region_level:3,children:[]},{code:"530181",name:"安宁市",region_level:3,children:[]}]},{code:"5303",name:"曲靖市",region_level:2,children:[{code:"530302",name:"麒麟区",region_level:3,children:[]},{code:"530303",name:"沾益区",region_level:3,children:[]},{code:"530304",name:"马龙区",region_level:3,children:[]},{code:"530322",name:"陆良县",region_level:3,children:[]},{code:"530323",name:"师宗县",region_level:3,children:[]},{code:"530324",name:"罗平县",region_level:3,children:[]},{code:"530325",name:"富源县",region_level:3,children:[]},{code:"530326",name:"会泽县",region_level:3,children:[]},{code:"530381",name:"宣威市",region_level:3,children:[]}]},{code:"5304",name:"玉溪市",region_level:2,children:[{code:"530402",name:"红塔区",region_level:3,children:[]},{code:"530403",name:"江川区",region_level:3,children:[]},{code:"530423",name:"通海县",region_level:3,children:[]},{code:"530424",name:"华宁县",region_level:3,children:[]},{code:"530425",name:"易门县",region_level:3,children:[]},{code:"530426",name:"峨山彝族自治县",region_level:3,children:[]},{code:"530427",name:"新平彝族傣族自治县",region_level:3,children:[]},{code:"530428",name:"元江哈尼族彝族傣族自治县",region_level:3,children:[]},{code:"530481",name:"澄江市",region_level:3,children:[]}]},{code:"5305",name:"保山市",region_level:2,children:[{code:"530502",name:"隆阳区",region_level:3,children:[]},{code:"530521",name:"施甸县",region_level:3,children:[]},{code:"530523",name:"龙陵县",region_level:3,children:[]},{code:"530524",name:"昌宁县",region_level:3,children:[]},{code:"530581",name:"腾冲市",region_level:3,children:[]}]},{code:"5306",name:"昭通市",region_level:2,children:[{code:"530602",name:"昭阳区",region_level:3,children:[]},{code:"530621",name:"鲁甸县",region_level:3,children:[]},{code:"530622",name:"巧家县",region_level:3,children:[]},{code:"530623",name:"盐津县",region_level:3,children:[]},{code:"530624",name:"大关县",region_level:3,children:[]},{code:"530625",name:"永善县",region_level:3,children:[]},{code:"530626",name:"绥江县",region_level:3,children:[]},{code:"530627",name:"镇雄县",region_level:3,children:[]},{code:"530628",name:"彝良县",region_level:3,children:[]},{code:"530629",name:"威信县",region_level:3,children:[]},{code:"530681",name:"水富市",region_level:3,children:[]}]},{code:"5307",name:"丽江市",region_level:2,children:[{code:"530702",name:"古城区",region_level:3,children:[]},{code:"530721",name:"玉龙纳西族自治县",region_level:3,children:[]},{code:"530722",name:"永胜县",region_level:3,children:[]},{code:"530723",name:"华坪县",region_level:3,children:[]},{code:"530724",name:"宁蒗彝族自治县",region_level:3,children:[]}]},{code:"5308",name:"普洱市",region_level:2,children:[{code:"530802",name:"思茅区",region_level:3,children:[]},{code:"530821",name:"宁洱哈尼族彝族自治县",region_level:3,children:[]},{code:"530822",name:"墨江哈尼族自治县",region_level:3,children:[]},{code:"530823",name:"景东彝族自治县",region_level:3,children:[]},{code:"530824",name:"景谷傣族彝族自治县",region_level:3,children:[]},{code:"530825",name:"镇沅彝族哈尼族拉祜族自治县",region_level:3,children:[]},{code:"530826",name:"江城哈尼族彝族自治县",region_level:3,children:[]},{code:"530827",name:"孟连傣族拉祜族佤族自治县",region_level:3,children:[]},{code:"530828",name:"澜沧拉祜族自治县",region_level:3,children:[]},{code:"530829",name:"西盟佤族自治县",region_level:3,children:[]}]},{code:"5309",name:"临沧市",region_level:2,children:[{code:"530902",name:"临翔区",region_level:3,children:[]},{code:"530921",name:"凤庆县",region_level:3,children:[]},{code:"530922",name:"云县",region_level:3,children:[]},{code:"530923",name:"永德县",region_level:3,children:[]},{code:"530924",name:"镇康县",region_level:3,children:[]},{code:"530925",name:"双江拉祜族佤族布朗族傣族自治县",region_level:3,children:[]},{code:"530926",name:"耿马傣族佤族自治县",region_level:3,children:[]},{code:"530927",name:"沧源佤族自治县",region_level:3,children:[]}]},{code:"5323",name:"楚雄彝族自治州",region_level:2,children:[{code:"532301",name:"楚雄市",region_level:3,children:[]},{code:"532322",name:"双柏县",region_level:3,children:[]},{code:"532323",name:"牟定县",region_level:3,children:[]},{code:"532324",name:"南华县",region_level:3,children:[]},{code:"532325",name:"姚安县",region_level:3,children:[]},{code:"532326",name:"大姚县",region_level:3,children:[]},{code:"532327",name:"永仁县",region_level:3,children:[]},{code:"532328",name:"元谋县",region_level:3,children:[]},{code:"532329",name:"武定县",region_level:3,children:[]},{code:"532331",name:"禄丰县",region_level:3,children:[]}]},{code:"5325",name:"红河哈尼族彝族自治州",region_level:2,children:[{code:"532501",name:"个旧市",region_level:3,children:[]},{code:"532502",name:"开远市",region_level:3,children:[]},{code:"532503",name:"蒙自市",region_level:3,children:[]},{code:"532504",name:"弥勒市",region_level:3,children:[]},{code:"532523",name:"屏边苗族自治县",region_level:3,children:[]},{code:"532524",name:"建水县",region_level:3,children:[]},{code:"532525",name:"石屏县",region_level:3,children:[]},{code:"532527",name:"泸西县",region_level:3,children:[]},{code:"532528",name:"元阳县",region_level:3,children:[]},{code:"532529",name:"红河县",region_level:3,children:[]},{code:"532530",name:"金平苗族瑶族傣族自治县",region_level:3,children:[]},{code:"532531",name:"绿春县",region_level:3,children:[]},{code:"532532",name:"河口瑶族自治县",region_level:3,children:[]}]},{code:"5326",name:"文山壮族苗族自治州",region_level:2,children:[{code:"532601",name:"文山市",region_level:3,children:[]},{code:"532622",name:"砚山县",region_level:3,children:[]},{code:"532623",name:"西畴县",region_level:3,children:[]},{code:"532624",name:"麻栗坡县",region_level:3,children:[]},{code:"532625",name:"马关县",region_level:3,children:[]},{code:"532626",name:"丘北县",region_level:3,children:[]},{code:"532627",name:"广南县",region_level:3,children:[]},{code:"532628",name:"富宁县",region_level:3,children:[]}]},{code:"5328",name:"西双版纳傣族自治州",region_level:2,children:[{code:"532801",name:"景洪市",region_level:3,children:[]},{code:"532822",name:"勐海县",region_level:3,children:[]},{code:"532823",name:"勐腊县",region_level:3,children:[]}]},{code:"5329",name:"大理白族自治州",region_level:2,children:[{code:"532901",name:"大理市",region_level:3,children:[]},{code:"532922",name:"漾濞彝族自治县",region_level:3,children:[]},{code:"532923",name:"祥云县",region_level:3,children:[]},{code:"532924",name:"宾川县",region_level:3,children:[]},{code:"532925",name:"弥渡县",region_level:3,children:[]},{code:"532926",name:"南涧彝族自治县",region_level:3,children:[]},{code:"532927",name:"巍山彝族回族自治县",region_level:3,children:[]},{code:"532928",name:"永平县",region_level:3,children:[]},{code:"532929",name:"云龙县",region_level:3,children:[]},{code:"532930",name:"洱源县",region_level:3,children:[]},{code:"532931",name:"剑川县",region_level:3,children:[]},{code:"532932",name:"鹤庆县",region_level:3,children:[]}]},{code:"5331",name:"德宏傣族景颇族自治州",region_level:2,children:[{code:"533102",name:"瑞丽市",region_level:3,children:[]},{code:"533103",name:"芒市",region_level:3,children:[]},{code:"533122",name:"梁河县",region_level:3,children:[]},{code:"533123",name:"盈江县",region_level:3,children:[]},{code:"533124",name:"陇川县",region_level:3,children:[]}]},{code:"5333",name:"怒江傈僳族自治州",region_level:2,children:[{code:"533301",name:"泸水市",region_level:3,children:[]},{code:"533323",name:"福贡县",region_level:3,children:[]},{code:"533324",name:"贡山独龙族怒族自治县",region_level:3,children:[]},{code:"533325",name:"兰坪白族普米族自治县",region_level:3,children:[]}]},{code:"5334",name:"迪庆藏族自治州",region_level:2,children:[{code:"533401",name:"香格里拉市",region_level:3,children:[]},{code:"533422",name:"德钦县",region_level:3,children:[]},{code:"533423",name:"维西傈僳族自治县",region_level:3,children:[]}]}]},{code:"54",name:"西藏自治区",region_level:1,children:[{code:"5401",name:"拉萨市",region_level:2,children:[{code:"540102",name:"城关区",region_level:3,children:[]},{code:"540103",name:"堆龙德庆区",region_level:3,children:[]},{code:"540104",name:"达孜区",region_level:3,children:[]},{code:"540121",name:"林周县",region_level:3,children:[]},{code:"540122",name:"当雄县",region_level:3,children:[]},{code:"540123",name:"尼木县",region_level:3,children:[]},{code:"540124",name:"曲水县",region_level:3,children:[]},{code:"540127",name:"墨竹工卡县",region_level:3,children:[]}]},{code:"5402",name:"日喀则市",region_level:2,children:[{code:"540202",name:"桑珠孜区",region_level:3,children:[]},{code:"540221",name:"南木林县",region_level:3,children:[]},{code:"540222",name:"江孜县",region_level:3,children:[]},{code:"540223",name:"定日县",region_level:3,children:[]},{code:"540224",name:"萨迦县",region_level:3,children:[]},{code:"540225",name:"拉孜县",region_level:3,children:[]},{code:"540226",name:"昂仁县",region_level:3,children:[]},{code:"540227",name:"谢通门县",region_level:3,children:[]},{code:"540228",name:"白朗县",region_level:3,children:[]},{code:"540229",name:"仁布县",region_level:3,children:[]},{code:"540230",name:"康马县",region_level:3,children:[]},{code:"540231",name:"定结县",region_level:3,children:[]},{code:"540232",name:"仲巴县",region_level:3,children:[]},{code:"540233",name:"亚东县",region_level:3,children:[]},{code:"540234",name:"吉隆县",region_level:3,children:[]},{code:"540235",name:"聂拉木县",region_level:3,children:[]},{code:"540236",name:"萨嘎县",region_level:3,children:[]},{code:"540237",name:"岗巴县",region_level:3,children:[]}]},{code:"5403",name:"昌都市",region_level:2,children:[{code:"540302",name:"卡若区",region_level:3,children:[]},{code:"540321",name:"江达县",region_level:3,children:[]},{code:"540322",name:"贡觉县",region_level:3,children:[]},{code:"540323",name:"类乌齐县",region_level:3,children:[]},{code:"540324",name:"丁青县",region_level:3,children:[]},{code:"540325",name:"察雅县",region_level:3,children:[]},{code:"540326",name:"八宿县",region_level:3,children:[]},{code:"540327",name:"左贡县",region_level:3,children:[]},{code:"540328",name:"芒康县",region_level:3,children:[]},{code:"540329",name:"洛隆县",region_level:3,children:[]},{code:"540330",name:"边坝县",region_level:3,children:[]}]},{code:"5404",name:"林芝市",region_level:2,children:[{code:"540402",name:"巴宜区",region_level:3,children:[]},{code:"540421",name:"工布江达县",region_level:3,children:[]},{code:"540422",name:"米林县",region_level:3,children:[]},{code:"540423",name:"墨脱县",region_level:3,children:[]},{code:"540424",name:"波密县",region_level:3,children:[]},{code:"540425",name:"察隅县",region_level:3,children:[]},{code:"540426",name:"朗县",region_level:3,children:[]}]},{code:"5405",name:"山南市",region_level:2,children:[{code:"540502",name:"乃东区",region_level:3,children:[]},{code:"540521",name:"扎囊县",region_level:3,children:[]},{code:"540522",name:"贡嘎县",region_level:3,children:[]},{code:"540523",name:"桑日县",region_level:3,children:[]},{code:"540524",name:"琼结县",region_level:3,children:[]},{code:"540525",name:"曲松县",region_level:3,children:[]},{code:"540526",name:"措美县",region_level:3,children:[]},{code:"540527",name:"洛扎县",region_level:3,children:[]},{code:"540528",name:"加查县",region_level:3,children:[]},{code:"540529",name:"隆子县",region_level:3,children:[]},{code:"540530",name:"错那县",region_level:3,children:[]},{code:"540531",name:"浪卡子县",region_level:3,children:[]}]},{code:"5406",name:"那曲市",region_level:2,children:[{code:"540602",name:"色尼区",region_level:3,children:[]},{code:"540621",name:"嘉黎县",region_level:3,children:[]},{code:"540622",name:"比如县",region_level:3,children:[]},{code:"540623",name:"聂荣县",region_level:3,children:[]},{code:"540624",name:"安多县",region_level:3,children:[]},{code:"540625",name:"申扎县",region_level:3,children:[]},{code:"540626",name:"索县",region_level:3,children:[]},{code:"540627",name:"班戈县",region_level:3,children:[]},{code:"540628",name:"巴青县",region_level:3,children:[]},{code:"540629",name:"尼玛县",region_level:3,children:[]},{code:"540630",name:"双湖县",region_level:3,children:[]}]},{code:"5425",name:"阿里地区",region_level:2,children:[{code:"542521",name:"普兰县",region_level:3,children:[]},{code:"542522",name:"札达县",region_level:3,children:[]},{code:"542523",name:"噶尔县",region_level:3,children:[]},{code:"542524",name:"日土县",region_level:3,children:[]},{code:"542525",name:"革吉县",region_level:3,children:[]},{code:"542526",name:"改则县",region_level:3,children:[]},{code:"542527",name:"措勤县",region_level:3,children:[]}]}]},{code:"61",name:"陕西省",region_level:1,children:[{code:"6101",name:"西安市",region_level:2,children:[{code:"610102",name:"新城区",region_level:3,children:[]},{code:"610103",name:"碑林区",region_level:3,children:[]},{code:"610104",name:"莲湖区",region_level:3,children:[]},{code:"610111",name:"灞桥区",region_level:3,children:[]},{code:"610112",name:"未央区",region_level:3,children:[]},{code:"610113",name:"雁塔区",region_level:3,children:[]},{code:"610114",name:"阎良区",region_level:3,children:[]},{code:"610115",name:"临潼区",region_level:3,children:[]},{code:"610116",name:"长安区",region_level:3,children:[]},{code:"610117",name:"高陵区",region_level:3,children:[]},{code:"610118",name:"鄠邑区",region_level:3,children:[]},{code:"610122",name:"蓝田县",region_level:3,children:[]},{code:"610124",name:"周至县",region_level:3,children:[]}]},{code:"6102",name:"铜川市",region_level:2,children:[{code:"610202",name:"王益区",region_level:3,children:[]},{code:"610203",name:"印台区",region_level:3,children:[]},{code:"610204",name:"耀州区",region_level:3,children:[]},{code:"610222",name:"宜君县",region_level:3,children:[]}]},{code:"6103",name:"宝鸡市",region_level:2,children:[{code:"610302",name:"渭滨区",region_level:3,children:[]},{code:"610303",name:"金台区",region_level:3,children:[]},{code:"610304",name:"陈仓区",region_level:3,children:[]},{code:"610322",name:"凤翔县",region_level:3,children:[]},{code:"610323",name:"岐山县",region_level:3,children:[]},{code:"610324",name:"扶风县",region_level:3,children:[]},{code:"610326",name:"眉县",region_level:3,children:[]},{code:"610327",name:"陇县",region_level:3,children:[]},{code:"610328",name:"千阳县",region_level:3,children:[]},{code:"610329",name:"麟游县",region_level:3,children:[]},{code:"610330",name:"凤县",region_level:3,children:[]},{code:"610331",name:"太白县",region_level:3,children:[]}]},{code:"6104",name:"咸阳市",region_level:2,children:[{code:"610402",name:"秦都区",region_level:3,children:[]},{code:"610403",name:"杨陵区",region_level:3,children:[]},{code:"610404",name:"渭城区",region_level:3,children:[]},{code:"610422",name:"三原县",region_level:3,children:[]},{code:"610423",name:"泾阳县",region_level:3,children:[]},{code:"610424",name:"乾县",region_level:3,children:[]},{code:"610425",name:"礼泉县",region_level:3,children:[]},{code:"610426",name:"永寿县",region_level:3,children:[]},{code:"610428",name:"长武县",region_level:3,children:[]},{code:"610429",name:"旬邑县",region_level:3,children:[]},{code:"610430",name:"淳化县",region_level:3,children:[]},{code:"610431",name:"武功县",region_level:3,children:[]},{code:"610481",name:"兴平市",region_level:3,children:[]},{code:"610482",name:"彬州市",region_level:3,children:[]}]},{code:"6105",name:"渭南市",region_level:2,children:[{code:"610502",name:"临渭区",region_level:3,children:[]},{code:"610503",name:"华州区",region_level:3,children:[]},{code:"610522",name:"潼关县",region_level:3,children:[]},{code:"610523",name:"大荔县",region_level:3,children:[]},{code:"610524",name:"合阳县",region_level:3,children:[]},{code:"610525",name:"澄城县",region_level:3,children:[]},{code:"610526",name:"蒲城县",region_level:3,children:[]},{code:"610527",name:"白水县",region_level:3,children:[]},{code:"610528",name:"富平县",region_level:3,children:[]},{code:"610581",name:"韩城市",region_level:3,children:[]},{code:"610582",name:"华阴市",region_level:3,children:[]}]},{code:"6106",name:"延安市",region_level:2,children:[{code:"610602",name:"宝塔区",region_level:3,children:[]},{code:"610603",name:"安塞区",region_level:3,children:[]},{code:"610621",name:"延长县",region_level:3,children:[]},{code:"610622",name:"延川县",region_level:3,children:[]},{code:"610625",name:"志丹县",region_level:3,children:[]},{code:"610626",name:"吴起县",region_level:3,children:[]},{code:"610627",name:"甘泉县",region_level:3,children:[]},{code:"610628",name:"富县",region_level:3,children:[]},{code:"610629",name:"洛川县",region_level:3,children:[]},{code:"610630",name:"宜川县",region_level:3,children:[]},{code:"610631",name:"黄龙县",region_level:3,children:[]},{code:"610632",name:"黄陵县",region_level:3,children:[]},{code:"610681",name:"子长市",region_level:3,children:[]}]},{code:"6107",name:"汉中市",region_level:2,children:[{code:"610702",name:"汉台区",region_level:3,children:[]},{code:"610703",name:"南郑区",region_level:3,children:[]},{code:"610722",name:"城固县",region_level:3,children:[]},{code:"610723",name:"洋县",region_level:3,children:[]},{code:"610724",name:"西乡县",region_level:3,children:[]},{code:"610725",name:"勉县",region_level:3,children:[]},{code:"610726",name:"宁强县",region_level:3,children:[]},{code:"610727",name:"略阳县",region_level:3,children:[]},{code:"610728",name:"镇巴县",region_level:3,children:[]},{code:"610729",name:"留坝县",region_level:3,children:[]},{code:"610730",name:"佛坪县",region_level:3,children:[]}]},{code:"6108",name:"榆林市",region_level:2,children:[{code:"610802",name:"榆阳区",region_level:3,children:[]},{code:"610803",name:"横山区",region_level:3,children:[]},{code:"610822",name:"府谷县",region_level:3,children:[]},{code:"610824",name:"靖边县",region_level:3,children:[]},{code:"610825",name:"定边县",region_level:3,children:[]},{code:"610826",name:"绥德县",region_level:3,children:[]},{code:"610827",name:"米脂县",region_level:3,children:[]},{code:"610828",name:"佳县",region_level:3,children:[]},{code:"610829",name:"吴堡县",region_level:3,children:[]},{code:"610830",name:"清涧县",region_level:3,children:[]},{code:"610831",name:"子洲县",region_level:3,children:[]},{code:"610881",name:"神木市",region_level:3,children:[]}]},{code:"6109",name:"安康市",region_level:2,children:[{code:"610902",name:"汉滨区",region_level:3,children:[]},{code:"610921",name:"汉阴县",region_level:3,children:[]},{code:"610922",name:"石泉县",region_level:3,children:[]},{code:"610923",name:"宁陕县",region_level:3,children:[]},{code:"610924",name:"紫阳县",region_level:3,children:[]},{code:"610925",name:"岚皋县",region_level:3,children:[]},{code:"610926",name:"平利县",region_level:3,children:[]},{code:"610927",name:"镇坪县",region_level:3,children:[]},{code:"610928",name:"旬阳县",region_level:3,children:[]},{code:"610929",name:"白河县",region_level:3,children:[]}]},{code:"6110",name:"商洛市",region_level:2,children:[{code:"611002",name:"商州区",region_level:3,children:[]},{code:"611021",name:"洛南县",region_level:3,children:[]},{code:"611022",name:"丹凤县",region_level:3,children:[]},{code:"611023",name:"商南县",region_level:3,children:[]},{code:"611024",name:"山阳县",region_level:3,children:[]},{code:"611025",name:"镇安县",region_level:3,children:[]},{code:"611026",name:"柞水县",region_level:3,children:[]}]}]},{code:"62",name:"甘肃省",region_level:1,children:[{code:"6201",name:"兰州市",region_level:2,children:[{code:"620102",name:"城关区",region_level:3,children:[]},{code:"620103",name:"七里河区",region_level:3,children:[]},{code:"620104",name:"西固区",region_level:3,children:[]},{code:"620105",name:"安宁区",region_level:3,children:[]},{code:"620111",name:"红古区",region_level:3,children:[]},{code:"620121",name:"永登县",region_level:3,children:[]},{code:"620122",name:"皋兰县",region_level:3,children:[]},{code:"620123",name:"榆中县",region_level:3,children:[]}]},{code:"6202",name:"嘉峪关市",region_level:2,children:[{code:"620200",name:"嘉峪关市",region_level:3,children:[]}]},{code:"6203",name:"金昌市",region_level:2,children:[{code:"620302",name:"金川区",region_level:3,children:[]},{code:"620321",name:"永昌县",region_level:3,children:[]}]},{code:"6204",name:"白银市",region_level:2,children:[{code:"620402",name:"白银区",region_level:3,children:[]},{code:"620403",name:"平川区",region_level:3,children:[]},{code:"620421",name:"靖远县",region_level:3,children:[]},{code:"620422",name:"会宁县",region_level:3,children:[]},{code:"620423",name:"景泰县",region_level:3,children:[]}]},{code:"6205",name:"天水市",region_level:2,children:[{code:"620502",name:"秦州区",region_level:3,children:[]},{code:"620503",name:"麦积区",region_level:3,children:[]},{code:"620521",name:"清水县",region_level:3,children:[]},{code:"620522",name:"秦安县",region_level:3,children:[]},{code:"620523",name:"甘谷县",region_level:3,children:[]},{code:"620524",name:"武山县",region_level:3,children:[]},{code:"620525",name:"张家川回族自治县",region_level:3,children:[]}]},{code:"6206",name:"武威市",region_level:2,children:[{code:"620602",name:"凉州区",region_level:3,children:[]},{code:"620621",name:"民勤县",region_level:3,children:[]},{code:"620622",name:"古浪县",region_level:3,children:[]},{code:"620623",name:"天祝藏族自治县",region_level:3,children:[]}]},{code:"6207",name:"张掖市",region_level:2,children:[{code:"620702",name:"甘州区",region_level:3,children:[]},{code:"620721",name:"肃南裕固族自治县",region_level:3,children:[]},{code:"620722",name:"民乐县",region_level:3,children:[]},{code:"620723",name:"临泽县",region_level:3,children:[]},{code:"620724",name:"高台县",region_level:3,children:[]},{code:"620725",name:"山丹县",region_level:3,children:[]}]},{code:"6208",name:"平凉市",region_level:2,children:[{code:"620802",name:"崆峒区",region_level:3,children:[]},{code:"620821",name:"泾川县",region_level:3,children:[]},{code:"620822",name:"灵台县",region_level:3,children:[]},{code:"620823",name:"崇信县",region_level:3,children:[]},{code:"620825",name:"庄浪县",region_level:3,children:[]},{code:"620826",name:"静宁县",region_level:3,children:[]},{code:"620881",name:"华亭市",region_level:3,children:[]}]},{code:"6209",name:"酒泉市",region_level:2,children:[{code:"620902",name:"肃州区",region_level:3,children:[]},{code:"620921",name:"金塔县",region_level:3,children:[]},{code:"620922",name:"瓜州县",region_level:3,children:[]},{code:"620923",name:"肃北蒙古族自治县",region_level:3,children:[]},{code:"620924",name:"阿克塞哈萨克族自治县",region_level:3,children:[]},{code:"620981",name:"玉门市",region_level:3,children:[]},{code:"620982",name:"敦煌市",region_level:3,children:[]}]},{code:"6210",name:"庆阳市",region_level:2,children:[{code:"621002",name:"西峰区",region_level:3,children:[]},{code:"621021",name:"庆城县",region_level:3,children:[]},{code:"621022",name:"环县",region_level:3,children:[]},{code:"621023",name:"华池县",region_level:3,children:[]},{code:"621024",name:"合水县",region_level:3,children:[]},{code:"621025",name:"正宁县",region_level:3,children:[]},{code:"621026",name:"宁县",region_level:3,children:[]},{code:"621027",name:"镇原县",region_level:3,children:[]}]},{code:"6211",name:"定西市",region_level:2,children:[{code:"621102",name:"安定区",region_level:3,children:[]},{code:"621121",name:"通渭县",region_level:3,children:[]},{code:"621122",name:"陇西县",region_level:3,children:[]},{code:"621123",name:"渭源县",region_level:3,children:[]},{code:"621124",name:"临洮县",region_level:3,children:[]},{code:"621125",name:"漳县",region_level:3,children:[]},{code:"621126",name:"岷县",region_level:3,children:[]}]},{code:"6212",name:"陇南市",region_level:2,children:[{code:"621202",name:"武都区",region_level:3,children:[]},{code:"621221",name:"成县",region_level:3,children:[]},{code:"621222",name:"文县",region_level:3,children:[]},{code:"621223",name:"宕昌县",region_level:3,children:[]},{code:"621224",name:"康县",region_level:3,children:[]},{code:"621225",name:"西和县",region_level:3,children:[]},{code:"621226",name:"礼县",region_level:3,children:[]},{code:"621227",name:"徽县",region_level:3,children:[]},{code:"621228",name:"两当县",region_level:3,children:[]}]},{code:"6229",name:"临夏回族自治州",region_level:2,children:[{code:"622901",name:"临夏市",region_level:3,children:[]},{code:"622921",name:"临夏县",region_level:3,children:[]},{code:"622922",name:"康乐县",region_level:3,children:[]},{code:"622923",name:"永靖县",region_level:3,children:[]},{code:"622924",name:"广河县",region_level:3,children:[]},{code:"622925",name:"和政县",region_level:3,children:[]},{code:"622926",name:"东乡族自治县",region_level:3,children:[]},{code:"622927",name:"积石山保安族东乡族撒拉族自治县",region_level:3,children:[]}]},{code:"6230",name:"甘南藏族自治州",region_level:2,children:[{code:"623001",name:"合作市",region_level:3,children:[]},{code:"623021",name:"临潭县",region_level:3,children:[]},{code:"623022",name:"卓尼县",region_level:3,children:[]},{code:"623023",name:"舟曲县",region_level:3,children:[]},{code:"623024",name:"迭部县",region_level:3,children:[]},{code:"623025",name:"玛曲县",region_level:3,children:[]},{code:"623026",name:"碌曲县",region_level:3,children:[]},{code:"623027",name:"夏河县",region_level:3,children:[]}]}]},{code:"63",name:"青海省",region_level:1,children:[{code:"6301",name:"西宁市",region_level:2,children:[{code:"630102",name:"城东区",region_level:3,children:[]},{code:"630103",name:"城中区",region_level:3,children:[]},{code:"630104",name:"城西区",region_level:3,children:[]},{code:"630105",name:"城北区",region_level:3,children:[]},{code:"630106",name:"湟中区",region_level:3,children:[]},{code:"630121",name:"大通回族土族自治县",region_level:3,children:[]},{code:"630123",name:"湟源县",region_level:3,children:[]}]},{code:"6302",name:"海东市",region_level:2,children:[{code:"630202",name:"乐都区",region_level:3,children:[]},{code:"630203",name:"平安区",region_level:3,children:[]},{code:"630222",name:"民和回族土族自治县",region_level:3,children:[]},{code:"630223",name:"互助土族自治县",region_level:3,children:[]},{code:"630224",name:"化隆回族自治县",region_level:3,children:[]},{code:"630225",name:"循化撒拉族自治县",region_level:3,children:[]}]},{code:"6322",name:"海北藏族自治州",region_level:2,children:[{code:"632221",name:"门源回族自治县",region_level:3,children:[]},{code:"632222",name:"祁连县",region_level:3,children:[]},{code:"632223",name:"海晏县",region_level:3,children:[]},{code:"632224",name:"刚察县",region_level:3,children:[]}]},{code:"6323",name:"黄南藏族自治州",region_level:2,children:[{code:"632321",name:"同仁县",region_level:3,children:[]},{code:"632322",name:"尖扎县",region_level:3,children:[]},{code:"632323",name:"泽库县",region_level:3,children:[]},{code:"632324",name:"河南蒙古族自治县",region_level:3,children:[]}]},{code:"6325",name:"海南藏族自治州",region_level:2,children:[{code:"632521",name:"共和县",region_level:3,children:[]},{code:"632522",name:"同德县",region_level:3,children:[]},{code:"632523",name:"贵德县",region_level:3,children:[]},{code:"632524",name:"兴海县",region_level:3,children:[]},{code:"632525",name:"贵南县",region_level:3,children:[]}]},{code:"6326",name:"果洛藏族自治州",region_level:2,children:[{code:"632621",name:"玛沁县",region_level:3,children:[]},{code:"632622",name:"班玛县",region_level:3,children:[]},{code:"632623",name:"甘德县",region_level:3,children:[]},{code:"632624",name:"达日县",region_level:3,children:[]},{code:"632625",name:"久治县",region_level:3,children:[]},{code:"632626",name:"玛多县",region_level:3,children:[]}]},{code:"6327",name:"玉树藏族自治州",region_level:2,children:[{code:"632701",name:"玉树市",region_level:3,children:[]},{code:"632722",name:"杂多县",region_level:3,children:[]},{code:"632723",name:"称多县",region_level:3,children:[]},{code:"632724",name:"治多县",region_level:3,children:[]},{code:"632725",name:"囊谦县",region_level:3,children:[]},{code:"632726",name:"曲麻莱县",region_level:3,children:[]}]},{code:"6328",name:"海西蒙古族藏族自治州",region_level:2,children:[{code:"632801",name:"格尔木市",region_level:3,children:[]},{code:"632802",name:"德令哈市",region_level:3,children:[]},{code:"632803",name:"茫崖市",region_level:3,children:[]},{code:"632821",name:"乌兰县",region_level:3,children:[]},{code:"632822",name:"都兰县",region_level:3,children:[]},{code:"632823",name:"天峻县",region_level:3,children:[]}]}]},{code:"64",name:"宁夏回族自治区",region_level:1,children:[{code:"6401",name:"银川市",region_level:2,children:[{code:"640104",name:"兴庆区",region_level:3,children:[]},{code:"640105",name:"西夏区",region_level:3,children:[]},{code:"640106",name:"金凤区",region_level:3,children:[]},{code:"640121",name:"永宁县",region_level:3,children:[]},{code:"640122",name:"贺兰县",region_level:3,children:[]},{code:"640181",name:"灵武市",region_level:3,children:[]}]},{code:"6402",name:"石嘴山市",region_level:2,children:[{code:"640202",name:"大武口区",region_level:3,children:[]},{code:"640205",name:"惠农区",region_level:3,children:[]},{code:"640221",name:"平罗县",region_level:3,children:[]}]},{code:"6403",name:"吴忠市",region_level:2,children:[{code:"640302",name:"利通区",region_level:3,children:[]},{code:"640303",name:"红寺堡区",region_level:3,children:[]},{code:"640323",name:"盐池县",region_level:3,children:[]},{code:"640324",name:"同心县",region_level:3,children:[]},{code:"640381",name:"青铜峡市",region_level:3,children:[]}]},{code:"6404",name:"固原市",region_level:2,children:[{code:"640402",name:"原州区",region_level:3,children:[]},{code:"640422",name:"西吉县",region_level:3,children:[]},{code:"640423",name:"隆德县",region_level:3,children:[]},{code:"640424",name:"泾源县",region_level:3,children:[]},{code:"640425",name:"彭阳县",region_level:3,children:[]}]},{code:"6405",name:"中卫市",region_level:2,children:[{code:"640502",name:"沙坡头区",region_level:3,children:[]},{code:"640521",name:"中宁县",region_level:3,children:[]},{code:"640522",name:"海原县",region_level:3,children:[]}]}]},{code:"65",name:"新疆维吾尔自治区",region_level:1,children:[{code:"6501",name:"乌鲁木齐市",region_level:2,children:[{code:"650102",name:"天山区",region_level:3,children:[]},{code:"650103",name:"沙依巴克区",region_level:3,children:[]},{code:"650104",name:"新市区",region_level:3,children:[]},{code:"650105",name:"水磨沟区",region_level:3,children:[]},{code:"650106",name:"头屯河区",region_level:3,children:[]},{code:"650107",name:"达坂城区",region_level:3,children:[]},{code:"650109",name:"米东区",region_level:3,children:[]},{code:"650121",name:"乌鲁木齐县",region_level:3,children:[]}]},{code:"6502",name:"克拉玛依市",region_level:2,children:[{code:"650202",name:"独山子区",region_level:3,children:[]},{code:"650203",name:"克拉玛依区",region_level:3,children:[]},{code:"650204",name:"白碱滩区",region_level:3,children:[]},{code:"650205",name:"乌尔禾区",region_level:3,children:[]}]},{code:"6504",name:"吐鲁番市",region_level:2,children:[{code:"650402",name:"高昌区",region_level:3,children:[]},{code:"650421",name:"鄯善县",region_level:3,children:[]},{code:"650422",name:"托克逊县",region_level:3,children:[]}]},{code:"6505",name:"哈密市",region_level:2,children:[{code:"650502",name:"伊州区",region_level:3,children:[]},{code:"650521",name:"巴里坤哈萨克自治县",region_level:3,children:[]},{code:"650522",name:"伊吾县",region_level:3,children:[]}]},{code:"6523",name:"昌吉回族自治州",region_level:2,children:[{code:"652301",name:"昌吉市",region_level:3,children:[]},{code:"652302",name:"阜康市",region_level:3,children:[]},{code:"652323",name:"呼图壁县",region_level:3,children:[]},{code:"652324",name:"玛纳斯县",region_level:3,children:[]},{code:"652325",name:"奇台县",region_level:3,children:[]},{code:"652327",name:"吉木萨尔县",region_level:3,children:[]},{code:"652328",name:"木垒哈萨克自治县",region_level:3,children:[]}]},{code:"6527",name:"博尔塔拉蒙古自治州",region_level:2,children:[{code:"652701",name:"博乐市",region_level:3,children:[]},{code:"652702",name:"阿拉山口市",region_level:3,children:[]},{code:"652722",name:"精河县",region_level:3,children:[]},{code:"652723",name:"温泉县",region_level:3,children:[]}]},{code:"6528",name:"巴音郭楞蒙古自治州",region_level:2,children:[{code:"652801",name:"库尔勒市",region_level:3,children:[]},{code:"652822",name:"轮台县",region_level:3,children:[]},{code:"652823",name:"尉犁县",region_level:3,children:[]},{code:"652824",name:"若羌县",region_level:3,children:[]},{code:"652825",name:"且末县",region_level:3,children:[]},{code:"652826",name:"焉耆回族自治县",region_level:3,children:[]},{code:"652827",name:"和静县",region_level:3,children:[]},{code:"652828",name:"和硕县",region_level:3,children:[]},{code:"652829",name:"博湖县",region_level:3,children:[]}]},{code:"6529",name:"阿克苏地区",region_level:2,children:[{code:"652901",name:"阿克苏市",region_level:3,children:[]},{code:"652902",name:"库车市",region_level:3,children:[]},{code:"652922",name:"温宿县",region_level:3,children:[]},{code:"652924",name:"沙雅县",region_level:3,children:[]},{code:"652925",name:"新和县",region_level:3,children:[]},{code:"652926",name:"拜城县",region_level:3,children:[]},{code:"652927",name:"乌什县",region_level:3,children:[]},{code:"652928",name:"阿瓦提县",region_level:3,children:[]},{code:"652929",name:"柯坪县",region_level:3,children:[]}]},{code:"6530",name:"克孜勒苏柯尔克孜自治州",region_level:2,children:[{code:"653001",name:"阿图什市",region_level:3,children:[]},{code:"653022",name:"阿克陶县",region_level:3,children:[]},{code:"653023",name:"阿合奇县",region_level:3,children:[]},{code:"653024",name:"乌恰县",region_level:3,children:[]}]},{code:"6531",name:"喀什地区",region_level:2,children:[{code:"653101",name:"喀什市",region_level:3,children:[]},{code:"653121",name:"疏附县",region_level:3,children:[]},{code:"653122",name:"疏勒县",region_level:3,children:[]},{code:"653123",name:"英吉沙县",region_level:3,children:[]},{code:"653124",name:"泽普县",region_level:3,children:[]},{code:"653125",name:"莎车县",region_level:3,children:[]},{code:"653126",name:"叶城县",region_level:3,children:[]},{code:"653127",name:"麦盖提县",region_level:3,children:[]},{code:"653128",name:"岳普湖县",region_level:3,children:[]},{code:"653129",name:"伽师县",region_level:3,children:[]},{code:"653130",name:"巴楚县",region_level:3,children:[]},{code:"653131",name:"塔什库尔干塔吉克自治县",region_level:3,children:[]}]},{code:"6532",name:"和田地区",region_level:2,children:[{code:"653201",name:"和田市",region_level:3,children:[]},{code:"653221",name:"和田县",region_level:3,children:[]},{code:"653222",name:"墨玉县",region_level:3,children:[]},{code:"653223",name:"皮山县",region_level:3,children:[]},{code:"653224",name:"洛浦县",region_level:3,children:[]},{code:"653225",name:"策勒县",region_level:3,children:[]},{code:"653226",name:"于田县",region_level:3,children:[]},{code:"653227",name:"民丰县",region_level:3,children:[]}]},{code:"6540",name:"伊犁哈萨克自治州",region_level:2,children:[{code:"654002",name:"伊宁市",region_level:3,children:[]},{code:"654003",name:"奎屯市",region_level:3,children:[]},{code:"654004",name:"霍尔果斯市",region_level:3,children:[]},{code:"654021",name:"伊宁县",region_level:3,children:[]},{code:"654022",name:"察布查尔锡伯自治县",region_level:3,children:[]},{code:"654023",name:"霍城县",region_level:3,children:[]},{code:"654024",name:"巩留县",region_level:3,children:[]},{code:"654025",name:"新源县",region_level:3,children:[]},{code:"654026",name:"昭苏县",region_level:3,children:[]},{code:"654027",name:"特克斯县",region_level:3,children:[]},{code:"654028",name:"尼勒克县",region_level:3,children:[]}]},{code:"6542",name:"塔城地区",region_level:2,children:[{code:"654201",name:"塔城市",region_level:3,children:[]},{code:"654202",name:"乌苏市",region_level:3,children:[]},{code:"654221",name:"额敏县",region_level:3,children:[]},{code:"654223",name:"沙湾县",region_level:3,children:[]},{code:"654224",name:"托里县",region_level:3,children:[]},{code:"654225",name:"裕民县",region_level:3,children:[]},{code:"654226",name:"和布克赛尔蒙古自治县",region_level:3,children:[]}]},{code:"6543",name:"阿勒泰地区",region_level:2,children:[{code:"654301",name:"阿勒泰市",region_level:3,children:[]},{code:"654321",name:"布尔津县",region_level:3,children:[]},{code:"654322",name:"富蕴县",region_level:3,children:[]},{code:"654323",name:"福海县",region_level:3,children:[]},{code:"654324",name:"哈巴河县",region_level:3,children:[]},{code:"654325",name:"青河县",region_level:3,children:[]},{code:"654326",name:"吉木乃县",region_level:3,children:[]}]},{code:"6590",name:"自治区直辖县级行政区",region_level:2,children:[{code:"659001",name:"石河子市",region_level:3,children:[]},{code:"659002",name:"阿拉尔市",region_level:3,children:[]},{code:"659003",name:"图木舒克市",region_level:3,children:[]},{code:"659004",name:"五家渠市",region_level:3,children:[]},{code:"659005",name:"北屯市",region_level:3,children:[]},{code:"659006",name:"铁门关市",region_level:3,children:[]},{code:"659007",name:"双河市",region_level:3,children:[]},{code:"659008",name:"可克达拉市",region_level:3,children:[]},{code:"659009",name:"昆玉市",region_level:3,children:[]},{code:"659010",name:"胡杨河市",region_level:3,children:[]}]}]},{code:"71",name:"台湾省",region_level:1,children:[]},{code:"81",name:"香港特别行政区",region_level:1,children:[]},{code:"82",name:"澳门特别行政区",region_level:1,children:[]}]}];function Zc(){const t=async(i,a)=>{let l=String(i.code).padEnd(6,"0");const c=r(e.unref(tm)[0],l),s=await n(`${l}${(c==null?void 0:c.region_level)!=3?"_full":""}`);Im.registerMap(l,s),i.geo.map=l;const d=i.dataset.source,f=[];((s==null?void 0:s.features)??[]).forEach(u=>{const m=(d.find(g=>g[i.dataShow.x]==u.properties.name)??{})[i.dataShow.y]??0,h=u.properties.center?[...u.properties.center,m]:u.properties.center,_={name:u.properties.name,value:h,code:u.properties.adcode,data:m};Number(m)<=0&&(_.symbolSize=0),f.push(_)}),i.series=[{type:"map",map:l,roam:!0,geoIndex:0,select:!1,data:f},{...i.style.style1,data:f},{...i.style.style2,data:f}],a&&a()},n=async i=>{const a=`https://geo.datav.aliyun.com/areas_v3/bound/${i}.json`;return await fetch(a).then(c=>c.json())};function r(i,a){var l;if(String(i.code).padEnd(6,"0")==a)return i;for(let c=0;c<((l=i==null?void 0:i.children)==null?void 0:l.length);c+=1){const s=i.children[c],d=r(s,a);if(d)return d}return null}return{init:t,city:tm,mapConfig:{code:"100000",tooltip:{show:!0},dataShow:{x:"",y:""},custom:{prefix:"",suffix:"",toFixed:0},style:{style1:{name:"散点",type:"scatter",coordinateSystem:"geo",symbol:"circle",itemStyle:{color:"#05C3F9"}},style2:{name:"点",type:"scatter",coordinateSystem:"geo",symbol:"pin",symbolSize:20,itemStyle:{color:"#F62157"},label:{show:!0,formatter:i=>i.data.data||"",color:"#fff",fontSize:9},zlevel:6}},geo:{map:"",roam:!0,zoom:1.2,label:{show:!0,fontSize:12,color:"#000"},emphasis:{itemStyle:{areaColor:"#389BB7",borderColor:"#389BB7",borderWidth:0},label:{fontSize:14,color:"#fff"}}},visualMap:{show:!0,left:"left",top:"bottom",text:["高","低"],min:0,max:200,calculable:!0,seriesIndex:[0],inRange:{color:["#00467F","#A5CC82"]}},dataset:{},series:[]}}}function yt(){const{proxy:t}=e.getCurrentInstance(),{chartJsonFormat:n,chartJsonToStringFormat:r}=t.$globalUtils,o=e.ref({}),i=e.ref(""),a=e.ref(null),l=async(p,m,h)=>await new Promise(async _=>{var C,x;const g=Te(),v=JSON.parse(JSON.stringify(((C=e.unref(a))==null?void 0:C.params)??((x=g.getChartData)==null?void 0:x.params))),b=JSON.parse((v==null?void 0:v.groupArgsJson)??"[]"),y=JSON.parse((v==null?void 0:v.aggArgsJson)??"[]");if(m){const V=b.find(E=>E.comment==m);V&&(v.groupArgsJson=JSON.stringify([V]))}if(["2"].includes(p)&&h){const V=y.find(E=>E.showLabel==h);V&&(v.aggArgsJson=JSON.stringify([V]))}const w=await t.$baseHttp.post("/api/ace-data-center/model-indicators/debug",v);_(w.data.records)}),c=async(p,m,h)=>await new Promise(async _=>{let g=m;const v=Te();if(p){const b=await t.$baseHttp.get(`/api/ace-data-center/model-indicators-echarts/detail?id=${p}`);if(!b)return;h=n(b.data.echartsConfig),g=b.data.echartsType}i.value=g,setTimeout(async()=>{var b,y,w,C,x,V,E,$,B,R,T,k,O,N,D,z,I,M,P,F,G,H,X,J,U,W,Q,ne,re,Y,Z,_e,ae,se,oe,ve,ye,ue,Se,Ye,ot,nt,Pe,We,cn,dn,Lo,Fo;switch(g){case"1":{const{lineConfig:ct,customSeriesData:it,init:rt}=da();it.value=((b=e.unref(h))==null?void 0:b.customSeriesData)??{},o.value=h??n(r(ct)),delete o.value.legend.icon,e.unref(o).dataShow.x=((y=h==null?void 0:h.dataShow)==null?void 0:y.x)??((C=(w=v.getChartData)==null?void 0:w.x[0])==null?void 0:C.comment),e.unref(o).dataShow.y=(((x=e.unref(a))==null?void 0:x.y)??((V=v.getChartData)==null?void 0:V.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u())}break;case"2":{const{pieConfig:ct,customSeriesData:it,init:rt}=Xc();it.value=(h==null?void 0:h.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((E=h==null?void 0:h.dataShow)==null?void 0:E.x)??((B=($=v.getChartData)==null?void 0:$.x[0])==null?void 0:B.comment),e.unref(o).dataShow.y=((R=h==null?void 0:h.dataShow)==null?void 0:R.y)??((k=(T=v.getChartData)==null?void 0:T.y[0])==null?void 0:k.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x,e.unref(o).dataShow.y),rt(e.unref(o),()=>u())}break;case"3":{const{barConfig:ct,customSeriesData:it,init:rt}=Yc();it.value=(h==null?void 0:h.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((O=h==null?void 0:h.dataShow)==null?void 0:O.x)??((D=(N=v.getChartData)==null?void 0:N.x[0])==null?void 0:D.comment),e.unref(o).dataShow.y=(((z=e.unref(a))==null?void 0:z.y)??((I=v.getChartData)==null?void 0:I.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u())}break;case"4":{const{radarConfig:ct,customSeriesData:it,init:rt}=Kc();it.value=((M=e.unref(h))==null?void 0:M.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((P=h==null?void 0:h.dataShow)==null?void 0:P.x)??((G=(F=v.getChartData)==null?void 0:F.x[0])==null?void 0:G.comment),e.unref(o).dataShow.y=(((H=e.unref(a))==null?void 0:H.y)??((X=v.getChartData)==null?void 0:X.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u())}break;case"5":{const{barsLinesConfig:ct,customSeriesData:it,init:rt}=qc();it.value=((J=e.unref(h))==null?void 0:J.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((U=h==null?void 0:h.dataShow)==null?void 0:U.x)??((Q=(W=v.getChartData)==null?void 0:W.x[0])==null?void 0:Q.comment),e.unref(o).dataShow.y=(((ne=e.unref(a))==null?void 0:ne.y)??((re=v.getChartData)==null?void 0:re.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u())}break;case"6":{const{scatterCfg:ct,customSeriesData:it,init:rt}=Jc();it.value=((Y=e.unref(h))==null?void 0:Y.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.x=((Z=h==null?void 0:h.dataShow)==null?void 0:Z.x)??((ae=(_e=v.getChartData)==null?void 0:_e.x[0])==null?void 0:ae.comment),e.unref(o).dataShow.y=(((se=e.unref(a))==null?void 0:se.y)??((oe=v.getChartData)==null?void 0:oe.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g,e.unref(o).dataShow.x),rt(e.unref(o),()=>u())}break;case"7":{const{numberConfig:ct,customSeriesData:it,init:rt}=em();it.value=(h==null?void 0:h.customSeriesData)??{},o.value=h??n(r(ct)),e.unref(o).dataShow.y=(((ve=e.unref(a))==null?void 0:ve.y)??((ye=v.getChartData)==null?void 0:ye.y)).map(dt=>dt.showLabel),e.unref(o).dataset.source=await l(g),rt(e.unref(o),()=>u())}break;case"8":{const{customSeriesData:ct,tableConfig:it,init:rt}=sa();o.value=h??n(r(it)),ct.value=((ue=e.unref(h))==null?void 0:ue.customSeriesData)??{},e.unref(o).dataShow.y=[...(((Se=e.unref(a))==null?void 0:Se.x)??((Ye=v.getChartData)==null?void 0:Ye.x)).map(dt=>dt.comment),...(((ot=e.unref(a))==null?void 0:ot.y)??((nt=v.getChartData)==null?void 0:nt.y)).map(dt=>dt.showLabel)],e.unref(o).dataset.source=await l(g),rt(e.unref(o),()=>u())}break;case"9":const{mapConfig:fd,init:Ur}=Zc(),Jt=h??n(r(fd));Jt.series=[],Jt.dataShow.x=((Pe=h==null?void 0:h.dataShow)==null?void 0:Pe.x)??((cn=(We=v.getChartData)==null?void 0:We.x[0])==null?void 0:cn.comment),Jt.dataShow.y=((dn=h==null?void 0:h.dataShow)==null?void 0:dn.y)??((Fo=(Lo=v.getChartData)==null?void 0:Lo.y[0])==null?void 0:Fo.showLabel),Jt.dataset.source=await l(g,Jt.dataShow.x,Jt.dataShow.y),Ur(Jt,()=>{o.value=Jt,u()});break}_(o.value)},100)}),s=()=>{var p,m,h,_,g,v,b;switch(e.unref(i)){case"1":{const{customSeriesData:y,init:w}=da();y.value=((p=e.unref(o))==null?void 0:p.customSeriesData)??{},w(e.unref(o))}break;case"2":{const{customSeriesData:y,init:w}=Xc();y.value=((m=e.unref(o))==null?void 0:m.customSeriesData)??{},w(e.unref(o))}break;case"3":{const{customSeriesData:y,init:w}=Yc();y.value=((h=e.unref(o))==null?void 0:h.customSeriesData)??{},w(e.unref(o))}break;case"4":{const{customSeriesData:y,init:w}=Kc();y.value=((_=e.unref(o))==null?void 0:_.customSeriesData)??{},w(e.unref(o))}break;case"5":{const{customSeriesData:y,init:w}=qc();y.value=((g=e.unref(o))==null?void 0:g.customSeriesData)??{},w(e.unref(o))}break;case"6":{const{customSeriesData:y,init:w}=Jc();y.value=((v=e.unref(o))==null?void 0:v.customSeriesData)??{},w(e.unref(o))}break;case"7":{const{init:y}=em();y(e.unref(o))}break;case"8":{const{customSeriesData:y,init:w}=sa();y.value=((b=e.unref(o))==null?void 0:b.customSeriesData)??{},w(e.unref(o))}break}},d=async(p,m,h)=>{await new Promise(async _=>{var V;const g=Te(),{dynamicSearchFormat:v,dynamicSearchParams:b}=t.$globalHooks.useDynamicSearch();let y;y=await t.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${p}`);const w=JSON.parse(y.data.sortArgsJson??"{}"),C=Object.keys(e.unref(w)).map(E=>({field:E,type:w[E]=="ascending"?"asc":"desc"}));g.setChartData({x:JSON.parse(y.data.groupArgsJson),y:JSON.parse(y.data.aggArgsJson),params:{aggArgsJson:y.data.aggArgsJson,groupArgsJson:y.data.groupArgsJson,sortArgsJson:JSON.stringify(C),params:b(v(JSON.parse(h??((V=e.unref(y))==null?void 0:V.formConfJson)??"[]"))),pageSize:y.data.pageSize,modelIndicatorsId:y.data.id,modelId:y.data.modelId}});const x=y.data.echarts.find(E=>E.type==m);await c(x==null?void 0:x.code),_(x==null?void 0:x.code)})},f=p=>{const m=e.unref(o),h=e.unref(o).customSeriesData[p]??{};return((h==null?void 0:h.prefix)??"")+m.dataset.source.reduce((_,g)=>_+(g[p]?Number(g[p]):0),0).toFixed(h.toFixed??0)+(h.suffix??"")},u=()=>{if(e.unref(i)=="9"){o.value.tooltip.formatter=m=>{const h=o.value.custom;if(m&&m.data){const{name:_,data:g}=m.data;return`${_}: ${(h==null?void 0:h.prefix)??""}${Number(g).toFixed((h==null?void 0:h.toFixed)??0)}${(h==null?void 0:h.suffix)??""}`}},o.value.series[2].label.formatter=m=>{const h=o.value.custom,_=m.data.data;return _?`${(h==null?void 0:h.prefix)??""}${Number(_).toFixed((h==null?void 0:h.toFixed)??0)}${(h==null?void 0:h.suffix)??""}`:""};return}if(e.unref(o).tooltip){const m=o.value.custom;o.value.tooltip.valueFormatter=h=>`${(m==null?void 0:m.prefix)??""}${Number(h).toFixed(m==null?void 0:m.toFixed)}${(m==null?void 0:m.suffix)??""}`}e.unref(o).dataset.temp_source=JSON.parse(JSON.stringify(o.value.dataset.source))};return{option:o,chartDataParams:a,chartType:i,setChartData:l,formatChart:c,getModelIndicatorsData:d,changeChartSeries:s,setSingleValue:f}}const EE={key:1,class:"flex items-center justify-center w-full h-full"},kE=e.defineComponent({__name:"render",props:{config:{default:()=>({})}},setup(t){const n=t,{proxy:r}=e.getCurrentInstance(),o=Te(),{dynamicSearchFormat:i,dynamicSearchParams:a}=r.$globalHooks.useDynamicSearch(),{option:l,formatChart:c,chartDataParams:s}=yt();if(n.config.chartId&&n.config.indicatorsId){const{indicatorsId:f,chartType:u}=n.config;r.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${f}`).then(async p=>{const m=JSON.parse(p.data.sortArgsJson??"{}"),h=Object.keys(e.unref(m)).map(_=>({field:_,type:m[_]=="ascending"?"asc":"desc"}));s.value={x:JSON.parse(p.data.groupArgsJson),y:JSON.parse(p.data.aggArgsJson),params:{aggArgsJson:p.data.aggArgsJson,groupArgsJson:p.data.groupArgsJson,sortArgsJson:JSON.stringify(h),modelIndicatorsId:f,params:a(i(JSON.parse(p.data.formConfJson??"[]"))),pageSize:p.data.pageSize,modelId:p.data.modelId}},o.tempChartData[n.config.id]={params:s.value,customize:n.config.customize},o.setChartData(s.value),c("",u,{...n.config.customize,id:n.config.id})})}const d=e.computed(()=>Qh[n.config.type]);return(f,u)=>{var h,_;const p=e.resolveComponent("aceCustomChart"),m=e.resolveComponent("AppLoading");return n.config.chartId?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[((_=(h=e.unref(l))==null?void 0:h.dataset)==null?void 0:_.source.length)>0?(e.openBlock(),e.createBlock(p,{key:0,option:n.config.customize,chartType:n.config.chartType,maxHeight:n.config.h-10+"px"},null,8,["option","chartType","maxHeight"])):(e.openBlock(),e.createElementBlock("div",EE,[e.createVNode(m,{size:"80"})]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(d)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d)),{key:0,ref:"componentRef",config:n.config},null,8,["config"])):e.createCommentVNode("",!0)],64))}}}),QB="",nm=ke(kE,[["__scopeId","data-v-b05b523d"]]),NE=t=>(e.pushScopeId("data-v-283f83db"),t=t(),e.popScopeId(),t),$E=["id","onDblclick","onMousedown","onClick"],DE={key:0,class:"absolute flex items-center justify-center w-8 h-8 bg-blue-500 rounded-full -right-2 -top-2"},BE=[NE(()=>e.createElementVNode("i",{class:"text-base text-white ri-lock-line"},null,-1))],TE={key:1,class:"absolute ml-4 text-xs tool left-full whitespace-nowrap"},OE=["onClick"],IE={key:1,class:"absolute w-full h-full"},zE=e.defineComponent({__name:"main",setup(t){e.useCssVars(N=>({"157a88c2":e.unref(u)}));const{proxy:n}=e.getCurrentInstance(),{chartJsonFormat:r}=n.$globalUtils,o=Te(),i=e.computed(()=>o.stageWidth),a=e.computed(()=>o.stageHeight),l=document.body,c=e.ref(null),s=__("Shift"),d=e.computed(()=>o.targetsWidget.length===1?di(o.targetsWidget[0]):null),f=[{label:"置于顶层",clickFunc:N=>{N.z=o.getWidgetList.length,o.widgetConfg.list.filter(D=>D.id!=N.id).forEach((D,z)=>{D.z=o.getWidgetList.length-1-z}),o.sortWidgetList()}},{label:"置于底层",clickFunc:N=>{N.z=1,o.widgetConfg.list.filter(D=>D.id!=N.id).forEach((D,z)=>{D.z=o.getWidgetList.length-z}),o.sortWidgetList()}}],u=e.computed(()=>.8/o.getScale),p=()=>Array.prototype.slice.call(document.querySelectorAll(".drag-item"),0),m=(N,D)=>{if(Array.isArray(N)){if(N.length===0){o.setTargetWidget([]);return}o.setTargetWidget(N.filter(I=>I.className.indexOf("locked")==-1).map(I=>di(I)));return}const z=di(N);!z||o.targetsWidget.includes(z)||N.locked||(s.value===!0?o.setTargetWidget([...o.getTargetWidget.filter(I=>I.className.indexOf("locked")==-1),z]):o.setTargetWidget([z]),e.nextTick(()=>{D&&e.nextTick(()=>{var I;return(I=e.unref(c))==null?void 0:I.dragStart(D)})}))},h=N=>{const D=B(e.unref(d));D!=null&&D.locked&&N.stopDrag(),console.log("开始拖拽",N)},_=N=>{console.log("拖拽中",N),N.target.style.transform=N.transform;const[D,z]=N.translate;o.setSketchRuleLine([D],[z]);const I=B(e.unref(d));I&&(I.x=Math.floor(N.translate[0]),I.y=Math.floor(N.translate[1]))},g=N=>{console.log("拖拽结束",N),o.clearSketchRuleLine()},v=N=>{console.log("开始组拖拽",N)},b=N=>{console.log("组拖拽中",N),N.events.forEach(D=>{D.target.style.transform=D.transform})},y=N=>{console.log("组拖拽完毕",N),N.events.forEach(D=>{const z=B(D.target);!z||!D.lastEvent||(z.x=Math.floor(D.lastEvent.translate[0]),z.y=Math.floor(D.lastEvent.translate[1]))}),o.clearSketchRuleLine()},w=N=>{console.log("开始组修改大小",N)},C=N=>{console.log("组修改大小中",N),N.events.forEach(D=>{D.target.style.transform=D.drag.transform,D.target.style.width=`${D.width}px`,D.target.style.height=`${D.height}px`;const z=B(D.target);z&&(z.x=Math.floor(D.drag.translate[0]),z.y=Math.floor(D.drag.translate[1]),z.w=D.drag.width,z.h=D.drag.height)})},x=N=>{console.log("修改大小结束",N),o.clearSketchRuleLine()},V=N=>{const D=B(e.unref(d));D!=null&&D.locked&&N.stopDrag(),console.log("开始改变大小",N)},E=N=>{console.log("改变中",N),N.target.style.transform=N.drag.transform,N.target.style.width=`${N.width}px`,N.target.style.height=`${N.height}px`;const D=B(N.target);if(!D)return;D.x=Math.floor(N.drag.translate[0]),D.y=Math.floor(N.drag.translate[1]),D.w=N.drag.width,D.h=N.drag.height;const[z,I]=N.drag.translate;o.setSketchRuleLine([z],[I])};function $(N){console.log("改变结束",N),o.clearSketchRuleLine()}n.$baseEventBus.on("clear-stage",()=>{console.log("清空画布"),o.setWidgetList([]),o.setTargetWidget([]),o.clearSketchRuleLine()}),n.$baseEventBus.on("update-rect",()=>{var N,D;console.log("更新画布"),(N=c.value)==null||N.updateTarget(),(D=c.value)==null||D.updateRect()}),n.$baseEventBus.on("change-align",N=>{e.nextTick(()=>{var I;if(console.log("修改居中方式"),!o.targetsWidget.length)return;const D=c.value.getRect(),z=c.value.getMoveables();if(z.length<=1){const M={};N=="left"&&(M.x=0),N=="right"&&(M.x=e.unref(i)-D.width),N=="top"&&(M.y=0),N=="bottom"&&(M.y=e.unref(a)-D.height),N=="middle"&&(M.y=e.unref(a)/2-D.height/2),N=="center"&&(M.x=e.unref(i)/2-D.width/2),z[0].request("draggable",M,!0);const P=B(z[0].props.target);if(!P)return;Object.keys(M).forEach(F=>{P[F]=M[F]})}else switch(N){case"left":case"right":case"top":case"bottom":case"middle":case"center":{const M=Math.max.apply(Math,D.children.map(F=>F.top+F.height)),P=Math.max.apply(Math,D.children.map(F=>F.left+F.width));z.forEach((F,G)=>{const H={};N=="left"&&(H.x=D.left),N=="right"&&(H.x=P-D.children[G].width),N=="top"&&(H.y=D.top),N=="bottom"&&(H.y=M-D.children[G].height),N=="middle"&&(H.y=D.top+D.height/2-D.children[G].height/2),N=="center"&&(H.x=D.left+D.width/2-D.children[G].width/2),F.request("draggable",H,!0);const X=B(F.props.target);X&&Object.keys(H).forEach(J=>{X[J]=H[J]})}),o.clearSketchRuleLine()}break;case"verticalAround":case"levelAround":{const M=N=="verticalAround"?"top":"left",P=N=="verticalAround"?"height":"width";let F=D[M];const G=(D[P]-D.children.reduce((H,X)=>H+X[P],0))/(z.length-1);z.sort((H,X)=>H.state[M]-X.state[M]),z.forEach(H=>{const X=H.getRect(),J={};M=="top"&&(J.y=F),M=="left"&&(J.x=F),H.request("draggable",J,!0);const U=B(H.props.target);U&&(Object.keys(J).forEach(W=>{U[W]=J[W]}),F+=X[P]+G)}),o.clearSketchRuleLine()}break}(I=c.value)==null||I.updateRect()})});const B=N=>o.getWidgetList.find(D=>D.id==(N==null?void 0:N.id)),R=N=>{N.preventDefault(),N.stopPropagation();const D=N.dataTransfer.getData("dragComponent");if(D){let z=JSON.parse(D);z.chartId&&(z.customize=r(z.customize)),console.log(z);const{w:I,h:M}=z;let P=N.offsetX-I/2,F=N.offsetY-M/2;P<=0?P=0:P+I>=e.unref(i)&&(P=e.unref(i)-I),F<=0?F=0:F+M>=e.unref(a)&&(F=e.unref(a)-M),o.setWidgetList([{...z,x:P,y:F,z:o.getWidgetList.length+1},...o.getWidgetList])}},T=e.ref([]),k=()=>{const N=(z,I)=>{const M=m_(z,P=>{document.activeElement&&["INPUT"].includes(document.activeElement.tagName)||(P.preventDefault(),P.stopPropagation(),I(P))},{eventName:"keydown"});T.value.push(M)},D=z=>navigator.userAgent.toLowerCase().includes("macintosh")?z.metaKey:z.ctrlKey;N(["Backspace","Delete"],z=>{console.log("删除触发",z),o.targetsWidget.length&&o.delWidgetItem(o.getTargetWidget.map(I=>I.id))}),N(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],z=>{if(!o.targetsWidget.length)return;console.log("触发移动",z);let I=0,M=0;z.key=="ArrowLeft"&&(I=-2),z.key=="ArrowRight"&&(I=2),z.key=="ArrowUp"&&(M=-2),z.key=="ArrowDown"&&(M=2),z.shiftKey&&(I*=10,M*=10),e.nextTick(()=>{c.value.getMoveables().forEach(F=>{const G=B(F.props.target);!G||G.locked||(G.x+I<0?G.x=0:G.x+I>e.unref(i)-G.w?G.x=e.unref(i)-G.w:G.x+=I,G.y+M<0?G.y=0:G.y+M>e.unref(a)-G.h?G.y=e.unref(a)-G.h:G.y+=M)}),e.nextTick(()=>{var F;return(F=c.value)==null?void 0:F.updateRect()})})}),N(["c"],z=>{console.log("复制",z),D(z)&&o.getTargetWidget.length&&o.copyWidgetItem(o.getTargetWidget.map(I=>I.id))}),N(["v"],z=>{console.log("粘贴",z),D(z)&&o.getPasteWidget.length&&o.pasteWidgetItem()})},O=e.ref(null);return e.nextTick(()=>{k(),O.value=new vb({rootContainer:null,dragContainer:".render",selectableTargets:[".drag-item"],selectByClick:!0,selectFromInside:!0,continueSelect:!1,preventDefault:!0,toggleContinueSelect:null,keyContainer:window,hitRate:0}),e.unref(O).on("dragStart",N=>{o.setRightPannel(!1),console.log("开始全选拖拽",N)}),e.unref(O).on("dragEnd",N=>{console.log("全选拖拽结束",N)}),e.unref(O).on("select",N=>{console.log("选中结果",N),N.added.forEach(D=>{D.className.indexOf("loccked")||D.classList.add("selected")}),N.removed.forEach(D=>{D.classList.remove("selected")}),m(N.selected)}),e.unref(O).on("selectEnd",N=>{console.log("选中结束",N),m(N.selected)})}),e.onBeforeUnmount(()=>{T.value.forEach(N=>N()),e.unref(O)&&e.unref(O).destroy()}),(N,D)=>(e.openBlock(),e.createBlock(H_,null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:"relative w-full h-full",onDrop:D[1]||(D[1]=z=>R(z)),onDragover:D[2]||(D[2]=e.withModifiers(()=>{},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).getWidgetList,z=>{var I,M;return e.openBlock(),e.createElementBlock("div",{key:z.id,class:e.normalizeClass(["absolute",{"drag-item":!0,locked:z.locked,selected:e.unref(o).widgetHoverIds.includes(z.id),active:((I=e.unref(d))==null?void 0:I.id)==z.id}]),id:z.id,style:e.normalizeStyle(e.unref(cs)(z)),onDblclick:e.withModifiers(P=>z.locked=!z.locked,["stop"]),onMousedown:P=>m(z,P),onClick:e.withModifiers(P=>m(z,P),["stop"])},[e.unref(o).createLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[z.locked?(e.openBlock(),e.createElementBlock("div",DE,BE)):e.createCommentVNode("",!0),((M=e.unref(d))==null?void 0:M.id)==z.id&&!z.locked?(e.openBlock(),e.createElementBlock("div",TE,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,P=>e.createElementVNode("div",{key:z.label,onClick:e.withModifiers(F=>P.clickFunc(z),["stop"]),onDblclick:D[0]||(D[0]=e.withModifiers(()=>{},["prevent","stop"])),class:"flex items-center justify-center w-16 h-6 mb-2 text-white rounded-sm cursor-pointer bg-color-primary"},e.toDisplayString(P.label),41,OE)),64))])):e.createCommentVNode("",!0)],64)),z.type=="iframe"?(e.openBlock(),e.createElementBlock("div",IE)):e.createCommentVNode("",!0),e.createVNode(nm,{config:z},null,8,["config"])],46,$E)}),128)),e.createVNode(e.unref(rb),{rootContainer:e.unref(l),ref_key:"moveableRef",ref:c,origin:!1,stopPropagation:!0,target:e.unref(o).targetsWidget,draggable:!0,resizable:!0,scalable:!1,snappable:!0,maxSnapElementGuidelineDistance:100,maxSnapElementGapDistance:100,isDisplayInnerSnapDigit:!0,snapDirections:!0,elementSnapDirections:!0,elementGuidelines:p(),bounds:{left:0,top:0,bottom:0,right:0,position:"css"},onDragStart:h,onDrag:_,onDragEnd:g,onResizeStart:V,onResize:E,onResizeEnd:$,onDragGroupStart:v,onDragGroup:b,onDragGroupEnd:y,onResizeGroupStart:w,onResizeGroup:C,onResizeGroupEnd:x},null,8,["rootContainer","target","elementGuidelines"])],32)]),_:1}))}}),t6="",RE=ke(zE,[["__scopeId","data-v-283f83db"]]),kt=e.defineComponent({__name:"colorPicker",props:{modelValue:{default:""},showInput:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:n}){const r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=e.ref(r.modelValue=="transparent"?"":r.modelValue),l=n;return e.watch(a,c=>{l("update:modelValue",c||"transparent")}),(c,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[c.showInput?(e.openBlock(),e.createBlock(e.unref(S.ElInput),{key:0,value:e.unref(a),class:"mr-1",style:{width:"80%"}},null,8,["value"])):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElColorPicker),{modelValue:e.unref(a),"onUpdate:modelValue":s[0]||(s[0]=d=>e.isRef(a)?a.value=d:null),predefine:e.unref(i),"show-alpha":""},null,8,["modelValue","predefine"])],64))}}),ME={class:"flex h-10 items-center p-2"},AE=e.createElementVNode("span",{class:"w-1 h-4 bg-color-primary mr-2"},null,-1),on=e.defineComponent({__name:"group",props:{title:{default:"标题"}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",ME,[AE,e.createTextVNode(" "+e.toDisplayString(n.title),1)]),e.renderSlot(n.$slots,"default")],64))}}),Qc=t=>(e.pushScopeId("data-v-cece7aca"),t=t(),e.popScopeId(),t),LE={class:"flex items-center"},FE=Qc(()=>e.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1)),jE=["src"],PE={key:1,class:"pt-4 pb-4"},UE=[Qc(()=>e.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),Qc(()=>e.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1))],WE=e.defineComponent({__name:"stageSetting",setup(t){const n=Te(),{proxy:r}=e.getCurrentInstance(),{resetUrl:o}=r.$globalUtils,i=async a=>{const l=new FormData;l.append("file",a.file);const c=await r.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",l,{headers:{"Content-Type":"multipart/form-data",loading:!0}});c&&(n.widgetConfg.config.backgroundImage=c.data.link)};return(a,l)=>(e.openBlock(),e.createBlock(e.unref(S.ElForm),{"label-position":"left",size:"small","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(on,{title:"整体布局"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"尺寸"},{default:e.withCtx(()=>[e.createElementVNode("div",LE,[e.createVNode(e.unref(S.ElInputNumber),{"model-value":e.unref(n).stageWidth,onChange:e.unref(n).setStageWidth,size:"small",min:0,"value-on-clear":1920},null,8,["model-value","onChange"]),FE,e.createVNode(e.unref(S.ElInputNumber),{"model-value":e.unref(n).stageHeight,onChange:e.unref(n).setStageHeight,size:"small",min:0,"value-on-clear":1080},null,8,["model-value","onChange"])])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"背景图"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElUpload),{drag:"",limit:1,"http-request":i,"show-file-list":!1,accept:"image/*"},{default:e.withCtx(()=>[e.unref(n).widgetConfg.config.backgroundImage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("img",{class:"object-contain max-h-40",src:e.unref(o)(e.unref(n).widgetConfg.config.backgroundImage)},null,8,jE),e.createElementVNode("i",{class:"absolute text-xl ri-close-circle-line right-4 top-4",onClick:l[0]||(l[0]=e.withModifiers(c=>e.unref(n).widgetConfg.config.backgroundImage=null,["stop"]))})],64)):(e.openBlock(),e.createElementBlock("div",PE,UE))]),_:1})]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).widgetConfg.config.backgroundColor,"onUpdate:modelValue":l[1]||(l[1]=c=>e.unref(n).widgetConfg.config.backgroundColor=c)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),o6="",GE=ke(WE,[["__scopeId","data-v-cece7aca"]]),an=e.defineComponent({__name:"decorationSetting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>e.unref(n)?(e.openBlock(),e.createBlock(on,{key:0,title:"基础"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"主颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.decorationColor1,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).customize.decorationColor1=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"副颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.decorationColor2,"onUpdate:modelValue":o[1]||(o[1]=i=>e.unref(n).customize.decorationColor2=i)},null,8,["modelValue"])]),_:1}),Object.keys(e.unref(n).customize).includes("reverse")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:0,label:"是否反转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(n).customize.reverse,"onUpdate:modelValue":o[2]||(o[2]=i=>e.unref(n).customize.reverse=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(n).customize).includes("duration")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:1,label:"动画时长"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(n).customize.duration,"onUpdate:modelValue":o[3]||(o[3]=i=>e.unref(n).customize.duration=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)}}),Ce=e.defineComponent({__name:"setting",setup(t){const{proxy:n}=e.getCurrentInstance(),r=e.inject("widgetConfig");return(o,i)=>e.unref(r)?(e.openBlock(),e.createBlock(e.unref(S.ElForm),{key:0,"label-position":"left",size:"small","label-width":"100px",class:"design-form"},{default:e.withCtx(()=>[e.createVNode(on,{title:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(r).name,"onUpdate:modelValue":i[0]||(i[0]=a=>e.unref(r).name=a)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(on,{title:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).w,"onUpdate:modelValue":i[1]||(i[1]=a=>e.unref(r).w=a),onBlur:i[2]||(i[2]=a=>e.unref(n).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).h,"onUpdate:modelValue":i[3]||(i[3]=a=>e.unref(r).h=a),onBlur:i[4]||(i[4]=a=>e.unref(n).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"x轴坐标"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).x,"onUpdate:modelValue":i[5]||(i[5]=a=>e.unref(r).x=a),onBlur:i[6]||(i[6]=a=>e.unref(n).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"y轴坐标"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).y,"onUpdate:modelValue":i[7]||(i[7]=a=>e.unref(r).y=a),onBlur:i[8]||(i[8]=a=>e.unref(n).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1})]),_:1}),e.renderSlot(o.$slots,"default")]),_:3})):e.createCommentVNode("",!0)}}),HE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),YE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),XE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),qE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),JE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),KE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ZE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),QE=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ek=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),tk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),nk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(an)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Ft=e.defineComponent({__name:"borderSetting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>e.unref(n)?(e.openBlock(),e.createBlock(on,{key:0,title:"基础"},{default:e.withCtx(()=>[Object.keys(e.unref(n).customize).includes("title")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:0,label:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(n).customize.title,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).customize.title=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(n).customize).includes("titleWidth")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:1,label:"标题宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(n).customize.titleWidth,"onUpdate:modelValue":o[1]||(o[1]=i=>e.unref(n).customize.titleWidth=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElFormItem),{label:"边框主颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.borderMainColor,"onUpdate:modelValue":o[2]||(o[2]=i=>e.unref(n).customize.borderMainColor=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"边框副颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.borderSecondaryColor,"onUpdate:modelValue":o[3]||(o[3]=i=>e.unref(n).customize.borderSecondaryColor=i)},null,8,["modelValue"])]),_:1}),Object.keys(e.unref(n).customize).includes("reverse")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:2,label:"是否反转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(n).customize.reverse,"onUpdate:modelValue":o[4]||(o[4]=i=>e.unref(n).customize.reverse=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(n).customize).includes("duration")?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:3,label:"动画时长"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(n).customize.duration,"onUpdate:modelValue":o[5]||(o[5]=i=>e.unref(n).customize.duration=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElFormItem),{label:"背景"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.backgroundColor,"onUpdate:modelValue":o[6]||(o[6]=i=>e.unref(n).customize.backgroundColor=i)},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),rk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ok=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ik=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ak=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),lk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),ck=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),dk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),sk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),fk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),uk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),pk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),hk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),mk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(Ft)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),gk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>{const i=e.resolveComponent("el-form-item"),a=e.resolveComponent("el-input-number");return e.unref(n)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(i,{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor0,"onUpdate:modelValue":o[0]||(o[0]=l=>e.unref(n).customize.gradientColor0=l)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor1,"onUpdate:modelValue":o[1]||(o[1]=l=>e.unref(n).customize.gradientColor1=l)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).customize.width,"onUpdate:modelValue":o[2]||(o[2]=l=>e.unref(n).customize.width=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),_k=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>e.unref(n)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"地址配置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(n).customize.url,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).customize.url=i)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),rm=t=>(e.pushScopeId("data-v-ba7d8f9c"),t=t(),e.popScopeId(),t),vk={class:"p-3"},yk=["src"],bk={key:1,class:"pt-4 pb-4"},wk=[rm(()=>e.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),rm(()=>e.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1))],Ck=e.defineComponent({__name:"setting",setup(t){const n=[{label:"压缩",value:"fill"},{label:"填充",value:"cover"},{label:"自适应",value:"contain"},{label:"原始大小",value:"none"},{label:"展示最小",value:"scale-down"}],{proxy:r}=e.getCurrentInstance(),{resetUrl:o}=r.$globalUtils,i=e.inject("widgetConfig"),a=async l=>{const c=new FormData;c.append("file",l.file);const s=await r.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",c,{headers:{"Content-Type":"multipart/form-data",loading:!0}});s&&(i.value.customize.url=s.data.link)};return(l,c)=>e.unref(i)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"图片配置"},{default:e.withCtx(()=>[e.createElementVNode("div",vk,[e.createVNode(e.unref(S.ElUpload),{drag:"",limit:1,"http-request":a,"show-file-list":!1,accept:"image/*"},{default:e.withCtx(()=>[e.unref(i).customize.url?(e.openBlock(),e.createElementBlock("img",{key:0,class:"max-h-40",src:e.unref(o)(e.unref(i).customize.url)},null,8,yk)):(e.openBlock(),e.createElementBlock("div",bk,wk))]),_:1})]),e.createVNode(e.unref(S.ElFormItem),{label:"地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(i).customize.url,"onUpdate:modelValue":c[0]||(c[0]=s=>e.unref(i).customize.url=s)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"展示方式"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(i).customize.fit,"onUpdate:modelValue":c[1]||(c[1]=s=>e.unref(i).customize.fit=s)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,s=>e.createVNode(e.unref(S.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),O6="",Sk=Object.freeze(Object.defineProperty({__proto__:null,default:ke(Ck,[["__scopeId","data-v-ba7d8f9c"]])},Symbol.toStringTag,{value:"Module"})),xk=e.createElementVNode("i",{class:"ri-arrow-right-fill ml-2 mr-2"},null,-1),ed=e.defineComponent({__name:"text",setup(t){const n=[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],r=e.inject("widgetConfig");return(o,i)=>e.unref(r)?(e.openBlock(),e.createBlock(on,{key:0,title:"文本"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"文本"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(r).customize.title,"onUpdate:modelValue":i[0]||(i[0]=a=>e.unref(r).customize.title=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(r).customize.fontSize,"onUpdate:modelValue":i[1]||(i[1]=a=>e.unref(r).customize.fontSize=a)},{suffix:e.withCtx(()=>[e.createTextVNode("px")]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字权重"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(r).customize.fontWeight,"onUpdate:modelValue":i[2]||(i[2]=a=>e.unref(r).customize.fontWeight=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字间距"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(r).customize.letterSpacing,"onUpdate:modelValue":i[3]||(i[3]=a=>e.unref(r).customize.letterSpacing=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字对齐方式"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(r).customize.textAlign,"onUpdate:modelValue":i[4]||(i[4]=a=>e.unref(r).customize.textAlign=a)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,a=>e.createVNode(e.unref(S.ElOption),{key:a.value,label:a.label,value:a.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字渐变方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(r).customize.colorPosition,"onUpdate:modelValue":i[5]||(i[5]=a=>e.unref(r).customize.colorPosition=a)},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadio),{value:"top",label:"top"},{default:e.withCtx(()=>[e.createTextVNode("上下")]),_:1}),e.createVNode(e.unref(S.ElRadio),{value:"left",label:"left"},{default:e.withCtx(()=>[e.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"文字渐变颜色"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(r).customize.startColor,"onUpdate:modelValue":i[6]||(i[6]=a=>e.unref(r).customize.startColor=a),showInput:!1},null,8,["modelValue"]),xk,e.createVNode(kt,{modelValue:e.unref(r).customize.endColor,"onUpdate:modelValue":i[7]||(i[7]=a=>e.unref(r).customize.endColor=a),showInput:!1},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),Vk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(ed)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Ek=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>e.unref(n)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElFormItem),{label:"渐变方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(n).customize.colorPosition,"onUpdate:modelValue":o[0]||(o[0]=i=>e.unref(n).customize.colorPosition=i)},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadio),{value:"bottom",label:"bottom"},{default:e.withCtx(()=>[e.createTextVNode("上下")]),_:1}),e.createVNode(e.unref(S.ElRadio),{value:"right",label:"right"},{default:e.withCtx(()=>[e.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"边角宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(n).customize.borderRadius,"onUpdate:modelValue":o[1]||(o[1]=i=>e.unref(n).customize.borderRadius=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor0,"onUpdate:modelValue":o[2]||(o[2]=i=>e.unref(n).customize.gradientColor0=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(S.ElFormItem),{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor1,"onUpdate:modelValue":o[3]||(o[3]=i=>e.unref(n).customize.gradientColor1=i)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),kk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(ed)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Nk=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(n,r)=>(e.openBlock(),e.createBlock(Ce,null,{default:e.withCtx(()=>[e.createVNode(ed)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),$k=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const n=e.inject("widgetConfig");return(r,o)=>{const i=e.resolveComponent("el-form-item"),a=e.resolveComponent("el-input-number");return e.unref(n)?(e.openBlock(),e.createBlock(Ce,{key:0},{default:e.withCtx(()=>[e.createVNode(on,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(i,{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor0,"onUpdate:modelValue":o[0]||(o[0]=l=>e.unref(n).customize.gradientColor0=l)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(kt,{modelValue:e.unref(n).customize.gradientColor1,"onUpdate:modelValue":o[1]||(o[1]=l=>e.unref(n).customize.gradientColor1=l)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:e.unref(n).customize.height,"onUpdate:modelValue":o[2]||(o[2]=l=>e.unref(n).customize.height=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),ln={lengendX:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],lengendY:[{label:"靠上",value:"top"},{label:"居中",value:"center"},{label:"靠下",value:"bottom"}],orient:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],shape:[{label:"圆形",value:"circle"},{label:"方形",value:"rect"},{label:"圆角方形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"钢笔形",value:"pin"},{label:"箭头形",value:"arrow"}],xposition:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"}],yposition:[{label:"左侧",value:"left"},{label:"右侧",value:"right"}],lineStyle:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],category:[{label:"数据轴",value:"value"},{label:"类目轴",value:"category"}]},Dk={class:"flex w-full flex-col justify-start"},Bk={key:0,class:"w-16 font-bold flex items-center"},Tk=e.createElementVNode("span",{class:"bg-color-primary mr-2 w-1 h-4"},null,-1),Ok={class:"flex-1 flex-wrap flex"},Ik=e.createElementVNode("div",{class:"h-4"},null,-1),de=e.defineComponent({__name:"setting-item-box",props:{name:{default:""}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Dk,[n.name?(e.openBlock(),e.createElementBlock("div",Bk,[Tk,e.createTextVNode(" "+e.toDisplayString(n.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",Ok,[e.renderSlot(n.$slots,"default")])]),Ik],64))}}),zk={class:"w-1/2 pr-2 mt-2"},Rk={class:"text-xs mb-2"},j=e.defineComponent({__name:"setting-item",props:{name:{default:""}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",zk,[e.createElementVNode("div",Rk,e.toDisplayString(n.name),1),e.renderSlot(n.$slots,"default")]))}}),Mk=e.defineComponent({__name:"setting-common",props:{option:{default:{}},type:{default:0}},setup(t){const n=t,{proxy:r}=e.getCurrentInstance(),o=r.$globalPreColor,i=[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}];return e.watch(()=>n.option.custom,a=>{n.option.yAxis&&(n.option.yAxis.axisLabel.formatter=`${a.prefix??""}{value}${a.suffix??""}`)},{deep:!0}),e.watch(()=>n.option.showScroll,a=>{if(a)n.option.dataZoom=[{type:"slider",backgroundColor:"#eef8fd",fillerColor:"#14b1f8",borderColor:"#eef8fd",startValue:0,endValue:5,filterMode:"",showDetail:!1,width:"90%",height:10,handleSize:30,left:"5%",bottom:15},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0}];else{const l=n.option.series;n.option.series=[],n.option.direction="",setTimeout(()=>{delete n.option.dataZoom,n.option.series=l})}}),e.watch(()=>n.option.direction,a=>{n.option.dataZoom.forEach((l,c)=>{a=="vertical"?l.yAxisIndex=[0]:delete l.yAxisIndex})}),(a,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.option.grid?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:0,title:"容器"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"左侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.grid.left,"onUpdate:modelValue":l[0]||(l[0]=c=>a.option.grid.left=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"右侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.grid.right,"onUpdate:modelValue":l[1]||(l[1]=c=>a.option.grid.right=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"上侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.grid.top,"onUpdate:modelValue":l[2]||(l[2]=c=>a.option.grid.top=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"下侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.grid.bottom,"onUpdate:modelValue":l[3]||(l[3]=c=>a.option.grid.bottom=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"自适应"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.grid.containLabel,"onUpdate:modelValue":l[4]||(l[4]=c=>a.option.grid.containLabel=c)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),[1,3,5].includes(a.type)?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:1,title:"滚动条"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.showScroll,"onUpdate:modelValue":l[5]||(l[5]=c=>a.option.showScroll=c)},null,8,["modelValue"])]),_:1})]),_:1}),a.option.showScroll?(e.openBlock(),e.createBlock(de,{key:0,name:"参数"},{default:e.withCtx(()=>[e.createVNode(j,{name:"滚动条方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.direction,"onUpdate:modelValue":l[6]||(l[6]=c=>a.option.direction=c),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,c=>e.createVNode(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"范围结束值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.dataZoom[0].endValue,"onUpdate:modelValue":l[7]||(l[7]=c=>a.option.dataZoom[0].endValue=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"拖拽宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].handleSize,"onUpdate:modelValue":l[8]||(l[8]=c=>a.option.dataZoom[0].handleSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].width,"onUpdate:modelValue":l[9]||(l[9]=c=>a.option.dataZoom[0].width=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].height,"onUpdate:modelValue":l[10]||(l[10]=c=>a.option.dataZoom[0].height=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"上"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].top,"onUpdate:modelValue":l[11]||(l[11]=c=>a.option.dataZoom[0].top=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"右"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].right,"onUpdate:modelValue":l[12]||(l[12]=c=>a.option.dataZoom[0].right=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"下"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].bottom,"onUpdate:modelValue":l[13]||(l[13]=c=>a.option.dataZoom[0].bottom=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"左"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.dataZoom[0].left,"onUpdate:modelValue":l[14]||(l[14]=c=>a.option.dataZoom[0].left=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.dataZoom[0].backgroundColor,"onUpdate:modelValue":l[15]||(l[15]=c=>a.option.dataZoom[0].backgroundColor=c)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"选中范围颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.dataZoom[0].fillerColor,"onUpdate:modelValue":l[16]||(l[16]=c=>a.option.dataZoom[0].fillerColor=c)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"边框颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.dataZoom[0].borderColor,"onUpdate:modelValue":l[17]||(l[17]=c=>a.option.dataZoom[0].borderColor=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),a.option.legend?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:2,title:"图例"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.legend.show,"onUpdate:modelValue":l[18]||(l[18]=c=>a.option.legend.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.legend.textStyle.color,"onUpdate:modelValue":l[19]||(l[19]=c=>a.option.legend.textStyle.color=c)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.legend.textStyle.fontSize,"onUpdate:modelValue":l[20]||(l[20]=c=>a.option.legend.textStyle.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"x轴"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.legend.x,"onUpdate:modelValue":l[21]||(l[21]=c=>a.option.legend.x=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).lengendX,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"y轴"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.legend.y,"onUpdate:modelValue":l[22]||(l[22]=c=>a.option.legend.y=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).lengendY,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.legend.orient,"onUpdate:modelValue":l[23]||(l[23]=c=>a.option.legend.orient=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).orient,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a.option.legend.icon?(e.openBlock(),e.createBlock(j,{key:0,name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.legend.icon,"onUpdate:modelValue":l[24]||(l[24]=c=>a.option.legend.icon=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).shape,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(j,{name:"宽"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.legend.itemWidth,"onUpdate:modelValue":l[25]||(l[25]=c=>a.option.legend.itemWidth=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"高"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.legend.itemHeight,"onUpdate:modelValue":l[26]||(l[26]=c=>a.option.legend.itemHeight=c),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),a.option.xAxis?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:3,title:"x轴"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.xAxis.show,"onUpdate:modelValue":l[27]||(l[27]=c=>a.option.xAxis.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.xAxis.type,"onUpdate:modelValue":l[28]||(l[28]=c=>a.option.xAxis.type=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).category,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最小值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:a.option.xAxis.min,"onUpdate:modelValue":l[29]||(l[29]=c=>a.option.xAxis.min=c),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最大值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:a.option.xAxis.max,"onUpdate:modelValue":l[30]||(l[30]=c=>a.option.xAxis.max=c),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.xAxis.position,"onUpdate:modelValue":l[31]||(l[31]=c=>a.option.xAxis.position=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).xposition,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"反向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.xAxis.inverse,"onUpdate:modelValue":l[32]||(l[32]=c=>a.option.xAxis.inverse=c)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.axisLabel.fontSize,"onUpdate:modelValue":l[33]||(l[33]=c=>a.option.xAxis.axisLabel.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"间隔"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.axisLabel.interval,"onUpdate:modelValue":l[34]||(l[34]=c=>a.option.xAxis.axisLabel.interval=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.axisLabel.rotate,"onUpdate:modelValue":l[35]||(l[35]=c=>a.option.xAxis.axisLabel.rotate=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.xAxis.axisLabel.color,"onUpdate:modelValue":l[36]||(l[36]=c=>a.option.xAxis.axisLabel.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"单位"},{default:e.withCtx(()=>[e.createVNode(j,{name:"名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.xAxis.name,"onUpdate:modelValue":l[37]||(l[37]=c=>a.option.xAxis.name=c),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.nameTextStyle.fontSize,"onUpdate:modelValue":l[38]||(l[38]=c=>a.option.xAxis.nameTextStyle.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.xAxis.nameTextStyle.color,"onUpdate:modelValue":l[39]||(l[39]=c=>a.option.xAxis.nameTextStyle.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.xAxis.splitLine.show,"onUpdate:modelValue":l[40]||(l[40]=c=>a.option.xAxis.splitLine.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"粗细"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.xAxis.splitLine.lineStyle.width,"onUpdate:modelValue":l[41]||(l[41]=c=>a.option.xAxis.splitLine.lineStyle.width=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.xAxis.splitLine.lineStyle.type,"onUpdate:modelValue":l[42]||(l[42]=c=>a.option.xAxis.splitLine.lineStyle.type=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).lineStyle,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.xAxis.splitLine.lineStyle.color,"onUpdate:modelValue":l[43]||(l[43]=c=>a.option.xAxis.splitLine.lineStyle.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),a.option.yAxis?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:4,title:"y轴"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.yAxis.show,"onUpdate:modelValue":l[44]||(l[44]=c=>a.option.yAxis.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.yAxis.type,"onUpdate:modelValue":l[45]||(l[45]=c=>a.option.yAxis.type=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).category,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最小值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:a.option.yAxis.min,"onUpdate:modelValue":l[46]||(l[46]=c=>a.option.yAxis.min=c),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最大值"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:a.option.yAxis.max,"onUpdate:modelValue":l[47]||(l[47]=c=>a.option.yAxis.max=c),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.yAxis.position,"onUpdate:modelValue":l[48]||(l[48]=c=>a.option.yAxis.position=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).yposition,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"反向"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.yAxis.inverse,"onUpdate:modelValue":l[49]||(l[49]=c=>a.option.yAxis.inverse=c)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.axisLabel.fontSize,"onUpdate:modelValue":l[50]||(l[50]=c=>a.option.yAxis.axisLabel.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"间隔"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.axisLabel.interval,"onUpdate:modelValue":l[51]||(l[51]=c=>a.option.yAxis.axisLabel.interval=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.axisLabel.rotate,"onUpdate:modelValue":l[52]||(l[52]=c=>a.option.yAxis.axisLabel.rotate=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.yAxis.axisLabel.color,"onUpdate:modelValue":l[53]||(l[53]=c=>a.option.yAxis.axisLabel.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"单位"},{default:e.withCtx(()=>[e.createVNode(j,{name:"名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.yAxis.name,"onUpdate:modelValue":l[54]||(l[54]=c=>a.option.yAxis.name=c),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.nameTextStyle.fontSize,"onUpdate:modelValue":l[55]||(l[55]=c=>a.option.yAxis.nameTextStyle.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.yAxis.nameTextStyle.color,"onUpdate:modelValue":l[56]||(l[56]=c=>a.option.yAxis.nameTextStyle.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(j,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:a.option.yAxis.splitLine.show,"onUpdate:modelValue":l[57]||(l[57]=c=>a.option.yAxis.splitLine.show=c)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"粗细"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.yAxis.splitLine.lineStyle.width,"onUpdate:modelValue":l[58]||(l[58]=c=>a.option.yAxis.splitLine.lineStyle.width=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:a.option.yAxis.splitLine.lineStyle.type,"onUpdate:modelValue":l[59]||(l[59]=c=>a.option.yAxis.splitLine.lineStyle.type=c),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).lineStyle,c=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:c.value,label:c.label,value:c.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.yAxis.splitLine.lineStyle.color,"onUpdate:modelValue":l[60]||(l[60]=c=>a.option.yAxis.splitLine.lineStyle.color=c)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),a.option.custom&&![2].includes(a.type)?(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{key:5,title:"显示"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.custom.prefix,"onUpdate:modelValue":l[61]||(l[61]=c=>a.option.custom.prefix=c),size:"small",placeholder:"前缀"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:a.option.custom.suffix,"onUpdate:modelValue":l[62]||(l[62]=c=>a.option.custom.suffix=c),size:"small",placeholder:"后缀"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:a.option.custom.toFixed,"onUpdate:modelValue":l[63]||(l[63]=c=>a.option.custom.toFixed=c),size:"small"},null,8,["modelValue"])]),_:1}),a.type==7?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:a.option.custom.fontSize,"onUpdate:modelValue":l[64]||(l[64]=c=>a.option.custom.fontSize=c),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),modelValue:a.option.custom.color,"onUpdate:modelValue":l[65]||(l[65]=c=>a.option.custom.color=c)},null,8,["predefine","modelValue"])]),_:1})],64)):e.createCommentVNode("",!0)]),_:1})]),_:1})):e.createCommentVNode("",!0)],64))}}),F6="",lr=ke(Mk,[["__scopeId","data-v-1e9066c5"]]),Ak={id:"sortable"},Lk={class:"ml-2"},Fk={class:"flex-1 flex justify-end"},jk=["onClick"],Pk=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),om=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:l}=yt(),{seriesItem:c,init:s,customSeriesData:d}=Yc(),f=e.ref(null),u=e.ref(JSON.parse(JSON.stringify(Object.values(d.value)[0]??c)));e.nextTick(()=>{f.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:h,oldIndex:_}){const g=r.option.dataShow.y,v=g.splice(_,1)[0];g.splice(h,0,v);const b=r.option.series.splice(_,1)[0];r.option.series.splice(h,0,b)}})}),e.onBeforeUnmount(()=>{var h;e.unref(f)&&((h=e.unref(f))==null||h.destroy())}),e.watch(u,()=>p(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{s(r.option,()=>{p()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await l(r.type,r.option.dataShow.x)});const p=()=>{const h=u.value,_=g=>{g.barWidth=h.barWidth,g.stack=h.stack,g.label.show=h.label.show,g.label.color=h.label.color,g.label.position=h.label.position,g.label.fontSize=h.label.fontSize,g.label.rotate=h.label.rotate,g.itemStyle.borderRadius=[h.borderRadiusNumber,h.borderRadiusNumber,0,0]};r.option.series.forEach(g=>{_(g)}),Object.keys(d.value).forEach(g=>{_(e.unref(d)[g])}),window.customSeriesData=d.value},m=h=>{const{hide:_}=r.option.dataShow;_.includes(h)?_.splice(_.findIndex(g=>g==h),1):_.push(h)};return(h,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:h.option,type:3},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"柱状配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).barWidth,"onUpdate:modelValue":_[0]||(_[0]=g=>e.unref(u).barWidth=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"堆栈"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).stack,"onUpdate:modelValue":_[1]||(_[1]=g=>e.unref(u).stack=g)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:e.unref(u).borderRadiusNumber,"onUpdate:modelValue":_[2]||(_[2]=g=>e.unref(u).borderRadiusNumber=g),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).label.show,"onUpdate:modelValue":_[3]||(_[3]=g=>e.unref(u).label.show=g)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(u).label.position,"onUpdate:modelValue":_[4]||(_[4]=g=>e.unref(u).label.position=g),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,g=>e.createVNode(e.unref(S.ElOption),{key:g.value,label:g.label,value:g.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).label.rotate,"onUpdate:modelValue":_[5]||(_[5]=g=>e.unref(u).label.rotate=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).label.fontSize,"onUpdate:modelValue":_[6]||(_[6]=g=>e.unref(u).label.fontSize=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(u).label.color,"onUpdate:modelValue":_[7]||(_[7]=g=>e.unref(u).label.color=g)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:h.option.dataShow.x,"onUpdate:modelValue":_[8]||(_[8]=g=>h.option.dataShow.x=g),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,g=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:g.comment,label:g.comment,value:g.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Ak,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.option.dataShow.y,(g,v)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"sort-item w-full"},[e.unref(d)[g]?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,predefine:e.unref(i),size:"small",modelValue:e.unref(d)[g].itemStyle.color,"onUpdate:modelValue":b=>e.unref(d)[g].itemStyle.color=b},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(d)[g].itemStyle.color)+" ",1),e.createElementVNode("span",Lk,e.toDisplayString(g),1),e.createElementVNode("div",Fk,[e.createElementVNode("i",{onClick:b=>m(g),class:e.normalizeClass([h.option.dataShow.hide.includes(g)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,jk),Pk])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),Uk={id:"sortable"},Wk={class:"ml-2"},Gk={class:"flex-1 flex justify-end"},Hk=["onClick"],Yk=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),im=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:c}=yt(),{seriesItem:s,init:d,customSeriesData:f}=da(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??s)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:_,oldIndex:g}){const v=r.option.dataShow.y,b=v.splice(g,1)[0];v.splice(_,0,b);const y=r.option.series.splice(g,1)[0];r.option.series.splice(_,0,y)}})}),e.onBeforeUnmount(()=>{var _;e.unref(u)&&((_=e.unref(u))==null||_.destroy())}),e.watch(p,()=>m(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{d(r.option,()=>{m()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x)});const m=()=>{const _=JSON.parse(JSON.stringify(p.value)),g=v=>{Object.keys(_).forEach(b=>{b=="lineStyle"?Object.keys(v[b]).forEach(y=>{y!="color"&&(v[b][y]=_[b][y])}):v[b]=_[b]})};r.option.series.forEach(v=>{g(v)}),Object.keys(f.value).forEach(v=>{g(e.unref(f)[v])}),window.customSeriesData=f.value},h=_=>{const{hide:g}=r.option.dataShow;g.includes(_)?g.splice(g.findIndex(v=>v==_),1):g.push(_)};return(_,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:_.option,type:1},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"折线配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:"线条"},{default:e.withCtx(()=>[e.createVNode(j,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).lineStyle.width,"onUpdate:modelValue":g[0]||(g[0]=v=>e.unref(p).lineStyle.width=v),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).lineStyle.type,"onUpdate:modelValue":g[1]||(g[1]=v=>e.unref(p).lineStyle.type=v),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,v=>e.createVNode(e.unref(S.ElOption),{key:v.value,label:v.label,value:v.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"实心点"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).symbolSize,"onUpdate:modelValue":g[2]||(g[2]=v=>e.unref(p).symbolSize=v),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"平滑"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(p).smooth,"onUpdate:modelValue":g[3]||(g[3]=v=>e.unref(p).smooth=v)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":g[4]||(g[4]=v=>e.unref(p).label.show=v)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":g[5]||(g[5]=v=>e.unref(p).label.position=v),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,v=>e.createVNode(e.unref(S.ElOption),{key:v.value,label:v.label,value:v.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":g[6]||(g[6]=v=>e.unref(p).label.rotate=v),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":g[7]||(g[7]=v=>e.unref(p).label.fontSize=v),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(p).label.color,"onUpdate:modelValue":g[8]||(g[8]=v=>e.unref(p).label.color=v)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:_.option.dataShow.x,"onUpdate:modelValue":g[9]||(g[9]=v=>_.option.dataShow.x=v),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,v=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:v.comment,label:v.comment,value:v.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Uk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.option.dataShow.y,(v,b)=>(e.openBlock(),e.createElementBlock("div",{key:v,class:"sort-item w-full"},[e.unref(f)[v]?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,size:"small",predefine:e.unref(i),modelValue:e.unref(f)[v].lineStyle.color,"onUpdate:modelValue":y=>e.unref(f)[v].lineStyle.color=y},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",Wk,e.toDisplayString(v),1),e.createElementVNode("div",Gk,[e.createElementVNode("i",{onClick:y=>h(v),class:e.normalizeClass([_.option.dataShow.hide.includes(v)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,Hk),Yk])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),am=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"外侧",value:"outside"},{label:"内部",value:"inside"},{label:"中心",value:"center"}],l=[{label:"数据名",value:"{b}"},{label:"百分比",value:"{d}"},{label:"列名:百分比",value:"{b}:{d}%"}],{setChartData:c}=yt(),{seriesItem:s,init:d,customSeriesData:f}=Xc(),u=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??s)));e.watch(u,()=>p(),{deep:!0}),e.watch(()=>r.option.dataShow,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x),d(r.option,()=>{p()})},{deep:!0,immediate:r.immediate});const p=()=>{const m=u.value,h=_=>{Object.keys(m).forEach(g=>{_[g]=m[g]})};r.option.series.forEach(_=>{h(_)}),Object.keys(f.value).forEach(_=>{h(e.unref(f)[_])}),window.customSeriesData=f.value};return(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:m.option,type:2},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"饼图配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(j,{name:"半径1"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(u).radius[0],"onUpdate:modelValue":h[0]||(h[0]=_=>e.unref(u).radius[0]=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"半径2"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(u).radius[1],"onUpdate:modelValue":h[1]||(h[1]=_=>e.unref(u).radius[1]=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"距离1"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(u).center[0],"onUpdate:modelValue":h[2]||(h[2]=_=>e.unref(u).center[0]=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"距离2"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(u).center[1],"onUpdate:modelValue":h[3]||(h[3]=_=>e.unref(u).center[1]=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"南丁格尔图"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).roseType,"onUpdate:modelValue":h[4]||(h[4]=_=>e.unref(u).roseType=_)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).label.show,"onUpdate:modelValue":h[5]||(h[5]=_=>e.unref(u).label.show=_)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"引导线"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(u).labelLine.show,"onUpdate:modelValue":h[6]||(h[6]=_=>e.unref(u).labelLine.show=_)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"展示类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(u).label.formatter,"onUpdate:modelValue":h[7]||(h[7]=_=>e.unref(u).label.formatter=_),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,_=>e.createVNode(e.unref(S.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(u).label.position,"onUpdate:modelValue":h[8]||(h[8]=_=>e.unref(u).label.position=_),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,_=>e.createVNode(e.unref(S.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{predefine:e.unref(i),modelValue:e.unref(u).label.fontSize,"onUpdate:modelValue":h[9]||(h[9]=_=>e.unref(u).label.fontSize=_),size:"small"},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(u).label.color,"onUpdate:modelValue":h[10]||(h[10]=_=>e.unref(u).label.color=_)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).itemStyle.borderRadius,"onUpdate:modelValue":h[11]||(h[11]=_=>e.unref(u).itemStyle.borderRadius=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(u).itemStyle.borderWidth,"onUpdate:modelValue":h[12]||(h[12]=_=>e.unref(u).itemStyle.borderWidth=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(u).itemStyle.borderColor,"onUpdate:modelValue":h[13]||(h[13]=_=>e.unref(u).itemStyle.borderColor=_)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"维度",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:m.option.dataShow.x,"onUpdate:modelValue":h[14]||(h[14]=_=>m.option.dataShow.x=_),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,_=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:_.comment,label:_.comment,value:_.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"统计",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:m.option.dataShow.y,"onUpdate:modelValue":h[15]||(h[15]=_=>m.option.dataShow.y=_),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.y,_=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:_.showLabel,label:_.showLabel,value:_.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),Xk={id:"sortable"},qk={class:"ml-2"},Jk={class:"flex-1 flex justify-end items-center"},Kk={class:"cursor-pointer mr-2 text-xs"},Zk=["onClick"],Qk=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),lm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:c}=yt(),{seriesLineItem:s,seriesBarItem:d,init:f,customSeriesData:u}=qc(),p=e.ref(null),m=e.ref(JSON.parse(JSON.stringify(Object.values(u.value).find(b=>b.type=="bar")??d))),h=e.ref(JSON.parse(JSON.stringify(Object.values(u.value).find(b=>b.type=="line")??s)));e.nextTick(()=>{p.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:b,oldIndex:y}){const w=r.option.dataShow.y,C=w.splice(y,1)[0];w.splice(b,0,C);const x=r.option.series.splice(y,1)[0];r.option.series.splice(b,0,x)}})}),e.onBeforeUnmount(()=>{var b;e.unref(p)&&((b=e.unref(p))==null||b.destroy())}),e.watch([m,h],()=>g(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{f(r.option,()=>{g()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x)});const _=(b,y)=>{var C,x,V,E;if(e.unref(u)[y].type!=b){const $=JSON.parse(JSON.stringify({...b=="line"?h.value:m.value})),B=((x=(C=e.unref(u)[y])==null?void 0:C.lineStyle)==null?void 0:x.color)??((E=(V=e.unref(u)[y])==null?void 0:V.itemStyle)==null?void 0:E.color);$[$!=null&&$.lineStyle?"lineStyle":"itemStyle"].color=B,u.value[y]=$,f(r.option,()=>{})}},g=()=>{const b=m.value,y=h.value,w=C=>{const x=JSON.parse(JSON.stringify(C.type=="bar"?b:y));Object.keys(x).forEach(V=>{["lineStyle","itemStyle"].includes(V)?Object.keys(C[V]).forEach(E=>{E=="borderRadius"?C[V][E]=[b.borderRadiusNumber,b.borderRadiusNumber,0,0]:E!="color"&&(C[V][E]=x[V][E])}):C[V]=x[V]})};r.option.series.forEach(C=>{w(C)}),Object.keys(u.value).forEach(C=>{w(e.unref(u)[C])}),window.customSeriesData=u.value},v=b=>{const{hide:y}=r.option.dataShow;y.includes(b)?y.splice(y.findIndex(w=>w==b),1):y.push(b)};return(b,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:b.option,type:5},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"柱状配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(m).barWidth,"onUpdate:modelValue":y[0]||(y[0]=w=>e.unref(m).barWidth=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:e.unref(m).borderRadiusNumber,"onUpdate:modelValue":y[1]||(y[1]=w=>e.unref(m).borderRadiusNumber=w),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(m).label.show,"onUpdate:modelValue":y[2]||(y[2]=w=>e.unref(m).label.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(m).label.position,"onUpdate:modelValue":y[3]||(y[3]=w=>e.unref(m).label.position=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,w=>e.createVNode(e.unref(S.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(m).label.rotate,"onUpdate:modelValue":y[4]||(y[4]=w=>e.unref(m).label.rotate=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(m).label.fontSize,"onUpdate:modelValue":y[5]||(y[5]=w=>e.unref(m).label.fontSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(m).label.color,"onUpdate:modelValue":y[6]||(y[6]=w=>e.unref(m).label.color=w)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"折线配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:"线条"},{default:e.withCtx(()=>[e.createVNode(j,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(h).lineStyle.width,"onUpdate:modelValue":y[7]||(y[7]=w=>e.unref(h).lineStyle.width=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(h).lineStyle.type,"onUpdate:modelValue":y[8]||(y[8]=w=>e.unref(h).lineStyle.type=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,w=>e.createVNode(e.unref(S.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"实心点"},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(h).symbolSize,"onUpdate:modelValue":y[9]||(y[9]=w=>e.unref(h).symbolSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"平滑"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(h).smooth,"onUpdate:modelValue":y[10]||(y[10]=w=>e.unref(h).smooth=w)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(h).label.show,"onUpdate:modelValue":y[11]||(y[11]=w=>e.unref(h).label.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(h).label.position,"onUpdate:modelValue":y[12]||(y[12]=w=>e.unref(h).label.position=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,w=>e.createVNode(e.unref(S.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(h).label.rotate,"onUpdate:modelValue":y[13]||(y[13]=w=>e.unref(h).label.rotate=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(h).label.fontSize,"onUpdate:modelValue":y[14]||(y[14]=w=>e.unref(h).label.fontSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(h).label.color,"onUpdate:modelValue":y[15]||(y[15]=w=>e.unref(h).label.color=w)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:b.option.dataShow.x,"onUpdate:modelValue":y[16]||(y[16]=w=>b.option.dataShow.x=w),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,w=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:w.comment,label:w.comment,value:w.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Xk,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.option.dataShow.y,(w,C)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"sort-item w-full"},[e.unref(u)[w]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(u)[w].type=="bar"?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,predefine:e.unref(i),size:"small",modelValue:e.unref(u)[w].itemStyle.color,"onUpdate:modelValue":x=>e.unref(u)[w].itemStyle.color=x},null,8,["predefine","modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:1,predefine:e.unref(i),size:"small",modelValue:e.unref(u)[w].lineStyle.color,"onUpdate:modelValue":x=>e.unref(u)[w].lineStyle.color=x},null,8,["predefine","modelValue","onUpdate:modelValue"]))],64)):e.createCommentVNode("",!0),e.createElementVNode("span",qk,e.toDisplayString(w),1),e.createElementVNode("div",Jk,[e.unref(u)[w]?(e.openBlock(),e.createBlock(e.unref(S.ElDropdown),{key:0,onCommand:x=>_(x,w)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownMenu),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownItem),{command:"bar"},{default:e.withCtx(()=>[e.createTextVNode("柱状")]),_:1}),e.createVNode(e.unref(S.ElDropdownItem),{command:"line"},{default:e.withCtx(()=>[e.createTextVNode("折线")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",Kk,e.toDisplayString(e.unref(u)[w].type=="bar"?"柱状":"折线"),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:x=>v(w),class:e.normalizeClass([b.option.dataShow.hide.includes(w)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,Zk),Qk])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),e5={id:"sortable"},t5={class:"ml-2"},n5={class:"flex-1 flex justify-end items-center"},r5={class:"cursor-pointer mr-2 text-xs"},o5=["onClick"],i5=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),cm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],l=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:c}=yt(),{seriesItem:s,init:d,customSeriesData:f}=Jc(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??s)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:g,oldIndex:v}){const b=r.option.dataShow.y,y=b.splice(v,1)[0];b.splice(g,0,y);const w=r.option.series.splice(v,1)[0];r.option.series.splice(g,0,w)}})}),e.onBeforeUnmount(()=>{var g;e.unref(u)&&((g=e.unref(u))==null||g.destroy())}),e.watch(p,()=>m(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{d(r.option,()=>{m()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x)});const m=()=>{const g=JSON.parse(JSON.stringify(p.value)),v=b=>{Object.keys(g).forEach(y=>{y!="type"&&(["itemStyle"].includes(y)||(b[y]=g[y]))})};r.option.series.forEach(b=>{v(b)}),Object.keys(f.value).forEach(b=>{v(e.unref(f)[b])}),window.customSeriesData=f.value},h=(g,v)=>{const b=e.unref(f)[v];b.type!=g&&(b.type=g,d(r.option,()=>{}))},_=g=>{const{hide:v}=r.option.dataShow;v.includes(g)?v.splice(v.findIndex(b=>b==g),1):v.push(g)};return(g,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:g.option,type:6},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"散点图配置"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).symbolSize,"onUpdate:modelValue":v[0]||(v[0]=b=>e.unref(p).symbolSize=b),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标域"},{default:e.withCtx(()=>[e.createVNode(j,{name:"粗细(0不显示)"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).markArea.itemStyle.borderWidth,"onUpdate:modelValue":v[1]||(v[1]=b=>e.unref(p).markArea.itemStyle.borderWidth=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).markArea.itemStyle.borderType,"onUpdate:modelValue":v[2]||(v[2]=b=>e.unref(p).markArea.itemStyle.borderType=b),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,b=>e.createVNode(e.unref(S.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":v[3]||(v[3]=b=>e.unref(p).label.show=b)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":v[4]||(v[4]=b=>e.unref(p).label.position=b),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,b=>e.createVNode(e.unref(S.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":v[5]||(v[5]=b=>e.unref(p).label.rotate=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":v[6]||(v[6]=b=>e.unref(p).label.fontSize=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(p).label.color,"onUpdate:modelValue":v[7]||(v[7]=b=>e.unref(p).label.color=b)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:g.option.dataShow.x,"onUpdate:modelValue":v[8]||(v[8]=b=>g.option.dataShow.x=b),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,b=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:b.comment,label:b.comment,value:b.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",e5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.option.dataShow.y,(b,y)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"sort-item w-full"},[e.unref(f)[b]?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,predefine:e.unref(i),size:"small",modelValue:e.unref(f)[b].itemStyle.color,"onUpdate:modelValue":w=>e.unref(f)[b].itemStyle.color=w},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",t5,e.toDisplayString(b),1),e.createElementVNode("div",n5,[e.unref(f)[b]?(e.openBlock(),e.createBlock(e.unref(S.ElDropdown),{key:0,onCommand:w=>h(w,b)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownMenu),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownItem),{command:"scatter"},{default:e.withCtx(()=>[e.createTextVNode("普通")]),_:1}),e.createVNode(e.unref(S.ElDropdownItem),{command:"effectScatter"},{default:e.withCtx(()=>[e.createTextVNode("特效")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",r5,e.toDisplayString(e.unref(f)[b].type=="scatter"?"普通":"特效"),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:w=>_(b),class:e.normalizeClass([g.option.dataShow.hide.includes(b)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,o5),i5])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),a5={id:"sortable"},l5={class:"flex-1 flex justify-end items-center"},c5=["onClick"],d5=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),dm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){var _;const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,a=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}],{setChartData:c}=yt(),{seriesItem:s,init:d,customSeriesData:f}=Kc(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify((_=e.unref(f))!=null&&_.type?f.value:s)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:g,oldIndex:v}){const b=r.option.dataShow.y,y=b.splice(v,1)[0];b.splice(g,0,y);const w=r.option.series.splice(v,1)[0];r.option.series.splice(g,0,w)}})}),e.onBeforeUnmount(()=>{var g;e.unref(u)&&((g=e.unref(u))==null||g.destroy())}),e.watch(p,()=>m(),{deep:!0}),e.watch([()=>r.option.dataShow.y,()=>r.option.dataShow.hide],()=>{d(r.option,()=>{m()})},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.dataShow.x,async()=>{r.option.dataset.source=await c(r.type,r.option.dataShow.x),d(r.option,()=>{m()})});const m=()=>{const g=p.value;Object.keys(r.option.series[0]).forEach(v=>{["areaStyle","label"].includes(v)&&(r.option.series[0][v]=g[v])}),f.value={...r.option.series[0],data:[]},window.customSeriesData=f.value},h=g=>{const{hide:v}=r.option.dataShow;v.includes(g)?v.splice(v.findIndex(b=>b==g),1):v.push(g)};return(g,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:g.option,type:4},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"雷达图配置"},{default:e.withCtx(()=>{var b;return[e.createVNode(de,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(j,{name:"背景"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.splitArea.show,"onUpdate:modelValue":v[0]||(v[0]=y=>g.option.radar.splitArea.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.splitLine.show,"onUpdate:modelValue":v[1]||(v[1]=y=>g.option.radar.splitLine.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:g.option.radar.shape,"onUpdate:modelValue":v[2]||(v[2]=y=>g.option.radar.shape=y),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,y=>e.createVNode(e.unref(S.ElOption),{key:y.value,label:y.label,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"坐标轴"},{default:e.withCtx(()=>[e.createVNode(j,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.axisLine.show,"onUpdate:modelValue":v[3]||(v[3]=y=>g.option.radar.axisLine.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"刻度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.axisTick.show,"onUpdate:modelValue":v[4]||(v[4]=y=>g.option.radar.axisTick.show=y)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"范围"},{default:e.withCtx(()=>[e.createVNode(j,{name:"最小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:g.option.radar.radius[0],"onUpdate:modelValue":v[5]||(v[5]=y=>g.option.radar.radius[0]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"最大"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:g.option.radar.radius[1],"onUpdate:modelValue":v[6]||(v[6]=y=>g.option.radar.radius[1]=y),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"偏移"},{default:e.withCtx(()=>[e.createVNode(j,{name:"x"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:g.option.radar.center[0],"onUpdate:modelValue":v[7]||(v[7]=y=>g.option.radar.center[0]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"y"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:g.option.radar.center[1],"onUpdate:modelValue":v[8]||(v[8]=y=>g.option.radar.center[1]=y),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"指示器"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:g.option.radar.axisName.show,"onUpdate:modelValue":v[9]||(v[9]=y=>g.option.radar.axisName.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:g.option.radar.axisName.fontSize,"onUpdate:modelValue":v[10]||(v[10]=y=>g.option.radar.axisName.fontSize=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:g.option.radar.axisName.color,"onUpdate:modelValue":v[11]||(v[11]=y=>g.option.radar.axisName.color=y)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":v[12]||(v[12]=y=>e.unref(p).label.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":v[13]||(v[13]=y=>e.unref(p).label.position=y),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,y=>e.createVNode(e.unref(S.ElOption),{key:y.value,label:y.label,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":v[14]||(v[14]=y=>e.unref(p).label.rotate=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":v[15]||(v[15]=y=>e.unref(p).label.fontSize=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:e.unref(p).label.color,"onUpdate:modelValue":v[16]||(v[16]=y=>e.unref(p).label.color=y)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),(b=e.unref(p))!=null&&b.type?(e.openBlock(),e.createBlock(de,{key:0,name:"系列"},{default:e.withCtx(()=>[e.createVNode(j,{name:"背景透明度"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(p).areaStyle.opacity,"onUpdate:modelValue":v[17]||(v[17]=y=>e.unref(p).areaStyle.opacity=y),min:0,max:1,size:"small",step:.1},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]}),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:g.option.dataShow.x,"onUpdate:modelValue":v[18]||(v[18]=b=>g.option.dataShow.x=b),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,b=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:b.comment,label:b.comment,value:b.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",a5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.option.dataShow.y,(b,y)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"sort-item w-full"},[e.createElementVNode("span",null,e.toDisplayString(b),1),e.createElementVNode("div",l5,[e.createElementVNode("i",{onClick:w=>h(b),class:e.normalizeClass([g.option.dataShow.hide.includes(b)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,c5),d5])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),s5={id:"sortable"},f5={class:"ml-2"},u5={class:"flex-1 flex justify-end items-center"},p5=e.createElementVNode("i",{class:"ri-more-line mr-2 cursor-pointer"},null,-1),h5=["onClick"],m5=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),sm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){Te();const n=t,{proxy:r}=e.getCurrentInstance(),o=r.$globalPreColor;yt();const{init:i,tableConfig:a,customSeriesData:l}=sa(),c=e.ref(null),s=e.ref(JSON.parse(JSON.stringify(a)));e.nextTick(()=>{c.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:u,oldIndex:p}){const m=n.option.dataShow.y,h=m.splice(p,1)[0];m.splice(u,0,h);const _=n.option.series.splice(p,1)[0];n.option.series.splice(u,0,_)}})}),e.onBeforeUnmount(()=>{var u;e.unref(c)&&((u=e.unref(c))==null||u.destroy())}),e.watch(s,()=>d(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{i(n.option)},{deep:!0,immediate:n.immediate});const d=()=>{},f=u=>{const{hide:p=[]}=n.option.dataShow;p.includes(u)?p.splice(p.findIndex(m=>m==u),1):p.push(u),n.option.dataShow.hide=p};return(u,p)=>{const m=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:"列名"},{default:e.withCtx(()=>[e.createVNode(j,{name:"",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",s5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.option.dataShow.y,(h,_)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"sort-item w-full"},[e.unref(l)[h]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),size:"small",modelValue:e.unref(l)[h].bgColor,"onUpdate:modelValue":g=>e.unref(l)[h].bgColor=g},null,8,["predefine","modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(o),size:"small",modelValue:e.unref(l)[h].color,"onUpdate:modelValue":g=>e.unref(l)[h].color=g},null,8,["predefine","modelValue","onUpdate:modelValue"])],64)):e.createCommentVNode("",!0),e.createElementVNode("span",f5,e.toDisplayString(h),1),e.createElementVNode("div",u5,[e.unref(l)[h]?(e.openBlock(),e.createBlock(e.unref(S.ElPopover),{key:0,width:400,trigger:"hover"},{reference:e.withCtx(()=>[p5]),default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:e.unref(l)[h].prefix,"onUpdate:modelValue":g=>e.unref(l)[h].prefix=g,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:e.unref(l)[h].suffix,"onUpdate:modelValue":g=>e.unref(l)[h].suffix=g,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:e.unref(l)[h].toFixed,"onUpdate:modelValue":g=>e.unref(l)[h].toFixed=g,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:e.unref(l)[h].fontSize,"onUpdate:modelValue":g=>e.unref(l)[h].fontSize=g,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:g=>f(h),class:e.normalizeClass([(u.option.dataShow.hide??[]).includes(h)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,h5),m5])]))),128))])]),_:1})]),_:1})]),_:1})}}}),g5={id:"sortable"},_5={class:"ml-2"},v5={class:"flex-1 flex justify-end items-center"},y5=e.createElementVNode("i",{class:"ri-more-line mr-2 cursor-pointer"},null,-1),b5=["onClick"],w5=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),fm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){Te();const n=t,{proxy:r}=e.getCurrentInstance(),o=r.$globalPreColor;yt();const{init:i,tableConfig:a,customSeriesData:l}=sa(),c=e.ref(null),s=e.ref(JSON.parse(JSON.stringify(a)));e.nextTick(()=>{c.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:u,oldIndex:p}){const m=n.option.dataShow.y,h=m.splice(p,1)[0];m.splice(u,0,h);const _=n.option.series.splice(p,1)[0];n.option.series.splice(u,0,_)}})}),e.onBeforeUnmount(()=>{var u;e.unref(c)&&((u=e.unref(c))==null||u.destroy())}),e.watch(s,()=>d(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{i(n.option)},{deep:!0,immediate:n.immediate});const d=()=>{},f=u=>{const{hide:p}=n.option.dataShow;p.includes(u)?p.splice(p.findIndex(m=>m==u),1):p.push(u)};return(u,p)=>(e.openBlock(),e.createBlock(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:"列名"},{default:e.withCtx(()=>[e.createVNode(j,{name:"",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",g5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.option.dataShow.y,(m,h)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"sort-item w-full"},[e.unref(l)[m]?(e.openBlock(),e.createBlock(e.unref(S.ElColorPicker),{key:0,predefine:e.unref(o),size:"small",modelValue:e.unref(l)[m].color,"onUpdate:modelValue":_=>e.unref(l)[m].color=_},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",_5,e.toDisplayString(m),1),e.createElementVNode("div",v5,[e.unref(l)[m]?(e.openBlock(),e.createBlock(e.unref(S.ElPopover),{key:0,width:400,trigger:"hover"},{reference:e.withCtx(()=>[y5]),default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(l)[m].prefix,"onUpdate:modelValue":_=>e.unref(l)[m].prefix=_,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(l)[m].suffix,"onUpdate:modelValue":_=>e.unref(l)[m].suffix=_,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{min:0,modelValue:e.unref(l)[m].toFixed,"onUpdate:modelValue":_=>e.unref(l)[m].toFixed=_,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:_=>f(m),class:e.normalizeClass([u.option.dataShow.hide.includes(m)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,b5),w5])]))),128))])]),_:1})]),_:1})]),_:1}))}}),C5={class:"flex items-center"},S5=e.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),x5={class:"flex items-center"},V5=e.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),um=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const n=Te(),r=t,{proxy:o}=e.getCurrentInstance(),i=o.$globalPreColor,{init:a,city:l}=Zc();return e.watch(()=>r.option.style.style1,async c=>{r.option.series[1]=c},{deep:!0,immediate:r.immediate}),e.watch(()=>r.option.style.style2,async c=>{r.option.series[2]=c},{deep:!0,immediate:r.immediate}),(c,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(lr,{option:c.option,type:9},null,8,["option"]),e.createVNode(e.unref(S.ElCollapseItem),{title:"地图数据"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElTreeSelect),{modelValue:c.option.code,"onUpdate:modelValue":s[0]||(s[0]=d=>c.option.code=d),data:e.unref(l),props:{label:"name",value:"code",children:"children"},onChange:s[1]||(s[1]=d=>e.unref(a)(c.option)),filterable:"","node-key":"code","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"视觉映射"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:c.option.visualMap.show,"onUpdate:modelValue":s[2]||(s[2]=d=>c.option.visualMap.show=d)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"文本"},{default:e.withCtx(()=>[e.createElementVNode("div",C5,[e.createVNode(e.unref(S.ElInput),{modelValue:c.option.visualMap.text[1],"onUpdate:modelValue":s[3]||(s[3]=d=>c.option.visualMap.text[1]=d),size:"small"},null,8,["modelValue"]),S5,e.createVNode(e.unref(S.ElInput),{modelValue:c.option.visualMap.text[0],"onUpdate:modelValue":s[4]||(s[4]=d=>c.option.visualMap.text[0]=d),size:"small"},null,8,["modelValue"])])]),_:1}),e.createVNode(j,{name:"最小值-最高值"},{default:e.withCtx(()=>[e.createElementVNode("div",x5,[e.createVNode(e.unref(S.ElInput),{modelValue:c.option.visualMap.min,"onUpdate:modelValue":s[5]||(s[5]=d=>c.option.visualMap.min=d),size:"small"},null,8,["modelValue"]),V5,e.createVNode(e.unref(S.ElInput),{modelValue:c.option.visualMap.max,"onUpdate:modelValue":s[6]||(s[6]=d=>c.option.visualMap.max=d),size:"small"},null,8,["modelValue"])])]),_:1}),e.createVNode(j,{name:"最小颜色-最高颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.visualMap.inRange.color[0],"onUpdate:modelValue":s[7]||(s[7]=d=>c.option.visualMap.inRange.color[0]=d)},null,8,["predefine","modelValue"]),e.createTextVNode(" - "),e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.visualMap.inRange.color[1],"onUpdate:modelValue":s[8]||(s[8]=d=>c.option.visualMap.inRange.color[1]=d)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(S.ElCollapseItem),{title:"地图"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"展示标签"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:c.option.geo.label.show,"onUpdate:modelValue":s[9]||(s[9]=d=>c.option.geo.label.show=d)},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"缩放"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{step:.1,modelValue:c.option.geo.zoom,"onUpdate:modelValue":s[10]||(s[10]=d=>c.option.geo.zoom=d),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.geo.label.fontSize,"onUpdate:modelValue":s[11]||(s[11]=d=>c.option.geo.label.fontSize=d),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.geo.label.color,"onUpdate:modelValue":s[12]||(s[12]=d=>c.option.geo.label.color=d)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(de,{name:"移动效果"},{default:e.withCtx(()=>[e.createVNode(j,{name:"区块颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.geo.emphasis.itemStyle.areaColor,"onUpdate:modelValue":s[13]||(s[13]=d=>c.option.geo.emphasis.itemStyle.areaColor=d)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"边框颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.geo.emphasis.itemStyle.borderColor,"onUpdate:modelValue":s[14]||(s[14]=d=>c.option.geo.emphasis.itemStyle.borderColor=d)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(j,{name:"边框大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.geo.emphasis.itemStyle.borderWidth,"onUpdate:modelValue":s[15]||(s[15]=d=>c.option.geo.emphasis.itemStyle.borderWidth=d),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.geo.emphasis.label.fontSize,"onUpdate:modelValue":s[16]||(s[16]=d=>c.option.geo.emphasis.label.fontSize=d),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(j,{name:"字体颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.geo.emphasis.label.color,"onUpdate:modelValue":s[17]||(s[17]=d=>c.option.geo.emphasis.label.color=d)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(["style1","style2"],d=>e.createVNode(e.unref(S.ElCollapseItem),{title:d=="style1"?"散点样式":"点位样式"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:c.option.style[d].symbol,"onUpdate:modelValue":f=>c.option.style[d].symbol=f,size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ln).shape,f=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.style[d].symbolSize,"onUpdate:modelValue":f=>c.option.style[d].symbolSize=f,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"形状颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.style[d].itemStyle.color,"onUpdate:modelValue":f=>c.option.style[d].itemStyle.color=f},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),c.option.style[d].label?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(j,{name:"值显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSwitch),{modelValue:c.option.style[d].label.show,"onUpdate:modelValue":f=>c.option.style[d].label.show=f},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i),modelValue:c.option.style[d].label.color,"onUpdate:modelValue":f=>c.option.style[d].label.color=f},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(j,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInputNumber),{modelValue:c.option.style[d].label.fontSize,"onUpdate:modelValue":f=>c.option.style[d].label.fontSize=f,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):e.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["title"])),64)),e.createVNode(e.unref(S.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(de,{name:""},{default:e.withCtx(()=>[e.createVNode(j,{name:"维度",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:c.option.dataShow.x,"onUpdate:modelValue":s[18]||(s[18]=d=>c.option.dataShow.x=d),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.x,d=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:d.comment,label:d.comment,value:d.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(j,{name:"统计",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{modelValue:c.option.dataShow.y,"onUpdate:modelValue":s[19]||(s[19]=d=>c.option.dataShow.y=d),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n).getChartData.y,d=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{key:d.showLabel,label:d.showLabel,value:d.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),jt={};for(let t=0;t<=3;t+=1){let n=null;if(t==0&&(n=Object.assign({"../decoration/decoration1/setting.vue":HE,"../decoration/decoration10/setting.vue":YE,"../decoration/decoration11/setting.vue":XE,"../decoration/decoration12/setting.vue":qE,"../decoration/decoration2/setting.vue":JE,"../decoration/decoration3/setting.vue":KE,"../decoration/decoration4/setting.vue":ZE,"../decoration/decoration5/setting.vue":QE,"../decoration/decoration6/setting.vue":ek,"../decoration/decoration8/setting.vue":tk,"../decoration/decoration9/setting.vue":nk})),t==1&&(n=Object.assign({"../border/border1/setting.vue":rk,"../border/border10/setting.vue":ok,"../border/border11/setting.vue":ik,"../border/border12/setting.vue":ak,"../border/border13/setting.vue":lk,"../border/border2/setting.vue":ck,"../border/border3/setting.vue":dk,"../border/border4/setting.vue":sk,"../border/border5/setting.vue":fk,"../border/border6/setting.vue":uk,"../border/border7/setting.vue":pk,"../border/border8/setting.vue":hk,"../border/border9/setting.vue":mk})),t==2&&(n=Object.assign({"../basic/horizontal-line/setting.vue":gk,"../basic/iframe/setting.vue":_k,"../basic/img/setting.vue":Sk,"../basic/number/setting.vue":Vk,"../basic/square/setting.vue":Ek,"../basic/text/setting.vue":kk,"../basic/time/setting.vue":Nk,"../basic/vertical-line/setting.vue":$k})),t==3&&(jt[3]=om,jt[2]=am,jt[1]=im,jt[4]=dm,jt[5]=lm,jt[6]=cm,jt[7]=sm,jt[8]=fm,jt[9]=um),n)for(const[r,o]of Object.entries(n)){const i=r.split("/")[2];jt[i]=o.default}}const pm=t=>(e.pushScopeId("data-v-19259c54"),t=t(),e.popScopeId(),t),E5=pm(()=>e.createElementVNode("div",{class:"flex h-10 items-center p-2"},[e.createElementVNode("span",{class:"w-1 h-4 bg-color-primary mr-2"}),e.createTextVNode(" 大屏设置 ")],-1)),k5=pm(()=>e.createElementVNode("div",{class:"h-px mb-2",style:{"background-color":"var(--el-border-color-light)"}},null,-1)),N5={class:"p-2"},$5=e.defineComponent({__name:"rightPannel",setup(t){const n=Te(),r=e.ref({});e.provide("widgetConfig",r);const o=e.ref(""),i=e.computed(()=>n.targetsWidget.length===1?n.getWidgetList.find(l=>{var c;return l.id==((c=n.targetsWidget[0])==null?void 0:c.id)}):null);e.watch(i,l=>{a()});const a=()=>{if(!e.unref(i)){r.value={};return}const l=n.getWidgetList.find(c=>c.id==e.unref(i).id);e.unref(i).chartType&&(window.customSeriesData=l.customize.customSeriesData,n.setChartData(n.tempChartData[l.id].params)),r.value=l,o.value=""};return a(),(l,c)=>(e.openBlock(),e.createBlock(e.unref(S.ElScrollbar),{height:"100%"},{default:e.withCtx(()=>{var s,d;return[E5,k5,(s=e.unref(r))!=null&&s.chartType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(Ce),e.createElementVNode("div",N5,[e.createVNode(e.unref(S.ElCollapse),{accordion:"",modelValue:e.unref(o),"onUpdate:modelValue":c[0]||(c[0]=f=>e.isRef(o)?o.value=f:null)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(jt)[e.unref(r).chartType]),{key:e.unref(r).id,immediate:"",option:e.unref(r).customize,type:e.unref(r).chartType},null,8,["option","type"]))]),_:1},8,["modelValue"])])],64)):e.unref(jt)[(d=e.unref(r))==null?void 0:d.type]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(jt)[e.unref(r).type]),{key:e.unref(r).id})):(e.openBlock(),e.createBlock(GE,{key:2}))]}),_:1}))}}),j6="",D5=ke($5,[["__scopeId","data-v-19259c54"]]),B5={class:"flex flex-col overflow-hidden ace-big-screen"},T5={class:"h-10 top-pannel"},O5={class:"relative flex flex-1"},I5={class:"left-pannel"},z5={class:"flex-1 p-2 overflow-hidden",id:"design-container"},R5={class:"relative w-full h-full"},M5={key:0,class:"right-pannel w-80"},A5=e.defineComponent({__name:"design",emits:["preview","save"],setup(t,{expose:n,emit:r}){const o=r,{proxy:i}=e.getCurrentInstance(),{chartJsonFormat:a}=i.$globalUtils,l=Te(),c=e.ref(!1),s=e.ref(""),d=e.ref("");return e.watch(c,u=>{u?document.getElementsByTagName("html")[0].className=l.theme:document.getElementsByTagName("html")[0].className=""}),n({init:async(u="")=>{if(d.value=u,s.value="大屏管理",l.widgetConfg={config:{},list:[]},l.clearSketchRuleLine(),l.setRightPannel(!1),u){const p=await i.$baseHttp.get("/api/ace-data-center/screen/detail",{params:{id:u},headers:{loading:!0}});s.value=p.data.title,l.widgetConfg=a(p.data.config)}l.setStageWidth(l.widgetConfg.config.stageWidth??1920),l.setStageHeight(l.widgetConfg.config.stageHeight??1080),c.value=!0}}),(u,p)=>{const m=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(m,{modelValue:e.unref(c),"onUpdate:modelValue":p[4]||(p[4]=h=>e.isRef(c)?c.value=h:null),title:"大屏设计",size:"100%",withHeader:!1,modalClass:"ace-modal-drawer",customClass:"ace-big-design-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",B5,[e.createElementVNode("div",T5,[e.createVNode(t0,{title:e.unref(s),"onUpdate:title":p[0]||(p[0]=h=>e.isRef(s)?s.value=h:null),id:e.unref(d),onPreview:p[1]||(p[1]=h=>o("preview",h)),onSave:p[2]||(p[2]=()=>o("save")),onBack:p[3]||(p[3]=()=>c.value=!1)},null,8,["title","id"])]),e.createElementVNode("div",O5,[e.createElementVNode("div",I5,[e.createVNode(l_)]),e.createElementVNode("div",z5,[e.createElementVNode("div",R5,[e.createVNode(RE)])]),e.unref(l).getRightPannel?(e.openBlock(),e.createElementBlock("div",M5,[e.createVNode(D5)])):e.createCommentVNode("",!0)])])]),_:1},8,["modelValue"])}}}),P6="",Mo=t=>(e.pushScopeId("data-v-f6c5b693"),t=t(),e.popScopeId(),t),L5={key:1,class:"flex flex-wrap items-center justify-between"},F5={class:"item-container"},j5={class:"item-image"},P5=["src"],U5=["onClick"],W5=[Mo(()=>e.createElementVNode("span",{class:"text-base text-white cursor-pointer"},"预览大屏",-1))],G5={class:"flex items-center justify-between item-footer"},H5={class:"flex"},Y5=["onClick"],X5=Mo(()=>e.createElementVNode("i",{class:"mr-1 ri-edit-line"},null,-1)),q5=["onClick"],J5=Mo(()=>e.createElementVNode("i",{class:"mr-1 ri-delete-bin-line"},null,-1)),K5=Mo(()=>e.createElementVNode("div",{class:"item"},null,-1)),Z5=Mo(()=>e.createElementVNode("div",{class:"item"},null,-1)),Q5=e.defineComponent({__name:"index",emits:["preview"],setup(t,{emit:n}){const r=n,{proxy:o}=e.getCurrentInstance(),{resetUrl:i}=o.$globalUtils,a=e.ref(null),l=e.ref(null),c=e.reactive([{name:"新增",key:"ADD",type:"primary"}]),s=e.reactive([{name:"名称",type:Fn.Text,fieldName:"title",value:""}]),d=async f=>{const{type:u,row:p}=f;switch(u){case"PREVIEW":r("preview","list",(p==null?void 0:p.id)??"");break;case"ADD":case"EDIT":e.unref(l).init((p==null?void 0:p.id)??"");break;case"DEL":o.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await o.$baseHttp.post("/api/ace-data-center/screen/remove",{},{params:{ids:p.id},headers:{loading:!0}})&&(o.$message({type:"success",message:"删除成功",plain:!0}),e.unref(a).getData())}});break}};return(f,u)=>{const p=e.resolveComponent("AppEmpty"),m=e.resolveComponent("AppList");return e.openBlock(),e.createBlock(m,{url:`/api/ace-data-center/screen/list?descs=create_time&projectId=${e.unref(o).$baseGetCurrentProjectId}`,tableData:[],searchForm:e.unref(s),searchBtns:e.unref(c),listType:"custom",onBtnClick:d,ref_key:"appListRef",ref:a},{"list-slot":e.withCtx(({list:h,loading:_})=>[e.createVNode(e.unref(S.ElSkeleton),{loading:_,animated:""},{default:e.withCtx(()=>[h.length==0?(e.openBlock(),e.createBlock(p,{key:0,description:"暂无数据"})):(e.openBlock(),e.createElementBlock("div",L5,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h,(g,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,class:"item"},[e.createElementVNode("div",F5,[e.createElementVNode("div",j5,[e.createElementVNode("img",{src:e.unref(i)(g.imageUrl??"")||"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg"},null,8,P5),e.createElementVNode("div",{class:"flex items-center justify-center item-popup",onClick:b=>d({type:"PREVIEW",row:g,index:v})},W5,8,U5)]),e.createElementVNode("div",G5,[e.createElementVNode("div",null,e.toDisplayString(g.title),1),e.createElementVNode("div",H5,[e.createElementVNode("span",{onClick:b=>d({type:"EDIT",row:g,index:v}),class:"flex items-center text-xs text-gray-600 cursor-pointer"},[X5,e.createTextVNode(" 编辑大屏 ")],8,Y5),e.createElementVNode("span",{onClick:b=>d({type:"DEL",row:g,index:v}),class:"flex items-center ml-2 text-xs cursor-pointer text-color-danger"},[J5,e.createTextVNode(" 删除 ")],8,q5)])])])]))),128)),K5,Z5]))]),_:2},1032,["loading"])]),default:e.withCtx(()=>[e.createVNode(A5,{ref_key:"designRef",ref:l,onSave:u[0]||(u[0]=h=>e.unref(a).getData()),onPreview:u[1]||(u[1]=h=>r("preview","content",h))},null,512)]),_:1},8,["url","searchForm","searchBtns"])}}}),W6="",eN=ke(Q5,[["__scopeId","data-v-f6c5b693"]]);let td=null,Ao="",nd="",rd="",od=null,hm=null,Nt=1,Pr=!1;const mm={isAutofitRunnig:!1,init(t={},n=!0){n&&console.log("autofit.js is running");const{dw:r=1920,dh:o=1080,el:i=typeof t=="string"?t:"body",resize:a=!0,ignore:l=[],transition:c="none",delay:s=0,limit:d=.1}=t;td=i;let f=document.querySelector(i);if(!f){console.error(`autofit: '${i}' is not exist`);return}const u=document.createElement("style"),p=document.createElement("style");u.lang="text/css",p.lang="text/css",u.id="autofit-style",p.id="ignoreStyle",u.innerHTML="body {overflow: hidden;}";const m=document.querySelector("body");m.appendChild(u),m.appendChild(p),f.style.height=`${o}px`,f.style.width=`${r}px`,f.style.transformOrigin="0 0",f.style.overflow="hidden",id(r,o,f,l,d),od=()=>{clearTimeout(hm),s!=0?hm=setTimeout(()=>{id(r,o,f,l,d),Pr&&gm(Ao,rd,nd)},s):(id(r,o,f,l,d),Pr&&gm(Ao,rd,nd))},a&&window.addEventListener("resize",od),this.isAutofitRunnig=!0,setTimeout(()=>{f.style.transition=`${c}s`})},off(t="body"){try{Pr=!1,window.removeEventListener("resize",od),document.querySelector("#autofit-style").remove();const n=document.querySelector("#ignoreStyle");n&&n.remove(),document.querySelector(td||t).style="",Pr&&tN()}catch(n){console.error("autofit: Failed to remove normally",n),this.isAutofitRunnig=!1}this.isAutofitRunnig&&console.log("autofit.js is off")}};function gm(t,n=!0,r=1){mm.isAutofitRunnig||console.error("autofit.js:autofit has not been initialized yet"),!t&&console.error(`autofit.js:bad selector: ${t}`),Ao=t,nd=r,rd=n;const o=document.querySelectorAll(t);if(o.length==0){console.error("autofit.js:elRectification found no element");return}for(let i of o){let a=Nt==1?1:Nt*r;Pr||(i.originalWidth=i.clientWidth,i.originalHeight=i.clientHeight),n?(i.style.width=`${i.originalWidth*a}px`,i.style.height=`${i.originalHeight*a}px`):(i.style.width=`${100*a}%`,i.style.height=`${100*a}%`),i.style.transform=`scale(${1/Nt})`,i.style.transformOrigin="0 0"}Pr=!0}function tN(){if(Ao)for(let t of document.querySelectorAll(Ao))t.style.width="",t.style.height="",t.style.transform=""}function id(t,n,r,o,i){let a=document.documentElement.clientHeight,l=document.documentElement.clientWidth;Nt=l/a<t/n?l/t:a/n,Nt=Math.abs(1-Nt)>i?Nt.toFixed(2):1;let c=Math.round(a/Nt),s=Math.round(l/Nt);r.style.height=`${c}px`,r.style.width=`${s}px`,r.style.transform=`scale(${Nt})`;const d=document.querySelector("#ignoreStyle");d.innerHTML="";for(let f of o){let u=f.el||f.dom;if(typeof f=="string"&&(u=f),!u){console.error(`autofit: bad selector: ${u}`);continue}let p=f.scale?f.scale:1/Nt,m=p!=Nt?f.fontSize:"autofit",h=p!=Nt?f.width:"autofit",_=p!=Nt?f.height:"autofit";new RegExp(`${u}( |{)`,"gm").test(d.innerHTML)||(d.innerHTML+=`
|
|
795
795
|
${u} {
|
|
796
796
|
transform: scale(${p})!important;
|
|
797
797
|
transform-origin: 0 0;
|
|
@@ -875,7 +875,7 @@ ${u} div ,${u} span,${u} a,${u} * {
|
|
|
875
875
|
<body>
|
|
876
876
|
${(_=document.getElementById("preview-content"))==null?void 0:_.innerHTML}
|
|
877
877
|
</body>
|
|
878
|
-
</html>`,h=new Blob([m],{type:"application/msword;charset=utf-8"});lN.saveAs(h,`${e.unref(c).filename}.doc`),l.value=!1},f=e.ref(""),u=async()=>{await new Promise(async m=>{var h;f.value=document.title,document.title=e.unref(c).filename,(h=document.getElementById("printButton"))==null||h.click(),l.value=!1,m(!0)})};return n({init:async(m,h)=>{const _=S.ElLoading.service({lock:!0,text:"数据处理中",background:"rgba(0, 0, 0, 1)",customClass:"preview-loading"});c.value={type:m,content:h.reportContent,filename:h.reportName},await new Promise(v=>{setTimeout(()=>{l.value=!0,v(!0)},100)});const g=[];e.nextTick(async()=>{const v=document.getElementById("preview-content");(function V(E){E.forEach($=>{g.push($),$.childNodes&&V($.childNodes)})})(v.childNodes);const b=await Ee(r).listIndicatorsApply({reportId:h.id},!1),y=g.filter(V=>V.className==="editor-indicator"),w=[...new Set(y.map(V=>V.dataset.id))],C=await Ee(r).mapEchartsData(w.toString(),!1),x=[];for(let V=0;V<y.length;V+=1){const E=y[V],$=b.data.find(B=>B.id==E.dataset.id);if(E.dataset.charttype==7){$.indicatorsType=="MODEL_INDICATORS"?(await o($.indicatorsId??$.id,$.echartsType,$.formConfJson),y[V].innerHTML=i(y[V].getAttribute("data-singleValueKey"))):y[V].innerHTML=C.data[E.dataset.id].config;const B=y[V].getAttribute("data-fontsize"),R=y[V].getAttribute("data-bold"),T=y[V].getAttribute("data-color");B&&(y[V].style.fontSize=B),R&&(y[V].style.fontWeight=R=="true"?"bold":"normal"),T&&(y[V].style.color=T)}else{const B=y[V].getAttribute("data-width")||400;let R=a(($==null?void 0:$.coverUrl)||y[V].getAttribute("data-src"));if(x.includes(R))continue;R&&await new Promise(T=>{const k=new Image;k.src=R,k.crossOrigin="anonymous",k.onload=()=>{const O=document.createElement("canvas");O.width=k.width,O.height=k.height,O.getContext("2d").drawImage(k,0,0,k.width,k.height),x.push(R),R=O.toDataURL("image/png"),T(!0)},k.onerror=()=>{T(!0)}}),y[V].innerHTML=`<img width=${B} src="${R}" crossorigin="anonymous" />`}}m==="DOWNLOAD_WORD"&&d(),m==="DOWNLOAD_PDF"&&await u(),setTimeout(()=>_.close(),100)})}}),(m,h)=>{const _=e.resolveComponent("AppDrawer"),g=e.resolveDirective("print");return e.openBlock(),e.createBlock(_,{modelValue:e.unref(l),"onUpdate:modelValue":h[1]||(h[1]=v=>e.isRef(l)?l.value=v:null),withHeader:!1,size:"100%"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:"preview-content",class:e.normalizeClass(e.unref(c).type),innerHTML:e.unref(c).content},null,10,cN),e.createElementVNode("i",{class:"ri-close-line ri-2x fixed right-5 top-5 text-color-danger cursor-pointer",onClick:h[0]||(h[0]=v=>l.value=!1)}),e.unref(c).type=="DOWNLOAD_PDF"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(S.ElButton),{key:0,id:"printButton",type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(" 导出PDF ")]),_:1})),[[g,e.unref(s)]]):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])}}}),H6="",dN={class:"mt-3"},sN={class:"mt-3"},fN={class:"menu-title"},uN={key:0,class:"badge"},pN=e.defineComponent({__name:"designLeft",emits:["click","success"],setup(t,{expose:n,emit:r}){const o=e.ref([]),i=e.ref(""),a=r,{proxy:l}=e.getCurrentInstance();Ee(l).listReportIndicatorsMenu({}).then(f=>{o.value=Object.keys(f.data).map(u=>({name:u,children:f.data[u]})),a("success")});const c=(f,u)=>{a("click",f,u)},s=f=>{f.id&&c("add",f)},d=(f,u)=>f?u.name.includes(f):!0;return n({list:o}),(f,u)=>{const p=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{title:"指标库"}),e.createElementVNode("div",dN,[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(i),"onUpdate:modelValue":u[0]||(u[0]=m=>e.isRef(i)?i.value=m:null),placeholder:"请输入指标名称"},null,8,["modelValue"])]),e.createElementVNode("div",sN,[e.createVNode(e.unref(S.ElTree),{ref:"tree",data:e.unref(o),"default-expand-all":"","highlight-current":!0,"filter-node-method":d,indent:0,onNodeClick:s},{default:e.withCtx(({node:m,data:h})=>[e.createElementVNode("div",fN,[h.count?(e.openBlock(),e.createElementBlock("span",uN,[e.createTextVNode(e.toDisplayString(h.title||h.name)+" ",1),e.createElementVNode("span",null,e.toDisplayString(h.count),1)])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"font-bold":m.level==1})},e.toDisplayString(h.title||h.name),3)),h.children?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(S.ElLink),{key:2,type:"primary",onClick:e.withModifiers(_=>c("add",h),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(" 配置 ")]),_:2},1032,["onClick"]))])]),_:1},8,["data"])])],64)}}}),Y6="",hN=ke(pN,[["__scopeId","data-v-07266c39"]]),En=t=>(e.pushScopeId("data-v-884e5eeb"),t=t(),e.popScopeId(),t),mN={class:"p-3 overflow-hidden h-full w-full flex-col flex items-start"},gN={class:"mt-3 mb-3 flex items-center whitespace-nowrap w-full"},_N=En(()=>e.createElementVNode("span",{class:"mr-3"},"报告名称:",-1)),vN={class:"w-80"},yN={class:"flex-1 items-center justify-end flex"},bN=En(()=>e.createElementVNode("i",{class:"ri-book-open-line mr-2"},null,-1)),wN=En(()=>e.createElementVNode("i",{class:"ri-file-pdf-line ml-3 mr-2"},null,-1)),CN=En(()=>e.createElementVNode("i",{class:"ri-file-word-line ml-3 mr-2"},null,-1)),SN={class:"editor flex-1 w-full h-full overflow-hidden relative",style:{border:"1px solid #eee"}},xN={key:0,class:"indicator-toolbar"},VN=En(()=>e.createElementVNode("span",{class:"mr-2"},"字体大小:",-1)),EN=En(()=>e.createElementVNode("span",{class:"ml-2 mr-2 text-color-info"},"|",-1)),kN=En(()=>e.createElementVNode("span",{class:"ml-2"},"加粗:",-1)),NN={class:"ml-2 cursor-pointer"},$N=En(()=>e.createElementVNode("span",{class:"ml-2 mr-2 text-color-info"},"|",-1)),DN=En(()=>e.createElementVNode("span",{class:"ml-2"},"字体颜色:",-1)),BN={class:"ml-2"},ym="simple",TN=e.defineComponent({__name:"designMain",props:{reportObj:{default:{}},editorRef:{default:null},modelValue:{default:""}},emits:["update:modelValue","editor-success"],setup(t,{emit:n}){const r=t,o=n,{proxy:i}=e.getCurrentInstance(),a=e.ref({fontSize:"",bold:!1,color:""}),l=e.ref({}),c=[{value:"12px"},{value:"14px"},{value:"16px"},{value:"18px"},{value:"20px"},{value:"22px"},{value:"24px"}],s={excludeKeys:["code","codeSelectLang","codeBlock","insertVideo","uploadVideo","editVideoSize","insertImage","header3","fullScreen"],insertKeys:{index:5,keys:["fontSize"]}},d={placeholder:"请输入内容...",EXTEND_CONF:{indicatorConfig:{clickIndicator:(p,m)=>{o("update:modelValue",p),l.value=m,a.value={fontSize:m.fontSize,bold:m.bold=="true",color:m.color||""};const h=document.getElementById(p);h&&(document.getElementById("useReportcontainer").scrollTop=h.offsetTop-20)}}}},f=(p,m)=>{const h={[p]:String(m)};Xe.SlateTransforms.setNodes(r.editorRef,h,{at:Xe.DomEditor.findPath(r.editorRef,e.unref(l))})},u=p=>{o("editor-success",p)};return(p,m)=>{var _;const h=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock("div",mN,[e.createVNode(h,{title:"指标报告撰写",class:"w-full"},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default",{},void 0,!0)]),_:3}),e.createElementVNode("div",gN,[_N,e.createElementVNode("div",vN,[e.createVNode(e.unref(S.ElInput),{modelValue:p.reportObj.reportName,"onUpdate:modelValue":m[0]||(m[0]=g=>p.reportObj.reportName=g),placeholder:"请输入报告名称"},null,8,["modelValue"])]),e.createElementVNode("div",yN,[e.createVNode(e.unref(S.ElLink),{type:"primary",onClick:m[1]||(m[1]=g=>e.unref(i).$baseEventBus.emit("editor","PREVIEW"))},{default:e.withCtx(()=>[bN,e.createTextVNode(" 预览 ")]),_:1}),e.createVNode(e.unref(S.ElLink),{type:"primary",onClick:m[2]||(m[2]=g=>e.unref(i).$baseEventBus.emit("editor","DOWNLOAD_PDF"))},{default:e.withCtx(()=>[wN,e.createTextVNode(" 导出pdf ")]),_:1}),e.createVNode(e.unref(S.ElLink),{type:"primary",onClick:m[3]||(m[3]=g=>e.unref(i).$baseEventBus.emit("editor","DOWNLOAD_WORD"))},{default:e.withCtx(()=>[CN,e.createTextVNode(" 导出word ")]),_:1})])]),e.createElementVNode("div",SN,[e.createVNode(e.unref(hd.Toolbar),{class:"w-full",editor:p.editorRef,defaultConfig:s,mode:ym},null,8,["editor"]),e.createVNode(e.unref(hd.Editor),{style:{height:"90%","overflow-y":"hidden","border-top":"1px solid #eee"},modelValue:p.reportObj.reportContent,"onUpdate:modelValue":m[4]||(m[4]=g=>p.reportObj.reportContent=g),defaultConfig:d,mode:ym,onOnCreated:u},null,8,["modelValue"]),p.modelValue&&((_=e.unref(l))==null?void 0:_.chartType)=="7"?(e.openBlock(),e.createElementBlock("div",xN,[VN,e.createVNode(e.unref(S.ElSelect),{size:"small",style:{width:"80px"},modelValue:e.unref(a).fontSize,"onUpdate:modelValue":m[5]||(m[5]=g=>e.unref(a).fontSize=g),teleported:!1,clearable:!1,onChange:m[6]||(m[6]=g=>f("fontSize",g))},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,g=>e.createVNode(e.unref(S.ElOption),{label:g.value,value:g.value,key:g.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),EN,kN,e.createElementVNode("div",NN,[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(a).bold,"onUpdate:modelValue":m[7]||(m[7]=g=>e.unref(a).bold=g),onChange:m[8]||(m[8]=g=>f("bold",g))},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadio),{value:!0,label:!0},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1}),e.createVNode(e.unref(S.ElRadio),{value:!1,label:!0},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1})]),_:1},8,["modelValue"])]),$N,DN,e.createElementVNode("div",BN,[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i).$globalPreColor,onChange:m[9]||(m[9]=g=>f("color",g)),modelValue:e.unref(a).color,"onUpdate:modelValue":m[10]||(m[10]=g=>e.unref(a).color=g)},null,8,["predefine","modelValue"])])])):e.createCommentVNode("",!0)])])}}}),X6="",ON=ke(TN,[["__scopeId","data-v-884e5eeb"]]),IN=t=>{if(process.env.NODE_ENV==="development"){const n="http://192.168.70.09:30010/".split(":")[1].split("."),r=n[n.length-1],o=`http://192.168.70.${Number(r)}:9000`;return t=t.replace("http://172.17.95.13:9000",o),t=t.replace("http://172.29.26.123:9000",o),t=t.replace("http://192.168.0.22:9000",o),t}return t=t.replace(/http:\/\/172\.17\.95\.13:9000/g,""),t=t.replace(/http:\/\/172\.29\.26\.123:9000/g,""),t=t.replace(/http:\/\/172\.17\.95\.13:9000/g,""),t},zN={class:"mt-3"},RN=["id"],MN={class:"flex justify-between"},AN={class:"title"},LN=["onClick"],FN=["onClick"],jN={class:"text-color-warning text-xs mt-3"},PN=e.defineComponent({__name:"designRight",props:{reportObj:{default:{}},editorRef:{default:null},indicatorsId:{default:""}},emits:["click","success"],setup(t,{expose:n,emit:r}){const o=t,{proxy:i}=e.getCurrentInstance(),{getModelIndicatorsData:a,setSingleValue:l}=yt(),c=r,s=e.ref([]),d=e.ref(!0),f=async()=>{d.value=!0;const p=await Ee(i).listIndicatorsApply({reportId:o.reportObj.id},!1);s.value=p.data,d.value=!1,c("success"),e.nextTick(()=>{(async function m(h){for(let _=0;_<h.length;_+=1){const g=h[_];if(g.type=="indicator"){const v=p.data.find(y=>y.id==g.id);if(!v)return;const b={subtitle:v.title,content:v.indicatorsName};v.coverUrl&&(b.src=IN(v.coverUrl)),v.echartsType=="7"&&(v.indicatorsType=="MODEL_INDICATORS"?(await a(v.indicatorsId??v.id,v.echartsType,v.formConfJson),b.singleValue=l(g.singleValueKey??"")):b.singleValue=v.singleValue),Xe.SlateTransforms.setNodes(o.editorRef,b,{at:Xe.DomEditor.findPath(o.editorRef,g)})}g.children&&await m(g.children)}})(o.editorRef.children)})},u=async(p,m)=>{c("click",p,m)};return f(),n({init:f,list:s}),(p,m)=>{const h=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(h,{title:"指标使用库"}),e.createElementVNode("div",zN,[e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(d),animated:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),_=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item",{active:p.indicatorsId==_.id}]),id:_.id,key:_.id},[e.createElementVNode("div",MN,[e.createVNode(e.unref(S.ElTooltip),{effect:"dark",content:_.indicatorsName,placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",AN,e.toDisplayString(_.indicatorsName),1)]),_:2},1032,["content"]),e.createElementVNode("div",null,[e.createElementVNode("button",{onClick:e.withModifiers(g=>u("edit",_),["stop"])},"编辑",8,LN),e.createElementVNode("button",{onClick:e.withModifiers(g=>u("insert",_),["stop"])},"插入光标",8,FN)])]),e.createElementVNode("div",jN,e.toDisplayString(_.title),1)],10,RN))),128))]),_:1},8,["loading"])])],64)}}}),q6="",UN=ke(PN,[["__scopeId","data-v-83f04927"]]),WN=e.defineComponent({__name:"designForm",props:{reportObj:{default:{}}},emits:["success"],setup(t,{expose:n,emit:r}){const o=t,i=Te(),{proxy:a}=e.getCurrentInstance(),{dynamicSearchForm:l,dynamicSearchFormat:c,dynamicSearchParams:s,dynamicSearchParamsTitle:d}=a.$globalHooks.useDynamicSearch(),{base64ToBlob:f,chartJsonFormat:u,echartsTypeList:p}=a.$globalUtils,m=r,{option:h,formatChart:_}=yt(),g=e.ref(!1),v=e.ref(""),b=e.ref(null),y=e.ref(""),w=e.ref(""),C=e.ref([]),x=e.ref({}),V=e.ref({type:"",value:""}),E=e.ref(!1),$=async()=>{if(E.value=!0,e.unref(B)=="MODEL_INDICATORS"){i.getChartData.params.params=s(l.value);const O=e.unref(R).find(N=>N.type==e.unref(y));await _(O==null?void 0:O.code),E.value=!1,e.unref(V).type=y.value,e.unref(V).value=h.value}else{const O=s(e.unref(l)),N=await Ee(a).pullEchartsDataVO({indicatorsId:e.unref(x).indicatorsId??e.unref(x).id,params:O,echartsType:e.unref(y),targetClient:"WEB"});if(!N)return;E.value=!1,e.unref(V).type=y.value;try{e.unref(V).value=u(N.data.config)}catch{e.unref(V).value=N.data.config}}},B=e.ref(""),R=e.ref({}),T=async(O,N)=>{var z,I;w.value=O,C.value=[];let D;if(B.value=N.indicatorsType??N.type??"INDICATORS",e.unref(B)=="MODEL_INDICATORS"){D=await a.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${N.indicatorsId??N.id}`);const M=JSON.parse(D.data.sortArgsJson??"{}"),P=Object.keys(e.unref(M)).map(F=>({field:F,type:M[F]=="ascending"?"asc":"desc"}));i.setChartData({x:JSON.parse(D.data.groupArgsJson),y:JSON.parse(D.data.aggArgsJson),params:{aggArgsJson:D.data.aggArgsJson,groupArgsJson:D.data.groupArgsJson,sortArgsJson:JSON.stringify(P),modelIndicatorsId:N.indicatorsId??N.id,params:s(c(JSON.parse(N.formConfJson??((z=e.unref(D))==null?void 0:z.formConfJson)??"[]"))),pageSize:D.data.pageSize,modelId:D.data.modelId}})}else D=await Ee(a).getIndicatorsPanelConf(N.indicatorsId??N.id);D&&(g.value=!0,x.value=N,e.unref(B)=="MODEL_INDICATORS"?(R.value=D.data.echarts,C.value=D.data.echarts.map(M=>M.type)):C.value=D.data.views,y.value=O=="add"?C.value[0]:N.echartsType,v.value=N.indicatorsName??N.name,l.value=O=="add"?c(JSON.parse(((I=D.data)==null?void 0:I.formConfJson)??"[]")):JSON.parse(N.formConfJson),$())},k=async()=>{var z;const O=e.unref(V).type==9?e.unref(b).$refs.echart.$refs.echart:e.unref(b).$refs.echart;if(e.unref(V).type&&O&&!O.getDataURL()){a.$message({type:"warning",message:"图片未生成完毕,请重新保存",plain:!0});return}const N={echartsType:e.unref(V).type,indicatorsId:e.unref(x).indicatorsId??e.unref(x).id,reportId:o.reportObj.id,paramsJson:JSON.stringify(s(e.unref(l))),formConfJson:JSON.stringify(e.unref(l)),title:`${(z=p[e.unref(y)])==null?void 0:z.name} ${d({showTitle:!1})}`,indicatorsType:e.unref(B)};if(e.unref(w)=="edit"&&(N.id=e.unref(x).id),!!await Ee(a).saveIndicatorsApply(N)){if(e.unref(w)=="edit"&&O){const I=S.ElLoading.service({lock:!0,text:"数据处理中",background:"rgba(0, 0, 0, 0.7)",customClass:"ajax-loading"});await new Promise(M=>{e.nextTick(async()=>{const P=f(O.getDataURL());await Ee(a).updateIndicatorsApplyImage(P,N.id),M(!0)})}),I.close()}a.$message({type:"success",message:"操作成功",plain:!0}),g.value=!1,m("success")}};return n({init:T}),(O,N)=>{const D=e.resolveComponent("AppDynamicSearch"),z=e.resolveComponent("aceChart"),I=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(I,{modelValue:e.unref(g),"onUpdate:modelValue":N[2]||(N[2]=M=>e.isRef(g)?g.value=M:null),title:e.unref(v),size:"632px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{class:"ml-3",type:"primary",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(w)=="add"?"生成报告使用指标":"完成"),1)]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:N[1]||(N[1]=M=>g.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1})]),default:e.withCtx(()=>[e.unref(l).length>0?(e.openBlock(),e.createBlock(D,{key:0,form:e.unref(l),onSuccess:$},null,8,["form"])):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElRadioGroup),{onChange:$,modelValue:e.unref(y),"onUpdate:modelValue":N[0]||(N[0]=M=>e.isRef(y)?y.value=M:null),class:"mb-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),M=>(e.openBlock(),e.createBlock(e.unref(S.ElRadio),{key:M,value:M,label:M,class:"mr-3"},{default:e.withCtx(()=>{var P;return[e.createTextVNode(e.toDisplayString((P=e.unref(p)[M])==null?void 0:P.name),1)]}),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"]),e.createVNode(z,{ref_key:"appChartRef",ref:b,type:e.unref(V).type,options:e.unref(V).value,loading:e.unref(E),indicatorsType:e.unref(B)},null,8,["type","options","loading","indicatorsType"])]),_:1},8,["modelValue","title"])}}}),GN={key:0,class:"chart"},HN=e.defineComponent({__name:"design",emits:["success"],setup(t,{expose:n,emit:r}){const{proxy:o}=e.getCurrentInstance(),{base64ToBlob:i,chartJsonFormat:a,resetUrl:l}=o.$globalUtils,c=e.ref(!1),s=e.ref({reportContent:""}),d=e.ref(""),f=e.ref(null),u=e.ref(null),p=e.ref(!1),m=e.ref(null),h=e.ref(null),_=e.ref(null),g=e.ref(null),v=e.ref(null),b=e.ref(null),y=r,{option:w,getModelIndicatorsData:C,setSingleValue:x}=yt(),V=T=>{const k=[];(function N(D){var z,I,M;D&&(k.push((D==null?void 0:D.className)??((z=D==null?void 0:D.target)==null?void 0:z.className)??""),(D!=null&&D.parentNode||(I=D.target)!=null&&I.parentNode)&&N((D==null?void 0:D.parentNode)||((M=D.target)==null?void 0:M.parentNode)))})(T);const O=k.toString();O.indexOf("indicator")==-1&&O.indexOf("el-color")==-1&&(d.value="")};e.watch(c,T=>{var k;T||(document.removeEventListener("click",V),f&&((k=f.value)==null||k.destroy()),f.value=null,p.value=!1)});const E=async T=>{f.value=null,c.value=!0,s.value=JSON.parse(JSON.stringify(T)),setTimeout(()=>{p.value=!0},100)},$=async(T,k)=>{switch(T){case"add":case"edit":e.unref(g).init(T,k);break;case"insert":{u.value={};let O;switch(k.indicatorsType=="MODEL_INDICATORS"?(await C(k.indicatorsId??k.id,k.echartsType,k.formConfJson),O={data:{[k.id]:{config:w.value,dataList:JSON.stringify(w.value.dataset.source)}}}):O=await Ee(o).mapEchartsData(k.id),String(k.echartsType)){case"8":{const N=JSON.parse(O.data[k.id].dataList);if(N.length==0){o.$message({type:"warning",message:"暂无数据",plain:!0});return}const D={type:"table",width:"100%",children:[]};if(k.indicatorsType=="MODEL_INDICATORS"){const z=O.data[k.id].config;D.children.push(...z.dataset.dimensions.map(I=>({type:"table-cell",isHeader:!0,children:[{text:I}]}))),D.children.push(...N.map(I=>({type:"table-row",children:z.dataset.dimensions.map(M=>{let P=I[M];const F=z.customSeriesData[M];if(F){const{prefix:G,toFixed:H,suffix:X}=F;P=`${G}${isNaN(P)?P:Number(P).toFixed(H)}${X}`}return{type:"table-cell",children:[{text:P,color:(F==null?void 0:F.color)??""}]}})})))}else D.children=[{type:"table-row",children:Object.keys(N[0]).map(z=>({type:"table-cell",isHeader:!0,children:[{text:z}]}))},...N.map(z=>({type:"table-row",children:Object.keys(z).map(I=>({type:"table-cell",children:[{text:z[I]}]}))}))];Xe.DomEditor.isSelectedEmptyParagraph(f.value)&&Xe.SlateTransforms.removeNodes(f.value,{mode:"highest"}),Xe.SlateTransforms.insertNodes(f.value,D,{mode:"highest"}),f.value.deselect()}break;case"7":{const N=O.data[k.id].config,D={type:"indicator",content:k.indicatorsName,singleValue:N,id:k.id,indicatorsType:k.indicatorsType||"INDICATORS",chartType:k.echartsType,subtitle:k.title,children:[{text:""}]};if(k.indicatorsType=="MODEL_INDICATORS"){const z=e.ref("");e.unref(w).dataset.dimensions.length==1?z.value=e.unref(w).dataset.dimensions[0]:await new Promise(I=>{S.ElMessageBox({title:"选择数据",showConfirmButton:!1,message:()=>e.h("div",{style:{width:"396px"}},[e.h(S.ElSelect,{class:"w-full mt-5",modelValue:z.value,placeholder:"请选择数据","onUpdate:modelValue":M=>{z.value=M}},{default:()=>e.unref(w).dataset.dimensions.map(M=>e.h(S.ElOption,{label:M,value:M,key:M}))}),e.h("div",{class:"mt-5 flex justify-end"},[e.h(S.ElButton,{type:"primary",onclick:async()=>{if(e.unref(z)==""){o.$message({type:"warning",message:"请选择数据",plain:!0});return}I(!0),S.ElMessageBox.close()}},{default:()=>"提交"}),e.h(S.ElButton,{onclick:async()=>S.ElMessageBox.close()},{default:()=>"关闭"})])])})}),D.singleValueKey=z.value,D.singleValue=x(z.value)}f.value.restoreSelection(),f.value.insertNode(D)}break;default:{const N=S.ElLoading.service({lock:!0,text:"数据处理中",background:"rgba(0, 0, 0, 0.7)",customClass:"ajax-loading"});let D=l(k.coverUrl||"");if(!D){try{u.value=a(O.data[k.id].config)}catch{u.value=O.data[k.id].config}await new Promise(z=>{e.nextTick(()=>{e.unref(b).chart.on("finished",async()=>{const I=i(e.unref(b).getDataURL()),M=await Ee(o).updateIndicatorsApplyImage(I,k.id);D=l(M.data),z(!0)})})})}f.value.insertNode({type:"indicator",content:k.indicatorsName,indicatorsType:k.indicatorsType||"INDICATORS",id:k.id,chartType:k.echartsType,subtitle:k.title,src:D,children:[{text:""}]}),k.coverUrl=D,u.value=null,N.close()}break}}break;case"submit":{if(!await Ee(o).reportSubmit({id:e.unref(s).id,reportContent:f.value.getHtml(),reportName:e.unref(s).reportName,indicatorsNum:e.unref(_).list.length}))return;window.frames.length==parent.frames.length&&o.$message({type:"success",message:"操作成功",plain:!0}),y("success"),c.value=!1}break;case"close":c.value=!1;break}},B=T=>{f.value=Object.seal(T),document.addEventListener("click",V,!0)},R=()=>{const T=e.unref(h),k=e.unref(_);T.list.length>0&&k.list.length>0&&T.list.forEach(O=>{O.value=k.list.filter(N=>N.indicatorsId==O.indicatorsId).length})};return o.$baseEventBus.on("editor",T=>{e.nextTick(()=>{e.unref(v).init(T,e.unref(s))})}),n({init:E}),(T,k)=>{const O=e.resolveComponent("v-chart"),N=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(N,{modelValue:e.unref(c),"onUpdate:modelValue":k[4]||(k[4]=D=>e.isRef(c)?c.value=D:null),withHeader:!1,size:"100%",modalClass:"ace-modal-drawer"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElContainer),{class:"designBody"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElAside),{width:"310px",class:"p-3"},{default:e.withCtx(()=>[e.createVNode(hN,{ref_key:"designLeftRef",ref:h,onClick:$,onSuccess:R},null,512)]),_:1}),e.createVNode(e.unref(S.ElMain),null,{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(),e.createBlock(ON,{key:0,ref_key:"designMainRef",ref:m,onEditorSuccess:B,editorRef:e.unref(f),reportObj:e.unref(s),modelValue:e.unref(d),"onUpdate:modelValue":k[2]||(k[2]=D=>e.isRef(d)?d.value=D:null)},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(S.ElButton),{type:"primary",onClick:k[0]||(k[0]=D=>$("submit",{}))},{default:e.withCtx(()=>[e.createTextVNode("保存报告")]),_:1}),e.createVNode(e.unref(S.ElButton),{type:"warning",onClick:k[1]||(k[1]=D=>$("close",{}))},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1})])]),_:1},8,["editorRef","reportObj","modelValue"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.unref(S.ElAside),{width:"310px",id:"useReportcontainer",class:"p-3",style:{"border-left":"1px solid #ebeef5"}},{default:e.withCtx(()=>[e.unref(f)?(e.openBlock(),e.createBlock(UN,{key:0,ref_key:"designRightRef",ref:_,onClick:$,reportObj:e.unref(s),editorRef:e.unref(f),onSuccess:R,indicatorsId:e.unref(d)},null,8,["reportObj","editorRef","indicatorsId"])):e.createCommentVNode("",!0)]),_:1})]),_:1}),e.unref(u)?(e.openBlock(),e.createElementBlock("div",GN,[e.createVNode(O,{ref_key:"echartsRef",ref:b,option:e.unref(u),autoresize:""},null,8,["option"])])):e.createCommentVNode("",!0),e.createVNode(WN,{ref_key:"designFormRef",ref:g,reportObj:e.unref(s),onSuccess:k[3]||(k[3]=D=>e.unref(_).init())},null,8,["reportObj"]),e.createVNode(vm,{ref_key:"previewRef",ref:v,type:"design"},null,512)]),_:1},8,["modelValue"])}}}),J6="",YN=ke(HN,[["__scopeId","data-v-830bfd88"]]),XN=t=>(e.pushScopeId("data-v-99aa762e"),t=t(),e.popScopeId(),t),qN={key:1,class:"flex flex-wrap gap-5 pt-3 pb-7"},JN={class:"reportName line-clamp-2"},KN={class:"auth"},ZN={class:"times"},QN=["onClick"],e$={class:"flex justify-center w-full mt-5"},t$=XN(()=>e.createElementVNode("div",{class:"w-full h-px mt-2 bg-gray-200"},null,-1)),n$={class:"flex justify-center w-full mt-2"},r$=e.defineComponent({__name:"index",setup(t){const{proxy:n}=e.getCurrentInstance(),r=e.ref(null),o=e.ref(null),i=e.ref(null),a=e.ref(null),l=e.reactive([]),c=e.reactive([{name:"报告名称",type:Fn.Text,fieldName:"reportName",value:""}]),s=e.ref([{label:"预览",icon:"ri-eye-line",type:"primary",key:"PREVIEW",show:!1},{label:"编辑",icon:"ri-edit-line",type:"primary",key:"EDIT",show:!1},{label:"PDF",icon:"ri-file-pdf-line",type:"warning",key:"DOWNLOAD_PDF",show:!1},{label:"WORD",icon:"ri-file-word-2-line",type:"primary",key:"DOWNLOAD_WORD",show:!1},{label:"复制",icon:"ri-file-copy-line",type:"primary",key:"COPY",show:!1},{label:"删除",icon:"ri-delete-bin-line",type:"danger",key:"DEL",show:!1}]),d=e.ref([]);Ee(n).getCurrFunc("INDICATORS_REPORT").then(p=>{d.value=p.data,p.data.includes("CREATE")&&l.push({name:"新增报告",key:"add",type:"primary",icon:"ri-add-line"}),e.unref(s).forEach(m=>{m.show=p.data.includes(m.key)})});const f=e.reactive([{label:"报告名称",prop:"reportName"},{label:"报告使用库",prop:"indicatorsNum",slot:!0},{label:"撰写人",prop:"createUserName"},{label:"撰写时间",prop:"createTime"},{label:"操作",prop:"action",slot:!0,width:"410px"}]),u=async p=>{const{type:m,row:h}=p;switch(m){case"zb":e.unref(o).init(h);break;case"add":n.$basePrompt({content:"新增指标报告",placeholder:"请输入报告名称",inputType:"input",beforeCloseFunc:async(_,g,v)=>{if(_!="confirm"){v();return}const b=await Ee(n).reportSubmit({reportName:g.inputValue});b&&(n.$message({type:"success",message:"操作成功",plain:!0}),e.unref(r).getData(),e.unref(i).init({id:b.data,reportName:g.inputValue,reportContent:""}),v())}});break;case"DEL":n.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await Ee(n).reportRemove(h.id)&&(n.$message({type:"success",message:"删除成功",plain:!0}),e.unref(r).getData())}});break;case"COPY":n.$baseConfirm({content:"是否确定复制",callConfirm:async()=>{await Ee(n).reportCopy(h.id)&&(n.$message({type:"success",message:"操作成功",plain:!0}),e.unref(r).getData())}});break;case"EDIT":e.unref(i).init(h);break;case"DOWNLOAD_PDF":case"PREVIEW":case"DOWNLOAD_WORD":e.nextTick(()=>{e.unref(a).init(m,h)});break}};return(p,m)=>{const h=e.resolveComponent("AppEmpty"),_=e.resolveComponent("AppList");return e.openBlock(),e.createBlock(_,{url:`/api/ace-data-center/indicators-report/list?descs=create_time&projectId=${e.unref(n).$baseGetCurrentProjectId}`,tableData:e.unref(f),searchForm:e.unref(c),searchBtns:e.unref(l),listType:"custom",onBtnClick:u,ref_key:"appListRef",ref:r},{"list-slot":e.withCtx(({list:g,loading:v})=>[e.createVNode(e.unref(S.ElSkeleton),{loading:v,animated:""},{default:e.withCtx(()=>[g.length==0?(e.openBlock(),e.createBlock(h,{key:0,description:"暂无数据"})):(e.openBlock(),e.createElementBlock("div",qN,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"items"},[e.createElementVNode("div",JN,e.toDisplayString(b.reportName),1),e.createElementVNode("div",KN,"作者:"+e.toDisplayString(b.createUserName),1),e.createElementVNode("div",ZN,e.toDisplayString(b.createTime),1),e.unref(d).includes("VIEW_INDICATOR")?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tags",onClick:e.withModifiers(y=>u({type:"zb",row:b,index:-1}),["stop"])},[e.createTextVNode(" 查看指标库: "),e.createElementVNode("span",null,e.toDisplayString(b.indicatorsNum||0),1)],8,QN)):e.createCommentVNode("",!0),e.createElementVNode("div",e$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).filter(y=>["EDIT","COPY"].includes(y.key)),y=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y.icon},[y.show?(e.openBlock(),e.createBlock(e.unref(S.ElLink),{key:0,class:"inline-flex items-center ml-3 mr-3",type:y.type,onClick:e.withModifiers(w=>u({type:y.key,row:b,index:-1}),["stop"])},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass([y.icon,"mr-1 text-base"])},null,2),e.createTextVNode(" "+e.toDisplayString(y.label),1)]),_:2},1032,["type","onClick"])):e.createCommentVNode("",!0)],64))),128))]),t$,e.createElementVNode("footer",n$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).filter(y=>!["EDIT","COPY"].includes(y.key)),y=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y.show?(e.openBlock(),e.createBlock(e.unref(S.ElTooltip),{content:y.label,key:y.icon},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElLink),{class:"inline-flex items-center",type:y.type,onClick:e.withModifiers(w=>u({type:y.key,row:b,index:-1}),["stop"])},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass([y.icon,"ml-2 mr-2 text-lg"])},null,2)]),_:2},1032,["type","onClick"])]),_:2},1032,["content"])):e.createCommentVNode("",!0)],64))),256))])]))),128))]))]),_:2},1032,["loading"])]),default:e.withCtx(()=>[e.createVNode(aN,{ref_key:"useIndicatorsRef",ref:o},null,512),e.createVNode(YN,{ref_key:"designRef",ref:i,onSuccess:m[0]||(m[0]=g=>e.unref(r).getData())},null,512),e.createVNode(vm,{ref_key:"previewRef",ref:a},null,512)]),_:1},8,["url","tableData","searchForm","searchBtns"])}}}),K6="",o$=ke(r$,[["__scopeId","data-v-99aa762e"]]);function bm(t,n,r,o,i){const a=n===void 0?void 0:n.key;return{sel:t,data:n,children:r,text:o,elm:i,key:a}}const wm=Array.isArray;function ad(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Cm(t,n,r){if(t.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&n!==void 0)for(let o=0;o<n.length;++o){const i=n[o];if(typeof i=="string")continue;const a=i.data;a!==void 0&&Cm(a,i.children,i.sel)}}function cr(t,n,r){let o={},i,a,l;if(r!==void 0?(n!==null&&(o=n),wm(r)?i=r:ad(r)?a=r.toString():r&&r.sel&&(i=[r])):n!=null&&(wm(n)?i=n:ad(n)?a=n.toString():n&&n.sel?i=[n]:o=n),i!==void 0)for(l=0;l<i.length;++l)ad(i[l])&&(i[l]=bm(void 0,void 0,void 0,i[l],void 0));return t.startsWith("svg")&&(t.length===3||t[3]==="."||t[3]==="#")&&Cm(o,i,t),bm(t,o,i,a,void 0)}const i$=(t,n,r)=>{const o=Xe.DomEditor.isNodeSelected(r,t),{id:i}=Xe.DomEditor.findKey(r,t),{content:a="",chartType:l="",id:c="",singleValue:s="",singleValueKey:d="",subtitle:f="",src:u="",fontSize:p="16px",bold:m="",color:h="",indicatorsType:_="INDICATORS",width:g=400}=t,{EXTEND_CONF:{indicatorConfig:v}}=r.getConfig(),{clickIndicator:b}=v,y=[];return u?(y.push(cr("img.editor-indicator-img",{props:{src:u},style:{},dataset:{id:c}})),o&&y.push(cr("input.indicator-img-range",{type:"range",style:{position:"fixed",bottom:"20px",left:"50%",transform:"translateX(-50%)",zIndex:"99"},min:300,max:550,value:g,on:{input(w){const C={id:c,chartType:l,subtitle:f,singleValue:s,singleValueKey:d,width:w.target.value};Xe.SlateTransforms.setNodes(r,C,{at:Xe.DomEditor.findPath(r,t)})}}}))):y.push(s||a),y.push(cr("span.indicator-tooltip",{style:{position:"absolute",background:"#fff",border:"1px solid var(--g-border-color)",lineHeight:"25px",padding:"0 5px",color:"orange",fontSize:"12px",left:"0px",top:"-30px",zIndex:"88",display:"none",whiteSpace:"nowrap",fontWeight:"normal"},dataset:{id:c}},[cr("span",{style:{color:"#000",fontWeight:"bold"}},`${a}:`),cr("span",{},f),cr("span",{style:{color:"#000"}},d?`(${d})`:"")])),cr("span.editor-indicator",{id:`editor-indicator-${i}`,props:{contentEditable:!1},dataset:{id:c,chartType:l,subtitle:f,width:g,singleValue:s,singleValueKey:d,src:u,fontSize:p,color:h,indicatorsType:_,bold:m},style:{width:`${l=="7"?null:g}px`,marginLeft:"3px",marginRight:"3px",display:"inline-block",cursor:"pointer",backgroundColor:"var(--w-e-textarea-slight-bg-color)",border:o?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",fontSize:p,fontWeight:m=="true"?"bold":"normal",color:h},on:{click(w){w.preventDefault(),b&&b(c,t)}}},y)},a$=t=>{const{chartType:n="",id:r="",type:o,subtitle:i,singleValue:a="",singleValueKey:l="",content:c="",src:s="",fontSize:d="16px",bold:f=!1,color:u="",indicatorsType:p="INDICATORS",width:m=400}=t;return`<span
|
|
878
|
+
</html>`,h=new Blob([m],{type:"application/msword;charset=utf-8"});lN.saveAs(h,`${e.unref(c).filename}.doc`),l.value=!1},f=e.ref(""),u=async()=>{await new Promise(async m=>{var h;f.value=document.title,document.title=e.unref(c).filename,(h=document.getElementById("printButton"))==null||h.click(),l.value=!1,m(!0)})};return n({init:async(m,h)=>{const _=S.ElLoading.service({lock:!0,text:"数据处理中",background:"rgba(0, 0, 0, 1)",customClass:"preview-loading"});c.value={type:m,content:h.reportContent,filename:h.reportName},await new Promise(v=>{setTimeout(()=>{l.value=!0,v(!0)},100)});const g=[];e.nextTick(async()=>{const v=document.getElementById("preview-content");(function V(E){E.forEach($=>{g.push($),$.childNodes&&V($.childNodes)})})(v.childNodes);const b=await Ee(r).listIndicatorsApply({reportId:h.id},!1),y=g.filter(V=>V.className==="editor-indicator"),w=[...new Set(y.map(V=>V.dataset.id))],C=await Ee(r).mapEchartsData(w.toString(),!1),x=[];for(let V=0;V<y.length;V+=1){const E=y[V],$=b.data.find(B=>B.id==E.dataset.id);if(E.dataset.charttype==7){$.indicatorsType=="MODEL_INDICATORS"?(await o($.indicatorsId??$.id,$.echartsType,$.formConfJson),y[V].innerHTML=i(y[V].getAttribute("data-singleValueKey"))):y[V].innerHTML=C.data[E.dataset.id].config;const B=y[V].getAttribute("data-fontsize"),R=y[V].getAttribute("data-bold"),T=y[V].getAttribute("data-color");B&&(y[V].style.fontSize=B),R&&(y[V].style.fontWeight=R=="true"?"bold":"normal"),T&&(y[V].style.color=T)}else{const B=y[V].getAttribute("data-width")||400;let R=a(($==null?void 0:$.coverUrl)||y[V].getAttribute("data-src"));if(x.includes(R))continue;R&&await new Promise(T=>{const k=new Image;k.src=R,k.crossOrigin="anonymous",k.onload=()=>{const O=document.createElement("canvas");O.width=k.width,O.height=k.height,O.getContext("2d").drawImage(k,0,0,k.width,k.height),x.push(R),R=O.toDataURL("image/png"),T(!0)},k.onerror=()=>{T(!0)}}),y[V].innerHTML=`<img width=${B} src="${R}" crossorigin="anonymous" />`}}m==="DOWNLOAD_WORD"&&d(),m==="DOWNLOAD_PDF"&&await u(),setTimeout(()=>_.close(),100)})}}),(m,h)=>{const _=e.resolveComponent("AppDrawer"),g=e.resolveDirective("print");return e.openBlock(),e.createBlock(_,{modelValue:e.unref(l),"onUpdate:modelValue":h[1]||(h[1]=v=>e.isRef(l)?l.value=v:null),withHeader:!1,size:"100%"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:"preview-content",class:e.normalizeClass(e.unref(c).type),innerHTML:e.unref(c).content},null,10,cN),e.createElementVNode("i",{class:"ri-close-line ri-2x fixed right-5 top-5 text-color-danger cursor-pointer",onClick:h[0]||(h[0]=v=>l.value=!1)}),e.unref(c).type=="DOWNLOAD_PDF"?e.withDirectives((e.openBlock(),e.createBlock(e.unref(S.ElButton),{key:0,id:"printButton",type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(" 导出PDF ")]),_:1})),[[g,e.unref(s)]]):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])}}}),H6="",dN={class:"mt-3"},sN={class:"mt-3"},fN={class:"menu-title"},uN={key:0,class:"badge"},pN=e.defineComponent({__name:"designLeft",emits:["click","success"],setup(t,{expose:n,emit:r}){const o=e.ref([]),i=e.ref(""),a=r,{proxy:l}=e.getCurrentInstance();Ee(l).listReportIndicatorsMenu({}).then(f=>{o.value=Object.keys(f.data).map(u=>({name:u,children:f.data[u]})),a("success")});const c=(f,u)=>{a("click",f,u)},s=f=>{f.id&&c("add",f)},d=(f,u)=>f?u.name.includes(f):!0;return n({list:o}),(f,u)=>{const p=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{title:"指标库"}),e.createElementVNode("div",dN,[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(i),"onUpdate:modelValue":u[0]||(u[0]=m=>e.isRef(i)?i.value=m:null),placeholder:"请输入指标名称"},null,8,["modelValue"])]),e.createElementVNode("div",sN,[e.createVNode(e.unref(S.ElTree),{ref:"tree",data:e.unref(o),"default-expand-all":"","highlight-current":!0,"filter-node-method":d,indent:0,onNodeClick:s},{default:e.withCtx(({node:m,data:h})=>[e.createElementVNode("div",fN,[h.count?(e.openBlock(),e.createElementBlock("span",uN,[e.createTextVNode(e.toDisplayString(h.title||h.name)+" ",1),e.createElementVNode("span",null,e.toDisplayString(h.count),1)])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass({"font-bold":m.level==1})},e.toDisplayString(h.title||h.name),3)),h.children?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(S.ElLink),{key:2,type:"primary",onClick:e.withModifiers(_=>c("add",h),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(" 配置 ")]),_:2},1032,["onClick"]))])]),_:1},8,["data"])])],64)}}}),Y6="",hN=ke(pN,[["__scopeId","data-v-07266c39"]]),En=t=>(e.pushScopeId("data-v-884e5eeb"),t=t(),e.popScopeId(),t),mN={class:"p-3 overflow-hidden h-full w-full flex-col flex items-start"},gN={class:"mt-3 mb-3 flex items-center whitespace-nowrap w-full"},_N=En(()=>e.createElementVNode("span",{class:"mr-3"},"报告名称:",-1)),vN={class:"w-80"},yN={class:"flex-1 items-center justify-end flex"},bN=En(()=>e.createElementVNode("i",{class:"ri-book-open-line mr-2"},null,-1)),wN=En(()=>e.createElementVNode("i",{class:"ri-file-pdf-line ml-3 mr-2"},null,-1)),CN=En(()=>e.createElementVNode("i",{class:"ri-file-word-line ml-3 mr-2"},null,-1)),SN={class:"editor flex-1 w-full h-full overflow-hidden relative",style:{border:"1px solid #eee"}},xN={key:0,class:"indicator-toolbar"},VN=En(()=>e.createElementVNode("span",{class:"mr-2"},"字体大小:",-1)),EN=En(()=>e.createElementVNode("span",{class:"ml-2 mr-2 text-color-info"},"|",-1)),kN=En(()=>e.createElementVNode("span",{class:"ml-2"},"加粗:",-1)),NN={class:"ml-2 cursor-pointer"},$N=En(()=>e.createElementVNode("span",{class:"ml-2 mr-2 text-color-info"},"|",-1)),DN=En(()=>e.createElementVNode("span",{class:"ml-2"},"字体颜色:",-1)),BN={class:"ml-2"},ym="simple",TN=e.defineComponent({__name:"designMain",props:{reportObj:{default:{}},editorRef:{default:null},modelValue:{default:""}},emits:["update:modelValue","editor-success"],setup(t,{emit:n}){const r=t,o=n,{proxy:i}=e.getCurrentInstance(),a=e.ref({fontSize:"",bold:!1,color:""}),l=e.ref({}),c=[{value:"12px"},{value:"14px"},{value:"16px"},{value:"18px"},{value:"20px"},{value:"22px"},{value:"24px"}],s={excludeKeys:["code","codeSelectLang","codeBlock","insertVideo","uploadVideo","editVideoSize","insertImage","header3","fullScreen"],insertKeys:{index:5,keys:["fontSize"]}},d={placeholder:"请输入内容...",EXTEND_CONF:{indicatorConfig:{clickIndicator:(p,m)=>{o("update:modelValue",p),l.value=m,a.value={fontSize:m.fontSize,bold:m.bold=="true",color:m.color||""};const h=document.getElementById(p);h&&(document.getElementById("useReportcontainer").scrollTop=h.offsetTop-20)}}}},f=(p,m)=>{const h={[p]:String(m)};Xe.SlateTransforms.setNodes(r.editorRef,h,{at:Xe.DomEditor.findPath(r.editorRef,e.unref(l))})},u=p=>{o("editor-success",p)};return(p,m)=>{var _;const h=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock("div",mN,[e.createVNode(h,{title:"指标报告撰写",class:"w-full"},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"default",{},void 0,!0)]),_:3}),e.createElementVNode("div",gN,[_N,e.createElementVNode("div",vN,[e.createVNode(e.unref(S.ElInput),{modelValue:p.reportObj.reportName,"onUpdate:modelValue":m[0]||(m[0]=g=>p.reportObj.reportName=g),placeholder:"请输入报告名称"},null,8,["modelValue"])]),e.createElementVNode("div",yN,[e.createVNode(e.unref(S.ElLink),{type:"primary",onClick:m[1]||(m[1]=g=>e.unref(i).$baseEventBus.emit("editor","PREVIEW"))},{default:e.withCtx(()=>[bN,e.createTextVNode(" 预览 ")]),_:1}),e.createVNode(e.unref(S.ElLink),{type:"primary",onClick:m[2]||(m[2]=g=>e.unref(i).$baseEventBus.emit("editor","DOWNLOAD_PDF"))},{default:e.withCtx(()=>[wN,e.createTextVNode(" 导出pdf ")]),_:1}),e.createVNode(e.unref(S.ElLink),{type:"primary",onClick:m[3]||(m[3]=g=>e.unref(i).$baseEventBus.emit("editor","DOWNLOAD_WORD"))},{default:e.withCtx(()=>[CN,e.createTextVNode(" 导出word ")]),_:1})])]),e.createElementVNode("div",SN,[e.createVNode(e.unref(hd.Toolbar),{class:"w-full",editor:p.editorRef,defaultConfig:s,mode:ym},null,8,["editor"]),e.createVNode(e.unref(hd.Editor),{style:{height:"90%","overflow-y":"hidden","border-top":"1px solid #eee"},modelValue:p.reportObj.reportContent,"onUpdate:modelValue":m[4]||(m[4]=g=>p.reportObj.reportContent=g),defaultConfig:d,mode:ym,onOnCreated:u},null,8,["modelValue"]),p.modelValue&&((_=e.unref(l))==null?void 0:_.chartType)=="7"?(e.openBlock(),e.createElementBlock("div",xN,[VN,e.createVNode(e.unref(S.ElSelect),{size:"small",style:{width:"80px"},modelValue:e.unref(a).fontSize,"onUpdate:modelValue":m[5]||(m[5]=g=>e.unref(a).fontSize=g),teleported:!1,clearable:!1,onChange:m[6]||(m[6]=g=>f("fontSize",g))},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(c,g=>e.createVNode(e.unref(S.ElOption),{label:g.value,value:g.value,key:g.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),EN,kN,e.createElementVNode("div",NN,[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(a).bold,"onUpdate:modelValue":m[7]||(m[7]=g=>e.unref(a).bold=g),onChange:m[8]||(m[8]=g=>f("bold",g))},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElRadio),{value:!0,label:!0},{default:e.withCtx(()=>[e.createTextVNode("是")]),_:1}),e.createVNode(e.unref(S.ElRadio),{value:!1,label:!0},{default:e.withCtx(()=>[e.createTextVNode("否")]),_:1})]),_:1},8,["modelValue"])]),$N,DN,e.createElementVNode("div",BN,[e.createVNode(e.unref(S.ElColorPicker),{predefine:e.unref(i).$globalPreColor,onChange:m[9]||(m[9]=g=>f("color",g)),modelValue:e.unref(a).color,"onUpdate:modelValue":m[10]||(m[10]=g=>e.unref(a).color=g)},null,8,["predefine","modelValue"])])])):e.createCommentVNode("",!0)])])}}}),X6="",ON=ke(TN,[["__scopeId","data-v-884e5eeb"]]),IN=t=>{if(process.env.NODE_ENV==="development"){const n="http://192.168.70.09:30010/".split(":")[1].split("."),r=n[n.length-1],o=`http://192.168.70.${Number(r)}:9000`;return t=t.replace("http://172.17.95.13:9000",o),t=t.replace("http://172.29.26.123:9000",o),t=t.replace("http://192.168.0.22:9000",o),t}return t=t.replace(/http:\/\/172\.17\.95\.13:9000/g,""),t=t.replace(/http:\/\/172\.29\.26\.123:9000/g,""),t=t.replace(/http:\/\/172\.17\.95\.13:9000/g,""),t},zN={class:"mt-3"},RN=["id"],MN={class:"flex justify-between"},AN={class:"title"},LN=["onClick"],FN=["onClick"],jN={class:"text-color-warning text-xs mt-3"},PN=e.defineComponent({__name:"designRight",props:{reportObj:{default:{}},editorRef:{default:null},indicatorsId:{default:""}},emits:["click","success"],setup(t,{expose:n,emit:r}){const o=t,{proxy:i}=e.getCurrentInstance(),{getModelIndicatorsData:a,setSingleValue:l}=yt(),c=r,s=e.ref([]),d=e.ref(!0),f=async()=>{d.value=!0;const p=await Ee(i).listIndicatorsApply({reportId:o.reportObj.id},!1);s.value=p.data,d.value=!1,c("success"),e.nextTick(()=>{(async function m(h){for(let _=0;_<h.length;_+=1){const g=h[_];if(g.type=="indicator"){const v=p.data.find(y=>y.id==g.id);if(!v)return;const b={subtitle:v.title,content:v.indicatorsName};v.coverUrl&&(b.src=IN(v.coverUrl)),v.echartsType=="7"&&(v.indicatorsType=="MODEL_INDICATORS"?(await a(v.indicatorsId??v.id,v.echartsType,v.formConfJson),b.singleValue=l(g.singleValueKey??"")):b.singleValue=v.singleValue),Xe.SlateTransforms.setNodes(o.editorRef,b,{at:Xe.DomEditor.findPath(o.editorRef,g)})}g.children&&await m(g.children)}})(o.editorRef.children)})},u=async(p,m)=>{c("click",p,m)};return f(),n({init:f,list:s}),(p,m)=>{const h=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(h,{title:"指标使用库"}),e.createElementVNode("div",zN,[e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(d),animated:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),_=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["item",{active:p.indicatorsId==_.id}]),id:_.id,key:_.id},[e.createElementVNode("div",MN,[e.createVNode(e.unref(S.ElTooltip),{effect:"dark",content:_.indicatorsName,placement:"bottom"},{default:e.withCtx(()=>[e.createElementVNode("div",AN,e.toDisplayString(_.indicatorsName),1)]),_:2},1032,["content"]),e.createElementVNode("div",null,[e.createElementVNode("button",{onClick:e.withModifiers(g=>u("edit",_),["stop"])},"编辑",8,LN),e.createElementVNode("button",{onClick:e.withModifiers(g=>u("insert",_),["stop"])},"插入光标",8,FN)])]),e.createElementVNode("div",jN,e.toDisplayString(_.title),1)],10,RN))),128))]),_:1},8,["loading"])])],64)}}}),q6="",UN=ke(PN,[["__scopeId","data-v-83f04927"]]),WN=e.defineComponent({__name:"designForm",props:{reportObj:{default:{}}},emits:["success"],setup(t,{expose:n,emit:r}){const o=t,i=Te(),{proxy:a}=e.getCurrentInstance(),{dynamicSearchForm:l,dynamicSearchFormat:c,dynamicSearchParams:s,dynamicSearchParamsTitle:d}=a.$globalHooks.useDynamicSearch(),{base64ToBlob:f,chartJsonFormat:u,echartsTypeList:p}=a.$globalUtils,m=r,{option:h,formatChart:_}=yt(),g=e.ref(!1),v=e.ref(""),b=e.ref(null),y=e.ref(""),w=e.ref(""),C=e.ref([]),x=e.ref({}),V=e.ref({type:"",value:""}),E=e.ref(!1),$=async()=>{if(E.value=!0,e.unref(B)=="MODEL_INDICATORS"){i.getChartData.params.params=s(l.value);const O=e.unref(R).find(N=>N.type==e.unref(y));await _(O==null?void 0:O.code),setTimeout(()=>{E.value=!1,e.unref(V).type=y.value,e.unref(V).value=h.value},50)}else{const O=s(e.unref(l)),N=await Ee(a).pullEchartsDataVO({indicatorsId:e.unref(x).indicatorsId??e.unref(x).id,params:O,echartsType:e.unref(y),targetClient:"WEB"});if(!N)return;E.value=!1,e.unref(V).type=y.value;try{e.unref(V).value=u(N.data.config)}catch{e.unref(V).value=N.data.config}}},B=e.ref(""),R=e.ref({}),T=async(O,N)=>{var z,I;w.value=O,C.value=[];let D;if(B.value=N.indicatorsType??N.type??"INDICATORS",e.unref(B)=="MODEL_INDICATORS"){D=await a.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${N.indicatorsId??N.id}`);const M=JSON.parse(D.data.sortArgsJson??"{}"),P=Object.keys(e.unref(M)).map(F=>({field:F,type:M[F]=="ascending"?"asc":"desc"}));i.setChartData({x:JSON.parse(D.data.groupArgsJson),y:JSON.parse(D.data.aggArgsJson),params:{aggArgsJson:D.data.aggArgsJson,groupArgsJson:D.data.groupArgsJson,sortArgsJson:JSON.stringify(P),modelIndicatorsId:N.indicatorsId??N.id,params:s(c(JSON.parse(N.formConfJson??((z=e.unref(D))==null?void 0:z.formConfJson)??"[]"))),pageSize:D.data.pageSize,modelId:D.data.modelId}})}else D=await Ee(a).getIndicatorsPanelConf(N.indicatorsId??N.id);D&&(g.value=!0,x.value=N,e.unref(B)=="MODEL_INDICATORS"?(R.value=D.data.echarts,C.value=D.data.echarts.map(M=>M.type)):C.value=D.data.views,y.value=O=="add"?C.value[0]:N.echartsType,v.value=N.indicatorsName??N.name,l.value=O=="add"?c(JSON.parse(((I=D.data)==null?void 0:I.formConfJson)??"[]")):JSON.parse(N.formConfJson),$())},k=async()=>{var z;const O=e.unref(V).type==9?e.unref(b).$refs.echart.$refs.echart:e.unref(b).$refs.echart;if(e.unref(V).type&&O&&!O.getDataURL()){a.$message({type:"warning",message:"图片未生成完毕,请重新保存",plain:!0});return}const N={echartsType:e.unref(V).type,indicatorsId:e.unref(x).indicatorsId??e.unref(x).id,reportId:o.reportObj.id,paramsJson:JSON.stringify(s(e.unref(l))),formConfJson:JSON.stringify(e.unref(l)),title:`${(z=p[e.unref(y)])==null?void 0:z.name} ${d({showTitle:!1})}`,indicatorsType:e.unref(B)};if(e.unref(w)=="edit"&&(N.id=e.unref(x).id),!!await Ee(a).saveIndicatorsApply(N)){if(e.unref(w)=="edit"&&O){const I=S.ElLoading.service({lock:!0,text:"数据处理中",background:"rgba(0, 0, 0, 0.7)",customClass:"ajax-loading"});await new Promise(M=>{e.nextTick(async()=>{const P=f(O.getDataURL());await Ee(a).updateIndicatorsApplyImage(P,N.id),M(!0)})}),I.close()}a.$message({type:"success",message:"操作成功",plain:!0}),g.value=!1,m("success")}};return n({init:T}),(O,N)=>{const D=e.resolveComponent("AppDynamicSearch"),z=e.resolveComponent("aceChart"),I=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(I,{modelValue:e.unref(g),"onUpdate:modelValue":N[2]||(N[2]=M=>e.isRef(g)?g.value=M:null),title:e.unref(v),size:"632px"},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{class:"ml-3",type:"primary",onClick:k},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(w)=="add"?"生成报告使用指标":"完成"),1)]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:N[1]||(N[1]=M=>g.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1})]),default:e.withCtx(()=>[e.unref(l).length>0?(e.openBlock(),e.createBlock(D,{key:0,form:e.unref(l),onSuccess:$},null,8,["form"])):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElRadioGroup),{onChange:$,modelValue:e.unref(y),"onUpdate:modelValue":N[0]||(N[0]=M=>e.isRef(y)?y.value=M:null),class:"mb-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),M=>(e.openBlock(),e.createBlock(e.unref(S.ElRadio),{key:M,value:M,label:M,class:"mr-3"},{default:e.withCtx(()=>{var P;return[e.createTextVNode(e.toDisplayString((P=e.unref(p)[M])==null?void 0:P.name),1)]}),_:2},1032,["value","label"]))),128))]),_:1},8,["modelValue"]),e.createVNode(z,{ref_key:"appChartRef",ref:b,type:e.unref(V).type,options:e.unref(V).value,loading:e.unref(E),indicatorsType:e.unref(B)},null,8,["type","options","loading","indicatorsType"])]),_:1},8,["modelValue","title"])}}}),GN={key:0,class:"chart"},HN=e.defineComponent({__name:"design",emits:["success"],setup(t,{expose:n,emit:r}){const{proxy:o}=e.getCurrentInstance(),{base64ToBlob:i,chartJsonFormat:a,resetUrl:l}=o.$globalUtils,c=e.ref(!1),s=e.ref({reportContent:""}),d=e.ref(""),f=e.ref(null),u=e.ref(null),p=e.ref(!1),m=e.ref(null),h=e.ref(null),_=e.ref(null),g=e.ref(null),v=e.ref(null),b=e.ref(null),y=r,{option:w,getModelIndicatorsData:C,setSingleValue:x}=yt(),V=T=>{const k=[];(function N(D){var z,I,M;D&&(k.push((D==null?void 0:D.className)??((z=D==null?void 0:D.target)==null?void 0:z.className)??""),(D!=null&&D.parentNode||(I=D.target)!=null&&I.parentNode)&&N((D==null?void 0:D.parentNode)||((M=D.target)==null?void 0:M.parentNode)))})(T);const O=k.toString();O.indexOf("indicator")==-1&&O.indexOf("el-color")==-1&&(d.value="")};e.watch(c,T=>{var k;T||(document.removeEventListener("click",V),f&&((k=f.value)==null||k.destroy()),f.value=null,p.value=!1)});const E=async T=>{f.value=null,c.value=!0,s.value=JSON.parse(JSON.stringify(T)),setTimeout(()=>{p.value=!0},100)},$=async(T,k)=>{switch(T){case"add":case"edit":e.unref(g).init(T,k);break;case"insert":{u.value={};let O;switch(k.indicatorsType=="MODEL_INDICATORS"?(await C(k.indicatorsId??k.id,k.echartsType,k.formConfJson),O={data:{[k.id]:{config:w.value,dataList:JSON.stringify(w.value.dataset.source)}}}):O=await Ee(o).mapEchartsData(k.id),String(k.echartsType)){case"8":{const N=JSON.parse(O.data[k.id].dataList);if(N.length==0){o.$message({type:"warning",message:"暂无数据",plain:!0});return}const D={type:"table",width:"100%",children:[]};if(k.indicatorsType=="MODEL_INDICATORS"){const z=O.data[k.id].config;D.children.push(...z.dataset.dimensions.map(I=>({type:"table-cell",isHeader:!0,children:[{text:I}]}))),D.children.push(...N.map(I=>({type:"table-row",children:z.dataset.dimensions.map(M=>{let P=I[M];const F=z.customSeriesData[M];if(F){const{prefix:G,toFixed:H,suffix:X}=F;P=`${G}${isNaN(P)?P:Number(P).toFixed(H)}${X}`}return{type:"table-cell",children:[{text:P,color:(F==null?void 0:F.color)??""}]}})})))}else D.children=[{type:"table-row",children:Object.keys(N[0]).map(z=>({type:"table-cell",isHeader:!0,children:[{text:z}]}))},...N.map(z=>({type:"table-row",children:Object.keys(z).map(I=>({type:"table-cell",children:[{text:z[I]}]}))}))];Xe.DomEditor.isSelectedEmptyParagraph(f.value)&&Xe.SlateTransforms.removeNodes(f.value,{mode:"highest"}),Xe.SlateTransforms.insertNodes(f.value,D,{mode:"highest"}),f.value.deselect()}break;case"7":{const N=O.data[k.id].config,D={type:"indicator",content:k.indicatorsName,singleValue:N,id:k.id,indicatorsType:k.indicatorsType||"INDICATORS",chartType:k.echartsType,subtitle:k.title,children:[{text:""}]};if(k.indicatorsType=="MODEL_INDICATORS"){const z=e.ref("");e.unref(w).dataset.dimensions.length==1?z.value=e.unref(w).dataset.dimensions[0]:await new Promise(I=>{S.ElMessageBox({title:"选择数据",showConfirmButton:!1,message:()=>e.h("div",{style:{width:"396px"}},[e.h(S.ElSelect,{class:"w-full mt-5",modelValue:z.value,placeholder:"请选择数据","onUpdate:modelValue":M=>{z.value=M}},{default:()=>e.unref(w).dataset.dimensions.map(M=>e.h(S.ElOption,{label:M,value:M,key:M}))}),e.h("div",{class:"mt-5 flex justify-end"},[e.h(S.ElButton,{type:"primary",onclick:async()=>{if(e.unref(z)==""){o.$message({type:"warning",message:"请选择数据",plain:!0});return}I(!0),S.ElMessageBox.close()}},{default:()=>"提交"}),e.h(S.ElButton,{onclick:async()=>S.ElMessageBox.close()},{default:()=>"关闭"})])])})}),D.singleValueKey=z.value,D.singleValue=x(z.value)}f.value.restoreSelection(),f.value.insertNode(D)}break;default:{const N=S.ElLoading.service({lock:!0,text:"数据处理中",background:"rgba(0, 0, 0, 0.7)",customClass:"ajax-loading"});let D=l(k.coverUrl||"");if(!D){try{u.value=a(O.data[k.id].config)}catch{u.value=O.data[k.id].config}await new Promise(z=>{e.nextTick(()=>{e.unref(b).chart.on("finished",async()=>{const I=i(e.unref(b).getDataURL()),M=await Ee(o).updateIndicatorsApplyImage(I,k.id);D=l(M.data),z(!0)})})})}f.value.insertNode({type:"indicator",content:k.indicatorsName,indicatorsType:k.indicatorsType||"INDICATORS",id:k.id,chartType:k.echartsType,subtitle:k.title,src:D,children:[{text:""}]}),k.coverUrl=D,u.value=null,N.close()}break}}break;case"submit":{if(!await Ee(o).reportSubmit({id:e.unref(s).id,reportContent:f.value.getHtml(),reportName:e.unref(s).reportName,indicatorsNum:e.unref(_).list.length}))return;window.frames.length==parent.frames.length&&o.$message({type:"success",message:"操作成功",plain:!0}),y("success"),c.value=!1}break;case"close":c.value=!1;break}},B=T=>{f.value=Object.seal(T),document.addEventListener("click",V,!0)},R=()=>{const T=e.unref(h),k=e.unref(_);T.list.length>0&&k.list.length>0&&T.list.forEach(O=>{O.value=k.list.filter(N=>N.indicatorsId==O.indicatorsId).length})};return o.$baseEventBus.on("editor",T=>{e.nextTick(()=>{e.unref(v).init(T,e.unref(s))})}),n({init:E}),(T,k)=>{const O=e.resolveComponent("v-chart"),N=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(N,{modelValue:e.unref(c),"onUpdate:modelValue":k[4]||(k[4]=D=>e.isRef(c)?c.value=D:null),withHeader:!1,size:"100%",modalClass:"ace-modal-drawer"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElContainer),{class:"designBody"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElAside),{width:"310px",class:"p-3"},{default:e.withCtx(()=>[e.createVNode(hN,{ref_key:"designLeftRef",ref:h,onClick:$,onSuccess:R},null,512)]),_:1}),e.createVNode(e.unref(S.ElMain),null,{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(),e.createBlock(ON,{key:0,ref_key:"designMainRef",ref:m,onEditorSuccess:B,editorRef:e.unref(f),reportObj:e.unref(s),modelValue:e.unref(d),"onUpdate:modelValue":k[2]||(k[2]=D=>e.isRef(d)?d.value=D:null)},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(S.ElButton),{type:"primary",onClick:k[0]||(k[0]=D=>$("submit",{}))},{default:e.withCtx(()=>[e.createTextVNode("保存报告")]),_:1}),e.createVNode(e.unref(S.ElButton),{type:"warning",onClick:k[1]||(k[1]=D=>$("close",{}))},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1})])]),_:1},8,["editorRef","reportObj","modelValue"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.unref(S.ElAside),{width:"310px",id:"useReportcontainer",class:"p-3",style:{"border-left":"1px solid #ebeef5"}},{default:e.withCtx(()=>[e.unref(f)?(e.openBlock(),e.createBlock(UN,{key:0,ref_key:"designRightRef",ref:_,onClick:$,reportObj:e.unref(s),editorRef:e.unref(f),onSuccess:R,indicatorsId:e.unref(d)},null,8,["reportObj","editorRef","indicatorsId"])):e.createCommentVNode("",!0)]),_:1})]),_:1}),e.unref(u)?(e.openBlock(),e.createElementBlock("div",GN,[e.createVNode(O,{ref_key:"echartsRef",ref:b,option:e.unref(u),autoresize:""},null,8,["option"])])):e.createCommentVNode("",!0),e.createVNode(WN,{ref_key:"designFormRef",ref:g,reportObj:e.unref(s),onSuccess:k[3]||(k[3]=D=>e.unref(_).init())},null,8,["reportObj"]),e.createVNode(vm,{ref_key:"previewRef",ref:v,type:"design"},null,512)]),_:1},8,["modelValue"])}}}),J6="",YN=ke(HN,[["__scopeId","data-v-830bfd88"]]),XN=t=>(e.pushScopeId("data-v-99aa762e"),t=t(),e.popScopeId(),t),qN={key:1,class:"flex flex-wrap gap-5 pt-3 pb-7"},JN={class:"reportName line-clamp-2"},KN={class:"auth"},ZN={class:"times"},QN=["onClick"],e$={class:"flex justify-center w-full mt-5"},t$=XN(()=>e.createElementVNode("div",{class:"w-full h-px mt-2 bg-gray-200"},null,-1)),n$={class:"flex justify-center w-full mt-2"},r$=e.defineComponent({__name:"index",setup(t){const{proxy:n}=e.getCurrentInstance(),r=e.ref(null),o=e.ref(null),i=e.ref(null),a=e.ref(null),l=e.reactive([]),c=e.reactive([{name:"报告名称",type:Fn.Text,fieldName:"reportName",value:""}]),s=e.ref([{label:"预览",icon:"ri-eye-line",type:"primary",key:"PREVIEW",show:!1},{label:"编辑",icon:"ri-edit-line",type:"primary",key:"EDIT",show:!1},{label:"PDF",icon:"ri-file-pdf-line",type:"warning",key:"DOWNLOAD_PDF",show:!1},{label:"WORD",icon:"ri-file-word-2-line",type:"primary",key:"DOWNLOAD_WORD",show:!1},{label:"复制",icon:"ri-file-copy-line",type:"primary",key:"COPY",show:!1},{label:"删除",icon:"ri-delete-bin-line",type:"danger",key:"DEL",show:!1}]),d=e.ref([]);Ee(n).getCurrFunc("INDICATORS_REPORT").then(p=>{d.value=p.data,p.data.includes("CREATE")&&l.push({name:"新增报告",key:"add",type:"primary",icon:"ri-add-line"}),e.unref(s).forEach(m=>{m.show=p.data.includes(m.key)})});const f=e.reactive([{label:"报告名称",prop:"reportName"},{label:"报告使用库",prop:"indicatorsNum",slot:!0},{label:"撰写人",prop:"createUserName"},{label:"撰写时间",prop:"createTime"},{label:"操作",prop:"action",slot:!0,width:"410px"}]),u=async p=>{const{type:m,row:h}=p;switch(m){case"zb":e.unref(o).init(h);break;case"add":n.$basePrompt({content:"新增指标报告",placeholder:"请输入报告名称",inputType:"input",beforeCloseFunc:async(_,g,v)=>{if(_!="confirm"){v();return}const b=await Ee(n).reportSubmit({reportName:g.inputValue});b&&(n.$message({type:"success",message:"操作成功",plain:!0}),e.unref(r).getData(),e.unref(i).init({id:b.data,reportName:g.inputValue,reportContent:""}),v())}});break;case"DEL":n.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await Ee(n).reportRemove(h.id)&&(n.$message({type:"success",message:"删除成功",plain:!0}),e.unref(r).getData())}});break;case"COPY":n.$baseConfirm({content:"是否确定复制",callConfirm:async()=>{await Ee(n).reportCopy(h.id)&&(n.$message({type:"success",message:"操作成功",plain:!0}),e.unref(r).getData())}});break;case"EDIT":e.unref(i).init(h);break;case"DOWNLOAD_PDF":case"PREVIEW":case"DOWNLOAD_WORD":e.nextTick(()=>{e.unref(a).init(m,h)});break}};return(p,m)=>{const h=e.resolveComponent("AppEmpty"),_=e.resolveComponent("AppList");return e.openBlock(),e.createBlock(_,{url:`/api/ace-data-center/indicators-report/list?descs=create_time&projectId=${e.unref(n).$baseGetCurrentProjectId}`,tableData:e.unref(f),searchForm:e.unref(c),searchBtns:e.unref(l),listType:"custom",onBtnClick:u,ref_key:"appListRef",ref:r},{"list-slot":e.withCtx(({list:g,loading:v})=>[e.createVNode(e.unref(S.ElSkeleton),{loading:v,animated:""},{default:e.withCtx(()=>[g.length==0?(e.openBlock(),e.createBlock(h,{key:0,description:"暂无数据"})):(e.openBlock(),e.createElementBlock("div",qN,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:"items"},[e.createElementVNode("div",JN,e.toDisplayString(b.reportName),1),e.createElementVNode("div",KN,"作者:"+e.toDisplayString(b.createUserName),1),e.createElementVNode("div",ZN,e.toDisplayString(b.createTime),1),e.unref(d).includes("VIEW_INDICATOR")?(e.openBlock(),e.createElementBlock("div",{key:0,class:"tags",onClick:e.withModifiers(y=>u({type:"zb",row:b,index:-1}),["stop"])},[e.createTextVNode(" 查看指标库: "),e.createElementVNode("span",null,e.toDisplayString(b.indicatorsNum||0),1)],8,QN)):e.createCommentVNode("",!0),e.createElementVNode("div",e$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).filter(y=>["EDIT","COPY"].includes(y.key)),y=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:y.icon},[y.show?(e.openBlock(),e.createBlock(e.unref(S.ElLink),{key:0,class:"inline-flex items-center ml-3 mr-3",type:y.type,onClick:e.withModifiers(w=>u({type:y.key,row:b,index:-1}),["stop"])},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass([y.icon,"mr-1 text-base"])},null,2),e.createTextVNode(" "+e.toDisplayString(y.label),1)]),_:2},1032,["type","onClick"])):e.createCommentVNode("",!0)],64))),128))]),t$,e.createElementVNode("footer",n$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s).filter(y=>!["EDIT","COPY"].includes(y.key)),y=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[y.show?(e.openBlock(),e.createBlock(e.unref(S.ElTooltip),{content:y.label,key:y.icon},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElLink),{class:"inline-flex items-center",type:y.type,onClick:e.withModifiers(w=>u({type:y.key,row:b,index:-1}),["stop"])},{default:e.withCtx(()=>[e.createElementVNode("i",{class:e.normalizeClass([y.icon,"ml-2 mr-2 text-lg"])},null,2)]),_:2},1032,["type","onClick"])]),_:2},1032,["content"])):e.createCommentVNode("",!0)],64))),256))])]))),128))]))]),_:2},1032,["loading"])]),default:e.withCtx(()=>[e.createVNode(aN,{ref_key:"useIndicatorsRef",ref:o},null,512),e.createVNode(YN,{ref_key:"designRef",ref:i,onSuccess:m[0]||(m[0]=g=>e.unref(r).getData())},null,512),e.createVNode(vm,{ref_key:"previewRef",ref:a},null,512)]),_:1},8,["url","tableData","searchForm","searchBtns"])}}}),K6="",o$=ke(r$,[["__scopeId","data-v-99aa762e"]]);function bm(t,n,r,o,i){const a=n===void 0?void 0:n.key;return{sel:t,data:n,children:r,text:o,elm:i,key:a}}const wm=Array.isArray;function ad(t){return typeof t=="string"||typeof t=="number"||t instanceof String||t instanceof Number}function Cm(t,n,r){if(t.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&n!==void 0)for(let o=0;o<n.length;++o){const i=n[o];if(typeof i=="string")continue;const a=i.data;a!==void 0&&Cm(a,i.children,i.sel)}}function cr(t,n,r){let o={},i,a,l;if(r!==void 0?(n!==null&&(o=n),wm(r)?i=r:ad(r)?a=r.toString():r&&r.sel&&(i=[r])):n!=null&&(wm(n)?i=n:ad(n)?a=n.toString():n&&n.sel?i=[n]:o=n),i!==void 0)for(l=0;l<i.length;++l)ad(i[l])&&(i[l]=bm(void 0,void 0,void 0,i[l],void 0));return t.startsWith("svg")&&(t.length===3||t[3]==="."||t[3]==="#")&&Cm(o,i,t),bm(t,o,i,a,void 0)}const i$=(t,n,r)=>{const o=Xe.DomEditor.isNodeSelected(r,t),{id:i}=Xe.DomEditor.findKey(r,t),{content:a="",chartType:l="",id:c="",singleValue:s="",singleValueKey:d="",subtitle:f="",src:u="",fontSize:p="16px",bold:m="",color:h="",indicatorsType:_="INDICATORS",width:g=400}=t,{EXTEND_CONF:{indicatorConfig:v}}=r.getConfig(),{clickIndicator:b}=v,y=[];return u?(y.push(cr("img.editor-indicator-img",{props:{src:u},style:{},dataset:{id:c}})),o&&y.push(cr("input.indicator-img-range",{type:"range",style:{position:"fixed",bottom:"20px",left:"50%",transform:"translateX(-50%)",zIndex:"99"},min:300,max:550,value:g,on:{input(w){const C={id:c,chartType:l,subtitle:f,singleValue:s,singleValueKey:d,width:w.target.value};Xe.SlateTransforms.setNodes(r,C,{at:Xe.DomEditor.findPath(r,t)})}}}))):y.push(s||a),y.push(cr("span.indicator-tooltip",{style:{position:"absolute",background:"#fff",border:"1px solid var(--g-border-color)",lineHeight:"25px",padding:"0 5px",color:"orange",fontSize:"12px",left:"0px",top:"-30px",zIndex:"88",display:"none",whiteSpace:"nowrap",fontWeight:"normal"},dataset:{id:c}},[cr("span",{style:{color:"#000",fontWeight:"bold"}},`${a}:`),cr("span",{},f),cr("span",{style:{color:"#000"}},d?`(${d})`:"")])),cr("span.editor-indicator",{id:`editor-indicator-${i}`,props:{contentEditable:!1},dataset:{id:c,chartType:l,subtitle:f,width:g,singleValue:s,singleValueKey:d,src:u,fontSize:p,color:h,indicatorsType:_,bold:m},style:{width:`${l=="7"?null:g}px`,marginLeft:"3px",marginRight:"3px",display:"inline-block",cursor:"pointer",backgroundColor:"var(--w-e-textarea-slight-bg-color)",border:o?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"0 3px",fontSize:p,fontWeight:m=="true"?"bold":"normal",color:h},on:{click(w){w.preventDefault(),b&&b(c,t)}}},y)},a$=t=>{const{chartType:n="",id:r="",type:o,subtitle:i,singleValue:a="",singleValueKey:l="",content:c="",src:s="",fontSize:d="16px",bold:f=!1,color:u="",indicatorsType:p="INDICATORS",width:m=400}=t;return`<span
|
|
879
879
|
class="editor-indicator"
|
|
880
880
|
data-w-e-type="indicator"
|
|
881
881
|
data-w-e-is-void
|
|
@@ -893,7 +893,7 @@ ${u} div ,${u} span,${u} a,${u} * {
|
|
|
893
893
|
data-bold="${f}"
|
|
894
894
|
data-color="${u}"
|
|
895
895
|
data-src="${s}"
|
|
896
|
-
>${c}</span>`},l$=t=>{const n=t.getAttribute("data-chartType")||"",r=t.getAttribute("data-id")||"",o=t.getAttribute("data-content")||"",i=t.getAttribute("data-singleValue")||"",a=t.getAttribute("data-singleValueKey")||"",l=t.getAttribute("data-subtitle")||"",c=t.getAttribute("data-width")||"",s=t.getAttribute("data-fontSize")||"",d=t.getAttribute("data-bold")||"",f=t.getAttribute("data-color")||"",u=t.getAttribute("data-src")||"",p=t.getAttribute("data-indicatorsType")||"";return{type:"indicator",id:r,chartType:n,subtitle:l,content:o,width:c,src:u,fontSize:s,bold:d,singleValue:i,singleValueKey:a,color:f,indicatorsType:p,children:[{text:o}]}};function c$(t){const{insertText:n,isInline:r,isVoid:o}=t,i=t;return i.insertText=a=>{if(Xe.DomEditor.getSelectedElems(i).some(s=>i.isVoid(s))){n(a);return}n(a)},i.isInline=a=>Xe.DomEditor.getNodeType(a)==="indicator"?!0:r(a),i.isVoid=a=>Xe.DomEditor.getNodeType(a)==="indicator"?!0:o(a),i}const d$={editorPlugin:c$,renderElems:[{type:"indicator",renderElem:i$}],elemsToHtml:[{type:"indicator",elemToHtml:a$}],parseElemsHtml:[{selector:'span[data-w-e-type="indicator"]',parseElemHtml:l$}]},ld=t=>(e.pushScopeId("data-v-e76aded4"),t=t(),e.popScopeId(),t),s$={class:"flex-1 p-2 border border-gray-200 border-solid"},f$={class:"flex justify-end"},u$=ld(()=>e.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1)),p$={class:"overflow-y-auto max-h-80"},h$=ld(()=>e.createElementVNode("span",{class:"ml-2 mr-2"},"~",-1)),m$=ld(()=>e.createElementVNode("span",{class:"ml-2 mr-2"},"~",-1)),g$=e.defineComponent({__name:"customSearch",props:{dynamicSearchForm:{default:()=>[]},customSearchVisible:{type:Boolean,default:!1}},emits:["update:customSearchVisible","dynamicSearchFormUpdate","success"],setup(t,{expose:n,emit:r}){var b;const o=t,i=r;e.watch(()=>o.customSearchVisible,y=>{y&&e.nextTick(()=>{g()})});const{proxy:a}=e.getCurrentInstance(),l=e.inject("modelEle"),c=e.ref([]),s=e.ref([]);a.$baseHttp.get(`/api/ace-data-center/model/detail?id=${(b=e.unref(l))==null?void 0:b.id}`).then(y=>{c.value=y.data.listModelAttribute.map(w=>({name:w.attributeComment,key:w.attributeCode,dataType:w.dataType,checked:!1,type:"",value:"",minValue:"",maxValue:"",defaultRule:"",dictId:"",options:""}))});const d=e.ref([]);a.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${a.$baseGetCurrentProjectId}`).then(y=>{d.value=y.data});const f={yymmddSingle:[{name:"当日",value:"today"},{name:"昨天",value:"yesterday"}],yymmddRange:[{name:"近一周",value:"week"}],yymmSingle:[{name:"当月",value:"month"}],yymmRange:[{name:"近两月",value:"two-month"}],yySingle:[{name:"当年",value:"year"}],yyRange:[{name:"近两年",value:"two-year"}]},u=y=>{let w="date",C="YYYY-MM-DD";return["yyRange","yySingle"].includes(y)&&(w="year",C="YYYY"),["yymmRange","yymmSingle"].includes(y)&&(w="month",C="YYYY-MM"),{type:w,format:C}},p=(y,w,C)=>y=="gt"?w.getTime()>dr(C||"").valueOf():w.getTime()<dr(C||"").valueOf(),m=(y,w,C)=>{if(y[w]==""||y[C]=="")return;const x=Number(y[w]),V=Number(y[C]);(w=="minValue"?x>V:x<V)&&(y[w]=y[C])},h=y=>{y.value="",y.options=[],y.dictId&&a.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${y.dictId}`).then(w=>{y.options=w.data??[]})},_=y=>{y.value="",y.minValue="",y.maxValue="",y.defaultRule="",y.dictId="",y.options=[]},g=()=>{s.value=JSON.parse(JSON.stringify(e.unref(c))),e.unref(s).forEach(y=>{const w=o.dynamicSearchForm.find(C=>C.key==y.key);w&&(y.checked=!0,Object.keys(w).forEach(C=>{y[C]=w[C]})),["varchar","text"].includes(y.dataType)&&!w&&(y.type="stringSingle")})},v=()=>{i("dynamicSearchFormUpdate",s.value.filter(y=>y.checked&&y.type)),i("update:customSearchVisible",!1)};return n({init:g}),(y,w)=>(e.openBlock(),e.createElementBlock("div",s$,[e.createElementVNode("div",f$,[e.createVNode(e.unref(S.ElButton),{type:"primary",size:"small",onClick:v},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1}),e.createVNode(e.unref(S.ElButton),{type:"primary",class:"ml-3",size:"small",onClick:w[0]||(w[0]=C=>i("update:customSearchVisible",!1))},{default:e.withCtx(()=>[e.createTextVNode(" 关闭 ")]),_:1})]),u$,e.createElementVNode("div",p$,[e.createVNode(e.unref(S.ElForm),{inline:"",size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(C,x)=>(e.openBlock(),e.createElementBlock("div",{key:x},[e.createVNode(e.unref(S.ElFormItem),{label:""},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElCheckbox),{modelValue:C.checked,"onUpdate:modelValue":V=>C.checked=V,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(e.unref(S.ElFormItem),{label:"名称:"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:C.name,"onUpdate:modelValue":V=>C.name=V,size:"small",placeholder:"请输入名称",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(e.unref(S.ElFormItem),{label:"类型:"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{size:"small",clearable:"",teleported:!1,modelValue:C.type,"onUpdate:modelValue":V=>C.type=V,onChange:V=>_(C),placeholder:"类型"},{default:e.withCtx(()=>[["date","datetime"].includes(C.dataType)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(S.ElOption),{label:"年·区间",value:"yyRange"}),e.createVNode(e.unref(S.ElOption),{label:"年·单值",value:"yySingle"}),e.createVNode(e.unref(S.ElOption),{label:"年月·区间",value:"yymmRange"}),e.createVNode(e.unref(S.ElOption),{label:"年月·单值",value:"yymmSingle"}),e.createVNode(e.unref(S.ElOption),{label:"年月日·区间",value:"yymmddRange"}),e.createVNode(e.unref(S.ElOption),{label:"年月日·单值",value:"yymmddSingle"})],64)):["int","decimal","double"].includes(C.dataType)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(S.ElOption),{label:"数值·区间",value:"numberRange"}),e.createVNode(e.unref(S.ElOption),{label:"数值·单值",value:"numberSingle"}),e.createVNode(e.unref(S.ElOption),{label:"下拉框·字典",value:"select"})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(e.unref(S.ElOption),{label:"字符串",value:"stringSingle"}),e.createVNode(e.unref(S.ElOption),{label:"下拉框·字典",value:"select"})],64))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024),C.type?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:0,label:"默认值:"},{default:e.withCtx(()=>[f[C.type]?(e.openBlock(),e.createBlock(e.unref(S.ElSelect),{key:0,size:"small",clearable:"",style:{"margin-right":"10px"},teleported:!1,modelValue:C.defaultRule,"onUpdate:modelValue":V=>C.defaultRule=V,placeholder:"默认值"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f[C.type],V=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{label:V.name,value:V.value,key:V.value},null,8,["label","value"]))),128)),e.createVNode(e.unref(S.ElOption),{label:"自定义",value:"custom"})]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),C.type.endsWith("Range")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[["yyRange","yymmRange","yymmddRange"].includes(C.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(S.ElDatePicker),{size:"small",teleported:!1,modelValue:C.minValue,"onUpdate:modelValue":V=>C.minValue=V,clearable:"",placeholder:"开始","disabled-date":V=>p("gt",V,C.maxValue),type:u(C.type).type,"value-format":u(C.type).format},null,8,["modelValue","onUpdate:modelValue","disabled-date","type","value-format"]),h$,e.createVNode(e.unref(S.ElDatePicker),{size:"small",teleported:!1,modelValue:C.maxValue,"onUpdate:modelValue":V=>C.maxValue=V,clearable:"",placeholder:"结束","disabled-date":V=>p("lt",V,C.minValue),type:u(C.type).type,"value-format":u(C.type).format},null,8,["modelValue","onUpdate:modelValue","disabled-date","type","value-format"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(S.ElInput),{size:"small",modelValue:C.minValue,"onUpdate:modelValue":V=>C.minValue=V,max:C.maxValue,clearable:!1,onBlur:V=>m(C,"minValue","maxValue"),type:"number",placeholder:"最小值"},null,8,["modelValue","onUpdate:modelValue","max","onBlur"]),m$,e.createVNode(e.unref(S.ElInput),{size:"small",modelValue:C.maxValue,"onUpdate:modelValue":V=>C.maxValue=V,min:C.minValue,clearable:!1,onBlur:V=>m(C,"maxValue","minValue"),type:"number",placeholder:"最大值"},null,8,["modelValue","onUpdate:modelValue","min","onBlur"])],64))],64)):e.createCommentVNode("",!0),C.type.includes("Single")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[["yySingle","yymmSingle","yymmddSingle"].includes(C.type)?(e.openBlock(),e.createBlock(e.unref(S.ElDatePicker),{key:0,size:"small",teleported:!1,modelValue:C.value,"onUpdate:modelValue":V=>C.value=V,clearable:"",placeholder:"请输入"+C.name,type:u(C.type).type,"value-format":u(C.type).format},null,8,["modelValue","onUpdate:modelValue","placeholder","type","value-format"])):(e.openBlock(),e.createBlock(e.unref(S.ElInput),{key:1,size:"small",modelValue:C.value,"onUpdate:modelValue":V=>C.value=V,teleported:!1,clearable:"",type:C.type=="numberSingle"?"number":"",placeholder:"请输入"+C.name},null,8,["modelValue","onUpdate:modelValue","type","placeholder"]))],64)):e.createCommentVNode("",!0),C.type=="select"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(e.unref(S.ElSelect),{size:"small",teleported:!1,style:{"margin-right":"10px"},modelValue:C.dictId,"onUpdate:modelValue":V=>C.dictId=V,placeholder:"字典值",clearable:"",onChange:V=>h(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),V=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{label:V.label,value:V.code,key:V.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(e.unref(S.ElSelect),{size:"small",teleported:!1,modelValue:C.value,"onUpdate:modelValue":V=>C.value=V,placeholder:"请选择",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.options,V=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{label:V.name,value:V.code,key:V.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):e.createCommentVNode("",!0)]),_:2},1024)):e.createCommentVNode("",!0)]))),128))]),_:1})])]))}}),Z6="",Sm=ke(g$,[["__scopeId","data-v-e76aded4"]]),_$={class:"field"},v$={class:"field-container h-full flex-1 flex items-center justify-center cursor-pointer overflow-hidden"},y$=["onClick"],b$={class:"field-label whitespace-nowrap text-ellipsis overflow-hidden"},w$={key:0,class:"flex items-center h-full"},C$={class:"mr-5"},S$=["onClick"],x$={key:0,class:"field-add"},V$=["onClick"],E$=e.defineComponent({__name:"model-table-dimension",props:{loading:{type:Boolean,default:!0},iconMap:{default:()=>{}},calendarType:{default:()=>{}},modelValue:{default:()=>[]},list:{default:()=>[]}},emits:["success","update:modelValue"],setup(t,{emit:n}){const r=t,o=n;e.inject("chartList");const i=e.ref(""),a=e.computed(()=>r.list.filter(f=>f.columnComment.indexOf(e.unref(i))>=0)),l=f=>{o("update:modelValue",[f]),o("success")},c=f=>{o("update:modelValue",[...r.modelValue,f]),o("success")},s=f=>{o("update:modelValue",r.modelValue.filter(u=>u.identifier!==f.identifier)),o("success")},d=(f,u)=>{const p=r.modelValue.find(m=>m.identifier==u.identifier);p.dateFormatType=f,u.dateFormatType=f,o("success")};return(f,u)=>{const p=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{title:"计算维度",class:"mt-4 mb-2"}),e.createVNode(e.unref(S.ElSkeleton),{loading:f.loading,animated:""},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(i),"onUpdate:modelValue":u[0]||(u[0]=m=>e.isRef(i)?i.value=m:null),placeholder:"搜索字段",class:"mb-2"},null,8,["modelValue"]),e.createElementVNode("div",_$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["field-item",{active:f.modelValue.some(h=>h.identifier==m.identifier)}]),key:m.identifier},[e.createElementVNode("div",v$,[e.createElementVNode("div",{class:"flex flex-1 items-center overflow-hidden",onClick:h=>l(m)},[e.createElementVNode("i",{class:e.normalizeClass([f.iconMap[m.dataType],"mr-2"])},null,2),e.createElementVNode("span",b$,e.toDisplayString(m.columnComment),1)],8,y$),f.modelValue.some(h=>h.identifier==m.identifier)?(e.openBlock(),e.createElementBlock("div",w$,[["date","datetime"].includes(m.dataType)?(e.openBlock(),e.createBlock(e.unref(S.ElDropdown),{key:0,trigger:"hover",onCommand:h=>d(h,m)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownMenu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.calendarType,(h,_)=>(e.openBlock(),e.createBlock(e.unref(S.ElDropdownItem),{command:_,key:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",C$,e.toDisplayString(f.calendarType[m.dateFormatType]),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{class:"ri-close-line cursor-pointer",onClick:e.withModifiers(h=>s(m),["stop"])},null,8,S$)])):e.createCommentVNode("",!0)]),!f.modelValue.some(h=>h.identifier==m.identifier)&&f.modelValue.length?(e.openBlock(),e.createElementBlock("div",x$,[e.createElementVNode("i",{class:"ri-add-line cursor-pointer text-gray-800",onClick:e.withModifiers(h=>c(m),["stop"])},null,8,V$)])):e.createCommentVNode("",!0)],2))),128))])]),_:1},8,["loading"])],64)}}}),Q6="",k$=ke(E$,[["__scopeId","data-v-1be11605"]]),cd=t=>(e.pushScopeId("data-v-dbabe468"),t=t(),e.popScopeId(),t),N$={class:"mb-2"},$$=cd(()=>e.createElementVNode("div",{class:"mb-2 font-bold"},"公式名称:",-1)),D$={class:"relative mt-4 mb-4"},B$={class:"mb-2 font-bold"},T$={class:"ml-2 text-color-primary"},O$={key:0,class:"selection el-popper is-light el-popover","data-popper-placement":"bottom"},I$=cd(()=>e.createElementVNode("div",null,"选择变量",-1)),z$={class:"mt-2"},R$=cd(()=>e.createElementVNode("span",{class:"el-popper__arrow","data-popper-arrow":""},null,-1)),M$="0123456789+-*/@.()",A$=e.defineComponent({__name:"model-exp",props:{options:{default:()=>[]}},emits:["success"],setup(t,{expose:n,emit:r}){const{proxy:o}=e.getCurrentInstance(),i=e.ref(!1),a=t,l=r,c=e.ref(""),s=e.ref(null),d=T=>{const{key:k}=T;switch(k){case"Enter":T.preventDefault();break;case"@":case"Process":m();break}};let f=null;const u=()=>{const T=e.unref(s).innerHTML;let k=V(T);k=k.map(N=>$(N)?E(N):N.data.split("").filter(D=>M$.includes(D)).join(""));const O=k.join("");if(T!==O){const N=B(T,O);e.unref(s).innerHTML=O,R(e.unref(s),N)}clearTimeout(f),f=setTimeout(async()=>{w()},500)},p=e.ref(!1),m=()=>{p.value=!0},h=T=>{const{identifier:k,columnComment:O}=T;p.value=!1;const N=`<div contenteditable="false">${O}<span>${k}</span></div>`;b("@",N)},_=e.ref(null),g=T=>{if(_.value=T,c.value="",i.value=!0,T){const k=JSON.parse(JSON.stringify(T.data));let O=k.exp??"";c.value=k.comment,k.identifier.split(",").forEach(N=>{const D=new RegExp(N,"g"),z=a.options.find(I=>I.identifier==N);if(z){const I=`<div contenteditable="false">${z.columnComment}<span>${N}</span></div>`;O=O.replace(D,(M,P,F)=>{const G=M.length,H=F.slice(P-1,G+P+1);return H.startsWith("_")||H.endsWith("_")?N:I})}}),e.nextTick(()=>{e.unref(s).innerHTML=O.replace(/@/g,""),setTimeout(()=>{w()},100)})}},v=()=>{var T,k;if(!((T=e.unref(y))!=null&&T.exp)){o.$message({type:"warning",message:"公式不能为空",plain:!0});return}if(e.unref(c)==""){o.$message({type:"warning",message:"公式名称不能为空",plain:!0});return}l("success",{...e.unref(y),aggType:"exp",comment:e.unref(c),showLabel:e.unref(c)},((k=e.unref(_))==null?void 0:k.index)??""),i.value=!1},b=(T,k="")=>{if(!e.unref(s))return;let O=e.unref(s).innerHTML;O.includes(T)&&(O=O.replace(new RegExp(T,"g"),k),e.unref(s).innerHTML=O),w()},y=e.ref({}),w=()=>{let T="";const k=[],O=e.unref(s).innerHTML.replace(/\sdata-spm-anchor-id=".*?"/g,"");x({text:O,prefix:'<div contenteditable="false">',suffix:"</div>"}).forEach(D=>{const[z,I]=x({text:D,prefix:"<span>",suffix:"</span>"});I?(T+=`@${I}`,k.push(I)):T+=z}),y.value={exp:T,identifier:k.toString()}},C=T=>{p.value=!1,T&&b("@")};e.onMounted(()=>window.addEventListener("click",C)),e.onBeforeUnmount(()=>window.removeEventListener("click",C)),n({init:g});const x=({text:T,prefix:k,suffix:O})=>T.replace(new RegExp(k,"g"),",").replace(new RegExp(O,"g"),",").split(",").filter(N=>!!N),V=T=>{const k=document.createElement("div");return k.innerHTML=T,[...k.childNodes]},E=T=>{let k=document.createElement("div");k.appendChild(T);let O=k.innerHTML;return k=T=null,O},$=T=>Object.prototype.toString.call(T)==="[object HTMLDivElement]",B=(T,k)=>{const O=T.split(""),N=k.split(""),D=Math.max(O.length,N.length);let z=0;for(let I=0;I<D&&O[I]==N[I];I++)z++;return z},R=(T,k)=>{const O=document.createRange(),N=window.getSelection();let D=0,z=0;const I=V(T.innerHTML);for(let M=0;M<I.length;M++){const P=I[M];if($(P))k-=E(P).length;else if(k>P.length)k-=P.length;else{z=k;break}D++}O.selectNodeContents(T),O.collapse(!1),T.childNodes[D]&&O.setStart(T.childNodes[D],z),O.collapse(!0),N.removeAllRanges(),N.addRange(O)};return(T,k)=>{const O=e.resolveComponent("AppDialog");return e.openBlock(),e.createBlock(O,{modelValue:e.unref(i),"onUpdate:modelValue":k[2]||(k[2]=N=>e.isRef(i)?i.value=N:null),title:"计算公式",size:800},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{class:"ml-3",type:"primary",onClick:v},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:k[1]||(k[1]=N=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",N$,[$$,e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(c),"onUpdate:modelValue":k[0]||(k[0]=N=>e.isRef(c)?c.value=N:null),placeholder:"请输入公式名称"},null,8,["modelValue"])]),e.createElementVNode("div",D$,[e.createElementVNode("div",B$,[e.createTextVNode(" 公式: "),e.createElementVNode("span",T$,e.toDisplayString(e.unref(y).exp),1)]),e.createElementVNode("div",{ref_key:"formulaRef",ref:s,class:"flex-1 formula",contenteditable:"",placeholder:"请输入表达式 输入「@」后选择指标",style:{"ime-mode":"disabled"},onKeydown:e.withModifiers(d,["stop"]),onKeyup:u},null,544),e.unref(p)?(e.openBlock(),e.createElementBlock("div",O$,[I$,e.createElementVNode("div",z$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,N=>(e.openBlock(),e.createBlock(e.unref(S.ElTag),{class:"m-2 cursor-pointer",onClick:D=>h(N),key:N.identifier,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.columnComment),1)]),_:2},1032,["onClick"]))),128))]),R$])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])}}}),eT="",L$=ke(A$,[["__scopeId","data-v-dbabe468"]]),dd=t=>(e.pushScopeId("data-v-b882964e"),t=t(),e.popScopeId(),t),F$={key:0},j$=dd(()=>e.createElementVNode("div",{class:"mb-2 text-sm indicators-title"},[e.createElementVNode("i",{class:"mr-1 ri-table-line"}),e.createTextVNode(" 基本指标 ")],-1)),P$=["onClick"],U$=dd(()=>e.createElementVNode("i",{class:"ri-lightbulb-line"},null,-1)),W$={key:1},G$={class:"flex items-center mb-2 text-sm indicators-title"},H$={class:"overflow-y-auto max-h-96"},Y$=["onClick"],X$={class:"field-label"},q$=dd(()=>e.createElementVNode("i",{class:"ri-add-fill"},null,-1)),J$=e.defineComponent({__name:"model-table-summary",props:{modelValue:{default:()=>[]},iconMap:{default:()=>{}},list:{default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:n}){const r=t,o=n,{proxy:i}=e.getCurrentInstance();e.inject("chartList");const a=e.ref(!1),l=e.ref(1),c=e.ref(null),s=e.ref([{label:"行数",value:"count",tip:"数据的总行数"},{label:"总和",value:"sum",tip:"列的所有值的总和"},{label:"平均值",value:"avg",tip:"列的所有值的平均值"},{label:"最少",value:"min",tip:"列的最小值"},{label:"最大",value:"max",tip:"列的最大值"},{label:"计算公式",value:"exp",tip:"可手动输入计算公式"}]);e.watch(a,h=>{h&&(u.value={},l.value=1)});const d=h=>{o("update:modelValue",r.modelValue.filter(_=>_.showLabel!==h.showLabel))},f=(h,_)=>{h.aggType=="exp"&&e.unref(c).init({data:h,index:_})},u=e.ref({}),p=h=>{if(h.value==="count"){if(r.modelValue.some(_=>_.aggType==h.value)){i.$message({type:"warning",message:"存在重复数据",plain:!0});return}o("update:modelValue",[...r.modelValue,{identifier:1,aggType:h.value,showLabel:h.label}]),a.value=!1;return}if(h.value=="exp"){e.unref(c).init();return}l.value=2,u.value=h},m=h=>{var _,g;if(r.modelValue.some(v=>{var b;return v.identifier==h.identifier&&v.aggType==((b=e.unref(u))==null?void 0:b.value)})){i.$message({type:"warning",message:"存在重复数据",plain:!0});return}a.value=!1,o("update:modelValue",[...r.modelValue,{identifier:h.identifier,comment:h.columnComment,aggType:(_=e.unref(u))==null?void 0:_.value,showLabel:h.columnComment+((g=e.unref(u))==null?void 0:g.label)}])};return(h,_)=>{const g=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,{title:"汇总方式",class:"mb-2"}),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.modelValue,(v,b)=>(e.openBlock(),e.createBlock(e.unref(S.ElTag),{key:v.value,class:e.normalizeClass(["m-1",[v.aggType=="exp"?"cursor-pointer":""]]),closable:!0,onClick:y=>f(v,b),onClose:y=>d(v),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.showLabel),1)]),_:2},1032,["onClick","class","onClose"]))),128)),e.createVNode(e.unref(S.ElPopover),{trigger:"click",width:"300px",placement:"top-start",visible:e.unref(a),"onUpdate:visible":_[1]||(_[1]=v=>e.isRef(a)?a.value=v:null)},{reference:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary",class:"ml-1",size:"small"},{default:e.withCtx(()=>[q$,e.createTextVNode(" "+e.toDisplayString(h.modelValue.length?"":"添加度量"),1)]),_:1})]),default:e.withCtx(()=>[e.unref(l)==1?(e.openBlock(),e.createElementBlock("div",F$,[j$,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),v=>(e.openBlock(),e.createElementBlock("div",{onClick:b=>p(v),key:v.value,class:e.normalizeClass([{active:e.unref(u).value==v.value},"indicators-item"])},[e.createTextVNode(e.toDisplayString(v.label)+" ",1),e.createVNode(e.unref(S.ElTooltip),{effect:"dark",content:v.tip,placement:"top"},{default:e.withCtx(()=>[U$]),_:2},1032,["content"])],10,P$))),128))])):e.createCommentVNode("",!0),e.unref(l)==2?(e.openBlock(),e.createElementBlock("div",W$,[e.createElementVNode("div",G$,[e.createElementVNode("i",{class:"mr-1 text-xl cursor-pointer ri-arrow-left-s-line",onClick:_[0]||(_[0]=v=>l.value=1)}),e.createTextVNode(" "+e.toDisplayString(e.unref(u).label),1)]),e.createElementVNode("div",H$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.list,v=>(e.openBlock(),e.createElementBlock("div",{onClick:b=>m(v),key:v.identifier,class:"indicators-item"},[e.createElementVNode("div",null,[e.createElementVNode("i",{class:e.normalizeClass([h.iconMap[v.dataType],"mr-2"])},null,2),e.createElementVNode("span",X$,e.toDisplayString(v.columnComment),1)])],8,Y$))),128))])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(L$,{ref_key:"modelPercentRef",ref:c,options:r.list,onSuccess:_[2]||(_[2]=(v,b)=>b?r.modelValue[b]=v:o("update:modelValue",[...r.modelValue,v]))},null,8,["options"])])],64)}}}),tT="",K$=ke(J$,[["__scopeId","data-v-b882964e"]]),xm=e.defineComponent({__name:"chart-list-widget",props:{type:{default:""}},setup(t){const{proxy:n}=e.getCurrentInstance(),{echartsTypeList:r}=n.$globalUtils,o=e.inject("chartList"),i=a=>{n.$baseEventBus.emit("model-chart-click",a)};return(a,l)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),c=>(e.openBlock(),e.createBlock(e.unref(S.ElButton),{type:a.type==c.type?"primary":"",key:c.type,onClick:s=>i(c)},{default:e.withCtx(()=>{var s;return[e.createElementVNode("i",{class:e.normalizeClass((s=e.unref(r)[c.type])==null?void 0:s.icon)},null,2)]}),_:2},1032,["type","onClick"]))),128))}}),fa=t=>(e.pushScopeId("data-v-a9a20c0f"),t=t(),e.popScopeId(),t),Z$={class:"flex w-full h-full"},Q$={class:"flex flex-col flex-1 overflow-hidden"},eD={class:"flex flex-col flex-1 pb-3 pr-3 overflow-y-auto"},tD={key:0,class:"relative flex items-center justify-center pannel h-14"},nD={class:"absolute left-5 top-3"},rD=fa(()=>e.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),oD=fa(()=>e.createElementVNode("i",{class:"ri-table-line"},null,-1)),iD={class:"absolute flex items-center right-5 top-4"},aD=fa(()=>e.createElementVNode("i",{class:"mr-1 ri-settings-2-line"},null,-1)),lD={class:"ml-2 mr-2"},cD={class:"flex flex-col"},dD={class:"flex-1 overflow-y-auto"},sD={key:0,class:"flex items-center justify-center pannel h-14"},fD=fa(()=>e.createElementVNode("i",{class:"mr-1 ri-save-line"},null,-1)),uD=e.defineComponent({__name:"table-widget",props:{modelValue:{default:""},title:{default:""},sortHtml:{default:""},indicatorsId:{default:""},resultTitle:{default:""},dynamicSearchForm:{default:()=>[]}},emits:["update:modelValue","update:title","update:sortHtml","update:resultTitle","update:indicatorsId","update:dynamicSearchForm","success"],setup(t,{expose:n,emit:r}){const o=t,i=r,a=Te(),{proxy:l}=e.getCurrentInstance(),{setFormValue:c,getFormValue:s}=l.$globalHooks.useForm(),{dynamicSearchForm:d,dynamicSearchFormat:f,dynamicSearchParams:u}=l.$globalHooks.useDynamicSearch(),p=e.inject("modelEle"),m=e.inject("getListModelIndicators");e.inject("chartList");const h={varchar:"ri-text",date:"ri-calendar-2-line",datetime:"ri-calendar-2-line",int:"ri-hashtag",decimal:"ri-hashtag"},_={day:"按日",week:"按周",month:"按月",quarter:"按季度",year:"按年","":"按时分秒"},g=e.ref(!1),v=e.ref(!0),b=e.ref(0),y=e.ref([]),w=e.ref([]),C=e.ref([]),x=e.ref([]),V=e.ref(!0),E=e.ref(!0),$=async U=>{var Q,ne;V.value=!0,E.value=!1;const W=JSON.parse((U==null?void 0:U.groupArgsJson)??"[]");x.value=JSON.parse((U==null?void 0:U.aggArgsJson)??JSON.stringify([{identifier:1,aggType:"count",showLabel:"行数"}])),W.length||(V.value=!1),b.value=(U==null?void 0:U.pageSize)??20,z.value=JSON.parse((U==null?void 0:U.sortArgsJson)??"{}"),U!=null&&U.formConfJson?(d.value=f(JSON.parse(U.formConfJson??"[]")),i("update:dynamicSearchForm",d.value)):await Ee(l).getFormJsonConfig((Q=e.unref(p))==null?void 0:Q.id).then(re=>{var Y;d.value=f(JSON.parse(((Y=re.data)==null?void 0:Y.formConfJson)??"[]"))}),i("update:dynamicSearchForm",d.value),c(U,P),l.$baseHttp.post("/api/ace-data-center/aidc/modelAnalysis",{projectId:l.$baseGetCurrentProjectId,modelId:(ne=e.unref(p))==null?void 0:ne.id,serialId:new Date().getTime()}).then(re=>{v.value=!1,y.value=re.data.filter(Y=>!["创建时间","创建人","所属项目","创建部门","标签"].includes(Y.columnComment)).map(Y=>({...Y,dateFormatType:["date","datetime"].includes(Y.dataType)?"day":""})),C.value=re.data.filter(Y=>["ADDABLE","SEMIADDABLE"].includes(Y.quantityType)),W.forEach(Y=>{const Z=y.value.find(_e=>_e.identifier==Y.identifier);Z&&(w.value.push({...Z,dataType:Y.dataType,dateFormatType:Y.dateFormatType}),Z.dateFormatType=Y.dateFormatType)}),V.value=!1,setTimeout(()=>{E.value=!0},1e3)})};e.watch([x,w],()=>{e.unref(E)&&(z.value={}),N()},{deep:!0});let B=null;const R=e.ref(null),T=e.ref(!1),k=e.ref([]),O=e.ref([]),N=async()=>{clearTimeout(B),B=setTimeout(async()=>{var re,Y;O.value=[],a.setChartData([]);const U=D(),W=Object.keys(e.unref(z)).map(Z=>({field:Z,type:e.unref(z)[Z]=="ascending"?"asc":"desc"})),Q={aggArgsJson:JSON.stringify(e.unref(x)),groupArgsJson:JSON.stringify(U),sortArgsJson:JSON.stringify(W),params:u(e.unref(d)),pageSize:e.unref(b),modelId:(re=e.unref(p))==null?void 0:re.id};if(o.indicatorsId&&(Q.modelIndicatorsId=o.indicatorsId),i("update:title",`${e.unref(x).length}个指标:${e.unref(x).length?"根据":""}${U.map(Z=>Z.showLabel).toString()}${e.unref(x).length?"分组的":""}${e.unref(x).filter((Z,_e)=>_e<3).map(Z=>Z.showLabel).toString()}${e.unref(x).length>3?"...":""}`),!e.unref(x).length||e.unref(V)){k.value=[];return}T.value=!0;const ne=await l.$baseHttp.post("/api/ace-data-center/model-indicators/debug",Q);R.value=Q,T.value=!1,ne&&(k.value=((Y=ne.data)==null?void 0:Y.records)??[],a.setChartData({x:U,y:e.unref(x),params:Q}),e.unref(k).length&&Object.keys(e.unref(k)[0]).forEach(Z=>{O.value.push({label:Z,prop:Z,sortable:"custom"})}))})},D=()=>e.unref(w).map(U=>({identifier:U.identifier,comment:U.columnComment,showLabel:U.columnComment+(_[U.dateFormatType]??""),dateFormatType:U.dateFormatType||null})),z=e.ref({}),I=({column:U})=>{e.unref(z)[U.property]&&(U.order=e.unref(z)[U.property])};e.watch(z,U=>{const W=Object.keys(U).map(Q=>`${Q}${U[Q]=="descending"?"降序":"升序"}`);i("update:sortHtml",W.length?`<span class="text-color-warning">排序:${W.toString()}</span>`:"")},{deep:!0});const M=U=>{const{prop:W,order:Q}=U;!Q||e.unref(z)[W]===Q?delete e.unref(z)[W]:e.unref(z)[W]=Q,N()};Ee(l).loadIndicatorsMenu().then(U=>{P.find(W=>W.fieldName=="tags").options=Object.keys(U.data).map(W=>({label:W,value:W}))});const P=e.reactive([{name:"名称",type:Fn.Text,fieldName:"name",value:"",required:!0},{name:"描述",type:Fn.Textarea,fieldName:"remark",value:""},{name:"标签",type:Fn.Select,fieldName:"tags",value:"",options:[],multiple:!0,allowCreate:!0,required:!0,placeholder:"请选择标签或输入标签"},{name:"code",type:Fn.Text,fieldName:"code",value:"",hide:!0}]),F=e.ref(!1),G=()=>{P.find(U=>U.fieldName=="remark").value=o.title,F.value=!0},H=async()=>{var re;const{params:U,error:W}=s(P);if(W.length>0)return;const Q=D();if(!Q.length||!e.unref(x).length){l.$message({type:"warning",message:"计算维度或汇总方式不能为空",plain:!0});return}U.code||(U.code=ua()),U.groupArgsJson=JSON.stringify(Q),U.aggArgsJson=JSON.stringify(e.unref(x)),U.modelId=(re=e.unref(p))==null?void 0:re.id,U.projectId=l.$baseGetCurrentProjectId,U.pageSize=e.unref(b),U.formConfJson=JSON.stringify(e.unref(d)),U.sortArgsJson=JSON.stringify(e.unref(z)),o.indicatorsId&&(U.id=o.indicatorsId),F.value=!1;const ne=await l.$baseHttp.post(`/api/ace-data-center/model-indicators/${o.indicatorsId?"update":"save"}`,U,{header:{loading:!0}});ne&&(o.indicatorsId||i("update:indicatorsId",ne.data),i("update:resultTitle",U.name),l.$message({type:"success",message:"操作成功",plain:!0}),c(U,P),m())},X=()=>{i("update:modelValue","chart")},J=()=>{l.$baseExportExcel({title:o.title,url:"/api/ace-data-center/model-indicators/debug",header:e.unref(O),customParams:e.unref(R)})};return n({init:$,dynamicSearchForm:d,handlePopupForm:G,handleSubmit:H}),(U,W)=>{var ae,se;const Q=e.resolveComponent("AppDynamicSearch"),ne=e.resolveComponent("AppTable"),re=e.resolveComponent("AppEmpty"),Y=e.resolveComponent("AppDynamicList"),Z=e.resolveComponent("AppForm"),_e=e.resolveComponent("AppDialog");return e.openBlock(),e.createElementBlock("div",Z$,[e.createElementVNode("div",Q$,[e.createElementVNode("div",eD,[e.unref(x).length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(Q,{form:e.unref(d),onSuccess:W[0]||(W[0]=oe=>N())},null,8,["form"]),e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(T),animated:""},{default:e.withCtx(()=>[e.unref(O).length?(e.openBlock(),e.createBlock(ne,{key:0,tableData:e.unref(O),list:e.unref(k),loading:!1,headerCellClassName:I,onSortChange:M},null,8,["tableData","list"])):(e.openBlock(),e.createBlock(re,{key:1,description:"暂无数据",class:"mt-4"}))]),_:1},8,["loading"])],64)):(e.openBlock(),e.createBlock(Y,{key:1,id:(ae=e.unref(p))==null?void 0:ae.id,title:(se=e.unref(p))==null?void 0:se.modelName,showPageIndex:!0},null,8,["id","title"]))]),e.unref(x).length?(e.openBlock(),e.createElementBlock("div",tD,[e.createElementVNode("div",nD,[e.createVNode(e.unref(S.ElTooltip),{effect:"dark",content:"保存汇总配置后可设置",placement:"top",visible:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{disabled:U.indicatorsId=="",type:"warning",style:{padding:"0 10px"},onMouseenter:W[1]||(W[1]=oe=>{U.indicatorsId||(g.value=!0)}),onMouseleave:W[2]||(W[2]=oe=>g.value=!1),onClick:X},{default:e.withCtx(()=>[e.createTextVNode(" 图表配置 "),rD]),_:1},8,["disabled"])]),_:1},8,["visible"])]),e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary"},{default:e.withCtx(()=>[oD]),_:1}),e.createVNode(xm)]),_:1}),e.createElementVNode("div",iD,[e.createVNode(e.unref(S.ElLink),{type:"primary"},{default:e.withCtx(()=>[aD,e.createTextVNode(" 显示前 "),e.createElementVNode("div",lD,[e.createVNode(e.unref(S.ElInputNumber),{size:"small",style:{width:"100px"},modelValue:e.unref(b),"onUpdate:modelValue":W[3]||(W[3]=oe=>e.isRef(b)?b.value=oe:null),onChange:W[4]||(W[4]=oe=>N()),min:1,max:9999999},null,8,["modelValue"])]),e.createTextVNode(" 条聚合数据 ")]),_:1}),e.unref(O).length?(e.openBlock(),e.createElementBlock("i",{key:0,class:"ml-2 cursor-pointer ri-download-2-line text-color-warning",onClick:J})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.createElementVNode("aside",cD,[e.createElementVNode("div",dD,[e.createVNode(K$,{list:e.unref(C),modelValue:e.unref(x),"onUpdate:modelValue":W[5]||(W[5]=oe=>e.isRef(x)?x.value=oe:null),iconMap:h},null,8,["list","modelValue"]),e.withDirectives(e.createElementVNode("div",null,[e.createVNode(k$,{loading:e.unref(v),list:e.unref(y),iconMap:h,calendarType:_,modelValue:e.unref(w),"onUpdate:modelValue":W[6]||(W[6]=oe=>e.isRef(w)?w.value=oe:null)},null,8,["loading","list","modelValue"])],512),[[e.vShow,e.unref(x).length]])]),e.unref(x).length?(e.openBlock(),e.createElementBlock("div",sD,[e.createVNode(e.unref(S.ElButton),{type:"primary",onClick:G},{default:e.withCtx(()=>[fD,e.createTextVNode(" 完 成 ")]),_:1})])):e.createCommentVNode("",!0),e.createVNode(_e,{modelValue:e.unref(F),"onUpdate:modelValue":W[8]||(W[8]=oe=>e.isRef(F)?F.value=oe:null),title:"保存指标",size:800},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{class:"ml-3",type:"primary",onClick:H},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:W[7]||(W[7]=oe=>F.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1})]),default:e.withCtx(()=>[e.createVNode(Z,{form:e.unref(P),col:1},null,8,["form"])]),_:1},8,["modelValue"])])])}}}),nT="",pD=ke(uD,[["__scopeId","data-v-a9a20c0f"]]),Vm=t=>(e.pushScopeId("data-v-cc083189"),t=t(),e.popScopeId(),t),hD={class:"chart-container flex flex-wrap"},mD=["onClick"],gD=["onClick"],_D=[Vm(()=>e.createElementVNode("i",{class:"ri-settings-2-line ml-1"},null,-1))],vD={key:0,class:"success setting"},yD=[Vm(()=>e.createElementVNode("i",{class:"ri-check-line ml-1"},null,-1))],bD={class:"label"},wD=e.defineComponent({__name:"model-chart-menu",props:{modelValue:{default:""}},emits:["click-chart-setting","update:modelValue"],setup(t,{emit:n}){const{proxy:r}=e.getCurrentInstance(),{echartsTypeList:o}=r.$globalUtils,i=[{...o[3],key:"3"},...Object.keys(o).filter(d=>d!="3").map(d=>({...o[d],key:d}))],a=e.inject("chartList"),l=n,c=d=>{l("update:modelValue",String(d))},s=d=>{l("update:modelValue",String(d)),l("click-chart-setting")};return(d,f)=>(e.openBlock(),e.createElementBlock("div",hD,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,u=>{var p;return e.createElementVNode("div",{class:"items",key:u.key,onClick:m=>c(u.key)},[e.createElementVNode("div",{class:e.normalizeClass(["icon",{active:d.modelValue==u.key}])},[e.createElementVNode("i",{class:e.normalizeClass(u.icon)},null,2),e.createElementVNode("div",{class:"setting",onClick:e.withModifiers(m=>s(u.key),["stop"])},_D,8,gD),(p=e.unref(a))!=null&&p.some(m=>m.type==u.key)?(e.openBlock(),e.createElementBlock("div",vD,yD)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",bD,e.toDisplayString(u.name),1)],8,mD)}),64))]))}}),iT="",CD=ke(wD,[["__scopeId","data-v-cc083189"]]),SD=e.defineComponent({__name:"model-chart-setting",props:{option:{default:{}},type:{default:""}},emits:["close"],setup(t,{expose:n,emit:r}){const o=t,i=r,{proxy:a}=e.getCurrentInstance(),{chartJsonToStringFormat:l}=a.$globalUtils,c=e.ref(""),s=e.inject("indicatorsId"),d=e.inject("getListModelIndicators"),f=e.inject("getChartWidgetList"),u=e.computed(()=>({3:om,2:am,1:im,4:dm,5:lm,6:cm,7:sm,8:fm,9:um})[o.type]??null),p=e.ref(!1),m=()=>{c.value="data",p.value=!0},h=async()=>{o.option.tooltip&&(delete o.option.tooltip.valueFormatter,delete o.option.tooltip.formatter),o.type=="9"&&delete o.option.series[2].label.formatter,await a.$baseHttp.post("/api/ace-data-center/model-indicators-echarts/save",{modelIndicatorsId:e.unref(s),echartsType:o.type,echartsConfig:l({...o.option,customSeriesData:window.customSeriesData,dataset:{...o.option.dataset,source:[]}})},{headers:{loading:!0}})&&(a.$message({type:"success",message:"操作成功",plain:!0}),f(),d(),p.value=!1,i("close"))},_=()=>{p.value=!1};return n({init:m,handleSubmit:h}),(g,v)=>{const b=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(b,{modelValue:e.unref(p),"onUpdate:modelValue":v[3]||(v[3]=y=>e.isRef(p)?p.value=y:null),withHeader:!1,modal:!1,direction:"ltr",size:"300px",modalClass:"ace-modal-drawer"},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary",onClick:v[1]||(v[1]=y=>h())},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:v[2]||(v[2]=y=>_())},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(S.ElCollapse),{accordion:"",modelValue:e.unref(c),"onUpdate:modelValue":v[0]||(v[0]=y=>e.isRef(c)?c.value=y:null)},{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createBlock(e.unref(u),{key:0,option:o.option,type:g.type},null,8,["option","type"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}}),aT="",xD=ke(SD,[["__scopeId","data-v-4ca94e51"]]),sd=t=>(e.pushScopeId("data-v-ad441288"),t=t(),e.popScopeId(),t),VD={class:"flex w-full h-full"},ED={class:"flex-1"},kD={key:0,class:"flex items-center justify-center pannel h-14"},ND=sd(()=>e.createElementVNode("i",{class:"mr-1 ri-save-line"},null,-1)),$D={class:"flex flex-col flex-1 overflow-hidden"},DD={class:"relative flex flex-col flex-1 pb-3 pl-3"},BD={class:"relative flex items-center justify-center pannel h-14"},TD={key:0,class:"absolute left-5 top-3"},OD=sd(()=>e.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),ID=sd(()=>e.createElementVNode("i",{class:"ri-table-line"},null,-1)),zD=e.defineComponent({__name:"chart-widget",props:{modelValue:{default:""},dynamicSearchForm:{default:()=>[]}},emits:["update:modelValue"],setup(t,{expose:n,emit:r}){const o=r,{proxy:i}=e.getCurrentInstance(),a=e.inject("chartList"),{option:l,formatChart:c}=yt(),s=e.ref(""),d=e.ref(null),f=e.ref(!1),u=()=>{if(e.unref(s)==""){i.$message({type:"warning",message:"请选择图表",plain:!0});return}const _=setInterval(()=>{e.unref(f)&&(e.unref(d).init(),clearInterval(_))},20)};e.watch(s,async _=>{var v;if(l.value={},f.value=!1,_==""){f.value=!0;return}const g=(v=e.unref(a))==null?void 0:v.find(b=>b.type==_);await c((g==null?void 0:g.code)??"",_),f.value=!0});const p=e.ref(!1);i.$baseEventBus.on("model-chart-click",async _=>{p.value=!0,o("update:modelValue","chart"),s.value=_.type,setTimeout(()=>{p.value=!1},100)});const m=()=>{if(e.unref(a).length>0){e.unref(p)||(s.value=e.unref(a)[0].type),f.value=!0;return}s.value="3"},h=()=>{const _=s.value;s.value="",setTimeout(()=>{s.value=_},10)};return n({init:m}),(_,g)=>{var y;const v=e.resolveComponent("AppDynamicSearch"),b=e.resolveComponent("aceCustomChart");return e.openBlock(),e.createElementBlock("div",VD,[e.createElementVNode("aside",null,[e.createElementVNode("div",ED,[e.createVNode(CD,{modelValue:e.unref(s),"onUpdate:modelValue":g[0]||(g[0]=w=>e.isRef(s)?s.value=w:null),onClickChartSetting:u},null,8,["modelValue"])]),(y=e.unref(a))!=null&&y.some(w=>w.type==e.unref(s))?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",kD,[e.createVNode(e.unref(S.ElButton),{type:"primary",onClick:g[1]||(g[1]=w=>e.unref(d).handleSubmit())},{default:e.withCtx(()=>[ND,e.createTextVNode(" 保 存 ")]),_:1})]))]),e.createElementVNode("div",$D,[e.createElementVNode("div",DD,[e.createVNode(e.unref(S.ElSkeleton),{loading:!e.unref(f),animated:""},{default:e.withCtx(()=>[e.createVNode(v,{form:_.dynamicSearchForm,search:!1,disabled:""},null,8,["form"]),e.createVNode(b,{option:e.unref(l),chartType:e.unref(s)},null,8,["option","chartType"])]),_:1},8,["loading"])]),e.createElementVNode("div",BD,[e.unref(l)?(e.openBlock(),e.createElementBlock("div",TD,[e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary",style:{padding:"0 10px"}},{default:e.withCtx(()=>[e.createTextVNode("可视化")]),_:1}),e.createVNode(e.unref(S.ElButton),{type:"",style:{padding:"0 10px"},onClick:u},{default:e.withCtx(()=>[OD]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"",onClick:h},{default:e.withCtx(()=>[ID]),_:1}),e.createVNode(xm,{type:e.unref(s)},null,8,["type"])]),_:1})])]),e.unref(s)?(e.openBlock(),e.createBlock(xD,{key:0,ref_key:"modelChartSettingRef",ref:d,option:e.unref(l),type:e.unref(s),onClose:h},null,8,["option","type"])):e.createCommentVNode("",!0)])}}}),lT="",RD=ke(zD,[["__scopeId","data-v-ad441288"]]),Em=t=>(e.pushScopeId("data-v-67eeb431"),t=t(),e.popScopeId(),t),MD={class:"design"},AD={class:"design-header"},LD={class:"flex-1"},FD={class:"text-xs text-color-info mt-2"},jD=["innerHTML"],PD={class:"flex"},UD={class:"mr-2"},WD=Em(()=>e.createElementVNode("i",{class:"ri-settings-2-line mr-1"},null,-1)),GD=Em(()=>e.createElementVNode("i",{class:"ri-close-line mr-1"},null,-1)),HD={class:"design-container flex-1 overflow-hidden p-3 flex"},YD=e.defineComponent({__name:"index",emits:["close"],setup(t,{expose:n,emit:r}){const{proxy:o}=e.getCurrentInstance(),i=e.ref(!1),a=e.ref(!1),l=e.ref(),c=e.ref(null),s=e.ref(null),d=e.ref(null),f=e.ref([]),u=e.ref("0个指标"),p=e.ref(""),m=e.ref(""),h=e.ref([]),_=r;e.watch(i,V=>{V||o.$baseEventBus.off("model-chart-click")}),e.provide("indicatorsId",m);const g=e.inject("modelEle"),v=e.ref(""),b=async V=>{var $;let E={};l.value="table",m.value=V,h.value=[],f.value=[],e.unref(m)&&(E=await y(),w()),i.value=!0,v.value=($=E==null?void 0:E.data)==null?void 0:$.name,e.nextTick(()=>{e.unref(c).init((E==null?void 0:E.data)??{})})};e.watch(l,V=>{V=="chart"&&e.unref(s).init()});const y=async()=>await o.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${e.unref(m)}`,{headers:{loading:!0}}),w=async()=>{o.$baseHttp.post(`/api/ace-data-center/model-indicators-echarts/getEchartsTypes/${e.unref(m)}`).then(V=>{h.value=V.data})};e.provide("getChartWidgetList",w),e.provide("chartList",h);const C=()=>{o.$baseConfirm({content:"是否确定关闭",callConfirm:async()=>{i.value=!1,e.unref(m)&&_("close")}})},x=V=>{f.value=V,e.unref(c).dynamicSearchForm=V,e.unref(c).handleSubmit()};return n({init:b}),(V,E)=>{const $=e.resolveComponent("AppHeader"),B=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(B,{modelValue:e.unref(i),"onUpdate:modelValue":E[11]||(E[11]=R=>e.isRef(i)?i.value=R:null),withHeader:!1,size:"100%",modalClass:"ace-modal-drawer"},{default:e.withCtx(()=>{var R,T;return[e.createElementVNode("div",MD,[e.createElementVNode("div",AD,[e.createElementVNode("div",LD,[e.createVNode($,{title:e.unref(l)=="table"?e.unref(u):`${e.unref(v)}【${e.unref(u)}】`},e.createSlots({_:2},[e.unref(h).length?{name:"left",fn:e.withCtx(()=>[e.createElementVNode("i",{onClick:E[0]||(E[0]=k=>e.unref(c).handlePopupForm()),class:"ri-edit-box-line ml-2 text-color-primary cursor-pointer text-base"})]),key:"0"}:void 0]),1032,["title"]),e.createElementVNode("div",FD,[e.createTextVNode(" 模型数据 / "+e.toDisplayString((R=e.unref(g))==null?void 0:R.modelName)+" ["+e.toDisplayString((T=e.unref(g))==null?void 0:T.modelCode)+"] ",1),e.createElementVNode("span",{class:"ml-2",innerHTML:e.unref(p)},null,8,jD)])]),e.createElementVNode("div",PD,[e.withDirectives(e.createElementVNode("div",UD,[e.createVNode(e.unref(S.ElPopover),{placement:"bottom",visible:e.unref(a),"onUpdate:visible":E[2]||(E[2]=k=>e.isRef(a)?a.value=k:null),trigger:"click",width:"900px",teleported:!1},{reference:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"warning"},{default:e.withCtx(()=>[WD,e.createTextVNode(" 筛选配置 ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(Sm,{ref_key:"customSearchRef",ref:d,customSearchVisible:e.unref(a),"onUpdate:customSearchVisible":E[1]||(E[1]=k=>e.isRef(a)?a.value=k:null),onDynamicSearchFormUpdate:x,dynamicSearchForm:e.unref(f)},null,8,["customSearchVisible","dynamicSearchForm"])]),_:1},8,["visible"])],512),[[e.vShow,e.unref(l)=="table"&&e.unref(u)!="0个指标:"]]),e.createVNode(e.unref(S.ElButton),{onClick:C},{default:e.withCtx(()=>[GD,e.createTextVNode(" 关闭 ")]),_:1})])]),e.createElementVNode("div",HD,[e.withDirectives(e.createVNode(pD,{ref_key:"tableWidgetRef",ref:c,modelValue:e.unref(l),"onUpdate:modelValue":E[3]||(E[3]=k=>e.isRef(l)?l.value=k:null),indicatorsId:e.unref(m),"onUpdate:indicatorsId":E[4]||(E[4]=k=>e.isRef(m)?m.value=k:null),title:e.unref(u),"onUpdate:title":E[5]||(E[5]=k=>e.isRef(u)?u.value=k:null),resultTitle:e.unref(v),"onUpdate:resultTitle":E[6]||(E[6]=k=>e.isRef(v)?v.value=k:null),sortHtml:e.unref(p),"onUpdate:sortHtml":E[7]||(E[7]=k=>e.isRef(p)?p.value=k:null),dynamicSearchForm:e.unref(f),"onUpdate:dynamicSearchForm":E[8]||(E[8]=k=>e.isRef(f)?f.value=k:null)},null,8,["modelValue","indicatorsId","title","resultTitle","sortHtml","dynamicSearchForm"]),[[e.vShow,e.unref(l)=="table"]]),e.withDirectives(e.createVNode(RD,{ref_key:"chartWidgetRef",ref:s,dynamicSearchForm:e.unref(f),"onUpdate:dynamicSearchForm":E[9]||(E[9]=k=>e.isRef(f)?f.value=k:null),modelValue:e.unref(l),"onUpdate:modelValue":E[10]||(E[10]=k=>e.isRef(l)?l.value=k:null)},null,8,["dynamicSearchForm","modelValue"]),[[e.vShow,e.unref(l)=="chart"]])])])]}),_:1},8,["modelValue"])}}}),cT="",km=ke(YD,[["__scopeId","data-v-67eeb431"]]),XD=e.createElementVNode("i",{class:"ri-search-line"},null,-1),qD={class:"mt-3"},JD={key:0,class:"mr-1 -ml-5 text-base ri-checkbox-circle-fill text-color-success"},KD={key:1,class:"mr-1 -ml-5 text-base ri-error-warning-fill text-color-warning"},ZD=e.defineComponent({__name:"menu",props:{tempId:{default:""}},emits:["node-click"],setup(t,{expose:n,emit:r}){const o=t,{proxy:i}=e.getCurrentInstance(),a=e.ref(""),l=e.ref(null),c=e.ref(null),s=r;e.watch(a,m=>{e.unref(c).filter(m)});const d=(m,h)=>m?h.name.includes(m):!0,f=e.ref(!1),u=()=>{l.value=[],f.value=!0,Ee(i).loadIndicatorsMenu().then(m=>{l.value=Object.keys(m.data).map(_=>({name:_,id:_,children:m.data[_]}));let h;f.value=!1,e.unref(l).length&&e.nextTick(()=>{var _;o.tempId?h=e.unref(c).getNode(o.tempId):h=e.unref(c).getNode((_=e.unref(l)[0].children[0])==null?void 0:_.id),h&&(p(h==null?void 0:h.data),e.unref(c).setCurrentKey(h==null?void 0:h.data.id))})})};u();const p=m=>{Array.isArray(m.children)||s("node-click",m)};return n({init:u}),(m,h)=>{const _=e.resolveComponent("AppEmpty");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(S.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:e.unref(a),"onUpdate:modelValue":h[0]||(h[0]=g=>e.isRef(a)?a.value=g:null)},{prefix:e.withCtx(()=>[XD]),_:1},8,["modelValue"]),e.createElementVNode("div",qD,[e.unref(f)?(e.openBlock(),e.createBlock(e.unref(S.ElSkeleton),{key:0,animated:"",count:2})):(e.openBlock(),e.createBlock(e.unref(S.ElTree),{key:1,class:"animated fadeIn",ref_key:"treeRef",ref:c,data:e.unref(l),"node-key":"id","default-expand-all":"","highlight-current":"","filter-node-method":d,onNodeClick:p},{default:e.withCtx(({node:g,data:v})=>[Array.isArray(v.children)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[v.normal?(e.openBlock(),e.createElementBlock("i",JD)):(e.openBlock(),e.createElementBlock("i",KD))],64)),e.createElementVNode("span",{class:e.normalizeClass({"font-bold":g.level==1})},e.toDisplayString(v.name),3)]),empty:e.withCtx(()=>[e.createVNode(_,{description:"暂无数据"})]),_:1},8,["data"]))])],64)}}}),QD={class:"rule-list"},e8={key:0,class:"flex items-center"},t8=e.createElementVNode("i",{class:"ri-error-warning-fill text-2xl text-color-warning mr-2"},null,-1),n8={key:1,class:"flex items-center"},r8=e.createElementVNode("i",{class:"ri-checkbox-circle-fill text-2xl text-color-success mr-2"},null,-1),Nm=e.defineComponent({__name:"rule",props:{ruleList:{default:()=>[]}},setup(t){const{proxy:n}=e.getCurrentInstance(),r=e.ref(!1),o=e.ref(""),i=e.ref([]),a=s=>{o.value=`/api/ace-data-center/rule/ruleDataView?ruleId=${s}`,r.value=!0},l=s=>{e.unref(i).length==0&&Object.keys(s.data[0]).forEach(d=>{if(d==="pageIndex"){i.value.unshift({label:"序号",prop:"pageIndex",width:"80px"});return}i.value.push({label:d,prop:d})})},c=()=>{n.$baseExportExcel({title:"数据列表",url:e.unref(o),method:"get",header:e.unref(i)})};return(s,d)=>{const f=e.resolveComponent("AppHeader"),u=e.resolveComponent("AppList"),p=e.resolveComponent("AppDrawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",QD,[s.ruleList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{title:"智能诊断",class:"mb-5"}),e.createVNode(e.unref(S.ElAlert),{type:"warning",closable:!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.ruleList,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"mt-0 text-sm"},[+m.rows>0?(e.openBlock(),e.createElementBlock("div",e8,[t8,e.createTextVNode(" "+e.toDisplayString(m.ruleName)+" 【异常数据"+e.toDisplayString(m.rows>99?"99+":m.rows)+"】 ",1),e.createVNode(e.unref(S.ElLink),{class:"ml-2",type:"primary",onClick:h=>a(m.id)},{default:e.withCtx(()=>[e.createTextVNode("查看明细")]),_:2},1032,["onClick"])])):(e.openBlock(),e.createElementBlock("div",n8,[r8,e.createTextVNode(" "+e.toDisplayString(m.ruleName)+" 【未检测到异常数据】 ",1)]))]))),128))]),_:1})],64)):e.createCommentVNode("",!0)]),e.createVNode(p,{modelValue:e.unref(r),"onUpdate:modelValue":d[1]||(d[1]=m=>e.isRef(r)?r.value=m:null),title:"数据列表"},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary",class:"ml-3",onClick:c},{default:e.withCtx(()=>[e.createTextVNode("导 出")]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:d[0]||(d[0]=m=>r.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("关 闭")]),_:1})]),default:e.withCtx(()=>[e.createVNode(u,{tableData:e.unref(i),url:e.unref(o),onSuccess:l},null,8,["tableData","url"])]),_:1},8,["modelValue"])],64)}}}),o8={key:1,class:"animated fadeIn"},i8={class:"flex items-center mt-5 mb-5 ml-2 moudle-1"},a8={key:0,class:"mr-1 text-xl ri-error-warning-fill text-color-warning"},l8={key:1,class:"mr-1 text-xl ri-checkbox-circle-fill text-color-success"},c8={class:"ml-1"},d8={class:"flex items-center select-type"},s8=["onClick"],f8={class:"mt-5 mb-5"},u8=e.defineComponent({__name:"analysis",props:{indicatorsId:{default:""}},emits:["rule-success"],setup(t,{emit:n}){const r=t;e.watch(()=>r.indicatorsId,()=>m());const o=n,{proxy:i}=e.getCurrentInstance(),{dynamicSearchForm:a,dynamicSearchFormat:l,dynamicSearchParams:c}=i.$globalHooks.useDynamicSearch(),{chartJsonFormat:s,echartsTypeList:d}=i.$globalUtils,f=e.ref(!0),u=e.ref([]),p=e.ref(null),m=async()=>{var x,V,E;f.value=!0,a.value=[],v.value={type:"",value:""},h.value=[],_.value="",w();const C=await Ee(i).detailAndTask(r.indicatorsId);p.value=C.data,(V=(x=C.data)==null?void 0:x.echartsDataVO)!=null&&V.config&&g(),(E=C==null?void 0:C.data)!=null&&E.formConfJson&&(a.value=l(JSON.parse(C==null?void 0:C.data.formConfJson))),f.value=!1},h=e.ref([]),_=e.ref(""),g=async()=>{var x;h.value=[],_.value="";const C=await Ee(i).getEchartDetail({indicatorsId:r.indicatorsId});C&&(Object.keys(((x=C.data)==null?void 0:x.clientEchartsType)??{}).forEach(V=>{var E;Object.values((E=C.data)==null?void 0:E.clientEchartsType[V]).forEach($=>{var B,R;h.value.push({client:V,label:(B=d[$])==null?void 0:B.name,icon:(R=d[$])==null?void 0:R.icon,value:`${V}_${$}`})})}),e.unref(h).length>0&&(_.value=e.unref(h)[0].value,y(e.unref(_))))},v=e.ref({type:"",value:""}),b=e.ref(!1),y=async(C,x=!1)=>{var B;_.value=C,x&&(b.value=!0);const V=c(e.unref(a)),E=C.split("_"),$=await Ee(i).pullEchartsDataVO({indicatorsId:r.indicatorsId,loadType:((B=e.unref(p))==null?void 0:B.loadType)??3,params:V,targetClient:E[0],echartsType:E[1]});if($){b.value=!1,e.unref(v).type=E[1];try{e.unref(v).value=s($.data.config)}catch{e.unref(v).value=$.data.config}}},w=async()=>{var x;u.value=[];const C=await Ee(i).getRule({current:1,size:100,businessType:"indicators",businessId:r.indicatorsId});u.value=((x=C.data)==null?void 0:x.records)??[],o("rule-success",u.value)};return m(),(C,x)=>{const V=e.resolveComponent("AppResourceVisitor"),E=e.resolveComponent("AppHeader"),$=e.resolveComponent("AppDynamicSearch"),B=e.resolveComponent("aceChart");return e.unref(f)?(e.openBlock(),e.createBlock(e.unref(S.ElSkeleton),{key:0,animated:""})):(e.openBlock(),e.createElementBlock("div",o8,[e.createVNode(E,{title:"指标计算"},{default:e.withCtx(()=>[e.createVNode(V,{businessType:"INDICATORS",businessld:r.indicatorsId},null,8,["businessld"])]),_:1}),e.createElementVNode("div",i8,[e.unref(u).some(R=>R.rows>0)?(e.openBlock(),e.createElementBlock("i",a8)):(e.openBlock(),e.createElementBlock("i",l8)),e.createElementVNode("span",c8,e.toDisplayString(e.unref(p).remark),1)]),e.createVNode(E,{title:"指标数据"},{default:e.withCtx(()=>[e.createElementVNode("div",d8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),R=>(e.openBlock(),e.createElementBlock("span",{onClick:T=>y(R.value,!0),class:e.normalizeClass(["flex items-center cursor-pointer",[R.value==e.unref(_)?"text-color-primary":"text-gray-600"]]),key:R.value},[e.createElementVNode("i",{class:e.normalizeClass([R.icon,"mr-1"])},null,2),e.createTextVNode(" "+e.toDisplayString(R.label),1)],10,s8))),128))])]),_:1}),e.createElementVNode("div",f8,[e.unref(a).length>0?(e.openBlock(),e.createBlock($,{key:0,form:e.unref(a),onSuccess:x[0]||(x[0]=R=>y(e.unref(_),!0)),class:"mb-0"},null,8,["form"])):e.createCommentVNode("",!0),e.createVNode(B,{type:e.unref(v).type,options:e.unref(v).value,loading:e.unref(b)},null,8,["type","options","loading"])]),e.createVNode(Nm,{ruleList:e.unref(u)},null,8,["ruleList"])]))}}}),dT="",$m=ke(u8,[["__scopeId","data-v-a2c0a4d6"]]),p8={class:"h-full"},h8=e.defineComponent({__name:"relation",setup(t){const{proxy:n}=e.getCurrentInstance(),r=e.ref(null),o=["#00ADD0","#FFA12F","#B62AFF","#604BFF","#6E35FF","#002AFF","#20C0F4","#95F300","#04FDB8","#AF5AFF"],i=(a,l,c="#00f6ff")=>a.map((s,d)=>{switch(s&&s.title&&(s.name=s.title),l==1&&(c=o.find((f,u)=>u==d%10)),(l===0||l===1)&&(s.label={position:"inside"}),l){case 0:s.symbolSize=70;break;case 1:s.symbolSize=50;break;default:s.symbolSize=10;break}return s.lineStyle={color:c},s.children?(s.itemStyle={borderColor:c,color:c},s.children=i(s.children,l+1,c)):s.itemStyle={color:"transparent",borderColor:c},s});return Ee(n).indicatorsRelationTree().then(a=>{if(!a.data.length){r.value={};return}r.value={type:"tree",toolbox:{show:!0,iconStyle:{borderColor:"#03ceda"},feature:{restore:{}}},tooltip:{trigger:"item",triggerOn:"mousemove",backgroundColor:"rgba(0,0,0,.8)",borderWidth:.5,textStyle:{fontSize:10,color:"#fff"}},series:[{type:"tree",hoverAnimation:!0,data:i([a==null?void 0:a.data[0]],0),top:10,bottom:10,left:10,right:10,layout:"radial",symbol:"circle",symbolSize:10,nodePadding:20,animationDurationUpdate:750,expandAndCollapse:!0,initialTreeDepth:2,roam:!0,focusNodeAdjacency:!0,itemStyle:{borderWidth:1},label:{color:"#000",fontSize:10,fontFamily:"SourceHanSansCN",position:"inside",rotate:0},lineStyle:{width:1,curveness:.5}}]}}),(a,l)=>{const c=e.resolveComponent("v-chart"),s=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",p8,[e.createVNode(c,{option:e.unref(r),autoresize:""},null,8,["option"])])),[[s,!e.unref(r)]])}}}),m8=e.createElementVNode("div",{class:"font-bold mt-8 mb-2"},"数据分析",-1),g8=e.defineComponent({__name:"yoy",props:{search:{default:()=>[]},originSearch:{default:()=>[]},chartType:{default:""},option:{default:null}},setup(t,{expose:n}){const r=t,o=Te(),{proxy:i}=e.getCurrentInstance(),{dynamicSearchForm:a,dynamicSearchFormat:l,dynamicSearchParams:c}=i.$globalHooks.useDynamicSearch(),s=["yySingle","yymmSingle","yymmddSingle"],{seriesItem:d}=da(),f=e.computed(()=>r.search.find(_=>s.includes(_.type))),u=e.computed(()=>{const _=e.unref(f)?Object.values(c([e.unref(f)])).every(g=>g==""):!1;return r.search.filter(g=>s.includes(g.type)).length==1&&!_}),p=e.ref("");e.watch(p,()=>m());const m=async()=>{var k;if(!e.unref(u)||e.unref(p)=="")return;const _=JSON.parse(JSON.stringify((k=o.getChartData)==null?void 0:k.params)),g=JSON.parse(JSON.stringify(r.search)),v=g.find(O=>s.includes(O.type)),b=r.originSearch.find(O=>s.includes(O.type)),w=JSON.parse((_==null?void 0:_.groupArgsJson)??"[]").find(O=>O.comment==r.option.dataShow.x);_.groupArgsJson=JSON.stringify([w]);const C=w.dateFormatType;switch(v.type){case"yymmSingle":v.value=dr(v.value).subtract(1,e.unref(p)=="TB"?"year":"month").format("YYYY-MM");break;case"yymmddSingle":v.value=dr(v.value).subtract(1,e.unref(p)=="TB"?"year":"day").format("YYYY-MM-DD");break;case"yySingle":v.value=dr(v.value).subtract(1,"year").format("YYYY");break}_.params=c(g);const V=r.option.dataset.dimensions;V.length>=3&&r.option.dataset.dimensions.pop();const E=await i.$baseHttp.post("/api/ace-data-center/model-indicators/debug",_),$=V[0],B=r.option.dataShow.y.filter(O=>!r.option.dataShow.hide.includes(O));e.unref(v.type).includes("Range")?(r.option.dataset.dimensions[1]=`${b!=null&&b.minValue?`${b==null?void 0:b.minValue}~`:""}${(b==null?void 0:b.maxValue)??""}${B}`,r.option.dataset.dimensions.push(`${v.minValue?`${v.minValue}~`:""}${(v==null?void 0:v.maxValue)??""}${B}`)):(r.option.dataset.dimensions[1]=`${b==null?void 0:b.value}${B}`,r.option.dataset.dimensions[2]=`${v.value}${B}`,r.option.dataset.dimensions[3]="增长率");const R=r.option.series[0];r.option.series=[],E.data.records.forEach(O=>{h(O,$,C)});const T=JSON.parse(JSON.stringify(r.option.dataset.temp_source));T.forEach((O,N)=>{h(O,$,C);let D=null;O[r.option.dataset.dimensions[1]]=O[B],C?(D=E.data.records.find(M=>M[$]==O[$]),D||(["year"].includes(C)&&(D=E.data.records.find(M=>M[$].indexOf(v.value)>=0),O[$]=$),["day","month"].includes(C)&&(D=E.data.records.find(M=>M[$].split("-").at(-1)==O[$].split("-").at(-1))))):D=E.data.records.find(M=>M[$]==O[$]),D||(D={[B]:0}),D&&(O[r.option.dataset.dimensions[2]]=D[B]);const z=O[r.option.dataset.dimensions[1]]??0,I=O[r.option.dataset.dimensions[2]]??0;O.增长率=!z||!I?0:((z-I)/I*100).toFixed(2)}),r.option.dataset.source=T,setTimeout(()=>{const{yAxis:O,xAxis:N}=r.option;let D="yAxis";!Array.isArray(O)&&O.type!="value"&&(D="xAxis"),r.option.series=[R,R,{...d,name:"增长率",[`${D}Index`]:1}],r.option[D]=[Array.isArray(r.option[D])?r.option[D][0]:r.option[D],{type:"value",name:"增长率",nameGap:20,splitLine:!1,nameLocation:D=="xAxis"?"start":"end"}],console.log(r.option)})},h=(_,g,v)=>{if(!(!v||(_[g]??"")=="")&&["day"].includes(v)){const b=_[g].split("-").filter((y,w)=>w==0?"":y);_[g]=b.join("-")}};return n({init:m,type:p}),(_,g)=>e.unref(u)&&_.option?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m8,e.createElementVNode("div",null,[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(p),"onUpdate:modelValue":g[0]||(g[0]=v=>e.isRef(p)?p.value=v:null)},{default:e.withCtx(()=>{var v;return[e.createVNode(e.unref(S.ElRadio),{label:"TB",value:"TB"},{default:e.withCtx(()=>[e.createTextVNode("同比")]),_:1}),e.createVNode(e.unref(S.ElRadio),{label:"HB",value:"HB",disabled:!["yymmSingle","yymmddSingle"].includes((v=e.unref(f))==null?void 0:v.type)},{default:e.withCtx(()=>[e.createTextVNode(" 环比 ")]),_:1},8,["disabled"])]}),_:1},8,["modelValue"])])],64)):e.createCommentVNode("",!0)}}),Dm=t=>(e.pushScopeId("data-v-235b714d"),t=t(),e.popScopeId(),t),_8={key:2,class:"flex chart-preview mt-2.5"},v8={key:0},y8=Dm(()=>e.createElementVNode("div",{class:"mb-2 font-bold"},"分析指标",-1)),b8=Dm(()=>e.createElementVNode("div",{class:"mt-8 mb-2 font-bold"},"指标维度",-1)),w8={class:"flex flex-col flex-1 overflow-hidden"},C8={class:"relative flex-1"},S8={class:"flex justify-center change-btns"},x8=e.defineComponent({__name:"IndicatorsView",props:{dynamicSearchForm:{default:()=>[]},result:{default:()=>{}},chartData:{default:null}},emits:["search-success"],setup(t,{emit:n}){const r=t,o=n,i=Te(),{proxy:a}=e.getCurrentInstance(),{dynamicSearchForm:l,dynamicSearchFormat:c,dynamicSearchParams:s}=a.$globalHooks.useDynamicSearch(),{echartsTypeList:d,isMobile:f}=a.$globalUtils,u=e.ref(null),p=e.ref(""),m=e.ref([]),h=e.ref(r.dynamicSearchForm),_=e.ref(!1),{option:g,formatChart:v,chartType:b,setChartData:y,changeChartSeries:w,chartDataParams:C}=yt(),x={day:"按日",week:"按周",month:"按月",quarter:"按季度",year:"按年","":"按时分秒"};e.onMounted(async()=>{await a.$baseHttp.post(`/api/ace-data-center/model-indicators-echarts/getEchartsTypes/${r.result.id}`).then(T=>{m.value=T.data,T.data.length&&(p.value=T.data[0].code,b.value=T.data[0].type)})}),e.watch(p,async()=>{B()});const V=T=>{p.value!=T.code&&(g.value={},b.value=T.type,p.value=T.code,e.unref(u)&&(e.unref(u).type=""))},E=e.ref(""),$=e.ref(""),B=async()=>{var T,k,O,N,D,z,I;h.value=JSON.parse(JSON.stringify(r.dynamicSearchForm)),_.value=!0,g.value={},E.value="",$.value=["2"].includes(e.unref(b))?"":[],r.chartData&&(C.value=r.chartData),await v(e.unref(p)),E.value=(k=(T=e.unref(g))==null?void 0:T.dataShow)==null?void 0:k.x,Array.isArray((N=(O=e.unref(g))==null?void 0:O.dataShow)==null?void 0:N.y)?$.value=(D=e.unref(g))==null?void 0:D.dataShow.y.filter(M=>{var P;return!(((P=e.unref(g))==null?void 0:P.dataShow.hide)??[]).includes(M)}):$.value=(I=(z=e.unref(g))==null?void 0:z.dataShow)==null?void 0:I.y,f&&["1","3","5"].includes(e.unref(b))&&!e.unref(g).dataZoom&&(g.value.grid.bottom="10%",g.value.dataZoom=[{type:"slider",backgroundColor:"#eef8fd",fillerColor:"#14b1f8",borderColor:"#eef8fd",startValue:0,endValue:3,filterMode:"",showDetail:!1,width:"90%",height:10,handleSize:30,left:"5%",bottom:25},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0}]),setTimeout(()=>{_.value=!1},10)};e.watch([E,$],async([T,k],[O,N])=>{var D;e.unref(_)||(e.unref(g).dataShow.x=T,e.unref(g).dataShow.y=k,Array.isArray(k)&&(e.unref(g).dataShow.hide=(D=e.unref(g))==null?void 0:D.dataShow.y.filter(z=>i.getChartData.y.includes(z.showLabel))),(T!=O||["2","7"].includes(e.unref(b)))&&(g.value.dataset.source=await y(e.unref(b),T,["2","7"].includes(e.unref(b))?k:null),g.value.dataset.temp_source=JSON.parse(JSON.stringify(g.value.dataset.source)),h.value=JSON.parse(JSON.stringify(r.dynamicSearchForm)),e.unref(u)&&(e.unref(u).type="")),["xAxis","yAxis"].forEach(z=>{Array.isArray(g.value[z])&&(g.value[z]=g.value[z].filter(I=>I.name!="增长率"))}),w())},{deep:!0});const R=()=>{i.getChartData.params.params=s(r.dynamicSearchForm),B(),o("search-success",i.getChartData.params.params)};return(T,k)=>{var z;const O=e.resolveComponent("AppDynamicSearch"),N=e.resolveComponent("AppEmpty"),D=e.resolveComponent("aceCustomChart");return e.openBlock(),e.createElementBlock("div",null,[r.dynamicSearchForm.length?(e.openBlock(),e.createBlock(O,{key:0,form:r.dynamicSearchForm,onSuccess:R},null,8,["form"])):e.createCommentVNode("",!0),e.unref(m).length?(e.openBlock(),e.createElementBlock("div",_8,[["9"].includes(e.unref(b))?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("aside",v8,[e.createVNode(e.unref(S.ElSkeleton),{loading:!((z=e.unref(g))!=null&&z.dataShow),animated:""},{default:e.withCtx(()=>[y8,e.createElementVNode("div",null,[["2"].includes(e.unref(b))?(e.openBlock(),e.createBlock(e.unref(S.ElRadioGroup),{key:0,modelValue:e.unref($),"onUpdate:modelValue":k[0]||(k[0]=I=>e.isRef($)?$.value=I:null)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).getChartData.y,I=>(e.openBlock(),e.createBlock(e.unref(S.ElRadio),{key:I.showLabel,label:I.showLabel,value:I.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):["8"].includes(e.unref(b))?(e.openBlock(),e.createBlock(e.unref(S.ElCheckboxGroup),{key:1,modelValue:e.unref($),"onUpdate:modelValue":k[1]||(k[1]=I=>e.isRef($)?$.value=I:null)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList([...e.unref(i).getChartData.y,...e.unref(i).getChartData.x.map(I=>({...I,showLabel:I.comment}))],I=>(e.openBlock(),e.createBlock(e.unref(S.ElCheckbox),{key:I.showLabel,label:I.showLabel,value:I.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(S.ElCheckboxGroup),{key:2,modelValue:e.unref($),"onUpdate:modelValue":k[2]||(k[2]=I=>e.isRef($)?$.value=I:null)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).getChartData.y,I=>(e.openBlock(),e.createBlock(e.unref(S.ElCheckbox),{key:I.showLabel,label:I.showLabel,value:I.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]))]),["8"].includes(e.unref(b))?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b8,e.createElementVNode("div",null,[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(E),"onUpdate:modelValue":k[3]||(k[3]=I=>e.isRef(E)?E.value=I:null)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).getChartData.x,I=>(e.openBlock(),e.createBlock(e.unref(S.ElRadio),{key:I.comment,label:I.comment,value:I.comment},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.comment)+" ",1),x[I.dateFormatType]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ("+e.toDisplayString(x[I.dateFormatType])+") ",1)],64)):e.createCommentVNode("",!0)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])])],64)),["3","1"].includes(e.unref(b))&&e.unref(g).dataShow.y.filter(I=>!e.unref(g).dataShow.hide.includes(I)).length==1?(e.openBlock(),e.createBlock(g8,{key:1,ref_key:"yoyRef",ref:u,option:e.unref(g),search:e.unref(h),originSearch:e.unref(l),chartType:e.unref(b)},null,8,["option","search","originSearch","chartType"])):e.createCommentVNode("",!0)]),_:1},8,["loading"])])),e.createElementVNode("div",w8,[e.createElementVNode("div",C8,[e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(_),animated:""},{default:e.withCtx(()=>[e.createVNode(D,{option:e.unref(g),chartType:e.unref(b)},null,8,["option","chartType"])]),_:1},8,["loading"])]),e.createElementVNode("div",S8,[e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),I=>(e.openBlock(),e.createBlock(e.unref(S.ElButton),{type:e.unref(p)==I.code?"primary":"",key:I.type,onClick:M=>V(I)},{default:e.withCtx(()=>{var M;return[e.createElementVNode("i",{class:e.normalizeClass((M=e.unref(d)[I.type])==null?void 0:M.icon)},null,2)]}),_:2},1032,["type","onClick"]))),128))]),_:1})])])])):(e.openBlock(),e.createBlock(N,{key:1,description:"暂无数据"}))])}}}),sT="",V8=ke(x8,[["__scopeId","data-v-235b714d"]]),E8=["hidden"],k8={class:"flex mb-5 moudle-1"},N8={class:"flex-1"},$8={class:"mt-5 flex items-center"},D8={key:0,class:"ri-error-warning-fill text-xl mr-1 text-color-warning"},B8={key:1,class:"ri-checkbox-circle-fill text-xl mr-1 text-color-success"},T8={class:"ml-1"},O8=e.createElementVNode("div",{class:"w-10"},null,-1),I8={class:"flex-1"},z8={class:"mt-5 items-center"},R8=e.createElementVNode("i",{class:"ri-database-2-fill text-xl mr-1 text-color-primary"},null,-1),M8=e.createElementVNode("i",{class:"ri-edit-box-line"},null,-1),A8={class:"mt-4 mb-4"},L8={class:"sjzl"},F8=e.createElementVNode("div",{class:"font-bold mt-2 mb-2"},"数据总览",-1),j8={class:"mt-2 flex"},P8={key:1,class:"w-full"},Bm=e.defineComponent({__name:"modelIndicators",props:{indicatorsId:{default:""},modelIndicatorsRules:{default:()=>[]}},emits:["click-design","rule-success"],setup(t,{expose:n,emit:r}){const o=t,i=r;e.watch(()=>o.indicatorsId,()=>C());const{proxy:a}=e.getCurrentInstance(),l=Te(),{dynamicSearchForm:c,dynamicSearchFormat:s,dynamicSearchParams:d}=a.$globalHooks.useDynamicSearch(),{isMobile:f}=a.$globalUtils,u=e.ref(!0),p=e.ref(!1),m=e.ref(!1),h=e.ref([]),_=e.ref({}),g=e.ref(null),v=e.ref([]),b=e.ref([]),y=e.ref({}),w=({column:M})=>{e.unref(y)[M.property]&&(M.order=e.unref(y)[M.property])},C=async()=>{u.value=!0,l.setChartData({}),B();const M=await a.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${o.indicatorsId}`);g.value=M.data,u.value=!1,y.value=JSON.parse(M.data.sortArgsJson??"{}"),c.value=s(JSON.parse(M.data.formConfJson??"[]")),E()},x=e.ref(!1),V=e.ref(!1),E=async(M="")=>{var H,X,J,U,W,Q,ne,re,Y;M!="sort"&&(b.value=[],x.value=!0),V.value=!0;const P=Object.keys(e.unref(y)).map(Z=>({field:Z,type:e.unref(y)[Z]=="ascending"?"asc":"desc"})),F={aggArgsJson:(H=e.unref(g))==null?void 0:H.aggArgsJson,groupArgsJson:(X=e.unref(g))==null?void 0:X.groupArgsJson,sortArgsJson:JSON.stringify(P),params:e.unref(N)??d(s(JSON.parse(((J=e.unref(g))==null?void 0:J.formConfJson)??"[]"))),modelIndicatorsId:(U=e.unref(g))==null?void 0:U.id,pageSize:(W=e.unref(g))==null?void 0:W.pageSize,modelId:(Q=e.unref(g))==null?void 0:Q.modelId},G=await a.$baseHttp.post("/api/ace-data-center/model-indicators/debug",F);G&&(v.value=((ne=G.data)==null?void 0:ne.records)??[],x.value=!1,V.value=!1,_.value={x:JSON.parse((re=e.unref(g))==null?void 0:re.groupArgsJson),y:JSON.parse((Y=e.unref(g))==null?void 0:Y.aggArgsJson),params:F},l.setChartData(_.value),e.unref(v).length&&M!="sort"&&(Object.keys(e.unref(v)[0]).forEach(Z=>{b.value.push({label:Z,prop:Z,sortable:"custom"})}),b.value.push({label:"操作",prop:"button",width:"120px",fixed:"right",slot:!0})))},$=M=>{const{prop:P,order:F}=M;!F||e.unref(y)[P]===F?delete e.unref(y)[P]:e.unref(y)[P]=F,E("sort")},B=async()=>{var P;h.value=[];const M=await Ee(a).getRule({current:1,size:100,businessType:"indicators",businessId:o.indicatorsId});h.value=((P=M.data)==null?void 0:P.records)??[],i("rule-success",h.value)},R=e.ref(null),T=M=>{R.value=M,p.value=!0},k=M=>{M.modelIndicatorsId=e.unref(g).id,M.row=e.unref(R)},O=()=>{m.value=!0},N=e.ref(null),D=M=>{N.value=M,E()};e.watch(p,M=>I(M)),e.watch(m,M=>I(M));const z=e.ref(!1),I=M=>{self!=top&&(z.value=M,window.parent.postMessage(M?"model-indicators-open":"model-indicators-close","*"))};return C(),n({init:C,result:g}),(M,P)=>{const F=e.resolveComponent("AppResourceVisitor"),G=e.resolveComponent("AppHeader"),H=e.resolveComponent("AppTable"),X=e.resolveComponent("AppEmpty"),J=e.resolveComponent("AppDynamicList"),U=e.resolveComponent("AppDrawer");return e.unref(u)?(e.openBlock(),e.createBlock(e.unref(S.ElSkeleton),{key:0,animated:""})):(e.openBlock(),e.createElementBlock("div",{key:1,class:"animated fadeIn",hidden:e.unref(z)},[e.createElementVNode("div",k8,[e.createElementVNode("div",N8,[e.createVNode(G,{title:"指标计算"},{default:e.withCtx(()=>[e.createVNode(F,{businessType:"MODEL_INDICATORS",businessld:o.indicatorsId},null,8,["businessld"])]),_:1}),e.createElementVNode("div",$8,[e.unref(h).some(W=>W.rows>0)?(e.openBlock(),e.createElementBlock("i",D8)):(e.openBlock(),e.createElementBlock("i",B8)),e.createElementVNode("span",T8,e.toDisplayString(e.unref(g).remark),1)])]),O8,e.createElementVNode("div",I8,[e.createVNode(G,{title:"数据来源"}),e.createElementVNode("div",z8,[R8,e.createTextVNode(" 重构仓模型数据 | "+e.toDisplayString(e.unref(g).modelName)+"【 ",1),e.createElementVNode("span",{class:"text-color-primary cursor-pointer",onClick:O},e.toDisplayString(e.unref(g).modelCode),1),e.createTextVNode(" 】 ")])])]),e.createVNode(G,{title:"指标数据"},{left:e.withCtx(()=>[M.modelIndicatorsRules.includes("RELATED_INDICATORS")?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-color-warning ml-4 cursor-pointer",onClick:P[0]||(P[0]=W=>i("click-design",o.indicatorsId))},[M8,e.createTextVNode(" 编辑指标 ")])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",A8,[e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(V),animated:""},{default:e.withCtx(()=>[e.createVNode(V8,{dynamicSearchForm:e.unref(c),result:e.unref(g),chartData:e.unref(_),onSearchSuccess:D},null,8,["dynamicSearchForm","result","chartData"])]),_:1},8,["loading"])]),e.createElementVNode("div",L8,[F8,e.createElementVNode("div",j8,[e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(x),animated:""},{default:e.withCtx(()=>[e.unref(b).length?(e.openBlock(),e.createBlock(H,{key:0,maxHeight:"400px",tableData:e.unref(b),list:e.unref(v),loading:!1,headerCellClassName:w,onSortChange:$},{button:e.withCtx(({row:W})=>[e.createVNode(e.unref(S.ElLink),{type:"primary",onClick:Q=>T(W)},{default:e.withCtx(()=>[e.createTextVNode("查看明细")]),_:2},1032,["onClick"])]),_:1},8,["tableData","list"])):(e.openBlock(),e.createElementBlock("div",P8,[e.createVNode(X,{description:"暂无数据",class:"mt-4"})]))]),_:1},8,["loading"])])]),e.createVNode(Nm,{ruleList:e.unref(h)},null,8,["ruleList"]),e.createVNode(U,{modelValue:e.unref(p),"onUpdate:modelValue":P[1]||(P[1]=W=>e.isRef(p)?p.value=W:null),title:"查看明细",size:"90%"},{default:e.withCtx(()=>[e.createVNode(G,{title:"统计:",class:"mb-2"}),e.createVNode(H,{height:null,tableData:Object.keys(e.unref(R)).map(W=>({label:W,prop:W})),list:[e.unref(R)],loading:!1},null,8,["tableData","list"]),e.createVNode(G,{title:"钻取明细:",class:"mb-2 mt-4"}),e.createVNode(J,{id:e.unref(g).modelId,title:e.unref(g).modelName,isDownLoad:e.unref(f),url:"/api/ace-data-center/model-indicators/drilling",paramsFunc:k},null,8,["id","title","isDownLoad"])]),_:1},8,["modelValue"]),e.createVNode(U,{modelValue:e.unref(m),"onUpdate:modelValue":P[2]||(P[2]=W=>e.isRef(m)?m.value=W:null),title:"模型数据",size:"90%"},{default:e.withCtx(()=>[e.createVNode(J,{id:e.unref(g).modelId,title:e.unref(g).modelName},null,8,["id","title"])]),_:1},8,["modelValue"])],8,E8))}}}),U8=e.createElementVNode("i",{class:"ri-search-line"},null,-1),W8={class:"mt-3"},G8={key:1,class:"mr-1 -ml-5 text-base ri-edit-circle-fill text-color-primary"},H8=e.defineComponent({__name:"modelMenu",props:{type:{default:""}},emits:["node-click","change-type"],setup(t,{expose:n,emit:r}){const o=t,{proxy:i}=e.getCurrentInstance(),a=e.ref(""),l=e.ref(null),c=r;e.watch(a,h=>{e.unref(l).filter(h)});const s=(h,_)=>h?_.modelName.includes(h):!0,d=e.ref([]),f=e.ref([]),u=e.ref(!0),p=()=>{Promise.all([Ee(i).loadModelMenu({modelLayer:"ODS"}),Ee(i).loadModelMenu({modelLayer:"DWD"})]).then(h=>{const _=h[0].data,g=h[1].data;d.value=Object.keys(_).map(v=>({modelName:v,id:v,children:_[v]})),f.value=Object.keys(g).map(v=>({modelName:v,id:v,children:g[v]})),u.value=!1})};p();const m=h=>{if(h.modelCode){if(o.type=="ODS"){c("node-click",h);return}Array.isArray(h.children)||c("node-click",h)}};return n({init:p}),(h,_)=>{const g=e.resolveComponent("AppEmpty");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(S.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:e.unref(a),"onUpdate:modelValue":_[0]||(_[0]=v=>e.isRef(a)?a.value=v:null)},{prefix:e.withCtx(()=>[U8]),_:1},8,["modelValue"]),e.createElementVNode("div",W8,[e.unref(u)?(e.openBlock(),e.createBlock(e.unref(S.ElSkeleton),{key:0,animated:"",count:2})):(e.openBlock(),e.createBlock(e.unref(S.ElTree),{key:1,class:"animated fadeIn",ref_key:"treeRef",ref:l,data:h.type=="ODS"?e.unref(d):e.unref(f),"default-expand-all":"","node-key":"id","highlight-current":"","filter-node-method":s,onNodeClick:m},{default:e.withCtx(({node:v,data:b})=>[v.level!=1||h.type=="ODS"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b.modelCode&&b.openForm!=2?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["mr-1 -ml-5 text-base ri-checkbox-circle-fill",[b.publishStatus==2?"text-color-success":"text-color-info"]])},null,2)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),b.openForm==2?(e.openBlock(),e.createElementBlock("i",G8)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass({"font-bold":v.level==1})},e.toDisplayString(b.modelName),3),e.renderSlot(h.$slots,"default",{element:b})]),empty:e.withCtx(()=>[e.createVNode(g,{description:"暂无数据"})]),_:3},8,["data"]))])],64)}}}),Y8={class:"mb-3"},X8={style:{height:"calc(100vh - 100px)"},class:"overflow-y-auto"},q8=e.defineComponent({__name:"modelIndicatorsAdd",emits:["click-node"],setup(t,{expose:n,emit:r}){const o=r,{proxy:i}=e.getCurrentInstance(),a=e.ref(!1),l=e.ref(),c=e.ref([{label:"源数据",value:"ODS",rule:"VIEW_ODS",disabled:!0},{label:"整合数据",value:"DWD",rule:"VIEW_DWD",disabled:!0}]);Ee(i).getCurrFunc("MODEL").then(u=>{e.unref(c).forEach(p=>{p.disabled=!u.data.includes(p.rule),!e.unref(l)&&!p.disabled&&(l.value=p.value)})});const s=u=>{l.value=u},d=()=>{a.value=!0},f=u=>{o("click-node",u),a.value=!1};return n({init:d}),(u,p)=>{const m=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(m,{modelValue:e.unref(a),"onUpdate:modelValue":p[0]||(p[0]=h=>e.isRef(a)?a.value=h:null),title:"选择要分析的数据",size:"400px"},{default:e.withCtx(()=>[e.createElementVNode("div",Y8,[e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),h=>(e.openBlock(),e.createBlock(e.unref(S.ElButton),{type:e.unref(l)==h.value?"primary":"",key:h.value,disabled:h.disabled,onClick:_=>s(h.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1})]),e.createElementVNode("div",X8,[e.createVNode(H8,{ref:"menuRef",type:e.unref(l),onNodeClick:f},null,8,["type"])])]),_:1},8,["modelValue"])}}}),J8={class:"flex justify-end flex-1"},K8=e.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1),Z8={key:0,class:"flex items-center justify-center h-full"},Q8=e.defineComponent({__name:"index",props:{isCustom:{type:Boolean,default:!1},element:{default:null},tempId:{default:""}},emits:["close-design"],setup(t,{emit:n}){var y,w;const r=t,o=n,{proxy:i}=e.getCurrentInstance(),a=e.ref(null),l=e.ref(null),c=e.ref(null),s=e.ref(null),d=e.ref(r.element??{});e.provide("modelEle",d),e.provide("getListModelIndicators",()=>{});const f=e.ref([{label:"指标分析",value:"zbfx"},{label:"指标全景",value:"zbqj",disabled:!0}]),u=e.ref(e.unref(f)[0].value),p=e.ref(((y=r==null?void 0:r.element)==null?void 0:y.id)??"");Ee(i).getCurrFunc("INDICATORS").then(C=>{e.unref(f).find(x=>x.value=="zbqj").disabled=!C.data.includes("INDICATORS_VIEW")});const m=e.ref([]);Ee(i).getCurrFunc("MODEL_INDICATORS").then(C=>{m.value=C.data});const h=e.ref(((w=r==null?void 0:r.element)==null?void 0:w.businessType)??""),_=C=>{p.value=C.id,h.value=C.type},g=C=>{d.value=C,e.unref(a).init()},v=C=>{var x,V,E;d.value={id:(x=e.unref(c).result)==null?void 0:x.modelId,modelName:(V=e.unref(c).result)==null?void 0:V.modelName,modelCode:(E=e.unref(c).result)==null?void 0:E.modelCode},e.unref(a).init(C)},b=()=>{e.unref(p)&&(o("close-design",e.unref(p)),e.unref(c)&&e.unref(c).init()),e.unref(l)&&e.unref(l).init()};return(C,x)=>{const V=e.resolveComponent("AppEmpty");return e.openBlock(),e.createBlock(e.unref(S.ElContainer),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElHeader),{style:{height:"auto",padding:"0"},class:"flex items-center w-full mb-3"},{default:e.withCtx(()=>[C.isCustom?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(S.ElButtonGroup),{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),E=>(e.openBlock(),e.createBlock(e.unref(S.ElButton),{type:e.unref(u)==E.value?"primary":"",key:E.value,disabled:E.disabled,onClick:$=>u.value=E.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1})),e.createElementVNode("div",J8,[e.unref(m).includes("STATISTICAL_ANALYSIS")?(e.openBlock(),e.createBlock(e.unref(S.ElButton),{key:0,type:"primary",onClick:x[0]||(x[0]=E=>e.unref(s).init())},{default:e.withCtx(()=>[K8,e.createTextVNode(" 新增指标 ")]),_:1})):e.createCommentVNode("",!0)])]),_:1}),e.withDirectives(e.createVNode(e.unref(S.ElContainer),{class:"overflow-hidden"},{default:e.withCtx(()=>[C.isCustom?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(S.ElAside),{key:0,class:"pr-5 mr-5"},{default:e.withCtx(()=>[e.createVNode(ZD,{onNodeClick:_,tempId:C.tempId||e.unref(p),ref_key:"menuRef",ref:l},null,8,["tempId"])]),_:1})),e.createVNode(e.unref(S.ElMain),null,{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(h)=="INDICATORS"?(e.openBlock(),e.createBlock($m,{key:0,indicatorsId:e.unref(p)},null,8,["indicatorsId"])):e.createCommentVNode("",!0),e.unref(h)=="MODEL_INDICATORS"?(e.openBlock(),e.createBlock(Bm,{key:1,onClickDesign:v,modelIndicatorsRules:e.unref(m),indicatorsId:e.unref(p),ref_key:"modelIndicatorsRef",ref:c},null,8,["modelIndicatorsRules","indicatorsId"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",Z8,[e.createVNode(V,{description:"请选择对应指标"})]))]),_:1})]),_:1},512),[[e.vShow,e.unref(u)=="zbfx"]]),e.unref(u)=="zbqj"?(e.openBlock(),e.createBlock(e.unref(S.ElMain),{key:0},{default:e.withCtx(()=>[e.createVNode(h8)]),_:1})):e.createCommentVNode("",!0),e.createVNode(km,{ref_key:"designRef",ref:a,onClose:b},null,512),e.createVNode(q8,{ref_key:"modelIndicatorsAddRef",ref:s,onClickNode:g},null,512)]),_:1})}}}),eB={key:0,class:"flex flex-wrap"},tB={class:"mt-2"},nB={key:1,class:"mb-3"},rB=e.defineComponent({__name:"AppCustomChart",props:{option:{default:{}},chartType:{default:""},maxHeight:{default:"350px"},renderer:{default:"canvas"},loading:{type:Boolean,default:!1}},setup(t){const n=t,r=c=>{var d;const{toFixed:s}=((d=n.option)==null?void 0:d.customSeriesData[c])??0;return n.option.dataset.source.reduce((f,u)=>f+(u[c]?Number(u[c]):0),0).toFixed(s)},{init:o}=Zc(),i=e.ref([n.option.code]),a=c=>{if(c.seriesType!=="map")return;const{code:s}=c.data;n.option.code=s,e.unref(i).includes(String(s))||i.value.push(String(s)),o(n.option)},l=()=>{i.value=i.value.filter(c=>c!=n.option.code),n.option.code=e.unref(i).at(-1),o(n.option)};return(c,s)=>{var u,p;const d=e.resolveComponent("AppTable"),f=e.resolveComponent("v-chart");return c.chartType=="7"&&n.option.dataShow?(e.openBlock(),e.createElementBlock("div",eB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.option.dataset.dimensions,m=>{var h,_,g,v,b,y,w,C,x,V;return e.openBlock(),e.createElementBlock("div",{key:m,class:"flex flex-col p-3 pb-3 pl-5 pr-5 m-2 rounded justify-evenly",style:e.normalizeStyle({background:(_=(h=n.option)==null?void 0:h.customSeriesData[m])==null?void 0:_.bgColor,color:(v=(g=n.option)==null?void 0:g.customSeriesData[m])==null?void 0:v.color,minWidth:"120px",fontSize:`${((y=(b=n.option)==null?void 0:b.customSeriesData[m])==null?void 0:y.fontSize)||14}px`})},[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((C=(w=n.option)==null?void 0:w.customSeriesData[m])==null?void 0:C.prefix),1),e.createTextVNode(" "+e.toDisplayString(r(m))+" ",1),e.createElementVNode("span",null,e.toDisplayString((V=(x=n.option)==null?void 0:x.customSeriesData[m])==null?void 0:V.suffix),1)]),e.createElementVNode("div",tB,e.toDisplayString(m),1)],4)}),128))])):c.chartType=="8"?(e.openBlock(),e.createElementBlock("div",nB,[n.option.dataset.dimensions?(e.openBlock(),e.createBlock(d,{key:0,maxHeight:c.maxHeight,tableData:n.option.dataset.dimensions.map(m=>({label:m,prop:m,func:h=>{var g,v;const _=h[m];if((g=n.option)!=null&&g.customSeriesData[m]){const{prefix:b,toFixed:y,suffix:w,color:C}=(v=n.option)==null?void 0:v.customSeriesData[m];return`
|
|
896
|
+
>${c}</span>`},l$=t=>{const n=t.getAttribute("data-chartType")||"",r=t.getAttribute("data-id")||"",o=t.getAttribute("data-content")||"",i=t.getAttribute("data-singleValue")||"",a=t.getAttribute("data-singleValueKey")||"",l=t.getAttribute("data-subtitle")||"",c=t.getAttribute("data-width")||"",s=t.getAttribute("data-fontSize")||"",d=t.getAttribute("data-bold")||"",f=t.getAttribute("data-color")||"",u=t.getAttribute("data-src")||"",p=t.getAttribute("data-indicatorsType")||"";return{type:"indicator",id:r,chartType:n,subtitle:l,content:o,width:c,src:u,fontSize:s,bold:d,singleValue:i,singleValueKey:a,color:f,indicatorsType:p,children:[{text:o}]}};function c$(t){const{insertText:n,isInline:r,isVoid:o}=t,i=t;return i.insertText=a=>{if(Xe.DomEditor.getSelectedElems(i).some(s=>i.isVoid(s))){n(a);return}n(a)},i.isInline=a=>Xe.DomEditor.getNodeType(a)==="indicator"?!0:r(a),i.isVoid=a=>Xe.DomEditor.getNodeType(a)==="indicator"?!0:o(a),i}const d$={editorPlugin:c$,renderElems:[{type:"indicator",renderElem:i$}],elemsToHtml:[{type:"indicator",elemToHtml:a$}],parseElemsHtml:[{selector:'span[data-w-e-type="indicator"]',parseElemHtml:l$}]},ld=t=>(e.pushScopeId("data-v-e76aded4"),t=t(),e.popScopeId(),t),s$={class:"flex-1 p-2 border border-gray-200 border-solid"},f$={class:"flex justify-end"},u$=ld(()=>e.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1)),p$={class:"overflow-y-auto max-h-80"},h$=ld(()=>e.createElementVNode("span",{class:"ml-2 mr-2"},"~",-1)),m$=ld(()=>e.createElementVNode("span",{class:"ml-2 mr-2"},"~",-1)),g$=e.defineComponent({__name:"customSearch",props:{dynamicSearchForm:{default:()=>[]},customSearchVisible:{type:Boolean,default:!1}},emits:["update:customSearchVisible","dynamicSearchFormUpdate","success"],setup(t,{expose:n,emit:r}){var b;const o=t,i=r;e.watch(()=>o.customSearchVisible,y=>{y&&e.nextTick(()=>{g()})});const{proxy:a}=e.getCurrentInstance(),l=e.inject("modelEle"),c=e.ref([]),s=e.ref([]);a.$baseHttp.get(`/api/ace-data-center/model/detail?id=${(b=e.unref(l))==null?void 0:b.id}`).then(y=>{c.value=y.data.listModelAttribute.map(w=>({name:w.attributeComment,key:w.attributeCode,dataType:w.dataType,checked:!1,type:"",value:"",minValue:"",maxValue:"",defaultRule:"",dictId:"",options:""}))});const d=e.ref([]);a.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${a.$baseGetCurrentProjectId}`).then(y=>{d.value=y.data});const f={yymmddSingle:[{name:"当日",value:"today"},{name:"昨天",value:"yesterday"}],yymmddRange:[{name:"近一周",value:"week"}],yymmSingle:[{name:"当月",value:"month"}],yymmRange:[{name:"近两月",value:"two-month"}],yySingle:[{name:"当年",value:"year"}],yyRange:[{name:"近两年",value:"two-year"}]},u=y=>{let w="date",C="YYYY-MM-DD";return["yyRange","yySingle"].includes(y)&&(w="year",C="YYYY"),["yymmRange","yymmSingle"].includes(y)&&(w="month",C="YYYY-MM"),{type:w,format:C}},p=(y,w,C)=>y=="gt"?w.getTime()>dr(C||"").valueOf():w.getTime()<dr(C||"").valueOf(),m=(y,w,C)=>{if(y[w]==""||y[C]=="")return;const x=Number(y[w]),V=Number(y[C]);(w=="minValue"?x>V:x<V)&&(y[w]=y[C])},h=y=>{y.value="",y.options=[],y.dictId&&a.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${y.dictId}`).then(w=>{y.options=w.data??[]})},_=y=>{y.value="",y.minValue="",y.maxValue="",y.defaultRule="",y.dictId="",y.options=[]},g=()=>{s.value=JSON.parse(JSON.stringify(e.unref(c))),e.unref(s).forEach(y=>{const w=o.dynamicSearchForm.find(C=>C.key==y.key);w&&(y.checked=!0,Object.keys(w).forEach(C=>{y[C]=w[C]})),["varchar","text"].includes(y.dataType)&&!w&&(y.type="stringSingle")})},v=()=>{i("dynamicSearchFormUpdate",s.value.filter(y=>y.checked&&y.type)),i("update:customSearchVisible",!1)};return n({init:g}),(y,w)=>(e.openBlock(),e.createElementBlock("div",s$,[e.createElementVNode("div",f$,[e.createVNode(e.unref(S.ElButton),{type:"primary",size:"small",onClick:v},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1}),e.createVNode(e.unref(S.ElButton),{type:"primary",class:"ml-3",size:"small",onClick:w[0]||(w[0]=C=>i("update:customSearchVisible",!1))},{default:e.withCtx(()=>[e.createTextVNode(" 关闭 ")]),_:1})]),u$,e.createElementVNode("div",p$,[e.createVNode(e.unref(S.ElForm),{inline:"",size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(C,x)=>(e.openBlock(),e.createElementBlock("div",{key:x},[e.createVNode(e.unref(S.ElFormItem),{label:""},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElCheckbox),{modelValue:C.checked,"onUpdate:modelValue":V=>C.checked=V,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(e.unref(S.ElFormItem),{label:"名称:"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:C.name,"onUpdate:modelValue":V=>C.name=V,size:"small",placeholder:"请输入名称",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(e.unref(S.ElFormItem),{label:"类型:"},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElSelect),{size:"small",clearable:"",teleported:!1,modelValue:C.type,"onUpdate:modelValue":V=>C.type=V,onChange:V=>_(C),placeholder:"类型"},{default:e.withCtx(()=>[["date","datetime"].includes(C.dataType)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(S.ElOption),{label:"年·区间",value:"yyRange"}),e.createVNode(e.unref(S.ElOption),{label:"年·单值",value:"yySingle"}),e.createVNode(e.unref(S.ElOption),{label:"年月·区间",value:"yymmRange"}),e.createVNode(e.unref(S.ElOption),{label:"年月·单值",value:"yymmSingle"}),e.createVNode(e.unref(S.ElOption),{label:"年月日·区间",value:"yymmddRange"}),e.createVNode(e.unref(S.ElOption),{label:"年月日·单值",value:"yymmddSingle"})],64)):["int","decimal","double"].includes(C.dataType)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(S.ElOption),{label:"数值·区间",value:"numberRange"}),e.createVNode(e.unref(S.ElOption),{label:"数值·单值",value:"numberSingle"}),e.createVNode(e.unref(S.ElOption),{label:"下拉框·字典",value:"select"})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(e.unref(S.ElOption),{label:"字符串",value:"stringSingle"}),e.createVNode(e.unref(S.ElOption),{label:"下拉框·字典",value:"select"})],64))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024),C.type?(e.openBlock(),e.createBlock(e.unref(S.ElFormItem),{key:0,label:"默认值:"},{default:e.withCtx(()=>[f[C.type]?(e.openBlock(),e.createBlock(e.unref(S.ElSelect),{key:0,size:"small",clearable:"",style:{"margin-right":"10px"},teleported:!1,modelValue:C.defaultRule,"onUpdate:modelValue":V=>C.defaultRule=V,placeholder:"默认值"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f[C.type],V=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{label:V.name,value:V.value,key:V.value},null,8,["label","value"]))),128)),e.createVNode(e.unref(S.ElOption),{label:"自定义",value:"custom"})]),_:2},1032,["modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),C.type.endsWith("Range")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[["yyRange","yymmRange","yymmddRange"].includes(C.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(S.ElDatePicker),{size:"small",teleported:!1,modelValue:C.minValue,"onUpdate:modelValue":V=>C.minValue=V,clearable:"",placeholder:"开始","disabled-date":V=>p("gt",V,C.maxValue),type:u(C.type).type,"value-format":u(C.type).format},null,8,["modelValue","onUpdate:modelValue","disabled-date","type","value-format"]),h$,e.createVNode(e.unref(S.ElDatePicker),{size:"small",teleported:!1,modelValue:C.maxValue,"onUpdate:modelValue":V=>C.maxValue=V,clearable:"",placeholder:"结束","disabled-date":V=>p("lt",V,C.minValue),type:u(C.type).type,"value-format":u(C.type).format},null,8,["modelValue","onUpdate:modelValue","disabled-date","type","value-format"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(e.unref(S.ElInput),{size:"small",modelValue:C.minValue,"onUpdate:modelValue":V=>C.minValue=V,max:C.maxValue,clearable:!1,onBlur:V=>m(C,"minValue","maxValue"),type:"number",placeholder:"最小值"},null,8,["modelValue","onUpdate:modelValue","max","onBlur"]),m$,e.createVNode(e.unref(S.ElInput),{size:"small",modelValue:C.maxValue,"onUpdate:modelValue":V=>C.maxValue=V,min:C.minValue,clearable:!1,onBlur:V=>m(C,"maxValue","minValue"),type:"number",placeholder:"最大值"},null,8,["modelValue","onUpdate:modelValue","min","onBlur"])],64))],64)):e.createCommentVNode("",!0),C.type.includes("Single")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[["yySingle","yymmSingle","yymmddSingle"].includes(C.type)?(e.openBlock(),e.createBlock(e.unref(S.ElDatePicker),{key:0,size:"small",teleported:!1,modelValue:C.value,"onUpdate:modelValue":V=>C.value=V,clearable:"",placeholder:"请输入"+C.name,type:u(C.type).type,"value-format":u(C.type).format},null,8,["modelValue","onUpdate:modelValue","placeholder","type","value-format"])):(e.openBlock(),e.createBlock(e.unref(S.ElInput),{key:1,size:"small",modelValue:C.value,"onUpdate:modelValue":V=>C.value=V,teleported:!1,clearable:"",type:C.type=="numberSingle"?"number":"",placeholder:"请输入"+C.name},null,8,["modelValue","onUpdate:modelValue","type","placeholder"]))],64)):e.createCommentVNode("",!0),C.type=="select"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(e.unref(S.ElSelect),{size:"small",teleported:!1,style:{"margin-right":"10px"},modelValue:C.dictId,"onUpdate:modelValue":V=>C.dictId=V,placeholder:"字典值",clearable:"",onChange:V=>h(C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),V=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{label:V.label,value:V.code,key:V.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(e.unref(S.ElSelect),{size:"small",teleported:!1,modelValue:C.value,"onUpdate:modelValue":V=>C.value=V,placeholder:"请选择",clearable:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.options,V=>(e.openBlock(),e.createBlock(e.unref(S.ElOption),{label:V.name,value:V.code,key:V.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):e.createCommentVNode("",!0)]),_:2},1024)):e.createCommentVNode("",!0)]))),128))]),_:1})])]))}}),Z6="",Sm=ke(g$,[["__scopeId","data-v-e76aded4"]]),_$={class:"field"},v$={class:"field-container h-full flex-1 flex items-center justify-center cursor-pointer overflow-hidden"},y$=["onClick"],b$={class:"field-label whitespace-nowrap text-ellipsis overflow-hidden"},w$={key:0,class:"flex items-center h-full"},C$={class:"mr-5"},S$=["onClick"],x$={key:0,class:"field-add"},V$=["onClick"],E$=e.defineComponent({__name:"model-table-dimension",props:{loading:{type:Boolean,default:!0},iconMap:{default:()=>{}},calendarType:{default:()=>{}},modelValue:{default:()=>[]},list:{default:()=>[]}},emits:["success","update:modelValue"],setup(t,{emit:n}){const r=t,o=n;e.inject("chartList");const i=e.ref(""),a=e.computed(()=>r.list.filter(f=>f.columnComment.indexOf(e.unref(i))>=0)),l=f=>{o("update:modelValue",[f]),o("success")},c=f=>{o("update:modelValue",[...r.modelValue,f]),o("success")},s=f=>{o("update:modelValue",r.modelValue.filter(u=>u.identifier!==f.identifier)),o("success")},d=(f,u)=>{const p=r.modelValue.find(m=>m.identifier==u.identifier);p.dateFormatType=f,u.dateFormatType=f,o("success")};return(f,u)=>{const p=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(p,{title:"计算维度",class:"mt-4 mb-2"}),e.createVNode(e.unref(S.ElSkeleton),{loading:f.loading,animated:""},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(i),"onUpdate:modelValue":u[0]||(u[0]=m=>e.isRef(i)?i.value=m:null),placeholder:"搜索字段",class:"mb-2"},null,8,["modelValue"]),e.createElementVNode("div",_$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),m=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["field-item",{active:f.modelValue.some(h=>h.identifier==m.identifier)}]),key:m.identifier},[e.createElementVNode("div",v$,[e.createElementVNode("div",{class:"flex flex-1 items-center overflow-hidden",onClick:h=>l(m)},[e.createElementVNode("i",{class:e.normalizeClass([f.iconMap[m.dataType],"mr-2"])},null,2),e.createElementVNode("span",b$,e.toDisplayString(m.columnComment),1)],8,y$),f.modelValue.some(h=>h.identifier==m.identifier)?(e.openBlock(),e.createElementBlock("div",w$,[["date","datetime"].includes(m.dataType)?(e.openBlock(),e.createBlock(e.unref(S.ElDropdown),{key:0,trigger:"hover",onCommand:h=>d(h,m)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(S.ElDropdownMenu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.calendarType,(h,_)=>(e.openBlock(),e.createBlock(e.unref(S.ElDropdownItem),{command:_,key:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",C$,e.toDisplayString(f.calendarType[m.dateFormatType]),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{class:"ri-close-line cursor-pointer",onClick:e.withModifiers(h=>s(m),["stop"])},null,8,S$)])):e.createCommentVNode("",!0)]),!f.modelValue.some(h=>h.identifier==m.identifier)&&f.modelValue.length?(e.openBlock(),e.createElementBlock("div",x$,[e.createElementVNode("i",{class:"ri-add-line cursor-pointer text-gray-800",onClick:e.withModifiers(h=>c(m),["stop"])},null,8,V$)])):e.createCommentVNode("",!0)],2))),128))])]),_:1},8,["loading"])],64)}}}),Q6="",k$=ke(E$,[["__scopeId","data-v-1be11605"]]),cd=t=>(e.pushScopeId("data-v-dbabe468"),t=t(),e.popScopeId(),t),N$={class:"mb-2"},$$=cd(()=>e.createElementVNode("div",{class:"mb-2 font-bold"},"公式名称:",-1)),D$={class:"relative mt-4 mb-4"},B$={class:"mb-2 font-bold"},T$={class:"ml-2 text-color-primary"},O$={key:0,class:"selection el-popper is-light el-popover","data-popper-placement":"bottom"},I$=cd(()=>e.createElementVNode("div",null,"选择变量",-1)),z$={class:"mt-2"},R$=cd(()=>e.createElementVNode("span",{class:"el-popper__arrow","data-popper-arrow":""},null,-1)),M$="0123456789+-*/@.()",A$=e.defineComponent({__name:"model-exp",props:{options:{default:()=>[]}},emits:["success"],setup(t,{expose:n,emit:r}){const{proxy:o}=e.getCurrentInstance(),i=e.ref(!1),a=t,l=r,c=e.ref(""),s=e.ref(null),d=T=>{const{key:k}=T;switch(k){case"Enter":T.preventDefault();break;case"@":case"Process":m();break}};let f=null;const u=()=>{const T=e.unref(s).innerHTML;let k=V(T);k=k.map(N=>$(N)?E(N):N.data.split("").filter(D=>M$.includes(D)).join(""));const O=k.join("");if(T!==O){const N=B(T,O);e.unref(s).innerHTML=O,R(e.unref(s),N)}clearTimeout(f),f=setTimeout(async()=>{w()},500)},p=e.ref(!1),m=()=>{p.value=!0},h=T=>{const{identifier:k,columnComment:O}=T;p.value=!1;const N=`<div contenteditable="false">${O}<span>${k}</span></div>`;b("@",N)},_=e.ref(null),g=T=>{if(_.value=T,c.value="",i.value=!0,T){const k=JSON.parse(JSON.stringify(T.data));let O=k.exp??"";c.value=k.comment,k.identifier.split(",").forEach(N=>{const D=new RegExp(N,"g"),z=a.options.find(I=>I.identifier==N);if(z){const I=`<div contenteditable="false">${z.columnComment}<span>${N}</span></div>`;O=O.replace(D,(M,P,F)=>{const G=M.length,H=F.slice(P-1,G+P+1);return H.startsWith("_")||H.endsWith("_")?N:I})}}),e.nextTick(()=>{e.unref(s).innerHTML=O.replace(/@/g,""),setTimeout(()=>{w()},100)})}},v=()=>{var T,k;if(!((T=e.unref(y))!=null&&T.exp)){o.$message({type:"warning",message:"公式不能为空",plain:!0});return}if(e.unref(c)==""){o.$message({type:"warning",message:"公式名称不能为空",plain:!0});return}l("success",{...e.unref(y),aggType:"exp",comment:e.unref(c),showLabel:e.unref(c)},((k=e.unref(_))==null?void 0:k.index)??""),i.value=!1},b=(T,k="")=>{if(!e.unref(s))return;let O=e.unref(s).innerHTML;O.includes(T)&&(O=O.replace(new RegExp(T,"g"),k),e.unref(s).innerHTML=O),w()},y=e.ref({}),w=()=>{let T="";const k=[],O=e.unref(s).innerHTML.replace(/\sdata-spm-anchor-id=".*?"/g,"");x({text:O,prefix:'<div contenteditable="false">',suffix:"</div>"}).forEach(D=>{const[z,I]=x({text:D,prefix:"<span>",suffix:"</span>"});I?(T+=`@${I}`,k.push(I)):T+=z}),y.value={exp:T,identifier:k.toString()}},C=T=>{p.value=!1,T&&b("@")};e.onMounted(()=>window.addEventListener("click",C)),e.onBeforeUnmount(()=>window.removeEventListener("click",C)),n({init:g});const x=({text:T,prefix:k,suffix:O})=>T.replace(new RegExp(k,"g"),",").replace(new RegExp(O,"g"),",").split(",").filter(N=>!!N),V=T=>{const k=document.createElement("div");return k.innerHTML=T,[...k.childNodes]},E=T=>{let k=document.createElement("div");k.appendChild(T);let O=k.innerHTML;return k=T=null,O},$=T=>Object.prototype.toString.call(T)==="[object HTMLDivElement]",B=(T,k)=>{const O=T.split(""),N=k.split(""),D=Math.max(O.length,N.length);let z=0;for(let I=0;I<D&&O[I]==N[I];I++)z++;return z},R=(T,k)=>{const O=document.createRange(),N=window.getSelection();let D=0,z=0;const I=V(T.innerHTML);for(let M=0;M<I.length;M++){const P=I[M];if($(P))k-=E(P).length;else if(k>P.length)k-=P.length;else{z=k;break}D++}O.selectNodeContents(T),O.collapse(!1),T.childNodes[D]&&O.setStart(T.childNodes[D],z),O.collapse(!0),N.removeAllRanges(),N.addRange(O)};return(T,k)=>{const O=e.resolveComponent("AppDialog");return e.openBlock(),e.createBlock(O,{modelValue:e.unref(i),"onUpdate:modelValue":k[2]||(k[2]=N=>e.isRef(i)?i.value=N:null),title:"计算公式",size:800},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{class:"ml-3",type:"primary",onClick:v},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:k[1]||(k[1]=N=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",N$,[$$,e.createVNode(e.unref(S.ElInput),{modelValue:e.unref(c),"onUpdate:modelValue":k[0]||(k[0]=N=>e.isRef(c)?c.value=N:null),placeholder:"请输入公式名称"},null,8,["modelValue"])]),e.createElementVNode("div",D$,[e.createElementVNode("div",B$,[e.createTextVNode(" 公式: "),e.createElementVNode("span",T$,e.toDisplayString(e.unref(y).exp),1)]),e.createElementVNode("div",{ref_key:"formulaRef",ref:s,class:"flex-1 formula",contenteditable:"",placeholder:"请输入表达式 输入「@」后选择指标",style:{"ime-mode":"disabled"},onKeydown:e.withModifiers(d,["stop"]),onKeyup:u},null,544),e.unref(p)?(e.openBlock(),e.createElementBlock("div",O$,[I$,e.createElementVNode("div",z$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.options,N=>(e.openBlock(),e.createBlock(e.unref(S.ElTag),{class:"m-2 cursor-pointer",onClick:D=>h(N),key:N.identifier,type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.columnComment),1)]),_:2},1032,["onClick"]))),128))]),R$])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])}}}),eT="",L$=ke(A$,[["__scopeId","data-v-dbabe468"]]),dd=t=>(e.pushScopeId("data-v-b882964e"),t=t(),e.popScopeId(),t),F$={key:0},j$=dd(()=>e.createElementVNode("div",{class:"mb-2 text-sm indicators-title"},[e.createElementVNode("i",{class:"mr-1 ri-table-line"}),e.createTextVNode(" 基本指标 ")],-1)),P$=["onClick"],U$=dd(()=>e.createElementVNode("i",{class:"ri-lightbulb-line"},null,-1)),W$={key:1},G$={class:"flex items-center mb-2 text-sm indicators-title"},H$={class:"overflow-y-auto max-h-96"},Y$=["onClick"],X$={class:"field-label"},q$=dd(()=>e.createElementVNode("i",{class:"ri-add-fill"},null,-1)),J$=e.defineComponent({__name:"model-table-summary",props:{modelValue:{default:()=>[]},iconMap:{default:()=>{}},list:{default:()=>[]}},emits:["update:modelValue"],setup(t,{emit:n}){const r=t,o=n,{proxy:i}=e.getCurrentInstance();e.inject("chartList");const a=e.ref(!1),l=e.ref(1),c=e.ref(null),s=e.ref([{label:"行数",value:"count",tip:"数据的总行数"},{label:"总和",value:"sum",tip:"列的所有值的总和"},{label:"平均值",value:"avg",tip:"列的所有值的平均值"},{label:"最少",value:"min",tip:"列的最小值"},{label:"最大",value:"max",tip:"列的最大值"},{label:"计算公式",value:"exp",tip:"可手动输入计算公式"}]);e.watch(a,h=>{h&&(u.value={},l.value=1)});const d=h=>{o("update:modelValue",r.modelValue.filter(_=>_.showLabel!==h.showLabel))},f=(h,_)=>{h.aggType=="exp"&&e.unref(c).init({data:h,index:_})},u=e.ref({}),p=h=>{if(h.value==="count"){if(r.modelValue.some(_=>_.aggType==h.value)){i.$message({type:"warning",message:"存在重复数据",plain:!0});return}o("update:modelValue",[...r.modelValue,{identifier:1,aggType:h.value,showLabel:h.label}]),a.value=!1;return}if(h.value=="exp"){e.unref(c).init();return}l.value=2,u.value=h},m=h=>{var _,g;if(r.modelValue.some(v=>{var b;return v.identifier==h.identifier&&v.aggType==((b=e.unref(u))==null?void 0:b.value)})){i.$message({type:"warning",message:"存在重复数据",plain:!0});return}a.value=!1,o("update:modelValue",[...r.modelValue,{identifier:h.identifier,comment:h.columnComment,aggType:(_=e.unref(u))==null?void 0:_.value,showLabel:h.columnComment+((g=e.unref(u))==null?void 0:g.label)}])};return(h,_)=>{const g=e.resolveComponent("AppHeader");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(g,{title:"汇总方式",class:"mb-2"}),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.modelValue,(v,b)=>(e.openBlock(),e.createBlock(e.unref(S.ElTag),{key:v.value,class:e.normalizeClass(["m-1",[v.aggType=="exp"?"cursor-pointer":""]]),closable:!0,onClick:y=>f(v,b),onClose:y=>d(v),type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(v.showLabel),1)]),_:2},1032,["onClick","class","onClose"]))),128)),e.createVNode(e.unref(S.ElPopover),{trigger:"click",width:"300px",placement:"top-start",visible:e.unref(a),"onUpdate:visible":_[1]||(_[1]=v=>e.isRef(a)?a.value=v:null)},{reference:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary",class:"ml-1",size:"small"},{default:e.withCtx(()=>[q$,e.createTextVNode(" "+e.toDisplayString(h.modelValue.length?"":"添加度量"),1)]),_:1})]),default:e.withCtx(()=>[e.unref(l)==1?(e.openBlock(),e.createElementBlock("div",F$,[j$,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),v=>(e.openBlock(),e.createElementBlock("div",{onClick:b=>p(v),key:v.value,class:e.normalizeClass([{active:e.unref(u).value==v.value},"indicators-item"])},[e.createTextVNode(e.toDisplayString(v.label)+" ",1),e.createVNode(e.unref(S.ElTooltip),{effect:"dark",content:v.tip,placement:"top"},{default:e.withCtx(()=>[U$]),_:2},1032,["content"])],10,P$))),128))])):e.createCommentVNode("",!0),e.unref(l)==2?(e.openBlock(),e.createElementBlock("div",W$,[e.createElementVNode("div",G$,[e.createElementVNode("i",{class:"mr-1 text-xl cursor-pointer ri-arrow-left-s-line",onClick:_[0]||(_[0]=v=>l.value=1)}),e.createTextVNode(" "+e.toDisplayString(e.unref(u).label),1)]),e.createElementVNode("div",H$,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.list,v=>(e.openBlock(),e.createElementBlock("div",{onClick:b=>m(v),key:v.identifier,class:"indicators-item"},[e.createElementVNode("div",null,[e.createElementVNode("i",{class:e.normalizeClass([h.iconMap[v.dataType],"mr-2"])},null,2),e.createElementVNode("span",X$,e.toDisplayString(v.columnComment),1)])],8,Y$))),128))])])):e.createCommentVNode("",!0)]),_:1},8,["visible"]),e.createVNode(L$,{ref_key:"modelPercentRef",ref:c,options:r.list,onSuccess:_[2]||(_[2]=(v,b)=>b?r.modelValue[b]=v:o("update:modelValue",[...r.modelValue,v]))},null,8,["options"])])],64)}}}),tT="",K$=ke(J$,[["__scopeId","data-v-b882964e"]]),xm=e.defineComponent({__name:"chart-list-widget",props:{type:{default:""}},setup(t){const{proxy:n}=e.getCurrentInstance(),{echartsTypeList:r}=n.$globalUtils,o=e.inject("chartList"),i=a=>{n.$baseEventBus.emit("model-chart-click",a)};return(a,l)=>(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),c=>(e.openBlock(),e.createBlock(e.unref(S.ElButton),{type:a.type==c.type?"primary":"",key:c.type,onClick:s=>i(c)},{default:e.withCtx(()=>{var s;return[e.createElementVNode("i",{class:e.normalizeClass((s=e.unref(r)[c.type])==null?void 0:s.icon)},null,2)]}),_:2},1032,["type","onClick"]))),128))}}),fa=t=>(e.pushScopeId("data-v-57e12dc5"),t=t(),e.popScopeId(),t),Z$={class:"flex w-full h-full"},Q$={class:"flex flex-col flex-1 overflow-hidden"},eD={class:"flex flex-col flex-1 pb-3 pr-3 overflow-y-auto"},tD={key:0,class:"relative flex items-center justify-center pannel h-14"},nD={class:"absolute left-5 top-3"},rD=fa(()=>e.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),oD=fa(()=>e.createElementVNode("i",{class:"ri-table-line"},null,-1)),iD={class:"absolute flex items-center right-5 top-4"},aD=fa(()=>e.createElementVNode("i",{class:"mr-1 ri-settings-2-line"},null,-1)),lD={class:"ml-2 mr-2"},cD={class:"flex flex-col"},dD={class:"flex-1 overflow-y-auto"},sD={key:0,class:"flex items-center justify-center pannel h-14"},fD=fa(()=>e.createElementVNode("i",{class:"mr-1 ri-save-line"},null,-1)),uD=e.defineComponent({__name:"table-widget",props:{modelValue:{default:""},title:{default:""},sortHtml:{default:""},indicatorsId:{default:""},resultTitle:{default:""},dynamicSearchForm:{default:()=>[]}},emits:["update:modelValue","update:title","update:sortHtml","update:resultTitle","update:indicatorsId","update:dynamicSearchForm","success"],setup(t,{expose:n,emit:r}){const o=t,i=r,a=Te(),{proxy:l}=e.getCurrentInstance(),{setFormValue:c,getFormValue:s}=l.$globalHooks.useForm(),{dynamicSearchForm:d,dynamicSearchFormat:f,dynamicSearchParams:u}=l.$globalHooks.useDynamicSearch(),p=e.inject("modelEle"),m=e.inject("getListModelIndicators");e.inject("chartList");const h={varchar:"ri-text",date:"ri-calendar-2-line",datetime:"ri-calendar-2-line",int:"ri-hashtag",decimal:"ri-hashtag"},_={day:"按日",week:"按周",month:"按月",quarter:"按季度",year:"按年","":"按时分秒"},g=e.ref(!1),v=e.ref(!0),b=e.ref(0),y=e.ref([]),w=e.ref([]),C=e.ref([]),x=e.ref([]),V=e.ref(!0),E=e.ref(!0),$=async U=>{var Q,ne;V.value=!0,E.value=!1;const W=JSON.parse((U==null?void 0:U.groupArgsJson)??"[]");x.value=JSON.parse((U==null?void 0:U.aggArgsJson)??JSON.stringify([{identifier:1,aggType:"count",showLabel:"行数"}])),W.length||(V.value=!1),b.value=(U==null?void 0:U.pageSize)??20,z.value=JSON.parse((U==null?void 0:U.sortArgsJson)??"{}"),U!=null&&U.formConfJson?(d.value=f(JSON.parse(U.formConfJson??"[]")),i("update:dynamicSearchForm",d.value)):await Ee(l).getFormJsonConfig((Q=e.unref(p))==null?void 0:Q.id).then(re=>{var Y;d.value=f(JSON.parse(((Y=re.data)==null?void 0:Y.formConfJson)??"[]"))}),i("update:dynamicSearchForm",d.value),c(U,P),l.$baseHttp.post("/api/ace-data-center/aidc/modelAnalysis",{projectId:l.$baseGetCurrentProjectId,modelId:(ne=e.unref(p))==null?void 0:ne.id,serialId:new Date().getTime()}).then(re=>{v.value=!1,y.value=re.data.filter(Y=>!["创建时间","创建人","所属项目","创建部门","标签"].includes(Y.columnComment)).map(Y=>({...Y,dateFormatType:["date","datetime"].includes(Y.dataType)?"day":""})),C.value=re.data.filter(Y=>["ADDABLE","SEMIADDABLE"].includes(Y.quantityType)),W.forEach(Y=>{const Z=y.value.find(_e=>_e.identifier==Y.identifier);Z&&(w.value.push({...Z,dataType:Y.dataType,dateFormatType:Y.dateFormatType}),Z.dateFormatType=Y.dateFormatType)}),V.value=!1,setTimeout(()=>{E.value=!0},1e3)})};e.watch([x,w],()=>{e.unref(E)&&(z.value={}),N()},{deep:!0});let B=null;const R=e.ref(null),T=e.ref(!1),k=e.ref([]),O=e.ref([]),N=async()=>{clearTimeout(B),B=setTimeout(async()=>{var re,Y;O.value=[],a.setChartData([]);const U=D(),W=Object.keys(e.unref(z)).map(Z=>({field:Z,type:e.unref(z)[Z]=="ascending"?"asc":"desc"})),Q={aggArgsJson:JSON.stringify(e.unref(x)),groupArgsJson:JSON.stringify(U),sortArgsJson:JSON.stringify(W),params:u(e.unref(d)),pageSize:e.unref(b),modelId:(re=e.unref(p))==null?void 0:re.id};if(o.indicatorsId&&(Q.modelIndicatorsId=o.indicatorsId),i("update:title",`${e.unref(x).length}个指标:${e.unref(x).length?"根据":""}${U.map(Z=>Z.showLabel).toString()}${e.unref(x).length?"分组的":""}${e.unref(x).filter((Z,_e)=>_e<3).map(Z=>Z.showLabel).toString()}${e.unref(x).length>3?"...":""}`),!e.unref(x).length||e.unref(V)){k.value=[];return}T.value=!0;const ne=await l.$baseHttp.post("/api/ace-data-center/model-indicators/debug",Q);R.value=Q,T.value=!1,ne&&(k.value=((Y=ne.data)==null?void 0:Y.records)??[],a.setChartData({x:U,y:e.unref(x),params:Q}),e.unref(k).length&&Object.keys(e.unref(k)[0]).forEach(Z=>{O.value.push({label:Z,prop:Z,sortable:"custom"})}))})},D=()=>e.unref(w).map(U=>({identifier:U.identifier,comment:U.columnComment,showLabel:U.columnComment+(_[U.dateFormatType]??""),dateFormatType:U.dateFormatType||null})),z=e.ref({}),I=({column:U})=>{e.unref(z)[U.property]&&(U.order=e.unref(z)[U.property])};e.watch(z,U=>{const W=Object.keys(U).map(Q=>`${Q}${U[Q]=="descending"?"降序":"升序"}`);i("update:sortHtml",W.length?`<span class="text-color-warning">排序:${W.toString()}</span>`:"")},{deep:!0});const M=U=>{const{prop:W,order:Q}=U;!Q||e.unref(z)[W]===Q?delete e.unref(z)[W]:e.unref(z)[W]=Q,N()};Ee(l).loadIndicatorsMenu().then(U=>{P.find(W=>W.fieldName=="tags").options=Object.keys(U.data).map(W=>({label:W,value:W}))});const P=e.reactive([{name:"名称",type:Fn.Text,fieldName:"name",value:"",required:!0},{name:"描述",type:Fn.Textarea,fieldName:"remark",value:""},{name:"标签",type:Fn.Select,fieldName:"tags",value:"",options:[],multiple:!0,allowCreate:!0,required:!0,placeholder:"请选择标签或输入标签"},{name:"code",type:Fn.Text,fieldName:"code",value:"",hide:!0}]),F=e.ref(!1),G=()=>{P.find(U=>U.fieldName=="remark").value=o.title,F.value=!0},H=async()=>{var re;const{params:U,error:W}=s(P);if(W.length>0)return;const Q=D();if(!Q.length||!e.unref(x).length){l.$message({type:"warning",message:"计算维度或汇总方式不能为空",plain:!0});return}U.code||(U.code=ua()),U.groupArgsJson=JSON.stringify(Q),U.aggArgsJson=JSON.stringify(e.unref(x)),U.modelId=(re=e.unref(p))==null?void 0:re.id,U.projectId=l.$baseGetCurrentProjectId,U.pageSize=e.unref(b),U.formConfJson=JSON.stringify(e.unref(d)),U.sortArgsJson=JSON.stringify(e.unref(z)),o.indicatorsId&&(U.id=o.indicatorsId),F.value=!1;const ne=await l.$baseHttp.post(`/api/ace-data-center/model-indicators/${o.indicatorsId?"update":"save"}`,U,{header:{loading:!0}});ne&&(o.indicatorsId||i("update:indicatorsId",ne.data),i("update:resultTitle",U.name),l.$message({type:"success",message:"操作成功",plain:!0}),c(U,P),m())},X=()=>{i("update:modelValue","chart")},J=()=>{l.$baseExportExcel({title:o.title,url:"/api/ace-data-center/model-indicators/debug",header:e.unref(O),customParams:e.unref(R)})};return n({init:$,dynamicSearchForm:d,handlePopupForm:G,handleSubmit:H}),(U,W)=>{var ae,se;const Q=e.resolveComponent("AppDynamicSearch"),ne=e.resolveComponent("AppTable"),re=e.resolveComponent("AppEmpty"),Y=e.resolveComponent("AppDynamicList"),Z=e.resolveComponent("AppForm"),_e=e.resolveComponent("AppDialog");return e.openBlock(),e.createElementBlock("div",Z$,[e.createElementVNode("div",Q$,[e.createElementVNode("div",eD,[e.unref(x).length?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(Q,{class:"mb-2.5",form:e.unref(d),onSuccess:W[0]||(W[0]=oe=>N())},null,8,["form"]),e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(T),animated:""},{default:e.withCtx(()=>[e.unref(O).length?(e.openBlock(),e.createBlock(ne,{key:0,tableData:e.unref(O),list:e.unref(k),loading:!1,headerCellClassName:I,onSortChange:M},null,8,["tableData","list"])):(e.openBlock(),e.createBlock(re,{key:1,description:"暂无数据",class:"mt-4"}))]),_:1},8,["loading"])],64)):(e.openBlock(),e.createBlock(Y,{key:1,id:(ae=e.unref(p))==null?void 0:ae.id,title:(se=e.unref(p))==null?void 0:se.modelName,showPageIndex:!0},null,8,["id","title"]))]),e.unref(x).length?(e.openBlock(),e.createElementBlock("div",tD,[e.createElementVNode("div",nD,[e.createVNode(e.unref(S.ElTooltip),{effect:"dark",content:"保存汇总配置后可设置",placement:"top",visible:e.unref(g)},{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{disabled:U.indicatorsId=="",type:"warning",style:{padding:"0 10px"},onMouseenter:W[1]||(W[1]=oe=>{U.indicatorsId||(g.value=!0)}),onMouseleave:W[2]||(W[2]=oe=>g.value=!1),onClick:X},{default:e.withCtx(()=>[e.createTextVNode(" 图表配置 "),rD]),_:1},8,["disabled"])]),_:1},8,["visible"])]),e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary"},{default:e.withCtx(()=>[oD]),_:1}),e.createVNode(xm)]),_:1}),e.createElementVNode("div",iD,[e.createVNode(e.unref(S.ElLink),{type:"primary"},{default:e.withCtx(()=>[aD,e.createTextVNode(" 显示前 "),e.createElementVNode("div",lD,[e.createVNode(e.unref(S.ElInputNumber),{size:"small",style:{width:"100px"},modelValue:e.unref(b),"onUpdate:modelValue":W[3]||(W[3]=oe=>e.isRef(b)?b.value=oe:null),onChange:W[4]||(W[4]=oe=>N()),min:1,max:9999999},null,8,["modelValue"])]),e.createTextVNode(" 条聚合数据 ")]),_:1}),e.unref(O).length?(e.openBlock(),e.createElementBlock("i",{key:0,class:"ml-2 cursor-pointer ri-download-2-line text-color-warning",onClick:J})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),e.createElementVNode("aside",cD,[e.createElementVNode("div",dD,[e.createVNode(K$,{list:e.unref(C),modelValue:e.unref(x),"onUpdate:modelValue":W[5]||(W[5]=oe=>e.isRef(x)?x.value=oe:null),iconMap:h},null,8,["list","modelValue"]),e.withDirectives(e.createElementVNode("div",null,[e.createVNode(k$,{loading:e.unref(v),list:e.unref(y),iconMap:h,calendarType:_,modelValue:e.unref(w),"onUpdate:modelValue":W[6]||(W[6]=oe=>e.isRef(w)?w.value=oe:null)},null,8,["loading","list","modelValue"])],512),[[e.vShow,e.unref(x).length]])]),e.unref(x).length?(e.openBlock(),e.createElementBlock("div",sD,[e.createVNode(e.unref(S.ElButton),{type:"primary",onClick:G},{default:e.withCtx(()=>[fD,e.createTextVNode(" 完 成 ")]),_:1})])):e.createCommentVNode("",!0),e.createVNode(_e,{modelValue:e.unref(F),"onUpdate:modelValue":W[8]||(W[8]=oe=>e.isRef(F)?F.value=oe:null),title:"保存指标",size:800},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{class:"ml-3",type:"primary",onClick:H},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:W[7]||(W[7]=oe=>F.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1})]),default:e.withCtx(()=>[e.createVNode(Z,{form:e.unref(P),col:1},null,8,["form"])]),_:1},8,["modelValue"])])])}}}),nT="",pD=ke(uD,[["__scopeId","data-v-57e12dc5"]]),Vm=t=>(e.pushScopeId("data-v-cc083189"),t=t(),e.popScopeId(),t),hD={class:"chart-container flex flex-wrap"},mD=["onClick"],gD=["onClick"],_D=[Vm(()=>e.createElementVNode("i",{class:"ri-settings-2-line ml-1"},null,-1))],vD={key:0,class:"success setting"},yD=[Vm(()=>e.createElementVNode("i",{class:"ri-check-line ml-1"},null,-1))],bD={class:"label"},wD=e.defineComponent({__name:"model-chart-menu",props:{modelValue:{default:""}},emits:["click-chart-setting","update:modelValue"],setup(t,{emit:n}){const{proxy:r}=e.getCurrentInstance(),{echartsTypeList:o}=r.$globalUtils,i=[{...o[3],key:"3"},...Object.keys(o).filter(d=>d!="3").map(d=>({...o[d],key:d}))],a=e.inject("chartList"),l=n,c=d=>{l("update:modelValue",String(d))},s=d=>{l("update:modelValue",String(d)),l("click-chart-setting")};return(d,f)=>(e.openBlock(),e.createElementBlock("div",hD,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,u=>{var p;return e.createElementVNode("div",{class:"items",key:u.key,onClick:m=>c(u.key)},[e.createElementVNode("div",{class:e.normalizeClass(["icon",{active:d.modelValue==u.key}])},[e.createElementVNode("i",{class:e.normalizeClass(u.icon)},null,2),e.createElementVNode("div",{class:"setting",onClick:e.withModifiers(m=>s(u.key),["stop"])},_D,8,gD),(p=e.unref(a))!=null&&p.some(m=>m.type==u.key)?(e.openBlock(),e.createElementBlock("div",vD,yD)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",bD,e.toDisplayString(u.name),1)],8,mD)}),64))]))}}),iT="",CD=ke(wD,[["__scopeId","data-v-cc083189"]]),SD=e.defineComponent({__name:"model-chart-setting",props:{option:{default:{}},type:{default:""}},emits:["close"],setup(t,{expose:n,emit:r}){const o=t,i=r,{proxy:a}=e.getCurrentInstance(),{chartJsonToStringFormat:l}=a.$globalUtils,c=e.ref(""),s=e.inject("indicatorsId"),d=e.inject("getListModelIndicators"),f=e.inject("getChartWidgetList"),u=e.computed(()=>({3:om,2:am,1:im,4:dm,5:lm,6:cm,7:sm,8:fm,9:um})[o.type]??null),p=e.ref(!1),m=()=>{c.value="data",p.value=!0},h=async()=>{o.option.tooltip&&(delete o.option.tooltip.valueFormatter,delete o.option.tooltip.formatter),o.type=="9"&&delete o.option.series[2].label.formatter,await a.$baseHttp.post("/api/ace-data-center/model-indicators-echarts/save",{modelIndicatorsId:e.unref(s),echartsType:o.type,echartsConfig:l({...o.option,customSeriesData:window.customSeriesData,dataset:{...o.option.dataset,source:[]}})},{headers:{loading:!0}})&&(a.$message({type:"success",message:"操作成功",plain:!0}),f(),d(),p.value=!1,i("close"))},_=()=>{p.value=!1};return n({init:m,handleSubmit:h}),(g,v)=>{const b=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(b,{modelValue:e.unref(p),"onUpdate:modelValue":v[3]||(v[3]=y=>e.isRef(p)?p.value=y:null),withHeader:!1,modal:!1,direction:"ltr",size:"300px",modalClass:"ace-modal-drawer"},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary",onClick:v[1]||(v[1]=y=>h())},{default:e.withCtx(()=>[e.createTextVNode("保存")]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:v[2]||(v[2]=y=>_())},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1})]),default:e.withCtx(()=>[e.createVNode(e.unref(S.ElCollapse),{accordion:"",modelValue:e.unref(c),"onUpdate:modelValue":v[0]||(v[0]=y=>e.isRef(c)?c.value=y:null)},{default:e.withCtx(()=>[e.unref(u)?(e.openBlock(),e.createBlock(e.unref(u),{key:0,option:o.option,type:g.type},null,8,["option","type"])):e.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}}),aT="",xD=ke(SD,[["__scopeId","data-v-4ca94e51"]]),sd=t=>(e.pushScopeId("data-v-62d3f63a"),t=t(),e.popScopeId(),t),VD={class:"flex w-full h-full"},ED={class:"flex-1"},kD={key:0,class:"flex items-center justify-center pannel h-14"},ND=sd(()=>e.createElementVNode("i",{class:"mr-1 ri-save-line"},null,-1)),$D={class:"flex flex-col flex-1 overflow-hidden"},DD={class:"relative flex flex-col flex-1 pb-3 pl-3"},BD={class:"relative flex items-center justify-center pannel h-14"},TD={key:0,class:"absolute left-5 top-3"},OD=sd(()=>e.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),ID=sd(()=>e.createElementVNode("i",{class:"ri-table-line"},null,-1)),zD=e.defineComponent({__name:"chart-widget",props:{modelValue:{default:""},dynamicSearchForm:{default:()=>[]}},emits:["update:modelValue"],setup(t,{expose:n,emit:r}){const o=r,{proxy:i}=e.getCurrentInstance(),a=e.inject("chartList"),{option:l,formatChart:c}=yt(),s=e.ref(""),d=e.ref(null),f=e.ref(!1),u=()=>{if(e.unref(s)==""){i.$message({type:"warning",message:"请选择图表",plain:!0});return}const g=setInterval(()=>{e.unref(f)&&(e.unref(d).init(),clearInterval(g))},20)};e.watch(s,async g=>{var b;if(l.value={},f.value=!1,g==""){f.value=!0;return}const v=(b=e.unref(a))==null?void 0:b.find(y=>y.type==g);await c((v==null?void 0:v.code)??"",g),f.value=!0});const p=e.ref(!1);i.$baseEventBus.on("model-chart-click",async g=>{p.value=!0,o("update:modelValue","chart"),s.value=g.type,setTimeout(()=>{p.value=!1},100)});const m=()=>{if(e.unref(a).length>0){e.unref(p)||(s.value=e.unref(a)[0].type),f.value=!0;return}s.value="3"},h=()=>{const g=s.value;s.value="",setTimeout(()=>{s.value=g},10)},_=()=>{s.value="",o("update:modelValue","table")};return n({init:m}),(g,v)=>{var w;const b=e.resolveComponent("AppDynamicSearch"),y=e.resolveComponent("aceCustomChart");return e.openBlock(),e.createElementBlock("div",VD,[e.createElementVNode("aside",null,[e.createElementVNode("div",ED,[e.createVNode(CD,{modelValue:e.unref(s),"onUpdate:modelValue":v[0]||(v[0]=C=>e.isRef(s)?s.value=C:null),onClickChartSetting:u},null,8,["modelValue"])]),(w=e.unref(a))!=null&&w.some(C=>C.type==e.unref(s))?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",kD,[e.createVNode(e.unref(S.ElButton),{type:"primary",onClick:v[1]||(v[1]=C=>e.unref(d).handleSubmit())},{default:e.withCtx(()=>[ND,e.createTextVNode(" 保 存 ")]),_:1})]))]),e.createElementVNode("div",$D,[e.createElementVNode("div",DD,[e.createVNode(e.unref(S.ElSkeleton),{loading:!e.unref(f),animated:""},{default:e.withCtx(()=>[e.createVNode(b,{class:"mb-2.5",form:g.dynamicSearchForm,search:!1,disabled:""},null,8,["form"]),e.createVNode(y,{option:e.unref(l),chartType:e.unref(s)},null,8,["option","chartType"])]),_:1},8,["loading"])]),e.createElementVNode("div",BD,[e.unref(l)?(e.openBlock(),e.createElementBlock("div",TD,[e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary",style:{padding:"0 10px"}},{default:e.withCtx(()=>[e.createTextVNode("可视化")]),_:1}),e.createVNode(e.unref(S.ElButton),{type:"",style:{padding:"0 10px"},onClick:u},{default:e.withCtx(()=>[OD]),_:1})]),_:1})])):e.createCommentVNode("",!0),e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"",onClick:_},{default:e.withCtx(()=>[ID]),_:1}),e.createVNode(xm,{type:e.unref(s)},null,8,["type"])]),_:1})])]),e.unref(s)?(e.openBlock(),e.createBlock(xD,{key:0,ref_key:"modelChartSettingRef",ref:d,option:e.unref(l),type:e.unref(s),onClose:h},null,8,["option","type"])):e.createCommentVNode("",!0)])}}}),lT="",RD=ke(zD,[["__scopeId","data-v-62d3f63a"]]),Em=t=>(e.pushScopeId("data-v-67eeb431"),t=t(),e.popScopeId(),t),MD={class:"design"},AD={class:"design-header"},LD={class:"flex-1"},FD={class:"text-xs text-color-info mt-2"},jD=["innerHTML"],PD={class:"flex"},UD={class:"mr-2"},WD=Em(()=>e.createElementVNode("i",{class:"ri-settings-2-line mr-1"},null,-1)),GD=Em(()=>e.createElementVNode("i",{class:"ri-close-line mr-1"},null,-1)),HD={class:"design-container flex-1 overflow-hidden p-3 flex"},YD=e.defineComponent({__name:"index",emits:["close"],setup(t,{expose:n,emit:r}){const{proxy:o}=e.getCurrentInstance(),i=e.ref(!1),a=e.ref(!1),l=e.ref(),c=e.ref(null),s=e.ref(null),d=e.ref(null),f=e.ref([]),u=e.ref("0个指标"),p=e.ref(""),m=e.ref(""),h=e.ref([]),_=r;e.watch(i,V=>{V||o.$baseEventBus.off("model-chart-click")}),e.provide("indicatorsId",m);const g=e.inject("modelEle"),v=e.ref(""),b=async V=>{var $;let E={};l.value="table",m.value=V,h.value=[],f.value=[],e.unref(m)&&(E=await y(),w()),i.value=!0,v.value=($=E==null?void 0:E.data)==null?void 0:$.name,e.nextTick(()=>{e.unref(c).init((E==null?void 0:E.data)??{})})};e.watch(l,V=>{V=="chart"&&e.unref(s).init()});const y=async()=>await o.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${e.unref(m)}`,{headers:{loading:!0}}),w=async()=>{o.$baseHttp.post(`/api/ace-data-center/model-indicators-echarts/getEchartsTypes/${e.unref(m)}`).then(V=>{h.value=V.data})};e.provide("getChartWidgetList",w),e.provide("chartList",h);const C=()=>{o.$baseConfirm({content:"是否确定关闭",callConfirm:async()=>{i.value=!1,e.unref(m)&&_("close")}})},x=V=>{f.value=V,e.unref(c).dynamicSearchForm=V,e.unref(c).handleSubmit()};return n({init:b}),(V,E)=>{const $=e.resolveComponent("AppHeader"),B=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(B,{modelValue:e.unref(i),"onUpdate:modelValue":E[11]||(E[11]=R=>e.isRef(i)?i.value=R:null),withHeader:!1,size:"100%",modalClass:"ace-modal-drawer"},{default:e.withCtx(()=>{var R,T;return[e.createElementVNode("div",MD,[e.createElementVNode("div",AD,[e.createElementVNode("div",LD,[e.createVNode($,{title:e.unref(l)=="table"?e.unref(u):`${e.unref(v)}【${e.unref(u)}】`},e.createSlots({_:2},[e.unref(h).length?{name:"left",fn:e.withCtx(()=>[e.createElementVNode("i",{onClick:E[0]||(E[0]=k=>e.unref(c).handlePopupForm()),class:"ri-edit-box-line ml-2 text-color-primary cursor-pointer text-base"})]),key:"0"}:void 0]),1032,["title"]),e.createElementVNode("div",FD,[e.createTextVNode(" 模型数据 / "+e.toDisplayString((R=e.unref(g))==null?void 0:R.modelName)+" ["+e.toDisplayString((T=e.unref(g))==null?void 0:T.modelCode)+"] ",1),e.createElementVNode("span",{class:"ml-2",innerHTML:e.unref(p)},null,8,jD)])]),e.createElementVNode("div",PD,[e.withDirectives(e.createElementVNode("div",UD,[e.createVNode(e.unref(S.ElPopover),{placement:"bottom",visible:e.unref(a),"onUpdate:visible":E[2]||(E[2]=k=>e.isRef(a)?a.value=k:null),trigger:"click",width:"900px",teleported:!1},{reference:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"warning"},{default:e.withCtx(()=>[WD,e.createTextVNode(" 筛选配置 ")]),_:1})]),default:e.withCtx(()=>[e.createVNode(Sm,{ref_key:"customSearchRef",ref:d,customSearchVisible:e.unref(a),"onUpdate:customSearchVisible":E[1]||(E[1]=k=>e.isRef(a)?a.value=k:null),onDynamicSearchFormUpdate:x,dynamicSearchForm:e.unref(f)},null,8,["customSearchVisible","dynamicSearchForm"])]),_:1},8,["visible"])],512),[[e.vShow,e.unref(l)=="table"&&e.unref(u)!="0个指标:"]]),e.createVNode(e.unref(S.ElButton),{onClick:C},{default:e.withCtx(()=>[GD,e.createTextVNode(" 关闭 ")]),_:1})])]),e.createElementVNode("div",HD,[e.withDirectives(e.createVNode(pD,{ref_key:"tableWidgetRef",ref:c,modelValue:e.unref(l),"onUpdate:modelValue":E[3]||(E[3]=k=>e.isRef(l)?l.value=k:null),indicatorsId:e.unref(m),"onUpdate:indicatorsId":E[4]||(E[4]=k=>e.isRef(m)?m.value=k:null),title:e.unref(u),"onUpdate:title":E[5]||(E[5]=k=>e.isRef(u)?u.value=k:null),resultTitle:e.unref(v),"onUpdate:resultTitle":E[6]||(E[6]=k=>e.isRef(v)?v.value=k:null),sortHtml:e.unref(p),"onUpdate:sortHtml":E[7]||(E[7]=k=>e.isRef(p)?p.value=k:null),dynamicSearchForm:e.unref(f),"onUpdate:dynamicSearchForm":E[8]||(E[8]=k=>e.isRef(f)?f.value=k:null)},null,8,["modelValue","indicatorsId","title","resultTitle","sortHtml","dynamicSearchForm"]),[[e.vShow,e.unref(l)=="table"]]),e.withDirectives(e.createVNode(RD,{ref_key:"chartWidgetRef",ref:s,dynamicSearchForm:e.unref(f),"onUpdate:dynamicSearchForm":E[9]||(E[9]=k=>e.isRef(f)?f.value=k:null),modelValue:e.unref(l),"onUpdate:modelValue":E[10]||(E[10]=k=>e.isRef(l)?l.value=k:null)},null,8,["dynamicSearchForm","modelValue"]),[[e.vShow,e.unref(l)=="chart"]])])])]}),_:1},8,["modelValue"])}}}),cT="",km=ke(YD,[["__scopeId","data-v-67eeb431"]]),XD=e.createElementVNode("i",{class:"ri-search-line"},null,-1),qD={class:"mt-3"},JD={key:0,class:"mr-1 -ml-5 text-base ri-checkbox-circle-fill text-color-success"},KD={key:1,class:"mr-1 -ml-5 text-base ri-error-warning-fill text-color-warning"},ZD=e.defineComponent({__name:"menu",props:{tempId:{default:""}},emits:["node-click"],setup(t,{expose:n,emit:r}){const o=t,{proxy:i}=e.getCurrentInstance(),a=e.ref(""),l=e.ref(null),c=e.ref(null),s=r;e.watch(a,m=>{e.unref(c).filter(m)});const d=(m,h)=>m?h.name.includes(m):!0,f=e.ref(!1),u=()=>{l.value=[],f.value=!0,Ee(i).loadIndicatorsMenu().then(m=>{l.value=Object.keys(m.data).map(_=>({name:_,id:_,children:m.data[_]}));let h;f.value=!1,e.unref(l).length&&e.nextTick(()=>{var _;o.tempId?h=e.unref(c).getNode(o.tempId):h=e.unref(c).getNode((_=e.unref(l)[0].children[0])==null?void 0:_.id),h&&(p(h==null?void 0:h.data),e.unref(c).setCurrentKey(h==null?void 0:h.data.id))})})};u();const p=m=>{Array.isArray(m.children)||s("node-click",m)};return n({init:u}),(m,h)=>{const _=e.resolveComponent("AppEmpty");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(S.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:e.unref(a),"onUpdate:modelValue":h[0]||(h[0]=g=>e.isRef(a)?a.value=g:null)},{prefix:e.withCtx(()=>[XD]),_:1},8,["modelValue"]),e.createElementVNode("div",qD,[e.unref(f)?(e.openBlock(),e.createBlock(e.unref(S.ElSkeleton),{key:0,animated:"",count:2})):(e.openBlock(),e.createBlock(e.unref(S.ElTree),{key:1,class:"animated fadeIn",ref_key:"treeRef",ref:c,data:e.unref(l),"node-key":"id","default-expand-all":"","highlight-current":"","filter-node-method":d,onNodeClick:p},{default:e.withCtx(({node:g,data:v})=>[Array.isArray(v.children)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[v.normal?(e.openBlock(),e.createElementBlock("i",JD)):(e.openBlock(),e.createElementBlock("i",KD))],64)),e.createElementVNode("span",{class:e.normalizeClass({"font-bold":g.level==1})},e.toDisplayString(v.name),3)]),empty:e.withCtx(()=>[e.createVNode(_,{description:"暂无数据"})]),_:1},8,["data"]))])],64)}}}),QD={class:"rule-list"},e8={key:0,class:"flex items-center"},t8=e.createElementVNode("i",{class:"ri-error-warning-fill text-2xl text-color-warning mr-2"},null,-1),n8={key:1,class:"flex items-center"},r8=e.createElementVNode("i",{class:"ri-checkbox-circle-fill text-2xl text-color-success mr-2"},null,-1),Nm=e.defineComponent({__name:"rule",props:{ruleList:{default:()=>[]}},setup(t){const{proxy:n}=e.getCurrentInstance(),r=e.ref(!1),o=e.ref(""),i=e.ref([]),a=s=>{o.value=`/api/ace-data-center/rule/ruleDataView?ruleId=${s}`,r.value=!0},l=s=>{e.unref(i).length==0&&Object.keys(s.data[0]).forEach(d=>{if(d==="pageIndex"){i.value.unshift({label:"序号",prop:"pageIndex",width:"80px"});return}i.value.push({label:d,prop:d})})},c=()=>{n.$baseExportExcel({title:"数据列表",url:e.unref(o),method:"get",header:e.unref(i)})};return(s,d)=>{const f=e.resolveComponent("AppHeader"),u=e.resolveComponent("AppList"),p=e.resolveComponent("AppDrawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",QD,[s.ruleList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{title:"智能诊断",class:"mb-5"}),e.createVNode(e.unref(S.ElAlert),{type:"warning",closable:!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.ruleList,m=>(e.openBlock(),e.createElementBlock("div",{key:m.id,class:"mt-0 text-sm"},[+m.rows>0?(e.openBlock(),e.createElementBlock("div",e8,[t8,e.createTextVNode(" "+e.toDisplayString(m.ruleName)+" 【异常数据"+e.toDisplayString(m.rows>99?"99+":m.rows)+"】 ",1),e.createVNode(e.unref(S.ElLink),{class:"ml-2",type:"primary",onClick:h=>a(m.id)},{default:e.withCtx(()=>[e.createTextVNode("查看明细")]),_:2},1032,["onClick"])])):(e.openBlock(),e.createElementBlock("div",n8,[r8,e.createTextVNode(" "+e.toDisplayString(m.ruleName)+" 【未检测到异常数据】 ",1)]))]))),128))]),_:1})],64)):e.createCommentVNode("",!0)]),e.createVNode(p,{modelValue:e.unref(r),"onUpdate:modelValue":d[1]||(d[1]=m=>e.isRef(r)?r.value=m:null),title:"数据列表"},{footer:e.withCtx(()=>[e.createVNode(e.unref(S.ElButton),{type:"primary",class:"ml-3",onClick:c},{default:e.withCtx(()=>[e.createTextVNode("导 出")]),_:1}),e.createVNode(e.unref(S.ElButton),{class:"ml-3",onClick:d[0]||(d[0]=m=>r.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("关 闭")]),_:1})]),default:e.withCtx(()=>[e.createVNode(u,{tableData:e.unref(i),url:e.unref(o),onSuccess:l},null,8,["tableData","url"])]),_:1},8,["modelValue"])],64)}}}),o8={key:1,class:"animated fadeIn"},i8={class:"flex items-center mt-5 mb-5 ml-2 moudle-1"},a8={key:0,class:"mr-1 text-xl ri-error-warning-fill text-color-warning"},l8={key:1,class:"mr-1 text-xl ri-checkbox-circle-fill text-color-success"},c8={class:"ml-1"},d8={class:"flex items-center select-type"},s8=["onClick"],f8={class:"mt-5 mb-5"},u8=e.defineComponent({__name:"analysis",props:{indicatorsId:{default:""}},emits:["rule-success"],setup(t,{emit:n}){const r=t;e.watch(()=>r.indicatorsId,()=>m());const o=n,{proxy:i}=e.getCurrentInstance(),{dynamicSearchForm:a,dynamicSearchFormat:l,dynamicSearchParams:c}=i.$globalHooks.useDynamicSearch(),{chartJsonFormat:s,echartsTypeList:d}=i.$globalUtils,f=e.ref(!0),u=e.ref([]),p=e.ref(null),m=async()=>{var x,V,E;f.value=!0,a.value=[],v.value={type:"",value:""},h.value=[],_.value="",w();const C=await Ee(i).detailAndTask(r.indicatorsId);p.value=C.data,(V=(x=C.data)==null?void 0:x.echartsDataVO)!=null&&V.config&&g(),(E=C==null?void 0:C.data)!=null&&E.formConfJson&&(a.value=l(JSON.parse(C==null?void 0:C.data.formConfJson))),f.value=!1},h=e.ref([]),_=e.ref(""),g=async()=>{var x;h.value=[],_.value="";const C=await Ee(i).getEchartDetail({indicatorsId:r.indicatorsId});C&&(Object.keys(((x=C.data)==null?void 0:x.clientEchartsType)??{}).forEach(V=>{var E;Object.values((E=C.data)==null?void 0:E.clientEchartsType[V]).forEach($=>{var B,R;h.value.push({client:V,label:(B=d[$])==null?void 0:B.name,icon:(R=d[$])==null?void 0:R.icon,value:`${V}_${$}`})})}),e.unref(h).length>0&&(_.value=e.unref(h)[0].value,y(e.unref(_))))},v=e.ref({type:"",value:""}),b=e.ref(!1),y=async(C,x=!1)=>{var B;_.value=C,x&&(b.value=!0);const V=c(e.unref(a)),E=C.split("_"),$=await Ee(i).pullEchartsDataVO({indicatorsId:r.indicatorsId,loadType:((B=e.unref(p))==null?void 0:B.loadType)??3,params:V,targetClient:E[0],echartsType:E[1]});if($){b.value=!1,e.unref(v).type=E[1];try{e.unref(v).value=s($.data.config)}catch{e.unref(v).value=$.data.config}}},w=async()=>{var x;u.value=[];const C=await Ee(i).getRule({current:1,size:100,businessType:"indicators",businessId:r.indicatorsId});u.value=((x=C.data)==null?void 0:x.records)??[],o("rule-success",u.value)};return m(),(C,x)=>{const V=e.resolveComponent("AppResourceVisitor"),E=e.resolveComponent("AppHeader"),$=e.resolveComponent("AppDynamicSearch"),B=e.resolveComponent("aceChart");return e.unref(f)?(e.openBlock(),e.createBlock(e.unref(S.ElSkeleton),{key:0,animated:""})):(e.openBlock(),e.createElementBlock("div",o8,[e.createVNode(E,{title:"指标计算"},{default:e.withCtx(()=>[e.createVNode(V,{businessType:"INDICATORS",businessld:r.indicatorsId},null,8,["businessld"])]),_:1}),e.createElementVNode("div",i8,[e.unref(u).some(R=>R.rows>0)?(e.openBlock(),e.createElementBlock("i",a8)):(e.openBlock(),e.createElementBlock("i",l8)),e.createElementVNode("span",c8,e.toDisplayString(e.unref(p).remark),1)]),e.createVNode(E,{title:"指标数据"},{default:e.withCtx(()=>[e.createElementVNode("div",d8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),R=>(e.openBlock(),e.createElementBlock("span",{onClick:T=>y(R.value,!0),class:e.normalizeClass(["flex items-center cursor-pointer",[R.value==e.unref(_)?"text-color-primary":"text-gray-600"]]),key:R.value},[e.createElementVNode("i",{class:e.normalizeClass([R.icon,"mr-1"])},null,2),e.createTextVNode(" "+e.toDisplayString(R.label),1)],10,s8))),128))])]),_:1}),e.createElementVNode("div",f8,[e.unref(a).length>0?(e.openBlock(),e.createBlock($,{key:0,form:e.unref(a),onSuccess:x[0]||(x[0]=R=>y(e.unref(_),!0)),class:"mb-0"},null,8,["form"])):e.createCommentVNode("",!0),e.createVNode(B,{type:e.unref(v).type,options:e.unref(v).value,loading:e.unref(b)},null,8,["type","options","loading"])]),e.createVNode(Nm,{ruleList:e.unref(u)},null,8,["ruleList"])]))}}}),dT="",$m=ke(u8,[["__scopeId","data-v-a2c0a4d6"]]),p8={class:"h-full"},h8=e.defineComponent({__name:"relation",setup(t){const{proxy:n}=e.getCurrentInstance(),r=e.ref(null),o=["#00ADD0","#FFA12F","#B62AFF","#604BFF","#6E35FF","#002AFF","#20C0F4","#95F300","#04FDB8","#AF5AFF"],i=(a,l,c="#00f6ff")=>a.map((s,d)=>{switch(s&&s.title&&(s.name=s.title),l==1&&(c=o.find((f,u)=>u==d%10)),(l===0||l===1)&&(s.label={position:"inside"}),l){case 0:s.symbolSize=70;break;case 1:s.symbolSize=50;break;default:s.symbolSize=10;break}return s.lineStyle={color:c},s.children?(s.itemStyle={borderColor:c,color:c},s.children=i(s.children,l+1,c)):s.itemStyle={color:"transparent",borderColor:c},s});return Ee(n).indicatorsRelationTree().then(a=>{if(!a.data.length){r.value={};return}r.value={type:"tree",toolbox:{show:!0,iconStyle:{borderColor:"#03ceda"},feature:{restore:{}}},tooltip:{trigger:"item",triggerOn:"mousemove",backgroundColor:"rgba(0,0,0,.8)",borderWidth:.5,textStyle:{fontSize:10,color:"#fff"}},series:[{type:"tree",hoverAnimation:!0,data:i([a==null?void 0:a.data[0]],0),top:10,bottom:10,left:10,right:10,layout:"radial",symbol:"circle",symbolSize:10,nodePadding:20,animationDurationUpdate:750,expandAndCollapse:!0,initialTreeDepth:2,roam:!0,focusNodeAdjacency:!0,itemStyle:{borderWidth:1},label:{color:"#000",fontSize:10,fontFamily:"SourceHanSansCN",position:"inside",rotate:0},lineStyle:{width:1,curveness:.5}}]}}),(a,l)=>{const c=e.resolveComponent("v-chart"),s=e.resolveDirective("loading");return e.withDirectives((e.openBlock(),e.createElementBlock("div",p8,[e.createVNode(c,{option:e.unref(r),autoresize:""},null,8,["option"])])),[[s,!e.unref(r)]])}}}),m8=e.createElementVNode("div",{class:"font-bold mt-8 mb-2"},"数据分析",-1),g8=e.defineComponent({__name:"yoy",props:{search:{default:()=>[]},originSearch:{default:()=>[]},chartType:{default:""},option:{default:null}},setup(t,{expose:n}){const r=t,o=Te(),{proxy:i}=e.getCurrentInstance(),{dynamicSearchForm:a,dynamicSearchFormat:l,dynamicSearchParams:c}=i.$globalHooks.useDynamicSearch(),s=["yySingle","yymmSingle","yymmddSingle"],{seriesItem:d}=da(),f=e.computed(()=>r.search.find(_=>s.includes(_.type))),u=e.computed(()=>{const _=e.unref(f)?Object.values(c([e.unref(f)])).every(g=>g==""):!1;return r.search.filter(g=>s.includes(g.type)).length==1&&!_}),p=e.ref("");e.watch(p,()=>m());const m=async()=>{var k;if(!e.unref(u)||e.unref(p)=="")return;const _=JSON.parse(JSON.stringify((k=o.getChartData)==null?void 0:k.params)),g=JSON.parse(JSON.stringify(r.search)),v=g.find(O=>s.includes(O.type)),b=r.originSearch.find(O=>s.includes(O.type)),w=JSON.parse((_==null?void 0:_.groupArgsJson)??"[]").find(O=>O.comment==r.option.dataShow.x);_.groupArgsJson=JSON.stringify([w]);const C=w.dateFormatType;switch(v.type){case"yymmSingle":v.value=dr(v.value).subtract(1,e.unref(p)=="TB"?"year":"month").format("YYYY-MM");break;case"yymmddSingle":v.value=dr(v.value).subtract(1,e.unref(p)=="TB"?"year":"day").format("YYYY-MM-DD");break;case"yySingle":v.value=dr(v.value).subtract(1,"year").format("YYYY");break}_.params=c(g);const V=r.option.dataset.dimensions;V.length>=3&&r.option.dataset.dimensions.pop();const E=await i.$baseHttp.post("/api/ace-data-center/model-indicators/debug",_),$=V[0],B=r.option.dataShow.y.filter(O=>!r.option.dataShow.hide.includes(O));e.unref(v.type).includes("Range")?(r.option.dataset.dimensions[1]=`${b!=null&&b.minValue?`${b==null?void 0:b.minValue}~`:""}${(b==null?void 0:b.maxValue)??""}${B}`,r.option.dataset.dimensions.push(`${v.minValue?`${v.minValue}~`:""}${(v==null?void 0:v.maxValue)??""}${B}`)):(r.option.dataset.dimensions[1]=`${b==null?void 0:b.value}${B}`,r.option.dataset.dimensions[2]=`${v.value}${B}`,r.option.dataset.dimensions[3]="增长率");const R=r.option.series[0];r.option.series=[],E.data.records.forEach(O=>{h(O,$,C)});const T=JSON.parse(JSON.stringify(r.option.dataset.temp_source));T.forEach((O,N)=>{h(O,$,C);let D=null;O[r.option.dataset.dimensions[1]]=O[B],C?(D=E.data.records.find(M=>M[$]==O[$]),D||(["year"].includes(C)&&(D=E.data.records.find(M=>M[$].indexOf(v.value)>=0),O[$]=$),["day","month"].includes(C)&&(D=E.data.records.find(M=>M[$].split("-").at(-1)==O[$].split("-").at(-1))))):D=E.data.records.find(M=>M[$]==O[$]),D||(D={[B]:0}),D&&(O[r.option.dataset.dimensions[2]]=D[B]);const z=O[r.option.dataset.dimensions[1]]??0,I=O[r.option.dataset.dimensions[2]]??0;O.增长率=!z||!I?0:((z-I)/I*100).toFixed(2)}),r.option.dataset.source=T,setTimeout(()=>{const{yAxis:O,xAxis:N}=r.option;let D="yAxis";!Array.isArray(O)&&O.type!="value"&&(D="xAxis"),r.option.series=[R,R,{...d,name:"增长率",[`${D}Index`]:1}],r.option[D]=[Array.isArray(r.option[D])?r.option[D][0]:r.option[D],{type:"value",name:"增长率",nameGap:20,splitLine:!1,nameLocation:D=="xAxis"?"start":"end"}],console.log(r.option)})},h=(_,g,v)=>{if(!(!v||(_[g]??"")=="")&&["day"].includes(v)){const b=_[g].split("-").filter((y,w)=>w==0?"":y);_[g]=b.join("-")}};return n({init:m,type:p}),(_,g)=>e.unref(u)&&_.option?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[m8,e.createElementVNode("div",null,[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(p),"onUpdate:modelValue":g[0]||(g[0]=v=>e.isRef(p)?p.value=v:null)},{default:e.withCtx(()=>{var v;return[e.createVNode(e.unref(S.ElRadio),{label:"TB",value:"TB"},{default:e.withCtx(()=>[e.createTextVNode("同比")]),_:1}),e.createVNode(e.unref(S.ElRadio),{label:"HB",value:"HB",disabled:!["yymmSingle","yymmddSingle"].includes((v=e.unref(f))==null?void 0:v.type)},{default:e.withCtx(()=>[e.createTextVNode(" 环比 ")]),_:1},8,["disabled"])]}),_:1},8,["modelValue"])])],64)):e.createCommentVNode("",!0)}}),Dm=t=>(e.pushScopeId("data-v-235b714d"),t=t(),e.popScopeId(),t),_8={key:2,class:"flex chart-preview mt-2.5"},v8={key:0},y8=Dm(()=>e.createElementVNode("div",{class:"mb-2 font-bold"},"分析指标",-1)),b8=Dm(()=>e.createElementVNode("div",{class:"mt-8 mb-2 font-bold"},"指标维度",-1)),w8={class:"flex flex-col flex-1 overflow-hidden"},C8={class:"relative flex-1"},S8={class:"flex justify-center change-btns"},x8=e.defineComponent({__name:"IndicatorsView",props:{dynamicSearchForm:{default:()=>[]},result:{default:()=>{}},chartData:{default:null}},emits:["search-success"],setup(t,{emit:n}){const r=t,o=n,i=Te(),{proxy:a}=e.getCurrentInstance(),{dynamicSearchForm:l,dynamicSearchFormat:c,dynamicSearchParams:s}=a.$globalHooks.useDynamicSearch(),{echartsTypeList:d,isMobile:f}=a.$globalUtils,u=e.ref(null),p=e.ref(""),m=e.ref([]),h=e.ref(r.dynamicSearchForm),_=e.ref(!1),{option:g,formatChart:v,chartType:b,setChartData:y,changeChartSeries:w,chartDataParams:C}=yt(),x={day:"按日",week:"按周",month:"按月",quarter:"按季度",year:"按年","":"按时分秒"};e.onMounted(async()=>{await a.$baseHttp.post(`/api/ace-data-center/model-indicators-echarts/getEchartsTypes/${r.result.id}`).then(T=>{m.value=T.data,T.data.length&&(p.value=T.data[0].code,b.value=T.data[0].type)})}),e.watch(p,async()=>{B()});const V=T=>{p.value!=T.code&&(g.value={},b.value=T.type,p.value=T.code,e.unref(u)&&(e.unref(u).type=""))},E=e.ref(""),$=e.ref(""),B=async()=>{var T,k,O,N,D,z,I;h.value=JSON.parse(JSON.stringify(r.dynamicSearchForm)),_.value=!0,g.value={},E.value="",$.value=["2"].includes(e.unref(b))?"":[],r.chartData&&(C.value=r.chartData),await v(e.unref(p)),E.value=(k=(T=e.unref(g))==null?void 0:T.dataShow)==null?void 0:k.x,Array.isArray((N=(O=e.unref(g))==null?void 0:O.dataShow)==null?void 0:N.y)?$.value=(D=e.unref(g))==null?void 0:D.dataShow.y.filter(M=>{var P;return!(((P=e.unref(g))==null?void 0:P.dataShow.hide)??[]).includes(M)}):$.value=(I=(z=e.unref(g))==null?void 0:z.dataShow)==null?void 0:I.y,f&&["1","3","5"].includes(e.unref(b))&&!e.unref(g).dataZoom&&(g.value.grid.bottom="10%",g.value.dataZoom=[{type:"slider",backgroundColor:"#eef8fd",fillerColor:"#14b1f8",borderColor:"#eef8fd",startValue:0,endValue:3,filterMode:"",showDetail:!1,width:"90%",height:10,handleSize:30,left:"5%",bottom:25},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0}]),setTimeout(()=>{_.value=!1},10)};e.watch([E,$],async([T,k],[O,N])=>{var D;e.unref(_)||(e.unref(g).dataShow.x=T,e.unref(g).dataShow.y=k,Array.isArray(k)&&(e.unref(g).dataShow.hide=(D=e.unref(g))==null?void 0:D.dataShow.y.filter(z=>i.getChartData.y.includes(z.showLabel))),(T!=O||["2","7"].includes(e.unref(b)))&&(g.value.dataset.source=await y(e.unref(b),T,["2","7"].includes(e.unref(b))?k:null),g.value.dataset.temp_source=JSON.parse(JSON.stringify(g.value.dataset.source)),h.value=JSON.parse(JSON.stringify(r.dynamicSearchForm)),e.unref(u)&&(e.unref(u).type="")),["xAxis","yAxis"].forEach(z=>{Array.isArray(g.value[z])&&(g.value[z]=g.value[z].filter(I=>I.name!="增长率"))}),w())},{deep:!0});const R=()=>{i.getChartData.params.params=s(r.dynamicSearchForm),B(),o("search-success",i.getChartData.params.params)};return(T,k)=>{var z;const O=e.resolveComponent("AppDynamicSearch"),N=e.resolveComponent("AppEmpty"),D=e.resolveComponent("aceCustomChart");return e.openBlock(),e.createElementBlock("div",null,[r.dynamicSearchForm.length?(e.openBlock(),e.createBlock(O,{key:0,form:r.dynamicSearchForm,onSuccess:R},null,8,["form"])):e.createCommentVNode("",!0),e.unref(m).length?(e.openBlock(),e.createElementBlock("div",_8,[["9"].includes(e.unref(b))?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("aside",v8,[e.createVNode(e.unref(S.ElSkeleton),{loading:!((z=e.unref(g))!=null&&z.dataShow),animated:""},{default:e.withCtx(()=>[y8,e.createElementVNode("div",null,[["2"].includes(e.unref(b))?(e.openBlock(),e.createBlock(e.unref(S.ElRadioGroup),{key:0,modelValue:e.unref($),"onUpdate:modelValue":k[0]||(k[0]=I=>e.isRef($)?$.value=I:null)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).getChartData.y,I=>(e.openBlock(),e.createBlock(e.unref(S.ElRadio),{key:I.showLabel,label:I.showLabel,value:I.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):["8"].includes(e.unref(b))?(e.openBlock(),e.createBlock(e.unref(S.ElCheckboxGroup),{key:1,modelValue:e.unref($),"onUpdate:modelValue":k[1]||(k[1]=I=>e.isRef($)?$.value=I:null)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList([...e.unref(i).getChartData.y,...e.unref(i).getChartData.x.map(I=>({...I,showLabel:I.comment}))],I=>(e.openBlock(),e.createBlock(e.unref(S.ElCheckbox),{key:I.showLabel,label:I.showLabel,value:I.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):(e.openBlock(),e.createBlock(e.unref(S.ElCheckboxGroup),{key:2,modelValue:e.unref($),"onUpdate:modelValue":k[2]||(k[2]=I=>e.isRef($)?$.value=I:null)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).getChartData.y,I=>(e.openBlock(),e.createBlock(e.unref(S.ElCheckbox),{key:I.showLabel,label:I.showLabel,value:I.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]))]),["8"].includes(e.unref(b))?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b8,e.createElementVNode("div",null,[e.createVNode(e.unref(S.ElRadioGroup),{modelValue:e.unref(E),"onUpdate:modelValue":k[3]||(k[3]=I=>e.isRef(E)?E.value=I:null)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i).getChartData.x,I=>(e.openBlock(),e.createBlock(e.unref(S.ElRadio),{key:I.comment,label:I.comment,value:I.comment},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.comment)+" ",1),x[I.dateFormatType]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" ("+e.toDisplayString(x[I.dateFormatType])+") ",1)],64)):e.createCommentVNode("",!0)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])])],64)),["3","1"].includes(e.unref(b))&&e.unref(g).dataShow.y.filter(I=>!e.unref(g).dataShow.hide.includes(I)).length==1?(e.openBlock(),e.createBlock(g8,{key:1,ref_key:"yoyRef",ref:u,option:e.unref(g),search:e.unref(h),originSearch:e.unref(l),chartType:e.unref(b)},null,8,["option","search","originSearch","chartType"])):e.createCommentVNode("",!0)]),_:1},8,["loading"])])),e.createElementVNode("div",w8,[e.createElementVNode("div",C8,[e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(_),animated:""},{default:e.withCtx(()=>[e.createVNode(D,{option:e.unref(g),chartType:e.unref(b)},null,8,["option","chartType"])]),_:1},8,["loading"])]),e.createElementVNode("div",S8,[e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),I=>(e.openBlock(),e.createBlock(e.unref(S.ElButton),{type:e.unref(p)==I.code?"primary":"",key:I.type,onClick:M=>V(I)},{default:e.withCtx(()=>{var M;return[e.createElementVNode("i",{class:e.normalizeClass((M=e.unref(d)[I.type])==null?void 0:M.icon)},null,2)]}),_:2},1032,["type","onClick"]))),128))]),_:1})])])])):(e.openBlock(),e.createBlock(N,{key:1,description:"暂无数据"}))])}}}),sT="",V8=ke(x8,[["__scopeId","data-v-235b714d"]]),E8=["hidden"],k8={class:"flex mb-5 moudle-1"},N8={class:"flex-1"},$8={class:"mt-5 flex items-center"},D8={key:0,class:"ri-error-warning-fill text-xl mr-1 text-color-warning"},B8={key:1,class:"ri-checkbox-circle-fill text-xl mr-1 text-color-success"},T8={class:"ml-1"},O8=e.createElementVNode("div",{class:"w-10"},null,-1),I8={class:"flex-1"},z8={class:"mt-5 items-center"},R8=e.createElementVNode("i",{class:"ri-database-2-fill text-xl mr-1 text-color-primary"},null,-1),M8=e.createElementVNode("i",{class:"ri-edit-box-line"},null,-1),A8={class:"mt-4 mb-4"},L8={class:"sjzl"},F8=e.createElementVNode("div",{class:"font-bold mt-2 mb-2"},"数据总览",-1),j8={class:"mt-2 flex"},P8={key:1,class:"w-full"},Bm=e.defineComponent({__name:"modelIndicators",props:{indicatorsId:{default:""},modelIndicatorsRules:{default:()=>[]}},emits:["click-design","rule-success"],setup(t,{expose:n,emit:r}){const o=t,i=r;e.watch(()=>o.indicatorsId,()=>C());const{proxy:a}=e.getCurrentInstance(),l=Te(),{dynamicSearchForm:c,dynamicSearchFormat:s,dynamicSearchParams:d}=a.$globalHooks.useDynamicSearch(),{isMobile:f}=a.$globalUtils,u=e.ref(!0),p=e.ref(!1),m=e.ref(!1),h=e.ref([]),_=e.ref({}),g=e.ref(null),v=e.ref([]),b=e.ref([]),y=e.ref({}),w=({column:M})=>{e.unref(y)[M.property]&&(M.order=e.unref(y)[M.property])},C=async()=>{u.value=!0,l.setChartData({}),B();const M=await a.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${o.indicatorsId}`);g.value=M.data,u.value=!1,y.value=JSON.parse(M.data.sortArgsJson??"{}"),c.value=s(JSON.parse(M.data.formConfJson??"[]")),E()},x=e.ref(!1),V=e.ref(!1),E=async(M="")=>{var H,X,J,U,W,Q,ne,re,Y;M!="sort"&&(b.value=[],x.value=!0),V.value=!0;const P=Object.keys(e.unref(y)).map(Z=>({field:Z,type:e.unref(y)[Z]=="ascending"?"asc":"desc"})),F={aggArgsJson:(H=e.unref(g))==null?void 0:H.aggArgsJson,groupArgsJson:(X=e.unref(g))==null?void 0:X.groupArgsJson,sortArgsJson:JSON.stringify(P),params:e.unref(N)??d(s(JSON.parse(((J=e.unref(g))==null?void 0:J.formConfJson)??"[]"))),modelIndicatorsId:(U=e.unref(g))==null?void 0:U.id,pageSize:(W=e.unref(g))==null?void 0:W.pageSize,modelId:(Q=e.unref(g))==null?void 0:Q.modelId},G=await a.$baseHttp.post("/api/ace-data-center/model-indicators/debug",F);G&&(v.value=((ne=G.data)==null?void 0:ne.records)??[],x.value=!1,V.value=!1,_.value={x:JSON.parse((re=e.unref(g))==null?void 0:re.groupArgsJson),y:JSON.parse((Y=e.unref(g))==null?void 0:Y.aggArgsJson),params:F},l.setChartData(_.value),e.unref(v).length&&M!="sort"&&(Object.keys(e.unref(v)[0]).forEach(Z=>{b.value.push({label:Z,prop:Z,sortable:"custom"})}),b.value.push({label:"操作",prop:"button",width:"120px",fixed:"right",slot:!0})))},$=M=>{const{prop:P,order:F}=M;!F||e.unref(y)[P]===F?delete e.unref(y)[P]:e.unref(y)[P]=F,E("sort")},B=async()=>{var P;h.value=[];const M=await Ee(a).getRule({current:1,size:100,businessType:"indicators",businessId:o.indicatorsId});h.value=((P=M.data)==null?void 0:P.records)??[],i("rule-success",h.value)},R=e.ref(null),T=M=>{R.value=M,p.value=!0},k=M=>{M.modelIndicatorsId=e.unref(g).id,M.row=e.unref(R)},O=()=>{m.value=!0},N=e.ref(null),D=M=>{N.value=M,E()};e.watch(p,M=>I(M)),e.watch(m,M=>I(M));const z=e.ref(!1),I=M=>{self!=top&&(z.value=M,window.parent.postMessage(M?"model-indicators-open":"model-indicators-close","*"))};return C(),n({init:C,result:g}),(M,P)=>{const F=e.resolveComponent("AppResourceVisitor"),G=e.resolveComponent("AppHeader"),H=e.resolveComponent("AppTable"),X=e.resolveComponent("AppEmpty"),J=e.resolveComponent("AppDynamicList"),U=e.resolveComponent("AppDrawer");return e.unref(u)?(e.openBlock(),e.createBlock(e.unref(S.ElSkeleton),{key:0,animated:""})):(e.openBlock(),e.createElementBlock("div",{key:1,class:"animated fadeIn",hidden:e.unref(z)},[e.createElementVNode("div",k8,[e.createElementVNode("div",N8,[e.createVNode(G,{title:"指标计算"},{default:e.withCtx(()=>[e.createVNode(F,{businessType:"MODEL_INDICATORS",businessld:o.indicatorsId},null,8,["businessld"])]),_:1}),e.createElementVNode("div",$8,[e.unref(h).some(W=>W.rows>0)?(e.openBlock(),e.createElementBlock("i",D8)):(e.openBlock(),e.createElementBlock("i",B8)),e.createElementVNode("span",T8,e.toDisplayString(e.unref(g).remark),1)])]),O8,e.createElementVNode("div",I8,[e.createVNode(G,{title:"数据来源"}),e.createElementVNode("div",z8,[R8,e.createTextVNode(" 重构仓模型数据 | "+e.toDisplayString(e.unref(g).modelName)+"【 ",1),e.createElementVNode("span",{class:"text-color-primary cursor-pointer",onClick:O},e.toDisplayString(e.unref(g).modelCode),1),e.createTextVNode(" 】 ")])])]),e.createVNode(G,{title:"指标数据"},{left:e.withCtx(()=>[M.modelIndicatorsRules.includes("RELATED_INDICATORS")?(e.openBlock(),e.createElementBlock("div",{key:0,class:"text-color-warning ml-4 cursor-pointer",onClick:P[0]||(P[0]=W=>i("click-design",o.indicatorsId))},[M8,e.createTextVNode(" 编辑指标 ")])):e.createCommentVNode("",!0)]),_:1}),e.createElementVNode("div",A8,[e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(V),animated:""},{default:e.withCtx(()=>[e.createVNode(V8,{dynamicSearchForm:e.unref(c),result:e.unref(g),chartData:e.unref(_),onSearchSuccess:D},null,8,["dynamicSearchForm","result","chartData"])]),_:1},8,["loading"])]),e.createElementVNode("div",L8,[F8,e.createElementVNode("div",j8,[e.createVNode(e.unref(S.ElSkeleton),{loading:e.unref(x),animated:""},{default:e.withCtx(()=>[e.unref(b).length?(e.openBlock(),e.createBlock(H,{key:0,maxHeight:"400px",tableData:e.unref(b),list:e.unref(v),loading:!1,headerCellClassName:w,onSortChange:$},{button:e.withCtx(({row:W})=>[e.createVNode(e.unref(S.ElLink),{type:"primary",onClick:Q=>T(W)},{default:e.withCtx(()=>[e.createTextVNode("查看明细")]),_:2},1032,["onClick"])]),_:1},8,["tableData","list"])):(e.openBlock(),e.createElementBlock("div",P8,[e.createVNode(X,{description:"暂无数据",class:"mt-4"})]))]),_:1},8,["loading"])])]),e.createVNode(Nm,{ruleList:e.unref(h)},null,8,["ruleList"]),e.createVNode(U,{modelValue:e.unref(p),"onUpdate:modelValue":P[1]||(P[1]=W=>e.isRef(p)?p.value=W:null),title:"查看明细",size:"90%"},{default:e.withCtx(()=>[e.createVNode(G,{title:"统计:",class:"mb-2"}),e.createVNode(H,{height:null,tableData:Object.keys(e.unref(R)).map(W=>({label:W,prop:W})),list:[e.unref(R)],loading:!1},null,8,["tableData","list"]),e.createVNode(G,{title:"钻取明细:",class:"mb-2 mt-4"}),e.createVNode(J,{id:e.unref(g).modelId,title:e.unref(g).modelName,isDownLoad:e.unref(f),url:"/api/ace-data-center/model-indicators/drilling",paramsFunc:k},null,8,["id","title","isDownLoad"])]),_:1},8,["modelValue"]),e.createVNode(U,{modelValue:e.unref(m),"onUpdate:modelValue":P[2]||(P[2]=W=>e.isRef(m)?m.value=W:null),title:"模型数据",size:"90%"},{default:e.withCtx(()=>[e.createVNode(J,{id:e.unref(g).modelId,title:e.unref(g).modelName},null,8,["id","title"])]),_:1},8,["modelValue"])],8,E8))}}}),U8=e.createElementVNode("i",{class:"ri-search-line"},null,-1),W8={class:"mt-3"},G8={key:1,class:"mr-1 -ml-5 text-base ri-edit-circle-fill text-color-primary"},H8=e.defineComponent({__name:"modelMenu",props:{type:{default:""}},emits:["node-click","change-type"],setup(t,{expose:n,emit:r}){const o=t,{proxy:i}=e.getCurrentInstance(),a=e.ref(""),l=e.ref(null),c=r;e.watch(a,h=>{e.unref(l).filter(h)});const s=(h,_)=>h?_.modelName.includes(h):!0,d=e.ref([]),f=e.ref([]),u=e.ref(!0),p=()=>{Promise.all([Ee(i).loadModelMenu({modelLayer:"ODS"}),Ee(i).loadModelMenu({modelLayer:"DWD"})]).then(h=>{const _=h[0].data,g=h[1].data;d.value=Object.keys(_).map(v=>({modelName:v,id:v,children:_[v]})),f.value=Object.keys(g).map(v=>({modelName:v,id:v,children:g[v]})),u.value=!1})};p();const m=h=>{if(h.modelCode){if(o.type=="ODS"){c("node-click",h);return}Array.isArray(h.children)||c("node-click",h)}};return n({init:p}),(h,_)=>{const g=e.resolveComponent("AppEmpty");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(S.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:e.unref(a),"onUpdate:modelValue":_[0]||(_[0]=v=>e.isRef(a)?a.value=v:null)},{prefix:e.withCtx(()=>[U8]),_:1},8,["modelValue"]),e.createElementVNode("div",W8,[e.unref(u)?(e.openBlock(),e.createBlock(e.unref(S.ElSkeleton),{key:0,animated:"",count:2})):(e.openBlock(),e.createBlock(e.unref(S.ElTree),{key:1,class:"animated fadeIn",ref_key:"treeRef",ref:l,data:h.type=="ODS"?e.unref(d):e.unref(f),"default-expand-all":"","node-key":"id","highlight-current":"","filter-node-method":s,onNodeClick:m},{default:e.withCtx(({node:v,data:b})=>[v.level!=1||h.type=="ODS"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[b.modelCode&&b.openForm!=2?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass(["mr-1 -ml-5 text-base ri-checkbox-circle-fill",[b.publishStatus==2?"text-color-success":"text-color-info"]])},null,2)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),b.openForm==2?(e.openBlock(),e.createElementBlock("i",G8)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass({"font-bold":v.level==1})},e.toDisplayString(b.modelName),3),e.renderSlot(h.$slots,"default",{element:b})]),empty:e.withCtx(()=>[e.createVNode(g,{description:"暂无数据"})]),_:3},8,["data"]))])],64)}}}),Y8={class:"mb-3"},X8={style:{height:"calc(100vh - 100px)"},class:"overflow-y-auto"},q8=e.defineComponent({__name:"modelIndicatorsAdd",emits:["click-node"],setup(t,{expose:n,emit:r}){const o=r,{proxy:i}=e.getCurrentInstance(),a=e.ref(!1),l=e.ref(),c=e.ref([{label:"源数据",value:"ODS",rule:"VIEW_ODS",disabled:!0},{label:"整合数据",value:"DWD",rule:"VIEW_DWD",disabled:!0}]);Ee(i).getCurrFunc("MODEL").then(u=>{e.unref(c).forEach(p=>{p.disabled=!u.data.includes(p.rule),!e.unref(l)&&!p.disabled&&(l.value=p.value)})});const s=u=>{l.value=u},d=()=>{a.value=!0},f=u=>{o("click-node",u),a.value=!1};return n({init:d}),(u,p)=>{const m=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(m,{modelValue:e.unref(a),"onUpdate:modelValue":p[0]||(p[0]=h=>e.isRef(a)?a.value=h:null),title:"选择要分析的数据",size:"400px"},{default:e.withCtx(()=>[e.createElementVNode("div",Y8,[e.createVNode(e.unref(S.ElButtonGroup),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),h=>(e.openBlock(),e.createBlock(e.unref(S.ElButton),{type:e.unref(l)==h.value?"primary":"",key:h.value,disabled:h.disabled,onClick:_=>s(h.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1})]),e.createElementVNode("div",X8,[e.createVNode(H8,{ref:"menuRef",type:e.unref(l),onNodeClick:f},null,8,["type"])])]),_:1},8,["modelValue"])}}}),J8={class:"flex justify-end flex-1"},K8=e.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1),Z8={key:0,class:"flex items-center justify-center h-full"},Q8=e.defineComponent({__name:"index",props:{isCustom:{type:Boolean,default:!1},element:{default:null},tempId:{default:""}},emits:["close-design"],setup(t,{emit:n}){var y,w;const r=t,o=n,{proxy:i}=e.getCurrentInstance(),a=e.ref(null),l=e.ref(null),c=e.ref(null),s=e.ref(null),d=e.ref(r.element??{});e.provide("modelEle",d),e.provide("getListModelIndicators",()=>{});const f=e.ref([{label:"指标分析",value:"zbfx"},{label:"指标全景",value:"zbqj",disabled:!0}]),u=e.ref(e.unref(f)[0].value),p=e.ref(((y=r==null?void 0:r.element)==null?void 0:y.id)??"");Ee(i).getCurrFunc("INDICATORS").then(C=>{e.unref(f).find(x=>x.value=="zbqj").disabled=!C.data.includes("INDICATORS_VIEW")});const m=e.ref([]);Ee(i).getCurrFunc("MODEL_INDICATORS").then(C=>{m.value=C.data});const h=e.ref(((w=r==null?void 0:r.element)==null?void 0:w.businessType)??""),_=C=>{p.value=C.id,h.value=C.type},g=C=>{d.value=C,e.unref(a).init()},v=C=>{var x,V,E;d.value={id:(x=e.unref(c).result)==null?void 0:x.modelId,modelName:(V=e.unref(c).result)==null?void 0:V.modelName,modelCode:(E=e.unref(c).result)==null?void 0:E.modelCode},e.unref(a).init(C)},b=()=>{e.unref(p)&&(o("close-design",e.unref(p)),e.unref(c)&&e.unref(c).init()),e.unref(l)&&e.unref(l).init()};return(C,x)=>{const V=e.resolveComponent("AppEmpty");return e.openBlock(),e.createBlock(e.unref(S.ElContainer),null,{default:e.withCtx(()=>[e.createVNode(e.unref(S.ElHeader),{style:{height:"auto",padding:"0"},class:"flex items-center w-full mb-3"},{default:e.withCtx(()=>[C.isCustom?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(S.ElButtonGroup),{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),E=>(e.openBlock(),e.createBlock(e.unref(S.ElButton),{type:e.unref(u)==E.value?"primary":"",key:E.value,disabled:E.disabled,onClick:$=>u.value=E.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1})),e.createElementVNode("div",J8,[e.unref(m).includes("STATISTICAL_ANALYSIS")?(e.openBlock(),e.createBlock(e.unref(S.ElButton),{key:0,type:"primary",onClick:x[0]||(x[0]=E=>e.unref(s).init())},{default:e.withCtx(()=>[K8,e.createTextVNode(" 新增指标 ")]),_:1})):e.createCommentVNode("",!0)])]),_:1}),e.withDirectives(e.createVNode(e.unref(S.ElContainer),{class:"overflow-hidden"},{default:e.withCtx(()=>[C.isCustom?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(S.ElAside),{key:0,class:"pr-5 mr-5"},{default:e.withCtx(()=>[e.createVNode(ZD,{onNodeClick:_,tempId:C.tempId||e.unref(p),ref_key:"menuRef",ref:l},null,8,["tempId"])]),_:1})),e.createVNode(e.unref(S.ElMain),null,{default:e.withCtx(()=>[e.unref(p)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(h)=="INDICATORS"?(e.openBlock(),e.createBlock($m,{key:0,indicatorsId:e.unref(p)},null,8,["indicatorsId"])):e.createCommentVNode("",!0),e.unref(h)=="MODEL_INDICATORS"?(e.openBlock(),e.createBlock(Bm,{key:1,onClickDesign:v,modelIndicatorsRules:e.unref(m),indicatorsId:e.unref(p),ref_key:"modelIndicatorsRef",ref:c},null,8,["modelIndicatorsRules","indicatorsId"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("div",Z8,[e.createVNode(V,{description:"请选择对应指标"})]))]),_:1})]),_:1},512),[[e.vShow,e.unref(u)=="zbfx"]]),e.unref(u)=="zbqj"?(e.openBlock(),e.createBlock(e.unref(S.ElMain),{key:0},{default:e.withCtx(()=>[e.createVNode(h8)]),_:1})):e.createCommentVNode("",!0),e.createVNode(km,{ref_key:"designRef",ref:a,onClose:b},null,512),e.createVNode(q8,{ref_key:"modelIndicatorsAddRef",ref:s,onClickNode:g},null,512)]),_:1})}}}),eB={key:0,class:"flex flex-wrap"},tB={class:"mt-2"},nB={key:1,class:"mb-3"},rB=e.defineComponent({__name:"AppCustomChart",props:{option:{default:{}},chartType:{default:""},maxHeight:{default:"350px"},renderer:{default:"canvas"},loading:{type:Boolean,default:!1}},setup(t){const n=t,r=c=>{var d;const{toFixed:s}=((d=n.option)==null?void 0:d.customSeriesData[c])??0;return n.option.dataset.source.reduce((f,u)=>f+(u[c]?Number(u[c]):0),0).toFixed(s)},{init:o}=Zc(),i=e.ref([n.option.code]),a=c=>{if(c.seriesType!=="map")return;const{code:s}=c.data;n.option.code=s,e.unref(i).includes(String(s))||i.value.push(String(s)),o(n.option)},l=()=>{i.value=i.value.filter(c=>c!=n.option.code),n.option.code=e.unref(i).at(-1),console.log(1),o(n.option)};return(c,s)=>{var u,p;const d=e.resolveComponent("AppTable"),f=e.resolveComponent("v-chart");return c.chartType=="7"&&n.option.dataShow?(e.openBlock(),e.createElementBlock("div",eB,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.option.dataset.dimensions,m=>{var h,_,g,v,b,y,w,C,x,V;return e.openBlock(),e.createElementBlock("div",{key:m,class:"flex flex-col p-3 pb-3 pl-5 pr-5 m-2 rounded justify-evenly",style:e.normalizeStyle({background:(_=(h=n.option)==null?void 0:h.customSeriesData[m])==null?void 0:_.bgColor,color:(v=(g=n.option)==null?void 0:g.customSeriesData[m])==null?void 0:v.color,minWidth:"120px",fontSize:`${((y=(b=n.option)==null?void 0:b.customSeriesData[m])==null?void 0:y.fontSize)||14}px`})},[e.createElementVNode("div",null,[e.createElementVNode("span",null,e.toDisplayString((C=(w=n.option)==null?void 0:w.customSeriesData[m])==null?void 0:C.prefix),1),e.createTextVNode(" "+e.toDisplayString(r(m))+" ",1),e.createElementVNode("span",null,e.toDisplayString((V=(x=n.option)==null?void 0:x.customSeriesData[m])==null?void 0:V.suffix),1)]),e.createElementVNode("div",tB,e.toDisplayString(m),1)],4)}),128))])):c.chartType=="8"?(e.openBlock(),e.createElementBlock("div",nB,[n.option.dataset.dimensions?(e.openBlock(),e.createBlock(d,{key:0,maxHeight:c.maxHeight,tableData:n.option.dataset.dimensions.map(m=>({label:m,prop:m,func:h=>{var g,v;const _=h[m];if((g=n.option)!=null&&g.customSeriesData[m]){const{prefix:b,toFixed:y,suffix:w,color:C}=(v=n.option)==null?void 0:v.customSeriesData[m];return`
|
|
897
897
|
<span style='color:${C}'>
|
|
898
898
|
${b}${isNaN(_)?_:Number(_).toFixed(y)}${w}
|
|
899
899
|
</span>
|