@ecan-bi/datav 1.1.98 → 1.1.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
- /*! @ecan-bi/datav@1.1.98 */
2
- (function(h,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","xlsx","big.js"],t):(h=typeof globalThis<"u"?globalThis:h||self,t(h["@ecan/bi-datav"]={},h.Vue,h["echarts/core"],h.ResizeDetector,h.AntDesignVue,null,null,h.LodashEs,h.Dayjs,h.Axios,h.Mitt,null,null,null,h["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,h["echarts/renderers"],h["echarts/charts"],h["echarts/components"],null,h.Echarts,null,h.Xlsx,h.big.js))})(this,function(h,t,be,go,U,br,pr,pe,fe,yo,Wn,Cr,Sr,kr,bo,wr,xr,Ar,_r,ve,ke,X,Tr,Hn,Er,Oe,Zn){var $n,jn,Vn,qn;"use strict";function Jn(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const Yn=Jn(Hn),Qn=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Kn(e,n){function o(l){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[l].apply(e.value,i)}}function a(){const l=Object.create(null);return Qn.forEach(i=>{l[i]=o(i)}),l}return a()}function Xn(e,n,o){let a=null;t.watch([o,e,n],([l,i,r],s,d)=>{l&&i&&r&&(a=be.throttle(()=>{i.resize()},100),go.addListener(l,a)),d(()=>{a&&l&&go.removeListener(l,a)})})}const ea={autoresize:Boolean},ta="ecLoadingOptions";function oa(e,n,o){const a=t.inject(ta,{}),l=t.computed(()=>({...t.unref(a),...o==null?void 0:o.value}));t.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(l.value):i.hideLoading())})}const na={loading:Boolean,loadingOptions:Object},Lr="",aa=/^on[^a-z]/,la=e=>aa.test(e);function ia(e){const n={};for(const o in e)la(o)||(n[o]=e[o]);return n}const ra="x-vue-echarts",sa="ecTheme",ca="ecInitOptions",da="ecUpdateOptions",_e=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...ea,...na},inheritAttrs:!1,setup(e,{attrs:n,listeners:o}){const a=t.shallowRef(),l=t.shallowRef(),i=t.shallowRef(),r=t.inject(sa,null),s=t.inject(ca,null),d=t.inject(da,null),{autoresize:f,manualUpdate:C,loading:y,loadingOptions:w}=t.toRefs(e),m=t.computed(()=>i.value||e.option||Object.create(null)),c=t.computed(()=>e.theme||t.unref(r)||{}),u=t.computed(()=>e.initOptions||t.unref(s)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),p=t.computed(()=>ia(n));function A(x){if(l.value||!a.value)return;const _=l.value=be.init(a.value,c.value,u.value);e.group&&(_.group=e.group);let N=o;N||(N={},Object.keys(n).filter(k=>k.indexOf("on")===0&&k.length>2).forEach(k=>{const g=k.charAt(2).toLowerCase()+k.slice(3);N[g]=n[k]})),Object.keys(N).forEach(k=>{const g=N[k];g&&(k.indexOf("zr:")===0?_.getZr().on(k.slice(3).toLowerCase(),g):_.on(k.toLowerCase(),g))});function L(){if(_&&!_.isDisposed())try{_.resize()}catch(k){if(k.message==="Cannot read property 'get' of undefined")return;throw k}}function v(){_.setOption(x||m.value,S.value)}f.value?t.nextTick(()=>{L(),v()}):v()}function I(x,_){e.manualUpdate&&(i.value=x),l.value?l.value.setOption(x,_||{}):A(x)}function T(){l.value&&(l.value.dispose(),l.value=void 0)}let O=null;t.watch(C,x=>{typeof O=="function"&&(O(),O=null),x||(O=t.watch(()=>e.option,_=>{_&&(l.value?l.value.setOption(_,S.value):A())},{deep:!0}))},{immediate:!0}),t.watch([c,u],()=>{T(),A()},{deep:!0}),t.watchEffect(()=>{e.group&&l.value&&(l.value.group=e.group)});const b=Kn(l,A);return oa(l,y,w),Xn(l,f,a),t.onMounted(()=>{e.option&&A()}),t.onUnmounted(T),{chart:l,root:a,setOption:I,nonEventAttrs:p,...b}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(ra,e)}});function me(e,n){fa(e)&&(e="100%");var o=ma(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function fa(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ma(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ua(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ge(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Xe(e){return e.length===1?"0"+e:String(e)}function ha(e,n,o){return{r:me(e,255)*255,g:me(n,255)*255,b:me(o,255)*255}}function et(e,n,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(n-e)*(6*o):o<1/2?n:o<2/3?e+(n-e)*(2/3-o)*6:e}function ga(e,n,o){var a,l,i;if(e=me(e,360),n=me(n,100),o=me(o,100),n===0)l=o,i=o,a=o;else{var r=o<.5?o*(1+n):o+n-o*n,s=2*o-r;a=et(s,r,e+1/3),l=et(s,r,e),i=et(s,r,e-1/3)}return{r:a*255,g:l*255,b:i*255}}function ya(e,n,o){e=me(e,255),n=me(n,255),o=me(o,255);var a=Math.max(e,n,o),l=Math.min(e,n,o),i=0,r=a,s=a-l,d=a===0?0:s/a;if(a===l)i=0;else{switch(a){case e:i=(n-o)/s+(n<o?6:0);break;case n:i=(o-e)/s+2;break;case o:i=(e-n)/s+4;break}i/=6}return{h:i,s:d,v:r}}function ba(e,n,o){e=me(e,360)*6,n=me(n,100),o=me(o,100);var a=Math.floor(e),l=e-a,i=o*(1-n),r=o*(1-l*n),s=o*(1-(1-l)*n),d=a%6,f=[o,r,i,i,s,o][d],C=[s,o,o,r,i,i][d],y=[i,i,s,o,o,r][d];return{r:f*255,g:C*255,b:y*255}}function pa(e,n,o,a){var l=[Xe(Math.round(e).toString(16)),Xe(Math.round(n).toString(16)),Xe(Math.round(o).toString(16))];return a&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function po(e){return ce(e)/255}function ce(e){return parseInt(e,16)}var Co={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Pe(e){var n={r:0,g:0,b:0},o=1,a=null,l=null,i=null,r=!1,s=!1;return typeof e=="string"&&(e=ka(e)),typeof e=="object"&&(Ce(e.r)&&Ce(e.g)&&Ce(e.b)?(n=ha(e.r,e.g,e.b),r=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ce(e.h)&&Ce(e.s)&&Ce(e.v)?(a=Ge(e.s),l=Ge(e.v),n=ba(e.h,a,l),r=!0,s="hsv"):Ce(e.h)&&Ce(e.s)&&Ce(e.l)&&(a=Ge(e.s),i=Ge(e.l),n=ga(e.h,a,i),r=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=ua(o),{ok:r,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:o}}var Ca="[-\\+]?\\d+%?",Sa="[-\\+]?\\d*\\.\\d+%?",we="(?:".concat(Sa,")|(?:").concat(Ca,")"),tt="[\\s|\\(]+(".concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")\\s*\\)?"),ot="[\\s|\\(]+(".concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")[,|\\s]+(").concat(we,")\\s*\\)?"),ge={CSS_UNIT:new RegExp(we),rgb:new RegExp("rgb"+tt),rgba:new RegExp("rgba"+ot),hsl:new RegExp("hsl"+tt),hsla:new RegExp("hsla"+ot),hsv:new RegExp("hsv"+tt),hsva:new RegExp("hsva"+ot),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ka(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(Co[e])e=Co[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=ge.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=ge.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=ge.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=ge.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=ge.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=ge.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=ge.hex8.exec(e),o?{r:ce(o[1]),g:ce(o[2]),b:ce(o[3]),a:po(o[4]),format:n?"name":"hex8"}:(o=ge.hex6.exec(e),o?{r:ce(o[1]),g:ce(o[2]),b:ce(o[3]),format:n?"name":"hex"}:(o=ge.hex4.exec(e),o?{r:ce(o[1]+o[1]),g:ce(o[2]+o[2]),b:ce(o[3]+o[3]),a:po(o[4]+o[4]),format:n?"name":"hex8"}:(o=ge.hex3.exec(e),o?{r:ce(o[1]+o[1]),g:ce(o[2]+o[2]),b:ce(o[3]+o[3]),format:n?"name":"hex"}:!1)))))))))}function Ce(e){return!!ge.CSS_UNIT.exec(String(e))}var Ue=2,So=.16,wa=.05,xa=.05,Aa=.15,ko=5,wo=4,_a=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function xo(e){var n=e.r,o=e.g,a=e.b,l=ya(n,o,a);return{h:l.h*360,s:l.s,v:l.v}}function We(e){var n=e.r,o=e.g,a=e.b;return"#".concat(pa(n,o,a,!1))}function Ta(e,n,o){var a=o/100,l={r:(n.r-e.r)*a+e.r,g:(n.g-e.g)*a+e.g,b:(n.b-e.b)*a+e.b};return l}function Ao(e,n,o){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=o?Math.round(e.h)-Ue*n:Math.round(e.h)+Ue*n:a=o?Math.round(e.h)+Ue*n:Math.round(e.h)-Ue*n,a<0?a+=360:a>=360&&(a-=360),a}function _o(e,n,o){if(e.h===0&&e.s===0)return e.s;var a;return o?a=e.s-So*n:n===wo?a=e.s+So:a=e.s+wa*n,a>1&&(a=1),o&&n===ko&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function To(e,n,o){var a;return o?a=e.v+xa*n:a=e.v-Aa*n,a>1&&(a=1),Number(a.toFixed(2))}function nt(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[],a=Pe(e),l=ko;l>0;l-=1){var i=xo(a),r=We(Pe({h:Ao(i,l,!0),s:_o(i,l,!0),v:To(i,l,!0)}));o.push(r)}o.push(We(a));for(var s=1;s<=wo;s+=1){var d=xo(a),f=We(Pe({h:Ao(d,s),s:_o(d,s),v:To(d,s)}));o.push(f)}return n.theme==="dark"?_a.map(function(C){var y=C.index,w=C.opacity,m=We(Ta(Pe(n.backgroundColor||"#141414"),Pe(o[y]),w*100));return m}):o}var at={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},lt={},it={};Object.keys(at).forEach(function(e){lt[e]=nt(at[e]),lt[e].primary=lt[e][5],it[e]=nt(at[e],{theme:"dark",backgroundColor:"#141414"}),it[e].primary=it[e][5]});var Eo=[],De=[],Ea="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function La(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function va(e,n){if(n=n||{},e===void 0)throw new Error(Ea);var o=n.prepend===!0?"prepend":"append",a=n.container!==void 0?n.container:document.querySelector("head"),l=Eo.indexOf(a);l===-1&&(l=Eo.push(a)-1,De[l]={});var i;return De[l]!==void 0&&De[l][o]!==void 0?i=De[l][o]:(i=De[l][o]=La(),o==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Lo(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){Ia(e,l,o[l])})}return e}function Ia(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function Ma(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function za(e,n){Ma(e,"[@ant-design/icons-vue] ".concat(n))}function vo(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function rt(e,n,o){return o?t.h(e.tag,Lo({key:n},o,e.attrs),(e.children||[]).map(function(a,l){return rt(a,"".concat(n,"-").concat(e.tag,"-").concat(l))})):t.h(e.tag,Lo({key:n},e.attrs),(e.children||[]).map(function(a,l){return rt(a,"".concat(n,"-").concat(e.tag,"-").concat(l))}))}function Io(e){return nt(e)[0]}function Mo(e){return e?Array.isArray(e)?e:[e]:[]}var Na=`
1
+ /*! @ecan-bi/datav@1.1.99 */
2
+ (function(h,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","xlsx","big.js"],t):(h=typeof globalThis<"u"?globalThis:h||self,t(h["@ecan/bi-datav"]={},h.Vue,h["echarts/core"],h.ResizeDetector,h.AntDesignVue,null,null,h.LodashEs,h.Dayjs,h.Axios,h.Mitt,null,null,null,h["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,h["echarts/renderers"],h["echarts/charts"],h["echarts/components"],null,h.Echarts,null,h.Xlsx,h.big.js))})(this,function(h,t,pe,po,U,Sr,kr,Ce,me,Co,Jn,wr,xr,Ar,So,_r,Tr,Er,Lr,ze,xe,X,vr,Yn,Ir,De,Qn){var qn,Gn,Un,Wn;"use strict";function Kn(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const Xn=Kn(Yn),ea=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ta(e,n){function o(l){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[l].apply(e.value,i)}}function a(){const l=Object.create(null);return ea.forEach(i=>{l[i]=o(i)}),l}return a()}function oa(e,n,o){let a=null;t.watch([o,e,n],([l,i,r],s,d)=>{l&&i&&r&&(a=pe.throttle(()=>{i.resize()},100),po.addListener(l,a)),d(()=>{a&&l&&po.removeListener(l,a)})})}const na={autoresize:Boolean},aa="ecLoadingOptions";function la(e,n,o){const a=t.inject(aa,{}),l=t.computed(()=>({...t.unref(a),...o==null?void 0:o.value}));t.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(l.value):i.hideLoading())})}const ia={loading:Boolean,loadingOptions:Object},Mr="",ra=/^on[^a-z]/,sa=e=>ra.test(e);function ca(e){const n={};for(const o in e)sa(o)||(n[o]=e[o]);return n}const da="x-vue-echarts",fa="ecTheme",ma="ecInitOptions",ua="ecUpdateOptions",Le=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...na,...ia},inheritAttrs:!1,setup(e,{attrs:n,listeners:o}){const a=t.shallowRef(),l=t.shallowRef(),i=t.shallowRef(),r=t.inject(fa,null),s=t.inject(ma,null),d=t.inject(ua,null),{autoresize:u,manualUpdate:b,loading:g,loadingOptions:C}=t.toRefs(e),f=t.computed(()=>i.value||e.option||Object.create(null)),c=t.computed(()=>e.theme||t.unref(r)||{}),m=t.computed(()=>e.initOptions||t.unref(s)||{}),S=t.computed(()=>e.updateOptions||t.unref(d)||{}),p=t.computed(()=>ca(n));function A(_){if(l.value||!a.value)return;const T=l.value=pe.init(a.value,c.value,m.value);e.group&&(T.group=e.group);let P=o;P||(P={},Object.keys(n).filter(M=>M.indexOf("on")===0&&M.length>2).forEach(M=>{const x=M.charAt(2).toLowerCase()+M.slice(3);P[x]=n[M]})),Object.keys(P).forEach(M=>{const x=P[M];x&&(M.indexOf("zr:")===0?T.getZr().on(M.slice(3).toLowerCase(),x):T.on(M.toLowerCase(),x))});function L(){if(T&&!T.isDisposed())try{T.resize()}catch(M){if(M.message==="Cannot read property 'get' of undefined")return;throw M}}function j(){T.setOption(_||f.value,S.value)}u.value?t.nextTick(()=>{L(),j()}):j()}function I(_,T){e.manualUpdate&&(i.value=_),l.value?l.value.setOption(_,T||{}):A(_)}function E(){l.value&&(l.value.dispose(),l.value=void 0)}let O=null;t.watch(b,_=>{typeof O=="function"&&(O(),O=null),_||(O=t.watch(()=>e.option,T=>{T&&(l.value?l.value.setOption(T,S.value):A())},{deep:!0}))},{immediate:!0}),t.watch([c,m],()=>{E(),A()},{deep:!0}),t.watchEffect(()=>{e.group&&l.value&&(l.value.group=e.group)});const y=ta(l,A);return la(l,g,C),oa(l,u,a),t.onMounted(()=>{e.option&&A()}),t.onUnmounted(E),{chart:l,root:a,setOption:I,nonEventAttrs:p,...y}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(da,e)}});function ue(e,n){ha(e)&&(e="100%");var o=ga(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function ha(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ga(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ya(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function He(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ot(e){return e.length===1?"0"+e:String(e)}function ba(e,n,o){return{r:ue(e,255)*255,g:ue(n,255)*255,b:ue(o,255)*255}}function nt(e,n,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(n-e)*(6*o):o<1/2?n:o<2/3?e+(n-e)*(2/3-o)*6:e}function pa(e,n,o){var a,l,i;if(e=ue(e,360),n=ue(n,100),o=ue(o,100),n===0)l=o,i=o,a=o;else{var r=o<.5?o*(1+n):o+n-o*n,s=2*o-r;a=nt(s,r,e+1/3),l=nt(s,r,e),i=nt(s,r,e-1/3)}return{r:a*255,g:l*255,b:i*255}}function Ca(e,n,o){e=ue(e,255),n=ue(n,255),o=ue(o,255);var a=Math.max(e,n,o),l=Math.min(e,n,o),i=0,r=a,s=a-l,d=a===0?0:s/a;if(a===l)i=0;else{switch(a){case e:i=(n-o)/s+(n<o?6:0);break;case n:i=(o-e)/s+2;break;case o:i=(e-n)/s+4;break}i/=6}return{h:i,s:d,v:r}}function Sa(e,n,o){e=ue(e,360)*6,n=ue(n,100),o=ue(o,100);var a=Math.floor(e),l=e-a,i=o*(1-n),r=o*(1-l*n),s=o*(1-(1-l)*n),d=a%6,u=[o,r,i,i,s,o][d],b=[s,o,o,r,i,i][d],g=[i,i,s,o,o,r][d];return{r:u*255,g:b*255,b:g*255}}function ka(e,n,o,a){var l=[ot(Math.round(e).toString(16)),ot(Math.round(n).toString(16)),ot(Math.round(o).toString(16))];return a&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function ko(e){return fe(e)/255}function fe(e){return parseInt(e,16)}var wo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Fe(e){var n={r:0,g:0,b:0},o=1,a=null,l=null,i=null,r=!1,s=!1;return typeof e=="string"&&(e=Aa(e)),typeof e=="object"&&(Se(e.r)&&Se(e.g)&&Se(e.b)?(n=ba(e.r,e.g,e.b),r=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Se(e.h)&&Se(e.s)&&Se(e.v)?(a=He(e.s),l=He(e.v),n=Sa(e.h,a,l),r=!0,s="hsv"):Se(e.h)&&Se(e.s)&&Se(e.l)&&(a=He(e.s),i=He(e.l),n=pa(e.h,a,i),r=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=ya(o),{ok:r,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:o}}var wa="[-\\+]?\\d+%?",xa="[-\\+]?\\d*\\.\\d+%?",Ae="(?:".concat(xa,")|(?:").concat(wa,")"),at="[\\s|\\(]+(".concat(Ae,")[,|\\s]+(").concat(Ae,")[,|\\s]+(").concat(Ae,")\\s*\\)?"),lt="[\\s|\\(]+(".concat(Ae,")[,|\\s]+(").concat(Ae,")[,|\\s]+(").concat(Ae,")[,|\\s]+(").concat(Ae,")\\s*\\)?"),ye={CSS_UNIT:new RegExp(Ae),rgb:new RegExp("rgb"+at),rgba:new RegExp("rgba"+lt),hsl:new RegExp("hsl"+at),hsla:new RegExp("hsla"+lt),hsv:new RegExp("hsv"+at),hsva:new RegExp("hsva"+lt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Aa(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(wo[e])e=wo[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=ye.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=ye.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=ye.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=ye.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=ye.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=ye.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=ye.hex8.exec(e),o?{r:fe(o[1]),g:fe(o[2]),b:fe(o[3]),a:ko(o[4]),format:n?"name":"hex8"}:(o=ye.hex6.exec(e),o?{r:fe(o[1]),g:fe(o[2]),b:fe(o[3]),format:n?"name":"hex"}:(o=ye.hex4.exec(e),o?{r:fe(o[1]+o[1]),g:fe(o[2]+o[2]),b:fe(o[3]+o[3]),a:ko(o[4]+o[4]),format:n?"name":"hex8"}:(o=ye.hex3.exec(e),o?{r:fe(o[1]+o[1]),g:fe(o[2]+o[2]),b:fe(o[3]+o[3]),format:n?"name":"hex"}:!1)))))))))}function Se(e){return!!ye.CSS_UNIT.exec(String(e))}var Ze=2,xo=.16,_a=.05,Ta=.05,Ea=.15,Ao=5,_o=4,La=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function To(e){var n=e.r,o=e.g,a=e.b,l=Ca(n,o,a);return{h:l.h*360,s:l.s,v:l.v}}function Je(e){var n=e.r,o=e.g,a=e.b;return"#".concat(ka(n,o,a,!1))}function va(e,n,o){var a=o/100,l={r:(n.r-e.r)*a+e.r,g:(n.g-e.g)*a+e.g,b:(n.b-e.b)*a+e.b};return l}function Eo(e,n,o){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=o?Math.round(e.h)-Ze*n:Math.round(e.h)+Ze*n:a=o?Math.round(e.h)+Ze*n:Math.round(e.h)-Ze*n,a<0?a+=360:a>=360&&(a-=360),a}function Lo(e,n,o){if(e.h===0&&e.s===0)return e.s;var a;return o?a=e.s-xo*n:n===_o?a=e.s+xo:a=e.s+_a*n,a>1&&(a=1),o&&n===Ao&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function vo(e,n,o){var a;return o?a=e.v+Ta*n:a=e.v-Ea*n,a>1&&(a=1),Number(a.toFixed(2))}function it(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[],a=Fe(e),l=Ao;l>0;l-=1){var i=To(a),r=Je(Fe({h:Eo(i,l,!0),s:Lo(i,l,!0),v:vo(i,l,!0)}));o.push(r)}o.push(Je(a));for(var s=1;s<=_o;s+=1){var d=To(a),u=Je(Fe({h:Eo(d,s),s:Lo(d,s),v:vo(d,s)}));o.push(u)}return n.theme==="dark"?La.map(function(b){var g=b.index,C=b.opacity,f=Je(va(Fe(n.backgroundColor||"#141414"),Fe(o[g]),C*100));return f}):o}var rt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},st={},ct={};Object.keys(rt).forEach(function(e){st[e]=it(rt[e]),st[e].primary=st[e][5],ct[e]=it(rt[e],{theme:"dark",backgroundColor:"#141414"}),ct[e].primary=ct[e][5]});var Io=[],Re=[],Ia="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Ma(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function za(e,n){if(n=n||{},e===void 0)throw new Error(Ia);var o=n.prepend===!0?"prepend":"append",a=n.container!==void 0?n.container:document.querySelector("head"),l=Io.indexOf(a);l===-1&&(l=Io.push(a)-1,Re[l]={});var i;return Re[l]!==void 0&&Re[l][o]!==void 0?i=Re[l][o]:(i=Re[l][o]=Ma(),o==="prepend"?a.insertBefore(i,a.childNodes[0]):a.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function Mo(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){Na(e,l,o[l])})}return e}function Na(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function Ba(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Oa(e,n){Ba(e,"[@ant-design/icons-vue] ".concat(n))}function zo(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function dt(e,n,o){return o?t.h(e.tag,Mo({key:n},o,e.attrs),(e.children||[]).map(function(a,l){return dt(a,"".concat(n,"-").concat(e.tag,"-").concat(l))})):t.h(e.tag,Mo({key:n},e.attrs),(e.children||[]).map(function(a,l){return dt(a,"".concat(n,"-").concat(e.tag,"-").concat(l))}))}function No(e){return it(e)[0]}function Bo(e){return e?Array.isArray(e)?e:[e]:[]}var Pa=`
3
3
  .anticon {
4
4
  display: inline-block;
5
5
  color: inherit;
@@ -53,8 +53,8 @@
53
53
  transform: rotate(360deg);
54
54
  }
55
55
  }
56
- `,zo=!1,Ba=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Na;t.nextTick(function(){zo||(typeof window<"u"&&window.document&&window.document.documentElement&&va(n,{prepend:!0}),zo=!0)})},Oa=["icon","primaryColor","secondaryColor"];function Pa(e,n){if(e==null)return{};var o=Da(e,n),a,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)a=i[l],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function Da(e,n){if(e==null)return{};var o={},a=Object.keys(e),l,i;for(i=0;i<a.length;i++)l=a[i],!(n.indexOf(l)>=0)&&(o[l]=e[l]);return o}function He(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){Fa(e,l,o[l])})}return e}function Fa(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var Fe={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Ra(e){var n=e.primaryColor,o=e.secondaryColor;Fe.primaryColor=n,Fe.secondaryColor=o||Io(n),Fe.calculated=!!o}function $a(){return He({},Fe)}var Ie=function(n,o){var a=He({},n,o.attrs),l=a.icon,i=a.primaryColor,r=a.secondaryColor,s=Pa(a,Oa),d=Fe;if(i&&(d={primaryColor:i,secondaryColor:r||Io(i)}),Ba(),za(vo(l),"icon should be icon definiton, but got ".concat(l)),!vo(l))return null;var f=l;return f&&typeof f.icon=="function"&&(f=He({},f,{icon:f.icon(d.primaryColor,d.secondaryColor)})),rt(f.icon,"svg-".concat(f.name),He({},s,{"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ie.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ie.inheritAttrs=!1,Ie.displayName="IconBase",Ie.getTwoToneColors=$a,Ie.setTwoToneColors=Ra;const st=Ie;function ja(e,n){return Ua(e)||Ga(e,n)||qa(e,n)||Va()}function Va(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qa(e,n){if(e){if(typeof e=="string")return No(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return No(e,n)}}function No(e,n){(n==null||n>e.length)&&(n=e.length);for(var o=0,a=new Array(n);o<n;o++)a[o]=e[o];return a}function Ga(e,n){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var a=[],l=!0,i=!1,r,s;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(a.push(r.value),!(n&&a.length===n));l=!0);}catch(d){i=!0,s=d}finally{try{!l&&o.return!=null&&o.return()}finally{if(i)throw s}}return a}}function Ua(e){if(Array.isArray(e))return e}function Bo(e){var n=Mo(e),o=ja(n,2),a=o[0],l=o[1];return st.setTwoToneColors({primaryColor:a,secondaryColor:l})}function Wa(){var e=st.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ha=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Za(e,n){return Ka(e)||Qa(e,n)||Ya(e,n)||Ja()}function Ja(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ya(e,n){if(e){if(typeof e=="string")return Oo(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Oo(e,n)}}function Oo(e,n){(n==null||n>e.length)&&(n=e.length);for(var o=0,a=new Array(n);o<n;o++)a[o]=e[o];return a}function Qa(e,n){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var a=[],l=!0,i=!1,r,s;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(a.push(r.value),!(n&&a.length===n));l=!0);}catch(d){i=!0,s=d}finally{try{!l&&o.return!=null&&o.return()}finally{if(i)throw s}}return a}}function Ka(e){if(Array.isArray(e))return e}function Po(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){ct(e,l,o[l])})}return e}function ct(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function Xa(e,n){if(e==null)return{};var o=el(e,n),a,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)a=i[l],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function el(e,n){if(e==null)return{};var o={},a=Object.keys(e),l,i;for(i=0;i<a.length;i++)l=a[i],!(n.indexOf(l)>=0)&&(o[l]=e[l]);return o}Bo("#1890ff");var Me=function(n,o){var a,l=Po({},n,o.attrs),i=l.class,r=l.icon,s=l.spin,d=l.rotate,f=l.tabindex,C=l.twoToneColor,y=l.onClick,w=Xa(l,Ha),m=(a={anticon:!0},ct(a,"anticon-".concat(r.name),!!r.name),ct(a,i,i),a),c=s===""||s||r.name==="loading"?"anticon-spin":"",u=f;u===void 0&&y&&(u=-1,w.tabindex=u);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,p=Mo(C),A=Za(p,2),I=A[0],T=A[1];return t.createVNode("span",Po({role:"img","aria-label":r.name},w,{onClick:y,class:m}),[t.createVNode(st,{class:c,icon:r,primaryColor:I,secondaryColor:T,style:S},null)])};Me.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Me.displayName="AntdIcon",Me.inheritAttrs=!1,Me.getTwoToneColor=Wa,Me.setTwoToneColor=Bo;const Do=Me;var tl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const ol=tl;function Fo(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){nl(e,l,o[l])})}return e}function nl(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var dt=function(n,o){var a=Fo({},n,o.attrs);return t.createVNode(Do,Fo({},a,{icon:ol}),null)};dt.displayName="CloseOutlined",dt.inheritAttrs=!1;const al=dt;var ll={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const il=ll;function Ro(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){rl(e,l,o[l])})}return e}function rl(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var ft=function(n,o){var a=Ro({},n,o.attrs);return t.createVNode(Do,Ro({},a,{icon:il}),null)};ft.displayName="LoadingOutlined",ft.inheritAttrs=!1;const sl=ft,cl=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:U.Spin},setup(){return{indicator:t.h(sl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),vr="",W=(e,n)=>{const o=e.__vccOpts||e;for(const[a,l]of n)o[a]=l;return o},dl={class:"spin-wrapper"};function fl(e,n,o,a,l,i){const r=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",dl,[e.spinning?(t.openBlock(),t.createBlock(r,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const Re=W(cl,[["render",fl]]),ml=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:U.Skeleton}});function ul(e,n,o,a,l,i){const r=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(r,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Ze=W(ml,[["render",ul]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const H=(e,n)=>{if(e.install=o=>{for(const a of[e,...Object.values(n??{})])o.component(a.name,a)},n)for(const[o,a]of Object.entries(n))e[o]=a;return e},K={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},Z=e=>{const n={};if(typeof e=="object"&&e!=null)for(const o in e){const a=e[o];n[o]={type:a==null?void 0:a.constructor,default:a}}return n},mt={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},ut=Z(mt),hl=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex"],Q=(e,n=[])=>{const o=pe.without(hl,...n);return t.computed(()=>pe.pick(e,o))},ht="EVENT_BUS",re="GLOBAL_CONFIG",le="GLOBAL_MODEL",se="REQUEST_MODEL",$o="GLOBAL_TOKEN",$e="REFRESH_PAGE",jo="MODAL_MODEL",ze=18,Vo=($n=window==null?void 0:window.config)==null?void 0:$n.indicatorURL;(jn=window==null?void 0:window.config)!=null&&jn.uploadPath;const qo=((Vn=window==null?void 0:window.config)==null?void 0:Vn.routerBaseURL)||"./",gl=((qn=window==null?void 0:window.config)==null?void 0:qn.erdURL)||"",ne=(e,n)=>{t.watch(()=>e.id,o=>{const a=t.inject(ht,{onEvent:(l,i)=>{}});o!=null&&o!==""&&a.onEvent(o,n)},{immediate:!0})},ee=e=>{const n=e.events,o=e.id,a=t.inject(ht,{emitEvent:(i,r)=>{}}),{touchEventId:l}=t.inject(re,{touchEventId:t.ref("")});return(i,r=()=>{})=>function(){r.call(this,...arguments);const{emitEvent:s}=a;n.forEach(d=>{if(i===d.on)try{l.value=o,s(d.target,d.emit)}catch(f){console.error(f)}})}},je=(e,n)=>{let{name:o="name",value:a="value",type:l="type"}=n||{};o=o==null?void 0:o.trim(),a=a==null?void 0:a.trim(),l=l==null?void 0:l.trim();const i=new Set,r=new Map,s=e.length;for(let C=0;C<s;C++){const y=e[C],w=y[o]||"",m=y[a]||"",c=y[l]||"";if(i.add(w),r.has(c)){const u=r.get(c);u.push({name:w,value:m,...y}),r.set(c,u)}else r.set(c,[{name:w,value:m,...y}])}const d=Array.from(i),f=[];for(const[C,y]of r)f.push({name:C,data:y});return{dimensions:d,dataset:f}},Go=window.config.requestErrorTip,xe=yo.create({timeout:1e3*180});xe.interceptors.request.use(e=>e,e=>Promise.reject(e)),xe.interceptors.response.use(e=>{var n,o,a;return Go&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&U.message.error({content:((o=e==null?void 0:e.data)==null?void 0:o.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR"}),e},e=>{if(Go)if(e.message.includes("timeout"))U.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&U.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&U.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const yl=e=>e.replace(/\\n/g,`
59
- `),gt=(e,n=2)=>{const o=parseFloat(e+"");return isNaN(o)?e:o.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},bl=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Je=(e,n=2)=>{const o=e+"";if(o.includes("%"))return e;const a=parseFloat(o);return isNaN(a)?e:`${(a*100).toFixed(n)}%`},Ye=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,Qe=(e,n)=>{const o={dayjs:fe,...n};let a="";const l=[];for(const s in o)a+=`${s},`,l.push(o[s]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let r;try{r=Function(`"use strict";return (${i})`)()(...l)}catch{return e}return r},te=(e="",{textData:n,codeData:o}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let d=0;d<s.length;d++){const f=s[d];let C=f.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,w=C.match(y);for(let m=0;m<w.length;m++){const c=w[m],u=r[c];u!=null&&(C=C.replace(c,u))}(/\(.*\)/g.test(C)||/[+/\\*]/g.test(C))&&(C=Qe(C,o)),e=e.replace(f,C)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),l&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},ue=(e,n=()=>{})=>{const{requestUrl:o,requestMethod:a,requestHeaders:l,requestParams:i,requestInterval:r,isOpenRequestTimer:s}=e,{contextRequestUrl:d,touchEventId:f}=t.inject(re,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:C}=t.inject(le,{getGlobalModel:c=>{}}),y=te(o),w=async(c={})=>{if(!y||!a||!l)return;let u={};i.forEach(T=>{const{key:O,value:b}=T;if(typeof b=="object"&&b!=null&&b.id){let x={};const{id:_,prop:N,propKey:L,operate:v}=b;_==="THIS"?x=C(t.unref(f))||{}:x=C(_)||{};const k=t.unref(x[N]);let g=null;if(["date","range"].some(E=>Ye(x==null?void 0:x.type,E))){const{value:E,type:z,mode:D}=v||{};if(E&&z&&D)switch(z){case"add":g=t.unref(k).add(E,D);break;case"minus":g=t.unref(k).subtract(E,D);break}g==null&&(g=t.unref(k)),g=(g==null?void 0:g.format((L==null?void 0:L.trim())||x.format))||""}else Object.prototype.toString.call(k)==="[object Object]"?L?g=k[L]:g=N?k[N]:k:Ye(x==null?void 0:x.type,"select")&&t.unref(k)&&N&&Array.isArray(t.unref(k))?g=t.unref(k).map(E=>Object.prototype.hasOwnProperty.call(E,N)?E[N]:E):g=k;u[O]=g}else typeof b=="string"&&(u[O]=te(b))}),u={...window.config.requestParams,...c,...u};let S="";const p=Object.keys(u),A=p.length-1,I=p.length;p.forEach((T,O)=>{let b=u[T];Object.prototype.toString.call(b)==="[object Object]"&&(b=JSON.stringify(b)),O===0?I!==1?S+=`?${T}=${b}&`:S+=`?${T}=${b}`:O===A?S+=`${T}=${b}`:S+=`${T}=${b}&`});try{const T=["get","head"].includes(a);let O=T?y+S:y;u.dataSqlId&&!O.includes("dataSqlId")&&(O+=`${O.includes("?")?"&":"?"}dataSqlId=${u.dataSqlId}`);const b=await xe({baseURL:t.unref(d)||"",url:O,method:a,headers:l,data:T?{}:u});return n(b),b}catch(T){console.error(T)}},m=s&&setInterval(w,r*1e3);return t.onUnmounted(()=>{clearInterval(m)}),w},Ne=(e=[],n)=>{let{name:o="name",types:a=[]}=n||{};o=(o==null?void 0:o.trim())||o;const l=new Set,i=new Map,r=e.length,s=a.length;if(r===1){const C=[];for(let w=0;w<s;w++){const m=a[w],{label:c,value:u}=m,S={...e[0],value:e[0][u]};l.add(c),C.push(S)}const y=e[0][o]||"";i.set(y,C)}else for(let C=0;C<r;C++){const y=e[C],w=y[o];l.add(w);for(let m=0;m<s;m++){const c=a[m],{label:u,value:S}=c,p={...y,value:y[S]};if(i.has(u)){const A=i.get(u);A.push(p),i.set(u,A)}else i.set(u,[p])}}const d=Array.from(l),f=[];for(const[C,y]of i)f.push({name:C,data:y});return{dimensions:d,dataset:f}},Te=(e,n=!1)=>{var a;if(!e)return e;let o="";return e!=null&&e.includes("://")?o=e:o=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,n&&(o=`url(${o})`),o},Uo=(e,n)=>{const o=`${qo}/preview?pageId=${n}`,a=`${qo}/${n}`;return e==="preview"?o:a},Ee=(e,n)=>{var l;if(e==null)return n;const o=e.match(/\{.*\}/g);if(o==null||o.length===0)return n;const a=o.length;for(let i=0;i<a;i++){const r=o[i];if(r==null||r==="")break;let s=(l=r.slice(1,-1))==null?void 0:l.trim();s=s==null?void 0:s.replace(/value/g,n);try{let d=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(d=Qe(s)),e=e.replace(r,d)}catch{e=e.replace(r,s)}}return e},Ve=(e={})=>{const{requestToken:n}=t.inject($o,{requestToken:()=>{}});e.dataType==="indicator"&&n();const o=(r={})=>{const{label:s,name:d,location:f,show:C,indexCode:y}=r;return{label:s,columnName:d,location:f,show:C,calcType:"COLUMN",hrpIndexCode:y}},a=(r={})=>{const{label:s,name:d,location:f,show:C,indexCode:y,calcType:w="COLUMN",builtInFormula:m,builtInValueSource:c,builtInCalcWay:u,formula:S,conditions:p}=r;return{label:s,columnName:d,location:f,show:C,calcType:w,hrpIndexCode:y,aggregate:"SUM",builtInFormula:m,builtInValueSource:c,builtInCalcWay:u,formula:S,conditions:p}},{getGlobalModel:l}=t.inject(le,{getGlobalModel:r=>{}}),i=(r=[])=>{var f;const s=r.length;console.log("controlList",r);const d=[];for(let C=0;C<s;C++){const y=r[C],{id:w,conditionLabel:m,conditionKey:c,conditionValueType:u}=y,S={rule:"NONE",label:m,fieldName:c,fieldValue:"2020-02",dateFormat:"YYYY-MM",valueType:u},p=l(w)||{};if(console.log("model",p),Ye(p.type,"date")){const{value:A,format:I}=p||{};S.fieldValue=(f=t.unref(A))==null?void 0:f.format(I),S.dateFormat=I}d.push(S)}return d};return async()=>{var k;const{graphicConfig:r,type:s}=e;let{source:d,dataViewId:f,plugin:C="1",layer:y,chartType:w,classificationList:m=[],seriesList:c=[],leftAxisList:u=[],rightAxisList:S=[],queryColumnList:p=[],indicators:A=[],controlList:I=[],dataSourceId:T,idxLibMode:O,preview:b=!1}=r||{};y==null&&(Ye(s,"table")?y="1":y="2");let x;if(Array.isArray(m)&&m.length>0){const g=m.length;for(let P=0;P<g;P++){const E=m[P]||{},{label:z="",name:D="",show:j=!1,sort:B,customGroup:R,conditions:q}=E;if(j||g===1){x={label:z,columnName:D,show:j,sort:B,customGroup:R,conditions:q};break}}}let _;if(Array.isArray(c)&&c.length>0){const g=c.length;for(let P=0;P<g;P++){const E=c[P]||{},{label:z="",name:D="",show:j=!1,sort:B,customGroup:R,conditions:q}=E;if(j||g===1){_={label:z,columnName:D,show:j,sort:B,customGroup:R,conditions:q};break}}}const N=[];p==null||p.forEach(g=>{N.push(o(g))});const L=[];if(u==null||u.forEach(g=>{g.location="LEFT",L.push(a(g))}),S==null||S.forEach(g=>{g.location="RIGHT",L.push(a(g))}),A==null||A.forEach(g=>{g.location="LEFT",L.push(a(g))}),y==="1"&&N.length===0)return;if(y==="2"&&L.length===0)return;const v=i(I);try{return await xe.post(`${Vo}/diagram`,{source:d,dataViewId:f,plugin:C,layer:y,chartType:w,classification:x,series:_,indicatorList:L,queryColumns:N,pageFlag:!0,sqlConditions:v,dataSourceId:T,idxLibMode:O,preview:b},{headers:{Authentication:(k=window==null?void 0:window.config)==null?void 0:k.indicatorToken,operateContext:"ygt"}})}catch(g){console.error(g)}}},pl=()=>{const n=window.location.search.slice(1).split("&"),o=n.length,a={};for(let l=0;l<o;l++){const i=n[l];if(i==null||i==="")continue;const r=i.split("=");if(Array.isArray(r)){const s=r[0];a[s]=r[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},Cl=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...ut},setup(e){const n=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:Te(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),o=t.ref(0),a=t.ref(0),l=t.ref(0),i=t.ref(0),r=t.ref(!1),s=t.ref();let d;const f=()=>new Promise(u=>{t.nextTick(()=>{e.width&&e.height?(o.value=parseFloat(e.width),a.value=parseFloat(e.height)):(o.value=s.value.clientWidth,a.value=s.value.clientHeight),(!l.value||!i.value)&&(l.value=window.screen.width,i.value=window.screen.height),u()})}),C=()=>{o.value&&a.value?(s.value.style.width=`${o.value}px`,s.value.style.height=`${a.value}px`):(s.value.style.width=`${l.value}px`,s.value.style.height=`${i.value}px`)},y=()=>{const u=document.body.clientWidth,S=document.body.clientHeight,p=o.value||l.value,A=a.value||i.value,I=u/p,T=S/A;s.value&&(s.value.style.transform=`scale(${I}, ${T})`)},w=pe.debounce(async()=>{await f(),y()},100),m=()=>{const u=window.MutationObserver;d=new u(w),d.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},c=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return t.onMounted(async()=>{r.value=!1,await f(),C(),y(),window.addEventListener("resize",w),m(),r.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",w),c()}),{style:n,container:s,ready:r}}}),Ir="",Sl={id:"container",ref:"container"};function kl(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",Sl,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Wo=H(W(Cl,[["render",kl],["__scopeId","data-v-242d350e"]])),yt={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},bt=Z(yt),wl=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...bt},setup(e,{expose:n}){pl();const o=t.ref(),a=()=>{o.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>te(e.contextRequestUrl)),i=t.computed(()=>e.pageMode),r=t.computed(()=>e.theme),s=t.ref("");t.provide(re,{contextRequestUrl:l,pageMode:i,theme:r,touchEventId:s});const d=new Map;console.log("globalModel",d);const f=z=>d.get(z),C=(z,D)=>{d.set(z,D)};t.provide(le,{getGlobalModel:f,setGlobalModel:C});const y=[],w=()=>{y.pop()},m=z=>{y.push(z)},c=new Map,u=z=>c.get(z),S=(z,D)=>{c.set(z,D)};t.provide(jo,{popUseModalIds:w,pushUseModalIds:m,getModalModel:u,setModalModel:S});const p=Wn(),A=new Set,I=(z,D)=>{A.add(z),p.on(z,j=>typeof D[j]=="function"&&D[j]()),t.onBeforeUnmount(()=>{T(z)})},T=z=>{A.delete(z),p.off(z)},O=(z,D)=>{if(z==="PAGE"){const j=y.length;let B=[];if(j===0)B=[...A];else{const R=y[j-1];B=[...u(R)]}B.forEach(R=>{p.emit(R,D)})}else p.emit(z,D)};t.provide(ht,{onEvent:I,offEvent:T,emitEvent:O});const b=t.ref(0),x=()=>{b.value=t.unref(b)+1};t.provide($o,{requestToken:x});const _=new Map,N=new Map,L=({requestFn:z=()=>{},sortNum:D=0,id:j=""})=>{if(_.has(D)){const B=_.get(D);B==null||B.push(z)}else _.set(D,[z]);N.set(j,z)},v=z=>new Promise((D,j)=>{const B=z.map(R=>R());Promise.all(B).then(R=>{D(R)}).catch(R=>{j(R)})}),k=async()=>{var j;const z=await yo.get(`${Vo}/user/anonymous?username=admin&businessOfficeId=350421`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt",Authentication:""}}),{token:D}=((j=z.data)==null?void 0:j.data)||{};window.config.indicatorToken=D},g=z=>new Promise(async(D,j)=>{if(z){if(typeof z=="string"){const B=N.get(z);if(typeof B=="function"){const R=xe.interceptors.response.use(q=>(D(q),q),q=>(j(q),Promise.reject(q)));B(),xe.interceptors.response.eject(R)}}}else{const B=Array.from(_);B.sort((q,de)=>de[0]-q[0]);const R=B.length;try{e.pageMode!=="design"&&t.unref(b)>0&&await k();for(let q=0;q<R;q++){const de=B[q][1];await v(de)}}catch(q){console.error(q)}finally{_.clear(),D(null)}}});t.provide(se,{setRequest:L,touchRequest:g});const P=()=>{p.emit($e)};t.provide($e,{emitRefreshPage:P});const E=z=>{p.on($e,()=>z()),t.onMounted(()=>{p.off($e)})};return t.onBeforeUnmount(()=>{_==null||_.clear(),N==null||N.clear()}),n({touchRequest:g,getGlobalModel:f,onRefreshPage:E}),{providerConfig:o}}}),xl={id:"ProviderConfig",ref:"providerConfig"};function Al(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",xl,[t.renderSlot(e.$slots,"default")],512)}const Ho=H(W(wl,[["render",Al]])),pt={...K,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{}},Ct=Z(pt),Zo=["refreshData","click","valueChange"],_l="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",Tl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",El=t.defineComponent({name:"EcanText",components:{Skeleton:Ze},props:{...Ct},setup(e){const n=Q(e),o=t.ref({});t.watch(()=>[e.data,e.dataType],([m,c])=>{c==="static"&&(o.value=m)},{immediate:!0});const a=t.computed(()=>{var S;const m=t.unref(o);let c=e.text;c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>"),c=c==null?void 0:c.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const u=c.match(/\{(.+?)\}/g);if(u==null||u.length===0)return c;for(let p=0;p<u.length;p++){const A=u[p],I=(S=A==null?void 0:A.slice(1,A.length-1))==null?void 0:S.trim();let T=I;const O=I.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let x=0;x<O.length;x++){const _=O[x],N=m[_];N&&(T=I.replace(_,N))}if(/\(.*\)/g.test(T)){const x=Qe(T);x!=null&&(T=x)}let b=T;if(b===I&&(b=e.variableDefaultValue),b!=null){const x=e.format;x==="percentage"?(b=+b,isNaN(b)?c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`):b>=0?(b=(b*100).toFixed(2),c=c.replace(A,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${_l}"/>${b}%</span>`)):(b=(b*100).toFixed(2),c=c.replace(A,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Tl}"/>${Math.abs(+b)}%</span>`))):e.format==="percent"?(b=+b,isNaN(b)||(b=(b*100).toFixed(2),c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}%</span>`))):e.format==="money"?(b=+b,isNaN(b)||(b=gt(b),c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`))):x==="thousands"?(b=+b,isNaN(b)||(b=bl(b),c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`))):c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${b}</span>`)}}return`<span>${c}</span>`}),{pageMode:l}=t.inject(re,{pageMode:"normal"}),i=ue(e),r=t.ref(!1),s=async()=>{var m;try{r.value=!0;const c=await i();o.value=((m=c==null?void 0:c.data)==null?void 0:m.data)||{}}catch(c){console.error(c)}finally{r.value=!1}},d=()=>{e.dataType!=="static"&&s()};ne(e,{refreshData:d});const{setRequest:f}=t.inject(se,{setRequest:({id:m,sortNum:c,requestFn:u})=>{}});f({id:e.id,requestFn:d,sortNum:e.requestSort}),ne(e,{refreshData:d});const C=ee(e),y=C("click",()=>{if(!e.linkPage&&!e.href)return;const m=e.linkPage||"",c=Uo(t.unref(l),m),u=e.href;let S=u||c;S=te(S);const p=e.target;p&&(p!=="event"?window.open(S,"_"+p):window.parent.postMessage({type:"openPage",url:u},"*"))}),w=C("valueChange",()=>{});return t.watch(()=>a.value,(m,c)=>{m!==c&&w()}),{style:n,myText:a,loading:r,click:y}}}),Nr="",Ll=["innerHTML"];function vl(e,n,o,a,l,i){const r=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(r,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-text",style:t.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Ll))}const Jo=H(W(El,[["render",vl],["__scopeId","data-v-e3658bca"]])),Il=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),Or="",Ml={class:"red"};function zl(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",Ml,t.toDisplayString(e.text),1)}const Yo=H(W(Il,[["render",zl],["__scopeId","data-v-4dd9c03e"]])),St={...K,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},kt=Z(St),Qo=["timeChange"],Nl=t.defineComponent({name:"EcanTimeDisplay",props:{...kt},setup(e){const n=Q(e),o=()=>{const{format:f,operate:C}=e;let y=fe();if(C){const{type:w,value:m,mode:c}=C;switch(w){case"add":y=y.add(m,c);break;case"minus":y=y.subtract(m,c)}}return y.format(f)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=o()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let l=null;const i=()=>{clearInterval(l),l=null},s=ee(e)("timeChange",()=>{}),d=()=>{l&&i();let f=1e3;const{value:C,mode:y}=e.updateInterval||{};C&&(f=f*C);const w={second:1,minute:60,hour:60*60,day:24*60*60};y&&(f=f*w[y]),l=setInterval(()=>{a.value=o(),s()},f)};return ne(e,{timeChange:s}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:n,time:a}}}),Dr="";function Bl(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Ko=H(W(Nl,[["render",Bl],["__scopeId","data-v-b628fca2"]])),wt={...K,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},xt=Z(wt),Xo=["refreshData","click"],Ol=t.defineComponent({name:"EcanList",components:{Skeleton:Ze},props:{...xt},setup(e){const n=t.ref(e.data),o=Q(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(m,c)=>c==null||c===""?m:{money:gt,percentage:Je,contrast:Je}[c](m)||"",i=(m,c)=>{const u=parseFloat(m+"");if(c!=="contrast")return"";switch(!0){case u>=0:return"goUp";case u<0:return"goDown"}},r=ue(e),s=t.ref(!1),d=async()=>{var m;if(e.dataType==="request")try{s.value=!0;const c=await r();n.value=((m=c==null?void 0:c.data)==null?void 0:m.data.rows)||[]}catch(c){console.error(c)}finally{s.value=!1}},f=()=>{d()},y=ee(e)("click",()=>{});ne(e,{refreshData:f});const{setRequest:w}=t.inject(se,{setRequest:({id:m,sortNum:c,requestFn:u})=>{}});return w({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,formatFn:l,columnStyle:a,contrastClass:i,dataSource:n,loading:s,click:y}}}),Rr="",$r="",Pl=e=>(t.pushScopeId("data-v-7aa27677"),e=e(),t.popScopeId(),e),Dl={key:0,class:"title"},Fl={key:0,class:"ranking"},Rl={key:1,class:"ecan-list-content"},$l={key:0,class:"ranking"},jl=Pl(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Vl={class:"sort"},ql={key:2,class:"empty"};function Gl(e,n,o,a,l,i){const r=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(r,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",Dl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,s=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Fl)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(d,f)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:d.key||f,style:t.normalizeStyle({color:d.titleColor,...e.columnStyle})},t.toDisplayString(d.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",Rl,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(s,d)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(d+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:s.id||d,onClick:n[0]||(n[0]=(...f)=>e.click&&e.click(...f))},[e.useRanking?(t.openBlock(),t.createElementBlock("div",$l,[jl,t.createElementVNode("div",Vl," Top "+t.toDisplayString(d+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,f=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(s[f.key],f.format)]),key:f.key,style:t.normalizeStyle({fontSize:f.fontSize,color:e.contrastClass(s[f.key],f.format)===""?f.color:"",fontWeight:f.fontWeight,...e.columnStyle})},t.toDisplayString((f.format!=null||f.format!=="")&&e.formatFn(s[f.key],f.format)),7))),128))],4))),128))])):(t.openBlock(),t.createElementBlock("div",ql," 暂无数据 "))]),_:1},8,["loading"])],4)}const en=H(W(Ol,[["render",Gl],["__scopeId","data-v-7aa27677"]])),At={...K,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0"},_t=Z(At),tn=["refreshData","click"],Ul=t.defineComponent({name:"EcanProportion",components:{AProgress:U.Progress,Skeleton:Ze},props:{..._t},setup(e){const{pageMode:n}=t.inject(re,{pageMode:"normal"}),o=Q(e),a=t.computed(()=>{const c=e.width;return parseFloat(c)}),l=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(n)==="design")&&(l.value=e.data)},{immediate:!0,deep:!0});const i=t.computed(()=>{const c=t.unref(l),u=+e.variableDefaultValue;if(c==null)return isNaN(u)?0:u;const S=e.text.match(/\{.+\}/g)||[];let p;const A=new Set(Object.keys(c));for(let I=0;I<S.length;I++){const T=S[I],O=T.slice(1,T.length-1);if(A.has(O)){p=c[O];break}}return typeof p=="number"?p=p*100:typeof p=="string"&&!isNaN(+p)?p=+p*100:isNaN(u)?p=0:p=u*100,e.decimalFormat&&(p=+p.toFixed(2)),p}),r=t.computed(()=>{var A;let c=e.text;if(c==="")return t.unref(i);const u=e.variableDefaultValue,S=t.unref(l),p=c.match(/\{.+\}/g)||[];for(let I=0;I<p.length;I++){const T=p[I];let O=T.slice(1,T.length-1);const b=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,x=T.match(b);for(let N=0;N<(x==null?void 0:x.length);N++){const L=(A=x[N])==null?void 0:A.trim();S[L]!=null&&(O=O.replace(L,S[L]))}let _=O;try{/\(.*\)/g.test(O)&&(_=Qe(O))}catch(N){console.error(N)}typeof+_=="number"&&!isNaN(+_)?(_=+_*100,e.decimalFormat&&(_=_.toFixed(2))):_=u,c=c.replace(T,_+"")}return c}),s=ue(e),d=t.ref(!1),f=async()=>{var c;if(e.dataType==="request")try{d.value=!0;const u=await s();l.value=((c=u==null?void 0:u.data)==null?void 0:c.data)||{}}catch(u){console.error(u)}finally{d.value=!1}};ne(e,{refreshData:()=>{f()}});const w=ee(e)("click",()=>{}),{setRequest:m}=t.inject(se,{setRequest:({id:c,sortNum:u,requestFn:S})=>{}});return m({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:o,myWidth:a,text:r,myValue:i,loading:d,click:w}}}),Vr="";function Wl(e,n,o,a,l,i){const r=t.resolveComponent("skeleton"),s=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(r,{key:0,loading:e.loading},null,8,["loading"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5))]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)}const on=H(W(Ul,[["render",Wl],["__scopeId","data-v-00244f8a"]])),Tt={...K,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},Et=Z(Tt),nn=["inputChange","inputBlur"],Hl=t.defineComponent({name:"EcanInput",components:{AInput:U.Input},props:{...Et},setup(e){const n=Q(e),o=t.ref("");t.watch(()=>e.value,f=>{o.value=f},{immediate:!0});const{getGlobalModel:a,setGlobalModel:l}=t.inject(le,{getGlobalModel:f=>{},setGlobalModel:(f,C)=>{}});l(e.id,{type:e.type,value:o});const i=()=>{const f=a(e.id);l(e.id,{...f,RECORD:o})},r=ee(e),s=pe.debounce(r("inputChange",()=>{i()}),300),d=r("inputBlur",()=>{});return{style:n,myValue:o,inputBlur:d,inputChange:s}}}),Gr="";function Zl(e,n,o,a,l,i){const r=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const an=H(W(Hl,[["render",Zl]])),Lt={...K,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null},vt=Z(Lt),ln=["dateChange"],Jl=t.defineComponent({name:"EcanDatePicker",props:{...vt},components:{ADatePicker:U.DatePicker},setup(e){const n=Q(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([d,f,C])=>{let y=null;if(d?y=fe(te(d)):f&&(y=fe()),C&&y){const{type:w,value:m,mode:c}=C;switch(w){case"add":y=y.add(m,c);break;case"minus":y=y.subtract(m,c)}}a.value=y},{deep:!0,immediate:!0});const{setGlobalModel:l}=t.inject(le,{setGlobalModel:(d,f)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const r=ee(e)("dateChange",()=>{}),s=()=>{t.unref(a)&&r()};return ne(e,{dateChange:r}),{style:n,getPopupContainer:o,myValue:a,locale:bo,change:s}}}),Wr="";function Yl(e,n,o,a,l,i){const r=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const rn=H(W(Jl,[["render",Yl]])),It={...K,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:""},Mt=Z(It),sn=["dateChange"],Ql=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:U.RangePicker},props:{...Mt},setup(e){const n=Q(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([S,p,A,I,T,O])=>{let b=null,x=null;if(A&&(b=fe().subtract(I,T),x=fe()),S&&(b=fe(te(S))),p&&(x=fe(te(p))),O){const{type:_,value:N,mode:L}=O;switch(_){case"add":b=b&&b.add(N,L),x=x&&x.add(N,L);break;case"minus":b=b&&b.subtract(N,L),x=x&&x.subtract(N,L)}}a.value=[b,x]},{immediate:!0});let l=t.unref(a)[0],i=t.unref(a)[1];const r=S=>{Array.isArray(S)?(l=S[0],i=S[1]):(l=null,i=null)},s=S=>{let p=!1,{limitStartTime:A,limitEndTime:I}=e;const T={startTime:`${l||""}`,endTime:`${i||""}`};return A=te(A,{codeData:T}),I=te(I,{codeData:T}),A&&I?p=!(fe(A)<S&&S<fe(I)):A?p=fe(A)>S:I&&(p=fe(I)<S),p},{setGlobalModel:d}=t.inject(le,{setGlobalModel:(S,p)=>{}}),f=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),C=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);d(e.id,{type:e.type,format:e.format,startTime:f,endTime:C});const y=ee(e);let w=!1;const m=y("dateChange",()=>{}),c=S=>{const p=t.unref(a),A=p&&p[0]&&p[1];S===!1&&w===!0&&A&&(m(),w=!1)},u=()=>{w=!0};return ne(e,{dateChange:m}),{style:n,getPopupContainer:o,locale:bo,dateChange:m,myValue:a,disabledDate:s,calendarChange:r,openChange:c,change:u}}}),Zr="",Jr="";function Kl(e,n,o,a,l,i){const r=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const cn=H(W(Ql,[["render",Kl],["__scopeId","data-v-5a46a4a9"]])),zt={...K,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},Nt=Z(zt),dn=["click"],Xl=t.defineComponent({name:"EcanButton",components:{AButton:U.Button},props:{...Nt},setup(e){const n=Q(e),a=ee(e)("click",()=>{const s=t.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),l=t.computed(()=>te(e.text)),i=t.computed(()=>te(e.href)||null),r=t.computed(()=>{const s=e.target;if(!(s==="event"||t.unref(i)==null))return{self:"_self",blank:"_blank"}[s]});return{style:n,click:a,myText:l,myHref:i,myTarget:r}}}),Qr="";function ei(e,n,o,a,l,i){const r=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(r,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const fn=H(W(Xl,[["render",ei]])),Bt={...K,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}]},Ot=Z(Bt),mn=["checkboxChange"],ti=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:U.CheckboxGroup},props:{...Ot},setup(e){const n=Q(e),o=t.ref([]),a=t.ref([]),l=w=>{const m=e.value;let c=[];w.forEach(u=>{u.checked&&c.push(u.value)}),typeof m=="string"&&m!==""?c=c.concat(m.split(",")):Array.isArray(m)&&(c=c.concat(m)),o.value=w,a.value=c};t.watch(()=>[e.data,e.value],([w])=>{l(w)},{immediate:!0,deep:!0});const i=ue(e),r=async()=>{var c,u;if(e.dataType!=="request")return;const w=await i(),m=((u=(c=w==null?void 0:w.data)==null?void 0:c.data)==null?void 0:u.rows)||[];l(m)},{getGlobalModel:s,setGlobalModel:d}=t.inject(le,{getGlobalModel:w=>{},setGlobalModel:(w,m)=>{}});d(e.id,{type:e.type,value:a});const C=ee(e)("checkboxChange",()=>{const w=s(e.id);d(e.id,{...w,RECORD:a})}),{setRequest:y}=t.inject(se,{setRequest:({id:w,sortNum:m,requestFn:c})=>{}});return y({id:e.id,requestFn:r,sortNum:e.requestSort}),{myOption:o,style:n,myValue:a,checkboxChange:C}}}),Xr="";function oi(e,n,o,a,l,i){const r=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(r,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const un=H(W(ti,[["render",oi]])),Pt={...K,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value"},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1},Dt=Z(Pt),hn=["selectChange","refreshData"],ni=t.defineComponent({name:"EcanSelect",components:{ASelect:U.Select},props:{...Dt},setup(e){const n=Q(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=ue(e),l=t.ref(e.data||[]),i=t.ref();t.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:u,selectFirstOption:S,value:p}=e;u==="multiple"||u==="tags"||u==="combobox"?p?i.value=p.split(","):S&&(i.value=[t.unref(l)[0]]):p?i.value=p:S&&(i.value=t.unref(l)[0])},{immediate:!0});const r=e.dataFieldNames,s=(u,S)=>{const p=r.label,A=r.value;let I;const T=S[p],O=S[A];return T!=null?I=T:O!=null&&(I=O),(I==null?void 0:I.toLowerCase().indexOf(u==null?void 0:u.toLowerCase()))>=0},d=t.ref(!1),f=async()=>{var u,S;if(e.dataType==="request"){d.value=!0;try{const p=await a();l.value=((S=(u=p==null?void 0:p.data)==null?void 0:u.data)==null?void 0:S.rows)||[];const A=t.unref(l)[0];e.value===""&&A!=null&&(i.value=A[r.value])}catch(p){console.error(p)}finally{d.value=!1}}},{getGlobalModel:C,setGlobalModel:y}=t.inject(le,{getGlobalModel:u=>{},setGlobalModel:(u,S)=>{}});y(e.id,{type:e.type,value:i});const m=ee(e)("selectChange",()=>{const u=e.id,S=C(u);y(u,{...S,RECORD:i})});ne(e,{selectChange:m,refreshData:f});const{setRequest:c}=t.inject(se,{setRequest:({id:u,sortNum:S,requestFn:p})=>{}});return c({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:n,getPopupContainer:o,myValue:i,selectChange:m,options:l,filterOption:s,loading:d}}}),ts="",os="";function ai(e,n,o,a,l,i){const r=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const gn=H(W(ni,[["render",ai],["__scopeId","data-v-c0b8fe0f"]])),Ft={...K,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Rt=Z(Ft),yn=["selectChange","refreshData"],li={name:"EcanTreeSelect",components:{ATreeSelect:U.TreeSelect},props:{...Rt},setup(e){const n=Q(e),o=t.ref(e.data),a=(m,c)=>{const u=e.dataFieldNames,S=u.label,p=u.value;let A;const I=c[S],T=c[p];return I!=null?A=I:T!=null&&(A=T),(A==null?void 0:A.toLowerCase().indexOf(m==null?void 0:m.toLowerCase()))>=0},l=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:m,value:c,selectFirstOption:u}=e;m?c?l.value=c.split(","):u&&(l.value=[t.unref(o)[0]]):c?l.value=c:u&&(l.value=t.unref(o)[0])},{immediate:!0});const i=t.ref(!1),r=ue(e),s=async()=>{var m,c;if(e.dataType==="request"){i.value=!0;try{const u=await r();o.value=((c=(m=u==null?void 0:u.data)==null?void 0:m.data)==null?void 0:c.rows)||[];const S=t.unref(o)[0];e.value===""&&S!=null&&(l.value=S[e.dataFieldNames.value])}catch(u){console.error(u)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:f}=t.inject(le,{getGlobalModel:m=>{},setGlobalModel:(m,c)=>{}});f(e.id,{type:e.type,value:l});const y=ee(e)("selectChange",()=>{const m=e.id,c=d(m);f(m,{...c,RECORD:l})});ne(e,{selectChange:y,refreshData:s});const{setRequest:w}=t.inject(se,{setRequest:({id:m,sortNum:c,requestFn:u})=>{}});return w({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:o,filterTreeNode:a,myValue:l,loading:i,selectChange:y}}},as="",ls="";function ii(e,n,o,a,l,i){const r=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(r,{class:"tree-select",value:a.myValue,"onUpdate:value":n[0]||(n[0]=s=>a.myValue=s),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const bn=H(W(li,[["render",ii],["__scopeId","data-v-37236421"]])),$t={...K,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},jt=Z($t),pn=["click","refreshData","resetRecord"],qe=async e=>{var d;const n=await xe.post(e,{},{responseType:"blob"}),{data:o,headers:a}=n,l=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([o]),r=document.createElement("a"),s=window.URL.createObjectURL(i);r.href=s,r.download=decodeURI(l),r.style.display="none",document.body.appendChild(r),r.click(),(d=r.parentNode)==null||d.removeChild(r),window.URL.revokeObjectURL(s)},Vt={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default"},qt=Z(Vt),Cn=["showModal"],ri=t.defineComponent({name:"EcanModal",components:{AModal:U.Modal,CloseOutlined:al},props:{...qt},setup(e,{emit:n}){const o=()=>document.getElementById("ProviderConfig")||document.body,a=t.computed(()=>{const B=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[B]}}),l=e.width,i=e.height,r=e.originalWidth,s=e.originalHeight,d=t.ref("80%"),f=t.ref(0),C=t.ref(),y=t.ref(0),w=t.ref({}),m=Q(e),c=t.ref({}),u=t.ref(!1),S=t.ref();let p;const A=()=>{C.value=parseFloat(l)/parseFloat(r);const B=parseFloat(i)/parseFloat(s),R=document.body.offsetWidth,q=document.body.offsetHeight;f.value=R*t.unref(C),y.value=q*B,d.value=`${t.unref(C)*100}%`,w.value={width:`${t.unref(f)}px`,height:`${t.unref(y)}px`},c.value={...t.unref(m),backgroundImage:Te(e.backgroundImage,!0),transform:`scale(${t.unref(f)/parseFloat(l)},${t.unref(y)/parseFloat(i)})`}},I=pe.debounce(()=>{A()},100),T=()=>{const B=window.MutationObserver;p=new B(I),p.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},O=()=>{p&&(p.disconnect(),p.takeRecords(),p=null)},b=t.ref(!1),{touchRequest:x}=t.inject(se,{touchRequest:()=>{}}),_=()=>{b.value=!0},N=()=>{n("close"),b.value=!1},L=()=>{N()},v=()=>{N()},{setModalModel:k,pushUseModalIds:g,popUseModalIds:P}=t.inject(jo,{pushUseModalIds:B=>{},popUseModalIds:()=>{},setModalModel:(B,R)=>{}}),E=()=>{const B=e.id;let R=[];const q=e.componentList;console.log("componentList",q),Array.isArray(q)&&(R=q.map(de=>de.id),k(B,[...new Set(R)]))};t.watch(()=>b.value,async B=>{B?(u.value=!1,g(e.id),E(),await t.nextTick(()=>{A(),window.addEventListener("resize",I),T(),u.value=!0}),x()):(P(),window.removeEventListener("resize",I),O())});const z=t.computed(()=>t.unref(C)>=1),D=t.computed(()=>e.fullModal),j=t.computed(()=>{let B="ecan-modal";return t.unref(z)&&(B+=" ecan-full-width-modal"),t.unref(D)&&(B+=" ecan-full-modal"),B});return ne(e,{showModal:_}),{modalRef:S,containStyle:w,contentStyle:c,getContainer:o,modalStyle:a,modalWith:d,isFullModal:D,style:m,visible:b,showModal:_,onOk:L,onCancel:v,isFullWidth:z,wrapClassName:j,ready:u}}}),rs="",ss="",si={key:0};function ci(e,n,o,a,l,i){const r=t.resolveComponent("close-outlined"),s=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.title),5)):t.createCommentVNode("",!0),t.createVNode(r,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(t.openBlock(),t.createElementBlock("div",si,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,(d,f)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.type),t.mergeProps({key:d.id+f},d),null,16))),128))])):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const Le=H(W(ri,[["render",ci],["__scopeId","data-v-2814b49f"]]));be.use([ve.CanvasRenderer,ke.PieChart,X.TitleComponent,X.ToolboxComponent,X.TooltipComponent,X.LegendComponent]);const di=t.defineComponent({name:"EcanPie",props:{...jt},components:{Spin:Re,Echarts:_e,EcanModal:Le},setup(e,{expose:n}){const o=t.ref(!1),a=Q(e),l=t.ref([]),i=t.ref(),r=t.computed(()=>{let{data:x=[]}=t.unref(l)[0]||{};if(Array.isArray(e.colors)){const _=e.isUseLabelColors,N=e.colors;x=x.map((L,v)=>({label:_?{color:N[v]}:{},...L}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qe(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;o.value=!0,(_=i.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:_=>{const{marker:N,seriesName:L,name:v,value:k,percent:g,data:P}=_||{};return te(e.tooltipFormatter,{textData:{marker:N,name:v,value:k,percent:g,a:L,b:v,c:k,d:g,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?ze:e.labelFontSize}},color:e.colors,series:[{data:x,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:o.value?ze:e.labelFontSize,position:e.labelPosition,formatter:yl(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),s=()=>{o.value=!1},{getGlobalModel:d,setGlobalModel:f}=t.inject(le,{getGlobalModel:x=>{},setGlobalModel:(x,_)=>{}}),{pageMode:C}=t.inject(re,{pageMode:"normal"}),y=(x=[],_)=>{const{dataset:N}=je(x,_);l.value=N},w=(x=[],_)=>{const N=je(x,_);l.value=N.dataset};t.watch(()=>e.data,x=>{(e.dataType==="static"||t.unref(C)==="design")&&y(x)},{immediate:!0,deep:!0});const m=t.ref(!1),c=ue(e),u=async()=>{var x,_;if(e.dataType==="request")try{m.value=!0;const N=await c();y((_=(x=N==null?void 0:N.data)==null?void 0:x.data)==null?void 0:_.rows,e.valueTypeDataFieldNames)}catch(N){console.error(N)}finally{m.value=!1}},p=ee(e)("click",x=>{const _=d(e.id);f(e.id,{..._,RECORD:x==null?void 0:x.data})}),A=Ve(e),I=async()=>{var x;try{m.value=!0;const _=await A(),{data:N}=_.data||{};if(N){const{columns:L=[],rows:v=[]}=((x=_==null?void 0:_.data)==null?void 0:x.data)??{};let k=[];if(L.length>0){const g=L[0],P=L[1];k=v.map(E=>({name:E[g],value:E[P]}))}w(k)}}catch(_){console.error(_)}finally{m.value=!1}},T=()=>{switch(e.dataType){case"indicator":I();break;case"request":u();break}};ne(e,{resetRecord:()=>{const x=e.id,_=d(x);f(x,{..._,RECORD:""})},refreshData:T,click:p}),n({refreshData:T});const{setRequest:b}=t.inject(se,{setRequest:x=>{}});return typeof b=="function"&&b({id:e.id,requestFn:T,sortNum:e.requestSort}),{option:r,style:a,click:p,onClose:s,loading:m,ecanModal:i}}}),ds="";function fi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Sn=H(W(di,[["render",fi]])),Gt={...K,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},Ut=Z(Gt),kn=["click","refreshData","resetRecord"];be.use([ve.CanvasRenderer,ke.LineChart,X.ToolboxComponent,X.TitleComponent,X.LegendComponent]);const mi=t.defineComponent({name:"EcanLine",props:{...Ut},components:{Spin:Re,Echarts:_e,EcanModal:Le},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=Q(e),i=t.ref([]),r=t.ref([]),s=t.ref(),d=t.computed(()=>a.value?ze:12),f=t.ref({});let C;const y=t.computed(()=>{const g=e.xAxisLabelFormatter,P=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qe(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var E;a.value=!0,(E=s.value)==null||E.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:E=>{var B;const z=E.length;let D="",j=e.tooltipFormatter;C=(B=E[0])==null?void 0:B.data,j===""&&(j="{marker} {a} {c}");for(let R=0;R<z;R++){const{marker:q,seriesName:de,name:Be,value:Ke,data:uo}=E[R]||{};R===0&&(D+=`${Be}<br/>`),D+=te(j,{textData:{marker:q,name:Be,value:Ke,a:de,b:Be,c:Ke,...uo}},{useNewline:!0,useSpace:!0}),D+="<br/>"}return D}},xAxis:{type:"category",data:t.unref(r).map(E=>{let z={};return E&&typeof E=="object"?z={...E,textStyle:{fontSize:d.value}}:z={value:E,textStyle:{fontSize:d.value}},z}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(E){return Ee(g,E)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:d.value,color:e.yAxisLabelColor,formatter(E){return Ee(P,E)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:d.value}},series:t.unref(i)}}),w=()=>{a.value=!1},{getGlobalModel:m,setGlobalModel:c}=t.inject(le,{getGlobalModel:g=>{},setGlobalModel:(g,P)=>{}}),{pageMode:u}=t.inject(re,{pageMode:"normal"}),S=(g=[],P=!1)=>{let E;if(e.dataFieldConfigType==="key"){const B=P?e.keyTypeDataFieldNames:null;E=Ne(g,B)}else if(e.dataFieldConfigType==="value"){const B=P?e.valueTypeDataFieldNames:null;E=je(g,B)}r.value=E.dimensions;const z=E.dataset,D=[],j=z.length;for(let B=0;B<j;B++)D.push({type:"line",...z[B],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=D},p=(g=[],P,E=!1)=>{const D=Ne(g,E?P:null);r.value=D.dimensions;const j=D.dataset,B=[],R=j.length;for(let q=0;q<R;q++)B.push({type:"line",...j[q],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=B};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([g])=>{(e.dataType==="static"||t.unref(u)==="design")&&S(g)},{immediate:!0,deep:!0});const A=t.ref(!1),I=ue(e),T=async()=>{var g,P;if(e.dataType==="request")try{A.value=!0;const E=await I();S((P=(g=E==null?void 0:E.data)==null?void 0:g.data)==null?void 0:P.rows,!0)}catch(E){console.error(E)}finally{A.value=!1}},b=ee(e)("click",g=>{const P=m(e.id);c(e.id,{...P,RECORD:e.tooltipShow?C:g.data})}),x=g=>{o.value.chart.containPixel("grid",[g.offsetX,g.offsetY])&&b()};e.tooltipShow?f.value["zr:click"]=x:f.value.click=b;const _=Ve(e),N=async()=>{var g;try{A.value=!0;const P=await _(),{columns:E=[],rows:z=[]}=((g=P==null?void 0:P.data)==null?void 0:g.data)??{};let D;E.length>0&&(D={name:E[0],types:E.slice(1).map(j=>({label:j,value:j}))}),p(z,D,!0)}catch(P){console.error(P)}finally{A.value=!1}},L=()=>{switch(e.dataType){case"indicator":N();break;case"request":T();break}};ne(e,{refreshData:L,resetRecord:()=>{const g=e.id,P=m(g);c(g,{...P,RECORD:""})},click:b});const{setRequest:k}=t.inject(se,{setRequest:g=>{}});return typeof k=="function"&&k({id:e.id,requestFn:L,sortNum:e.requestSort}),n({refreshData:L}),{option:y,style:l,click:b,loading:A,onClose:w,ecanModal:s,eventObj:f,echartRef:o}}}),ms="";function ui(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const wn=H(W(mi,[["render",ui]])),Wt={...K,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0},Ht=Z(Wt),xn=["refreshData","click","resetRecord"];be.use([ve.CanvasRenderer,ke.BarChart,X.TitleComponent,X.LegendComponent,X.DatasetComponent,X.ToolboxComponent]);const hi=t.defineComponent({name:"EcanBar",props:{...Ht},components:{Spin:Re,Echarts:_e,EcanModal:Le},setup(e,{expose:n}){const o=t.ref(!1),a=Q(e),l=t.ref([]),i=t.ref(),r=t.computed(()=>o.value?ze:12),s=t.computed(()=>{const v=t.unref(l),k=v.length,g=[];for(let P=0;P<k;P++){const E={...v[P],type:"bar",barWidth:e.barWidth};e.isStack&&(E.stack="stack"),E.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},g.push(E)}return g}),d=t.ref([]),f=t.ref(!1),C=t.computed(()=>{const v=e.yAxisLabelFormatter,k=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qe(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var g;o.value=!0,(g=i.value)==null||g.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:g=>{const P=g.length;let E="",z=e.tooltipFormatter;z===""&&(z="{marker} {a} {c}");for(let D=0;D<P;D++){const{marker:j,seriesName:B,name:R,value:q,data:de}=g[D]||{};D===0&&(E+=`${R}<br/>`),E+=te(z,{textData:{marker:j,name:R,value:q,a:B,b:R,c:q,...de}},{useNewline:!0,useSpace:!0}),E+="<br/>"}return E},textStyle:{color:e.tooltipTextStyleColor,fontSize:r.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:r.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(u),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(g){return Ee(k,g)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(d):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:r.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(g){return Ee(v,g)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(s)}}),{pageMode:y}=t.inject(re,{pageMode:"normal"}),w=()=>{o.value=!1},m=(v=[],k=!1)=>{let g={};if(e.dataFieldConfigType==="key"){const P=k?e.keyTypeDataFieldNames:null;g=Ne(v,P)}else if(e.dataFieldConfigType==="value"){const P=k?e.valueTypeDataFieldNames:null;g=je(v,P)}l.value=g.dataset,d.value=g.dimensions},c=(v=[],k,g=!1)=>{const E=Ne(v,g?k:null);l.value=E.dataset,d.value=E.dimensions},u=t.computed(()=>t.unref(d).map(v=>{let k={};return v&&typeof v=="object"?k={...v,textStyle:{fontSize:r.value}}:k={value:v,textStyle:{fontSize:r.value}},k}));t.watch(()=>e.data,v=>{(e.dataType==="static"||t.unref(y)==="design")&&m(v)},{immediate:!0,deep:!0});const S=ue(e),p=async()=>{var v,k;try{f.value=!0;const g=await S();m((k=(v=g==null?void 0:g.data)==null?void 0:v.data)==null?void 0:k.rows,!0)}catch(g){console.error(g)}finally{f.value=!1}},A=Ve(e),I=async()=>{var v;try{f.value=!0;const k=await A(),{columns:g=[],rows:P=[]}=((v=k==null?void 0:k.data)==null?void 0:v.data)??{};let E;g.length>0&&(E={name:g[0],types:g.slice(1).map(z=>({label:z,value:z}))}),c(P,E,!0)}catch(k){console.error(k)}finally{f.value=!1}},T=()=>{switch(e.dataType){case"indicator":I();break;case"request":p();break}};n({refreshData:T});const O=ee(e),{getGlobalModel:b,setGlobalModel:x}=t.inject(le,{getGlobalModel:v=>{},setGlobalModel:(v,k)=>{}}),_=O("click",v=>{const k=b(e.id);x(e.id,{...k,RECORD:v.data})}),{setRequest:N}=t.inject(se,{setRequest:v=>{}});return typeof N=="function"&&N({id:e.id,requestFn:T,sortNum:e.requestSort}),ne(e,{refreshData:T,click:_,resetRecord:()=>{const v=e.id,k=b(v);x(v,{...k,RECORD:""})}}),{option:C,style:a,refreshData:T,click:_,loading:f,onClose:w,ecanModal:i}}}),hs="";function gi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const An=H(W(hi,[["render",gi]])),Zt={...K,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Jt=Z(Zt),_n=["click","refreshData","resetRecord"];be.use([ve.CanvasRenderer,ke.ScatterChart,X.ToolboxComponent,X.TitleComponent,X.TooltipComponent,X.LegendComponent]);const yi=t.defineComponent({name:"EcanScatter",props:{...Jt},components:{Spin:Re,Echarts:_e,EcanModal:Le},setup(e){const n=t.ref(!1),o=Q(e),a=t.ref([]),l=t.ref(),i=t.computed(()=>n.value?ze:12),r=t.computed(()=>{const T=e.xAxisLabelFormatter,O=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qe(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var b;n.value=!0,(b=l.value)==null||b.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(b){return Ee(T,b)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.yAxisLabelColor,formatter(b){return Ee(O,b)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(b){var k;const{marker:x,seriesName:_}=b,N=((k=b==null?void 0:b.data)==null?void 0:k.record)??{},{name:L,value:v}=N;return te(e.tooltipFormatter,{textData:{marker:x,seriesName:_,a:_,b:L,c:v,...N}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:t.unref(a),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:d}=t.inject(le,{getGlobalModel:T=>{},setGlobalModel:(T,O)=>{}}),{pageMode:f}=t.inject(re,{pageMode:"normal"}),C=(T=[],O)=>{const{name:b="name",value:x="value"}=O||{};a.value=T.map(_=>({value:[_[b],_[x]],record:_}))};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(f)==="design")&&C(T)},{immediate:!0,deep:!0});const y=t.ref(!1),w=ue(e),m=async()=>{var T,O;if(e.dataType==="request"){y.value=!0;try{const b=await w();C((O=(T=b==null?void 0:b.data)==null?void 0:T.data)==null?void 0:O.rows,e.dataFieldNames)}catch(b){console.error(b)}finally{y.value=!1}}},c=()=>{n.value=!1},S=ee(e)("click",T=>{const O=e.id,b=s(O);d(O,{...b,RECORD:T==null?void 0:T.data})});ne(e,{refreshData:()=>{m()},click:S,resetRecord:()=>{const T=e.id,O=s(T);d(T,{...O,RECORD:""})}});const{setRequest:I}=t.inject(se,{setRequest:T=>{}});return typeof I=="function"&&I({id:e.id,requestFn:m,sortNum:e.requestSort}),{option:r,style:o,click:S,loading:y,onClose:c,ecanModal:l}}}),ys="";function bi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Tn=H(W(yi,[["render",bi]])),Yt={...K,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},Qt=Z(Yt),pi=t.defineComponent({name:"EcanCustomGraph",props:{...Qt},components:{Echarts:_e},setup(e){const n=Q(e),o=t.ref();return t.watch(()=>e.optionCode,a=>{try{const l=eval;o.value=l(a)}catch(l){console.error(l)}},{immediate:!0}),{style:n,myOption:o,echarts:Yn}}});function Ci(e,n,o,a,l,i){const r=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(r,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const En=H(W(pi,[["render",Ci]])),Kt={...K,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"},Xt=Z(Kt),Ln=["refreshData","click","resetRecord"];be.use([ve.CanvasRenderer,ke.BarChart,ke.LineChart,X.TitleComponent,X.LegendComponent,X.DatasetComponent,X.ToolboxComponent]);const Si=t.defineComponent({name:"EcanComboGraph",props:{...Xt},components:{Spin:Re,Echarts:_e,EcanModal:Le},setup(e,{expose:n}){const o=t.ref(!1),a=Q(e),l=t.ref([]),i=t.ref([]),r=t.ref(),s=t.computed(()=>o.value?ze:12),d=t.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){qe(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var L;o.value=!0,(L=r.value)==null||L.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:s.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{const v=L.length;let k="",g=e.tooltipFormatter;g===""&&(g="{marker} {a} {c}");const P=e.seriesTypes;for(let E=0;E<v;E++){const z=P[E],{tooltipFormatter:D}=z||{},{marker:j,seriesName:B,name:R,value:q,data:de}=L[E]||{};E===0&&(k+=`${R}<br/>`),k+=te(D||g,{textData:{marker:j,name:R,value:q,seriesName:B,a:B,b:R,c:q,...de}},{useNewline:!0,useSpace:!0}),k+="<br/>"}return k},textStyle:{color:e.tooltipTextStyleColor,fontSize:s.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(i).map(L=>{let v={};return L&&typeof L=="object"?v={...L,textStyle:{fontSize:s.value}}:v={value:L,textStyle:{fontSize:s.value}},v}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:t.unref(m),series:t.unref(l)})),{pageMode:f}=t.inject(re,{pageMode:"normal"}),C=()=>{o.value=!1},y=(L=[],v=!1)=>{let k;if(e.dataFieldConfigType==="key"){const D=v?e.keyTypeDataFieldNames:null;k=Ne(L,D)}else if(e.dataFieldConfigType==="value"){const D=v?e.valueTypeDataFieldNames:null;k=je(L,D)}i.value=k.dimensions;const g=k.dataset,P=[],E=g.length,z=e.seriesTypes;for(let D=0;D<E;D++){const j=z[D],{type:B,axisIndex:R}=j||{};let q={type:B,yAxisIndex:R,...g[D]};B==="line"&&(q={...q,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),B==="bar"&&(q={...q,barWidth:e.barWidth}),P.push(q)}l.value=P},w=(L=[],v,k=!1)=>{const P=Ne(L,k?v:null);i.value=P.dimensions;const E=P.dataset,z=[],D=E.length,j=e.seriesTypes;for(let B=0;B<D;B++){const R=j[B];z.push({type:R==null?void 0:R.type,yAxisIndex:R==null?void 0:R.axisIndex,...E[B]})}l.value=z};t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([L])=>{(e.dataType==="static"||t.unref(f)==="design")&&y(L)},{immediate:!0,deep:!0});const m=t.computed(()=>{const L=e.yAxis;return L==null?void 0:L.map(v=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:s.value,color:e.yAxisLabelColor,formatter(k){return Ee(v.axisLabelFormatter,k)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),c=t.ref(!1),u=ue(e),S=async()=>{var L,v;if(e.dataType==="request")try{c.value=!0;const k=await u();y((v=(L=k==null?void 0:k.data)==null?void 0:L.data)==null?void 0:v.rows,!0)}catch(k){console.error(k)}finally{c.value=!1}},p=Ve(e),A=async()=>{var L;try{c.value=!0;const v=await p(),{columns:k=[],rows:g=[]}=((L=v==null?void 0:v.data)==null?void 0:L.data)??{};let P;k.length>0&&(P={name:k[0],types:k.slice(1).map(E=>({label:E,value:E}))}),w(g,P,!0)}catch(v){console.error(v)}finally{c.value=!1}},I=()=>{switch(e.dataType){case"indicator":A();break;case"request":S();break}};n({refreshData:I});const T=ee(e),{getGlobalModel:O,setGlobalModel:b}=t.inject(le,{getGlobalModel:L=>{},setGlobalModel:(L,v)=>{}}),x=T("click",L=>{const v=O(e.id);b(e.id,{...v,RECORD:L==null?void 0:L.data})}),{setRequest:_}=t.inject(se,{setRequest:L=>{}});return typeof _=="function"&&_({id:e.id,requestFn:I,sortNum:e.requestSort}),ne(e,{resetRecord:()=>{const L=e.id,v=O(L);b(L,{...v,RECORD:""})},refreshData:I,click:x}),{style:a,option:d,click:x,loading:c,onClose:C,ecanModal:r}}}),Cs="";function ki(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const vn=H(W(Si,[["render",ki]])),eo={...K,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},to=Z(eo),In=["click"],wi=t.defineComponent({name:"EcanBorder",props:{...to},setup(e){const n=Q(e,["background"]),{theme:o}=t.inject(re,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),i=ee(e)("click",()=>{}),r=t.ref([]);t.watch(()=>e.data,d=>{r.value=d},{immediate:!0,deep:!0}),ne(e,{click:i});const{setGlobalModel:s}=t.inject(le,{setGlobalModel:(d,f)=>{}});return s(e.id,{type:e.type,value:r}),{style:n,click:i,borderStyle:a,theme:o}}}),xi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Ai="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",ks="",ye=e=>(t.pushScopeId("data-v-1550b11b"),e=e(),t.popScopeId(),e),_i=ye(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ti=ye(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Ei=ye(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Li=ye(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),vi={class:"title-item-wrapper"},Ii={class:"title-item"},Mi=ye(()=>t.createElementVNode("img",{class:"title-decoration-left",src:xi},null,-1)),zi={class:"title"},Ni=ye(()=>t.createElementVNode("img",{class:"title-decoration-right",src:Ai},null,-1)),Bi=ye(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Oi=ye(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Pi=ye(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Di=ye(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Fi={key:2,class:"left-title"},Ri={class:"title"};function $i(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...r)=>e.click&&e.click(...r))},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[_i,Ti,Ei,Li],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",vi,[t.createElementVNode("div",Ii,[Mi,t.createElementVNode("div",zi,t.toDisplayString(e.title),1),Ni])]),Bi,Oi,Pi,Di],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Fi,[t.createElementVNode("div",Ri,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const Mn=H(W(wi,[["render",$i],["__scopeId","data-v-1550b11b"]])),oo={...K,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},no=Z(oo),zn=["tabChange"],ji=t.defineComponent({name:"EcanTabs",props:{...no},setup(e){const n=Q(e),o=t.ref(0);t.watch(()=>e.activeKey,m=>{o.value=m},{immediate:!0});const{pageMode:a}=t.inject(re,{pageMode:"normal"});let l=null;const i=()=>{const m=Array.isArray(t.unref(r))?t.unref(r).length-1:0;e.autoSwitch&&m>0&&(l=setInterval(()=>{const c=t.unref(o)+1;c<=m?o.value=c:o.value=0,s.value=t.unref(r)[t.unref(o)],y()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&i()}),t.onBeforeUnmount(()=>{clearInterval(l)});const r=t.ref([]),s=t.ref({});t.watch(()=>e.data,m=>{r.value=m,s.value=Array.isArray(m)&&m.length>0?m[0]:{}},{immediate:!0,deep:!0});const d=m=>o.value===m,f=ee(e),{setGlobalModel:C}=t.inject(le,{setGlobalModel:(m,c)=>{}});C(e.id,{value:s,activeKey:o});const{emitRefreshPage:y}=t.inject($e,{emitRefreshPage:()=>{}}),w=f("tabChange",(m,c)=>{c!==t.unref(o)&&(s.value=m,o.value=c,y())});return ne(e,{tabChange:w}),{style:n,activeKey:o,isActive:d,tabChange:w,myData:r,useImagePath:Te}}}),xs="",Vi=["onClick"];function qi(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style)},[t.createElementVNode("div",{class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(r,s)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:s,onClick:t.withModifiers(d=>e.tabChange(r,s),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(r.title),5)],12,Vi))),128))],4)],4)}const Nn=H(W(ji,[["render",qi],["__scopeId","data-v-a2045b93"]])),ao={...K,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},lo=Z(ao),Gi=t.defineComponent({name:"EcanImage",props:{...lo},setup(e){const n=Q(e),o=t.computed(()=>Te(e.imgUrl)),{pageMode:a}=t.inject(re,{pageMode:"normal"});return{style:n,myImgUrl:o,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",r=Uo(t.unref(a),i),s=e.href;let d=s||r;d=te(d);const f=e.target;f&&(f!=="event"?window.open(d,"_"+f):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),_s="",Ui=["src"];function Wi(e,n,o,a,l,i){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...r)=>e.onClick&&e.onClick(...r))},null,12,Ui)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Bn=H(W(Gi,[["render",Wi],["__scopeId","data-v-ef7a7bee"]])),io={...K,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},ro=Z(io),Hi=t.defineComponent({name:"EcanIframe",props:{...ro},setup(e){const n=Q(e),{contextRequestUrl:o}=t.inject(re,{contextRequestUrl:""}),a=t.computed(()=>{let l=te(e.link);if(e.linkType==="erd"&&l!=null){let i=t.unref(o);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",l=`${gl||i}?_t=0&uid=${l}`}return l});return{style:n,myLink:a}}}),Es="",Zi=["src"];function Ji(e,n,o,a,l,i){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,Zi)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const On=H(W(Hi,[["render",Ji],["__scopeId","data-v-19bc100c"]])),so={...K,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{}},co=Z(so),Pn=["click","refreshData","resetRecord","exportTableData"],Yi=t.defineComponent({name:"EcanTable",components:{Skeleton:Ze,AButton:U.Button,AInput:U.Input,ACheckboxGroup:U.CheckboxGroup,ATable:U.Table,ATableSummary:U.TableSummary,ATableSummaryRow:U.TableSummaryRow,ATableSummaryCell:U.TableSummaryCell},props:{...co},setup(e,{expose:n}){const o=Q(e),a=t.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=t.computed(()=>e.scrollX),i=t.computed(()=>parseFloat(e.height)-t.unref(a)),r=t.ref([]),s=t.ref([]),d=t.ref([]),f=t.ref([]),C=t.ref(0),y=t.ref(1),w=t.computed(()=>e.paginationPageSize),m=t.reactive([]),c=(M=[])=>{if(Array.isArray(M)&&M.length>0){const F=M.length,V=e.columnsFixedNum;for(let G=0;G<F;G++){const $=M[G];G<V?$.fixed="left":$.fixed=!1;const{cellAlign:J="center",cellColor:Y,dataIndex:ae,title:ie,tableFilter:oe,headerCellAlign:Ae,headerCellColor:he}=$;oe&&(m.push(ae),$.filterOptionsInputValue="",$.filterCheckboxGroupValue=[],$.customFilterDropdown=!0,$.onFilter=(Se,ho)=>ho[ae].toString().toLowerCase().includes(Se.toLowerCase())),$.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Ae||"center",color:he,borderBottomColor:e.borderColor}}),$.customCell=(Se,ho)=>({style:{textAlign:J,color:Y,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(j)===ho&&e.clickHighlight},onClick:k("click",()=>{const Un=e.id,yr=g(Un);Se={dataIndex:ae,title:ie,...Se},P(Un,{...yr,RECORD:Se})})}),Array.isArray($.children)&&c($.children)}}},u=(M=[])=>(e.isUseSeq&&M.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&M.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),c(M),M);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{r.value=u(pe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([M,F])=>{F==="static"&&(s.value=M)},{immediate:!0});const S=t.ref({}),p=M=>{if(Array.isArray(M)){const F=M.length,V=m,G=V.length,$={};for(let Y=0;Y<F;Y++){const ae=M[Y];for(let ie=0;ie<G;ie++){const oe=V[ie];if($[oe])$[oe].add(ae[oe]);else{const Ae=new Set;Ae.add(ae[oe]),$[oe]=Ae}}}const J={};for(const Y in $)if(Object.prototype.hasOwnProperty.call($,Y)){const ae=$[Y],ie=Array.from(ae);J[Y]=ie.map(oe=>({label:oe,value:oe}))}S.value=J}};t.watch(()=>[e.isReverse,r.value,s.value],()=>{const M=t.unref(r),F=t.unref(s);if(p(F),e.isReverse){const{columns:V,dataSource:G}=A(pe.cloneDeep(M),pe.cloneDeep(F));d.value=V,f.value=G}else d.value=M,f.value=F},{immediate:!0});const A=(M,F)=>{const V=M[0],G=[{title:V.title,dataIndex:"col0",key:"col0",align:"center"}];for(let J=0;J<F.length;J++){const Y=F[J],ae="col"+(J+1);G.push({title:Y[V.dataIndex],dataIndex:ae,key:ae,align:"center"})}const $=[];for(let J=1;J<M.length;J++){const Y=M[J],ae={col0:Y.title};for(let ie=0;ie<F.length;ie++){const oe=F[ie];ae[`col${ie+1}`]=oe[Y.dataIndex]}$.push(ae)}return{columns:G,dataSource:$}},I=t.ref(""),T=ue(e),O=t.ref(!1),b=async(M=!0,F={})=>{var V;try{M&&(O.value=!0),t.unref(I)&&(F.orderCondition=t.unref(I)),e.paginationShow&&(F={pageNum:t.unref(y),pageSize:t.unref(w),layer:"1",...F});const G=await T(F),{rows:$=[],total:J=0}=((V=G==null?void 0:G.data)==null?void 0:V.data)||{};C.value=J,Array.isArray($)&&(s.value=$)}catch(G){console.error(G)}finally{O.value=!1}},x=({current:M},F,V)=>{if(y.value=M,V&&Object.keys(V).length>0){const{field:G,order:$}=V,Y={ascend:"asc",descend:"desc"}[$];G!=null&&Y!=null&&(I.value=G+" "+Y,y.value=1)}R(!1)},_=t.computed(()=>{const M=e.simple,F=[e.paginationPosition];return e.paginationShow&&{simple:M,position:F,total:t.unref(C),current:t.unref(y),pageSize:t.unref(w),showSizeChanger:!1}}),N=M=>+M==1?"是":+M==0?"否":M,L=(M,F)=>F==null||F===""?M:{money:gt,percentage:Je,contrast:Je,boolean:N}[F](M)||"",v=(M,F)=>{const V=parseFloat(M+"");if(F!=="contrast")return"";switch(!0){case V>=0:return"goUp";case V<0:return"goDown"}},k=ee(e),{getGlobalModel:g,setGlobalModel:P}=t.inject(le,{getGlobalModel:M=>{},setGlobalModel:(M,F)=>{}}),E=(M=[],F=[])=>{const V=M.map(G=>({title:G,dataIndex:G,key:G}));r.value=u(V),s.value=F},z=Ve(e),D=async()=>{var M,F,V,G;try{O.value=!0;const $=await z();E((F=(M=$==null?void 0:$.data)==null?void 0:M.data)==null?void 0:F.columns,(G=(V=$==null?void 0:$.data)==null?void 0:V.data)==null?void 0:G.rows)}catch($){console.error($)}finally{O.value=!1}},j=t.ref(-1),B=(M,F)=>({onClick:k("rowClick",()=>{const V=e.id,G=g(V);P(V,{...G,RECORD:M}),j.value=F})}),R=(M=!0)=>{switch(e.dataType){case"request":b(M);break;case"indicator":D();break}},q=()=>{const M=e.id,F=g(M);P(M,{...F,RECORD:""})},de=t.computed(()=>{const M=t.unref(d),F=[];let V=0;for(let $=0;$<M.length;$++){const J=M[$],{isCalcTotal:Y}=J;e.isUseSeq&&$===0?F.push({...J,total:"小计"}):Y?(F.push({...J,index:$,total:0}),V++):F.push({...J})}if(V===0)return[];const G=t.unref(f);for(let $=0;$<F.length;$++){const J=F[$];let Y=0;const{isCalcTotal:ae,dataIndex:ie}=J;if(ae===!0){for(let oe=0;oe<G.length;oe++){const he=+G[oe][ie];isNaN(he)||(Y=new Zn.Big(Y).add(he).toNumber())}J.total=Y}}return F}),{setRequest:Be}=t.inject(se,{setRequest:M=>{}});typeof Be=="function"&&Be({id:e.id,requestFn:R,sortNum:e.requestSort}),n({refreshData:R});const Ke=(M="",F)=>te(M,F),uo=M=>{if(M!=="event")return{self:"_self",blank:"_blank"}[M]},dr=(M,F="")=>{M==="event"&&window.parent.postMessage({type:"openPage",url:F},"*")},fr=(M,F)=>{M(F.filterCheckboxGroupValue)},mr=(M,F)=>{M({confirm:!0}),F.filterOptionsInputValue="",F.filterCheckboxGroupValue=[]},ur=()=>{},hr=M=>{const F=M.dataIndex;if(typeof F=="string"){let V=t.unref(S)[F];const G=t.unref(M.filterOptionsInputValue).trim();return Array.isArray(V)?(V=V.filter($=>typeof $.label=="string"?$.label.toLowerCase().includes(G.toLowerCase()):!0),V):[]}return[]},Gn=async()=>{var oe,Ae;const M="EXPORT_KEY";U.message.loading({key:M,content:"正在导出...",duration:0});let F=[];if(e.dataType==="static")F=e.data;else if(e.dataType==="request"){const he={layer:"1"};t.unref(I)&&(he.orderCondition=t.unref(I));const Se=await T(he);F=((Ae=(oe=Se==null?void 0:Se.data)==null?void 0:oe.data)==null?void 0:Ae.rows)||{}}const V=t.unref(d),G=[],$=[];V==null||V.forEach(he=>{G.push(he.dataIndex),$.push(he.title)});const J=F.map(he=>pe.pick(he,G)),Y=Oe.utils.book_new(),ae=Oe.utils.aoa_to_sheet([$]),ie=Oe.utils.sheet_add_json(ae,J,{skipHeader:!0,origin:"A2"});Oe.utils.book_append_sheet(Y,ie,"sheet"),Oe.writeFile(Y,"表格数据.xlsx"),U.message.success({key:M,content:"导出成功"})},gr=(M,F=2)=>{const V=+M*100;return isNaN(V)||V<=0?0:V>=100?100:V.toFixed(F)};return ne(e,{resetRecord:q,refreshData:R,exportTableData:Gn}),{x:l,y:i,style:o,customRow:B,pagination:_,formatFn:L,contrastClass:v,tableChange:x,summaryList:de,loading:O,onTouchHrefEvent:dr,handleHref:Ke,handleHrefTarget:uo,useRowIndex:j,tableColumns:d,tableDataSource:f,useFilterOptions:hr,useSetSelectedKeys:fr,onResetFilter:mr,onSearchFilterOptions:ur,exportTableData:Gn,handleProgressText:gr}}}),vs="",Is="",Qi={key:0,class:"table-tool"},Ki=t.createTextVNode("导出数据"),Xi=t.createTextVNode(" 搜索 "),er=t.createTextVNode(" 重置 "),tr={key:0},or={key:1,class:"action-list"},nr=["href","target","onClick"],ar={key:2,class:"progress-cell"};function lr(e,n,o,a,l,i){const r=t.resolveComponent("a-button"),s=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),f=t.resolveComponent("a-table-summary-cell"),C=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),w=t.resolveComponent("a-table"),m=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(m,{loading:e.loading},{default:t.withCtx(()=>[e.isUseExport?(t.openBlock(),t.createElementBlock("div",Qi,[t.createVNode(r,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[Ki]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(w,{class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:c,selectedKeys:u,setSelectedKeys:S,confirm:p,clearFilters:A})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(s,{value:c.filterOptionsInputValue,"onUpdate:value":I=>c.filterOptionsInputValue=I,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:c.filterCheckboxGroupValue,"onUpdate:value":I=>c.filterCheckboxGroupValue=I,class:"filter-checkbox",options:e.useFilterOptions(c),onChange:I=>e.useSetSelectedKeys(S,c)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(r,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:t.withCtx(()=>[Xi]),_:2},1032,["onClick"]),t.createVNode(r,{size:"small",style:{width:"90px"},onClick:t.withModifiers(I=>e.onResetFilter(A,c),["stop"])},{default:t.withCtx(()=>[er]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:c,index:u,text:S,record:p})=>[c.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",tr,t.toDisplayString(u+1),1)):c.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",or,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(A,I)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:I},[t.createElementVNode("a",{href:e.handleHref(A.href,p),target:e.handleHrefTarget(A.target),style:t.normalizeStyle({color:A.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:T=>e.onTouchHrefEvent(A.target,e.handleHref(A.href,p))},t.toDisplayString(A.title),13,nr)]))),128))])):c.format==="progress"?(t.openBlock(),t.createElementBlock("div",ar,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:c.progressColor||"#1890ff",height:c.progressWidth||"18px",width:`${e.handleProgressText(S,c.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:e.handleProgressText(S)<100?c.progressTextColor||"#333":c.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(S,c.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass([e.contrastClass(S,c.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(c.format!=null?e.formatFn(S,c.format):S),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(y,{key:0},{default:t.withCtx(()=>[t.createVNode(C,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(c,u)=>(t.openBlock(),t.createBlock(f,{key:u,index:u,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:c.cellAlign||"center",color:c.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(c.total,c.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(c.total,c.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]),_:1},8,["loading"])],4)}const Dn=H(W(Yi,[["render",lr],["__scopeId","data-v-5f774b48"]])),fo={...K,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},mo=Z(fo);be.use([ve.CanvasRenderer,ke.MapChart,ke.ScatterChart,X.VisualMapComponent,X.TooltipComponent,X.GraphicComponent]);const ir=t.defineComponent({name:"EcanMap",components:{Echarts:_e},props:{...mo},setup(e){const n=Q(e,["backgroundImage"]),o=t.ref(),a=t.computed(()=>Te(e.geoBackgroundImage)),l=t.computed(()=>Te(e.backgroundImage)),i=t.computed(()=>e.geoBackgroundImage?{image:t.unref(o),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),r=t.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+Te(C):"circle"}),s=t.computed(()=>{const C=e.geoCenter;let y;return typeof C=="string"&&C!==""&&(y=C.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(l)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:y,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(i),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(r),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),d=t.ref(!1),f=async()=>{var y;const C=e.mapJson;if(C!=null&&C.path){const w=await xe(((y=window==null?void 0:window.config)==null?void 0:y.uploadPath)+C.path);be.registerMap("map",(w==null?void 0:w.data)||{})}d.value=!0};return t.watch(()=>e.mapJson,()=>{f()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:d,geoBackgroundImageRef:o,myGeoBackgroundImage:a}}}),zs="",rr=["src"];function sr(e,n,o,a,l,i){const r=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(r,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,rr),[[t.vShow,!1]])],4)}const Fn=H(W(ir,[["render",sr],["__scopeId","data-v-1fb5cdee"]])),Rn=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:An,EcanBorder:Mn,EcanButton:fn,EcanCheckbox:un,EcanComboGraph:vn,EcanCustomGraph:En,EcanDatePicker:rn,EcanIframe:On,EcanImage:Bn,EcanInput:an,EcanLine:wn,EcanList:en,EcanMap:Fn,EcanModal:Le,EcanPageConfig:Wo,EcanPie:Sn,EcanProportion:on,EcanProviderConfig:Ho,EcanRangePicker:cn,EcanScatter:Tn,EcanScrollText:Yo,EcanSelect:gn,EcanTable:Dn,EcanTabs:Nn,EcanText:Jo,EcanTimeDisplay:Ko,EcanTreeSelect:bn,barComponentProps:Ht,barEvents:xn,barProps:Wt,borderComponentProps:to,borderEvents:In,borderProps:eo,buttonComponentProps:Nt,buttonEvents:dn,buttonProps:zt,checkboxComponentProps:Ot,checkboxEvents:mn,checkboxProps:Bt,comboGraphComponentProps:Xt,comboGraphEvents:Ln,comboGraphProps:Kt,customGraphComponentProps:Qt,customGraphProps:Yt,datePickerComponentProps:vt,datePickerEvents:ln,datePickerProps:Lt,iframeComponentProps:ro,iframeProps:io,imageComponentProps:lo,imageProps:ao,inputComponentProps:Et,inputEvents:nn,inputProps:Tt,lineComponentProps:Ut,lineEvents:kn,lineProps:Gt,listComponentProps:xt,listEvents:Xo,listProps:wt,mapComponentProps:mo,mapProps:fo,modalComponentProps:qt,modalEvents:Cn,modalProps:Vt,pageConfig:mt,pageConfigComponentProps:ut,pieComponentProps:jt,pieEvents:pn,pieProps:$t,proportionComponentProps:_t,proportionEvents:tn,proportionProps:At,providerConfig:yt,providerConfigComponentProps:bt,rangePickerComponentProps:Mt,rangePickerEvents:sn,rangePickerProps:It,scatterComponentProps:Jt,scatterEvents:_n,scatterProps:Zt,selectComponentProps:Dt,selectEvents:hn,selectProps:Pt,tableComponentProps:co,tableEvents:Pn,tableProps:so,tabsComponentProps:no,tabsEvents:zn,tabsProps:oo,textComponentProps:Ct,textEvents:Zo,textProps:pt,timeDisplayComponentProps:kt,timeDisplayEvents:Qo,timeDisplayProps:St,treeSelectComponentProps:Rt,treeSelectEvents:yn,treeSelectProps:Ft},Symbol.toStringTag,{value:"Module"})),cr={install:e=>{Object.keys(Rn).forEach(n=>{const o=Rn[n];o.install&&e.use(o)})}};h.EcanBar=An,h.EcanBorder=Mn,h.EcanButton=fn,h.EcanCheckbox=un,h.EcanComboGraph=vn,h.EcanCustomGraph=En,h.EcanDatePicker=rn,h.EcanIframe=On,h.EcanImage=Bn,h.EcanInput=an,h.EcanLine=wn,h.EcanList=en,h.EcanMap=Fn,h.EcanModal=Le,h.EcanPageConfig=Wo,h.EcanPie=Sn,h.EcanProportion=on,h.EcanProviderConfig=Ho,h.EcanRangePicker=cn,h.EcanScatter=Tn,h.EcanScrollText=Yo,h.EcanSelect=gn,h.EcanTable=Dn,h.EcanTabs=Nn,h.EcanText=Jo,h.EcanTimeDisplay=Ko,h.EcanTreeSelect=bn,h.barComponentProps=Ht,h.barEvents=xn,h.barProps=Wt,h.borderComponentProps=to,h.borderEvents=In,h.borderProps=eo,h.buttonComponentProps=Nt,h.buttonEvents=dn,h.buttonProps=zt,h.checkboxComponentProps=Ot,h.checkboxEvents=mn,h.checkboxProps=Bt,h.comboGraphComponentProps=Xt,h.comboGraphEvents=Ln,h.comboGraphProps=Kt,h.customGraphComponentProps=Qt,h.customGraphProps=Yt,h.datePickerComponentProps=vt,h.datePickerEvents=ln,h.datePickerProps=Lt,h.default=cr,h.iframeComponentProps=ro,h.iframeProps=io,h.imageComponentProps=lo,h.imageProps=ao,h.inputComponentProps=Et,h.inputEvents=nn,h.inputProps=Tt,h.lineComponentProps=Ut,h.lineEvents=kn,h.lineProps=Gt,h.listComponentProps=xt,h.listEvents=Xo,h.listProps=wt,h.mapComponentProps=mo,h.mapProps=fo,h.modalComponentProps=qt,h.modalEvents=Cn,h.modalProps=Vt,h.pageConfig=mt,h.pageConfigComponentProps=ut,h.pieComponentProps=jt,h.pieEvents=pn,h.pieProps=$t,h.proportionComponentProps=_t,h.proportionEvents=tn,h.proportionProps=At,h.providerConfig=yt,h.providerConfigComponentProps=bt,h.rangePickerComponentProps=Mt,h.rangePickerEvents=sn,h.rangePickerProps=It,h.scatterComponentProps=Jt,h.scatterEvents=_n,h.scatterProps=Zt,h.selectComponentProps=Dt,h.selectEvents=hn,h.selectProps=Pt,h.tableComponentProps=co,h.tableEvents=Pn,h.tableProps=so,h.tabsComponentProps=no,h.tabsEvents=zn,h.tabsProps=oo,h.textComponentProps=Ct,h.textEvents=Zo,h.textProps=pt,h.timeDisplayComponentProps=kt,h.timeDisplayEvents=Qo,h.timeDisplayProps=St,h.treeSelectComponentProps=Rt,h.treeSelectEvents=yn,h.treeSelectProps=Ft,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
56
+ `,Oo=!1,Da=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pa;t.nextTick(function(){Oo||(typeof window<"u"&&window.document&&window.document.documentElement&&za(n,{prepend:!0}),Oo=!0)})},Fa=["icon","primaryColor","secondaryColor"];function Ra(e,n){if(e==null)return{};var o=$a(e,n),a,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)a=i[l],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function $a(e,n){if(e==null)return{};var o={},a=Object.keys(e),l,i;for(i=0;i<a.length;i++)l=a[i],!(n.indexOf(l)>=0)&&(o[l]=e[l]);return o}function Ye(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){ja(e,l,o[l])})}return e}function ja(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var $e={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Va(e){var n=e.primaryColor,o=e.secondaryColor;$e.primaryColor=n,$e.secondaryColor=o||No(n),$e.calculated=!!o}function qa(){return Ye({},$e)}var Ne=function(n,o){var a=Ye({},n,o.attrs),l=a.icon,i=a.primaryColor,r=a.secondaryColor,s=Ra(a,Fa),d=$e;if(i&&(d={primaryColor:i,secondaryColor:r||No(i)}),Da(),Oa(zo(l),"icon should be icon definiton, but got ".concat(l)),!zo(l))return null;var u=l;return u&&typeof u.icon=="function"&&(u=Ye({},u,{icon:u.icon(d.primaryColor,d.secondaryColor)})),dt(u.icon,"svg-".concat(u.name),Ye({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ne.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ne.inheritAttrs=!1,Ne.displayName="IconBase",Ne.getTwoToneColors=qa,Ne.setTwoToneColors=Va;const ft=Ne;function Ga(e,n){return Za(e)||Ha(e,n)||Wa(e,n)||Ua()}function Ua(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wa(e,n){if(e){if(typeof e=="string")return Po(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Po(e,n)}}function Po(e,n){(n==null||n>e.length)&&(n=e.length);for(var o=0,a=new Array(n);o<n;o++)a[o]=e[o];return a}function Ha(e,n){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var a=[],l=!0,i=!1,r,s;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(a.push(r.value),!(n&&a.length===n));l=!0);}catch(d){i=!0,s=d}finally{try{!l&&o.return!=null&&o.return()}finally{if(i)throw s}}return a}}function Za(e){if(Array.isArray(e))return e}function Do(e){var n=Bo(e),o=Ga(n,2),a=o[0],l=o[1];return ft.setTwoToneColors({primaryColor:a,secondaryColor:l})}function Ja(){var e=ft.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ya=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Qa(e,n){return tl(e)||el(e,n)||Xa(e,n)||Ka()}function Ka(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xa(e,n){if(e){if(typeof e=="string")return Fo(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Fo(e,n)}}function Fo(e,n){(n==null||n>e.length)&&(n=e.length);for(var o=0,a=new Array(n);o<n;o++)a[o]=e[o];return a}function el(e,n){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var a=[],l=!0,i=!1,r,s;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(a.push(r.value),!(n&&a.length===n));l=!0);}catch(d){i=!0,s=d}finally{try{!l&&o.return!=null&&o.return()}finally{if(i)throw s}}return a}}function tl(e){if(Array.isArray(e))return e}function Ro(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){mt(e,l,o[l])})}return e}function mt(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function ol(e,n){if(e==null)return{};var o=nl(e,n),a,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)a=i[l],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function nl(e,n){if(e==null)return{};var o={},a=Object.keys(e),l,i;for(i=0;i<a.length;i++)l=a[i],!(n.indexOf(l)>=0)&&(o[l]=e[l]);return o}Do("#1890ff");var Be=function(n,o){var a,l=Ro({},n,o.attrs),i=l.class,r=l.icon,s=l.spin,d=l.rotate,u=l.tabindex,b=l.twoToneColor,g=l.onClick,C=ol(l,Ya),f=(a={anticon:!0},mt(a,"anticon-".concat(r.name),!!r.name),mt(a,i,i),a),c=s===""||s||r.name==="loading"?"anticon-spin":"",m=u;m===void 0&&g&&(m=-1,C.tabindex=m);var S=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,p=Bo(b),A=Qa(p,2),I=A[0],E=A[1];return t.createVNode("span",Ro({role:"img","aria-label":r.name},C,{onClick:g,class:f}),[t.createVNode(ft,{class:c,icon:r,primaryColor:I,secondaryColor:E,style:S},null)])};Be.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Be.displayName="AntdIcon",Be.inheritAttrs=!1,Be.getTwoToneColor=Ja,Be.setTwoToneColor=Do;const $o=Be;var al={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const ll=al;function jo(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){il(e,l,o[l])})}return e}function il(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var ut=function(n,o){var a=jo({},n,o.attrs);return t.createVNode($o,jo({},a,{icon:ll}),null)};ut.displayName="CloseOutlined",ut.inheritAttrs=!1;const rl=ut;var sl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const cl=sl;function Vo(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){dl(e,l,o[l])})}return e}function dl(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var ht=function(n,o){var a=Vo({},n,o.attrs);return t.createVNode($o,Vo({},a,{icon:cl}),null)};ht.displayName="LoadingOutlined",ht.inheritAttrs=!1;const fl=ht,ml=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:U.Spin},setup(){return{indicator:t.h(fl,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),zr="",W=(e,n)=>{const o=e.__vccOpts||e;for(const[a,l]of n)o[a]=l;return o},ul={class:"spin-wrapper"};function hl(e,n,o,a,l,i){const r=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",ul,[e.spinning?(t.openBlock(),t.createBlock(r,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const je=W(ml,[["render",hl]]),gl=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:U.Skeleton}});function yl(e,n,o,a,l,i){const r=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(r,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const Qe=W(gl,[["render",yl]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const H=(e,n)=>{if(e.install=o=>{for(const a of[e,...Object.values(n??{})])o.component(a.name,a)},n)for(const[o,a]of Object.entries(n))e[o]=a;return e},K={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},Z=e=>{const n={};if(typeof e=="object"&&e!=null)for(const o in e){const a=e[o];n[o]={type:a==null?void 0:a.constructor,default:a}}return n},gt={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},yt=Z(gt),bl=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex"],Q=(e,n=[])=>{const o=Ce.without(bl,...n);return t.computed(()=>Ce.pick(e,o))},bt="EVENT_BUS",se="GLOBAL_CONFIG",ie="GLOBAL_MODEL",ce="REQUEST_MODEL",qo="GLOBAL_TOKEN",Ve="REFRESH_PAGE",Go="MODAL_MODEL",Oe=18,Uo=(qn=window==null?void 0:window.config)==null?void 0:qn.indicatorURL;(Gn=window==null?void 0:window.config)!=null&&Gn.uploadPath;const Wo=((Un=window==null?void 0:window.config)==null?void 0:Un.routerBaseURL)||"./",pl=((Wn=window==null?void 0:window.config)==null?void 0:Wn.erdURL)||"",ae=(e,n)=>{t.watch(()=>e.id,o=>{const a=t.inject(bt,{onEvent:(l,i)=>{}});o!=null&&o!==""&&a.onEvent(o,n)},{immediate:!0})},te=e=>{const n=e.events,o=e.id,a=t.inject(bt,{emitEvent:(i,r)=>{}}),{touchEventId:l}=t.inject(se,{touchEventId:t.ref("")});return(i,r=()=>{})=>function(){r.call(this,...arguments);const{emitEvent:s}=a;n.forEach(d=>{if(i===d.on)try{l.value=o,s(d.target,d.emit)}catch(u){console.error(u)}})}},qe=(e,n)=>{let{name:o="name",value:a="value",type:l="type"}=n||{};o=o==null?void 0:o.trim(),a=a==null?void 0:a.trim(),l=l==null?void 0:l.trim();const i=new Set,r=new Map,s=e.length;for(let b=0;b<s;b++){const g=e[b],C=g[o]||"",f=g[a]||"",c=g[l]||"";if(i.add(C),r.has(c)){const m=r.get(c);m.push({name:C,value:f,...g}),r.set(c,m)}else r.set(c,[{name:C,value:f,...g}])}const d=Array.from(i),u=[];for(const[b,g]of r)u.push({name:b,data:g});return{dimensions:d,dataset:u}},Ho=window.config.requestErrorTip,_e=Co.create({timeout:1e3*180});_e.interceptors.request.use(e=>e,e=>Promise.reject(e)),_e.interceptors.response.use(e=>{var n,o,a;return Ho&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&U.message.error({content:((o=e==null?void 0:e.data)==null?void 0:o.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR"}),e},e=>{if(Ho)if(e.message.includes("timeout"))U.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&U.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&U.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const Cl=e=>e.replace(/\\n/g,`
59
+ `),pt=(e,n=2)=>{const o=parseFloat(e+"");return isNaN(o)?e:o.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Sl=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Ke=(e,n=2)=>{const o=e+"";if(o.includes("%"))return e;const a=parseFloat(o);return isNaN(a)?e:`${(a*100).toFixed(n)}%`},Xe=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,et=(e,n)=>{const o={dayjs:me,...n};let a="";const l=[];for(const s in o)a+=`${s},`,l.push(o[s]);a=a.replace(/,$/,"");const i=`function (${a}){return ${e}}`;let r;try{r=Function(`"use strict";return (${i})`)()(...l)}catch{return e}return r},oe=(e="",{textData:n,codeData:o}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let d=0;d<s.length;d++){const u=s[d];let b=u.slice(1,-1).trim();const g=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=b.match(g);for(let f=0;f<C.length;f++){const c=C[f],m=r[c];m!=null&&(b=b.replace(c,m))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=et(b,o)),e=e.replace(u,b)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),l&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},he=(e,n=()=>{})=>{const{requestUrl:o,requestMethod:a,requestHeaders:l,requestParams:i,requestInterval:r,isOpenRequestTimer:s}=e,{contextRequestUrl:d,touchEventId:u}=t.inject(se,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:b}=t.inject(ie,{getGlobalModel:c=>{}}),g=oe(o),C=async(c={})=>{if(!g||!a||!l)return;let m={};i.forEach(E=>{const{key:O,value:y}=E;if(typeof y=="object"&&y!=null&&y.id){let _={};const{id:T,prop:P,propKey:L,operate:j}=y;T==="THIS"?_=b(t.unref(u))||{}:_=b(T)||{};const M=t.unref(_[P]);let x=null;if(["date","range"].some(N=>Xe(_==null?void 0:_.type,N))){const{value:N,type:D,mode:w}=j||{};if(N&&D&&w)switch(D){case"add":x=t.unref(M).add(N,w);break;case"minus":x=t.unref(M).subtract(N,w);break}x==null&&(x=t.unref(M)),x=(x==null?void 0:x.format((L==null?void 0:L.trim())||_.format))||""}else Object.prototype.toString.call(M)==="[object Object]"?L?x=M[L]:x=P?M[P]:M:Xe(_==null?void 0:_.type,"select")&&t.unref(M)&&P&&Array.isArray(t.unref(M))?x=t.unref(M).map(N=>Object.prototype.hasOwnProperty.call(N,P)?N[P]:N):x=M;m[O]=x}else typeof y=="string"&&(m[O]=oe(y))}),m={...window.config.requestParams,...c,...m};let S="";const p=Object.keys(m),A=p.length-1,I=p.length;p.forEach((E,O)=>{let y=m[E];Object.prototype.toString.call(y)==="[object Object]"&&(y=JSON.stringify(y)),O===0?I!==1?S+=`?${E}=${y}&`:S+=`?${E}=${y}`:O===A?S+=`${E}=${y}`:S+=`${E}=${y}&`});try{const E=["get","head"].includes(a);let O=E?g+S:g;m.dataSqlId&&!O.includes("dataSqlId")&&(O+=`${O.includes("?")?"&":"?"}dataSqlId=${m.dataSqlId}`);const y=await _e({baseURL:t.unref(d)||"",url:O,method:a,headers:l,data:E?{}:m});return n(y),y}catch(E){console.error(E)}},f=s&&setInterval(C,r*1e3);return t.onUnmounted(()=>{clearInterval(f)}),C},Pe=(e=[],n)=>{let{name:o="name",types:a=[]}=n||{};o=(o==null?void 0:o.trim())||o;const l=new Set,i=new Map,r=e.length,s=a.length;if(r===1){const b=[];for(let C=0;C<s;C++){const f=a[C],{label:c,value:m}=f,S={...e[0],value:e[0][m]};l.add(c),b.push(S)}const g=e[0][o]||"";i.set(g,b)}else for(let b=0;b<r;b++){const g=e[b],C=g[o];l.add(C);for(let f=0;f<s;f++){const c=a[f],{label:m,value:S}=c,p={...g,value:g[S]};if(i.has(m)){const A=i.get(m);A.push(p),i.set(m,A)}else i.set(m,[p])}}const d=Array.from(l),u=[];for(const[b,g]of i)u.push({name:b,data:g});return{dimensions:d,dataset:u}},ve=(e,n=!1)=>{var a;if(!e)return e;let o="";return e!=null&&e.includes("://")?o=e:o=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,n&&(o=`url(${o})`),o},Zo=(e,n)=>{const o=`${Wo}/preview?pageId=${n}`,a=`${Wo}/${n}`;return e==="preview"?o:a},Ie=(e,n)=>{var l;if(e==null)return n;const o=e.match(/\{.*\}/g);if(o==null||o.length===0)return n;const a=o.length;for(let i=0;i<a;i++){const r=o[i];if(r==null||r==="")break;let s=(l=r.slice(1,-1))==null?void 0:l.trim();s=s==null?void 0:s.replace(/value/g,n);try{let d=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(d=et(s)),e=e.replace(r,d)}catch{e=e.replace(r,s)}}return e},Ge=(e={})=>{const{requestToken:n}=t.inject(qo,{requestToken:()=>{}});e.dataType==="indicator"&&n();const o=(r={})=>{const{label:s,name:d,location:u,show:b,indexCode:g}=r;return{label:s,columnName:d,location:u,show:b,calcType:"COLUMN",hrpIndexCode:g}},a=(r={})=>{const{label:s,name:d,location:u,show:b,indexCode:g,calcType:C="COLUMN",builtInFormula:f,builtInValueSource:c,builtInCalcWay:m,formula:S,conditions:p}=r;return{label:s,columnName:d,location:u,show:b,calcType:C,hrpIndexCode:g,aggregate:"SUM",builtInFormula:f,builtInValueSource:c,builtInCalcWay:m,formula:S,conditions:p}},{getGlobalModel:l}=t.inject(ie,{getGlobalModel:r=>{}}),i=(r=[])=>{var u;const s=r.length;console.log("controlList",r);const d=[];for(let b=0;b<s;b++){const g=r[b],{id:C,conditionLabel:f,conditionKey:c,conditionValueType:m}=g,S={rule:"NONE",label:f,fieldName:c,fieldValue:"2020-02",dateFormat:"YYYY-MM",valueType:m},p=l(C)||{};if(console.log("model",p),Xe(p.type,"date")){const{value:A,format:I}=p||{};S.fieldValue=(u=t.unref(A))==null?void 0:u.format(I),S.dateFormat=I}d.push(S)}return d};return async()=>{var M;const{graphicConfig:r,type:s}=e;let{source:d,dataViewId:u,plugin:b="1",layer:g,chartType:C,classificationList:f=[],seriesList:c=[],leftAxisList:m=[],rightAxisList:S=[],queryColumnList:p=[],indicators:A=[],controlList:I=[],dataSourceId:E,idxLibMode:O,preview:y=!1}=r||{};g==null&&(Xe(s,"table")?g="1":g="2");let _;if(Array.isArray(f)&&f.length>0){const x=f.length;for(let $=0;$<x;$++){const N=f[$]||{},{label:D="",name:w="",show:v=!1,sort:k,customGroup:B,conditions:R}=N;if(v||x===1){_={label:D,columnName:w,show:v,sort:k,customGroup:B,conditions:R};break}}}let T;if(Array.isArray(c)&&c.length>0){const x=c.length;for(let $=0;$<x;$++){const N=c[$]||{},{label:D="",name:w="",show:v=!1,sort:k,customGroup:B,conditions:R}=N;if(v||x===1){T={label:D,columnName:w,show:v,sort:k,customGroup:B,conditions:R};break}}}const P=[];p==null||p.forEach(x=>{P.push(o(x))});const L=[];if(m==null||m.forEach(x=>{x.location="LEFT",L.push(a(x))}),S==null||S.forEach(x=>{x.location="RIGHT",L.push(a(x))}),A==null||A.forEach(x=>{x.location="LEFT",L.push(a(x))}),g==="1"&&P.length===0)return;if(g==="2"&&L.length===0)return;const j=i(I);try{return await _e.post(`${Uo}/diagram`,{source:d,dataViewId:u,plugin:b,layer:g,chartType:C,classification:_,series:T,indicatorList:L,queryColumns:P,pageFlag:!0,sqlConditions:j,dataSourceId:E,idxLibMode:O,preview:y},{headers:{Authentication:(M=window==null?void 0:window.config)==null?void 0:M.indicatorToken,operateContext:"ygt"}})}catch(x){console.error(x)}}},kl=()=>{const n=window.location.search.slice(1).split("&"),o=n.length,a={};for(let l=0;l<o;l++){const i=n[l];if(i==null||i==="")continue;const r=i.split("=");if(Array.isArray(r)){const s=r[0];a[s]=r[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},wl=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...yt},setup(e){const n=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:ve(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),o=t.ref(0),a=t.ref(0),l=t.ref(0),i=t.ref(0),r=t.ref(!1),s=t.ref();let d;const u=()=>new Promise(m=>{t.nextTick(()=>{e.width&&e.height?(o.value=parseFloat(e.width),a.value=parseFloat(e.height)):(o.value=s.value.clientWidth,a.value=s.value.clientHeight),(!l.value||!i.value)&&(l.value=window.screen.width,i.value=window.screen.height),m()})}),b=()=>{o.value&&a.value?(s.value.style.width=`${o.value}px`,s.value.style.height=`${a.value}px`):(s.value.style.width=`${l.value}px`,s.value.style.height=`${i.value}px`)},g=()=>{const m=document.body.clientWidth,S=document.body.clientHeight,p=o.value||l.value,A=a.value||i.value,I=m/p,E=S/A;s.value&&(s.value.style.transform=`scale(${I}, ${E})`)},C=Ce.debounce(async()=>{await u(),g()},100),f=()=>{const m=window.MutationObserver;d=new m(C),d.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},c=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return t.onMounted(async()=>{r.value=!1,await u(),b(),g(),window.addEventListener("resize",C),f(),r.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",C),c()}),{style:n,container:s,ready:r}}}),Nr="",xl={id:"container",ref:"container"};function Al(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",xl,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Jo=H(W(wl,[["render",Al],["__scopeId","data-v-242d350e"]])),Ct={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},St=Z(Ct),_l=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...St},setup(e,{expose:n}){kl();const o=t.ref(),a=()=>{o.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>oe(e.contextRequestUrl)),i=t.computed(()=>e.pageMode),r=t.computed(()=>e.theme),s=t.ref("");t.provide(se,{contextRequestUrl:l,pageMode:i,theme:r,touchEventId:s});const d=new Map;console.log("globalModel",d);const u=D=>d.get(D),b=(D,w)=>{d.set(D,w)};t.provide(ie,{getGlobalModel:u,setGlobalModel:b});const g=[],C=()=>{g.pop()},f=D=>{g.push(D)},c=new Map,m=D=>c.get(D),S=(D,w)=>{c.set(D,w)};t.provide(Go,{popUseModalIds:C,pushUseModalIds:f,getModalModel:m,setModalModel:S});const p=Jn(),A=new Set,I=(D,w)=>{A.add(D),p.on(D,v=>typeof w[v]=="function"&&w[v]()),t.onBeforeUnmount(()=>{E(D)})},E=D=>{A.delete(D),p.off(D)},O=(D,w)=>{if(D==="PAGE"){const v=g.length;let k=[];if(v===0)k=[...A];else{const B=g[v-1];k=[...m(B)]}k.forEach(B=>{p.emit(B,w)})}else p.emit(D,w)};t.provide(bt,{onEvent:I,offEvent:E,emitEvent:O});const y=t.ref(0),_=()=>{y.value=t.unref(y)+1};t.provide(qo,{requestToken:_});const T=new Map,P=new Map,L=({requestFn:D=()=>{},sortNum:w=0,id:v=""})=>{if(T.has(w)){const k=T.get(w);k==null||k.push(D)}else T.set(w,[D]);P.set(v,D)},j=D=>new Promise((w,v)=>{const k=D.map(B=>B());Promise.all(k).then(B=>{w(B)}).catch(B=>{v(B)})}),M=async()=>{var v;const D=await Co.get(`${Uo}/user/anonymous?username=admin&businessOfficeId=350421`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt",Authentication:""}}),{token:w}=((v=D.data)==null?void 0:v.data)||{};window.config.indicatorToken=w},x=D=>new Promise(async(w,v)=>{if(D){if(typeof D=="string"){const k=P.get(D);if(typeof k=="function"){const B=_e.interceptors.response.use(R=>(w(R),R),R=>(v(R),Promise.reject(R)));k(),_e.interceptors.response.eject(B)}}}else{const k=Array.from(T);k.sort((R,ee)=>ee[0]-R[0]);const B=k.length;try{e.pageMode!=="design"&&t.unref(y)>0&&await M();for(let R=0;R<B;R++){const ee=k[R][1];await j(ee)}}catch(R){console.error(R)}finally{T.clear(),w(null)}}});t.provide(ce,{setRequest:L,touchRequest:x});const $=()=>{p.emit(Ve)};t.provide(Ve,{emitRefreshPage:$});const N=D=>{p.on(Ve,()=>D()),t.onMounted(()=>{p.off(Ve)})};return t.onBeforeUnmount(()=>{T==null||T.clear(),P==null||P.clear()}),n({touchRequest:x,getGlobalModel:u,onRefreshPage:N}),{providerConfig:o}}}),Tl={id:"ProviderConfig",ref:"providerConfig"};function El(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",Tl,[t.renderSlot(e.$slots,"default")],512)}const Yo=H(W(_l,[["render",El]])),kt={...K,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{}},wt=Z(kt),Qo=["refreshData","click","valueChange"],Ll="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",vl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Il=t.defineComponent({name:"EcanText",components:{Skeleton:Qe},props:{...wt},setup(e){const n=Q(e),o=t.ref({});t.watch(()=>[e.data,e.dataType],([f,c])=>{c==="static"&&(o.value=f)},{immediate:!0});const a=t.computed(()=>{var S;const f=t.unref(o);let c=e.text;c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>"),c=c==null?void 0:c.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const m=c.match(/\{(.+?)\}/g);if(m==null||m.length===0)return c;for(let p=0;p<m.length;p++){const A=m[p],I=(S=A==null?void 0:A.slice(1,A.length-1))==null?void 0:S.trim();let E=I;const O=I.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let _=0;_<O.length;_++){const T=O[_],P=f[T];P&&(E=I.replace(T,P))}if(/\(.*\)/g.test(E)){const _=et(E);_!=null&&(E=_)}let y=E;if(y===I&&(y=e.variableDefaultValue),y!=null){const _=e.format;_==="percentage"?(y=+y,isNaN(y)?c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`):y>=0?(y=(y*100).toFixed(2),c=c.replace(A,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Ll}"/>${y}%</span>`)):(y=(y*100).toFixed(2),c=c.replace(A,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${vl}"/>${Math.abs(+y)}%</span>`))):e.format==="percent"?(y=+y,isNaN(y)||(y=(y*100).toFixed(2),c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}%</span>`))):e.format==="money"?(y=+y,isNaN(y)||(y=pt(y),c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`))):_==="thousands"?(y=+y,isNaN(y)||(y=Sl(y),c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`))):c=c.replace(A,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`)}}return`<span>${c}</span>`}),{pageMode:l}=t.inject(se,{pageMode:"normal"}),i=he(e),r=t.ref(!1),s=async()=>{var f;try{r.value=!0;const c=await i();o.value=((f=c==null?void 0:c.data)==null?void 0:f.data)||{}}catch(c){console.error(c)}finally{r.value=!1}},d=()=>{e.dataType!=="static"&&s()};ae(e,{refreshData:d});const{setRequest:u}=t.inject(ce,{setRequest:({id:f,sortNum:c,requestFn:m})=>{}});u({id:e.id,requestFn:d,sortNum:e.requestSort}),ae(e,{refreshData:d});const b=te(e),g=b("click",()=>{if(!e.linkPage&&!e.href)return;const f=e.linkPage||"",c=Zo(t.unref(l),f),m=e.href;let S=m||c;S=oe(S);const p=e.target;p&&(p!=="event"?window.open(S,"_"+p):window.parent.postMessage({type:"openPage",url:m},"*"))}),C=b("valueChange",()=>{});return t.watch(()=>a.value,(f,c)=>{f!==c&&C()}),{style:n,myText:a,loading:r,click:g}}}),Pr="",Ml=["innerHTML"];function zl(e,n,o,a,l,i){const r=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(r,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-text",style:t.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Ml))}const Ko=H(W(Il,[["render",zl],["__scopeId","data-v-e3658bca"]])),Nl=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),Fr="",Bl={class:"red"};function Ol(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",Bl,t.toDisplayString(e.text),1)}const Xo=H(W(Nl,[["render",Ol],["__scopeId","data-v-4dd9c03e"]])),xt={...K,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},At=Z(xt),en=["timeChange"],Pl=t.defineComponent({name:"EcanTimeDisplay",props:{...At},setup(e){const n=Q(e),o=()=>{const{format:u,operate:b}=e;let g=me();if(b){const{type:C,value:f,mode:c}=b;switch(C){case"add":g=g.add(f,c);break;case"minus":g=g.subtract(f,c)}}return g.format(u)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=o()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let l=null;const i=()=>{clearInterval(l),l=null},s=te(e)("timeChange",()=>{}),d=()=>{l&&i();let u=1e3;const{value:b,mode:g}=e.updateInterval||{};b&&(u=u*b);const C={second:1,minute:60,hour:60*60,day:24*60*60};g&&(u=u*C[g]),l=setInterval(()=>{a.value=o(),s()},u)};return ae(e,{timeChange:s}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:n,time:a}}}),$r="";function Dl(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const tn=H(W(Pl,[["render",Dl],["__scopeId","data-v-b628fca2"]])),_t={...K,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},Tt=Z(_t),on=["refreshData","click"],Fl=t.defineComponent({name:"EcanList",components:{Skeleton:Qe},props:{...Tt},setup(e){const n=t.ref(e.data),o=Q(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(f,c)=>c==null||c===""?f:{money:pt,percentage:Ke,contrast:Ke}[c](f)||"",i=(f,c)=>{const m=parseFloat(f+"");if(c!=="contrast")return"";switch(!0){case m>=0:return"goUp";case m<0:return"goDown"}},r=he(e),s=t.ref(!1),d=async()=>{var f;if(e.dataType==="request")try{s.value=!0;const c=await r();n.value=((f=c==null?void 0:c.data)==null?void 0:f.data.rows)||[]}catch(c){console.error(c)}finally{s.value=!1}},u=()=>{d()},g=te(e)("click",()=>{});ae(e,{refreshData:u});const{setRequest:C}=t.inject(ce,{setRequest:({id:f,sortNum:c,requestFn:m})=>{}});return C({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,formatFn:l,columnStyle:a,contrastClass:i,dataSource:n,loading:s,click:g}}}),Vr="",qr="",Rl=e=>(t.pushScopeId("data-v-7aa27677"),e=e(),t.popScopeId(),e),$l={key:0,class:"title"},jl={key:0,class:"ranking"},Vl={key:1,class:"ecan-list-content"},ql={key:0,class:"ranking"},Gl=Rl(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Ul={class:"sort"},Wl={key:2,class:"empty"};function Hl(e,n,o,a,l,i){const r=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(r,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",$l,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,s=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(t.openBlock(),t.createElementBlock("div",jl)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(d,u)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:d.key||u,style:t.normalizeStyle({color:d.titleColor,...e.columnStyle})},t.toDisplayString(d.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",Vl,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(s,d)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(d+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:s.id||d,onClick:n[0]||(n[0]=(...u)=>e.click&&e.click(...u))},[e.useRanking?(t.openBlock(),t.createElementBlock("div",ql,[Gl,t.createElementVNode("div",Ul," Top "+t.toDisplayString(d+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,u=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(s[u.key],u.format)]),key:u.key,style:t.normalizeStyle({fontSize:u.fontSize,color:e.contrastClass(s[u.key],u.format)===""?u.color:"",fontWeight:u.fontWeight,...e.columnStyle})},t.toDisplayString((u.format!=null||u.format!=="")&&e.formatFn(s[u.key],u.format)),7))),128))],4))),128))])):(t.openBlock(),t.createElementBlock("div",Wl," 暂无数据 "))]),_:1},8,["loading"])],4)}const nn=H(W(Fl,[["render",Hl],["__scopeId","data-v-7aa27677"]])),Et={...K,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0"},Lt=Z(Et),an=["refreshData","click"],Zl=t.defineComponent({name:"EcanProportion",components:{AProgress:U.Progress,Skeleton:Qe},props:{...Lt},setup(e){const{pageMode:n}=t.inject(se,{pageMode:"normal"}),o=Q(e),a=t.computed(()=>{const c=e.width;return parseFloat(c)}),l=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(n)==="design")&&(l.value=e.data)},{immediate:!0,deep:!0});const i=t.computed(()=>{const c=t.unref(l),m=+e.variableDefaultValue;if(c==null)return isNaN(m)?0:m;const S=e.text.match(/\{.+\}/g)||[];let p;const A=new Set(Object.keys(c));for(let I=0;I<S.length;I++){const E=S[I],O=E.slice(1,E.length-1);if(A.has(O)){p=c[O];break}}return typeof p=="number"?p=p*100:typeof p=="string"&&!isNaN(+p)?p=+p*100:isNaN(m)?p=0:p=m*100,e.decimalFormat&&(p=+p.toFixed(2)),p}),r=t.computed(()=>{var A;let c=e.text;if(c==="")return t.unref(i);const m=e.variableDefaultValue,S=t.unref(l),p=c.match(/\{.+\}/g)||[];for(let I=0;I<p.length;I++){const E=p[I];let O=E.slice(1,E.length-1);const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,_=E.match(y);for(let P=0;P<(_==null?void 0:_.length);P++){const L=(A=_[P])==null?void 0:A.trim();S[L]!=null&&(O=O.replace(L,S[L]))}let T=O;try{/\(.*\)/g.test(O)&&(T=et(O))}catch(P){console.error(P)}typeof+T=="number"&&!isNaN(+T)?(T=+T*100,e.decimalFormat&&(T=T.toFixed(2))):T=m,c=c.replace(E,T+"")}return c}),s=he(e),d=t.ref(!1),u=async()=>{var c;if(e.dataType==="request")try{d.value=!0;const m=await s();l.value=((c=m==null?void 0:m.data)==null?void 0:c.data)||{}}catch(m){console.error(m)}finally{d.value=!1}};ae(e,{refreshData:()=>{u()}});const C=te(e)("click",()=>{}),{setRequest:f}=t.inject(ce,{setRequest:({id:c,sortNum:m,requestFn:S})=>{}});return f({id:e.id,requestFn:u,sortNum:e.requestSort}),{style:o,myWidth:a,text:r,myValue:i,loading:d,click:C}}}),Ur="";function Jl(e,n,o,a,l,i){const r=t.resolveComponent("skeleton"),s=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(r,{key:0,loading:e.loading},null,8,["loading"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5))]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)}const ln=H(W(Zl,[["render",Jl],["__scopeId","data-v-00244f8a"]])),vt={...K,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},It=Z(vt),rn=["inputChange","inputBlur"],Yl=t.defineComponent({name:"EcanInput",components:{AInput:U.Input},props:{...It},setup(e){const n=Q(e),o=t.ref("");t.watch(()=>e.value,u=>{o.value=u},{immediate:!0});const{getGlobalModel:a,setGlobalModel:l}=t.inject(ie,{getGlobalModel:u=>{},setGlobalModel:(u,b)=>{}});l(e.id,{type:e.type,value:o});const i=()=>{const u=a(e.id);l(e.id,{...u,RECORD:o})},r=te(e),s=Ce.debounce(r("inputChange",()=>{i()}),300),d=r("inputBlur",()=>{});return{style:n,myValue:o,inputBlur:d,inputChange:s}}}),Hr="";function Ql(e,n,o,a,l,i){const r=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const sn=H(W(Yl,[["render",Ql]])),Mt={...K,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null},zt=Z(Mt),cn=["dateChange"],Kl=t.defineComponent({name:"EcanDatePicker",props:{...zt},components:{ADatePicker:U.DatePicker},setup(e){const n=Q(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([d,u,b])=>{let g=null;if(d?g=me(oe(d)):u&&(g=me()),b&&g){const{type:C,value:f,mode:c}=b;switch(C){case"add":g=g.add(f,c);break;case"minus":g=g.subtract(f,c)}}a.value=g},{deep:!0,immediate:!0});const{setGlobalModel:l}=t.inject(ie,{setGlobalModel:(d,u)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const r=te(e)("dateChange",()=>{}),s=()=>{t.unref(a)&&r()};return ae(e,{dateChange:r}),{style:n,getPopupContainer:o,myValue:a,locale:So,change:s}}}),Jr="";function Xl(e,n,o,a,l,i){const r=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const dn=H(W(Kl,[["render",Xl]])),Nt={...K,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:""},Bt=Z(Nt),fn=["dateChange"],ei=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:U.RangePicker},props:{...Bt},setup(e){const n=Q(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([S,p,A,I,E,O])=>{let y=null,_=null;if(A&&(y=me().subtract(I,E),_=me()),S&&(y=me(oe(S))),p&&(_=me(oe(p))),O){const{type:T,value:P,mode:L}=O;switch(T){case"add":y=y&&y.add(P,L),_=_&&_.add(P,L);break;case"minus":y=y&&y.subtract(P,L),_=_&&_.subtract(P,L)}}a.value=[y,_]},{immediate:!0});let l=t.unref(a)[0],i=t.unref(a)[1];const r=S=>{Array.isArray(S)?(l=S[0],i=S[1]):(l=null,i=null)},s=S=>{let p=!1,{limitStartTime:A,limitEndTime:I}=e;const E={startTime:`${l||""}`,endTime:`${i||""}`};return A=oe(A,{codeData:E}),I=oe(I,{codeData:E}),A&&I?p=!(me(A)<S&&S<me(I)):A?p=me(A)>S:I&&(p=me(I)<S),p},{setGlobalModel:d}=t.inject(ie,{setGlobalModel:(S,p)=>{}}),u=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),b=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);d(e.id,{type:e.type,format:e.format,startTime:u,endTime:b});const g=te(e);let C=!1;const f=g("dateChange",()=>{}),c=S=>{const p=t.unref(a),A=p&&p[0]&&p[1];S===!1&&C===!0&&A&&(f(),C=!1)},m=()=>{C=!0};return ae(e,{dateChange:f}),{style:n,getPopupContainer:o,locale:So,dateChange:f,myValue:a,disabledDate:s,calendarChange:r,openChange:c,change:m}}}),Qr="",Kr="";function ti(e,n,o,a,l,i){const r=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const mn=H(W(ei,[["render",ti],["__scopeId","data-v-5a46a4a9"]])),Ot={...K,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},Pt=Z(Ot),un=["click"],oi=t.defineComponent({name:"EcanButton",components:{AButton:U.Button},props:{...Pt},setup(e){const n=Q(e),a=te(e)("click",()=>{const s=t.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),l=t.computed(()=>oe(e.text)),i=t.computed(()=>oe(e.href)||null),r=t.computed(()=>{const s=e.target;if(!(s==="event"||t.unref(i)==null))return{self:"_self",blank:"_blank"}[s]});return{style:n,click:a,myText:l,myHref:i,myTarget:r}}}),es="";function ni(e,n,o,a,l,i){const r=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(r,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const hn=H(W(oi,[["render",ni]])),Dt={...K,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}]},Ft=Z(Dt),gn=["checkboxChange"],ai=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:U.CheckboxGroup},props:{...Ft},setup(e){const n=Q(e),o=t.ref([]),a=t.ref([]),l=C=>{const f=e.value;let c=[];C.forEach(m=>{m.checked&&c.push(m.value)}),typeof f=="string"&&f!==""?c=c.concat(f.split(",")):Array.isArray(f)&&(c=c.concat(f)),o.value=C,a.value=c};t.watch(()=>[e.data,e.value],([C])=>{l(C)},{immediate:!0,deep:!0});const i=he(e),r=async()=>{var c,m;if(e.dataType!=="request")return;const C=await i(),f=((m=(c=C==null?void 0:C.data)==null?void 0:c.data)==null?void 0:m.rows)||[];l(f)},{getGlobalModel:s,setGlobalModel:d}=t.inject(ie,{getGlobalModel:C=>{},setGlobalModel:(C,f)=>{}});d(e.id,{type:e.type,value:a});const b=te(e)("checkboxChange",()=>{const C=s(e.id);d(e.id,{...C,RECORD:a})}),{setRequest:g}=t.inject(ce,{setRequest:({id:C,sortNum:f,requestFn:c})=>{}});return g({id:e.id,requestFn:r,sortNum:e.requestSort}),{myOption:o,style:n,myValue:a,checkboxChange:b}}}),os="";function li(e,n,o,a,l,i){const r=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(r,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const yn=H(W(ai,[["render",li]])),Rt={...K,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value"},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1},$t=Z(Rt),bn=["selectChange","refreshData"],ii=t.defineComponent({name:"EcanSelect",components:{ASelect:U.Select},props:{...$t},setup(e){const n=Q(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=he(e),l=t.ref(e.data||[]),i=t.ref();t.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:m,selectFirstOption:S,value:p}=e;m==="multiple"||m==="tags"||m==="combobox"?p?i.value=p.split(","):S&&(i.value=[t.unref(l)[0]]):p?i.value=p:S&&(i.value=t.unref(l)[0])},{immediate:!0});const r=e.dataFieldNames,s=(m,S)=>{const p=r.label,A=r.value;let I;const E=S[p],O=S[A];return E!=null?I=E:O!=null&&(I=O),(I==null?void 0:I.toLowerCase().indexOf(m==null?void 0:m.toLowerCase()))>=0},d=t.ref(!1),u=async()=>{var m,S;if(e.dataType==="request"){d.value=!0;try{const p=await a();l.value=((S=(m=p==null?void 0:p.data)==null?void 0:m.data)==null?void 0:S.rows)||[];const A=t.unref(l)[0];e.value===""&&A!=null&&(i.value=A[r.value])}catch(p){console.error(p)}finally{d.value=!1}}},{getGlobalModel:b,setGlobalModel:g}=t.inject(ie,{getGlobalModel:m=>{},setGlobalModel:(m,S)=>{}});g(e.id,{type:e.type,value:i});const f=te(e)("selectChange",()=>{const m=e.id,S=b(m);g(m,{...S,RECORD:i})});ae(e,{selectChange:f,refreshData:u});const{setRequest:c}=t.inject(ce,{setRequest:({id:m,sortNum:S,requestFn:p})=>{}});return c({id:e.id,requestFn:u,sortNum:e.requestSort}),{style:n,getPopupContainer:o,myValue:i,selectChange:f,options:l,filterOption:s,loading:d}}}),as="",ls="";function ri(e,n,o,a,l,i){const r=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const pn=H(W(ii,[["render",ri],["__scopeId","data-v-c0b8fe0f"]])),jt={...K,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Vt=Z(jt),Cn=["selectChange","refreshData"],si={name:"EcanTreeSelect",components:{ATreeSelect:U.TreeSelect},props:{...Vt},setup(e){const n=Q(e),o=t.ref(e.data),a=(f,c)=>{const m=e.dataFieldNames,S=m.label,p=m.value;let A;const I=c[S],E=c[p];return I!=null?A=I:E!=null&&(A=E),(A==null?void 0:A.toLowerCase().indexOf(f==null?void 0:f.toLowerCase()))>=0},l=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:f,value:c,selectFirstOption:m}=e;f?c?l.value=c.split(","):m&&(l.value=[t.unref(o)[0]]):c?l.value=c:m&&(l.value=t.unref(o)[0])},{immediate:!0});const i=t.ref(!1),r=he(e),s=async()=>{var f,c;if(e.dataType==="request"){i.value=!0;try{const m=await r();o.value=((c=(f=m==null?void 0:m.data)==null?void 0:f.data)==null?void 0:c.rows)||[];const S=t.unref(o)[0];e.value===""&&S!=null&&(l.value=S[e.dataFieldNames.value])}catch(m){console.error(m)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:u}=t.inject(ie,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}});u(e.id,{type:e.type,value:l});const g=te(e)("selectChange",()=>{const f=e.id,c=d(f);u(f,{...c,RECORD:l})});ae(e,{selectChange:g,refreshData:s});const{setRequest:C}=t.inject(ce,{setRequest:({id:f,sortNum:c,requestFn:m})=>{}});return C({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:o,filterTreeNode:a,myValue:l,loading:i,selectChange:g}}},rs="",ss="";function ci(e,n,o,a,l,i){const r=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(r,{class:"tree-select",value:a.myValue,"onUpdate:value":n[0]||(n[0]=s=>a.myValue=s),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const Sn=H(W(si,[["render",ci],["__scopeId","data-v-37236421"]])),qt={...K,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Gt=Z(qt),kn=["click","refreshData","resetRecord"],Ue=async e=>{var d;const n=await _e.post(e,{},{responseType:"blob"}),{data:o,headers:a}=n,l=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([o]),r=document.createElement("a"),s=window.URL.createObjectURL(i);r.href=s,r.download=decodeURI(l),r.style.display="none",document.body.appendChild(r),r.click(),(d=r.parentNode)==null||d.removeChild(r),window.URL.revokeObjectURL(s)},Ut={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default"},Wt=Z(Ut),wn=["showModal"],di=t.defineComponent({name:"EcanModal",components:{AModal:U.Modal,CloseOutlined:rl},props:{...Wt},setup(e,{emit:n}){const o=()=>document.getElementById("ProviderConfig")||document.body,a=t.computed(()=>{const k=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[k]}}),l=e.width,i=e.height,r=e.originalWidth,s=e.originalHeight,d=t.ref("80%"),u=t.ref(0),b=t.ref(),g=t.ref(0),C=t.ref({}),f=Q(e),c=t.ref({}),m=t.ref(!1),S=t.ref();let p;const A=()=>{b.value=parseFloat(l)/parseFloat(r);const k=parseFloat(i)/parseFloat(s),B=document.body.offsetWidth,R=document.body.offsetHeight;u.value=B*t.unref(b),g.value=R*k,d.value=`${t.unref(b)*100}%`,C.value={width:`${t.unref(u)}px`,height:`${t.unref(g)}px`},c.value={...t.unref(f),backgroundImage:ve(e.backgroundImage,!0),transform:`scale(${t.unref(u)/parseFloat(l)},${t.unref(g)/parseFloat(i)})`}},I=Ce.debounce(()=>{A()},100),E=()=>{const k=window.MutationObserver;p=new k(I),p.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},O=()=>{p&&(p.disconnect(),p.takeRecords(),p=null)},y=t.ref(!1),{touchRequest:_}=t.inject(ce,{touchRequest:()=>{}}),T=()=>{y.value=!0},P=()=>{n("close"),y.value=!1},L=()=>{P()},j=()=>{P()},{setModalModel:M,pushUseModalIds:x,popUseModalIds:$}=t.inject(Go,{pushUseModalIds:k=>{},popUseModalIds:()=>{},setModalModel:(k,B)=>{}}),N=()=>{const k=e.id;let B=[];const R=e.componentList;console.log("componentList",R),Array.isArray(R)&&(B=R.map(ee=>ee.id),M(k,[...new Set(B)]))};t.watch(()=>y.value,async k=>{k?(m.value=!1,x(e.id),N(),await t.nextTick(()=>{A(),window.addEventListener("resize",I),E(),m.value=!0}),_()):($(),window.removeEventListener("resize",I),O())});const D=t.computed(()=>t.unref(b)>=1),w=t.computed(()=>e.fullModal),v=t.computed(()=>{let k="ecan-modal";return t.unref(D)&&(k+=" ecan-full-width-modal"),t.unref(w)&&(k+=" ecan-full-modal"),k});return ae(e,{showModal:T}),{modalRef:S,containStyle:C,contentStyle:c,getContainer:o,modalStyle:a,modalWith:d,isFullModal:w,style:f,visible:y,showModal:T,onOk:L,onCancel:j,isFullWidth:D,wrapClassName:v,ready:m}}}),ds="",fs="",fi={key:0};function mi(e,n,o,a,l,i){const r=t.resolveComponent("close-outlined"),s=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[t.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.title),5)):t.createCommentVNode("",!0),t.createVNode(r,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(t.openBlock(),t.createElementBlock("div",fi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,(d,u)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.type),t.mergeProps({key:d.id+u},d),null,16))),128))])):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const Me=H(W(di,[["render",mi],["__scopeId","data-v-2814b49f"]]));pe.use([ze.CanvasRenderer,xe.PieChart,X.TitleComponent,X.ToolboxComponent,X.TooltipComponent,X.LegendComponent]);const ui=t.defineComponent({name:"EcanPie",props:{...Gt},components:{Spin:je,Echarts:Le,EcanModal:Me},setup(e,{expose:n}){const o=t.ref(!1),a=Q(e),l=t.ref([]),i=t.ref(),r=t.computed(()=>{let{data:_=[]}=t.unref(l)[0]||{};if(Array.isArray(e.colors)){const T=e.isUseLabelColors,P=e.colors;_=_.map((L,j)=>({label:T?{color:P[j]}:{},...L}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Ue(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var T;o.value=!0,(T=i.value)==null||T.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:T=>{const{marker:P,seriesName:L,name:j,value:M,percent:x,data:$}=T||{};return oe(e.tooltipFormatter,{textData:{marker:P,name:j,value:M,percent:x,a:L,b:j,c:M,d:x,...$}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Oe:e.labelFontSize}},color:e.colors,series:[{data:_,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:o.value?Oe:e.labelFontSize,position:e.labelPosition,formatter:Cl(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),s=()=>{o.value=!1},{getGlobalModel:d,setGlobalModel:u}=t.inject(ie,{getGlobalModel:_=>{},setGlobalModel:(_,T)=>{}}),{pageMode:b}=t.inject(se,{pageMode:"normal"}),g=(_=[],T)=>{const{dataset:P}=qe(_,T);l.value=P},C=(_=[],T)=>{const P=qe(_,T);l.value=P.dataset};t.watch(()=>e.data,_=>{(e.dataType==="static"||t.unref(b)==="design")&&g(_)},{immediate:!0,deep:!0});const f=t.ref(!1),c=he(e),m=async()=>{var _,T;if(e.dataType==="request")try{f.value=!0;const P=await c();g((T=(_=P==null?void 0:P.data)==null?void 0:_.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}catch(P){console.error(P)}finally{f.value=!1}},p=te(e)("click",_=>{const T=d(e.id);u(e.id,{...T,RECORD:_==null?void 0:_.data})}),A=Ge(e),I=async()=>{var _;try{f.value=!0;const T=await A(),{data:P}=T.data||{};if(P){const{columns:L=[],rows:j=[]}=((_=T==null?void 0:T.data)==null?void 0:_.data)??{};let M=[];if(L.length>0){const x=L[0],$=L[1];M=j.map(N=>({name:N[x],value:N[$]}))}C(M)}}catch(T){console.error(T)}finally{f.value=!1}},E=()=>{switch(e.dataType){case"indicator":I();break;case"request":m();break}};ae(e,{resetRecord:()=>{const _=e.id,T=d(_);u(_,{...T,RECORD:""})},refreshData:E,click:p}),n({refreshData:E});const{setRequest:y}=t.inject(ce,{setRequest:_=>{}});return typeof y=="function"&&y({id:e.id,requestFn:E,sortNum:e.requestSort}),{option:r,style:a,click:p,onClose:s,loading:f,ecanModal:i}}}),us="";function hi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const xn=H(W(ui,[["render",hi]])),Ht={...K,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},Zt=Z(Ht),An=["click","refreshData","resetRecord"];pe.use([ze.CanvasRenderer,xe.LineChart,X.ToolboxComponent,X.TitleComponent,X.LegendComponent]);const gi=t.defineComponent({name:"EcanLine",props:{...Zt},components:{Spin:je,Echarts:Le,EcanModal:Me},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=Q(e),i=t.ref([]),r=t.ref([]),s=t.ref(),d=t.computed(()=>a.value?Oe:12),u=t.ref({});let b;const g=t.computed(()=>{const x=e.xAxisLabelFormatter,$=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Ue(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var N;a.value=!0,(N=s.value)==null||N.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:N=>{var k;const D=N.length;let w="",v=e.tooltipFormatter;b=(k=N[0])==null?void 0:k.data,v===""&&(v="{marker} {a} {c}");for(let B=0;B<D;B++){const{marker:R,seriesName:ee,name:de,value:Te,data:ke}=N[B]||{};B===0&&(w+=`${de}<br/>`),w+=oe(v,{textData:{marker:R,name:de,value:Te,a:ee,b:de,c:Te,...ke}},{useNewline:!0,useSpace:!0}),w+="<br/>"}return w}},xAxis:{type:"category",data:t.unref(r).map(N=>{let D={};return N&&typeof N=="object"?D={...N,textStyle:{fontSize:d.value}}:D={value:N,textStyle:{fontSize:d.value}},D}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(N){return Ie(x,N)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:d.value,color:e.yAxisLabelColor,formatter(N){return Ie($,N)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:d.value}},series:t.unref(i)}}),C=()=>{a.value=!1},{getGlobalModel:f,setGlobalModel:c}=t.inject(ie,{getGlobalModel:x=>{},setGlobalModel:(x,$)=>{}}),{pageMode:m}=t.inject(se,{pageMode:"normal"}),S=(x=[],$=!1)=>{let N;if(e.dataFieldConfigType==="key"){const k=$?e.keyTypeDataFieldNames:null;N=Pe(x,k)}else if(e.dataFieldConfigType==="value"){const k=$?e.valueTypeDataFieldNames:null;N=qe(x,k)}r.value=N.dimensions;const D=N.dataset,w=[],v=D.length;for(let k=0;k<v;k++)w.push({type:"line",...D[k],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=w},p=(x=[],$,N=!1)=>{const w=Pe(x,N?$:null);r.value=w.dimensions;const v=w.dataset,k=[],B=v.length;for(let R=0;R<B;R++)k.push({type:"line",...v[R],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=k};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([x])=>{(e.dataType==="static"||t.unref(m)==="design")&&S(x)},{immediate:!0,deep:!0});const A=t.ref(!1),I=he(e),E=async()=>{var x,$;if(e.dataType==="request")try{A.value=!0;const N=await I();S(($=(x=N==null?void 0:N.data)==null?void 0:x.data)==null?void 0:$.rows,!0)}catch(N){console.error(N)}finally{A.value=!1}},y=te(e)("click",x=>{const $=f(e.id);c(e.id,{...$,RECORD:e.tooltipShow?b:x.data})}),_=x=>{o.value.chart.containPixel("grid",[x.offsetX,x.offsetY])&&y()};e.tooltipShow?u.value["zr:click"]=_:u.value.click=y;const T=Ge(e),P=async()=>{var x;try{A.value=!0;const $=await T(),{columns:N=[],rows:D=[]}=((x=$==null?void 0:$.data)==null?void 0:x.data)??{};let w;N.length>0&&(w={name:N[0],types:N.slice(1).map(v=>({label:v,value:v}))}),p(D,w,!0)}catch($){console.error($)}finally{A.value=!1}},L=()=>{switch(e.dataType){case"indicator":P();break;case"request":E();break}};ae(e,{refreshData:L,resetRecord:()=>{const x=e.id,$=f(x);c(x,{...$,RECORD:""})},click:y});const{setRequest:M}=t.inject(ce,{setRequest:x=>{}});return typeof M=="function"&&M({id:e.id,requestFn:L,sortNum:e.requestSort}),n({refreshData:L}),{option:g,style:l,click:y,loading:A,onClose:C,ecanModal:s,eventObj:u,echartRef:o}}}),gs="";function yi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const _n=H(W(gi,[["render",yi]])),Jt={...K,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0},Yt=Z(Jt),Tn=["refreshData","click","resetRecord"];pe.use([ze.CanvasRenderer,xe.BarChart,X.TitleComponent,X.LegendComponent,X.DatasetComponent,X.ToolboxComponent]);const bi=t.defineComponent({name:"EcanBar",props:{...Yt},components:{Spin:je,Echarts:Le,EcanModal:Me,AModal:U.Modal},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=t.ref(!1),i=t.ref(null),r=t.ref([]),s=Q(e),d=t.ref([]),u=t.ref(),b=t.computed(()=>a.value?Oe:12),g=t.computed(()=>{const w=t.unref(d),v=w.length,k=[];for(let B=0;B<v;B++){const R={...w[B],type:"bar",barWidth:e.barWidth};e.isStack&&(R.stack="stack"),R.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},k.push(R)}return k}),C=t.ref([]),f=t.ref(!1),c=t.computed(()=>{const w=e.yAxisLabelFormatter,v=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const k=o.value.chart.getOption(),{xAxis:B}=k||{};B&&B.length&&(r.value=B[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Ue(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var k;a.value=!0,(k=u.value)==null||k.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:k=>{const B=k.length;let R="",ee=e.tooltipFormatter;ee===""&&(ee="{marker} {a} {c}");for(let de=0;de<B;de++){const{marker:Te,seriesName:ke,name:We,value:tt,data:yo}=k[de]||{};de===0&&(R+=`${We}<br/>`),R+=oe(ee,{textData:{marker:Te,name:We,value:tt,a:ke,b:We,c:tt,...yo}},{useNewline:!0,useSpace:!0}),R+="<br/>"}return R},textStyle:{color:e.tooltipTextStyleColor,fontSize:b.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:b.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(I),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(k){return Ie(v,k)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(C):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:b.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(k){return Ie(w,k)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(g)}}),{pageMode:m}=t.inject(se,{pageMode:"normal"}),S=()=>{a.value=!1},p=(w=[],v=!1)=>{let k={};if(e.dataFieldConfigType==="key"){const B=v?e.keyTypeDataFieldNames:null;k=Pe(w,B)}else if(e.dataFieldConfigType==="value"){const B=v?e.valueTypeDataFieldNames:null;k=qe(w,B)}d.value=k.dataset,C.value=k.dimensions},A=(w=[],v,k=!1)=>{const R=Pe(w,k?v:null);d.value=R.dataset,C.value=R.dimensions},I=t.computed(()=>t.unref(C).map(w=>{let v={};return w&&typeof w=="object"?v={...w,textStyle:{fontSize:b.value}}:v={value:w,textStyle:{fontSize:b.value}},v}));t.watch(()=>e.data,w=>{(e.dataType==="static"||t.unref(m)==="design")&&p(w)},{immediate:!0,deep:!0});const E=he(e),O=async()=>{var w,v;try{f.value=!0;const k=await E();p((v=(w=k==null?void 0:k.data)==null?void 0:w.data)==null?void 0:v.rows,!0)}catch(k){console.error(k)}finally{f.value=!1}},y=Ge(e),_=async()=>{var w;try{f.value=!0;const v=await y(),{columns:k=[],rows:B=[]}=((w=v==null?void 0:v.data)==null?void 0:w.data)??{};let R;k.length>0&&(R={name:k[0],types:k.slice(1).map(ee=>({label:ee,value:ee}))}),A(B,R,!0)}catch(v){console.error(v)}finally{f.value=!1}},T=()=>{switch(e.dataType){case"indicator":_();break;case"request":O();break}},P=async()=>{l.value=!1;const w=o.value.chart.getOption();for(let v=0;v<7;v++)await L(w.series,w.color,v)},L=(w,v,k)=>new Promise(B=>{setTimeout(()=>{const R=o.value.chart;w.forEach((ee,de)=>{const Te=ee.data;let ke="";k%2?ke=v[de]+"a8":ke=v[de],Te[i.value].itemStyle={color:ke}}),R.setOption({series:w}),B()},200)});n({refreshData:T});const j=te(e),{getGlobalModel:M,setGlobalModel:x}=t.inject(ie,{getGlobalModel:w=>{},setGlobalModel:(w,v)=>{}}),$=j("click",w=>{const v=M(e.id);x(e.id,{...v,RECORD:w.data})}),{setRequest:N}=t.inject(ce,{setRequest:w=>{}});return typeof N=="function"&&N({id:e.id,requestFn:T,sortNum:e.requestSort}),ae(e,{refreshData:T,click:$,resetRecord:()=>{const w=e.id,v=M(w);x(w,{...v,RECORD:""})}}),{option:c,style:s,refreshData:T,click:$,loading:f,onClose:S,ecanModal:u,echartRef:o,handleLocationOk:P,locationVisible:l,locationValue:i,locationNames:r}}}),bs="",ps="",pi=e=>(t.pushScopeId("data-v-cebf7a1e"),e=e(),t.popScopeId(),e),Ci={class:"location-wrap"},Si=pi(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function ki(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),u=t.resolveComponent("a-select-option"),b=t.resolveComponent("a-select"),g=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),t.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=C=>e.locationVisible=C),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Ci,[Si,t.createVNode(b,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=C=>e.locationValue=C),style:{width:"100%"},placeholder:"请选择"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(C,f)=>(t.openBlock(),t.createBlock(u,{key:f,value:f},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(C.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])])]),_:1},8,["visible","onOk"])],4)}const En=H(W(bi,[["render",ki],["__scopeId","data-v-cebf7a1e"]])),Qt={...K,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Kt=Z(Qt),Ln=["click","refreshData","resetRecord"];pe.use([ze.CanvasRenderer,xe.ScatterChart,X.ToolboxComponent,X.TitleComponent,X.TooltipComponent,X.LegendComponent]);const wi=t.defineComponent({name:"EcanScatter",props:{...Kt},components:{Spin:je,Echarts:Le,EcanModal:Me},setup(e){const n=t.ref(!1),o=Q(e),a=t.ref([]),l=t.ref(),i=t.computed(()=>n.value?Oe:12),r=t.computed(()=>{const E=e.xAxisLabelFormatter,O=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Ue(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var y;n.value=!0,(y=l.value)==null||y.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(y){return Ie(E,y)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.yAxisLabelColor,formatter(y){return Ie(O,y)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(y){var M;const{marker:_,seriesName:T}=y,P=((M=y==null?void 0:y.data)==null?void 0:M.record)??{},{name:L,value:j}=P;return oe(e.tooltipFormatter,{textData:{marker:_,seriesName:T,a:T,b:L,c:j,...P}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:t.unref(a),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:d}=t.inject(ie,{getGlobalModel:E=>{},setGlobalModel:(E,O)=>{}}),{pageMode:u}=t.inject(se,{pageMode:"normal"}),b=(E=[],O)=>{const{name:y="name",value:_="value"}=O||{};a.value=E.map(T=>({value:[T[y],T[_]],record:T}))};t.watch(()=>e.data,E=>{(e.dataType==="static"||t.unref(u)==="design")&&b(E)},{immediate:!0,deep:!0});const g=t.ref(!1),C=he(e),f=async()=>{var E,O;if(e.dataType==="request"){g.value=!0;try{const y=await C();b((O=(E=y==null?void 0:y.data)==null?void 0:E.data)==null?void 0:O.rows,e.dataFieldNames)}catch(y){console.error(y)}finally{g.value=!1}}},c=()=>{n.value=!1},S=te(e)("click",E=>{const O=e.id,y=s(O);d(O,{...y,RECORD:E==null?void 0:E.data})});ae(e,{refreshData:()=>{f()},click:S,resetRecord:()=>{const E=e.id,O=s(E);d(E,{...O,RECORD:""})}});const{setRequest:I}=t.inject(ce,{setRequest:E=>{}});return typeof I=="function"&&I({id:e.id,requestFn:f,sortNum:e.requestSort}),{option:r,style:o,click:S,loading:g,onClose:c,ecanModal:l}}}),Ss="";function xi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const vn=H(W(wi,[["render",xi]])),Xt={...K,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},eo=Z(Xt),Ai=t.defineComponent({name:"EcanCustomGraph",props:{...eo},components:{Echarts:Le},setup(e){const n=Q(e),o=t.ref();return t.watch(()=>e.optionCode,a=>{try{const l=eval;o.value=l(a)}catch(l){console.error(l)}},{immediate:!0}),{style:n,myOption:o,echarts:Xn}}});function _i(e,n,o,a,l,i){const r=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(r,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const In=H(W(Ai,[["render",_i]])),to={...K,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"},oo=Z(to),Mn=["refreshData","click","resetRecord"];pe.use([ze.CanvasRenderer,xe.BarChart,xe.LineChart,X.TitleComponent,X.LegendComponent,X.DatasetComponent,X.ToolboxComponent]);const Ti=t.defineComponent({name:"EcanComboGraph",props:{...oo},components:{Spin:je,Echarts:Le,EcanModal:Me},setup(e,{expose:n}){const o=t.ref(!1),a=Q(e),l=t.ref([]),i=t.ref([]),r=t.ref(),s=t.computed(()=>o.value?Oe:12),d=t.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Ue(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var L;o.value=!0,(L=r.value)==null||L.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:s.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:L=>{const j=L.length;let M="",x=e.tooltipFormatter;x===""&&(x="{marker} {a} {c}");const $=e.seriesTypes;for(let N=0;N<j;N++){const D=$[N],{tooltipFormatter:w}=D||{},{marker:v,seriesName:k,name:B,value:R,data:ee}=L[N]||{};N===0&&(M+=`${B}<br/>`),M+=oe(w||x,{textData:{marker:v,name:B,value:R,seriesName:k,a:k,b:B,c:R,...ee}},{useNewline:!0,useSpace:!0}),M+="<br/>"}return M},textStyle:{color:e.tooltipTextStyleColor,fontSize:s.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(i).map(L=>{let j={};return L&&typeof L=="object"?j={...L,textStyle:{fontSize:s.value}}:j={value:L,textStyle:{fontSize:s.value}},j}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:t.unref(f),series:t.unref(l)})),{pageMode:u}=t.inject(se,{pageMode:"normal"}),b=()=>{o.value=!1},g=(L=[],j=!1)=>{let M;if(e.dataFieldConfigType==="key"){const w=j?e.keyTypeDataFieldNames:null;M=Pe(L,w)}else if(e.dataFieldConfigType==="value"){const w=j?e.valueTypeDataFieldNames:null;M=qe(L,w)}i.value=M.dimensions;const x=M.dataset,$=[],N=x.length,D=e.seriesTypes;for(let w=0;w<N;w++){const v=D[w],{type:k,axisIndex:B}=v||{};let R={type:k,yAxisIndex:B,...x[w]};k==="line"&&(R={...R,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),k==="bar"&&(R={...R,barWidth:e.barWidth}),$.push(R)}l.value=$},C=(L=[],j,M=!1)=>{const $=Pe(L,M?j:null);i.value=$.dimensions;const N=$.dataset,D=[],w=N.length,v=e.seriesTypes;for(let k=0;k<w;k++){const B=v[k];D.push({type:B==null?void 0:B.type,yAxisIndex:B==null?void 0:B.axisIndex,...N[k]})}l.value=D};t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([L])=>{(e.dataType==="static"||t.unref(u)==="design")&&g(L)},{immediate:!0,deep:!0});const f=t.computed(()=>{const L=e.yAxis;return L==null?void 0:L.map(j=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:s.value,color:e.yAxisLabelColor,formatter(M){return Ie(j.axisLabelFormatter,M)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),c=t.ref(!1),m=he(e),S=async()=>{var L,j;if(e.dataType==="request")try{c.value=!0;const M=await m();g((j=(L=M==null?void 0:M.data)==null?void 0:L.data)==null?void 0:j.rows,!0)}catch(M){console.error(M)}finally{c.value=!1}},p=Ge(e),A=async()=>{var L;try{c.value=!0;const j=await p(),{columns:M=[],rows:x=[]}=((L=j==null?void 0:j.data)==null?void 0:L.data)??{};let $;M.length>0&&($={name:M[0],types:M.slice(1).map(N=>({label:N,value:N}))}),C(x,$,!0)}catch(j){console.error(j)}finally{c.value=!1}},I=()=>{switch(e.dataType){case"indicator":A();break;case"request":S();break}};n({refreshData:I});const E=te(e),{getGlobalModel:O,setGlobalModel:y}=t.inject(ie,{getGlobalModel:L=>{},setGlobalModel:(L,j)=>{}}),_=E("click",L=>{const j=O(e.id);y(e.id,{...j,RECORD:L==null?void 0:L.data})}),{setRequest:T}=t.inject(ce,{setRequest:L=>{}});return typeof T=="function"&&T({id:e.id,requestFn:I,sortNum:e.requestSort}),ae(e,{resetRecord:()=>{const L=e.id,j=O(L);y(L,{...j,RECORD:""})},refreshData:I,click:_}),{style:a,option:d,click:_,loading:c,onClose:b,ecanModal:r}}}),xs="";function Ei(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const zn=H(W(Ti,[["render",Ei]])),no={...K,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},ao=Z(no),Nn=["click"],Li=t.defineComponent({name:"EcanBorder",props:{...ao},setup(e){const n=Q(e,["background"]),{theme:o}=t.inject(se,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),i=te(e)("click",()=>{}),r=t.ref([]);t.watch(()=>e.data,d=>{r.value=d},{immediate:!0,deep:!0}),ae(e,{click:i});const{setGlobalModel:s}=t.inject(ie,{setGlobalModel:(d,u)=>{}});return s(e.id,{type:e.type,value:r}),{style:n,click:i,borderStyle:a,theme:o}}}),vi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Ii="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",_s="",be=e=>(t.pushScopeId("data-v-1550b11b"),e=e(),t.popScopeId(),e),Mi=be(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),zi=be(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Ni=be(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Bi=be(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Oi={class:"title-item-wrapper"},Pi={class:"title-item"},Di=be(()=>t.createElementVNode("img",{class:"title-decoration-left",src:vi},null,-1)),Fi={class:"title"},Ri=be(()=>t.createElementVNode("img",{class:"title-decoration-right",src:Ii},null,-1)),$i=be(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ji=be(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Vi=be(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),qi=be(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Gi={key:2,class:"left-title"},Ui={class:"title"};function Wi(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...r)=>e.click&&e.click(...r))},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Mi,zi,Ni,Bi],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",Oi,[t.createElementVNode("div",Pi,[Di,t.createElementVNode("div",Fi,t.toDisplayString(e.title),1),Ri])]),$i,ji,Vi,qi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Gi,[t.createElementVNode("div",Ui,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const Bn=H(W(Li,[["render",Wi],["__scopeId","data-v-1550b11b"]])),lo={...K,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},io=Z(lo),On=["tabChange"],Hi=t.defineComponent({name:"EcanTabs",props:{...io},setup(e){const n=Q(e),o=t.ref(0);t.watch(()=>e.activeKey,f=>{o.value=f},{immediate:!0});const{pageMode:a}=t.inject(se,{pageMode:"normal"});let l=null;const i=()=>{const f=Array.isArray(t.unref(r))?t.unref(r).length-1:0;e.autoSwitch&&f>0&&(l=setInterval(()=>{const c=t.unref(o)+1;c<=f?o.value=c:o.value=0,s.value=t.unref(r)[t.unref(o)],g()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&i()}),t.onBeforeUnmount(()=>{clearInterval(l)});const r=t.ref([]),s=t.ref({});t.watch(()=>e.data,f=>{r.value=f,s.value=Array.isArray(f)&&f.length>0?f[0]:{}},{immediate:!0,deep:!0});const d=f=>o.value===f,u=te(e),{setGlobalModel:b}=t.inject(ie,{setGlobalModel:(f,c)=>{}});b(e.id,{value:s,activeKey:o});const{emitRefreshPage:g}=t.inject(Ve,{emitRefreshPage:()=>{}}),C=u("tabChange",(f,c)=>{c!==t.unref(o)&&(s.value=f,o.value=c,g())});return ae(e,{tabChange:C}),{style:n,activeKey:o,isActive:d,tabChange:C,myData:r,useImagePath:ve}}}),Es="",Zi=["onClick"];function Ji(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style)},[t.createElementVNode("div",{class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(r,s)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:s,onClick:t.withModifiers(d=>e.tabChange(r,s),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(r.title),5)],12,Zi))),128))],4)],4)}const Pn=H(W(Hi,[["render",Ji],["__scopeId","data-v-a2045b93"]])),ro={...K,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},so=Z(ro),Yi=t.defineComponent({name:"EcanImage",props:{...so},setup(e){const n=Q(e),o=t.computed(()=>ve(e.imgUrl)),{pageMode:a}=t.inject(se,{pageMode:"normal"});return{style:n,myImgUrl:o,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",r=Zo(t.unref(a),i),s=e.href;let d=s||r;d=oe(d);const u=e.target;u&&(u!=="event"?window.open(d,"_"+u):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),vs="",Qi=["src"];function Ki(e,n,o,a,l,i){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...r)=>e.onClick&&e.onClick(...r))},null,12,Qi)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Dn=H(W(Yi,[["render",Ki],["__scopeId","data-v-ef7a7bee"]])),co={...K,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},fo=Z(co),Xi=t.defineComponent({name:"EcanIframe",props:{...fo},setup(e){const n=Q(e),{contextRequestUrl:o}=t.inject(se,{contextRequestUrl:""}),a=t.computed(()=>{let l=oe(e.link);if(e.linkType==="erd"&&l!=null){let i=t.unref(o);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",l=`${pl||i}?_t=0&uid=${l}`}return l});return{style:n,myLink:a}}}),Ms="",er=["src"];function tr(e,n,o,a,l,i){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,er)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Fn=H(W(Xi,[["render",tr],["__scopeId","data-v-19bc100c"]])),mo={...K,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{}},uo=Z(mo),Rn=["click","refreshData","resetRecord","exportTableData"],or=t.defineComponent({name:"EcanTable",components:{Skeleton:Qe,AButton:U.Button,AInput:U.Input,ACheckboxGroup:U.CheckboxGroup,ATable:U.Table,ATableSummary:U.TableSummary,ATableSummaryRow:U.TableSummaryRow,ATableSummaryCell:U.TableSummaryCell},props:{...uo},setup(e,{expose:n}){const o=Q(e),a=t.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=t.computed(()=>e.scrollX),i=t.computed(()=>parseFloat(e.height)-t.unref(a)),r=t.ref([]),s=t.ref([]),d=t.ref([]),u=t.ref([]),b=t.ref(0),g=t.ref(1),C=t.computed(()=>e.paginationPageSize),f=t.reactive([]),c=(z=[])=>{if(Array.isArray(z)&&z.length>0){const F=z.length,q=e.columnsFixedNum;for(let G=0;G<F;G++){const V=z[G];G<q?V.fixed="left":V.fixed=!1;const{cellAlign:J="center",cellColor:Y,dataIndex:le,title:re,tableFilter:ne,headerCellAlign:Ee,headerCellColor:ge}=V;ne&&(f.push(le),V.filterOptionsInputValue="",V.filterCheckboxGroupValue=[],V.customFilterDropdown=!0,V.onFilter=(we,bo)=>bo[le].toString().toLowerCase().includes(we.toLowerCase())),V.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Ee||"center",color:ge,borderBottomColor:e.borderColor}}),V.customCell=(we,bo)=>({style:{textAlign:J,color:Y,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(v)===bo&&e.clickHighlight},onClick:M("click",()=>{const Zn=e.id,Cr=x(Zn);we={dataIndex:le,title:re,...we},$(Zn,{...Cr,RECORD:we})})}),Array.isArray(V.children)&&c(V.children)}}},m=(z=[])=>(e.isUseSeq&&z.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),c(z),z);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{r.value=m(Ce.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([z,F])=>{F==="static"&&(s.value=z)},{immediate:!0});const S=t.ref({}),p=z=>{if(Array.isArray(z)){const F=z.length,q=f,G=q.length,V={};for(let Y=0;Y<F;Y++){const le=z[Y];for(let re=0;re<G;re++){const ne=q[re];if(V[ne])V[ne].add(le[ne]);else{const Ee=new Set;Ee.add(le[ne]),V[ne]=Ee}}}const J={};for(const Y in V)if(Object.prototype.hasOwnProperty.call(V,Y)){const le=V[Y],re=Array.from(le);J[Y]=re.map(ne=>({label:ne,value:ne}))}S.value=J}};t.watch(()=>[e.isReverse,r.value,s.value],()=>{const z=t.unref(r),F=t.unref(s);if(p(F),e.isReverse){const{columns:q,dataSource:G}=A(Ce.cloneDeep(z),Ce.cloneDeep(F));d.value=q,u.value=G}else d.value=z,u.value=F},{immediate:!0});const A=(z,F)=>{const q=z[0],G=[{title:q.title,dataIndex:"col0",key:"col0",align:"center"}];for(let J=0;J<F.length;J++){const Y=F[J],le="col"+(J+1);G.push({title:Y[q.dataIndex],dataIndex:le,key:le,align:"center"})}const V=[];for(let J=1;J<z.length;J++){const Y=z[J],le={col0:Y.title};for(let re=0;re<F.length;re++){const ne=F[re];le[`col${re+1}`]=ne[Y.dataIndex]}V.push(le)}return{columns:G,dataSource:V}},I=t.ref(""),E=he(e),O=t.ref(!1),y=async(z=!0,F={})=>{var q;try{z&&(O.value=!0),t.unref(I)&&(F.orderCondition=t.unref(I)),e.paginationShow&&(F={pageNum:t.unref(g),pageSize:t.unref(C),layer:"1",...F});const G=await E(F),{rows:V=[],total:J=0}=((q=G==null?void 0:G.data)==null?void 0:q.data)||{};b.value=J,Array.isArray(V)&&(s.value=V)}catch(G){console.error(G)}finally{O.value=!1}},_=({current:z},F,q)=>{if(g.value=z,q&&Object.keys(q).length>0){const{field:G,order:V}=q,Y={ascend:"asc",descend:"desc"}[V];G!=null&&Y!=null&&(I.value=G+" "+Y,g.value=1)}B(!1)},T=t.computed(()=>{const z=e.simple,F=[e.paginationPosition];return e.paginationShow&&{simple:z,position:F,total:t.unref(b),current:t.unref(g),pageSize:t.unref(C),showSizeChanger:!1}}),P=z=>+z==1?"是":+z==0?"否":z,L=(z,F)=>F==null||F===""?z:{money:pt,percentage:Ke,contrast:Ke,boolean:P}[F](z)||"",j=(z,F)=>{const q=parseFloat(z+"");if(F!=="contrast")return"";switch(!0){case q>=0:return"goUp";case q<0:return"goDown"}},M=te(e),{getGlobalModel:x,setGlobalModel:$}=t.inject(ie,{getGlobalModel:z=>{},setGlobalModel:(z,F)=>{}}),N=(z=[],F=[])=>{const q=z.map(G=>({title:G,dataIndex:G,key:G}));r.value=m(q),s.value=F},D=Ge(e),w=async()=>{var z,F,q,G;try{O.value=!0;const V=await D();N((F=(z=V==null?void 0:V.data)==null?void 0:z.data)==null?void 0:F.columns,(G=(q=V==null?void 0:V.data)==null?void 0:q.data)==null?void 0:G.rows)}catch(V){console.error(V)}finally{O.value=!1}},v=t.ref(-1),k=(z,F)=>({onClick:M("rowClick",()=>{const q=e.id,G=x(q);$(q,{...G,RECORD:z}),v.value=F})}),B=(z=!0)=>{switch(e.dataType){case"request":y(z);break;case"indicator":w();break}},R=()=>{const z=e.id,F=x(z);$(z,{...F,RECORD:""})},ee=t.computed(()=>{const z=t.unref(d),F=[];let q=0;for(let V=0;V<z.length;V++){const J=z[V],{isCalcTotal:Y}=J;e.isUseSeq&&V===0?F.push({...J,total:"小计"}):Y?(F.push({...J,index:V,total:0}),q++):F.push({...J})}if(q===0)return[];const G=t.unref(u);for(let V=0;V<F.length;V++){const J=F[V];let Y=0;const{isCalcTotal:le,dataIndex:re}=J;if(le===!0){for(let ne=0;ne<G.length;ne++){const ge=+G[ne][re];isNaN(ge)||(Y=new Qn.Big(Y).add(ge).toNumber())}J.total=Y}}return F}),{setRequest:de}=t.inject(ce,{setRequest:z=>{}});typeof de=="function"&&de({id:e.id,requestFn:B,sortNum:e.requestSort}),n({refreshData:B});const Te=(z="",F)=>oe(z,F),ke=z=>{if(z!=="event")return{self:"_self",blank:"_blank"}[z]},We=(z,F="")=>{z==="event"&&window.parent.postMessage({type:"openPage",url:F},"*")},tt=(z,F)=>{z(F.filterCheckboxGroupValue)},yo=(z,F)=>{z({confirm:!0}),F.filterOptionsInputValue="",F.filterCheckboxGroupValue=[]},yr=()=>{},br=z=>{const F=z.dataIndex;if(typeof F=="string"){let q=t.unref(S)[F];const G=t.unref(z.filterOptionsInputValue).trim();return Array.isArray(q)?(q=q.filter(V=>typeof V.label=="string"?V.label.toLowerCase().includes(G.toLowerCase()):!0),q):[]}return[]},Hn=async()=>{var ne,Ee;const z="EXPORT_KEY";U.message.loading({key:z,content:"正在导出...",duration:0});let F=[];if(e.dataType==="static")F=e.data;else if(e.dataType==="request"){const ge={layer:"1"};t.unref(I)&&(ge.orderCondition=t.unref(I));const we=await E(ge);F=((Ee=(ne=we==null?void 0:we.data)==null?void 0:ne.data)==null?void 0:Ee.rows)||{}}const q=t.unref(d),G=[],V=[];q==null||q.forEach(ge=>{G.push(ge.dataIndex),V.push(ge.title)});const J=F.map(ge=>Ce.pick(ge,G)),Y=De.utils.book_new(),le=De.utils.aoa_to_sheet([V]),re=De.utils.sheet_add_json(le,J,{skipHeader:!0,origin:"A2"});De.utils.book_append_sheet(Y,re,"sheet"),De.writeFile(Y,"表格数据.xlsx"),U.message.success({key:z,content:"导出成功"})},pr=(z,F=2)=>{const q=+z*100;return isNaN(q)||q<=0?0:q>=100?100:q.toFixed(F)};return ae(e,{resetRecord:R,refreshData:B,exportTableData:Hn}),{x:l,y:i,style:o,customRow:k,pagination:T,formatFn:L,contrastClass:j,tableChange:_,summaryList:ee,loading:O,onTouchHrefEvent:We,handleHref:Te,handleHrefTarget:ke,useRowIndex:v,tableColumns:d,tableDataSource:u,useFilterOptions:br,useSetSelectedKeys:tt,onResetFilter:yo,onSearchFilterOptions:yr,exportTableData:Hn,handleProgressText:pr}}}),Ns="",Bs="",nr={key:0,class:"table-tool"},ar=t.createTextVNode("导出数据"),lr=t.createTextVNode(" 搜索 "),ir=t.createTextVNode(" 重置 "),rr={key:0},sr={key:1,class:"action-list"},cr=["href","target","onClick"],dr={key:2,class:"progress-cell"};function fr(e,n,o,a,l,i){const r=t.resolveComponent("a-button"),s=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),u=t.resolveComponent("a-table-summary-cell"),b=t.resolveComponent("a-table-summary-row"),g=t.resolveComponent("a-table-summary"),C=t.resolveComponent("a-table"),f=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(f,{loading:e.loading},{default:t.withCtx(()=>[e.isUseExport?(t.openBlock(),t.createElementBlock("div",nr,[t.createVNode(r,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[ar]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(C,{class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:c,selectedKeys:m,setSelectedKeys:S,confirm:p,clearFilters:A})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(s,{value:c.filterOptionsInputValue,"onUpdate:value":I=>c.filterOptionsInputValue=I,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:c.filterCheckboxGroupValue,"onUpdate:value":I=>c.filterCheckboxGroupValue=I,class:"filter-checkbox",options:e.useFilterOptions(c),onChange:I=>e.useSetSelectedKeys(S,c)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(r,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:t.withCtx(()=>[lr]),_:2},1032,["onClick"]),t.createVNode(r,{size:"small",style:{width:"90px"},onClick:t.withModifiers(I=>e.onResetFilter(A,c),["stop"])},{default:t.withCtx(()=>[ir]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:c,index:m,text:S,record:p})=>[c.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",rr,t.toDisplayString(m+1),1)):c.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",sr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(A,I)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:I},[t.createElementVNode("a",{href:e.handleHref(A.href,p),target:e.handleHrefTarget(A.target),style:t.normalizeStyle({color:A.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:E=>e.onTouchHrefEvent(A.target,e.handleHref(A.href,p))},t.toDisplayString(A.title),13,cr)]))),128))])):c.format==="progress"?(t.openBlock(),t.createElementBlock("div",dr,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:c.progressColor||"#1890ff",height:c.progressWidth||"18px",width:`${e.handleProgressText(S,c.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:e.handleProgressText(S)<100?c.progressTextColor||"#333":c.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(S,c.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass([e.contrastClass(S,c.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(c.format!=null?e.formatFn(S,c.format):S),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(g,{key:0},{default:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(c,m)=>(t.openBlock(),t.createBlock(u,{key:m,index:m,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:c.cellAlign||"center",color:c.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(c.total,c.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(c.total,c.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]),_:1},8,["loading"])],4)}const $n=H(W(or,[["render",fr],["__scopeId","data-v-5f774b48"]])),ho={...K,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},go=Z(ho);pe.use([ze.CanvasRenderer,xe.MapChart,xe.ScatterChart,X.VisualMapComponent,X.TooltipComponent,X.GraphicComponent]);const mr=t.defineComponent({name:"EcanMap",components:{Echarts:Le},props:{...go},setup(e){const n=Q(e,["backgroundImage"]),o=t.ref(),a=t.computed(()=>ve(e.geoBackgroundImage)),l=t.computed(()=>ve(e.backgroundImage)),i=t.computed(()=>e.geoBackgroundImage?{image:t.unref(o),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),r=t.computed(()=>{const b=e.symbolImage;return e.symbolImage?"image://"+ve(b):"circle"}),s=t.computed(()=>{const b=e.geoCenter;let g;return typeof b=="string"&&b!==""&&(g=b.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(l)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:g,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(i),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(r),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),d=t.ref(!1),u=async()=>{var g;const b=e.mapJson;if(b!=null&&b.path){const C=await _e(((g=window==null?void 0:window.config)==null?void 0:g.uploadPath)+b.path);pe.registerMap("map",(C==null?void 0:C.data)||{})}d.value=!0};return t.watch(()=>e.mapJson,()=>{u()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:d,geoBackgroundImageRef:o,myGeoBackgroundImage:a}}}),Ps="",ur=["src"];function hr(e,n,o,a,l,i){const r=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(r,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,ur),[[t.vShow,!1]])],4)}const jn=H(W(mr,[["render",hr],["__scopeId","data-v-1fb5cdee"]])),Vn=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:En,EcanBorder:Bn,EcanButton:hn,EcanCheckbox:yn,EcanComboGraph:zn,EcanCustomGraph:In,EcanDatePicker:dn,EcanIframe:Fn,EcanImage:Dn,EcanInput:sn,EcanLine:_n,EcanList:nn,EcanMap:jn,EcanModal:Me,EcanPageConfig:Jo,EcanPie:xn,EcanProportion:ln,EcanProviderConfig:Yo,EcanRangePicker:mn,EcanScatter:vn,EcanScrollText:Xo,EcanSelect:pn,EcanTable:$n,EcanTabs:Pn,EcanText:Ko,EcanTimeDisplay:tn,EcanTreeSelect:Sn,barComponentProps:Yt,barEvents:Tn,barProps:Jt,borderComponentProps:ao,borderEvents:Nn,borderProps:no,buttonComponentProps:Pt,buttonEvents:un,buttonProps:Ot,checkboxComponentProps:Ft,checkboxEvents:gn,checkboxProps:Dt,comboGraphComponentProps:oo,comboGraphEvents:Mn,comboGraphProps:to,customGraphComponentProps:eo,customGraphProps:Xt,datePickerComponentProps:zt,datePickerEvents:cn,datePickerProps:Mt,iframeComponentProps:fo,iframeProps:co,imageComponentProps:so,imageProps:ro,inputComponentProps:It,inputEvents:rn,inputProps:vt,lineComponentProps:Zt,lineEvents:An,lineProps:Ht,listComponentProps:Tt,listEvents:on,listProps:_t,mapComponentProps:go,mapProps:ho,modalComponentProps:Wt,modalEvents:wn,modalProps:Ut,pageConfig:gt,pageConfigComponentProps:yt,pieComponentProps:Gt,pieEvents:kn,pieProps:qt,proportionComponentProps:Lt,proportionEvents:an,proportionProps:Et,providerConfig:Ct,providerConfigComponentProps:St,rangePickerComponentProps:Bt,rangePickerEvents:fn,rangePickerProps:Nt,scatterComponentProps:Kt,scatterEvents:Ln,scatterProps:Qt,selectComponentProps:$t,selectEvents:bn,selectProps:Rt,tableComponentProps:uo,tableEvents:Rn,tableProps:mo,tabsComponentProps:io,tabsEvents:On,tabsProps:lo,textComponentProps:wt,textEvents:Qo,textProps:kt,timeDisplayComponentProps:At,timeDisplayEvents:en,timeDisplayProps:xt,treeSelectComponentProps:Vt,treeSelectEvents:Cn,treeSelectProps:jt},Symbol.toStringTag,{value:"Module"})),gr={install:e=>{Object.keys(Vn).forEach(n=>{const o=Vn[n];o.install&&e.use(o)})}};h.EcanBar=En,h.EcanBorder=Bn,h.EcanButton=hn,h.EcanCheckbox=yn,h.EcanComboGraph=zn,h.EcanCustomGraph=In,h.EcanDatePicker=dn,h.EcanIframe=Fn,h.EcanImage=Dn,h.EcanInput=sn,h.EcanLine=_n,h.EcanList=nn,h.EcanMap=jn,h.EcanModal=Me,h.EcanPageConfig=Jo,h.EcanPie=xn,h.EcanProportion=ln,h.EcanProviderConfig=Yo,h.EcanRangePicker=mn,h.EcanScatter=vn,h.EcanScrollText=Xo,h.EcanSelect=pn,h.EcanTable=$n,h.EcanTabs=Pn,h.EcanText=Ko,h.EcanTimeDisplay=tn,h.EcanTreeSelect=Sn,h.barComponentProps=Yt,h.barEvents=Tn,h.barProps=Jt,h.borderComponentProps=ao,h.borderEvents=Nn,h.borderProps=no,h.buttonComponentProps=Pt,h.buttonEvents=un,h.buttonProps=Ot,h.checkboxComponentProps=Ft,h.checkboxEvents=gn,h.checkboxProps=Dt,h.comboGraphComponentProps=oo,h.comboGraphEvents=Mn,h.comboGraphProps=to,h.customGraphComponentProps=eo,h.customGraphProps=Xt,h.datePickerComponentProps=zt,h.datePickerEvents=cn,h.datePickerProps=Mt,h.default=gr,h.iframeComponentProps=fo,h.iframeProps=co,h.imageComponentProps=so,h.imageProps=ro,h.inputComponentProps=It,h.inputEvents=rn,h.inputProps=vt,h.lineComponentProps=Zt,h.lineEvents=An,h.lineProps=Ht,h.listComponentProps=Tt,h.listEvents=on,h.listProps=_t,h.mapComponentProps=go,h.mapProps=ho,h.modalComponentProps=Wt,h.modalEvents=wn,h.modalProps=Ut,h.pageConfig=gt,h.pageConfigComponentProps=yt,h.pieComponentProps=Gt,h.pieEvents=kn,h.pieProps=qt,h.proportionComponentProps=Lt,h.proportionEvents=an,h.proportionProps=Et,h.providerConfig=Ct,h.providerConfigComponentProps=St,h.rangePickerComponentProps=Bt,h.rangePickerEvents=fn,h.rangePickerProps=Nt,h.scatterComponentProps=Kt,h.scatterEvents=Ln,h.scatterProps=Qt,h.selectComponentProps=$t,h.selectEvents=bn,h.selectProps=Rt,h.tableComponentProps=uo,h.tableEvents=Rn,h.tableProps=mo,h.tabsComponentProps=io,h.tabsEvents=On,h.tabsProps=lo,h.textComponentProps=wt,h.textEvents=Qo,h.textProps=kt,h.timeDisplayComponentProps=At,h.timeDisplayEvents=en,h.timeDisplayProps=xt,h.treeSelectComponentProps=Vt,h.treeSelectEvents=Cn,h.treeSelectProps=jt,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
60
  //# sourceMappingURL=index.umd.js.map