ace-component-lib 0.0.92 → 0.0.93

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.
@@ -1,4 +1,4 @@
1
- (function(te,U){typeof exports=="object"&&typeof module<"u"?module.exports=U(require("pinia"),require("@wangeditor/editor"),require("vue"),require("element-plus"),require("vue-draggable-plus"),require("dayjs"),require("echarts/core"),require("@wangeditor/editor-for-vue"),require("jsoneditor")):typeof define=="function"&&define.amd?define(["pinia","@wangeditor/editor","vue","element-plus","vue-draggable-plus","dayjs","echarts/core","@wangeditor/editor-for-vue","jsoneditor"],U):(te=typeof globalThis<"u"?globalThis:te||self,te["ace-component-lib"]=U(te.pinia,te.editor,te.Vue,te.elementPlus,te.vueDraggablePlus,te.dayjs,te.core,te.editorForVue,te.JsonEditor))})(this,function(pinia,editor,vue,elementPlus,vueDraggablePlus,dayjs,core,editorForVue,JsonEditor){"use strict";var Dt=Object.defineProperty;var It=(te,U,G)=>U in te?Dt(te,U,{enumerable:!0,configurable:!0,writable:!0,value:G}):te[U]=G;var Et=(te,U,G)=>(It(te,typeof U!="symbol"?U+"":U,G),G);const version="0.0.92",aceLib="";let e$3=class{constructor(U){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,U),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let U="";this.settings.url&&!this.settings.asyncUrl&&(U=this.settings.url);let G=this;if(this.settings.asyncUrl)return void G.settings.asyncUrl(function(ne){let re=G.getPrintWindow(ne);G.settings.preview?G.previewIfrmaeLoad():G.print(re)},G.settings.vue);let ee=this.getPrintWindow(U);this.settings.url||this.write(ee.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(ee)}addEvent(U,G,ee){U.addEventListener?U.addEventListener(G,ee,!1):U.attachEvent?U.attachEvent("on"+G,ee):U["on"+G]=ee}previewIfrmaeLoad(){let U=document.getElementById("vue-pirnt-nb-previewBox");if(U){let G=this,ee=U.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(ee,"load",function(){G.previewBoxShow(),G.removeCanvasImg(),G.settings.previewOpenCallback()}),this.addEvent(U.querySelector(".previewBodyUtilPrintBtn"),"click",function(){G.settings.beforeOpenCallback(),G.settings.openCallback(),ee.contentWindow.print(),G.settings.closeCallback()})}}removeCanvasImg(){let U=this;try{if(U.elsdom){let G=U.elsdom.querySelectorAll(".canvasImg");for(let ee=0;ee<G.length;ee++)G[ee].remove()}}catch(G){console.log(G)}}print(U){var G=this;let ee=document.getElementById(this.settings.id)||U.f,ne=document.getElementById(this.settings.id).contentWindow||U.f.contentWindow;G.settings.beforeOpenCallback(),G.addEvent(ee,"load",function(){ne.focus(),G.settings.openCallback(),ne.print(),ee.remove(),G.settings.closeCallback(),G.removeCanvasImg()})}write(U){U.open(),U.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),U.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 U="",G="",ee="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,re=>{U+=re}),[].forEach.call(document.querySelectorAll("link"),function(re){re.href.indexOf(".css")>=0&&(G+=`<link type="text/css" rel="stylesheet" href="${re.href}" >`)});let ne=document.styleSheets;if(ne&&ne.length>0)for(let re=0;re<ne.length;re++)try{if(ne[re].cssRules||ne[re].rules){let oe=ne[re].cssRules||ne[re].rules;for(let ie=0;ie<oe.length;ie++)ee+=oe[ie].cssText}}catch(oe){console.log(ne[re].href+oe)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,re=>{G+=`<link type="text/css" rel="stylesheet" href="${re}">`}),`<head><title>${this.settings.popTitle}</title>${U}${G}<style type="text/css">${ee}</style></head>`}getBody(){let U=this.settings.ids;return U=U.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(U)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(U){let G=U.querySelectorAll("canvas");for(let ee=0;ee<G.length;ee++)if(!G[ee].style.display){let ne=G[ee].parentNode,re=G[ee].toDataURL("image/png"),oe=new Image;oe.className="canvasImg",oe.style.display="none",oe.src=re,ne.appendChild(oe)}return U}getFormData(U){let G=U.cloneNode(!0),ee=G.querySelectorAll("input,select,textarea"),ne=G.querySelectorAll(".canvasImg,canvas"),re=-1;for(let oe=0;oe<ne.length;oe++){let ie=ne[oe].parentNode,le=ne[oe];le.tagName.toLowerCase()==="canvas"?ie.removeChild(le):le.style.display="block"}for(let oe=0;oe<ee.length;oe++){let ie=ee[oe],le=ie.getAttribute("type"),ae=ee[oe];if(le||(le=ie.tagName==="SELECT"?"select":ie.tagName==="TEXTAREA"?"textarea":""),ie.tagName==="INPUT")le==="radio"||le==="checkbox"?ie.checked&&ae.setAttribute("checked",ie.checked):(ae.value=ie.value,ae.setAttribute("value",ie.value));else if(le==="select"){re++;for(let se=0;se<U.querySelectorAll("select").length;se++){let ue=U.querySelectorAll("select")[se];if(!ue.getAttribute("newbs")&&ue.setAttribute("newbs",se),ue.getAttribute("newbs")==re){let ce=U.querySelectorAll("select")[re].selectedIndex;ie.options[ce].setAttribute("selected",!0)}}}else ae.innerHTML=ie.value,ae.setAttribute("html",ie.value)}return G}getPrintWindow(U){var G=this.Iframe(U);return{f:G,win:G.contentWindow||G,doc:G.doc}}previewBoxShow(){let U=document.getElementById("vue-pirnt-nb-previewBox");U&&(document.querySelector("html").setAttribute("style","overflow: hidden"),U.style.display="block")}previewBoxHide(){let U=document.getElementById("vue-pirnt-nb-previewBox");U&&(document.querySelector("html").setAttribute("style","overflow: visible;"),U.querySelector("iframe")&&U.querySelector("iframe").remove(),U.style.display="none")}previewBox(){let U=document.getElementById("vue-pirnt-nb-previewBox"),G="previewBody";if(U)return U.querySelector("iframe")&&U.querySelector("iframe").remove(),{close:U.querySelector(".previewClose"),previewBody:U.querySelector(".previewBody")};let ee=document.createElement("div");ee.setAttribute("id","vue-pirnt-nb-previewBox"),ee.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),ee.style.zIndex=this.settings.zIndex;let ne=document.createElement("div");ne.setAttribute("class","previewHeader"),ne.setAttribute("style","padding: 5px 20px;"),ne.innerHTML=this.settings.previewTitle,ee.appendChild(ne),this.close=document.createElement("div");let re=this.close;re.setAttribute("class","previewClose"),re.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let oe=document.createElement("div"),ie=document.createElement("div");oe.setAttribute("class","closeBefore"),oe.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),ie.setAttribute("class","closeAfter"),ie.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),re.appendChild(oe),re.appendChild(ie),ne.appendChild(re),this.previewBody=document.createElement("div");let le=this.previewBody;le.setAttribute("class",G),le.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),ee.appendChild(le);let ae=document.createElement("div");ae.setAttribute("class","previewBodyUtil"),ae.setAttribute("style","height: 32px;background: #474747;position: relative;"),le.appendChild(ae),this.previewBodyUtilPrintBtn=document.createElement("div");let se=this.previewBodyUtilPrintBtn;return se.setAttribute("class","previewBodyUtilPrintBtn"),se.innerHTML=this.settings.previewPrintBtnLabel,se.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);"),ae.appendChild(se),document.body.appendChild(ee),{close:this.close,previewBody:this.previewBody}}iframeBox(U,G){let ee=document.createElement("iframe");return ee.style.border="0px",ee.style.position="absolute",ee.style.width="0px",ee.style.height="0px",ee.style.right="0px",ee.style.top="0px",ee.setAttribute("id",U),ee.setAttribute("src",G),ee}Iframe(U){let G=this.settings.id;U=U||new Date().getTime();let ee=this,ne=this.iframeBox(G,U);try{if(this.settings.preview){ne.setAttribute("style","border: 0px;flex: 1;");let re=this.previewBox(),oe=re.previewBody,ie=re.close;oe.appendChild(ne),this.addEvent(ie,"click",function(){ee.previewBoxHide()})}else document.body.appendChild(ne);ne.doc=null,ne.doc=ne.contentDocument?ne.contentDocument:ne.contentWindow?ne.contentWindow.document:ne.document}catch(re){throw new Error(re+". iframes may not be supported in this browser.")}if(ne.doc==null)throw new Error("Cannot find document.");return ne}};var t$2={directiveName:"print",mounted(te,U,G){let ee=U.instance,ne="";var re,oe,ie;oe="click",ie=()=>{if(typeof U.value=="string")ne=U.value;else{if(typeof U.value!="object"||!U.value.id)return void window.print();{ne=U.value.id;let ae=ne.replace(new RegExp("#","g"),"");document.getElementById(ae)||(console.log("id in Error"),ne="")}}le()},(re=te).addEventListener?re.addEventListener(oe,ie,!1):re.attachEvent?re.attachEvent("on"+oe,ie):re["on"+oe]=ie;const le=()=>{new e$3({ids:ne,vue:ee,url:U.value.url,standard:"",extraHead:U.value.extraHead,extraCss:U.value.extraCss,zIndex:U.value.zIndex||20002,previewTitle:U.value.previewTitle||"打印预览",previewPrintBtnLabel:U.value.previewPrintBtnLabel||"打印",popTitle:U.value.popTitle,preview:U.value.preview||!1,asyncUrl:U.value.asyncUrl,previewBeforeOpenCallback(){U.value.previewBeforeOpenCallback&&U.value.previewBeforeOpenCallback(ee)},previewOpenCallback(){U.value.previewOpenCallback&&U.value.previewOpenCallback(ee)},openCallback(){U.value.openCallback&&U.value.openCallback(ee)},closeCallback(){U.value.closeCallback&&U.value.closeCallback(ee)},beforeOpenCallback(){U.value.beforeOpenCallback&&U.value.beforeOpenCallback(ee)}})}},install:function(te){te.directive("print",t$2)}},FieldRenderType=(te=>(te.String="string",te.Integer="interget",te))(FieldRenderType||{}),DynamicTableType=(te=>(te.Default="default",te.DataForm="dataForm",te))(DynamicTableType||{}),ItableType=(te=>(te.Link="link",te))(ItableType||{}),FieldType=(te=>(te.Text="text",te.Select="select",te.Date="date",te.DateTime="datetime",te.CheckBox="checkbox",te.Switch="switch",te.Radio="radio",te.Textarea="textarea",te.Number="number",te.NumberRange="numberRange",te.Cascader="cascader",te.Daterange="daterange",te.Monthrange="monthrange",te.File="file",te.TreeSelect="treeSelect",te.Year="year",te.Month="month",te.Hr="hr",te.Slot="slot",te.Editor="editor",te.Password="password",te.Json="json",te.Markdown="markdown",te.Rate="rate",te.TimeRange="timerange",te.Time="time",te.DateTimeRange="datetimerange",te))(FieldType||{});let nanoid=(te=21)=>crypto.getRandomValues(new Uint8Array(te)).reduce((U,G)=>(G&=63,G<36?U+=G.toString(36):G<62?U+=(G-26).toString(36).toUpperCase():G>62?U+="-":U+="_",U),"");const screenDesignMainStore=pinia.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:{},countMap:{}}),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},getCountMap(){return this.countMap}},actions:{setSacle(te){this.scale=te/100},setSketchRuleLine(te,U){this.sketchRuleLine.h=te,this.sketchRuleLine.v=U},clearSketchRuleLine(){this.sketchRuleLine={h:[],v:[]}},setTargetWidget(te){this.targetsWidget=te},setWidgetList(te){this.widgetConfg.list=te},setWidgetHoverIds(te){this.widgetHoverIds=te},delWidgetItem(te){this.setWidgetList(this.getWidgetList.filter(U=>!te.includes(U.id))),this.setTargetWidget(this.getTargetWidget.filter(U=>!te.includes(U.id)))},copyWidgetItem(te){this.pasteWidget=[],te.forEach(U=>{const G=this.getWidgetList.find(ee=>ee.id==U);G&&this.pasteWidget.push(G)})},pasteWidgetItem(){this.pasteWidget.forEach(G=>{const ee=JSON.parse(JSON.stringify(G));let ne=ee.x,re=ee.y;ee.x+40>this.stageWidth-ee.w?ne=this.stageWidth-ee.w-40:ne+=40,ee.y+40>this.stageHeight-ee.h?re=this.stageHeight-ee.h-40:re+=40,this.widgetConfg.list.unshift({...ee,id:nanoid(),x:ne,y:re,z:this.widgetConfg.list.length+1,locked:!1})})},sortWidgetList(){this.widgetConfg.list.sort((te,U)=>U.z-te.z)},setCreateLoading(te){this.createLoading=te,te&&(this.targetsWidget=[],this.clearSketchRuleLine())},setRightPannel(te){this.showRightPannel=te},setStageWidth(te){this.stageWidth=te,this.widgetConfg.config.stageWidth=te},setStageHeight(te){this.stageHeight=te,this.widgetConfg.config.stageHeight=te},setTheme(){this.theme=this.theme=="dark"?"":"dark",document.getElementsByTagName("html")[0].className=this.theme,localStorage.setItem("design-theme",this.theme)},setChartData(te){this.chartData=te},setCountMap(te,U){this.countMap[te]=U}}});/*!
1
+ (function(te,U){typeof exports=="object"&&typeof module<"u"?module.exports=U(require("pinia"),require("@wangeditor/editor"),require("vue"),require("element-plus"),require("vue-draggable-plus"),require("dayjs"),require("echarts/core"),require("@wangeditor/editor-for-vue"),require("jsoneditor")):typeof define=="function"&&define.amd?define(["pinia","@wangeditor/editor","vue","element-plus","vue-draggable-plus","dayjs","echarts/core","@wangeditor/editor-for-vue","jsoneditor"],U):(te=typeof globalThis<"u"?globalThis:te||self,te["ace-component-lib"]=U(te.pinia,te.editor,te.Vue,te.elementPlus,te.vueDraggablePlus,te.dayjs,te.core,te.editorForVue,te.JsonEditor))})(this,function(pinia,editor,vue,elementPlus,vueDraggablePlus,dayjs,core,editorForVue,JsonEditor){"use strict";var Dt=Object.defineProperty;var It=(te,U,G)=>U in te?Dt(te,U,{enumerable:!0,configurable:!0,writable:!0,value:G}):te[U]=G;var Et=(te,U,G)=>(It(te,typeof U!="symbol"?U+"":U,G),G);const version="0.0.93",aceLib="";let e$3=class{constructor(U){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,U),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let U="";this.settings.url&&!this.settings.asyncUrl&&(U=this.settings.url);let G=this;if(this.settings.asyncUrl)return void G.settings.asyncUrl(function(ne){let re=G.getPrintWindow(ne);G.settings.preview?G.previewIfrmaeLoad():G.print(re)},G.settings.vue);let ee=this.getPrintWindow(U);this.settings.url||this.write(ee.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(ee)}addEvent(U,G,ee){U.addEventListener?U.addEventListener(G,ee,!1):U.attachEvent?U.attachEvent("on"+G,ee):U["on"+G]=ee}previewIfrmaeLoad(){let U=document.getElementById("vue-pirnt-nb-previewBox");if(U){let G=this,ee=U.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(ee,"load",function(){G.previewBoxShow(),G.removeCanvasImg(),G.settings.previewOpenCallback()}),this.addEvent(U.querySelector(".previewBodyUtilPrintBtn"),"click",function(){G.settings.beforeOpenCallback(),G.settings.openCallback(),ee.contentWindow.print(),G.settings.closeCallback()})}}removeCanvasImg(){let U=this;try{if(U.elsdom){let G=U.elsdom.querySelectorAll(".canvasImg");for(let ee=0;ee<G.length;ee++)G[ee].remove()}}catch(G){console.log(G)}}print(U){var G=this;let ee=document.getElementById(this.settings.id)||U.f,ne=document.getElementById(this.settings.id).contentWindow||U.f.contentWindow;G.settings.beforeOpenCallback(),G.addEvent(ee,"load",function(){ne.focus(),G.settings.openCallback(),ne.print(),ee.remove(),G.settings.closeCallback(),G.removeCanvasImg()})}write(U){U.open(),U.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),U.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 U="",G="",ee="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,re=>{U+=re}),[].forEach.call(document.querySelectorAll("link"),function(re){re.href.indexOf(".css")>=0&&(G+=`<link type="text/css" rel="stylesheet" href="${re.href}" >`)});let ne=document.styleSheets;if(ne&&ne.length>0)for(let re=0;re<ne.length;re++)try{if(ne[re].cssRules||ne[re].rules){let oe=ne[re].cssRules||ne[re].rules;for(let ie=0;ie<oe.length;ie++)ee+=oe[ie].cssText}}catch(oe){console.log(ne[re].href+oe)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,re=>{G+=`<link type="text/css" rel="stylesheet" href="${re}">`}),`<head><title>${this.settings.popTitle}</title>${U}${G}<style type="text/css">${ee}</style></head>`}getBody(){let U=this.settings.ids;return U=U.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(U)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(U){let G=U.querySelectorAll("canvas");for(let ee=0;ee<G.length;ee++)if(!G[ee].style.display){let ne=G[ee].parentNode,re=G[ee].toDataURL("image/png"),oe=new Image;oe.className="canvasImg",oe.style.display="none",oe.src=re,ne.appendChild(oe)}return U}getFormData(U){let G=U.cloneNode(!0),ee=G.querySelectorAll("input,select,textarea"),ne=G.querySelectorAll(".canvasImg,canvas"),re=-1;for(let oe=0;oe<ne.length;oe++){let ie=ne[oe].parentNode,le=ne[oe];le.tagName.toLowerCase()==="canvas"?ie.removeChild(le):le.style.display="block"}for(let oe=0;oe<ee.length;oe++){let ie=ee[oe],le=ie.getAttribute("type"),ae=ee[oe];if(le||(le=ie.tagName==="SELECT"?"select":ie.tagName==="TEXTAREA"?"textarea":""),ie.tagName==="INPUT")le==="radio"||le==="checkbox"?ie.checked&&ae.setAttribute("checked",ie.checked):(ae.value=ie.value,ae.setAttribute("value",ie.value));else if(le==="select"){re++;for(let se=0;se<U.querySelectorAll("select").length;se++){let ue=U.querySelectorAll("select")[se];if(!ue.getAttribute("newbs")&&ue.setAttribute("newbs",se),ue.getAttribute("newbs")==re){let ce=U.querySelectorAll("select")[re].selectedIndex;ie.options[ce].setAttribute("selected",!0)}}}else ae.innerHTML=ie.value,ae.setAttribute("html",ie.value)}return G}getPrintWindow(U){var G=this.Iframe(U);return{f:G,win:G.contentWindow||G,doc:G.doc}}previewBoxShow(){let U=document.getElementById("vue-pirnt-nb-previewBox");U&&(document.querySelector("html").setAttribute("style","overflow: hidden"),U.style.display="block")}previewBoxHide(){let U=document.getElementById("vue-pirnt-nb-previewBox");U&&(document.querySelector("html").setAttribute("style","overflow: visible;"),U.querySelector("iframe")&&U.querySelector("iframe").remove(),U.style.display="none")}previewBox(){let U=document.getElementById("vue-pirnt-nb-previewBox"),G="previewBody";if(U)return U.querySelector("iframe")&&U.querySelector("iframe").remove(),{close:U.querySelector(".previewClose"),previewBody:U.querySelector(".previewBody")};let ee=document.createElement("div");ee.setAttribute("id","vue-pirnt-nb-previewBox"),ee.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),ee.style.zIndex=this.settings.zIndex;let ne=document.createElement("div");ne.setAttribute("class","previewHeader"),ne.setAttribute("style","padding: 5px 20px;"),ne.innerHTML=this.settings.previewTitle,ee.appendChild(ne),this.close=document.createElement("div");let re=this.close;re.setAttribute("class","previewClose"),re.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let oe=document.createElement("div"),ie=document.createElement("div");oe.setAttribute("class","closeBefore"),oe.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),ie.setAttribute("class","closeAfter"),ie.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),re.appendChild(oe),re.appendChild(ie),ne.appendChild(re),this.previewBody=document.createElement("div");let le=this.previewBody;le.setAttribute("class",G),le.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),ee.appendChild(le);let ae=document.createElement("div");ae.setAttribute("class","previewBodyUtil"),ae.setAttribute("style","height: 32px;background: #474747;position: relative;"),le.appendChild(ae),this.previewBodyUtilPrintBtn=document.createElement("div");let se=this.previewBodyUtilPrintBtn;return se.setAttribute("class","previewBodyUtilPrintBtn"),se.innerHTML=this.settings.previewPrintBtnLabel,se.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);"),ae.appendChild(se),document.body.appendChild(ee),{close:this.close,previewBody:this.previewBody}}iframeBox(U,G){let ee=document.createElement("iframe");return ee.style.border="0px",ee.style.position="absolute",ee.style.width="0px",ee.style.height="0px",ee.style.right="0px",ee.style.top="0px",ee.setAttribute("id",U),ee.setAttribute("src",G),ee}Iframe(U){let G=this.settings.id;U=U||new Date().getTime();let ee=this,ne=this.iframeBox(G,U);try{if(this.settings.preview){ne.setAttribute("style","border: 0px;flex: 1;");let re=this.previewBox(),oe=re.previewBody,ie=re.close;oe.appendChild(ne),this.addEvent(ie,"click",function(){ee.previewBoxHide()})}else document.body.appendChild(ne);ne.doc=null,ne.doc=ne.contentDocument?ne.contentDocument:ne.contentWindow?ne.contentWindow.document:ne.document}catch(re){throw new Error(re+". iframes may not be supported in this browser.")}if(ne.doc==null)throw new Error("Cannot find document.");return ne}};var t$2={directiveName:"print",mounted(te,U,G){let ee=U.instance,ne="";var re,oe,ie;oe="click",ie=()=>{if(typeof U.value=="string")ne=U.value;else{if(typeof U.value!="object"||!U.value.id)return void window.print();{ne=U.value.id;let ae=ne.replace(new RegExp("#","g"),"");document.getElementById(ae)||(console.log("id in Error"),ne="")}}le()},(re=te).addEventListener?re.addEventListener(oe,ie,!1):re.attachEvent?re.attachEvent("on"+oe,ie):re["on"+oe]=ie;const le=()=>{new e$3({ids:ne,vue:ee,url:U.value.url,standard:"",extraHead:U.value.extraHead,extraCss:U.value.extraCss,zIndex:U.value.zIndex||20002,previewTitle:U.value.previewTitle||"打印预览",previewPrintBtnLabel:U.value.previewPrintBtnLabel||"打印",popTitle:U.value.popTitle,preview:U.value.preview||!1,asyncUrl:U.value.asyncUrl,previewBeforeOpenCallback(){U.value.previewBeforeOpenCallback&&U.value.previewBeforeOpenCallback(ee)},previewOpenCallback(){U.value.previewOpenCallback&&U.value.previewOpenCallback(ee)},openCallback(){U.value.openCallback&&U.value.openCallback(ee)},closeCallback(){U.value.closeCallback&&U.value.closeCallback(ee)},beforeOpenCallback(){U.value.beforeOpenCallback&&U.value.beforeOpenCallback(ee)}})}},install:function(te){te.directive("print",t$2)}},FieldRenderType=(te=>(te.String="string",te.Integer="interget",te))(FieldRenderType||{}),DynamicTableType=(te=>(te.Default="default",te.DataForm="dataForm",te))(DynamicTableType||{}),ItableType=(te=>(te.Link="link",te))(ItableType||{}),FieldType=(te=>(te.Text="text",te.Select="select",te.Date="date",te.DateTime="datetime",te.CheckBox="checkbox",te.Switch="switch",te.Radio="radio",te.Textarea="textarea",te.Number="number",te.NumberRange="numberRange",te.Cascader="cascader",te.Daterange="daterange",te.Monthrange="monthrange",te.File="file",te.TreeSelect="treeSelect",te.Year="year",te.Month="month",te.Hr="hr",te.Slot="slot",te.Editor="editor",te.Password="password",te.Json="json",te.Markdown="markdown",te.Rate="rate",te.TimeRange="timerange",te.Time="time",te.DateTimeRange="datetimerange",te))(FieldType||{});let nanoid=(te=21)=>crypto.getRandomValues(new Uint8Array(te)).reduce((U,G)=>(G&=63,G<36?U+=G.toString(36):G<62?U+=(G-26).toString(36).toUpperCase():G>62?U+="-":U+="_",U),"");const screenDesignMainStore=pinia.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:{},countMap:{}}),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},getCountMap(){return this.countMap}},actions:{setSacle(te){this.scale=te/100},setSketchRuleLine(te,U){this.sketchRuleLine.h=te,this.sketchRuleLine.v=U},clearSketchRuleLine(){this.sketchRuleLine={h:[],v:[]}},setTargetWidget(te){this.targetsWidget=te},setWidgetList(te){this.widgetConfg.list=te},setWidgetHoverIds(te){this.widgetHoverIds=te},delWidgetItem(te){this.setWidgetList(this.getWidgetList.filter(U=>!te.includes(U.id))),this.setTargetWidget(this.getTargetWidget.filter(U=>!te.includes(U.id)))},copyWidgetItem(te){this.pasteWidget=[],te.forEach(U=>{const G=this.getWidgetList.find(ee=>ee.id==U);G&&this.pasteWidget.push(G)})},pasteWidgetItem(){this.pasteWidget.forEach(G=>{const ee=JSON.parse(JSON.stringify(G));let ne=ee.x,re=ee.y;ee.x+40>this.stageWidth-ee.w?ne=this.stageWidth-ee.w-40:ne+=40,ee.y+40>this.stageHeight-ee.h?re=this.stageHeight-ee.h-40:re+=40,this.widgetConfg.list.unshift({...ee,id:nanoid(),x:ne,y:re,z:this.widgetConfg.list.length+1,locked:!1})})},sortWidgetList(){this.widgetConfg.list.sort((te,U)=>U.z-te.z)},setCreateLoading(te){this.createLoading=te,te&&(this.targetsWidget=[],this.clearSketchRuleLine())},setRightPannel(te){this.showRightPannel=te},setStageWidth(te){this.stageWidth=te,this.widgetConfg.config.stageWidth=te},setStageHeight(te){this.stageHeight=te,this.widgetConfg.config.stageHeight=te},setTheme(){this.theme=this.theme=="dark"?"":"dark",document.getElementsByTagName("html")[0].className=this.theme,localStorage.setItem("design-theme",this.theme)},setChartData(te){this.chartData=te},setCountMap(te,U){this.countMap[te]=U}}});/*!
2
2
  * Compressor.js v1.2.1
3
3
  * https://fengyuanchen.github.io/compressorjs
4
4
  *
@@ -786,7 +786,7 @@ cursor: move;
786
786
  }
787
787
  .__STYLED__ .loading-tip {
788
788
  font-size: 15px;
789
- `("loading");vue.defineComponent({name:"Loading",setup(te,{slots:U}){return()=>vue.createVNode(o,null,{default:()=>{var G;return[vue.createVNode("svg",{width:"50px",height:"50px"},[vue.createVNode("circle",{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"},[vue.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),vue.createVNode("animate",{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"},null)]),vue.createVNode("circle",{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"},[vue.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),vue.createVNode("animate",{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"},null)])]),vue.createVNode("div",{class:"loading-tip"},[(G=U.default)==null?void 0:G.call(U)])]}})}});const _sfc_main$2Y=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(V$3),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2Y},Symbol.toStringTag,{value:"Module"})),_sfc_main$2X=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(V$2),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2X},Symbol.toStringTag,{value:"Module"})),_sfc_main$2W=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(B$1),{color:vue.unref(G),ref_key:"customRef",ref:ee},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(U.config.customize.title),1)]),_:1},8,["color"]))}}),__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2W},Symbol.toStringTag,{value:"Module"})),_sfc_main$2V=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(dt),{color:vue.unref(G),scanDuration:ne.config.customize.scanDuration,haloDuration:ne.config.customize.haloDuration,ref_key:"customRef",ref:ee},null,8,["color","scanDuration","haloDuration"]))}}),__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2V},Symbol.toStringTag,{value:"Module"})),_sfc_main$2U=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(A$3),{color:vue.unref(G),duration:ne.config.customize.duration,reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","duration","reverse"]))}}),__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2U},Symbol.toStringTag,{value:"Module"})),_sfc_main$2T=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(E$1),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2T},Symbol.toStringTag,{value:"Module"})),_sfc_main$2S=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(F),{color:vue.unref(G),duration:ne.config.customize.duration,reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","duration","reverse"]))}}),__vite_glob_0_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2S},Symbol.toStringTag,{value:"Module"})),_sfc_main$2R=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(J$1),{color:vue.unref(G),duration:ne.config.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","duration"]))}}),__vite_glob_0_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2R},Symbol.toStringTag,{value:"Module"})),_sfc_main$2Q=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(Y),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2Q},Symbol.toStringTag,{value:"Module"})),_sfc_main$2P=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(A$1),{color:vue.unref(G),reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","reverse"]))}}),__vite_glob_0_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2P},Symbol.toStringTag,{value:"Module"})),_sfc_main$2O=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(J),{color:vue.unref(G),reverse:ne.config.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","reverse"]))}}),__vite_glob_0_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2O},Symbol.toStringTag,{value:"Module"})),_sfc_main$2N=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(D$7),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2N},Symbol.toStringTag,{value:"Module"})),_sfc_main$2M=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2M},Symbol.toStringTag,{value:"Module"})),_sfc_main$2L=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie,le;return vue.openBlock(),vue.createBlock(vue.unref(O$1),{color:vue.unref(G),title:(oe=U.config)==null?void 0:oe.customize.title,titleWidth:(ie=U.config)==null?void 0:ie.customize.titleWidth,backgroundColor:(le=U.config)==null?void 0:le.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","title","titleWidth","backgroundColor"])}}}),__vite_glob_1_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2L},Symbol.toStringTag,{value:"Module"})),_sfc_main$2K=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(D$6),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2K},Symbol.toStringTag,{value:"Module"})),_sfc_main$2J=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$7),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2J},Symbol.toStringTag,{value:"Module"})),_sfc_main$2I=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$6),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2I},Symbol.toStringTag,{value:"Module"})),_sfc_main$2H=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2H},Symbol.toStringTag,{value:"Module"})),_sfc_main$2G=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie;return vue.openBlock(),vue.createBlock(vue.unref(J$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse"])}}}),__vite_glob_1_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2G},Symbol.toStringTag,{value:"Module"})),_sfc_main$2F=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie;return vue.openBlock(),vue.createBlock(vue.unref(J$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse"])}}}),__vite_glob_1_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2F},Symbol.toStringTag,{value:"Module"})),_sfc_main$2E=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$5),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2E},Symbol.toStringTag,{value:"Module"})),_sfc_main$2D=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$2),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2D},Symbol.toStringTag,{value:"Module"})),_sfc_main$2C=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie,le;return vue.openBlock(),vue.createBlock(vue.unref(Y$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,duration:(le=U.config)==null?void 0:le.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse","duration"])}}}),__vite_glob_1_11$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2C},Symbol.toStringTag,{value:"Module"})),_sfc_main$2B=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(V$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_12$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2B},Symbol.toStringTag,{value:"Module"})),_sfc_main$2A=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>U.config.customize.width+"px"),ee=vue.computed(()=>U.config.customize.borderGap+"px"),ne=vue.computed(()=>{const re=U.config.customize.gradientColor0,oe=U.config.customize.gradientColor1;return`linear-gradient(to bottom, ${U.config.customize.borderType=="dashed"?"transparent 0%,transparent 50%,":""} ${re||oe} 50%, ${oe||re} 100%)`});return(re,oe)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({width:vue.unref(G),"background-image":vue.unref(ne),"background-repeat":"repeat-y","background-size":U.config.customize.borderType=="dashed"?`${vue.unref(G)} ${vue.unref(ee)}`:""}),class:"h-full"},null,4))}}),__vite_glob_2_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2A},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1F=["src"],_sfc_main$2z=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te;return(G,ee)=>(vue.openBlock(),vue.createElementBlock("iframe",{src:U.config.customize.url,class:"w-full h-full border-0"},null,8,_hoisted_1$1F))}}),__vite_glob_2_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2z},Symbol.toStringTag,{value:"Module"})),_sfc_main$2y=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const{proxy:U}=vue.getCurrentInstance(),{resetUrl:G}=U.$globalUtils,ee=te;return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElImage),{class:"w-full h-full",src:vue.unref(G)(ee.config.customize.url),fit:ee.config.customize.fit},null,8,["src","fit"]))}}),__vite_glob_2_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2y},Symbol.toStringTag,{value:"Module"})),_sfc_main$2x=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(G),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(U.config.customize.title),5))}}),__vite_glob_2_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2x},Symbol.toStringTag,{value:"Module"})),_sfc_main$2w=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{const ee=U.config.customize.gradientColor0,ne=U.config.customize.gradientColor1;return`linear-gradient(to ${U.config.customize.colorPosition}, ${ee||ne} , ${ne||ee})`});return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{class:"w-full h-full",style:vue.normalizeStyle({"background-image":vue.unref(G),borderRadius:U.config.customize.borderRadius+"px"})},null,4))}}),__vite_glob_2_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2w},Symbol.toStringTag,{value:"Module"})),_sfc_main$2v=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(G),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(U.config.customize.title),5))}}),__vite_glob_2_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2v},Symbol.toStringTag,{value:"Module"})),_sfc_main$2u=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.ref(),ee=()=>{G.value=dayjs().format("YYYY-MM-DD HH:mm:ss")},ne=setInterval(()=>{ee()},1e3);ee(),vue.onBeforeUnmount(()=>{ne&&clearInterval(ne)});const re=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(oe,ie)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(re),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(vue.unref(G)),5))}}),__vite_glob_2_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2u},Symbol.toStringTag,{value:"Module"})),_sfc_main$2t=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>U.config.customize.height+"px"),ee=vue.computed(()=>U.config.customize.borderGap+"px"),ne=vue.computed(()=>{const re=U.config.customize.gradientColor0,oe=U.config.customize.gradientColor1;return`linear-gradient(to right, ${U.config.customize.borderType=="dashed"?"transparent 0%,transparent 50%,":""} ${re||oe} 50%, ${oe||re} 100%)`});return(re,oe)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({height:vue.unref(G),"background-image":vue.unref(ne),"background-repeat":"repeat-x","background-size":U.config.customize.borderType=="dashed"?`${vue.unref(ee)} ${vue.unref(G)}`:""}),class:"w-full"},null,4))}}),__vite_glob_2_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2t},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1E={class:"w-full h-full"},_hoisted_2$1m=["placeholder"],_sfc_main$2s=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){vue.useCssVars(re=>({"75aca5f8":vue.unref(ee)}));const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.computed(()=>U.config.customize.color),ne=()=>{const re=U.config.customize.linkage;G.$baseEventBus.emit("ace-screen-indicators-linkage",re.map(oe=>oe[0]))};return(re,oe)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1E,[vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":oe[0]||(oe[0]=ie=>U.config.customize.modelValue=ie),placeholder:U.config.customize.placeholder,style:vue.normalizeStyle({width:"100%",height:"100%",backgroundColor:U.config.customize.backgroundColor,borderWidth:`${U.config.customize.borderTopWidth}px ${U.config.customize.borderRightWidth}px ${U.config.customize.borderBottomWidth}px ${U.config.customize.borderLeftWidth}px `,borderColor:U.config.customize.borderColor,color:U.config.customize.color,fontSize:U.config.customize.fontSize+"px",borderRadius:U.config.customize.borderRadius+"px"}),onBlur:ne},null,44,_hoisted_2$1m),[[vue.vModelText,U.config.customize.modelValue]])]))}}),index_vue_vue_type_style_index_0_scoped_4faa96c2_lang="",index$2=_export_sfc$2(_sfc_main$2s,[["__scopeId","data-v-4faa96c2"]]),__vite_glob_3_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:index$2},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1D={class:"w-full h-full"},_sfc_main$2r=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.ref([]);vue.watch(()=>U.config.customize.dictId,()=>{ne()},{});const ne=()=>{const oe=U.config.customize.dictId;oe&&G.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${oe}`).then(ie=>{ee.value=dictArratToTree(ie.data??[])})};vue.onMounted(()=>{ne()});const re=()=>{const oe=U.config.customize.linkage;G.$baseEventBus.emit("ace-screen-indicators-linkage",oe.map(ie=>ie[0]))};return(oe,ie)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1D,[vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{expandAll:!1,props:{label:"name",value:"code"},modelValue:U.config.customize.modelValue,"onUpdate:modelValue":ie[0]||(ie[0]=le=>U.config.customize.modelValue=le),placeholder:U.config.customize.placeholder,style:{width:"100%",height:"100%"},onChange:re,clearable:U.config.customize.clearable,renderAfterExpand:"",data:vue.unref(ee)},null,8,["modelValue","placeholder","clearable","data"])]))}}),__vite_glob_3_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2r},Symbol.toStringTag,{value:"Module"})),moudleComponents$1={};for(let te=0;te<=5;te+=1){let U=null;if(te==0&&(U=Object.assign({"../decoration/decoration1/index.vue":__vite_glob_0_0$1,"../decoration/decoration10/index.vue":__vite_glob_0_1$1,"../decoration/decoration11/index.vue":__vite_glob_0_2$1,"../decoration/decoration12/index.vue":__vite_glob_0_3$1,"../decoration/decoration2/index.vue":__vite_glob_0_4$1,"../decoration/decoration3/index.vue":__vite_glob_0_5$1,"../decoration/decoration4/index.vue":__vite_glob_0_6$1,"../decoration/decoration5/index.vue":__vite_glob_0_7$1,"../decoration/decoration6/index.vue":__vite_glob_0_8$1,"../decoration/decoration8/index.vue":__vite_glob_0_9$1,"../decoration/decoration9/index.vue":__vite_glob_0_10$1})),te==1&&(U=Object.assign({"../border/border1/index.vue":__vite_glob_1_0$1,"../border/border10/index.vue":__vite_glob_1_1$1,"../border/border11/index.vue":__vite_glob_1_2$1,"../border/border12/index.vue":__vite_glob_1_3$1,"../border/border13/index.vue":__vite_glob_1_4$1,"../border/border2/index.vue":__vite_glob_1_5$1,"../border/border3/index.vue":__vite_glob_1_6$1,"../border/border4/index.vue":__vite_glob_1_7$1,"../border/border5/index.vue":__vite_glob_1_8$1,"../border/border6/index.vue":__vite_glob_1_9$1,"../border/border7/index.vue":__vite_glob_1_10$1,"../border/border8/index.vue":__vite_glob_1_11$1,"../border/border9/index.vue":__vite_glob_1_12$1})),te==2&&(U=Object.assign({"../basic/horizontal-line/index.vue":__vite_glob_2_0$1,"../basic/iframe/index.vue":__vite_glob_2_1$1,"../basic/img/index.vue":__vite_glob_2_2$1,"../basic/number/index.vue":__vite_glob_2_3$1,"../basic/square/index.vue":__vite_glob_2_4$1,"../basic/text/index.vue":__vite_glob_2_5$1,"../basic/time/index.vue":__vite_glob_2_6$1,"../basic/vertical-line/index.vue":__vite_glob_2_7$1})),te==3&&(U=Object.assign({"../control/input/index.vue":__vite_glob_3_0$1,"../control/select/index.vue":__vite_glob_3_1$1})),U)for(const[G,ee]of Object.entries(U)){const ne=G.split("/")[2];moudleComponents$1[ne]=ee.default}}function useBarCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={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:U,customSeriesData:te,seriesItem:G,barConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,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 useLineCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={type:"line",symbolSize:5,smooth:!0,showArea:!1,areaStyleTmp:{},lineStyle:{type:"solid",width:3,color:null},label:{show:!0,position:"top",color:"#000000",fontSize:10,rotate:0}};return{init:U,customSeriesData:te,seriesItem:G,lineConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,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 usePieCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{ne.dataset.dimensions=[ne.dataShow.x,ne.dataShow.y],te.value[ne.dataShow.y]||(te.value[ne.dataShow.y]=JSON.parse(JSON.stringify(G))),window.customSeriesData=te.value,ne.series=[te.value[ne.dataShow.y]],re&&re()})},G={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:U,customSeriesData:te,seriesItem:G,pieConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,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 useBarLineCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(re,oe)=>{re.series=[],setTimeout(()=>{const ie=re.dataShow.y.filter(le=>!re.dataShow.hide.includes(le));re.dataset.dimensions=[re.dataShow.x,...ie],re.dataShow.y.forEach((le,ae)=>{if(te.value[le])return;const se=re.dataShow.y.length==ae+1&&re.dataShow.y.length>0;te.value[le]=JSON.parse(JSON.stringify(se?G:ee))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(le=>{le.label.formatter=ae=>{const se=re.custom,ue=ae.data[ae.seriesName];if((se==null?void 0:se.toFixed)!=="")try{return Number(ue).toFixed(se.toFixed)}catch{return ue}return ue}}),re.series=ie.map((le,ae)=>te.value[le]),oe&&oe()})},G={type:"line",symbolSize:5,smooth:!0,areaStyleTmp:{},showArea:!1,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}},ee={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:U,customSeriesData:te,seriesLineItem:G,seriesBarItem:ee,barsLinesConfig:{tooltip:{show:!0,confine:!0,valueFormatter:re=>re,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 useScatterCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={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:U,customSeriesData:te,seriesItem:G,scatterCfg:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,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 useRadar(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(le=>!ne.dataShow.hide.includes(le));ne.dataset.dimensions=oe,vue.unref(te).type||(te.value=JSON.parse(JSON.stringify(G))),window.customSeriesData=te.value,ne.radar.indicator=ne.dataset.source.map(le=>({name:le[ne.dataShow.x]}));const ie=[];ne.dataset.dimensions.forEach(le=>{ie.push({name:le,value:ne.dataset.source.map(ae=>ae[le])})}),ne.series=[{...te.value,data:ie}],vue.unref(te).label.formatter=le=>{const ae=ne.custom,se=le.value;if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se},re&&re()})},G={type:"radar",areaStyle:{opacity:.1},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10},data:[]};return{init:U,customSeriesData:te,seriesItem:G,radarConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne},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 useNumber(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{typeof ne.dataShow.y=="string"&&ne.dataShow.y&&(ne.dataShow.y=[ne.dataShow.y]);const oe=ne.dataShow.y.filter(ie=>{var le;return!(((le=ne.dataShow)==null?void 0:le.hide)??[]).includes(ie)});ne.dataset.dimensions=oe,ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),ne.customSeriesData=te.value,window.customSeriesData=te.value,re&&re()})},G={prefix:"",suffix:"",toFixed:0,color:null,fontSize:14,titleFontSize:14,bgColor:null};return{init:U,seriesItem:G,customSeriesData:te,numberConfig:{margin:10,padding:10,dataShow:{x:"",y:[],hide:[]},dataset:{}}}}function useTable(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=oe,ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),ne.customSeriesData=te.value,window.customSeriesData=te.value,re&&re()})},G={prefix:"",suffix:"",toFixed:0,color:null};return{init:U,customSeriesData:te,tableConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}const city=[{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 useMap(){const te=async(ne,re)=>{let oe=String(ne.code).padEnd(6,"0");const ie=G(vue.unref(city)[0],oe),le=await U(`${oe}${(ie==null?void 0:ie.region_level)!=3?"_full":""}`);core.registerMap(oe,le),ne.geo.map=oe;const ae=ne.dataset.source,se=[];((le==null?void 0:le.features)??[]).forEach(ue=>{const de=(ae.find(he=>he[ne.dataShow.x]==ue.properties.name)??{})[ne.dataShow.y]??0,fe=ue.properties.center?[...ue.properties.center,de]:ue.properties.center,ve={name:ue.properties.name,value:fe,code:ue.properties.adcode,data:de};Number(de)<=0&&(ve.symbolSize=0),se.push(ve)}),ne.series=[{type:"map",map:oe,roam:!0,geoIndex:0,select:!1,data:se},{...ne.style.style1,data:se},{...ne.style.style2,data:se}],re&&re()},U=async ne=>{const re=`https://geo.datav.aliyun.com/areas_v3/bound/${ne}.json`;return await fetch(re).then(ie=>ie.json())};function G(ne,re){var oe;if(String(ne.code).padEnd(6,"0")==re)return ne;for(let ie=0;ie<((oe=ne==null?void 0:ne.children)==null?void 0:oe.length);ie+=1){const le=ne.children[ie],ae=G(le,re);if(ae)return ae}return null}return{init:te,city,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:ne=>ne.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 useCustomChart(){const{proxy:te}=vue.getCurrentInstance(),U=vue.ref({}),G=vue.ref(""),ee=vue.ref(null),ne=vue.ref(null),re=vue.ref(""),oe=async(ce,de,fe)=>await new Promise(async ve=>{var be,ye;const he=screenDesignMainStore(),pe=JSON.parse(JSON.stringify(((be=vue.unref(ee))==null?void 0:be.params)??((ye=he.getChartData)==null?void 0:ye.params))),ge=JSON.parse((pe==null?void 0:pe.groupArgsJson)??"[]");let me=JSON.parse((pe==null?void 0:pe.aggArgsJson)??"[]");if(de){const xe=ge.find(Ce=>Ce.comment==de);xe&&(pe.groupArgsJson=JSON.stringify([xe]))}if(["2"].includes(ce)&&fe){const xe=me.find(Ce=>Ce.showLabel==fe);xe&&(pe.aggArgsJson=JSON.stringify([xe]))}["8"].includes(ce)||(pe.aggArgsJson=JSON.stringify(me.filter(xe=>xe.aggType!="other")));const _e=await te.$baseHttp.post("/api/ace-data-center/model-indicators/exec",pe);ne.value=_e.data.var,re.value=_e.data.modelIndicatorsName,ve(_e.data.page.records)}),ie=async(ce,de,fe)=>await new Promise(async ve=>{let he=de;const pe=screenDesignMainStore();if(ce){const ge=await te.$baseHttp.get(`/api/ace-data-center/model-indicators-echarts/detail?id=${ce}`);if(!ge)return;fe=chartJsonFormat(ge.data.echartsConfig),he=ge.data.echartsType}G.value=he,setTimeout(async()=>{var ge,me,_e,be,ye,xe,Ce,$e,we,Ee,Ve,Se,ke,Ne,Ie,Pe,Te,De,Oe,Be,Ae,Le,Re,Fe,je,Me,ze,Ge,We,Ue,qe,Ye,Je,Xe,Ke,He,Qe,Ze,et,at,ct,st,it,lt,pt,mt,bt,xt,wt;switch(he){case"1":{const{lineConfig:ft,customSeriesData:ut,init:ht}=useLineCommon();ut.value=((ge=vue.unref(fe))==null?void 0:ge.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),delete U.value.legend.icon,vue.unref(U).dataShow.x=((me=fe==null?void 0:fe.dataShow)==null?void 0:me.x)??((be=(_e=pe.getChartData)==null?void 0:_e.x[0])==null?void 0:be.comment),vue.unref(U).dataShow.y=(((ye=vue.unref(ee))==null?void 0:ye.y)??((xe=pe.getChartData)==null?void 0:xe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"2":{const{pieConfig:ft,customSeriesData:ut,init:ht}=usePieCommon();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Ce=fe==null?void 0:fe.dataShow)==null?void 0:Ce.x)??((we=($e=pe.getChartData)==null?void 0:$e.x[0])==null?void 0:we.comment),vue.unref(U).dataShow.y=((Ee=fe==null?void 0:fe.dataShow)==null?void 0:Ee.y)??((Se=(Ve=pe.getChartData)==null?void 0:Ve.y[0])==null?void 0:Se.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x,vue.unref(U).dataShow.y),ht(vue.unref(U),()=>ue())}break;case"3":{const{barConfig:ft,customSeriesData:ut,init:ht}=useBarCommon();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((ke=fe==null?void 0:fe.dataShow)==null?void 0:ke.x)??((Ie=(Ne=pe.getChartData)==null?void 0:Ne.x[0])==null?void 0:Ie.comment),vue.unref(U).dataShow.y=(((Pe=vue.unref(ee))==null?void 0:Pe.y)??((Te=pe.getChartData)==null?void 0:Te.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"4":{const{radarConfig:ft,customSeriesData:ut,init:ht}=useRadar();ut.value=((De=vue.unref(fe))==null?void 0:De.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Oe=fe==null?void 0:fe.dataShow)==null?void 0:Oe.x)??((Ae=(Be=pe.getChartData)==null?void 0:Be.x[0])==null?void 0:Ae.comment),vue.unref(U).dataShow.y=(((Le=vue.unref(ee))==null?void 0:Le.y)??((Re=pe.getChartData)==null?void 0:Re.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"5":{const{barsLinesConfig:ft,customSeriesData:ut,init:ht}=useBarLineCommon();ut.value=((Fe=vue.unref(fe))==null?void 0:Fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((je=fe==null?void 0:fe.dataShow)==null?void 0:je.x)??((ze=(Me=pe.getChartData)==null?void 0:Me.x[0])==null?void 0:ze.comment),vue.unref(U).dataShow.y=(((Ge=vue.unref(ee))==null?void 0:Ge.y)??((We=pe.getChartData)==null?void 0:We.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"6":{const{scatterCfg:ft,customSeriesData:ut,init:ht}=useScatterCommon();ut.value=((Ue=vue.unref(fe))==null?void 0:Ue.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((qe=fe==null?void 0:fe.dataShow)==null?void 0:qe.x)??((Je=(Ye=pe.getChartData)==null?void 0:Ye.x[0])==null?void 0:Je.comment),vue.unref(U).dataShow.y=(((Xe=vue.unref(ee))==null?void 0:Xe.y)??((Ke=pe.getChartData)==null?void 0:Ke.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"7":{const{numberConfig:ft,customSeriesData:ut,init:ht}=useNumber();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.y=(((He=vue.unref(ee))==null?void 0:He.y)??((Qe=pe.getChartData)==null?void 0:Qe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he),ht(vue.unref(U),()=>ue())}break;case"8":{const{customSeriesData:ft,tableConfig:ut,init:ht}=useTable();U.value=fe??chartJsonFormat(chartJsonToStringFormat(ut)),ft.value=((Ze=vue.unref(fe))==null?void 0:Ze.customSeriesData)??{};const rt=[...(((et=vue.unref(ee))==null?void 0:et.x)??((at=pe.getChartData)==null?void 0:at.x)).map(_t=>_t.comment),...(((ct=vue.unref(ee))==null?void 0:ct.y)??((st=pe.getChartData)==null?void 0:st.y)).map(_t=>_t.showLabel)];let $t=[];(((it=vue.unref(U).dataShow)==null?void 0:it.y)??[]).forEach(_t=>{$t.push(_t)}),$t.push(...rt),vue.unref(U).dataShow.y=[...new Set($t)],vue.unref(U).dataset.source=await oe(he),ht(vue.unref(U),()=>ue())}break;case"9":const{mapConfig:yt,init:Ct}=useMap(),gt=fe??chartJsonFormat(chartJsonToStringFormat(yt));console.log(gt),gt.series=[],gt.dataShow.x=((lt=fe==null?void 0:fe.dataShow)==null?void 0:lt.x)??((mt=(pt=pe.getChartData)==null?void 0:pt.x[0])==null?void 0:mt.comment),gt.dataShow.y=((bt=fe==null?void 0:fe.dataShow)==null?void 0:bt.y)??((wt=(xt=pe.getChartData)==null?void 0:xt.y[0])==null?void 0:wt.showLabel),gt.dataset.source=await oe(he,gt.dataShow.x,gt.dataShow.y),Ct(gt,()=>{U.value=gt,ue()});break}ve(U.value)},100)}),le=()=>{var ce,de,fe,ve,he,pe,ge;switch(vue.unref(G)){case"1":{const{customSeriesData:me,init:_e}=useLineCommon();me.value=((ce=vue.unref(U))==null?void 0:ce.customSeriesData)??{},_e(vue.unref(U))}break;case"2":{const{customSeriesData:me,init:_e}=usePieCommon();me.value=((de=vue.unref(U))==null?void 0:de.customSeriesData)??{},_e(vue.unref(U))}break;case"3":{const{customSeriesData:me,init:_e}=useBarCommon();me.value=((fe=vue.unref(U))==null?void 0:fe.customSeriesData)??{},_e(vue.unref(U))}break;case"4":{const{customSeriesData:me,init:_e}=useRadar();me.value=((ve=vue.unref(U))==null?void 0:ve.customSeriesData)??{},_e(vue.unref(U))}break;case"5":{const{customSeriesData:me,init:_e}=useBarLineCommon();me.value=((he=vue.unref(U))==null?void 0:he.customSeriesData)??{},_e(vue.unref(U))}break;case"6":{const{customSeriesData:me,init:_e}=useScatterCommon();me.value=((pe=vue.unref(U))==null?void 0:pe.customSeriesData)??{},_e(vue.unref(U))}break;case"7":{const{init:me}=useNumber();me(vue.unref(U))}break;case"8":{const{customSeriesData:me,init:_e}=useTable();me.value=((ge=vue.unref(U))==null?void 0:ge.customSeriesData)??{},_e(vue.unref(U))}break}},ae=async(ce,de,fe)=>{await new Promise(async ve=>{var xe;const he=screenDesignMainStore(),{dynamicSearchFormat:pe,dynamicSearchParams:ge}=te.$aceDynamicSearch();let me;me=await te.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${ce}`);const _e=JSON.parse(me.data.sortArgsJson??"{}"),be=Object.keys(vue.unref(_e)).map(Ce=>({field:Ce,type:_e[Ce]=="ascending"?"asc":"desc"}));he.setChartData({x:JSON.parse(me.data.groupArgsJson),y:JSON.parse(me.data.aggArgsJson),params:{aggArgsJson:me.data.aggArgsJson,groupArgsJson:me.data.groupArgsJson,sortArgsJson:JSON.stringify(be),params:ge(pe(JSON.parse(fe??((xe=vue.unref(me))==null?void 0:xe.formConfJson)??"[]"))),pageSize:me.data.pageSize,modelIndicatorsId:me.data.id,modelId:me.data.modelId}});const ye=me.data.echarts.find(Ce=>Ce.type==de);await ie(ye==null?void 0:ye.code),ve(ye==null?void 0:ye.code)})},se=ce=>{const de=vue.unref(U),fe=vue.unref(U).customSeriesData[ce]??{};return((fe==null?void 0:fe.prefix)??"")+de.dataset.source.reduce((ve,he)=>ve+(he[ce]?Number(he[ce]):0),0).toFixed(fe.toFixed??0)+(fe.suffix??"")},ue=()=>{if(vue.unref(G)=="9"){U.value.tooltip.formatter=de=>{const fe=U.value.custom;if(de&&de.data){const{name:ve,data:he}=de.data;return`${ve}: ${(fe==null?void 0:fe.prefix)??""}${Number(he).toFixed((fe==null?void 0:fe.toFixed)??0)}${(fe==null?void 0:fe.suffix)??""}`}},U.value.series[2].label.formatter=de=>{const fe=U.value.custom,ve=de.data.data;return ve?`${(fe==null?void 0:fe.prefix)??""}${Number(ve).toFixed((fe==null?void 0:fe.toFixed)??0)}${(fe==null?void 0:fe.suffix)??""}`:""};return}if(vue.unref(U).tooltip){const de=U.value.custom;U.value.tooltip.valueFormatter=fe=>`${(de==null?void 0:de.prefix)??""}${Number(fe).toFixed(de==null?void 0:de.toFixed)}${(de==null?void 0:de.suffix)??""}`}vue.unref(U).dataset.temp_source=JSON.parse(JSON.stringify(U.value.dataset.source))};return{option:U,varData:ne,modelIndicatorsName:re,chartDataParams:ee,chartType:G,setChartData:oe,formatChart:ie,getModelIndicatorsData:ae,changeChartSeries:le,setSingleValue:se}}const _hoisted_1$1C={key:1,class:"flex items-center justify-center w-full h-full"},_sfc_main$2q=vue.defineComponent({__name:"render",props:{config:{default:()=>({})},list:{default:()=>[]},isLinkageQuery:{type:Boolean,default:!0},isCount:{type:Boolean,default:!0}},setup(__props){const props=__props,{proxy}=vue.getCurrentInstance(),design=screenDesignMainStore(),loading=vue.ref(!1),{dynamicSearchFormat,dynamicSearchParams}=proxy.$aceDynamicSearch(),{option,formatChart,varData,chartDataParams,modelIndicatorsName}=useCustomChart(),init=()=>{const linkageMap={},formulaList=[];if(props.isLinkageQuery&&props.list.forEach(te=>{const U=te.customize.modelValue;((te==null?void 0:te.customize.linkage)??[]).forEach(G=>{(U??"")!==""&&(linkageMap[G[0]]=[G[1],U])})}),props.isCount&&props.list.forEach(te=>{var ne;if(te.type!="number"&&!((ne=te.customize.formula)!=null&&ne.exp))return;te.customize.formulaCopy=JSON.parse(JSON.stringify(te.customize.formula));const U=te.customize.formulaCopy.identifier.split(","),G=/\{([^}]+)\}/g;let ee=0;te.customize.formulaCopy.exp=te.customize.formulaCopy.exp.replace(G,(re,oe)=>{const ie=oe.split(".");return ie[0]=U[ee],ee+=1,ie.join(".")}),te.customize.title=0,formulaList.push(te)}),props.config.modelType=="INDICATORS"){Promise.all([fetch$1(proxy).detailAndTask(props.config.indicatorsId),fetch$1(proxy).getEchartDetail({indicatorsId:props.config.indicatorsId})]).then(async te=>{var ne,re;let U=dynamicSearchParams(dynamicSearchFormat(JSON.parse(((re=(ne=te[0])==null?void 0:ne.data)==null?void 0:re.formConfJson)??"[]")));if(linkageMap[props.config.indicatorsId]){const[oe,ie]=linkageMap[props.config.indicatorsId];U[oe]=ie}const G=te[1].data,ee=await fetch$1(proxy).pullEchartsDataVO({indicatorsId:props.config.indicatorsId,loadType:(G==null?void 0:G.loadType)??3,params:U,targetClient:G.targetClient,echartsType:props.config.chartType});try{option.value=chartJsonFormat(ee.data.config)}catch{option.value=ee.data.config}loading.value=!1});return}if(props.config.chartId&&props.config.indicatorsId){props.config.chartType=="9"&&delete props.config.customize.series,option.value=props.config.customize;const{indicatorsId,chartType}=props.config;loading.value=!0,proxy.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${indicatorsId}`).then(async response=>{const sortArgsJson=JSON.parse(response.data.sortArgsJson??"{}"),sort=Object.keys(vue.unref(sortArgsJson)).map(te=>({field:te,type:sortArgsJson[te]=="ascending"?"asc":"desc"}));let params=dynamicSearchParams(dynamicSearchFormat(JSON.parse(response.data.formConfJson??"[]")));if(linkageMap[props.config.indicatorsId]){const[te,U]=linkageMap[props.config.indicatorsId];params[te]=U}chartDataParams.value={x:JSON.parse(response.data.groupArgsJson),y:JSON.parse(response.data.aggArgsJson),params:{aggArgsJson:response.data.aggArgsJson,groupArgsJson:response.data.groupArgsJson,sortArgsJson:JSON.stringify(sort),modelIndicatorsId:indicatorsId,params,pageSize:response.data.pageSize,modelId:response.data.modelId}},design.tempChartData[props.config.id]={params:chartDataParams.value,customize:props.config.customize},design.setChartData(chartDataParams.value);const cfg=props.config.customize;cfg.id=props.config.id,await formatChart("",chartType,cfg),props.isCount&&formulaList.length&&formulaList.forEach(el=>{var te;Object.keys(vue.unref(varData)).forEach(U=>{el.customize.formulaCopy.exp.indexOf(U)>=0&&(el.customize.formulaCopy.exp=el.customize.formulaCopy.exp.replaceAll(U,varData.value[U]))}),/[\u4e00-\u9fa5]/.test((te=el.customize.formulaCopy)==null?void 0:te.exp)||(el.customize.title=eval(el.customize.formulaCopy.exp),(el.customize.toFixed??"")!==""&&(el.customize.title=el.customize.title.toFixed(el.customize.toFixed)))}),design.setCountMap(props.config.indicatorsId,{title:vue.unref(modelIndicatorsName),var:vue.unref(varData)}),loading.value=!1})}};vue.onMounted(()=>{init()}),proxy.$baseEventBus.on("ace-screen-indicators-linkage",te=>{te.includes(props.config.indicatorsId)&&init()});const widgetView=vue.computed(()=>moudleComponents$1[props.config.type]);return(te,U)=>{const G=vue.resolveComponent("AppEmpty"),ee=vue.resolveComponent("AppTable"),ne=vue.resolveComponent("v-chart"),re=vue.resolveComponent("aceCustomChart"),oe=vue.resolveComponent("aceLoading");return props.config.chartId?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(loading)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1C,[vue.createVNode(oe,{size:"50"})])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[props.config.modelType=="INDICATORS"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[props.config.chartType==7?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(vue.unref(option)),1)],64)):props.config.chartType==8?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(option).length==0?(vue.openBlock(),vue.createBlock(G,{key:0,description:"暂无数据"})):vue.createCommentVNode("",!0),Array.isArray(vue.unref(option))&&vue.unref(option).length>0?(vue.openBlock(),vue.createBlock(ee,{key:1,tableData:Object.keys(vue.unref(option)[0]).map(ie=>({label:ie,prop:ie})),list:vue.unref(option),maxHeight:props.config.h-10+"px"},null,8,["tableData","list","maxHeight"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(ne,{key:2,ref:"echart",option:vue.unref(option),autoresize:""},null,8,["option"]))],64)):(vue.openBlock(),vue.createBlock(re,{key:1,option:vue.unref(option),chartType:props.config.chartType,maxHeight:props.config.h-10+"px"},null,8,["option","chartType","maxHeight"]))],64))],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(widgetView)?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(widgetView)),{key:0,ref:"componentRef",list:props.list,config:props.config},null,8,["list","config"])):vue.createCommentVNode("",!0)],64))}}}),render_vue_vue_type_style_index_0_scoped_02187c08_lang="",Render=_export_sfc$2(_sfc_main$2q,[["__scopeId","data-v-02187c08"]]);class historyStack{constructor(){Et(this,"backStack");Et(this,"forwardStack");this.backStack=[],this.forwardStack=[]}pushRecord(U,G){const ee={id:Array.isArray(U)?"":U.id??"",historyType:G,historyData:JSON.parse(JSON.stringify(U))};this.backStack.push(ee),this.forwardStack=[]}backAction(){if(!this.backStack.length)return;const U=this.backStack.pop();return this.forwardStack.push(U),U}forwardAction(){if(!this.forwardStack.length)return;const U=this.forwardStack.pop();return this.backStack.push(U),U}}const _withScopeId$C=te=>(vue.pushScopeId("data-v-6f1f565c"),te=te(),vue.popScopeId(),te),_hoisted_1$1B={class:"relative w-full h-full"},_hoisted_2$1l=["id","onDblclick","onMousedown","onClick"],_hoisted_3$19={key:0,class:"absolute flex items-center justify-center w-8 h-8 bg-blue-500 rounded-full -right-2 -top-2"},_hoisted_4$15=_withScopeId$C(()=>vue.createElementVNode("i",{class:"text-base text-white ri-lock-line"},null,-1)),_hoisted_5$T=[_hoisted_4$15],_hoisted_6$I={key:1,class:"absolute ml-4 text-xs tool left-full whitespace-nowrap"},_hoisted_7$B=["onClick"],_hoisted_8$u={key:1,class:"absolute w-full h-full z-[999]"},_sfc_main$2p=vue.defineComponent({__name:"main",setup(te){vue.useCssVars(Pe=>({"6421b4c0":vue.unref(ue)}));const{proxy:U}=vue.getCurrentInstance(),G=screenDesignMainStore(),ee=vue.computed(()=>G.stageWidth),ne=vue.computed(()=>G.stageHeight),re=document.body,oe=vue.ref(null),ie=useKeyModifier("Shift"),le=new historyStack,ae=vue.computed(()=>G.targetsWidget.length===1?getItemFromElement(G.targetsWidget[0]):null),se=[{label:"置于顶层",clickFunc:Pe=>{Pe.z=G.getWidgetList.length;const Te=JSON.parse(JSON.stringify(G.widgetConfg.list));G.widgetConfg.list.filter(De=>De.id!=Pe.id).forEach((De,Oe)=>{De.z=G.getWidgetList.length-1-Oe}),G.sortWidgetList(),G.widgetConfg.list.forEach(De=>{const Oe=Te.find(Be=>Be.id==De.id);Oe&&(Oe.beforeObj={...Oe},Oe.z=De.z)}),le.pushRecord(Te,"stack")}},{label:"置于底层",clickFunc:Pe=>{Pe.z=1;const Te=JSON.parse(JSON.stringify(G.widgetConfg.list));G.widgetConfg.list.filter(De=>De.id!=Pe.id).forEach((De,Oe)=>{De.z=G.getWidgetList.length-Oe}),G.sortWidgetList(),G.widgetConfg.list.forEach(De=>{const Oe=Te.find(Be=>Be.id==De.id);Oe&&(Oe.beforeObj={...Oe},Oe.z=De.z)}),le.pushRecord(Te,"stack")}}],ue=vue.computed(()=>.8/G.getScale),ce=()=>Array.prototype.slice.call(document.querySelectorAll(".drag-item"),0),de=(Pe,Te)=>{if(Array.isArray(Pe)){if(Pe.length===0){G.setTargetWidget([]);return}G.setTargetWidget(Pe.filter(Oe=>Oe.className.indexOf("locked")==-1).map(Oe=>getItemFromElement(Oe)));return}const De=getItemFromElement(Pe);!De||G.targetsWidget.includes(De)||Pe.locked||(ie.value===!0?G.setTargetWidget([...G.getTargetWidget.filter(Oe=>Oe.className.indexOf("locked")==-1),De]):G.setTargetWidget([De]),vue.nextTick(()=>{Te&&vue.nextTick(()=>{var Oe;return(Oe=vue.unref(oe))==null?void 0:Oe.dragStart(Te)})}))};let fe=[];const ve=Pe=>{const Te=Ve(vue.unref(ae));Te!=null&&Te.locked&&Pe.stopDrag(),Te&&(fe=JSON.parse(JSON.stringify(Te))),console.log("开始拖拽",Pe)},he=Pe=>{console.log("拖拽中",Pe),Pe.target.style.transform=Pe.transform;const[Te,De]=Pe.translate;G.setSketchRuleLine([Te],[De]);const Oe=Ve(vue.unref(ae));Oe&&(Oe.x=Math.floor(Pe.translate[0]),Oe.y=Math.floor(Pe.translate[1]))},pe=Pe=>{console.log("拖拽结束",Pe);const Te=Ve(vue.unref(ae));if(!Te)return;const{x:De,y:Oe,w:Be,h:Ae}=fe;(Te.x!=De||Te.y!=Oe||Te.w!=Be||Te.h!=Ae)&&le.pushRecord(JSON.parse(JSON.stringify({...Te,beforeObj:fe})),"move"),G.clearSketchRuleLine()},ge=Pe=>{console.log("开始组拖拽",Pe),fe=[],Pe.events.forEach(Te=>{const De=Ve(Te.target);De&&fe.push(JSON.parse(JSON.stringify(De)))})},me=Pe=>{console.log("组拖拽中",Pe),Pe.events.forEach(Te=>{Te.target.style.transform=Te.transform})},_e=Pe=>{console.log("组拖拽完毕",Pe),Pe.events.forEach((Te,De)=>{const Oe=Ve(Te.target);!Oe||!Te.lastEvent||(Oe.x=Math.floor(Te.lastEvent.translate[0]),Oe.y=Math.floor(Te.lastEvent.translate[1]),fe[De]=JSON.parse(JSON.stringify({...Oe,beforeObj:fe[De]})))}),le.pushRecord(fe,"groupMove"),G.clearSketchRuleLine()},be=Pe=>{console.log("开始组修改大小",Pe),fe=[],Pe.events.forEach(Te=>{const De=Ve(Te.target);De&&fe.push(JSON.parse(JSON.stringify(De)))})},ye=Pe=>{console.log("组修改大小中",Pe),Pe.events.forEach(Te=>{Te.target.style.transform=Te.drag.transform,Te.target.style.width=`${Te.width}px`,Te.target.style.height=`${Te.height}px`;const De=Ve(Te.target);De&&(De.x=Math.floor(Te.drag.translate[0]),De.y=Math.floor(Te.drag.translate[1]),De.w=Te.drag.width,De.h=Te.drag.height)})},xe=Pe=>{console.log("修改大小结束",Pe),Pe.events.forEach((Te,De)=>{const Oe=Ve(Te.target);Oe&&(fe[De]=JSON.parse(JSON.stringify({...Oe,beforeObj:fe[De]})))}),le.pushRecord(fe,"groupSize"),G.clearSketchRuleLine()},Ce=Pe=>{const Te=Ve(vue.unref(ae));Te!=null&&Te.locked&&Pe.stopDrag(),fe=JSON.parse(JSON.stringify(Te)),console.log("开始改变大小",Pe)},$e=Pe=>{console.log("改变中",Pe),Pe.target.style.transform=Pe.drag.transform,Pe.target.style.width=`${Pe.width}px`,Pe.target.style.height=`${Pe.height}px`;const Te=Ve(Pe.target);if(!Te)return;Te.x=Math.floor(Pe.drag.translate[0]),Te.y=Math.floor(Pe.drag.translate[1]),Te.w=Pe.drag.width,Te.h=Pe.drag.height;const[De,Oe]=Pe.drag.translate;G.setSketchRuleLine([De],[Oe])};function we(Pe){console.log("改变结束",Pe);const Te=Ve(vue.unref(ae));if(!Te)return;const{x:De,y:Oe,w:Be,h:Ae}=fe;(Te.x!=De||Te.y!=Oe||Te.w!=Be||Te.h!=Ae)&&le.pushRecord(JSON.parse(JSON.stringify({...Te,beforeObj:fe})),"size"),G.clearSketchRuleLine()}const Ee=vue.ref(!1);U.$baseEventBus.on("drag-start",()=>{Ee.value=!0}),U.$baseEventBus.on("drag-end",()=>{Ee.value=!1}),U.$baseEventBus.on("clear-stage",()=>{console.log("清空画布"),G.setWidgetList([]),G.setTargetWidget([]),G.clearSketchRuleLine()}),U.$baseEventBus.on("update-rect",()=>{var Pe,Te;console.log("更新画布"),(Pe=oe.value)==null||Pe.updateTarget(),(Te=oe.value)==null||Te.updateRect()}),U.$baseEventBus.on("change-align",Pe=>{vue.nextTick(()=>{var Be;console.log("修改居中方式");const Te=[];if(!G.targetsWidget.length)return;const De=oe.value.getRect(),Oe=oe.value.getMoveables();if((Oe==null?void 0:Oe.length)<=1){const Ae={};Pe=="left"&&(Ae.x=0),Pe=="right"&&(Ae.x=vue.unref(ee)-De.width),Pe=="top"&&(Ae.y=0),Pe=="bottom"&&(Ae.y=vue.unref(ne)-De.height),Pe=="middle"&&(Ae.y=vue.unref(ne)/2-De.height/2),Pe=="center"&&(Ae.x=vue.unref(ee)/2-De.width/2),Oe[0].request("draggable",Ae,!0);const Le=Ve(Oe[0].props.target);if(!Le)return;const Re=JSON.parse(JSON.stringify(Le));Object.keys(Ae).forEach(Fe=>{Le[Fe]=Ae[Fe]}),Te.push(JSON.parse(JSON.stringify({...Le,beforeObj:Re})))}else switch(Pe){case"left":case"right":case"top":case"bottom":case"middle":case"center":{const Ae=Math.max.apply(Math,De.children.map(Re=>Re.top+Re.height)),Le=Math.max.apply(Math,De.children.map(Re=>Re.left+Re.width));Oe.forEach((Re,Fe)=>{const je={};Pe=="left"&&(je.x=De.left),Pe=="right"&&(je.x=Le-De.children[Fe].width),Pe=="top"&&(je.y=De.top),Pe=="bottom"&&(je.y=Ae-De.children[Fe].height),Pe=="middle"&&(je.y=De.top+De.height/2-De.children[Fe].height/2),Pe=="center"&&(je.x=De.left+De.width/2-De.children[Fe].width/2),Re.request("draggable",je,!0);const Me=Ve(Re.props.target);if(!Me)return;const ze=JSON.parse(JSON.stringify(Me));Object.keys(je).forEach(Ge=>{Me[Ge]=je[Ge]}),Te.push(JSON.parse(JSON.stringify({...Me,beforeObj:ze})))}),G.clearSketchRuleLine()}break;case"verticalAround":case"levelAround":{const Ae=Pe=="verticalAround"?"top":"left",Le=Pe=="verticalAround"?"height":"width";let Re=De[Ae];const Fe=(De[Le]-De.children.reduce((je,Me)=>je+Me[Le],0))/(Oe.length-1);Oe.sort((je,Me)=>je.state[Ae]-Me.state[Ae]),Oe.forEach(je=>{const Me=je.getRect(),ze={};Ae=="top"&&(ze.y=Re),Ae=="left"&&(ze.x=Re),je.request("draggable",ze,!0);const Ge=Ve(je.props.target);if(!Ge)return;const We=JSON.parse(JSON.stringify(Ge));Object.keys(ze).forEach(Ue=>{Ge[Ue]=ze[Ue]}),Te.push(JSON.parse(JSON.stringify({...Ge,beforeObj:We}))),Re+=Me[Le]+Fe}),G.clearSketchRuleLine()}break}le.pushRecord(Te,"groupAlign"),(Be=oe.value)==null||Be.updateRect()})});const Ve=Pe=>G.getWidgetList.find(Te=>Te.id==(Pe==null?void 0:Pe.id)),Se=Pe=>{Pe.preventDefault(),Pe.stopPropagation();const Te=Pe.dataTransfer.getData("dragComponent");if(Te){let De=JSON.parse(Te);De.chartId&&(De.customize=chartJsonFormat(De.customize));const{w:Oe,h:Be}=De;let Ae=Pe.offsetX-Oe/2,Le=Pe.offsetY-Be/2;Ae<=0?Ae=0:Ae+Oe>=vue.unref(ee)&&(Ae=vue.unref(ee)-Oe),Le<=0?Le=0:Le+Be>=vue.unref(ne)&&(Le=vue.unref(ne)-Be),G.setWidgetList([{...De,x:Ae,y:Le,z:G.getWidgetList.length+1},...G.getWidgetList]),le.pushRecord(G.getWidgetList[0],"create")}},ke=vue.ref([]),Ne=()=>{const Pe=(De,Oe)=>{const Be=onKeyStroke(De,Ae=>{document.activeElement&&["INPUT"].includes(document.activeElement.tagName)||(Ae.preventDefault(),Ae.stopPropagation(),Oe(Ae))},{eventName:"keydown"});ke.value.push(Be)},Te=De=>navigator.userAgent.toLowerCase().includes("macintosh")?De.metaKey:De.ctrlKey;Pe(["Backspace","Delete"],De=>{if(console.log("删除触发",De),!G.targetsWidget.length)return;const Oe=G.getTargetWidget.map(Ae=>Ae.id),Be=G.getWidgetList.filter(Ae=>Oe.includes(Ae.id));le.pushRecord(JSON.parse(JSON.stringify(Be)),"delete"),G.delWidgetItem(G.getTargetWidget.map(Ae=>Ae.id))}),Pe(["z"],De=>{if(console.log("撤销/前进",De),Te(De)){const Oe=De.shiftKey?le.forwardAction():le.backAction();if(!Oe)return;console.log(De.shiftKey,Oe.historyType,Oe.historyData);const{historyType:Be,historyData:Ae}=Oe;if(Be=="create"){De.shiftKey?G.setWidgetList([Ae,...G.getWidgetList]):G.delWidgetItem([Ae.id]);return}if(Be=="delete"){De.shiftKey?G.delWidgetItem(Ae.map(Le=>Le.id)):G.setWidgetList([...JSON.parse(JSON.stringify(Ae)),...G.getWidgetList]);return}(Array.isArray(Ae)?Ae:[Ae]).forEach(Le=>{const Re=G.getWidgetList.find(Fe=>Fe.id==Le.id);Re&&(De.shiftKey?(Re.x=Le.x,Re.y=Le.y,Re.z=Le.z,Re.w=Le.w,Re.h=Le.h):(Re.x=Le.beforeObj.x,Re.y=Le.beforeObj.y,Re.z=Le.beforeObj.z,Re.w=Le.beforeObj.w,Re.h=Le.beforeObj.h))}),G.sortWidgetList(),vue.nextTick(()=>{var Le;(Le=oe.value)==null||Le.updateRect()})}}),Pe(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],De=>{if(!G.targetsWidget.length)return;console.log("触发移动",De);let Oe=0,Be=0;De.key=="ArrowLeft"&&(Oe=-2),De.key=="ArrowRight"&&(Oe=2),De.key=="ArrowUp"&&(Be=-2),De.key=="ArrowDown"&&(Be=2),De.shiftKey&&(Oe*=10,Be*=10),vue.nextTick(()=>{const Ae=oe.value.getMoveables(),Le=[];Ae.forEach(Re=>{const Fe=Ve(Re.props.target);!Fe||Fe.locked||(Le.push(JSON.parse(JSON.stringify(Fe))),Fe.x+Oe<0?Fe.x=0:Fe.x+Oe>vue.unref(ee)-Fe.w?Fe.x=vue.unref(ee)-Fe.w:Fe.x+=Oe,Fe.y+Be<0?Fe.y=0:Fe.y+Be>vue.unref(ne)-Fe.h?Fe.y=vue.unref(ne)-Fe.h:Fe.y+=Be)}),vue.nextTick(()=>{var Re;(Re=oe.value)==null||Re.updateRect(),le.pushRecord(Le,"groupMove")})})}),Pe(["c"],De=>{console.log("复制",De),Te(De)&&G.getTargetWidget.length&&G.copyWidgetItem(G.getTargetWidget.map(Oe=>Oe.id))}),Pe(["v"],De=>{console.log("粘贴",De),Te(De)&&G.getPasteWidget.length&&(G.pasteWidgetItem(),le.pushRecord(G.widgetConfg.list[0],"create"))})},Ie=vue.ref(null);return vue.nextTick(()=>{Ne(),Ie.value=new Selecto$2({rootContainer:null,dragContainer:".render",selectableTargets:[".drag-item"],selectByClick:!0,selectFromInside:!0,continueSelect:!1,preventDefault:!0,toggleContinueSelect:null,keyContainer:window,hitRate:0}),vue.unref(Ie).on("dragStart",Pe=>{G.setRightPannel(!1),console.log("开始全选拖拽",Pe)}),vue.unref(Ie).on("dragEnd",Pe=>{console.log("全选拖拽结束",Pe)}),vue.unref(Ie).on("select",Pe=>{console.log("选中结果",Pe),Pe.added.forEach(Te=>{Te.className.indexOf("loccked")||Te.classList.add("selected")}),Pe.removed.forEach(Te=>{Te.classList.remove("selected")}),de(Pe.selected)}),vue.unref(Ie).on("selectEnd",Pe=>{console.log("选中结束",Pe),de(Pe.selected)})}),vue.onBeforeUnmount(()=>{ke.value.forEach(Pe=>Pe()),vue.unref(Ie)&&vue.unref(Ie).destroy()}),(Pe,Te)=>(vue.openBlock(),vue.createBlock(SketchRule,null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1B,[vue.unref(Ee)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"absolute w-full h-full z-[9999]",onDrop:Te[0]||(Te[0]=De=>Se(De)),onDragover:Te[1]||(Te[1]=vue.withModifiers(()=>{},["prevent"]))},null,32)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G).getWidgetList,De=>{var Oe,Be;return vue.openBlock(),vue.createElementBlock("div",{key:De.id,class:vue.normalizeClass(["absolute",{"drag-item":!0,locked:De.locked,selected:vue.unref(G).widgetHoverIds.includes(De.id),active:((Oe=vue.unref(ae))==null?void 0:Oe.id)==De.id}]),id:De.id,style:vue.normalizeStyle(vue.unref(getItemStyle)(De)),onDblclick:vue.withModifiers(Ae=>De.locked=!De.locked,["stop"]),onMousedown:Ae=>de(De,Ae),onClick:vue.withModifiers(Ae=>de(De,Ae),["stop"])},[vue.unref(G).createLoading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[De.locked?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$19,_hoisted_5$T)):vue.createCommentVNode("",!0),((Be=vue.unref(ae))==null?void 0:Be.id)==De.id&&!De.locked?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$I,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(se,Ae=>vue.createElementVNode("div",{key:De.label,onClick:vue.withModifiers(Le=>Ae.clickFunc(De),["stop"]),onDblclick:Te[2]||(Te[2]=vue.withModifiers(()=>{},["prevent","stop"])),class:"flex items-center justify-center w-16 h-6 mb-2 text-white rounded-sm cursor-pointer bg-color-primary"},vue.toDisplayString(Ae.label),41,_hoisted_7$B)),64))])):vue.createCommentVNode("",!0)],64)),["iframe","select"].includes(De.type)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$u)):vue.createCommentVNode("",!0),vue.createVNode(Render,{config:De,list:vue.unref(G).getWidgetList,isLinkageQuery:!1,isCount:!1},null,8,["config","list"])],46,_hoisted_2$1l)}),128)),vue.createVNode(vue.unref(Moveable),{rootContainer:vue.unref(re),ref_key:"moveableRef",ref:oe,origin:!1,stopPropagation:!0,target:vue.unref(G).targetsWidget,draggable:!0,resizable:!0,scalable:!1,snappable:!0,maxSnapElementGuidelineDistance:100,maxSnapElementGapDistance:100,isDisplayInnerSnapDigit:!0,snapDirections:!0,elementSnapDirections:!0,elementGuidelines:ce(),bounds:{left:0,top:0,bottom:0,right:0,position:"css"},onDragStart:ve,onDrag:he,onDragEnd:pe,onResizeStart:Ce,onResize:$e,onResizeEnd:we,onDragGroupStart:ge,onDragGroup:me,onDragGroupEnd:_e,onResizeGroupStart:be,onResizeGroup:ye,onResizeGroupEnd:xe},null,8,["rootContainer","target","elementGuidelines"])])]),_:1}))}}),main_vue_vue_type_style_index_0_scoped_6f1f565c_lang="",Main=_export_sfc$2(_sfc_main$2p,[["__scopeId","data-v-6f1f565c"]]),_sfc_main$2o=vue.defineComponent({__name:"colorPicker",props:{modelValue:{default:""},showInput:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(te,{emit:U}){const G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=vue.ref(G.modelValue=="transparent"?"":G.modelValue),oe=U;return vue.watch(re,ie=>{oe("update:modelValue",ie||"transparent")}),(ie,le)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[ie.showInput?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElInput),{key:0,value:vue.unref(re),class:"mr-1",style:{width:"80%"}},null,8,["value"])):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{modelValue:vue.unref(re),"onUpdate:modelValue":le[0]||(le[0]=ae=>vue.isRef(re)?re.value=ae:null),predefine:vue.unref(ne),"show-alpha":""},null,8,["modelValue","predefine"])],64))}}),_hoisted_1$1A={class:"flex items-center h-10 p-2"},_hoisted_2$1k=vue.createElementVNode("span",{class:"w-1 h-4 mr-2",style:{background:"var(--el-color-primary)"}},null,-1),_sfc_main$2n=vue.defineComponent({__name:"group",props:{title:{default:"标题"}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$1A,[_hoisted_2$1k,vue.createTextVNode(" "+vue.toDisplayString(U.title),1)]),vue.renderSlot(U.$slots,"default")],64))}}),_withScopeId$B=te=>(vue.pushScopeId("data-v-9ebd23bc"),te=te(),vue.popScopeId(),te),_hoisted_1$1z={class:"flex items-center"},_hoisted_2$1j=_withScopeId$B(()=>vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1)),_hoisted_3$18=["src"],_hoisted_4$14={key:1,class:"pt-4 pb-4"},_hoisted_5$S=_withScopeId$B(()=>vue.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),_hoisted_6$H=_withScopeId$B(()=>vue.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1)),_hoisted_7$A=[_hoisted_5$S,_hoisted_6$H],_sfc_main$2m=vue.defineComponent({__name:"stageSetting",setup(te){const U=screenDesignMainStore(),{proxy:G}=vue.getCurrentInstance(),{resetUrl:ee}=G.$globalUtils,ne=[{label:"平铺",value:"repeat"},{label:"平铺X",value:"repeat-x"},{label:"平铺Y",value:"repeat-y"},{label:"不平铺",value:"no-repeat"}],re=[{label:"拉伸",value:"cover"},{label:"自适应",value:"contain"}],oe=[{label:"左上",value:"top left"},{label:"左中",value:"top center"},{label:"左右",value:"top right"},{label:"居左",value:"center left"},{label:"居中",value:"center center"},{label:"局右",value:"center right"},{label:"左下",value:"bottom left"},{label:"左中",value:"bottom center"},{label:"左右",value:"bottom right"}],ie=async le=>{const ae=new FormData;ae.append("file",le.file);const se=await G.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",ae,{headers:{"Content-Type":"multipart/form-data",loading:!0}});se&&(U.widgetConfg.config.backgroundImage=se.data.link)};return(le,ae)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{"label-position":"left",size:"small","label-width":"100px"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"整体布局"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"尺寸"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1z,[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{"model-value":vue.unref(U).stageWidth,onChange:vue.unref(U).setStageWidth,size:"small",min:0,"value-on-clear":1920},null,8,["model-value","onChange"]),_hoisted_2$1j,vue.createVNode(vue.unref(elementPlus.ElInputNumber),{"model-value":vue.unref(U).stageHeight,onChange:vue.unref(U).setStageHeight,size:"small",min:0,"value-on-clear":1080},null,8,["model-value","onChange"])])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景图"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElUpload),{drag:"",limit:1,"http-request":ie,"show-file-list":!1,accept:"image/*"},{default:vue.withCtx(()=>[vue.unref(U).widgetConfg.config.backgroundImage?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createElementVNode("img",{class:"object-contain max-h-40",src:vue.unref(ee)(vue.unref(U).widgetConfg.config.backgroundImage)},null,8,_hoisted_3$18),vue.createElementVNode("i",{class:"absolute text-xl ri-close-circle-line right-4 top-4",onClick:ae[0]||(ae[0]=vue.withModifiers(se=>vue.unref(U).widgetConfg.config.backgroundImage=null,["stop"]))})],64)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$14,_hoisted_7$A))]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).widgetConfg.config.backgroundColor,"onUpdate:modelValue":ae[1]||(ae[1]=se=>vue.unref(U).widgetConfg.config.backgroundColor=se)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景平铺"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundRepeat,"onUpdate:modelValue":ae[2]||(ae[2]=se=>vue.unref(U).widgetConfg.config.backgroundRepeat=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ne,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundSize,"onUpdate:modelValue":ae[3]||(ae[3]=se=>vue.unref(U).widgetConfg.config.backgroundSize=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundPosition,"onUpdate:modelValue":ae[4]||(ae[4]=se=>vue.unref(U).widgetConfg.config.backgroundPosition=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),stageSetting_vue_vue_type_style_index_0_scoped_9ebd23bc_lang="",stagetSetting=_export_sfc$2(_sfc_main$2m,[["__scopeId","data-v-9ebd23bc"]]),_sfc_main$2l=vue.defineComponent({__name:"decorationSetting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"主颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.decorationColor1,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.decorationColor1=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"副颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.decorationColor2,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.decorationColor2=ne)},null,8,["modelValue"])]),_:1}),Object.keys(vue.unref(U).customize).includes("reverse")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"是否反转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(U).customize.reverse,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.reverse=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("duration")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:1,label:"动画时长"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.duration,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.duration=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)}}),_sfc_main$2k=vue.defineComponent({__name:"setting",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.inject("widgetConfig");return(ee,ne)=>vue.unref(G)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{key:0,"label-position":"left",size:"small","label-width":"90px",class:"design-form"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).name,"onUpdate:modelValue":ne[0]||(ne[0]=re=>vue.unref(G).name=re)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).w,"onUpdate:modelValue":ne[1]||(ne[1]=re=>vue.unref(G).w=re),onBlur:ne[2]||(ne[2]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).h,"onUpdate:modelValue":ne[3]||(ne[3]=re=>vue.unref(G).h=re),onBlur:ne[4]||(ne[4]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"x轴坐标"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).x,"onUpdate:modelValue":ne[5]||(ne[5]=re=>vue.unref(G).x=re),onBlur:ne[6]||(ne[6]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"y轴坐标"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).y,"onUpdate:modelValue":ne[7]||(ne[7]=re=>vue.unref(G).y=re),onBlur:ne[8]||(ne[8]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1})]),_:1}),vue.renderSlot(ee.$slots,"default")]),_:3})):vue.createCommentVNode("",!0)}}),_sfc_main$2j=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2j},Symbol.toStringTag,{value:"Module"})),_sfc_main$2i=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2i},Symbol.toStringTag,{value:"Module"})),_sfc_main$2h=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2h},Symbol.toStringTag,{value:"Module"})),_sfc_main$2g=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2g},Symbol.toStringTag,{value:"Module"})),_sfc_main$2f=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2f},Symbol.toStringTag,{value:"Module"})),_sfc_main$2e=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2e},Symbol.toStringTag,{value:"Module"})),_sfc_main$2d=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2d},Symbol.toStringTag,{value:"Module"})),_sfc_main$2c=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2c},Symbol.toStringTag,{value:"Module"})),_sfc_main$2b=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2b},Symbol.toStringTag,{value:"Module"})),_sfc_main$2a=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2a},Symbol.toStringTag,{value:"Module"})),_sfc_main$29=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$29},Symbol.toStringTag,{value:"Module"})),_sfc_main$28=vue.defineComponent({__name:"borderSetting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"基础"},{default:vue.withCtx(()=>[Object.keys(vue.unref(U).customize).includes("title")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.title,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.title=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("titleWidth")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:1,label:"标题宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.titleWidth,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.titleWidth=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框主颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderMainColor,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.borderMainColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框副颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderSecondaryColor,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.borderSecondaryColor=ne)},null,8,["modelValue"])]),_:1}),Object.keys(vue.unref(U).customize).includes("reverse")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:2,label:"是否反转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(U).customize.reverse,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.reverse=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("duration")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:3,label:"动画时长"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.duration,"onUpdate:modelValue":ee[5]||(ee[5]=ne=>vue.unref(U).customize.duration=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.backgroundColor,"onUpdate:modelValue":ee[6]||(ee[6]=ne=>vue.unref(U).customize.backgroundColor=ne)},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),_sfc_main$27=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$27},Symbol.toStringTag,{value:"Module"})),_sfc_main$26=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$26},Symbol.toStringTag,{value:"Module"})),_sfc_main$25=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$25},Symbol.toStringTag,{value:"Module"})),_sfc_main$24=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_3=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$24},Symbol.toStringTag,{value:"Module"})),_sfc_main$23=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$23},Symbol.toStringTag,{value:"Module"})),_sfc_main$22=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$22},Symbol.toStringTag,{value:"Module"})),_sfc_main$21=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$21},Symbol.toStringTag,{value:"Module"})),_sfc_main$20=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$20},Symbol.toStringTag,{value:"Module"})),_sfc_main$1$=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_8=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1$},Symbol.toStringTag,{value:"Module"})),_sfc_main$1_=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_9=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1_},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Z=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_10=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Z},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Y=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_11=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Y},Symbol.toStringTag,{value:"Module"})),_sfc_main$1X=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_12=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1X},Symbol.toStringTag,{value:"Module"})),_sfc_main$1W=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(U).customize.borderType,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.borderType=ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"solid",label:"solid"},{default:vue.withCtx(()=>[vue.createTextVNode("实线")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"dashed",label:"dashed"},{default:vue.withCtx(()=>[vue.createTextVNode("虚线")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.unref(U).customize.borderType=="dashed"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderGap,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderGap=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.gradientColor0=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.gradientColor1=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.width,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.width=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1W},Symbol.toStringTag,{value:"Module"})),_sfc_main$1V=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"地址配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"地址"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.url,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.url=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1V},Symbol.toStringTag,{value:"Module"})),_withScopeId$A=te=>(vue.pushScopeId("data-v-ba7d8f9c"),te=te(),vue.popScopeId(),te),_hoisted_1$1y={class:"p-3"},_hoisted_2$1i=["src"],_hoisted_3$17={key:1,class:"pt-4 pb-4"},_hoisted_4$13=_withScopeId$A(()=>vue.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),_hoisted_5$R=_withScopeId$A(()=>vue.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1)),_hoisted_6$G=[_hoisted_4$13,_hoisted_5$R],_sfc_main$1U=vue.defineComponent({__name:"setting",setup(te){const U=[{label:"压缩",value:"fill"},{label:"填充",value:"cover"},{label:"自适应",value:"contain"},{label:"原始大小",value:"none"},{label:"展示最小",value:"scale-down"}],{proxy:G}=vue.getCurrentInstance(),{resetUrl:ee}=G.$globalUtils,ne=vue.inject("widgetConfig"),re=async oe=>{const ie=new FormData;ie.append("file",oe.file);const le=await G.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",ie,{headers:{"Content-Type":"multipart/form-data",loading:!0}});le&&(ne.value.customize.url=le.data.link)};return(oe,ie)=>vue.unref(ne)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"图片配置"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1y,[vue.createVNode(vue.unref(elementPlus.ElUpload),{drag:"",limit:1,"http-request":re,"show-file-list":!1,accept:"image/*"},{default:vue.withCtx(()=>[vue.unref(ne).customize.url?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"max-h-40",src:vue.unref(ee)(vue.unref(ne).customize.url)},null,8,_hoisted_2$1i)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$17,_hoisted_6$G))]),_:1})]),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"地址"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne).customize.url,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.url=le)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"展示方式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ne).customize.fit,"onUpdate:modelValue":ie[1]||(ie[1]=le=>vue.unref(ne).customize.fit=le)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(U,le=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:le.value,label:le.label,value:le.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),setting_vue_vue_type_style_index_0_scoped_ba7d8f9c_lang="",setting$1=_export_sfc$2(_sfc_main$1U,[["__scopeId","data-v-ba7d8f9c"]]),__vite_glob_2_2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$1},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1x=vue.createElementVNode("i",{class:"ri-arrow-right-fill ml-2 mr-2"},null,-1),_sfc_main$1T=vue.defineComponent({__name:"text",setup(te){const U=[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],G=vue.inject("widgetConfig");return(ee,ne)=>vue.unref(G)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"文本"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文本"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.title,"onUpdate:modelValue":ne[0]||(ne[0]=re=>vue.unref(G).customize.title=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.fontSize,"onUpdate:modelValue":ne[1]||(ne[1]=re=>vue.unref(G).customize.fontSize=re)},{suffix:vue.withCtx(()=>[vue.createTextVNode("px")]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字权重"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.fontWeight,"onUpdate:modelValue":ne[2]||(ne[2]=re=>vue.unref(G).customize.fontWeight=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).customize.letterSpacing,"onUpdate:modelValue":ne[3]||(ne[3]=re=>vue.unref(G).customize.letterSpacing=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字对齐方式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(G).customize.textAlign,"onUpdate:modelValue":ne[4]||(ne[4]=re=>vue.unref(G).customize.textAlign=re)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(U,re=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:re.value,label:re.label,value:re.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字渐变方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(G).customize.colorPosition,"onUpdate:modelValue":ne[5]||(ne[5]=re=>vue.unref(G).customize.colorPosition=re)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"top",label:"top"},{default:vue.withCtx(()=>[vue.createTextVNode("上下")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"left",label:"left"},{default:vue.withCtx(()=>[vue.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字渐变颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(G).customize.startColor,"onUpdate:modelValue":ne[6]||(ne[6]=re=>vue.unref(G).customize.startColor=re),showInput:!1},null,8,["modelValue"]),_hoisted_1$1x,vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(G).customize.endColor,"onUpdate:modelValue":ne[7]||(ne[7]=re=>vue.unref(G).customize.endColor=re),showInput:!1},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),_withScopeId$z=te=>(vue.pushScopeId("data-v-63b0e6ae"),te=te(),vue.popScopeId(),te),_hoisted_1$1w={class:"selection el-popper is-light el-popover"},_hoisted_2$1h=_withScopeId$z(()=>vue.createElementVNode("span",{class:"el-popper__arrow","data-popper-arrow":""},null,-1)),validKeys$1="0123456789+-*/@.()",_sfc_main$1S=vue.defineComponent({__name:"exp",setup(te){const U=screenDesignMainStore(),G=vue.inject("widgetConfig"),ee=vue.ref(null),ne=vue.ref(""),re=vue.computed(()=>{const ye=[];return Object.keys(U.getCountMap).forEach(xe=>{const Ce=U.getCountMap[xe],$e=[];Object.keys(Ce.var).forEach(we=>{const Ee=we.replace(xe,Ce.title);$e.push({label:Ee.replace(`${Ce.title}.`,""),value:`${Ee}||${xe}`})}),ye.push({label:Ce.title,value:xe,children:$e})}),ye}),oe=ye=>{const{key:xe}=ye;switch(xe){case"Enter":ye.preventDefault();break;case"@":case"Process":se();break}};let ie=null;const le=()=>{const ye=vue.unref(ee).innerHTML;let xe=pe(ye.replace(/<br>/g,""));xe=xe.map($e=>me($e)?ge($e):$e.data.split("").filter(we=>validKeys$1.includes(we)).join(""));const Ce=xe.join("");if(ye!==Ce){const $e=_e(ye,Ce);vue.unref(ee).innerHTML=Ce,be(vue.unref(ee),$e)}clearTimeout(ie),ie=setTimeout(async()=>{fe()},500)},ae=vue.ref(!1),se=()=>{ne.value="",ae.value=!0},ue=ye=>{ae.value=!1;const[xe,Ce]=ye.split("||"),$e=`<div contenteditable="false">${xe}<span>${Ce}</span></div>`;de("@",$e)};(()=>{var ye;if((ye=vue.unref(G).customize.formula)!=null&&ye.exp){const xe=vue.unref(G).customize.formula;let Ce=xe.exp??"";const $e=xe.identifier.split(","),we=/\{([^}]+)\}/g;let Ee=-1;Ce=Ce.replace(we,(Ve,Se)=>(Ee+=1,`<div contenteditable="false">${Se}<span>${$e[Ee]}</span></div>`)),vue.nextTick(()=>{vue.unref(ee).innerHTML=Ce.replace(/@/g,""),setTimeout(()=>{fe()},100)})}})();const de=(ye,xe="")=>{if(!vue.unref(ee))return;let Ce=vue.unref(ee).innerHTML;Ce.includes(ye)&&(Ce=Ce.replace(new RegExp(ye,"g"),xe),vue.unref(ee).innerHTML=Ce),fe()},fe=()=>{let ye="";const xe=[],Ce=vue.unref(ee).innerHTML.replace(/\sdata-spm-anchor-id=".*?"/g,"");he({text:Ce,prefix:'<div contenteditable="false">',suffix:"</div>"}).forEach(we=>{const[Ee,Ve]=he({text:we,prefix:"<span>",suffix:"</span>"});Ve?(ye+=`{${Ee}}`,xe.push(Ve)):ye+=Ee}),G.value.customize.formula={exp:ye,identifier:xe.toString()}},ve=ye=>{ae.value=!1,ye&&de("@")},he=({text:ye,prefix:xe,suffix:Ce})=>ye.replace(new RegExp(xe,"g"),",").replace(new RegExp(Ce,"g"),",").split(",").filter($e=>!!$e),pe=ye=>{const xe=document.createElement("div");return xe.innerHTML=ye,[...xe.childNodes]},ge=ye=>{let xe=document.createElement("div");xe.appendChild(ye);let Ce=xe.innerHTML;return xe=ye=null,Ce},me=ye=>Object.prototype.toString.call(ye)==="[object HTMLDivElement]",_e=(ye,xe)=>{const Ce=ye.split(""),$e=xe.split(""),we=Math.max(Ce.length,$e.length);let Ee=0;for(let Ve=0;Ve<we&&Ce[Ve]==$e[Ve];Ve++)Ee++;return Ee},be=(ye,xe)=>{const Ce=document.createRange(),$e=window.getSelection();let we=0,Ee=0;const Ve=pe(ye.innerHTML);for(let Se=0;Se<Ve.length;Se++){const ke=Ve[Se];if(me(ke))xe-=ge(ke).length;else if(xe>ke.length)xe-=ke.length;else{Ee=xe;break}we++}Ce.selectNodeContents(ye),Ce.collapse(!1),ye.childNodes[we]&&Ce.setStart(ye.childNodes[we],Ee),Ce.collapse(!0),$e.removeAllRanges(),$e.addRange(Ce)};return(ye,xe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{ref_key:"formulaRef",ref:ee,class:"flex-1 formula",contenteditable:"",placeholder:"请输入表达式 输入「@」后选择指标",style:{"ime-mode":"disabled"},onKeydown:vue.withModifiers(oe,["stop"]),onKeyup:le},null,544),vue.withDirectives(vue.createElementVNode("div",_hoisted_1$1w,[vue.createElementVNode("div",{class:"mb-2.5 flex justify-between"},[vue.createTextVNode(" 选择变量 "),vue.createElementVNode("i",{class:"text-base cursor-pointer ri-close-circle-line",onClick:ve})]),vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{onChange:ue,filterable:"",accordion:"",placeholder:"请选择变量",teleported:!1,modelValue:vue.unref(ne),"onUpdate:modelValue":xe[0]||(xe[0]=Ce=>vue.isRef(ne)?ne.value=Ce:null),data:vue.unref(re)},null,8,["modelValue","data"]),_hoisted_2$1h],512),[[vue.vShow,vue.unref(ae)]])],64))}}),exp_vue_vue_type_style_index_0_scoped_63b0e6ae_lang="",Exp=_export_sfc$2(_sfc_main$1S,[["__scopeId","data-v-63b0e6ae"]]),_withScopeId$y=te=>(vue.pushScopeId("data-v-ae8d9af3"),te=te(),vue.popScopeId(),te),_hoisted_1$1v=_withScopeId$y(()=>vue.createElementVNode("div",{class:"h-12"},null,-1)),_sfc_main$1R=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T),vue.createVNode(_sfc_main$2n,{title:"计算设置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"小数位"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(U).customize.toFixed,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.toFixed=ne),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"公式",class:"formula-item"},{default:vue.withCtx(()=>[vue.createVNode(Exp)]),_:1})]),_:1}),_hoisted_1$1v]),_:1}))}}),setting_vue_vue_type_style_index_0_scoped_ae8d9af3_lang="",setting=_export_sfc$2(_sfc_main$1R,[["__scopeId","data-v-ae8d9af3"]]),__vite_glob_2_3=Object.freeze(Object.defineProperty({__proto__:null,default:setting},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Q=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"渐变方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(U).customize.colorPosition,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.colorPosition=ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"bottom",label:"bottom"},{default:vue.withCtx(()=>[vue.createTextVNode("上下")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"right",label:"right"},{default:vue.withCtx(()=>[vue.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边角宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRadius,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderRadius=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.gradientColor0=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.gradientColor1=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Q},Symbol.toStringTag,{value:"Module"})),_sfc_main$1P=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T)]),_:1}))}}),__vite_glob_2_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1P},Symbol.toStringTag,{value:"Module"})),_sfc_main$1O=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T)]),_:1}))}}),__vite_glob_2_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1O},Symbol.toStringTag,{value:"Module"})),_sfc_main$1N=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(U).customize.borderType,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.borderType=ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"solid",label:"solid"},{default:vue.withCtx(()=>[vue.createTextVNode("实线")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"dashed",label:"right"},{default:vue.withCtx(()=>[vue.createTextVNode("虚线")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.unref(U).customize.borderType=="dashed"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderGap,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderGap=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.gradientColor0=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.gradientColor1=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.height,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.height=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1N},Symbol.toStringTag,{value:"Module"})),_withScopeId$x=te=>(vue.pushScopeId("data-v-7afca816"),te=te(),vue.popScopeId(),te),_hoisted_1$1u=_withScopeId$x(()=>vue.createElementVNode("div",{class:"h-14"},null,-1)),_sfc_main$1M=vue.defineComponent({__name:"linkage",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=screenDesignMainStore(),ee=vue.computed(()=>G.getWidgetList.filter(oe=>oe.modelType=="MODEL_INDICATORS")),ne=vue.inject("widgetConfig"),re=vue.ref([]);return U.$baseHttp.get("/api/ace-data-center/model-indicators/getConfJson",{params:{modelIndicatorsIds:vue.unref(ee).map(oe=>oe.indicatorsId).toString()}}).then(oe=>{re.value=[],console.log(vue.unref(ee)),vue.unref(ee).forEach(ie=>{const le=oe.data.formConfJsonMap[ie.indicatorsId];le&&re.value.push({label:ie.name,value:ie.indicatorsId,children:JSON.parse(le).map(ae=>({label:ae.name,value:ae.key}))})})}),(oe,ie)=>(vue.openBlock(),vue.createBlock(_sfc_main$2n,{title:"联动组件"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCascader),{teleported:!1,style:{width:"100%"},placeholder:"请选择指标",modelValue:vue.unref(ne).customize.linkage,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.linkage=le),options:vue.unref(re),props:{multiple:!0},clearable:""},null,8,["modelValue","options"])]),_:1}),_hoisted_1$1u]),_:1}))}}),linkage_vue_vue_type_style_index_0_scoped_7afca816_lang="",linkage=_export_sfc$2(_sfc_main$1M,[["__scopeId","data-v-7afca816"]]),_hoisted_1$1t={class:"flex flex-wrap gap-1"},_hoisted_2$1g={class:"flex items-center gap-1"},_hoisted_3$16={class:"flex items-center gap-1"},_hoisted_4$12={class:"flex items-center gap-1"},_hoisted_5$Q={class:"flex items-center gap-1"},_sfc_main$1L=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.backgroundColor,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.backgroundColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderColor,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框大小"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1t,[vue.createElementVNode("div",_hoisted_2$1g,[vue.createTextVNode(" 上 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderTopWidth,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.borderTopWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_3$16,[vue.createTextVNode(" 右 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRightWidth,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.borderRightWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_4$12,[vue.createTextVNode(" 下 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderBottomWidth,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.borderBottomWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_5$Q,[vue.createTextVNode(" 左 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderLeftWidth,"onUpdate:modelValue":ee[5]||(ee[5]=ne=>vue.unref(U).customize.borderLeftWidth=ne),"controls-position":"right"},null,8,["modelValue"])])])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.color,"onUpdate:modelValue":ee[6]||(ee[6]=ne=>vue.unref(U).customize.color=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.fontSize,"onUpdate:modelValue":ee[7]||(ee[7]=ne=>vue.unref(U).customize.fontSize=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"圆角大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRadius,"onUpdate:modelValue":ee[8]||(ee[8]=ne=>vue.unref(U).customize.borderRadius=ne)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"输入框配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.modelValue,"onUpdate:modelValue":ee[9]||(ee[9]=ne=>vue.unref(U).customize.modelValue=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"空值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.placeholder,"onUpdate:modelValue":ee[10]||(ee[10]=ne=>vue.unref(U).customize.placeholder=ne)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(linkage)]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_3_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1L},Symbol.toStringTag,{value:"Module"})),_sfc_main$1K=vue.defineComponent({__name:"setting",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref([]),ee=vue.ref([]),ne=vue.inject("widgetConfig");U.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${U.$baseGetCurrentProjectId()}`).then(oe=>{G.value=oe.data,re(!1)});const re=(oe=!0)=>{const ie=vue.unref(ne).customize.dictId;oe&&(ee.value=[],vue.unref(ne).customize.modelValue=""),ie&&U.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${ie}`).then(le=>{ee.value=dictArratToTree(le.data??[])})};return(oe,ie)=>vue.unref(ne)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础信息"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"值可清空"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ne).customize.clearable,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.clearable=le)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"下拉框配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字典"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{teleported:!1,modelValue:vue.unref(ne).customize.dictId,"onUpdate:modelValue":ie[1]||(ie[1]=le=>vue.unref(ne).customize.dictId=le),placeholder:"字典值",onChange:re},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G),le=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:le.label,value:le.code,key:le.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{style:{width:"100%"},teleported:!1,expandAll:!1,props:{label:"name",value:"code"},modelValue:vue.unref(ne).customize.modelValue,"onUpdate:modelValue":ie[2]||(ie[2]=le=>vue.unref(ne).customize.modelValue=le),placeholder:"请选择",clearable:"",renderAfterExpand:"",data:vue.unref(ee)},null,8,["modelValue","data"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"空值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne).customize.placeholder,"onUpdate:modelValue":ie[3]||(ie[3]=le=>vue.unref(ne).customize.placeholder=le)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(linkage)]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_3_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1K},Symbol.toStringTag,{value:"Module"})),dict={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"}]},_hoisted_1$1s={class:"flex flex-col justify-start w-full"},_hoisted_2$1f={key:0,class:"flex items-center w-16 font-bold"},_hoisted_3$15=vue.createElementVNode("span",{class:"w-1 h-4 mr-2",style:{background:"var(--el-color-primary)"}},null,-1),_hoisted_4$11={class:"flex flex-wrap flex-1"},_hoisted_5$P=vue.createElementVNode("div",{class:"h-4"},null,-1),_sfc_main$1J=vue.defineComponent({__name:"setting-item-box",props:{name:{default:""}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$1s,[U.name?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1f,[_hoisted_3$15,vue.createTextVNode(" "+vue.toDisplayString(U.name),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$11,[vue.renderSlot(U.$slots,"default")])]),_hoisted_5$P],64))}}),_hoisted_1$1r={class:"w-1/2 pr-2 mt-2"},_hoisted_2$1e={class:"text-xs mb-2"},_sfc_main$1I=vue.defineComponent({__name:"setting-item",props:{name:{default:""}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1r,[vue.createElementVNode("div",_hoisted_2$1e,vue.toDisplayString(U.name),1),vue.renderSlot(U.$slots,"default")]))}}),_sfc_main$1H=vue.defineComponent({__name:"setting-common",props:{option:{default:{}},type:{default:0}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor,ne=[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}];return vue.watch(()=>U.option.custom,re=>{U.option.yAxis&&(U.option.yAxis.axisLabel.formatter=`${re.prefix??""}{value}${re.suffix??""}`)},{deep:!0}),vue.watch(()=>U.option.showScroll,re=>{if(re)U.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 oe=U.option.series;U.option.series=[],U.option.direction="",setTimeout(()=>{delete U.option.dataZoom,U.option.series=oe})}}),vue.watch(()=>U.option.direction,re=>{U.option.dataZoom.forEach((oe,ie)=>{re=="vertical"?oe.yAxisIndex=[0]:delete oe.yAxisIndex})}),(re,oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[re.option.grid?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:0,title:"容器"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"左侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.left,"onUpdate:modelValue":oe[0]||(oe[0]=ie=>re.option.grid.left=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"右侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.right,"onUpdate:modelValue":oe[1]||(oe[1]=ie=>re.option.grid.right=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"上侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.top,"onUpdate:modelValue":oe[2]||(oe[2]=ie=>re.option.grid.top=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"下侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.bottom,"onUpdate:modelValue":oe[3]||(oe[3]=ie=>re.option.grid.bottom=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"自适应"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.grid.containLabel,"onUpdate:modelValue":oe[4]||(oe[4]=ie=>re.option.grid.containLabel=ie)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),[1,3,5].includes(re.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:1,title:"滚动条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.showScroll,"onUpdate:modelValue":oe[5]||(oe[5]=ie=>re.option.showScroll=ie)},null,8,["modelValue"])]),_:1})]),_:1}),re.option.showScroll?(vue.openBlock(),vue.createBlock(_sfc_main$1J,{key:0,name:"参数"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"滚动条方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.direction,"onUpdate:modelValue":oe[6]||(oe[6]=ie=>re.option.direction=ie),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ne,ie=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"范围结束值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.dataZoom[0].endValue,"onUpdate:modelValue":oe[7]||(oe[7]=ie=>re.option.dataZoom[0].endValue=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"拖拽宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].handleSize,"onUpdate:modelValue":oe[8]||(oe[8]=ie=>re.option.dataZoom[0].handleSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].width,"onUpdate:modelValue":oe[9]||(oe[9]=ie=>re.option.dataZoom[0].width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].height,"onUpdate:modelValue":oe[10]||(oe[10]=ie=>re.option.dataZoom[0].height=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"上"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].top,"onUpdate:modelValue":oe[11]||(oe[11]=ie=>re.option.dataZoom[0].top=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"右"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].right,"onUpdate:modelValue":oe[12]||(oe[12]=ie=>re.option.dataZoom[0].right=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"下"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].bottom,"onUpdate:modelValue":oe[13]||(oe[13]=ie=>re.option.dataZoom[0].bottom=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"左"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].left,"onUpdate:modelValue":oe[14]||(oe[14]=ie=>re.option.dataZoom[0].left=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].backgroundColor,"onUpdate:modelValue":oe[15]||(oe[15]=ie=>re.option.dataZoom[0].backgroundColor=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"选中范围颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].fillerColor,"onUpdate:modelValue":oe[16]||(oe[16]=ie=>re.option.dataZoom[0].fillerColor=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].borderColor,"onUpdate:modelValue":oe[17]||(oe[17]=ie=>re.option.dataZoom[0].borderColor=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0),re.option.legend?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:2,title:"图例"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.legend.show,"onUpdate:modelValue":oe[18]||(oe[18]=ie=>re.option.legend.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.legend.textStyle.color,"onUpdate:modelValue":oe[19]||(oe[19]=ie=>re.option.legend.textStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.textStyle.fontSize,"onUpdate:modelValue":oe[20]||(oe[20]=ie=>re.option.legend.textStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"x轴"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.x,"onUpdate:modelValue":oe[21]||(oe[21]=ie=>re.option.legend.x=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lengendX,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"y轴"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.y,"onUpdate:modelValue":oe[22]||(oe[22]=ie=>re.option.legend.y=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lengendY,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.orient,"onUpdate:modelValue":oe[23]||(oe[23]=ie=>re.option.legend.orient=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).orient,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),re.option.legend.icon?(vue.openBlock(),vue.createBlock(_sfc_main$1I,{key:0,name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.icon,"onUpdate:modelValue":oe[24]||(oe[24]=ie=>re.option.legend.icon=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).shape,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$1I,{name:"宽"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.itemWidth,"onUpdate:modelValue":oe[25]||(oe[25]=ie=>re.option.legend.itemWidth=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"高"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.itemHeight,"onUpdate:modelValue":oe[26]||(oe[26]=ie=>re.option.legend.itemHeight=ie),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.xAxis?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:3,title:"x轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.show,"onUpdate:modelValue":oe[27]||(oe[27]=ie=>re.option.xAxis.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.type,"onUpdate:modelValue":oe[28]||(oe[28]=ie=>re.option.xAxis.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).category,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.xAxis.min,"onUpdate:modelValue":oe[29]||(oe[29]=ie=>re.option.xAxis.min=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.xAxis.max,"onUpdate:modelValue":oe[30]||(oe[30]=ie=>re.option.xAxis.max=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.position,"onUpdate:modelValue":oe[31]||(oe[31]=ie=>re.option.xAxis.position=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).xposition,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"反向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.inverse,"onUpdate:modelValue":oe[32]||(oe[32]=ie=>re.option.xAxis.inverse=ie)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.fontSize,"onUpdate:modelValue":oe[33]||(oe[33]=ie=>re.option.xAxis.axisLabel.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"间隔"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.interval,"onUpdate:modelValue":oe[34]||(oe[34]=ie=>re.option.xAxis.axisLabel.interval=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.rotate,"onUpdate:modelValue":oe[35]||(oe[35]=ie=>re.option.xAxis.axisLabel.rotate=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.axisLabel.color,"onUpdate:modelValue":oe[36]||(oe[36]=ie=>re.option.xAxis.axisLabel.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"单位"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"名称"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.xAxis.name,"onUpdate:modelValue":oe[37]||(oe[37]=ie=>re.option.xAxis.name=ie),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.nameTextStyle.fontSize,"onUpdate:modelValue":oe[38]||(oe[38]=ie=>re.option.xAxis.nameTextStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.nameTextStyle.color,"onUpdate:modelValue":oe[39]||(oe[39]=ie=>re.option.xAxis.nameTextStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.splitLine.show,"onUpdate:modelValue":oe[40]||(oe[40]=ie=>re.option.xAxis.splitLine.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"粗细"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.splitLine.lineStyle.width,"onUpdate:modelValue":oe[41]||(oe[41]=ie=>re.option.xAxis.splitLine.lineStyle.width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.splitLine.lineStyle.type,"onUpdate:modelValue":oe[42]||(oe[42]=ie=>re.option.xAxis.splitLine.lineStyle.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lineStyle,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.splitLine.lineStyle.color,"onUpdate:modelValue":oe[43]||(oe[43]=ie=>re.option.xAxis.splitLine.lineStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.yAxis?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:4,title:"y轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.show,"onUpdate:modelValue":oe[44]||(oe[44]=ie=>re.option.yAxis.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.type,"onUpdate:modelValue":oe[45]||(oe[45]=ie=>re.option.yAxis.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).category,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.yAxis.min,"onUpdate:modelValue":oe[46]||(oe[46]=ie=>re.option.yAxis.min=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.yAxis.max,"onUpdate:modelValue":oe[47]||(oe[47]=ie=>re.option.yAxis.max=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.position,"onUpdate:modelValue":oe[48]||(oe[48]=ie=>re.option.yAxis.position=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).yposition,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"反向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.inverse,"onUpdate:modelValue":oe[49]||(oe[49]=ie=>re.option.yAxis.inverse=ie)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.fontSize,"onUpdate:modelValue":oe[50]||(oe[50]=ie=>re.option.yAxis.axisLabel.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"间隔"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.interval,"onUpdate:modelValue":oe[51]||(oe[51]=ie=>re.option.yAxis.axisLabel.interval=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.rotate,"onUpdate:modelValue":oe[52]||(oe[52]=ie=>re.option.yAxis.axisLabel.rotate=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.axisLabel.color,"onUpdate:modelValue":oe[53]||(oe[53]=ie=>re.option.yAxis.axisLabel.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"单位"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"名称"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.yAxis.name,"onUpdate:modelValue":oe[54]||(oe[54]=ie=>re.option.yAxis.name=ie),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.nameTextStyle.fontSize,"onUpdate:modelValue":oe[55]||(oe[55]=ie=>re.option.yAxis.nameTextStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.nameTextStyle.color,"onUpdate:modelValue":oe[56]||(oe[56]=ie=>re.option.yAxis.nameTextStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.splitLine.show,"onUpdate:modelValue":oe[57]||(oe[57]=ie=>re.option.yAxis.splitLine.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"粗细"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.splitLine.lineStyle.width,"onUpdate:modelValue":oe[58]||(oe[58]=ie=>re.option.yAxis.splitLine.lineStyle.width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.splitLine.lineStyle.type,"onUpdate:modelValue":oe[59]||(oe[59]=ie=>re.option.yAxis.splitLine.lineStyle.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lineStyle,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.splitLine.lineStyle.color,"onUpdate:modelValue":oe[60]||(oe[60]=ie=>re.option.yAxis.splitLine.lineStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.custom&&![2].includes(re.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:5,title:"显示"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.custom.prefix,"onUpdate:modelValue":oe[61]||(oe[61]=ie=>re.option.custom.prefix=ie),size:"small",placeholder:"前缀"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.custom.suffix,"onUpdate:modelValue":oe[62]||(oe[62]=ie=>re.option.custom.suffix=ie),size:"small",placeholder:"后缀"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:re.option.custom.toFixed,"onUpdate:modelValue":oe[63]||(oe[63]=ie=>re.option.custom.toFixed=ie),size:"small"},null,8,["modelValue"])]),_:1}),re.type==7?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.custom.fontSize,"onUpdate:modelValue":oe[64]||(oe[64]=ie=>re.option.custom.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.custom.color,"onUpdate:modelValue":oe[65]||(oe[65]=ie=>re.option.custom.color=ie)},null,8,["predefine","modelValue"])]),_:1})],64)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0)],64))}}),settingCommon_vue_vue_type_style_index_0_scoped_003224ac_lang="",SettingCommon=_export_sfc$2(_sfc_main$1H,[["__scopeId","data-v-003224ac"]]),_hoisted_1$1q={class:"ml-2"},_hoisted_2$1d={class:"flex justify-end flex-1"},_hoisted_3$14=["onClick"],_hoisted_4$10=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1G=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:oe}=useCustomChart(),{seriesItem:ie,init:le,customSeriesData:ae}=useBarCommon();vue.ref(null);const se=vue.ref(JSON.parse(JSON.stringify(Object.values(ae.value)[0]??ie)));vue.watch(se,()=>ue(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{le(G.option,()=>{ue()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await oe(G.type,G.option.dataShow.x)});const ue=()=>{const de=se.value,fe=ve=>{ve.barWidth=de.barWidth,ve.stack=de.stack,ve.label.show=de.label.show,ve.label.color=de.label.color,ve.label.position=de.label.position,ve.label.fontSize=de.label.fontSize,ve.label.rotate=de.label.rotate,ve.itemStyle.borderRadius=[de.borderRadiusNumber,de.borderRadiusNumber,0,0]};G.option.series.forEach(ve=>{fe(ve)}),Object.keys(ae.value).forEach(ve=>{fe(vue.unref(ae)[ve])}),window.customSeriesData=ae.value},ce=de=>{const{hide:fe}=G.option.dataShow;fe.includes(de)?fe.splice(fe.findIndex(ve=>ve==de),1):fe.push(de)};return(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:de.option,type:3},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"柱状配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).barWidth,"onUpdate:modelValue":fe[0]||(fe[0]=ve=>vue.unref(se).barWidth=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"堆栈"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(se).stack,"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.unref(se).stack=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(se).borderRadiusNumber,"onUpdate:modelValue":fe[2]||(fe[2]=ve=>vue.unref(se).borderRadiusNumber=ve),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(se).label.show,"onUpdate:modelValue":fe[3]||(fe[3]=ve=>vue.unref(se).label.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(se).label.position,"onUpdate:modelValue":fe[4]||(fe[4]=ve=>vue.unref(se).label.position=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).label.rotate,"onUpdate:modelValue":fe[5]||(fe[5]=ve=>vue.unref(se).label.rotate=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).label.fontSize,"onUpdate:modelValue":fe[6]||(fe[6]=ve=>vue.unref(se).label.fontSize=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(se).label.color,"onUpdate:modelValue":fe[7]||(fe[7]=ve=>vue.unref(se).label.color=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.x,"onUpdate:modelValue":fe[8]||(fe[8]=ve=>de.option.dataShow.x=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.comment,label:ve.comment,value:ve.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:de.option.dataShow.y,"onUpdate:modelValue":fe[9]||(fe[9]=ve=>de.option.dataShow.y=ve),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(de.option.dataShow.y,(ve,he)=>(vue.openBlock(),vue.createElementBlock("div",{key:ve,class:"w-full sort-item"},[vue.unref(ae)[ve]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ae)[ve].itemStyle.color,"onUpdate:modelValue":pe=>vue.unref(ae)[ve].itemStyle.color=pe},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(ae)[ve].itemStyle.color)+" ",1),vue.createElementVNode("span",_hoisted_1$1q,vue.toDisplayString(ve),1),vue.createElementVNode("div",_hoisted_2$1d,[vue.createElementVNode("i",{onClick:pe=>ce(ve),class:vue.normalizeClass([de.option.dataShow.hide.includes(ve)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_3$14),_hoisted_4$10])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1p={class:"ml-2"},_hoisted_2$1c={class:"flex justify-end flex-1"},_hoisted_3$13=["onClick"],_hoisted_4$$=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1F=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useLineCommon();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const ce=()=>{const ve=JSON.parse(JSON.stringify(ue.value)),he=pe=>{Object.keys(ve).forEach(ge=>{ge!="areaStyleTmp"&&(ge=="lineStyle"?Object.keys(pe[ge]).forEach(me=>{me!="color"&&(pe[ge][me]=ve[ge][me])}):pe[ge]=ve[ge])})};G.option.series.forEach(pe=>{he(pe),pe.areaStyle=ve.showArea?pe.areaStyleTmp??{}:null}),Object.keys(se.value).forEach(pe=>{const ge=vue.unref(se)[pe];he(ge),ge.areaStyle=ve.showArea?ge.areaStyleTmp??{}:null}),window.customSeriesData=se.value},de=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)},fe=ve=>{let pe=ve.lineStyle.color.replace(/^#/,"");pe.length===3&&(pe=pe[0]+pe[0]+pe[1]+pe[1]+pe[2]+pe[2]);const ge=parseInt(pe.substring(0,2),16),me=parseInt(pe.substring(2,4),16),_e=parseInt(pe.substring(4,6),16),be={color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgb(${ge}, ${me}, ${_e}, 1)`},{offset:1,color:`rgb(${ge}, ${me}, ${_e}, 0.5)`}],global:!1}};ve.areaStyleTmp=be,ve.areaStyle=vue.unref(ue).showArea?be:null};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:1},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"折线配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"线条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).lineStyle.width,"onUpdate:modelValue":he[0]||(he[0]=pe=>vue.unref(ue).lineStyle.width=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"显示填充区"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).showArea,"onUpdate:modelValue":he[1]||(he[1]=pe=>vue.unref(ue).showArea=pe)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).lineStyle.type,"onUpdate:modelValue":he[2]||(he[2]=pe=>vue.unref(ue).lineStyle.type=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"实心点"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).symbolSize,"onUpdate:modelValue":he[3]||(he[3]=pe=>vue.unref(ue).symbolSize=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"平滑"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).smooth,"onUpdate:modelValue":he[4]||(he[4]=pe=>vue.unref(ue).smooth=pe)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[5]||(he[5]=pe=>vue.unref(ue).label.show=pe)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[6]||(he[6]=pe=>vue.unref(ue).label.position=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[7]||(he[7]=pe=>vue.unref(ue).label.rotate=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[8]||(he[8]=pe=>vue.unref(ue).label.fontSize=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[9]||(he[9]=pe=>vue.unref(ue).label.color=pe)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[10]||(he[10]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[11]||(he[11]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,size:"small",predefine:vue.unref(ne),modelValue:vue.unref(se)[pe].lineStyle.color,"onUpdate:modelValue":me=>vue.unref(se)[pe].lineStyle.color=me,onChange:me=>fe(vue.unref(se)[pe])},null,8,["predefine","modelValue","onUpdate:modelValue","onChange"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1p,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_2$1c,[vue.createElementVNode("i",{onClick:me=>de(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_3$13),_hoisted_4$$])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_sfc_main$1E=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"外侧",value:"outside"},{label:"内部",value:"inside"},{label:"中心",value:"center"}],oe=[{label:"数据名",value:"{b}"},{label:"百分比",value:"{d}"},{label:"列名:百分比",value:"{b}:{d}%"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=usePieCommon(),ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x),ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate});const ce=()=>{const de=ue.value,fe=ve=>{Object.keys(de).forEach(he=>{ve[he]=de[he]})};G.option.series.forEach(ve=>{fe(ve)}),Object.keys(se.value).forEach(ve=>{fe(vue.unref(se)[ve])}),window.customSeriesData=se.value};return(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:de.option,type:2},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"饼图配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"半径1"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).radius[0],"onUpdate:modelValue":fe[0]||(fe[0]=ve=>vue.unref(ue).radius[0]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"半径2"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).radius[1],"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.unref(ue).radius[1]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"距离1"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).center[0],"onUpdate:modelValue":fe[2]||(fe[2]=ve=>vue.unref(ue).center[0]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"距离2"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).center[1],"onUpdate:modelValue":fe[3]||(fe[3]=ve=>vue.unref(ue).center[1]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"南丁格尔图"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).roseType,"onUpdate:modelValue":fe[4]||(fe[4]=ve=>vue.unref(ue).roseType=ve)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":fe[5]||(fe[5]=ve=>vue.unref(ue).label.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"引导线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).labelLine.show,"onUpdate:modelValue":fe[6]||(fe[6]=ve=>vue.unref(ue).labelLine.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"展示类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.formatter,"onUpdate:modelValue":fe[7]||(fe[7]=ve=>vue.unref(ue).label.formatter=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":fe[8]||(fe[8]=ve=>vue.unref(ue).label.position=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":fe[9]||(fe[9]=ve=>vue.unref(ue).label.fontSize=ve),size:"small"},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":fe[10]||(fe[10]=ve=>vue.unref(ue).label.color=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).itemStyle.borderRadius,"onUpdate:modelValue":fe[11]||(fe[11]=ve=>vue.unref(ue).itemStyle.borderRadius=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).itemStyle.borderWidth,"onUpdate:modelValue":fe[12]||(fe[12]=ve=>vue.unref(ue).itemStyle.borderWidth=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).itemStyle.borderColor,"onUpdate:modelValue":fe[13]||(fe[13]=ve=>vue.unref(ue).itemStyle.borderColor=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"维度",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.x,"onUpdate:modelValue":fe[14]||(fe[14]=ve=>de.option.dataShow.x=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.comment,label:ve.comment,value:ve.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"统计",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.y,"onUpdate:modelValue":fe[15]||(fe[15]=ve=>de.option.dataShow.y=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.y.filter(ve=>ve.aggType!="other"),ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.showLabel,label:ve.showLabel,value:ve.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1o={class:"ml-2"},_hoisted_2$1b={class:"flex items-center justify-end flex-1"},_hoisted_3$12={class:"mr-2 text-xs cursor-pointer"},_hoisted_4$_=["onClick"],_hoisted_5$O=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1D=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:ie}=useCustomChart(),{seriesLineItem:le,seriesBarItem:ae,init:se,customSeriesData:ue}=useBarLineCommon();vue.ref(null);const ce=vue.ref(JSON.parse(JSON.stringify(Object.values(ue.value).find(ge=>ge.type=="bar")??ae))),de=vue.ref(JSON.parse(JSON.stringify(Object.values(ue.value).find(ge=>ge.type=="line")??le)));vue.watch([ce,de],()=>ve(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{se(G.option,()=>{ve()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const fe=(ge,me)=>{var be,ye,xe,Ce;if(vue.unref(ue)[me].type!=ge){const $e=JSON.parse(JSON.stringify({...ge=="line"?de.value:ce.value})),we=((ye=(be=vue.unref(ue)[me])==null?void 0:be.lineStyle)==null?void 0:ye.color)??((Ce=(xe=vue.unref(ue)[me])==null?void 0:xe.itemStyle)==null?void 0:Ce.color);$e[$e!=null&&$e.lineStyle?"lineStyle":"itemStyle"].color=we,ue.value[me]=$e,se(G.option,()=>{})}},ve=()=>{const ge=ce.value,me=de.value,_e=be=>{const ye=JSON.parse(JSON.stringify(be.type=="bar"?ge:me));Object.keys(ye).forEach(xe=>{xe!="areaStyleTmp"&&(["lineStyle","itemStyle"].includes(xe)?Object.keys(be[xe]).forEach(Ce=>{Ce=="borderRadius"?be[xe][Ce]=[ge.borderRadiusNumber,ge.borderRadiusNumber,0,0]:Ce!="color"&&(be[xe][Ce]=ye[xe][Ce])}):be[xe]=ye[xe])})};G.option.series.forEach(be=>{_e(be),be.type=="line"&&(be.areaStyle=me.showArea?be.areaStyleTmp??{}:null)}),Object.keys(ue.value).forEach(be=>{const ye=vue.unref(ue)[be];_e(ye),ye.type=="line"&&(ye.areaStyle=me.showArea?ye.areaStyleTmp??{}:null)}),window.customSeriesData=ue.value},he=ge=>{const{hide:me}=G.option.dataShow;me.includes(ge)?me.splice(me.findIndex(_e=>_e==ge),1):me.push(ge)},pe=ge=>{if(ge.type!="line")return;let _e=ge.lineStyle.color.replace(/^#/,"");_e.length===3&&(_e=_e[0]+_e[0]+_e[1]+_e[1]+_e[2]+_e[2]);const be=parseInt(_e.substring(0,2),16),ye=parseInt(_e.substring(2,4),16),xe=parseInt(_e.substring(4,6),16),Ce={color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgb(${be}, ${ye}, ${xe}, 1)`},{offset:1,color:`rgb(${be}, ${ye}, ${xe}, 0.5)`}],global:!1}};ge.areaStyleTmp=Ce,ge.areaStyle=vue.unref(de).showArea?Ce:null};return(ge,me)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ge.option,type:5},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"柱状配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).barWidth,"onUpdate:modelValue":me[0]||(me[0]=_e=>vue.unref(ce).barWidth=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(ce).borderRadiusNumber,"onUpdate:modelValue":me[1]||(me[1]=_e=>vue.unref(ce).borderRadiusNumber=_e),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ce).label.show,"onUpdate:modelValue":me[2]||(me[2]=_e=>vue.unref(ce).label.show=_e)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ce).label.position,"onUpdate:modelValue":me[3]||(me[3]=_e=>vue.unref(ce).label.position=_e),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,_e=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:_e.value,label:_e.label,value:_e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).label.rotate,"onUpdate:modelValue":me[4]||(me[4]=_e=>vue.unref(ce).label.rotate=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).label.fontSize,"onUpdate:modelValue":me[5]||(me[5]=_e=>vue.unref(ce).label.fontSize=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ce).label.color,"onUpdate:modelValue":me[6]||(me[6]=_e=>vue.unref(ce).label.color=_e)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"折线配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"线条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).lineStyle.width,"onUpdate:modelValue":me[7]||(me[7]=_e=>vue.unref(de).lineStyle.width=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"显示填充区"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).showArea,"onUpdate:modelValue":me[8]||(me[8]=_e=>vue.unref(de).showArea=_e)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(de).lineStyle.type,"onUpdate:modelValue":me[9]||(me[9]=_e=>vue.unref(de).lineStyle.type=_e),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,_e=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:_e.value,label:_e.label,value:_e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"实心点"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).symbolSize,"onUpdate:modelValue":me[10]||(me[10]=_e=>vue.unref(de).symbolSize=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"平滑"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).smooth,"onUpdate:modelValue":me[11]||(me[11]=_e=>vue.unref(de).smooth=_e)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).label.show,"onUpdate:modelValue":me[12]||(me[12]=_e=>vue.unref(de).label.show=_e)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(de).label.position,"onUpdate:modelValue":me[13]||(me[13]=_e=>vue.unref(de).label.position=_e),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,_e=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:_e.value,label:_e.label,value:_e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).label.rotate,"onUpdate:modelValue":me[14]||(me[14]=_e=>vue.unref(de).label.rotate=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).label.fontSize,"onUpdate:modelValue":me[15]||(me[15]=_e=>vue.unref(de).label.fontSize=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(de).label.color,"onUpdate:modelValue":me[16]||(me[16]=_e=>vue.unref(de).label.color=_e)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ge.option.dataShow.x,"onUpdate:modelValue":me[17]||(me[17]=_e=>ge.option.dataShow.x=_e),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,_e=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:_e.comment,label:_e.comment,value:_e.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ge.option.dataShow.y,"onUpdate:modelValue":me[18]||(me[18]=_e=>ge.option.dataShow.y=_e),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ge.option.dataShow.y,(_e,be)=>(vue.openBlock(),vue.createElementBlock("div",{key:_e,class:"w-full sort-item"},[vue.unref(ue)[_e]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(ue)[_e].type=="bar"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ue)[_e].itemStyle.color,"onUpdate:modelValue":ye=>vue.unref(ue)[_e].itemStyle.color=ye},null,8,["predefine","modelValue","onUpdate:modelValue"])):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:1,predefine:vue.unref(ne),size:"small",onChange:ye=>pe(vue.unref(ue)[_e]),modelValue:vue.unref(ue)[_e].lineStyle.color,"onUpdate:modelValue":ye=>vue.unref(ue)[_e].lineStyle.color=ye},null,8,["predefine","onChange","modelValue","onUpdate:modelValue"]))],64)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1o,vue.toDisplayString(_e),1),vue.createElementVNode("div",_hoisted_2$1b,[vue.unref(ue)[_e]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:ye=>fe(ye,_e)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"bar"},{default:vue.withCtx(()=>[vue.createTextVNode("柱状")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"line"},{default:vue.withCtx(()=>[vue.createTextVNode("折线")]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$12,vue.toDisplayString(vue.unref(ue)[_e].type=="bar"?"柱状":"折线"),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:ye=>he(_e),class:vue.normalizeClass([ge.option.dataShow.hide.includes(_e)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$_),_hoisted_5$O])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1n={class:"ml-2"},_hoisted_2$1a={class:"flex items-center justify-end flex-1"},_hoisted_3$11={class:"mr-2 text-xs cursor-pointer"},_hoisted_4$Z=["onClick"],_hoisted_5$N=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1C=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],oe=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useScatterCommon();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const ce=()=>{const ve=JSON.parse(JSON.stringify(ue.value)),he=pe=>{Object.keys(ve).forEach(ge=>{ge!="type"&&(["itemStyle"].includes(ge)||(pe[ge]=ve[ge]))})};G.option.series.forEach(pe=>{he(pe)}),Object.keys(se.value).forEach(pe=>{he(vue.unref(se)[pe])}),window.customSeriesData=se.value},de=(ve,he)=>{const pe=vue.unref(se)[he];pe.type!=ve&&(pe.type=ve,ae(G.option,()=>{}))},fe=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:6},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"散点图配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).symbolSize,"onUpdate:modelValue":he[0]||(he[0]=pe=>vue.unref(ue).symbolSize=pe),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标域"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"粗细(0不显示)"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).markArea.itemStyle.borderWidth,"onUpdate:modelValue":he[1]||(he[1]=pe=>vue.unref(ue).markArea.itemStyle.borderWidth=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).markArea.itemStyle.borderType,"onUpdate:modelValue":he[2]||(he[2]=pe=>vue.unref(ue).markArea.itemStyle.borderType=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[3]||(he[3]=pe=>vue.unref(ue).label.show=pe)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[4]||(he[4]=pe=>vue.unref(ue).label.position=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[5]||(he[5]=pe=>vue.unref(ue).label.rotate=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[6]||(he[6]=pe=>vue.unref(ue).label.fontSize=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[7]||(he[7]=pe=>vue.unref(ue).label.color=pe)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[8]||(he[8]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[9]||(he[9]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(se)[pe].itemStyle.color,"onUpdate:modelValue":me=>vue.unref(se)[pe].itemStyle.color=me},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1n,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_2$1a,[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:me=>de(me,pe)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"scatter"},{default:vue.withCtx(()=>[vue.createTextVNode("普通")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"effectScatter"},{default:vue.withCtx(()=>[vue.createTextVNode("特效")]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$11,vue.toDisplayString(vue.unref(se)[pe].type=="scatter"?"普通":"特效"),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:me=>fe(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$Z),_hoisted_5$N])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1m={class:"flex items-center justify-end flex-1"},_hoisted_2$19=["onClick"],_hoisted_3$10=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1B=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){var fe;const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useRadar();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify((fe=vue.unref(se))!=null&&fe.type?se.value:le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch([()=>G.option.dataShow.y,()=>G.option.dataShow.hide],()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x),ae(G.option,()=>{ce()})});const ce=()=>{const ve=ue.value;Object.keys(G.option.series[0]).forEach(he=>{["areaStyle","label"].includes(he)&&(G.option.series[0][he]=ve[he])}),se.value={...G.option.series[0],data:[]},window.customSeriesData=se.value},de=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:4},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"雷达图配置"},{default:vue.withCtx(()=>{var pe;return[vue.createVNode(_sfc_main$1J,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"背景"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.splitArea.show,"onUpdate:modelValue":he[0]||(he[0]=ge=>ve.option.radar.splitArea.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.splitLine.show,"onUpdate:modelValue":he[1]||(he[1]=ge=>ve.option.radar.splitLine.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.radar.shape,"onUpdate:modelValue":he[2]||(he[2]=ge=>ve.option.radar.shape=ge),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,ge=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ge.value,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"坐标轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisLine.show,"onUpdate:modelValue":he[3]||(he[3]=ge=>ve.option.radar.axisLine.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"刻度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisTick.show,"onUpdate:modelValue":he[4]||(he[4]=ge=>ve.option.radar.axisTick.show=ge)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"范围"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"最小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.radius[0],"onUpdate:modelValue":he[5]||(he[5]=ge=>ve.option.radar.radius[0]=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.radius[1],"onUpdate:modelValue":he[6]||(he[6]=ge=>ve.option.radar.radius[1]=ge),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"偏移"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"x"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.center[0],"onUpdate:modelValue":he[7]||(he[7]=ge=>ve.option.radar.center[0]=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"y"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.center[1],"onUpdate:modelValue":he[8]||(he[8]=ge=>ve.option.radar.center[1]=ge),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"指示器"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisName.show,"onUpdate:modelValue":he[9]||(he[9]=ge=>ve.option.radar.axisName.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ve.option.radar.axisName.fontSize,"onUpdate:modelValue":he[10]||(he[10]=ge=>ve.option.radar.axisName.fontSize=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ve.option.radar.axisName.color,"onUpdate:modelValue":he[11]||(he[11]=ge=>ve.option.radar.axisName.color=ge)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[12]||(he[12]=ge=>vue.unref(ue).label.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[13]||(he[13]=ge=>vue.unref(ue).label.position=ge),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ge=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ge.value,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[14]||(he[14]=ge=>vue.unref(ue).label.rotate=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[15]||(he[15]=ge=>vue.unref(ue).label.fontSize=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[16]||(he[16]=ge=>vue.unref(ue).label.color=ge)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),(pe=vue.unref(ue))!=null&&pe.type?(vue.openBlock(),vue.createBlock(_sfc_main$1J,{key:0,name:"系列"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"背景透明度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).areaStyle.opacity,"onUpdate:modelValue":he[17]||(he[17]=ge=>vue.unref(ue).areaStyle.opacity=ge),min:0,max:1,size:"small",step:.1},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]}),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[18]||(he[18]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[19]||(he[19]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.createElementVNode("span",null,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_1$1m,[vue.createElementVNode("i",{onClick:me=>de(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_2$19),_hoisted_3$10])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1l={class:"ml-2"},_hoisted_2$18={class:"flex items-center justify-end flex-1"},_hoisted_3$$=vue.createElementVNode("i",{class:"mr-2 cursor-pointer ri-more-line"},null,-1),_hoisted_4$Y=["onClick"],_hoisted_5$M=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1A=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){screenDesignMainStore();const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor;useCustomChart();const{init:ne,numberConfig:re,customSeriesData:oe}=useNumber();vue.ref(null);const ie=vue.ref(JSON.parse(JSON.stringify(re)));vue.watch(ie,()=>le(),{deep:!0}),vue.watch(()=>U.option.dataShow,()=>{ne(U.option)},{deep:!0,immediate:U.immediate});const le=()=>{},ae=se=>{const{hide:ue=[]}=U.option.dataShow;ue.includes(se)?ue.splice(ue.findIndex(ce=>ce==se),1):ue.push(se),U.option.dataShow.hide=ue};return(se,ue)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"间距",name:"margin"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"外间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:se.option.margin,"onUpdate:modelValue":ue[0]||(ue[0]=ce=>se.option.margin=ce),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"内间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:se.option.padding,"onUpdate:modelValue":ue[1]||(ue[1]=ce=>se.option.padding=ce),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"列名"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:se.option.dataShow.y,"onUpdate:modelValue":ue[2]||(ue[2]=ce=>se.option.dataShow.y=ce),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.option.dataShow.y,(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{key:ce,class:"w-full sort-item"},[vue.unref(oe)[ce]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].bgColor,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].bgColor=fe},null,8,["predefine","modelValue","onUpdate:modelValue"]),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].color,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].color=fe},null,8,["predefine","modelValue","onUpdate:modelValue"])],64)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1l,vue.toDisplayString(ce),1),vue.createElementVNode("div",_hoisted_2$18,[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,width:400,trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$$]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].prefix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].prefix=fe,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].suffix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].suffix=fe,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(oe)[ce].toFixed,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].toFixed=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(oe)[ce].fontSize,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].fontSize=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"隐藏标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(oe)[ce].hideLabel,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].hideLabel=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"标题大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(oe)[ce].titleFontSize,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].titleFontSize=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:fe=>ae(ce),class:vue.normalizeClass([(se.option.dataShow.hide??[]).includes(ce)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$Y),_hoisted_5$M])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1k={class:"ml-2"},_hoisted_2$17={class:"flex items-center justify-end flex-1"},_hoisted_3$_=vue.createElementVNode("i",{class:"mr-2 cursor-pointer ri-more-line"},null,-1),_hoisted_4$X=["onClick"],_hoisted_5$L=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1z=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){screenDesignMainStore();const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor;useCustomChart();const{init:ne,tableConfig:re,customSeriesData:oe}=useTable();vue.ref(null);const ie=vue.ref(JSON.parse(JSON.stringify(re)));vue.watch(ie,()=>le(),{deep:!0}),vue.watch(()=>U.option.dataShow,()=>{ne(U.option)},{deep:!0,immediate:U.immediate});const le=()=>{},ae=se=>{const{hide:ue}=U.option.dataShow;ue.includes(se)?ue.splice(ue.findIndex(ce=>ce==se),1):ue.push(se)};return(se,ue)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"表格设置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示序号"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:U.option.showIndex,"onUpdate:modelValue":ue[0]||(ue[0]=ce=>U.option.showIndex=ce)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"列名"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:se.option.dataShow.y,"onUpdate:modelValue":ue[1]||(ue[1]=ce=>se.option.dataShow.y=ce),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.option.dataShow.y,(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{key:ce,class:"w-full sort-item"},[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].color,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].color=fe},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1k,vue.toDisplayString(ce),1),vue.createElementVNode("div",_hoisted_2$17,[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,width:400,trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$_]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].prefix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].prefix=fe,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].suffix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].suffix=fe,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(oe)[ce].toFixed,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].toFixed=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"统计"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(oe)[ce].sum,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].sum=fe},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:fe=>ae(ce),class:vue.normalizeClass([se.option.dataShow.hide.includes(ce)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$X),_hoisted_5$L])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),_hoisted_1$1j={class:"flex items-center"},_hoisted_2$16=vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),_hoisted_3$Z={class:"flex items-center"},_hoisted_4$W=vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),_sfc_main$1y=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,{init:re,city:oe}=useMap();return vue.watch(()=>G.option.style.style1,async ie=>{G.option.series[1]=ie},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.style.style2,async ie=>{G.option.series[2]=ie},{deep:!0,immediate:G.immediate}),(ie,le)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ie.option,type:9},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"地图数据"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{modelValue:ie.option.code,"onUpdate:modelValue":le[0]||(le[0]=ae=>ie.option.code=ae),data:vue.unref(oe),props:{label:"name",value:"code",children:"children"},onChange:le[1]||(le[1]=ae=>vue.unref(re)(ie.option)),filterable:"","node-key":"code","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"视觉映射"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.visualMap.show,"onUpdate:modelValue":le[2]||(le[2]=ae=>ie.option.visualMap.show=ae)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"文本"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1j,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.text[1],"onUpdate:modelValue":le[3]||(le[3]=ae=>ie.option.visualMap.text[1]=ae),size:"small"},null,8,["modelValue"]),_hoisted_2$16,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.text[0],"onUpdate:modelValue":le[4]||(le[4]=ae=>ie.option.visualMap.text[0]=ae),size:"small"},null,8,["modelValue"])])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值-最高值"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$Z,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.min,"onUpdate:modelValue":le[5]||(le[5]=ae=>ie.option.visualMap.min=ae),size:"small"},null,8,["modelValue"]),_hoisted_4$W,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.max,"onUpdate:modelValue":le[6]||(le[6]=ae=>ie.option.visualMap.max=ae),size:"small"},null,8,["modelValue"])])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小颜色-最高颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.visualMap.inRange.color[0],"onUpdate:modelValue":le[7]||(le[7]=ae=>ie.option.visualMap.inRange.color[0]=ae)},null,8,["predefine","modelValue"]),vue.createTextVNode(" - "),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.visualMap.inRange.color[1],"onUpdate:modelValue":le[8]||(le[8]=ae=>ie.option.visualMap.inRange.color[1]=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"地图"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示标签"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.geo.label.show,"onUpdate:modelValue":le[9]||(le[9]=ae=>ie.option.geo.label.show=ae)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"缩放"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{step:.1,modelValue:ie.option.geo.zoom,"onUpdate:modelValue":le[10]||(le[10]=ae=>ie.option.geo.zoom=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.label.fontSize,"onUpdate:modelValue":le[11]||(le[11]=ae=>ie.option.geo.label.fontSize=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.label.color,"onUpdate:modelValue":le[12]||(le[12]=ae=>ie.option.geo.label.color=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"移动效果"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"区块颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.itemStyle.areaColor,"onUpdate:modelValue":le[13]||(le[13]=ae=>ie.option.geo.emphasis.itemStyle.areaColor=ae)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.itemStyle.borderColor,"onUpdate:modelValue":le[14]||(le[14]=ae=>ie.option.geo.emphasis.itemStyle.borderColor=ae)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.emphasis.itemStyle.borderWidth,"onUpdate:modelValue":le[15]||(le[15]=ae=>ie.option.geo.emphasis.itemStyle.borderWidth=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.emphasis.label.fontSize,"onUpdate:modelValue":le[16]||(le[16]=ae=>ie.option.geo.emphasis.label.fontSize=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.label.color,"onUpdate:modelValue":le[17]||(le[17]=ae=>ie.option.geo.emphasis.label.color=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(["style1","style2"],ae=>vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:ae=="style1"?"散点样式":"点位样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.style[ae].symbol,"onUpdate:modelValue":se=>ie.option.style[ae].symbol=se,size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).shape,se=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.style[ae].symbolSize,"onUpdate:modelValue":se=>ie.option.style[ae].symbolSize=se,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"形状颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.style[ae].itemStyle.color,"onUpdate:modelValue":se=>ie.option.style[ae].itemStyle.color=se},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),ie.option.style[ae].label?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(_sfc_main$1I,{name:"值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.style[ae].label.show,"onUpdate:modelValue":se=>ie.option.style[ae].label.show=se},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.style[ae].label.color,"onUpdate:modelValue":se=>ie.option.style[ae].label.color=se},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.style[ae].label.fontSize,"onUpdate:modelValue":se=>ie.option.style[ae].label.fontSize=se,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["title"])),64)),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"维度",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.dataShow.x,"onUpdate:modelValue":le[18]||(le[18]=ae=>ie.option.dataShow.x=ae),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ae=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ae.comment,label:ae.comment,value:ae.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"统计",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.dataShow.y,"onUpdate:modelValue":le[19]||(le[19]=ae=>ie.option.dataShow.y=ae),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.y.filter(ae=>ae.aggType!="other"),ae=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ae.showLabel,label:ae.showLabel,value:ae.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),moudleComponents={};for(let te=0;te<=4;te+=1){let U=null;if(te==0&&(U=Object.assign({"../decoration/decoration1/setting.vue":__vite_glob_0_0,"../decoration/decoration10/setting.vue":__vite_glob_0_1,"../decoration/decoration11/setting.vue":__vite_glob_0_2,"../decoration/decoration12/setting.vue":__vite_glob_0_3,"../decoration/decoration2/setting.vue":__vite_glob_0_4,"../decoration/decoration3/setting.vue":__vite_glob_0_5,"../decoration/decoration4/setting.vue":__vite_glob_0_6,"../decoration/decoration5/setting.vue":__vite_glob_0_7,"../decoration/decoration6/setting.vue":__vite_glob_0_8,"../decoration/decoration8/setting.vue":__vite_glob_0_9,"../decoration/decoration9/setting.vue":__vite_glob_0_10})),te==1&&(U=Object.assign({"../border/border1/setting.vue":__vite_glob_1_0,"../border/border10/setting.vue":__vite_glob_1_1,"../border/border11/setting.vue":__vite_glob_1_2,"../border/border12/setting.vue":__vite_glob_1_3,"../border/border13/setting.vue":__vite_glob_1_4,"../border/border2/setting.vue":__vite_glob_1_5,"../border/border3/setting.vue":__vite_glob_1_6,"../border/border4/setting.vue":__vite_glob_1_7,"../border/border5/setting.vue":__vite_glob_1_8,"../border/border6/setting.vue":__vite_glob_1_9,"../border/border7/setting.vue":__vite_glob_1_10,"../border/border8/setting.vue":__vite_glob_1_11,"../border/border9/setting.vue":__vite_glob_1_12})),te==2&&(U=Object.assign({"../basic/horizontal-line/setting.vue":__vite_glob_2_0,"../basic/iframe/setting.vue":__vite_glob_2_1,"../basic/img/setting.vue":__vite_glob_2_2,"../basic/number/setting.vue":__vite_glob_2_3,"../basic/square/setting.vue":__vite_glob_2_4,"../basic/text/setting.vue":__vite_glob_2_5,"../basic/time/setting.vue":__vite_glob_2_6,"../basic/vertical-line/setting.vue":__vite_glob_2_7})),te==3&&(moudleComponents[3]=_sfc_main$1G,moudleComponents[2]=_sfc_main$1E,moudleComponents[1]=_sfc_main$1F,moudleComponents[4]=_sfc_main$1B,moudleComponents[5]=_sfc_main$1D,moudleComponents[6]=_sfc_main$1C,moudleComponents[7]=_sfc_main$1A,moudleComponents[8]=_sfc_main$1z,moudleComponents[9]=_sfc_main$1y),te==4&&(U=Object.assign({"../control/input/setting.vue":__vite_glob_3_0,"../control/select/setting.vue":__vite_glob_3_1})),U)for(const[G,ee]of Object.entries(U)){const ne=G.split("/")[2];moudleComponents[ne]=ee.default}}const _withScopeId$w=te=>(vue.pushScopeId("data-v-91a48762"),te=te(),vue.popScopeId(),te),_hoisted_1$1i=_withScopeId$w(()=>vue.createElementVNode("div",{class:"flex items-center h-10 p-2"},[vue.createElementVNode("span",{class:"w-1 h-4 mr-2 bg-color-primary"}),vue.createTextVNode(" 大屏设置 ")],-1)),_hoisted_2$15=_withScopeId$w(()=>vue.createElementVNode("div",{class:"h-px mb-2",style:{"background-color":"var(--el-border-color-light)"}},null,-1)),_hoisted_3$Y={class:"p-2"},_sfc_main$1x=vue.defineComponent({__name:"rightPannel",setup(te){const U=screenDesignMainStore(),G=vue.ref({});vue.provide("widgetConfig",G);const ee=vue.ref(""),ne=vue.computed(()=>U.targetsWidget.length===1?U.getWidgetList.find(oe=>{var ie;return oe.id==((ie=U.targetsWidget[0])==null?void 0:ie.id)}):null);vue.watch(ne,oe=>{re()});const re=()=>{if(!vue.unref(ne)){G.value={};return}const oe=U.getWidgetList.find(ie=>ie.id==vue.unref(ne).id);vue.unref(ne).chartType&&(oe==null?void 0:oe.modelType)!="INDICATORS"&&(window.customSeriesData=oe.customize.customSeriesData,U.setChartData(U.tempChartData[oe.id].params)),G.value=oe,ee.value=""};return re(),(oe,ie)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElScrollbar),{height:"100%"},{default:vue.withCtx(()=>{var le,ae,se;return[_hoisted_1$1i,_hoisted_2$15,((le=vue.unref(G))==null?void 0:le.modelType)=="INDICATORS"?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0})):(ae=vue.unref(G))!=null&&ae.chartType?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(_sfc_main$2k),vue.createElementVNode("div",_hoisted_3$Y,[vue.createVNode(vue.unref(elementPlus.ElCollapse),{accordion:"",modelValue:vue.unref(ee),"onUpdate:modelValue":ie[0]||(ie[0]=ue=>vue.isRef(ee)?ee.value=ue:null)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(moudleComponents)[vue.unref(G).chartType]),{key:vue.unref(G).id,immediate:"",option:vue.unref(G).customize,type:vue.unref(G).chartType},null,8,["option","type"]))]),_:1},8,["modelValue"])])],64)):vue.unref(moudleComponents)[(se=vue.unref(G))==null?void 0:se.type]?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(moudleComponents)[vue.unref(G).type]),{key:vue.unref(G).id})):(vue.openBlock(),vue.createBlock(stagetSetting,{key:3}))]}),_:1}))}}),rightPannel_vue_vue_type_style_index_0_scoped_91a48762_lang="",RightPannel=_export_sfc$2(_sfc_main$1x,[["__scopeId","data-v-91a48762"]]),_hoisted_1$1h={class:"flex flex-col overflow-hidden ace-big-screen"},_hoisted_2$14={class:"h-10 top-pannel"},_hoisted_3$X={class:"relative flex flex-1"},_hoisted_4$V={class:"left-pannel"},_hoisted_5$K={class:"flex-1 p-2 overflow-hidden",id:"design-container"},_hoisted_6$F={class:"relative w-full h-full"},_hoisted_7$z={key:0,class:"right-pannel w-80"},_sfc_main$1w=vue.defineComponent({__name:"design",emits:["preview","save"],setup(te,{expose:U,emit:G}){const ee=G,{proxy:ne}=vue.getCurrentInstance(),re=screenDesignMainStore(),oe=vue.ref(!1),ie=vue.ref(""),le=vue.ref("");return vue.watch(oe,se=>{se?document.getElementsByTagName("html")[0].className=re.theme:document.getElementsByTagName("html")[0].className=""}),U({init:async(se="",ue="")=>{if(le.value=se,ie.value="大屏管理",oe.value=!0,re.widgetConfg={config:{},list:[]},re.clearSketchRuleLine(),re.setRightPannel(!1),se){const ce=await ne.$baseHttp.get("/api/ace-data-center/screen/detail",{params:{id:se},headers:{loading:!0}});ie.value=ce.data.title,re.widgetConfg=chartJsonFormat(ce.data.config),ue==="COPY"&&(le.value="")}re.setStageWidth(re.widgetConfg.config.stageWidth??1920),re.setStageHeight(re.widgetConfg.config.stageHeight??1080)}}),(se,ue)=>{const ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ce,{modelValue:vue.unref(oe),"onUpdate:modelValue":ue[4]||(ue[4]=de=>vue.isRef(oe)?oe.value=de:null),title:"大屏设计",size:"100%",withHeader:!1,modalClass:"ace-modal-drawer",customClass:"ace-big-design-dialog"},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1h,[vue.createElementVNode("div",_hoisted_2$14,[vue.createVNode(TopPannel,{title:vue.unref(ie),"onUpdate:title":ue[0]||(ue[0]=de=>vue.isRef(ie)?ie.value=de:null),id:vue.unref(le),onPreview:ue[1]||(ue[1]=de=>ee("preview",de)),onSave:ue[2]||(ue[2]=de=>{le.value=de,ee("save")}),onBack:ue[3]||(ue[3]=()=>oe.value=!1)},null,8,["title","id"])]),vue.createElementVNode("div",_hoisted_3$X,[vue.createElementVNode("div",_hoisted_4$V,[vue.createVNode(LeftPannel)]),vue.createElementVNode("div",_hoisted_5$K,[vue.createElementVNode("div",_hoisted_6$F,[vue.createVNode(Main)])]),vue.unref(re).getRightPannel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$z,[vue.createVNode(RightPannel)])):vue.createCommentVNode("",!0)])])),[[vue.unref(elementPlus.vLoading),vue.unref(re).createLoading]])]),_:1},8,["modelValue"])}}}),design_vue_vue_type_style_index_0_lang="",_withScopeId$v=te=>(vue.pushScopeId("data-v-144f5695"),te=te(),vue.popScopeId(),te),_hoisted_1$1g={key:1,class:"flex flex-wrap items-center justify-between"},_hoisted_2$13={class:"item-container"},_hoisted_3$W={class:"item-image"},_hoisted_4$U=["src"],_hoisted_5$J=["onClick"],_hoisted_6$E=_withScopeId$v(()=>vue.createElementVNode("span",{class:"text-base text-white cursor-pointer"},"预览大屏",-1)),_hoisted_7$y=[_hoisted_6$E],_hoisted_8$t={class:"flex items-center justify-between item-footer"},_hoisted_9$p={class:"flex"},_hoisted_10$k=["onClick"],_hoisted_11$f=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-edit-line"},null,-1)),_hoisted_12$d=["onClick"],_hoisted_13$b=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-file-copy-line"},null,-1)),_hoisted_14$a=["onClick"],_hoisted_15$6=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-delete-bin-line"},null,-1)),_hoisted_16$5=_withScopeId$v(()=>vue.createElementVNode("div",{class:"item"},null,-1)),_hoisted_17$4=_withScopeId$v(()=>vue.createElementVNode("div",{class:"item"},null,-1)),_sfc_main$1v=vue.defineComponent({__name:"index",emits:["preview","auto-play"],setup(te,{emit:U}){const G=U,{proxy:ee}=vue.getCurrentInstance(),{resetUrl:ne}=ee.$globalUtils,re=vue.ref(null),oe=vue.ref(null),ie=vue.reactive([{name:"新增",key:"ADD",type:"primary"},{name:"自动播放",key:"AUTO-PLAY",type:"primary"}]),le=vue.reactive([{name:"名称",type:FieldType.Text,fieldName:"title",value:""}]),ae=async se=>{const{type:ue,row:ce}=se;switch(ue){case"PREVIEW":G("preview","list",(ce==null?void 0:ce.id)??"");break;case"AUTO-PLAY":G("auto-play");break;case"ADD":case"EDIT":case"COPY":vue.unref(oe).init((ce==null?void 0:ce.id)??"",ue);break;case"DEL":ee.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await ee.$baseHttp.post("/api/ace-data-center/screen/remove",{},{params:{ids:ce.id},headers:{loading:!0}})&&(ee.$message({type:"success",message:"删除成功",plain:!0}),vue.unref(re).getData())}});break}};return(se,ue)=>{const ce=vue.resolveComponent("AppEmpty"),de=vue.resolveComponent("AppList");return vue.openBlock(),vue.createBlock(de,{url:`/api/ace-data-center/screen/list?descs=create_time&projectId=${vue.unref(ee).$baseGetCurrentProjectId()}`,tableData:[],searchForm:vue.unref(le),searchBtns:vue.unref(ie),listType:"custom",onBtnClick:ae,ref_key:"appListRef",ref:re},{"list-slot":vue.withCtx(({list:fe,loading:ve})=>[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:ve,animated:""},{default:vue.withCtx(()=>[fe.length==0?(vue.openBlock(),vue.createBlock(ce,{key:0,description:"暂无数据"})):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1g,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe,(he,pe)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"item"},[vue.createElementVNode("div",_hoisted_2$13,[vue.createElementVNode("div",_hoisted_3$W,[vue.createElementVNode("img",{src:vue.unref(ne)(he.imageUrl??"")||"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg"},null,8,_hoisted_4$U),vue.createElementVNode("div",{class:"flex items-center justify-center item-popup",onClick:ge=>ae({type:"PREVIEW",row:he,index:pe})},_hoisted_7$y,8,_hoisted_5$J)]),vue.createElementVNode("div",_hoisted_8$t,[vue.createElementVNode("div",null,vue.toDisplayString(he.title),1),vue.createElementVNode("div",_hoisted_9$p,[vue.createElementVNode("span",{onClick:ge=>ae({type:"EDIT",row:he,index:pe}),class:"flex items-center text-xs text-gray-600 cursor-pointer"},[_hoisted_11$f,vue.createTextVNode(" 编辑大屏 ")],8,_hoisted_10$k),vue.createElementVNode("span",{onClick:ge=>ae({type:"COPY",row:he,index:pe}),class:"flex items-center ml-2 text-xs text-gray-600 cursor-pointer"},[_hoisted_13$b,vue.createTextVNode(" 复制 ")],8,_hoisted_12$d),vue.createElementVNode("span",{onClick:ge=>ae({type:"DEL",row:he,index:pe}),class:"flex items-center ml-2 text-xs cursor-pointer text-color-danger"},[_hoisted_15$6,vue.createTextVNode(" 删除 ")],8,_hoisted_14$a)])])])]))),128)),_hoisted_16$5,_hoisted_17$4]))]),_:2},1032,["loading"])]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1w,{ref_key:"designRef",ref:oe,onSave:ue[0]||(ue[0]=fe=>vue.unref(re).getData()),onPreview:ue[1]||(ue[1]=fe=>G("preview","content",fe))},null,512)]),_:1},8,["url","searchForm","searchBtns"])}}}),index_vue_vue_type_style_index_0_scoped_144f5695_lang="",aceBigScreen=_export_sfc$2(_sfc_main$1v,[["__scopeId","data-v-144f5695"]]);let currRenderDom=null,currelRectification="",currelRectificationLevel="",currelRectificationIsKeepRatio="",resizeListener=null,timer=null,currScale=1,isElRectification=!1;const autofit={isAutofitRunnig:!1,init(te={},U=!0){U&&console.log("autofit.js is running");const{dw:G=1920,dh:ee=1080,el:ne=typeof te=="string"?te:"body",resize:re=!0,ignore:oe=[],transition:ie="none",delay:le=0,limit:ae=.1}=te;currRenderDom=ne;let se=document.querySelector(ne);if(!se){console.error(`autofit: '${ne}' is not exist`);return}const ue=document.createElement("style"),ce=document.createElement("style");ue.lang="text/css",ce.lang="text/css",ue.id="autofit-style",ce.id="ignoreStyle",ue.innerHTML="body {overflow: hidden;}";const de=document.querySelector("body");de.appendChild(ue),de.appendChild(ce),se.style.height=`${ee}px`,se.style.width=`${G}px`,se.style.transformOrigin="0 0",se.style.overflow="hidden",keepFit(G,ee,se,oe,ae),resizeListener=()=>{clearTimeout(timer),le!=0?timer=setTimeout(()=>{keepFit(G,ee,se,oe,ae),isElRectification&&elRectification(currelRectification,currelRectificationIsKeepRatio,currelRectificationLevel)},le):(keepFit(G,ee,se,oe,ae),isElRectification&&elRectification(currelRectification,currelRectificationIsKeepRatio,currelRectificationLevel))},re&&window.addEventListener("resize",resizeListener),this.isAutofitRunnig=!0,setTimeout(()=>{se.style.transition=`${ie}s`})},off(te="body"){try{isElRectification=!1,window.removeEventListener("resize",resizeListener),document.querySelector("#autofit-style").remove();const U=document.querySelector("#ignoreStyle");U&&U.remove(),document.querySelector(currRenderDom||te).style="",isElRectification&&offelRectification()}catch(U){console.error("autofit: Failed to remove normally",U),this.isAutofitRunnig=!1}this.isAutofitRunnig&&console.log("autofit.js is off")}};function elRectification(te,U=!0,G=1){autofit.isAutofitRunnig||console.error("autofit.js:autofit has not been initialized yet"),!te&&console.error(`autofit.js:bad selector: ${te}`),currelRectification=te,currelRectificationLevel=G,currelRectificationIsKeepRatio=U;const ee=document.querySelectorAll(te);if(ee.length==0){console.error("autofit.js:elRectification found no element");return}for(let ne of ee){let re=currScale==1?1:currScale*G;isElRectification||(ne.originalWidth=ne.clientWidth,ne.originalHeight=ne.clientHeight),U?(ne.style.width=`${ne.originalWidth*re}px`,ne.style.height=`${ne.originalHeight*re}px`):(ne.style.width=`${100*re}%`,ne.style.height=`${100*re}%`),ne.style.transform=`scale(${1/currScale})`,ne.style.transformOrigin="0 0"}isElRectification=!0}function offelRectification(){if(currelRectification)for(let te of document.querySelectorAll(currelRectification))te.style.width="",te.style.height="",te.style.transform=""}function keepFit(te,U,G,ee,ne){let re=document.documentElement.clientHeight,oe=document.documentElement.clientWidth;currScale=oe/re<te/U?oe/te:re/U,currScale=Math.abs(1-currScale)>ne?currScale.toFixed(2):1;let ie=Math.round(re/currScale),le=Math.round(oe/currScale);G.style.height=`${ie}px`,G.style.width=`${le}px`,G.style.transform=`scale(${currScale})`;const ae=document.querySelector("#ignoreStyle");ae.innerHTML="";for(let se of ee){let ue=se.el||se.dom;if(typeof se=="string"&&(ue=se),!ue){console.error(`autofit: bad selector: ${ue}`);continue}let ce=se.scale?se.scale:1/currScale,de=ce!=currScale?se.fontSize:"autofit",fe=ce!=currScale?se.width:"autofit",ve=ce!=currScale?se.height:"autofit";new RegExp(`${ue}( |{)`,"gm").test(ae.innerHTML)||(ae.innerHTML+=`
789
+ `("loading");vue.defineComponent({name:"Loading",setup(te,{slots:U}){return()=>vue.createVNode(o,null,{default:()=>{var G;return[vue.createVNode("svg",{width:"50px",height:"50px"},[vue.createVNode("circle",{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"},[vue.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),vue.createVNode("animate",{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"},null)]),vue.createVNode("circle",{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"},[vue.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),vue.createVNode("animate",{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"},null)])]),vue.createVNode("div",{class:"loading-tip"},[(G=U.default)==null?void 0:G.call(U)])]}})}});const _sfc_main$2Y=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(V$3),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2Y},Symbol.toStringTag,{value:"Module"})),_sfc_main$2X=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(V$2),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2X},Symbol.toStringTag,{value:"Module"})),_sfc_main$2W=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(B$1),{color:vue.unref(G),ref_key:"customRef",ref:ee},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(U.config.customize.title),1)]),_:1},8,["color"]))}}),__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2W},Symbol.toStringTag,{value:"Module"})),_sfc_main$2V=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(dt),{color:vue.unref(G),scanDuration:ne.config.customize.scanDuration,haloDuration:ne.config.customize.haloDuration,ref_key:"customRef",ref:ee},null,8,["color","scanDuration","haloDuration"]))}}),__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2V},Symbol.toStringTag,{value:"Module"})),_sfc_main$2U=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(A$3),{color:vue.unref(G),duration:ne.config.customize.duration,reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","duration","reverse"]))}}),__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2U},Symbol.toStringTag,{value:"Module"})),_sfc_main$2T=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(E$1),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2T},Symbol.toStringTag,{value:"Module"})),_sfc_main$2S=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(F),{color:vue.unref(G),duration:ne.config.customize.duration,reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","duration","reverse"]))}}),__vite_glob_0_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2S},Symbol.toStringTag,{value:"Module"})),_sfc_main$2R=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(J$1),{color:vue.unref(G),duration:ne.config.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","duration"]))}}),__vite_glob_0_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2R},Symbol.toStringTag,{value:"Module"})),_sfc_main$2Q=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(Y),{color:vue.unref(G),ref_key:"customRef",ref:ee},null,8,["color"]))}}),__vite_glob_0_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2Q},Symbol.toStringTag,{value:"Module"})),_sfc_main$2P=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(A$1),{color:vue.unref(G),reverse:ne.config.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","reverse"]))}}),__vite_glob_0_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2P},Symbol.toStringTag,{value:"Module"})),_sfc_main$2O=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.decorationColor1||(re=U.config.customize)!=null&&re.decorationColor2?[U.config.customize.decorationColor1,U.config.customize.decorationColor2]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(J),{color:vue.unref(G),reverse:ne.config.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","reverse"]))}}),__vite_glob_0_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2O},Symbol.toStringTag,{value:"Module"})),_sfc_main$2N=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(D$7),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2N},Symbol.toStringTag,{value:"Module"})),_sfc_main$2M=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2M},Symbol.toStringTag,{value:"Module"})),_sfc_main$2L=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie,le;return vue.openBlock(),vue.createBlock(vue.unref(O$1),{color:vue.unref(G),title:(oe=U.config)==null?void 0:oe.customize.title,titleWidth:(ie=U.config)==null?void 0:ie.customize.titleWidth,backgroundColor:(le=U.config)==null?void 0:le.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","title","titleWidth","backgroundColor"])}}}),__vite_glob_1_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2L},Symbol.toStringTag,{value:"Module"})),_sfc_main$2K=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(D$6),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2K},Symbol.toStringTag,{value:"Module"})),_sfc_main$2J=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$7),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2J},Symbol.toStringTag,{value:"Module"})),_sfc_main$2I=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$6),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2I},Symbol.toStringTag,{value:"Module"})),_sfc_main$2H=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2H},Symbol.toStringTag,{value:"Module"})),_sfc_main$2G=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie;return vue.openBlock(),vue.createBlock(vue.unref(J$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse"])}}}),__vite_glob_1_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2G},Symbol.toStringTag,{value:"Module"})),_sfc_main$2F=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie;return vue.openBlock(),vue.createBlock(vue.unref(J$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse"])}}}),__vite_glob_1_8$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2F},Symbol.toStringTag,{value:"Module"})),_sfc_main$2E=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(R$5),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_9$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2E},Symbol.toStringTag,{value:"Module"})),_sfc_main$2D=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(E$2),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_10$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2D},Symbol.toStringTag,{value:"Module"})),_sfc_main$2C=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe,ie,le;return vue.openBlock(),vue.createBlock(vue.unref(Y$3),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,reverse:(ie=U.config)==null?void 0:ie.customize.reverse,duration:(le=U.config)==null?void 0:le.customize.duration,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor","reverse","duration"])}}}),__vite_glob_1_11$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2C},Symbol.toStringTag,{value:"Module"})),_sfc_main$2B=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{var ne,re;return(ne=U.config.customize)!=null&&ne.borderMainColor||(re=U.config.customize)!=null&&re.borderSecondaryColor?[U.config.customize.borderMainColor,U.config.customize.borderSecondaryColor]:[]}),{customRef:ee}=useRefresh(U.config);return(ne,re)=>{var oe;return vue.openBlock(),vue.createBlock(vue.unref(V$4),{color:vue.unref(G),backgroundColor:(oe=U.config)==null?void 0:oe.customize.backgroundColor,ref_key:"customRef",ref:ee},null,8,["color","backgroundColor"])}}}),__vite_glob_1_12$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2B},Symbol.toStringTag,{value:"Module"})),_sfc_main$2A=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>U.config.customize.width+"px"),ee=vue.computed(()=>U.config.customize.borderGap+"px"),ne=vue.computed(()=>{const re=U.config.customize.gradientColor0,oe=U.config.customize.gradientColor1;return`linear-gradient(to bottom, ${U.config.customize.borderType=="dashed"?"transparent 0%,transparent 50%,":""} ${re||oe} 50%, ${oe||re} 100%)`});return(re,oe)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({width:vue.unref(G),"background-image":vue.unref(ne),"background-repeat":"repeat-y","background-size":U.config.customize.borderType=="dashed"?`${vue.unref(G)} ${vue.unref(ee)}`:""}),class:"h-full"},null,4))}}),__vite_glob_2_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2A},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1F=["src"],_sfc_main$2z=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te;return(G,ee)=>(vue.openBlock(),vue.createElementBlock("iframe",{src:U.config.customize.url,class:"w-full h-full border-0"},null,8,_hoisted_1$1F))}}),__vite_glob_2_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2z},Symbol.toStringTag,{value:"Module"})),_sfc_main$2y=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const{proxy:U}=vue.getCurrentInstance(),{resetUrl:G}=U.$globalUtils,ee=te;return(ne,re)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElImage),{class:"w-full h-full",src:vue.unref(G)(ee.config.customize.url),fit:ee.config.customize.fit},null,8,["src","fit"]))}}),__vite_glob_2_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2y},Symbol.toStringTag,{value:"Module"})),_sfc_main$2x=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(G),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(U.config.customize.title),5))}}),__vite_glob_2_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2x},Symbol.toStringTag,{value:"Module"})),_sfc_main$2w=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>{const ee=U.config.customize.gradientColor0,ne=U.config.customize.gradientColor1;return`linear-gradient(to ${U.config.customize.colorPosition}, ${ee||ne} , ${ne||ee})`});return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{class:"w-full h-full",style:vue.normalizeStyle({"background-image":vue.unref(G),borderRadius:U.config.customize.borderRadius+"px"})},null,4))}}),__vite_glob_2_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2w},Symbol.toStringTag,{value:"Module"})),_sfc_main$2v=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(ee,ne)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(G),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(U.config.customize.title),5))}}),__vite_glob_2_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2v},Symbol.toStringTag,{value:"Module"})),_sfc_main$2u=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.ref(),ee=()=>{G.value=dayjs().format("YYYY-MM-DD HH:mm:ss")},ne=setInterval(()=>{ee()},1e3);ee(),vue.onBeforeUnmount(()=>{ne&&clearInterval(ne)});const re=vue.computed(()=>`-webkit-linear-gradient(${U.config.customize.colorPosition}, ${U.config.customize.startColor}, ${U.config.customize.endColor}`);return(oe,ie)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({...U.config.customize,fontSize:U.config.customize.fontSize+"px",letterSpacing:U.config.customize.letterSpacing+"px",backgroundImage:vue.unref(re),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},vue.toDisplayString(vue.unref(G)),5))}}),__vite_glob_2_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2u},Symbol.toStringTag,{value:"Module"})),_sfc_main$2t=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,G=vue.computed(()=>U.config.customize.height+"px"),ee=vue.computed(()=>U.config.customize.borderGap+"px"),ne=vue.computed(()=>{const re=U.config.customize.gradientColor0,oe=U.config.customize.gradientColor1;return`linear-gradient(to right, ${U.config.customize.borderType=="dashed"?"transparent 0%,transparent 50%,":""} ${re||oe} 50%, ${oe||re} 100%)`});return(re,oe)=>(vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle({height:vue.unref(G),"background-image":vue.unref(ne),"background-repeat":"repeat-x","background-size":U.config.customize.borderType=="dashed"?`${vue.unref(ee)} ${vue.unref(G)}`:""}),class:"w-full"},null,4))}}),__vite_glob_2_7$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2t},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1E={class:"w-full h-full"},_hoisted_2$1m=["placeholder"],_sfc_main$2s=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){vue.useCssVars(re=>({"75aca5f8":vue.unref(ee)}));const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.computed(()=>U.config.customize.color),ne=()=>{const re=U.config.customize.linkage;G.$baseEventBus.emit("ace-screen-indicators-linkage",re.map(oe=>oe[0]))};return(re,oe)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1E,[vue.withDirectives(vue.createElementVNode("input",{"onUpdate:modelValue":oe[0]||(oe[0]=ie=>U.config.customize.modelValue=ie),placeholder:U.config.customize.placeholder,style:vue.normalizeStyle({width:"100%",height:"100%",backgroundColor:U.config.customize.backgroundColor,borderWidth:`${U.config.customize.borderTopWidth}px ${U.config.customize.borderRightWidth}px ${U.config.customize.borderBottomWidth}px ${U.config.customize.borderLeftWidth}px `,borderColor:U.config.customize.borderColor,color:U.config.customize.color,fontSize:U.config.customize.fontSize+"px",borderRadius:U.config.customize.borderRadius+"px"}),onBlur:ne},null,44,_hoisted_2$1m),[[vue.vModelText,U.config.customize.modelValue]])]))}}),index_vue_vue_type_style_index_0_scoped_4faa96c2_lang="",index$2=_export_sfc$2(_sfc_main$2s,[["__scopeId","data-v-4faa96c2"]]),__vite_glob_3_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:index$2},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1D={class:"w-full h-full"},_sfc_main$2r=vue.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})},list:{default:()=>[]}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=vue.ref([]);vue.watch(()=>U.config.customize.dictId,()=>{ne()},{});const ne=()=>{const oe=U.config.customize.dictId;oe&&G.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${oe}`).then(ie=>{ee.value=dictArratToTree(ie.data??[])})};vue.onMounted(()=>{ne()});const re=()=>{const oe=U.config.customize.linkage;G.$baseEventBus.emit("ace-screen-indicators-linkage",oe.map(ie=>ie[0]))};return(oe,ie)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1D,[vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{expandAll:!1,props:{label:"name",value:"code"},modelValue:U.config.customize.modelValue,"onUpdate:modelValue":ie[0]||(ie[0]=le=>U.config.customize.modelValue=le),placeholder:U.config.customize.placeholder,style:{width:"100%",height:"100%"},onChange:re,clearable:U.config.customize.clearable,renderAfterExpand:"",data:vue.unref(ee)},null,8,["modelValue","placeholder","clearable","data"])]))}}),__vite_glob_3_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2r},Symbol.toStringTag,{value:"Module"})),moudleComponents$1={};for(let te=0;te<=5;te+=1){let U=null;if(te==0&&(U=Object.assign({"../decoration/decoration1/index.vue":__vite_glob_0_0$1,"../decoration/decoration10/index.vue":__vite_glob_0_1$1,"../decoration/decoration11/index.vue":__vite_glob_0_2$1,"../decoration/decoration12/index.vue":__vite_glob_0_3$1,"../decoration/decoration2/index.vue":__vite_glob_0_4$1,"../decoration/decoration3/index.vue":__vite_glob_0_5$1,"../decoration/decoration4/index.vue":__vite_glob_0_6$1,"../decoration/decoration5/index.vue":__vite_glob_0_7$1,"../decoration/decoration6/index.vue":__vite_glob_0_8$1,"../decoration/decoration8/index.vue":__vite_glob_0_9$1,"../decoration/decoration9/index.vue":__vite_glob_0_10$1})),te==1&&(U=Object.assign({"../border/border1/index.vue":__vite_glob_1_0$1,"../border/border10/index.vue":__vite_glob_1_1$1,"../border/border11/index.vue":__vite_glob_1_2$1,"../border/border12/index.vue":__vite_glob_1_3$1,"../border/border13/index.vue":__vite_glob_1_4$1,"../border/border2/index.vue":__vite_glob_1_5$1,"../border/border3/index.vue":__vite_glob_1_6$1,"../border/border4/index.vue":__vite_glob_1_7$1,"../border/border5/index.vue":__vite_glob_1_8$1,"../border/border6/index.vue":__vite_glob_1_9$1,"../border/border7/index.vue":__vite_glob_1_10$1,"../border/border8/index.vue":__vite_glob_1_11$1,"../border/border9/index.vue":__vite_glob_1_12$1})),te==2&&(U=Object.assign({"../basic/horizontal-line/index.vue":__vite_glob_2_0$1,"../basic/iframe/index.vue":__vite_glob_2_1$1,"../basic/img/index.vue":__vite_glob_2_2$1,"../basic/number/index.vue":__vite_glob_2_3$1,"../basic/square/index.vue":__vite_glob_2_4$1,"../basic/text/index.vue":__vite_glob_2_5$1,"../basic/time/index.vue":__vite_glob_2_6$1,"../basic/vertical-line/index.vue":__vite_glob_2_7$1})),te==3&&(U=Object.assign({"../control/input/index.vue":__vite_glob_3_0$1,"../control/select/index.vue":__vite_glob_3_1$1})),U)for(const[G,ee]of Object.entries(U)){const ne=G.split("/")[2];moudleComponents$1[ne]=ee.default}}function useBarCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={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:U,customSeriesData:te,seriesItem:G,barConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,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 useLineCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={type:"line",symbolSize:5,smooth:!0,showArea:!1,areaStyleTmp:{},lineStyle:{type:"solid",width:3,color:null},label:{show:!0,position:"top",color:"#000000",fontSize:10,rotate:0}};return{init:U,customSeriesData:te,seriesItem:G,lineConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,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 usePieCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{ne.dataset.dimensions=[ne.dataShow.x,ne.dataShow.y],te.value[ne.dataShow.y]||(te.value[ne.dataShow.y]=JSON.parse(JSON.stringify(G))),window.customSeriesData=te.value,ne.series=[te.value[ne.dataShow.y]],re&&re()})},G={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:U,customSeriesData:te,seriesItem:G,pieConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,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 useBarLineCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(re,oe)=>{re.series=[],setTimeout(()=>{const ie=re.dataShow.y.filter(le=>!re.dataShow.hide.includes(le));re.dataset.dimensions=[re.dataShow.x,...ie],re.dataShow.y.forEach((le,ae)=>{if(te.value[le])return;const se=re.dataShow.y.length==ae+1&&re.dataShow.y.length>0;te.value[le]=JSON.parse(JSON.stringify(se?G:ee))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(le=>{le.label.formatter=ae=>{const se=re.custom,ue=ae.data[ae.seriesName];if((se==null?void 0:se.toFixed)!=="")try{return Number(ue).toFixed(se.toFixed)}catch{return ue}return ue}}),re.series=ie.map((le,ae)=>te.value[le]),oe&&oe()})},G={type:"line",symbolSize:5,smooth:!0,areaStyleTmp:{},showArea:!1,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}},ee={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:U,customSeriesData:te,seriesLineItem:G,seriesBarItem:ee,barsLinesConfig:{tooltip:{show:!0,confine:!0,valueFormatter:re=>re,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 useScatterCommon(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=[ne.dataShow.x,...oe],ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),window.customSeriesData=te.value,Object.values(vue.unref(te)).forEach(ie=>{ie.label.formatter=le=>{const ae=ne.custom,se=le.data[le.seriesName];if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se}}),ne.series=oe.map((ie,le)=>te.value[ie]),re&&re()})},G={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:U,customSeriesData:te,seriesItem:G,scatterCfg:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne,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 useRadar(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(le=>!ne.dataShow.hide.includes(le));ne.dataset.dimensions=oe,vue.unref(te).type||(te.value=JSON.parse(JSON.stringify(G))),window.customSeriesData=te.value,ne.radar.indicator=ne.dataset.source.map(le=>({name:le[ne.dataShow.x]}));const ie=[];ne.dataset.dimensions.forEach(le=>{ie.push({name:le,value:ne.dataset.source.map(ae=>ae[le])})}),ne.series=[{...te.value,data:ie}],vue.unref(te).label.formatter=le=>{const ae=ne.custom,se=le.value;if((ae==null?void 0:ae.toFixed)!=="")try{return Number(se).toFixed(ae.toFixed)}catch{return se}return se},re&&re()})},G={type:"radar",areaStyle:{opacity:.1},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10},data:[]};return{init:U,customSeriesData:te,seriesItem:G,radarConfig:{tooltip:{show:!0,confine:!0,valueFormatter:ne=>ne},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 useNumber(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{typeof ne.dataShow.y=="string"&&ne.dataShow.y&&(ne.dataShow.y=[ne.dataShow.y]);const oe=ne.dataShow.y.filter(ie=>{var le;return!(((le=ne.dataShow)==null?void 0:le.hide)??[]).includes(ie)});ne.dataset.dimensions=oe,ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),ne.customSeriesData=te.value,window.customSeriesData=te.value,re&&re()})},G={prefix:"",suffix:"",toFixed:0,color:null,fontSize:14,titleFontSize:14,bgColor:null};return{init:U,seriesItem:G,customSeriesData:te,numberConfig:{margin:10,padding:10,dataShow:{x:"",y:[],hide:[]},dataset:{}}}}function useTable(){const te=vue.ref((window==null?void 0:window.customSeriesData)??{}),U=(ne,re)=>{ne.series=[],setTimeout(()=>{const oe=ne.dataShow.y.filter(ie=>!ne.dataShow.hide.includes(ie));ne.dataset.dimensions=oe,ne.dataShow.y.forEach(ie=>{te.value[ie]||(te.value[ie]=JSON.parse(JSON.stringify(G)))}),ne.customSeriesData=te.value,window.customSeriesData=te.value,re&&re()})},G={prefix:"",suffix:"",toFixed:0,color:null};return{init:U,customSeriesData:te,tableConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}const city=[{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 useMap(){const te=async(ne,re)=>{let oe=String(ne.code).padEnd(6,"0");const ie=G(vue.unref(city)[0],oe),le=await U(`${oe}${(ie==null?void 0:ie.region_level)!=3?"_full":""}`);core.registerMap(oe,le),ne.geo.map=oe;const ae=ne.dataset.source,se=[];((le==null?void 0:le.features)??[]).forEach(ue=>{const de=(ae.find(he=>he[ne.dataShow.x]==ue.properties.name)??{})[ne.dataShow.y]??0,fe=ue.properties.center?[...ue.properties.center,de]:ue.properties.center,ve={name:ue.properties.name,value:fe,code:ue.properties.adcode,data:de};Number(de)<=0&&(ve.symbolSize=0),se.push(ve)}),ne.series=[{type:"map",map:oe,roam:!0,geoIndex:0,select:!1,data:se},{...ne.style.style1,data:se},{...ne.style.style2,data:se}],re&&re()},U=async ne=>{const re=`https://geo.datav.aliyun.com/areas_v3/bound/${ne}.json`;return await fetch(re).then(ie=>ie.json())};function G(ne,re){var oe;if(String(ne.code).padEnd(6,"0")==re)return ne;for(let ie=0;ie<((oe=ne==null?void 0:ne.children)==null?void 0:oe.length);ie+=1){const le=ne.children[ie],ae=G(le,re);if(ae)return ae}return null}return{init:te,city,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:ne=>ne.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 useCustomChart(){const{proxy:te}=vue.getCurrentInstance(),U=vue.ref({}),G=vue.ref(""),ee=vue.ref(null),ne=vue.ref(null),re=vue.ref(""),oe=async(ce,de,fe)=>await new Promise(async ve=>{var be,ye;const he=screenDesignMainStore(),pe=JSON.parse(JSON.stringify(((be=vue.unref(ee))==null?void 0:be.params)??((ye=he.getChartData)==null?void 0:ye.params))),ge=JSON.parse((pe==null?void 0:pe.groupArgsJson)??"[]");let me=JSON.parse((pe==null?void 0:pe.aggArgsJson)??"[]");if(de){const xe=ge.find(Ce=>Ce.comment==de);xe&&(pe.groupArgsJson=JSON.stringify([xe]))}if(["2"].includes(ce)&&fe){const xe=me.find(Ce=>Ce.showLabel==fe);xe&&(pe.aggArgsJson=JSON.stringify([xe]))}["8"].includes(ce)||(pe.aggArgsJson=JSON.stringify(me.filter(xe=>xe.aggType!="other")));const _e=await te.$baseHttp.post("/api/ace-data-center/model-indicators/exec",pe);ne.value=_e.data.var,re.value=_e.data.modelIndicatorsName,ve(_e.data.page.records)}),ie=async(ce,de,fe)=>await new Promise(async ve=>{let he=de;const pe=screenDesignMainStore();if(ce){const ge=await te.$baseHttp.get(`/api/ace-data-center/model-indicators-echarts/detail?id=${ce}`);if(!ge)return;fe=chartJsonFormat(ge.data.echartsConfig),he=ge.data.echartsType}G.value=he,setTimeout(async()=>{var ge,me,_e,be,ye,xe,Ce,$e,we,Ee,Ve,Se,ke,Ne,Ie,Pe,Te,De,Oe,Be,Ae,Le,Re,Fe,je,Me,ze,Ge,We,Ue,qe,Ye,Je,Xe,Ke,He,Qe,Ze,et,at,ct,st,it,lt,pt,mt,bt,xt,wt;switch(he){case"1":{const{lineConfig:ft,customSeriesData:ut,init:ht}=useLineCommon();ut.value=((ge=vue.unref(fe))==null?void 0:ge.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),delete U.value.legend.icon,vue.unref(U).dataShow.x=((me=fe==null?void 0:fe.dataShow)==null?void 0:me.x)??((be=(_e=pe.getChartData)==null?void 0:_e.x[0])==null?void 0:be.comment),vue.unref(U).dataShow.y=(((ye=vue.unref(ee))==null?void 0:ye.y)??((xe=pe.getChartData)==null?void 0:xe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"2":{const{pieConfig:ft,customSeriesData:ut,init:ht}=usePieCommon();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Ce=fe==null?void 0:fe.dataShow)==null?void 0:Ce.x)??((we=($e=pe.getChartData)==null?void 0:$e.x[0])==null?void 0:we.comment),vue.unref(U).dataShow.y=((Ee=fe==null?void 0:fe.dataShow)==null?void 0:Ee.y)??((Se=(Ve=pe.getChartData)==null?void 0:Ve.y[0])==null?void 0:Se.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x,vue.unref(U).dataShow.y),ht(vue.unref(U),()=>ue())}break;case"3":{const{barConfig:ft,customSeriesData:ut,init:ht}=useBarCommon();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((ke=fe==null?void 0:fe.dataShow)==null?void 0:ke.x)??((Ie=(Ne=pe.getChartData)==null?void 0:Ne.x[0])==null?void 0:Ie.comment),vue.unref(U).dataShow.y=(((Pe=vue.unref(ee))==null?void 0:Pe.y)??((Te=pe.getChartData)==null?void 0:Te.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"4":{const{radarConfig:ft,customSeriesData:ut,init:ht}=useRadar();ut.value=((De=vue.unref(fe))==null?void 0:De.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((Oe=fe==null?void 0:fe.dataShow)==null?void 0:Oe.x)??((Ae=(Be=pe.getChartData)==null?void 0:Be.x[0])==null?void 0:Ae.comment),vue.unref(U).dataShow.y=(((Le=vue.unref(ee))==null?void 0:Le.y)??((Re=pe.getChartData)==null?void 0:Re.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"5":{const{barsLinesConfig:ft,customSeriesData:ut,init:ht}=useBarLineCommon();ut.value=((Fe=vue.unref(fe))==null?void 0:Fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((je=fe==null?void 0:fe.dataShow)==null?void 0:je.x)??((ze=(Me=pe.getChartData)==null?void 0:Me.x[0])==null?void 0:ze.comment),vue.unref(U).dataShow.y=(((Ge=vue.unref(ee))==null?void 0:Ge.y)??((We=pe.getChartData)==null?void 0:We.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"6":{const{scatterCfg:ft,customSeriesData:ut,init:ht}=useScatterCommon();ut.value=((Ue=vue.unref(fe))==null?void 0:Ue.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.x=((qe=fe==null?void 0:fe.dataShow)==null?void 0:qe.x)??((Je=(Ye=pe.getChartData)==null?void 0:Ye.x[0])==null?void 0:Je.comment),vue.unref(U).dataShow.y=(((Xe=vue.unref(ee))==null?void 0:Xe.y)??((Ke=pe.getChartData)==null?void 0:Ke.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he,vue.unref(U).dataShow.x),ht(vue.unref(U),()=>ue())}break;case"7":{const{numberConfig:ft,customSeriesData:ut,init:ht}=useNumber();ut.value=(fe==null?void 0:fe.customSeriesData)??{},U.value=fe??chartJsonFormat(chartJsonToStringFormat(ft)),vue.unref(U).dataShow.y=(((He=vue.unref(ee))==null?void 0:He.y)??((Qe=pe.getChartData)==null?void 0:Qe.y)).filter(rt=>rt.aggType!="other").map(rt=>rt.showLabel),vue.unref(U).dataset.source=await oe(he),ht(vue.unref(U),()=>ue())}break;case"8":{const{customSeriesData:ft,tableConfig:ut,init:ht}=useTable();U.value=fe??chartJsonFormat(chartJsonToStringFormat(ut)),ft.value=((Ze=vue.unref(fe))==null?void 0:Ze.customSeriesData)??{};const rt=[...(((et=vue.unref(ee))==null?void 0:et.x)??((at=pe.getChartData)==null?void 0:at.x)).map(_t=>_t.comment),...(((ct=vue.unref(ee))==null?void 0:ct.y)??((st=pe.getChartData)==null?void 0:st.y)).map(_t=>_t.showLabel)];let $t=[];(((it=vue.unref(U).dataShow)==null?void 0:it.y)??[]).forEach(_t=>{$t.push(_t)}),$t.push(...rt),vue.unref(U).dataShow.y=[...new Set($t)],vue.unref(U).dataset.source=await oe(he),ht(vue.unref(U),()=>ue())}break;case"9":const{mapConfig:yt,init:Ct}=useMap(),gt=fe??chartJsonFormat(chartJsonToStringFormat(yt));console.log(gt),gt.series=[],gt.dataShow.x=((lt=fe==null?void 0:fe.dataShow)==null?void 0:lt.x)??((mt=(pt=pe.getChartData)==null?void 0:pt.x[0])==null?void 0:mt.comment),gt.dataShow.y=((bt=fe==null?void 0:fe.dataShow)==null?void 0:bt.y)??((wt=(xt=pe.getChartData)==null?void 0:xt.y[0])==null?void 0:wt.showLabel),gt.dataset.source=await oe(he,gt.dataShow.x,gt.dataShow.y),Ct(gt,()=>{U.value=gt,ue()});break}ve(U.value)},100)}),le=()=>{var ce,de,fe,ve,he,pe,ge;switch(vue.unref(G)){case"1":{const{customSeriesData:me,init:_e}=useLineCommon();me.value=((ce=vue.unref(U))==null?void 0:ce.customSeriesData)??{},_e(vue.unref(U))}break;case"2":{const{customSeriesData:me,init:_e}=usePieCommon();me.value=((de=vue.unref(U))==null?void 0:de.customSeriesData)??{},_e(vue.unref(U))}break;case"3":{const{customSeriesData:me,init:_e}=useBarCommon();me.value=((fe=vue.unref(U))==null?void 0:fe.customSeriesData)??{},_e(vue.unref(U))}break;case"4":{const{customSeriesData:me,init:_e}=useRadar();me.value=((ve=vue.unref(U))==null?void 0:ve.customSeriesData)??{},_e(vue.unref(U))}break;case"5":{const{customSeriesData:me,init:_e}=useBarLineCommon();me.value=((he=vue.unref(U))==null?void 0:he.customSeriesData)??{},_e(vue.unref(U))}break;case"6":{const{customSeriesData:me,init:_e}=useScatterCommon();me.value=((pe=vue.unref(U))==null?void 0:pe.customSeriesData)??{},_e(vue.unref(U))}break;case"7":{const{init:me}=useNumber();me(vue.unref(U))}break;case"8":{const{customSeriesData:me,init:_e}=useTable();me.value=((ge=vue.unref(U))==null?void 0:ge.customSeriesData)??{},_e(vue.unref(U))}break}},ae=async(ce,de,fe)=>{await new Promise(async ve=>{var xe;const he=screenDesignMainStore(),{dynamicSearchFormat:pe,dynamicSearchParams:ge}=te.$aceDynamicSearch();let me;me=await te.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${ce}`);const _e=JSON.parse(me.data.sortArgsJson??"{}"),be=Object.keys(vue.unref(_e)).map(Ce=>({field:Ce,type:_e[Ce]=="ascending"?"asc":"desc"}));he.setChartData({x:JSON.parse(me.data.groupArgsJson),y:JSON.parse(me.data.aggArgsJson),params:{aggArgsJson:me.data.aggArgsJson,groupArgsJson:me.data.groupArgsJson,sortArgsJson:JSON.stringify(be),params:ge(pe(JSON.parse(fe??((xe=vue.unref(me))==null?void 0:xe.formConfJson)??"[]"))),pageSize:me.data.pageSize,modelIndicatorsId:me.data.id,modelId:me.data.modelId}});const ye=me.data.echarts.find(Ce=>Ce.type==de);await ie(ye==null?void 0:ye.code),ve(ye==null?void 0:ye.code)})},se=ce=>{const de=vue.unref(U),fe=vue.unref(U).customSeriesData[ce]??{};return((fe==null?void 0:fe.prefix)??"")+de.dataset.source.reduce((ve,he)=>ve+(he[ce]?Number(he[ce]):0),0).toFixed(fe.toFixed??0)+(fe.suffix??"")},ue=()=>{if(vue.unref(G)=="9"){U.value.tooltip.formatter=de=>{const fe=U.value.custom;if(de&&de.data){const{name:ve,data:he}=de.data;return`${ve}: ${(fe==null?void 0:fe.prefix)??""}${Number(he).toFixed((fe==null?void 0:fe.toFixed)??0)}${(fe==null?void 0:fe.suffix)??""}`}},U.value.series[2].label.formatter=de=>{const fe=U.value.custom,ve=de.data.data;return ve?`${(fe==null?void 0:fe.prefix)??""}${Number(ve).toFixed((fe==null?void 0:fe.toFixed)??0)}${(fe==null?void 0:fe.suffix)??""}`:""};return}if(vue.unref(U).tooltip){const de=U.value.custom;U.value.tooltip.valueFormatter=fe=>`${(de==null?void 0:de.prefix)??""}${Number(fe).toFixed(de==null?void 0:de.toFixed)}${(de==null?void 0:de.suffix)??""}`}vue.unref(U).dataset.temp_source=JSON.parse(JSON.stringify(U.value.dataset.source))};return{option:U,varData:ne,modelIndicatorsName:re,chartDataParams:ee,chartType:G,setChartData:oe,formatChart:ie,getModelIndicatorsData:ae,changeChartSeries:le,setSingleValue:se}}const _hoisted_1$1C={key:1,class:"flex items-center justify-center w-full h-full"},_sfc_main$2q=vue.defineComponent({__name:"render",props:{config:{default:()=>({})},list:{default:()=>[]},isLinkageQuery:{type:Boolean,default:!0},isCount:{type:Boolean,default:!0}},setup(__props){const props=__props,{proxy}=vue.getCurrentInstance(),design=screenDesignMainStore(),loading=vue.ref(!1),{dynamicSearchFormat,dynamicSearchParams}=proxy.$aceDynamicSearch(),{option,formatChart,varData,chartDataParams,modelIndicatorsName}=useCustomChart(),init=()=>{const linkageMap={},formulaList=[];if(props.isLinkageQuery&&props.list.forEach(te=>{var G,ee;const U=(G=te==null?void 0:te.customize)==null?void 0:G.modelValue;(((ee=te==null?void 0:te.customize)==null?void 0:ee.linkage)??[]).forEach(ne=>{(U??"")!==""&&(linkageMap[ne[0]]=[ne[1],U])})}),props.isCount&&props.list.forEach(te=>{var ne,re;if(te.type!="number"&&!((re=(ne=te==null?void 0:te.customize)==null?void 0:ne.formula)!=null&&re.exp))return;te.customize.formulaCopy=JSON.parse(JSON.stringify(te.customize.formula));const U=te.customize.formulaCopy.identifier.split(","),G=/\{([^}]+)\}/g;let ee=0;te.customize.formulaCopy.exp=te.customize.formulaCopy.exp.replace(G,(oe,ie)=>{const le=ie.split(".");return le[0]=U[ee],ee+=1,le.join(".")}),te.customize.title=0,formulaList.push(te)}),props.config.modelType=="INDICATORS"){Promise.all([fetch$1(proxy).detailAndTask(props.config.indicatorsId),fetch$1(proxy).getEchartDetail({indicatorsId:props.config.indicatorsId})]).then(async te=>{var ne,re;let U=dynamicSearchParams(dynamicSearchFormat(JSON.parse(((re=(ne=te[0])==null?void 0:ne.data)==null?void 0:re.formConfJson)??"[]")));if(linkageMap[props.config.indicatorsId]){const[oe,ie]=linkageMap[props.config.indicatorsId];U[oe]=ie}const G=te[1].data,ee=await fetch$1(proxy).pullEchartsDataVO({indicatorsId:props.config.indicatorsId,loadType:(G==null?void 0:G.loadType)??3,params:U,targetClient:G.targetClient,echartsType:props.config.chartType});try{option.value=chartJsonFormat(ee.data.config)}catch{option.value=ee.data.config}loading.value=!1});return}if(props.config.chartId&&props.config.indicatorsId){props.config.chartType=="9"&&delete props.config.customize.series,option.value=props.config.customize;const{indicatorsId,chartType}=props.config;loading.value=!0,proxy.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${indicatorsId}`).then(async response=>{const sortArgsJson=JSON.parse(response.data.sortArgsJson??"{}"),sort=Object.keys(vue.unref(sortArgsJson)).map(te=>({field:te,type:sortArgsJson[te]=="ascending"?"asc":"desc"}));let params=dynamicSearchParams(dynamicSearchFormat(JSON.parse(response.data.formConfJson??"[]")));if(linkageMap[props.config.indicatorsId]){const[te,U]=linkageMap[props.config.indicatorsId];params[te]=U}chartDataParams.value={x:JSON.parse(response.data.groupArgsJson),y:JSON.parse(response.data.aggArgsJson),params:{aggArgsJson:response.data.aggArgsJson,groupArgsJson:response.data.groupArgsJson,sortArgsJson:JSON.stringify(sort),modelIndicatorsId:indicatorsId,params,pageSize:response.data.pageSize,modelId:response.data.modelId}},design.tempChartData[props.config.id]={params:chartDataParams.value,customize:props.config.customize},design.setChartData(chartDataParams.value);const cfg=props.config.customize;cfg.id=props.config.id,await formatChart("",chartType,cfg),props.isCount&&formulaList.length&&formulaList.forEach(el=>{var te;Object.keys(vue.unref(varData)).forEach(U=>{el.customize.formulaCopy.exp.indexOf(U)>=0&&(el.customize.formulaCopy.exp=el.customize.formulaCopy.exp.replaceAll(U,varData.value[U]))}),/[\u4e00-\u9fa5]/.test((te=el.customize.formulaCopy)==null?void 0:te.exp)||(el.customize.title=eval(el.customize.formulaCopy.exp),(el.customize.toFixed??"")!==""&&(el.customize.title=el.customize.title.toFixed(el.customize.toFixed)))}),design.setCountMap(props.config.indicatorsId,{title:vue.unref(modelIndicatorsName),var:vue.unref(varData)}),loading.value=!1})}};vue.onMounted(()=>{init()}),proxy.$baseEventBus.on("ace-screen-indicators-linkage",te=>{te.includes(props.config.indicatorsId)&&init()});const widgetView=vue.computed(()=>moudleComponents$1[props.config.type]);return(te,U)=>{const G=vue.resolveComponent("AppEmpty"),ee=vue.resolveComponent("AppTable"),ne=vue.resolveComponent("aceChart"),re=vue.resolveComponent("aceCustomChart"),oe=vue.resolveComponent("aceLoading");return props.config.chartId?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(loading)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1C,[vue.createVNode(oe,{size:"50"})])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[props.config.modelType=="INDICATORS"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[props.config.chartType==7?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(vue.unref(option)),1)],64)):props.config.chartType==8?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(option).length==0?(vue.openBlock(),vue.createBlock(G,{key:0,description:"暂无数据"})):vue.createCommentVNode("",!0),Array.isArray(vue.unref(option))&&vue.unref(option).length>0?(vue.openBlock(),vue.createBlock(ee,{key:1,tableData:Object.keys(vue.unref(option)[0]).map(ie=>({label:ie,prop:ie})),list:vue.unref(option),maxHeight:props.config.h-10+"px"},null,8,["tableData","list","maxHeight"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(ne,{key:2,type:props.config.chartType,options:vue.unref(option),loading:!1},null,8,["type","options"]))],64)):(vue.openBlock(),vue.createBlock(re,{key:1,option:vue.unref(option),chartType:props.config.chartType,maxHeight:props.config.h-10+"px"},null,8,["option","chartType","maxHeight"]))],64))],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(widgetView)?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(widgetView)),{key:0,ref:"componentRef",list:props.list,config:props.config},null,8,["list","config"])):vue.createCommentVNode("",!0)],64))}}}),render_vue_vue_type_style_index_0_scoped_1c15f673_lang="",Render=_export_sfc$2(_sfc_main$2q,[["__scopeId","data-v-1c15f673"]]);class historyStack{constructor(){Et(this,"backStack");Et(this,"forwardStack");this.backStack=[],this.forwardStack=[]}pushRecord(U,G){const ee={id:Array.isArray(U)?"":U.id??"",historyType:G,historyData:JSON.parse(JSON.stringify(U))};this.backStack.push(ee),this.forwardStack=[]}backAction(){if(!this.backStack.length)return;const U=this.backStack.pop();return this.forwardStack.push(U),U}forwardAction(){if(!this.forwardStack.length)return;const U=this.forwardStack.pop();return this.backStack.push(U),U}}const _withScopeId$C=te=>(vue.pushScopeId("data-v-6f1f565c"),te=te(),vue.popScopeId(),te),_hoisted_1$1B={class:"relative w-full h-full"},_hoisted_2$1l=["id","onDblclick","onMousedown","onClick"],_hoisted_3$19={key:0,class:"absolute flex items-center justify-center w-8 h-8 bg-blue-500 rounded-full -right-2 -top-2"},_hoisted_4$15=_withScopeId$C(()=>vue.createElementVNode("i",{class:"text-base text-white ri-lock-line"},null,-1)),_hoisted_5$T=[_hoisted_4$15],_hoisted_6$I={key:1,class:"absolute ml-4 text-xs tool left-full whitespace-nowrap"},_hoisted_7$B=["onClick"],_hoisted_8$u={key:1,class:"absolute w-full h-full z-[999]"},_sfc_main$2p=vue.defineComponent({__name:"main",setup(te){vue.useCssVars(Pe=>({"6421b4c0":vue.unref(ue)}));const{proxy:U}=vue.getCurrentInstance(),G=screenDesignMainStore(),ee=vue.computed(()=>G.stageWidth),ne=vue.computed(()=>G.stageHeight),re=document.body,oe=vue.ref(null),ie=useKeyModifier("Shift"),le=new historyStack,ae=vue.computed(()=>G.targetsWidget.length===1?getItemFromElement(G.targetsWidget[0]):null),se=[{label:"置于顶层",clickFunc:Pe=>{Pe.z=G.getWidgetList.length;const Te=JSON.parse(JSON.stringify(G.widgetConfg.list));G.widgetConfg.list.filter(De=>De.id!=Pe.id).forEach((De,Oe)=>{De.z=G.getWidgetList.length-1-Oe}),G.sortWidgetList(),G.widgetConfg.list.forEach(De=>{const Oe=Te.find(Be=>Be.id==De.id);Oe&&(Oe.beforeObj={...Oe},Oe.z=De.z)}),le.pushRecord(Te,"stack")}},{label:"置于底层",clickFunc:Pe=>{Pe.z=1;const Te=JSON.parse(JSON.stringify(G.widgetConfg.list));G.widgetConfg.list.filter(De=>De.id!=Pe.id).forEach((De,Oe)=>{De.z=G.getWidgetList.length-Oe}),G.sortWidgetList(),G.widgetConfg.list.forEach(De=>{const Oe=Te.find(Be=>Be.id==De.id);Oe&&(Oe.beforeObj={...Oe},Oe.z=De.z)}),le.pushRecord(Te,"stack")}}],ue=vue.computed(()=>.8/G.getScale),ce=()=>Array.prototype.slice.call(document.querySelectorAll(".drag-item"),0),de=(Pe,Te)=>{if(Array.isArray(Pe)){if(Pe.length===0){G.setTargetWidget([]);return}G.setTargetWidget(Pe.filter(Oe=>Oe.className.indexOf("locked")==-1).map(Oe=>getItemFromElement(Oe)));return}const De=getItemFromElement(Pe);!De||G.targetsWidget.includes(De)||Pe.locked||(ie.value===!0?G.setTargetWidget([...G.getTargetWidget.filter(Oe=>Oe.className.indexOf("locked")==-1),De]):G.setTargetWidget([De]),vue.nextTick(()=>{Te&&vue.nextTick(()=>{var Oe;return(Oe=vue.unref(oe))==null?void 0:Oe.dragStart(Te)})}))};let fe=[];const ve=Pe=>{const Te=Ve(vue.unref(ae));Te!=null&&Te.locked&&Pe.stopDrag(),Te&&(fe=JSON.parse(JSON.stringify(Te))),console.log("开始拖拽",Pe)},he=Pe=>{console.log("拖拽中",Pe),Pe.target.style.transform=Pe.transform;const[Te,De]=Pe.translate;G.setSketchRuleLine([Te],[De]);const Oe=Ve(vue.unref(ae));Oe&&(Oe.x=Math.floor(Pe.translate[0]),Oe.y=Math.floor(Pe.translate[1]))},pe=Pe=>{console.log("拖拽结束",Pe);const Te=Ve(vue.unref(ae));if(!Te)return;const{x:De,y:Oe,w:Be,h:Ae}=fe;(Te.x!=De||Te.y!=Oe||Te.w!=Be||Te.h!=Ae)&&le.pushRecord(JSON.parse(JSON.stringify({...Te,beforeObj:fe})),"move"),G.clearSketchRuleLine()},ge=Pe=>{console.log("开始组拖拽",Pe),fe=[],Pe.events.forEach(Te=>{const De=Ve(Te.target);De&&fe.push(JSON.parse(JSON.stringify(De)))})},me=Pe=>{console.log("组拖拽中",Pe),Pe.events.forEach(Te=>{Te.target.style.transform=Te.transform})},_e=Pe=>{console.log("组拖拽完毕",Pe),Pe.events.forEach((Te,De)=>{const Oe=Ve(Te.target);!Oe||!Te.lastEvent||(Oe.x=Math.floor(Te.lastEvent.translate[0]),Oe.y=Math.floor(Te.lastEvent.translate[1]),fe[De]=JSON.parse(JSON.stringify({...Oe,beforeObj:fe[De]})))}),le.pushRecord(fe,"groupMove"),G.clearSketchRuleLine()},be=Pe=>{console.log("开始组修改大小",Pe),fe=[],Pe.events.forEach(Te=>{const De=Ve(Te.target);De&&fe.push(JSON.parse(JSON.stringify(De)))})},ye=Pe=>{console.log("组修改大小中",Pe),Pe.events.forEach(Te=>{Te.target.style.transform=Te.drag.transform,Te.target.style.width=`${Te.width}px`,Te.target.style.height=`${Te.height}px`;const De=Ve(Te.target);De&&(De.x=Math.floor(Te.drag.translate[0]),De.y=Math.floor(Te.drag.translate[1]),De.w=Te.drag.width,De.h=Te.drag.height)})},xe=Pe=>{console.log("修改大小结束",Pe),Pe.events.forEach((Te,De)=>{const Oe=Ve(Te.target);Oe&&(fe[De]=JSON.parse(JSON.stringify({...Oe,beforeObj:fe[De]})))}),le.pushRecord(fe,"groupSize"),G.clearSketchRuleLine()},Ce=Pe=>{const Te=Ve(vue.unref(ae));Te!=null&&Te.locked&&Pe.stopDrag(),fe=JSON.parse(JSON.stringify(Te)),console.log("开始改变大小",Pe)},$e=Pe=>{console.log("改变中",Pe),Pe.target.style.transform=Pe.drag.transform,Pe.target.style.width=`${Pe.width}px`,Pe.target.style.height=`${Pe.height}px`;const Te=Ve(Pe.target);if(!Te)return;Te.x=Math.floor(Pe.drag.translate[0]),Te.y=Math.floor(Pe.drag.translate[1]),Te.w=Pe.drag.width,Te.h=Pe.drag.height;const[De,Oe]=Pe.drag.translate;G.setSketchRuleLine([De],[Oe])};function we(Pe){console.log("改变结束",Pe);const Te=Ve(vue.unref(ae));if(!Te)return;const{x:De,y:Oe,w:Be,h:Ae}=fe;(Te.x!=De||Te.y!=Oe||Te.w!=Be||Te.h!=Ae)&&le.pushRecord(JSON.parse(JSON.stringify({...Te,beforeObj:fe})),"size"),G.clearSketchRuleLine()}const Ee=vue.ref(!1);U.$baseEventBus.on("drag-start",()=>{Ee.value=!0}),U.$baseEventBus.on("drag-end",()=>{Ee.value=!1}),U.$baseEventBus.on("clear-stage",()=>{console.log("清空画布"),G.setWidgetList([]),G.setTargetWidget([]),G.clearSketchRuleLine()}),U.$baseEventBus.on("update-rect",()=>{var Pe,Te;console.log("更新画布"),(Pe=oe.value)==null||Pe.updateTarget(),(Te=oe.value)==null||Te.updateRect()}),U.$baseEventBus.on("change-align",Pe=>{vue.nextTick(()=>{var Be;console.log("修改居中方式");const Te=[];if(!G.targetsWidget.length)return;const De=oe.value.getRect(),Oe=oe.value.getMoveables();if((Oe==null?void 0:Oe.length)<=1){const Ae={};Pe=="left"&&(Ae.x=0),Pe=="right"&&(Ae.x=vue.unref(ee)-De.width),Pe=="top"&&(Ae.y=0),Pe=="bottom"&&(Ae.y=vue.unref(ne)-De.height),Pe=="middle"&&(Ae.y=vue.unref(ne)/2-De.height/2),Pe=="center"&&(Ae.x=vue.unref(ee)/2-De.width/2),Oe[0].request("draggable",Ae,!0);const Le=Ve(Oe[0].props.target);if(!Le)return;const Re=JSON.parse(JSON.stringify(Le));Object.keys(Ae).forEach(Fe=>{Le[Fe]=Ae[Fe]}),Te.push(JSON.parse(JSON.stringify({...Le,beforeObj:Re})))}else switch(Pe){case"left":case"right":case"top":case"bottom":case"middle":case"center":{const Ae=Math.max.apply(Math,De.children.map(Re=>Re.top+Re.height)),Le=Math.max.apply(Math,De.children.map(Re=>Re.left+Re.width));Oe.forEach((Re,Fe)=>{const je={};Pe=="left"&&(je.x=De.left),Pe=="right"&&(je.x=Le-De.children[Fe].width),Pe=="top"&&(je.y=De.top),Pe=="bottom"&&(je.y=Ae-De.children[Fe].height),Pe=="middle"&&(je.y=De.top+De.height/2-De.children[Fe].height/2),Pe=="center"&&(je.x=De.left+De.width/2-De.children[Fe].width/2),Re.request("draggable",je,!0);const Me=Ve(Re.props.target);if(!Me)return;const ze=JSON.parse(JSON.stringify(Me));Object.keys(je).forEach(Ge=>{Me[Ge]=je[Ge]}),Te.push(JSON.parse(JSON.stringify({...Me,beforeObj:ze})))}),G.clearSketchRuleLine()}break;case"verticalAround":case"levelAround":{const Ae=Pe=="verticalAround"?"top":"left",Le=Pe=="verticalAround"?"height":"width";let Re=De[Ae];const Fe=(De[Le]-De.children.reduce((je,Me)=>je+Me[Le],0))/(Oe.length-1);Oe.sort((je,Me)=>je.state[Ae]-Me.state[Ae]),Oe.forEach(je=>{const Me=je.getRect(),ze={};Ae=="top"&&(ze.y=Re),Ae=="left"&&(ze.x=Re),je.request("draggable",ze,!0);const Ge=Ve(je.props.target);if(!Ge)return;const We=JSON.parse(JSON.stringify(Ge));Object.keys(ze).forEach(Ue=>{Ge[Ue]=ze[Ue]}),Te.push(JSON.parse(JSON.stringify({...Ge,beforeObj:We}))),Re+=Me[Le]+Fe}),G.clearSketchRuleLine()}break}le.pushRecord(Te,"groupAlign"),(Be=oe.value)==null||Be.updateRect()})});const Ve=Pe=>G.getWidgetList.find(Te=>Te.id==(Pe==null?void 0:Pe.id)),Se=Pe=>{Pe.preventDefault(),Pe.stopPropagation();const Te=Pe.dataTransfer.getData("dragComponent");if(Te){let De=JSON.parse(Te);De.chartId&&(De.customize=chartJsonFormat(De.customize));const{w:Oe,h:Be}=De;let Ae=Pe.offsetX-Oe/2,Le=Pe.offsetY-Be/2;Ae<=0?Ae=0:Ae+Oe>=vue.unref(ee)&&(Ae=vue.unref(ee)-Oe),Le<=0?Le=0:Le+Be>=vue.unref(ne)&&(Le=vue.unref(ne)-Be),G.setWidgetList([{...De,x:Ae,y:Le,z:G.getWidgetList.length+1},...G.getWidgetList]),le.pushRecord(G.getWidgetList[0],"create")}},ke=vue.ref([]),Ne=()=>{const Pe=(De,Oe)=>{const Be=onKeyStroke(De,Ae=>{document.activeElement&&["INPUT"].includes(document.activeElement.tagName)||(Ae.preventDefault(),Ae.stopPropagation(),Oe(Ae))},{eventName:"keydown"});ke.value.push(Be)},Te=De=>navigator.userAgent.toLowerCase().includes("macintosh")?De.metaKey:De.ctrlKey;Pe(["Backspace","Delete"],De=>{if(console.log("删除触发",De),!G.targetsWidget.length)return;const Oe=G.getTargetWidget.map(Ae=>Ae.id),Be=G.getWidgetList.filter(Ae=>Oe.includes(Ae.id));le.pushRecord(JSON.parse(JSON.stringify(Be)),"delete"),G.delWidgetItem(G.getTargetWidget.map(Ae=>Ae.id))}),Pe(["z"],De=>{if(console.log("撤销/前进",De),Te(De)){const Oe=De.shiftKey?le.forwardAction():le.backAction();if(!Oe)return;console.log(De.shiftKey,Oe.historyType,Oe.historyData);const{historyType:Be,historyData:Ae}=Oe;if(Be=="create"){De.shiftKey?G.setWidgetList([Ae,...G.getWidgetList]):G.delWidgetItem([Ae.id]);return}if(Be=="delete"){De.shiftKey?G.delWidgetItem(Ae.map(Le=>Le.id)):G.setWidgetList([...JSON.parse(JSON.stringify(Ae)),...G.getWidgetList]);return}(Array.isArray(Ae)?Ae:[Ae]).forEach(Le=>{const Re=G.getWidgetList.find(Fe=>Fe.id==Le.id);Re&&(De.shiftKey?(Re.x=Le.x,Re.y=Le.y,Re.z=Le.z,Re.w=Le.w,Re.h=Le.h):(Re.x=Le.beforeObj.x,Re.y=Le.beforeObj.y,Re.z=Le.beforeObj.z,Re.w=Le.beforeObj.w,Re.h=Le.beforeObj.h))}),G.sortWidgetList(),vue.nextTick(()=>{var Le;(Le=oe.value)==null||Le.updateRect()})}}),Pe(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],De=>{if(!G.targetsWidget.length)return;console.log("触发移动",De);let Oe=0,Be=0;De.key=="ArrowLeft"&&(Oe=-2),De.key=="ArrowRight"&&(Oe=2),De.key=="ArrowUp"&&(Be=-2),De.key=="ArrowDown"&&(Be=2),De.shiftKey&&(Oe*=10,Be*=10),vue.nextTick(()=>{const Ae=oe.value.getMoveables(),Le=[];Ae.forEach(Re=>{const Fe=Ve(Re.props.target);!Fe||Fe.locked||(Le.push(JSON.parse(JSON.stringify(Fe))),Fe.x+Oe<0?Fe.x=0:Fe.x+Oe>vue.unref(ee)-Fe.w?Fe.x=vue.unref(ee)-Fe.w:Fe.x+=Oe,Fe.y+Be<0?Fe.y=0:Fe.y+Be>vue.unref(ne)-Fe.h?Fe.y=vue.unref(ne)-Fe.h:Fe.y+=Be)}),vue.nextTick(()=>{var Re;(Re=oe.value)==null||Re.updateRect(),le.pushRecord(Le,"groupMove")})})}),Pe(["c"],De=>{console.log("复制",De),Te(De)&&G.getTargetWidget.length&&G.copyWidgetItem(G.getTargetWidget.map(Oe=>Oe.id))}),Pe(["v"],De=>{console.log("粘贴",De),Te(De)&&G.getPasteWidget.length&&(G.pasteWidgetItem(),le.pushRecord(G.widgetConfg.list[0],"create"))})},Ie=vue.ref(null);return vue.nextTick(()=>{Ne(),Ie.value=new Selecto$2({rootContainer:null,dragContainer:".render",selectableTargets:[".drag-item"],selectByClick:!0,selectFromInside:!0,continueSelect:!1,preventDefault:!0,toggleContinueSelect:null,keyContainer:window,hitRate:0}),vue.unref(Ie).on("dragStart",Pe=>{G.setRightPannel(!1),console.log("开始全选拖拽",Pe)}),vue.unref(Ie).on("dragEnd",Pe=>{console.log("全选拖拽结束",Pe)}),vue.unref(Ie).on("select",Pe=>{console.log("选中结果",Pe),Pe.added.forEach(Te=>{Te.className.indexOf("loccked")||Te.classList.add("selected")}),Pe.removed.forEach(Te=>{Te.classList.remove("selected")}),de(Pe.selected)}),vue.unref(Ie).on("selectEnd",Pe=>{console.log("选中结束",Pe),de(Pe.selected)})}),vue.onBeforeUnmount(()=>{ke.value.forEach(Pe=>Pe()),vue.unref(Ie)&&vue.unref(Ie).destroy()}),(Pe,Te)=>(vue.openBlock(),vue.createBlock(SketchRule,null,{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1B,[vue.unref(Ee)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"absolute w-full h-full z-[9999]",onDrop:Te[0]||(Te[0]=De=>Se(De)),onDragover:Te[1]||(Te[1]=vue.withModifiers(()=>{},["prevent"]))},null,32)):vue.createCommentVNode("",!0),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G).getWidgetList,De=>{var Oe,Be;return vue.openBlock(),vue.createElementBlock("div",{key:De.id,class:vue.normalizeClass(["absolute",{"drag-item":!0,locked:De.locked,selected:vue.unref(G).widgetHoverIds.includes(De.id),active:((Oe=vue.unref(ae))==null?void 0:Oe.id)==De.id}]),id:De.id,style:vue.normalizeStyle(vue.unref(getItemStyle)(De)),onDblclick:vue.withModifiers(Ae=>De.locked=!De.locked,["stop"]),onMousedown:Ae=>de(De,Ae),onClick:vue.withModifiers(Ae=>de(De,Ae),["stop"])},[vue.unref(G).createLoading?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[De.locked?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$19,_hoisted_5$T)):vue.createCommentVNode("",!0),((Be=vue.unref(ae))==null?void 0:Be.id)==De.id&&!De.locked?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$I,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(se,Ae=>vue.createElementVNode("div",{key:De.label,onClick:vue.withModifiers(Le=>Ae.clickFunc(De),["stop"]),onDblclick:Te[2]||(Te[2]=vue.withModifiers(()=>{},["prevent","stop"])),class:"flex items-center justify-center w-16 h-6 mb-2 text-white rounded-sm cursor-pointer bg-color-primary"},vue.toDisplayString(Ae.label),41,_hoisted_7$B)),64))])):vue.createCommentVNode("",!0)],64)),["iframe","select"].includes(De.type)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$u)):vue.createCommentVNode("",!0),vue.createVNode(Render,{config:De,list:vue.unref(G).getWidgetList,isLinkageQuery:!1,isCount:!1},null,8,["config","list"])],46,_hoisted_2$1l)}),128)),vue.createVNode(vue.unref(Moveable),{rootContainer:vue.unref(re),ref_key:"moveableRef",ref:oe,origin:!1,stopPropagation:!0,target:vue.unref(G).targetsWidget,draggable:!0,resizable:!0,scalable:!1,snappable:!0,maxSnapElementGuidelineDistance:100,maxSnapElementGapDistance:100,isDisplayInnerSnapDigit:!0,snapDirections:!0,elementSnapDirections:!0,elementGuidelines:ce(),bounds:{left:0,top:0,bottom:0,right:0,position:"css"},onDragStart:ve,onDrag:he,onDragEnd:pe,onResizeStart:Ce,onResize:$e,onResizeEnd:we,onDragGroupStart:ge,onDragGroup:me,onDragGroupEnd:_e,onResizeGroupStart:be,onResizeGroup:ye,onResizeGroupEnd:xe},null,8,["rootContainer","target","elementGuidelines"])])]),_:1}))}}),main_vue_vue_type_style_index_0_scoped_6f1f565c_lang="",Main=_export_sfc$2(_sfc_main$2p,[["__scopeId","data-v-6f1f565c"]]),_sfc_main$2o=vue.defineComponent({__name:"colorPicker",props:{modelValue:{default:""},showInput:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(te,{emit:U}){const G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=vue.ref(G.modelValue=="transparent"?"":G.modelValue),oe=U;return vue.watch(re,ie=>{oe("update:modelValue",ie||"transparent")}),(ie,le)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[ie.showInput?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElInput),{key:0,value:vue.unref(re),class:"mr-1",style:{width:"80%"}},null,8,["value"])):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{modelValue:vue.unref(re),"onUpdate:modelValue":le[0]||(le[0]=ae=>vue.isRef(re)?re.value=ae:null),predefine:vue.unref(ne),"show-alpha":""},null,8,["modelValue","predefine"])],64))}}),_hoisted_1$1A={class:"flex items-center h-10 p-2"},_hoisted_2$1k=vue.createElementVNode("span",{class:"w-1 h-4 mr-2",style:{background:"var(--el-color-primary)"}},null,-1),_sfc_main$2n=vue.defineComponent({__name:"group",props:{title:{default:"标题"}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$1A,[_hoisted_2$1k,vue.createTextVNode(" "+vue.toDisplayString(U.title),1)]),vue.renderSlot(U.$slots,"default")],64))}}),_withScopeId$B=te=>(vue.pushScopeId("data-v-9ebd23bc"),te=te(),vue.popScopeId(),te),_hoisted_1$1z={class:"flex items-center"},_hoisted_2$1j=_withScopeId$B(()=>vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1)),_hoisted_3$18=["src"],_hoisted_4$14={key:1,class:"pt-4 pb-4"},_hoisted_5$S=_withScopeId$B(()=>vue.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),_hoisted_6$H=_withScopeId$B(()=>vue.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1)),_hoisted_7$A=[_hoisted_5$S,_hoisted_6$H],_sfc_main$2m=vue.defineComponent({__name:"stageSetting",setup(te){const U=screenDesignMainStore(),{proxy:G}=vue.getCurrentInstance(),{resetUrl:ee}=G.$globalUtils,ne=[{label:"平铺",value:"repeat"},{label:"平铺X",value:"repeat-x"},{label:"平铺Y",value:"repeat-y"},{label:"不平铺",value:"no-repeat"}],re=[{label:"拉伸",value:"cover"},{label:"自适应",value:"contain"}],oe=[{label:"左上",value:"top left"},{label:"左中",value:"top center"},{label:"左右",value:"top right"},{label:"居左",value:"center left"},{label:"居中",value:"center center"},{label:"局右",value:"center right"},{label:"左下",value:"bottom left"},{label:"左中",value:"bottom center"},{label:"左右",value:"bottom right"}],ie=async le=>{const ae=new FormData;ae.append("file",le.file);const se=await G.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",ae,{headers:{"Content-Type":"multipart/form-data",loading:!0}});se&&(U.widgetConfg.config.backgroundImage=se.data.link)};return(le,ae)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{"label-position":"left",size:"small","label-width":"100px"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"整体布局"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"尺寸"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1z,[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{"model-value":vue.unref(U).stageWidth,onChange:vue.unref(U).setStageWidth,size:"small",min:0,"value-on-clear":1920},null,8,["model-value","onChange"]),_hoisted_2$1j,vue.createVNode(vue.unref(elementPlus.ElInputNumber),{"model-value":vue.unref(U).stageHeight,onChange:vue.unref(U).setStageHeight,size:"small",min:0,"value-on-clear":1080},null,8,["model-value","onChange"])])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景图"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElUpload),{drag:"",limit:1,"http-request":ie,"show-file-list":!1,accept:"image/*"},{default:vue.withCtx(()=>[vue.unref(U).widgetConfg.config.backgroundImage?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createElementVNode("img",{class:"object-contain max-h-40",src:vue.unref(ee)(vue.unref(U).widgetConfg.config.backgroundImage)},null,8,_hoisted_3$18),vue.createElementVNode("i",{class:"absolute text-xl ri-close-circle-line right-4 top-4",onClick:ae[0]||(ae[0]=vue.withModifiers(se=>vue.unref(U).widgetConfg.config.backgroundImage=null,["stop"]))})],64)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$14,_hoisted_7$A))]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).widgetConfg.config.backgroundColor,"onUpdate:modelValue":ae[1]||(ae[1]=se=>vue.unref(U).widgetConfg.config.backgroundColor=se)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景平铺"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundRepeat,"onUpdate:modelValue":ae[2]||(ae[2]=se=>vue.unref(U).widgetConfg.config.backgroundRepeat=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ne,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundSize,"onUpdate:modelValue":ae[3]||(ae[3]=se=>vue.unref(U).widgetConfg.config.backgroundSize=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(U).widgetConfg.config.backgroundPosition,"onUpdate:modelValue":ae[4]||(ae[4]=se=>vue.unref(U).widgetConfg.config.backgroundPosition=se),size:"small",style:{width:"100%"},placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,se=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),stageSetting_vue_vue_type_style_index_0_scoped_9ebd23bc_lang="",stagetSetting=_export_sfc$2(_sfc_main$2m,[["__scopeId","data-v-9ebd23bc"]]),_sfc_main$2l=vue.defineComponent({__name:"decorationSetting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"主颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.decorationColor1,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.decorationColor1=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"副颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.decorationColor2,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.decorationColor2=ne)},null,8,["modelValue"])]),_:1}),Object.keys(vue.unref(U).customize).includes("reverse")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"是否反转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(U).customize.reverse,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.reverse=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("duration")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:1,label:"动画时长"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.duration,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.duration=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)}}),_sfc_main$2k=vue.defineComponent({__name:"setting",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.inject("widgetConfig");return(ee,ne)=>vue.unref(G)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{key:0,"label-position":"left",size:"small","label-width":"90px",class:"design-form"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).name,"onUpdate:modelValue":ne[0]||(ne[0]=re=>vue.unref(G).name=re)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).w,"onUpdate:modelValue":ne[1]||(ne[1]=re=>vue.unref(G).w=re),onBlur:ne[2]||(ne[2]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).h,"onUpdate:modelValue":ne[3]||(ne[3]=re=>vue.unref(G).h=re),onBlur:ne[4]||(ne[4]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"x轴坐标"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).x,"onUpdate:modelValue":ne[5]||(ne[5]=re=>vue.unref(G).x=re),onBlur:ne[6]||(ne[6]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"y轴坐标"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).y,"onUpdate:modelValue":ne[7]||(ne[7]=re=>vue.unref(G).y=re),onBlur:ne[8]||(ne[8]=re=>vue.unref(U).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1})]),_:1}),vue.renderSlot(ee.$slots,"default")]),_:3})):vue.createCommentVNode("",!0)}}),_sfc_main$2j=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2j},Symbol.toStringTag,{value:"Module"})),_sfc_main$2i=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2i},Symbol.toStringTag,{value:"Module"})),_sfc_main$2h=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2h},Symbol.toStringTag,{value:"Module"})),_sfc_main$2g=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2g},Symbol.toStringTag,{value:"Module"})),_sfc_main$2f=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2f},Symbol.toStringTag,{value:"Module"})),_sfc_main$2e=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2e},Symbol.toStringTag,{value:"Module"})),_sfc_main$2d=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2d},Symbol.toStringTag,{value:"Module"})),_sfc_main$2c=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2c},Symbol.toStringTag,{value:"Module"})),_sfc_main$2b=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2b},Symbol.toStringTag,{value:"Module"})),_sfc_main$2a=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$2a},Symbol.toStringTag,{value:"Module"})),_sfc_main$29=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2l)]),_:1}))}}),__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$29},Symbol.toStringTag,{value:"Module"})),_sfc_main$28=vue.defineComponent({__name:"borderSetting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"基础"},{default:vue.withCtx(()=>[Object.keys(vue.unref(U).customize).includes("title")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.title,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.title=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("titleWidth")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:1,label:"标题宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.titleWidth,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.titleWidth=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框主颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderMainColor,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.borderMainColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框副颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderSecondaryColor,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.borderSecondaryColor=ne)},null,8,["modelValue"])]),_:1}),Object.keys(vue.unref(U).customize).includes("reverse")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:2,label:"是否反转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(U).customize.reverse,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.reverse=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),Object.keys(vue.unref(U).customize).includes("duration")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:3,label:"动画时长"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.duration,"onUpdate:modelValue":ee[5]||(ee[5]=ne=>vue.unref(U).customize.duration=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.backgroundColor,"onUpdate:modelValue":ee[6]||(ee[6]=ne=>vue.unref(U).customize.backgroundColor=ne)},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),_sfc_main$27=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$27},Symbol.toStringTag,{value:"Module"})),_sfc_main$26=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$26},Symbol.toStringTag,{value:"Module"})),_sfc_main$25=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_2=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$25},Symbol.toStringTag,{value:"Module"})),_sfc_main$24=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_3=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$24},Symbol.toStringTag,{value:"Module"})),_sfc_main$23=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$23},Symbol.toStringTag,{value:"Module"})),_sfc_main$22=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$22},Symbol.toStringTag,{value:"Module"})),_sfc_main$21=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$21},Symbol.toStringTag,{value:"Module"})),_sfc_main$20=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$20},Symbol.toStringTag,{value:"Module"})),_sfc_main$1$=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_8=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1$},Symbol.toStringTag,{value:"Module"})),_sfc_main$1_=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_9=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1_},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Z=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_10=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Z},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Y=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_11=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Y},Symbol.toStringTag,{value:"Module"})),_sfc_main$1X=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$28)]),_:1}))}}),__vite_glob_1_12=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1X},Symbol.toStringTag,{value:"Module"})),_sfc_main$1W=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(U).customize.borderType,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.borderType=ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"solid",label:"solid"},{default:vue.withCtx(()=>[vue.createTextVNode("实线")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"dashed",label:"dashed"},{default:vue.withCtx(()=>[vue.createTextVNode("虚线")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.unref(U).customize.borderType=="dashed"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderGap,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderGap=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.gradientColor0=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.gradientColor1=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.width,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.width=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1W},Symbol.toStringTag,{value:"Module"})),_sfc_main$1V=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"地址配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"地址"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.url,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.url=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1V},Symbol.toStringTag,{value:"Module"})),_withScopeId$A=te=>(vue.pushScopeId("data-v-ba7d8f9c"),te=te(),vue.popScopeId(),te),_hoisted_1$1y={class:"p-3"},_hoisted_2$1i=["src"],_hoisted_3$17={key:1,class:"pt-4 pb-4"},_hoisted_4$13=_withScopeId$A(()=>vue.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),_hoisted_5$R=_withScopeId$A(()=>vue.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1)),_hoisted_6$G=[_hoisted_4$13,_hoisted_5$R],_sfc_main$1U=vue.defineComponent({__name:"setting",setup(te){const U=[{label:"压缩",value:"fill"},{label:"填充",value:"cover"},{label:"自适应",value:"contain"},{label:"原始大小",value:"none"},{label:"展示最小",value:"scale-down"}],{proxy:G}=vue.getCurrentInstance(),{resetUrl:ee}=G.$globalUtils,ne=vue.inject("widgetConfig"),re=async oe=>{const ie=new FormData;ie.append("file",oe.file);const le=await G.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",ie,{headers:{"Content-Type":"multipart/form-data",loading:!0}});le&&(ne.value.customize.url=le.data.link)};return(oe,ie)=>vue.unref(ne)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"图片配置"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1y,[vue.createVNode(vue.unref(elementPlus.ElUpload),{drag:"",limit:1,"http-request":re,"show-file-list":!1,accept:"image/*"},{default:vue.withCtx(()=>[vue.unref(ne).customize.url?(vue.openBlock(),vue.createElementBlock("img",{key:0,class:"max-h-40",src:vue.unref(ee)(vue.unref(ne).customize.url)},null,8,_hoisted_2$1i)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$17,_hoisted_6$G))]),_:1})]),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"地址"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne).customize.url,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.url=le)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"展示方式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ne).customize.fit,"onUpdate:modelValue":ie[1]||(ie[1]=le=>vue.unref(ne).customize.fit=le)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(U,le=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:le.value,label:le.label,value:le.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),setting_vue_vue_type_style_index_0_scoped_ba7d8f9c_lang="",setting$1=_export_sfc$2(_sfc_main$1U,[["__scopeId","data-v-ba7d8f9c"]]),__vite_glob_2_2=Object.freeze(Object.defineProperty({__proto__:null,default:setting$1},Symbol.toStringTag,{value:"Module"})),_hoisted_1$1x=vue.createElementVNode("i",{class:"ri-arrow-right-fill ml-2 mr-2"},null,-1),_sfc_main$1T=vue.defineComponent({__name:"text",setup(te){const U=[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],G=vue.inject("widgetConfig");return(ee,ne)=>vue.unref(G)?(vue.openBlock(),vue.createBlock(_sfc_main$2n,{key:0,title:"文本"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文本"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.title,"onUpdate:modelValue":ne[0]||(ne[0]=re=>vue.unref(G).customize.title=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.fontSize,"onUpdate:modelValue":ne[1]||(ne[1]=re=>vue.unref(G).customize.fontSize=re)},{suffix:vue.withCtx(()=>[vue.createTextVNode("px")]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字权重"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(G).customize.fontWeight,"onUpdate:modelValue":ne[2]||(ne[2]=re=>vue.unref(G).customize.fontWeight=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(G).customize.letterSpacing,"onUpdate:modelValue":ne[3]||(ne[3]=re=>vue.unref(G).customize.letterSpacing=re)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字对齐方式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(G).customize.textAlign,"onUpdate:modelValue":ne[4]||(ne[4]=re=>vue.unref(G).customize.textAlign=re)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(U,re=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:re.value,label:re.label,value:re.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字渐变方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(G).customize.colorPosition,"onUpdate:modelValue":ne[5]||(ne[5]=re=>vue.unref(G).customize.colorPosition=re)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"top",label:"top"},{default:vue.withCtx(()=>[vue.createTextVNode("上下")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"left",label:"left"},{default:vue.withCtx(()=>[vue.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"文字渐变颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(G).customize.startColor,"onUpdate:modelValue":ne[6]||(ne[6]=re=>vue.unref(G).customize.startColor=re),showInput:!1},null,8,["modelValue"]),_hoisted_1$1x,vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(G).customize.endColor,"onUpdate:modelValue":ne[7]||(ne[7]=re=>vue.unref(G).customize.endColor=re),showInput:!1},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),_withScopeId$z=te=>(vue.pushScopeId("data-v-63b0e6ae"),te=te(),vue.popScopeId(),te),_hoisted_1$1w={class:"selection el-popper is-light el-popover"},_hoisted_2$1h=_withScopeId$z(()=>vue.createElementVNode("span",{class:"el-popper__arrow","data-popper-arrow":""},null,-1)),validKeys$1="0123456789+-*/@.()",_sfc_main$1S=vue.defineComponent({__name:"exp",setup(te){const U=screenDesignMainStore(),G=vue.inject("widgetConfig"),ee=vue.ref(null),ne=vue.ref(""),re=vue.computed(()=>{const ye=[];return Object.keys(U.getCountMap).forEach(xe=>{const Ce=U.getCountMap[xe],$e=[];Object.keys(Ce.var).forEach(we=>{const Ee=we.replace(xe,Ce.title);$e.push({label:Ee.replace(`${Ce.title}.`,""),value:`${Ee}||${xe}`})}),ye.push({label:Ce.title,value:xe,children:$e})}),ye}),oe=ye=>{const{key:xe}=ye;switch(xe){case"Enter":ye.preventDefault();break;case"@":case"Process":se();break}};let ie=null;const le=()=>{const ye=vue.unref(ee).innerHTML;let xe=pe(ye.replace(/<br>/g,""));xe=xe.map($e=>me($e)?ge($e):$e.data.split("").filter(we=>validKeys$1.includes(we)).join(""));const Ce=xe.join("");if(ye!==Ce){const $e=_e(ye,Ce);vue.unref(ee).innerHTML=Ce,be(vue.unref(ee),$e)}clearTimeout(ie),ie=setTimeout(async()=>{fe()},500)},ae=vue.ref(!1),se=()=>{ne.value="",ae.value=!0},ue=ye=>{ae.value=!1;const[xe,Ce]=ye.split("||"),$e=`<div contenteditable="false">${xe}<span>${Ce}</span></div>`;de("@",$e)};(()=>{var ye;if((ye=vue.unref(G).customize.formula)!=null&&ye.exp){const xe=vue.unref(G).customize.formula;let Ce=xe.exp??"";const $e=xe.identifier.split(","),we=/\{([^}]+)\}/g;let Ee=-1;Ce=Ce.replace(we,(Ve,Se)=>(Ee+=1,`<div contenteditable="false">${Se}<span>${$e[Ee]}</span></div>`)),vue.nextTick(()=>{vue.unref(ee).innerHTML=Ce.replace(/@/g,""),setTimeout(()=>{fe()},100)})}})();const de=(ye,xe="")=>{if(!vue.unref(ee))return;let Ce=vue.unref(ee).innerHTML;Ce.includes(ye)&&(Ce=Ce.replace(new RegExp(ye,"g"),xe),vue.unref(ee).innerHTML=Ce),fe()},fe=()=>{let ye="";const xe=[],Ce=vue.unref(ee).innerHTML.replace(/\sdata-spm-anchor-id=".*?"/g,"");he({text:Ce,prefix:'<div contenteditable="false">',suffix:"</div>"}).forEach(we=>{const[Ee,Ve]=he({text:we,prefix:"<span>",suffix:"</span>"});Ve?(ye+=`{${Ee}}`,xe.push(Ve)):ye+=Ee}),G.value.customize.formula={exp:ye,identifier:xe.toString()}},ve=ye=>{ae.value=!1,ye&&de("@")},he=({text:ye,prefix:xe,suffix:Ce})=>ye.replace(new RegExp(xe,"g"),",").replace(new RegExp(Ce,"g"),",").split(",").filter($e=>!!$e),pe=ye=>{const xe=document.createElement("div");return xe.innerHTML=ye,[...xe.childNodes]},ge=ye=>{let xe=document.createElement("div");xe.appendChild(ye);let Ce=xe.innerHTML;return xe=ye=null,Ce},me=ye=>Object.prototype.toString.call(ye)==="[object HTMLDivElement]",_e=(ye,xe)=>{const Ce=ye.split(""),$e=xe.split(""),we=Math.max(Ce.length,$e.length);let Ee=0;for(let Ve=0;Ve<we&&Ce[Ve]==$e[Ve];Ve++)Ee++;return Ee},be=(ye,xe)=>{const Ce=document.createRange(),$e=window.getSelection();let we=0,Ee=0;const Ve=pe(ye.innerHTML);for(let Se=0;Se<Ve.length;Se++){const ke=Ve[Se];if(me(ke))xe-=ge(ke).length;else if(xe>ke.length)xe-=ke.length;else{Ee=xe;break}we++}Ce.selectNodeContents(ye),Ce.collapse(!1),ye.childNodes[we]&&Ce.setStart(ye.childNodes[we],Ee),Ce.collapse(!0),$e.removeAllRanges(),$e.addRange(Ce)};return(ye,xe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",{ref_key:"formulaRef",ref:ee,class:"flex-1 formula",contenteditable:"",placeholder:"请输入表达式 输入「@」后选择指标",style:{"ime-mode":"disabled"},onKeydown:vue.withModifiers(oe,["stop"]),onKeyup:le},null,544),vue.withDirectives(vue.createElementVNode("div",_hoisted_1$1w,[vue.createElementVNode("div",{class:"mb-2.5 flex justify-between"},[vue.createTextVNode(" 选择变量 "),vue.createElementVNode("i",{class:"text-base cursor-pointer ri-close-circle-line",onClick:ve})]),vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{onChange:ue,filterable:"",accordion:"",placeholder:"请选择变量",teleported:!1,modelValue:vue.unref(ne),"onUpdate:modelValue":xe[0]||(xe[0]=Ce=>vue.isRef(ne)?ne.value=Ce:null),data:vue.unref(re)},null,8,["modelValue","data"]),_hoisted_2$1h],512),[[vue.vShow,vue.unref(ae)]])],64))}}),exp_vue_vue_type_style_index_0_scoped_63b0e6ae_lang="",Exp=_export_sfc$2(_sfc_main$1S,[["__scopeId","data-v-63b0e6ae"]]),_withScopeId$y=te=>(vue.pushScopeId("data-v-ae8d9af3"),te=te(),vue.popScopeId(),te),_hoisted_1$1v=_withScopeId$y(()=>vue.createElementVNode("div",{class:"h-12"},null,-1)),_sfc_main$1R=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T),vue.createVNode(_sfc_main$2n,{title:"计算设置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"小数位"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(U).customize.toFixed,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.toFixed=ne),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"公式",class:"formula-item"},{default:vue.withCtx(()=>[vue.createVNode(Exp)]),_:1})]),_:1}),_hoisted_1$1v]),_:1}))}}),setting_vue_vue_type_style_index_0_scoped_ae8d9af3_lang="",setting=_export_sfc$2(_sfc_main$1R,[["__scopeId","data-v-ae8d9af3"]]),__vite_glob_2_3=Object.freeze(Object.defineProperty({__proto__:null,default:setting},Symbol.toStringTag,{value:"Module"})),_sfc_main$1Q=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"渐变方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(U).customize.colorPosition,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.colorPosition=ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"bottom",label:"bottom"},{default:vue.withCtx(()=>[vue.createTextVNode("上下")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"right",label:"right"},{default:vue.withCtx(()=>[vue.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边角宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRadius,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderRadius=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.gradientColor0=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.gradientColor1=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_4=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1Q},Symbol.toStringTag,{value:"Module"})),_sfc_main$1P=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T)]),_:1}))}}),__vite_glob_2_5=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1P},Symbol.toStringTag,{value:"Module"})),_sfc_main$1O=vue.defineComponent({__name:"setting",setup(te){return vue.inject("widgetConfig"),(U,G)=>(vue.openBlock(),vue.createBlock(_sfc_main$2k,null,{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1T)]),_:1}))}}),__vite_glob_2_6=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1O},Symbol.toStringTag,{value:"Module"})),_sfc_main$1N=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(U).customize.borderType,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.borderType=ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"solid",label:"solid"},{default:vue.withCtx(()=>[vue.createTextVNode("实线")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{value:"dashed",label:"right"},{default:vue.withCtx(()=>[vue.createTextVNode("虚线")]),_:1})]),_:1},8,["modelValue"])]),_:1}),vue.unref(U).customize.borderType=="dashed"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderGap,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderGap=ne)},null,8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色一"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor0,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.gradientColor0=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色二"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.gradientColor1,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.gradientColor1=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.height,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.height=ne)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_2_7=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1N},Symbol.toStringTag,{value:"Module"})),_withScopeId$x=te=>(vue.pushScopeId("data-v-7afca816"),te=te(),vue.popScopeId(),te),_hoisted_1$1u=_withScopeId$x(()=>vue.createElementVNode("div",{class:"h-14"},null,-1)),_sfc_main$1M=vue.defineComponent({__name:"linkage",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=screenDesignMainStore(),ee=vue.computed(()=>G.getWidgetList.filter(oe=>oe.modelType=="MODEL_INDICATORS")),ne=vue.inject("widgetConfig"),re=vue.ref([]);return U.$baseHttp.get("/api/ace-data-center/model-indicators/getConfJson",{params:{modelIndicatorsIds:vue.unref(ee).map(oe=>oe.indicatorsId).toString()}}).then(oe=>{re.value=[],console.log(vue.unref(ee)),vue.unref(ee).forEach(ie=>{const le=oe.data.formConfJsonMap[ie.indicatorsId];le&&re.value.push({label:ie.name,value:ie.indicatorsId,children:JSON.parse(le).map(ae=>({label:ae.name,value:ae.key}))})})}),(oe,ie)=>(vue.openBlock(),vue.createBlock(_sfc_main$2n,{title:"联动组件"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCascader),{teleported:!1,style:{width:"100%"},placeholder:"请选择指标",modelValue:vue.unref(ne).customize.linkage,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.linkage=le),options:vue.unref(re),props:{multiple:!0},clearable:""},null,8,["modelValue","options"])]),_:1}),_hoisted_1$1u]),_:1}))}}),linkage_vue_vue_type_style_index_0_scoped_7afca816_lang="",linkage=_export_sfc$2(_sfc_main$1M,[["__scopeId","data-v-7afca816"]]),_hoisted_1$1t={class:"flex flex-wrap gap-1"},_hoisted_2$1g={class:"flex items-center gap-1"},_hoisted_3$16={class:"flex items-center gap-1"},_hoisted_4$12={class:"flex items-center gap-1"},_hoisted_5$Q={class:"flex items-center gap-1"},_sfc_main$1L=vue.defineComponent({__name:"setting",setup(te){const U=vue.inject("widgetConfig");return(G,ee)=>vue.unref(U)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"背景色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.backgroundColor,"onUpdate:modelValue":ee[0]||(ee[0]=ne=>vue.unref(U).customize.backgroundColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.borderColor,"onUpdate:modelValue":ee[1]||(ee[1]=ne=>vue.unref(U).customize.borderColor=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"边框大小"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1t,[vue.createElementVNode("div",_hoisted_2$1g,[vue.createTextVNode(" 上 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderTopWidth,"onUpdate:modelValue":ee[2]||(ee[2]=ne=>vue.unref(U).customize.borderTopWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_3$16,[vue.createTextVNode(" 右 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRightWidth,"onUpdate:modelValue":ee[3]||(ee[3]=ne=>vue.unref(U).customize.borderRightWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_4$12,[vue.createTextVNode(" 下 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderBottomWidth,"onUpdate:modelValue":ee[4]||(ee[4]=ne=>vue.unref(U).customize.borderBottomWidth=ne),"controls-position":"right"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_5$Q,[vue.createTextVNode(" 左 "),vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderLeftWidth,"onUpdate:modelValue":ee[5]||(ee[5]=ne=>vue.unref(U).customize.borderLeftWidth=ne),"controls-position":"right"},null,8,["modelValue"])])])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2o,{modelValue:vue.unref(U).customize.color,"onUpdate:modelValue":ee[6]||(ee[6]=ne=>vue.unref(U).customize.color=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.fontSize,"onUpdate:modelValue":ee[7]||(ee[7]=ne=>vue.unref(U).customize.fontSize=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"圆角大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(U).customize.borderRadius,"onUpdate:modelValue":ee[8]||(ee[8]=ne=>vue.unref(U).customize.borderRadius=ne)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"输入框配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.modelValue,"onUpdate:modelValue":ee[9]||(ee[9]=ne=>vue.unref(U).customize.modelValue=ne)},null,8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"空值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(U).customize.placeholder,"onUpdate:modelValue":ee[10]||(ee[10]=ne=>vue.unref(U).customize.placeholder=ne)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(linkage)]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_3_0=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1L},Symbol.toStringTag,{value:"Module"})),_sfc_main$1K=vue.defineComponent({__name:"setting",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref([]),ee=vue.ref([]),ne=vue.inject("widgetConfig");U.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${U.$baseGetCurrentProjectId()}`).then(oe=>{G.value=oe.data,re(!1)});const re=(oe=!0)=>{const ie=vue.unref(ne).customize.dictId;oe&&(ee.value=[],vue.unref(ne).customize.modelValue=""),ie&&U.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${ie}`).then(le=>{ee.value=dictArratToTree(le.data??[])})};return(oe,ie)=>vue.unref(ne)?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2n,{title:"基础信息"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"值可清空"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ne).customize.clearable,"onUpdate:modelValue":ie[0]||(ie[0]=le=>vue.unref(ne).customize.clearable=le)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$2n,{title:"下拉框配置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"字典"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{teleported:!1,modelValue:vue.unref(ne).customize.dictId,"onUpdate:modelValue":ie[1]||(ie[1]=le=>vue.unref(ne).customize.dictId=le),placeholder:"字典值",onChange:re},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G),le=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:le.label,value:le.code,key:le.code},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"默认值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{style:{width:"100%"},teleported:!1,expandAll:!1,props:{label:"name",value:"code"},modelValue:vue.unref(ne).customize.modelValue,"onUpdate:modelValue":ie[2]||(ie[2]=le=>vue.unref(ne).customize.modelValue=le),placeholder:"请选择",clearable:"",renderAfterExpand:"",data:vue.unref(ee)},null,8,["modelValue","data"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"空值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne).customize.placeholder,"onUpdate:modelValue":ie[3]||(ie[3]=le=>vue.unref(ne).customize.placeholder=le)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(linkage)]),_:1})):vue.createCommentVNode("",!0)}}),__vite_glob_3_1=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$1K},Symbol.toStringTag,{value:"Module"})),dict={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"}]},_hoisted_1$1s={class:"flex flex-col justify-start w-full"},_hoisted_2$1f={key:0,class:"flex items-center w-16 font-bold"},_hoisted_3$15=vue.createElementVNode("span",{class:"w-1 h-4 mr-2",style:{background:"var(--el-color-primary)"}},null,-1),_hoisted_4$11={class:"flex flex-wrap flex-1"},_hoisted_5$P=vue.createElementVNode("div",{class:"h-4"},null,-1),_sfc_main$1J=vue.defineComponent({__name:"setting-item-box",props:{name:{default:""}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$1s,[U.name?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$1f,[_hoisted_3$15,vue.createTextVNode(" "+vue.toDisplayString(U.name),1)])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_4$11,[vue.renderSlot(U.$slots,"default")])]),_hoisted_5$P],64))}}),_hoisted_1$1r={class:"w-1/2 pr-2 mt-2"},_hoisted_2$1e={class:"text-xs mb-2"},_sfc_main$1I=vue.defineComponent({__name:"setting-item",props:{name:{default:""}},setup(te){return(U,G)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1r,[vue.createElementVNode("div",_hoisted_2$1e,vue.toDisplayString(U.name),1),vue.renderSlot(U.$slots,"default")]))}}),_sfc_main$1H=vue.defineComponent({__name:"setting-common",props:{option:{default:{}},type:{default:0}},setup(te){const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor,ne=[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}];return vue.watch(()=>U.option.custom,re=>{U.option.yAxis&&(U.option.yAxis.axisLabel.formatter=`${re.prefix??""}{value}${re.suffix??""}`)},{deep:!0}),vue.watch(()=>U.option.showScroll,re=>{if(re)U.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 oe=U.option.series;U.option.series=[],U.option.direction="",setTimeout(()=>{delete U.option.dataZoom,U.option.series=oe})}}),vue.watch(()=>U.option.direction,re=>{U.option.dataZoom.forEach((oe,ie)=>{re=="vertical"?oe.yAxisIndex=[0]:delete oe.yAxisIndex})}),(re,oe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[re.option.grid?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:0,title:"容器"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"左侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.left,"onUpdate:modelValue":oe[0]||(oe[0]=ie=>re.option.grid.left=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"右侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.right,"onUpdate:modelValue":oe[1]||(oe[1]=ie=>re.option.grid.right=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"上侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.top,"onUpdate:modelValue":oe[2]||(oe[2]=ie=>re.option.grid.top=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"下侧距离"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.grid.bottom,"onUpdate:modelValue":oe[3]||(oe[3]=ie=>re.option.grid.bottom=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"自适应"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.grid.containLabel,"onUpdate:modelValue":oe[4]||(oe[4]=ie=>re.option.grid.containLabel=ie)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),[1,3,5].includes(re.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:1,title:"滚动条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.showScroll,"onUpdate:modelValue":oe[5]||(oe[5]=ie=>re.option.showScroll=ie)},null,8,["modelValue"])]),_:1})]),_:1}),re.option.showScroll?(vue.openBlock(),vue.createBlock(_sfc_main$1J,{key:0,name:"参数"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"滚动条方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.direction,"onUpdate:modelValue":oe[6]||(oe[6]=ie=>re.option.direction=ie),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(ne,ie=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"范围结束值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.dataZoom[0].endValue,"onUpdate:modelValue":oe[7]||(oe[7]=ie=>re.option.dataZoom[0].endValue=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"拖拽宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].handleSize,"onUpdate:modelValue":oe[8]||(oe[8]=ie=>re.option.dataZoom[0].handleSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].width,"onUpdate:modelValue":oe[9]||(oe[9]=ie=>re.option.dataZoom[0].width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"高度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].height,"onUpdate:modelValue":oe[10]||(oe[10]=ie=>re.option.dataZoom[0].height=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"上"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].top,"onUpdate:modelValue":oe[11]||(oe[11]=ie=>re.option.dataZoom[0].top=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"右"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].right,"onUpdate:modelValue":oe[12]||(oe[12]=ie=>re.option.dataZoom[0].right=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"下"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].bottom,"onUpdate:modelValue":oe[13]||(oe[13]=ie=>re.option.dataZoom[0].bottom=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"左"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.dataZoom[0].left,"onUpdate:modelValue":oe[14]||(oe[14]=ie=>re.option.dataZoom[0].left=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"背景颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].backgroundColor,"onUpdate:modelValue":oe[15]||(oe[15]=ie=>re.option.dataZoom[0].backgroundColor=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"选中范围颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].fillerColor,"onUpdate:modelValue":oe[16]||(oe[16]=ie=>re.option.dataZoom[0].fillerColor=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.dataZoom[0].borderColor,"onUpdate:modelValue":oe[17]||(oe[17]=ie=>re.option.dataZoom[0].borderColor=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0),re.option.legend?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:2,title:"图例"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.legend.show,"onUpdate:modelValue":oe[18]||(oe[18]=ie=>re.option.legend.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.legend.textStyle.color,"onUpdate:modelValue":oe[19]||(oe[19]=ie=>re.option.legend.textStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.textStyle.fontSize,"onUpdate:modelValue":oe[20]||(oe[20]=ie=>re.option.legend.textStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"x轴"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.x,"onUpdate:modelValue":oe[21]||(oe[21]=ie=>re.option.legend.x=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lengendX,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"y轴"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.y,"onUpdate:modelValue":oe[22]||(oe[22]=ie=>re.option.legend.y=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lengendY,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"方向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.orient,"onUpdate:modelValue":oe[23]||(oe[23]=ie=>re.option.legend.orient=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).orient,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),re.option.legend.icon?(vue.openBlock(),vue.createBlock(_sfc_main$1I,{key:0,name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.legend.icon,"onUpdate:modelValue":oe[24]||(oe[24]=ie=>re.option.legend.icon=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).shape,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$1I,{name:"宽"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.itemWidth,"onUpdate:modelValue":oe[25]||(oe[25]=ie=>re.option.legend.itemWidth=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"高"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.legend.itemHeight,"onUpdate:modelValue":oe[26]||(oe[26]=ie=>re.option.legend.itemHeight=ie),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.xAxis?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:3,title:"x轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.show,"onUpdate:modelValue":oe[27]||(oe[27]=ie=>re.option.xAxis.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.type,"onUpdate:modelValue":oe[28]||(oe[28]=ie=>re.option.xAxis.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).category,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.xAxis.min,"onUpdate:modelValue":oe[29]||(oe[29]=ie=>re.option.xAxis.min=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.xAxis.max,"onUpdate:modelValue":oe[30]||(oe[30]=ie=>re.option.xAxis.max=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.position,"onUpdate:modelValue":oe[31]||(oe[31]=ie=>re.option.xAxis.position=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).xposition,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"反向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.inverse,"onUpdate:modelValue":oe[32]||(oe[32]=ie=>re.option.xAxis.inverse=ie)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.fontSize,"onUpdate:modelValue":oe[33]||(oe[33]=ie=>re.option.xAxis.axisLabel.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"间隔"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.interval,"onUpdate:modelValue":oe[34]||(oe[34]=ie=>re.option.xAxis.axisLabel.interval=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.axisLabel.rotate,"onUpdate:modelValue":oe[35]||(oe[35]=ie=>re.option.xAxis.axisLabel.rotate=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.axisLabel.color,"onUpdate:modelValue":oe[36]||(oe[36]=ie=>re.option.xAxis.axisLabel.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"单位"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"名称"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.xAxis.name,"onUpdate:modelValue":oe[37]||(oe[37]=ie=>re.option.xAxis.name=ie),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.nameTextStyle.fontSize,"onUpdate:modelValue":oe[38]||(oe[38]=ie=>re.option.xAxis.nameTextStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.nameTextStyle.color,"onUpdate:modelValue":oe[39]||(oe[39]=ie=>re.option.xAxis.nameTextStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.xAxis.splitLine.show,"onUpdate:modelValue":oe[40]||(oe[40]=ie=>re.option.xAxis.splitLine.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"粗细"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.xAxis.splitLine.lineStyle.width,"onUpdate:modelValue":oe[41]||(oe[41]=ie=>re.option.xAxis.splitLine.lineStyle.width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.xAxis.splitLine.lineStyle.type,"onUpdate:modelValue":oe[42]||(oe[42]=ie=>re.option.xAxis.splitLine.lineStyle.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lineStyle,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.xAxis.splitLine.lineStyle.color,"onUpdate:modelValue":oe[43]||(oe[43]=ie=>re.option.xAxis.splitLine.lineStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.yAxis?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:4,title:"y轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.show,"onUpdate:modelValue":oe[44]||(oe[44]=ie=>re.option.yAxis.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.type,"onUpdate:modelValue":oe[45]||(oe[45]=ie=>re.option.yAxis.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).category,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.yAxis.min,"onUpdate:modelValue":oe[46]||(oe[46]=ie=>re.option.yAxis.min=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大值"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:re.option.yAxis.max,"onUpdate:modelValue":oe[47]||(oe[47]=ie=>re.option.yAxis.max=ie),size:"small"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.position,"onUpdate:modelValue":oe[48]||(oe[48]=ie=>re.option.yAxis.position=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).yposition,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"反向"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.inverse,"onUpdate:modelValue":oe[49]||(oe[49]=ie=>re.option.yAxis.inverse=ie)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.fontSize,"onUpdate:modelValue":oe[50]||(oe[50]=ie=>re.option.yAxis.axisLabel.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"间隔"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.interval,"onUpdate:modelValue":oe[51]||(oe[51]=ie=>re.option.yAxis.axisLabel.interval=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.axisLabel.rotate,"onUpdate:modelValue":oe[52]||(oe[52]=ie=>re.option.yAxis.axisLabel.rotate=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.axisLabel.color,"onUpdate:modelValue":oe[53]||(oe[53]=ie=>re.option.yAxis.axisLabel.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"单位"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"名称"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.yAxis.name,"onUpdate:modelValue":oe[54]||(oe[54]=ie=>re.option.yAxis.name=ie),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.nameTextStyle.fontSize,"onUpdate:modelValue":oe[55]||(oe[55]=ie=>re.option.yAxis.nameTextStyle.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.nameTextStyle.color,"onUpdate:modelValue":oe[56]||(oe[56]=ie=>re.option.yAxis.nameTextStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:re.option.yAxis.splitLine.show,"onUpdate:modelValue":oe[57]||(oe[57]=ie=>re.option.yAxis.splitLine.show=ie)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"粗细"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.yAxis.splitLine.lineStyle.width,"onUpdate:modelValue":oe[58]||(oe[58]=ie=>re.option.yAxis.splitLine.lineStyle.width=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:re.option.yAxis.splitLine.lineStyle.type,"onUpdate:modelValue":oe[59]||(oe[59]=ie=>re.option.yAxis.splitLine.lineStyle.type=ie),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).lineStyle,ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ie.value,label:ie.label,value:ie.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.yAxis.splitLine.lineStyle.color,"onUpdate:modelValue":oe[60]||(oe[60]=ie=>re.option.yAxis.splitLine.lineStyle.color=ie)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):vue.createCommentVNode("",!0),re.option.custom&&![2].includes(re.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{key:5,title:"显示"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.custom.prefix,"onUpdate:modelValue":oe[61]||(oe[61]=ie=>re.option.custom.prefix=ie),size:"small",placeholder:"前缀"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:re.option.custom.suffix,"onUpdate:modelValue":oe[62]||(oe[62]=ie=>re.option.custom.suffix=ie),size:"small",placeholder:"后缀"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:re.option.custom.toFixed,"onUpdate:modelValue":oe[63]||(oe[63]=ie=>re.option.custom.toFixed=ie),size:"small"},null,8,["modelValue"])]),_:1}),re.type==7?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:re.option.custom.fontSize,"onUpdate:modelValue":oe[64]||(oe[64]=ie=>re.option.custom.fontSize=ie),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),modelValue:re.option.custom.color,"onUpdate:modelValue":oe[65]||(oe[65]=ie=>re.option.custom.color=ie)},null,8,["predefine","modelValue"])]),_:1})],64)):vue.createCommentVNode("",!0)]),_:1})]),_:1})):vue.createCommentVNode("",!0)],64))}}),settingCommon_vue_vue_type_style_index_0_scoped_003224ac_lang="",SettingCommon=_export_sfc$2(_sfc_main$1H,[["__scopeId","data-v-003224ac"]]),_hoisted_1$1q={class:"ml-2"},_hoisted_2$1d={class:"flex justify-end flex-1"},_hoisted_3$14=["onClick"],_hoisted_4$10=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1G=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:oe}=useCustomChart(),{seriesItem:ie,init:le,customSeriesData:ae}=useBarCommon();vue.ref(null);const se=vue.ref(JSON.parse(JSON.stringify(Object.values(ae.value)[0]??ie)));vue.watch(se,()=>ue(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{le(G.option,()=>{ue()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await oe(G.type,G.option.dataShow.x)});const ue=()=>{const de=se.value,fe=ve=>{ve.barWidth=de.barWidth,ve.stack=de.stack,ve.label.show=de.label.show,ve.label.color=de.label.color,ve.label.position=de.label.position,ve.label.fontSize=de.label.fontSize,ve.label.rotate=de.label.rotate,ve.itemStyle.borderRadius=[de.borderRadiusNumber,de.borderRadiusNumber,0,0]};G.option.series.forEach(ve=>{fe(ve)}),Object.keys(ae.value).forEach(ve=>{fe(vue.unref(ae)[ve])}),window.customSeriesData=ae.value},ce=de=>{const{hide:fe}=G.option.dataShow;fe.includes(de)?fe.splice(fe.findIndex(ve=>ve==de),1):fe.push(de)};return(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:de.option,type:3},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"柱状配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).barWidth,"onUpdate:modelValue":fe[0]||(fe[0]=ve=>vue.unref(se).barWidth=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"堆栈"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(se).stack,"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.unref(se).stack=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(se).borderRadiusNumber,"onUpdate:modelValue":fe[2]||(fe[2]=ve=>vue.unref(se).borderRadiusNumber=ve),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(se).label.show,"onUpdate:modelValue":fe[3]||(fe[3]=ve=>vue.unref(se).label.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(se).label.position,"onUpdate:modelValue":fe[4]||(fe[4]=ve=>vue.unref(se).label.position=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).label.rotate,"onUpdate:modelValue":fe[5]||(fe[5]=ve=>vue.unref(se).label.rotate=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(se).label.fontSize,"onUpdate:modelValue":fe[6]||(fe[6]=ve=>vue.unref(se).label.fontSize=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(se).label.color,"onUpdate:modelValue":fe[7]||(fe[7]=ve=>vue.unref(se).label.color=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.x,"onUpdate:modelValue":fe[8]||(fe[8]=ve=>de.option.dataShow.x=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.comment,label:ve.comment,value:ve.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:de.option.dataShow.y,"onUpdate:modelValue":fe[9]||(fe[9]=ve=>de.option.dataShow.y=ve),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(de.option.dataShow.y,(ve,he)=>(vue.openBlock(),vue.createElementBlock("div",{key:ve,class:"w-full sort-item"},[vue.unref(ae)[ve]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ae)[ve].itemStyle.color,"onUpdate:modelValue":pe=>vue.unref(ae)[ve].itemStyle.color=pe},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(ae)[ve].itemStyle.color)+" ",1),vue.createElementVNode("span",_hoisted_1$1q,vue.toDisplayString(ve),1),vue.createElementVNode("div",_hoisted_2$1d,[vue.createElementVNode("i",{onClick:pe=>ce(ve),class:vue.normalizeClass([de.option.dataShow.hide.includes(ve)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_3$14),_hoisted_4$10])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1p={class:"ml-2"},_hoisted_2$1c={class:"flex justify-end flex-1"},_hoisted_3$13=["onClick"],_hoisted_4$$=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1F=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useLineCommon();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const ce=()=>{const ve=JSON.parse(JSON.stringify(ue.value)),he=pe=>{Object.keys(ve).forEach(ge=>{ge!="areaStyleTmp"&&(ge=="lineStyle"?Object.keys(pe[ge]).forEach(me=>{me!="color"&&(pe[ge][me]=ve[ge][me])}):pe[ge]=ve[ge])})};G.option.series.forEach(pe=>{he(pe),pe.areaStyle=ve.showArea?pe.areaStyleTmp??{}:null}),Object.keys(se.value).forEach(pe=>{const ge=vue.unref(se)[pe];he(ge),ge.areaStyle=ve.showArea?ge.areaStyleTmp??{}:null}),window.customSeriesData=se.value},de=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)},fe=ve=>{let pe=ve.lineStyle.color.replace(/^#/,"");pe.length===3&&(pe=pe[0]+pe[0]+pe[1]+pe[1]+pe[2]+pe[2]);const ge=parseInt(pe.substring(0,2),16),me=parseInt(pe.substring(2,4),16),_e=parseInt(pe.substring(4,6),16),be={color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgb(${ge}, ${me}, ${_e}, 1)`},{offset:1,color:`rgb(${ge}, ${me}, ${_e}, 0.5)`}],global:!1}};ve.areaStyleTmp=be,ve.areaStyle=vue.unref(ue).showArea?be:null};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:1},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"折线配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"线条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).lineStyle.width,"onUpdate:modelValue":he[0]||(he[0]=pe=>vue.unref(ue).lineStyle.width=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"显示填充区"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).showArea,"onUpdate:modelValue":he[1]||(he[1]=pe=>vue.unref(ue).showArea=pe)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).lineStyle.type,"onUpdate:modelValue":he[2]||(he[2]=pe=>vue.unref(ue).lineStyle.type=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"实心点"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).symbolSize,"onUpdate:modelValue":he[3]||(he[3]=pe=>vue.unref(ue).symbolSize=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"平滑"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).smooth,"onUpdate:modelValue":he[4]||(he[4]=pe=>vue.unref(ue).smooth=pe)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[5]||(he[5]=pe=>vue.unref(ue).label.show=pe)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[6]||(he[6]=pe=>vue.unref(ue).label.position=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[7]||(he[7]=pe=>vue.unref(ue).label.rotate=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[8]||(he[8]=pe=>vue.unref(ue).label.fontSize=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[9]||(he[9]=pe=>vue.unref(ue).label.color=pe)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[10]||(he[10]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[11]||(he[11]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,size:"small",predefine:vue.unref(ne),modelValue:vue.unref(se)[pe].lineStyle.color,"onUpdate:modelValue":me=>vue.unref(se)[pe].lineStyle.color=me,onChange:me=>fe(vue.unref(se)[pe])},null,8,["predefine","modelValue","onUpdate:modelValue","onChange"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1p,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_2$1c,[vue.createElementVNode("i",{onClick:me=>de(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_3$13),_hoisted_4$$])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_sfc_main$1E=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"外侧",value:"outside"},{label:"内部",value:"inside"},{label:"中心",value:"center"}],oe=[{label:"数据名",value:"{b}"},{label:"百分比",value:"{d}"},{label:"列名:百分比",value:"{b}:{d}%"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=usePieCommon(),ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x),ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate});const ce=()=>{const de=ue.value,fe=ve=>{Object.keys(de).forEach(he=>{ve[he]=de[he]})};G.option.series.forEach(ve=>{fe(ve)}),Object.keys(se.value).forEach(ve=>{fe(vue.unref(se)[ve])}),window.customSeriesData=se.value};return(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:de.option,type:2},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"饼图配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"半径1"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).radius[0],"onUpdate:modelValue":fe[0]||(fe[0]=ve=>vue.unref(ue).radius[0]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"半径2"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).radius[1],"onUpdate:modelValue":fe[1]||(fe[1]=ve=>vue.unref(ue).radius[1]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"距离1"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).center[0],"onUpdate:modelValue":fe[2]||(fe[2]=ve=>vue.unref(ue).center[0]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"距离2"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ue).center[1],"onUpdate:modelValue":fe[3]||(fe[3]=ve=>vue.unref(ue).center[1]=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"南丁格尔图"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).roseType,"onUpdate:modelValue":fe[4]||(fe[4]=ve=>vue.unref(ue).roseType=ve)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":fe[5]||(fe[5]=ve=>vue.unref(ue).label.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"引导线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).labelLine.show,"onUpdate:modelValue":fe[6]||(fe[6]=ve=>vue.unref(ue).labelLine.show=ve)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"展示类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.formatter,"onUpdate:modelValue":fe[7]||(fe[7]=ve=>vue.unref(ue).label.formatter=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":fe[8]||(fe[8]=ve=>vue.unref(ue).label.position=ve),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ve=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":fe[9]||(fe[9]=ve=>vue.unref(ue).label.fontSize=ve),size:"small"},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":fe[10]||(fe[10]=ve=>vue.unref(ue).label.color=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).itemStyle.borderRadius,"onUpdate:modelValue":fe[11]||(fe[11]=ve=>vue.unref(ue).itemStyle.borderRadius=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).itemStyle.borderWidth,"onUpdate:modelValue":fe[12]||(fe[12]=ve=>vue.unref(ue).itemStyle.borderWidth=ve),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).itemStyle.borderColor,"onUpdate:modelValue":fe[13]||(fe[13]=ve=>vue.unref(ue).itemStyle.borderColor=ve)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"维度",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.x,"onUpdate:modelValue":fe[14]||(fe[14]=ve=>de.option.dataShow.x=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.comment,label:ve.comment,value:ve.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"统计",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.option.dataShow.y,"onUpdate:modelValue":fe[15]||(fe[15]=ve=>de.option.dataShow.y=ve),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.y.filter(ve=>ve.aggType!="other"),ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.showLabel,label:ve.showLabel,value:ve.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1o={class:"ml-2"},_hoisted_2$1b={class:"flex items-center justify-end flex-1"},_hoisted_3$12={class:"mr-2 text-xs cursor-pointer"},_hoisted_4$_=["onClick"],_hoisted_5$O=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1D=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:ie}=useCustomChart(),{seriesLineItem:le,seriesBarItem:ae,init:se,customSeriesData:ue}=useBarLineCommon();vue.ref(null);const ce=vue.ref(JSON.parse(JSON.stringify(Object.values(ue.value).find(ge=>ge.type=="bar")??ae))),de=vue.ref(JSON.parse(JSON.stringify(Object.values(ue.value).find(ge=>ge.type=="line")??le)));vue.watch([ce,de],()=>ve(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{se(G.option,()=>{ve()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const fe=(ge,me)=>{var be,ye,xe,Ce;if(vue.unref(ue)[me].type!=ge){const $e=JSON.parse(JSON.stringify({...ge=="line"?de.value:ce.value})),we=((ye=(be=vue.unref(ue)[me])==null?void 0:be.lineStyle)==null?void 0:ye.color)??((Ce=(xe=vue.unref(ue)[me])==null?void 0:xe.itemStyle)==null?void 0:Ce.color);$e[$e!=null&&$e.lineStyle?"lineStyle":"itemStyle"].color=we,ue.value[me]=$e,se(G.option,()=>{})}},ve=()=>{const ge=ce.value,me=de.value,_e=be=>{const ye=JSON.parse(JSON.stringify(be.type=="bar"?ge:me));Object.keys(ye).forEach(xe=>{xe!="areaStyleTmp"&&(["lineStyle","itemStyle"].includes(xe)?Object.keys(be[xe]).forEach(Ce=>{Ce=="borderRadius"?be[xe][Ce]=[ge.borderRadiusNumber,ge.borderRadiusNumber,0,0]:Ce!="color"&&(be[xe][Ce]=ye[xe][Ce])}):be[xe]=ye[xe])})};G.option.series.forEach(be=>{_e(be),be.type=="line"&&(be.areaStyle=me.showArea?be.areaStyleTmp??{}:null)}),Object.keys(ue.value).forEach(be=>{const ye=vue.unref(ue)[be];_e(ye),ye.type=="line"&&(ye.areaStyle=me.showArea?ye.areaStyleTmp??{}:null)}),window.customSeriesData=ue.value},he=ge=>{const{hide:me}=G.option.dataShow;me.includes(ge)?me.splice(me.findIndex(_e=>_e==ge),1):me.push(ge)},pe=ge=>{if(ge.type!="line")return;let _e=ge.lineStyle.color.replace(/^#/,"");_e.length===3&&(_e=_e[0]+_e[0]+_e[1]+_e[1]+_e[2]+_e[2]);const be=parseInt(_e.substring(0,2),16),ye=parseInt(_e.substring(2,4),16),xe=parseInt(_e.substring(4,6),16),Ce={color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`rgb(${be}, ${ye}, ${xe}, 1)`},{offset:1,color:`rgb(${be}, ${ye}, ${xe}, 0.5)`}],global:!1}};ge.areaStyleTmp=Ce,ge.areaStyle=vue.unref(de).showArea?Ce:null};return(ge,me)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ge.option,type:5},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"柱状配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).barWidth,"onUpdate:modelValue":me[0]||(me[0]=_e=>vue.unref(ce).barWidth=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"圆角"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(ce).borderRadiusNumber,"onUpdate:modelValue":me[1]||(me[1]=_e=>vue.unref(ce).borderRadiusNumber=_e),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ce).label.show,"onUpdate:modelValue":me[2]||(me[2]=_e=>vue.unref(ce).label.show=_e)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ce).label.position,"onUpdate:modelValue":me[3]||(me[3]=_e=>vue.unref(ce).label.position=_e),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,_e=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:_e.value,label:_e.label,value:_e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).label.rotate,"onUpdate:modelValue":me[4]||(me[4]=_e=>vue.unref(ce).label.rotate=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ce).label.fontSize,"onUpdate:modelValue":me[5]||(me[5]=_e=>vue.unref(ce).label.fontSize=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ce).label.color,"onUpdate:modelValue":me[6]||(me[6]=_e=>vue.unref(ce).label.color=_e)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"折线配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"线条"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"宽度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).lineStyle.width,"onUpdate:modelValue":me[7]||(me[7]=_e=>vue.unref(de).lineStyle.width=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"显示填充区"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).showArea,"onUpdate:modelValue":me[8]||(me[8]=_e=>vue.unref(de).showArea=_e)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"类型"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(de).lineStyle.type,"onUpdate:modelValue":me[9]||(me[9]=_e=>vue.unref(de).lineStyle.type=_e),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,_e=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:_e.value,label:_e.label,value:_e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"实心点"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).symbolSize,"onUpdate:modelValue":me[10]||(me[10]=_e=>vue.unref(de).symbolSize=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"平滑"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).smooth,"onUpdate:modelValue":me[11]||(me[11]=_e=>vue.unref(de).smooth=_e)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(de).label.show,"onUpdate:modelValue":me[12]||(me[12]=_e=>vue.unref(de).label.show=_e)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(de).label.position,"onUpdate:modelValue":me[13]||(me[13]=_e=>vue.unref(de).label.position=_e),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,_e=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:_e.value,label:_e.label,value:_e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).label.rotate,"onUpdate:modelValue":me[14]||(me[14]=_e=>vue.unref(de).label.rotate=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(de).label.fontSize,"onUpdate:modelValue":me[15]||(me[15]=_e=>vue.unref(de).label.fontSize=_e),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(de).label.color,"onUpdate:modelValue":me[16]||(me[16]=_e=>vue.unref(de).label.color=_e)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ge.option.dataShow.x,"onUpdate:modelValue":me[17]||(me[17]=_e=>ge.option.dataShow.x=_e),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,_e=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:_e.comment,label:_e.comment,value:_e.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ge.option.dataShow.y,"onUpdate:modelValue":me[18]||(me[18]=_e=>ge.option.dataShow.y=_e),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ge.option.dataShow.y,(_e,be)=>(vue.openBlock(),vue.createElementBlock("div",{key:_e,class:"w-full sort-item"},[vue.unref(ue)[_e]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.unref(ue)[_e].type=="bar"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(ue)[_e].itemStyle.color,"onUpdate:modelValue":ye=>vue.unref(ue)[_e].itemStyle.color=ye},null,8,["predefine","modelValue","onUpdate:modelValue"])):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:1,predefine:vue.unref(ne),size:"small",onChange:ye=>pe(vue.unref(ue)[_e]),modelValue:vue.unref(ue)[_e].lineStyle.color,"onUpdate:modelValue":ye=>vue.unref(ue)[_e].lineStyle.color=ye},null,8,["predefine","onChange","modelValue","onUpdate:modelValue"]))],64)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1o,vue.toDisplayString(_e),1),vue.createElementVNode("div",_hoisted_2$1b,[vue.unref(ue)[_e]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:ye=>fe(ye,_e)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"bar"},{default:vue.withCtx(()=>[vue.createTextVNode("柱状")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"line"},{default:vue.withCtx(()=>[vue.createTextVNode("折线")]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$12,vue.toDisplayString(vue.unref(ue)[_e].type=="bar"?"柱状":"折线"),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:ye=>he(_e),class:vue.normalizeClass([ge.option.dataShow.hide.includes(_e)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$_),_hoisted_5$O])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1n={class:"ml-2"},_hoisted_2$1a={class:"flex items-center justify-end flex-1"},_hoisted_3$11={class:"mr-2 text-xs cursor-pointer"},_hoisted_4$Z=["onClick"],_hoisted_5$N=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1C=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],oe=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useScatterCommon();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify(Object.values(se.value)[0]??le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch(()=>G.option.dataShow,()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x)});const ce=()=>{const ve=JSON.parse(JSON.stringify(ue.value)),he=pe=>{Object.keys(ve).forEach(ge=>{ge!="type"&&(["itemStyle"].includes(ge)||(pe[ge]=ve[ge]))})};G.option.series.forEach(pe=>{he(pe)}),Object.keys(se.value).forEach(pe=>{he(vue.unref(se)[pe])}),window.customSeriesData=se.value},de=(ve,he)=>{const pe=vue.unref(se)[he];pe.type!=ve&&(pe.type=ve,ae(G.option,()=>{}))},fe=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:6},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"散点图配置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).symbolSize,"onUpdate:modelValue":he[0]||(he[0]=pe=>vue.unref(ue).symbolSize=pe),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标域"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"粗细(0不显示)"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).markArea.itemStyle.borderWidth,"onUpdate:modelValue":he[1]||(he[1]=pe=>vue.unref(ue).markArea.itemStyle.borderWidth=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).markArea.itemStyle.borderType,"onUpdate:modelValue":he[2]||(he[2]=pe=>vue.unref(ue).markArea.itemStyle.borderType=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[3]||(he[3]=pe=>vue.unref(ue).label.show=pe)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[4]||(he[4]=pe=>vue.unref(ue).label.position=pe),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,pe=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:pe.value,label:pe.label,value:pe.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[5]||(he[5]=pe=>vue.unref(ue).label.rotate=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[6]||(he[6]=pe=>vue.unref(ue).label.fontSize=pe),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[7]||(he[7]=pe=>vue.unref(ue).label.color=pe)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[8]||(he[8]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[9]||(he[9]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ne),size:"small",modelValue:vue.unref(se)[pe].itemStyle.color,"onUpdate:modelValue":me=>vue.unref(se)[pe].itemStyle.color=me},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1n,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_2$1a,[vue.unref(se)[pe]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,onCommand:me=>de(me,pe)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"scatter"},{default:vue.withCtx(()=>[vue.createTextVNode("普通")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElDropdownItem),{command:"effectScatter"},{default:vue.withCtx(()=>[vue.createTextVNode("特效")]),_:1})]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_3$11,vue.toDisplayString(vue.unref(se)[pe].type=="scatter"?"普通":"特效"),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:me=>fe(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$Z),_hoisted_5$N])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1m={class:"flex items-center justify-end flex-1"},_hoisted_2$19=["onClick"],_hoisted_3$10=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1B=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){var fe;const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,re=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],oe=[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}],{setChartData:ie}=useCustomChart(),{seriesItem:le,init:ae,customSeriesData:se}=useRadar();vue.ref(null);const ue=vue.ref(JSON.parse(JSON.stringify((fe=vue.unref(se))!=null&&fe.type?se.value:le)));vue.watch(ue,()=>ce(),{deep:!0}),vue.watch([()=>G.option.dataShow.y,()=>G.option.dataShow.hide],()=>{ae(G.option,()=>{ce()})},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.dataShow.x,async()=>{G.option.dataset.source=await ie(G.type,G.option.dataShow.x),ae(G.option,()=>{ce()})});const ce=()=>{const ve=ue.value;Object.keys(G.option.series[0]).forEach(he=>{["areaStyle","label"].includes(he)&&(G.option.series[0][he]=ve[he])}),se.value={...G.option.series[0],data:[]},window.customSeriesData=se.value},de=ve=>{const{hide:he}=G.option.dataShow;he.includes(ve)?he.splice(he.findIndex(pe=>pe==ve),1):he.push(ve)};return(ve,he)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ve.option,type:4},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"雷达图配置"},{default:vue.withCtx(()=>{var pe;return[vue.createVNode(_sfc_main$1J,{name:"样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"背景"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.splitArea.show,"onUpdate:modelValue":he[0]||(he[0]=ge=>ve.option.radar.splitArea.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"分割线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.splitLine.show,"onUpdate:modelValue":he[1]||(he[1]=ge=>ve.option.radar.splitLine.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.radar.shape,"onUpdate:modelValue":he[2]||(he[2]=ge=>ve.option.radar.shape=ge),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(oe,ge=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ge.value,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"坐标轴"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"轴线"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisLine.show,"onUpdate:modelValue":he[3]||(he[3]=ge=>ve.option.radar.axisLine.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"刻度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisTick.show,"onUpdate:modelValue":he[4]||(he[4]=ge=>ve.option.radar.axisTick.show=ge)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"范围"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"最小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.radius[0],"onUpdate:modelValue":he[5]||(he[5]=ge=>ve.option.radar.radius[0]=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最大"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.radius[1],"onUpdate:modelValue":he[6]||(he[6]=ge=>ve.option.radar.radius[1]=ge),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"偏移"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"x"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.center[0],"onUpdate:modelValue":he[7]||(he[7]=ge=>ve.option.radar.center[0]=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"y"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ve.option.radar.center[1],"onUpdate:modelValue":he[8]||(he[8]=ge=>ve.option.radar.center[1]=ge),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"指示器"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ve.option.radar.axisName.show,"onUpdate:modelValue":he[9]||(he[9]=ge=>ve.option.radar.axisName.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ve.option.radar.axisName.fontSize,"onUpdate:modelValue":he[10]||(he[10]=ge=>ve.option.radar.axisName.fontSize=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ve.option.radar.axisName.color,"onUpdate:modelValue":he[11]||(he[11]=ge=>ve.option.radar.axisName.color=ge)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"标签"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(ue).label.show,"onUpdate:modelValue":he[12]||(he[12]=ge=>vue.unref(ue).label.show=ge)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"位置"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:vue.unref(ue).label.position,"onUpdate:modelValue":he[13]||(he[13]=ge=>vue.unref(ue).label.position=ge),size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(re,ge=>vue.createVNode(vue.unref(elementPlus.ElOption),{key:ge.value,label:ge.label,value:ge.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"旋转"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.rotate,"onUpdate:modelValue":he[14]||(he[14]=ge=>vue.unref(ue).label.rotate=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).label.fontSize,"onUpdate:modelValue":he[15]||(he[15]=ge=>vue.unref(ue).label.fontSize=ge),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:vue.unref(ue).label.color,"onUpdate:modelValue":he[16]||(he[16]=ge=>vue.unref(ue).label.color=ge)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),(pe=vue.unref(ue))!=null&&pe.type?(vue.openBlock(),vue.createBlock(_sfc_main$1J,{key:0,name:"系列"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"背景透明度"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(ue).areaStyle.opacity,"onUpdate:modelValue":he[17]||(he[17]=ge=>vue.unref(ue).areaStyle.opacity=ge),min:0,max:1,size:"small",step:.1},null,8,["modelValue"])]),_:1})]),_:1})):vue.createCommentVNode("",!0)]}),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"X轴",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ve.option.dataShow.x,"onUpdate:modelValue":he[18]||(he[18]=pe=>ve.option.dataShow.x=pe),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:pe.comment,label:pe.comment,value:pe.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:ve.option.dataShow.y,"onUpdate:modelValue":he[19]||(he[19]=pe=>ve.option.dataShow.y=pe),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ve.option.dataShow.y,(pe,ge)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"w-full sort-item"},[vue.createElementVNode("span",null,vue.toDisplayString(pe),1),vue.createElementVNode("div",_hoisted_1$1m,[vue.createElementVNode("i",{onClick:me=>de(pe),class:vue.normalizeClass([ve.option.dataShow.hide.includes(pe)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_2$19),_hoisted_3$10])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1l={class:"ml-2"},_hoisted_2$18={class:"flex items-center justify-end flex-1"},_hoisted_3$$=vue.createElementVNode("i",{class:"mr-2 cursor-pointer ri-more-line"},null,-1),_hoisted_4$Y=["onClick"],_hoisted_5$M=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1A=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){screenDesignMainStore();const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor;useCustomChart();const{init:ne,numberConfig:re,customSeriesData:oe}=useNumber();vue.ref(null);const ie=vue.ref(JSON.parse(JSON.stringify(re)));vue.watch(ie,()=>le(),{deep:!0}),vue.watch(()=>U.option.dataShow,()=>{ne(U.option)},{deep:!0,immediate:U.immediate});const le=()=>{},ae=se=>{const{hide:ue=[]}=U.option.dataShow;ue.includes(se)?ue.splice(ue.findIndex(ce=>ce==se),1):ue.push(se),U.option.dataShow.hide=ue};return(se,ue)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"间距",name:"margin"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"外间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:se.option.margin,"onUpdate:modelValue":ue[0]||(ue[0]=ce=>se.option.margin=ce),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"内间距"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:se.option.padding,"onUpdate:modelValue":ue[1]||(ue[1]=ce=>se.option.padding=ce),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"列名"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:se.option.dataShow.y,"onUpdate:modelValue":ue[2]||(ue[2]=ce=>se.option.dataShow.y=ce),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.option.dataShow.y,(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{key:ce,class:"w-full sort-item"},[vue.unref(oe)[ce]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].bgColor,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].bgColor=fe},null,8,["predefine","modelValue","onUpdate:modelValue"]),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].color,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].color=fe},null,8,["predefine","modelValue","onUpdate:modelValue"])],64)):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1l,vue.toDisplayString(ce),1),vue.createElementVNode("div",_hoisted_2$18,[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,width:400,trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$$]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].prefix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].prefix=fe,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].suffix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].suffix=fe,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(oe)[ce].toFixed,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].toFixed=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(oe)[ce].fontSize,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].fontSize=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"隐藏标题"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(oe)[ce].hideLabel,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].hideLabel=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"标题大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:vue.unref(oe)[ce].titleFontSize,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].titleFontSize=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:fe=>ae(ce),class:vue.normalizeClass([(se.option.dataShow.hide??[]).includes(ce)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$Y),_hoisted_5$M])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),_hoisted_1$1k={class:"ml-2"},_hoisted_2$17={class:"flex items-center justify-end flex-1"},_hoisted_3$_=vue.createElementVNode("i",{class:"mr-2 cursor-pointer ri-more-line"},null,-1),_hoisted_4$X=["onClick"],_hoisted_5$L=vue.createElementVNode("i",{class:"cursor-move ri-draggable sortable-handle"},null,-1),_sfc_main$1z=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){screenDesignMainStore();const U=te,{proxy:G}=vue.getCurrentInstance(),ee=G.$globalPreColor;useCustomChart();const{init:ne,tableConfig:re,customSeriesData:oe}=useTable();vue.ref(null);const ie=vue.ref(JSON.parse(JSON.stringify(re)));vue.watch(ie,()=>le(),{deep:!0}),vue.watch(()=>U.option.dataShow,()=>{ne(U.option)},{deep:!0,immediate:U.immediate});const le=()=>{},ae=se=>{const{hide:ue}=U.option.dataShow;ue.includes(se)?ue.splice(ue.findIndex(ce=>ce==se),1):ue.push(se)};return(se,ue)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:"表格设置"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"显示序号"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:U.option.showIndex,"onUpdate:modelValue":ue[0]||(ue[0]=ce=>U.option.showIndex=ce)},null,8,["modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"列名"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"",style:{width:"100%","margin-top":"10px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:se.option.dataShow.y,"onUpdate:modelValue":ue[1]||(ue[1]=ce=>se.option.dataShow.y=ce),animation:150,handle:".sortable-handle"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.option.dataShow.y,(ce,de)=>(vue.openBlock(),vue.createElementBlock("div",{key:ce,class:"w-full sort-item"},[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElColorPicker),{key:0,predefine:vue.unref(ee),size:"small",modelValue:vue.unref(oe)[ce].color,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].color=fe},null,8,["predefine","modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),vue.createElementVNode("span",_hoisted_1$1k,vue.toDisplayString(ce),1),vue.createElementVNode("div",_hoisted_2$17,[vue.unref(oe)[ce]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopover),{key:0,width:400,trigger:"hover"},{reference:vue.withCtx(()=>[_hoisted_3$_]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"前缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].prefix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].prefix=fe,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"后缀"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(oe)[ce].suffix,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].suffix=fe,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"保留小数"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,modelValue:vue.unref(oe)[ce].toFixed,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].toFixed=fe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"统计"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:vue.unref(oe)[ce].sum,"onUpdate:modelValue":fe=>vue.unref(oe)[ce].sum=fe},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{onClick:fe=>ae(ce),class:vue.normalizeClass([se.option.dataShow.hide.includes(ce)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,_hoisted_4$X),_hoisted_5$L])]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),_hoisted_1$1j={class:"flex items-center"},_hoisted_2$16=vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),_hoisted_3$Z={class:"flex items-center"},_hoisted_4$W=vue.createElementVNode("span",{class:"ml-1 mr-1"},"-",-1),_sfc_main$1y=vue.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(te){const U=screenDesignMainStore(),G=te,{proxy:ee}=vue.getCurrentInstance(),ne=ee.$globalPreColor,{init:re,city:oe}=useMap();return vue.watch(()=>G.option.style.style1,async ie=>{G.option.series[1]=ie},{deep:!0,immediate:G.immediate}),vue.watch(()=>G.option.style.style2,async ie=>{G.option.series[2]=ie},{deep:!0,immediate:G.immediate}),(ie,le)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(SettingCommon,{option:ie.option,type:9},null,8,["option"]),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"地图数据"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTreeSelect),{modelValue:ie.option.code,"onUpdate:modelValue":le[0]||(le[0]=ae=>ie.option.code=ae),data:vue.unref(oe),props:{label:"name",value:"code",children:"children"},onChange:le[1]||(le[1]=ae=>vue.unref(re)(ie.option)),filterable:"","node-key":"code","check-strictly":""},null,8,["modelValue","data"])]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"视觉映射"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.visualMap.show,"onUpdate:modelValue":le[2]||(le[2]=ae=>ie.option.visualMap.show=ae)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"文本"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1j,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.text[1],"onUpdate:modelValue":le[3]||(le[3]=ae=>ie.option.visualMap.text[1]=ae),size:"small"},null,8,["modelValue"]),_hoisted_2$16,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.text[0],"onUpdate:modelValue":le[4]||(le[4]=ae=>ie.option.visualMap.text[0]=ae),size:"small"},null,8,["modelValue"])])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小值-最高值"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$Z,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.min,"onUpdate:modelValue":le[5]||(le[5]=ae=>ie.option.visualMap.min=ae),size:"small"},null,8,["modelValue"]),_hoisted_4$W,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:ie.option.visualMap.max,"onUpdate:modelValue":le[6]||(le[6]=ae=>ie.option.visualMap.max=ae),size:"small"},null,8,["modelValue"])])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"最小颜色-最高颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.visualMap.inRange.color[0],"onUpdate:modelValue":le[7]||(le[7]=ae=>ie.option.visualMap.inRange.color[0]=ae)},null,8,["predefine","modelValue"]),vue.createTextVNode(" - "),vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.visualMap.inRange.color[1],"onUpdate:modelValue":le[8]||(le[8]=ae=>ie.option.visualMap.inRange.color[1]=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"地图"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"展示标签"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.geo.label.show,"onUpdate:modelValue":le[9]||(le[9]=ae=>ie.option.geo.label.show=ae)},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"缩放"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{step:.1,modelValue:ie.option.geo.zoom,"onUpdate:modelValue":le[10]||(le[10]=ae=>ie.option.geo.zoom=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.label.fontSize,"onUpdate:modelValue":le[11]||(le[11]=ae=>ie.option.geo.label.fontSize=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.label.color,"onUpdate:modelValue":le[12]||(le[12]=ae=>ie.option.geo.label.color=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),vue.createVNode(_sfc_main$1J,{name:"移动效果"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"区块颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.itemStyle.areaColor,"onUpdate:modelValue":le[13]||(le[13]=ae=>ie.option.geo.emphasis.itemStyle.areaColor=ae)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.itemStyle.borderColor,"onUpdate:modelValue":le[14]||(le[14]=ae=>ie.option.geo.emphasis.itemStyle.borderColor=ae)},null,8,["predefine","modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"边框大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.emphasis.itemStyle.borderWidth,"onUpdate:modelValue":le[15]||(le[15]=ae=>ie.option.geo.emphasis.itemStyle.borderWidth=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.geo.emphasis.label.fontSize,"onUpdate:modelValue":le[16]||(le[16]=ae=>ie.option.geo.emphasis.label.fontSize=ae),size:"small"},null,8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"字体颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.geo.emphasis.label.color,"onUpdate:modelValue":le[17]||(le[17]=ae=>ie.option.geo.emphasis.label.color=ae)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(["style1","style2"],ae=>vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:ae=="style1"?"散点样式":"点位样式"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"形状"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.style[ae].symbol,"onUpdate:modelValue":se=>ie.option.style[ae].symbol=se,size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(dict).shape,se=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:se.value,label:se.label,value:se.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.style[ae].symbolSize,"onUpdate:modelValue":se=>ie.option.style[ae].symbolSize=se,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"形状颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.style[ae].itemStyle.color,"onUpdate:modelValue":se=>ie.option.style[ae].itemStyle.color=se},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),ie.option.style[ae].label?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(_sfc_main$1I,{name:"值显示"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:ie.option.style[ae].label.show,"onUpdate:modelValue":se=>ie.option.style[ae].label.show=se},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"颜色"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElColorPicker),{predefine:vue.unref(ne),modelValue:ie.option.style[ae].label.color,"onUpdate:modelValue":se=>ie.option.style[ae].label.color=se},null,8,["predefine","modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(_sfc_main$1I,{name:"字体大小"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:ie.option.style[ae].label.fontSize,"onUpdate:modelValue":se=>ie.option.style[ae].label.fontSize=se,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)],64)):vue.createCommentVNode("",!0)]),_:2},1024)]),_:2},1032,["title"])),64)),vue.createVNode(vue.unref(elementPlus.ElCollapseItem),{title:"数据",name:"data"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1J,{name:""},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1I,{name:"维度",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.dataShow.x,"onUpdate:modelValue":le[18]||(le[18]=ae=>ie.option.dataShow.x=ae),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.x,ae=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ae.comment,label:ae.comment,value:ae.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),vue.createVNode(_sfc_main$1I,{name:"统计",style:{width:"100%"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:ie.option.dataShow.y,"onUpdate:modelValue":le[19]||(le[19]=ae=>ie.option.dataShow.y=ae),size:"small",style:{width:"100%"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(U).getChartData.y.filter(ae=>ae.aggType!="other"),ae=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ae.showLabel,label:ae.showLabel,value:ae.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),moudleComponents={};for(let te=0;te<=4;te+=1){let U=null;if(te==0&&(U=Object.assign({"../decoration/decoration1/setting.vue":__vite_glob_0_0,"../decoration/decoration10/setting.vue":__vite_glob_0_1,"../decoration/decoration11/setting.vue":__vite_glob_0_2,"../decoration/decoration12/setting.vue":__vite_glob_0_3,"../decoration/decoration2/setting.vue":__vite_glob_0_4,"../decoration/decoration3/setting.vue":__vite_glob_0_5,"../decoration/decoration4/setting.vue":__vite_glob_0_6,"../decoration/decoration5/setting.vue":__vite_glob_0_7,"../decoration/decoration6/setting.vue":__vite_glob_0_8,"../decoration/decoration8/setting.vue":__vite_glob_0_9,"../decoration/decoration9/setting.vue":__vite_glob_0_10})),te==1&&(U=Object.assign({"../border/border1/setting.vue":__vite_glob_1_0,"../border/border10/setting.vue":__vite_glob_1_1,"../border/border11/setting.vue":__vite_glob_1_2,"../border/border12/setting.vue":__vite_glob_1_3,"../border/border13/setting.vue":__vite_glob_1_4,"../border/border2/setting.vue":__vite_glob_1_5,"../border/border3/setting.vue":__vite_glob_1_6,"../border/border4/setting.vue":__vite_glob_1_7,"../border/border5/setting.vue":__vite_glob_1_8,"../border/border6/setting.vue":__vite_glob_1_9,"../border/border7/setting.vue":__vite_glob_1_10,"../border/border8/setting.vue":__vite_glob_1_11,"../border/border9/setting.vue":__vite_glob_1_12})),te==2&&(U=Object.assign({"../basic/horizontal-line/setting.vue":__vite_glob_2_0,"../basic/iframe/setting.vue":__vite_glob_2_1,"../basic/img/setting.vue":__vite_glob_2_2,"../basic/number/setting.vue":__vite_glob_2_3,"../basic/square/setting.vue":__vite_glob_2_4,"../basic/text/setting.vue":__vite_glob_2_5,"../basic/time/setting.vue":__vite_glob_2_6,"../basic/vertical-line/setting.vue":__vite_glob_2_7})),te==3&&(moudleComponents[3]=_sfc_main$1G,moudleComponents[2]=_sfc_main$1E,moudleComponents[1]=_sfc_main$1F,moudleComponents[4]=_sfc_main$1B,moudleComponents[5]=_sfc_main$1D,moudleComponents[6]=_sfc_main$1C,moudleComponents[7]=_sfc_main$1A,moudleComponents[8]=_sfc_main$1z,moudleComponents[9]=_sfc_main$1y),te==4&&(U=Object.assign({"../control/input/setting.vue":__vite_glob_3_0,"../control/select/setting.vue":__vite_glob_3_1})),U)for(const[G,ee]of Object.entries(U)){const ne=G.split("/")[2];moudleComponents[ne]=ee.default}}const _withScopeId$w=te=>(vue.pushScopeId("data-v-91a48762"),te=te(),vue.popScopeId(),te),_hoisted_1$1i=_withScopeId$w(()=>vue.createElementVNode("div",{class:"flex items-center h-10 p-2"},[vue.createElementVNode("span",{class:"w-1 h-4 mr-2 bg-color-primary"}),vue.createTextVNode(" 大屏设置 ")],-1)),_hoisted_2$15=_withScopeId$w(()=>vue.createElementVNode("div",{class:"h-px mb-2",style:{"background-color":"var(--el-border-color-light)"}},null,-1)),_hoisted_3$Y={class:"p-2"},_sfc_main$1x=vue.defineComponent({__name:"rightPannel",setup(te){const U=screenDesignMainStore(),G=vue.ref({});vue.provide("widgetConfig",G);const ee=vue.ref(""),ne=vue.computed(()=>U.targetsWidget.length===1?U.getWidgetList.find(oe=>{var ie;return oe.id==((ie=U.targetsWidget[0])==null?void 0:ie.id)}):null);vue.watch(ne,oe=>{re()});const re=()=>{if(!vue.unref(ne)){G.value={};return}const oe=U.getWidgetList.find(ie=>ie.id==vue.unref(ne).id);vue.unref(ne).chartType&&(oe==null?void 0:oe.modelType)!="INDICATORS"&&(window.customSeriesData=oe.customize.customSeriesData,U.setChartData(U.tempChartData[oe.id].params)),G.value=oe,ee.value=""};return re(),(oe,ie)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElScrollbar),{height:"100%"},{default:vue.withCtx(()=>{var le,ae,se;return[_hoisted_1$1i,_hoisted_2$15,((le=vue.unref(G))==null?void 0:le.modelType)=="INDICATORS"?(vue.openBlock(),vue.createBlock(_sfc_main$2k,{key:0})):(ae=vue.unref(G))!=null&&ae.chartType?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(_sfc_main$2k),vue.createElementVNode("div",_hoisted_3$Y,[vue.createVNode(vue.unref(elementPlus.ElCollapse),{accordion:"",modelValue:vue.unref(ee),"onUpdate:modelValue":ie[0]||(ie[0]=ue=>vue.isRef(ee)?ee.value=ue:null)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(moudleComponents)[vue.unref(G).chartType]),{key:vue.unref(G).id,immediate:"",option:vue.unref(G).customize,type:vue.unref(G).chartType},null,8,["option","type"]))]),_:1},8,["modelValue"])])],64)):vue.unref(moudleComponents)[(se=vue.unref(G))==null?void 0:se.type]?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(moudleComponents)[vue.unref(G).type]),{key:vue.unref(G).id})):(vue.openBlock(),vue.createBlock(stagetSetting,{key:3}))]}),_:1}))}}),rightPannel_vue_vue_type_style_index_0_scoped_91a48762_lang="",RightPannel=_export_sfc$2(_sfc_main$1x,[["__scopeId","data-v-91a48762"]]),_hoisted_1$1h={class:"flex flex-col overflow-hidden ace-big-screen"},_hoisted_2$14={class:"h-10 top-pannel"},_hoisted_3$X={class:"relative flex flex-1"},_hoisted_4$V={class:"left-pannel"},_hoisted_5$K={class:"flex-1 p-2 overflow-hidden",id:"design-container"},_hoisted_6$F={class:"relative w-full h-full"},_hoisted_7$z={key:0,class:"right-pannel w-80"},_sfc_main$1w=vue.defineComponent({__name:"design",emits:["preview","save"],setup(te,{expose:U,emit:G}){const ee=G,{proxy:ne}=vue.getCurrentInstance(),re=screenDesignMainStore(),oe=vue.ref(!1),ie=vue.ref(""),le=vue.ref("");return vue.watch(oe,se=>{se?document.getElementsByTagName("html")[0].className=re.theme:document.getElementsByTagName("html")[0].className=""}),U({init:async(se="",ue="")=>{if(le.value=se,ie.value="大屏管理",oe.value=!0,re.widgetConfg={config:{},list:[]},re.clearSketchRuleLine(),re.setRightPannel(!1),se){const ce=await ne.$baseHttp.get("/api/ace-data-center/screen/detail",{params:{id:se},headers:{loading:!0}});ie.value=ce.data.title,re.widgetConfg=chartJsonFormat(ce.data.config),ue==="COPY"&&(le.value="")}re.setStageWidth(re.widgetConfg.config.stageWidth??1920),re.setStageHeight(re.widgetConfg.config.stageHeight??1080)}}),(se,ue)=>{const ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ce,{modelValue:vue.unref(oe),"onUpdate:modelValue":ue[4]||(ue[4]=de=>vue.isRef(oe)?oe.value=de:null),title:"大屏设计",size:"100%",withHeader:!1,modalClass:"ace-modal-drawer",customClass:"ace-big-design-dialog"},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1h,[vue.createElementVNode("div",_hoisted_2$14,[vue.createVNode(TopPannel,{title:vue.unref(ie),"onUpdate:title":ue[0]||(ue[0]=de=>vue.isRef(ie)?ie.value=de:null),id:vue.unref(le),onPreview:ue[1]||(ue[1]=de=>ee("preview",de)),onSave:ue[2]||(ue[2]=de=>{le.value=de,ee("save")}),onBack:ue[3]||(ue[3]=()=>oe.value=!1)},null,8,["title","id"])]),vue.createElementVNode("div",_hoisted_3$X,[vue.createElementVNode("div",_hoisted_4$V,[vue.createVNode(LeftPannel)]),vue.createElementVNode("div",_hoisted_5$K,[vue.createElementVNode("div",_hoisted_6$F,[vue.createVNode(Main)])]),vue.unref(re).getRightPannel?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$z,[vue.createVNode(RightPannel)])):vue.createCommentVNode("",!0)])])),[[vue.unref(elementPlus.vLoading),vue.unref(re).createLoading]])]),_:1},8,["modelValue"])}}}),design_vue_vue_type_style_index_0_lang="",_withScopeId$v=te=>(vue.pushScopeId("data-v-144f5695"),te=te(),vue.popScopeId(),te),_hoisted_1$1g={key:1,class:"flex flex-wrap items-center justify-between"},_hoisted_2$13={class:"item-container"},_hoisted_3$W={class:"item-image"},_hoisted_4$U=["src"],_hoisted_5$J=["onClick"],_hoisted_6$E=_withScopeId$v(()=>vue.createElementVNode("span",{class:"text-base text-white cursor-pointer"},"预览大屏",-1)),_hoisted_7$y=[_hoisted_6$E],_hoisted_8$t={class:"flex items-center justify-between item-footer"},_hoisted_9$p={class:"flex"},_hoisted_10$k=["onClick"],_hoisted_11$f=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-edit-line"},null,-1)),_hoisted_12$d=["onClick"],_hoisted_13$b=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-file-copy-line"},null,-1)),_hoisted_14$a=["onClick"],_hoisted_15$6=_withScopeId$v(()=>vue.createElementVNode("i",{class:"mr-1 ri-delete-bin-line"},null,-1)),_hoisted_16$5=_withScopeId$v(()=>vue.createElementVNode("div",{class:"item"},null,-1)),_hoisted_17$4=_withScopeId$v(()=>vue.createElementVNode("div",{class:"item"},null,-1)),_sfc_main$1v=vue.defineComponent({__name:"index",emits:["preview","auto-play"],setup(te,{emit:U}){const G=U,{proxy:ee}=vue.getCurrentInstance(),{resetUrl:ne}=ee.$globalUtils,re=vue.ref(null),oe=vue.ref(null),ie=vue.reactive([{name:"新增",key:"ADD",type:"primary"},{name:"自动播放",key:"AUTO-PLAY",type:"primary"}]),le=vue.reactive([{name:"名称",type:FieldType.Text,fieldName:"title",value:""}]),ae=async se=>{const{type:ue,row:ce}=se;switch(ue){case"PREVIEW":G("preview","list",(ce==null?void 0:ce.id)??"");break;case"AUTO-PLAY":G("auto-play");break;case"ADD":case"EDIT":case"COPY":vue.unref(oe).init((ce==null?void 0:ce.id)??"",ue);break;case"DEL":ee.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await ee.$baseHttp.post("/api/ace-data-center/screen/remove",{},{params:{ids:ce.id},headers:{loading:!0}})&&(ee.$message({type:"success",message:"删除成功",plain:!0}),vue.unref(re).getData())}});break}};return(se,ue)=>{const ce=vue.resolveComponent("AppEmpty"),de=vue.resolveComponent("AppList");return vue.openBlock(),vue.createBlock(de,{url:`/api/ace-data-center/screen/list?descs=create_time&projectId=${vue.unref(ee).$baseGetCurrentProjectId()}`,tableData:[],searchForm:vue.unref(le),searchBtns:vue.unref(ie),listType:"custom",onBtnClick:ae,ref_key:"appListRef",ref:re},{"list-slot":vue.withCtx(({list:fe,loading:ve})=>[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:ve,animated:""},{default:vue.withCtx(()=>[fe.length==0?(vue.openBlock(),vue.createBlock(ce,{key:0,description:"暂无数据"})):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$1g,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe,(he,pe)=>(vue.openBlock(),vue.createElementBlock("div",{key:pe,class:"item"},[vue.createElementVNode("div",_hoisted_2$13,[vue.createElementVNode("div",_hoisted_3$W,[vue.createElementVNode("img",{src:vue.unref(ne)(he.imageUrl??"")||"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg"},null,8,_hoisted_4$U),vue.createElementVNode("div",{class:"flex items-center justify-center item-popup",onClick:ge=>ae({type:"PREVIEW",row:he,index:pe})},_hoisted_7$y,8,_hoisted_5$J)]),vue.createElementVNode("div",_hoisted_8$t,[vue.createElementVNode("div",null,vue.toDisplayString(he.title),1),vue.createElementVNode("div",_hoisted_9$p,[vue.createElementVNode("span",{onClick:ge=>ae({type:"EDIT",row:he,index:pe}),class:"flex items-center text-xs text-gray-600 cursor-pointer"},[_hoisted_11$f,vue.createTextVNode(" 编辑大屏 ")],8,_hoisted_10$k),vue.createElementVNode("span",{onClick:ge=>ae({type:"COPY",row:he,index:pe}),class:"flex items-center ml-2 text-xs text-gray-600 cursor-pointer"},[_hoisted_13$b,vue.createTextVNode(" 复制 ")],8,_hoisted_12$d),vue.createElementVNode("span",{onClick:ge=>ae({type:"DEL",row:he,index:pe}),class:"flex items-center ml-2 text-xs cursor-pointer text-color-danger"},[_hoisted_15$6,vue.createTextVNode(" 删除 ")],8,_hoisted_14$a)])])])]))),128)),_hoisted_16$5,_hoisted_17$4]))]),_:2},1032,["loading"])]),default:vue.withCtx(()=>[vue.createVNode(_sfc_main$1w,{ref_key:"designRef",ref:oe,onSave:ue[0]||(ue[0]=fe=>vue.unref(re).getData()),onPreview:ue[1]||(ue[1]=fe=>G("preview","content",fe))},null,512)]),_:1},8,["url","searchForm","searchBtns"])}}}),index_vue_vue_type_style_index_0_scoped_144f5695_lang="",aceBigScreen=_export_sfc$2(_sfc_main$1v,[["__scopeId","data-v-144f5695"]]);let currRenderDom=null,currelRectification="",currelRectificationLevel="",currelRectificationIsKeepRatio="",resizeListener=null,timer=null,currScale=1,isElRectification=!1;const autofit={isAutofitRunnig:!1,init(te={},U=!0){U&&console.log("autofit.js is running");const{dw:G=1920,dh:ee=1080,el:ne=typeof te=="string"?te:"body",resize:re=!0,ignore:oe=[],transition:ie="none",delay:le=0,limit:ae=.1}=te;currRenderDom=ne;let se=document.querySelector(ne);if(!se){console.error(`autofit: '${ne}' is not exist`);return}const ue=document.createElement("style"),ce=document.createElement("style");ue.lang="text/css",ce.lang="text/css",ue.id="autofit-style",ce.id="ignoreStyle",ue.innerHTML="body {overflow: hidden;}";const de=document.querySelector("body");de.appendChild(ue),de.appendChild(ce),se.style.height=`${ee}px`,se.style.width=`${G}px`,se.style.transformOrigin="0 0",se.style.overflow="hidden",keepFit(G,ee,se,oe,ae),resizeListener=()=>{clearTimeout(timer),le!=0?timer=setTimeout(()=>{keepFit(G,ee,se,oe,ae),isElRectification&&elRectification(currelRectification,currelRectificationIsKeepRatio,currelRectificationLevel)},le):(keepFit(G,ee,se,oe,ae),isElRectification&&elRectification(currelRectification,currelRectificationIsKeepRatio,currelRectificationLevel))},re&&window.addEventListener("resize",resizeListener),this.isAutofitRunnig=!0,setTimeout(()=>{se.style.transition=`${ie}s`})},off(te="body"){try{isElRectification=!1,window.removeEventListener("resize",resizeListener),document.querySelector("#autofit-style").remove();const U=document.querySelector("#ignoreStyle");U&&U.remove(),document.querySelector(currRenderDom||te).style="",isElRectification&&offelRectification()}catch(U){console.error("autofit: Failed to remove normally",U),this.isAutofitRunnig=!1}this.isAutofitRunnig&&console.log("autofit.js is off")}};function elRectification(te,U=!0,G=1){autofit.isAutofitRunnig||console.error("autofit.js:autofit has not been initialized yet"),!te&&console.error(`autofit.js:bad selector: ${te}`),currelRectification=te,currelRectificationLevel=G,currelRectificationIsKeepRatio=U;const ee=document.querySelectorAll(te);if(ee.length==0){console.error("autofit.js:elRectification found no element");return}for(let ne of ee){let re=currScale==1?1:currScale*G;isElRectification||(ne.originalWidth=ne.clientWidth,ne.originalHeight=ne.clientHeight),U?(ne.style.width=`${ne.originalWidth*re}px`,ne.style.height=`${ne.originalHeight*re}px`):(ne.style.width=`${100*re}%`,ne.style.height=`${100*re}%`),ne.style.transform=`scale(${1/currScale})`,ne.style.transformOrigin="0 0"}isElRectification=!0}function offelRectification(){if(currelRectification)for(let te of document.querySelectorAll(currelRectification))te.style.width="",te.style.height="",te.style.transform=""}function keepFit(te,U,G,ee,ne){let re=document.documentElement.clientHeight,oe=document.documentElement.clientWidth;currScale=oe/re<te/U?oe/te:re/U,currScale=Math.abs(1-currScale)>ne?currScale.toFixed(2):1;let ie=Math.round(re/currScale),le=Math.round(oe/currScale);G.style.height=`${ie}px`,G.style.width=`${le}px`,G.style.transform=`scale(${currScale})`;const ae=document.querySelector("#ignoreStyle");ae.innerHTML="";for(let se of ee){let ue=se.el||se.dom;if(typeof se=="string"&&(ue=se),!ue){console.error(`autofit: bad selector: ${ue}`);continue}let ce=se.scale?se.scale:1/currScale,de=ce!=currScale?se.fontSize:"autofit",fe=ce!=currScale?se.width:"autofit",ve=ce!=currScale?se.height:"autofit";new RegExp(`${ue}( |{)`,"gm").test(ae.innerHTML)||(ae.innerHTML+=`
790
790
  ${ue} {
791
791
  transform: scale(${ce})!important;
792
792
  transform-origin: 0 0;
@@ -888,7 +888,7 @@ ${ue} div ,${ue} span,${ue} a,${ue} * {
888
888
  data-bold="${se}"
889
889
  data-color="${ue}"
890
890
  data-src="${le}"
891
- >${ie}</span>`},parseDemoHtml=te=>{const U=te.getAttribute("data-chartType")||"",G=te.getAttribute("data-id")||"",ee=te.getAttribute("data-content")||"",ne=te.getAttribute("data-singleValue")||"",re=te.getAttribute("data-singleValueKey")||"",oe=te.getAttribute("data-subtitle")||"",ie=te.getAttribute("data-width")||"",le=te.getAttribute("data-fontSize")||"",ae=te.getAttribute("data-bold")||"",se=te.getAttribute("data-color")||"",ue=te.getAttribute("data-src")||"",ce=te.getAttribute("data-indicatorsType")||"";return{type:"indicator",id:G,chartType:U,subtitle:oe,content:ee,width:ie,src:ue,fontSize:le,bold:ae,singleValue:ne,singleValueKey:re,color:se,indicatorsType:ce,children:[{text:ee}]}};function withMention(te){const{insertText:U,isInline:G,isVoid:ee}=te,ne=te;return ne.insertText=re=>{if(editor.DomEditor.getSelectedElems(ne).some(le=>ne.isVoid(le))){U(re);return}U(re)},ne.isInline=re=>editor.DomEditor.getNodeType(re)==="indicator"?!0:G(re),ne.isVoid=re=>editor.DomEditor.getNodeType(re)==="indicator"?!0:ee(re),ne}const aceIndicatorReportPlugin={editorPlugin:withMention,renderElems:[{type:"indicator",renderElem:renderIndicator}],elemsToHtml:[{type:"indicator",elemToHtml:indicatorToHtml}],parseElemsHtml:[{selector:'span[data-w-e-type="indicator"]',parseElemHtml:parseDemoHtml}]},_withScopeId$s=te=>(vue.pushScopeId("data-v-5520f2bf"),te=te(),vue.popScopeId(),te),_hoisted_1$17={class:"flex-1 p-2 border border-gray-200 border-solid"},_hoisted_2$Y={class:"flex justify-end"},_hoisted_3$Q=_withScopeId$s(()=>vue.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1)),_hoisted_4$O={class:"overflow-y-auto max-h-80"},_hoisted_5$E=_withScopeId$s(()=>vue.createElementVNode("span",{class:"ml-2 mr-2"},"~",-1)),_hoisted_6$z=_withScopeId$s(()=>vue.createElementVNode("span",{class:"ml-2 mr-2"},"~",-1)),_sfc_main$1k=vue.defineComponent({__name:"customSearch",props:{dynamicSearchForm:{default:()=>[]},customSearchVisible:{type:Boolean,default:!1}},emits:["update:customSearchVisible","dynamicSearchFormUpdate","success"],setup(te,{expose:U,emit:G}){var ge;const ee=te,ne=G;vue.watch(()=>ee.customSearchVisible,me=>{me&&vue.nextTick(()=>{he()})});const{proxy:re}=vue.getCurrentInstance(),oe=vue.inject("modelEle"),ie=vue.ref([]),le=vue.ref([]);re.$baseHttp.get(`/api/ace-data-center/model/detail?id=${(ge=vue.unref(oe))==null?void 0:ge.id}`).then(me=>{ie.value=me.data.listModelAttribute.map(_e=>({name:_e.attributeComment,key:_e.attributeCode,dataType:_e.dataType,checked:!1,type:"",value:"",minValue:"",maxValue:"",defaultRule:"",dictId:"",options:""}))});const ae=vue.ref([]);re.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${re.$baseGetCurrentProjectId()}`).then(me=>{ae.value=me.data});const se={yymmddSingle:[{name:"当日",value:"today"},{name:"昨天",value:"yesterday"}],yymmddhhmmssSingle:[{name:"当日",value:"today"}],yymmddhhmmssRange:[{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"}]},ue=me=>{let _e="date",be="YYYY-MM-DD";return["yyRange","yySingle"].includes(me)&&(_e="year",be="YYYY"),["yymmRange","yymmSingle"].includes(me)&&(_e="month",be="YYYY-MM"),{type:_e,format:be}},ce=(me,_e,be)=>me=="gt"?_e.getTime()>dayjs(be||"").valueOf():_e.getTime()<dayjs(be||"").valueOf(),de=(me,_e,be)=>{if(me[_e]==""||me[be]=="")return;const ye=Number(me[_e]),xe=Number(me[be]);(_e=="minValue"?ye>xe:ye<xe)&&(me[_e]=me[be])},fe=me=>{me.value="",me.options=[],me.dictId&&re.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${me.dictId}`).then(_e=>{me.options=_e.data??[]})},ve=me=>{me.value="",me.minValue="",me.maxValue="",me.defaultRule="",me.dictId="",me.options=[]},he=()=>{le.value=JSON.parse(JSON.stringify(vue.unref(ie))),vue.unref(le).forEach(me=>{const _e=ee.dynamicSearchForm.find(be=>be.key==me.key);_e&&(me.checked=!0,Object.keys(_e).forEach(be=>{me[be]=_e[be]})),["varchar","text"].includes(me.dataType)&&!_e&&(me.type="stringSingle")})},pe=()=>{ne("dynamicSearchFormUpdate",le.value.filter(me=>me.checked&&me.type)),ne("update:customSearchVisible",!1)};return U({init:he}),(me,_e)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$17,[vue.createElementVNode("div",_hoisted_2$Y,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:pe},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-3",size:"small",onClick:_e[0]||(_e[0]=be=>ne("update:customSearchVisible",!1))},{default:vue.withCtx(()=>[vue.createTextVNode(" 关闭 ")]),_:1})]),_hoisted_3$Q,vue.createElementVNode("div",_hoisted_4$O,[vue.createVNode(vue.unref(elementPlus.ElForm),{inline:"",size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(le),(be,ye)=>(vue.openBlock(),vue.createElementBlock("div",{key:ye},[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{modelValue:be.checked,"onUpdate:modelValue":xe=>be.checked=xe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"名称:"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:be.name,"onUpdate:modelValue":xe=>be.name=xe,size:"small",placeholder:"请输入名称",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"类型:"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{size:"small",clearable:"",teleported:!1,modelValue:be.type,"onUpdate:modelValue":xe=>be.type=xe,onChange:xe=>ve(be),placeholder:"类型"},{default:vue.withCtx(()=>[["date","datetime"].includes(be.dataType)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年·区间",value:"yyRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年·单值",value:"yySingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月·区间",value:"yymmRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月·单值",value:"yymmSingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月日·区间",value:"yymmddRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月日·单值",value:"yymmddSingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月日时分秒·区间",value:"yymmddhhmmssRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月日时分秒·单值",value:"yymmddhhmmssSingle"})],64)):["int","decimal","double"].includes(be.dataType)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"数值·区间",value:"numberRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"数值·单值",value:"numberSingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"下拉框·字典",value:"select"})],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"字符串",value:"stringSingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"字符串分隔",value:"stringMultiple"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"下拉框·字典",value:"select"})],64))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024),be.type?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"默认值:"},{default:vue.withCtx(()=>[se[be.type]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSelect),{key:0,size:"small",clearable:"",style:{"margin-right":"10px"},teleported:!1,modelValue:be.defaultRule,"onUpdate:modelValue":xe=>be.defaultRule=xe,placeholder:"默认值"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se[be.type],xe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:xe.name,value:xe.value,key:xe.value},null,8,["label","value"]))),128)),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"自定义",value:"custom"})]),_:2},1032,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),be.type.endsWith("Range")?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[["yyRange","yymmRange","yymmddRange"].includes(be.type)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(elementPlus.ElDatePicker),{size:"small",teleported:!1,modelValue:be.minValue,"onUpdate:modelValue":xe=>be.minValue=xe,clearable:"",placeholder:"开始","disabled-date":xe=>ce("gt",xe,be.maxValue),type:ue(be.type).type,"value-format":ue(be.type).format},null,8,["modelValue","onUpdate:modelValue","disabled-date","type","value-format"]),_hoisted_5$E,vue.createVNode(vue.unref(elementPlus.ElDatePicker),{size:"small",teleported:!1,modelValue:be.maxValue,"onUpdate:modelValue":xe=>be.maxValue=xe,clearable:"",placeholder:"结束","disabled-date":xe=>ce("lt",xe,be.minValue),type:ue(be.type).type,"value-format":ue(be.type).format},null,8,["modelValue","onUpdate:modelValue","disabled-date","type","value-format"])],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(vue.unref(elementPlus.ElInput),{size:"small",modelValue:be.minValue,"onUpdate:modelValue":xe=>be.minValue=xe,max:be.maxValue,clearable:!1,onBlur:xe=>de(be,"minValue","maxValue"),type:"number",placeholder:"最小值"},null,8,["modelValue","onUpdate:modelValue","max","onBlur"]),_hoisted_6$z,vue.createVNode(vue.unref(elementPlus.ElInput),{size:"small",modelValue:be.maxValue,"onUpdate:modelValue":xe=>be.maxValue=xe,min:be.minValue,clearable:!1,onBlur:xe=>de(be,"maxValue","minValue"),type:"number",placeholder:"最大值"},null,8,["modelValue","onUpdate:modelValue","min","onBlur"])],64))],64)):vue.createCommentVNode("",!0),be.type.includes("Single")?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[["yySingle","yymmSingle","yymmddSingle"].includes(be.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDatePicker),{key:0,size:"small",teleported:!1,modelValue:be.value,"onUpdate:modelValue":xe=>be.value=xe,clearable:"",placeholder:"请输入"+be.name,type:ue(be.type).type,"value-format":ue(be.type).format},null,8,["modelValue","onUpdate:modelValue","placeholder","type","value-format"])):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElInput),{key:1,size:"small",modelValue:be.value,"onUpdate:modelValue":xe=>be.value=xe,teleported:!1,clearable:"",type:be.type=="numberSingle"?"number":"",placeholder:"请输入"+be.name},null,8,["modelValue","onUpdate:modelValue","type","placeholder"]))],64)):vue.createCommentVNode("",!0),be.type=="stringMultiple"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSelect),{key:3,size:"small",teleported:!1,modelValue:be.value,"onUpdate:modelValue":xe=>be.value=xe,placeholder:"请选择",clearable:"",multiple:"",filterable:"","allow-create":"","reserve-keyword":!1,"default-first-option":""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(be.options,xe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:xe.label,value:xe.value,key:xe.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),be.type=="select"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:4},[vue.createVNode(vue.unref(elementPlus.ElSelect),{size:"small",teleported:!1,style:{"margin-right":"10px"},modelValue:be.dictId,"onUpdate:modelValue":xe=>be.dictId=xe,placeholder:"字典值",clearable:"",onChange:xe=>fe(be)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ae),xe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:xe.label,value:xe.code,key:xe.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),vue.createVNode(vue.unref(elementPlus.ElSelect),{size:"small",teleported:!1,modelValue:be.value,"onUpdate:modelValue":xe=>be.value=xe,placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(be.options,xe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:xe.name,value:xe.code,key:xe.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):vue.createCommentVNode("",!0)]),_:2},1024)):vue.createCommentVNode("",!0)]))),128))]),_:1})])]))}}),customSearch_vue_vue_type_style_index_0_scoped_5520f2bf_lang="",aceIndicatorCustomSearch=_export_sfc$2(_sfc_main$1k,[["__scopeId","data-v-5520f2bf"]]),_hoisted_1$16={class:"field"},_hoisted_2$X={class:"flex items-center justify-center flex-1 h-full overflow-hidden cursor-pointer field-container"},_hoisted_3$P=["onClick"],_hoisted_4$N={class:"overflow-hidden field-label whitespace-nowrap text-ellipsis"},_hoisted_5$D={key:0,class:"flex items-center h-full"},_hoisted_6$y={class:"mr-5"},_hoisted_7$u=["onClick"],_hoisted_8$q={key:0,class:"field-add"},_hoisted_9$n=["onClick"],_sfc_main$1j=vue.defineComponent({__name:"model-table-dimension",props:{loading:{type:Boolean,default:!0},iconMap:{default:()=>{}},calendarType:{default:()=>{}},modelValue:{default:()=>[]},list:{default:()=>[]}},emits:["success","update:modelValue"],setup(te,{emit:U}){const G=te,ee=U;vue.inject("chartList");const ne=vue.ref(""),re=vue.computed(()=>G.list.filter(se=>se.columnComment.indexOf(vue.unref(ne))>=0)),oe=se=>{ee("update:modelValue",[se]),ee("success")},ie=se=>{ee("update:modelValue",[...G.modelValue,se]),ee("success")},le=se=>{ee("update:modelValue",G.modelValue.filter(ue=>ue.identifier!==se.identifier)),ee("success")},ae=(se,ue)=>{const ce=G.modelValue.find(de=>de.identifier==ue.identifier);ce.dateFormatType=se,ue.dateFormatType=se,ee("success")};return(se,ue)=>{const ce=vue.resolveComponent("aceHeader");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(ce,{title:"分组统计维度",class:"mt-4 mb-2"}),vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:se.loading,animated:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne),"onUpdate:modelValue":ue[0]||(ue[0]=de=>vue.isRef(ne)?ne.value=de:null),placeholder:"搜索字段",class:"mb-2"},null,8,["modelValue"]),vue.createElementVNode("div",_hoisted_1$16,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(re),de=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["field-item",{active:se.modelValue.some(fe=>fe.identifier==de.identifier)}]),key:de.identifier},[vue.createElementVNode("div",_hoisted_2$X,[vue.createElementVNode("div",{class:"flex items-center flex-1 overflow-hidden",onClick:fe=>oe(de)},[vue.createElementVNode("i",{class:vue.normalizeClass([se.iconMap[de.dataType],"mr-2"])},null,2),vue.createElementVNode("span",_hoisted_4$N,vue.toDisplayString(de.columnComment),1)],8,_hoisted_3$P),se.modelValue.some(fe=>fe.identifier==de.identifier)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$D,[["date","datetime"].includes(de.dataType)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,trigger:"hover",onCommand:fe=>ae(fe,de)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.calendarType,(fe,ve)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdownItem),{command:ve,key:fe},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(fe),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_6$y,vue.toDisplayString(se.calendarType[de.dateFormatType]),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{class:"cursor-pointer ri-close-line",onClick:vue.withModifiers(fe=>le(de),["stop"])},null,8,_hoisted_7$u)])):vue.createCommentVNode("",!0)]),!se.modelValue.some(fe=>fe.identifier==de.identifier)&&se.modelValue.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$q,[vue.createElementVNode("i",{class:"text-gray-800 cursor-pointer ri-add-line",onClick:vue.withModifiers(fe=>ie(de),["stop"])},null,8,_hoisted_9$n)])):vue.createCommentVNode("",!0)],2))),128))])]),_:1},8,["loading"])],64)}}}),modelTableDimension_vue_vue_type_style_index_0_scoped_17c71fa7_lang="",modelTableDimension=_export_sfc$2(_sfc_main$1j,[["__scopeId","data-v-17c71fa7"]]),_withScopeId$r=te=>(vue.pushScopeId("data-v-449a4f14"),te=te(),vue.popScopeId(),te),_hoisted_1$15={class:"mb-2"},_hoisted_2$W=_withScopeId$r(()=>vue.createElementVNode("div",{class:"mb-2 font-bold"},"公式名称:",-1)),_hoisted_3$O={class:"relative mt-4 mb-4"},_hoisted_4$M={class:"mb-2 font-bold"},_hoisted_5$C={class:"ml-2 text-color-primary"},_hoisted_6$x={key:0,class:"selection el-popper is-light el-popover","data-popper-placement":"bottom"},_hoisted_7$t=_withScopeId$r(()=>vue.createElementVNode("div",null,"选择变量",-1)),_hoisted_8$p={class:"mt-2"},_hoisted_9$m=_withScopeId$r(()=>vue.createElementVNode("span",{class:"el-popper__arrow","data-popper-arrow":""},null,-1)),validKeys="0123456789+-*/@.()",_sfc_main$1i=vue.defineComponent({__name:"model-exp",props:{options:{default:()=>[]}},emits:["success"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),ne=vue.ref(!1),re=te,oe=G,ie=vue.ref(""),le=vue.ref(null),ae=Ve=>{const{key:Se}=Ve;switch(Se){case"Enter":Ve.preventDefault();break;case"@":case"Process":de();break}};let se=null;const ue=()=>{const Ve=vue.unref(le).innerHTML;let Se=xe(Ve.replace(/<br>/g,""));Se=Se.map(Ne=>$e(Ne)?Ce(Ne):Ne.data.split("").filter(Ie=>validKeys.includes(Ie)).join(""));const ke=Se.join("");if(Ve!==ke){const Ne=we(Ve,ke);vue.unref(le).innerHTML=ke,Ee(vue.unref(le),Ne)}clearTimeout(se),se=setTimeout(async()=>{_e()},500)},ce=vue.ref(!1),de=()=>{ce.value=!0},fe=Ve=>{const{identifier:Se,columnComment:ke}=Ve;ce.value=!1;const Ne=`<div contenteditable="false">${ke}<span>${Se}</span></div>`;ge("@",Ne)},ve=vue.ref(null),he=Ve=>{if(ve.value=Ve,ie.value="",ne.value=!0,Ve){const Se=JSON.parse(JSON.stringify(Ve.data));let ke=Se.exp??"";ie.value=Se.comment,Se.identifier.split(",").forEach(Ne=>{const Ie=new RegExp(Ne,"g"),Pe=re.options.find(Te=>Te.identifier==Ne);if(Pe){const Te=`<div contenteditable="false">${Pe.columnComment}<span>${Ne}</span></div>`;ke=ke.replace(Ie,(De,Oe,Be)=>{const Ae=De.length,Le=Be.slice(Oe-1,Ae+Oe+1);return Le.startsWith("_")||Le.endsWith("_")?Ne:Te})}}),vue.nextTick(()=>{vue.unref(le).innerHTML=ke.replace(/@/g,""),setTimeout(()=>{_e()},100)})}},pe=()=>{var Ve,Se;if(!((Ve=vue.unref(me))!=null&&Ve.exp)){ee.$message({type:"warning",message:"公式不能为空",plain:!0});return}if(vue.unref(ie)==""){ee.$message({type:"warning",message:"公式名称不能为空",plain:!0});return}oe("success",{...vue.unref(me),aggType:"exp",comment:vue.unref(ie),showLabel:vue.unref(ie)},((Se=vue.unref(ve))==null?void 0:Se.index)??""),ne.value=!1},ge=(Ve,Se="")=>{if(!vue.unref(le))return;let ke=vue.unref(le).innerHTML;ke.includes(Ve)&&(ke=ke.replace(new RegExp(Ve,"g"),Se),vue.unref(le).innerHTML=ke),_e()},me=vue.ref({}),_e=()=>{let Ve="";const Se=[],ke=vue.unref(le).innerHTML.replace(/\sdata-spm-anchor-id=".*?"/g,"");ye({text:ke,prefix:'<div contenteditable="false">',suffix:"</div>"}).forEach(Ie=>{const[Pe,Te]=ye({text:Ie,prefix:"<span>",suffix:"</span>"});Te?(Ve+=`@${Te}`,Se.push(Te)):Ve+=Pe}),me.value={exp:Ve,identifier:Se.toString()}},be=Ve=>{ce.value=!1,Ve&&ge("@")};vue.onMounted(()=>window.addEventListener("click",be)),vue.onBeforeUnmount(()=>window.removeEventListener("click",be)),U({init:he});const ye=({text:Ve,prefix:Se,suffix:ke})=>Ve.replace(new RegExp(Se,"g"),",").replace(new RegExp(ke,"g"),",").split(",").filter(Ne=>!!Ne),xe=Ve=>{const Se=document.createElement("div");return Se.innerHTML=Ve,[...Se.childNodes]},Ce=Ve=>{let Se=document.createElement("div");Se.appendChild(Ve);let ke=Se.innerHTML;return Se=Ve=null,ke},$e=Ve=>Object.prototype.toString.call(Ve)==="[object HTMLDivElement]",we=(Ve,Se)=>{const ke=Ve.split(""),Ne=Se.split(""),Ie=Math.max(ke.length,Ne.length);let Pe=0;for(let Te=0;Te<Ie&&ke[Te]==Ne[Te];Te++)Pe++;return Pe},Ee=(Ve,Se)=>{const ke=document.createRange(),Ne=window.getSelection();let Ie=0,Pe=0;const Te=xe(Ve.innerHTML);for(let De=0;De<Te.length;De++){const Oe=Te[De];if($e(Oe))Se-=Ce(Oe).length;else if(Se>Oe.length)Se-=Oe.length;else{Pe=Se;break}Ie++}ke.selectNodeContents(Ve),ke.collapse(!1),Ve.childNodes[Ie]&&ke.setStart(Ve.childNodes[Ie],Pe),ke.collapse(!0),Ne.removeAllRanges(),Ne.addRange(ke)};return(Ve,Se)=>{const ke=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createBlock(ke,{modelValue:vue.unref(ne),"onUpdate:modelValue":Se[2]||(Se[2]=Ne=>vue.isRef(ne)?ne.value=Ne:null),title:"计算公式",size:800},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:pe},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:Se[1]||(Se[1]=Ne=>ne.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$15,[_hoisted_2$W,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ie),"onUpdate:modelValue":Se[0]||(Se[0]=Ne=>vue.isRef(ie)?ie.value=Ne:null),placeholder:"请输入公式名称"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_3$O,[vue.createElementVNode("div",_hoisted_4$M,[vue.createTextVNode(" 公式: "),vue.createElementVNode("span",_hoisted_5$C,vue.toDisplayString(vue.unref(me).exp),1)]),vue.createElementVNode("div",{ref_key:"formulaRef",ref:le,class:"flex-1 formula",contenteditable:"",placeholder:"请输入表达式 输入「@」后选择指标",style:{"ime-mode":"disabled"},onKeydown:vue.withModifiers(ae,["stop"]),onKeyup:ue},null,544),vue.unref(ce)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$x,[_hoisted_7$t,vue.createElementVNode("div",_hoisted_8$p,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(re.options,Ne=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{class:"m-2 cursor-pointer",onClick:Ie=>fe(Ne),key:Ne.identifier,type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ne.columnComment),1)]),_:2},1032,["onClick"]))),128))]),_hoisted_9$m])):vue.createCommentVNode("",!0)])]),_:1},8,["modelValue"])}}}),modelExp_vue_vue_type_style_index_0_scoped_449a4f14_lang="",ModelExp=_export_sfc$2(_sfc_main$1i,[["__scopeId","data-v-449a4f14"]]),_withScopeId$q=te=>(vue.pushScopeId("data-v-216c5764"),te=te(),vue.popScopeId(),te),_hoisted_1$14={key:0},_hoisted_2$V=_withScopeId$q(()=>vue.createElementVNode("div",{class:"mb-2 text-sm indicators-title"},[vue.createElementVNode("i",{class:"mr-1 ri-table-line"}),vue.createTextVNode(" 基本指标 ")],-1)),_hoisted_3$N=["onClick"],_hoisted_4$L=_withScopeId$q(()=>vue.createElementVNode("i",{class:"ri-lightbulb-line"},null,-1)),_hoisted_5$B={key:1},_hoisted_6$w={class:"flex items-center mb-2 text-sm indicators-title"},_hoisted_7$s={class:"overflow-y-auto max-h-96"},_hoisted_8$o=["onClick"],_hoisted_9$l={class:"field-label"},_hoisted_10$i=_withScopeId$q(()=>vue.createElementVNode("i",{class:"ri-add-fill"},null,-1)),_sfc_main$1h=vue.defineComponent({__name:"model-table-summary",props:{modelValue:{default:()=>[]},iconMap:{default:()=>{}},list:{default:()=>[]}},emits:["update:modelValue"],setup(te,{emit:U}){const G=te,ee=U,{proxy:ne}=vue.getCurrentInstance();vue.inject("chartList");const re=vue.ref(!1),oe=vue.ref(1),ie=vue.ref(null),le=vue.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:"可手动输入计算公式"}]);vue.watch(re,fe=>{fe&&(ue.value={},oe.value=1)});const ae=fe=>{ee("update:modelValue",G.modelValue.filter(ve=>ve.showLabel!==fe.showLabel))},se=(fe,ve)=>{fe.aggType=="exp"&&vue.unref(ie).init({data:fe,index:ve})},ue=vue.ref({}),ce=fe=>{if(fe.value==="count"){if(G.modelValue.some(ve=>ve.aggType==fe.value)){ne.$message({type:"warning",message:"存在重复数据",plain:!0});return}ee("update:modelValue",[...G.modelValue,{identifier:1,aggType:fe.value,showLabel:fe.label}]),re.value=!1;return}if(fe.value=="exp"){vue.unref(ie).init();return}oe.value=2,ue.value=fe},de=fe=>{var ve,he;if(G.modelValue.some(pe=>{var ge;return pe.identifier==fe.identifier&&pe.aggType==((ge=vue.unref(ue))==null?void 0:ge.value)})){ne.$message({type:"warning",message:"存在重复数据",plain:!0});return}re.value=!1,ee("update:modelValue",[...G.modelValue,{identifier:fe.identifier,comment:fe.columnComment,aggType:(ve=vue.unref(ue))==null?void 0:ve.value,showLabel:fe.columnComment+((he=vue.unref(ue))==null?void 0:he.label)}])};return(fe,ve)=>{const he=vue.resolveComponent("aceHeader");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(he,{title:"汇总方式",class:"mb-2"}),vue.createElementVNode("div",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe.modelValue,(pe,ge)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:pe.value,class:vue.normalizeClass(["m-1",[pe.aggType=="exp"?"cursor-pointer":""]]),closable:!0,onClick:me=>se(pe,ge),onClose:me=>ae(pe),type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(pe.showLabel),1)]),_:2},1032,["onClick","class","onClose"]))),128)),vue.createVNode(vue.unref(elementPlus.ElPopover),{trigger:"click",width:"300px",placement:"top-start",visible:vue.unref(re),"onUpdate:visible":ve[1]||(ve[1]=pe=>vue.isRef(re)?re.value=pe:null)},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-1",size:"small"},{default:vue.withCtx(()=>[_hoisted_10$i,vue.createTextVNode(" "+vue.toDisplayString(fe.modelValue.length?"":"添加度量"),1)]),_:1})]),default:vue.withCtx(()=>[vue.unref(oe)==1?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$14,[_hoisted_2$V,(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(le),pe=>(vue.openBlock(),vue.createElementBlock("div",{onClick:ge=>ce(pe),key:pe.value,class:vue.normalizeClass([{active:vue.unref(ue).value==pe.value},"indicators-item"])},[vue.createTextVNode(vue.toDisplayString(pe.label)+" ",1),vue.createVNode(vue.unref(elementPlus.ElTooltip),{effect:"dark",content:pe.tip,placement:"top"},{default:vue.withCtx(()=>[_hoisted_4$L]),_:2},1032,["content"])],10,_hoisted_3$N))),128))])):vue.createCommentVNode("",!0),vue.unref(oe)==2?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$B,[vue.createElementVNode("div",_hoisted_6$w,[vue.createElementVNode("i",{class:"mr-1 text-xl cursor-pointer ri-arrow-left-s-line",onClick:ve[0]||(ve[0]=pe=>oe.value=1)}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(ue).label),1)]),vue.createElementVNode("div",_hoisted_7$s,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe.list,pe=>(vue.openBlock(),vue.createElementBlock("div",{onClick:ge=>de(pe),key:pe.identifier,class:"indicators-item"},[vue.createElementVNode("div",null,[vue.createElementVNode("i",{class:vue.normalizeClass([fe.iconMap[pe.dataType],"mr-2"])},null,2),vue.createElementVNode("span",_hoisted_9$l,vue.toDisplayString(pe.columnComment),1)])],8,_hoisted_8$o))),128))])])):vue.createCommentVNode("",!0)]),_:1},8,["visible"]),vue.createVNode(ModelExp,{ref_key:"modelPercentRef",ref:ie,options:G.list,onSuccess:ve[2]||(ve[2]=(pe,ge)=>ge?G.modelValue[ge]=pe:ee("update:modelValue",[...G.modelValue,pe]))},null,8,["options"])])],64)}}}),modelTableSummary_vue_vue_type_style_index_0_scoped_216c5764_lang="",modelTableSunmary=_export_sfc$2(_sfc_main$1h,[["__scopeId","data-v-216c5764"]]),_sfc_main$1g=vue.defineComponent({__name:"chart-list-widget",props:{type:{default:""}},setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.inject("chartList"),ee=ne=>{U.$baseEventBus.emit("model-chart-click",ne)};return(ne,re)=>(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G),oe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:ne.type==oe.type?"primary":"",key:oe.type,onClick:ie=>ee(oe)},{default:vue.withCtx(()=>{var ie;return[vue.createElementVNode("i",{class:vue.normalizeClass((ie=vue.unref(echartsTypeList)[oe.type])==null?void 0:ie.icon)},null,2)]}),_:2},1032,["type","onClick"]))),128))}}),_withScopeId$p=te=>(vue.pushScopeId("data-v-ad68cd37"),te=te(),vue.popScopeId(),te),_hoisted_1$13={class:"overflow-y-auto max-h-96"},_hoisted_2$U=["onClick"],_hoisted_3$M={class:"field-label"},_hoisted_4$K=_withScopeId$p(()=>vue.createElementVNode("i",{class:"ri-add-fill"},null,-1)),_sfc_main$1f=vue.defineComponent({__name:"model-table-other-summary",props:{modelValue:{default:()=>[]},iconMap:{default:()=>{}},list:{default:()=>[]}},emits:["update:modelValue"],setup(te,{emit:U}){const G=te,ee=U,{proxy:ne}=vue.getCurrentInstance();vue.inject("chartList");const re=vue.ref(!1);vue.ref(null);const oe=le=>{ee("update:modelValue",G.modelValue.filter(ae=>ae.showLabel!==le.showLabel))},ie=le=>{if(G.modelValue.some(ae=>ae.identifier==le.identifier)){ne.$message({type:"warning",message:"存在重复数据",plain:!0});return}re.value=!1,ee("update:modelValue",[...G.modelValue,{identifier:le.identifier,comment:le.columnComment,aggType:"other",showLabel:le.columnComment}])};return(le,ae)=>{const se=vue.resolveComponent("aceHeader");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(se,{title:"显示其他列",class:"mt-2 mb-2"}),vue.createElementVNode("div",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.modelValue,(ue,ce)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:ue.value,class:"m-1",closable:!0,onClose:de=>oe(ue),type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ue.showLabel),1)]),_:2},1032,["onClose"]))),128)),vue.createVNode(vue.unref(elementPlus.ElPopover),{trigger:"click",width:"300px",placement:"top-start",visible:vue.unref(re),"onUpdate:visible":ae[0]||(ae[0]=ue=>vue.isRef(re)?re.value=ue:null)},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-1",size:"small"},{default:vue.withCtx(()=>[_hoisted_4$K]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$13,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.list,ue=>(vue.openBlock(),vue.createElementBlock("div",{onClick:ce=>ie(ue),key:ue.identifier,class:"indicators-item"},[vue.createElementVNode("div",null,[vue.createElementVNode("i",{class:vue.normalizeClass([le.iconMap[ue.dataType],"mr-2"])},null,2),vue.createElementVNode("span",_hoisted_3$M,vue.toDisplayString(ue.columnComment),1)])],8,_hoisted_2$U))),128))])]),_:1},8,["visible"])])],64)}}}),modelTableOtherSummary_vue_vue_type_style_index_0_scoped_ad68cd37_lang="",ModelTableOtherSummary=_export_sfc$2(_sfc_main$1f,[["__scopeId","data-v-ad68cd37"]]),_withScopeId$o=te=>(vue.pushScopeId("data-v-3d6e6e94"),te=te(),vue.popScopeId(),te),_hoisted_1$12={class:"flex w-full h-full"},_hoisted_2$T={class:"flex flex-col flex-1 overflow-hidden"},_hoisted_3$L={class:"flex flex-col flex-1 pb-3 pr-3 overflow-y-auto"},_hoisted_4$J={key:0,class:"relative flex items-center justify-center pannel h-14"},_hoisted_5$A={class:"absolute left-5 top-3"},_hoisted_6$v=_withScopeId$o(()=>vue.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),_hoisted_7$r=_withScopeId$o(()=>vue.createElementVNode("i",{class:"ri-table-line"},null,-1)),_hoisted_8$n={class:"absolute flex items-center right-5 top-4"},_hoisted_9$k=_withScopeId$o(()=>vue.createElementVNode("i",{class:"mr-1 ri-settings-2-line"},null,-1)),_hoisted_10$h={class:"ml-2 mr-2"},_hoisted_11$d={class:"flex flex-col"},_hoisted_12$b={class:"flex-1 overflow-y-auto"},_hoisted_13$9={key:0,class:"flex items-center justify-center pannel h-14"},_hoisted_14$8=_withScopeId$o(()=>vue.createElementVNode("i",{class:"mr-1 ri-save-line"},null,-1)),_sfc_main$1e=vue.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(te,{expose:U,emit:G}){const ee=te,ne=G,re=screenDesignMainStore(),{proxy:oe}=vue.getCurrentInstance(),{setFormValue:ie,getFormValue:le}=oe.$globalHooks.useForm(),{dynamicSearchForm:ae,dynamicSearchFormat:se,dynamicSearchParams:ue}=oe.$aceDynamicSearch(),ce=vue.inject("modelEle"),de=vue.inject("getListModelIndicators");vue.inject("chartList");const fe={varchar:"ri-text",date:"ri-calendar-2-line",datetime:"ri-calendar-2-line",int:"ri-hashtag",decimal:"ri-hashtag"},ve={day:"按日",week:"按周",month:"按月",quarter:"按季度",year:"按年","":"按时分秒"},he=vue.ref(!1),pe=vue.ref(!0),ge=vue.ref(0),me=vue.ref([]),_e=vue.ref([]),be=vue.ref([]),ye=vue.ref([]),xe=vue.ref([]),Ce=vue.ref(!0),$e=vue.ref(!0),we=async Me=>{var We,Ue;Ce.value=!0,$e.value=!1;const ze=JSON.parse((Me==null?void 0:Me.groupArgsJson)??"[]"),Ge=JSON.parse((Me==null?void 0:Me.aggArgsJson)??JSON.stringify([{identifier:1,aggType:"count",showLabel:"行数"}]));ye.value=Ge.filter(qe=>qe.aggType!="other"),xe.value=Ge.filter(qe=>qe.aggType=="other"),ze.length||(Ce.value=!1),ge.value=(Me==null?void 0:Me.pageSize)??20,Te.value=JSON.parse((Me==null?void 0:Me.sortArgsJson)??"{}"),Me!=null&&Me.formConfJson?(ae.value=se(JSON.parse(Me.formConfJson??"[]")),ne("update:dynamicSearchForm",ae.value)):await fetch$1(oe).getFormJsonConfig((We=vue.unref(ce))==null?void 0:We.id).then(qe=>{var Ye;ae.value=se(JSON.parse(((Ye=qe.data)==null?void 0:Ye.formConfJson)??"[]"))}),ne("update:dynamicSearchForm",ae.value),ie(Me,Be),oe.$baseHttp.post("/api/ace-data-center/aidc/modelAnalysis",{projectId:oe.$baseGetCurrentProjectId(),modelId:(Ue=vue.unref(ce))==null?void 0:Ue.id,serialId:new Date().getTime()}).then(qe=>{pe.value=!1,me.value=qe.data.filter(Ye=>!["创建时间","创建人","所属项目","创建部门","标签"].includes(Ye.columnComment)).map(Ye=>({...Ye,dateFormatType:["date","datetime"].includes(Ye.dataType)?"day":""})),be.value=qe.data.filter(Ye=>["ADDABLE","SEMIADDABLE"].includes(Ye.quantityType)),ze.forEach(Ye=>{const Je=me.value.find(Xe=>Xe.identifier==Ye.identifier);Je&&(_e.value.push({...Je,dataType:Ye.dataType,dateFormatType:Ye.dateFormatType}),Je.dateFormatType=Ye.dateFormatType)}),Ce.value=!1,setTimeout(()=>{$e.value=!0},1e3)})};vue.watch([ye,_e,xe],()=>{vue.unref($e)&&(Te.value={}),Ie()},{deep:!0});let Ee=null;const Ve=vue.ref(null),Se=vue.ref(!1),ke=vue.ref([]),Ne=vue.ref([]),Ie=async()=>{clearTimeout(Ee),Ee=setTimeout(async()=>{var Ue,qe;Ne.value=[],re.setChartData([]);const Me=Pe(),ze=Object.keys(vue.unref(Te)).map(Ye=>({field:Ye,type:vue.unref(Te)[Ye]=="ascending"?"asc":"desc"})),Ge={aggArgsJson:JSON.stringify([...vue.unref(ye),...vue.unref(xe)]),groupArgsJson:JSON.stringify(Me),sortArgsJson:JSON.stringify(ze),params:ue(vue.unref(ae)),pageSize:vue.unref(ge),modelId:(Ue=vue.unref(ce))==null?void 0:Ue.id};if(ee.indicatorsId&&(Ge.modelIndicatorsId=ee.indicatorsId),ne("update:title",`${vue.unref(ye).length}个指标:${vue.unref(ye).length?"根据":""}${Me.map(Ye=>Ye.showLabel).toString()}${vue.unref(ye).length?"分组的":""}${vue.unref(ye).filter((Ye,Je)=>Je<3).map(Ye=>Ye.showLabel).toString()}${vue.unref(ye).length>3?"...":""}`),!vue.unref(ye).length||vue.unref(Ce)){ke.value=[];return}Se.value=!0;const We=await oe.$baseHttp.post("/api/ace-data-center/model-indicators/debug",Ge);Ve.value=Ge,Se.value=!1,We&&(ke.value=((qe=We.data)==null?void 0:qe.records)??[],re.setChartData({x:Me,y:[...vue.unref(ye),...vue.unref(xe)],params:Ge}),vue.unref(ke).length&&Object.keys(vue.unref(ke)[0]).forEach(Ye=>{Ne.value.push({label:Ye,prop:Ye,sortable:"custom"})}))})},Pe=()=>vue.unref(_e).map(Me=>({identifier:Me.identifier,comment:Me.columnComment,showLabel:Me.columnComment+(ve[Me.dateFormatType]??""),dateFormatType:Me.dateFormatType||null})),Te=vue.ref({}),De=({column:Me})=>{vue.unref(Te)[Me.property]&&(Me.order=vue.unref(Te)[Me.property])};vue.watch(Te,Me=>{const ze=Object.keys(Me).map(Ge=>`${Ge}${Me[Ge]=="descending"?"降序":"升序"}`);ne("update:sortHtml",ze.length?`<span class="text-color-warning">排序:${ze.toString()}</span>`:"")},{deep:!0});const Oe=Me=>{const{prop:ze,order:Ge}=Me;!Ge||vue.unref(Te)[ze]===Ge?delete vue.unref(Te)[ze]:vue.unref(Te)[ze]=Ge,Ie()};fetch$1(oe).loadIndicatorsMenu().then(Me=>{Be.find(ze=>ze.fieldName=="tags").options=Object.keys(Me.data).map(ze=>({label:ze,value:ze}))});const Be=vue.reactive([{name:"名称",type:FieldType.Text,fieldName:"name",value:"",required:!0},{name:"描述",type:FieldType.Textarea,fieldName:"remark",value:""},{name:"标签",type:FieldType.Select,fieldName:"tags",value:"",options:[],multiple:!0,allowCreate:!0,required:!0,placeholder:"请选择标签或输入标签"},{name:"code",type:FieldType.Text,fieldName:"code",value:"",hide:!0}]),Ae=vue.ref(!1),Le=()=>{Be.find(Me=>Me.fieldName=="remark").value=ee.title,Ae.value=!0},Re=async()=>{var Ue;const{params:Me,error:ze}=le(Be);if(ze.length>0)return;const Ge=Pe();if(!Ge.length||!vue.unref(ye).length){oe.$message({type:"warning",message:"计算维度或汇总方式不能为空",plain:!0});return}Me.code||(Me.code=nanoid()),Me.groupArgsJson=JSON.stringify(Ge),Me.aggArgsJson=JSON.stringify([...vue.unref(ye),...vue.unref(xe)]),Me.modelId=(Ue=vue.unref(ce))==null?void 0:Ue.id,Me.projectId=oe.$baseGetCurrentProjectId(),Me.pageSize=vue.unref(ge),Me.formConfJson=JSON.stringify(vue.unref(ae)),Me.sortArgsJson=JSON.stringify(vue.unref(Te)),ee.indicatorsId&&(Me.id=ee.indicatorsId),Ae.value=!1;const We=await oe.$baseHttp.post(`/api/ace-data-center/model-indicators/${ee.indicatorsId?"update":"save"}`,Me,{header:{loading:!0}});We&&(ee.indicatorsId||ne("update:indicatorsId",We.data),ne("update:resultTitle",Me.name),oe.$message({type:"success",message:"操作成功",plain:!0}),ie(Me,Be),de())},Fe=()=>{ne("update:modelValue","chart")},je=()=>{oe.$baseExportExcel({title:ee.title,url:"/api/ace-data-center/model-indicators/debug",header:vue.unref(Ne),customParams:vue.unref(Ve)})};return U({init:we,dynamicSearchForm:ae,handlePopupForm:Le,handleSubmit:Re}),(Me,ze)=>{var Xe,Ke;const Ge=vue.resolveComponent("aceDynamicSearch"),We=vue.resolveComponent("AppTable"),Ue=vue.resolveComponent("AppEmpty"),qe=vue.resolveComponent("aceDynamicList"),Ye=vue.resolveComponent("AppForm"),Je=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$12,[vue.createElementVNode("div",_hoisted_2$T,[vue.createElementVNode("div",_hoisted_3$L,[vue.unref(ye).length?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(Ge,{form:vue.unref(ae),onSuccess:ze[0]||(ze[0]=He=>Ie())},null,8,["form"]),vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(Se),animated:""},{default:vue.withCtx(()=>[vue.unref(Ne).length?(vue.openBlock(),vue.createBlock(We,{key:0,tableData:vue.unref(Ne),list:vue.unref(ke),loading:!1,headerCellClassName:De,onSortChange:Oe},null,8,["tableData","list"])):(vue.openBlock(),vue.createBlock(Ue,{key:1,description:"暂无数据",class:"mt-4"}))]),_:1},8,["loading"])],64)):(vue.openBlock(),vue.createBlock(qe,{key:1,id:(Xe=vue.unref(ce))==null?void 0:Xe.id,title:(Ke=vue.unref(ce))==null?void 0:Ke.modelName,showPageIndex:!0},null,8,["id","title"]))]),vue.unref(ye).length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$J,[vue.createElementVNode("div",_hoisted_5$A,[vue.createVNode(vue.unref(elementPlus.ElTooltip),{effect:"dark",content:"保存汇总配置后可设置",placement:"top",visible:vue.unref(he)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{disabled:Me.indicatorsId=="",type:"warning",style:{padding:"0 10px"},onMouseenter:ze[1]||(ze[1]=He=>{Me.indicatorsId||(he.value=!0)}),onMouseleave:ze[2]||(ze[2]=He=>he.value=!1),onClick:Fe},{default:vue.withCtx(()=>[vue.createTextVNode(" 图表配置 "),_hoisted_6$v]),_:1},8,["disabled"])]),_:1},8,["visible"])]),vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary"},{default:vue.withCtx(()=>[_hoisted_7$r]),_:1}),vue.createVNode(_sfc_main$1g)]),_:1}),vue.createElementVNode("div",_hoisted_8$n,[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary"},{default:vue.withCtx(()=>[_hoisted_9$k,vue.createTextVNode(" 显示前 "),vue.createElementVNode("div",_hoisted_10$h,[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{size:"small",style:{width:"100px"},modelValue:vue.unref(ge),"onUpdate:modelValue":ze[3]||(ze[3]=He=>vue.isRef(ge)?ge.value=He:null),onChange:ze[4]||(ze[4]=He=>Ie()),min:1,max:9999999},null,8,["modelValue"])]),vue.createTextVNode(" 条聚合数据 ")]),_:1}),vue.unref(Ne).length?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:"ml-2 cursor-pointer ri-download-2-line text-color-warning",onClick:je})):vue.createCommentVNode("",!0)])])):vue.createCommentVNode("",!0)]),vue.createElementVNode("aside",_hoisted_11$d,[vue.createElementVNode("div",_hoisted_12$b,[vue.createVNode(modelTableSunmary,{list:vue.unref(be),modelValue:vue.unref(ye),"onUpdate:modelValue":ze[5]||(ze[5]=He=>vue.isRef(ye)?ye.value=He:null),iconMap:fe},null,8,["list","modelValue"]),vue.createVNode(ModelTableOtherSummary,{iconMap:fe,list:vue.unref(me),modelValue:vue.unref(xe),"onUpdate:modelValue":ze[6]||(ze[6]=He=>vue.isRef(xe)?xe.value=He:null)},null,8,["list","modelValue"]),vue.withDirectives(vue.createElementVNode("div",null,[vue.createVNode(modelTableDimension,{loading:vue.unref(pe),list:vue.unref(me),iconMap:fe,calendarType:ve,modelValue:vue.unref(_e),"onUpdate:modelValue":ze[7]||(ze[7]=He=>vue.isRef(_e)?_e.value=He:null)},null,8,["loading","list","modelValue"])],512),[[vue.vShow,vue.unref(ye).length]])]),vue.unref(ye).length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$9,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:Le},{default:vue.withCtx(()=>[_hoisted_14$8,vue.createTextVNode(" 完 成 ")]),_:1})])):vue.createCommentVNode("",!0),vue.createVNode(Je,{modelValue:vue.unref(Ae),"onUpdate:modelValue":ze[9]||(ze[9]=He=>vue.isRef(Ae)?Ae.value=He:null),title:"保存指标",size:800},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:Re},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:ze[8]||(ze[8]=He=>Ae.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(Ye,{form:vue.unref(Be),col:1},null,8,["form"])]),_:1},8,["modelValue"])])])}}}),tableWidget_vue_vue_type_style_index_0_scoped_3d6e6e94_lang="",tableWidget=_export_sfc$2(_sfc_main$1e,[["__scopeId","data-v-3d6e6e94"]]),_withScopeId$n=te=>(vue.pushScopeId("data-v-6fadb38d"),te=te(),vue.popScopeId(),te),_hoisted_1$11={class:"flex flex-wrap chart-container"},_hoisted_2$S=["onClick"],_hoisted_3$K=["onClick"],_hoisted_4$I=_withScopeId$n(()=>vue.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),_hoisted_5$z=[_hoisted_4$I],_hoisted_6$u={key:0,class:"success setting"},_hoisted_7$q=_withScopeId$n(()=>vue.createElementVNode("i",{class:"ml-1 ri-check-line"},null,-1)),_hoisted_8$m=[_hoisted_7$q],_hoisted_9$j={class:"label"},_sfc_main$1d=vue.defineComponent({__name:"model-chart-menu",props:{modelValue:{default:""}},emits:["click-chart-setting","update:modelValue"],setup(te,{emit:U}){vue.getCurrentInstance();const G=[{...echartsTypeList[3],key:"3"},...Object.keys(echartsTypeList).filter(ie=>ie!="3").map(ie=>({...echartsTypeList[ie],key:ie}))],ee=vue.inject("chartList"),ne=U,re=ie=>{ne("update:modelValue",String(ie))},oe=ie=>{ne("update:modelValue",String(ie)),ne("click-chart-setting")};return(ie,le)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$11,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(G,ae=>{var se;return vue.createElementVNode("div",{class:"items",key:ae.key,onClick:ue=>re(ae.key)},[vue.createElementVNode("div",{class:vue.normalizeClass(["icon",{active:ie.modelValue==ae.key}])},[vue.createElementVNode("i",{class:vue.normalizeClass(ae.icon)},null,2),vue.createElementVNode("div",{class:"setting",onClick:vue.withModifiers(ue=>oe(ae.key),["stop"])},_hoisted_5$z,8,_hoisted_3$K),(se=vue.unref(ee))!=null&&se.some(ue=>ue.type==ae.key)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$u,_hoisted_8$m)):vue.createCommentVNode("",!0)],2),vue.createElementVNode("div",_hoisted_9$j,vue.toDisplayString(ae.name),1)],8,_hoisted_2$S)}),64))]))}}),modelChartMenu_vue_vue_type_style_index_0_scoped_6fadb38d_lang="",modelChartMenu=_export_sfc$2(_sfc_main$1d,[["__scopeId","data-v-6fadb38d"]]),_sfc_main$1c=vue.defineComponent({__name:"model-chart-setting",props:{option:{default:{}},type:{default:""}},emits:["close"],setup(te,{expose:U,emit:G}){const ee=te,ne=G,{proxy:re}=vue.getCurrentInstance(),oe=vue.ref(""),ie=vue.inject("indicatorsId"),le=vue.inject("getListModelIndicators"),ae=vue.inject("getChartWidgetList"),se=vue.computed(()=>({3:_sfc_main$1G,2:_sfc_main$1E,1:_sfc_main$1F,4:_sfc_main$1B,5:_sfc_main$1D,6:_sfc_main$1C,7:_sfc_main$1A,8:_sfc_main$1z,9:_sfc_main$1y})[ee.type]??null),ue=vue.ref(!1),ce=()=>{oe.value="data",ue.value=!0},de=async()=>{ee.option.tooltip&&(delete ee.option.tooltip.valueFormatter,delete ee.option.tooltip.formatter),ee.type=="9"&&delete ee.option.series[2].label.formatter,await re.$baseHttp.post("/api/ace-data-center/model-indicators-echarts/save",{modelIndicatorsId:vue.unref(ie),echartsType:ee.type,echartsConfig:chartJsonToStringFormat({...ee.option,customSeriesData:window.customSeriesData,dataset:{...ee.option.dataset,source:[]}})},{headers:{loading:!0}})&&(re.$message({type:"success",message:"操作成功",plain:!0}),await ae(),await le(),ue.value=!1,ne("close"))},fe=()=>{ue.value=!1};return U({init:ce,handleSubmit:de}),(ve,he)=>{const pe=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(pe,{modelValue:vue.unref(ue),"onUpdate:modelValue":he[3]||(he[3]=ge=>vue.isRef(ue)?ue.value=ge:null),withHeader:!1,modal:!1,direction:"ltr",size:"300px",modalClass:"ace-modal-drawer"},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:he[1]||(he[1]=ge=>de())},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:he[2]||(he[2]=ge=>fe())},{default:vue.withCtx(()=>[vue.createTextVNode("关闭")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCollapse),{accordion:"",modelValue:vue.unref(oe),"onUpdate:modelValue":he[0]||(he[0]=ge=>vue.isRef(oe)?oe.value=ge:null)},{default:vue.withCtx(()=>[vue.unref(se)?(vue.openBlock(),vue.createBlock(vue.unref(se),{key:0,option:ee.option,type:ve.type},null,8,["option","type"])):vue.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}}),modelChartSetting_vue_vue_type_style_index_0_scoped_b48a9fb7_lang="",modelChartSetting=_export_sfc$2(_sfc_main$1c,[["__scopeId","data-v-b48a9fb7"]]),_withScopeId$m=te=>(vue.pushScopeId("data-v-7094027b"),te=te(),vue.popScopeId(),te),_hoisted_1$10={class:"flex w-full h-full"},_hoisted_2$R={class:"flex-1"},_hoisted_3$J={key:0,class:"flex items-center justify-center pannel h-14"},_hoisted_4$H=_withScopeId$m(()=>vue.createElementVNode("i",{class:"mr-1 ri-save-line"},null,-1)),_hoisted_5$y={class:"flex flex-col flex-1 overflow-hidden"},_hoisted_6$t={class:"relative flex flex-col flex-1 pb-3 pl-3"},_hoisted_7$p={class:"mb-2.5"},_hoisted_8$l={class:"relative flex items-center justify-center pannel h-14"},_hoisted_9$i={key:0,class:"absolute left-5 top-3"},_hoisted_10$g=_withScopeId$m(()=>vue.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),_hoisted_11$c=_withScopeId$m(()=>vue.createElementVNode("i",{class:"ri-table-line"},null,-1)),_sfc_main$1b=vue.defineComponent({__name:"chart-widget",props:{modelValue:{default:""},dynamicSearchForm:{default:()=>[]}},emits:["update:modelValue"],setup(te,{expose:U,emit:G}){const ee=G,{proxy:ne}=vue.getCurrentInstance(),re=vue.inject("chartList"),{option:oe,formatChart:ie}=useCustomChart(),le=vue.ref(""),ae=vue.ref(null),se=vue.ref(!1),ue=()=>{if(vue.unref(le)==""){ne.$message({type:"warning",message:"请选择图表",plain:!0});return}const he=setInterval(()=>{vue.unref(se)&&(vue.unref(ae).init(),clearInterval(he))},20)};vue.watch(le,async he=>{var ge;if(oe.value={},se.value=!1,he==""){se.value=!0;return}const pe=(ge=vue.unref(re))==null?void 0:ge.find(me=>me.type==he);await ie((pe==null?void 0:pe.code)??"",he),se.value=!0});const ce=vue.ref(!1);ne.$baseEventBus.on("model-chart-click",async he=>{ce.value=!0,ee("update:modelValue","chart"),le.value=he.type,setTimeout(()=>{ce.value=!1},100)});const de=()=>{if(vue.unref(re).length>0){vue.unref(ce)||(le.value=vue.unref(re)[0].type),se.value=!0;return}le.value="3"},fe=()=>{const he=le.value;le.value="",setTimeout(()=>{le.value=he},10)},ve=()=>{le.value="",ee("update:modelValue","table")};return U({init:de}),(he,pe)=>{var _e;const ge=vue.resolveComponent("aceDynamicSearch"),me=vue.resolveComponent("aceCustomChart");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$10,[vue.createElementVNode("aside",null,[vue.createElementVNode("div",_hoisted_2$R,[vue.createVNode(modelChartMenu,{modelValue:vue.unref(le),"onUpdate:modelValue":pe[0]||(pe[0]=be=>vue.isRef(le)?le.value=be:null),onClickChartSetting:ue},null,8,["modelValue"])]),(_e=vue.unref(re))!=null&&_e.some(be=>be.type==vue.unref(le))?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$J,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:pe[1]||(pe[1]=be=>vue.unref(ae).handleSubmit())},{default:vue.withCtx(()=>[_hoisted_4$H,vue.createTextVNode(" 保 存 ")]),_:1})]))]),vue.createElementVNode("div",_hoisted_5$y,[vue.createElementVNode("div",_hoisted_6$t,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:!vue.unref(se),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_7$p,[vue.createVNode(ge,{form:he.dynamicSearchForm,search:!1,disabled:""},null,8,["form"])]),vue.createVNode(me,{option:vue.unref(oe),chartType:vue.unref(le)},null,8,["option","chartType"])]),_:1},8,["loading"])]),vue.createElementVNode("div",_hoisted_8$l,[vue.unref(oe)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$i,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",style:{padding:"0 10px"}},{default:vue.withCtx(()=>[vue.createTextVNode("可视化")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"",style:{padding:"0 10px"},onClick:ue},{default:vue.withCtx(()=>[_hoisted_10$g]),_:1})]),_:1})])):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"",onClick:ve},{default:vue.withCtx(()=>[_hoisted_11$c]),_:1}),vue.createVNode(_sfc_main$1g,{type:vue.unref(le)},null,8,["type"])]),_:1})])]),vue.unref(le)?(vue.openBlock(),vue.createBlock(modelChartSetting,{key:0,ref_key:"modelChartSettingRef",ref:ae,option:vue.unref(oe),type:vue.unref(le),onClose:fe},null,8,["option","type"])):vue.createCommentVNode("",!0)])}}}),chartWidget_vue_vue_type_style_index_0_scoped_7094027b_lang="",chartWidget=_export_sfc$2(_sfc_main$1b,[["__scopeId","data-v-7094027b"]]),_withScopeId$l=te=>(vue.pushScopeId("data-v-e26b4ea0"),te=te(),vue.popScopeId(),te),_hoisted_1$$={class:"design"},_hoisted_2$Q={class:"design-header"},_hoisted_3$I={class:"flex-1"},_hoisted_4$G={class:"mt-2 text-xs text-color-info"},_hoisted_5$x=["innerHTML"],_hoisted_6$s={class:"flex"},_hoisted_7$o={class:"mr-2"},_hoisted_8$k=_withScopeId$l(()=>vue.createElementVNode("i",{class:"mr-1 ri-settings-2-line"},null,-1)),_hoisted_9$h=_withScopeId$l(()=>vue.createElementVNode("i",{class:"mr-1 ri-close-line"},null,-1)),_hoisted_10$f={class:"flex flex-1 p-3 overflow-hidden design-container"},_sfc_main$1a=vue.defineComponent({__name:"index",emits:["close"],setup(te,{expose:U,emit:G}){screenDesignMainStore();const{proxy:ee}=vue.getCurrentInstance(),ne=vue.ref(!1),re=vue.ref(!1),oe=vue.ref(),ie=vue.ref(null),le=vue.ref(null),ae=vue.ref(null),se=vue.ref([]),ue=vue.ref("0个指标"),ce=vue.ref(""),de=vue.ref(""),fe=vue.ref([]),ve=G;vue.watch(ne,xe=>{xe||ee.$baseEventBus.off("model-chart-click")}),vue.provide("indicatorsId",de);const he=vue.inject("modelEle"),pe=vue.ref(""),ge=async xe=>{var $e;let Ce={};oe.value="table",de.value=xe,fe.value=[],se.value=[],vue.unref(de)&&(Ce=await me(),_e()),ne.value=!0,pe.value=($e=Ce==null?void 0:Ce.data)==null?void 0:$e.name,vue.nextTick(()=>{vue.unref(ie).init((Ce==null?void 0:Ce.data)??{})})};vue.watch(oe,xe=>{xe=="chart"&&vue.unref(le).init()});const me=async()=>await ee.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${vue.unref(de)}`,{headers:{loading:!0}}),_e=async()=>{const xe=await ee.$baseHttp.post(`/api/ace-data-center/model-indicators-echarts/getEchartsTypes/${vue.unref(de)}`);fe.value=xe.data};vue.provide("getChartWidgetList",_e),vue.provide("chartList",fe);const be=()=>{ee.$baseConfirm({content:"是否确定关闭",callConfirm:async()=>{ne.value=!1,vue.unref(de)&&ve("close")}})},ye=xe=>{se.value=xe,vue.unref(ie).dynamicSearchForm=xe,vue.unref(ie).handleSubmit()};return U({init:ge}),(xe,Ce)=>{const $e=vue.resolveComponent("aceHeader"),we=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(we,{modelValue:vue.unref(ne),"onUpdate:modelValue":Ce[11]||(Ce[11]=Ee=>vue.isRef(ne)?ne.value=Ee:null),withHeader:!1,size:"100%",modalClass:"ace-modal-drawer"},{default:vue.withCtx(()=>{var Ee,Ve;return[vue.createElementVNode("div",_hoisted_1$$,[vue.createElementVNode("div",_hoisted_2$Q,[vue.createElementVNode("div",_hoisted_3$I,[vue.createVNode($e,{title:vue.unref(oe)=="table"?vue.unref(ue):`${vue.unref(pe)}【${vue.unref(ue)}】`},vue.createSlots({_:2},[vue.unref(fe).length?{name:"left",fn:vue.withCtx(()=>[vue.createElementVNode("i",{onClick:Ce[0]||(Ce[0]=Se=>vue.unref(ie).handlePopupForm()),class:"ml-2 text-base cursor-pointer ri-edit-box-line text-color-primary"})]),key:"0"}:void 0]),1032,["title"]),vue.createElementVNode("div",_hoisted_4$G,[vue.createTextVNode(" 模型数据 / "+vue.toDisplayString((Ee=vue.unref(he))==null?void 0:Ee.modelName)+" ["+vue.toDisplayString((Ve=vue.unref(he))==null?void 0:Ve.modelCode)+"] ",1),vue.createElementVNode("span",{class:"ml-2",innerHTML:vue.unref(ce)},null,8,_hoisted_5$x)])]),vue.createElementVNode("div",_hoisted_6$s,[vue.withDirectives(vue.createElementVNode("div",_hoisted_7$o,[vue.createVNode(vue.unref(elementPlus.ElPopover),{placement:"bottom",visible:vue.unref(re),"onUpdate:visible":Ce[2]||(Ce[2]=Se=>vue.isRef(re)?re.value=Se:null),trigger:"click",width:"900px",teleported:!1},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"warning"},{default:vue.withCtx(()=>[_hoisted_8$k,vue.createTextVNode(" 筛选配置 ")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(aceIndicatorCustomSearch,{ref_key:"customSearchRef",ref:ae,customSearchVisible:vue.unref(re),"onUpdate:customSearchVisible":Ce[1]||(Ce[1]=Se=>vue.isRef(re)?re.value=Se:null),onDynamicSearchFormUpdate:ye,dynamicSearchForm:vue.unref(se)},null,8,["customSearchVisible","dynamicSearchForm"])]),_:1},8,["visible"])],512),[[vue.vShow,vue.unref(oe)=="table"&&vue.unref(ue)!="0个指标:"]]),vue.createVNode(vue.unref(elementPlus.ElButton),{onClick:be},{default:vue.withCtx(()=>[_hoisted_9$h,vue.createTextVNode(" 关闭 ")]),_:1})])]),vue.createElementVNode("div",_hoisted_10$f,[vue.withDirectives(vue.createVNode(tableWidget,{ref_key:"tableWidgetRef",ref:ie,modelValue:vue.unref(oe),"onUpdate:modelValue":Ce[3]||(Ce[3]=Se=>vue.isRef(oe)?oe.value=Se:null),indicatorsId:vue.unref(de),"onUpdate:indicatorsId":Ce[4]||(Ce[4]=Se=>vue.isRef(de)?de.value=Se:null),title:vue.unref(ue),"onUpdate:title":Ce[5]||(Ce[5]=Se=>vue.isRef(ue)?ue.value=Se:null),resultTitle:vue.unref(pe),"onUpdate:resultTitle":Ce[6]||(Ce[6]=Se=>vue.isRef(pe)?pe.value=Se:null),sortHtml:vue.unref(ce),"onUpdate:sortHtml":Ce[7]||(Ce[7]=Se=>vue.isRef(ce)?ce.value=Se:null),dynamicSearchForm:vue.unref(se),"onUpdate:dynamicSearchForm":Ce[8]||(Ce[8]=Se=>vue.isRef(se)?se.value=Se:null)},null,8,["modelValue","indicatorsId","title","resultTitle","sortHtml","dynamicSearchForm"]),[[vue.vShow,vue.unref(oe)=="table"]]),vue.withDirectives(vue.createVNode(chartWidget,{ref_key:"chartWidgetRef",ref:le,dynamicSearchForm:vue.unref(se),"onUpdate:dynamicSearchForm":Ce[9]||(Ce[9]=Se=>vue.isRef(se)?se.value=Se:null),modelValue:vue.unref(oe),"onUpdate:modelValue":Ce[10]||(Ce[10]=Se=>vue.isRef(oe)?oe.value=Se:null)},null,8,["dynamicSearchForm","modelValue"]),[[vue.vShow,vue.unref(oe)=="chart"]])])])]}),_:1},8,["modelValue"])}}}),index_vue_vue_type_style_index_0_scoped_e26b4ea0_lang="",aceIndicatorDesign=_export_sfc$2(_sfc_main$1a,[["__scopeId","data-v-e26b4ea0"]]),_hoisted_1$_={class:"flex items-center"},_hoisted_2$P=vue.createElementVNode("i",{class:"ri-search-line"},null,-1),_hoisted_3$H={class:"mt-3"},_hoisted_4$F={class:"flex items-center w-full overflow-hidden"},_hoisted_5$w={class:"overflow-hidden text-ellipsis whitespace-nowrap"},_hoisted_6$r={key:0,class:"mr-1 text-base ri-checkbox-circle-fill text-color-success"},_hoisted_7$n={key:1,class:"mr-1 text-base ri-error-warning-fill text-color-warning"},_hoisted_8$j={key:0,class:"flex items-center justify-end flex-1"},_sfc_main$19=vue.defineComponent({__name:"menu",props:{tempId:{default:""}},emits:["node-click"],setup(te,{expose:U,emit:G}){const ee=te,{proxy:ne}=vue.getCurrentInstance(),re=vue.ref(""),oe=vue.ref(null),ie=vue.ref(null),le=G;vue.watch(re,de=>{vue.unref(ie).filter(de)});const ae=(de,fe)=>de?fe.name.includes(de):!0,se=vue.ref(!1),ue=()=>{oe.value=[],se.value=!0,fetch$1(ne).loadIndicatorsMenu().then(de=>{oe.value=Object.keys(de.data).map(ve=>({name:ve,id:ve,children:de.data[ve]}));let fe;se.value=!1,vue.unref(oe).length&&vue.nextTick(()=>{var ve;ee.tempId?fe=vue.unref(ie).getNode(ee.tempId):fe=vue.unref(ie).getNode((ve=vue.unref(oe)[0].children[0])==null?void 0:ve.id),fe&&(ce(fe==null?void 0:fe.data),vue.unref(ie).setCurrentKey(fe==null?void 0:fe.data.id))})})};ue();const ce=de=>{Array.isArray(de.children)||le("node-click",de)};return U({init:ue}),(de,fe)=>{const ve=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$_,[vue.createVNode(vue.unref(elementPlus.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:vue.unref(re),"onUpdate:modelValue":fe[0]||(fe[0]=he=>vue.isRef(re)?re.value=he:null)},{prefix:vue.withCtx(()=>[_hoisted_2$P]),_:1},8,["modelValue"]),vue.renderSlot(de.$slots,"search")]),vue.createElementVNode("div",_hoisted_3$H,[vue.unref(se)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{key:0,animated:"",count:2})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTree),{key:1,class:"animated fadeIn",ref_key:"treeRef",ref:ie,data:vue.unref(oe),"node-key":"id","default-expand-all":"",indent:0,"highlight-current":"","filter-node-method":ae,onNodeClick:ce},{default:vue.withCtx(({node:he,data:pe})=>[vue.createElementVNode("div",_hoisted_4$F,[vue.createElementVNode("div",_hoisted_5$w,[Array.isArray(pe.children)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[pe.normal?(vue.openBlock(),vue.createElementBlock("i",_hoisted_6$r)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_7$n))],64)),vue.createElementVNode("span",{class:vue.normalizeClass(["flex-1 overflow-hidden whitespace-nowrap text-ellipsis",{"font-bold":he.level==1}])},vue.toDisplayString(pe.name),3)]),Array.isArray(pe.children)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$j,[vue.renderSlot(de.$slots,"menu-item",{data:pe})]))])]),empty:vue.withCtx(()=>[vue.createVNode(ve,{description:"暂无数据"})]),_:3},8,["data"]))])],64)}}}),_hoisted_1$Z={class:"rule-list"},_hoisted_2$O={key:0,class:"flex items-center"},_hoisted_3$G=vue.createElementVNode("i",{class:"ri-error-warning-fill text-2xl text-color-warning mr-2"},null,-1),_hoisted_4$E={key:1,class:"flex items-center"},_hoisted_5$v=vue.createElementVNode("i",{class:"ri-checkbox-circle-fill text-2xl text-color-success mr-2"},null,-1),_sfc_main$18=vue.defineComponent({__name:"rule",props:{ruleList:{default:()=>[]}},setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref(!1),ee=vue.ref(""),ne=vue.ref([]),re=le=>{ee.value=`/api/ace-data-center/rule/ruleDataView?ruleId=${le}`,G.value=!0},oe=le=>{vue.unref(ne).length==0&&Object.keys(le.data[0]).forEach(ae=>{if(ae==="pageIndex"){ne.value.unshift({label:"序号",prop:"pageIndex",width:"80px"});return}ne.value.push({label:ae,prop:ae})})},ie=()=>{U.$baseExportExcel({title:"数据列表",url:vue.unref(ee),method:"get",header:vue.unref(ne)})};return(le,ae)=>{const se=vue.resolveComponent("aceHeader"),ue=vue.resolveComponent("AppList"),ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$Z,[le.ruleList.length>0?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(se,{title:"智能诊断",class:"mb-5"}),vue.createVNode(vue.unref(elementPlus.ElAlert),{type:"warning",closable:!1},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.ruleList,de=>(vue.openBlock(),vue.createElementBlock("div",{key:de.id,class:"mt-0 text-sm"},[+de.rows>0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$O,[_hoisted_3$G,vue.createTextVNode(" "+vue.toDisplayString(de.ruleName)+" 【异常数据"+vue.toDisplayString(de.rows>99?"99+":de.rows)+"】 ",1),vue.createVNode(vue.unref(elementPlus.ElLink),{class:"ml-2",type:"primary",onClick:fe=>re(de.id)},{default:vue.withCtx(()=>[vue.createTextVNode("查看明细")]),_:2},1032,["onClick"])])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$E,[_hoisted_5$v,vue.createTextVNode(" "+vue.toDisplayString(de.ruleName)+" 【未检测到异常数据】 ",1)]))]))),128))]),_:1})],64)):vue.createCommentVNode("",!0)]),vue.createVNode(ce,{modelValue:vue.unref(G),"onUpdate:modelValue":ae[1]||(ae[1]=de=>vue.isRef(G)?G.value=de:null),title:"数据列表"},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-3",onClick:ie},{default:vue.withCtx(()=>[vue.createTextVNode("导 出")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:ae[0]||(ae[0]=de=>G.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("关 闭")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(ue,{tableData:vue.unref(ne),url:vue.unref(ee),onSuccess:oe},null,8,["tableData","url"])]),_:1},8,["modelValue"])],64)}}}),_hoisted_1$Y={key:1,class:"animated fadeIn"},_hoisted_2$N={class:"flex items-center mt-5 mb-5 ml-2 moudle-1"},_hoisted_3$F={key:0,class:"mr-1 text-xl ri-error-warning-fill text-color-warning"},_hoisted_4$D={key:1,class:"mr-1 text-xl ri-checkbox-circle-fill text-color-success"},_hoisted_5$u={class:"ml-1"},_hoisted_6$q={class:"flex items-center select-type"},_hoisted_7$m=["onClick"],_hoisted_8$i={class:"mt-5 mb-5"},_hoisted_9$g={class:"mt-4"},_sfc_main$17=vue.defineComponent({__name:"analysis",props:{indicatorsId:{default:""}},emits:["rule-success"],setup(te,{emit:U}){const G=te;vue.watch(()=>G.indicatorsId,()=>ue());const ee=U,{proxy:ne}=vue.getCurrentInstance(),{dynamicSearchForm:re,dynamicSearchFormat:oe,dynamicSearchParams:ie}=ne.$aceDynamicSearch(),le=vue.ref(!0),ae=vue.ref([]),se=vue.ref(null),ue=async()=>{var _e,be,ye;le.value=!0,re.value=[],ve.value={type:"",value:""},ce.value=[],de.value="",ge();const me=await fetch$1(ne).detailAndTask(G.indicatorsId);se.value=me.data,(be=(_e=me.data)==null?void 0:_e.echartsDataVO)!=null&&be.config&&fe(),(ye=me==null?void 0:me.data)!=null&&ye.formConfJson&&(re.value=oe(JSON.parse(me==null?void 0:me.data.formConfJson))),le.value=!1},ce=vue.ref([]),de=vue.ref(""),fe=async()=>{var _e;ce.value=[],de.value="";const me=await fetch$1(ne).getEchartDetail({indicatorsId:G.indicatorsId});me&&(Object.keys(((_e=me.data)==null?void 0:_e.clientEchartsType)??{}).forEach(be=>{var ye;Object.values((ye=me.data)==null?void 0:ye.clientEchartsType[be]).forEach(xe=>{var Ce,$e;ce.value.push({client:be,label:(Ce=echartsTypeList[xe])==null?void 0:Ce.name,icon:($e=echartsTypeList[xe])==null?void 0:$e.icon,value:`${be}_${xe}`})})}),vue.unref(ce).length>0&&(de.value=vue.unref(ce)[0].value,pe(vue.unref(de))))},ve=vue.ref({type:"",value:""}),he=vue.ref(!1),pe=async(me,_e=!1)=>{var Ce;de.value=me,_e&&(he.value=!0);const be=ie(vue.unref(re)),ye=me.split("_"),xe=await fetch$1(ne).pullEchartsDataVO({indicatorsId:G.indicatorsId,loadType:((Ce=vue.unref(se))==null?void 0:Ce.loadType)??3,params:be,targetClient:ye[0],echartsType:ye[1]});if(xe){he.value=!1,vue.unref(ve).type=ye[1];try{vue.unref(ve).value=chartJsonFormat(xe.data.config)}catch{vue.unref(ve).value=xe.data.config}}},ge=async()=>{var _e;ae.value=[];const me=await fetch$1(ne).getRule({current:1,size:100,businessType:"indicators",businessId:G.indicatorsId});ae.value=((_e=me.data)==null?void 0:_e.records)??[],ee("rule-success",ae.value)};return ue(),(me,_e)=>{const be=vue.resolveComponent("AppResourceVisitor"),ye=vue.resolveComponent("aceHeader"),xe=vue.resolveComponent("aceDynamicSearch"),Ce=vue.resolveComponent("aceChart");return vue.unref(le)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{key:0,animated:""})):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Y,[vue.createVNode(ye,{title:"指标计算"},{default:vue.withCtx(()=>[vue.createVNode(be,{businessType:"INDICATORS",businessld:G.indicatorsId},null,8,["businessld"])]),_:1}),vue.createElementVNode("div",_hoisted_2$N,[vue.unref(ae).some($e=>$e.rows>0)?(vue.openBlock(),vue.createElementBlock("i",_hoisted_3$F)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_4$D)),vue.createElementVNode("span",_hoisted_5$u,vue.toDisplayString(vue.unref(se).remark),1)]),vue.createVNode(ye,{title:"指标数据"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_6$q,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ce),$e=>(vue.openBlock(),vue.createElementBlock("span",{onClick:we=>pe($e.value,!0),class:vue.normalizeClass(["flex items-center cursor-pointer",[$e.value==vue.unref(de)?"text-color-primary":"text-gray-600"]]),key:$e.value},[vue.createElementVNode("i",{class:vue.normalizeClass([$e.icon,"mr-1"])},null,2),vue.createTextVNode(" "+vue.toDisplayString($e.label),1)],10,_hoisted_7$m))),128))])]),_:1}),vue.createElementVNode("div",_hoisted_8$i,[vue.unref(re).length>0?(vue.openBlock(),vue.createBlock(xe,{key:0,form:vue.unref(re),onSuccess:_e[0]||(_e[0]=$e=>pe(vue.unref(de),!0)),class:"mb-0"},null,8,["form"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_9$g,[vue.createVNode(Ce,{type:vue.unref(ve).type,options:vue.unref(ve).value,loading:vue.unref(he)},null,8,["type","options","loading"])])]),vue.createVNode(_sfc_main$18,{ruleList:vue.unref(ae)},null,8,["ruleList"])]))}}}),analysis_vue_vue_type_style_index_0_scoped_c9f7a244_lang="",aceIndicatorSystemPreview=_export_sfc$2(_sfc_main$17,[["__scopeId","data-v-c9f7a244"]]),_hoisted_1$X={class:"h-full"},_sfc_main$16=vue.defineComponent({__name:"relation",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref(null),ee=vue.ref(!0),ne=["#00ADD0","#FFA12F","#B62AFF","#604BFF","#6E35FF","#002AFF","#20C0F4","#95F300","#04FDB8","#AF5AFF"],re=(oe,ie,le="#00f6ff")=>oe.map((ae,se)=>{switch(ae&&ae.title&&(ae.name=ae.title),ie==1&&(le=ne.find((ue,ce)=>ce==se%10)),(ie===0||ie===1)&&(ae.label={position:"inside"}),ie){case 0:ae.symbolSize=70;break;case 1:ae.symbolSize=50;break;default:ae.symbolSize=10;break}return ae.lineStyle={color:le},ae.children?(ae.itemStyle={borderColor:le,color:le},ae.children=re(ae.children,ie+1,le)):ae.itemStyle={color:"transparent",borderColor:le},ae});return fetch$1(U).indicatorsRelationTree().then(oe=>{if(ee.value=!1,!oe.data.length){G.value={};return}G.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:re([oe==null?void 0:oe.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}}]}}),(oe,ie)=>{const le=vue.resolveComponent("v-chart");return vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",_hoisted_1$X,[vue.createVNode(le,{option:vue.unref(G),autoresize:""},null,8,["option"])])),[[vue.unref(elementPlus.vLoading),vue.unref(ee)]])}}}),_hoisted_1$W={key:0,class:"flex items-center gap-x-2.5"},_hoisted_2$M=vue.createElementVNode("div",{class:"font-bold"},"数据分析",-1),_sfc_main$15=vue.defineComponent({__name:"yoy",props:{search:{default:()=>[]},originSearch:{default:()=>[]},chartType:{default:""},option:{default:null}},setup(te,{expose:U}){const G=te,ee=screenDesignMainStore(),{proxy:ne}=vue.getCurrentInstance(),{dynamicSearchForm:re,dynamicSearchFormat:oe,dynamicSearchParams:ie}=ne.$aceDynamicSearch(),le=["yySingle","yymmSingle","yymmddSingle"],{seriesItem:ae}=useLineCommon(),se=vue.computed(()=>G.search.find(ve=>le.includes(ve.type))),ue=vue.computed(()=>{const ve=vue.unref(se)?Object.values(ie([vue.unref(se)])).every(he=>he==""):!1;return G.search.filter(he=>le.includes(he.type)).length==1&&!ve}),ce=vue.ref("");vue.watch(ce,()=>de());const de=async()=>{var Se;if(!vue.unref(ue)||vue.unref(ce)=="")return;const ve=JSON.parse(JSON.stringify((Se=ee.getChartData)==null?void 0:Se.params)),he=JSON.parse(JSON.stringify(G.search)),pe=he.find(ke=>le.includes(ke.type)),ge=G.originSearch.find(ke=>le.includes(ke.type)),_e=JSON.parse((ve==null?void 0:ve.groupArgsJson)??"[]").find(ke=>ke.comment==G.option.dataShow.x);ve.groupArgsJson=JSON.stringify([_e]);const be=_e.dateFormatType;switch(pe.type){case"yymmSingle":pe.value=dayjs(pe.value).subtract(1,vue.unref(ce)=="TB"?"year":"month").format("YYYY-MM");break;case"yymmddSingle":pe.value=dayjs(pe.value).subtract(1,vue.unref(ce)=="TB"?"year":"day").format("YYYY-MM-DD");break;case"yySingle":pe.value=dayjs(pe.value).subtract(1,"year").format("YYYY");break}ve.params=ie(he);const xe=G.option.dataset.dimensions;xe.length>=3&&G.option.dataset.dimensions.pop();const Ce=await ne.$baseHttp.post("/api/ace-data-center/model-indicators/debug",ve),$e=xe[0],we=G.option.dataShow.y.filter(ke=>!G.option.dataShow.hide.includes(ke));vue.unref(pe.type).includes("Range")?(G.option.dataset.dimensions[1]=`${ge!=null&&ge.minValue?`${ge==null?void 0:ge.minValue}~`:""}${(ge==null?void 0:ge.maxValue)??""}${we}`,G.option.dataset.dimensions.push(`${pe.minValue?`${pe.minValue}~`:""}${(pe==null?void 0:pe.maxValue)??""}${we}`)):(G.option.dataset.dimensions[1]=`${ge==null?void 0:ge.value}${we}`,G.option.dataset.dimensions[2]=`${pe.value}${we}`,G.option.dataset.dimensions[3]="增长率");const Ee=G.option.series[0];G.option.series=[],Ce.data.records.forEach(ke=>{fe(ke,$e,be)});const Ve=JSON.parse(JSON.stringify(G.option.dataset.temp_source));Ve.forEach((ke,Ne)=>{fe(ke,$e,be);let Ie=null;ke[G.option.dataset.dimensions[1]]=ke[we],be?(Ie=Ce.data.records.find(De=>De[$e]==ke[$e]),Ie||(["year"].includes(be)&&(Ie=Ce.data.records.find(De=>De[$e].indexOf(pe.value)>=0),ke[$e]=$e),["day","month"].includes(be)&&(Ie=Ce.data.records.find(De=>De[$e].split("-").at(-1)==ke[$e].split("-").at(-1))))):Ie=Ce.data.records.find(De=>De[$e]==ke[$e]),Ie||(Ie={[we]:0}),Ie&&(ke[G.option.dataset.dimensions[2]]=Ie[we]);const Pe=ke[G.option.dataset.dimensions[1]]??0,Te=ke[G.option.dataset.dimensions[2]]??0;ke.增长率=!Pe||!Te?0:((Pe-Te)/Te*100).toFixed(2)}),G.option.dataset.source=Ve,setTimeout(()=>{const{yAxis:ke,xAxis:Ne}=G.option;let Ie="yAxis";!Array.isArray(ke)&&ke.type!="value"&&(Ie="xAxis"),G.option.series=[Ee,Ee,{...ae,name:"增长率",[`${Ie}Index`]:1}],G.option[Ie]=[Array.isArray(G.option[Ie])?G.option[Ie][0]:G.option[Ie],{type:"value",name:"增长率",nameGap:20,splitLine:!1,nameLocation:Ie=="xAxis"?"start":"end"}]})},fe=(ve,he,pe)=>{if(!(!pe||(ve[he]??"")=="")&&["day"].includes(pe)){const ge=ve[he].split("-").filter((me,_e)=>_e==0?"":me);ve[he]=ge.join("-")}};return U({init:de,type:ce}),(ve,he)=>vue.unref(ue)&&ve.option?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$W,[_hoisted_2$M,vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(ce),"onUpdate:modelValue":he[0]||(he[0]=pe=>vue.isRef(ce)?ce.value=pe:null)},{default:vue.withCtx(()=>{var pe;return[vue.createVNode(vue.unref(elementPlus.ElRadio),{label:"TB",value:"TB"},{default:vue.withCtx(()=>[vue.createTextVNode("同比")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{label:"HB",value:"HB",disabled:!["yymmSingle","yymmddSingle"].includes((pe=vue.unref(se))==null?void 0:pe.type)},{default:vue.withCtx(()=>[vue.createTextVNode(" 环比 ")]),_:1},8,["disabled"])]}),_:1},8,["modelValue"])])])):vue.createCommentVNode("",!0)}}),_withScopeId$k=te=>(vue.pushScopeId("data-v-6112f6cc"),te=te(),vue.popScopeId(),te),_hoisted_1$V={key:2,class:"flex flex-col chart-preview"},_hoisted_2$L={class:"flex mb-2.5"},_hoisted_3$E={key:0,class:"flex-1"},_hoisted_4$C={class:"flex items-center gap-x-2.5"},_hoisted_5$t=_withScopeId$k(()=>vue.createElementVNode("div",{class:"font-bold"},"计算指标",-1)),_hoisted_6$p={key:0,class:"flex items-center gap-x-2.5"},_hoisted_7$l=_withScopeId$k(()=>vue.createElementVNode("div",{class:"font-bold"},"分组维度",-1)),_hoisted_8$h={class:"flex flex-col flex-1 overflow-hidden"},_hoisted_9$f={class:"relative flex-1"},_hoisted_10$e={class:"flex justify-center change-btns"},_sfc_main$14=vue.defineComponent({__name:"IndicatorsView",props:{dynamicSearchForm:{default:()=>[]},result:{default:()=>{}},chartData:{default:null}},emits:["search-success"],setup(te,{emit:U}){const G=te,ee=U,ne=screenDesignMainStore(),{proxy:re}=vue.getCurrentInstance(),{dynamicSearchForm:oe,dynamicSearchFormat:ie,dynamicSearchParams:le}=re.$aceDynamicSearch(),ae=vue.ref(null),se=vue.ref(""),ue=vue.ref([]),ce=vue.ref(G.dynamicSearchForm),de=vue.ref(!1),{option:fe,formatChart:ve,chartType:he,setChartData:pe,changeChartSeries:ge,chartDataParams:me}=useCustomChart(),_e={day:"按日",week:"按周",month:"按月",quarter:"按季度",year:"按年","":"按时分秒"};vue.onMounted(async()=>{await re.$baseHttp.post(`/api/ace-data-center/model-indicators-echarts/getEchartsTypes/${G.result.id}`).then(we=>{ue.value=we.data,we.data.length&&(se.value=we.data[0].code,he.value=we.data[0].type)})}),vue.watch(se,async()=>{Ce()});const be=we=>{se.value!=we.code&&(fe.value={},he.value=we.type,se.value=we.code,vue.unref(ae)&&(vue.unref(ae).type=""))},ye=vue.ref(""),xe=vue.ref(""),Ce=async()=>{var we,Ee,Ve,Se,ke,Ne,Ie;ce.value=JSON.parse(JSON.stringify(G.dynamicSearchForm)),de.value=!0,fe.value={},ye.value="",xe.value=["2"].includes(vue.unref(he))?"":[],G.chartData&&(me.value=G.chartData),await ve(vue.unref(se)),ye.value=(Ee=(we=vue.unref(fe))==null?void 0:we.dataShow)==null?void 0:Ee.x,Array.isArray((Se=(Ve=vue.unref(fe))==null?void 0:Ve.dataShow)==null?void 0:Se.y)?xe.value=(ke=vue.unref(fe))==null?void 0:ke.dataShow.y.filter(Pe=>{var Te;return!(((Te=vue.unref(fe))==null?void 0:Te.dataShow.hide)??[]).includes(Pe)}):xe.value=(Ie=(Ne=vue.unref(fe))==null?void 0:Ne.dataShow)==null?void 0:Ie.y,isMobile&&["1","3","5"].includes(vue.unref(he))&&!vue.unref(fe).dataZoom&&(fe.value.grid.bottom="10%",fe.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(()=>{de.value=!1},10)};vue.watch([ye,xe],async([we,Ee],[Ve,Se])=>{var ke;vue.unref(de)||(vue.unref(fe).dataShow.x=we,vue.unref(fe).dataShow.y=Ee,Array.isArray(Ee)&&(vue.unref(fe).dataShow.hide=(ke=vue.unref(fe))==null?void 0:ke.dataShow.y.filter(Ne=>ne.getChartData.y.includes(Ne.showLabel))),(we!=Ve||["2","7"].includes(vue.unref(he)))&&(fe.value.dataset.source=await pe(vue.unref(he),we,["2","7"].includes(vue.unref(he))?Ee:null),fe.value.dataset.temp_source=JSON.parse(JSON.stringify(fe.value.dataset.source)),ce.value=JSON.parse(JSON.stringify(G.dynamicSearchForm)),vue.unref(ae)&&(vue.unref(ae).type="")),["xAxis","yAxis"].forEach(Ne=>{Array.isArray(fe.value[Ne])&&(fe.value[Ne]=fe.value[Ne].filter(Ie=>Ie.name!="增长率"))}),ge())},{deep:!0});const $e=()=>{ne.getChartData.params.params=le(G.dynamicSearchForm),Ce(),ee("search-success",ne.getChartData.params.params)};return(we,Ee)=>{var Ne;const Ve=vue.resolveComponent("aceDynamicSearch"),Se=vue.resolveComponent("AppEmpty"),ke=vue.resolveComponent("aceCustomChart");return vue.openBlock(),vue.createElementBlock("div",null,[G.dynamicSearchForm.length?(vue.openBlock(),vue.createBlock(Ve,{key:0,form:G.dynamicSearchForm,onSuccess:$e},null,8,["form"])):vue.createCommentVNode("",!0),vue.unref(ue).length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$V,[vue.createElementVNode("div",_hoisted_2$L,[["9"].includes(vue.unref(he))?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$E,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:!((Ne=vue.unref(fe))!=null&&Ne.dataShow),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$C,[_hoisted_5$t,vue.createElementVNode("div",null,[["2"].includes(vue.unref(he))?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElRadioGroup),{key:0,modelValue:vue.unref(xe),"onUpdate:modelValue":Ee[0]||(Ee[0]=Ie=>vue.isRef(xe)?xe.value=Ie:null)},{default:vue.withCtx(()=>{var Ie;return[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList((((Ie=vue.unref(ne).getChartData)==null?void 0:Ie.y)??[]).filter(Pe=>Pe.aggType!="other"),Pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElRadio),{key:Pe.showLabel,label:Pe.showLabel,value:Pe.showLabel},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])):["8"].includes(vue.unref(he))?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckboxGroup),{key:1,modelValue:vue.unref(xe),"onUpdate:modelValue":Ee[1]||(Ee[1]=Ie=>vue.isRef(xe)?xe.value=Ie:null)},{default:vue.withCtx(()=>{var Ie,Pe;return[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList([...((Ie=vue.unref(ne).getChartData)==null?void 0:Ie.y)??[],...(((Pe=vue.unref(ne).getChartData)==null?void 0:Pe.x)??[]).map(Te=>({...Te,showLabel:Te.comment}))],Te=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckbox),{key:Te.showLabel,label:Te.showLabel,value:Te.showLabel},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckboxGroup),{key:2,modelValue:vue.unref(xe),"onUpdate:modelValue":Ee[2]||(Ee[2]=Ie=>vue.isRef(xe)?xe.value=Ie:null)},{default:vue.withCtx(()=>{var Ie;return[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList((((Ie=vue.unref(ne).getChartData)==null?void 0:Ie.y)??[]).filter(Pe=>Pe.aggType!="other"),Pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckbox),{key:Pe.showLabel,label:Pe.showLabel,value:Pe.showLabel},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"]))])]),["8"].includes(vue.unref(he))?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$p,[_hoisted_7$l,vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(ye),"onUpdate:modelValue":Ee[3]||(Ee[3]=Ie=>vue.isRef(ye)?ye.value=Ie:null)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ne).getChartData.x,Ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElRadio),{key:Ie.comment,label:Ie.comment,value:Ie.comment},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ie.comment)+" ",1),_e[Ie.dateFormatType]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" ("+vue.toDisplayString(_e[Ie.dateFormatType])+") ",1)],64)):vue.createCommentVNode("",!0)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])])])),["3","1"].includes(vue.unref(he))&&vue.unref(fe).dataShow.y.filter(Ie=>!vue.unref(fe).dataShow.hide.includes(Ie)).length==1?(vue.openBlock(),vue.createBlock(_sfc_main$15,{key:1,ref_key:"yoyRef",ref:ae,option:vue.unref(fe),search:vue.unref(ce),originSearch:vue.unref(oe),chartType:vue.unref(he)},null,8,["option","search","originSearch","chartType"])):vue.createCommentVNode("",!0)]),_:1},8,["loading"])]))]),vue.createElementVNode("div",_hoisted_8$h,[vue.createElementVNode("div",_hoisted_9$f,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(de),animated:""},{default:vue.withCtx(()=>[vue.createVNode(ke,{option:vue.unref(fe),chartType:vue.unref(he)},null,8,["option","chartType"])]),_:1},8,["loading"])]),vue.createElementVNode("div",_hoisted_10$e,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ue),Ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(se)==Ie.code?"primary":"",key:Ie.type,onClick:Pe=>be(Ie)},{default:vue.withCtx(()=>{var Pe;return[vue.createElementVNode("i",{class:vue.normalizeClass((Pe=vue.unref(echartsTypeList)[Ie.type])==null?void 0:Pe.icon)},null,2)]}),_:2},1032,["type","onClick"]))),128))]),_:1})])])])):(vue.openBlock(),vue.createBlock(Se,{key:1,description:"暂无数据"}))])}}}),IndicatorsView_vue_vue_type_style_index_0_scoped_6112f6cc_lang="",IndicatorsView=_export_sfc$2(_sfc_main$14,[["__scopeId","data-v-6112f6cc"]]),_hoisted_1$U=["hidden"],_hoisted_2$K={class:"flex items-center w-full mb-4"},_hoisted_3$D={class:"flex justify-end flex-1"},_hoisted_4$B={class:"mb-4"},_hoisted_5$s={class:"flex mb-5 moudle-1"},_hoisted_6$o={class:"flex-1"},_hoisted_7$k={class:"flex items-center mt-2"},_hoisted_8$g={key:0,class:"mr-1 text-xl ri-error-warning-fill text-color-warning"},_hoisted_9$e={key:1,class:"mr-1 text-xl ri-checkbox-circle-fill text-color-success"},_hoisted_10$d={class:"ml-1"},_hoisted_11$b=vue.createElementVNode("div",{class:"w-10"},null,-1),_hoisted_12$a={class:"flex-1"},_hoisted_13$8={class:"items-center mt-2"},_hoisted_14$7=vue.createElementVNode("i",{class:"mr-1 text-xl ri-database-2-fill text-color-primary"},null,-1),_hoisted_15$4={key:1,class:"w-full"},_sfc_main$13=vue.defineComponent({__name:"modelIndicators",props:{indicatorsId:{default:""},modelIndicatorsRules:{default:()=>[]}},emits:["click-design","rule-success"],setup(te,{expose:U,emit:G}){const ee=te,ne=G;vue.watch(()=>ee.indicatorsId,()=>be());const{proxy:re}=vue.getCurrentInstance(),oe=screenDesignMainStore(),{dynamicSearchForm:ie,dynamicSearchFormat:le,dynamicSearchParams:ae}=re.$aceDynamicSearch(),se=vue.ref(!0),ue=vue.ref("basic"),ce=vue.ref(!1),de=vue.ref(!1),fe=vue.ref([]),ve=vue.ref({}),he=vue.ref(null),pe=vue.ref([]),ge=vue.ref([]),me=vue.ref({}),_e=({column:De})=>{vue.unref(me)[De.property]&&(De.order=vue.unref(me)[De.property])},be=async()=>{se.value=!0,ue.value="basic",oe.setChartData({}),we();const De=await re.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${ee.indicatorsId}`);he.value=De.data,se.value=!1,me.value=JSON.parse(De.data.sortArgsJson??"{}"),ie.value=le(JSON.parse(De.data.formConfJson??"[]")),Ce()},ye=vue.ref(!1),xe=vue.ref(!1),Ce=async(De="")=>{var Le,Re,Fe,je,Me,ze,Ge,We,Ue;De!="sort"&&(ge.value=[],ye.value=!0),xe.value=!0;const Oe=Object.keys(vue.unref(me)).map(qe=>({field:qe,type:vue.unref(me)[qe]=="ascending"?"asc":"desc"})),Be={aggArgsJson:(Le=vue.unref(he))==null?void 0:Le.aggArgsJson,groupArgsJson:(Re=vue.unref(he))==null?void 0:Re.groupArgsJson,sortArgsJson:JSON.stringify(Oe),params:vue.unref(Ne)??ae(le(JSON.parse(((Fe=vue.unref(he))==null?void 0:Fe.formConfJson)??"[]"))),modelIndicatorsId:(je=vue.unref(he))==null?void 0:je.id,pageSize:(Me=vue.unref(he))==null?void 0:Me.pageSize,modelId:(ze=vue.unref(he))==null?void 0:ze.modelId},Ae=await re.$baseHttp.post("/api/ace-data-center/model-indicators/debug",Be);Ae&&(pe.value=((Ge=Ae.data)==null?void 0:Ge.records)??[],ye.value=!1,xe.value=!1,ve.value={x:JSON.parse((We=vue.unref(he))==null?void 0:We.groupArgsJson),y:JSON.parse((Ue=vue.unref(he))==null?void 0:Ue.aggArgsJson),params:Be},oe.setChartData(ve.value),vue.unref(pe).length&&De!="sort"&&(Object.keys(vue.unref(pe)[0]).forEach(qe=>{ge.value.push({label:qe,prop:qe,sortable:"custom"})}),ge.value.push({label:"操作",prop:"button",width:"120px",fixed:"right",slot:!0})))},$e=De=>{const{prop:Oe,order:Be}=De;!Be||vue.unref(me)[Oe]===Be?delete vue.unref(me)[Oe]:vue.unref(me)[Oe]=Be,Ce("sort")},we=async()=>{var Oe;fe.value=[];const De=await fetch$1(re).getRule({current:1,size:100,businessType:"indicators",businessId:ee.indicatorsId});fe.value=((Oe=De.data)==null?void 0:Oe.records)??[],ne("rule-success",fe.value)},Ee=vue.ref(null),Ve=De=>{Ee.value=De,ce.value=!0},Se=De=>(De.modelIndicatorsId=vue.unref(he).id,De.row=vue.unref(Ee),De),ke=()=>{de.value=!0},Ne=vue.ref(null),Ie=De=>{Ne.value=De,Ce()};vue.watch(ce,De=>Te(De)),vue.watch(de,De=>Te(De));const Pe=vue.ref(!1),Te=De=>{self!=top&&(Pe.value=De,window.parent.postMessage(De?"model-indicators-open":"model-indicators-close","*"))};return be(),U({init:be,result:he}),(De,Oe)=>{const Be=vue.resolveComponent("AppResourceVisitor"),Ae=vue.resolveComponent("aceHeader"),Le=vue.resolveComponent("AppTable"),Re=vue.resolveComponent("AppEmpty"),Fe=vue.resolveComponent("aceDynamicList"),je=vue.resolveComponent("AppDrawer");return vue.unref(se)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{key:0,animated:""})):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"animated fadeIn",hidden:vue.unref(Pe)},[vue.createElementVNode("div",_hoisted_2$K,[vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{onClick:Oe[0]||(Oe[0]=Me=>ue.value="basic"),type:vue.unref(ue)=="basic"?"primary":""},{default:vue.withCtx(()=>[vue.createTextVNode(" 指标图表 ")]),_:1},8,["type"]),vue.createVNode(vue.unref(elementPlus.ElButton),{onClick:Oe[1]||(Oe[1]=Me=>ue.value="data"),type:vue.unref(ue)=="data"?"primary":""},{default:vue.withCtx(()=>[vue.createTextVNode(" 指标数据 ")]),_:1},8,["type"])]),_:1})]),vue.createElementVNode("div",_hoisted_3$D,[vue.createVNode(Be,{businessType:"MODEL_INDICATORS",businessld:ee.indicatorsId},null,8,["businessld"])])]),vue.withDirectives(vue.createElementVNode("div",null,[vue.createElementVNode("div",_hoisted_4$B,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(xe),animated:""},{default:vue.withCtx(()=>[vue.createVNode(IndicatorsView,{dynamicSearchForm:vue.unref(ie),result:vue.unref(he),chartData:vue.unref(ve),onSearchSuccess:Ie},null,8,["dynamicSearchForm","result","chartData"])]),_:1},8,["loading"])])],512),[[vue.vShow,vue.unref(ue)=="basic"]]),vue.withDirectives(vue.createElementVNode("div",null,[vue.createElementVNode("div",_hoisted_5$s,[vue.createElementVNode("div",_hoisted_6$o,[vue.createVNode(Ae,{title:"指标计算"}),vue.createElementVNode("div",_hoisted_7$k,[vue.unref(fe).some(Me=>Me.rows>0)?(vue.openBlock(),vue.createElementBlock("i",_hoisted_8$g)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_9$e)),vue.createElementVNode("span",_hoisted_10$d,vue.toDisplayString(vue.unref(he).remark),1)])]),_hoisted_11$b,vue.createElementVNode("div",_hoisted_12$a,[vue.createVNode(Ae,{title:"数据来源"}),vue.createElementVNode("div",_hoisted_13$8,[_hoisted_14$7,vue.createTextVNode(" 重构仓模型数据 | "+vue.toDisplayString(vue.unref(he).modelName)+"【 ",1),vue.createElementVNode("span",{class:"cursor-pointer text-color-primary",onClick:ke},vue.toDisplayString(vue.unref(he).modelCode),1),vue.createTextVNode(" 】 ")])])]),vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(ye),animated:""},{default:vue.withCtx(()=>[vue.unref(ge).length?(vue.openBlock(),vue.createBlock(Le,{key:0,maxHeight:"400px",tableData:vue.unref(ge),list:vue.unref(pe),loading:!1,headerCellClassName:_e,onSortChange:$e},{button:vue.withCtx(({row:Me})=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:ze=>Ve(Me)},{default:vue.withCtx(()=>[vue.createTextVNode("查看明细")]),_:2},1032,["onClick"])]),_:1},8,["tableData","list"])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$4,[vue.createVNode(Re,{description:"暂无数据",class:"mt-4"})]))]),_:1},8,["loading"])],512),[[vue.vShow,vue.unref(ue)=="data"]]),vue.createVNode(_sfc_main$18,{ruleList:vue.unref(fe)},null,8,["ruleList"]),vue.createVNode(je,{modelValue:vue.unref(ce),"onUpdate:modelValue":Oe[2]||(Oe[2]=Me=>vue.isRef(ce)?ce.value=Me:null),title:"查看明细",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(Ae,{title:"统计:",class:"mb-2"}),vue.createVNode(Le,{height:null,tableData:Object.keys(vue.unref(Ee)).map(Me=>({label:Me,prop:Me})),list:[vue.unref(Ee)],loading:!1},null,8,["tableData","list"]),vue.createVNode(Ae,{title:"钻取明细:",class:"mt-4 mb-2"}),vue.createVNode(Fe,{id:vue.unref(he).modelId,keyName:"modelIndicatorsId",title:vue.unref(he).modelName,isDownLoad:vue.unref(isMobile),url:"/api/ace-data-center/model-indicators/drilling",formatParamsFunc:Se},null,8,["id","title","isDownLoad"])]),_:1},8,["modelValue"]),vue.createVNode(je,{modelValue:vue.unref(de),"onUpdate:modelValue":Oe[3]||(Oe[3]=Me=>vue.isRef(de)?de.value=Me:null),title:"模型数据",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(Fe,{id:vue.unref(he).modelId,title:vue.unref(he).modelName},null,8,["id","title"])]),_:1},8,["modelValue"])],8,_hoisted_1$U))}}}),_hoisted_1$T=vue.createElementVNode("i",{class:"ri-search-line"},null,-1),_hoisted_2$J={class:"mt-3"},_hoisted_3$C={key:1,class:"mr-1 -ml-5 text-base ri-edit-circle-fill text-color-primary"},_sfc_main$12=vue.defineComponent({__name:"modelMenu",props:{type:{default:""}},emits:["node-click","change-type"],setup(te,{expose:U,emit:G}){const ee=te,{proxy:ne}=vue.getCurrentInstance(),re=vue.ref(""),oe=vue.ref(null),ie=G;vue.watch(re,he=>{vue.unref(oe).filter(he)});const le=(he,pe)=>he?pe.modelName.includes(he):!0,ae=vue.ref([]),se=vue.ref([]),ue=vue.ref([]),ce=vue.ref(!0),de=vue.computed(()=>ee.type=="ODS"?vue.unref(ae):ee.type=="DWD"?vue.unref(se):vue.unref(ue)),fe=()=>{Promise.all([fetch$1(ne).loadModelMenu({modelLayer:"ODS"}),fetch$1(ne).loadModelMenu({modelLayer:"DWD"}),fetch$1(ne).loadModelMenu({modelLayer:"ODSVIEW"})]).then(he=>{const pe=he[0].data,ge=he[1].data,me=he[2].data;ae.value=Object.keys(pe).map(_e=>({modelName:_e,id:_e,children:pe[_e]})),se.value=Object.keys(ge).map(_e=>({modelName:_e,id:_e,children:ge[_e]})),ue.value=Object.keys(me).map(_e=>({modelName:_e,id:_e,children:me[_e]})),ce.value=!1})};fe();const ve=he=>{if(he.modelCode){if(ee.type=="ODS"){ie("node-click",he);return}Array.isArray(he.children)||ie("node-click",he)}};return U({init:fe}),(he,pe)=>{const ge=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(elementPlus.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:vue.unref(re),"onUpdate:modelValue":pe[0]||(pe[0]=me=>vue.isRef(re)?re.value=me:null)},{prefix:vue.withCtx(()=>[_hoisted_1$T]),_:1},8,["modelValue"]),vue.createElementVNode("div",_hoisted_2$J,[vue.unref(ce)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{key:0,animated:"",count:2})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTree),{key:1,class:"animated fadeIn",ref_key:"treeRef",ref:oe,data:vue.unref(de),"default-expand-all":"","node-key":"id","highlight-current":"","filter-node-method":le,onNodeClick:ve},{default:vue.withCtx(({node:me,data:_e})=>[me.level!=1||he.type=="ODS"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_e.modelCode&&_e.openForm!=2?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:vue.normalizeClass(["mr-1 -ml-5 text-base ri-checkbox-circle-fill",[_e.publishStatus==2?"text-color-success":"text-color-info"]])},null,2)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),_e.openForm==2?(vue.openBlock(),vue.createElementBlock("i",_hoisted_3$C)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass({"font-bold":me.level==1})},vue.toDisplayString(_e.modelName),3),vue.renderSlot(he.$slots,"default",{element:_e})]),empty:vue.withCtx(()=>[vue.createVNode(ge,{description:"暂无数据"})]),_:3},8,["data"]))])],64)}}}),_hoisted_1$S={class:"mb-3"},_hoisted_2$I={style:{height:"calc(100vh - 100px)"},class:"overflow-y-auto"},_sfc_main$11=vue.defineComponent({__name:"modelIndicatorsAdd",emits:["click-node"],setup(te,{expose:U,emit:G}){const ee=G,{proxy:ne}=vue.getCurrentInstance(),re=vue.ref(!1),oe=vue.ref(),ie=vue.ref([{label:"源数据",value:"ODS",rule:"VIEW_ODS",disabled:!0},{label:"源视图",value:"ODSVIEW",rule:"VIEW_ODSVIEW",disabled:!0},{label:"整合数据",value:"DWD",rule:"VIEW_DWD",disabled:!0}]);fetch$1(ne).getCurrFunc("MODEL").then(ue=>{vue.unref(ie).forEach(ce=>{ce.disabled=!ue.data.includes(ce.rule),!vue.unref(oe)&&!ce.disabled&&(oe.value=ce.value)})});const le=ue=>{oe.value=ue},ae=()=>{re.value=!0},se=ue=>{ee("click-node",ue),re.value=!1};return U({init:ae}),(ue,ce)=>{const de=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(de,{modelValue:vue.unref(re),"onUpdate:modelValue":ce[0]||(ce[0]=fe=>vue.isRef(re)?re.value=fe:null),title:"选择要分析的数据",size:"400px"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$S,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ie),fe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(oe)==fe.value?"primary":"",key:fe.value,disabled:fe.disabled,onClick:ve=>le(fe.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(fe.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1})]),vue.createElementVNode("div",_hoisted_2$I,[vue.createVNode(_sfc_main$12,{ref:"menuRef",type:vue.unref(oe),onNodeClick:se},null,8,["type"])])]),_:1},8,["modelValue"])}}}),_hoisted_1$R=vue.createElementVNode("div",{class:"flex justify-end flex-1"},null,-1),_hoisted_2$H={class:"whitespace-nowrap ml-2.5"},_hoisted_3$B=vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1),_hoisted_4$A=["onClick"],_hoisted_5$r=vue.createElementVNode("i",{class:"ri-edit-box-line"},null,-1),_hoisted_6$n={key:0,class:"flex items-center justify-center h-full"},_sfc_main$10=vue.defineComponent({__name:"index",props:{isCustom:{type:Boolean,default:!1},element:{default:null},tempId:{default:""}},emits:["close-design"],setup(te,{emit:U}){var me,_e;const G=te,ee=U,{proxy:ne}=vue.getCurrentInstance();vue.inject("local");const re=vue.ref(null),oe=vue.ref(null),ie=vue.ref(null),le=vue.ref(null),ae=vue.ref(G.element??{});vue.provide("modelEle",ae),vue.provide("getListModelIndicators",()=>{});const se=vue.ref([{label:"指标分析",value:"zbfx"},{label:"指标全景",value:"zbqj",disabled:!0}]),ue=vue.ref(vue.unref(se)[0].value),ce=vue.ref(((me=G==null?void 0:G.element)==null?void 0:me.id)??"");fetch$1(ne).getCurrFunc("INDICATORS").then(be=>{vue.unref(se).find(ye=>ye.value=="zbqj").disabled=!be.data.includes("INDICATORS_VIEW")});const de=vue.ref([]);fetch$1(ne).getCurrFunc("MODEL_INDICATORS").then(be=>{de.value=be.data});const fe=vue.ref(((_e=G==null?void 0:G.element)==null?void 0:_e.businessType)??""),ve=be=>{ce.value="",fe.value=be.type,setTimeout(()=>{ce.value=be.id},100)},he=be=>{ae.value=be,vue.unref(re).init()},pe=be=>{vue.nextTick(()=>{setTimeout(()=>{var ye,xe,Ce;ae.value={id:(ye=vue.unref(ie).result)==null?void 0:ye.modelId,modelName:(xe=vue.unref(ie).result)==null?void 0:xe.modelName,modelCode:(Ce=vue.unref(ie).result)==null?void 0:Ce.modelCode},vue.unref(re).init(be)},300)})},ge=()=>{vue.unref(ce)&&(ee("close-design",vue.unref(ce)),vue.unref(ie)&&vue.unref(ie).init()),vue.unref(oe)&&vue.unref(oe).init()};return(be,ye)=>{const xe=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{class:"h-full"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElHeader),{style:{height:"auto",padding:"0"},class:"flex items-center w-full mb-3"},{default:vue.withCtx(()=>[be.isCustom?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButtonGroup),{key:0},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(se),Ce=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(ue)==Ce.value?"primary":"",key:Ce.value,disabled:Ce.disabled,onClick:$e=>ue.value=Ce.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ce.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1})),_hoisted_1$R]),_:1}),vue.withDirectives(vue.createVNode(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden"},{default:vue.withCtx(()=>[be.isCustom?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElAside),{key:0,class:"pr-5 mr-5"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$19,{onNodeClick:ve,tempId:be.tempId||vue.unref(ce),ref_key:"menuRef",ref:oe},{search:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$H,[vue.unref(de).includes("STATISTICAL_ANALYSIS")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{key:0,type:"primary",onClick:ye[0]||(ye[0]=Ce=>vue.unref(le).init())},{default:vue.withCtx(()=>[_hoisted_3$B,vue.createTextVNode(" 新增指标 ")]),_:1})):vue.createCommentVNode("",!0)])]),"menu-item":vue.withCtx(({data:Ce})=>[vue.unref(de).includes("RELATED_INDICATORS")&&Ce.type!="INDICATORS"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ml-4 mr-2 cursor-pointer text-color-warning",onClick:$e=>pe(Ce.id)},[_hoisted_5$r,vue.createTextVNode(" 编辑 ")],8,_hoisted_4$A)):vue.createCommentVNode("",!0)]),_:1},8,["tempId"])]),_:1})),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.unref(ce)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(fe)=="INDICATORS"?(vue.openBlock(),vue.createBlock(aceIndicatorSystemPreview,{key:0,indicatorsId:vue.unref(ce)},null,8,["indicatorsId"])):vue.createCommentVNode("",!0),vue.unref(fe)=="MODEL_INDICATORS"?(vue.openBlock(),vue.createBlock(_sfc_main$13,{key:1,onClickDesign:pe,modelIndicatorsRules:vue.unref(de),indicatorsId:vue.unref(ce),ref_key:"modelIndicatorsRef",ref:ie},null,8,["modelIndicatorsRules","indicatorsId"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$n,[vue.createVNode(xe,{description:"请选择对应指标"})]))]),_:1})]),_:1},512),[[vue.vShow,vue.unref(ue)=="zbfx"]]),vue.unref(ue)=="zbqj"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElMain),{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$16)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(aceIndicatorDesign,{ref_key:"designRef",ref:re,onClose:ge},null,512),vue.createVNode(_sfc_main$11,{ref_key:"modelIndicatorsAddRef",ref:le,onClickNode:he},null,512)]),_:1})}}}),_withScopeId$j=te=>(vue.pushScopeId("data-v-e52b7096"),te=te(),vue.popScopeId(),te),_hoisted_1$Q={class:"flex flex-col h-full"},_hoisted_2$G=_withScopeId$j(()=>vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1)),_hoisted_3$A={class:"flex-1 mt-3 overflow-y-auto card-container"},_hoisted_4$z={key:0,class:"flex items-center justify-center h-full"},_hoisted_5$q=["onClick"],_hoisted_6$m={class:"flex items-center"},_hoisted_7$j=_withScopeId$j(()=>vue.createElementVNode("i",{class:"mr-1 ri-database-line"},null,-1)),_hoisted_8$f={class:"font-bold"},_hoisted_9$d={class:"flex items-center justify-between w-4/5 mt-3 ml-auto mr-auto"},_hoisted_10$c={class:"flex items-center"},_hoisted_11$a=_withScopeId$j(()=>vue.createElementVNode("i",{class:"mr-1 ri-checkbox-circle-fill text-color-success"},null,-1)),_hoisted_12$9=_withScopeId$j(()=>vue.createElementVNode("div",{class:"text-color-info"},"|",-1)),_hoisted_13$7={class:"flex justify-end mt-3 text-xs text-color-info pb"},_hoisted_14$6={class:"w-4/5 overflow-hidden whitespace-nowrap text-ellipsis"},_sfc_main$$=vue.defineComponent({__name:"menu",emits:["node-click"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{dataSourceSubmit:ne,testConnect:re,loadDataSourceMenu:oe}=fetch$1(ee).dbImport,{setFormValue:ie,getFormValue:le}=ee.$globalHooks.useForm(),{openMessage:ae}=ee.$globalHooks.useMessage(),se=ee.$globalDict,ue=G,ce=vue.ref([]),de=vue.ref(!0),fe=()=>{ce.value=[],de.value=!0,oe().then(xe=>{de.value=!1,ce.value=xe.data??[],xe.data.length&&vue.unref(be)==""&&ye(xe.data[0])})};fe();const ve=vue.reactive([{name:"数据源名称",type:FieldType.Text,fieldName:"name",value:"",required:!0},{name:"数据源类型",type:FieldType.Select,fieldName:"dataSourceType",value:"",dict:"storeType",required:!0,changeFunc:xe=>{if(!xe.value)return;let Ce=se.dataSourceUrlDemo.find($e=>$e.label.toLowerCase()===xe.value.toLowerCase());ve.find($e=>$e.fieldName==="dataSourceUrlDemo").value=(Ce==null?void 0:Ce.value)??""}},{name:"数据源链接地址",type:FieldType.Textarea,fieldName:"dataSourceUrl",value:"",required:!0},{name:"链接示例",type:FieldType.Slot,fieldName:"dataSourceUrlDemo",value:""},{name:"数据库用户名",type:FieldType.Text,fieldName:"connectUserName",value:"",required:!0},{name:"数据库用密码",type:FieldType.Password,fieldName:"connectPassword",value:"",required:!0}]),he=vue.ref(!1),pe=()=>{ie({},ve),he.value=!0},ge=xe=>{ve.find(Ce=>Ce.fieldName==="dataSourceUrl").value=xe.value},me=async()=>{const{params:xe,error:Ce}=le(ve);Ce.length>0||!await ne(xe)||(he.value=!1,ae({type:"success",message:"操作成功"}),fe())},_e=async()=>{const{params:xe,error:Ce}=le(ve);Ce.length>0||!await re(xe)||ae({type:"success",message:"数据库链接成功"})},be=vue.ref(""),ye=xe=>{vue.unref(be)!=xe.dataSourceId&&(be.value=xe.dataSourceId,ue("node-click",xe))};return U({initMenu:fe}),(xe,Ce)=>{const $e=vue.resolveComponent("aceHeader"),we=vue.resolveComponent("AppEmpty"),Ee=vue.resolveComponent("AppForm"),Ve=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Q,[vue.createVNode($e,{title:"数据源"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:pe},{default:vue.withCtx(()=>[_hoisted_2$G,vue.createTextVNode(" 新增 ")]),_:1})]),_:1}),vue.createElementVNode("div",_hoisted_3$A,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(de),animated:""},{default:vue.withCtx(()=>[vue.unref(ce).length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(vue.unref(ce),Se=>(vue.openBlock(),vue.createElementBlock("div",{key:Se.id,class:vue.normalizeClass(["item",{active:vue.unref(be)==Se.dataSourceId}]),onClick:ke=>ye(Se)},[vue.createElementVNode("div",_hoisted_6$m,[_hoisted_7$j,vue.createElementVNode("span",_hoisted_8$f,vue.toDisplayString(Se.dataSourceComment),1)]),vue.createElementVNode("div",_hoisted_9$d,[vue.createElementVNode("div",_hoisted_10$c,[_hoisted_11$a,vue.createTextVNode(" 已同步 "),vue.createElementVNode("strong",null,vue.toDisplayString(Se.synchronizedTableCount),1)]),_hoisted_12$9,vue.createElementVNode("div",null,[vue.createTextVNode(" 总表数 "),vue.createElementVNode("strong",null,vue.toDisplayString(Se.tableCount),1)])]),vue.createElementVNode("div",_hoisted_13$7,vue.toDisplayString(Se.version),1)],10,_hoisted_5$q))),128)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$z,[vue.createVNode(we,{description:"暂无数据源"})]))]),_:1},8,["loading"])]),vue.createVNode(Ve,{modelValue:vue.unref(he),"onUpdate:modelValue":Ce[1]||(Ce[1]=Se=>vue.isRef(he)?he.value=Se:null),title:"新增接入数据源",size:700},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{style:{"margin-right":"auto"},type:"success",onClick:_e},{default:vue.withCtx(()=>[vue.createTextVNode(" 测试链接 ")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:me},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:Ce[0]||(Ce[0]=Se=>he.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(Ee,{form:vue.unref(ve),col:1,labelWidth:120},{dataSourceUrlDemo:vue.withCtx(({element:Se})=>[vue.createVNode(vue.unref(elementPlus.ElTooltip),{content:Se.value},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_14$6,vue.toDisplayString(Se.value),1)]),_:2},1032,["content"]),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:ke=>ge(Se)},{default:vue.withCtx(()=>[vue.createTextVNode("复制")]),_:2},1032,["onClick"])]),_:1},8,["form"])]),_:1},8,["modelValue"])])}}}),menu_vue_vue_type_style_index_0_scoped_e52b7096_lang="",Menu$2=_export_sfc$2(_sfc_main$$,[["__scopeId","data-v-e52b7096"]]),_sfc_main$_=vue.defineComponent({__name:"sourceTableData",setup(te,{expose:U}){const G=vue.ref(!1),ee=vue.ref(null),ne=vue.ref(""),re=vue.ref([]),oe=se=>{re.value=[],(se==null?void 0:se.data.length)>0&&(re.value=Object.keys(se.data[0]).filter(ue=>ue!="pageIndex").map(ue=>({label:ue,prop:ue})))},ie=vue.ref({}),le=se=>Object.assign(se,vue.unref(ie));return U({init:(se,ue)=>{vue.unref(ie).dataSourceId=se,vue.unref(ie).sourceTableCode=ue,G.value=!0,ne.value="/api/ace-data-center/data-source/sourceDataPage"}}),(se,ue)=>{const ce=vue.resolveComponent("AppList"),de=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(de,{modelValue:vue.unref(G),"onUpdate:modelValue":ue[0]||(ue[0]=fe=>vue.isRef(G)?G.value=fe:null),title:"数据源明细",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(ce,{tableData:vue.unref(re),url:vue.unref(ne),ref_key:"appList",ref:ee,formatParamsFunc:le,onSuccess:oe,methods:"post"},null,8,["tableData","url"])]),_:1},8,["modelValue"])}}}),_hoisted_1$P={class:"mt-2"},_sfc_main$Z=vue.defineComponent({__name:"setting",emits:["refresh"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{setFormValue:ne,getFormValue:re}=ee.$globalHooks.useForm(),{openMessage:oe}=ee.$globalHooks.useMessage(),{submitDefaultDbExtract:ie}=fetch$1(ee).dbImport,le=G,ae=vue.ref(!1),se=vue.ref(!1),ue=vue.ref(null),ce=vue.reactive([{name:"方案名称",type:FieldType.Text,fieldName:"extractName",value:"",required:!0},{name:"数据流类型",type:FieldType.Radio,fieldName:"extractType",value:"",required:!0,options:[{label:"全量抽取",value:"1"},{label:"增量抽取",value:"2"}],changeFunc:pe=>{ce.find(ge=>ge.fieldName=="incrementalField").hide=pe.value!=2}},{name:"增量字段",type:FieldType.Select,fieldName:"incrementalField",value:"",required:!0,tip:"该字段必须为本模型字段,并且是SQL结果集中存在的字段"},{name:"taskDefinedId",type:FieldType.Text,fieldName:"taskDefinedId",hide:!0},{name:"id",type:FieldType.Text,fieldName:"id",hide:!0}]),de=vue.ref(null),fe=vue.ref({}),ve=async pe=>{fe.value=pe,se.value=!1;const ge=await ee.$baseHttp.get("/api/ace-data-center/model-attribute/allModelAttribute",{params:{modelId:pe.modelId,projectId:ee.$baseGetCurrentProjectId()},headers:{loading:!0}});ce.find(me=>me.fieldName=="incrementalField").options=ge.data.map(me=>({...me,label:`${me.attributeCode}(${me.attributeComment||me.attributeCode})`,value:me.attributeCode})),ae.value=!0,vue.nextTick(()=>{ne({...pe,extractName:pe.extractName??"增量抽取"},ce),pe!=null&&pe.taskDefined&&(se.value=!0),vue.unref(ue).init((pe==null?void 0:pe.taskDefined)??{}),de.value=(pe==null?void 0:pe.taskDefined)??null})},he=async()=>{const{params:pe,error:ge}=re(ce);if(ge.length>0)return;if(vue.unref(se)){const{params:_e,error:be}=vue.unref(ue).getForm();if(be.length>0)return;pe.taskDefined={...vue.unref(de)??{},..._e}}pe.dataSourceId=vue.unref(fe).dataSourceId,pe.modelId=vue.unref(fe).modelId,pe.streamType="STANDARD",await ie(pe)&&(oe({type:"success",message:"操作成功"}),ae.value=!1,le("refresh"))};return U({init:ve}),(pe,ge)=>{const me=vue.resolveComponent("AppForm"),_e=vue.resolveComponent("aceHeader"),be=vue.resolveComponent("AppTaskDesign"),ye=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createBlock(ye,{modelValue:vue.unref(ae),"onUpdate:modelValue":ge[2]||(ge[2]=xe=>vue.isRef(ae)?ae.value=xe:null),title:"配置",size:500},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:he},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:ge[1]||(ge[1]=xe=>ae.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(me,{form:vue.unref(ce)},null,8,["form"]),vue.createElementVNode("div",_hoisted_1$P,[vue.createVNode(_e,{title:"作业配置",class:"mb-2"},{left:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{class:"ml-2",modelValue:vue.unref(se),"onUpdate:modelValue":ge[0]||(ge[0]=xe=>vue.isRef(se)?se.value=xe:null)},{default:vue.withCtx(()=>[vue.createTextVNode("作业配置")]),_:1},8,["modelValue"])]),_:1}),vue.withDirectives(vue.createElementVNode("div",null,[vue.createVNode(be,{ref_key:"taskDesignRef",ref:ue},null,512)],512),[[vue.vShow,vue.unref(se)]])])]),_:1},8,["modelValue"])}}}),_hoisted_1$O=vue.createElementVNode("i",{class:"mr-2 ri-exchange-line"},null,-1),_hoisted_2$F=vue.createElementVNode("i",{class:"mr-2 ri-refresh-line"},null,-1),_hoisted_3$z=vue.createElementVNode("div",null,null,-1),_hoisted_4$y=vue.createElementVNode("i",{class:"mr-2 ri-delete-bin-line"},null,-1),_sfc_main$Y=vue.defineComponent({__name:"model-extract-log",emits:["success"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{openMessage:ne}=ee.$globalHooks.useMessage(),re=G,oe=vue.ref(!1),ie=vue.ref(null),le=vue.ref(""),ae=vue.ref([]),se=ce=>{const{businessId:de,businessType:fe="file_extract",ajaxUrl:ve="",table:he}=ce;ae.value=he||[{label:"批次号",prop:"batchNo"},{label:"日期",prop:"createTime"},{label:"文件名",prop:"file",slot:!0},{label:"抽取方式",prop:"createTime",func:pe=>{var ge;return((ge=JSON.parse(pe.businessSnapshot||"{}"))==null?void 0:ge.extractType)==2?"覆盖":"追加"}},{label:"数据总数",prop:"totalNum"},{label:"成功数",prop:"successNum"},{label:"失败数",prop:"failNum"},{label:"协同参数",prop:"collaborateValue"},{label:"操作",prop:"action",slot:!0,fixed:"right"}],le.value=ve||`/api/ace-data-center/extract-log/list?descs=create_time&businessId=${de}&businessType=${fe}`,oe.value=!0},ue=async(ce,de)=>{switch(ce){case"refresh":{if(!await ee.$baseHttp.post(`/api/ace-data-center/extract-log/updateSuccessTotal/${de.id}`,{},{headers:{loading:!0}}))return;ne({type:"success",message:"操作成功"}),vue.unref(ie).getData(),re("success")}break;case"delete":ee.$baseConfirm({content:"删除数据可能影响指标统计,是否确认删除?",callConfirm:async()=>{await ee.$baseHttp.post(`/api/ace-data-center/extract-log/deleteModelData/${de.id}`,{},{headers:{loading:!0}})&&(ne({type:"success",message:"操作成功"}),vue.unref(ie).getData(),re("success"))}});break;case"run":ee.$baseConfirm({content:"重跑数据会先删除本批次数据,然后新建立一个批次任务执行,是否继续执行?",callConfirm:async()=>{await ee.$baseHttp.post(`/api/ace-data-center/extract-log/reRunTeamworkDbExtractBy/${de.id}`,{},{headers:{loading:!0}})&&(ne({type:"success",message:"操作成功"}),vue.unref(ie).getData(),re("success"))}});break;case"download":{const fe=JSON.parse((de==null?void 0:de.businessSnapshot)??"{}");window.open(fe.fileUrl)}break}};return U({init:se}),(ce,de)=>{const fe=vue.resolveComponent("AppList"),ve=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ve,{modelValue:vue.unref(oe),"onUpdate:modelValue":de[0]||(de[0]=he=>vue.isRef(oe)?oe.value=he:null),title:"抽取日志",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(fe,{tableData:vue.unref(ae),url:vue.unref(le),ref_key:"appList",ref:ie},{file:vue.withCtx(({row:he})=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:pe=>ue("download",he)},{default:vue.withCtx(()=>{var pe;return[vue.createTextVNode(vue.toDisplayString((pe=JSON.parse(he.businessSnapshot??"{}"))==null?void 0:pe.fileName),1)]}),_:2},1032,["onClick"])]),action:vue.withCtx(({row:he})=>{var pe;return[((pe=JSON.parse(he.businessSnapshot||"{}"))==null?void 0:pe.extractType)==3?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:0,type:"primary",class:"mr-2",onClick:ge=>ue("run",he)},{default:vue.withCtx(()=>[_hoisted_1$O,vue.createTextVNode(" 重跑 ")]),_:2},1032,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:ge=>ue("refresh",he)},{default:vue.withCtx(()=>[_hoisted_2$F,vue.createTextVNode(" 刷新 ")]),_:2},1032,["onClick"]),_hoisted_3$z,vue.createVNode(vue.unref(elementPlus.ElLink),{type:"danger",onClick:ge=>ue("delete",he)},{default:vue.withCtx(()=>[_hoisted_4$y,vue.createTextVNode(" 删除本批次数据 ")]),_:2},1032,["onClick"])]}),_:1},8,["tableData","url"])]),_:1},8,["modelValue"])}}}),_hoisted_1$N={class:"flex flex-col h-full overflow-hidden"},_hoisted_2$E={class:"flex flex-col flex-1 mt-3 overflow-hidden"},_hoisted_3$y={class:"app-search"},_hoisted_4$x=vue.createElementVNode("i",{class:"mr-1 ri-search-line"},null,-1),_hoisted_5$p={class:"flex flex-1 overflow-hidden"},_hoisted_6$l={class:"flex justify-end mt-3"},_hoisted_7$i={class:"flex justify-end mb-2"},_hoisted_8$e=vue.createElementVNode("i",{class:"mr-1 ri-add-line"},null,-1),_sfc_main$X=vue.defineComponent({__name:"view",emits:["refresh"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),ne=vue.inject("modelEle"),{setFormValue:re,getFormValue:oe}=ee.$globalHooks.useForm(),{openMessage:ie}=ee.$globalHooks.useMessage(),{createModelSyncRelation:le,listDataSourceSynchronized:ae}=fetch$1(ee).dbImport,se=vue.ref(null),ue=vue.ref(null),ce=vue.ref(null),de=vue.ref(null),fe=G,{originlist:ve,list:he,pageLoading:pe,page:ge,pageSize:me,getData:_e,handleSizeChange:be,handleCurrentChange:ye}=ee.$globalHooks.usePage(),xe=vue.reactive([{name:"源表名",type:FieldType.Text,fieldName:"sourceTableComment",value:""},{name:"同步状态",type:FieldType.Select,fieldName:"related",value:"",options:[{label:"已同步",value:!0},{label:"未同步",value:!1}]},{name:"同步结果",type:FieldType.Select,fieldName:"synchronizeResult",value:"",options:[{label:"正常",value:2},{label:"异常",value:1}]},{name:"源数据量",type:FieldType.Select,fieldName:"existSourceTableData",value:"",options:[{label:"源数据量 >0",value:!0},{label:"源数据量 =0",value:!1}]}]),Ce=vue.reactive([{label:"源表",prop:"sourceTableCode"},{label:"源表名",prop:"sourceTableComment"},{label:"源数据",prop:"sourceTableDataCount",slot:!0},{label:"列数",prop:"sourceColumnCount"},{label:"同步状态",prop:"related",slot:!0},{label:"同步结果",prop:"synchronizeResult",tag:!0,tagFunc:Pe=>Pe==2?"success":"danger",func:Pe=>{var Te,De;return((Te=Pe.modelSyncDetail)==null?void 0:Te.synchronizeResult)=="2"?"正常":((De=Pe.modelSyncDetail)==null?void 0:De.synchronizeResult)=="1"?"异常":"-"}},{label:"目标表",prop:"relationTableCode"},{label:"目标数据",prop:"relationTableDataCount"},{label:"主键",prop:"primaryKeyColumn",func:Pe=>{var Te;return((Te=Pe==null?void 0:Pe.modelSyncDetail)==null?void 0:Te.primaryKeyColumn)??"-"}},{label:"增量字段",prop:"incrColumn",func:Pe=>{var Te;return((Te=Pe==null?void 0:Pe.modelSyncDetail)==null?void 0:Te.incrColumn)??"-"}},{label:"上次同步",prop:"lastSyncTime",func:Pe=>{var Te;return((Te=Pe==null?void 0:Pe.modelSyncDetail)==null?void 0:Te.lastSyncTime)??"-"}},{label:"操作",prop:"htmlButton",fixed:"right",width:"120px"}]),$e=async(Pe=!0)=>{Pe&&(re({},xe),ge.value=1),pe.value=!0;const{params:Te}=oe(xe,!1,!0),De=await ae({dataSourceId:vue.unref(ne).dataSourceId,...Te});if(pe.value=!1,!De){ve.value=[];return}De.data.forEach(Oe=>{var Be;(Be=Oe==null?void 0:Oe.modelSyncDetail)!=null&&Be.modelId&&(Oe.htmlButton=[{name:"配置",key:"setting",type:"primary"},{name:"历史",key:"history",type:"primary"}])}),ve.value=De.data,_e()},we=async Pe=>{await le({sourceId:Pe.dataSourceId,sourceTableCode:Pe.sourceTableCode})&&(ie({type:"success",message:"操作成功"}),fe("refresh"),$e(!1))},Ee=vue.ref(!1),Ve=vue.ref(""),Se=vue.reactive([{label:"抽取方案名称",prop:"extractName"},{label:"抽取类型",prop:"extractType",props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=extractType",label:"dictValue",value:"dictKey"}},{label:"操作",prop:"htmlButton",fixed:"right",width:"200px"}]),ke=Pe=>{Pe.data.forEach(Te=>{Te.htmlButton=[],Te.htmlButton.push({name:"编辑",key:"EDIT",type:"primary",icon:"ri-edit-line"}),Te.htmlButton.push({name:"抽取记录",key:"LOG",type:"primary",icon:"ri-file-line"}),[1,2].includes(Te.extractType)&&Te.htmlButton.push({name:"抽取",key:"PUSH",type:"primary",icon:"ri-pushpin-line"}),Te.htmlButton.push({name:"删除",key:"DEL",type:"danger",icon:"ri-delete-bin-6-line"})})},Ne=vue.ref({}),Ie=async Pe=>{var Be;const{type:Te,row:De,index:Oe}=Pe;switch(Te){case"history":vue.unref(ce).init({ajaxUrl:`/api/ace-data-center/extract-log/modelSyncHistory?descs=create_time&modelId=${De.modelSyncDetail.modelId}`,table:[{label:"日期",prop:"createTime"},{label:"数据总数",prop:"totalNum"},{label:"成功数",prop:"successNum"},{label:"失败数",prop:"failNum"},{label:"协同参数",prop:"collaborateValue"},{label:"操作",prop:"action",slot:!0,fixed:"right"}]});break;case"LOG":vue.unref(ce).init({businessId:De.id,businessType:"db_extract",table:[{label:"日期",prop:"createTime"},{label:"数据总数",prop:"totalNum"},{label:"成功数",prop:"successNum"},{label:"失败数",prop:"failNum"},{label:"协同参数",prop:"collaborateValue"},{label:"操作",prop:"action",slot:!0,fixed:"right"}]});break;case"PUSH":ee.$baseConfirm({content:"是否抽取?",callConfirm:async()=>{await ee.$baseHttp.post(`/api/ace-data-center/db-extract/extract/${De.id}`,{},{headers:{loading:!0}})&&ie({type:"success",message:"操作成功"})}});break;case"DEL":ee.$baseConfirm({content:"是否删除?",callConfirm:async()=>{await ee.$baseHttp.post(`/api/ace-data-center/db-extract/removeById/${De.id}`,{},{headers:{loading:!0}})&&(ie({type:"success",message:"操作成功"}),vue.unref(se).getData())}});break;case"EDIT":const Ae=await ee.$baseHttp.get(`/api/ace-data-center/db-extract/detailAndTask?dbExtractId=${De.id}`);if(!Ae)return;vue.unref(ue).init(Ae.data);break;case"ADD":vue.unref(ue).init({dataSourceId:vue.unref(Ne).dataSourceId,modelId:(Be=vue.unref(Ne))==null?void 0:Be.modelSyncDetail.modelId});break;case"setting":Ee.value=!0,Ne.value=De,Ve.value=`/api/ace-data-center/db-extract/list?modelId=${De.modelSyncDetail.modelId}&projectId=${ee.$baseGetCurrentProjectId()}`;break;case"source-table-data":vue.unref(de).init(De.dataSourceId,De.sourceTableCode);break}};return U({init:$e}),(Pe,Te)=>{const De=vue.resolveComponent("aceHeader"),Oe=vue.resolveComponent("AppForm"),Be=vue.resolveComponent("AppTable"),Ae=vue.resolveComponent("AppList"),Le=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$N,[vue.createVNode(De,{title:vue.unref(ne).dataSourceComment},null,8,["title"]),vue.createElementVNode("div",_hoisted_2$E,[vue.createElementVNode("div",_hoisted_3$y,[vue.createVNode(Oe,{form:vue.unref(xe)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-1",onClick:Te[0]||(Te[0]=Re=>$e(!1))},{default:vue.withCtx(()=>[_hoisted_4$x,vue.createTextVNode(" 查询 ")]),_:1})]),_:1},8,["form"])]),vue.createElementVNode("div",_hoisted_5$p,[vue.createVNode(Be,{tableData:vue.unref(Ce),list:vue.unref(he),loading:vue.unref(pe),onTableBtnClick:Ie},{related:vue.withCtx(({row:Re})=>[Re.related?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:0,type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode("已同步")]),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopconfirm),{key:1,title:"您确定要同步吗?",onConfirm:Fe=>we(Re)},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{size:"small",type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode("立即同步")]),_:1})]),_:2},1032,["onConfirm"]))]),sourceTableDataCount:vue.withCtx(({row:Re})=>[Re.sourceTableDataCount==0?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(Re.sourceTableDataCount),1)],64)):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:1,type:"primary",onClick:Fe=>Ie({type:"source-table-data",row:Re,index:-1})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Re.sourceTableDataCount),1)]),_:2},1032,["onClick"]))]),_:1},8,["tableData","list","loading"])]),vue.createElementVNode("div",_hoisted_6$l,[vue.createVNode(vue.unref(elementPlus.ElPagination),{"current-page":vue.unref(ge),"onUpdate:currentPage":Te[1]||(Te[1]=Re=>vue.isRef(ge)?ge.value=Re:null),"page-size":vue.unref(me),"onUpdate:pageSize":Te[2]||(Te[2]=Re=>vue.isRef(me)?me.value=Re:null),"page-sizes":[10,20,40,60,80,100],background:!0,layout:"total, sizes, prev, pager, next, jumper",total:vue.unref(ve).length,onCurrentChange:vue.unref(ye),onSizeChange:vue.unref(be)},null,8,["current-page","page-size","total","onCurrentChange","onSizeChange"])])]),vue.createVNode(Le,{modelValue:vue.unref(Ee),"onUpdate:modelValue":Te[4]||(Te[4]=Re=>vue.isRef(Ee)?Ee.value=Re:null),title:"数据同步方案",size:"1000px"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_7$i,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:Te[3]||(Te[3]=Re=>Ie({type:"ADD",row:{},index:0}))},{default:vue.withCtx(()=>[_hoisted_8$e,vue.createTextVNode(" 新增 ")]),_:1})]),vue.createVNode(Ae,{tableData:vue.unref(Se),url:vue.unref(Ve),ref_key:"appListRef",ref:se,onBtnClick:Ie,onSuccess:ke},null,8,["tableData","url"])]),_:1},8,["modelValue"]),vue.createVNode(_sfc_main$Z,{ref_key:"settingRef",ref:ue,onRefresh:Te[5]||(Te[5]=Re=>vue.unref(se).getData({clear:!0}))},null,512),vue.createVNode(_sfc_main$Y,{ref_key:"extractLogRef",ref:ce},null,512),vue.createVNode(_sfc_main$_,{ref_key:"sourceTableDataRef",ref:de},null,512)])}}}),_hoisted_1$M={key:0,class:"flex items-center justify-center h-full"},_sfc_main$W=vue.defineComponent({__name:"index",setup(te){const U=vue.ref(null),G=vue.ref(null),ee=vue.ref({});vue.provide("modelEle",ee);const ne=vue.inject("local"),re=oe=>{ee.value=oe,vue.nextTick(()=>{vue.unref(U).init()})};return(oe,ie)=>{const le=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden app-basic-container"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElConfigProvider),{locale:vue.unref(ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElAside),{class:"pr-5 mr-5"},{default:vue.withCtx(()=>[vue.createVNode(Menu$2,{ref_key:"menuRef",ref:G,onNodeClick:re},null,512)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.unref(ee).dataSourceId?(vue.openBlock(),vue.createBlock(_sfc_main$X,{key:1,ref_key:"viewRef",ref:U,onRefresh:ie[0]||(ie[0]=ae=>vue.unref(G).initMenu())},null,512)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$M,[vue.createVNode(le,{description:"请选择数据源"})]))]),_:1})]),_:1},8,["locale"])]),_:1})}}}),_withScopeId$i=te=>(vue.pushScopeId("data-v-cabcba66"),te=te(),vue.popScopeId(),te),_hoisted_1$L={class:"flex flex-col h-full"},_hoisted_2$D=_withScopeId$i(()=>vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1)),_hoisted_3$x={class:"flex-1 mt-3 overflow-y-auto card-container"},_hoisted_4$w={key:0,class:"flex items-center justify-center h-full"},_hoisted_5$o=["onClick"],_hoisted_6$k={class:"flex items-center justify-between"},_hoisted_7$h={class:"flex-1 mr-2.5"},_hoisted_8$d=_withScopeId$i(()=>vue.createElementVNode("i",{class:"mr-1 ri-database-line"},null,-1)),_hoisted_9$c={class:"font-bold"},_hoisted_10$b=_withScopeId$i(()=>vue.createElementVNode("i",{class:"mr-1 ri-edit-circle-line"},null,-1)),_hoisted_11$9={class:"flex items-center justify-between w-4/5 mt-3 ml-auto mr-auto"},_hoisted_12$8={class:"flex items-center"},_hoisted_13$6=_withScopeId$i(()=>vue.createElementVNode("i",{class:"mr-1 ri-checkbox-circle-fill text-color-success"},null,-1)),_hoisted_14$5=_withScopeId$i(()=>vue.createElementVNode("div",{class:"text-color-info"},"|",-1)),_hoisted_15$3={class:"flex justify-end mt-3 text-xs text-color-info pb"},_hoisted_16$3={class:"w-4/5 overflow-hidden whitespace-nowrap text-ellipsis"},_sfc_main$V=vue.defineComponent({__name:"menu",emits:["node-click"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{dataSourceSubmit:ne,testConnect:re,loadDataSourceMenu:oe,detail:ie}=fetch$1(ee).dbImport,{setFormValue:le,getFormValue:ae}=ee.$globalHooks.useForm(),{openMessage:se}=ee.$globalHooks.useMessage(),ue=ee.$globalDict,ce=G,de=vue.ref([]),fe=vue.ref(!0),ve=()=>{de.value=[],fe.value=!0,oe().then($e=>{fe.value=!1,de.value=$e.data??[],$e.data.length&&vue.unref(xe)==""&&Ce($e.data[0])})};ve();const he=vue.reactive([{name:"数据源名称",type:FieldType.Text,fieldName:"name",value:"",required:!0},{name:"数据源类型",type:FieldType.Select,fieldName:"dataSourceType",value:"",dict:"storeType",required:!0,changeFunc:$e=>{if(!$e.value)return;let we=ue.dataSourceUrlDemo.find(Ee=>Ee.label.toLowerCase()===$e.value.toLowerCase());he.find(Ee=>Ee.fieldName==="dataSourceUrlDemo").value=(we==null?void 0:we.value)??""}},{name:"数据源链接地址",type:FieldType.Textarea,fieldName:"dataSourceUrl",value:"",required:!0},{name:"链接示例",type:FieldType.Slot,fieldName:"dataSourceUrlDemo",value:""},{name:"数据库用户名",type:FieldType.Text,fieldName:"connectUserName",value:"",required:!0},{name:"数据库用密码",type:FieldType.Password,fieldName:"connectPassword",value:"",required:!0},{name:"id",type:FieldType.Text,fieldName:"id",value:"",hide:!0}]),pe=vue.ref(!1),ge=()=>{le({},he),pe.value=!0},me=async $e=>{const we=await ie({id:$e.dataSourceId});le(we.data,he),pe.value=!0},_e=$e=>{he.find(we=>we.fieldName==="dataSourceUrl").value=$e.value},be=async()=>{const{params:$e,error:we}=ae(he);we.length>0||($e.id||delete $e.id,!await ne($e))||(pe.value=!1,se({type:"success",message:"操作成功"}),ve())},ye=async()=>{const{params:$e,error:we}=ae(he);we.length>0||!await re($e)||se({type:"success",message:"数据库链接成功"})},xe=vue.ref(""),Ce=$e=>{vue.unref(xe)!=$e.dataSourceId&&(xe.value=$e.dataSourceId,ce("node-click",$e))};return U({initMenu:ve}),($e,we)=>{const Ee=vue.resolveComponent("aceHeader"),Ve=vue.resolveComponent("AppEmpty"),Se=vue.resolveComponent("AppForm"),ke=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$L,[vue.createVNode(Ee,{title:"数据源"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:ge},{default:vue.withCtx(()=>[_hoisted_2$D,vue.createTextVNode(" 新增 ")]),_:1})]),_:1}),vue.createElementVNode("div",_hoisted_3$x,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(fe),animated:""},{default:vue.withCtx(()=>[vue.unref(de).length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(vue.unref(de),Ne=>(vue.openBlock(),vue.createElementBlock("div",{key:Ne.id,class:vue.normalizeClass(["item",{active:vue.unref(xe)==Ne.dataSourceId}]),onClick:Ie=>Ce(Ne)},[vue.createElementVNode("div",_hoisted_6$k,[vue.createElementVNode("div",_hoisted_7$h,[_hoisted_8$d,vue.createElementVNode("span",_hoisted_9$c,vue.toDisplayString(Ne.dataSourceComment),1)]),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:vue.withModifiers(Ie=>me(Ne),["stop"])},{default:vue.withCtx(()=>[_hoisted_10$b,vue.createTextVNode(" 修改 ")]),_:2},1032,["onClick"])]),vue.createElementVNode("div",_hoisted_11$9,[vue.createElementVNode("div",_hoisted_12$8,[_hoisted_13$6,vue.createTextVNode(" 已同步 "),vue.createElementVNode("strong",null,vue.toDisplayString(Ne.synchronizedShadowTableCount),1)]),_hoisted_14$5,vue.createElementVNode("div",null,[vue.createTextVNode(" 总表数 "),vue.createElementVNode("strong",null,vue.toDisplayString(Ne.tableCount),1)])]),vue.createElementVNode("div",_hoisted_15$3,vue.toDisplayString(Ne.version),1)],10,_hoisted_5$o))),128)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$w,[vue.createVNode(Ve,{description:"暂无数据源"})]))]),_:1},8,["loading"])]),vue.createVNode(ke,{modelValue:vue.unref(pe),"onUpdate:modelValue":we[1]||(we[1]=Ne=>vue.isRef(pe)?pe.value=Ne:null),title:"新增接入数据源",size:700},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{style:{"margin-right":"auto"},type:"success",onClick:ye},{default:vue.withCtx(()=>[vue.createTextVNode(" 测试链接 ")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:be},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:we[0]||(we[0]=Ne=>pe.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(Se,{form:vue.unref(he),col:1,labelWidth:120},{dataSourceUrlDemo:vue.withCtx(({element:Ne})=>[vue.createVNode(vue.unref(elementPlus.ElTooltip),{content:Ne.value},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_16$3,vue.toDisplayString(Ne.value),1)]),_:2},1032,["content"]),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:Ie=>_e(Ne)},{default:vue.withCtx(()=>[vue.createTextVNode("复制")]),_:2},1032,["onClick"])]),_:1},8,["form"])]),_:1},8,["modelValue"])])}}}),menu_vue_vue_type_style_index_0_scoped_cabcba66_lang="",Menu$1=_export_sfc$2(_sfc_main$V,[["__scopeId","data-v-cabcba66"]]),_sfc_main$U=vue.defineComponent({__name:"sourceTableData",setup(te,{expose:U}){const G=vue.ref(!1),ee=vue.ref(null),ne=vue.ref(""),re=vue.ref([]),oe=se=>{re.value=[],(se==null?void 0:se.data.length)>0&&(re.value=Object.keys(se.data[0]).filter(ue=>ue!="pageIndex").map(ue=>({label:ue,prop:ue})))},ie=vue.ref({}),le=se=>Object.assign(se,vue.unref(ie));return U({init:(se,ue)=>{vue.unref(ie).dataSourceId=se,vue.unref(ie).sourceTableCode=ue,G.value=!0,ne.value="/api/ace-data-center/data-source/sourceDataPage"}}),(se,ue)=>{const ce=vue.resolveComponent("AppList"),de=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(de,{modelValue:vue.unref(G),"onUpdate:modelValue":ue[0]||(ue[0]=fe=>vue.isRef(G)?G.value=fe:null),title:"数据源明细",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(ce,{tableData:vue.unref(re),url:vue.unref(ne),ref_key:"appList",ref:ee,formatParamsFunc:le,onSuccess:oe,methods:"post"},null,8,["tableData","url"])]),_:1},8,["modelValue"])}}}),_withScopeId$h=te=>(vue.pushScopeId("data-v-9a318098"),te=te(),vue.popScopeId(),te),_hoisted_1$K={class:"mt-3"},_hoisted_2$C=_withScopeId$h(()=>vue.createElementVNode("thead",null,[vue.createElementVNode("tr",null,[vue.createElementVNode("td",null,"字段名称"),vue.createElementVNode("td",null,"字段描述"),vue.createElementVNode("td",null,"映射字段"),vue.createElementVNode("td",null,"数据类型"),vue.createElementVNode("td",null,"数据长度"),vue.createElementVNode("td",null,"数据标度"),vue.createElementVNode("td",null,"是否主键"),vue.createElementVNode("td",null,"唯一校验")])],-1)),_hoisted_3$w={class:"sort-target"},_hoisted_4$v={key:0},_sfc_main$T=vue.defineComponent({__name:"model-normal",emits:["success"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{setFormValue:ne,getFormValue:re}=ee.$globalHooks.useForm(),oe=G,ie=vue.ref(!1),le=vue.ref(""),ae=vue.ref([]);vue.ref("");const se=vue.ref([]),ue=vue.reactive([{name:"项目名称",type:FieldType.Select,fieldName:"projectId",value:"",required:!0,props:{url:"/api/ace-data-center/project/options",label:"label",value:"code"},disabled:!0,hide:!0},{name:"数据源类型",type:FieldType.Select,fieldName:"modelStore",value:"",required:!0,dict:"storeType",disabled:!0},{name:"模型层级",type:FieldType.Select,fieldName:"modelLayer",value:"",required:!0,props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=modelLayer",label:"dictValue",value:"dictKey"},changeFunc:fe=>{},disabled:!0},{name:"模型名称",type:FieldType.Text,fieldName:"modelName",value:"",required:!0},{name:"模型表名",type:FieldType.Text,fieldName:"modelCode",value:"",required:!0,disabled:!0},{name:"模型类型",type:FieldType.Select,fieldName:"modelType",value:"",props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=modelType",label:"dictValue",value:"dictKey"},hide:!0},{name:"标签",type:FieldType.Text,fieldName:"tags",value:""},{name:"分区字段",type:FieldType.Text,fieldName:"partitionColumn",value:"",hide:!0},{name:"模型描述",type:FieldType.Textarea,fieldName:"modelDesc",value:""},{name:"id",type:FieldType.Text,fieldName:"id",value:"",hide:!0}]),ce=fe=>{ie.value=!0,le.value="",ae.value=[],se.value=(fe?(fe==null?void 0:fe.listModelAttribute)??[]:[{nanoid:nanoid()}]).map(ve=>{const he=((ve==null?void 0:ve.attributeCode)??"").split("");return ve.nanoid=nanoid(),he[0]=="_"&&(ve.hide=!0),ve}),ne({...fe??{},projectId:ee.$baseGetCurrentProjectId()},ue)},de=async()=>{const{params:fe,error:ve}=re(ue);if(ve.length>0)return;const he="/api/ace-data-center/model/editModelDetail";await ee.$baseHttp.post(he,{...fe,projectId:String(ee.$baseGetCurrentProjectId()),listModelAttribute:vue.unref(se)},{headers:{loading:!0}})&&(ie.value=!1,ee.$message.success("操作成功"),oe("success"))};return U({init:ce}),(fe,ve)=>{const he=vue.resolveComponent("AppForm"),pe=vue.resolveComponent("aceHeader"),ge=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ge,{modelValue:vue.unref(ie),"onUpdate:modelValue":ve[1]||(ve[1]=me=>vue.isRef(ie)?ie.value=me:null),title:"影子模型",size:"100%"},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:de},{default:vue.withCtx(()=>[vue.createTextVNode("提交")]),_:1}),vue.renderSlot(fe.$slots,"formFooter",{},void 0,!0),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:ve[0]||(ve[0]=me=>ie.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElContainer),{class:"h-full overflow-hidden"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElAside),{class:"pr-5 mr-5"},{default:vue.withCtx(()=>[vue.createVNode(he,{form:vue.unref(ue)},null,8,["form"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.createVNode(pe,{title:"影子模型属性"}),vue.createElementVNode("table",_hoisted_1$K,[_hoisted_2$C,vue.createElementVNode("tbody",_hoisted_3$w,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(se),(me,_e)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:me.nanoid},[me.hide?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("tr",_hoisted_4$v,[vue.createElementVNode("td",null,vue.toDisplayString(me.attributeCode),1),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:me.attributeComment,"onUpdate:modelValue":be=>me.attributeComment=be,maxlength:"30",showWordLimit:"",placeholder:"字段描述"},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,vue.toDisplayString(me.mapCode),1),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:me.dataType,"onUpdate:modelValue":be=>me.dataType=be,placeholder:"数据类型",style:{width:"100%"},disabled:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(commonDataType),be=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:be.value,label:be.label,value:be.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,vue.toDisplayString(me.dataLength),1),vue.createElementVNode("td",null,vue.toDisplayString(me.dataScale??"-"),1),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:me.primaryKey,"onUpdate:modelValue":be=>me.primaryKey=be,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":"2","inactive-value":"1",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:me.uniqueKey,"onUpdate:modelValue":be=>me.uniqueKey=be,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":"2","inactive-value":"1",disabled:""},null,8,["modelValue","onUpdate:modelValue"])])]))],64))),128))])])]),_:1})]),_:1})]),_:3},8,["modelValue"])}}}),modelNormal_vue_vue_type_style_index_0_scoped_9a318098_lang="",ModelNormal=_export_sfc$2(_sfc_main$T,[["__scopeId","data-v-9a318098"]]),_hoisted_1$J={class:"flex flex-col h-full overflow-hidden"},_hoisted_2$B={class:"flex flex-col flex-1 mt-3 overflow-hidden"},_hoisted_3$v={class:"app-search"},_hoisted_4$u=vue.createElementVNode("i",{class:"mr-1 ri-search-line"},null,-1),_hoisted_5$n={class:"flex flex-1 overflow-hidden"},_hoisted_6$j={class:"flex justify-end mt-3"},_sfc_main$S=vue.defineComponent({__name:"view",emits:["refresh"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),ne=vue.inject("modelEle"),{setFormValue:re,getFormValue:oe}=ee.$globalHooks.useForm(),{openMessage:ie}=ee.$globalHooks.useMessage(),{createShadowModelSync:le,listDataSourceSynchronized:ae}=fetch$1(ee).dbImport,se=vue.ref(null),ue=vue.ref(null),ce=G,{originlist:de,list:fe,pageLoading:ve,page:he,pageSize:pe,getData:ge,handleSizeChange:me,handleCurrentChange:_e}=ee.$globalHooks.usePage(),be=vue.reactive([{name:"源表",type:FieldType.Text,fieldName:"sourceTableCode",value:""},{name:"源表名",type:FieldType.Text,fieldName:"sourceTableComment",value:""}]),ye=vue.reactive([{label:"源表",prop:"sourceTableCode"},{label:"源表名",prop:"sourceTableComment"},{label:"源数据",prop:"sourceTableDataCount",slot:!0},{label:"列数",prop:"sourceColumnCount"},{label:"影子模型",prop:"shadowModelId",slot:!0},{label:"操作",prop:"htmlButton",fixed:"right",width:"120px"}]),xe=async($e=!0)=>{$e&&(re({},be),he.value=1),ve.value=!0;const{params:we}=oe(be,!1,!0),Ee=await ae({dataSourceId:vue.unref(ne).dataSourceId,...we});if(ve.value=!1,!Ee){de.value=[];return}Ee.data.forEach(Ve=>{Ve.shadowModelId?Ve.htmlButton=[{name:"编辑",key:"EDIT",type:"primary"}]:Ve.htmlButton=[{name:"创建影子模型",key:"CREATE",type:"primary"}]}),de.value=Ee.data,ge()},Ce=async $e=>{const{type:we,row:Ee,index:Ve}=$e;switch(we){case"EDIT":{const Se=await ee.$baseHttp.get(`/api/ace-data-center/model/detail?id=${Ee==null?void 0:Ee.shadowModelId}`);if(!Se)return;ee.$refs.normalRef.init(Se.data)}break;case"CREATE":ee.$baseConfirm({content:"是否创建影子模型?",callConfirm:async()=>{await le({sourceId:Ee.dataSourceId,sourceTableCode:Ee.sourceTableCode})&&(ie({type:"success",message:"操作成功"}),ce("refresh"),xe(!1))}});break;case"source-table-data":vue.unref(ue).init(Ee.dataSourceId,Ee.sourceTableCode);break}};return U({init:xe}),($e,we)=>{const Ee=vue.resolveComponent("aceHeader"),Ve=vue.resolveComponent("AppForm"),Se=vue.resolveComponent("AppTable");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$J,[vue.createVNode(Ee,{title:vue.unref(ne).dataSourceComment},null,8,["title"]),vue.createElementVNode("div",_hoisted_2$B,[vue.createElementVNode("div",_hoisted_3$v,[vue.createVNode(Ve,{form:vue.unref(be)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-1",onClick:we[0]||(we[0]=ke=>xe(!1))},{default:vue.withCtx(()=>[_hoisted_4$u,vue.createTextVNode(" 查询 ")]),_:1})]),_:1},8,["form"])]),vue.createElementVNode("div",_hoisted_5$n,[vue.createVNode(Se,{tableData:vue.unref(ye),list:vue.unref(fe),loading:vue.unref(ve),onTableBtnClick:Ce},{shadowModelId:vue.withCtx(({row:ke})=>[ke.shadowModelId?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:0,type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode("已创建")]),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:1,type:"warning"},{default:vue.withCtx(()=>[vue.createTextVNode("未创建")]),_:1}))]),sourceTableDataCount:vue.withCtx(({row:ke})=>[ke.sourceTableDataCount==0?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(ke.sourceTableDataCount),1)],64)):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:1,type:"primary",onClick:Ne=>Ce({type:"source-table-data",row:ke,index:-1})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ke.sourceTableDataCount),1)]),_:2},1032,["onClick"]))]),_:1},8,["tableData","list","loading"])]),vue.createElementVNode("div",_hoisted_6$j,[vue.createVNode(vue.unref(elementPlus.ElPagination),{"current-page":vue.unref(he),"onUpdate:currentPage":we[1]||(we[1]=ke=>vue.isRef(he)?he.value=ke:null),"page-size":vue.unref(pe),"onUpdate:pageSize":we[2]||(we[2]=ke=>vue.isRef(pe)?pe.value=ke:null),"page-sizes":[10,20,40,60,80,100],background:!0,layout:"total, sizes, prev, pager, next, jumper",total:vue.unref(de).length,onCurrentChange:vue.unref(_e),onSizeChange:vue.unref(me)},null,8,["current-page","page-size","total","onCurrentChange","onSizeChange"])])]),vue.createVNode(ModelNormal,{ref_key:"normalRef",ref:se},null,512),vue.createVNode(_sfc_main$U,{ref_key:"sourceTableDataRef",ref:ue},null,512)])}}}),_hoisted_1$I={key:0,class:"flex items-center justify-center h-full"},_sfc_main$R=vue.defineComponent({__name:"index",setup(te){const U=vue.ref(null),G=vue.ref(null),ee=vue.ref({});vue.provide("modelEle",ee);const ne=vue.inject("local"),re=oe=>{ee.value=oe,vue.nextTick(()=>{vue.unref(U).init()})};return(oe,ie)=>{const le=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden app-basic-container"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElConfigProvider),{locale:vue.unref(ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElAside),{class:"pr-5 mr-5"},{default:vue.withCtx(()=>[vue.createVNode(Menu$1,{ref_key:"menuRef",ref:G,onNodeClick:re},null,512)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.unref(ee).dataSourceId?(vue.openBlock(),vue.createBlock(_sfc_main$S,{key:1,ref_key:"viewRef",ref:U,onRefresh:ie[0]||(ie[0]=ae=>vue.unref(G).initMenu())},null,512)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[vue.createVNode(le,{description:"请选择数据源"})]))]),_:1})]),_:1},8,["locale"])]),_:1})}}}),_hoisted_1$H=vue.createElementVNode("i",{class:"ri-search-line"},null,-1),_hoisted_2$A={class:"mt-3"},_hoisted_3$u={class:"mt-3"},_hoisted_4$t={key:1,class:"mr-1 -ml-5 text-base ri-edit-circle-fill text-color-primary"},_sfc_main$Q=vue.defineComponent({__name:"menu",emits:["node-click"],setup(te,{expose:U,emit:G}){const ee=vue.ref(""),ne=vue.ref(null),re=vue.ref([{label:"源视图表",value:"ODSVIEW"},{label:"整合数据表",value:"DWD"}]),oe=vue.ref(vue.unref(re)[0].value),{proxy:ie}=vue.getCurrentInstance(),le=G;vue.watch(ee,ve=>{vue.unref(ne).filter(ve)});const ae=(ve,he)=>ve?he.name.includes(ve):!0,se=vue.ref([]),ue=vue.ref([]),ce=vue.ref(!0),de=()=>{ce.value=!0,Promise.all([fetch$1(ie).loadModelMenu({modelLayer:"ODSVIEW"}),fetch$1(ie).loadModelMenu({modelLayer:"DWD"})]).then(ve=>{se.value=Object.keys(ve[0].data).map(he=>({modelName:he,id:he,children:ve[0].data[he]})),ue.value=Object.keys(ve[1].data).map(he=>({modelName:he,id:he,children:ve[1].data[he]})),ce.value=!1})};de();const fe=ve=>{Array.isArray(ve.children)||le("node-click",ve)};return U({init:de}),(ve,he)=>{const pe=vue.resolveComponent("aceHeader");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(pe,{title:"整合数据",class:"mb-2"},{default:vue.withCtx(()=>[vue.renderSlot(ve.$slots,"top")]),_:3}),vue.createVNode(vue.unref(elementPlus.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:vue.unref(ee),"onUpdate:modelValue":he[0]||(he[0]=ge=>vue.isRef(ee)?ee.value=ge:null)},{prefix:vue.withCtx(()=>[_hoisted_1$H]),_:1},8,["modelValue"]),vue.createElementVNode("div",_hoisted_2$A,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(re),ge=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(oe)==ge.value?"primary":"",key:ge.value,onClick:me=>oe.value=ge.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ge.label),1)]),_:2},1032,["type","onClick"]))),128))]),_:1})]),vue.createElementVNode("div",_hoisted_3$u,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{animated:"",loading:vue.unref(ce),count:2},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTree),{class:"animated fadeIn",ref_key:"treeRef",ref:ne,data:vue.unref(oe)=="DWD"?vue.unref(ue):vue.unref(se),"node-key":"id","default-expand-all":"","highlight-current":"","filter-node-method":ae,onNodeClick:fe},{default:vue.withCtx(({node:ge,data:me})=>[ge.level!=1?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[me.modelCode&&me.openForm!=2?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:vue.normalizeClass(["mr-1 -ml-5 text-base ri-checkbox-circle-fill",[me.publishStatus==2?"text-color-success":"text-color-info"]])},null,2)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),me.openForm==2?(vue.openBlock(),vue.createElementBlock("i",_hoisted_4$t)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass({"font-bold":ge.level==1})},vue.toDisplayString(me.modelName),3)]),_:1},8,["data"])]),_:1},8,["loading"])])],64)}}}),_withScopeId$g=te=>(vue.pushScopeId("data-v-8dbf5661"),te=te(),vue.popScopeId(),te),_hoisted_1$G={class:"mt-3"},_hoisted_2$z=_withScopeId$g(()=>vue.createElementVNode("td",null,"字段名称",-1)),_hoisted_3$t=_withScopeId$g(()=>vue.createElementVNode("td",null,"字段描述",-1)),_hoisted_4$s=_withScopeId$g(()=>vue.createElementVNode("td",null,"映射字段",-1)),_hoisted_5$m=_withScopeId$g(()=>vue.createElementVNode("td",{width:"120px"},"数据类型",-1)),_hoisted_6$i=_withScopeId$g(()=>vue.createElementVNode("td",null,"数据长度",-1)),_hoisted_7$g=_withScopeId$g(()=>vue.createElementVNode("td",null,"数据标度",-1)),_hoisted_8$c=_withScopeId$g(()=>vue.createElementVNode("td",null,"是否主键",-1)),_hoisted_9$b=_withScopeId$g(()=>vue.createElementVNode("td",null,"唯一校验",-1)),_hoisted_10$a=_withScopeId$g(()=>vue.createElementVNode("td",{style:{width:"50px"}},null,-1)),_hoisted_11$8={class:"sort-target"},_hoisted_12$7={key:0},_hoisted_13$5=["onClick"],_hoisted_14$4=_withScopeId$g(()=>vue.createElementVNode("td",null,[vue.createElementVNode("i",{class:"text-lg cursor-move ri-mouse-line handle text-color-warning"})],-1)),_sfc_main$P=vue.defineComponent({__name:"attribute",props:vue.mergeModels({isRequired:{default:1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(te,{expose:U}){const G=vue.useModel(te,"modelValue");vue.getCurrentInstance();const ee=vue.ref(null),ne=vue.ref({attributeCode:[{required:!0,message:"请输入字段名称"},{pattern:/^[A-Za-z]\w*$/,message:"只能以字母开头,由字母/数字/下划线组成",trigger:"blur"}],attributeComment:[{required:!0,message:"请输入字段描述"}],mapCode:[{required:!0,message:"请输入映射字段"}],dataType:[{required:!0,message:"请选择数据类型"}],dataLength:[{required:!0,message:"请输入数据长度"}],dataScale:[{required:!0,message:"请输入数据标度"}],primaryKey:[{required:!0,message:"请选择是否为主键"}]}),re=ue=>{const ce=ue.dataType;ce!=="decimal"&&(ue.dataScale=0),["autoIncrement","date","time","datetime","int","bigint","double","text"].includes(ce)&&(ue.dataLength=0),ce==="decimal"&&(ue.dataLength=10,ue.dataScale=6),ce==="varchar"&&(ue.dataLength=255)},oe=(ue,ce)=>{ue.primaryKey==2&&vue.unref(G).forEach((fe,ve)=>{ve!=ce&&(fe.primaryKey=1)})},ie=()=>{vue.unref(G).push({nanoid:nanoid()})},le=ue=>{vue.unref(G).splice(ue,1)};return U({validate:async()=>await vue.unref(ee).validate(ue=>ue),isRepeat:()=>{const ue=new Map;let ce="";for(let de=0;de<vue.unref(G).length;de++){let fe=vue.unref(G)[de],ve=ue.get(fe.attributeCode);ve!=null&&(ce+="字段名称 <strong>"+fe.attributeCode+"</strong> 重复(<i>第"+(ve+1)+"行和第"+(de+1)+"行</i>);<br>"),ue.set(vue.unref(G)[de].attributeCode,de)}return ce}}),(ue,ce)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{"label-width":"0",model:{modelValue:G.value},size:"small",ref_key:"elFormRef",ref:ee,rules:vue.unref(ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:G.value,"onUpdate:modelValue":ce[0]||(ce[0]=de=>G.value=de),target:".sort-target",animation:150,handle:".handle"},{default:vue.withCtx(()=>[vue.createElementVNode("table",_hoisted_1$G,[vue.createElementVNode("tr",null,[vue.createElementVNode("td",{style:{width:"50px"}},[vue.createElementVNode("i",{class:"text-lg cursor-pointer ri-add-circle-line text-color-primary",onClick:ie})]),_hoisted_2$z,_hoisted_3$t,_hoisted_4$s,_hoisted_5$m,_hoisted_6$i,_hoisted_7$g,_hoisted_8$c,_hoisted_9$b,_hoisted_10$a]),vue.createElementVNode("tbody",_hoisted_11$8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(G.value,(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:de.nanoid},[de.hide?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("tr",_hoisted_12$7,[vue.createElementVNode("td",null,[vue.createElementVNode("i",{class:"text-lg cursor-pointer ri-indeterminate-circle-line text-color-danger",onClick:ve=>le(fe)},null,8,_hoisted_13$5)]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".attributeCode",rules:vue.unref(ne).attributeCode},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:de.attributeCode,"onUpdate:modelValue":ve=>de.attributeCode=ve,maxlength:"30",showWordLimit:"",placeholder:"字段名称"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".attributeComment",rules:vue.unref(ne).attributeComment},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:de.attributeComment,"onUpdate:modelValue":ve=>de.attributeComment=ve,maxlength:"30",showWordLimit:"",placeholder:"字段描述"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".mapCode",rules:vue.unref(ne).mapCode},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:de.mapCode,"onUpdate:modelValue":ve=>de.mapCode=ve,maxlength:"30",showWordLimit:"",placeholder:"映射字段"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".dataType",rules:vue.unref(ne).dataType},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.dataType,"onUpdate:modelValue":ve=>de.dataType=ve,placeholder:"数据类型",class:"w-full",teleported:!1,onChange:()=>re(de)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(commonDataType),ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".dataLength",rules:vue.unref(ne).dataLength},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,max:2048,"value-on-clear":0,"controls-position":"right",modelValue:de.dataLength,"onUpdate:modelValue":ve=>de.dataLength=ve,disabled:["autoIncrement","date","time","datetime","int","bigint","double","text"].includes(de.dataType),placeholder:"长度",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".dataScale",rules:vue.unref(ne).dataScale},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:de.dataScale,"onUpdate:modelValue":ve=>de.dataScale=ve,min:0,max:2048,"value-on-clear":0,"controls-position":"right",disabled:!["decimal"].includes(de.dataType),placeholder:"标度",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:de.primaryKey,"onUpdate:modelValue":ve=>de.primaryKey=ve,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":"2","inactive-value":"1",onChange:()=>oe(de,fe)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:de.uniqueKey,"onUpdate:modelValue":ve=>de.uniqueKey=ve,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":"2","inactive-value":"1"},null,8,["modelValue","onUpdate:modelValue"])]),_hoisted_14$4]))],64))),128))])])]),_:1},8,["modelValue"])]),_:1},8,["model","rules"]))}}),attribute_vue_vue_type_style_index_0_scoped_8dbf5661_lang="",Attribute=_export_sfc$2(_sfc_main$P,[["__scopeId","data-v-8dbf5661"]]),_withScopeId$f=te=>(vue.pushScopeId("data-v-22676e4d"),te=te(),vue.popScopeId(),te),_hoisted_1$F={class:"flex flex-col h-full"},_hoisted_2$y={class:"flex flex-1 overflow-hidden"},_hoisted_3$s={class:"flex flex-col flex-1 mr-3 overflow-hidden"},_hoisted_4$r={class:"h"},_hoisted_5$l=["onClick"],_hoisted_6$h={class:"mr-1 text-base"},_hoisted_7$f={class:"ml-2 text-xs text-color-info"},_hoisted_8$b={class:"text-color-warning"},_hoisted_9$a={class:"flex justify-end flex-1"},_hoisted_10$9=_withScopeId$f(()=>vue.createElementVNode("i",{class:"mr-1 ri-play-mini-fill"},null,-1)),_hoisted_11$7={class:"flex-1 overflow-hidden b"},_hoisted_12$6={class:"flex flex-col flex-1 overflow-hidden"},_hoisted_13$4={class:"h"},_hoisted_14$3=["onClick"],_hoisted_15$2={class:"flex-1 overflow-hidden b"},_hoisted_16$2={class:"flex flex-1 mt-3 overflow-hidden"},_hoisted_17$2={class:"flex flex-col flex-1 mr-3 overflow-hidden"},_hoisted_18$2={class:"flex h"},_hoisted_19$2=["onClick"],_hoisted_20$2={key:0,class:"mr-1 text-color-danger"},_hoisted_21$2={class:"mr-1 text-base"},_hoisted_22$2={key:0,class:"flex justify-end flex-1"},_hoisted_23$2=_withScopeId$f(()=>vue.createElementVNode("i",{class:"mr-1 ri-play-mini-fill"},null,-1)),_hoisted_24$1={class:"flex-1 overflow-hidden b"},_hoisted_25$1={key:0,class:"flex items-center justify-center h-full"},_hoisted_26$1=_withScopeId$f(()=>vue.createElementVNode("i",{class:"ri-table-fill"},null,-1)),_hoisted_27=_withScopeId$f(()=>vue.createElementVNode("i",{class:"ri-database-2-fill"},null,-1)),_hoisted_28={class:"h-full mt-2 overflow-y-auto"},_hoisted_29={class:"overflow-y-auto max-h-96",style:{"min-height":"300px"}},_hoisted_30=_withScopeId$f(()=>vue.createElementVNode("span",{class:"mr-1 text-color-danger"},"*",-1)),_hoisted_31={class:"h-full mt-2 overflow-y-auto"},_hoisted_32={class:"mt-2"},_hoisted_33={key:0,class:"flex flex-col flex-1 overflow-hidden"},_hoisted_34={class:"h"},_hoisted_35=["onClick"],_hoisted_36={class:"flex-1 overflow-hidden b"},_sfc_main$O=vue.defineComponent({__name:"design",props:{widgetType:{default:""}},emits:["success"],setup(te,{expose:U,emit:G}){const ee=te,ne=G,{proxy:re}=vue.getCurrentInstance(),{setFormValue:oe,getFormValue:ie}=re.$globalHooks.useForm(),{openMessage:le}=re.$globalHooks.useMessage(),ae=vue.inject("projectList"),se=vue.computed(()=>{var Me,ze;return((ze=(Me=(vue.unref(ae)??[]).find(Ge=>Ge.value==re.$baseGetCurrentProjectId()))==null?void 0:Me.ext)==null?void 0:ze.storeType)??"-"}),ue=[{label:"SQL编写",value:"1",num:"①"}],ce=vue.ref("1"),de=[{label:"SQL执行结果",value:"1"},{label:"SQL执行结果(JSON)",value:"2"}],fe=vue.ref("1"),ve=vue.ref([]),he=vue.ref(""),pe=vue.ref("1"),ge=[{label:"插件执行结果",value:"1"},{label:"插件执行结果(JSON)",value:"2"}],me=vue.ref("1"),_e=vue.ref(!1),be=vue.ref(null),ye=vue.ref(""),xe=vue.ref([]),Ce=vue.ref(""),$e=vue.ref([]),we=vue.ref(`function plugin(item){
891
+ >${ie}</span>`},parseDemoHtml=te=>{const U=te.getAttribute("data-chartType")||"",G=te.getAttribute("data-id")||"",ee=te.getAttribute("data-content")||"",ne=te.getAttribute("data-singleValue")||"",re=te.getAttribute("data-singleValueKey")||"",oe=te.getAttribute("data-subtitle")||"",ie=te.getAttribute("data-width")||"",le=te.getAttribute("data-fontSize")||"",ae=te.getAttribute("data-bold")||"",se=te.getAttribute("data-color")||"",ue=te.getAttribute("data-src")||"",ce=te.getAttribute("data-indicatorsType")||"";return{type:"indicator",id:G,chartType:U,subtitle:oe,content:ee,width:ie,src:ue,fontSize:le,bold:ae,singleValue:ne,singleValueKey:re,color:se,indicatorsType:ce,children:[{text:ee}]}};function withMention(te){const{insertText:U,isInline:G,isVoid:ee}=te,ne=te;return ne.insertText=re=>{if(editor.DomEditor.getSelectedElems(ne).some(le=>ne.isVoid(le))){U(re);return}U(re)},ne.isInline=re=>editor.DomEditor.getNodeType(re)==="indicator"?!0:G(re),ne.isVoid=re=>editor.DomEditor.getNodeType(re)==="indicator"?!0:ee(re),ne}const aceIndicatorReportPlugin={editorPlugin:withMention,renderElems:[{type:"indicator",renderElem:renderIndicator}],elemsToHtml:[{type:"indicator",elemToHtml:indicatorToHtml}],parseElemsHtml:[{selector:'span[data-w-e-type="indicator"]',parseElemHtml:parseDemoHtml}]},_withScopeId$s=te=>(vue.pushScopeId("data-v-5520f2bf"),te=te(),vue.popScopeId(),te),_hoisted_1$17={class:"flex-1 p-2 border border-gray-200 border-solid"},_hoisted_2$Y={class:"flex justify-end"},_hoisted_3$Q=_withScopeId$s(()=>vue.createElementVNode("div",{class:"h-px mt-2 mb-2 bg-gray-200"},null,-1)),_hoisted_4$O={class:"overflow-y-auto max-h-80"},_hoisted_5$E=_withScopeId$s(()=>vue.createElementVNode("span",{class:"ml-2 mr-2"},"~",-1)),_hoisted_6$z=_withScopeId$s(()=>vue.createElementVNode("span",{class:"ml-2 mr-2"},"~",-1)),_sfc_main$1k=vue.defineComponent({__name:"customSearch",props:{dynamicSearchForm:{default:()=>[]},customSearchVisible:{type:Boolean,default:!1}},emits:["update:customSearchVisible","dynamicSearchFormUpdate","success"],setup(te,{expose:U,emit:G}){var ge;const ee=te,ne=G;vue.watch(()=>ee.customSearchVisible,me=>{me&&vue.nextTick(()=>{he()})});const{proxy:re}=vue.getCurrentInstance(),oe=vue.inject("modelEle"),ie=vue.ref([]),le=vue.ref([]);re.$baseHttp.get(`/api/ace-data-center/model/detail?id=${(ge=vue.unref(oe))==null?void 0:ge.id}`).then(me=>{ie.value=me.data.listModelAttribute.map(_e=>({name:_e.attributeComment,key:_e.attributeCode,dataType:_e.dataType,checked:!1,type:"",value:"",minValue:"",maxValue:"",defaultRule:"",dictId:"",options:""}))});const ae=vue.ref([]);re.$baseHttp.get(`/api/ace-data-center/custom-dic/options?projectId=${re.$baseGetCurrentProjectId()}`).then(me=>{ae.value=me.data});const se={yymmddSingle:[{name:"当日",value:"today"},{name:"昨天",value:"yesterday"}],yymmddhhmmssSingle:[{name:"当日",value:"today"}],yymmddhhmmssRange:[{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"}]},ue=me=>{let _e="date",be="YYYY-MM-DD";return["yyRange","yySingle"].includes(me)&&(_e="year",be="YYYY"),["yymmRange","yymmSingle"].includes(me)&&(_e="month",be="YYYY-MM"),{type:_e,format:be}},ce=(me,_e,be)=>me=="gt"?_e.getTime()>dayjs(be||"").valueOf():_e.getTime()<dayjs(be||"").valueOf(),de=(me,_e,be)=>{if(me[_e]==""||me[be]=="")return;const ye=Number(me[_e]),xe=Number(me[be]);(_e=="minValue"?ye>xe:ye<xe)&&(me[_e]=me[be])},fe=me=>{me.value="",me.options=[],me.dictId&&re.$baseHttp.get(`/api/ace-data-center/custom-dic/readDict/${me.dictId}`).then(_e=>{me.options=_e.data??[]})},ve=me=>{me.value="",me.minValue="",me.maxValue="",me.defaultRule="",me.dictId="",me.options=[]},he=()=>{le.value=JSON.parse(JSON.stringify(vue.unref(ie))),vue.unref(le).forEach(me=>{const _e=ee.dynamicSearchForm.find(be=>be.key==me.key);_e&&(me.checked=!0,Object.keys(_e).forEach(be=>{me[be]=_e[be]})),["varchar","text"].includes(me.dataType)&&!_e&&(me.type="stringSingle")})},pe=()=>{ne("dynamicSearchFormUpdate",le.value.filter(me=>me.checked&&me.type)),ne("update:customSearchVisible",!1)};return U({init:he}),(me,_e)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$17,[vue.createElementVNode("div",_hoisted_2$Y,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:pe},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-3",size:"small",onClick:_e[0]||(_e[0]=be=>ne("update:customSearchVisible",!1))},{default:vue.withCtx(()=>[vue.createTextVNode(" 关闭 ")]),_:1})]),_hoisted_3$Q,vue.createElementVNode("div",_hoisted_4$O,[vue.createVNode(vue.unref(elementPlus.ElForm),{inline:"",size:"small"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(le),(be,ye)=>(vue.openBlock(),vue.createElementBlock("div",{key:ye},[vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{modelValue:be.checked,"onUpdate:modelValue":xe=>be.checked=xe,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"名称:"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:be.name,"onUpdate:modelValue":xe=>be.name=xe,size:"small",placeholder:"请输入名称",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),vue.createVNode(vue.unref(elementPlus.ElFormItem),{label:"类型:"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{size:"small",clearable:"",teleported:!1,modelValue:be.type,"onUpdate:modelValue":xe=>be.type=xe,onChange:xe=>ve(be),placeholder:"类型"},{default:vue.withCtx(()=>[["date","datetime"].includes(be.dataType)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年·区间",value:"yyRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年·单值",value:"yySingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月·区间",value:"yymmRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月·单值",value:"yymmSingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月日·区间",value:"yymmddRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月日·单值",value:"yymmddSingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月日时分秒·区间",value:"yymmddhhmmssRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"年月日时分秒·单值",value:"yymmddhhmmssSingle"})],64)):["int","decimal","double"].includes(be.dataType)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"数值·区间",value:"numberRange"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"数值·单值",value:"numberSingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"下拉框·字典",value:"select"})],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[vue.createVNode(vue.unref(elementPlus.ElOption),{label:"字符串",value:"stringSingle"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"字符串分隔",value:"stringMultiple"}),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"下拉框·字典",value:"select"})],64))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1024),be.type?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElFormItem),{key:0,label:"默认值:"},{default:vue.withCtx(()=>[se[be.type]?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSelect),{key:0,size:"small",clearable:"",style:{"margin-right":"10px"},teleported:!1,modelValue:be.defaultRule,"onUpdate:modelValue":xe=>be.defaultRule=xe,placeholder:"默认值"},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se[be.type],xe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:xe.name,value:xe.value,key:xe.value},null,8,["label","value"]))),128)),vue.createVNode(vue.unref(elementPlus.ElOption),{label:"自定义",value:"custom"})]),_:2},1032,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),be.type.endsWith("Range")?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[["yyRange","yymmRange","yymmddRange"].includes(be.type)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(vue.unref(elementPlus.ElDatePicker),{size:"small",teleported:!1,modelValue:be.minValue,"onUpdate:modelValue":xe=>be.minValue=xe,clearable:"",placeholder:"开始","disabled-date":xe=>ce("gt",xe,be.maxValue),type:ue(be.type).type,"value-format":ue(be.type).format},null,8,["modelValue","onUpdate:modelValue","disabled-date","type","value-format"]),_hoisted_5$E,vue.createVNode(vue.unref(elementPlus.ElDatePicker),{size:"small",teleported:!1,modelValue:be.maxValue,"onUpdate:modelValue":xe=>be.maxValue=xe,clearable:"",placeholder:"结束","disabled-date":xe=>ce("lt",xe,be.minValue),type:ue(be.type).type,"value-format":ue(be.type).format},null,8,["modelValue","onUpdate:modelValue","disabled-date","type","value-format"])],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(vue.unref(elementPlus.ElInput),{size:"small",modelValue:be.minValue,"onUpdate:modelValue":xe=>be.minValue=xe,max:be.maxValue,clearable:!1,onBlur:xe=>de(be,"minValue","maxValue"),type:"number",placeholder:"最小值"},null,8,["modelValue","onUpdate:modelValue","max","onBlur"]),_hoisted_6$z,vue.createVNode(vue.unref(elementPlus.ElInput),{size:"small",modelValue:be.maxValue,"onUpdate:modelValue":xe=>be.maxValue=xe,min:be.minValue,clearable:!1,onBlur:xe=>de(be,"maxValue","minValue"),type:"number",placeholder:"最大值"},null,8,["modelValue","onUpdate:modelValue","min","onBlur"])],64))],64)):vue.createCommentVNode("",!0),be.type.includes("Single")?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[["yySingle","yymmSingle","yymmddSingle"].includes(be.type)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDatePicker),{key:0,size:"small",teleported:!1,modelValue:be.value,"onUpdate:modelValue":xe=>be.value=xe,clearable:"",placeholder:"请输入"+be.name,type:ue(be.type).type,"value-format":ue(be.type).format},null,8,["modelValue","onUpdate:modelValue","placeholder","type","value-format"])):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElInput),{key:1,size:"small",modelValue:be.value,"onUpdate:modelValue":xe=>be.value=xe,teleported:!1,clearable:"",type:be.type=="numberSingle"?"number":"",placeholder:"请输入"+be.name},null,8,["modelValue","onUpdate:modelValue","type","placeholder"]))],64)):vue.createCommentVNode("",!0),be.type=="stringMultiple"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSelect),{key:3,size:"small",teleported:!1,modelValue:be.value,"onUpdate:modelValue":xe=>be.value=xe,placeholder:"请选择",clearable:"",multiple:"",filterable:"","allow-create":"","reserve-keyword":!1,"default-first-option":""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(be.options,xe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:xe.label,value:xe.value,key:xe.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):vue.createCommentVNode("",!0),be.type=="select"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:4},[vue.createVNode(vue.unref(elementPlus.ElSelect),{size:"small",teleported:!1,style:{"margin-right":"10px"},modelValue:be.dictId,"onUpdate:modelValue":xe=>be.dictId=xe,placeholder:"字典值",clearable:"",onChange:xe=>fe(be)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ae),xe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:xe.label,value:xe.code,key:xe.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),vue.createVNode(vue.unref(elementPlus.ElSelect),{size:"small",teleported:!1,modelValue:be.value,"onUpdate:modelValue":xe=>be.value=xe,placeholder:"请选择",clearable:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(be.options,xe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{label:xe.name,value:xe.code,key:xe.code},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])],64)):vue.createCommentVNode("",!0)]),_:2},1024)):vue.createCommentVNode("",!0)]))),128))]),_:1})])]))}}),customSearch_vue_vue_type_style_index_0_scoped_5520f2bf_lang="",aceIndicatorCustomSearch=_export_sfc$2(_sfc_main$1k,[["__scopeId","data-v-5520f2bf"]]),_hoisted_1$16={class:"field"},_hoisted_2$X={class:"flex items-center justify-center flex-1 h-full overflow-hidden cursor-pointer field-container"},_hoisted_3$P=["onClick"],_hoisted_4$N={class:"overflow-hidden field-label whitespace-nowrap text-ellipsis"},_hoisted_5$D={key:0,class:"flex items-center h-full"},_hoisted_6$y={class:"mr-5"},_hoisted_7$u=["onClick"],_hoisted_8$q={key:0,class:"field-add"},_hoisted_9$n=["onClick"],_sfc_main$1j=vue.defineComponent({__name:"model-table-dimension",props:{loading:{type:Boolean,default:!0},iconMap:{default:()=>{}},calendarType:{default:()=>{}},modelValue:{default:()=>[]},list:{default:()=>[]}},emits:["success","update:modelValue"],setup(te,{emit:U}){const G=te,ee=U;vue.inject("chartList");const ne=vue.ref(""),re=vue.computed(()=>G.list.filter(se=>se.columnComment.indexOf(vue.unref(ne))>=0)),oe=se=>{ee("update:modelValue",[se]),ee("success")},ie=se=>{ee("update:modelValue",[...G.modelValue,se]),ee("success")},le=se=>{ee("update:modelValue",G.modelValue.filter(ue=>ue.identifier!==se.identifier)),ee("success")},ae=(se,ue)=>{const ce=G.modelValue.find(de=>de.identifier==ue.identifier);ce.dateFormatType=se,ue.dateFormatType=se,ee("success")};return(se,ue)=>{const ce=vue.resolveComponent("aceHeader");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(ce,{title:"分组统计维度",class:"mt-4 mb-2"}),vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:se.loading,animated:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ne),"onUpdate:modelValue":ue[0]||(ue[0]=de=>vue.isRef(ne)?ne.value=de:null),placeholder:"搜索字段",class:"mb-2"},null,8,["modelValue"]),vue.createElementVNode("div",_hoisted_1$16,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(re),de=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["field-item",{active:se.modelValue.some(fe=>fe.identifier==de.identifier)}]),key:de.identifier},[vue.createElementVNode("div",_hoisted_2$X,[vue.createElementVNode("div",{class:"flex items-center flex-1 overflow-hidden",onClick:fe=>oe(de)},[vue.createElementVNode("i",{class:vue.normalizeClass([se.iconMap[de.dataType],"mr-2"])},null,2),vue.createElementVNode("span",_hoisted_4$N,vue.toDisplayString(de.columnComment),1)],8,_hoisted_3$P),se.modelValue.some(fe=>fe.identifier==de.identifier)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$D,[["date","datetime"].includes(de.dataType)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdown),{key:0,trigger:"hover",onCommand:fe=>ae(fe,de)},{dropdown:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElDropdownMenu),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(se.calendarType,(fe,ve)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElDropdownItem),{command:ve,key:fe},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(fe),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_6$y,vue.toDisplayString(se.calendarType[de.dateFormatType]),1)]),_:2},1032,["onCommand"])):vue.createCommentVNode("",!0),vue.createElementVNode("i",{class:"cursor-pointer ri-close-line",onClick:vue.withModifiers(fe=>le(de),["stop"])},null,8,_hoisted_7$u)])):vue.createCommentVNode("",!0)]),!se.modelValue.some(fe=>fe.identifier==de.identifier)&&se.modelValue.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$q,[vue.createElementVNode("i",{class:"text-gray-800 cursor-pointer ri-add-line",onClick:vue.withModifiers(fe=>ie(de),["stop"])},null,8,_hoisted_9$n)])):vue.createCommentVNode("",!0)],2))),128))])]),_:1},8,["loading"])],64)}}}),modelTableDimension_vue_vue_type_style_index_0_scoped_17c71fa7_lang="",modelTableDimension=_export_sfc$2(_sfc_main$1j,[["__scopeId","data-v-17c71fa7"]]),_withScopeId$r=te=>(vue.pushScopeId("data-v-449a4f14"),te=te(),vue.popScopeId(),te),_hoisted_1$15={class:"mb-2"},_hoisted_2$W=_withScopeId$r(()=>vue.createElementVNode("div",{class:"mb-2 font-bold"},"公式名称:",-1)),_hoisted_3$O={class:"relative mt-4 mb-4"},_hoisted_4$M={class:"mb-2 font-bold"},_hoisted_5$C={class:"ml-2 text-color-primary"},_hoisted_6$x={key:0,class:"selection el-popper is-light el-popover","data-popper-placement":"bottom"},_hoisted_7$t=_withScopeId$r(()=>vue.createElementVNode("div",null,"选择变量",-1)),_hoisted_8$p={class:"mt-2"},_hoisted_9$m=_withScopeId$r(()=>vue.createElementVNode("span",{class:"el-popper__arrow","data-popper-arrow":""},null,-1)),validKeys="0123456789+-*/@.()",_sfc_main$1i=vue.defineComponent({__name:"model-exp",props:{options:{default:()=>[]}},emits:["success"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),ne=vue.ref(!1),re=te,oe=G,ie=vue.ref(""),le=vue.ref(null),ae=Ve=>{const{key:Se}=Ve;switch(Se){case"Enter":Ve.preventDefault();break;case"@":case"Process":de();break}};let se=null;const ue=()=>{const Ve=vue.unref(le).innerHTML;let Se=xe(Ve.replace(/<br>/g,""));Se=Se.map(Ne=>$e(Ne)?Ce(Ne):Ne.data.split("").filter(Ie=>validKeys.includes(Ie)).join(""));const ke=Se.join("");if(Ve!==ke){const Ne=we(Ve,ke);vue.unref(le).innerHTML=ke,Ee(vue.unref(le),Ne)}clearTimeout(se),se=setTimeout(async()=>{_e()},500)},ce=vue.ref(!1),de=()=>{ce.value=!0},fe=Ve=>{const{identifier:Se,columnComment:ke}=Ve;ce.value=!1;const Ne=`<div contenteditable="false">${ke}<span>${Se}</span></div>`;ge("@",Ne)},ve=vue.ref(null),he=Ve=>{if(ve.value=Ve,ie.value="",ne.value=!0,Ve){const Se=JSON.parse(JSON.stringify(Ve.data));let ke=Se.exp??"";ie.value=Se.comment,Se.identifier.split(",").forEach(Ne=>{const Ie=new RegExp(Ne,"g"),Pe=re.options.find(Te=>Te.identifier==Ne);if(Pe){const Te=`<div contenteditable="false">${Pe.columnComment}<span>${Ne}</span></div>`;ke=ke.replace(Ie,(De,Oe,Be)=>{const Ae=De.length,Le=Be.slice(Oe-1,Ae+Oe+1);return Le.startsWith("_")||Le.endsWith("_")?Ne:Te})}}),vue.nextTick(()=>{vue.unref(le).innerHTML=ke.replace(/@/g,""),setTimeout(()=>{_e()},100)})}},pe=()=>{var Ve,Se;if(!((Ve=vue.unref(me))!=null&&Ve.exp)){ee.$message({type:"warning",message:"公式不能为空",plain:!0});return}if(vue.unref(ie)==""){ee.$message({type:"warning",message:"公式名称不能为空",plain:!0});return}oe("success",{...vue.unref(me),aggType:"exp",comment:vue.unref(ie),showLabel:vue.unref(ie)},((Se=vue.unref(ve))==null?void 0:Se.index)??""),ne.value=!1},ge=(Ve,Se="")=>{if(!vue.unref(le))return;let ke=vue.unref(le).innerHTML;ke.includes(Ve)&&(ke=ke.replace(new RegExp(Ve,"g"),Se),vue.unref(le).innerHTML=ke),_e()},me=vue.ref({}),_e=()=>{let Ve="";const Se=[],ke=vue.unref(le).innerHTML.replace(/\sdata-spm-anchor-id=".*?"/g,"");ye({text:ke,prefix:'<div contenteditable="false">',suffix:"</div>"}).forEach(Ie=>{const[Pe,Te]=ye({text:Ie,prefix:"<span>",suffix:"</span>"});Te?(Ve+=`@${Te}`,Se.push(Te)):Ve+=Pe}),me.value={exp:Ve,identifier:Se.toString()}},be=Ve=>{ce.value=!1,Ve&&ge("@")};vue.onMounted(()=>window.addEventListener("click",be)),vue.onBeforeUnmount(()=>window.removeEventListener("click",be)),U({init:he});const ye=({text:Ve,prefix:Se,suffix:ke})=>Ve.replace(new RegExp(Se,"g"),",").replace(new RegExp(ke,"g"),",").split(",").filter(Ne=>!!Ne),xe=Ve=>{const Se=document.createElement("div");return Se.innerHTML=Ve,[...Se.childNodes]},Ce=Ve=>{let Se=document.createElement("div");Se.appendChild(Ve);let ke=Se.innerHTML;return Se=Ve=null,ke},$e=Ve=>Object.prototype.toString.call(Ve)==="[object HTMLDivElement]",we=(Ve,Se)=>{const ke=Ve.split(""),Ne=Se.split(""),Ie=Math.max(ke.length,Ne.length);let Pe=0;for(let Te=0;Te<Ie&&ke[Te]==Ne[Te];Te++)Pe++;return Pe},Ee=(Ve,Se)=>{const ke=document.createRange(),Ne=window.getSelection();let Ie=0,Pe=0;const Te=xe(Ve.innerHTML);for(let De=0;De<Te.length;De++){const Oe=Te[De];if($e(Oe))Se-=Ce(Oe).length;else if(Se>Oe.length)Se-=Oe.length;else{Pe=Se;break}Ie++}ke.selectNodeContents(Ve),ke.collapse(!1),Ve.childNodes[Ie]&&ke.setStart(Ve.childNodes[Ie],Pe),ke.collapse(!0),Ne.removeAllRanges(),Ne.addRange(ke)};return(Ve,Se)=>{const ke=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createBlock(ke,{modelValue:vue.unref(ne),"onUpdate:modelValue":Se[2]||(Se[2]=Ne=>vue.isRef(ne)?ne.value=Ne:null),title:"计算公式",size:800},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:pe},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:Se[1]||(Se[1]=Ne=>ne.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$15,[_hoisted_2$W,vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:vue.unref(ie),"onUpdate:modelValue":Se[0]||(Se[0]=Ne=>vue.isRef(ie)?ie.value=Ne:null),placeholder:"请输入公式名称"},null,8,["modelValue"])]),vue.createElementVNode("div",_hoisted_3$O,[vue.createElementVNode("div",_hoisted_4$M,[vue.createTextVNode(" 公式: "),vue.createElementVNode("span",_hoisted_5$C,vue.toDisplayString(vue.unref(me).exp),1)]),vue.createElementVNode("div",{ref_key:"formulaRef",ref:le,class:"flex-1 formula",contenteditable:"",placeholder:"请输入表达式 输入「@」后选择指标",style:{"ime-mode":"disabled"},onKeydown:vue.withModifiers(ae,["stop"]),onKeyup:ue},null,544),vue.unref(ce)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$x,[_hoisted_7$t,vue.createElementVNode("div",_hoisted_8$p,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(re.options,Ne=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{class:"m-2 cursor-pointer",onClick:Ie=>fe(Ne),key:Ne.identifier,type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ne.columnComment),1)]),_:2},1032,["onClick"]))),128))]),_hoisted_9$m])):vue.createCommentVNode("",!0)])]),_:1},8,["modelValue"])}}}),modelExp_vue_vue_type_style_index_0_scoped_449a4f14_lang="",ModelExp=_export_sfc$2(_sfc_main$1i,[["__scopeId","data-v-449a4f14"]]),_withScopeId$q=te=>(vue.pushScopeId("data-v-216c5764"),te=te(),vue.popScopeId(),te),_hoisted_1$14={key:0},_hoisted_2$V=_withScopeId$q(()=>vue.createElementVNode("div",{class:"mb-2 text-sm indicators-title"},[vue.createElementVNode("i",{class:"mr-1 ri-table-line"}),vue.createTextVNode(" 基本指标 ")],-1)),_hoisted_3$N=["onClick"],_hoisted_4$L=_withScopeId$q(()=>vue.createElementVNode("i",{class:"ri-lightbulb-line"},null,-1)),_hoisted_5$B={key:1},_hoisted_6$w={class:"flex items-center mb-2 text-sm indicators-title"},_hoisted_7$s={class:"overflow-y-auto max-h-96"},_hoisted_8$o=["onClick"],_hoisted_9$l={class:"field-label"},_hoisted_10$i=_withScopeId$q(()=>vue.createElementVNode("i",{class:"ri-add-fill"},null,-1)),_sfc_main$1h=vue.defineComponent({__name:"model-table-summary",props:{modelValue:{default:()=>[]},iconMap:{default:()=>{}},list:{default:()=>[]}},emits:["update:modelValue"],setup(te,{emit:U}){const G=te,ee=U,{proxy:ne}=vue.getCurrentInstance();vue.inject("chartList");const re=vue.ref(!1),oe=vue.ref(1),ie=vue.ref(null),le=vue.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:"可手动输入计算公式"}]);vue.watch(re,fe=>{fe&&(ue.value={},oe.value=1)});const ae=fe=>{ee("update:modelValue",G.modelValue.filter(ve=>ve.showLabel!==fe.showLabel))},se=(fe,ve)=>{fe.aggType=="exp"&&vue.unref(ie).init({data:fe,index:ve})},ue=vue.ref({}),ce=fe=>{if(fe.value==="count"){if(G.modelValue.some(ve=>ve.aggType==fe.value)){ne.$message({type:"warning",message:"存在重复数据",plain:!0});return}ee("update:modelValue",[...G.modelValue,{identifier:1,aggType:fe.value,showLabel:fe.label}]),re.value=!1;return}if(fe.value=="exp"){vue.unref(ie).init();return}oe.value=2,ue.value=fe},de=fe=>{var ve,he;if(G.modelValue.some(pe=>{var ge;return pe.identifier==fe.identifier&&pe.aggType==((ge=vue.unref(ue))==null?void 0:ge.value)})){ne.$message({type:"warning",message:"存在重复数据",plain:!0});return}re.value=!1,ee("update:modelValue",[...G.modelValue,{identifier:fe.identifier,comment:fe.columnComment,aggType:(ve=vue.unref(ue))==null?void 0:ve.value,showLabel:fe.columnComment+((he=vue.unref(ue))==null?void 0:he.label)}])};return(fe,ve)=>{const he=vue.resolveComponent("aceHeader");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(he,{title:"汇总方式",class:"mb-2"}),vue.createElementVNode("div",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe.modelValue,(pe,ge)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:pe.value,class:vue.normalizeClass(["m-1",[pe.aggType=="exp"?"cursor-pointer":""]]),closable:!0,onClick:me=>se(pe,ge),onClose:me=>ae(pe),type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(pe.showLabel),1)]),_:2},1032,["onClick","class","onClose"]))),128)),vue.createVNode(vue.unref(elementPlus.ElPopover),{trigger:"click",width:"300px",placement:"top-start",visible:vue.unref(re),"onUpdate:visible":ve[1]||(ve[1]=pe=>vue.isRef(re)?re.value=pe:null)},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-1",size:"small"},{default:vue.withCtx(()=>[_hoisted_10$i,vue.createTextVNode(" "+vue.toDisplayString(fe.modelValue.length?"":"添加度量"),1)]),_:1})]),default:vue.withCtx(()=>[vue.unref(oe)==1?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$14,[_hoisted_2$V,(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(le),pe=>(vue.openBlock(),vue.createElementBlock("div",{onClick:ge=>ce(pe),key:pe.value,class:vue.normalizeClass([{active:vue.unref(ue).value==pe.value},"indicators-item"])},[vue.createTextVNode(vue.toDisplayString(pe.label)+" ",1),vue.createVNode(vue.unref(elementPlus.ElTooltip),{effect:"dark",content:pe.tip,placement:"top"},{default:vue.withCtx(()=>[_hoisted_4$L]),_:2},1032,["content"])],10,_hoisted_3$N))),128))])):vue.createCommentVNode("",!0),vue.unref(oe)==2?(vue.openBlock(),vue.createElementBlock("div",_hoisted_5$B,[vue.createElementVNode("div",_hoisted_6$w,[vue.createElementVNode("i",{class:"mr-1 text-xl cursor-pointer ri-arrow-left-s-line",onClick:ve[0]||(ve[0]=pe=>oe.value=1)}),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(ue).label),1)]),vue.createElementVNode("div",_hoisted_7$s,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(fe.list,pe=>(vue.openBlock(),vue.createElementBlock("div",{onClick:ge=>de(pe),key:pe.identifier,class:"indicators-item"},[vue.createElementVNode("div",null,[vue.createElementVNode("i",{class:vue.normalizeClass([fe.iconMap[pe.dataType],"mr-2"])},null,2),vue.createElementVNode("span",_hoisted_9$l,vue.toDisplayString(pe.columnComment),1)])],8,_hoisted_8$o))),128))])])):vue.createCommentVNode("",!0)]),_:1},8,["visible"]),vue.createVNode(ModelExp,{ref_key:"modelPercentRef",ref:ie,options:G.list,onSuccess:ve[2]||(ve[2]=(pe,ge)=>ge?G.modelValue[ge]=pe:ee("update:modelValue",[...G.modelValue,pe]))},null,8,["options"])])],64)}}}),modelTableSummary_vue_vue_type_style_index_0_scoped_216c5764_lang="",modelTableSunmary=_export_sfc$2(_sfc_main$1h,[["__scopeId","data-v-216c5764"]]),_sfc_main$1g=vue.defineComponent({__name:"chart-list-widget",props:{type:{default:""}},setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.inject("chartList"),ee=ne=>{U.$baseEventBus.emit("model-chart-click",ne)};return(ne,re)=>(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(G),oe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:ne.type==oe.type?"primary":"",key:oe.type,onClick:ie=>ee(oe)},{default:vue.withCtx(()=>{var ie;return[vue.createElementVNode("i",{class:vue.normalizeClass((ie=vue.unref(echartsTypeList)[oe.type])==null?void 0:ie.icon)},null,2)]}),_:2},1032,["type","onClick"]))),128))}}),_withScopeId$p=te=>(vue.pushScopeId("data-v-ad68cd37"),te=te(),vue.popScopeId(),te),_hoisted_1$13={class:"overflow-y-auto max-h-96"},_hoisted_2$U=["onClick"],_hoisted_3$M={class:"field-label"},_hoisted_4$K=_withScopeId$p(()=>vue.createElementVNode("i",{class:"ri-add-fill"},null,-1)),_sfc_main$1f=vue.defineComponent({__name:"model-table-other-summary",props:{modelValue:{default:()=>[]},iconMap:{default:()=>{}},list:{default:()=>[]}},emits:["update:modelValue"],setup(te,{emit:U}){const G=te,ee=U,{proxy:ne}=vue.getCurrentInstance();vue.inject("chartList");const re=vue.ref(!1);vue.ref(null);const oe=le=>{ee("update:modelValue",G.modelValue.filter(ae=>ae.showLabel!==le.showLabel))},ie=le=>{if(G.modelValue.some(ae=>ae.identifier==le.identifier)){ne.$message({type:"warning",message:"存在重复数据",plain:!0});return}re.value=!1,ee("update:modelValue",[...G.modelValue,{identifier:le.identifier,comment:le.columnComment,aggType:"other",showLabel:le.columnComment}])};return(le,ae)=>{const se=vue.resolveComponent("aceHeader");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(se,{title:"显示其他列",class:"mt-2 mb-2"}),vue.createElementVNode("div",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.modelValue,(ue,ce)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:ue.value,class:"m-1",closable:!0,onClose:de=>oe(ue),type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ue.showLabel),1)]),_:2},1032,["onClose"]))),128)),vue.createVNode(vue.unref(elementPlus.ElPopover),{trigger:"click",width:"300px",placement:"top-start",visible:vue.unref(re),"onUpdate:visible":ae[0]||(ae[0]=ue=>vue.isRef(re)?re.value=ue:null)},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-1",size:"small"},{default:vue.withCtx(()=>[_hoisted_4$K]),_:1})]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$13,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.list,ue=>(vue.openBlock(),vue.createElementBlock("div",{onClick:ce=>ie(ue),key:ue.identifier,class:"indicators-item"},[vue.createElementVNode("div",null,[vue.createElementVNode("i",{class:vue.normalizeClass([le.iconMap[ue.dataType],"mr-2"])},null,2),vue.createElementVNode("span",_hoisted_3$M,vue.toDisplayString(ue.columnComment),1)])],8,_hoisted_2$U))),128))])]),_:1},8,["visible"])])],64)}}}),modelTableOtherSummary_vue_vue_type_style_index_0_scoped_ad68cd37_lang="",ModelTableOtherSummary=_export_sfc$2(_sfc_main$1f,[["__scopeId","data-v-ad68cd37"]]),_withScopeId$o=te=>(vue.pushScopeId("data-v-3d6e6e94"),te=te(),vue.popScopeId(),te),_hoisted_1$12={class:"flex w-full h-full"},_hoisted_2$T={class:"flex flex-col flex-1 overflow-hidden"},_hoisted_3$L={class:"flex flex-col flex-1 pb-3 pr-3 overflow-y-auto"},_hoisted_4$J={key:0,class:"relative flex items-center justify-center pannel h-14"},_hoisted_5$A={class:"absolute left-5 top-3"},_hoisted_6$v=_withScopeId$o(()=>vue.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),_hoisted_7$r=_withScopeId$o(()=>vue.createElementVNode("i",{class:"ri-table-line"},null,-1)),_hoisted_8$n={class:"absolute flex items-center right-5 top-4"},_hoisted_9$k=_withScopeId$o(()=>vue.createElementVNode("i",{class:"mr-1 ri-settings-2-line"},null,-1)),_hoisted_10$h={class:"ml-2 mr-2"},_hoisted_11$d={class:"flex flex-col"},_hoisted_12$b={class:"flex-1 overflow-y-auto"},_hoisted_13$9={key:0,class:"flex items-center justify-center pannel h-14"},_hoisted_14$8=_withScopeId$o(()=>vue.createElementVNode("i",{class:"mr-1 ri-save-line"},null,-1)),_sfc_main$1e=vue.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(te,{expose:U,emit:G}){const ee=te,ne=G,re=screenDesignMainStore(),{proxy:oe}=vue.getCurrentInstance(),{setFormValue:ie,getFormValue:le}=oe.$globalHooks.useForm(),{dynamicSearchForm:ae,dynamicSearchFormat:se,dynamicSearchParams:ue}=oe.$aceDynamicSearch(),ce=vue.inject("modelEle"),de=vue.inject("getListModelIndicators");vue.inject("chartList");const fe={varchar:"ri-text",date:"ri-calendar-2-line",datetime:"ri-calendar-2-line",int:"ri-hashtag",decimal:"ri-hashtag"},ve={day:"按日",week:"按周",month:"按月",quarter:"按季度",year:"按年","":"按时分秒"},he=vue.ref(!1),pe=vue.ref(!0),ge=vue.ref(0),me=vue.ref([]),_e=vue.ref([]),be=vue.ref([]),ye=vue.ref([]),xe=vue.ref([]),Ce=vue.ref(!0),$e=vue.ref(!0),we=async Me=>{var We,Ue;Ce.value=!0,$e.value=!1;const ze=JSON.parse((Me==null?void 0:Me.groupArgsJson)??"[]"),Ge=JSON.parse((Me==null?void 0:Me.aggArgsJson)??JSON.stringify([{identifier:1,aggType:"count",showLabel:"行数"}]));ye.value=Ge.filter(qe=>qe.aggType!="other"),xe.value=Ge.filter(qe=>qe.aggType=="other"),ze.length||(Ce.value=!1),ge.value=(Me==null?void 0:Me.pageSize)??20,Te.value=JSON.parse((Me==null?void 0:Me.sortArgsJson)??"{}"),Me!=null&&Me.formConfJson?(ae.value=se(JSON.parse(Me.formConfJson??"[]")),ne("update:dynamicSearchForm",ae.value)):await fetch$1(oe).getFormJsonConfig((We=vue.unref(ce))==null?void 0:We.id).then(qe=>{var Ye;ae.value=se(JSON.parse(((Ye=qe.data)==null?void 0:Ye.formConfJson)??"[]"))}),ne("update:dynamicSearchForm",ae.value),ie(Me,Be),oe.$baseHttp.post("/api/ace-data-center/aidc/modelAnalysis",{projectId:oe.$baseGetCurrentProjectId(),modelId:(Ue=vue.unref(ce))==null?void 0:Ue.id,serialId:new Date().getTime()}).then(qe=>{pe.value=!1,me.value=qe.data.filter(Ye=>!["创建时间","创建人","所属项目","创建部门","标签"].includes(Ye.columnComment)).map(Ye=>({...Ye,dateFormatType:["date","datetime"].includes(Ye.dataType)?"day":""})),be.value=qe.data.filter(Ye=>["ADDABLE","SEMIADDABLE"].includes(Ye.quantityType)),ze.forEach(Ye=>{const Je=me.value.find(Xe=>Xe.identifier==Ye.identifier);Je&&(_e.value.push({...Je,dataType:Ye.dataType,dateFormatType:Ye.dateFormatType}),Je.dateFormatType=Ye.dateFormatType)}),Ce.value=!1,setTimeout(()=>{$e.value=!0},1e3)})};vue.watch([ye,_e,xe],()=>{vue.unref($e)&&(Te.value={}),Ie()},{deep:!0});let Ee=null;const Ve=vue.ref(null),Se=vue.ref(!1),ke=vue.ref([]),Ne=vue.ref([]),Ie=async()=>{clearTimeout(Ee),Ee=setTimeout(async()=>{var Ue,qe;Ne.value=[],re.setChartData([]);const Me=Pe(),ze=Object.keys(vue.unref(Te)).map(Ye=>({field:Ye,type:vue.unref(Te)[Ye]=="ascending"?"asc":"desc"})),Ge={aggArgsJson:JSON.stringify([...vue.unref(ye),...vue.unref(xe)]),groupArgsJson:JSON.stringify(Me),sortArgsJson:JSON.stringify(ze),params:ue(vue.unref(ae)),pageSize:vue.unref(ge),modelId:(Ue=vue.unref(ce))==null?void 0:Ue.id};if(ee.indicatorsId&&(Ge.modelIndicatorsId=ee.indicatorsId),ne("update:title",`${vue.unref(ye).length}个指标:${vue.unref(ye).length?"根据":""}${Me.map(Ye=>Ye.showLabel).toString()}${vue.unref(ye).length?"分组的":""}${vue.unref(ye).filter((Ye,Je)=>Je<3).map(Ye=>Ye.showLabel).toString()}${vue.unref(ye).length>3?"...":""}`),!vue.unref(ye).length||vue.unref(Ce)){ke.value=[];return}Se.value=!0;const We=await oe.$baseHttp.post("/api/ace-data-center/model-indicators/debug",Ge);Ve.value=Ge,Se.value=!1,We&&(ke.value=((qe=We.data)==null?void 0:qe.records)??[],re.setChartData({x:Me,y:[...vue.unref(ye),...vue.unref(xe)],params:Ge}),vue.unref(ke).length&&Object.keys(vue.unref(ke)[0]).forEach(Ye=>{Ne.value.push({label:Ye,prop:Ye,sortable:"custom"})}))})},Pe=()=>vue.unref(_e).map(Me=>({identifier:Me.identifier,comment:Me.columnComment,showLabel:Me.columnComment+(ve[Me.dateFormatType]??""),dateFormatType:Me.dateFormatType||null})),Te=vue.ref({}),De=({column:Me})=>{vue.unref(Te)[Me.property]&&(Me.order=vue.unref(Te)[Me.property])};vue.watch(Te,Me=>{const ze=Object.keys(Me).map(Ge=>`${Ge}${Me[Ge]=="descending"?"降序":"升序"}`);ne("update:sortHtml",ze.length?`<span class="text-color-warning">排序:${ze.toString()}</span>`:"")},{deep:!0});const Oe=Me=>{const{prop:ze,order:Ge}=Me;!Ge||vue.unref(Te)[ze]===Ge?delete vue.unref(Te)[ze]:vue.unref(Te)[ze]=Ge,Ie()};fetch$1(oe).loadIndicatorsMenu().then(Me=>{Be.find(ze=>ze.fieldName=="tags").options=Object.keys(Me.data).map(ze=>({label:ze,value:ze}))});const Be=vue.reactive([{name:"名称",type:FieldType.Text,fieldName:"name",value:"",required:!0},{name:"描述",type:FieldType.Textarea,fieldName:"remark",value:""},{name:"标签",type:FieldType.Select,fieldName:"tags",value:"",options:[],multiple:!0,allowCreate:!0,required:!0,placeholder:"请选择标签或输入标签"},{name:"code",type:FieldType.Text,fieldName:"code",value:"",hide:!0}]),Ae=vue.ref(!1),Le=()=>{Be.find(Me=>Me.fieldName=="remark").value=ee.title,Ae.value=!0},Re=async()=>{var Ue;const{params:Me,error:ze}=le(Be);if(ze.length>0)return;const Ge=Pe();if(!Ge.length||!vue.unref(ye).length){oe.$message({type:"warning",message:"计算维度或汇总方式不能为空",plain:!0});return}Me.code||(Me.code=nanoid()),Me.groupArgsJson=JSON.stringify(Ge),Me.aggArgsJson=JSON.stringify([...vue.unref(ye),...vue.unref(xe)]),Me.modelId=(Ue=vue.unref(ce))==null?void 0:Ue.id,Me.projectId=oe.$baseGetCurrentProjectId(),Me.pageSize=vue.unref(ge),Me.formConfJson=JSON.stringify(vue.unref(ae)),Me.sortArgsJson=JSON.stringify(vue.unref(Te)),ee.indicatorsId&&(Me.id=ee.indicatorsId),Ae.value=!1;const We=await oe.$baseHttp.post(`/api/ace-data-center/model-indicators/${ee.indicatorsId?"update":"save"}`,Me,{header:{loading:!0}});We&&(ee.indicatorsId||ne("update:indicatorsId",We.data),ne("update:resultTitle",Me.name),oe.$message({type:"success",message:"操作成功",plain:!0}),ie(Me,Be),de())},Fe=()=>{ne("update:modelValue","chart")},je=()=>{oe.$baseExportExcel({title:ee.title,url:"/api/ace-data-center/model-indicators/debug",header:vue.unref(Ne),customParams:vue.unref(Ve)})};return U({init:we,dynamicSearchForm:ae,handlePopupForm:Le,handleSubmit:Re}),(Me,ze)=>{var Xe,Ke;const Ge=vue.resolveComponent("aceDynamicSearch"),We=vue.resolveComponent("AppTable"),Ue=vue.resolveComponent("AppEmpty"),qe=vue.resolveComponent("aceDynamicList"),Ye=vue.resolveComponent("AppForm"),Je=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$12,[vue.createElementVNode("div",_hoisted_2$T,[vue.createElementVNode("div",_hoisted_3$L,[vue.unref(ye).length?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(Ge,{form:vue.unref(ae),onSuccess:ze[0]||(ze[0]=He=>Ie())},null,8,["form"]),vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(Se),animated:""},{default:vue.withCtx(()=>[vue.unref(Ne).length?(vue.openBlock(),vue.createBlock(We,{key:0,tableData:vue.unref(Ne),list:vue.unref(ke),loading:!1,headerCellClassName:De,onSortChange:Oe},null,8,["tableData","list"])):(vue.openBlock(),vue.createBlock(Ue,{key:1,description:"暂无数据",class:"mt-4"}))]),_:1},8,["loading"])],64)):(vue.openBlock(),vue.createBlock(qe,{key:1,id:(Xe=vue.unref(ce))==null?void 0:Xe.id,title:(Ke=vue.unref(ce))==null?void 0:Ke.modelName,showPageIndex:!0},null,8,["id","title"]))]),vue.unref(ye).length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$J,[vue.createElementVNode("div",_hoisted_5$A,[vue.createVNode(vue.unref(elementPlus.ElTooltip),{effect:"dark",content:"保存汇总配置后可设置",placement:"top",visible:vue.unref(he)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{disabled:Me.indicatorsId=="",type:"warning",style:{padding:"0 10px"},onMouseenter:ze[1]||(ze[1]=He=>{Me.indicatorsId||(he.value=!0)}),onMouseleave:ze[2]||(ze[2]=He=>he.value=!1),onClick:Fe},{default:vue.withCtx(()=>[vue.createTextVNode(" 图表配置 "),_hoisted_6$v]),_:1},8,["disabled"])]),_:1},8,["visible"])]),vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary"},{default:vue.withCtx(()=>[_hoisted_7$r]),_:1}),vue.createVNode(_sfc_main$1g)]),_:1}),vue.createElementVNode("div",_hoisted_8$n,[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary"},{default:vue.withCtx(()=>[_hoisted_9$k,vue.createTextVNode(" 显示前 "),vue.createElementVNode("div",_hoisted_10$h,[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{size:"small",style:{width:"100px"},modelValue:vue.unref(ge),"onUpdate:modelValue":ze[3]||(ze[3]=He=>vue.isRef(ge)?ge.value=He:null),onChange:ze[4]||(ze[4]=He=>Ie()),min:1,max:9999999},null,8,["modelValue"])]),vue.createTextVNode(" 条聚合数据 ")]),_:1}),vue.unref(Ne).length?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:"ml-2 cursor-pointer ri-download-2-line text-color-warning",onClick:je})):vue.createCommentVNode("",!0)])])):vue.createCommentVNode("",!0)]),vue.createElementVNode("aside",_hoisted_11$d,[vue.createElementVNode("div",_hoisted_12$b,[vue.createVNode(modelTableSunmary,{list:vue.unref(be),modelValue:vue.unref(ye),"onUpdate:modelValue":ze[5]||(ze[5]=He=>vue.isRef(ye)?ye.value=He:null),iconMap:fe},null,8,["list","modelValue"]),vue.createVNode(ModelTableOtherSummary,{iconMap:fe,list:vue.unref(me),modelValue:vue.unref(xe),"onUpdate:modelValue":ze[6]||(ze[6]=He=>vue.isRef(xe)?xe.value=He:null)},null,8,["list","modelValue"]),vue.withDirectives(vue.createElementVNode("div",null,[vue.createVNode(modelTableDimension,{loading:vue.unref(pe),list:vue.unref(me),iconMap:fe,calendarType:ve,modelValue:vue.unref(_e),"onUpdate:modelValue":ze[7]||(ze[7]=He=>vue.isRef(_e)?_e.value=He:null)},null,8,["loading","list","modelValue"])],512),[[vue.vShow,vue.unref(ye).length]])]),vue.unref(ye).length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_13$9,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:Le},{default:vue.withCtx(()=>[_hoisted_14$8,vue.createTextVNode(" 完 成 ")]),_:1})])):vue.createCommentVNode("",!0),vue.createVNode(Je,{modelValue:vue.unref(Ae),"onUpdate:modelValue":ze[9]||(ze[9]=He=>vue.isRef(Ae)?Ae.value=He:null),title:"保存指标",size:800},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:Re},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:ze[8]||(ze[8]=He=>Ae.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(Ye,{form:vue.unref(Be),col:1},null,8,["form"])]),_:1},8,["modelValue"])])])}}}),tableWidget_vue_vue_type_style_index_0_scoped_3d6e6e94_lang="",tableWidget=_export_sfc$2(_sfc_main$1e,[["__scopeId","data-v-3d6e6e94"]]),_withScopeId$n=te=>(vue.pushScopeId("data-v-6fadb38d"),te=te(),vue.popScopeId(),te),_hoisted_1$11={class:"flex flex-wrap chart-container"},_hoisted_2$S=["onClick"],_hoisted_3$K=["onClick"],_hoisted_4$I=_withScopeId$n(()=>vue.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),_hoisted_5$z=[_hoisted_4$I],_hoisted_6$u={key:0,class:"success setting"},_hoisted_7$q=_withScopeId$n(()=>vue.createElementVNode("i",{class:"ml-1 ri-check-line"},null,-1)),_hoisted_8$m=[_hoisted_7$q],_hoisted_9$j={class:"label"},_sfc_main$1d=vue.defineComponent({__name:"model-chart-menu",props:{modelValue:{default:""}},emits:["click-chart-setting","update:modelValue"],setup(te,{emit:U}){vue.getCurrentInstance();const G=[{...echartsTypeList[3],key:"3"},...Object.keys(echartsTypeList).filter(ie=>ie!="3").map(ie=>({...echartsTypeList[ie],key:ie}))],ee=vue.inject("chartList"),ne=U,re=ie=>{ne("update:modelValue",String(ie))},oe=ie=>{ne("update:modelValue",String(ie)),ne("click-chart-setting")};return(ie,le)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$11,[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(G,ae=>{var se;return vue.createElementVNode("div",{class:"items",key:ae.key,onClick:ue=>re(ae.key)},[vue.createElementVNode("div",{class:vue.normalizeClass(["icon",{active:ie.modelValue==ae.key}])},[vue.createElementVNode("i",{class:vue.normalizeClass(ae.icon)},null,2),vue.createElementVNode("div",{class:"setting",onClick:vue.withModifiers(ue=>oe(ae.key),["stop"])},_hoisted_5$z,8,_hoisted_3$K),(se=vue.unref(ee))!=null&&se.some(ue=>ue.type==ae.key)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$u,_hoisted_8$m)):vue.createCommentVNode("",!0)],2),vue.createElementVNode("div",_hoisted_9$j,vue.toDisplayString(ae.name),1)],8,_hoisted_2$S)}),64))]))}}),modelChartMenu_vue_vue_type_style_index_0_scoped_6fadb38d_lang="",modelChartMenu=_export_sfc$2(_sfc_main$1d,[["__scopeId","data-v-6fadb38d"]]),_sfc_main$1c=vue.defineComponent({__name:"model-chart-setting",props:{option:{default:{}},type:{default:""}},emits:["close"],setup(te,{expose:U,emit:G}){const ee=te,ne=G,{proxy:re}=vue.getCurrentInstance(),oe=vue.ref(""),ie=vue.inject("indicatorsId"),le=vue.inject("getListModelIndicators"),ae=vue.inject("getChartWidgetList"),se=vue.computed(()=>({3:_sfc_main$1G,2:_sfc_main$1E,1:_sfc_main$1F,4:_sfc_main$1B,5:_sfc_main$1D,6:_sfc_main$1C,7:_sfc_main$1A,8:_sfc_main$1z,9:_sfc_main$1y})[ee.type]??null),ue=vue.ref(!1),ce=()=>{oe.value="data",ue.value=!0},de=async()=>{ee.option.tooltip&&(delete ee.option.tooltip.valueFormatter,delete ee.option.tooltip.formatter),ee.type=="9"&&delete ee.option.series[2].label.formatter,await re.$baseHttp.post("/api/ace-data-center/model-indicators-echarts/save",{modelIndicatorsId:vue.unref(ie),echartsType:ee.type,echartsConfig:chartJsonToStringFormat({...ee.option,customSeriesData:window.customSeriesData,dataset:{...ee.option.dataset,source:[]}})},{headers:{loading:!0}})&&(re.$message({type:"success",message:"操作成功",plain:!0}),await ae(),await le(),ue.value=!1,ne("close"))},fe=()=>{ue.value=!1};return U({init:ce,handleSubmit:de}),(ve,he)=>{const pe=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(pe,{modelValue:vue.unref(ue),"onUpdate:modelValue":he[3]||(he[3]=ge=>vue.isRef(ue)?ue.value=ge:null),withHeader:!1,modal:!1,direction:"ltr",size:"300px",modalClass:"ace-modal-drawer"},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:he[1]||(he[1]=ge=>de())},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:he[2]||(he[2]=ge=>fe())},{default:vue.withCtx(()=>[vue.createTextVNode("关闭")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCollapse),{accordion:"",modelValue:vue.unref(oe),"onUpdate:modelValue":he[0]||(he[0]=ge=>vue.isRef(oe)?oe.value=ge:null)},{default:vue.withCtx(()=>[vue.unref(se)?(vue.openBlock(),vue.createBlock(vue.unref(se),{key:0,option:ee.option,type:ve.type},null,8,["option","type"])):vue.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:1},8,["modelValue"])}}}),modelChartSetting_vue_vue_type_style_index_0_scoped_b48a9fb7_lang="",modelChartSetting=_export_sfc$2(_sfc_main$1c,[["__scopeId","data-v-b48a9fb7"]]),_withScopeId$m=te=>(vue.pushScopeId("data-v-7094027b"),te=te(),vue.popScopeId(),te),_hoisted_1$10={class:"flex w-full h-full"},_hoisted_2$R={class:"flex-1"},_hoisted_3$J={key:0,class:"flex items-center justify-center pannel h-14"},_hoisted_4$H=_withScopeId$m(()=>vue.createElementVNode("i",{class:"mr-1 ri-save-line"},null,-1)),_hoisted_5$y={class:"flex flex-col flex-1 overflow-hidden"},_hoisted_6$t={class:"relative flex flex-col flex-1 pb-3 pl-3"},_hoisted_7$p={class:"mb-2.5"},_hoisted_8$l={class:"relative flex items-center justify-center pannel h-14"},_hoisted_9$i={key:0,class:"absolute left-5 top-3"},_hoisted_10$g=_withScopeId$m(()=>vue.createElementVNode("i",{class:"ml-1 ri-settings-2-line"},null,-1)),_hoisted_11$c=_withScopeId$m(()=>vue.createElementVNode("i",{class:"ri-table-line"},null,-1)),_sfc_main$1b=vue.defineComponent({__name:"chart-widget",props:{modelValue:{default:""},dynamicSearchForm:{default:()=>[]}},emits:["update:modelValue"],setup(te,{expose:U,emit:G}){const ee=G,{proxy:ne}=vue.getCurrentInstance(),re=vue.inject("chartList"),{option:oe,formatChart:ie}=useCustomChart(),le=vue.ref(""),ae=vue.ref(null),se=vue.ref(!1),ue=()=>{if(vue.unref(le)==""){ne.$message({type:"warning",message:"请选择图表",plain:!0});return}const he=setInterval(()=>{vue.unref(se)&&(vue.unref(ae).init(),clearInterval(he))},20)};vue.watch(le,async he=>{var ge;if(oe.value={},se.value=!1,he==""){se.value=!0;return}const pe=(ge=vue.unref(re))==null?void 0:ge.find(me=>me.type==he);await ie((pe==null?void 0:pe.code)??"",he),se.value=!0});const ce=vue.ref(!1);ne.$baseEventBus.on("model-chart-click",async he=>{ce.value=!0,ee("update:modelValue","chart"),le.value=he.type,setTimeout(()=>{ce.value=!1},100)});const de=()=>{if(vue.unref(re).length>0){vue.unref(ce)||(le.value=vue.unref(re)[0].type),se.value=!0;return}le.value="3"},fe=()=>{const he=le.value;le.value="",setTimeout(()=>{le.value=he},10)},ve=()=>{le.value="",ee("update:modelValue","table")};return U({init:de}),(he,pe)=>{var _e;const ge=vue.resolveComponent("aceDynamicSearch"),me=vue.resolveComponent("aceCustomChart");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$10,[vue.createElementVNode("aside",null,[vue.createElementVNode("div",_hoisted_2$R,[vue.createVNode(modelChartMenu,{modelValue:vue.unref(le),"onUpdate:modelValue":pe[0]||(pe[0]=be=>vue.isRef(le)?le.value=be:null),onClickChartSetting:ue},null,8,["modelValue"])]),(_e=vue.unref(re))!=null&&_e.some(be=>be.type==vue.unref(le))?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$J,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:pe[1]||(pe[1]=be=>vue.unref(ae).handleSubmit())},{default:vue.withCtx(()=>[_hoisted_4$H,vue.createTextVNode(" 保 存 ")]),_:1})]))]),vue.createElementVNode("div",_hoisted_5$y,[vue.createElementVNode("div",_hoisted_6$t,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:!vue.unref(se),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_7$p,[vue.createVNode(ge,{form:he.dynamicSearchForm,search:!1,disabled:""},null,8,["form"])]),vue.createVNode(me,{option:vue.unref(oe),chartType:vue.unref(le)},null,8,["option","chartType"])]),_:1},8,["loading"])]),vue.createElementVNode("div",_hoisted_8$l,[vue.unref(oe)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$i,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",style:{padding:"0 10px"}},{default:vue.withCtx(()=>[vue.createTextVNode("可视化")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"",style:{padding:"0 10px"},onClick:ue},{default:vue.withCtx(()=>[_hoisted_10$g]),_:1})]),_:1})])):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"",onClick:ve},{default:vue.withCtx(()=>[_hoisted_11$c]),_:1}),vue.createVNode(_sfc_main$1g,{type:vue.unref(le)},null,8,["type"])]),_:1})])]),vue.unref(le)?(vue.openBlock(),vue.createBlock(modelChartSetting,{key:0,ref_key:"modelChartSettingRef",ref:ae,option:vue.unref(oe),type:vue.unref(le),onClose:fe},null,8,["option","type"])):vue.createCommentVNode("",!0)])}}}),chartWidget_vue_vue_type_style_index_0_scoped_7094027b_lang="",chartWidget=_export_sfc$2(_sfc_main$1b,[["__scopeId","data-v-7094027b"]]),_withScopeId$l=te=>(vue.pushScopeId("data-v-e26b4ea0"),te=te(),vue.popScopeId(),te),_hoisted_1$$={class:"design"},_hoisted_2$Q={class:"design-header"},_hoisted_3$I={class:"flex-1"},_hoisted_4$G={class:"mt-2 text-xs text-color-info"},_hoisted_5$x=["innerHTML"],_hoisted_6$s={class:"flex"},_hoisted_7$o={class:"mr-2"},_hoisted_8$k=_withScopeId$l(()=>vue.createElementVNode("i",{class:"mr-1 ri-settings-2-line"},null,-1)),_hoisted_9$h=_withScopeId$l(()=>vue.createElementVNode("i",{class:"mr-1 ri-close-line"},null,-1)),_hoisted_10$f={class:"flex flex-1 p-3 overflow-hidden design-container"},_sfc_main$1a=vue.defineComponent({__name:"index",emits:["close"],setup(te,{expose:U,emit:G}){screenDesignMainStore();const{proxy:ee}=vue.getCurrentInstance(),ne=vue.ref(!1),re=vue.ref(!1),oe=vue.ref(),ie=vue.ref(null),le=vue.ref(null),ae=vue.ref(null),se=vue.ref([]),ue=vue.ref("0个指标"),ce=vue.ref(""),de=vue.ref(""),fe=vue.ref([]),ve=G;vue.watch(ne,xe=>{xe||ee.$baseEventBus.off("model-chart-click")}),vue.provide("indicatorsId",de);const he=vue.inject("modelEle"),pe=vue.ref(""),ge=async xe=>{var $e;let Ce={};oe.value="table",de.value=xe,fe.value=[],se.value=[],vue.unref(de)&&(Ce=await me(),_e()),ne.value=!0,pe.value=($e=Ce==null?void 0:Ce.data)==null?void 0:$e.name,vue.nextTick(()=>{vue.unref(ie).init((Ce==null?void 0:Ce.data)??{})})};vue.watch(oe,xe=>{xe=="chart"&&vue.unref(le).init()});const me=async()=>await ee.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${vue.unref(de)}`,{headers:{loading:!0}}),_e=async()=>{const xe=await ee.$baseHttp.post(`/api/ace-data-center/model-indicators-echarts/getEchartsTypes/${vue.unref(de)}`);fe.value=xe.data};vue.provide("getChartWidgetList",_e),vue.provide("chartList",fe);const be=()=>{ee.$baseConfirm({content:"是否确定关闭",callConfirm:async()=>{ne.value=!1,vue.unref(de)&&ve("close")}})},ye=xe=>{se.value=xe,vue.unref(ie).dynamicSearchForm=xe,vue.unref(ie).handleSubmit()};return U({init:ge}),(xe,Ce)=>{const $e=vue.resolveComponent("aceHeader"),we=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(we,{modelValue:vue.unref(ne),"onUpdate:modelValue":Ce[11]||(Ce[11]=Ee=>vue.isRef(ne)?ne.value=Ee:null),withHeader:!1,size:"100%",modalClass:"ace-modal-drawer"},{default:vue.withCtx(()=>{var Ee,Ve;return[vue.createElementVNode("div",_hoisted_1$$,[vue.createElementVNode("div",_hoisted_2$Q,[vue.createElementVNode("div",_hoisted_3$I,[vue.createVNode($e,{title:vue.unref(oe)=="table"?vue.unref(ue):`${vue.unref(pe)}【${vue.unref(ue)}】`},vue.createSlots({_:2},[vue.unref(fe).length?{name:"left",fn:vue.withCtx(()=>[vue.createElementVNode("i",{onClick:Ce[0]||(Ce[0]=Se=>vue.unref(ie).handlePopupForm()),class:"ml-2 text-base cursor-pointer ri-edit-box-line text-color-primary"})]),key:"0"}:void 0]),1032,["title"]),vue.createElementVNode("div",_hoisted_4$G,[vue.createTextVNode(" 模型数据 / "+vue.toDisplayString((Ee=vue.unref(he))==null?void 0:Ee.modelName)+" ["+vue.toDisplayString((Ve=vue.unref(he))==null?void 0:Ve.modelCode)+"] ",1),vue.createElementVNode("span",{class:"ml-2",innerHTML:vue.unref(ce)},null,8,_hoisted_5$x)])]),vue.createElementVNode("div",_hoisted_6$s,[vue.withDirectives(vue.createElementVNode("div",_hoisted_7$o,[vue.createVNode(vue.unref(elementPlus.ElPopover),{placement:"bottom",visible:vue.unref(re),"onUpdate:visible":Ce[2]||(Ce[2]=Se=>vue.isRef(re)?re.value=Se:null),trigger:"click",width:"900px",teleported:!1},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"warning"},{default:vue.withCtx(()=>[_hoisted_8$k,vue.createTextVNode(" 筛选配置 ")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(aceIndicatorCustomSearch,{ref_key:"customSearchRef",ref:ae,customSearchVisible:vue.unref(re),"onUpdate:customSearchVisible":Ce[1]||(Ce[1]=Se=>vue.isRef(re)?re.value=Se:null),onDynamicSearchFormUpdate:ye,dynamicSearchForm:vue.unref(se)},null,8,["customSearchVisible","dynamicSearchForm"])]),_:1},8,["visible"])],512),[[vue.vShow,vue.unref(oe)=="table"&&vue.unref(ue)!="0个指标:"]]),vue.createVNode(vue.unref(elementPlus.ElButton),{onClick:be},{default:vue.withCtx(()=>[_hoisted_9$h,vue.createTextVNode(" 关闭 ")]),_:1})])]),vue.createElementVNode("div",_hoisted_10$f,[vue.withDirectives(vue.createVNode(tableWidget,{ref_key:"tableWidgetRef",ref:ie,modelValue:vue.unref(oe),"onUpdate:modelValue":Ce[3]||(Ce[3]=Se=>vue.isRef(oe)?oe.value=Se:null),indicatorsId:vue.unref(de),"onUpdate:indicatorsId":Ce[4]||(Ce[4]=Se=>vue.isRef(de)?de.value=Se:null),title:vue.unref(ue),"onUpdate:title":Ce[5]||(Ce[5]=Se=>vue.isRef(ue)?ue.value=Se:null),resultTitle:vue.unref(pe),"onUpdate:resultTitle":Ce[6]||(Ce[6]=Se=>vue.isRef(pe)?pe.value=Se:null),sortHtml:vue.unref(ce),"onUpdate:sortHtml":Ce[7]||(Ce[7]=Se=>vue.isRef(ce)?ce.value=Se:null),dynamicSearchForm:vue.unref(se),"onUpdate:dynamicSearchForm":Ce[8]||(Ce[8]=Se=>vue.isRef(se)?se.value=Se:null)},null,8,["modelValue","indicatorsId","title","resultTitle","sortHtml","dynamicSearchForm"]),[[vue.vShow,vue.unref(oe)=="table"]]),vue.withDirectives(vue.createVNode(chartWidget,{ref_key:"chartWidgetRef",ref:le,dynamicSearchForm:vue.unref(se),"onUpdate:dynamicSearchForm":Ce[9]||(Ce[9]=Se=>vue.isRef(se)?se.value=Se:null),modelValue:vue.unref(oe),"onUpdate:modelValue":Ce[10]||(Ce[10]=Se=>vue.isRef(oe)?oe.value=Se:null)},null,8,["dynamicSearchForm","modelValue"]),[[vue.vShow,vue.unref(oe)=="chart"]])])])]}),_:1},8,["modelValue"])}}}),index_vue_vue_type_style_index_0_scoped_e26b4ea0_lang="",aceIndicatorDesign=_export_sfc$2(_sfc_main$1a,[["__scopeId","data-v-e26b4ea0"]]),_hoisted_1$_={class:"flex items-center"},_hoisted_2$P=vue.createElementVNode("i",{class:"ri-search-line"},null,-1),_hoisted_3$H={class:"mt-3"},_hoisted_4$F={class:"flex items-center w-full overflow-hidden"},_hoisted_5$w={class:"overflow-hidden text-ellipsis whitespace-nowrap"},_hoisted_6$r={key:0,class:"mr-1 text-base ri-checkbox-circle-fill text-color-success"},_hoisted_7$n={key:1,class:"mr-1 text-base ri-progress-1-fill text-color-warning"},_hoisted_8$j={key:0,class:"flex items-center justify-end flex-1"},_sfc_main$19=vue.defineComponent({__name:"menu",props:{tempId:{default:""}},emits:["node-click"],setup(te,{expose:U,emit:G}){const ee=te,{proxy:ne}=vue.getCurrentInstance(),re=vue.ref(""),oe=vue.ref(null),ie=vue.ref(null),le=G;vue.watch(re,de=>{vue.unref(ie).filter(de)});const ae=(de,fe)=>de?fe.name.includes(de):!0,se=vue.ref(!1),ue=()=>{oe.value=[],se.value=!0,fetch$1(ne).loadIndicatorsMenu().then(de=>{oe.value=Object.keys(de.data).map(ve=>({name:ve,id:ve,children:de.data[ve]}));let fe;se.value=!1,vue.unref(oe).length&&vue.nextTick(()=>{var ve;ee.tempId?fe=vue.unref(ie).getNode(ee.tempId):fe=vue.unref(ie).getNode((ve=vue.unref(oe)[0].children[0])==null?void 0:ve.id),fe&&(ce(fe==null?void 0:fe.data),vue.unref(ie).setCurrentKey(fe==null?void 0:fe.data.id))})})};ue();const ce=de=>{Array.isArray(de.children)||le("node-click",de)};return U({init:ue}),(de,fe)=>{const ve=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$_,[vue.createVNode(vue.unref(elementPlus.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:vue.unref(re),"onUpdate:modelValue":fe[0]||(fe[0]=he=>vue.isRef(re)?re.value=he:null)},{prefix:vue.withCtx(()=>[_hoisted_2$P]),_:1},8,["modelValue"]),vue.renderSlot(de.$slots,"search")]),vue.createElementVNode("div",_hoisted_3$H,[vue.unref(se)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{key:0,animated:"",count:2})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTree),{key:1,class:"animated fadeIn",ref_key:"treeRef",ref:ie,data:vue.unref(oe),"node-key":"id","default-expand-all":"",indent:0,"highlight-current":"","filter-node-method":ae,onNodeClick:ce},{default:vue.withCtx(({node:he,data:pe})=>[vue.createElementVNode("div",_hoisted_4$F,[vue.createElementVNode("div",_hoisted_5$w,[Array.isArray(pe.children)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[pe.normal?(vue.openBlock(),vue.createElementBlock("i",_hoisted_6$r)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_7$n))],64)),vue.createElementVNode("span",{class:vue.normalizeClass(["flex-1 overflow-hidden whitespace-nowrap text-ellipsis",{"font-bold":he.level==1}])},vue.toDisplayString(pe.name),3)]),Array.isArray(pe.children)?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$j,[vue.renderSlot(de.$slots,"menu-item",{data:pe})]))])]),empty:vue.withCtx(()=>[vue.createVNode(ve,{description:"暂无数据"})]),_:3},8,["data"]))])],64)}}}),_hoisted_1$Z={class:"rule-list"},_hoisted_2$O={key:0,class:"flex items-center"},_hoisted_3$G=vue.createElementVNode("i",{class:"ri-error-warning-fill text-2xl text-color-warning mr-2"},null,-1),_hoisted_4$E={key:1,class:"flex items-center"},_hoisted_5$v=vue.createElementVNode("i",{class:"ri-checkbox-circle-fill text-2xl text-color-success mr-2"},null,-1),_sfc_main$18=vue.defineComponent({__name:"rule",props:{ruleList:{default:()=>[]}},setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref(!1),ee=vue.ref(""),ne=vue.ref([]),re=le=>{ee.value=`/api/ace-data-center/rule/ruleDataView?ruleId=${le}`,G.value=!0},oe=le=>{vue.unref(ne).length==0&&Object.keys(le.data[0]).forEach(ae=>{if(ae==="pageIndex"){ne.value.unshift({label:"序号",prop:"pageIndex",width:"80px"});return}ne.value.push({label:ae,prop:ae})})},ie=()=>{U.$baseExportExcel({title:"数据列表",url:vue.unref(ee),method:"get",header:vue.unref(ne)})};return(le,ae)=>{const se=vue.resolveComponent("aceHeader"),ue=vue.resolveComponent("AppList"),ce=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createElementVNode("div",_hoisted_1$Z,[le.ruleList.length>0?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(se,{title:"智能诊断",class:"mb-5"}),vue.createVNode(vue.unref(elementPlus.ElAlert),{type:"warning",closable:!1},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(le.ruleList,de=>(vue.openBlock(),vue.createElementBlock("div",{key:de.id,class:"mt-0 text-sm"},[+de.rows>0?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$O,[_hoisted_3$G,vue.createTextVNode(" "+vue.toDisplayString(de.ruleName)+" 【异常数据"+vue.toDisplayString(de.rows>99?"99+":de.rows)+"】 ",1),vue.createVNode(vue.unref(elementPlus.ElLink),{class:"ml-2",type:"primary",onClick:fe=>re(de.id)},{default:vue.withCtx(()=>[vue.createTextVNode("查看明细")]),_:2},1032,["onClick"])])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$E,[_hoisted_5$v,vue.createTextVNode(" "+vue.toDisplayString(de.ruleName)+" 【未检测到异常数据】 ",1)]))]))),128))]),_:1})],64)):vue.createCommentVNode("",!0)]),vue.createVNode(ce,{modelValue:vue.unref(G),"onUpdate:modelValue":ae[1]||(ae[1]=de=>vue.isRef(G)?G.value=de:null),title:"数据列表"},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-3",onClick:ie},{default:vue.withCtx(()=>[vue.createTextVNode("导 出")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:ae[0]||(ae[0]=de=>G.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("关 闭")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(ue,{tableData:vue.unref(ne),url:vue.unref(ee),onSuccess:oe},null,8,["tableData","url"])]),_:1},8,["modelValue"])],64)}}}),_hoisted_1$Y={key:1,class:"animated fadeIn"},_hoisted_2$N={class:"flex items-center mt-5 mb-5 ml-2 moudle-1"},_hoisted_3$F={key:0,class:"mr-1 text-xl ri-error-warning-fill text-color-warning"},_hoisted_4$D={key:1,class:"mr-1 text-xl ri-checkbox-circle-fill text-color-success"},_hoisted_5$u={class:"ml-1"},_hoisted_6$q={class:"flex items-center select-type"},_hoisted_7$m=["onClick"],_hoisted_8$i={class:"mt-5 mb-5"},_hoisted_9$g={class:"mt-4"},_sfc_main$17=vue.defineComponent({__name:"analysis",props:{indicatorsId:{default:""}},emits:["rule-success"],setup(te,{emit:U}){const G=te;vue.watch(()=>G.indicatorsId,()=>ue());const ee=U,{proxy:ne}=vue.getCurrentInstance(),{dynamicSearchForm:re,dynamicSearchFormat:oe,dynamicSearchParams:ie}=ne.$aceDynamicSearch(),le=vue.ref(!0),ae=vue.ref([]),se=vue.ref(null),ue=async()=>{var _e,be,ye;le.value=!0,re.value=[],ve.value={type:"",value:""},ce.value=[],de.value="",ge();const me=await fetch$1(ne).detailAndTask(G.indicatorsId);se.value=me.data,(be=(_e=me.data)==null?void 0:_e.echartsDataVO)!=null&&be.config&&fe(),(ye=me==null?void 0:me.data)!=null&&ye.formConfJson&&(re.value=oe(JSON.parse(me==null?void 0:me.data.formConfJson))),le.value=!1},ce=vue.ref([]),de=vue.ref(""),fe=async()=>{var _e;ce.value=[],de.value="";const me=await fetch$1(ne).getEchartDetail({indicatorsId:G.indicatorsId});me&&(Object.keys(((_e=me.data)==null?void 0:_e.clientEchartsType)??{}).forEach(be=>{var ye;Object.values((ye=me.data)==null?void 0:ye.clientEchartsType[be]).forEach(xe=>{var Ce,$e;ce.value.push({client:be,label:(Ce=echartsTypeList[xe])==null?void 0:Ce.name,icon:($e=echartsTypeList[xe])==null?void 0:$e.icon,value:`${be}_${xe}`})})}),vue.unref(ce).length>0&&(de.value=vue.unref(ce)[0].value,pe(vue.unref(de))))},ve=vue.ref({type:"",value:""}),he=vue.ref(!1),pe=async(me,_e=!1)=>{var Ce;de.value=me,_e&&(he.value=!0);const be=ie(vue.unref(re)),ye=me.split("_"),xe=await fetch$1(ne).pullEchartsDataVO({indicatorsId:G.indicatorsId,loadType:((Ce=vue.unref(se))==null?void 0:Ce.loadType)??3,params:be,targetClient:ye[0],echartsType:ye[1]});if(xe){he.value=!1,vue.unref(ve).type=ye[1];try{vue.unref(ve).value=chartJsonFormat(xe.data.config)}catch{vue.unref(ve).value=xe.data.config}}},ge=async()=>{var _e;ae.value=[];const me=await fetch$1(ne).getRule({current:1,size:100,businessType:"indicators",businessId:G.indicatorsId});ae.value=((_e=me.data)==null?void 0:_e.records)??[],ee("rule-success",ae.value)};return ue(),(me,_e)=>{const be=vue.resolveComponent("AppResourceVisitor"),ye=vue.resolveComponent("aceHeader"),xe=vue.resolveComponent("aceDynamicSearch"),Ce=vue.resolveComponent("aceChart");return vue.unref(le)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{key:0,animated:""})):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Y,[vue.createVNode(ye,{title:"指标计算"},{default:vue.withCtx(()=>[vue.createVNode(be,{businessType:"INDICATORS",businessld:G.indicatorsId},null,8,["businessld"])]),_:1}),vue.createElementVNode("div",_hoisted_2$N,[vue.unref(ae).some($e=>$e.rows>0)?(vue.openBlock(),vue.createElementBlock("i",_hoisted_3$F)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_4$D)),vue.createElementVNode("span",_hoisted_5$u,vue.toDisplayString(vue.unref(se).remark),1)]),vue.createVNode(ye,{title:"指标数据"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_6$q,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ce),$e=>(vue.openBlock(),vue.createElementBlock("span",{onClick:we=>pe($e.value,!0),class:vue.normalizeClass(["flex items-center cursor-pointer",[$e.value==vue.unref(de)?"text-color-primary":"text-gray-600"]]),key:$e.value},[vue.createElementVNode("i",{class:vue.normalizeClass([$e.icon,"mr-1"])},null,2),vue.createTextVNode(" "+vue.toDisplayString($e.label),1)],10,_hoisted_7$m))),128))])]),_:1}),vue.createElementVNode("div",_hoisted_8$i,[vue.unref(re).length>0?(vue.openBlock(),vue.createBlock(xe,{key:0,form:vue.unref(re),onSuccess:_e[0]||(_e[0]=$e=>pe(vue.unref(de),!0)),class:"mb-0"},null,8,["form"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_9$g,[vue.createVNode(Ce,{type:vue.unref(ve).type,options:vue.unref(ve).value,loading:vue.unref(he)},null,8,["type","options","loading"])])]),vue.createVNode(_sfc_main$18,{ruleList:vue.unref(ae)},null,8,["ruleList"])]))}}}),analysis_vue_vue_type_style_index_0_scoped_c9f7a244_lang="",aceIndicatorSystemPreview=_export_sfc$2(_sfc_main$17,[["__scopeId","data-v-c9f7a244"]]),_hoisted_1$X={class:"h-full"},_sfc_main$16=vue.defineComponent({__name:"relation",setup(te){const{proxy:U}=vue.getCurrentInstance(),G=vue.ref(null),ee=vue.ref(!0),ne=["#00ADD0","#FFA12F","#B62AFF","#604BFF","#6E35FF","#002AFF","#20C0F4","#95F300","#04FDB8","#AF5AFF"],re=(oe,ie,le="#00f6ff")=>oe.map((ae,se)=>{switch(ae&&ae.title&&(ae.name=ae.title),ie==1&&(le=ne.find((ue,ce)=>ce==se%10)),(ie===0||ie===1)&&(ae.label={position:"inside"}),ie){case 0:ae.symbolSize=70;break;case 1:ae.symbolSize=50;break;default:ae.symbolSize=10;break}return ae.lineStyle={color:le},ae.children?(ae.itemStyle={borderColor:le,color:le},ae.children=re(ae.children,ie+1,le)):ae.itemStyle={color:"transparent",borderColor:le},ae});return fetch$1(U).indicatorsRelationTree().then(oe=>{if(ee.value=!1,!oe.data.length){G.value={};return}G.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:re([oe==null?void 0:oe.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}}]}}),(oe,ie)=>{const le=vue.resolveComponent("v-chart");return vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",_hoisted_1$X,[vue.createVNode(le,{option:vue.unref(G),autoresize:""},null,8,["option"])])),[[vue.unref(elementPlus.vLoading),vue.unref(ee)]])}}}),_hoisted_1$W={key:0,class:"flex items-center gap-x-2.5"},_hoisted_2$M=vue.createElementVNode("div",{class:"font-bold"},"数据分析",-1),_sfc_main$15=vue.defineComponent({__name:"yoy",props:{search:{default:()=>[]},originSearch:{default:()=>[]},chartType:{default:""},option:{default:null}},setup(te,{expose:U}){const G=te,ee=screenDesignMainStore(),{proxy:ne}=vue.getCurrentInstance(),{dynamicSearchForm:re,dynamicSearchFormat:oe,dynamicSearchParams:ie}=ne.$aceDynamicSearch(),le=["yySingle","yymmSingle","yymmddSingle"],{seriesItem:ae}=useLineCommon(),se=vue.computed(()=>G.search.find(ve=>le.includes(ve.type))),ue=vue.computed(()=>{const ve=vue.unref(se)?Object.values(ie([vue.unref(se)])).every(he=>he==""):!1;return G.search.filter(he=>le.includes(he.type)).length==1&&!ve}),ce=vue.ref("");vue.watch(ce,()=>de());const de=async()=>{var Se;if(!vue.unref(ue)||vue.unref(ce)=="")return;const ve=JSON.parse(JSON.stringify((Se=ee.getChartData)==null?void 0:Se.params)),he=JSON.parse(JSON.stringify(G.search)),pe=he.find(ke=>le.includes(ke.type)),ge=G.originSearch.find(ke=>le.includes(ke.type));console.log(G.originSearch);const _e=JSON.parse((ve==null?void 0:ve.groupArgsJson)??"[]").find(ke=>ke.comment==G.option.dataShow.x);ve.groupArgsJson=JSON.stringify([_e]);const be=_e.dateFormatType;switch(pe.type){case"yymmSingle":pe.value=dayjs(pe.value).subtract(1,vue.unref(ce)=="TB"?"year":"month").format("YYYY-MM");break;case"yymmddSingle":pe.value=dayjs(pe.value).subtract(1,vue.unref(ce)=="TB"?"year":"day").format("YYYY-MM-DD");break;case"yySingle":pe.value=dayjs(pe.value).subtract(1,"year").format("YYYY");break}ve.params=ie(he);const xe=G.option.dataset.dimensions;xe.length>=3&&G.option.dataset.dimensions.pop();const Ce=await ne.$baseHttp.post("/api/ace-data-center/model-indicators/debug",ve),$e=xe[0],we=G.option.dataShow.y.filter(ke=>!G.option.dataShow.hide.includes(ke));vue.unref(pe.type).includes("Range")?(G.option.dataset.dimensions[1]=`${ge!=null&&ge.minValue?`${ge==null?void 0:ge.minValue}~`:""}${(ge==null?void 0:ge.maxValue)??""}${we}`,G.option.dataset.dimensions.push(`${pe.minValue?`${pe.minValue}~`:""}${(pe==null?void 0:pe.maxValue)??""}${we}`)):(G.option.dataset.dimensions[1]=`${ge==null?void 0:ge.value}${we}`,G.option.dataset.dimensions[2]=`${pe.value}${we}`,G.option.dataset.dimensions[3]="增长率");const Ee=G.option.series[0];G.option.series=[],Ce.data.records.forEach(ke=>{fe(ke,$e,be)});const Ve=JSON.parse(JSON.stringify(G.option.dataset.temp_source));Ve.forEach((ke,Ne)=>{fe(ke,$e,be);let Ie=null;ke[G.option.dataset.dimensions[1]]=ke[we],be?(Ie=Ce.data.records.find(De=>De[$e]==ke[$e]),Ie||(["year"].includes(be)&&(Ie=Ce.data.records.find(De=>De[$e].indexOf(pe.value)>=0),ke[$e]=$e),["day","month"].includes(be)&&(Ie=Ce.data.records.find(De=>De[$e].split("-").at(-1)==ke[$e].split("-").at(-1))))):Ie=Ce.data.records.find(De=>De[$e]==ke[$e]),Ie||(Ie={[we]:0}),Ie&&(ke[G.option.dataset.dimensions[2]]=Ie[we]);const Pe=ke[G.option.dataset.dimensions[1]]??0,Te=ke[G.option.dataset.dimensions[2]]??0;ke.增长率=!Pe||!Te?0:((Pe-Te)/Te*100).toFixed(2)}),G.option.dataset.source=Ve,setTimeout(()=>{const{yAxis:ke,xAxis:Ne}=G.option;let Ie="yAxis";!Array.isArray(ke)&&ke.type!="value"&&(Ie="xAxis"),G.option.series=[Ee,{...Ee,itemStyle:{...(Ee==null?void 0:Ee.itemStyle)??{},color:null}},{...ae,name:"增长率",[`${Ie}Index`]:1}],console.log(G.option.series,Ee),G.option[Ie]=[Array.isArray(G.option[Ie])?G.option[Ie][0]:G.option[Ie],{type:"value",name:"增长率",nameGap:20,splitLine:!1,nameLocation:Ie=="xAxis"?"start":"end"}]})},fe=(ve,he,pe)=>{if(!(!pe||(ve[he]??"")=="")&&["day"].includes(pe)){const ge=ve[he].split("-").filter((me,_e)=>_e==0?"":me);ve[he]=ge.join("-")}};return U({init:de,type:ce}),(ve,he)=>vue.unref(ue)&&ve.option?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$W,[_hoisted_2$M,vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(ce),"onUpdate:modelValue":he[0]||(he[0]=pe=>vue.isRef(ce)?ce.value=pe:null)},{default:vue.withCtx(()=>{var pe;return[vue.createVNode(vue.unref(elementPlus.ElRadio),{label:"TB",value:"TB"},{default:vue.withCtx(()=>[vue.createTextVNode("同比")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElRadio),{label:"HB",value:"HB",disabled:!["yymmSingle","yymmddSingle"].includes((pe=vue.unref(se))==null?void 0:pe.type)},{default:vue.withCtx(()=>[vue.createTextVNode(" 环比 ")]),_:1},8,["disabled"])]}),_:1},8,["modelValue"])])])):vue.createCommentVNode("",!0)}}),_withScopeId$k=te=>(vue.pushScopeId("data-v-54d5c5dd"),te=te(),vue.popScopeId(),te),_hoisted_1$V={key:2,class:"flex flex-col chart-preview"},_hoisted_2$L={class:"flex mb-2.5"},_hoisted_3$E={key:0,class:"flex-1"},_hoisted_4$C={class:"flex items-center gap-x-2.5"},_hoisted_5$t=_withScopeId$k(()=>vue.createElementVNode("div",{class:"font-bold"},"计算指标",-1)),_hoisted_6$p={key:0,class:"flex items-center gap-x-2.5"},_hoisted_7$l=_withScopeId$k(()=>vue.createElementVNode("div",{class:"font-bold"},"分组维度",-1)),_hoisted_8$h={class:"flex flex-col flex-1 overflow-hidden"},_hoisted_9$f={class:"relative flex-1"},_hoisted_10$e={class:"flex justify-center change-btns"},_sfc_main$14=vue.defineComponent({__name:"IndicatorsView",props:{dynamicSearchForm:{default:()=>[]},result:{default:()=>{}},chartData:{default:null}},emits:["search-success"],setup(te,{emit:U}){const G=te,ee=U,ne=screenDesignMainStore(),{proxy:re}=vue.getCurrentInstance(),{dynamicSearchForm:oe,dynamicSearchFormat:ie,dynamicSearchParams:le}=re.$aceDynamicSearch(),ae=vue.ref(null),se=vue.ref(""),ue=vue.ref([]),ce=vue.ref(G.dynamicSearchForm),de=vue.ref(!1),{option:fe,formatChart:ve,chartType:he,setChartData:pe,changeChartSeries:ge,chartDataParams:me}=useCustomChart(),_e={day:"按日",week:"按周",month:"按月",quarter:"按季度",year:"按年","":"按时分秒"};vue.onMounted(async()=>{await re.$baseHttp.post(`/api/ace-data-center/model-indicators-echarts/getEchartsTypes/${G.result.id}`).then(we=>{ue.value=we.data,we.data.length&&(se.value=we.data[0].code,he.value=we.data[0].type)})}),vue.watch(se,async()=>{Ce()});const be=we=>{se.value!=we.code&&(fe.value={},he.value=we.type,se.value=we.code,vue.unref(ae)&&(vue.unref(ae).type=""))},ye=vue.ref(""),xe=vue.ref(""),Ce=async()=>{var we,Ee,Ve,Se,ke,Ne,Ie;ce.value=JSON.parse(JSON.stringify(G.dynamicSearchForm)),de.value=!0,fe.value={},ye.value="",xe.value=["2"].includes(vue.unref(he))?"":[],G.chartData&&(me.value=G.chartData),await ve(vue.unref(se)),ye.value=(Ee=(we=vue.unref(fe))==null?void 0:we.dataShow)==null?void 0:Ee.x,Array.isArray((Se=(Ve=vue.unref(fe))==null?void 0:Ve.dataShow)==null?void 0:Se.y)?xe.value=(ke=vue.unref(fe))==null?void 0:ke.dataShow.y.filter(Pe=>{var Te;return!(((Te=vue.unref(fe))==null?void 0:Te.dataShow.hide)??[]).includes(Pe)}):xe.value=(Ie=(Ne=vue.unref(fe))==null?void 0:Ne.dataShow)==null?void 0:Ie.y,isMobile&&["1","3","5"].includes(vue.unref(he))&&!vue.unref(fe).dataZoom&&(fe.value.grid.bottom="10%",fe.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(()=>{de.value=!1},10)};vue.watch([ye,xe],async([we,Ee],[Ve,Se])=>{var ke;vue.unref(de)||(vue.unref(fe).dataShow.x=we,vue.unref(fe).dataShow.y=Ee,Array.isArray(Ee)&&(vue.unref(fe).dataShow.hide=(ke=vue.unref(fe))==null?void 0:ke.dataShow.y.filter(Ne=>ne.getChartData.y.includes(Ne.showLabel))),(we!=Ve||["2","7"].includes(vue.unref(he)))&&(fe.value.dataset.source=await pe(vue.unref(he),we,["2","7"].includes(vue.unref(he))?Ee:null),fe.value.dataset.temp_source=JSON.parse(JSON.stringify(fe.value.dataset.source)),ce.value=JSON.parse(JSON.stringify(G.dynamicSearchForm)),vue.unref(ae)&&(vue.unref(ae).type="")),["xAxis","yAxis"].forEach(Ne=>{Array.isArray(fe.value[Ne])&&(fe.value[Ne]=fe.value[Ne].filter(Ie=>Ie.name!="增长率"))}),ge())},{deep:!0});const $e=()=>{ne.getChartData.params.params=le(G.dynamicSearchForm),Ce(),ee("search-success",ne.getChartData.params.params)};return(we,Ee)=>{var Ne;const Ve=vue.resolveComponent("aceDynamicSearch"),Se=vue.resolveComponent("AppEmpty"),ke=vue.resolveComponent("aceCustomChart");return vue.openBlock(),vue.createElementBlock("div",null,[G.dynamicSearchForm.length?(vue.openBlock(),vue.createBlock(Ve,{key:0,form:G.dynamicSearchForm,onSuccess:$e},null,8,["form"])):vue.createCommentVNode("",!0),vue.unref(ue).length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$V,[vue.createElementVNode("div",_hoisted_2$L,[["9"].includes(vue.unref(he))?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$E,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:!((Ne=vue.unref(fe))!=null&&Ne.dataShow),animated:""},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_4$C,[_hoisted_5$t,vue.createElementVNode("div",null,[["2"].includes(vue.unref(he))?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElRadioGroup),{key:0,modelValue:vue.unref(xe),"onUpdate:modelValue":Ee[0]||(Ee[0]=Ie=>vue.isRef(xe)?xe.value=Ie:null)},{default:vue.withCtx(()=>{var Ie;return[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList((((Ie=vue.unref(ne).getChartData)==null?void 0:Ie.y)??[]).filter(Pe=>Pe.aggType!="other"),Pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElRadio),{key:Pe.showLabel,label:Pe.showLabel,value:Pe.showLabel},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])):["8"].includes(vue.unref(he))?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckboxGroup),{key:1,modelValue:vue.unref(xe),"onUpdate:modelValue":Ee[1]||(Ee[1]=Ie=>vue.isRef(xe)?xe.value=Ie:null)},{default:vue.withCtx(()=>{var Ie,Pe;return[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList([...((Ie=vue.unref(ne).getChartData)==null?void 0:Ie.y)??[],...(((Pe=vue.unref(ne).getChartData)==null?void 0:Pe.x)??[]).map(Te=>({...Te,showLabel:Te.comment}))],Te=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckbox),{key:Te.showLabel,label:Te.showLabel,value:Te.showLabel},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"])):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckboxGroup),{key:2,modelValue:vue.unref(xe),"onUpdate:modelValue":Ee[2]||(Ee[2]=Ie=>vue.isRef(xe)?xe.value=Ie:null)},{default:vue.withCtx(()=>{var Ie;return[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList((((Ie=vue.unref(ne).getChartData)==null?void 0:Ie.y)??[]).filter(Pe=>Pe.aggType!="other"),Pe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElCheckbox),{key:Pe.showLabel,label:Pe.showLabel,value:Pe.showLabel},null,8,["label","value"]))),128))]}),_:1},8,["modelValue"]))])]),["8"].includes(vue.unref(he))?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$p,[_hoisted_7$l,vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElRadioGroup),{modelValue:vue.unref(ye),"onUpdate:modelValue":Ee[3]||(Ee[3]=Ie=>vue.isRef(ye)?ye.value=Ie:null)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ne).getChartData.x,Ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElRadio),{key:Ie.comment,label:Ie.comment,value:Ie.comment},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ie.comment)+" ",1),_e[Ie.dateFormatType]?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(" ("+vue.toDisplayString(_e[Ie.dateFormatType])+") ",1)],64)):vue.createCommentVNode("",!0)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])])])),["3","1"].includes(vue.unref(he))&&vue.unref(fe).dataShow.y.filter(Ie=>!vue.unref(fe).dataShow.hide.includes(Ie)).length==1?(vue.openBlock(),vue.createBlock(_sfc_main$15,{key:1,ref_key:"yoyRef",ref:ae,option:vue.unref(fe),search:vue.unref(ce),originSearch:G.dynamicSearchForm,chartType:vue.unref(he)},null,8,["option","search","originSearch","chartType"])):vue.createCommentVNode("",!0)]),_:1},8,["loading"])]))]),vue.createElementVNode("div",_hoisted_8$h,[vue.createElementVNode("div",_hoisted_9$f,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(de),animated:""},{default:vue.withCtx(()=>[vue.createVNode(ke,{option:vue.unref(fe),chartType:vue.unref(he)},null,8,["option","chartType"])]),_:1},8,["loading"])]),vue.createElementVNode("div",_hoisted_10$e,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ue),Ie=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(se)==Ie.code?"primary":"",key:Ie.type,onClick:Pe=>be(Ie)},{default:vue.withCtx(()=>{var Pe;return[vue.createElementVNode("i",{class:vue.normalizeClass((Pe=vue.unref(echartsTypeList)[Ie.type])==null?void 0:Pe.icon)},null,2)]}),_:2},1032,["type","onClick"]))),128))]),_:1})])])])):(vue.openBlock(),vue.createBlock(Se,{key:1,description:"暂无数据"}))])}}}),IndicatorsView_vue_vue_type_style_index_0_scoped_54d5c5dd_lang="",IndicatorsView=_export_sfc$2(_sfc_main$14,[["__scopeId","data-v-54d5c5dd"]]),_hoisted_1$U=["hidden"],_hoisted_2$K={class:"flex items-center w-full mb-4"},_hoisted_3$D={class:"flex justify-end flex-1"},_hoisted_4$B={class:"mb-4"},_hoisted_5$s={class:"flex mb-5 moudle-1"},_hoisted_6$o={class:"flex-1"},_hoisted_7$k={class:"flex items-center mt-2"},_hoisted_8$g={key:0,class:"mr-1 text-xl ri-error-warning-fill text-color-warning"},_hoisted_9$e={key:1,class:"mr-1 text-xl ri-checkbox-circle-fill text-color-success"},_hoisted_10$d={class:"ml-1"},_hoisted_11$b=vue.createElementVNode("div",{class:"w-10"},null,-1),_hoisted_12$a={class:"flex-1"},_hoisted_13$8={class:"items-center mt-2"},_hoisted_14$7=vue.createElementVNode("i",{class:"mr-1 text-xl ri-database-2-fill text-color-primary"},null,-1),_hoisted_15$4={key:1,class:"w-full"},_sfc_main$13=vue.defineComponent({__name:"modelIndicators",props:{indicatorsId:{default:""},modelIndicatorsRules:{default:()=>[]}},emits:["click-design","rule-success"],setup(te,{expose:U,emit:G}){const ee=te,ne=G;vue.watch(()=>ee.indicatorsId,()=>be());const{proxy:re}=vue.getCurrentInstance(),oe=screenDesignMainStore(),{dynamicSearchForm:ie,dynamicSearchFormat:le,dynamicSearchParams:ae}=re.$aceDynamicSearch(),se=vue.ref(!0),ue=vue.ref("basic"),ce=vue.ref(!1),de=vue.ref(!1),fe=vue.ref([]),ve=vue.ref({}),he=vue.ref(null),pe=vue.ref([]),ge=vue.ref([]),me=vue.ref({}),_e=({column:De})=>{vue.unref(me)[De.property]&&(De.order=vue.unref(me)[De.property])},be=async()=>{se.value=!0,ue.value="basic",oe.setChartData({}),we();const De=await re.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${ee.indicatorsId}`);he.value=De.data,se.value=!1,me.value=JSON.parse(De.data.sortArgsJson??"{}"),ie.value=le(JSON.parse(De.data.formConfJson??"[]")),Ce()},ye=vue.ref(!1),xe=vue.ref(!1),Ce=async(De="")=>{var Le,Re,Fe,je,Me,ze,Ge,We,Ue;De!="sort"&&(ge.value=[],ye.value=!0),xe.value=!0;const Oe=Object.keys(vue.unref(me)).map(qe=>({field:qe,type:vue.unref(me)[qe]=="ascending"?"asc":"desc"})),Be={aggArgsJson:(Le=vue.unref(he))==null?void 0:Le.aggArgsJson,groupArgsJson:(Re=vue.unref(he))==null?void 0:Re.groupArgsJson,sortArgsJson:JSON.stringify(Oe),params:vue.unref(Ne)??ae(le(JSON.parse(((Fe=vue.unref(he))==null?void 0:Fe.formConfJson)??"[]"))),modelIndicatorsId:(je=vue.unref(he))==null?void 0:je.id,pageSize:(Me=vue.unref(he))==null?void 0:Me.pageSize,modelId:(ze=vue.unref(he))==null?void 0:ze.modelId},Ae=await re.$baseHttp.post("/api/ace-data-center/model-indicators/debug",Be);Ae&&(pe.value=((Ge=Ae.data)==null?void 0:Ge.records)??[],ye.value=!1,xe.value=!1,ve.value={x:JSON.parse((We=vue.unref(he))==null?void 0:We.groupArgsJson),y:JSON.parse((Ue=vue.unref(he))==null?void 0:Ue.aggArgsJson),params:Be},oe.setChartData(ve.value),vue.unref(pe).length&&De!="sort"&&(Object.keys(vue.unref(pe)[0]).forEach(qe=>{ge.value.push({label:qe,prop:qe,sortable:"custom"})}),ge.value.push({label:"操作",prop:"button",width:"120px",fixed:"right",slot:!0})))},$e=De=>{const{prop:Oe,order:Be}=De;!Be||vue.unref(me)[Oe]===Be?delete vue.unref(me)[Oe]:vue.unref(me)[Oe]=Be,Ce("sort")},we=async()=>{var Oe;fe.value=[];const De=await fetch$1(re).getRule({current:1,size:100,businessType:"indicators",businessId:ee.indicatorsId});fe.value=((Oe=De.data)==null?void 0:Oe.records)??[],ne("rule-success",fe.value)},Ee=vue.ref(null),Ve=De=>{Ee.value=De,ce.value=!0},Se=De=>(De.modelIndicatorsId=vue.unref(he).id,De.row=vue.unref(Ee),De),ke=()=>{de.value=!0},Ne=vue.ref(null),Ie=De=>{Ne.value=De,Ce()};vue.watch(ce,De=>Te(De)),vue.watch(de,De=>Te(De));const Pe=vue.ref(!1),Te=De=>{self!=top&&(Pe.value=De,window.parent.postMessage(De?"model-indicators-open":"model-indicators-close","*"))};return be(),U({init:be,result:he}),(De,Oe)=>{const Be=vue.resolveComponent("AppResourceVisitor"),Ae=vue.resolveComponent("aceHeader"),Le=vue.resolveComponent("AppTable"),Re=vue.resolveComponent("AppEmpty"),Fe=vue.resolveComponent("aceDynamicList"),je=vue.resolveComponent("AppDrawer");return vue.unref(se)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{key:0,animated:""})):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"animated fadeIn",hidden:vue.unref(Pe)},[vue.createElementVNode("div",_hoisted_2$K,[vue.createElementVNode("div",null,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{onClick:Oe[0]||(Oe[0]=Me=>ue.value="basic"),type:vue.unref(ue)=="basic"?"primary":""},{default:vue.withCtx(()=>[vue.createTextVNode(" 指标图表 ")]),_:1},8,["type"]),vue.createVNode(vue.unref(elementPlus.ElButton),{onClick:Oe[1]||(Oe[1]=Me=>ue.value="data"),type:vue.unref(ue)=="data"?"primary":""},{default:vue.withCtx(()=>[vue.createTextVNode(" 指标数据 ")]),_:1},8,["type"])]),_:1})]),vue.createElementVNode("div",_hoisted_3$D,[vue.createVNode(Be,{businessType:"MODEL_INDICATORS",businessld:ee.indicatorsId},null,8,["businessld"])])]),vue.withDirectives(vue.createElementVNode("div",null,[vue.createElementVNode("div",_hoisted_4$B,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(xe),animated:""},{default:vue.withCtx(()=>[vue.createVNode(IndicatorsView,{dynamicSearchForm:vue.unref(ie),result:vue.unref(he),chartData:vue.unref(ve),onSearchSuccess:Ie},null,8,["dynamicSearchForm","result","chartData"])]),_:1},8,["loading"])])],512),[[vue.vShow,vue.unref(ue)=="basic"]]),vue.withDirectives(vue.createElementVNode("div",null,[vue.createElementVNode("div",_hoisted_5$s,[vue.createElementVNode("div",_hoisted_6$o,[vue.createVNode(Ae,{title:"指标计算"}),vue.createElementVNode("div",_hoisted_7$k,[vue.unref(fe).some(Me=>Me.rows>0)?(vue.openBlock(),vue.createElementBlock("i",_hoisted_8$g)):(vue.openBlock(),vue.createElementBlock("i",_hoisted_9$e)),vue.createElementVNode("span",_hoisted_10$d,vue.toDisplayString(vue.unref(he).remark),1)])]),_hoisted_11$b,vue.createElementVNode("div",_hoisted_12$a,[vue.createVNode(Ae,{title:"数据来源"}),vue.createElementVNode("div",_hoisted_13$8,[_hoisted_14$7,vue.createTextVNode(" 重构仓模型数据 | "+vue.toDisplayString(vue.unref(he).modelName)+"【 ",1),vue.createElementVNode("span",{class:"cursor-pointer text-color-primary",onClick:ke},vue.toDisplayString(vue.unref(he).modelCode),1),vue.createTextVNode(" 】 ")])])]),vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(ye),animated:""},{default:vue.withCtx(()=>[vue.unref(ge).length?(vue.openBlock(),vue.createBlock(Le,{key:0,maxHeight:"400px",tableData:vue.unref(ge),list:vue.unref(pe),loading:!1,headerCellClassName:_e,onSortChange:$e},{button:vue.withCtx(({row:Me})=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:ze=>Ve(Me)},{default:vue.withCtx(()=>[vue.createTextVNode("查看明细")]),_:2},1032,["onClick"])]),_:1},8,["tableData","list"])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$4,[vue.createVNode(Re,{description:"暂无数据",class:"mt-4"})]))]),_:1},8,["loading"])],512),[[vue.vShow,vue.unref(ue)=="data"]]),vue.createVNode(_sfc_main$18,{ruleList:vue.unref(fe)},null,8,["ruleList"]),vue.createVNode(je,{modelValue:vue.unref(ce),"onUpdate:modelValue":Oe[2]||(Oe[2]=Me=>vue.isRef(ce)?ce.value=Me:null),title:"查看明细",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(Ae,{title:"统计:",class:"mb-2"}),vue.createVNode(Le,{height:null,tableData:Object.keys(vue.unref(Ee)).map(Me=>({label:Me,prop:Me})),list:[vue.unref(Ee)],loading:!1},null,8,["tableData","list"]),vue.createVNode(Ae,{title:"钻取明细:",class:"mt-4 mb-2"}),vue.createVNode(Fe,{id:vue.unref(he).modelId,keyName:"modelIndicatorsId",title:vue.unref(he).modelName,isDownLoad:vue.unref(isMobile),url:"/api/ace-data-center/model-indicators/drilling",formatParamsFunc:Se},null,8,["id","title","isDownLoad"])]),_:1},8,["modelValue"]),vue.createVNode(je,{modelValue:vue.unref(de),"onUpdate:modelValue":Oe[3]||(Oe[3]=Me=>vue.isRef(de)?de.value=Me:null),title:"模型数据",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(Fe,{id:vue.unref(he).modelId,title:vue.unref(he).modelName},null,8,["id","title"])]),_:1},8,["modelValue"])],8,_hoisted_1$U))}}}),_hoisted_1$T=vue.createElementVNode("i",{class:"ri-search-line"},null,-1),_hoisted_2$J={class:"mt-3"},_hoisted_3$C={key:1,class:"mr-1 -ml-5 text-base ri-edit-circle-fill text-color-primary"},_sfc_main$12=vue.defineComponent({__name:"modelMenu",props:{type:{default:""}},emits:["node-click","change-type"],setup(te,{expose:U,emit:G}){const ee=te,{proxy:ne}=vue.getCurrentInstance(),re=vue.ref(""),oe=vue.ref(null),ie=G;vue.watch(re,he=>{vue.unref(oe).filter(he)});const le=(he,pe)=>he?pe.modelName.includes(he):!0,ae=vue.ref([]),se=vue.ref([]),ue=vue.ref([]),ce=vue.ref(!0),de=vue.computed(()=>ee.type=="ODS"?vue.unref(ae):ee.type=="DWD"?vue.unref(se):vue.unref(ue)),fe=()=>{Promise.all([fetch$1(ne).loadModelMenu({modelLayer:"ODS"}),fetch$1(ne).loadModelMenu({modelLayer:"DWD"}),fetch$1(ne).loadModelMenu({modelLayer:"ODSVIEW"})]).then(he=>{const pe=he[0].data,ge=he[1].data,me=he[2].data;ae.value=Object.keys(pe).map(_e=>({modelName:_e,id:_e,children:pe[_e]})),se.value=Object.keys(ge).map(_e=>({modelName:_e,id:_e,children:ge[_e]})),ue.value=Object.keys(me).map(_e=>({modelName:_e,id:_e,children:me[_e]})),ce.value=!1})};fe();const ve=he=>{if(he.modelCode){if(ee.type=="ODS"){ie("node-click",he);return}Array.isArray(he.children)||ie("node-click",he)}};return U({init:fe}),(he,pe)=>{const ge=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(vue.unref(elementPlus.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:vue.unref(re),"onUpdate:modelValue":pe[0]||(pe[0]=me=>vue.isRef(re)?re.value=me:null)},{prefix:vue.withCtx(()=>[_hoisted_1$T]),_:1},8,["modelValue"]),vue.createElementVNode("div",_hoisted_2$J,[vue.unref(ce)?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElSkeleton),{key:0,animated:"",count:2})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTree),{key:1,class:"animated fadeIn",ref_key:"treeRef",ref:oe,data:vue.unref(de),"default-expand-all":"","node-key":"id","highlight-current":"","filter-node-method":le,onNodeClick:ve},{default:vue.withCtx(({node:me,data:_e})=>[me.level!=1||he.type=="ODS"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[_e.modelCode&&_e.openForm!=2?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:vue.normalizeClass(["mr-1 -ml-5 text-base ri-checkbox-circle-fill",[_e.publishStatus==2?"text-color-success":"text-color-info"]])},null,2)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),_e.openForm==2?(vue.openBlock(),vue.createElementBlock("i",_hoisted_3$C)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass({"font-bold":me.level==1})},vue.toDisplayString(_e.modelName),3),vue.renderSlot(he.$slots,"default",{element:_e})]),empty:vue.withCtx(()=>[vue.createVNode(ge,{description:"暂无数据"})]),_:3},8,["data"]))])],64)}}}),_hoisted_1$S={class:"mb-3"},_hoisted_2$I={style:{height:"calc(100vh - 100px)"},class:"overflow-y-auto"},_sfc_main$11=vue.defineComponent({__name:"modelIndicatorsAdd",emits:["click-node"],setup(te,{expose:U,emit:G}){const ee=G,{proxy:ne}=vue.getCurrentInstance(),re=vue.ref(!1),oe=vue.ref(),ie=vue.ref([{label:"源数据",value:"ODS",rule:"VIEW_ODS",disabled:!0},{label:"源视图",value:"ODSVIEW",rule:"VIEW_ODSVIEW",disabled:!0},{label:"整合数据",value:"DWD",rule:"VIEW_DWD",disabled:!0}]);fetch$1(ne).getCurrFunc("MODEL").then(ue=>{vue.unref(ie).forEach(ce=>{ce.disabled=!ue.data.includes(ce.rule),!vue.unref(oe)&&!ce.disabled&&(oe.value=ce.value)})});const le=ue=>{oe.value=ue},ae=()=>{re.value=!0},se=ue=>{ee("click-node",ue),re.value=!1};return U({init:ae}),(ue,ce)=>{const de=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(de,{modelValue:vue.unref(re),"onUpdate:modelValue":ce[0]||(ce[0]=fe=>vue.isRef(re)?re.value=fe:null),title:"选择要分析的数据",size:"400px"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$S,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(ie),fe=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(oe)==fe.value?"primary":"",key:fe.value,disabled:fe.disabled,onClick:ve=>le(fe.value)},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(fe.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1})]),vue.createElementVNode("div",_hoisted_2$I,[vue.createVNode(_sfc_main$12,{ref:"menuRef",type:vue.unref(oe),onNodeClick:se},null,8,["type"])])]),_:1},8,["modelValue"])}}}),_hoisted_1$R=vue.createElementVNode("div",{class:"flex justify-end flex-1"},null,-1),_hoisted_2$H={class:"whitespace-nowrap ml-2.5"},_hoisted_3$B=vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1),_hoisted_4$A=["onClick"],_hoisted_5$r=vue.createElementVNode("i",{class:"ri-edit-box-line"},null,-1),_hoisted_6$n={key:0,class:"flex items-center justify-center h-full"},_sfc_main$10=vue.defineComponent({__name:"index",props:{isCustom:{type:Boolean,default:!1},element:{default:null},tempId:{default:""}},emits:["close-design"],setup(te,{emit:U}){var me,_e;const G=te,ee=U,{proxy:ne}=vue.getCurrentInstance();vue.inject("local");const re=vue.ref(null),oe=vue.ref(null),ie=vue.ref(null),le=vue.ref(null),ae=vue.ref(G.element??{});vue.provide("modelEle",ae),vue.provide("getListModelIndicators",()=>{});const se=vue.ref([{label:"指标分析",value:"zbfx"},{label:"指标全景",value:"zbqj",disabled:!0}]),ue=vue.ref(vue.unref(se)[0].value),ce=vue.ref(((me=G==null?void 0:G.element)==null?void 0:me.id)??"");fetch$1(ne).getCurrFunc("INDICATORS").then(be=>{vue.unref(se).find(ye=>ye.value=="zbqj").disabled=!be.data.includes("INDICATORS_VIEW")});const de=vue.ref([]);fetch$1(ne).getCurrFunc("MODEL_INDICATORS").then(be=>{de.value=be.data});const fe=vue.ref(((_e=G==null?void 0:G.element)==null?void 0:_e.businessType)??""),ve=be=>{ce.value="",fe.value=be.type,setTimeout(()=>{ce.value=be.id},100)},he=be=>{ae.value=be,vue.unref(re).init()},pe=be=>{vue.nextTick(()=>{setTimeout(()=>{var ye,xe,Ce;ae.value={id:(ye=vue.unref(ie).result)==null?void 0:ye.modelId,modelName:(xe=vue.unref(ie).result)==null?void 0:xe.modelName,modelCode:(Ce=vue.unref(ie).result)==null?void 0:Ce.modelCode},vue.unref(re).init(be)},300)})},ge=()=>{vue.unref(ce)&&(ee("close-design",vue.unref(ce)),vue.unref(ie)&&vue.unref(ie).init()),vue.unref(oe)&&vue.unref(oe).init()};return(be,ye)=>{const xe=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{class:"h-full"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElHeader),{style:{height:"auto",padding:"0"},class:"flex items-center w-full mb-3"},{default:vue.withCtx(()=>[be.isCustom?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButtonGroup),{key:0},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(se),Ce=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(ue)==Ce.value?"primary":"",key:Ce.value,disabled:Ce.disabled,onClick:$e=>ue.value=Ce.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ce.label),1)]),_:2},1032,["type","disabled","onClick"]))),128))]),_:1})),_hoisted_1$R]),_:1}),vue.withDirectives(vue.createVNode(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden"},{default:vue.withCtx(()=>[be.isCustom?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElAside),{key:0,class:"pr-5 mr-5"},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$19,{onNodeClick:ve,tempId:be.tempId||vue.unref(ce),ref_key:"menuRef",ref:oe},{search:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$H,[vue.unref(de).includes("STATISTICAL_ANALYSIS")?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{key:0,type:"primary",onClick:ye[0]||(ye[0]=Ce=>vue.unref(le).init())},{default:vue.withCtx(()=>[_hoisted_3$B,vue.createTextVNode(" 新增指标 ")]),_:1})):vue.createCommentVNode("",!0)])]),"menu-item":vue.withCtx(({data:Ce})=>[vue.unref(de).includes("RELATED_INDICATORS")&&Ce.type!="INDICATORS"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ml-4 mr-2 cursor-pointer text-color-warning",onClick:$e=>pe(Ce.id)},[_hoisted_5$r,vue.createTextVNode(" 编辑 ")],8,_hoisted_4$A)):vue.createCommentVNode("",!0)]),_:1},8,["tempId"])]),_:1})),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.unref(ce)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.unref(fe)=="INDICATORS"?(vue.openBlock(),vue.createBlock(aceIndicatorSystemPreview,{key:0,indicatorsId:vue.unref(ce)},null,8,["indicatorsId"])):vue.createCommentVNode("",!0),vue.unref(fe)=="MODEL_INDICATORS"?(vue.openBlock(),vue.createBlock(_sfc_main$13,{key:1,onClickDesign:pe,modelIndicatorsRules:vue.unref(de),indicatorsId:vue.unref(ce),ref_key:"modelIndicatorsRef",ref:ie},null,8,["modelIndicatorsRules","indicatorsId"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$n,[vue.createVNode(xe,{description:"请选择对应指标"})]))]),_:1})]),_:1},512),[[vue.vShow,vue.unref(ue)=="zbfx"]]),vue.unref(ue)=="zbqj"?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElMain),{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$16)]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(aceIndicatorDesign,{ref_key:"designRef",ref:re,onClose:ge},null,512),vue.createVNode(_sfc_main$11,{ref_key:"modelIndicatorsAddRef",ref:le,onClickNode:he},null,512)]),_:1})}}}),_withScopeId$j=te=>(vue.pushScopeId("data-v-e52b7096"),te=te(),vue.popScopeId(),te),_hoisted_1$Q={class:"flex flex-col h-full"},_hoisted_2$G=_withScopeId$j(()=>vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1)),_hoisted_3$A={class:"flex-1 mt-3 overflow-y-auto card-container"},_hoisted_4$z={key:0,class:"flex items-center justify-center h-full"},_hoisted_5$q=["onClick"],_hoisted_6$m={class:"flex items-center"},_hoisted_7$j=_withScopeId$j(()=>vue.createElementVNode("i",{class:"mr-1 ri-database-line"},null,-1)),_hoisted_8$f={class:"font-bold"},_hoisted_9$d={class:"flex items-center justify-between w-4/5 mt-3 ml-auto mr-auto"},_hoisted_10$c={class:"flex items-center"},_hoisted_11$a=_withScopeId$j(()=>vue.createElementVNode("i",{class:"mr-1 ri-checkbox-circle-fill text-color-success"},null,-1)),_hoisted_12$9=_withScopeId$j(()=>vue.createElementVNode("div",{class:"text-color-info"},"|",-1)),_hoisted_13$7={class:"flex justify-end mt-3 text-xs text-color-info pb"},_hoisted_14$6={class:"w-4/5 overflow-hidden whitespace-nowrap text-ellipsis"},_sfc_main$$=vue.defineComponent({__name:"menu",emits:["node-click"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{dataSourceSubmit:ne,testConnect:re,loadDataSourceMenu:oe}=fetch$1(ee).dbImport,{setFormValue:ie,getFormValue:le}=ee.$globalHooks.useForm(),{openMessage:ae}=ee.$globalHooks.useMessage(),se=ee.$globalDict,ue=G,ce=vue.ref([]),de=vue.ref(!0),fe=()=>{ce.value=[],de.value=!0,oe().then(xe=>{de.value=!1,ce.value=xe.data??[],xe.data.length&&vue.unref(be)==""&&ye(xe.data[0])})};fe();const ve=vue.reactive([{name:"数据源名称",type:FieldType.Text,fieldName:"name",value:"",required:!0},{name:"数据源类型",type:FieldType.Select,fieldName:"dataSourceType",value:"",dict:"storeType",required:!0,changeFunc:xe=>{if(!xe.value)return;let Ce=se.dataSourceUrlDemo.find($e=>$e.label.toLowerCase()===xe.value.toLowerCase());ve.find($e=>$e.fieldName==="dataSourceUrlDemo").value=(Ce==null?void 0:Ce.value)??""}},{name:"数据源链接地址",type:FieldType.Textarea,fieldName:"dataSourceUrl",value:"",required:!0},{name:"链接示例",type:FieldType.Slot,fieldName:"dataSourceUrlDemo",value:""},{name:"数据库用户名",type:FieldType.Text,fieldName:"connectUserName",value:"",required:!0},{name:"数据库用密码",type:FieldType.Password,fieldName:"connectPassword",value:"",required:!0}]),he=vue.ref(!1),pe=()=>{ie({},ve),he.value=!0},ge=xe=>{ve.find(Ce=>Ce.fieldName==="dataSourceUrl").value=xe.value},me=async()=>{const{params:xe,error:Ce}=le(ve);Ce.length>0||!await ne(xe)||(he.value=!1,ae({type:"success",message:"操作成功"}),fe())},_e=async()=>{const{params:xe,error:Ce}=le(ve);Ce.length>0||!await re(xe)||ae({type:"success",message:"数据库链接成功"})},be=vue.ref(""),ye=xe=>{vue.unref(be)!=xe.dataSourceId&&(be.value=xe.dataSourceId,ue("node-click",xe))};return U({initMenu:fe}),(xe,Ce)=>{const $e=vue.resolveComponent("aceHeader"),we=vue.resolveComponent("AppEmpty"),Ee=vue.resolveComponent("AppForm"),Ve=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$Q,[vue.createVNode($e,{title:"数据源"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:pe},{default:vue.withCtx(()=>[_hoisted_2$G,vue.createTextVNode(" 新增 ")]),_:1})]),_:1}),vue.createElementVNode("div",_hoisted_3$A,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(de),animated:""},{default:vue.withCtx(()=>[vue.unref(ce).length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(vue.unref(ce),Se=>(vue.openBlock(),vue.createElementBlock("div",{key:Se.id,class:vue.normalizeClass(["item",{active:vue.unref(be)==Se.dataSourceId}]),onClick:ke=>ye(Se)},[vue.createElementVNode("div",_hoisted_6$m,[_hoisted_7$j,vue.createElementVNode("span",_hoisted_8$f,vue.toDisplayString(Se.dataSourceComment),1)]),vue.createElementVNode("div",_hoisted_9$d,[vue.createElementVNode("div",_hoisted_10$c,[_hoisted_11$a,vue.createTextVNode(" 已同步 "),vue.createElementVNode("strong",null,vue.toDisplayString(Se.synchronizedTableCount),1)]),_hoisted_12$9,vue.createElementVNode("div",null,[vue.createTextVNode(" 总表数 "),vue.createElementVNode("strong",null,vue.toDisplayString(Se.tableCount),1)])]),vue.createElementVNode("div",_hoisted_13$7,vue.toDisplayString(Se.version),1)],10,_hoisted_5$q))),128)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$z,[vue.createVNode(we,{description:"暂无数据源"})]))]),_:1},8,["loading"])]),vue.createVNode(Ve,{modelValue:vue.unref(he),"onUpdate:modelValue":Ce[1]||(Ce[1]=Se=>vue.isRef(he)?he.value=Se:null),title:"新增接入数据源",size:700},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{style:{"margin-right":"auto"},type:"success",onClick:_e},{default:vue.withCtx(()=>[vue.createTextVNode(" 测试链接 ")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:me},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:Ce[0]||(Ce[0]=Se=>he.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(Ee,{form:vue.unref(ve),col:1,labelWidth:120},{dataSourceUrlDemo:vue.withCtx(({element:Se})=>[vue.createVNode(vue.unref(elementPlus.ElTooltip),{content:Se.value},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_14$6,vue.toDisplayString(Se.value),1)]),_:2},1032,["content"]),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:ke=>ge(Se)},{default:vue.withCtx(()=>[vue.createTextVNode("复制")]),_:2},1032,["onClick"])]),_:1},8,["form"])]),_:1},8,["modelValue"])])}}}),menu_vue_vue_type_style_index_0_scoped_e52b7096_lang="",Menu$2=_export_sfc$2(_sfc_main$$,[["__scopeId","data-v-e52b7096"]]),_sfc_main$_=vue.defineComponent({__name:"sourceTableData",setup(te,{expose:U}){const G=vue.ref(!1),ee=vue.ref(null),ne=vue.ref(""),re=vue.ref([]),oe=se=>{re.value=[],(se==null?void 0:se.data.length)>0&&(re.value=Object.keys(se.data[0]).filter(ue=>ue!="pageIndex").map(ue=>({label:ue,prop:ue})))},ie=vue.ref({}),le=se=>Object.assign(se,vue.unref(ie));return U({init:(se,ue)=>{vue.unref(ie).dataSourceId=se,vue.unref(ie).sourceTableCode=ue,G.value=!0,ne.value="/api/ace-data-center/data-source/sourceDataPage"}}),(se,ue)=>{const ce=vue.resolveComponent("AppList"),de=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(de,{modelValue:vue.unref(G),"onUpdate:modelValue":ue[0]||(ue[0]=fe=>vue.isRef(G)?G.value=fe:null),title:"数据源明细",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(ce,{tableData:vue.unref(re),url:vue.unref(ne),ref_key:"appList",ref:ee,formatParamsFunc:le,onSuccess:oe,methods:"post"},null,8,["tableData","url"])]),_:1},8,["modelValue"])}}}),_hoisted_1$P={class:"mt-2"},_sfc_main$Z=vue.defineComponent({__name:"setting",emits:["refresh"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{setFormValue:ne,getFormValue:re}=ee.$globalHooks.useForm(),{openMessage:oe}=ee.$globalHooks.useMessage(),{submitDefaultDbExtract:ie}=fetch$1(ee).dbImport,le=G,ae=vue.ref(!1),se=vue.ref(!1),ue=vue.ref(null),ce=vue.reactive([{name:"方案名称",type:FieldType.Text,fieldName:"extractName",value:"",required:!0},{name:"数据流类型",type:FieldType.Radio,fieldName:"extractType",value:"",required:!0,options:[{label:"全量抽取",value:"1"},{label:"增量抽取",value:"2"}],changeFunc:pe=>{ce.find(ge=>ge.fieldName=="incrementalField").hide=pe.value!=2}},{name:"增量字段",type:FieldType.Select,fieldName:"incrementalField",value:"",required:!0,tip:"该字段必须为本模型字段,并且是SQL结果集中存在的字段"},{name:"taskDefinedId",type:FieldType.Text,fieldName:"taskDefinedId",hide:!0},{name:"id",type:FieldType.Text,fieldName:"id",hide:!0}]),de=vue.ref(null),fe=vue.ref({}),ve=async pe=>{fe.value=pe,se.value=!1;const ge=await ee.$baseHttp.get("/api/ace-data-center/model-attribute/allModelAttribute",{params:{modelId:pe.modelId,projectId:ee.$baseGetCurrentProjectId()},headers:{loading:!0}});ce.find(me=>me.fieldName=="incrementalField").options=ge.data.map(me=>({...me,label:`${me.attributeCode}(${me.attributeComment||me.attributeCode})`,value:me.attributeCode})),ae.value=!0,vue.nextTick(()=>{ne({...pe,extractName:pe.extractName??"增量抽取"},ce),pe!=null&&pe.taskDefined&&(se.value=!0),vue.unref(ue).init((pe==null?void 0:pe.taskDefined)??{}),de.value=(pe==null?void 0:pe.taskDefined)??null})},he=async()=>{const{params:pe,error:ge}=re(ce);if(ge.length>0)return;if(vue.unref(se)){const{params:_e,error:be}=vue.unref(ue).getForm();if(be.length>0)return;pe.taskDefined={...vue.unref(de)??{},..._e}}pe.dataSourceId=vue.unref(fe).dataSourceId,pe.modelId=vue.unref(fe).modelId,pe.streamType="STANDARD",await ie(pe)&&(oe({type:"success",message:"操作成功"}),ae.value=!1,le("refresh"))};return U({init:ve}),(pe,ge)=>{const me=vue.resolveComponent("AppForm"),_e=vue.resolveComponent("aceHeader"),be=vue.resolveComponent("AppTaskDesign"),ye=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createBlock(ye,{modelValue:vue.unref(ae),"onUpdate:modelValue":ge[2]||(ge[2]=xe=>vue.isRef(ae)?ae.value=xe:null),title:"配置",size:500},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:he},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:ge[1]||(ge[1]=xe=>ae.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(me,{form:vue.unref(ce)},null,8,["form"]),vue.createElementVNode("div",_hoisted_1$P,[vue.createVNode(_e,{title:"作业配置",class:"mb-2"},{left:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElCheckbox),{class:"ml-2",modelValue:vue.unref(se),"onUpdate:modelValue":ge[0]||(ge[0]=xe=>vue.isRef(se)?se.value=xe:null)},{default:vue.withCtx(()=>[vue.createTextVNode("作业配置")]),_:1},8,["modelValue"])]),_:1}),vue.withDirectives(vue.createElementVNode("div",null,[vue.createVNode(be,{ref_key:"taskDesignRef",ref:ue},null,512)],512),[[vue.vShow,vue.unref(se)]])])]),_:1},8,["modelValue"])}}}),_hoisted_1$O=vue.createElementVNode("i",{class:"mr-2 ri-exchange-line"},null,-1),_hoisted_2$F=vue.createElementVNode("i",{class:"mr-2 ri-refresh-line"},null,-1),_hoisted_3$z=vue.createElementVNode("div",null,null,-1),_hoisted_4$y=vue.createElementVNode("i",{class:"mr-2 ri-delete-bin-line"},null,-1),_sfc_main$Y=vue.defineComponent({__name:"model-extract-log",emits:["success"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{openMessage:ne}=ee.$globalHooks.useMessage(),re=G,oe=vue.ref(!1),ie=vue.ref(null),le=vue.ref(""),ae=vue.ref([]),se=ce=>{const{businessId:de,businessType:fe="file_extract",ajaxUrl:ve="",table:he}=ce;ae.value=he||[{label:"批次号",prop:"batchNo"},{label:"日期",prop:"createTime"},{label:"文件名",prop:"file",slot:!0},{label:"抽取方式",prop:"createTime",func:pe=>{var ge;return((ge=JSON.parse(pe.businessSnapshot||"{}"))==null?void 0:ge.extractType)==2?"覆盖":"追加"}},{label:"数据总数",prop:"totalNum"},{label:"成功数",prop:"successNum"},{label:"失败数",prop:"failNum"},{label:"协同参数",prop:"collaborateValue"},{label:"操作",prop:"action",slot:!0,fixed:"right"}],le.value=ve||`/api/ace-data-center/extract-log/list?descs=create_time&businessId=${de}&businessType=${fe}`,oe.value=!0},ue=async(ce,de)=>{switch(ce){case"refresh":{if(!await ee.$baseHttp.post(`/api/ace-data-center/extract-log/updateSuccessTotal/${de.id}`,{},{headers:{loading:!0}}))return;ne({type:"success",message:"操作成功"}),vue.unref(ie).getData(),re("success")}break;case"delete":ee.$baseConfirm({content:"删除数据可能影响指标统计,是否确认删除?",callConfirm:async()=>{await ee.$baseHttp.post(`/api/ace-data-center/extract-log/deleteModelData/${de.id}`,{},{headers:{loading:!0}})&&(ne({type:"success",message:"操作成功"}),vue.unref(ie).getData(),re("success"))}});break;case"run":ee.$baseConfirm({content:"重跑数据会先删除本批次数据,然后新建立一个批次任务执行,是否继续执行?",callConfirm:async()=>{await ee.$baseHttp.post(`/api/ace-data-center/extract-log/reRunTeamworkDbExtractBy/${de.id}`,{},{headers:{loading:!0}})&&(ne({type:"success",message:"操作成功"}),vue.unref(ie).getData(),re("success"))}});break;case"download":{const fe=JSON.parse((de==null?void 0:de.businessSnapshot)??"{}");window.open(fe.fileUrl)}break}};return U({init:se}),(ce,de)=>{const fe=vue.resolveComponent("AppList"),ve=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ve,{modelValue:vue.unref(oe),"onUpdate:modelValue":de[0]||(de[0]=he=>vue.isRef(oe)?oe.value=he:null),title:"抽取日志",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(fe,{tableData:vue.unref(ae),url:vue.unref(le),ref_key:"appList",ref:ie},{file:vue.withCtx(({row:he})=>[vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:pe=>ue("download",he)},{default:vue.withCtx(()=>{var pe;return[vue.createTextVNode(vue.toDisplayString((pe=JSON.parse(he.businessSnapshot??"{}"))==null?void 0:pe.fileName),1)]}),_:2},1032,["onClick"])]),action:vue.withCtx(({row:he})=>{var pe;return[((pe=JSON.parse(he.businessSnapshot||"{}"))==null?void 0:pe.extractType)==3?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:0,type:"primary",class:"mr-2",onClick:ge=>ue("run",he)},{default:vue.withCtx(()=>[_hoisted_1$O,vue.createTextVNode(" 重跑 ")]),_:2},1032,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:ge=>ue("refresh",he)},{default:vue.withCtx(()=>[_hoisted_2$F,vue.createTextVNode(" 刷新 ")]),_:2},1032,["onClick"]),_hoisted_3$z,vue.createVNode(vue.unref(elementPlus.ElLink),{type:"danger",onClick:ge=>ue("delete",he)},{default:vue.withCtx(()=>[_hoisted_4$y,vue.createTextVNode(" 删除本批次数据 ")]),_:2},1032,["onClick"])]}),_:1},8,["tableData","url"])]),_:1},8,["modelValue"])}}}),_hoisted_1$N={class:"flex flex-col h-full overflow-hidden"},_hoisted_2$E={class:"flex flex-col flex-1 mt-3 overflow-hidden"},_hoisted_3$y={class:"app-search"},_hoisted_4$x=vue.createElementVNode("i",{class:"mr-1 ri-search-line"},null,-1),_hoisted_5$p={class:"flex flex-1 overflow-hidden"},_hoisted_6$l={class:"flex justify-end mt-3"},_hoisted_7$i={class:"flex justify-end mb-2"},_hoisted_8$e=vue.createElementVNode("i",{class:"mr-1 ri-add-line"},null,-1),_sfc_main$X=vue.defineComponent({__name:"view",emits:["refresh"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),ne=vue.inject("modelEle"),{setFormValue:re,getFormValue:oe}=ee.$globalHooks.useForm(),{openMessage:ie}=ee.$globalHooks.useMessage(),{createModelSyncRelation:le,listDataSourceSynchronized:ae}=fetch$1(ee).dbImport,se=vue.ref(null),ue=vue.ref(null),ce=vue.ref(null),de=vue.ref(null),fe=G,{originlist:ve,list:he,pageLoading:pe,page:ge,pageSize:me,getData:_e,handleSizeChange:be,handleCurrentChange:ye}=ee.$globalHooks.usePage(),xe=vue.reactive([{name:"源表名",type:FieldType.Text,fieldName:"sourceTableComment",value:""},{name:"同步状态",type:FieldType.Select,fieldName:"related",value:"",options:[{label:"已同步",value:!0},{label:"未同步",value:!1}]},{name:"同步结果",type:FieldType.Select,fieldName:"synchronizeResult",value:"",options:[{label:"正常",value:2},{label:"异常",value:1}]},{name:"源数据量",type:FieldType.Select,fieldName:"existSourceTableData",value:"",options:[{label:"源数据量 >0",value:!0},{label:"源数据量 =0",value:!1}]}]),Ce=vue.reactive([{label:"源表",prop:"sourceTableCode"},{label:"源表名",prop:"sourceTableComment"},{label:"源数据",prop:"sourceTableDataCount",slot:!0},{label:"列数",prop:"sourceColumnCount"},{label:"同步状态",prop:"related",slot:!0},{label:"同步结果",prop:"synchronizeResult",tag:!0,tagFunc:Pe=>Pe==2?"success":"danger",func:Pe=>{var Te,De;return((Te=Pe.modelSyncDetail)==null?void 0:Te.synchronizeResult)=="2"?"正常":((De=Pe.modelSyncDetail)==null?void 0:De.synchronizeResult)=="1"?"异常":"-"}},{label:"目标表",prop:"relationTableCode"},{label:"目标数据",prop:"relationTableDataCount"},{label:"主键",prop:"primaryKeyColumn",func:Pe=>{var Te;return((Te=Pe==null?void 0:Pe.modelSyncDetail)==null?void 0:Te.primaryKeyColumn)??"-"}},{label:"增量字段",prop:"incrColumn",func:Pe=>{var Te;return((Te=Pe==null?void 0:Pe.modelSyncDetail)==null?void 0:Te.incrColumn)??"-"}},{label:"上次同步",prop:"lastSyncTime",func:Pe=>{var Te;return((Te=Pe==null?void 0:Pe.modelSyncDetail)==null?void 0:Te.lastSyncTime)??"-"}},{label:"操作",prop:"htmlButton",fixed:"right",width:"120px"}]),$e=async(Pe=!0)=>{Pe&&(re({},xe),ge.value=1),pe.value=!0;const{params:Te}=oe(xe,!1,!0),De=await ae({dataSourceId:vue.unref(ne).dataSourceId,...Te});if(pe.value=!1,!De){ve.value=[];return}De.data.forEach(Oe=>{var Be;(Be=Oe==null?void 0:Oe.modelSyncDetail)!=null&&Be.modelId&&(Oe.htmlButton=[{name:"配置",key:"setting",type:"primary"},{name:"历史",key:"history",type:"primary"}])}),ve.value=De.data,_e()},we=async Pe=>{await le({sourceId:Pe.dataSourceId,sourceTableCode:Pe.sourceTableCode})&&(ie({type:"success",message:"操作成功"}),fe("refresh"),$e(!1))},Ee=vue.ref(!1),Ve=vue.ref(""),Se=vue.reactive([{label:"抽取方案名称",prop:"extractName"},{label:"抽取类型",prop:"extractType",props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=extractType",label:"dictValue",value:"dictKey"}},{label:"操作",prop:"htmlButton",fixed:"right",width:"200px"}]),ke=Pe=>{Pe.data.forEach(Te=>{Te.htmlButton=[],Te.htmlButton.push({name:"编辑",key:"EDIT",type:"primary",icon:"ri-edit-line"}),Te.htmlButton.push({name:"抽取记录",key:"LOG",type:"primary",icon:"ri-file-line"}),[1,2].includes(Te.extractType)&&Te.htmlButton.push({name:"抽取",key:"PUSH",type:"primary",icon:"ri-pushpin-line"}),Te.htmlButton.push({name:"删除",key:"DEL",type:"danger",icon:"ri-delete-bin-6-line"})})},Ne=vue.ref({}),Ie=async Pe=>{var Be;const{type:Te,row:De,index:Oe}=Pe;switch(Te){case"history":vue.unref(ce).init({ajaxUrl:`/api/ace-data-center/extract-log/modelSyncHistory?descs=create_time&modelId=${De.modelSyncDetail.modelId}`,table:[{label:"日期",prop:"createTime"},{label:"数据总数",prop:"totalNum"},{label:"成功数",prop:"successNum"},{label:"失败数",prop:"failNum"},{label:"协同参数",prop:"collaborateValue"},{label:"操作",prop:"action",slot:!0,fixed:"right"}]});break;case"LOG":vue.unref(ce).init({businessId:De.id,businessType:"db_extract",table:[{label:"日期",prop:"createTime"},{label:"数据总数",prop:"totalNum"},{label:"成功数",prop:"successNum"},{label:"失败数",prop:"failNum"},{label:"协同参数",prop:"collaborateValue"},{label:"操作",prop:"action",slot:!0,fixed:"right"}]});break;case"PUSH":ee.$baseConfirm({content:"是否抽取?",callConfirm:async()=>{await ee.$baseHttp.post(`/api/ace-data-center/db-extract/extract/${De.id}`,{},{headers:{loading:!0}})&&ie({type:"success",message:"操作成功"})}});break;case"DEL":ee.$baseConfirm({content:"是否删除?",callConfirm:async()=>{await ee.$baseHttp.post(`/api/ace-data-center/db-extract/removeById/${De.id}`,{},{headers:{loading:!0}})&&(ie({type:"success",message:"操作成功"}),vue.unref(se).getData())}});break;case"EDIT":const Ae=await ee.$baseHttp.get(`/api/ace-data-center/db-extract/detailAndTask?dbExtractId=${De.id}`);if(!Ae)return;vue.unref(ue).init(Ae.data);break;case"ADD":vue.unref(ue).init({dataSourceId:vue.unref(Ne).dataSourceId,modelId:(Be=vue.unref(Ne))==null?void 0:Be.modelSyncDetail.modelId});break;case"setting":Ee.value=!0,Ne.value=De,Ve.value=`/api/ace-data-center/db-extract/list?modelId=${De.modelSyncDetail.modelId}&projectId=${ee.$baseGetCurrentProjectId()}`;break;case"source-table-data":vue.unref(de).init(De.dataSourceId,De.sourceTableCode);break}};return U({init:$e}),(Pe,Te)=>{const De=vue.resolveComponent("aceHeader"),Oe=vue.resolveComponent("AppForm"),Be=vue.resolveComponent("AppTable"),Ae=vue.resolveComponent("AppList"),Le=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$N,[vue.createVNode(De,{title:vue.unref(ne).dataSourceComment},null,8,["title"]),vue.createElementVNode("div",_hoisted_2$E,[vue.createElementVNode("div",_hoisted_3$y,[vue.createVNode(Oe,{form:vue.unref(xe)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-1",onClick:Te[0]||(Te[0]=Re=>$e(!1))},{default:vue.withCtx(()=>[_hoisted_4$x,vue.createTextVNode(" 查询 ")]),_:1})]),_:1},8,["form"])]),vue.createElementVNode("div",_hoisted_5$p,[vue.createVNode(Be,{tableData:vue.unref(Ce),list:vue.unref(he),loading:vue.unref(pe),onTableBtnClick:Ie},{related:vue.withCtx(({row:Re})=>[Re.related?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:0,type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode("已同步")]),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElPopconfirm),{key:1,title:"您确定要同步吗?",onConfirm:Fe=>we(Re)},{reference:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{size:"small",type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode("立即同步")]),_:1})]),_:2},1032,["onConfirm"]))]),sourceTableDataCount:vue.withCtx(({row:Re})=>[Re.sourceTableDataCount==0?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(Re.sourceTableDataCount),1)],64)):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:1,type:"primary",onClick:Fe=>Ie({type:"source-table-data",row:Re,index:-1})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Re.sourceTableDataCount),1)]),_:2},1032,["onClick"]))]),_:1},8,["tableData","list","loading"])]),vue.createElementVNode("div",_hoisted_6$l,[vue.createVNode(vue.unref(elementPlus.ElPagination),{"current-page":vue.unref(ge),"onUpdate:currentPage":Te[1]||(Te[1]=Re=>vue.isRef(ge)?ge.value=Re:null),"page-size":vue.unref(me),"onUpdate:pageSize":Te[2]||(Te[2]=Re=>vue.isRef(me)?me.value=Re:null),"page-sizes":[10,20,40,60,80,100],background:!0,layout:"total, sizes, prev, pager, next, jumper",total:vue.unref(ve).length,onCurrentChange:vue.unref(ye),onSizeChange:vue.unref(be)},null,8,["current-page","page-size","total","onCurrentChange","onSizeChange"])])]),vue.createVNode(Le,{modelValue:vue.unref(Ee),"onUpdate:modelValue":Te[4]||(Te[4]=Re=>vue.isRef(Ee)?Ee.value=Re:null),title:"数据同步方案",size:"1000px"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_7$i,[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:Te[3]||(Te[3]=Re=>Ie({type:"ADD",row:{},index:0}))},{default:vue.withCtx(()=>[_hoisted_8$e,vue.createTextVNode(" 新增 ")]),_:1})]),vue.createVNode(Ae,{tableData:vue.unref(Se),url:vue.unref(Ve),ref_key:"appListRef",ref:se,onBtnClick:Ie,onSuccess:ke},null,8,["tableData","url"])]),_:1},8,["modelValue"]),vue.createVNode(_sfc_main$Z,{ref_key:"settingRef",ref:ue,onRefresh:Te[5]||(Te[5]=Re=>vue.unref(se).getData({clear:!0}))},null,512),vue.createVNode(_sfc_main$Y,{ref_key:"extractLogRef",ref:ce},null,512),vue.createVNode(_sfc_main$_,{ref_key:"sourceTableDataRef",ref:de},null,512)])}}}),_hoisted_1$M={key:0,class:"flex items-center justify-center h-full"},_sfc_main$W=vue.defineComponent({__name:"index",setup(te){const U=vue.ref(null),G=vue.ref(null),ee=vue.ref({});vue.provide("modelEle",ee);const ne=vue.inject("local"),re=oe=>{ee.value=oe,vue.nextTick(()=>{vue.unref(U).init()})};return(oe,ie)=>{const le=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden app-basic-container"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElConfigProvider),{locale:vue.unref(ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElAside),{class:"pr-5 mr-5"},{default:vue.withCtx(()=>[vue.createVNode(Menu$2,{ref_key:"menuRef",ref:G,onNodeClick:re},null,512)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.unref(ee).dataSourceId?(vue.openBlock(),vue.createBlock(_sfc_main$X,{key:1,ref_key:"viewRef",ref:U,onRefresh:ie[0]||(ie[0]=ae=>vue.unref(G).initMenu())},null,512)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$M,[vue.createVNode(le,{description:"请选择数据源"})]))]),_:1})]),_:1},8,["locale"])]),_:1})}}}),_withScopeId$i=te=>(vue.pushScopeId("data-v-cabcba66"),te=te(),vue.popScopeId(),te),_hoisted_1$L={class:"flex flex-col h-full"},_hoisted_2$D=_withScopeId$i(()=>vue.createElementVNode("i",{class:"mr-1 ri-add-circle-line"},null,-1)),_hoisted_3$x={class:"flex-1 mt-3 overflow-y-auto card-container"},_hoisted_4$w={key:0,class:"flex items-center justify-center h-full"},_hoisted_5$o=["onClick"],_hoisted_6$k={class:"flex items-center justify-between"},_hoisted_7$h={class:"flex-1 mr-2.5"},_hoisted_8$d=_withScopeId$i(()=>vue.createElementVNode("i",{class:"mr-1 ri-database-line"},null,-1)),_hoisted_9$c={class:"font-bold"},_hoisted_10$b=_withScopeId$i(()=>vue.createElementVNode("i",{class:"mr-1 ri-edit-circle-line"},null,-1)),_hoisted_11$9={class:"flex items-center justify-between w-4/5 mt-3 ml-auto mr-auto"},_hoisted_12$8={class:"flex items-center"},_hoisted_13$6=_withScopeId$i(()=>vue.createElementVNode("i",{class:"mr-1 ri-checkbox-circle-fill text-color-success"},null,-1)),_hoisted_14$5=_withScopeId$i(()=>vue.createElementVNode("div",{class:"text-color-info"},"|",-1)),_hoisted_15$3={class:"flex justify-end mt-3 text-xs text-color-info pb"},_hoisted_16$3={class:"w-4/5 overflow-hidden whitespace-nowrap text-ellipsis"},_sfc_main$V=vue.defineComponent({__name:"menu",emits:["node-click"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{dataSourceSubmit:ne,testConnect:re,loadDataSourceMenu:oe,detail:ie}=fetch$1(ee).dbImport,{setFormValue:le,getFormValue:ae}=ee.$globalHooks.useForm(),{openMessage:se}=ee.$globalHooks.useMessage(),ue=ee.$globalDict,ce=G,de=vue.ref([]),fe=vue.ref(!0),ve=()=>{de.value=[],fe.value=!0,oe().then($e=>{fe.value=!1,de.value=$e.data??[],$e.data.length&&vue.unref(xe)==""&&Ce($e.data[0])})};ve();const he=vue.reactive([{name:"数据源名称",type:FieldType.Text,fieldName:"name",value:"",required:!0},{name:"数据源类型",type:FieldType.Select,fieldName:"dataSourceType",value:"",dict:"storeType",required:!0,changeFunc:$e=>{if(!$e.value)return;let we=ue.dataSourceUrlDemo.find(Ee=>Ee.label.toLowerCase()===$e.value.toLowerCase());he.find(Ee=>Ee.fieldName==="dataSourceUrlDemo").value=(we==null?void 0:we.value)??""}},{name:"数据源链接地址",type:FieldType.Textarea,fieldName:"dataSourceUrl",value:"",required:!0},{name:"链接示例",type:FieldType.Slot,fieldName:"dataSourceUrlDemo",value:""},{name:"数据库用户名",type:FieldType.Text,fieldName:"connectUserName",value:"",required:!0},{name:"数据库用密码",type:FieldType.Password,fieldName:"connectPassword",value:"",required:!0},{name:"id",type:FieldType.Text,fieldName:"id",value:"",hide:!0}]),pe=vue.ref(!1),ge=()=>{le({},he),pe.value=!0},me=async $e=>{const we=await ie({id:$e.dataSourceId});le(we.data,he),pe.value=!0},_e=$e=>{he.find(we=>we.fieldName==="dataSourceUrl").value=$e.value},be=async()=>{const{params:$e,error:we}=ae(he);we.length>0||($e.id||delete $e.id,!await ne($e))||(pe.value=!1,se({type:"success",message:"操作成功"}),ve())},ye=async()=>{const{params:$e,error:we}=ae(he);we.length>0||!await re($e)||se({type:"success",message:"数据库链接成功"})},xe=vue.ref(""),Ce=$e=>{vue.unref(xe)!=$e.dataSourceId&&(xe.value=$e.dataSourceId,ce("node-click",$e))};return U({initMenu:ve}),($e,we)=>{const Ee=vue.resolveComponent("aceHeader"),Ve=vue.resolveComponent("AppEmpty"),Se=vue.resolveComponent("AppForm"),ke=vue.resolveComponent("AppDialog");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$L,[vue.createVNode(Ee,{title:"数据源"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",size:"small",onClick:ge},{default:vue.withCtx(()=>[_hoisted_2$D,vue.createTextVNode(" 新增 ")]),_:1})]),_:1}),vue.createElementVNode("div",_hoisted_3$x,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{loading:vue.unref(fe),animated:""},{default:vue.withCtx(()=>[vue.unref(de).length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(vue.unref(de),Ne=>(vue.openBlock(),vue.createElementBlock("div",{key:Ne.id,class:vue.normalizeClass(["item",{active:vue.unref(xe)==Ne.dataSourceId}]),onClick:Ie=>Ce(Ne)},[vue.createElementVNode("div",_hoisted_6$k,[vue.createElementVNode("div",_hoisted_7$h,[_hoisted_8$d,vue.createElementVNode("span",_hoisted_9$c,vue.toDisplayString(Ne.dataSourceComment),1)]),vue.createVNode(vue.unref(elementPlus.ElLink),{type:"primary",onClick:vue.withModifiers(Ie=>me(Ne),["stop"])},{default:vue.withCtx(()=>[_hoisted_10$b,vue.createTextVNode(" 修改 ")]),_:2},1032,["onClick"])]),vue.createElementVNode("div",_hoisted_11$9,[vue.createElementVNode("div",_hoisted_12$8,[_hoisted_13$6,vue.createTextVNode(" 已同步 "),vue.createElementVNode("strong",null,vue.toDisplayString(Ne.synchronizedShadowTableCount),1)]),_hoisted_14$5,vue.createElementVNode("div",null,[vue.createTextVNode(" 总表数 "),vue.createElementVNode("strong",null,vue.toDisplayString(Ne.tableCount),1)])]),vue.createElementVNode("div",_hoisted_15$3,vue.toDisplayString(Ne.version),1)],10,_hoisted_5$o))),128)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$w,[vue.createVNode(Ve,{description:"暂无数据源"})]))]),_:1},8,["loading"])]),vue.createVNode(ke,{modelValue:vue.unref(pe),"onUpdate:modelValue":we[1]||(we[1]=Ne=>vue.isRef(pe)?pe.value=Ne:null),title:"新增接入数据源",size:700},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{style:{"margin-right":"auto"},type:"success",onClick:ye},{default:vue.withCtx(()=>[vue.createTextVNode(" 测试链接 ")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:be},{default:vue.withCtx(()=>[vue.createTextVNode("保存")]),_:1}),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:we[0]||(we[0]=Ne=>pe.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(Se,{form:vue.unref(he),col:1,labelWidth:120},{dataSourceUrlDemo:vue.withCtx(({element:Ne})=>[vue.createVNode(vue.unref(elementPlus.ElTooltip),{content:Ne.value},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_16$3,vue.toDisplayString(Ne.value),1)]),_:2},1032,["content"]),vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",onClick:Ie=>_e(Ne)},{default:vue.withCtx(()=>[vue.createTextVNode("复制")]),_:2},1032,["onClick"])]),_:1},8,["form"])]),_:1},8,["modelValue"])])}}}),menu_vue_vue_type_style_index_0_scoped_cabcba66_lang="",Menu$1=_export_sfc$2(_sfc_main$V,[["__scopeId","data-v-cabcba66"]]),_sfc_main$U=vue.defineComponent({__name:"sourceTableData",setup(te,{expose:U}){const G=vue.ref(!1),ee=vue.ref(null),ne=vue.ref(""),re=vue.ref([]),oe=se=>{re.value=[],(se==null?void 0:se.data.length)>0&&(re.value=Object.keys(se.data[0]).filter(ue=>ue!="pageIndex").map(ue=>({label:ue,prop:ue})))},ie=vue.ref({}),le=se=>Object.assign(se,vue.unref(ie));return U({init:(se,ue)=>{vue.unref(ie).dataSourceId=se,vue.unref(ie).sourceTableCode=ue,G.value=!0,ne.value="/api/ace-data-center/data-source/sourceDataPage"}}),(se,ue)=>{const ce=vue.resolveComponent("AppList"),de=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(de,{modelValue:vue.unref(G),"onUpdate:modelValue":ue[0]||(ue[0]=fe=>vue.isRef(G)?G.value=fe:null),title:"数据源明细",size:"90%"},{default:vue.withCtx(()=>[vue.createVNode(ce,{tableData:vue.unref(re),url:vue.unref(ne),ref_key:"appList",ref:ee,formatParamsFunc:le,onSuccess:oe,methods:"post"},null,8,["tableData","url"])]),_:1},8,["modelValue"])}}}),_withScopeId$h=te=>(vue.pushScopeId("data-v-9a318098"),te=te(),vue.popScopeId(),te),_hoisted_1$K={class:"mt-3"},_hoisted_2$C=_withScopeId$h(()=>vue.createElementVNode("thead",null,[vue.createElementVNode("tr",null,[vue.createElementVNode("td",null,"字段名称"),vue.createElementVNode("td",null,"字段描述"),vue.createElementVNode("td",null,"映射字段"),vue.createElementVNode("td",null,"数据类型"),vue.createElementVNode("td",null,"数据长度"),vue.createElementVNode("td",null,"数据标度"),vue.createElementVNode("td",null,"是否主键"),vue.createElementVNode("td",null,"唯一校验")])],-1)),_hoisted_3$w={class:"sort-target"},_hoisted_4$v={key:0},_sfc_main$T=vue.defineComponent({__name:"model-normal",emits:["success"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),{setFormValue:ne,getFormValue:re}=ee.$globalHooks.useForm(),oe=G,ie=vue.ref(!1),le=vue.ref(""),ae=vue.ref([]);vue.ref("");const se=vue.ref([]),ue=vue.reactive([{name:"项目名称",type:FieldType.Select,fieldName:"projectId",value:"",required:!0,props:{url:"/api/ace-data-center/project/options",label:"label",value:"code"},disabled:!0,hide:!0},{name:"数据源类型",type:FieldType.Select,fieldName:"modelStore",value:"",required:!0,dict:"storeType",disabled:!0},{name:"模型层级",type:FieldType.Select,fieldName:"modelLayer",value:"",required:!0,props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=modelLayer",label:"dictValue",value:"dictKey"},changeFunc:fe=>{},disabled:!0},{name:"模型名称",type:FieldType.Text,fieldName:"modelName",value:"",required:!0},{name:"模型表名",type:FieldType.Text,fieldName:"modelCode",value:"",required:!0,disabled:!0},{name:"模型类型",type:FieldType.Select,fieldName:"modelType",value:"",props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=modelType",label:"dictValue",value:"dictKey"},hide:!0},{name:"标签",type:FieldType.Text,fieldName:"tags",value:""},{name:"分区字段",type:FieldType.Text,fieldName:"partitionColumn",value:"",hide:!0},{name:"模型描述",type:FieldType.Textarea,fieldName:"modelDesc",value:""},{name:"id",type:FieldType.Text,fieldName:"id",value:"",hide:!0}]),ce=fe=>{ie.value=!0,le.value="",ae.value=[],se.value=(fe?(fe==null?void 0:fe.listModelAttribute)??[]:[{nanoid:nanoid()}]).map(ve=>{const he=((ve==null?void 0:ve.attributeCode)??"").split("");return ve.nanoid=nanoid(),he[0]=="_"&&(ve.hide=!0),ve}),ne({...fe??{},projectId:ee.$baseGetCurrentProjectId()},ue)},de=async()=>{const{params:fe,error:ve}=re(ue);if(ve.length>0)return;const he="/api/ace-data-center/model/editModelDetail";await ee.$baseHttp.post(he,{...fe,projectId:String(ee.$baseGetCurrentProjectId()),listModelAttribute:vue.unref(se)},{headers:{loading:!0}})&&(ie.value=!1,ee.$message.success("操作成功"),oe("success"))};return U({init:ce}),(fe,ve)=>{const he=vue.resolveComponent("AppForm"),pe=vue.resolveComponent("aceHeader"),ge=vue.resolveComponent("AppDrawer");return vue.openBlock(),vue.createBlock(ge,{modelValue:vue.unref(ie),"onUpdate:modelValue":ve[1]||(ve[1]=me=>vue.isRef(ie)?ie.value=me:null),title:"影子模型",size:"100%"},{footer:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",type:"primary",onClick:de},{default:vue.withCtx(()=>[vue.createTextVNode("提交")]),_:1}),vue.renderSlot(fe.$slots,"formFooter",{},void 0,!0),vue.createVNode(vue.unref(elementPlus.ElButton),{class:"ml-3",onClick:ve[0]||(ve[0]=me=>ie.value=!1)},{default:vue.withCtx(()=>[vue.createTextVNode("取消")]),_:1})]),default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElContainer),{class:"h-full overflow-hidden"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElAside),{class:"pr-5 mr-5"},{default:vue.withCtx(()=>[vue.createVNode(he,{form:vue.unref(ue)},null,8,["form"])]),_:1}),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.createVNode(pe,{title:"影子模型属性"}),vue.createElementVNode("table",_hoisted_1$K,[_hoisted_2$C,vue.createElementVNode("tbody",_hoisted_3$w,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(se),(me,_e)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:me.nanoid},[me.hide?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("tr",_hoisted_4$v,[vue.createElementVNode("td",null,vue.toDisplayString(me.attributeCode),1),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:me.attributeComment,"onUpdate:modelValue":be=>me.attributeComment=be,maxlength:"30",showWordLimit:"",placeholder:"字段描述"},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,vue.toDisplayString(me.mapCode),1),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:me.dataType,"onUpdate:modelValue":be=>me.dataType=be,placeholder:"数据类型",style:{width:"100%"},disabled:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(commonDataType),be=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:be.value,label:be.label,value:be.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,vue.toDisplayString(me.dataLength),1),vue.createElementVNode("td",null,vue.toDisplayString(me.dataScale??"-"),1),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:me.primaryKey,"onUpdate:modelValue":be=>me.primaryKey=be,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":"2","inactive-value":"1",disabled:""},null,8,["modelValue","onUpdate:modelValue"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:me.uniqueKey,"onUpdate:modelValue":be=>me.uniqueKey=be,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":"2","inactive-value":"1",disabled:""},null,8,["modelValue","onUpdate:modelValue"])])]))],64))),128))])])]),_:1})]),_:1})]),_:3},8,["modelValue"])}}}),modelNormal_vue_vue_type_style_index_0_scoped_9a318098_lang="",ModelNormal=_export_sfc$2(_sfc_main$T,[["__scopeId","data-v-9a318098"]]),_hoisted_1$J={class:"flex flex-col h-full overflow-hidden"},_hoisted_2$B={class:"flex flex-col flex-1 mt-3 overflow-hidden"},_hoisted_3$v={class:"app-search"},_hoisted_4$u=vue.createElementVNode("i",{class:"mr-1 ri-search-line"},null,-1),_hoisted_5$n={class:"flex flex-1 overflow-hidden"},_hoisted_6$j={class:"flex justify-end mt-3"},_sfc_main$S=vue.defineComponent({__name:"view",emits:["refresh"],setup(te,{expose:U,emit:G}){const{proxy:ee}=vue.getCurrentInstance(),ne=vue.inject("modelEle"),{setFormValue:re,getFormValue:oe}=ee.$globalHooks.useForm(),{openMessage:ie}=ee.$globalHooks.useMessage(),{createShadowModelSync:le,listDataSourceSynchronized:ae}=fetch$1(ee).dbImport,se=vue.ref(null),ue=vue.ref(null),ce=G,{originlist:de,list:fe,pageLoading:ve,page:he,pageSize:pe,getData:ge,handleSizeChange:me,handleCurrentChange:_e}=ee.$globalHooks.usePage(),be=vue.reactive([{name:"源表",type:FieldType.Text,fieldName:"sourceTableCode",value:""},{name:"源表名",type:FieldType.Text,fieldName:"sourceTableComment",value:""}]),ye=vue.reactive([{label:"源表",prop:"sourceTableCode"},{label:"源表名",prop:"sourceTableComment"},{label:"源数据",prop:"sourceTableDataCount",slot:!0},{label:"列数",prop:"sourceColumnCount"},{label:"影子模型",prop:"shadowModelId",slot:!0},{label:"操作",prop:"htmlButton",fixed:"right",width:"120px"}]),xe=async($e=!0)=>{$e&&(re({},be),he.value=1),ve.value=!0;const{params:we}=oe(be,!1,!0),Ee=await ae({dataSourceId:vue.unref(ne).dataSourceId,...we});if(ve.value=!1,!Ee){de.value=[];return}Ee.data.forEach(Ve=>{Ve.shadowModelId?Ve.htmlButton=[{name:"编辑",key:"EDIT",type:"primary"}]:Ve.htmlButton=[{name:"创建影子模型",key:"CREATE",type:"primary"}]}),de.value=Ee.data,ge()},Ce=async $e=>{const{type:we,row:Ee,index:Ve}=$e;switch(we){case"EDIT":{const Se=await ee.$baseHttp.get(`/api/ace-data-center/model/detail?id=${Ee==null?void 0:Ee.shadowModelId}`);if(!Se)return;ee.$refs.normalRef.init(Se.data)}break;case"CREATE":ee.$baseConfirm({content:"是否创建影子模型?",callConfirm:async()=>{await le({sourceId:Ee.dataSourceId,sourceTableCode:Ee.sourceTableCode})&&(ie({type:"success",message:"操作成功"}),ce("refresh"),xe(!1))}});break;case"source-table-data":vue.unref(ue).init(Ee.dataSourceId,Ee.sourceTableCode);break}};return U({init:xe}),($e,we)=>{const Ee=vue.resolveComponent("aceHeader"),Ve=vue.resolveComponent("AppForm"),Se=vue.resolveComponent("AppTable");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$J,[vue.createVNode(Ee,{title:vue.unref(ne).dataSourceComment},null,8,["title"]),vue.createElementVNode("div",_hoisted_2$B,[vue.createElementVNode("div",_hoisted_3$v,[vue.createVNode(Ve,{form:vue.unref(be)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElButton),{type:"primary",class:"ml-1",onClick:we[0]||(we[0]=ke=>xe(!1))},{default:vue.withCtx(()=>[_hoisted_4$u,vue.createTextVNode(" 查询 ")]),_:1})]),_:1},8,["form"])]),vue.createElementVNode("div",_hoisted_5$n,[vue.createVNode(Se,{tableData:vue.unref(ye),list:vue.unref(fe),loading:vue.unref(ve),onTableBtnClick:Ce},{shadowModelId:vue.withCtx(({row:ke})=>[ke.shadowModelId?(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:0,type:"primary"},{default:vue.withCtx(()=>[vue.createTextVNode("已创建")]),_:1})):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElTag),{key:1,type:"warning"},{default:vue.withCtx(()=>[vue.createTextVNode("未创建")]),_:1}))]),sourceTableDataCount:vue.withCtx(({row:ke})=>[ke.sourceTableDataCount==0?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(ke.sourceTableDataCount),1)],64)):(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElLink),{key:1,type:"primary",onClick:Ne=>Ce({type:"source-table-data",row:ke,index:-1})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ke.sourceTableDataCount),1)]),_:2},1032,["onClick"]))]),_:1},8,["tableData","list","loading"])]),vue.createElementVNode("div",_hoisted_6$j,[vue.createVNode(vue.unref(elementPlus.ElPagination),{"current-page":vue.unref(he),"onUpdate:currentPage":we[1]||(we[1]=ke=>vue.isRef(he)?he.value=ke:null),"page-size":vue.unref(pe),"onUpdate:pageSize":we[2]||(we[2]=ke=>vue.isRef(pe)?pe.value=ke:null),"page-sizes":[10,20,40,60,80,100],background:!0,layout:"total, sizes, prev, pager, next, jumper",total:vue.unref(de).length,onCurrentChange:vue.unref(_e),onSizeChange:vue.unref(me)},null,8,["current-page","page-size","total","onCurrentChange","onSizeChange"])])]),vue.createVNode(ModelNormal,{ref_key:"normalRef",ref:se},null,512),vue.createVNode(_sfc_main$U,{ref_key:"sourceTableDataRef",ref:ue},null,512)])}}}),_hoisted_1$I={key:0,class:"flex items-center justify-center h-full"},_sfc_main$R=vue.defineComponent({__name:"index",setup(te){const U=vue.ref(null),G=vue.ref(null),ee=vue.ref({});vue.provide("modelEle",ee);const ne=vue.inject("local"),re=oe=>{ee.value=oe,vue.nextTick(()=>{vue.unref(U).init()})};return(oe,ie)=>{const le=vue.resolveComponent("AppEmpty");return vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElContainer),{class:"overflow-hidden app-basic-container"},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElConfigProvider),{locale:vue.unref(ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElAside),{class:"pr-5 mr-5"},{default:vue.withCtx(()=>[vue.createVNode(Menu$1,{ref_key:"menuRef",ref:G,onNodeClick:re},null,512)]),_:1}),vue.createVNode(vue.unref(elementPlus.ElMain),null,{default:vue.withCtx(()=>[vue.unref(ee).dataSourceId?(vue.openBlock(),vue.createBlock(_sfc_main$S,{key:1,ref_key:"viewRef",ref:U,onRefresh:ie[0]||(ie[0]=ae=>vue.unref(G).initMenu())},null,512)):(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$I,[vue.createVNode(le,{description:"请选择数据源"})]))]),_:1})]),_:1},8,["locale"])]),_:1})}}}),_hoisted_1$H=vue.createElementVNode("i",{class:"ri-search-line"},null,-1),_hoisted_2$A={class:"mt-3"},_hoisted_3$u={class:"mt-3"},_hoisted_4$t={key:1,class:"mr-1 -ml-5 text-base ri-edit-circle-fill text-color-primary"},_sfc_main$Q=vue.defineComponent({__name:"menu",emits:["node-click"],setup(te,{expose:U,emit:G}){const ee=vue.ref(""),ne=vue.ref(null),re=vue.ref([{label:"源视图表",value:"ODSVIEW"},{label:"整合数据表",value:"DWD"}]),oe=vue.ref(vue.unref(re)[0].value),{proxy:ie}=vue.getCurrentInstance(),le=G;vue.watch(ee,ve=>{vue.unref(ne).filter(ve)});const ae=(ve,he)=>ve?he.name.includes(ve):!0,se=vue.ref([]),ue=vue.ref([]),ce=vue.ref(!0),de=()=>{ce.value=!0,Promise.all([fetch$1(ie).loadModelMenu({modelLayer:"ODSVIEW"}),fetch$1(ie).loadModelMenu({modelLayer:"DWD"})]).then(ve=>{se.value=Object.keys(ve[0].data).map(he=>({modelName:he,id:he,children:ve[0].data[he]})),ue.value=Object.keys(ve[1].data).map(he=>({modelName:he,id:he,children:ve[1].data[he]})),ce.value=!1})};de();const fe=ve=>{Array.isArray(ve.children)||le("node-click",ve)};return U({init:de}),(ve,he)=>{const pe=vue.resolveComponent("aceHeader");return vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[vue.createVNode(pe,{title:"整合数据",class:"mb-2"},{default:vue.withCtx(()=>[vue.renderSlot(ve.$slots,"top")]),_:3}),vue.createVNode(vue.unref(elementPlus.ElInput),{placeholder:"请输入内容",clearable:"",modelValue:vue.unref(ee),"onUpdate:modelValue":he[0]||(he[0]=ge=>vue.isRef(ee)?ee.value=ge:null)},{prefix:vue.withCtx(()=>[_hoisted_1$H]),_:1},8,["modelValue"]),vue.createElementVNode("div",_hoisted_2$A,[vue.createVNode(vue.unref(elementPlus.ElButtonGroup),null,{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(re),ge=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElButton),{type:vue.unref(oe)==ge.value?"primary":"",key:ge.value,onClick:me=>oe.value=ge.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(ge.label),1)]),_:2},1032,["type","onClick"]))),128))]),_:1})]),vue.createElementVNode("div",_hoisted_3$u,[vue.createVNode(vue.unref(elementPlus.ElSkeleton),{animated:"",loading:vue.unref(ce),count:2},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElTree),{class:"animated fadeIn",ref_key:"treeRef",ref:ne,data:vue.unref(oe)=="DWD"?vue.unref(ue):vue.unref(se),"node-key":"id","default-expand-all":"","highlight-current":"","filter-node-method":ae,onNodeClick:fe},{default:vue.withCtx(({node:ge,data:me})=>[ge.level!=1?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[me.modelCode&&me.openForm!=2?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:vue.normalizeClass(["mr-1 -ml-5 text-base ri-checkbox-circle-fill",[me.publishStatus==2?"text-color-success":"text-color-info"]])},null,2)):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0),me.openForm==2?(vue.openBlock(),vue.createElementBlock("i",_hoisted_4$t)):vue.createCommentVNode("",!0),vue.createElementVNode("span",{class:vue.normalizeClass({"font-bold":ge.level==1})},vue.toDisplayString(me.modelName),3)]),_:1},8,["data"])]),_:1},8,["loading"])])],64)}}}),_withScopeId$g=te=>(vue.pushScopeId("data-v-8dbf5661"),te=te(),vue.popScopeId(),te),_hoisted_1$G={class:"mt-3"},_hoisted_2$z=_withScopeId$g(()=>vue.createElementVNode("td",null,"字段名称",-1)),_hoisted_3$t=_withScopeId$g(()=>vue.createElementVNode("td",null,"字段描述",-1)),_hoisted_4$s=_withScopeId$g(()=>vue.createElementVNode("td",null,"映射字段",-1)),_hoisted_5$m=_withScopeId$g(()=>vue.createElementVNode("td",{width:"120px"},"数据类型",-1)),_hoisted_6$i=_withScopeId$g(()=>vue.createElementVNode("td",null,"数据长度",-1)),_hoisted_7$g=_withScopeId$g(()=>vue.createElementVNode("td",null,"数据标度",-1)),_hoisted_8$c=_withScopeId$g(()=>vue.createElementVNode("td",null,"是否主键",-1)),_hoisted_9$b=_withScopeId$g(()=>vue.createElementVNode("td",null,"唯一校验",-1)),_hoisted_10$a=_withScopeId$g(()=>vue.createElementVNode("td",{style:{width:"50px"}},null,-1)),_hoisted_11$8={class:"sort-target"},_hoisted_12$7={key:0},_hoisted_13$5=["onClick"],_hoisted_14$4=_withScopeId$g(()=>vue.createElementVNode("td",null,[vue.createElementVNode("i",{class:"text-lg cursor-move ri-mouse-line handle text-color-warning"})],-1)),_sfc_main$P=vue.defineComponent({__name:"attribute",props:vue.mergeModels({isRequired:{default:1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(te,{expose:U}){const G=vue.useModel(te,"modelValue");vue.getCurrentInstance();const ee=vue.ref(null),ne=vue.ref({attributeCode:[{required:!0,message:"请输入字段名称"},{pattern:/^[A-Za-z]\w*$/,message:"只能以字母开头,由字母/数字/下划线组成",trigger:"blur"}],attributeComment:[{required:!0,message:"请输入字段描述"}],mapCode:[{required:!0,message:"请输入映射字段"}],dataType:[{required:!0,message:"请选择数据类型"}],dataLength:[{required:!0,message:"请输入数据长度"}],dataScale:[{required:!0,message:"请输入数据标度"}],primaryKey:[{required:!0,message:"请选择是否为主键"}]}),re=ue=>{const ce=ue.dataType;ce!=="decimal"&&(ue.dataScale=0),["autoIncrement","date","time","datetime","int","bigint","double","text"].includes(ce)&&(ue.dataLength=0),ce==="decimal"&&(ue.dataLength=10,ue.dataScale=6),ce==="varchar"&&(ue.dataLength=255)},oe=(ue,ce)=>{ue.primaryKey==2&&vue.unref(G).forEach((fe,ve)=>{ve!=ce&&(fe.primaryKey=1)})},ie=()=>{vue.unref(G).push({nanoid:nanoid()})},le=ue=>{vue.unref(G).splice(ue,1)};return U({validate:async()=>await vue.unref(ee).validate(ue=>ue),isRepeat:()=>{const ue=new Map;let ce="";for(let de=0;de<vue.unref(G).length;de++){let fe=vue.unref(G)[de],ve=ue.get(fe.attributeCode);ve!=null&&(ce+="字段名称 <strong>"+fe.attributeCode+"</strong> 重复(<i>第"+(ve+1)+"行和第"+(de+1)+"行</i>);<br>"),ue.set(vue.unref(G)[de].attributeCode,de)}return ce}}),(ue,ce)=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElForm),{"label-width":"0",model:{modelValue:G.value},size:"small",ref_key:"elFormRef",ref:ee,rules:vue.unref(ne)},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable),{modelValue:G.value,"onUpdate:modelValue":ce[0]||(ce[0]=de=>G.value=de),target:".sort-target",animation:150,handle:".handle"},{default:vue.withCtx(()=>[vue.createElementVNode("table",_hoisted_1$G,[vue.createElementVNode("tr",null,[vue.createElementVNode("td",{style:{width:"50px"}},[vue.createElementVNode("i",{class:"text-lg cursor-pointer ri-add-circle-line text-color-primary",onClick:ie})]),_hoisted_2$z,_hoisted_3$t,_hoisted_4$s,_hoisted_5$m,_hoisted_6$i,_hoisted_7$g,_hoisted_8$c,_hoisted_9$b,_hoisted_10$a]),vue.createElementVNode("tbody",_hoisted_11$8,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(G.value,(de,fe)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:de.nanoid},[de.hide?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("tr",_hoisted_12$7,[vue.createElementVNode("td",null,[vue.createElementVNode("i",{class:"text-lg cursor-pointer ri-indeterminate-circle-line text-color-danger",onClick:ve=>le(fe)},null,8,_hoisted_13$5)]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".attributeCode",rules:vue.unref(ne).attributeCode},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:de.attributeCode,"onUpdate:modelValue":ve=>de.attributeCode=ve,maxlength:"30",showWordLimit:"",placeholder:"字段名称"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".attributeComment",rules:vue.unref(ne).attributeComment},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:de.attributeComment,"onUpdate:modelValue":ve=>de.attributeComment=ve,maxlength:"30",showWordLimit:"",placeholder:"字段描述"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".mapCode",rules:vue.unref(ne).mapCode},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInput),{modelValue:de.mapCode,"onUpdate:modelValue":ve=>de.mapCode=ve,maxlength:"30",showWordLimit:"",placeholder:"映射字段"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".dataType",rules:vue.unref(ne).dataType},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElSelect),{modelValue:de.dataType,"onUpdate:modelValue":ve=>de.dataType=ve,placeholder:"数据类型",class:"w-full",teleported:!1,onChange:()=>re(de)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(commonDataType),ve=>(vue.openBlock(),vue.createBlock(vue.unref(elementPlus.ElOption),{key:ve.value,label:ve.label,value:ve.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".dataLength",rules:vue.unref(ne).dataLength},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{min:0,max:2048,"value-on-clear":0,"controls-position":"right",modelValue:de.dataLength,"onUpdate:modelValue":ve=>de.dataLength=ve,disabled:["autoIncrement","date","time","datetime","int","bigint","double","text"].includes(de.dataType),placeholder:"长度",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElFormItem),{prop:"modelValue."+fe+".dataScale",rules:vue.unref(ne).dataScale},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(elementPlus.ElInputNumber),{modelValue:de.dataScale,"onUpdate:modelValue":ve=>de.dataScale=ve,min:0,max:2048,"value-on-clear":0,"controls-position":"right",disabled:!["decimal"].includes(de.dataType),placeholder:"标度",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:2},1032,["prop","rules"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:de.primaryKey,"onUpdate:modelValue":ve=>de.primaryKey=ve,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":"2","inactive-value":"1",onChange:()=>oe(de,fe)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),vue.createElementVNode("td",null,[vue.createVNode(vue.unref(elementPlus.ElSwitch),{modelValue:de.uniqueKey,"onUpdate:modelValue":ve=>de.uniqueKey=ve,"inline-prompt":"","active-text":"是","inactive-text":"否","active-value":"2","inactive-value":"1"},null,8,["modelValue","onUpdate:modelValue"])]),_hoisted_14$4]))],64))),128))])])]),_:1},8,["modelValue"])]),_:1},8,["model","rules"]))}}),attribute_vue_vue_type_style_index_0_scoped_8dbf5661_lang="",Attribute=_export_sfc$2(_sfc_main$P,[["__scopeId","data-v-8dbf5661"]]),_withScopeId$f=te=>(vue.pushScopeId("data-v-22676e4d"),te=te(),vue.popScopeId(),te),_hoisted_1$F={class:"flex flex-col h-full"},_hoisted_2$y={class:"flex flex-1 overflow-hidden"},_hoisted_3$s={class:"flex flex-col flex-1 mr-3 overflow-hidden"},_hoisted_4$r={class:"h"},_hoisted_5$l=["onClick"],_hoisted_6$h={class:"mr-1 text-base"},_hoisted_7$f={class:"ml-2 text-xs text-color-info"},_hoisted_8$b={class:"text-color-warning"},_hoisted_9$a={class:"flex justify-end flex-1"},_hoisted_10$9=_withScopeId$f(()=>vue.createElementVNode("i",{class:"mr-1 ri-play-mini-fill"},null,-1)),_hoisted_11$7={class:"flex-1 overflow-hidden b"},_hoisted_12$6={class:"flex flex-col flex-1 overflow-hidden"},_hoisted_13$4={class:"h"},_hoisted_14$3=["onClick"],_hoisted_15$2={class:"flex-1 overflow-hidden b"},_hoisted_16$2={class:"flex flex-1 mt-3 overflow-hidden"},_hoisted_17$2={class:"flex flex-col flex-1 mr-3 overflow-hidden"},_hoisted_18$2={class:"flex h"},_hoisted_19$2=["onClick"],_hoisted_20$2={key:0,class:"mr-1 text-color-danger"},_hoisted_21$2={class:"mr-1 text-base"},_hoisted_22$2={key:0,class:"flex justify-end flex-1"},_hoisted_23$2=_withScopeId$f(()=>vue.createElementVNode("i",{class:"mr-1 ri-play-mini-fill"},null,-1)),_hoisted_24$1={class:"flex-1 overflow-hidden b"},_hoisted_25$1={key:0,class:"flex items-center justify-center h-full"},_hoisted_26$1=_withScopeId$f(()=>vue.createElementVNode("i",{class:"ri-table-fill"},null,-1)),_hoisted_27=_withScopeId$f(()=>vue.createElementVNode("i",{class:"ri-database-2-fill"},null,-1)),_hoisted_28={class:"h-full mt-2 overflow-y-auto"},_hoisted_29={class:"overflow-y-auto max-h-96",style:{"min-height":"300px"}},_hoisted_30=_withScopeId$f(()=>vue.createElementVNode("span",{class:"mr-1 text-color-danger"},"*",-1)),_hoisted_31={class:"h-full mt-2 overflow-y-auto"},_hoisted_32={class:"mt-2"},_hoisted_33={key:0,class:"flex flex-col flex-1 overflow-hidden"},_hoisted_34={class:"h"},_hoisted_35=["onClick"],_hoisted_36={class:"flex-1 overflow-hidden b"},_sfc_main$O=vue.defineComponent({__name:"design",props:{widgetType:{default:""}},emits:["success"],setup(te,{expose:U,emit:G}){const ee=te,ne=G,{proxy:re}=vue.getCurrentInstance(),{setFormValue:oe,getFormValue:ie}=re.$globalHooks.useForm(),{openMessage:le}=re.$globalHooks.useMessage(),ae=vue.inject("projectList"),se=vue.computed(()=>{var Me,ze;return((ze=(Me=(vue.unref(ae)??[]).find(Ge=>Ge.value==re.$baseGetCurrentProjectId()))==null?void 0:Me.ext)==null?void 0:ze.storeType)??"-"}),ue=[{label:"SQL编写",value:"1",num:"①"}],ce=vue.ref("1"),de=[{label:"SQL执行结果",value:"1"},{label:"SQL执行结果(JSON)",value:"2"}],fe=vue.ref("1"),ve=vue.ref([]),he=vue.ref(""),pe=vue.ref("1"),ge=[{label:"插件执行结果",value:"1"},{label:"插件执行结果(JSON)",value:"2"}],me=vue.ref("1"),_e=vue.ref(!1),be=vue.ref(null),ye=vue.ref(""),xe=vue.ref([]),Ce=vue.ref(""),$e=vue.ref([]),we=vue.ref(`function plugin(item){
892
892
  var data=JSON.parse(item);
893
893
  return JSON.stringify(data)
894
894
  }`),Ee=vue.ref([]),Ve=vue.ref(!1),Se=vue.ref([]),ke=vue.ref(!1),Ne=vue.ref(null),Ie=vue.ref(""),Pe=vue.computed(()=>Be.find(Me=>Me.fieldName=="extractType"));vue.watch(_e,Me=>{Me&&!vue.unref(Se).length&&Re("javascript",!1)});const Te=(Me=!1)=>{const ze=Oe.find(Ge=>Ge.fieldName=="modelLayer");Me&&(ze.value=""),(ze.options??[]).forEach(Ge=>{Ge.disabled=vue.unref(he)=="view",Ge.value=="ODSVIEW"&&(Ge.disabled=vue.unref(he)!="view")})},De=vue.ref(""),Oe=vue.reactive([{name:"项目名称",type:FieldType.Select,fieldName:"projectId",value:"",required:!0,props:{url:"/api/ace-data-center/project/options",label:"label",value:"code"},hide:!0},{name:"模型层级",type:FieldType.Select,fieldName:"modelLayer",value:"",required:!0,props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=modelLayer",label:"dictValue",value:"dictKey"},optionsSuccess:()=>{Te()},changeFunc:Me=>{const ze=Oe.find(We=>We.fieldName==="modelType");ze.required=Me.value=="DWD",ze.disabled=Me.value!="DWD";const Ge=`${((Me==null?void 0:Me.value)??"").toLocaleLowerCase()}_`;De.value=Ge,Oe.find(We=>We.fieldName==="modelCode").prepend=vue.h("div",{},Ge)}},{name:"模型名称",type:FieldType.Text,fieldName:"modelName",value:"",required:!0},{name:"模型表名",type:FieldType.Text,fieldName:"modelCode",value:"",required:!0},{name:"模型类型",type:FieldType.Select,fieldName:"modelType",value:"",props:{url:"/api/ace-api/blade-system/dict-biz/dictionary?code=modelType",label:"dictValue",value:"dictKey"}}]);vue.watch(he,Me=>{ve.value=[{label:"输出结果",value:"1",num:"②",isRequired:!1}],Me=="view"?ve.value.push({label:"输出模型",value:"2",num:"③",isRequired:!1}):ee.widgetType=="model-add"?ve.value.push({label:"ETL插件编写",value:"2",num:"③",isRequired:!1},{label:"输出模型",value:"3",num:"④",isRequired:!0},{label:"方案作业配置",value:"4",num:"⑤",isRequired:!0}):ve.value.push({label:"ETL插件编写",value:"2",num:"③",isRequired:!1},{label:"方案作业配置",value:"4",num:"④",isRequired:!0}),Te(!0)},{immediate:!0});const Be=vue.reactive([{name:"方案名称",type:FieldType.Text,fieldName:"extractName",value:"",required:!0},{name:"数据流类型",type:FieldType.Radio,fieldName:"streamType",value:"",required:!0,options:[{label:"标准流",value:"STANDARD"},{label:"自定义流",value:"CUSTOM"}]},{name:"数据流类型",type:FieldType.Radio,fieldName:"extractType",value:"",required:!0,options:[{label:"全量抽取",value:"1"},{label:"增量抽取",value:"2"},{label:"协同抽取",value:"3"}],changeFunc:Me=>{Be.find(ze=>ze.fieldName=="incrementalField").hide=Me.value!=2}},{name:"增量字段",type:FieldType.Slot,fieldName:"incrementalField",value:"",required:!0,hide:!0,tip:"该字段必须为本模型字段,并且是SQL结果集中存在的字段"},{name:"taskDefinedId",type:FieldType.Text,fieldName:"taskDefinedId",hide:!0},{name:"id",type:FieldType.Text,fieldName:"id",hide:!0}]),Ae=vue.ref(null),Le=(Me={})=>{vue.nextTick(()=>{if(he.value=ee.widgetType.indexOf("ODSVIEW")==-1?"dataTable":"view",oe(Me??{},Be),Me!=null&&Me.taskDefined&&(ke.value=!0),ee.widgetType.indexOf("ODSVIEW")>=0&&(pe.value="2"),Ce.value=(Me==null?void 0:Me.extractSql)??"",we.value=(Me==null?void 0:Me.extractPluginScript)??`function plugin(item){