@ecan-bi/datav 1.3.7 → 1.3.8
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.es.js +12 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/graph/combo-graph/ComboGraph.vue.d.ts +20 -4
- package/types/graph/combo-graph/index.d.ts +20 -4
- package/types/graph/combo-graph/props.d.ts +14 -4
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.3.
|
|
1
|
+
/*! @ecan-bi/datav@1.3.8 */
|
|
2
2
|
(function(j,n){typeof exports=="object"&&typeof module<"u"?n(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("ant-design-vue/es/notification/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","ant-design-vue/es/notification/style","xlsx","big.js"],n):(j=typeof globalThis<"u"?globalThis:j||self,n(j["@ecan/bi-datav"]={},j.Vue,j["echarts/core"],j.ResizeDetector,j.AntDesignVue,null,null,j.LodashEs,j.Dayjs,j.Axios,j.Mitt,null,null,null,j["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,j["echarts/renderers"],j["echarts/charts"],j["echarts/components"],null,j.Echarts,null,null,j.Xlsx,j.big.js))})(this,function(j,n,Qe,Fa,ce,su,cu,qe,Se,Fl,Ml,du,fu,uu,Ma,hu,gu,mu,yu,Et,ht,be,xu,zl,pu,bu,Zt,Pl){var Rl,Il,_l,Ol;"use strict";function ql(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const Hl=ql(zl),Vl=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function jl(e,o){function t(r){return(...i)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function a(){const r=Object.create(null);return Vl.forEach(i=>{r[i]=t(i)}),r}return a()}function Wl(e,o,t){let a=null;n.watch([t,e,o],([r,i,s],l,d)=>{r&&i&&s&&(a=Qe.throttle(()=>{i.resize()},100),Fa.addListener(r,a)),d(()=>{a&&r&&Fa.removeListener(r,a)})})}const Ul={autoresize:Boolean},Gl="ecLoadingOptions";function $l(e,o,t){const a=n.inject(Gl,{}),r=n.computed(()=>({...n.unref(a),...t==null?void 0:t.value}));n.watchEffect(()=>{const i=e.value;i&&(o.value?i.showLoading(r.value):i.hideLoading())})}const Zl={loading:Boolean,loadingOptions:Object},vu="",Yl=/^on[^a-z]/,Kl=e=>Yl.test(e);function Ql(e){const o={};for(const t in e)Kl(t)||(o[t]=e[t]);return o}const Jl="x-vue-echarts",Xl="ecTheme",e0="ecInitOptions",t0="ecUpdateOptions",xt=n.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Ul,...Zl},inheritAttrs:!1,setup(e,{attrs:o,listeners:t}){const a=n.shallowRef(),r=n.shallowRef(),i=n.shallowRef(),s=n.inject(Xl,null),l=n.inject(e0,null),d=n.inject(t0,null),{autoresize:c,manualUpdate:u,loading:g,loadingOptions:m}=n.toRefs(e),h=n.computed(()=>i.value||e.option||Object.create(null)),y=n.computed(()=>e.theme||n.unref(s)||{}),f=n.computed(()=>e.initOptions||n.unref(l)||{}),S=n.computed(()=>e.updateOptions||n.unref(d)||{}),D=n.computed(()=>Ql(o));function p(R){if(r.value||!a.value)return;const _=r.value=Qe.init(a.value,y.value,f.value);e.group&&(_.group=e.group);let F=t;F||(F={},Object.keys(o).filter(w=>w.indexOf("on")===0&&w.length>2).forEach(w=>{const C=w.charAt(2).toLowerCase()+w.slice(3);F[C]=o[w]})),Object.keys(F).forEach(w=>{const C=F[w];C&&(w.indexOf("zr:")===0?_.getZr().on(w.slice(3).toLowerCase(),C):_.on(w.toLowerCase(),C))});function A(){if(_&&!_.isDisposed())try{_.resize()}catch(w){if(w.message==="Cannot read property 'get' of undefined")return;throw w}}function v(){_.setOption(R||h.value,S.value)}c.value?n.nextTick(()=>{A(),v()}):v()}function b(R,_){e.manualUpdate&&(i.value=R),r.value?r.value.setOption(R,_||{}):p(R)}function x(){r.value&&(r.value.dispose(),r.value=void 0)}let k=null;n.watch(u,R=>{typeof k=="function"&&(k(),k=null),R||(k=n.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,S.value):p())},{deep:!0}))},{immediate:!0}),n.watch([y,f],()=>{x(),p()},{deep:!0}),n.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const T=jl(r,p);return $l(r,g,m),Wl(r,c,a),n.onMounted(()=>{e.option&&p()}),n.onUnmounted(x),{chart:r,root:a,setOption:b,nonEventAttrs:D,...T}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",n.h(Jl,e)}});function nt(e,o){n0(e)&&(e="100%");var t=o0(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*o),10)/100),Math.abs(e-o)<1e-6?1:(o===360?e=(e<0?e%o+o:e%o)/parseFloat(String(o)):e=e%o/parseFloat(String(o)),e)}function n0(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function o0(e){return typeof e=="string"&&e.indexOf("%")!==-1}function a0(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function wn(e){return e.length===1?"0"+e:String(e)}function r0(e,o,t){return{r:nt(e,255)*255,g:nt(o,255)*255,b:nt(t,255)*255}}function An(e,o,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(o-e)*(6*t):t<1/2?o:t<2/3?e+(o-e)*(2/3-t)*6:e}function i0(e,o,t){var a,r,i;if(e=nt(e,360),o=nt(o,100),t=nt(t,100),o===0)r=t,i=t,a=t;else{var s=t<.5?t*(1+o):t+o-t*o,l=2*t-s;a=An(l,s,e+1/3),r=An(l,s,e),i=An(l,s,e-1/3)}return{r:a*255,g:r*255,b:i*255}}function l0(e,o,t){e=nt(e,255),o=nt(o,255),t=nt(t,255);var a=Math.max(e,o,t),r=Math.min(e,o,t),i=0,s=a,l=a-r,d=a===0?0:l/a;if(a===r)i=0;else{switch(a){case e:i=(o-t)/l+(o<t?6:0);break;case o:i=(t-e)/l+2;break;case t:i=(e-o)/l+4;break}i/=6}return{h:i,s:d,v:s}}function s0(e,o,t){e=nt(e,360)*6,o=nt(o,100),t=nt(t,100);var a=Math.floor(e),r=e-a,i=t*(1-o),s=t*(1-r*o),l=t*(1-(1-r)*o),d=a%6,c=[t,s,i,i,l,t][d],u=[l,t,t,s,i,i][d],g=[i,i,l,t,t,s][d];return{r:c*255,g:u*255,b:g*255}}function c0(e,o,t,a){var r=[wn(Math.round(e).toString(16)),wn(Math.round(o).toString(16)),wn(Math.round(t).toString(16))];return a&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function za(e){return Je(e)/255}function Je(e){return parseInt(e,16)}var Pa={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 Yt(e){var o={r:0,g:0,b:0},t=1,a=null,r=null,i=null,s=!1,l=!1;return typeof e=="string"&&(e=u0(e)),typeof e=="object"&&(gt(e.r)&>(e.g)&>(e.b)?(o=r0(e.r,e.g,e.b),s=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):gt(e.h)&>(e.s)&>(e.v)?(a=nn(e.s),r=nn(e.v),o=s0(e.h,a,r),s=!0,l="hsv"):gt(e.h)&>(e.s)&>(e.l)&&(a=nn(e.s),i=nn(e.l),o=i0(e.h,a,i),s=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=a0(t),{ok:s,format:e.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:t}}var d0="[-\\+]?\\d+%?",f0="[-\\+]?\\d*\\.\\d+%?",pt="(?:".concat(f0,")|(?:").concat(d0,")"),kn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),Tn="[\\s|\\(]+(".concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")[,|\\s]+(").concat(pt,")\\s*\\)?"),lt={CSS_UNIT:new RegExp(pt),rgb:new RegExp("rgb"+kn),rgba:new RegExp("rgba"+Tn),hsl:new RegExp("hsl"+kn),hsla:new RegExp("hsla"+Tn),hsv:new RegExp("hsv"+kn),hsva:new RegExp("hsva"+Tn),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 u0(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(Pa[e])e=Pa[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=lt.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=lt.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=lt.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=lt.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=lt.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=lt.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=lt.hex8.exec(e),t?{r:Je(t[1]),g:Je(t[2]),b:Je(t[3]),a:za(t[4]),format:o?"name":"hex8"}:(t=lt.hex6.exec(e),t?{r:Je(t[1]),g:Je(t[2]),b:Je(t[3]),format:o?"name":"hex"}:(t=lt.hex4.exec(e),t?{r:Je(t[1]+t[1]),g:Je(t[2]+t[2]),b:Je(t[3]+t[3]),a:za(t[4]+t[4]),format:o?"name":"hex8"}:(t=lt.hex3.exec(e),t?{r:Je(t[1]+t[1]),g:Je(t[2]+t[2]),b:Je(t[3]+t[3]),format:o?"name":"hex"}:!1)))))))))}function gt(e){return!!lt.CSS_UNIT.exec(String(e))}var on=2,qa=.16,h0=.05,g0=.05,m0=.15,Ha=5,Va=4,y0=[{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 ja(e){var o=e.r,t=e.g,a=e.b,r=l0(o,t,a);return{h:r.h*360,s:r.s,v:r.v}}function an(e){var o=e.r,t=e.g,a=e.b;return"#".concat(c0(o,t,a,!1))}function x0(e,o,t){var a=t/100,r={r:(o.r-e.r)*a+e.r,g:(o.g-e.g)*a+e.g,b:(o.b-e.b)*a+e.b};return r}function Wa(e,o,t){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=t?Math.round(e.h)-on*o:Math.round(e.h)+on*o:a=t?Math.round(e.h)+on*o:Math.round(e.h)-on*o,a<0?a+=360:a>=360&&(a-=360),a}function Ua(e,o,t){if(e.h===0&&e.s===0)return e.s;var a;return t?a=e.s-qa*o:o===Va?a=e.s+qa:a=e.s+h0*o,a>1&&(a=1),t&&o===Ha&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ga(e,o,t){var a;return t?a=e.v+g0*o:a=e.v-m0*o,a>1&&(a=1),Number(a.toFixed(2))}function Bn(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],a=Yt(e),r=Ha;r>0;r-=1){var i=ja(a),s=an(Yt({h:Wa(i,r,!0),s:Ua(i,r,!0),v:Ga(i,r,!0)}));t.push(s)}t.push(an(a));for(var l=1;l<=Va;l+=1){var d=ja(a),c=an(Yt({h:Wa(d,l),s:Ua(d,l),v:Ga(d,l)}));t.push(c)}return o.theme==="dark"?y0.map(function(u){var g=u.index,m=u.opacity,h=an(x0(Yt(o.backgroundColor||"#141414"),Yt(t[g]),m*100));return h}):t}var En={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"},Dn={},Rn={};Object.keys(En).forEach(function(e){Dn[e]=Bn(En[e]),Dn[e].primary=Dn[e][5],Rn[e]=Bn(En[e],{theme:"dark",backgroundColor:"#141414"}),Rn[e].primary=Rn[e][5]});var $a=[],Kt=[],p0="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function b0(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function v0(e,o){if(o=o||{},e===void 0)throw new Error(p0);var t=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),r=$a.indexOf(a);r===-1&&(r=$a.push(a)-1,Kt[r]={});var i;return Kt[r]!==void 0&&Kt[r][t]!==void 0?i=Kt[r][t]:(i=Kt[r][t]=b0(),t==="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 Za(e){for(var o=1;o<arguments.length;o++){var t=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.forEach(function(r){S0(e,r,t[r])})}return e}function S0(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}function C0(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function w0(e,o){C0(e,"[@ant-design/icons-vue] ".concat(o))}function Ya(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function In(e,o,t){return t?n.h(e.tag,Za({key:o},t,e.attrs),(e.children||[]).map(function(a,r){return In(a,"".concat(o,"-").concat(e.tag,"-").concat(r))})):n.h(e.tag,Za({key:o},e.attrs),(e.children||[]).map(function(a,r){return In(a,"".concat(o,"-").concat(e.tag,"-").concat(r))}))}function Ka(e){return Bn(e)[0]}function Qa(e){return e?Array.isArray(e)?e:[e]:[]}var A0=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
@@ -116,6 +116,6 @@ version: 2.9.0
|
|
|
116
116
|
<img style="width: ${n.unref(i)};filter: ${`drop-shadow(${N||C||"#6ACB97"} ${n.unref(i)} 0px)`};" src="${Lo}"/>
|
|
117
117
|
</div>
|
|
118
118
|
<span style="color: ${N||e.color};${n.unref(u)}">${e.minusSignShow?"-":""}${Math.abs(+O).toFixed(2)}%</span>
|
|
119
|
-
</span>`)}else e.format==="percent"?(O=+O,isNaN(O)||(O=(O*100).toFixed(2),B=B.replace(V,`<span style="color:${h(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${O}%</span>`))):e.format==="money"?(O=+O,isNaN(O)||(O=Eo(O),B=B.replace(V,`<span style="color:${h(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${O}</span>`))):I==="thousands"?(O=+O,isNaN(O)||(O=hc(O),B=B.replace(V,`<span style="color:${h(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${O}</span>`))):B=B.replace(V,`<span style="color:${h(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${O}</span>`)}}if(L||(L=`<span style="color: ${h(B)};${n.unref(u)}">${B}</span>`),e.unitShow&&e.unitText){const{unitTop:P,unitLeft:V}=e;let U="position:relative;";P&&(U+=`top:${P};`),V&&(U+=`margin-left:${V};`),L+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${U};${n.unref(u)}'>${e.unitText}</span>`}return L});function h(v){let w="",C=!1;const{targetValue:B,targetShow:E,notExpectColor:L}=e;if(E){switch(e.targetRule){case"equal":v!==B&&(C=!0);break;case"greater":v<=B&&(C=!0);break;case"greater_equal":v<B&&(C=!0);break;case"less":v>=B&&(C=!0);break;case"less_equal":v>B&&(C=!0);break}C&&(w=L)}return w}const{pageMode:y}=n.inject(Me,{pageMode:"normal"}),f=He(e),S=n.ref(!1),D=async()=>{var v;try{S.value=!0;const w=await f();r.value=((v=w==null?void 0:w.data)==null?void 0:v.data)||{}}catch(w){console.error(w)}finally{S.value=!1}},p=(v={})=>{r.value=v},b=v=>{const w=e.id,C=l(w);d(w,{...C,value:v||""})},x=it(e),k=async()=>{var v,w;try{S.value=!0;const C=await x(),{data:B}=(C==null?void 0:C.data)||{};if(B){t.value=!1;const{columns:E=[],rows:L=[]}=((v=C==null?void 0:C.data)==null?void 0:v.data)??{},{graphicConfig:M}=e;let P={};if(E.length>0)if((w=M==null?void 0:M.dimensionList)!=null&&w.length){const V=E[0];V&&(L!=null&&L.length)&&(P={value:L[0][V]})}else{const V=E.find(U=>!!U);V&&(P={value:isNaN(L[V])?0:L[V]||0})}b(P==null?void 0:P.value),p(P)}else t.value=!0,b("NaN"),p({value:"NaN"})}catch(C){console.error(C)}finally{S.value=!1,c(e.id,!0)}},T=()=>{switch(e.dataType){case"indicator":k();break;case"request":D();break}},{setRequest:R}=n.inject(ze,{setRequest:({id:v,sortNum:w,requestFn:C})=>{}});typeof R=="function"&&R({id:e.id,requestFn:T,sortNum:e.requestSort}),Le(e,{refreshData:T}),o({refreshData:T});const _=Ee(e),F=_("click",()=>{if(!e.linkPage&&!e.href)return;const v=e.linkPage||"",w=mi(n.unref(y),v),C=e.href;let B=C||w;B=De(B);const E=e.target;E&&(E!=="event"?window.open(B,"_"+E):window.parent.postMessage({type:"openPage",url:C},"*"))}),A=_("valueChange",()=>{});return n.watch(()=>m.value,(v,w)=>{v!==w&&A()}),{style:a,myText:m,loading:S,click:F,textIndent:s,vFontSize:i,gradientStyle:g}}}),bi=()=>{n.useCssVars(e=>({"76c25fa2":e.vFontSize,"09a99f9d":e.textIndent,d90c2f16:e.percentageSide}))},vi=No.setup;No.setup=vi?(e,o)=>(bi(),vi(e,o)):bi;const Eu="",Sc=["innerHTML"];function Cc(e,o,t,a,r,i){const s=n.resolveComponent("skeleton");return e.loading?(n.openBlock(),n.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:n.normalizeStyle(e.style)},[n.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"ecan-text",style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,12,Sc))}const Si=pe(ye(No,[["render",Cc],["__scopeId","data-v-db08769b"]])),wc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Ru="",Ac={class:"red"};function kc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Ac,n.toDisplayString(e.text),1)}const Ci=pe(ye(wc,[["render",kc],["__scopeId","data-v-4dd9c03e"]])),Fo={...we,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"}},Mo=ve(Fo),wi=["timeChange"],Tc=n.defineComponent({name:"EcanTimeDisplay",props:{...Mo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:u}=e;let g=Se();if(u){const{type:m,value:h,mode:y}=u;switch(m){case"add":g=g.add(h,y);break;case"minus":g=g.subtract(h,y)}}return g.format(c)},a=n.ref();n.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),n.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Ee(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:u,mode:g}=e.updateInterval||{};u&&(c=c*u);const m={second:1,minute:60,hour:60*60,day:24*60*60};g&&(c=c*m[g]),r=setInterval(()=>{a.value=t(),l()},c)};return Le(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),_u="";function Bc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"time-display",style:n.normalizeStyle(e.style)},n.toDisplayString(e.time),5)}const Ai=pe(ye(Tc,[["render",Bc],["__scopeId","data-v-b628fca2"]])),zo={...we,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:.3,graphicConfig:{}},Po=ve(zo),ki=["refreshData","click","resetRecord"],Ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAfEZKLdkHEUIrcw8h5qjVetNAdhRJKidH+nnY6EJ7IKN9YY4ANPIAou+WDXsgZmtewLxKSik7ICOzOk6ZguDVplnPScpFe8c3Jw2th8GgTu32lb0Wb4yZg0vPgOQmBvwRjKrVBwgxm3lUZL6E4yxTELyneaQBxznMPDwzr5NSJ+nhWT8nisVNAFuZPSeYd0mp43G5+BNp2sfxEUU29gAAAABJRU5ErkJggg==",Dc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAbVJREFUSEvNl7tKA1EQhmfOyd6ClikVLHwCWzHb5QHUbWIStVRQBLGyEEFsLSwUq6idKIiFjZdNUgTR3k7wAoqC2GU3mz0ju5uIRaKN68l5gDMfM//M/IO0PaS4yd55ErTEEFMEf/cYIvgknjjgmpq3t376GZ2i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E2Mcb2D1RagAAAABJRU5ErkJggg==",Ic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAapJREFUSEvNl88rBGEYx7/P7K6yO2VGOfJPuAqF/AGYi7Q7y8mWTcnJQUquDg4kVnITJQdpZyVOsndXtKUoM4vyY3feR7OLiN0cjHff05ze7+d95vs+7/chtC6FGvRQkgiTBGrCXy4igEVOgGbzaXOx2takdaWSSl39PBefAPBfYpT3KsF4H2LITsc3KgmQ3pO6BFEz2AeId1VSwELsOHrEwKbx8hMM6T1r7EslPqsReefMqlq4PbdpPFYASflYijfJEgifqlqkQzKIArB7YheoE4emZ8Zvy/OI/xUpyz5CoNfOmMeSQah8gwRP2db5HDAtvtjoHyvyocuMLccy+6WDkBICi+KZq4Tb7vaN21K7kVGRcqMLeAa+EqChfDqWkQfy9l+YUWAgUQMgXGTQqDwQCoDZvWZWBvNW1JIC8m7WQlB0POzFb6SZlYFtJ232Sbq+tdPQnth1e52DkSN5LZ5q5dH7XQz4r2AksqqmVglG3asXUJQWv6MiWOzawfsB7I09V/DISoKCkQW/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==";(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var _c=Object.defineProperty,Ti=Object.getOwnPropertySymbols,Oc=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable,Bi=(e,o,t)=>o in e?_c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ei=(e,o)=>{for(var t in o||(o={}))Oc.call(o,t)&&Bi(e,t,o[t]);if(Ti)for(var t of Ti(o))Lc.call(o,t)&&Bi(e,t,o[t]);return e},Nc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Fc=n.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const t=n.ref(0),a=n.ref("100%"),r=n.ref("100%"),i=n.ref(0),s=n.ref(!1),l=n.ref(!1),d=n.ref(0),c=n.ref(0),u=n.ref(0),g=n.ref(0),m=n.ref(!1),h=n.ref(!1),y=n.ref(0),f=n.ref(null),S=n.ref("200px"),D=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await k(),i.value++},k=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",p.value!==null&&b.value!==null&&p.value&&b.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in b.value){g.value=p.value.clientHeight,u.value=b.value.clientHeight;const L=Math.ceil(u.value/g.value);return t.value=isFinite(L)?L:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in b.value){if(c.value=p.value.clientWidth,d.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const L=Math.ceil(d.value/c.value);return t.value=isFinite(L)?L:0,t.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};n.watch(c,async()=>{e.clone&&x()}),n.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),n.watch(()=>e.pause,(L,M)=>{L!==M&&o(L?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),m.value=!0)},R=()=>{e.pauseOnHover&&(o("onResume"),m.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),h.value=!0)},F=()=>{e.pauseOnClick&&(o("onResume"),h.value=!1)},A=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),v=n.computed(()=>e.pauseOnHover&&(m.value||h.value)||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),w=n.computed(()=>e.pauseOnHover&&m.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),C=n.computed(()=>{const L={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${v.value}`,"--pauseOnClick":`${w.value}`,"--pauseAnimation":`${A.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${S.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},M={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(M["--orientation"]="scrollY"),Ei(Ei({},L),M)}),B=n.computed(()=>!!e.gradient),E=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),S.value=e.gradientWidth):e.gradientLength&&(S.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await k(),x()),D.value=!0};return n.onMounted(async()=>{E(),f.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(f.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(f.value)}),{ready:D,contentWidth:c,containerWidth:d,contentHeight:g,containerHeight:u,loopCounter:y,loopInterval:f,mouseOverMarquee:m,mouseDownMarquee:h,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:B,cloneAmount:t,ForcesUpdate:x,checkForClone:k,setupMarquee:E,getCurrentStyle:C,hoverStarted:T,hoverEnded:R,mouseDown:_,mouseUp:F}}}),Mc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},zc={class:"marquee",ref:"marqueeContent"},Pc={key:1,"aria-hidden":!0,class:"marquee"};function qc(e,o,t,a,r,i){return e.ready?(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:n.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[n.createElementVNode("div",Mc,null,512),e.showGradient?(n.openBlock(),n.createElementBlock("div",{key:0,"aria-hidden":!0,class:n.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("div",zc,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Pc,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.cloneAmount,s=>(n.openBlock(),n.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[n.renderSlot(e.$slots,"default")]))),128))],38)):n.createCommentVNode("",!0)}var Hc=Nc(Fc,[["render",qc]]);const Vc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Hc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),jc={key:1,class:"list-wrap"};function Wc(e,o,t,a,r,i){const s=n.resolveComponent("Vue3Marquee");return e.isAutoScroll?(n.openBlock(),n.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(n.openBlock(),n.createElementBlock("div",jc,[n.renderSlot(e.$slots,"default")]))}const Uc=ye(Vc,[["render",Wc]]),Gc=n.defineComponent({name:"EcanList",components:{Skeleton:ln,ATooltip:ce.Tooltip,MarqueeScroll:Uc},props:{...Po},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(A,v)=>{const{format:w,customFormatter:C}=v;if(w==null||w==="")return A;const B={money:Eo,percentage:pn,contrast:pn,custom:gi};return B[w]?w==="custom"?B[w](A,C)||"":B[w](A)||"":""},i=(A,v)=>{const w=parseFloat(A+"");if(v!=="contrast")return"";switch(!0){case w>=0:return"goUp";case w<0:return"goDown"}},s=He(e),l=n.ref(!1),d=async()=>{var A;if(e.dataType==="request")try{l.value=!0;const v=await s();t.value=((A=v==null?void 0:v.data)==null?void 0:A.data.rows)||[]}catch(v){console.error(v)}finally{l.value=!1}};n.watch(()=>e.data,()=>{t.value=e.data},{immediate:!0,deep:!0});const c=n.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),u=n.computed(()=>{const{columns:A,isUseSeq:v}=e;return v?[n.unref(c),...A]:A}),g=it(e),m=async()=>{var A;try{l.value=!0;const v=await g(),{columns:w=[],rows:C=[]}=((A=v==null?void 0:v.data)==null?void 0:A.data)??{};e.isUseSeq&&w.unshift(e.seqName),u.value.forEach((B,E)=>{(!e.isUseSeq||E!==0)&&(B.title=w[E],B.key=w[E])}),t.value=C}catch(v){console.error(v)}finally{l.value=!1}},h=()=>{switch(e.dataType){case"indicator":m();break;case"request":d();break}},y=Ee(e),{getGlobalModel:f,setGlobalModel:S}=n.inject(Be,{getGlobalModel:A=>{},setGlobalModel:(A,v)=>{}}),D=A=>{y("click",()=>{const v=f(e.id);S(e.id,{...v,type:e.type,RECORD:A})})()};Le(e,{refreshData:h,resetRecord:()=>{const A=e.id,v=f(A);S(A,{...v,type:e.type,RECORD:""})}});const{setRequest:b}=n.inject(ze,{setRequest:({id:A,sortNum:v,requestFn:w})=>{}});typeof b=="function"&&b({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h});const x=A=>({flex:A.width?"none":"1",width:A.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:A.align||"left",backgroundColor:A.cellColor}),k=(A,v)=>{let w=0;const C=n.unref(t).map(E=>E[v]),B=Math.max(...C);return B&&(w=A[v]/B*100),w},T=A=>{const{progressColor:v="#1890ff",progressGradientColor:w=""}=A;return w?{background:`linear-gradient(to right, ${v} 0%, ${w} 100%)`}:{backgroundColor:v||"#1890ff"}},R=n.computed(()=>{const A=parseFloat(e.seqFontSize)+5;return{width:A+10,height:A}}),{pageMode:_}=n.inject(Me,{pageMode:"normal"}),F=n.computed(()=>n.unref(_)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:u,click:D,getColumnStyle:x,getPercentage:k,getBackgroundColor:T,seqIcon4:Ec,seqIcon5:Dc,seqIcon6:Rc,seqIcon7:Ic,iconSize:R,isScroll:F}}}),Lu="",Nu="",$c=e=>(n.pushScopeId("data-v-83e1ef11"),e=e(),n.popScopeId(),e),Zc={key:0,class:"title"},Yc={key:0,class:"ranking"},Kc={key:1,class:"ecan-list-content"},Qc=["onClick"],Jc={key:0,class:"ranking"},Xc=$c(()=>n.createElementVNode("div",{class:"icon"},null,-1)),ed={class:"sort"},td=["src","width","height"],nd=["src","width","height"],od=["src","width","height"],ad=["src","width","height"],rd={key:1},id={key:2,class:"empty"};function ld(e,o,t,a,r,i){const s=n.resolveComponent("a-tooltip"),l=n.resolveComponent("marquee-scroll"),d=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-list",style:n.normalizeStyle(e.style)},[n.createVNode(d,{loading:e.loading},{default:n.withCtx(()=>[e.useTitle?(n.openBlock(),n.createElementBlock("div",Zc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columnCount,c=>(n.openBlock(),n.createElementBlock("div",{class:"title-inner",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Yc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(u,g)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:u.key||g,style:n.normalizeStyle({color:u.titleColor,...e.getColumnStyle(u)})},n.toDisplayString(u.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",Kc,[e.useTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-placeholder",style:n.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):n.createCommentVNode("",!0),n.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dataSource.slice(0,e.sliceCount),(c,u)=>(n.openBlock(),n.createElementBlock("div",{class:"item",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(u+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||u,onClick:g=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Jc,[Xc,n.createElementVNode("div",ed," Top "+n.toDisplayString(u+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,g=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[g.key],g.format)]),key:g.key,style:n.normalizeStyle({fontSize:g.fontSize,color:e.contrastClass(c[g.key],g.format)===""?g.color:"",fontWeight:g.fontWeight,...e.getColumnStyle(g)})},[g.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[u===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,td)):u===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,nd)):u===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,od)):u>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,ad)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(u+1),5)],64)):(n.openBlock(),n.createElementBlock("span",rd,n.toDisplayString(u+1),1))],64)):g.format==="progress"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"progress-cell",style:n.normalizeStyle({height:e.itemHeight})},[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({height:g.progressWidth||"14px",backgroundColor:g.progressBaseColor})},[n.createVNode(s,{title:c[g.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:g.progressWidth||"14px",width:`${e.getPercentage(c,g.key)}%`,...e.getBackgroundColor(g)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(c[g.key],g)),1)],64))],6))),128))],12,Qc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",id," 暂无数据 "))]),_:1},8,["loading"])],4)}const Di=pe(ye(Gc,[["render",ld],["__scopeId","data-v-83e1ef11"]])),qo={...we,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",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Ho=ve(qo),Ri=["refreshData","click"],sd=n.defineComponent({name:"EcanProportion",components:{AProgress:ce.Progress,Skeleton:ln},props:{...Ho},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),r=Ce(e),i=n.computed(()=>{const x=e.width;return parseFloat(x)}),s=n.ref({});n.watch(()=>e.data,()=>{(e.dataType==="static"||n.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=n.computed(()=>{const x=n.unref(s),k=+e.variableDefaultValue;if(x==null)return isNaN(k)?0:k;const T=e.text.match(/\{.+\}/g)||[];let R;const _=new Set(Object.keys(x));for(let F=0;F<T.length;F++){const A=T[F],v=A.slice(1,A.length-1);if(_.has(v)){R=x[v];break}}return typeof R=="number"?R=R*100:typeof R=="string"&&!isNaN(+R)?R=+R*100:isNaN(k)?R=0:R=k*100,e.decimalFormat&&(R=+R.toFixed(2)),R}),d=n.computed(()=>{var _;let x=e.text;if(x==="")return n.unref(l);const k=e.variableDefaultValue,T=n.unref(s),R=x.match(/\{.+\}/g)||[];for(let F=0;F<R.length;F++){const A=R[F];let v=A.slice(1,A.length-1);const w=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=A.match(w);for(let E=0;E<(C==null?void 0:C.length);E++){const L=(_=C[E])==null?void 0:_.trim();T[L]!=null&&(v=v.replace(L,T[L]))}let B=v;try{/\(.*\)/g.test(v)&&(B=vn(v))}catch(E){console.error(E)}typeof+B=="number"&&!isNaN(+B)?(B=+B*100,e.decimalFormat&&(B=B.toFixed(2))):B=k,x=x.replace(A,B+"")}return n.unref(t)?"NaN":x}),c=He(e),u=n.ref(!1),g=async()=>{var x;if(e.dataType==="request")try{u.value=!0;const k=await c();s.value=((x=k==null?void 0:k.data)==null?void 0:x.data)||{}}catch(k){console.error(k)}finally{u.value=!1}},m=(x={})=>{s.value=x},h=it(e),y=async()=>{var x;try{u.value=!0;const k=await h(),{data:T}=(k==null?void 0:k.data)||{};if(T){t.value=!1;const{columns:R=[],rows:_=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let F={};if(R.length>0){const A=R.find(v=>!!v);A&&(F={percent:_[A]})}m(F)}else t.value=!0,m({percent:"NaN"})}catch(k){console.error(k)}finally{u.value=!1}},f=()=>{switch(e.dataType){case"indicator":y();break;case"request":g();break}};Le(e,{refreshData:f}),o({refreshData:f});const D=Ee(e)("click",()=>{}),{setRequest:p}=n.inject(ze,{setRequest:({id:x,sortNum:k,requestFn:T})=>{}});typeof p=="function"&&p({id:e.id,requestFn:f,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:k,gradientOffset:T,strokeColor:R}=e;let _=R;return x&&k&&(_={"0%":R,[`${T*100}%`]:k}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:u,click:D,customStrokeColor:b}}}),Mu="";function cd(e,o,t,a,r,i){const s=n.resolveComponent("skeleton"),l=n.resolveComponent("a-progress");return n.openBlock(),n.createElementBlock("div",{class:"ecan-proportion",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:n.withCtx(()=>[e.loading?(n.openBlock(),n.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(n.openBlock(),n.createElementBlock("div",{key:1,class:"format",style:n.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},n.toDisplayString(e.text),5)):n.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Ii=pe(ye(sd,[["render",cd],["__scopeId","data-v-cf942b5f"]])),Vo={...we,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},jo=ve(Vo),_i=["inputChange","inputBlur"],dd=n.defineComponent({name:"EcanInput",components:{AInput:ce.Input},props:{...jo},setup(e){const o=Ce(e),t=n.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=n.inject(Be,{getGlobalModel:u=>{},setGlobalModel:(u,g)=>{},getRecordValueByKeyName:u=>{}});n.watch(()=>e.value,u=>{t.value=i(u)},{immediate:!0}),r(e.id,{type:e.type,value:t});const s=()=>{const u=a(e.id);r(e.id,{...u,RECORD:t})},l=Ee(e),d=qe.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:c,inputChange:d}}}),Pu="";function fd(e,o,t,a,r,i){const s=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",{class:"ecan-input",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Oi=pe(ye(dd,[["render",fd]])),Wo={...we,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,optionFontSize:"14px"},Uo=ve(Wo),Li=["dateChange"],Go=n.defineComponent({name:"EcanDatePicker",props:{...Uo},components:{ADatePicker:ce.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([m,h,y])=>{let f=null;if(m?f=Se(De(m)):h&&(f=Se()),y&&f){const{type:S,value:D,mode:p}=y;switch(S){case"add":f=f.add(D,p);break;case"minus":f=f.subtract(D,p)}}r.value=f},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(Be,{setGlobalModel:(m,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ee(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};Le(e,{dateChange:l});const c=n.ref({}),u=n.ref({}),g=m=>{m?setTimeout(()=>{u.value=n.unref(c)},300):u.value={}};return n.onMounted(()=>{setTimeout(()=>{const m=document.querySelector(`#ecan-date-picker-${e.id}`);if(m){const h=m.getBoundingClientRect(),y=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-h.left<y&&(c.value.marginLeft=-1*(y-h.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Ma,change:d,scaleValue:o,popupStyle:c,customStyle:u,openChange:g}}}),Ni=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Fi=Go.setup;Go.setup=Fi?(e,o)=>(Ni(),Fi(e,o)):Ni;const Hu="",Vu="",ud=["id"];function hd(e,o,t,a,r,i){const s=n.resolveComponent("a-date-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-date-picker",style:n.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[n.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,ud)}const Mi=pe(ye(Go,[["render",hd],["__scopeId","data-v-d4ec0d66"]])),$o={...we,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:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0},Zo=ve($o),zi=["dateChange"];var Pi={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(de,function(){var t="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,u){return c=Number(c),this.$utils().p(u)===a?this.add(3*c,t):l.bind(this)(c,u)};var d=s.startOf;s.startOf=function(c,u){var g=this.$utils(),m=!!g.u(u)||u;if(g.p(c)===a){var h=this.quarter()-1;return m?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return d.bind(this)(c,u)}}})})(Pi);var gd=Pi.exports;const md=fr(gd);Se.extend(md);const Yo=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ce.RangePicker},props:{...Zo},setup(e){const o=Ce(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=n.ref([null,null]);n.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([b,x,k,T,R,_])=>{let F=null,A=null;if(k&&(F=Se().subtract(T,R),A=Se()),b&&(F=Se(De(b))),x&&(A=Se(De(x))),_){const{type:v,value:w,mode:C}=_;switch(v){case"add":F=F&&F.add(w,C),A=A&&A.add(w,C);break;case"minus":F=F&&F.subtract(w,C),A=A&&A.subtract(w,C)}}a.value=[F,A]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,x,k)=>{Array.isArray(b)?(r=b[0],i=b[1],s=k.range):(r=null,i=null)},d=b=>{let x=!1,{limitStartTime:k,limitEndTime:T}=e;const R={startTime:`${r||""}`,endTime:`${i||""}`};if(k=De(k,{codeData:R}),T=De(T,{codeData:R}),k&&T?x=!(Se(k)<b&&b<Se(T)):k?x=Se(k)>b:T&&(x=Se(T)<b),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const F=_.startOf("year"),A=_.endOf("year");x=!(F<=b&&b<A)}}return x},{getGlobalModel:c,setGlobalModel:u}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),g=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),m=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:g,endTime:m,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Ee(e);let y=!1;const f=h("dateChange",()=>{}),S=b=>{const x=n.unref(a),k=x&&x[0]&&x[1];b===!1&&y===!0&&k&&(f(),y=!1),b||(s="")},D=()=>{y=!0};return Le(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:k}=x;if(k)switch(n.unref(k)){case"month":a.value=[Se().startOf("month"),Se().endOf("month")];break;case"quarter":a.value=[Se().startOf("quarter"),Se().endOf("quarter")];break;case"year":a.value=[Se().startOf("year"),Se().endOf("year")];break}}}f()}}),{style:o,getPopupContainer:t,locale:Ma,dateChange:f,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:D}}}),qi=()=>{n.useCssVars(e=>({"3c9c0a71":e.optionFontSize}))},Hi=Yo.setup;Yo.setup=Hi?(e,o)=>(qi(),Hi(e,o)):qi;const Wu="",Uu="";function yd(e,o,t,a,r,i){const s=n.resolveComponent("a-range-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-range-picker",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),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,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Vi=pe(ye(Yo,[["render",yd],["__scopeId","data-v-66cd4fad"]])),Ko={...we,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},Qo=ve(Ko),ji=["click"],xd=n.defineComponent({name:"EcanButton",components:{AButton:ce.Button},props:{...Qo},setup(e){const o=Ce(e),a=Ee(e)("click",()=>{const d=n.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=n.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),i=n.computed(()=>De(e.text)),s=n.computed(()=>De(e.href)||null),l=n.computed(()=>{const d=e.target;if(!(d==="event"||n.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),$u="";function pd(e,o,t,a,r,i){const s=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"ecan-button",style:n.normalizeStyle(e.style)},[n.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:n.normalizeStyle(e.buttonStyle),class:n.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},n.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Wi=pe(ye(xd,[["render",pd]])),Jo={...we,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"}],graphicConfig:{}},Xo=ve(Jo),Ui=["checkboxChange"],bd=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ce.CheckboxGroup},props:{...Xo},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref([]),i=S=>{const D=e.value;let p=[];S.forEach(b=>{b.checked&&p.push(b.value)}),typeof D=="string"&&D!==""?p=p.concat(D.split(",")):Array.isArray(D)&&(p=p.concat(D)),a.value=S,r.value=p};n.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const S=await s(),D=((b=(p=S==null?void 0:S.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(D)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}});c(e.id,{type:e.type,value:r});const g=Ee(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),m=it(e),h=async()=>{var S;try{const D=await m(),{data:p}=(D==null?void 0:D.data)||{};if(p){const x=(((S=D==null?void 0:D.data)==null?void 0:S.data)??[]).map(k=>({label:k.label,value:k.value}));i(x)}else i([])}catch(D){console.error(D)}},y=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:f}=n.inject(ze,{setRequest:({id:S,sortNum:D,requestFn:p})=>{}});return typeof f=="function"&&f({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y}),{myOption:a,style:t,myValue:r,checkboxChange:g}}}),Yu="";function vd(e,o,t,a,r,i){const s=n.resolveComponent("a-checkbox-group");return n.openBlock(),n.createElementBlock("div",{class:"ecan-checkbox",style:n.normalizeStyle(e.style)},[n.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Gi=pe(ye(bd,[["render",vd]])),ea={...we,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",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},ta=ve(ea),$i=["selectChange","refreshData"],Sd=n.defineComponent({name:"EcanSelect",components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},props:{...ta},setup(e,{expose:o}){const t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var E;const{mode:B}=e;return(E=n.unref(i))!=null&&E.length?s.value:B==="multiple"||B==="tags"||B==="combobox"?[]:""},set:B=>{s.value=B}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=n.inject(Be,{getGlobalModel:B=>{},setGlobalModel:(B,E)=>{},getRecordValueByKeyName:B=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:B,selectFirstOption:E,value:L}=e,M=u(L);B==="multiple"||B==="tags"||B==="combobox"?M?s.value=M.split(","):E&&(s.value=[n.unref(i)[0]]):M?s.value=M:E&&(s.value=n.unref(i)[0])},{immediate:!0});const g=e.dataFieldNames,m=(B,E)=>{const L=g.label,M=g.value;let P;const V=E[L],U=E[M];return V!=null?P=V:U!=null&&(P=U),(P==null?void 0:P.toLowerCase().indexOf(B==null?void 0:B.toLowerCase()))>=0},h=B=>{const{label:E,value:L,options:M}=e.dataFieldNames;if(M&&Array.isArray(B))if(B.some(P=>M in P)){const P={},V=[];B.forEach(U=>{P[U[M]]||(P[U[M]]=[]),P[U[M]].push({[E]:U[E],[L]:U[L]})});for(const U in P)V.push({[E]:U,[M]:P[U]});return V}else return B;else if(!M)return B},y=n.ref(!1),f=async()=>{var B,E;if(e.dataType==="request"){y.value=!0;try{const L=await r();if(i.value=h(((E=(B=L==null?void 0:L.data)==null?void 0:B.data)==null?void 0:E.rows)||[]),e.selectFirstOption){let M=n.unref(i)[0];if(g.options){const P=M[g.options];P&&P.length&&(M=P[0])}s.value=M[g.value]}}catch(L){console.error(L)}finally{y.value=!1}}},{setLoadedData:S,loadedData:D}=n.inject(bt,{setLoadedData:(B,E)=>{},loadedData:{}}),p=n.computed(()=>{let B=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const E=g.label,L=g.value;if(e.mode==="multiple")B=n.unref(i).filter(M=>n.unref(s).includes(M[L])).map(M=>M[E]);else{const M=n.unref(i).find(P=>n.unref(s)===P[L]);M&&(B=M[E])}}return B}),b=n.ref([]),x=n.computed(()=>{const B={};if(e.mode!=="multiple"){const E=n.unref(b).find(L=>L.value===n.unref(s));E&&(B.itemCodes=E.item_codes)}return B});c(e.id,{type:e.type,value:p,...n.unref(x)});const T=Ee(e)("selectChange",()=>{const B=e.id,E=d(B);c(B,{...E,...n.unref(x),RECORD:p})}),R=(B=[])=>{if(i.value=h(B),e.selectFirstOption){let E=n.unref(i)[0];if(g.options){const L=E[g.options];L&&L.length&&(E=L[0])}s.value=E[g.value]}},_=it(e),F=async()=>{var B;try{y.value=!0;const E=await _(),{data:L}=(E==null?void 0:E.data)||{},M=g.label,P=g.value;if(L){const V=((B=E==null?void 0:E.data)==null?void 0:B.data)??[];b.value=V;const U=V.map(O=>({[M]:O.label,[P]:O.value})),{id:z}=e,q=d(z);c(z,{...q,...n.unref(x)}),S(z,!0),R(U)}else R([])}catch(E){console.error(E)}finally{y.value=!1}},A=n.computed(()=>{var B,E;return(E=(B=e==null?void 0:e.graphicConfig)==null?void 0:B.controlList)==null?void 0:E.find(L=>L.conditionKey==="parentCode")}),v=n.ref(!1);n.watch(D,B=>{!n.unref(v)&&n.unref(A)&&B[n.unref(A).id]&&(v.value=!0,w())},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":{if(n.unref(A)){if(n.unref(D)[n.unref(A).id]){const{mode:B}=e;B==="multiple"||B==="tags"||B==="combobox"?l.value=[]:l.value="",F()}}else F();break}case"request":f();break}};Le(e,{selectChange:T,refreshData:w});const{setRequest:C}=n.inject(ze,{setRequest:({id:B,sortNum:E,requestFn:L})=>{}});return typeof C=="function"&&C({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{style:t,getPopupContainer:a,myValue:s,selectChange:T,options:i,filterOption:m,loading:y,resultValue:l}}}),Qu="",Ju="";function Cd(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-select",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:n.normalizeStyle({fontSize:e.optionFontSize})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:d.value,label:d.label,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Zi=pe(ye(Sd,[["render",Cd],["__scopeId","data-v-e5517626"]])),na={...we,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},oa=ve(na),Yi=["selectChange","refreshData"],wd={name:"EcanTreeSelect",components:{ATreeSelect:ce.TreeSelect},props:{...oa},setup(e){const o=Ce(e),t=n.ref(e.data),a=(h,y)=>{const f=e.dataFieldNames,S=f.label,D=f.value;let p;const b=y[S],x=y[D];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:y,selectFirstOption:f}=e;h?y?r.value=y.split(","):f&&(r.value=[n.unref(t)[0]]):y?r.value=y:f&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=He(e),l=async()=>{var h,y;if(e.dataType==="request"){i.value=!0;try{const f=await s();t.value=((y=(h=f==null?void 0:f.data)==null?void 0:h.data)==null?void 0:y.rows)||[];const S=n.unref(t)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(f){console.error(f)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:h=>{},setGlobalModel:(h,y)=>{}});c(e.id,{type:e.type,value:r});const g=Ee(e)("selectChange",()=>{const h=e.id,y=d(h);c(h,{...y,RECORD:r})});Le(e,{selectChange:g,refreshData:l});const{setRequest:m}=n.inject(ze,{setRequest:({id:h,sortNum:y,requestFn:f})=>{}});return m({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:g}}},e1="",t1="";function Ad(e,o,t,a,r,i){const s=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tree-select",style:n.normalizeStyle(a.style)},[n.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),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 Ki=pe(ye(wd,[["render",Ad],["__scopeId","data-v-37236421"]])),aa={...we,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},ra=ve(aa),Qi=["checkboxChange","click"],kd=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:ce.RadioGroup,ARadioButton:ce.RadioButton,ARadio:ce.Radio},props:{...ra},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref(""),i=b=>{const x=e.value;let k=[];typeof x=="string"&&x!==""?k=k.concat(x.split(",")):Array.isArray(x)&&(k=k.concat(x)),a.value=b,r.value=k[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var k,T;if(e.dataType!=="request")return;const b=await s(),x=((T=(k=b==null?void 0:b.data)==null?void 0:k.data)==null?void 0:T.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const u=Ee(e),g=u("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),m=b=>{r.value=b,u("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{g()});const h=it(e),y=async()=>{var b;try{const x=await h(),{data:k}=(x==null?void 0:x.data)||{};if(k){const R=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(_=>({label:_.label,value:_.value}));i(R)}else i([])}catch(x){console.error(x)}},f=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:S}=n.inject(ze,{setRequest:({id:b,sortNum:x,requestFn:k})=>{}});typeof S=="function"&&S({id:e.id,requestFn:f,sortNum:e.requestSort});const D=b=>{r.value=b.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:f}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:m,useImagePath:At,tabChange:D}}}),o1="",a1="",Td=["onClick"];function Bd(e,o,t,a,r,i){const s=n.resolveComponent("a-radio"),l=n.resolveComponent("a-radio-button"),d=n.resolveComponent("a-radio-group");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-radio",e.optionType]),style:n.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,(c,u)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:u,onClick:n.withModifiers(g=>e.tabChange(c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.label),5)],12,Td))),128))],4)):(n.openBlock(),n.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,c=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.value},[e.optionType==="default"?(n.openBlock(),n.createBlock(s,{key:0,value:c.value,style:n.normalizeStyle(e.radioStyle)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(n.openBlock(),n.createBlock(l,{key:1,value:c.value,onClick:u=>e.onClickButton(c.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):n.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Ji=pe(ye(kd,[["render",Bd],["__scopeId","data-v-baa84768"]])),ia={...we,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",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",labelWidth:100,labelOverflow:"none",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:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},la=ve(ia),Xi=["click","refreshData","resetRecord"],Gt=async e=>{var d;const o=await ft.post(e,{},{responseType:"blob"}),{data:t,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},sa={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",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)"},ca=ve(sa),el=["showModal","hideModal"];function tl(e){var r,i;const{componentList:o,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const g in t){const m=o.find(h=>h.id===g);if(m){bn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const h in t[g])if(t[g][h])for(const y of t[g][h]){const f=o.find(S=>S.id===y);f&&(f.parentId=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(m.sourceLeft||m.left)+"px",f.top=parseFloat(f.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const s=Array.from(new Set(o.filter(g=>(!bn(g,"parentId")||g.parentId==="")&&g.combinationId).map(g=>g.combinationId))),l=[];for(const g of s){const m=a[g];if(m!=null&&m.length){const h=o.filter(y=>m.includes(y.id));if(h!=null&&h.length){const y=Dd(h);if(y){l.push({...y,id:g,keyName:g,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const f of h)f&&(f.parentId=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(y.left)+"px",f.top=parseFloat(f.top)-parseFloat(y.top)+"px")}}}}l!=null&&l.length&&o.unshift(...l);const d=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=o.filter(g=>d.includes(g.type)&&!bn(g,"parentId")),u=[];for(const g of c)if(g){const m=g.id+"_vir";u.push({id:m,keyName:g.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:g.width,height:g.height,left:g.left,top:g.top,sourceLeft:g.left,sourceTop:g.top}),g.parentId=m,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=0,g.top=0}u!=null&&u.length&&o.unshift(...u);for(const g of o){const m=document.body.clientWidth;if(g.parentId===""&&["ecanBorder","ecanTabs"].includes(g.type))g.sourceWidth=parseFloat(g.width),g.height=(m/(g.sourceWidth/parseFloat(g.height))).toFixed(2)+"px",g.width="100%",g.position="relative",g.top="auto",g.left="auto";else{const h=o.find(y=>y.id===g.parentId);if((h==null?void 0:h.parentId)===""){const y=h.sourceWidth||parseFloat(h.width),f=m/y;g.scale=f,g.top=parseFloat(g.top)*f-parseFloat(g.height)*(1-f)/2+"px",g.left=parseFloat(g.left)*f-parseFloat(g.width)*(1-f)/2+"px"}}g.type==="ecanModal"&&(g.parentId="",g.fullModal=!0)}return Ed(o)}return o}function Ed(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=qe.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Dd(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],t=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&t&&a&&r?{left:t.left,top:o.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}const Rd=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Id(e,o,t,a,r,i){return e.component.parentId?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#container_"+e.component.parentId},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.normalizeProps(n.mergeProps({key:1},e.component)),null,16))}const _d=pe(ye(Rd,[["render",Id]])),Od=n.defineComponent({name:"EcanModal",components:{AModal:ce.Modal,CloseOutlined:Y0,Render:_d},props:{...ca},setup(e,{emit:o}){const t=n.ref([]),a=n.inject("isMobile",!1),r=n.inject("getContainerMap",()=>{}),i=n.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=n.inject(Be,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const Y=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Y]}}),u=e.fullModal?"1920px":e.width,g=e.fullModal?"1080px":e.height,m=e.originalWidth,h=e.originalHeight,y=n.ref("80%"),f=n.ref(0),S=n.ref(),D=n.ref(0),p=n.ref({}),b=Ce(e),x=n.ref({}),k=n.ref(!1),T=n.ref();let R;const _=()=>{S.value=parseFloat(u)/parseFloat(m);const Y=parseFloat(g)/parseFloat(h),le=document.body.offsetWidth,re=document.body.offsetHeight;f.value=le*n.unref(S),D.value=re*Y,y.value=`${n.unref(S)*100}%`,p.value={width:`${n.unref(f)}px`,height:`${n.unref(D)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...n.unref(b),backgroundImage:At(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(f)/parseFloat(u)},${n.unref(D)/parseFloat(g)})`,width:u,height:g}},F=qe.debounce(()=>{_()},100),A=()=>{const Y=window.MutationObserver;R=new Y(F),R.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{R&&(R.disconnect(),R.takeRecords(),R=null)},w=n.ref(!1),{touchRequest:C}=n.inject(ze,{touchRequest:()=>{}}),B=n.ref(""),E=()=>{var re;const{title:Y}=e,le=(re=n.unref(l))==null?void 0:re.RECORD;return le?De(Y,{textData:le},{useNewline:!1,useSpace:!1}):Y},L=Ee(e),M=()=>{a&&(document.documentElement.style.overflow="hidden"),B.value=E(),w.value=!0},P=L("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),w.value=!1}),V=()=>{P()},U=()=>{P(),s()},{setModalModel:z,pushUseModalIds:q,popUseModalIds:O}=n.inject(lr,{pushUseModalIds:Y=>{},popUseModalIds:()=>{},setModalModel:(Y,le)=>{}}),I=n.computed(()=>{if(a){const Y=qe.cloneDeep(e.componentList),le=r(),re=i();return tl({componentList:Y,containerMap:le,combinationMap:re})}else return e.componentList}),N=()=>{const Y=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(K=>K.id),z(Y,[...new Set(le)]))};n.watch(()=>w.value,async Y=>{Y?(k.value=!1,q(e.id),N(),await n.nextTick(()=>{_(),window.addEventListener("resize",F),A(),k.value=!0}),C()):(O(),window.removeEventListener("resize",F),v())});const W=n.computed(()=>n.unref(S)>=1),J=n.computed(()=>e.fullModal),$=n.computed(()=>{let Y="ecan-modal";return n.unref(W)&&(Y+=" ecan-full-width-modal"),n.unref(J)&&(Y+=" ecan-full-modal"),Y});return Le(e,{showModal:M,hideModal:P}),{modalRef:T,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:y,isFullModal:J,style:b,visible:w,showModal:M,onOk:V,onCancel:U,isFullWidth:W,wrapClassName:$,ready:k,usedComponentList:I,isMobile:a,readyIds:t,hasOwn:bn,onComponentReady:Y=>{t.value.push(Y)},formatTitle:B}}}),l1="",s1="";function Ld(e,o,t,a,r,i){const s=n.resolveComponent("close-outlined"),l=n.resolveComponent("render"),d=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:n.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"contain",ref:"containRef",style:n.normalizeStyle(e.containStyle)},[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"content",style:n.normalizeStyle(e.contentStyle)},[n.createElementVNode("div",{class:"header-bar",style:n.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ant-modal-title",style:n.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},n.toDisplayString(e.formatTitle),5)):n.createCommentVNode("",!0),e.isShowCloseBtn?(n.openBlock(),n.createBlock(s,{key:1,class:"close-icon",style:n.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):n.createCommentVNode("",!0)],4),e.usedComponentList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.isMobile?"mobile-wrap":"")},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.usedComponentList,(c,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+u},[e.isMobile?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(n.openBlock(),n.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:1},c)),null,16))],64))),128))],2)):n.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):n.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=pe(ye(Od,[["render",Ld],["__scopeId","data-v-a2e70efd"]]));Qe.use([Et.CanvasRenderer,ht.PieChart,be.TitleComponent,be.ToolboxComponent,be.TooltipComponent,be.LegendComponent]);const Nd=n.defineComponent({name:"EcanPie",props:{...la},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:v=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const w=e.isUseLabelColors,C=e.colors;v=v.map((B,E)=>({label:w?{color:C[E]}:{},...B}))}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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.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 w;t.value=!0,(w=i.value)==null||w.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:w=>{const{marker:C,seriesName:B,name:E,value:L,percent:M,data:P}=w||{};return De(e.tooltipFormatter,{textData:{marker:C,name:E,value:L,percent:M,a:B,b:E,c:L,d:M,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:v,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?Ue:e.labelFontSize,position:e.labelPosition,formatter:uc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),d=()=>{const v=t.value?Ue:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:v+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:v}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>{const{data:C}=r.value[0]||{};let B=0,E,L="0%";if(C)for(const M of C)M.name===w&&(E=+M.value),B+=+M.value;return B&&(L=`${(E/B*100).toFixed(2)}%`),tn(e.legendFormatter,{name:w,value:E,percent:L})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:g}=n.inject(Be,{getGlobalModel:v=>{},setGlobalModel:(v,w)=>{}}),{pageMode:m}=n.inject(Me,{pageMode:"normal"}),h=(v=[],w)=>{const{dataset:C}=Ft(v,w);r.value=C},y=(v=[],w)=>{const C=Ft(v,w);r.value=C.dataset};n.watch(()=>e.data,v=>{(e.dataType==="static"||n.unref(m)==="design")&&h(v)},{immediate:!0,deep:!0}),n.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const f=n.ref(!1),S=He(e),D=async()=>{var v,w;if(e.dataType==="request")try{f.value=!0;const C=await S();h((w=(v=C==null?void 0:C.data)==null?void 0:v.data)==null?void 0:w.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{f.value=!1}},p=Ee(e);g(e.id,{type:e.type,RECORD:""});const b=p("click",v=>{const w=u(e.id);g(e.id,{...w,type:e.type,RECORD:v==null?void 0:v.data})}),x=it(e),k=async()=>{var v;try{f.value=!0;const w=await x(),{data:C}=(w==null?void 0:w.data)||{};if(C){const{columns:B=[],rows:E=[]}=((v=w==null?void 0:w.data)==null?void 0:v.data)??{};let L=[];if(B.length>0){const M=B[0],P=B[1];L=E.map(V=>({name:V[M],value:isNaN(V[P])?0:V[P]||0}))}y(L)}}catch(w){console.error(w)}finally{f.value=!1}},{loadedData:T}=n.inject(bt,{loadedData:{}}),R=n.ref(!1);n.watch(T,v=>{if(e.dataType==="indicator"){const w=en(e.graphicConfig);w!=null&&w.length&&(!n.unref(R)&&at(e.graphicConfig,v)?(R.value=!0,_()):at(e.graphicConfig,v)||(R.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(T))&&k();break;case"request":D();break}};Le(e,{resetRecord:()=>{const v=e.id,w=u(v);g(v,{...w,RECORD:""})},refreshData:_,click:b}),o({refreshData:_});const{setRequest:A}=n.inject(ze,{setRequest:v=>{}});return typeof A=="function"&&A({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:f,ecanModal:i}}}),d1="";function Fd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const nl=pe(ye(Nd,[["render",Fd]])),da={...we,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:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",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,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,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,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},fa=ve(da),ol=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.LineChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent,be.MarkLineComponent]);const Md=n.defineComponent({name:"EcanLine",props:{...fa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref([]),l=n.ref(),d=n.computed(()=>a.value?Ue:12),c=n.ref({});let u;const g=n.ref([]),m=n.computed(()=>{const E=e.xAxisLabelFormatter,L=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(){Gt(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 M;a.value=!0,(M=l.value)==null||M.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},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:M=>{var z;const P=M.length;let V="",U=e.tooltipFormatter;u=(z=M[0])==null?void 0:z.data,U===""&&(U="{marker} {a} {c}");for(let q=0;q<P;q++){const{marker:O,seriesName:I,name:N,value:W,data:J}=M[q]||{};if(q===0){let $=N;typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&($=(+N).toString()),V+=`${rt(E,$)}<br/>`}V+=De(U,{textData:{marker:O,name:N,value:W,a:I,b:N,c:W||0,...J}},{useNewline:!0,useSpace:!0}),V+="<br/>"}return V},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(M=>{let P={};return M&&typeof M=="object"?P={...M}:P={value:M},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),rt(E,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(M){return rt(L,M)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(g).map(M=>({name:M.name,icon:e.legendType})),formatter:M=>tn(e.legendFormatter,{name:M})},series:n.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:f}=n.inject(Be,{getGlobalModel:E=>{},setGlobalModel:(E,L)=>{}}),{pageMode:S}=n.inject(Me,{pageMode:"normal"}),D=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(E=[],L=!1)=>{let M;if(e.dataFieldConfigType==="key"){const z=L?e.keyTypeDataFieldNames:null;M=wt(E,z)}else if(e.dataFieldConfigType==="value"){const z=L?e.valueTypeDataFieldNames:null;M=Ft(E,z)}s.value=M.dimensions,g.value=M.dataset;const P=M.dataset,V=[],U=P.length;for(let z=0;z<U;z++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),V.push({type:"line",...P[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...q},...n.unref(D)})}i.value=V},b=(E=[],L,M=!1)=>{const V=wt(E,M?L:null,!0);s.value=V.dimensions,g.value=V.dataset;const U=V.dataset,z=[],q=U.length;for(let O=0;O<q;O++){const I={};e.shadowColor&&(I.shadowColor=e.shadowColor,I.shadowBlur=e.shadowBlur,I.shadowOffsetY=e.shadowOffsetY,I.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...U[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...I},...n.unref(D)})}i.value=z};n.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([E])=>{(e.dataType==="static"||n.unref(S)==="design")&&p(E)},{immediate:!0,deep:!0});const x=n.ref(!1),k=He(e),T=async()=>{var E,L;if(e.dataType==="request")try{x.value=!0;const M=await k();p((L=(E=M==null?void 0:M.data)==null?void 0:E.data)==null?void 0:L.rows,!0)}catch(M){console.error(M)}finally{x.value=!1}},R=Ee(e);f(e.id,{type:e.type,RECORD:""});const _=R("click",E=>{const L=y(e.id);f(e.id,{...L,type:e.type,RECORD:e.tooltipShow?u:E.data})}),F=E=>{t.value.chart.containPixel("grid",[E.offsetX,E.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=F:c.value.click=_;const A=it(e),v=async()=>{var E;try{x.value=!0;const L=await A(),{columns:M=[],rows:P=[]}=((E=L==null?void 0:L.data)==null?void 0:E.data)??{};let V;M.length>0&&(V={name:M[0],types:M.slice(1).map(U=>({label:U,value:U}))}),b(P,V,!0)}catch(L){console.error(L)}finally{x.value=!1}},w=()=>{switch(e.dataType){case"indicator":v();break;case"request":T();break}};Le(e,{refreshData:w,resetRecord:()=>{const E=e.id,L=y(E);f(E,{...L,RECORD:""})},click:_});const{setRequest:B}=n.inject(ze,{setRequest:E=>{}});return typeof B=="function"&&B({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{option:m,style:r,click:_,loading:x,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),u1="";function zd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const al=pe(ye(Md,[["render",zd]])),ua={...we,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",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,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,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:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ha=ve(ua),rl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent,be.MarkLineComponent]);const Pd=n.defineComponent({name:"EcanBar",props:{...ha},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=Ce(e),d=n.ref([]),c=n.ref(),u=n.ref({});let g;const m=n.computed(()=>a.value?Ue:12),h=n.computed(()=>{const{gradientShow:O,gradientColors:I,gradientOffset:N,barBorderRadius:W}=e,J=n.unref(d),$=J.length,ae=[];for(let Y=0;Y<$;Y++){const le={...J[Y],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let K="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:ne,name:xe,value:Ae,data:ke}=re||{};return K+=De(X,{textData:{name:xe,value:Ae,a:ne,b:xe,c:Ae||0,...ke}},{useNewline:!0,useSpace:!0}),K}},le.itemStyle={},O&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:N,color:I[Y]},{offset:1,color:I[Y]}]}}),W){const re=W.split(",");if(re!=null&&re.length){const K=[];for(const X of re){const ne=parseFloat(X);isNaN(ne)||K.push(ne)}le.itemStyle.borderRadius=K}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),y=n.ref([]),f=n.ref(!1),S=n.computed(()=>{const O=e.yAxisLabelFormatter,I=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(){r.value=!0;const N=t.value.chart.getOption(),{xAxis:W}=N||{};W&&W.length&&(s.value=W[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(){Gt(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=c.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},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:N=>{var ae;const W=N.length;let J="",$=e.tooltipFormatter;g=(ae=N[0])==null?void 0:ae.data,$===""&&($="{marker} {a} {c}");for(let Y=0;Y<W;Y++){const{marker:le,seriesName:re,name:K,value:X,data:ne}=N[Y]||{};if(Y===0){let xe=K;typeof K=="string"&&K[0]==="0"&&!isNaN(+K)&&(xe=(+K).toString()),J+=`${rt(I,xe)}<br/>`}J+=De($,{textData:{marker:le,name:K,value:X,a:re,b:K,c:X||0,...ne}},{useNewline:!0,useSpace:!0}),J+="<br/>"}return J},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map((N,W)=>({name:N.name,itemStyle:{color:e.colors[W]},icon:e.legendType})),formatter:N=>tn(e.legendFormatter,{name:N})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(k),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(N){return typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(N=(+N).toString()),rt(I,N)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(y):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(N){return rt(O,N)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(h)}}),{pageMode:D}=n.inject(Me,{pageMode:"normal"}),p=()=>{a.value=!1},b=(O=[],I=!1)=>{let N={};if(e.dataFieldConfigType==="key"){const W=I?e.keyTypeDataFieldNames:null;N=wt(O,W)}else if(e.dataFieldConfigType==="value"){const W=I?e.valueTypeDataFieldNames:null;N=Ft(O,W)}d.value=N.dataset,y.value=N.dimensions},x=(O=[],I,N=!1)=>{const J=wt(O,N?I:null,!0);d.value=J.dataset,y.value=J.dimensions},k=n.computed(()=>n.unref(y).map(O=>{let I={};return O&&typeof O=="object"?I={...O}:I={value:O},I}));n.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([O])=>{(e.dataType==="static"||n.unref(D)==="design")&&b(O)},{immediate:!0,deep:!0});const T=He(e),R=async()=>{var O,I;try{f.value=!0;const N=await T();b((I=(O=N==null?void 0:N.data)==null?void 0:O.data)==null?void 0:I.rows,!0)}catch(N){console.error(N)}finally{f.value=!1}},_=it(e),F=async()=>{var O;try{f.value=!0;const I=await _(),{columns:N=[],rows:W=[]}=((O=I==null?void 0:I.data)==null?void 0:O.data)??{};let J;N.length>0&&(J={name:N[0],types:N.slice(1).map($=>({label:$,value:$}))}),x(W,J,!0)}catch(I){console.error(I)}finally{f.value=!1}},{loadedData:A}=n.inject(bt,{loadedData:{}}),v=n.ref(!1);n.watch(A,O=>{if(e.dataType==="indicator"){const I=en(e.graphicConfig);I!=null&&I.length&&(!n.unref(v)&&at(e.graphicConfig,O)?(v.value=!0,w()):at(e.graphicConfig,O)||(v.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(A))&&F();break;case"request":R();break}},C=(O,I)=>!!n.unref(s)[I.value].value.includes(O),B=async()=>{r.value=!1;const O=t.value.chart.getOption();for(let I=0;I<7;I++)await E(O,I)},E=(O,I)=>new Promise(N=>{setTimeout(()=>{const{series:W,color:J,xAxis:$}=O,ae=t.value.chart,{splitArea:Y={}}=$[0]||{};W.forEach((le,re)=>{const K=le.data;let X="";I%2?X=J[re]+"a8":X=J[re],K[i.value].itemStyle={color:X}}),I%2?(Y.show=!0,Y.areaStyle.color=n.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Y.show=!1,ae.setOption({series:W,xAxis:$}),N()},200)});o({refreshData:w});const L=Ee(e),{getGlobalModel:M,setGlobalModel:P}=n.inject(Be,{getGlobalModel:O=>{},setGlobalModel:(O,I)=>{}});P(e.id,{type:e.type,RECORD:""});const V=L("click",O=>{const I=M(e.id);P(e.id,{...I,type:e.type,RECORD:e.tooltipShow?g:O.data})}),{setRequest:U}=n.inject(ze,{setRequest:O=>{}});typeof U=="function"&&U({id:e.id,requestFn:w,sortNum:e.requestSort});const z=()=>{const O=e.id,I=M(O);P(O,{...I,RECORD:""})},q=O=>{t.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&V()};return e.tooltipShow?u.value["zr:click"]=q:u.value.click=V,Le(e,{refreshData:w,click:V,resetRecord:z}),{option:S,style:l,refreshData:w,click:V,loading:f,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:B,onFilterOption:C,locationVisible:r,locationValue:i,locationNames:s,eventObj:u}}}),g1="",m1="",qd=e=>(n.pushScopeId("data-v-d9fb5cfd"),e=e(),n.popScopeId(),e),Hd={class:"location-wrap"},Vd=qd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function jd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),u=n.resolveComponent("a-select"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{class:"ecan-bar",style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Hd,[Vd,n.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(m,h)=>(n.openBlock(),n.createBlock(c,{key:h,value:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const il=pe(ye(Pd,[["render",jd],["__scopeId","data-v-d9fb5cfd"]])),ga={...we,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:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,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:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},ma=ve(ga),ll=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.ScatterChart,be.ToolboxComponent,be.TitleComponent,be.TooltipComponent,be.LegendComponent,be.MarkLineComponent]);const Wd=n.defineComponent({name:"EcanScatter",props:{...ma},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e){const o=n.ref(!1),t=Ce(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?Ue:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const k=e.xAxisLabelFormatter,T=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(){Gt(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 R;o.value=!0,(R=r.value)==null||R.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},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},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),rt(k,R)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(R){return rt(T,R)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(R){var C;const{marker:_,seriesName:F}=R,A=((C=R==null?void 0:R.data)==null?void 0:C.record)??{},{name:v,value:w}=A;return De(e.tooltipFormatter,{textData:{marker:_,seriesName:F,a:F,b:v,c:w,...A}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:n.unref(a),type:"scatter",symbolSize:e.symbolSize,...n.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:k=>{},setGlobalModel:(k,T)=>{}}),{pageMode:u}=n.inject(Me,{pageMode:"normal"}),g=(k=[],T)=>{const{name:R="name",value:_="value"}=T||{};a.value=k.map(F=>({value:[F[R],F[_]],record:F}))};n.watch(()=>e.data,k=>{(e.dataType==="static"||n.unref(u)==="design")&&g(k)},{immediate:!0,deep:!0});const m=n.ref(!1),h=He(e),y=async()=>{var k,T;if(e.dataType==="request"){m.value=!0;try{const R=await h();g((T=(k=R==null?void 0:R.data)==null?void 0:k.data)==null?void 0:T.rows,e.dataFieldNames)}catch(R){console.error(R)}finally{m.value=!1}}},f=()=>{o.value=!1},S=Ee(e);c(e.id,{type:e.type,RECORD:""});const D=S("click",k=>{const T=e.id,R=d(T);c(T,{...R,type:e.type,RECORD:k==null?void 0:k.data})});Le(e,{refreshData:()=>{y()},click:D,resetRecord:()=>{const k=e.id,T=d(k);c(k,{...T,RECORD:""})}});const{setRequest:x}=n.inject(ze,{setRequest:k=>{}});return typeof x=="function"&&x({id:e.id,requestFn:y,sortNum:e.requestSort}),{option:l,style:t,click:D,loading:m,onClose:f,ecanModal:r}}}),x1="";function Ud(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const sl=pe(ye(Wd,[["render",Ud]])),ya={...we,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},xa=ve(ya),Gd=n.defineComponent({name:"EcanCustomGraph",props:{...xa},components:{Echarts:xt},setup(e){const o=Ce(e),t=n.ref();return n.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:t,echarts:Hl}}});function $d(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const cl=pe(ye(Gd,[["render",$d]])),pa={...we,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:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",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,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,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,toolboxLocation:!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%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ba=ve(pa),dl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent,be.MarkLineComponent]);const Zd=n.defineComponent({name:"EcanComboGraph",props:{...ba},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=n.ref({});let d;const c=Ce(e),u=n.ref([]),g=n.ref([]),m=n.ref(),h=n.ref([]),y=n.computed(()=>a.value?Ue:12),f=n.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},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(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:N}=I||{};N&&N.length&&(s.value=N[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(){Gt(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 I;a.value=!0,(I=m.value)==null||I.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(){ce.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:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(h).map((I,N)=>({name:I.name,itemStyle:{color:e.colors[N]},icon:e.legendType})),formatter:I=>tn(e.legendFormatter,{name:I})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{var ae;const N=I.length;let W="",J=e.tooltipFormatter;d=(ae=I[0])==null?void 0:ae.data,J===""&&(J="{marker} {a} {c}");const $=e.seriesTypes;for(let Y=0;Y<N;Y++){const le=$[Y],{tooltipFormatter:re}=le||{},{marker:K,seriesName:X,name:ne,value:xe,data:Ae}=I[Y]||{};if(Y===0){let ke=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(ke=(+ne).toString()),W+=`${rt(e.xAxisLabelFormatter,ke)}<br/>`}W+=De(re||J,{textData:{marker:K,name:ne,value:xe,seriesName:X,a:X,b:ne,c:xe||0,...Ae}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(g).map(I=>{let N={};return I&&typeof I=="object"?N={...I}:N={value:I},N}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),rt(e.xAxisLabelFormatter,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(k),series:n.unref(u)})),{pageMode:S}=n.inject(Me,{pageMode:"normal"}),D=()=>{a.value=!1},p=(I=[],N=!1)=>{let W;if(e.dataFieldConfigType==="key"){const $=N?e.keyTypeDataFieldNames:null;W=wt(I,$)}else if(e.dataFieldConfigType==="value"){const $=N?e.valueTypeDataFieldNames:null;W=Ft(I,$)}g.value=W.dimensions;const J=W.dataset;h.value=W.dataset,u.value=x(J)},b=(I=[],N,W=!1)=>{const $=wt(I,W?N:null,!0);g.value=$.dimensions;const ae=$.dataset;h.value=$.dataset,u.value=x(ae)};function x(I){const N=[],W=I.length,J=e.seriesTypes;for(let $=0;$<W;$++){const ae=J[$],{type:Y,axisIndex:le}=ae||{};let re={type:Y,yAxisIndex:le,...I[$]};if(Y==="line"){const K={};e.shadowColor&&(K.shadowColor=e.shadowColor,K.shadowBlur=e.shadowBlur,K.shadowOffsetY=e.shadowOffsetY,K.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[$]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...K}}}if(Y==="bar"){const{gradientShow:K,gradientColors:X,gradientOffset:ne}=e,xe={};if(e.barBorderRadius){const Ae=e.barBorderRadius.split(",");if(Ae!=null&&Ae.length){const ke=[];for(const $e of Ae){const Fe=parseFloat($e);isNaN(Fe)||ke.push(Fe)}xe.borderRadius=ke}}K&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:ne,color:X[$]},{offset:1,color:X[$]}]}),re={...re,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),N.push(re)}return N}n.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([I])=>{(e.dataType==="static"||n.unref(S)==="design")&&p(I)},{immediate:!0,deep:!0});const k=n.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map(N=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(W){return rt(N.axisLabelFormatter,W)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),T=n.ref(!1),R=He(e),_=async()=>{var I,N;if(e.dataType==="request")try{T.value=!0;const W=await R();p((N=(I=W==null?void 0:W.data)==null?void 0:I.data)==null?void 0:N.rows,!0)}catch(W){console.error(W)}finally{T.value=!1}},F=it(e),A=async()=>{var I;try{T.value=!0;const N=await F(),{columns:W=[],rows:J=[]}=((I=N==null?void 0:N.data)==null?void 0:I.data)??{};let $;W.length>0&&($={name:W[0],types:W.slice(1).map(ae=>({label:ae,value:ae}))}),b(J,$,!0)}catch(N){console.error(N)}finally{T.value=!1}},{loadedData:v}=n.inject(bt,{loadedData:{}}),w=n.ref(!1);n.watch(v,I=>{if(e.dataType==="indicator"){const N=en(e.graphicConfig);N!=null&&N.length&&(!n.unref(w)&&at(e.graphicConfig,I)?(w.value=!0,C()):at(e.graphicConfig,I)||(w.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(v))&&A();break;case"request":_();break}},B=(I,N)=>!!n.unref(s)[N.value].value.includes(I),E=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let N=0;N<7;N++)await L(I,N)},L=(I,N)=>new Promise(W=>{setTimeout(()=>{const{series:J,color:$,xAxis:ae}=I,Y=t.value.chart,{splitArea:le={}}=ae[0]||{};J.forEach((re,K)=>{const X=re.data;let ne="";N%2?ne=$[K]+"a8":ne=$[K],X[i.value].itemStyle={color:ne}}),N%2?(le.show=!0,le.areaStyle.color=n.unref(s).map((re,K)=>K===i.value?"#ff003b26":"")):le.show=!1,Y.setOption({series:J,xAxis:ae}),W()},200)});o({refreshData:C});const M=Ee(e),{getGlobalModel:P,setGlobalModel:V}=n.inject(Be,{getGlobalModel:I=>{},setGlobalModel:(I,N)=>{}});V(e.id,{type:e.type,RECORD:""});const U=M("click",I=>{const N=P(e.id);V(e.id,{...N,type:e.type,RECORD:e.tooltipShow?d:I==null?void 0:I.data})}),z=I=>{t.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&U()};e.tooltipShow?l.value["zr:click"]=z:l.value.click=U;const{setRequest:q}=n.inject(ze,{setRequest:I=>{}});return typeof q=="function"&&q({id:e.id,requestFn:C,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const I=e.id,N=P(I);V(I,{...N,RECORD:""})},refreshData:C,click:U}),{style:c,option:f,click:U,loading:T,onClose:D,ecanModal:m,echartRef:t,handleLocationOk:E,onFilterOption:B,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),v1="",S1="",Yd=e=>(n.pushScopeId("data-v-508d16d3"),e=e(),n.popScopeId(),e),Kd={class:"location-wrap"},Qd=Yd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Jd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),u=n.resolveComponent("a-select"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Kd,[Qd,n.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(m,h)=>(n.openBlock(),n.createBlock(c,{key:h,value:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const fl=pe(ye(Zd,[["render",Jd],["__scopeId","data-v-508d16d3"]])),va={...we,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",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,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},Sa=ve(va),ul=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.RadarChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const Xd=n.defineComponent({name:"EcanRadar",props:{...Sa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?Ue:12),d=n.ref([]),c=n.ref(e.valueTypeDataFieldNames.name),u=n.computed(()=>{const C=n.unref(d),B=C.length,E=[];for(let L=0;L<B;L++){const{name:M,data:P=[]}=C[L],V=[{name:M,value:P.map(z=>z.value)}],U={type:"radar",name:M,data:V,areaStyle:{color:e.colors[L],opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow}};E.push(U)}return E}),g=n.computed(()=>{var M;const C=[],B=[],E=n.unref(d),L=E.length;for(let P=0;P<L;P++){const{data:V=[]}=E[P];for(let U=0;U<V.length;U++)B.push(V[U].value)}if((M=i.value)!=null&&M.length){const P=B!=null&&B.length?Math.max(...B)*1.2:0;for(const V of i.value)C.push({name:V,max:P})}return C}),m=n.computed(()=>({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(){Gt(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 C;a.value=!0,(C=s.value)==null||C.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:C=>{let B="",E=e.tooltipFormatter;E===""&&(E="{marker} {a} {c}");for(let L=0;L<n.unref(g).length;L++){const M=n.unref(g)[L],{marker:P,seriesName:V,value:U}=C||{};L===0&&V&&(B+=`${V}<br/>`),B+=De(E,{textData:{marker:P,name:M.name,value:U[L],a:M.name,b:M.name,c:U[L]||0,type:V}},{useNewline:!0,useSpace:!0}),B+="<br/>"}return B},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(g),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>tn(e.legendFormatter,{name:C})},series:n.unref(u)})),h=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:f}=n.inject(Be,{getGlobalModel:C=>{},setGlobalModel:(C,B)=>{}}),{pageMode:S}=n.inject(Me,{pageMode:"normal"}),D=(C=[],B=!1)=>{let E;if(e.dataFieldConfigType==="key"){const L=B?e.keyTypeDataFieldNames:null;E=wt(C,L)}else if(e.dataFieldConfigType==="value"){const L=B?e.valueTypeDataFieldNames:null;E=Ft(C,L)}i.value=E.dimensions,d.value=E.dataset},p=(C=[],B,E=!1)=>{const M=wt(C,E?B:null,!0);i.value=M.dimensions,d.value=M.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([C])=>{(e.dataType==="static"||n.unref(S)==="design")&&D(C)},{immediate:!0,deep:!0});const b=n.ref(!1),x=He(e),k=async()=>{var C,B;if(e.dataType==="request")try{b.value=!0;const E=await x();D((B=(C=E==null?void 0:E.data)==null?void 0:C.data)==null?void 0:B.rows,!0)}catch(E){console.error(E)}finally{b.value=!1}},T=Ee(e);f(e.id,{type:e.type,RECORD:""});const R=C=>{const B=C.event.topTarget.__dimIdx;B!==void 0&&T("click",()=>{var P;const{value:E,name:L}=C.data||{},M=y(e.id);f(e.id,{...M,type:e.type,RECORD:{[n.unref(c)]:((P=n.unref(g)[B])==null?void 0:P.name)||"",[L]:E[B],seriesName:L}})})()},_=it(e),F=async()=>{var C;try{b.value=!0;const B=await _(),{columns:E=[],rows:L=[]}=((C=B==null?void 0:B.data)==null?void 0:C.data)??{};let M;E.length>0&&(c.value=E[0],M={name:E[0],types:E.slice(1).map(P=>({label:P,value:P}))}),p(L,M,!0)}catch(B){console.error(B)}finally{b.value=!1}},A=()=>{switch(e.dataType){case"indicator":F();break;case"request":k();break}};Le(e,{refreshData:A,resetRecord:()=>{const C=e.id,B=y(C);f(C,{...B,RECORD:""})},click:R});const{setRequest:w}=n.inject(ze,{setRequest:C=>{}});return typeof w=="function"&&w({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:m,style:r,click:R,loading:b,onClose:h,ecanModal:s,echartRef:t}}}),w1="";function ef(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const hl=pe(ye(Xd,[["render",ef]])),tf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM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YBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Ca={...we,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},wa=ve(Ca),gl=["click"],rf=n.defineComponent({name:"EcanBorder",props:{...wa},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:y,gradientShow:f,gradientColor:S,gradientOffset:D,gradientAngle:p,backgroundColor:b}=e;if(f){let x=S;return y&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${D*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:y}=e;let f={};return y!=null&&y.length&&y.find(D=>D.emit==="showModal")&&(f={cursor:"pointer"}),f}),{theme:r}=n.inject(Me,{theme:"light"}),i=n.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":tf,"../../assets/border-title-decoration-left2.png":nf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":of,"../../assets/border-title-decoration-right2.png":af})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:y}=e,f=[],S={};if(y){const D=y.split(",");for(const p of D)(+p||+p==0)&&f.push(+p+"px")}return f!=null&&f.length&&(S.borderRadius=f.join(" ")),S}),g=Ee(e)("click",()=>{}),m=n.ref([]);n.watch(()=>e.data,y=>{m.value=y},{immediate:!0,deep:!0}),Le(e,{click:g});const{setGlobalModel:h}=n.inject(Be,{setGlobalModel:(y,f)=>{}});return h(e.id,{type:e.type,value:m}),{style:o,gradientStyle:t,click:g,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),k1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),lf=["id"],sf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),cf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),df=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ff=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),uf={class:"title-item"},hf=["src"],gf={class:"title"},mf=["src"],yf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),xf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),pf=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),bf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),vf={key:2,class:"left-title"},Sf={class:"title"};function Cf(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"ecan-border",style:n.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"no-title",style:n.normalizeStyle(e.borderStyle)},[e.useBorderModify?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[sf,cf,df,ff],64)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.mode==="top-title"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-title",style:n.normalizeStyle(e.borderStyle)},[n.createElementVNode("div",{class:n.normalizeClass(["title-item-wrapper",e.titleMode])},[n.createElementVNode("div",uf,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,hf),n.createElementVNode("div",gf,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,mf)])],2),yf,xf,pf,bf],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",vf,[n.createElementVNode("div",Sf,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,lf)}const ml=pe(ye(rf,[["render",Cf],["__scopeId","data-v-8dd53b8f"]])),Aa={...we,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,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},ka=ve(Aa),yl=["tabChange"],wf=n.defineComponent({name:"EcanTabs",props:{...ka},components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},setup(e){const o=Ce(e),t=n.ref(0);n.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:a}=n.inject(Me,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&h>0&&(r=setInterval(()=>{const y=n.unref(t)+1;y<=h?t.value=y:t.value=0,l.value=n.unref(s)[n.unref(t)],g()},e.autoSwitchInterval*1e3))};n.onMounted(()=>{n.unref(a)!=="design"&&i()}),n.onBeforeUnmount(()=>{clearInterval(r)});const s=n.ref([]),l=n.ref({});n.watch(()=>e.data,h=>{s.value=h,l.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const d=h=>t.value===h,c=Ee(e),{setGlobalModel:u}=n.inject(Be,{setGlobalModel:(h,y)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:g}=n.inject(Jt,{emitRefreshPage:()=>{}}),m=c("tabChange",(h,y)=>{y!==n.unref(t)&&(l.value=h,t.value=y,g())});return Le(e,{tabChange:m}),{style:o,activeKey:t,isActive:d,tabChange:m,myData:s,useImagePath:At}}}),B1="",Af=["id"],kf=["onClick"];function Tf(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tabs",style:n.normalizeStyle(e.style),id:"container_"+e.id},[n.createElementVNode("div",{class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.myData,(d,c)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?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:c,onClick:n.withModifiers(u=>e.tabChange(d,c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(d.title),5)],12,kf))),128)):e.tabType==="select"?(n.openBlock(),n.createBlock(l,{key:1,value:e.activeKey,style:n.normalizeStyle({width:e.tabWidth})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myData,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:c,onClick:u=>e.tabChange(d,c)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(d.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)],12,Af)}const xl=pe(ye(wf,[["render",Tf],["__scopeId","data-v-fbab260a"]])),Ta={...we,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ba=ve(Ta),pl=["click"],Ea=n.defineComponent({name:"EcanImage",props:{...Ba},setup(e){const o=Ce(e),t=n.computed(()=>At(e.imgUrl)),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(Be,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ee(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=mi(n.unref(a),c),g=e.href;let m=g||u;m=De(m);const h=e.target;h&&(h!=="event"?window.open(m,"_"+h):window.parent.postMessage({type:"openPage",url:g},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),bl=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},vl=Ea.setup;Ea.setup=vl?(e,o)=>(bl(),vl(e,o)):bl;const D1="",Bf=["src"];function Ef(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,class:"ecan-image",style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Bf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const Sl=pe(ye(Ea,[["render",Ef],["__scopeId","data-v-47ea6e7c"]])),Da={...we,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ra=ve(Da),Df=n.defineComponent({name:"EcanIframe",props:{...Ra},setup(e){const o=Ce(e),{contextRequestUrl:t}=n.inject(Me,{contextRequestUrl:""}),a=n.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${is||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),I1="",Rf=["src"];function If(e,o,t,a,r,i){return e.myLink?(n.openBlock(),n.createElementBlock("iframe",{key:0,src:e.myLink,style:n.normalizeStyle(e.style)},null,12,Rf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Cl=pe(ye(Df,[["render",If],["__scopeId","data-v-19bc100c"]])),Ia={...we,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",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:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},_a=ve(Ia),wl=["click","refreshData","resetRecord","exportTableData"],_f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8oFilY+dZfEL3FnudOXKtVt3LqxyoQtlI1WUCFhYpSCIhKoAgTwhJMFkZm73bavP7dO3h9yQpJJNJtObnJx7u+ee+333O6cfDJahSQCHhhk91p1Ttj8xs4F8zOEe2dx3C2hH0efkkwCvKluCPEc+l7mfKHvD+X7jW8qjsqV0th60Hqh6GSsSUQlgWNDX0RGoQNauCdcbmvruU8oWnB9NqAtvGRtgPzJXJuMMh86U8jX7USPd57H4OmPwjWEOZ5/hfRdvDi6WiYumbj1Q/YrZSkf0l2OAytlRLj5BtAm4uwvV0pG9hl4S3lW2C3DEopdP9mDolpV9vew+JN80hxll+0xy8nU1iHXKLmYi83sM4D+tzl/SfWVXfqXstt8GcIy52oKpW5OBUl7sO7TeiEPBadoZi0y0l96aYOwdbb9MPgcgr+wxzgw6l0uBeduTggl13WEgkz4yipEC04dJicg3WeK3Jx9ibl7nSczVcZO3tPEpeQoXbn+rbIZDxi0V0XqgKxlRky56Wg0dxoNgB5LCi3OiaqGM9sVMYSfJ54JsVvbDK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2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Oa=n.defineComponent({name:"EcanTable",components:{Skeleton:ln,AButton:ce.Button,AInput:ce.Input,ACheckboxGroup:ce.CheckboxGroup,ATable:ce.Table,ATableSummary:ce.TableSummary,ATableSummaryRow:ce.TableSummaryRow,ATableSummaryCell:ce.TableSummaryCell},props:{..._a},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const H=qe.cloneDeep(e.columns);return e.isUseSeq&&H.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&H.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),H}),r=n.ref(),i=n.ref(!1),s=Ce(e),l=n.ref([]),d=n.computed(()=>e.scrollX),c=n.ref(0),u=()=>{let H=0;switch(e.size){case"small":H=50;break;case"middle":H=53;break;default:H=65;break}return H};n.watchEffect(()=>{var H;(H=l.value)!=null&&H.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const Q=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let te=0;if(oe&&(Z-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(te=(ie==null?void 0:ie.clientHeight)||0,Z-=te),e.paginationShow){let ee=0;ee=u(),ee&&(Z-=ee)}(Q==null?void 0:Q.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(te){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;te!==fe&&n.unref(c)&&(c.value=Z+te-fe)}})})});const g=n.ref([]),m=n.ref([]),h=n.ref([]),y=n.ref([]),f=n.ref(0),S=n.ref(1),D=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(H=[])=>{var Z,Q;if(Array.isArray(H)&&H.length>0){let oe=H.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:te=[]}}=e;H.forEach((ee,fe)=>{if(n.unref(a)[fe])for(const Oe in n.unref(a)[fe])["dataIndex","title"].includes(Oe)||(ee[Oe]=n.unref(a)[fe][Oe]);const he=te.find(Oe=>Oe.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let te=oe-1;te>=0;te--)(Q=H[te])!=null&&Q.isHidden&&H.splice(te,1);oe=H.length;for(let te=0;te<oe;te++){const ee=H[te];if(te<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Ke=ee.dataIndex;ee.sorter=(_t,$t)=>_t[Ke]-$t[Ke]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Oe,tableFilter:Ye,headerCellAlign:yt,headerCellColor:It,overflow:Sn}=ee;Ye&&(p.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Ke,_t)=>_t[ge].toString().toLowerCase().includes(Ke.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:yt||"center",color:It||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Ke,_t)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(W)===_t&&e.clickHighlight},onClick:U("click",()=>{const $t=e.id,Cn=z($t);Ke={dataIndex:ge,title:Oe,...Ke},q($t,{...Cn,type:e.type,RECORD:Ke})})}),Sn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&b(ee.children)}}},x=(H=[])=>{var Q;let Z=qe.cloneDeep(H);return(Q=n.unref(y))!=null&&Q.length&&(Z=qe.cloneDeep(n.unref(y))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Z),Z};n.watch(D,()=>{S.value=1,Y(!1)}),n.watch(r,H=>{i.value=!!H}),n.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{g.value=x(qe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([H,Z])=>{Z==="static"&&(m.value=H)},{immediate:!0});const k=n.ref({}),T=H=>{if(Array.isArray(H)){const Z=H.length,Q=p,oe=Q.length,ie={};for(let ee=0;ee<Z;ee++){const fe=H[ee];for(let he=0;he<oe;he++){const ge=Q[he];if(ie[ge])ie[ge].add(fe[ge]);else{const Oe=new Set;Oe.add(fe[ge]),ie[ge]=Oe}}}const te={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);te[ee]=he.map(ge=>({label:ge,value:ge}))}k.value=te}};n.watch(()=>[e.isReverse,g.value,m.value],()=>{const H=n.unref(g),Z=n.unref(m);if(T(Z),e.isReverse){const{columns:Q,dataSource:oe}=R(qe.cloneDeep(H),qe.cloneDeep(Z));h.value=Q,l.value=oe}else h.value=H,l.value=Z},{immediate:!0});const R=(H,Z)=>{const Q=H[0],oe=[{title:Q.title,dataIndex:"col0",key:"col0",align:"center"}];for(let te=0;te<Z.length;te++){const ee=Z[te],fe="col"+(te+1);oe.push({title:ee[Q.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let te=1;te<H.length;te++){const ee=H[te],fe={col0:ee.title};for(let he=0;he<Z.length;he++){const ge=Z[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},_=n.ref(""),F=He(e),A=async(H=!0,Z={})=>{var Q;try{H&&(t.value=!0),n.unref(_)&&(Z.orderCondition=n.unref(_)),e.paginationShow&&(Z={pageNum:n.unref(S),pageSize:n.unref(D)||"10",layer:"1",...Z});const oe=await F(Z),{rows:ie=[],total:te=0}=((Q=oe==null?void 0:oe.data)==null?void 0:Q.data)||{};if(f.value=te,Array.isArray(ie)&&(m.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,fe=ee.find(he=>he.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const he=ie.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);he!=null&&he.length&&n.nextTick(()=>{ce.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},v=({current:H},Z,Q)=>{if(S.value=H,Q&&Object.keys(Q).length>0){const{field:oe,order:ie}=Q,ee={ascend:"asc",descend:"desc"}[ie];oe!=null&&ee!=null&&ee?_.value=oe+" "+ee:ee||(_.value="")}e.isSortByFront||Y(!1)},w=n.computed(()=>{const H=e.simple,Z=[e.paginationPosition],Q={};return e.isShowTotal&&(Q.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:H,position:Z,total:n.unref(f),current:n.unref(S),pageSize:n.unref(D)||"10",showSizeChanger:!1,size:"large",...Q}}),C=H=>+H==1?"是":+H==0?"否":H,B=(H,Z)=>{const{format:Q,retentiondigit:oe,customFormatter:ie}=Z;if(Q==null||Q==="")return H;const te={money:Eo,percentage:pn,contrast:pn,boolean:C,decimals:gc,custom:gi};return te[Q]?Q==="decimals"?te[Q](H,oe)||"":Q==="custom"?te[Q](H,ie)||"":te[Q](H)||"":""},E=H=>H==="contrast"?"upDown":"",L=H=>{const{text:Z,format:Q,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=H;if(Q==="contrast"){const te={fontSize:e.fontSize},ee=parseFloat(Z+"");return ee>=0?te.color=ie:ee<0&&(te.color=oe),te}else return{}},M=n.computed(()=>{const{fontSize:H}=e;return{width:H,height:H,textIndent:`-${parseFloat(H)*2}px`,overflow:"hidden"}}),P=H=>{const{text:Z,declineColor:Q="#39cf93",increaseColor:oe="#ff512e"}=H,{fontSize:ie}=e,te=parseFloat(Z+""),ee={width:ie,verticalAlign:"unset"};return te>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:te<0&&(ee.filter=`drop-shadow(${Q||"#39cf93"} ${ie} -1px)`),ee},V=H=>{const Z=parseFloat(H+"");if(Z>=0)return Oo;if(Z<0)return Lo},U=Ee(e),{getGlobalModel:z,setGlobalModel:q}=n.inject(Be,{getGlobalModel:H=>{},setGlobalModel:(H,Z)=>{}});q(e.id,{type:e.type,RECORD:""});const O=(H=[],Z=[])=>{const Q=H.map(oe=>({title:oe,dataIndex:oe,key:oe}));y.value=qe.cloneDeep(Q),g.value=x(Q),m.value=Z},I=it(e),N=async(H=!0)=>{var Z,Q,oe,ie;try{H&&(t.value=!0);const te=n.unref(_).split(" "),ee={};e.isSortByFront||(ee.sort={order:te[1],field:te[0]});const fe=await I(ee);O((Q=(Z=fe==null?void 0:fe.data)==null?void 0:Z.data)==null?void 0:Q.columns,(ie=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(te){console.error(te)}finally{t.value=!1}},W=n.ref(-1),J=(H,Z)=>({onClick:U("rowClick",()=>{const Q=e.id,oe=z(Q);q(Q,{...oe,type:e.type,RECORD:H}),W.value=Z})}),{loadedData:$}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch($,H=>{if(e.dataType==="indicator"){const Z=en(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(ae)&&at(e.graphicConfig,H)?(ae.value=!0,Y()):at(e.graphicConfig,H)||(ae.value=!1))}},{deep:!0});const Y=(H=!0)=>{switch(e.dataType){case"request":A(H);break;case"indicator":at(e.graphicConfig,n.unref($))&&N(H);break}},le=()=>{const H=e.id,Z=z(H);q(H,{...Z,type:e.type,RECORD:""})},re=n.computed(()=>{const H=n.unref(h);let Z=0;const{subTotalColumn:Q,subTotalName:oe}=e;Q&&(Z=H.findIndex(he=>he.dataIndex===Q),Z<0&&(Z=0));const ie=[];let te=0;for(let he=0;he<H.length;he++){const ge=H[he],{isCalcTotal:Oe}=ge;he===Z?ie.push({...ge,total:oe}):Oe?(ie.push({...ge,index:he,total:0}),te++):ie.push({...ge})}if(te===0)return[];const ee=n.unref(l),fe=K(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Oe=0;const{isCalcTotal:Ye,dataIndex:yt}=ge;if(Ye===!0){for(let It=0;It<ee.length;It++){const Ke=+ee[It][yt];isNaN(Ke)||(Oe=new Pl.Big(Oe).add(Ke).toNumber())}ge.total=Oe}}return fe});function K(H){var Q;const Z=[];for(const oe of H)(Q=oe.children)!=null&&Q.length?Z.push(...K(oe.children)):Z.push(oe);return Z}const{setRequest:X}=n.inject(ze,{setRequest:H=>{}});typeof X=="function"&&X({id:e.id,requestFn:Y,sortNum:e.requestSort}),o({refreshData:Y});const ne=(H="",Z)=>De(H,Z),xe=H=>{if(H!=="event")return{self:"_self",blank:"_blank"}[H]},Ae=(H,Z="")=>{H==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},ke=(H,Z)=>{H(Z.filterCheckboxGroupValue)},$e=(H,Z)=>{H({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Fe=()=>{},Ie=H=>{const Z=H.dataIndex;if(typeof Z=="string"){let Q=n.unref(k)[Z];const oe=n.unref(H.filterOptionsInputValue).trim();return Array.isArray(Q)?(Q=Q.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),Q):[]}return[]},Te=async()=>{var ge,Oe;const H="EXPORT_KEY";ce.message.loading({key:H,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};n.unref(_)&&(Ye.orderCondition=n.unref(_));const yt=await F(Ye);Z=((Oe=(ge=yt==null?void 0:yt.data)==null?void 0:ge.data)==null?void 0:Oe.rows)||{}}const Q=n.unref(h),oe=[],ie=[];Q==null||Q.forEach(Ye=>{oe.push(Ye.dataIndex),ie.push(Ye.title)});const te=Z.map(Ye=>qe.pick(Ye,oe)),ee=Zt.utils.book_new(),fe=Zt.utils.aoa_to_sheet([ie]),he=Zt.utils.sheet_add_json(fe,te,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(ee,he,"sheet"),Zt.writeFile(ee,"表格数据.xlsx"),ce.message.success({key:H,content:"导出成功"})},Ne=(H,Z=2)=>{const Q=+H*100;return isNaN(Q)||Q<=0?0:Q>=100?100:Q.toFixed(Z)};Le(e,{resetRecord:le,refreshData:Y,exportTableData:Te});const Ve=(H,Z)=>{let Q=null;return e.stripedShow&&(Q=Z%2===1?"table-striped":null),Q},et=n.computed(()=>{let H=0;const{height:Z,isPageBottom:Q}=e;return Q&&Z&&(H=parseFloat(Z)-u()),H?H+"px":"100%"}),je=n.computed(()=>{let H="#071655";return e.headerBackgroundColor&&(H="transparent"),H}),We=n.computed(()=>{let H="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(H="transparent"),H}),ct=n.computed(()=>parseFloat(e.fontSize)+16),Ze=n.computed(()=>{let H="";const{paginationColor:Z,paginationBgColor:Q,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:te}=e;return Z&&(H+="p-color "),Q&&(H+="p-bg-color "),oe&&(H+="active-p-color "),ie&&(H+="active-p-bg-color "),te&&(H+="hover-bg-color "),H});return{x:d,y:c,style:s,customRow:J,pagination:w,formatFn:B,contrastClass:E,tableChange:v,summaryList:re,loading:t,onTouchHrefEvent:Ae,handleHref:ne,handleHrefTarget:xe,useRowIndex:W,tableColumns:h,tableDataSource:l,useFilterOptions:Ie,useSetSelectedKeys:ke,onResetFilter:$e,onSearchFilterOptions:Fe,exportTableData:Te,handleProgressText:Ne,pageSizeVisible:i,pageSize:D,tableRef:r,rowClassName:Ve,tableHeight:et,tableHeaderBgColor:je,tableBodyBgColor:We,getChgStyle:L,chgBoxStyle:M,getChgBoxImgStyle:P,getChgBoxImgSrc:V,seqIcon1:_f,seqIcon2:Of,seqIcon3:Lf,iconSize:ct,containerClass:Ze,getCellStyle:H=>{const{overflow:Z}=H;if(Z==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Z==="wrap")return{}}}}}),Al=()=>{n.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},kl=Oa.setup;Oa.setup=kl?(e,o)=>(Al(),kl(e,o)):Al;const O1="",L1="",Nf=e=>(n.pushScopeId("data-v-f641124f"),e=e(),n.popScopeId(),e),Ff=["id"],Mf={key:0,class:"table-tool"},zf=n.createTextVNode("导出数据"),Pf=n.createTextVNode(" 搜索 "),qf=n.createTextVNode(" 重置 "),Hf=["src","width","height"],Vf=["src","width","height"],jf=["src","width","height"],Wf={key:1},Uf={key:1,class:"action-list"},Gf=["href","target","onClick"],$f={key:2,class:"progress-cell"},Zf=["title"],Yf=["title"],Kf=["src"],Qf=["title"],Jf=["src"],Xf={class:"ant-pagination-options-quick-jumper"},eu=Nf(()=>n.createElementVNode("span",null,"条 / 页",-1));function tu(e,o,t,a,r,i){const s=n.resolveComponent("a-button"),l=n.resolveComponent("a-input"),d=n.resolveComponent("a-checkbox-group"),c=n.resolveComponent("a-table-summary-cell"),u=n.resolveComponent("a-table-summary-row"),g=n.resolveComponent("a-table-summary"),m=n.resolveComponent("a-table"),h=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(h,{loading:e.loading},{default:n.withCtx(()=>{var y;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",Mf,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[zf]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(m,{ref:"tableRef",class:"table",style:n.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:n.withCtx(({column:f,selectedKeys:S,setSelectedKeys:D,confirm:p,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:f.filterOptionsInputValue,"onUpdate:value":x=>f.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:f.filterCheckboxGroupValue,"onUpdate:value":x=>f.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(f),onChange:x=>e.useSetSelectedKeys(D,f)},null,8,["value","onUpdate:value","options","onChange"]),n.createElementVNode("div",null,[n.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:n.withCtx(()=>[Pf]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,f),["stop"])},{default:n.withCtx(()=>[qf]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:f,index:S,text:D,record:p})=>{var b,x,k,T;return[f.dataIndex==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[S===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Hf)):S===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Vf)):S>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,jf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.fontSize})},n.toDisplayString(S+1),5)],64)):(n.openBlock(),n.createElementBlock("span",Wf,n.toDisplayString(S+1),1))],64)):f.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Uf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(R,_)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:_},[n.createElementVNode("a",{href:e.handleHref(R.href,p),target:e.handleHrefTarget(R.target),style:n.normalizeStyle({color:R.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:F=>e.onTouchHrefEvent(R.target,e.handleHref(R.href,p))},n.toDisplayString(R.title),13,Gf)]))),128))])):f.format==="progress"?(n.openBlock(),n.createElementBlock("div",$f,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:f.progressColor||"#1890ff",height:f.progressWidth||"18px",width:`${e.handleProgressText(D,f.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(D)<100?f.progressTextColor||"#333":f.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(D,f.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(f)})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:0,title:((b=f==null?void 0:f.customFormatter)==null?void 0:b.split("{value}")[0])||""},n.toDisplayString(((x=f==null?void 0:f.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,Zf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle(e.getChgStyle({...f,text:D})),title:f.format!=null?e.formatFn(D,f):D},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:D})),src:e.getChgBoxImgSrc(D)},null,12,Kf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(f.format!=null?e.formatFn(D,f):D),1)],14,Yf),f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:1,title:((k=f==null?void 0:f.customFormatter)==null?void 0:k.split("{value}")[1])||""},n.toDisplayString(((T=f==null?void 0:f.customFormatter)==null?void 0:T.split("{value}")[1])||""),9,Qf)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(g,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(f,S)=>(n.openBlock(),n.createBlock(c,{key:S,index:S,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:f.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle({...e.getChgStyle({...f,text:f.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:f.total})),src:e.getChgBoxImgSrc(f.total)},null,12,Jf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((f.format!=null||f.format!=="")&&e.formatFn(f.total,f)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):n.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",Xf,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=f=>e.pageSize=f)},null,512),[[n.vModelText,e.pageSize]]),eu])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Ff)}const Tl=pe(ye(Oa,[["render",tu],["__scopeId","data-v-f641124f"]])),La={...we,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:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Na=ve(La),Bl=["click"];Qe.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,be.VisualMapComponent,be.TooltipComponent,be.GraphicComponent]);const nu=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Na},setup(e){const o=He(e),t=He({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Ce(e,["backgroundImage"]),l=n.ref(),d=n.computed(()=>At(e.geoBackgroundImage)),c=n.computed(()=>At(e.backgroundImage)),u=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),g=n.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+At(C):"circle"}),m=C=>{let B=e.tooltipFormatter;const E=B.match(/\{(.+?)\}/g);if(E==null||E.length===0)return B;for(let L=0;L<E.length;L++){const M=E[L];let P=M.slice(1,-1).trim();const V=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=P.match(V);for(let z=0;z<U.length;z++){const q=U[z],O=C[q];O!=null&&(P=P.replace(q,O))}B=B.replace(M,P)}return B.split(`
|
|
119
|
+
</span>`)}else e.format==="percent"?(O=+O,isNaN(O)||(O=(O*100).toFixed(2),B=B.replace(V,`<span style="color:${h(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${O}%</span>`))):e.format==="money"?(O=+O,isNaN(O)||(O=Eo(O),B=B.replace(V,`<span style="color:${h(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${O}</span>`))):I==="thousands"?(O=+O,isNaN(O)||(O=hc(O),B=B.replace(V,`<span style="color:${h(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${O}</span>`))):B=B.replace(V,`<span style="color:${h(O)||e.variableColor};font-size:${n.unref(i)};${n.unref(u)}">${O}</span>`)}}if(L||(L=`<span style="color: ${h(B)};${n.unref(u)}">${B}</span>`),e.unitShow&&e.unitText){const{unitTop:P,unitLeft:V}=e;let U="position:relative;";P&&(U+=`top:${P};`),V&&(U+=`margin-left:${V};`),L+=`<span style='color:${e.unitColor};font-size:${e.unitFontSize};font-weight:${e.unitFontWeight};${U};${n.unref(u)}'>${e.unitText}</span>`}return L});function h(v){let w="",C=!1;const{targetValue:B,targetShow:E,notExpectColor:L}=e;if(E){switch(e.targetRule){case"equal":v!==B&&(C=!0);break;case"greater":v<=B&&(C=!0);break;case"greater_equal":v<B&&(C=!0);break;case"less":v>=B&&(C=!0);break;case"less_equal":v>B&&(C=!0);break}C&&(w=L)}return w}const{pageMode:y}=n.inject(Me,{pageMode:"normal"}),f=He(e),S=n.ref(!1),D=async()=>{var v;try{S.value=!0;const w=await f();r.value=((v=w==null?void 0:w.data)==null?void 0:v.data)||{}}catch(w){console.error(w)}finally{S.value=!1}},p=(v={})=>{r.value=v},b=v=>{const w=e.id,C=l(w);d(w,{...C,value:v||""})},x=it(e),k=async()=>{var v,w;try{S.value=!0;const C=await x(),{data:B}=(C==null?void 0:C.data)||{};if(B){t.value=!1;const{columns:E=[],rows:L=[]}=((v=C==null?void 0:C.data)==null?void 0:v.data)??{},{graphicConfig:M}=e;let P={};if(E.length>0)if((w=M==null?void 0:M.dimensionList)!=null&&w.length){const V=E[0];V&&(L!=null&&L.length)&&(P={value:L[0][V]})}else{const V=E.find(U=>!!U);V&&(P={value:isNaN(L[V])?0:L[V]||0})}b(P==null?void 0:P.value),p(P)}else t.value=!0,b("NaN"),p({value:"NaN"})}catch(C){console.error(C)}finally{S.value=!1,c(e.id,!0)}},T=()=>{switch(e.dataType){case"indicator":k();break;case"request":D();break}},{setRequest:R}=n.inject(ze,{setRequest:({id:v,sortNum:w,requestFn:C})=>{}});typeof R=="function"&&R({id:e.id,requestFn:T,sortNum:e.requestSort}),Le(e,{refreshData:T}),o({refreshData:T});const _=Ee(e),F=_("click",()=>{if(!e.linkPage&&!e.href)return;const v=e.linkPage||"",w=mi(n.unref(y),v),C=e.href;let B=C||w;B=De(B);const E=e.target;E&&(E!=="event"?window.open(B,"_"+E):window.parent.postMessage({type:"openPage",url:C},"*"))}),A=_("valueChange",()=>{});return n.watch(()=>m.value,(v,w)=>{v!==w&&A()}),{style:a,myText:m,loading:S,click:F,textIndent:s,vFontSize:i,gradientStyle:g}}}),bi=()=>{n.useCssVars(e=>({"76c25fa2":e.vFontSize,"09a99f9d":e.textIndent,d90c2f16:e.percentageSide}))},vi=No.setup;No.setup=vi?(e,o)=>(bi(),vi(e,o)):bi;const Eu="",Sc=["innerHTML"];function Cc(e,o,t,a,r,i){const s=n.resolveComponent("skeleton");return e.loading?(n.openBlock(),n.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:n.normalizeStyle(e.style)},[n.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"ecan-text",style:n.normalizeStyle({...e.style,...e.gradientStyle}),innerHTML:e.myText,onClick:o[0]||(o[0]=(...l)=>e.click&&e.click(...l))},null,12,Sc))}const Si=pe(ye(No,[["render",Cc],["__scopeId","data-v-db08769b"]])),wc=n.defineComponent({name:"EcanScrollText",setup(){return{text:n.ref("基础文本")}}}),Ru="",Ac={class:"red"};function kc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",Ac,n.toDisplayString(e.text),1)}const Ci=pe(ye(wc,[["render",kc],["__scopeId","data-v-4dd9c03e"]])),Fo={...we,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"}},Mo=ve(Fo),wi=["timeChange"],Tc=n.defineComponent({name:"EcanTimeDisplay",props:{...Mo},setup(e){const o=Ce(e),t=()=>{const{format:c,operate:u}=e;let g=Se();if(u){const{type:m,value:h,mode:y}=u;switch(m){case"add":g=g.add(h,y);break;case"minus":g=g.subtract(h,y)}}return g.format(c)},a=n.ref();n.watch(()=>[e.operate,e.format],()=>{a.value=t()},{immediate:!0,deep:!0}),n.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},l=Ee(e)("timeChange",()=>{}),d=()=>{r&&i();let c=1e3;const{value:u,mode:g}=e.updateInterval||{};u&&(c=c*u);const m={second:1,minute:60,hour:60*60,day:24*60*60};g&&(c=c*m[g]),r=setInterval(()=>{a.value=t(),l()},c)};return Le(e,{timeChange:l}),n.onMounted(()=>{d()}),n.onUnmounted(()=>{i()}),{style:o,time:a}}}),_u="";function Bc(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"time-display",style:n.normalizeStyle(e.style)},n.toDisplayString(e.time),5)}const Ai=pe(ye(Tc,[["render",Bc],["__scopeId","data-v-b628fca2"]])),zo={...we,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",itemPadding:"20px",useRanking:!1,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}],seqIcon:!1,isUseSeq:!1,seqWidth:"10%",seqName:"序号",seqFontSize:"14px",isAutoScroll:!1,scrollSpeed:.3,graphicConfig:{}},Po=ve(zo),ki=["refreshData","click","resetRecord"],Ec="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAYCAYAAACfpi8JAAAAAXNSR0IArs4c6QAAAWhJREFUSEvNlz9Lw0AYxp/3iJ2TgqN+ia5ihbb0A/hnEXG3QxHEyUkQVwcHwU3cgoI4hHKXUnQS3Z0VQVBwbTVtXrlciyKmLo2XmxI47v3x3HPvPUdcKk3B85og2gYwjUkOIoD5CcAeSXk0bmniSqWJQuEA/f4kEb7WMjD6f42kPE0rQlyrPYJoZjg5O5g4voDnrZDvf/xWRIMkuJkOo8odXHeefL9rG+QWrlvOA8gNomiBOp2ePUVM5S7iuE5heG0bBNBeieMdKLWvv74D/Y9Zf0rAf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/wzMzoo4VW68YnkvjRGNonEATBPgzTjDP5K3h5Wojwitkj93H9BVpxQAAAABJRU5ErkJggg==";(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();var _c=Object.defineProperty,Ti=Object.getOwnPropertySymbols,Oc=Object.prototype.hasOwnProperty,Lc=Object.prototype.propertyIsEnumerable,Bi=(e,o,t)=>o in e?_c(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,Ei=(e,o)=>{for(var t in o||(o={}))Oc.call(o,t)&&Bi(e,t,o[t]);if(Ti)for(var t of Ti(o))Lc.call(o,t)&&Bi(e,t,o[t]);return e},Nc=(e,o)=>{const t=e.__vccOpts||e;for(const[a,r]of o)t[a]=r;return t};const Fc=n.defineComponent({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(e,{emit:o}){const t=n.ref(0),a=n.ref("100%"),r=n.ref("100%"),i=n.ref(0),s=n.ref(!1),l=n.ref(!1),d=n.ref(0),c=n.ref(0),u=n.ref(0),g=n.ref(0),m=n.ref(!1),h=n.ref(!1),y=n.ref(0),f=n.ref(null),S=n.ref("200px"),D=n.ref(!1),p=n.ref(null),b=n.ref(null),x=async()=>{await k(),i.value++},k=async()=>{e.vertical&&(s.value=!0),setInterval(()=>{if(a.value="0%",r.value="0%",p.value!==null&&b.value!==null&&p.value&&b.value)if(e.vertical&&"clientHeight"in p.value&&"clientHeight"in b.value){g.value=p.value.clientHeight,u.value=b.value.clientHeight;const L=Math.ceil(u.value/g.value);return t.value=isFinite(L)?L:0,s.value=!1,t.value}else if(!e.vertical&&"clientWidth"in p.value&&"clientWidth"in b.value){if(c.value=p.value.clientWidth,d.value=b.value.clientWidth,e.animateOnOverflowOnly)return c.value<d.value?(l.value=!0,o("onOverflowDetected")):(l.value=!1,o("onOverflowCleared")),0;const L=Math.ceil(d.value/c.value);return t.value=isFinite(L)?L:0,t.value}else return a.value="100%",r.value="100%",0;else return a.value="100%",r.value="100%",0},100)};n.watch(c,async()=>{e.clone&&x()}),n.watch(d,async()=>{(e.clone||e.animateOnOverflowOnly)&&x()}),n.watch(()=>e.pause,(L,M)=>{L!==M&&o(L?"onResume":"onPause")});const T=()=>{e.pauseOnHover&&(o("onPause"),m.value=!0)},R=()=>{e.pauseOnHover&&(o("onResume"),m.value=!1)},_=()=>{e.pauseOnClick&&(o("onPause"),h.value=!0)},F=()=>{e.pauseOnClick&&(o("onResume"),h.value=!1)},A=n.computed(()=>e.pause||e.vertical&&s.value||e.animateOnOverflowOnly&&l.value?"paused":"running"),v=n.computed(()=>e.pauseOnHover&&(m.value||h.value)||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),w=n.computed(()=>e.pauseOnHover&&m.value||e.pauseOnClick&&h.value||!e.pauseOnHover&&A.value==="paused"?"paused":"running"),C=n.computed(()=>{const L={"--duration":`${e.duration}s`,"--delay":`${e.delay}s`,"--direction":`${e.direction}`,"--pauseOnHover":`${v.value}`,"--pauseOnClick":`${w.value}`,"--pauseAnimation":`${A.value}`,"--loops":`${e.loop===0?"infinite":e.loop}`,"--gradient-color":`rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 1), rgba(${e.gradientColor[0]}, ${e.gradientColor[1]}, ${e.gradientColor[2]}, 0)`,"--gradient-length":`${S.value}`,"--min-width":`${a.value}`,"--min-height":`${r.value}`},M={"--orientation":"scrollX",orientation:"horizontal"};return e.vertical&&(M["--orientation"]="scrollY"),Ei(Ei({},L),M)}),B=n.computed(()=>!!e.gradient),E=async()=>{e.vertical?(r.value="100%",a.value="auto",e.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",e.animateOnOverflowOnly?a.value="auto":a.value="100%"),e.gradient&&(e.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),S.value=e.gradientWidth):e.gradientLength&&(S.value=e.gradientLength)),(e.clone||e.animateOnOverflowOnly)&&(await k(),x()),D.value=!0};return n.onMounted(async()=>{E(),f.value=setInterval(()=>{y.value++,e.loop!==0&&y.value===e.loop&&(o("onComplete"),clearInterval(f.value)),o("onLoopComplete")},e.duration*1e3)}),n.onBeforeUnmount(()=>{clearInterval(f.value)}),{ready:D,contentWidth:c,containerWidth:d,contentHeight:g,containerHeight:u,loopCounter:y,loopInterval:f,mouseOverMarquee:m,mouseDownMarquee:h,minWidth:a,minHeight:r,animateOnOverflowPause:l,marqueeContent:p,marqueeOverlayContainer:b,componentKey:i,showGradient:B,cloneAmount:t,ForcesUpdate:x,checkForClone:k,setupMarquee:E,getCurrentStyle:C,hoverStarted:T,hoverEnded:R,mouseDown:_,mouseUp:F}}}),Mc={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},zc={class:"marquee",ref:"marqueeContent"},Pc={key:1,"aria-hidden":!0,class:"marquee"};function qc(e,o,t,a,r,i){return e.ready?(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["vue3-marquee",{vertical:e.vertical,horizontal:!e.vertical}]),style:n.normalizeStyle(e.getCurrentStyle),key:e.componentKey,onMouseenter:o[0]||(o[0]=(...s)=>e.hoverStarted&&e.hoverStarted(...s)),onMouseleave:o[1]||(o[1]=(...s)=>e.hoverEnded&&e.hoverEnded(...s)),onMousedown:o[2]||(o[2]=(...s)=>e.mouseDown&&e.mouseDown(...s)),onMouseup:o[3]||(o[3]=(...s)=>e.mouseUp&&e.mouseUp(...s))},[n.createElementVNode("div",Mc,null,512),e.showGradient?(n.openBlock(),n.createElementBlock("div",{key:0,"aria-hidden":!0,class:n.normalizeClass(["overlay",{vertical:e.vertical,horizontal:!e.vertical}])},null,2)):n.createCommentVNode("",!0),n.createElementVNode("div",zc,[n.renderSlot(e.$slots,"default")],512),!e.animateOnOverflowOnly||e.animateOnOverflowOnly&&!e.animateOnOverflowPause?(n.openBlock(),n.createElementBlock("div",Pc,[n.renderSlot(e.$slots,"default")])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.cloneAmount,s=>(n.openBlock(),n.createElementBlock("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[n.renderSlot(e.$slots,"default")]))),128))],38)):n.createCommentVNode("",!0)}var Hc=Nc(Fc,[["render",qc]]);const Vc=n.defineComponent({name:"SeamScroll",components:{Vue3Marquee:Hc},props:{dataSource:{type:Object,default:()=>{}},visible:{type:Boolean,default:!1},step:{type:Number,default:1}},setup(e){return{isAutoScroll:n.ref(e.visible)}}}),jc={key:1,class:"list-wrap"};function Wc(e,o,t,a,r,i){const s=n.resolveComponent("Vue3Marquee");return e.isAutoScroll?(n.openBlock(),n.createBlock(s,{key:0,class:"vue-marquee",style:{width:"100%"},duration:e.step,vertical:!0,pauseOnHover:!0},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default")]),_:3},8,["duration"])):(n.openBlock(),n.createElementBlock("div",jc,[n.renderSlot(e.$slots,"default")]))}const Uc=ye(Vc,[["render",Wc]]),Gc=n.defineComponent({name:"EcanList",components:{Skeleton:ln,ATooltip:ce.Tooltip,MarqueeScroll:Uc},props:{...Po},setup(e,{expose:o}){const t=n.ref(),a=Ce(e,["backgroundColor"]),r=(A,v)=>{const{format:w,customFormatter:C}=v;if(w==null||w==="")return A;const B={money:Eo,percentage:pn,contrast:pn,custom:gi};return B[w]?w==="custom"?B[w](A,C)||"":B[w](A)||"":""},i=(A,v)=>{const w=parseFloat(A+"");if(v!=="contrast")return"";switch(!0){case w>=0:return"goUp";case w<0:return"goDown"}},s=He(e),l=n.ref(!1),d=async()=>{var A;if(e.dataType==="request")try{l.value=!0;const v=await s();t.value=((A=v==null?void 0:v.data)==null?void 0:A.data.rows)||[]}catch(v){console.error(v)}finally{l.value=!1}};n.watch(()=>e.data,()=>{t.value=e.data},{immediate:!0,deep:!0});const c=n.computed(()=>({key:"SEQ",width:e.seqWidth,title:e.seqName,align:"center",fontSize:e.seqFontSize})),u=n.computed(()=>{const{columns:A,isUseSeq:v}=e;return v?[n.unref(c),...A]:A}),g=it(e),m=async()=>{var A;try{l.value=!0;const v=await g(),{columns:w=[],rows:C=[]}=((A=v==null?void 0:v.data)==null?void 0:A.data)??{};e.isUseSeq&&w.unshift(e.seqName),u.value.forEach((B,E)=>{(!e.isUseSeq||E!==0)&&(B.title=w[E],B.key=w[E])}),t.value=C}catch(v){console.error(v)}finally{l.value=!1}},h=()=>{switch(e.dataType){case"indicator":m();break;case"request":d();break}},y=Ee(e),{getGlobalModel:f,setGlobalModel:S}=n.inject(Be,{getGlobalModel:A=>{},setGlobalModel:(A,v)=>{}}),D=A=>{y("click",()=>{const v=f(e.id);S(e.id,{...v,type:e.type,RECORD:A})})()};Le(e,{refreshData:h,resetRecord:()=>{const A=e.id,v=f(A);S(A,{...v,type:e.type,RECORD:""})}});const{setRequest:b}=n.inject(ze,{setRequest:({id:A,sortNum:v,requestFn:w})=>{}});typeof b=="function"&&b({id:e.id,requestFn:h,sortNum:e.requestSort}),o({refreshData:h});const x=A=>({flex:A.width?"none":"1",width:A.width,height:e.itemHeight,lineHeight:e.itemHeight,textAlign:A.align||"left",backgroundColor:A.cellColor}),k=(A,v)=>{let w=0;const C=n.unref(t).map(E=>E[v]),B=Math.max(...C);return B&&(w=A[v]/B*100),w},T=A=>{const{progressColor:v="#1890ff",progressGradientColor:w=""}=A;return w?{background:`linear-gradient(to right, ${v} 0%, ${w} 100%)`}:{backgroundColor:v||"#1890ff"}},R=n.computed(()=>{const A=parseFloat(e.seqFontSize)+5;return{width:A+10,height:A}}),{pageMode:_}=n.inject(Me,{pageMode:"normal"}),F=n.computed(()=>n.unref(_)==="preview"&&e.isAutoScroll);return{style:a,formatFn:r,contrastClass:i,dataSource:t,loading:l,myColumns:u,click:D,getColumnStyle:x,getPercentage:k,getBackgroundColor:T,seqIcon4:Ec,seqIcon5:Dc,seqIcon6:Rc,seqIcon7:Ic,iconSize:R,isScroll:F}}}),Lu="",Nu="",$c=e=>(n.pushScopeId("data-v-83e1ef11"),e=e(),n.popScopeId(),e),Zc={key:0,class:"title"},Yc={key:0,class:"ranking"},Kc={key:1,class:"ecan-list-content"},Qc=["onClick"],Jc={key:0,class:"ranking"},Xc=$c(()=>n.createElementVNode("div",{class:"icon"},null,-1)),ed={class:"sort"},td=["src","width","height"],nd=["src","width","height"],od=["src","width","height"],ad=["src","width","height"],rd={key:1},id={key:2,class:"empty"};function ld(e,o,t,a,r,i){const s=n.resolveComponent("a-tooltip"),l=n.resolveComponent("marquee-scroll"),d=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:"ecan-list",style:n.normalizeStyle(e.style)},[n.createVNode(d,{loading:e.loading},{default:n.withCtx(()=>[e.useTitle?(n.openBlock(),n.createElementBlock("div",Zc,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.columnCount,c=>(n.openBlock(),n.createElementBlock("div",{class:"title-inner",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:"",padding:`0 ${e.itemPadding}`}),key:c},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Yc)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,(u,g)=>(n.openBlock(),n.createElementBlock("div",{class:"column",key:u.key||g,style:n.normalizeStyle({color:u.titleColor,...e.getColumnStyle(u)})},n.toDisplayString(u.title),5))),128))],4))),128))])):n.createCommentVNode("",!0),e.dataSource.length>0?(n.openBlock(),n.createElementBlock("div",Kc,[e.useTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"title-placeholder",style:n.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):n.createCommentVNode("",!0),n.createVNode(l,{visible:e.isScroll,step:e.scrollSpeed},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.dataSource.slice(0,e.sliceCount),(c,u)=>(n.openBlock(),n.createElementBlock("div",{class:"item",style:n.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(u+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan,padding:`0 ${e.itemPadding}`}),key:c.id||u,onClick:g=>e.click(c)},[e.useRanking?(n.openBlock(),n.createElementBlock("div",Jc,[Xc,n.createElementVNode("div",ed," Top "+n.toDisplayString(u+1),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myColumns,g=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["column",e.contrastClass(c[g.key],g.format)]),key:g.key,style:n.normalizeStyle({fontSize:g.fontSize,color:e.contrastClass(c[g.key],g.format)===""?g.color:"",fontWeight:g.fontWeight,...e.getColumnStyle(g)})},[g.key==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[u===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon4,width:e.iconSize.width,height:e.iconSize.height},null,8,td)):u===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon5,width:e.iconSize.width,height:e.iconSize.height},null,8,nd)):u===2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon6,width:e.iconSize.width,height:e.iconSize.height},null,8,od)):u>=3?(n.openBlock(),n.createElementBlock("img",{key:3,class:"seq-icon",src:e.seqIcon7,width:e.iconSize.width,height:e.iconSize.height},null,8,ad)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.seqFontSize})},n.toDisplayString(u+1),5)],64)):(n.openBlock(),n.createElementBlock("span",rd,n.toDisplayString(u+1),1))],64)):g.format==="progress"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"progress-cell",style:n.normalizeStyle({height:e.itemHeight})},[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({height:g.progressWidth||"14px",backgroundColor:g.progressBaseColor})},[n.createVNode(s,{title:c[g.key],overlayClassName:"ecan-list-tooltip",color:"#fff"},{default:n.withCtx(()=>[n.createElementVNode("div",{style:n.normalizeStyle({borderRadius:"10px",height:g.progressWidth||"14px",width:`${e.getPercentage(c,g.key)}%`,...e.getBackgroundColor(g)})},null,4)]),_:2},1032,["title"])],4)],4)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createTextVNode(n.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(c[g.key],g)),1)],64))],6))),128))],12,Qc))),128))]),_:1},8,["visible","step"])])):(n.openBlock(),n.createElementBlock("div",id," 暂无数据 "))]),_:1},8,["loading"])],4)}const Di=pe(ye(Gc,[["render",ld],["__scopeId","data-v-83e1ef11"]])),qo={...we,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",strokeTextShow:!0,gradientShow:!0,gradientColor:"",gradientOffset:1,graphicConfig:{}},Ho=ve(qo),Ri=["refreshData","click"],sd=n.defineComponent({name:"EcanProportion",components:{AProgress:ce.Progress,Skeleton:ln},props:{...Ho},setup(e,{expose:o}){const t=n.ref(!1),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),r=Ce(e),i=n.computed(()=>{const x=e.width;return parseFloat(x)}),s=n.ref({});n.watch(()=>e.data,()=>{(e.dataType==="static"||n.unref(a)==="design")&&(s.value=e.data)},{immediate:!0,deep:!0});const l=n.computed(()=>{const x=n.unref(s),k=+e.variableDefaultValue;if(x==null)return isNaN(k)?0:k;const T=e.text.match(/\{.+\}/g)||[];let R;const _=new Set(Object.keys(x));for(let F=0;F<T.length;F++){const A=T[F],v=A.slice(1,A.length-1);if(_.has(v)){R=x[v];break}}return typeof R=="number"?R=R*100:typeof R=="string"&&!isNaN(+R)?R=+R*100:isNaN(k)?R=0:R=k*100,e.decimalFormat&&(R=+R.toFixed(2)),R}),d=n.computed(()=>{var _;let x=e.text;if(x==="")return n.unref(l);const k=e.variableDefaultValue,T=n.unref(s),R=x.match(/\{.+\}/g)||[];for(let F=0;F<R.length;F++){const A=R[F];let v=A.slice(1,A.length-1);const w=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,C=A.match(w);for(let E=0;E<(C==null?void 0:C.length);E++){const L=(_=C[E])==null?void 0:_.trim();T[L]!=null&&(v=v.replace(L,T[L]))}let B=v;try{/\(.*\)/g.test(v)&&(B=vn(v))}catch(E){console.error(E)}typeof+B=="number"&&!isNaN(+B)?(B=+B*100,e.decimalFormat&&(B=B.toFixed(2))):B=k,x=x.replace(A,B+"")}return n.unref(t)?"NaN":x}),c=He(e),u=n.ref(!1),g=async()=>{var x;if(e.dataType==="request")try{u.value=!0;const k=await c();s.value=((x=k==null?void 0:k.data)==null?void 0:x.data)||{}}catch(k){console.error(k)}finally{u.value=!1}},m=(x={})=>{s.value=x},h=it(e),y=async()=>{var x;try{u.value=!0;const k=await h(),{data:T}=(k==null?void 0:k.data)||{};if(T){t.value=!1;const{columns:R=[],rows:_=[]}=((x=k==null?void 0:k.data)==null?void 0:x.data)??{};let F={};if(R.length>0){const A=R.find(v=>!!v);A&&(F={percent:_[A]})}m(F)}else t.value=!0,m({percent:"NaN"})}catch(k){console.error(k)}finally{u.value=!1}},f=()=>{switch(e.dataType){case"indicator":y();break;case"request":g();break}};Le(e,{refreshData:f}),o({refreshData:f});const D=Ee(e)("click",()=>{}),{setRequest:p}=n.inject(ze,{setRequest:({id:x,sortNum:k,requestFn:T})=>{}});typeof p=="function"&&p({id:e.id,requestFn:f,sortNum:e.requestSort});const b=n.computed(()=>{const{gradientShow:x,gradientColor:k,gradientOffset:T,strokeColor:R}=e;let _=R;return x&&k&&(_={"0%":R,[`${T*100}%`]:k}),_});return{style:r,myWidth:i,text:d,myValue:l,loading:u,click:D,customStrokeColor:b}}}),Mu="";function cd(e,o,t,a,r,i){const s=n.resolveComponent("skeleton"),l=n.resolveComponent("a-progress");return n.openBlock(),n.createElementBlock("div",{class:"ecan-proportion",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.customStrokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,showInfo:e.strokeTextShow,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:n.withCtx(()=>[e.loading?(n.openBlock(),n.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):e.strokeTextShow?(n.openBlock(),n.createElementBlock("div",{key:1,class:"format",style:n.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},n.toDisplayString(e.text),5)):n.createCommentVNode("",!0)]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","showInfo","gapDegree","onClick"])],4)}const Ii=pe(ye(sd,[["render",cd],["__scopeId","data-v-cf942b5f"]])),Vo={...we,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字",optionFontSize:"14px"},jo=ve(Vo),_i=["inputChange","inputBlur"],dd=n.defineComponent({name:"EcanInput",components:{AInput:ce.Input},props:{...jo},setup(e){const o=Ce(e),t=n.ref(""),{getGlobalModel:a,setGlobalModel:r,getRecordValueByKeyName:i}=n.inject(Be,{getGlobalModel:u=>{},setGlobalModel:(u,g)=>{},getRecordValueByKeyName:u=>{}});n.watch(()=>e.value,u=>{t.value=i(u)},{immediate:!0}),r(e.id,{type:e.type,value:t});const s=()=>{const u=a(e.id);r(e.id,{...u,RECORD:t})},l=Ee(e),d=qe.debounce(l("inputChange",()=>{s()}),300),c=l("inputBlur",()=>{});return{style:o,myValue:t,inputBlur:c,inputChange:d}}}),Pu="";function fd(e,o,t,a,r,i){const s=n.resolveComponent("a-input");return n.openBlock(),n.createElementBlock("div",{class:"ecan-input",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","placeholder","onChange","onBlur","style"])],4)}const Oi=pe(ye(dd,[["render",fd]])),Wo={...we,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,optionFontSize:"14px"},Uo=ve(Wo),Li=["dateChange"],Go=n.defineComponent({name:"EcanDatePicker",props:{...Uo},components:{ADatePicker:ce.DatePicker},setup(e){const o=n.inject("scaleValue",{widthScale:"1",heightScale:"1"}),t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=n.ref(null);n.watch(()=>[e.value,e.useCurrentTime,e.operate],([m,h,y])=>{let f=null;if(m?f=Se(De(m)):h&&(f=Se()),y&&f){const{type:S,value:D,mode:p}=y;switch(S){case"add":f=f.add(D,p);break;case"minus":f=f.subtract(D,p)}}r.value=f},{deep:!0,immediate:!0});const{setGlobalModel:i}=n.inject(Be,{setGlobalModel:(m,h)=>{}});i(e.id,{type:e.type,format:e.format,useCurrentTime:e.useCurrentTime,value:r});const l=Ee(e)("dateChange",()=>{}),d=()=>{n.unref(r)&&l()};Le(e,{dateChange:l});const c=n.ref({}),u=n.ref({}),g=m=>{m?setTimeout(()=>{u.value=n.unref(c)},300):u.value={}};return n.onMounted(()=>{setTimeout(()=>{const m=document.querySelector(`#ecan-date-picker-${e.id}`);if(m){const h=m.getBoundingClientRect(),y=parseFloat(n.unref(o).widthScale)*280;document.body.clientWidth-h.left<y&&(c.value.marginLeft=-1*(y-h.width)+"px")}},0)}),{style:t,getPopupContainer:a,myValue:r,locale:Ma,change:d,scaleValue:o,popupStyle:c,customStyle:u,openChange:g}}}),Ni=()=>{n.useCssVars(e=>({d6fb5b46:e.optionFontSize}))},Fi=Go.setup;Go.setup=Fi?(e,o)=>(Ni(),Fi(e,o)):Ni;const Hu="",Vu="",ud=["id"];function hd(e,o,t,a,r,i){const s=n.resolveComponent("a-date-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-date-picker",style:n.normalizeStyle(e.style),id:"ecan-date-picker-"+e.id},[n.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,onOpenChange:e.openChange,getPopupContainer:e.getPopupContainer,popupStyle:{fontSize:e.optionFontSize,transform:`scale(${e.scaleValue.widthScale}, ${e.scaleValue.heightScale})`}},null,8,["value","format","picker","showTime","locale","onChange","onOpenChange","getPopupContainer","popupStyle"])],12,ud)}const Mi=pe(ye(Go,[["render",hd],["__scopeId","data-v-d4ec0d66"]])),$o={...we,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:"",associated:"",optionFontSize:"14px",isAllowSpanYear:!0},Zo=ve($o),zi=["dateChange"];var Pi={exports:{}};(function(e,o){(function(t,a){e.exports=a()})(de,function(){var t="month",a="quarter";return function(r,i){var s=i.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var l=s.add;s.add=function(c,u){return c=Number(c),this.$utils().p(u)===a?this.add(3*c,t):l.bind(this)(c,u)};var d=s.startOf;s.startOf=function(c,u){var g=this.$utils(),m=!!g.u(u)||u;if(g.p(c)===a){var h=this.quarter()-1;return m?this.month(3*h).startOf(t).startOf("day"):this.month(3*h+2).endOf(t).endOf("day")}return d.bind(this)(c,u)}}})})(Pi);var gd=Pi.exports;const md=fr(gd);Se.extend(md);const Yo=n.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ce.RangePicker},props:{...Zo},setup(e){const o=Ce(e),t=()=>document.getElementById("ProviderConfig")||document.body,a=n.ref([null,null]);n.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([b,x,k,T,R,_])=>{let F=null,A=null;if(k&&(F=Se().subtract(T,R),A=Se()),b&&(F=Se(De(b))),x&&(A=Se(De(x))),_){const{type:v,value:w,mode:C}=_;switch(v){case"add":F=F&&F.add(w,C),A=A&&A.add(w,C);break;case"minus":F=F&&F.subtract(w,C),A=A&&A.subtract(w,C)}}a.value=[F,A]},{immediate:!0});let r=n.unref(a)[0],i=n.unref(a)[1],s="";const l=(b,x,k)=>{Array.isArray(b)?(r=b[0],i=b[1],s=k.range):(r=null,i=null)},d=b=>{let x=!1,{limitStartTime:k,limitEndTime:T}=e;const R={startTime:`${r||""}`,endTime:`${i||""}`};if(k=De(k,{codeData:R}),T=De(T,{codeData:R}),k&&T?x=!(Se(k)<b&&b<Se(T)):k?x=Se(k)>b:T&&(x=Se(T)<b),!e.isAllowSpanYear&&s){let _=null;if(s==="start"?_=r:s==="end"&&(_=i),_){const F=_.startOf("year"),A=_.endOf("year");x=!(F<=b&&b<A)}}return x},{getGlobalModel:c,setGlobalModel:u}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}}),g=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[0]:null),m=n.computed(()=>Array.isArray(n.unref(a))?n.unref(a)[1]:null);u(e.id,{type:e.type,format:e.format,startTime:g,endTime:m,interval:e.interval,intervalUnit:e.intervalUnit,useCurrentTime:e.useCurrentTime,operate:e.operate});const h=Ee(e);let y=!1;const f=h("dateChange",()=>{}),S=b=>{const x=n.unref(a),k=x&&x[0]&&x[1];b===!1&&y===!0&&k&&(f(),y=!1),b||(s="")},D=()=>{y=!0};return Le(e,{dateChange:()=>{const{associated:b}=e;if(b){const x=c(b)||{};if(x){const{value:k}=x;if(k)switch(n.unref(k)){case"month":a.value=[Se().startOf("month"),Se().endOf("month")];break;case"quarter":a.value=[Se().startOf("quarter"),Se().endOf("quarter")];break;case"year":a.value=[Se().startOf("year"),Se().endOf("year")];break}}}f()}}),{style:o,getPopupContainer:t,locale:Ma,dateChange:f,myValue:a,disabledDate:d,calendarChange:l,openChange:S,change:D}}}),qi=()=>{n.useCssVars(e=>({"3c9c0a71":e.optionFontSize}))},Hi=Yo.setup;Yo.setup=Hi?(e,o)=>(qi(),Hi(e,o)):qi;const Wu="",Uu="";function yd(e,o,t,a,r,i){const s=n.resolveComponent("a-range-picker");return n.openBlock(),n.createElementBlock("div",{class:"ecan-range-picker",style:n.normalizeStyle(e.style)},[n.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),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,popupStyle:{fontSize:e.optionFontSize}},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange","popupStyle"])],4)}const Vi=pe(ye(Yo,[["render",yd],["__scopeId","data-v-66cd4fad"]])),Ko={...we,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400,tooltipTextStyleColor:"",buttonBackgroundColor:"#FFFFFF",borderColor:"#d9d9d9"},Qo=ve(Ko),ji=["click"],xd=n.defineComponent({name:"EcanButton",components:{AButton:ce.Button},props:{...Qo},setup(e){const o=Ce(e),a=Ee(e)("click",()=>{const d=n.unref(s);d&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:d},"*")}),r=n.computed(()=>{const d={};return e.mode!=="primary"&&(d.backgroundColor=e.buttonBackgroundColor||"transparent",d.color=e.tooltipTextStyleColor,d.borderColor=e.borderColor||"transparent"),{height:e.height,...d}}),i=n.computed(()=>De(e.text)),s=n.computed(()=>De(e.href)||null),l=n.computed(()=>{const d=e.target;if(!(d==="event"||n.unref(s)==null))return{self:"_self",blank:"_blank"}[d]});return{style:o,click:a,myText:i,myHref:s,myTarget:l,buttonStyle:r}}}),$u="";function pd(e,o,t,a,r,i){const s=n.resolveComponent("a-button");return n.openBlock(),n.createElementBlock("div",{class:"ecan-button",style:n.normalizeStyle(e.style)},[n.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget,style:n.normalizeStyle(e.buttonStyle),class:n.normalizeClass(e.tooltipTextStyleColor?"custom-color":"")},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},n.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target","style","class"])],4)}const Wi=pe(ye(xd,[["render",pd]])),Jo={...we,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"}],graphicConfig:{}},Xo=ve(Jo),Ui=["checkboxChange"],bd=n.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ce.CheckboxGroup},props:{...Xo},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref([]),i=S=>{const D=e.value;let p=[];S.forEach(b=>{b.checked&&p.push(b.value)}),typeof D=="string"&&D!==""?p=p.concat(D.split(",")):Array.isArray(D)&&(p=p.concat(D)),a.value=S,r.value=p};n.watch(()=>[e.data,e.value],([S])=>{i(S)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var p,b;if(e.dataType!=="request")return;const S=await s(),D=((b=(p=S==null?void 0:S.data)==null?void 0:p.data)==null?void 0:b.rows)||[];i(D)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:S=>{},setGlobalModel:(S,D)=>{}});c(e.id,{type:e.type,value:r});const g=Ee(e)("checkboxChange",()=>{const S=d(e.id);c(e.id,{...S,RECORD:r})}),m=it(e),h=async()=>{var S;try{const D=await m(),{data:p}=(D==null?void 0:D.data)||{};if(p){const x=(((S=D==null?void 0:D.data)==null?void 0:S.data)??[]).map(k=>({label:k.label,value:k.value}));i(x)}else i([])}catch(D){console.error(D)}},y=()=>{switch(e.dataType){case"indicator":h();break;case"request":l();break}},{setRequest:f}=n.inject(ze,{setRequest:({id:S,sortNum:D,requestFn:p})=>{}});return typeof f=="function"&&f({id:e.id,requestFn:y,sortNum:e.requestSort}),o({refreshData:y}),{myOption:a,style:t,myValue:r,checkboxChange:g}}}),Yu="";function vd(e,o,t,a,r,i){const s=n.resolveComponent("a-checkbox-group");return n.openBlock(),n.createElementBlock("div",{class:"ecan-checkbox",style:n.normalizeStyle(e.style)},[n.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=l=>e.myValue=l),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Gi=pe(ye(bd,[["render",vd]])),ea={...we,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",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1,graphicConfig:{},valueType:"value",isAllowClear:!0,optionFontSize:"14px"},ta=ve(ea),$i=["selectChange","refreshData"],Sd=n.defineComponent({name:"EcanSelect",components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},props:{...ta},setup(e,{expose:o}){const t=Ce(e),a=()=>document.getElementById("ProviderConfig")||document.body,r=He(e),i=n.ref(e.data||[]),s=n.ref(),l=n.computed({get:()=>{var E;const{mode:B}=e;return(E=n.unref(i))!=null&&E.length?s.value:B==="multiple"||B==="tags"||B==="combobox"?[]:""},set:B=>{s.value=B}}),{getGlobalModel:d,setGlobalModel:c,getRecordValueByKeyName:u}=n.inject(Be,{getGlobalModel:B=>{},setGlobalModel:(B,E)=>{},getRecordValueByKeyName:B=>{}});n.watch(()=>[e.value,e.mode,e.selectFirstOption,e.valueType,i.value],()=>{const{mode:B,selectFirstOption:E,value:L}=e,M=u(L);B==="multiple"||B==="tags"||B==="combobox"?M?s.value=M.split(","):E&&(s.value=[n.unref(i)[0]]):M?s.value=M:E&&(s.value=n.unref(i)[0])},{immediate:!0});const g=e.dataFieldNames,m=(B,E)=>{const L=g.label,M=g.value;let P;const V=E[L],U=E[M];return V!=null?P=V:U!=null&&(P=U),(P==null?void 0:P.toLowerCase().indexOf(B==null?void 0:B.toLowerCase()))>=0},h=B=>{const{label:E,value:L,options:M}=e.dataFieldNames;if(M&&Array.isArray(B))if(B.some(P=>M in P)){const P={},V=[];B.forEach(U=>{P[U[M]]||(P[U[M]]=[]),P[U[M]].push({[E]:U[E],[L]:U[L]})});for(const U in P)V.push({[E]:U,[M]:P[U]});return V}else return B;else if(!M)return B},y=n.ref(!1),f=async()=>{var B,E;if(e.dataType==="request"){y.value=!0;try{const L=await r();if(i.value=h(((E=(B=L==null?void 0:L.data)==null?void 0:B.data)==null?void 0:E.rows)||[]),e.selectFirstOption){let M=n.unref(i)[0];if(g.options){const P=M[g.options];P&&P.length&&(M=P[0])}s.value=M[g.value]}}catch(L){console.error(L)}finally{y.value=!1}}},{setLoadedData:S,loadedData:D}=n.inject(bt,{setLoadedData:(B,E)=>{},loadedData:{}}),p=n.computed(()=>{let B=s.value;if(e.valueType==="label"&&n.unref(s)&&n.unref(i)){const E=g.label,L=g.value;if(e.mode==="multiple")B=n.unref(i).filter(M=>n.unref(s).includes(M[L])).map(M=>M[E]);else{const M=n.unref(i).find(P=>n.unref(s)===P[L]);M&&(B=M[E])}}return B}),b=n.ref([]),x=n.computed(()=>{const B={};if(e.mode!=="multiple"){const E=n.unref(b).find(L=>L.value===n.unref(s));E&&(B.itemCodes=E.item_codes)}return B});c(e.id,{type:e.type,value:p,...n.unref(x)});const T=Ee(e)("selectChange",()=>{const B=e.id,E=d(B);c(B,{...E,...n.unref(x),RECORD:p})}),R=(B=[])=>{if(i.value=h(B),e.selectFirstOption){let E=n.unref(i)[0];if(g.options){const L=E[g.options];L&&L.length&&(E=L[0])}s.value=E[g.value]}},_=it(e),F=async()=>{var B;try{y.value=!0;const E=await _(),{data:L}=(E==null?void 0:E.data)||{},M=g.label,P=g.value;if(L){const V=((B=E==null?void 0:E.data)==null?void 0:B.data)??[];b.value=V;const U=V.map(O=>({[M]:O.label,[P]:O.value})),{id:z}=e,q=d(z);c(z,{...q,...n.unref(x)}),S(z,!0),R(U)}else R([])}catch(E){console.error(E)}finally{y.value=!1}},A=n.computed(()=>{var B,E;return(E=(B=e==null?void 0:e.graphicConfig)==null?void 0:B.controlList)==null?void 0:E.find(L=>L.conditionKey==="parentCode")}),v=n.ref(!1);n.watch(D,B=>{!n.unref(v)&&n.unref(A)&&B[n.unref(A).id]&&(v.value=!0,w())},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":{if(n.unref(A)){if(n.unref(D)[n.unref(A).id]){const{mode:B}=e;B==="multiple"||B==="tags"||B==="combobox"?l.value=[]:l.value="",F()}}else F();break}case"request":f();break}};Le(e,{selectChange:T,refreshData:w});const{setRequest:C}=n.inject(ze,{setRequest:({id:B,sortNum:E,requestFn:L})=>{}});return typeof C=="function"&&C({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{style:t,getPopupContainer:a,myValue:s,selectChange:T,options:i,filterOption:m,loading:y,resultValue:l}}}),Qu="",Ju="";function Cd(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-select",style:n.normalizeStyle(e.style)},[n.createVNode(l,{class:"select",value:e.resultValue,"onUpdate:value":o[0]||(o[0]=d=>e.resultValue=d),placeholder:e.placeholder,showSearch:"",allowClear:e.isAllowClear,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange,style:n.normalizeStyle({fontSize:e.optionFontSize})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:d.value,label:d.label,style:n.normalizeStyle({fontSize:e.optionFontSize})},null,8,["value","label","style"]))),128))]),_:1},8,["value","placeholder","allowClear","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange","style"])],4)}const Zi=pe(ye(Sd,[["render",Cd],["__scopeId","data-v-e5517626"]])),na={...we,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},oa=ve(na),Yi=["selectChange","refreshData"],wd={name:"EcanTreeSelect",components:{ATreeSelect:ce.TreeSelect},props:{...oa},setup(e){const o=Ce(e),t=n.ref(e.data),a=(h,y)=>{const f=e.dataFieldNames,S=f.label,D=f.value;let p;const b=y[S],x=y[D];return b!=null?p=b:x!=null&&(p=x),(p==null?void 0:p.toLowerCase().indexOf(h==null?void 0:h.toLowerCase()))>=0},r=n.ref();n.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:h,value:y,selectFirstOption:f}=e;h?y?r.value=y.split(","):f&&(r.value=[n.unref(t)[0]]):y?r.value=y:f&&(r.value=n.unref(t)[0])},{immediate:!0});const i=n.ref(!1),s=He(e),l=async()=>{var h,y;if(e.dataType==="request"){i.value=!0;try{const f=await s();t.value=((y=(h=f==null?void 0:f.data)==null?void 0:h.data)==null?void 0:y.rows)||[];const S=n.unref(t)[0];e.value===""&&S!=null&&(r.value=S[e.dataFieldNames.value])}catch(f){console.error(f)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:h=>{},setGlobalModel:(h,y)=>{}});c(e.id,{type:e.type,value:r});const g=Ee(e)("selectChange",()=>{const h=e.id,y=d(h);c(h,{...y,RECORD:r})});Le(e,{selectChange:g,refreshData:l});const{setRequest:m}=n.inject(ze,{setRequest:({id:h,sortNum:y,requestFn:f})=>{}});return m({id:e.id,requestFn:l,sortNum:e.reque}),{style:o,treeData:t,filterTreeNode:a,myValue:r,loading:i,selectChange:g}}},e1="",t1="";function Ad(e,o,t,a,r,i){const s=n.resolveComponent("a-tree-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tree-select",style:n.normalizeStyle(a.style)},[n.createVNode(s,{class:"tree-select",value:a.myValue,"onUpdate:value":o[0]||(o[0]=l=>a.myValue=l),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 Ki=pe(ye(wd,[["render",Ad],["__scopeId","data-v-37236421"]])),aa={...we,width:"260px",height:"32px",id:"",left:"0px",top:"0px",name:"单选框",keyName:"单选框",rotate:"",type:"ecanRadio",value:"",data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],optionType:"default",tabBackgroundImage:"",activeTabBackgroundImage:"",activeTabColor:"#1890ff",tabColor:"#333",tabFontSize:"14px",tabHorizontalPadding:"0px",tabBarGutter:"24px",tabFlexDirection:"row",graphicConfig:{},tabTextAlign:""},ra=ve(aa),Qi=["checkboxChange","click"],kd=n.defineComponent({name:"EcanRadio",components:{ARadioGroup:ce.RadioGroup,ARadioButton:ce.RadioButton,ARadio:ce.Radio},props:{...ra},setup(e,{expose:o}){const t=Ce(e),a=n.ref([]),r=n.ref(""),i=b=>{const x=e.value;let k=[];typeof x=="string"&&x!==""?k=k.concat(x.split(",")):Array.isArray(x)&&(k=k.concat(x)),a.value=b,r.value=k[0]||""};n.watch(()=>[e.data,e.value],([b])=>{i(b)},{immediate:!0,deep:!0});const s=He(e),l=async()=>{var k,T;if(e.dataType!=="request")return;const b=await s(),x=((T=(k=b==null?void 0:b.data)==null?void 0:k.data)==null?void 0:T.rows)||[];i(x)},{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:b=>{},setGlobalModel:(b,x)=>{}});c(e.id,{type:e.type,value:r});const u=Ee(e),g=u("checkboxChange",()=>{const b=d(e.id);c(e.id,{...b,RECORD:r})}),m=b=>{r.value=b,u("click",()=>{const x=d(e.id);c(e.id,{...x,RECORD:r})})()};n.watch(r,()=>{g()});const h=it(e),y=async()=>{var b;try{const x=await h(),{data:k}=(x==null?void 0:x.data)||{};if(k){const R=(((b=x==null?void 0:x.data)==null?void 0:b.data)??[]).map(_=>({label:_.label,value:_.value}));i(R)}else i([])}catch(x){console.error(x)}},f=()=>{switch(e.dataType){case"indicator":y();break;case"request":l();break}},{setRequest:S}=n.inject(ze,{setRequest:({id:b,sortNum:x,requestFn:k})=>{}});typeof S=="function"&&S({id:e.id,requestFn:f,sortNum:e.requestSort});const D=b=>{r.value=b.value},p=n.computed(()=>e.tabFlexDirection==="column"?{display:"flex",height:"30px",lineHeight:"30px"}:{});return o({refreshData:f}),{myOption:a,style:t,myValue:r,radioStyle:p,onClickButton:m,useImagePath:At,tabChange:D}}}),o1="",a1="",Td=["onClick"];function Bd(e,o,t,a,r,i){const s=n.resolveComponent("a-radio"),l=n.resolveComponent("a-radio-button"),d=n.resolveComponent("a-radio-group");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-radio",e.optionType]),style:n.normalizeStyle(e.style)},[e.tabBackgroundImage&&e.activeTabBackgroundImage?(n.openBlock(),n.createElementBlock("div",{key:0,class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,flexDirection:e.tabFlexDirection,alignItems:e.tabTextAlign})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,(c,u)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.myValue===c.value?e.activeTabColor:e.tabColor,backgroundImage:e.myValue===c.value?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:"0",marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:"0"}),key:u,onClick:n.withModifiers(g=>e.tabChange(c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.myValue===c.value?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(c.label),5)],12,Td))),128))],4)):(n.openBlock(),n.createBlock(d,{key:1,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myOption,c=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.value},[e.optionType==="default"?(n.openBlock(),n.createBlock(s,{key:0,value:c.value,style:n.normalizeStyle(e.radioStyle)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","style"])):e.optionType==="button"?(n.openBlock(),n.createBlock(l,{key:1,value:c.value,onClick:u=>e.onClickButton(c.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(c.label),1)]),_:2},1032,["value","onClick"])):n.createCommentVNode("",!0)],64))),128))]),_:1},8,["value"]))],6)}const Ji=pe(ye(kd,[["render",Bd],["__scopeId","data-v-baa84768"]])),ia={...we,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",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",labelWidth:100,labelOverflow:"none",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:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},la=ve(ia),Xi=["click","refreshData","resetRecord"],Gt=async e=>{var d;const o=await ft.post(e,{},{responseType:"blob"}),{data:t,headers:a}=o,r=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),s=document.createElement("a"),l=window.URL.createObjectURL(i);s.href=l,s.download=decodeURI(r),s.style.display="none",document.body.appendChild(s),s.click(),(d=s.parentNode)==null||d.removeChild(s),window.URL.revokeObjectURL(l)},sa={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",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)"},ca=ve(sa),el=["showModal","hideModal"];function tl(e){var r,i;const{componentList:o,containerMap:t,combinationMap:a={}}=e;if((r=Object.keys(t))!=null&&r.length||(i=Object.keys(a))!=null&&i.length){for(const g in t){const m=o.find(h=>h.id===g);if(m){bn(m,"parentId")||(m.parentId="",m.sourceLeft=m.left,m.sourceTop=m.top);for(const h in t[g])if(t[g][h])for(const y of t[g][h]){const f=o.find(S=>S.id===y);f&&(f.parentId=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(m.sourceLeft||m.left)+"px",f.top=parseFloat(f.top)-parseFloat(m.sourceTop||m.top)+"px")}}}const s=Array.from(new Set(o.filter(g=>(!bn(g,"parentId")||g.parentId==="")&&g.combinationId).map(g=>g.combinationId))),l=[];for(const g of s){const m=a[g];if(m!=null&&m.length){const h=o.filter(y=>m.includes(y.id));if(h!=null&&h.length){const y=Dd(h);if(y){l.push({...y,id:g,keyName:g,parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:y.left,sourceTop:y.top});for(const f of h)f&&(f.parentId=g,f.sourceLeft=f.left,f.sourceTop=f.top,f.left=parseFloat(f.left)-parseFloat(y.left)+"px",f.top=parseFloat(f.top)-parseFloat(y.top)+"px")}}}}l!=null&&l.length&&o.unshift(...l);const d=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap"],c=o.filter(g=>d.includes(g.type)&&!bn(g,"parentId")),u=[];for(const g of c)if(g){const m=g.id+"_vir";u.push({id:m,keyName:g.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:g.width,height:g.height,left:g.left,top:g.top,sourceLeft:g.left,sourceTop:g.top}),g.parentId=m,g.sourceLeft=g.left,g.sourceTop=g.top,g.left=0,g.top=0}u!=null&&u.length&&o.unshift(...u);for(const g of o){const m=document.body.clientWidth;if(g.parentId===""&&["ecanBorder","ecanTabs"].includes(g.type))g.sourceWidth=parseFloat(g.width),g.height=(m/(g.sourceWidth/parseFloat(g.height))).toFixed(2)+"px",g.width="100%",g.position="relative",g.top="auto",g.left="auto";else{const h=o.find(y=>y.id===g.parentId);if((h==null?void 0:h.parentId)===""){const y=h.sourceWidth||parseFloat(h.width),f=m/y;g.scale=f,g.top=parseFloat(g.top)*f-parseFloat(g.height)*(1-f)/2+"px",g.left=parseFloat(g.left)*f-parseFloat(g.width)*(1-f)/2+"px"}}g.type==="ecanModal"&&(g.parentId="",g.fullModal=!0)}return Ed(o)}return o}function Ed(e){const t=e.filter(a=>a.parentId==="");if(t!=null&&t.length){const a=qe.cloneDeep(t).map(r=>({...r,sourceTop:parseFloat(r.sourceTop),sourceLeft:parseFloat(r.sourceLeft)}));for(let r=0;r<a.length-1;r++)for(let i=0;i<a.length-r-1;i++){let s=!1;if((a[i].sourceTop-a[i+1].sourceTop>50||Math.abs(a[i+1].sourceTop-a[i].sourceTop)<=50&&a[i].sourceLeft>a[i+1].sourceLeft)&&(s=!0),s){const l=a[i];a[i]=a[i+1],a[i+1]=l}}for(const r of a){const i=e.findIndex(s=>s.id===r.id);i!==-1&&e.splice(i,1)}return[...a,...e]}return e}function Dd(e){const o=e.sort((i,s)=>parseFloat(i.top)-parseFloat(s.top))[0],t=e.sort((i,s)=>parseFloat(i.left)-parseFloat(s.left))[0],a=e.map(i=>({...i,computedTop:parseFloat(i.top)+parseFloat(i.height)})).sort((i,s)=>s.computedTop-i.computedTop)[0],r=e.map(i=>({...i,computedLeft:parseFloat(i.left)+parseFloat(i.width)})).sort((i,s)=>s.computedLeft-i.computedLeft)[0];return o&&t&&a&&r?{left:t.left,top:o.top,width:r.computedLeft-parseFloat(t.left)+"px",height:a.computedTop-parseFloat(o.top)+"px"}:null}const Rd=n.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(e,{emit:o}){o("ready",e.component.id)}});function Id(e,o,t,a,r,i){return e.component.parentId?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#container_"+e.component.parentId},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.mergeProps({style:{scale:e.component.scale}},e.component),null,16,["style"]))],8,["to"])):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.component.type),n.normalizeProps(n.mergeProps({key:1},e.component)),null,16))}const _d=pe(ye(Rd,[["render",Id]])),Od=n.defineComponent({name:"EcanModal",components:{AModal:ce.Modal,CloseOutlined:Y0,Render:_d},props:{...ca},setup(e,{emit:o}){const t=n.ref([]),a=n.inject("isMobile",!1),r=n.inject("getContainerMap",()=>{}),i=n.inject("getCombinationMap",()=>{}),{clearInteractiveData:s,interactiveData:l}=n.inject(Be,{clearInteractiveData:()=>{},interactiveData:null}),d=()=>document.getElementById("ProviderConfig")||document.body,c=n.computed(()=>{const Y=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[Y]}}),u=e.fullModal?"1920px":e.width,g=e.fullModal?"1080px":e.height,m=e.originalWidth,h=e.originalHeight,y=n.ref("80%"),f=n.ref(0),S=n.ref(),D=n.ref(0),p=n.ref({}),b=Ce(e),x=n.ref({}),k=n.ref(!1),T=n.ref();let R;const _=()=>{S.value=parseFloat(u)/parseFloat(m);const Y=parseFloat(g)/parseFloat(h),le=document.body.offsetWidth,re=document.body.offsetHeight;f.value=le*n.unref(S),D.value=re*Y,y.value=`${n.unref(S)*100}%`,p.value={width:`${n.unref(f)}px`,height:`${n.unref(D)}px`,border:`${e.borderWidth} solid ${e.borderColor}`,borderRadius:e.borderRadius+"px",boxShadow:e.boxShadow},x.value={...n.unref(b),backgroundImage:At(e.backgroundImage,!0)},a?x.value={...x.value,width:"100%",height:"100%"}:x.value={...x.value,transform:`scale(${n.unref(f)/parseFloat(u)},${n.unref(D)/parseFloat(g)})`,width:u,height:g}},F=qe.debounce(()=>{_()},100),A=()=>{const Y=window.MutationObserver;R=new Y(F),R.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{R&&(R.disconnect(),R.takeRecords(),R=null)},w=n.ref(!1),{touchRequest:C}=n.inject(ze,{touchRequest:()=>{}}),B=n.ref(""),E=()=>{var re;const{title:Y}=e,le=(re=n.unref(l))==null?void 0:re.RECORD;return le?De(Y,{textData:le},{useNewline:!1,useSpace:!1}):Y},L=Ee(e),M=()=>{a&&(document.documentElement.style.overflow="hidden"),B.value=E(),w.value=!0},P=L("hideModal",()=>{o("close"),a&&(document.documentElement.style.overflow="hidden auto",t.value=[]),w.value=!1}),V=()=>{P()},U=()=>{P(),s()},{setModalModel:z,pushUseModalIds:q,popUseModalIds:O}=n.inject(lr,{pushUseModalIds:Y=>{},popUseModalIds:()=>{},setModalModel:(Y,le)=>{}}),I=n.computed(()=>{if(a){const Y=qe.cloneDeep(e.componentList),le=r(),re=i();return tl({componentList:Y,containerMap:le,combinationMap:re})}else return e.componentList}),N=()=>{const Y=e.id;let le=[];const re=e.componentList;Array.isArray(re)&&(le=re.map(K=>K.id),z(Y,[...new Set(le)]))};n.watch(()=>w.value,async Y=>{Y?(k.value=!1,q(e.id),N(),await n.nextTick(()=>{_(),window.addEventListener("resize",F),A(),k.value=!0}),C()):(O(),window.removeEventListener("resize",F),v())});const W=n.computed(()=>n.unref(S)>=1),J=n.computed(()=>e.fullModal),$=n.computed(()=>{let Y="ecan-modal";return n.unref(W)&&(Y+=" ecan-full-width-modal"),n.unref(J)&&(Y+=" ecan-full-modal"),Y});return Le(e,{showModal:M,hideModal:P}),{modalRef:T,containStyle:p,contentStyle:x,getContainer:d,modalStyle:c,modalWith:y,isFullModal:J,style:b,visible:w,showModal:M,onOk:V,onCancel:U,isFullWidth:W,wrapClassName:$,ready:k,usedComponentList:I,isMobile:a,readyIds:t,hasOwn:bn,onComponentReady:Y=>{t.value.push(Y)},formatTitle:B}}}),l1="",s1="";function Ld(e,o,t,a,r,i){const s=n.resolveComponent("close-outlined"),l=n.resolveComponent("render"),d=n.resolveComponent("a-modal");return n.openBlock(),n.createBlock(d,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:n.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef",id:"container_"+e.id},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"contain",ref:"containRef",style:n.normalizeStyle(e.containStyle)},[e.ready?(n.openBlock(),n.createElementBlock("div",{key:0,class:"content",style:n.normalizeStyle(e.contentStyle)},[n.createElementVNode("div",{class:"header-bar",style:n.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px",height:e.isMobile?"62px":""})},[e.formatTitle?(n.openBlock(),n.createElementBlock("div",{key:0,class:"ant-modal-title",style:n.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},n.toDisplayString(e.formatTitle),5)):n.createCommentVNode("",!0),e.isShowCloseBtn?(n.openBlock(),n.createBlock(s,{key:1,class:"close-icon",style:n.normalizeStyle({color:e.closeBtnColor}),onClick:e.onCancel},null,8,["style","onClick"])):n.createCommentVNode("",!0)],4),e.usedComponentList.length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(e.isMobile?"mobile-wrap":"")},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.usedComponentList,(c,u)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:c.id+u},[e.isMobile?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.hasOwn(c,"parentId")&&(e.readyIds.includes(c.parentId)||c.parentId==="")?(n.openBlock(),n.createBlock(l,{key:0,component:c,onReady:e.onComponentReady},null,8,["component","onReady"])):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c.type),n.normalizeProps(n.mergeProps({key:1},c)),null,16))],64))),128))],2)):n.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):n.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const kt=pe(ye(Od,[["render",Ld],["__scopeId","data-v-a2e70efd"]]));Qe.use([Et.CanvasRenderer,ht.PieChart,be.TitleComponent,be.ToolboxComponent,be.TooltipComponent,be.LegendComponent]);const Nd=n.defineComponent({name:"EcanPie",props:{...la},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(!1),a=Ce(e),r=n.ref([]),i=n.ref(),s=n.ref({}),l=n.computed(()=>{let{data:v=[]}=n.unref(r)[0]||{};if(Array.isArray(e.colors)){const w=e.isUseLabelColors,C=e.colors;v=v.map((B,E)=>({label:w?{color:C[E]}:{},...B}))}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(){Gt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.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 w;t.value=!0,(w=i.value)==null||w.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:w=>{const{marker:C,seriesName:B,name:E,value:L,percent:M,data:P}=w||{};return De(e.tooltipFormatter,{textData:{marker:C,name:E,value:L,percent:M,a:B,b:E,c:L,d:M,...P}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor},position:e.tooltipPosition||void 0},legend:n.unref(s),color:e.colors,series:[{data:v,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!0,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?Ue:e.labelFontSize,position:e.labelPosition,formatter:uc(e.labelFormatter),width:e.labelWidth,overflow:e.labelOverflow},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),d=()=>{const v=t.value?Ue:parseFloat(e.legendFontSize);s.value={type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,align:"left",textStyle:{lineHeight:v+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:v}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,formatter:w=>{const{data:C}=r.value[0]||{};let B=0,E,L="0%";if(C)for(const M of C)M.name===w&&(E=+M.value),B+=+M.value;return B&&(L=`${(E/B*100).toFixed(2)}%`),tn(e.legendFormatter,{name:w,value:E,percent:L})}}},c=()=>{t.value=!1},{getGlobalModel:u,setGlobalModel:g}=n.inject(Be,{getGlobalModel:v=>{},setGlobalModel:(v,w)=>{}}),{pageMode:m}=n.inject(Me,{pageMode:"normal"}),h=(v=[],w)=>{const{dataset:C}=Ft(v,w);r.value=C},y=(v=[],w)=>{const C=Ft(v,w);r.value=C.dataset};n.watch(()=>e.data,v=>{(e.dataType==="static"||n.unref(m)==="design")&&h(v)},{immediate:!0,deep:!0}),n.watch(()=>[e.legendShow,e.legendOrient,e.legendTop,e.legendLeft,e.legendTextStyleColor,e.labelFontSize,e.legendItemHeight,e.legendItemWidth,e.legendItemGap,e.legendFormatter,e.legendFontSize,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],()=>{d()},{immediate:!0});const f=n.ref(!1),S=He(e),D=async()=>{var v,w;if(e.dataType==="request")try{f.value=!0;const C=await S();h((w=(v=C==null?void 0:C.data)==null?void 0:v.data)==null?void 0:w.rows,e.valueTypeDataFieldNames)}catch(C){console.error(C)}finally{f.value=!1}},p=Ee(e);g(e.id,{type:e.type,RECORD:""});const b=p("click",v=>{const w=u(e.id);g(e.id,{...w,type:e.type,RECORD:v==null?void 0:v.data})}),x=it(e),k=async()=>{var v;try{f.value=!0;const w=await x(),{data:C}=(w==null?void 0:w.data)||{};if(C){const{columns:B=[],rows:E=[]}=((v=w==null?void 0:w.data)==null?void 0:v.data)??{};let L=[];if(B.length>0){const M=B[0],P=B[1];L=E.map(V=>({name:V[M],value:isNaN(V[P])?0:V[P]||0}))}y(L)}}catch(w){console.error(w)}finally{f.value=!1}},{loadedData:T}=n.inject(bt,{loadedData:{}}),R=n.ref(!1);n.watch(T,v=>{if(e.dataType==="indicator"){const w=en(e.graphicConfig);w!=null&&w.length&&(!n.unref(R)&&at(e.graphicConfig,v)?(R.value=!0,_()):at(e.graphicConfig,v)||(R.value=!1))}},{deep:!0});const _=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(T))&&k();break;case"request":D();break}};Le(e,{resetRecord:()=>{const v=e.id,w=u(v);g(v,{...w,RECORD:""})},refreshData:_,click:b}),o({refreshData:_});const{setRequest:A}=n.inject(ze,{setRequest:v=>{}});return typeof A=="function"&&A({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:l,style:a,click:b,onClose:c,loading:f,ecanModal:i}}}),d1="";function Fd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const nl=pe(ye(Nd,[["render",Fd]])),da={...we,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:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",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,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,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,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},fa=ve(da),ol=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.LineChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent,be.MarkLineComponent]);const Md=n.defineComponent({name:"EcanLine",props:{...fa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref([]),l=n.ref(),d=n.computed(()=>a.value?Ue:12),c=n.ref({});let u;const g=n.ref([]),m=n.computed(()=>{const E=e.xAxisLabelFormatter,L=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(){Gt(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 M;a.value=!0,(M=l.value)==null||M.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},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:M=>{var z;const P=M.length;let V="",U=e.tooltipFormatter;u=(z=M[0])==null?void 0:z.data,U===""&&(U="{marker} {a} {c}");for(let q=0;q<P;q++){const{marker:O,seriesName:I,name:N,value:W,data:J}=M[q]||{};if(q===0){let $=N;typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&($=(+N).toString()),V+=`${rt(E,$)}<br/>`}V+=De(U,{textData:{marker:O,name:N,value:W,a:I,b:N,c:W||0,...J}},{useNewline:!0,useSpace:!0}),V+="<br/>"}return V},position:e.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:e.isBoundaryGap,data:n.unref(s).map(M=>{let P={};return M&&typeof M=="object"?P={...M}:P={value:M},P}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(M){return typeof M=="string"&&M[0]==="0"&&!isNaN(+M)&&(M=(+M).toString()),rt(E,M)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(M){return rt(L,M)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(g).map(M=>({name:M.name,icon:e.legendType})),formatter:M=>tn(e.legendFormatter,{name:M})},series:n.unref(i)}}),h=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:f}=n.inject(Be,{getGlobalModel:E=>{},setGlobalModel:(E,L)=>{}}),{pageMode:S}=n.inject(Me,{pageMode:"normal"}),D=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),p=(E=[],L=!1)=>{let M;if(e.dataFieldConfigType==="key"){const z=L?e.keyTypeDataFieldNames:null;M=wt(E,z)}else if(e.dataFieldConfigType==="value"){const z=L?e.valueTypeDataFieldNames:null;M=Ft(E,z)}s.value=M.dimensions,g.value=M.dataset;const P=M.dataset,V=[],U=P.length;for(let z=0;z<U;z++){const q={};e.shadowColor&&(q.shadowColor=e.shadowColor,q.shadowBlur=e.shadowBlur,q.shadowOffsetY=e.shadowOffsetY,q.shadowOffsetX=e.shadowOffsetX),V.push({type:"line",...P[z],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[z]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[z],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...q},...n.unref(D)})}i.value=V},b=(E=[],L,M=!1)=>{const V=wt(E,M?L:null,!0);s.value=V.dimensions,g.value=V.dataset;const U=V.dataset,z=[],q=U.length;for(let O=0;O<q;O++){const I={};e.shadowColor&&(I.shadowColor=e.shadowColor,I.shadowBlur=e.shadowBlur,I.shadowOffsetY=e.shadowOffsetY,I.shadowOffsetX=e.shadowOffsetX),z.push({type:"line",...U[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[O]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[O],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...I},...n.unref(D)})}i.value=z};n.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity,e.areaGradientShow,e.areaGradientColor,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([E])=>{(e.dataType==="static"||n.unref(S)==="design")&&p(E)},{immediate:!0,deep:!0});const x=n.ref(!1),k=He(e),T=async()=>{var E,L;if(e.dataType==="request")try{x.value=!0;const M=await k();p((L=(E=M==null?void 0:M.data)==null?void 0:E.data)==null?void 0:L.rows,!0)}catch(M){console.error(M)}finally{x.value=!1}},R=Ee(e);f(e.id,{type:e.type,RECORD:""});const _=R("click",E=>{const L=y(e.id);f(e.id,{...L,type:e.type,RECORD:e.tooltipShow?u:E.data})}),F=E=>{t.value.chart.containPixel("grid",[E.offsetX,E.offsetY])&&_()};e.tooltipShow?c.value["zr:click"]=F:c.value.click=_;const A=it(e),v=async()=>{var E;try{x.value=!0;const L=await A(),{columns:M=[],rows:P=[]}=((E=L==null?void 0:L.data)==null?void 0:E.data)??{};let V;M.length>0&&(V={name:M[0],types:M.slice(1).map(U=>({label:U,value:U}))}),b(P,V,!0)}catch(L){console.error(L)}finally{x.value=!1}},w=()=>{switch(e.dataType){case"indicator":v();break;case"request":T();break}};Le(e,{refreshData:w,resetRecord:()=>{const E=e.id,L=y(E);f(E,{...L,RECORD:""})},click:_});const{setRequest:B}=n.inject(ze,{setRequest:E=>{}});return typeof B=="function"&&B({id:e.id,requestFn:w,sortNum:e.requestSort}),o({refreshData:w}),{option:m,style:r,click:_,loading:x,onClose:h,ecanModal:l,eventObj:c,echartRef:t}}}),u1="";function zd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const al=pe(ye(Md,[["render",zd]])),ua={...we,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",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,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,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:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ha=ve(ua),rl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent,be.MarkLineComponent]);const Pd=n.defineComponent({name:"EcanBar",props:{...ha},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=Ce(e),d=n.ref([]),c=n.ref(),u=n.ref({});let g;const m=n.computed(()=>a.value?Ue:12),h=n.computed(()=>{const{gradientShow:O,gradientColors:I,gradientOffset:N,barBorderRadius:W}=e,J=n.unref(d),$=J.length,ae=[];for(let Y=0;Y<$;Y++){const le={...J[Y],type:"bar",barWidth:e.barWidth,showBackground:e.showBarBackground};if(e.isStack&&(le.stack="stack"),le.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow,formatter:re=>{let K="",X=e.labelFormatter;X===""&&(X="{c}");const{seriesName:ne,name:xe,value:Ae,data:ke}=re||{};return K+=De(X,{textData:{name:xe,value:Ae,a:ne,b:xe,c:Ae||0,...ke}},{useNewline:!0,useSpace:!0}),K}},le.itemStyle={},O&&(le.itemStyle={color:{x:e.isUseHorizontalAxis?1:0,y:0,x2:0,y2:e.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:e.colors[Y]},{offset:N,color:I[Y]},{offset:1,color:I[Y]}]}}),W){const re=W.split(",");if(re!=null&&re.length){const K=[];for(const X of re){const ne=parseFloat(X);isNaN(ne)||K.push(ne)}le.itemStyle.borderRadius=K}}e.isShowMarkLine&&(le.markLine={data:[{type:e.markLineType}]}),ae.push(le)}return ae}),y=n.ref([]),f=n.ref(!1),S=n.computed(()=>{const O=e.yAxisLabelFormatter,I=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(){r.value=!0;const N=t.value.chart.getOption(),{xAxis:W}=N||{};W&&W.length&&(s.value=W[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(){Gt(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=c.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},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:N=>{var ae;const W=N.length;let J="",$=e.tooltipFormatter;g=(ae=N[0])==null?void 0:ae.data,$===""&&($="{marker} {a} {c}");for(let Y=0;Y<W;Y++){const{marker:le,seriesName:re,name:K,value:X,data:ne}=N[Y]||{};if(Y===0){let xe=K;typeof K=="string"&&K[0]==="0"&&!isNaN(+K)&&(xe=(+K).toString()),J+=`${rt(I,xe)}<br/>`}J+=De($,{textData:{marker:le,name:K,value:X,a:re,b:K,c:X||0,...ne}},{useNewline:!0,useSpace:!0}),J+="<br/>"}return J},textStyle:{color:e.tooltipTextStyleColor,fontSize:m.value},position:e.tooltipPosition||void 0},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map((N,W)=>({name:N.name,itemStyle:{color:e.colors[W]},icon:e.legendType})),formatter:N=>tn(e.legendFormatter,{name:N})},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:n.unref(k),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor,type:e.xAxisSplitLineType},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(N){return typeof N=="string"&&N[0]==="0"&&!isNaN(+N)&&(N=(+N).toString()),rt(I,N)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?n.unref(y):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(N){return rt(O,N)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:n.unref(h)}}),{pageMode:D}=n.inject(Me,{pageMode:"normal"}),p=()=>{a.value=!1},b=(O=[],I=!1)=>{let N={};if(e.dataFieldConfigType==="key"){const W=I?e.keyTypeDataFieldNames:null;N=wt(O,W)}else if(e.dataFieldConfigType==="value"){const W=I?e.valueTypeDataFieldNames:null;N=Ft(O,W)}d.value=N.dataset,y.value=N.dimensions},x=(O=[],I,N=!1)=>{const J=wt(O,N?I:null,!0);d.value=J.dataset,y.value=J.dimensions},k=n.computed(()=>n.unref(y).map(O=>{let I={};return O&&typeof O=="object"?I={...O}:I={value:O},I}));n.watch(()=>[e.data,e.labelFormatter,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([O])=>{(e.dataType==="static"||n.unref(D)==="design")&&b(O)},{immediate:!0,deep:!0});const T=He(e),R=async()=>{var O,I;try{f.value=!0;const N=await T();b((I=(O=N==null?void 0:N.data)==null?void 0:O.data)==null?void 0:I.rows,!0)}catch(N){console.error(N)}finally{f.value=!1}},_=it(e),F=async()=>{var O;try{f.value=!0;const I=await _(),{columns:N=[],rows:W=[]}=((O=I==null?void 0:I.data)==null?void 0:O.data)??{};let J;N.length>0&&(J={name:N[0],types:N.slice(1).map($=>({label:$,value:$}))}),x(W,J,!0)}catch(I){console.error(I)}finally{f.value=!1}},{loadedData:A}=n.inject(bt,{loadedData:{}}),v=n.ref(!1);n.watch(A,O=>{if(e.dataType==="indicator"){const I=en(e.graphicConfig);I!=null&&I.length&&(!n.unref(v)&&at(e.graphicConfig,O)?(v.value=!0,w()):at(e.graphicConfig,O)||(v.value=!1))}},{deep:!0});const w=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(A))&&F();break;case"request":R();break}},C=(O,I)=>!!n.unref(s)[I.value].value.includes(O),B=async()=>{r.value=!1;const O=t.value.chart.getOption();for(let I=0;I<7;I++)await E(O,I)},E=(O,I)=>new Promise(N=>{setTimeout(()=>{const{series:W,color:J,xAxis:$}=O,ae=t.value.chart,{splitArea:Y={}}=$[0]||{};W.forEach((le,re)=>{const K=le.data;let X="";I%2?X=J[re]+"a8":X=J[re],K[i.value].itemStyle={color:X}}),I%2?(Y.show=!0,Y.areaStyle.color=n.unref(s).map((le,re)=>re===i.value?"#ff003b26":"")):Y.show=!1,ae.setOption({series:W,xAxis:$}),N()},200)});o({refreshData:w});const L=Ee(e),{getGlobalModel:M,setGlobalModel:P}=n.inject(Be,{getGlobalModel:O=>{},setGlobalModel:(O,I)=>{}});P(e.id,{type:e.type,RECORD:""});const V=L("click",O=>{const I=M(e.id);P(e.id,{...I,type:e.type,RECORD:e.tooltipShow?g:O.data})}),{setRequest:U}=n.inject(ze,{setRequest:O=>{}});typeof U=="function"&&U({id:e.id,requestFn:w,sortNum:e.requestSort});const z=()=>{const O=e.id,I=M(O);P(O,{...I,RECORD:""})},q=O=>{t.value.chart.containPixel("grid",[O.offsetX,O.offsetY])&&V()};return e.tooltipShow?u.value["zr:click"]=q:u.value.click=V,Le(e,{refreshData:w,click:V,resetRecord:z}),{option:S,style:l,refreshData:w,click:V,loading:f,onClose:p,ecanModal:c,echartRef:t,handleLocationOk:B,onFilterOption:C,locationVisible:r,locationValue:i,locationNames:s,eventObj:u}}}),g1="",m1="",qd=e=>(n.pushScopeId("data-v-d9fb5cfd"),e=e(),n.popScopeId(),e),Hd={class:"location-wrap"},Vd=qd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function jd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),u=n.resolveComponent("a-select"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{class:"ecan-bar",style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Hd,[Vd,n.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(m,h)=>(n.openBlock(),n.createBlock(c,{key:h,value:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const il=pe(ye(Pd,[["render",jd],["__scopeId","data-v-d9fb5cfd"]])),ga={...we,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:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,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:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average"},ma=ve(ga),ll=["click","refreshData","resetRecord"];Qe.use([Et.CanvasRenderer,ht.ScatterChart,be.ToolboxComponent,be.TitleComponent,be.TooltipComponent,be.LegendComponent,be.MarkLineComponent]);const Wd=n.defineComponent({name:"EcanScatter",props:{...ma},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e){const o=n.ref(!1),t=Ce(e),a=n.ref([]),r=n.ref(),i=n.computed(()=>o.value?Ue:12),s=n.computed(()=>e.isShowMarkLine?{markLine:{data:[{type:e.markLineType}]}}:{}),l=n.computed(()=>{const k=e.xAxisLabelFormatter,T=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(){Gt(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 R;o.value=!0,(R=r.value)==null||R.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},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},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{fontSize:e.xAxisLabelFontSize,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(R){return typeof R=="string"&&R[0]==="0"&&!isNaN(+R)&&(R=(+R).toString()),rt(k,R)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:e.yAxisSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(R){return rt(T,R)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(R){var C;const{marker:_,seriesName:F}=R,A=((C=R==null?void 0:R.data)==null?void 0:C.record)??{},{name:v,value:w}=A;return De(e.tooltipFormatter,{textData:{marker:_,seriesName:F,a:F,b:v,c:w,...A}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value},position:e.tooltipPosition||void 0},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:i.value}},series:[{data:n.unref(a),type:"scatter",symbolSize:e.symbolSize,...n.unref(s)}]}}),{getGlobalModel:d,setGlobalModel:c}=n.inject(Be,{getGlobalModel:k=>{},setGlobalModel:(k,T)=>{}}),{pageMode:u}=n.inject(Me,{pageMode:"normal"}),g=(k=[],T)=>{const{name:R="name",value:_="value"}=T||{};a.value=k.map(F=>({value:[F[R],F[_]],record:F}))};n.watch(()=>e.data,k=>{(e.dataType==="static"||n.unref(u)==="design")&&g(k)},{immediate:!0,deep:!0});const m=n.ref(!1),h=He(e),y=async()=>{var k,T;if(e.dataType==="request"){m.value=!0;try{const R=await h();g((T=(k=R==null?void 0:R.data)==null?void 0:k.data)==null?void 0:T.rows,e.dataFieldNames)}catch(R){console.error(R)}finally{m.value=!1}}},f=()=>{o.value=!1},S=Ee(e);c(e.id,{type:e.type,RECORD:""});const D=S("click",k=>{const T=e.id,R=d(T);c(T,{...R,type:e.type,RECORD:k==null?void 0:k.data})});Le(e,{refreshData:()=>{y()},click:D,resetRecord:()=>{const k=e.id,T=d(k);c(k,{...T,RECORD:""})}});const{setRequest:x}=n.inject(ze,{setRequest:k=>{}});return typeof x=="function"&&x({id:e.id,requestFn:y,sortNum:e.requestSort}),{option:l,style:t,click:D,loading:m,onClose:f,ecanModal:r}}}),x1="";function Ud(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const sl=pe(ye(Wd,[["render",Ud]])),ya={...we,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},xa=ve(ya),Gd=n.defineComponent({name:"EcanCustomGraph",props:{...xa},components:{Echarts:xt},setup(e){const o=Ce(e),t=n.ref();return n.watch(()=>e.optionCode,a=>{try{const r=eval;t.value=r(a)}catch(r){console.error(r)}},{immediate:!0}),{style:o,myOption:t,echarts:Hl}}});function $d(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const cl=pe(ye(Gd,[["render",$d]])),pa={...we,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:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",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,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,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,toolboxLocation:!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%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},ba=ve(pa),dl=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.BarChart,ht.LineChart,be.TitleComponent,be.LegendComponent,be.DatasetComponent,be.ToolboxComponent,be.MarkLineComponent]);const Zd=n.defineComponent({name:"EcanComboGraph",props:{...ba},components:{Spin:Nt,Echarts:xt,EcanModal:kt,AModal:ce.Modal},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=n.ref(!1),i=n.ref(null),s=n.ref([]),l=n.ref({});let d;const c=Ce(e),u=n.ref([]),g=n.ref([]),m=n.ref(),h=n.ref([]),y=n.computed(()=>a.value?Ue:12),f=n.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},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(){r.value=!0;const I=t.value.chart.getOption(),{xAxis:N}=I||{};N&&N.length&&(s.value=N[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(){Gt(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 I;a.value=!0,(I=m.value)==null||I.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(){ce.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:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(h).map((I,N)=>({name:I.name,itemStyle:{color:e.colors[N]},icon:e.legendType})),formatter:I=>tn(e.legendFormatter,{name:I})},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:I=>{var ae;const N=I.length;let W="",J=e.tooltipFormatter;d=(ae=I[0])==null?void 0:ae.data,J===""&&(J="{marker} {a} {c}");const $=e.seriesTypes;for(let Y=0;Y<N;Y++){const le=$[Y],{tooltipFormatter:re}=le||{},{marker:K,seriesName:X,name:ne,value:xe,data:Ae}=I[Y]||{};if(Y===0){let ke=ne;typeof ne=="string"&&ne[0]==="0"&&!isNaN(+ne)&&(ke=(+ne).toString()),W+=`${rt(e.xAxisLabelFormatter,ke)}<br/>`}W+=De(re||J,{textData:{marker:K,name:ne,value:xe,seriesName:X,a:X,b:ne,c:xe||0,...Ae}},{useNewline:!0,useSpace:!0}),W+="<br/>"}return W},textStyle:{color:e.tooltipTextStyleColor,fontSize:y.value},position:e.tooltipPosition||void 0},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:n.unref(g).map(I=>{let N={};return I&&typeof I=="object"?N={...I}:N={value:I},N}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor},interval:e.xAxisSplitLineInterval},splitArea:{show:e.xAxisSplitAreaShow},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,fontSize:e.xAxisLabelFontSize,formatter(I){return typeof I=="string"&&I[0]==="0"&&!isNaN(+I)&&(I=(+I).toString()),rt(e.xAxisLabelFormatter,I)}},axisLine:{show:e.xAxisLineShow,lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:n.unref(k),series:n.unref(u)})),{pageMode:S}=n.inject(Me,{pageMode:"normal"}),D=()=>{a.value=!1},p=(I=[],N=!1)=>{let W;if(e.dataFieldConfigType==="key"){const $=N?e.keyTypeDataFieldNames:null;W=wt(I,$)}else if(e.dataFieldConfigType==="value"){const $=N?e.valueTypeDataFieldNames:null;W=Ft(I,$)}g.value=W.dimensions;const J=W.dataset;h.value=W.dataset,u.value=x(J)},b=(I=[],N,W=!1)=>{const $=wt(I,W?N:null,!0);g.value=$.dimensions;const ae=$.dataset;h.value=$.dataset,u.value=x(ae)};function x(I){const N=[],W=I.length,J=e.seriesTypes;for(let $=0;$<W;$++){const ae=J[$],{type:Y,axisIndex:le}=ae||{};let re={type:Y,yAxisIndex:le,...I[$]};if(Y==="line"){const K={};e.shadowColor&&(K.shadowColor=e.shadowColor,K.shadowBlur=e.shadowBlur,K.shadowOffsetY=e.shadowOffsetY,K.shadowOffsetX=e.shadowOffsetX),re={...re,symbolSize:e.symbolSize,smooth:e.smooth,itemStyle:{color:e.colors[$]},areaStyle:{color:e.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:1,color:e.areaGradientColor||"transparent"}],global:!1}:e.colors[$],opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth,...K}}}if(Y==="bar"){const{gradientShow:K,gradientColors:X,gradientOffset:ne}=e,xe={};if(e.barBorderRadius){const Ae=e.barBorderRadius.split(",");if(Ae!=null&&Ae.length){const ke=[];for(const $e of Ae){const Fe=parseFloat($e);isNaN(Fe)||ke.push(Fe)}xe.borderRadius=ke}}K&&(xe.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:e.colors[$]},{offset:ne,color:X[$]},{offset:1,color:X[$]}]}),re={...re,barWidth:e.barWidth,itemStyle:xe}}e.isShowMarkLine&&(re.markLine={data:[{type:e.markLineType}]}),N.push(re)}return N}n.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth,e.barBorderRadius,e.areaGradientShow,e.areaGradientColor,e.gradientShow,e.gradientColors,e.gradientOffset,e.shadowColor,e.shadowBlur,e.shadowOffsetY,e.shadowOffsetX,e.legendFontSize,e.xAxisLabelFormatter,e.isShowMarkLine,e.markLineType,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([I])=>{(e.dataType==="static"||n.unref(S)==="design")&&p(I)},{immediate:!0,deep:!0});const k=n.computed(()=>{const I=e.yAxis;return I==null?void 0:I.map((N,W)=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:W===0?e.yAxisLeftSplitLineShow:e.yAxisRightSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor,type:W===0?e.yAxisLeftSplitLineType:e.yAxisRightSplitLineType}},splitArea:{show:e.yAxisSplitAreaShow},axisLabel:{show:e.yAxisLabelShow,fontSize:e.yAxisLabelFontSize,color:e.yAxisLabelColor,formatter(J){return rt(N.axisLabelFormatter,J)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),T=n.ref(!1),R=He(e),_=async()=>{var I,N;if(e.dataType==="request")try{T.value=!0;const W=await R();p((N=(I=W==null?void 0:W.data)==null?void 0:I.data)==null?void 0:N.rows,!0)}catch(W){console.error(W)}finally{T.value=!1}},F=it(e),A=async()=>{var I;try{T.value=!0;const N=await F(),{columns:W=[],rows:J=[]}=((I=N==null?void 0:N.data)==null?void 0:I.data)??{};let $;W.length>0&&($={name:W[0],types:W.slice(1).map(ae=>({label:ae,value:ae}))}),b(J,$,!0)}catch(N){console.error(N)}finally{T.value=!1}},{loadedData:v}=n.inject(bt,{loadedData:{}}),w=n.ref(!1);n.watch(v,I=>{if(e.dataType==="indicator"){const N=en(e.graphicConfig);N!=null&&N.length&&(!n.unref(w)&&at(e.graphicConfig,I)?(w.value=!0,C()):at(e.graphicConfig,I)||(w.value=!1))}},{deep:!0});const C=()=>{switch(e.dataType){case"indicator":at(e.graphicConfig,n.unref(v))&&A();break;case"request":_();break}},B=(I,N)=>!!n.unref(s)[N.value].value.includes(I),E=async()=>{r.value=!1;const I=t.value.chart.getOption();for(let N=0;N<7;N++)await L(I,N)},L=(I,N)=>new Promise(W=>{setTimeout(()=>{const{series:J,color:$,xAxis:ae}=I,Y=t.value.chart,{splitArea:le={}}=ae[0]||{};J.forEach((re,K)=>{const X=re.data;let ne="";N%2?ne=$[K]+"a8":ne=$[K],X[i.value].itemStyle={color:ne}}),N%2?(le.show=!0,le.areaStyle.color=n.unref(s).map((re,K)=>K===i.value?"#ff003b26":"")):le.show=!1,Y.setOption({series:J,xAxis:ae}),W()},200)});o({refreshData:C});const M=Ee(e),{getGlobalModel:P,setGlobalModel:V}=n.inject(Be,{getGlobalModel:I=>{},setGlobalModel:(I,N)=>{}});V(e.id,{type:e.type,RECORD:""});const U=M("click",I=>{const N=P(e.id);V(e.id,{...N,type:e.type,RECORD:e.tooltipShow?d:I==null?void 0:I.data})}),z=I=>{t.value.chart.containPixel("grid",[I.offsetX,I.offsetY])&&U()};e.tooltipShow?l.value["zr:click"]=z:l.value.click=U;const{setRequest:q}=n.inject(ze,{setRequest:I=>{}});return typeof q=="function"&&q({id:e.id,requestFn:C,sortNum:e.requestSort}),Le(e,{resetRecord:()=>{const I=e.id,N=P(I);V(I,{...N,RECORD:""})},refreshData:C,click:U}),{style:c,option:f,click:U,loading:T,onClose:D,ecanModal:m,echartRef:t,handleLocationOk:E,onFilterOption:B,locationVisible:r,locationValue:i,locationNames:s,eventObj:l}}}),v1="",S1="",Yd=e=>(n.pushScopeId("data-v-38571f44"),e=e(),n.popScopeId(),e),Kd={class:"location-wrap"},Qd=Yd(()=>n.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Jd(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal"),c=n.resolveComponent("a-select-option"),u=n.resolveComponent("a-select"),g=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,n.mergeProps({ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:""},n.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),n.createVNode(g,{visible:e.locationVisible,"onUpdate:visible":o[1]||(o[1]=m=>e.locationVisible=m),title:"快速定位",onOk:e.handleLocationOk},{default:n.withCtx(()=>[n.createElementVNode("div",Kd,[Qd,n.createVNode(u,{value:e.locationValue,"onUpdate:value":o[0]||(o[0]=m=>e.locationValue=m),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.locationNames,(m,h)=>(n.openBlock(),n.createBlock(c,{key:h,value:h},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const fl=pe(ye(Zd,[["render",Jd],["__scopeId","data-v-38571f44"]])),va={...we,id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",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,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},Sa=ve(va),ul=["refreshData","click","resetRecord"];Qe.use([Et.CanvasRenderer,ht.RadarChart,be.ToolboxComponent,be.TitleComponent,be.LegendComponent]);const Xd=n.defineComponent({name:"EcanRadar",props:{...Sa},components:{Spin:Nt,Echarts:xt,EcanModal:kt},setup(e,{expose:o}){const t=n.ref(),a=n.ref(!1),r=Ce(e),i=n.ref([]),s=n.ref(),l=n.computed(()=>a.value?Ue:12),d=n.ref([]),c=n.ref(e.valueTypeDataFieldNames.name),u=n.computed(()=>{const C=n.unref(d),B=C.length,E=[];for(let L=0;L<B;L++){const{name:M,data:P=[]}=C[L],V=[{name:M,value:P.map(z=>z.value)}],U={type:"radar",name:M,data:V,areaStyle:{color:e.colors[L],opacity:e.areaStyleOpacity},tooltip:{trigger:"item"},symbolSize:e.symbolSize,lineStyle:{width:e.lineStyleWidth},label:{show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor,width:e.labelWidth,overflow:e.labelOverflow}};E.push(U)}return E}),g=n.computed(()=>{var M;const C=[],B=[],E=n.unref(d),L=E.length;for(let P=0;P<L;P++){const{data:V=[]}=E[P];for(let U=0;U<V.length;U++)B.push(V[U].value)}if((M=i.value)!=null&&M.length){const P=B!=null&&B.length?Math.max(...B)*1.2:0;for(const V of i.value)C.push({name:V,max:P})}return C}),m=n.computed(()=>({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(){Gt(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 C;a.value=!0,(C=s.value)==null||C.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(){ce.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,textStyle:{fontSize:e.titleFontSize,fontWeight:e.fontWeight,color:e.titleColor},left:e.textAlign},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:l.value},show:e.tooltipShow,formatter:C=>{let B="",E=e.tooltipFormatter;E===""&&(E="{marker} {a} {c}");for(let L=0;L<n.unref(g).length;L++){const M=n.unref(g)[L],{marker:P,seriesName:V,value:U}=C||{};L===0&&V&&(B+=`${V}<br/>`),B+=De(E,{textData:{marker:P,name:M.name,value:U[L],a:M.name,b:M.name,c:U[L]||0,type:V}},{useNewline:!0,useSpace:!0}),B+="<br/>"}return B},position:e.tooltipPosition||void 0},radar:{indicator:n.unref(g),axisName:{color:e.axisNameColor}},legend:{type:e.legendScroll?"scroll":"plain",width:e.legendWidth,height:e.legendHeight,show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{lineHeight:(a.value?Ue:parseFloat(e.legendFontSize))+8,rich:{text:{width:e.legendTextWidth,color:e.legendTextStyleColor,fontSize:a.value?Ue:e.legendFontSize}}},itemHeight:e.legendItemHeight,itemWidth:e.legendItemWidth,itemGap:e.legendItemGap,data:n.unref(d).map(C=>({name:C.name,icon:e.legendType})),formatter:C=>tn(e.legendFormatter,{name:C})},series:n.unref(u)})),h=()=>{a.value=!1},{getGlobalModel:y,setGlobalModel:f}=n.inject(Be,{getGlobalModel:C=>{},setGlobalModel:(C,B)=>{}}),{pageMode:S}=n.inject(Me,{pageMode:"normal"}),D=(C=[],B=!1)=>{let E;if(e.dataFieldConfigType==="key"){const L=B?e.keyTypeDataFieldNames:null;E=wt(C,L)}else if(e.dataFieldConfigType==="value"){const L=B?e.valueTypeDataFieldNames:null;E=Ft(C,L)}i.value=E.dimensions,d.value=E.dataset},p=(C=[],B,E=!1)=>{const M=wt(C,E?B:null,!0);i.value=M.dimensions,d.value=M.dataset};n.watch(()=>[e.data,e.areaStyleOpacity,e.legendFontSize,e.legendFormatter,e.legendWidth,e.legendHeight,e.legendTextWidth,e.legendScroll],([C])=>{(e.dataType==="static"||n.unref(S)==="design")&&D(C)},{immediate:!0,deep:!0});const b=n.ref(!1),x=He(e),k=async()=>{var C,B;if(e.dataType==="request")try{b.value=!0;const E=await x();D((B=(C=E==null?void 0:E.data)==null?void 0:C.data)==null?void 0:B.rows,!0)}catch(E){console.error(E)}finally{b.value=!1}},T=Ee(e);f(e.id,{type:e.type,RECORD:""});const R=C=>{const B=C.event.topTarget.__dimIdx;B!==void 0&&T("click",()=>{var P;const{value:E,name:L}=C.data||{},M=y(e.id);f(e.id,{...M,type:e.type,RECORD:{[n.unref(c)]:((P=n.unref(g)[B])==null?void 0:P.name)||"",[L]:E[B],seriesName:L}})})()},_=it(e),F=async()=>{var C;try{b.value=!0;const B=await _(),{columns:E=[],rows:L=[]}=((C=B==null?void 0:B.data)==null?void 0:C.data)??{};let M;E.length>0&&(c.value=E[0],M={name:E[0],types:E.slice(1).map(P=>({label:P,value:P}))}),p(L,M,!0)}catch(B){console.error(B)}finally{b.value=!1}},A=()=>{switch(e.dataType){case"indicator":F();break;case"request":k();break}};Le(e,{refreshData:A,resetRecord:()=>{const C=e.id,B=y(C);f(C,{...B,RECORD:""})},click:R});const{setRequest:w}=n.inject(ze,{setRequest:C=>{}});return typeof w=="function"&&w({id:e.id,requestFn:A,sortNum:e.requestSort}),o({refreshData:A}),{option:m,style:r,click:R,loading:b,onClose:h,ecanModal:s,echartRef:t}}}),w1="";function ef(e,o,t,a,r,i){const s=n.resolveComponent("echarts"),l=n.resolveComponent("spin"),d=n.resolveComponent("ecan-modal");return n.openBlock(),n.createElementBlock("div",{style:n.normalizeStyle(e.style)},[n.createVNode(l,{spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{ref:"echartRef",option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),n.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:n.withCtx(()=>[n.createVNode(l,{class:"spin-wrap",spinning:e.loading},{default:n.withCtx(()=>[n.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const hl=pe(ye(Xd,[["render",ef]])),tf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXO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7NHH9rG0kYaAIWAI7BkCx+aaB88vNuTXBbu2/wfAQwC29PHqBQAAAABJRU5ErkJggg==",of="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",af="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWoAAAAuCAYAAAABZlMtAAAAAXNSR0IArs4c6QAAEthJREFUeF7tXV2IXdd1Xmufc+/8SKpkIyXWzDQ2Soqhfaghfgl9qENMgkPBdqgI2JE0M6ltQv8cSil9CJ2WpA+BkqQlBNvx/Ehxiq0SbFJqEhzivCQQHHAfGggkRsIaRYlkRX/zd+85a9Vr7b3PPefM/ZNGGYnMOi/nnr3XXn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qOKnLAPh0v7zUk0eXPgScv9rJCyLfOfjJs8dn5rt6XSs0BAwBQ8AQGBqBYo36Rrff+Wx5+KKkhg29rjLww2ePz742tBUmaAgYAoaAIdATAXXUYfud7OwoiCzMfBpzfKQfkWXy2OJnmfjfivzTCOcB4aPLi/3/wsvuhyFgCBgChsDwCGCvPdL9t98xTh5d+ioAf6bU1c8oyz/2y2/+xenhuzdJQ8AQMAQMgUEIYH0LnuzsWHX4dK890h/4638fWb+850UGKP65HAB/NDK68ZD9+/gguK3eEDAEDIHrR0CXPiaOzL+MiOJ4v7J8fObpXmqmPv31O7md/jcAfyjKIMAro3uvfvLn//E3svfdDkPAEDAEDIGbjIA6at2Sl8EDZ78x83Iv/Qcf+/rdSSP9HjO/v5BB/NLy0rG/u56/lLnJ9ps6Q8AQMAR+5xEYKtfHwSPP3+/Q/Q8AHFBEZEepw79cXpr+2u88QjZAQ8AQMARuMQIDHfXU0ecfAnDfYoBRbytvMMAnzx6ffeUW227dGwKGgCGwIxAYkOtjYRYBngv/ciqAXARwf7Z8/NiPdgQ6NkhDwBAwBG4DBPr8C/n8vwLiP0YbZV914txH3l6a/sVtYLeZYAgYAobAjkFgk6P+4JPPNM5tNF8AhsMlFN7ME/7ouYXZ8zsGGRuoIWAIGAK3CQIVR71/9vk9Ixl+G6D8J7b8Ko+2//zss0+t3iY2mxmGgCFgCOwoBCqO+n2PvXBHnrZ/DMAfEBQQYP7ModNPwNxcPV3bjgLJBmsIGAKGwK1EYNPSh+yXdmn6BiB9ZXlp9vO30jjr2xAwBAwBQ6DHX3HdM72w79TijPyLjR2GgCFgCBgCtxiB/weD2jMQWbgYrgAAAABJRU5ErkJggg==",Ca={...we,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{},gradientShow:!1,gradientColor:"",gradientOffset:1,gradientAngle:"180deg",isTransparent:!1,titleMode:"type-1"},wa=ve(Ca),gl=["click"],rf=n.defineComponent({name:"EcanBorder",props:{...wa},setup(e){const o=Ce(e,["background"]),t=n.computed(()=>{const{isTransparent:y,gradientShow:f,gradientColor:S,gradientOffset:D,gradientAngle:p,backgroundColor:b}=e;if(f){let x=S;return y&&(x="transparent"),x?{background:`linear-gradient(${p}, ${b}, ${x} ${D*100}%)`}:{}}else return{}}),a=n.computed(()=>{const{events:y}=e;let f={};return y!=null&&y.length&&y.find(D=>D.emit==="showModal")&&(f={cursor:"pointer"}),f}),{theme:r}=n.inject(Me,{theme:"light"}),i=n.computed(()=>{let y="";switch(e.titleMode){case"type-2":y="2";break}return y}),s=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-left.png":tf,"../../assets/border-title-decoration-left2.png":nf})[`../../assets/border-title-decoration-left${i.value}.png`],self.location).href),l=n.computed(()=>new URL(Object.assign({"../../assets/border-title-decoration-right.png":of,"../../assets/border-title-decoration-right2.png":af})[`../../assets/border-title-decoration-right${i.value}.png`],self.location).href),d=n.computed(()=>({width:"100%",height:"100%"})),c=n.computed(()=>{const{borderRadius:y}=e,f=[],S={};if(y){const D=y.split(",");for(const p of D)(+p||+p==0)&&f.push(+p+"px")}return f!=null&&f.length&&(S.borderRadius=f.join(" ")),S}),g=Ee(e)("click",()=>{}),m=n.ref([]);n.watch(()=>e.data,y=>{m.value=y},{immediate:!0,deep:!0}),Le(e,{click:g});const{setGlobalModel:h}=n.inject(Be,{setGlobalModel:(y,f)=>{}});return h(e.id,{type:e.type,value:m}),{style:o,gradientStyle:t,click:g,borderStyle:d,theme:r,borderRadiusStyle:c,titleLeftIcon:s,titleRightIcon:l,cursorStyle:a}}}),k1="",Tt=e=>(n.pushScopeId("data-v-8dd53b8f"),e=e(),n.popScopeId(),e),lf=["id"],sf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),cf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),df=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ff=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),uf={class:"title-item"},hf=["src"],gf={class:"title"},mf=["src"],yf=Tt(()=>n.createElementVNode("div",{class:"top-left border-item"},null,-1)),xf=Tt(()=>n.createElementVNode("div",{class:"top-right border-item"},null,-1)),pf=Tt(()=>n.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),bf=Tt(()=>n.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),vf={key:2,class:"left-title"},Sf={class:"title"};function Cf(e,o,t,a,r,i){return n.openBlock(),n.createElementBlock("div",{class:"ecan-border",style:n.normalizeStyle({...e.style,...e.gradientStyle,...e.borderRadiusStyle,...e.cursorStyle}),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s)),id:"container_"+e.id},[e.mode==="no-title"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"no-title",style:n.normalizeStyle(e.borderStyle)},[e.useBorderModify?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[sf,cf,df,ff],64)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),e.mode==="top-title"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"top-title",style:n.normalizeStyle(e.borderStyle)},[n.createElementVNode("div",{class:n.normalizeClass(["title-item-wrapper",e.titleMode])},[n.createElementVNode("div",uf,[n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleLeftIcon},null,10,hf),n.createElementVNode("div",gf,n.toDisplayString(e.title),1),n.createElementVNode("img",{class:n.normalizeClass(["title-decoration",e.titleMode]),src:e.titleRightIcon},null,10,mf)])],2),yf,xf,pf,bf],4)):n.createCommentVNode("",!0),e.mode==="left-title"?(n.openBlock(),n.createElementBlock("div",vf,[n.createElementVNode("div",Sf,[n.createElementVNode("span",null,n.toDisplayString(e.title),1)])])):n.createCommentVNode("",!0)],12,lf)}const ml=pe(ye(rf,[["render",Cf],["__scopeId","data-v-8dd53b8f"]])),Aa={...we,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,containIds:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start",tabType:"tabs",tabWidth:"120px"},ka=ve(Aa),yl=["tabChange"],wf=n.defineComponent({name:"EcanTabs",props:{...ka},components:{ASelect:ce.Select,ASelectOption:ce.SelectOption},setup(e){const o=Ce(e),t=n.ref(0);n.watch(()=>e.activeKey,h=>{t.value=h},{immediate:!0});const{pageMode:a}=n.inject(Me,{pageMode:"normal"});let r=null;const i=()=>{const h=Array.isArray(n.unref(s))?n.unref(s).length-1:0;e.autoSwitch&&h>0&&(r=setInterval(()=>{const y=n.unref(t)+1;y<=h?t.value=y:t.value=0,l.value=n.unref(s)[n.unref(t)],g()},e.autoSwitchInterval*1e3))};n.onMounted(()=>{n.unref(a)!=="design"&&i()}),n.onBeforeUnmount(()=>{clearInterval(r)});const s=n.ref([]),l=n.ref({});n.watch(()=>e.data,h=>{s.value=h,l.value=Array.isArray(h)&&h.length>0?h[0]:{}},{immediate:!0,deep:!0});const d=h=>t.value===h,c=Ee(e),{setGlobalModel:u}=n.inject(Be,{setGlobalModel:(h,y)=>{}});u(e.id,{value:l,activeKey:t});const{emitRefreshPage:g}=n.inject(Jt,{emitRefreshPage:()=>{}}),m=c("tabChange",(h,y)=>{y!==n.unref(t)&&(l.value=h,t.value=y,g())});return Le(e,{tabChange:m}),{style:o,activeKey:t,isActive:d,tabChange:m,myData:s,useImagePath:At}}}),B1="",Af=["id"],kf=["onClick"];function Tf(e,o,t,a,r,i){const s=n.resolveComponent("a-select-option"),l=n.resolveComponent("a-select");return n.openBlock(),n.createElementBlock("div",{class:"ecan-tabs",style:n.normalizeStyle(e.style),id:"container_"+e.id},[n.createElementVNode("div",{class:"tabs-header",style:n.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[e.tabType==="tabs"?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(e.myData,(d,c)=>(n.openBlock(),n.createElementBlock("div",{class:"tab",style:n.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(c)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(c)?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:c,onClick:n.withModifiers(u=>e.tabChange(d,c),["prevent","stop"])},[n.createElementVNode("div",{class:"tab-inner",style:n.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},n.toDisplayString(d.title),5)],12,kf))),128)):e.tabType==="select"?(n.openBlock(),n.createBlock(l,{key:1,value:e.activeKey,style:n.normalizeStyle({width:e.tabWidth})},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.myData,(d,c)=>(n.openBlock(),n.createBlock(s,{key:c,value:c,onClick:u=>e.tabChange(d,c)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(d.title),1)]),_:2},1032,["value","onClick"]))),128))]),_:1},8,["value","style"])):n.createCommentVNode("",!0)],4)],12,Af)}const xl=pe(ye(wf,[["render",Tf],["__scopeId","data-v-fbab260a"]])),Ta={...we,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:"",data:{},isHoverStyle:!1},Ba=ve(Ta),pl=["click"],Ea=n.defineComponent({name:"EcanImage",props:{...Ba},setup(e){const o=Ce(e),t=n.computed(()=>At(e.imgUrl)),{pageMode:a}=n.inject(Me,{pageMode:"normal"}),{getGlobalModel:r,setGlobalModel:i}=n.inject(Be,{getGlobalModel:d=>{},setGlobalModel:(d,c)=>{}}),l=Ee(e)("click",()=>{const d=r(e.id);if(i(e.id,{...d,type:e.type,RECORD:e.data||{}}),setTimeout(()=>{i(e.id,{...d,type:e.type,RECORD:{}})},0),!e.linkPage&&!e.href)return;const c=e.linkPage||"",u=mi(n.unref(a),c),g=e.href;let m=g||u;m=De(m);const h=e.target;h&&(h!=="event"?window.open(m,"_"+h):window.parent.postMessage({type:"openPage",url:g},"*"))});return Le(e,{click:l}),{style:o,myImgUrl:t,onClick:l}}}),bl=()=>{n.useCssVars(e=>({"102827c2":e.isHoverStyle?"pointer":"auto","5de838e7":e.isHoverStyle?"0.6":"1"}))},vl=Ea.setup;Ea.setup=vl?(e,o)=>(bl(),vl(e,o)):bl;const D1="",Bf=["src"];function Ef(e,o,t,a,r,i){return e.myImgUrl!==""?(n.openBlock(),n.createElementBlock("img",{key:0,class:"ecan-image",style:n.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Bf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"image-placeholder",style:n.normalizeStyle(e.style)}," 请上传图片 ",4))}const Sl=pe(ye(Ea,[["render",Ef],["__scopeId","data-v-47ea6e7c"]])),Da={...we,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Ra=ve(Da),Df=n.defineComponent({name:"EcanIframe",props:{...Ra},setup(e){const o=Ce(e),{contextRequestUrl:t}=n.inject(Me,{contextRequestUrl:""}),a=n.computed(()=>{let r=De(e.link);if(e.linkType==="erd"&&r!=null){let i=n.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${is||i}?_t=0&uid=${r}`}return r});return{style:o,myLink:a}}}),I1="",Rf=["src"];function If(e,o,t,a,r,i){return e.myLink?(n.openBlock(),n.createElementBlock("iframe",{key:0,src:e.myLink,style:n.normalizeStyle(e.style)},null,12,Rf)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"iframe-placeholder",style:n.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Cl=pe(ye(Df,[["render",If],["__scopeId","data-v-19bc100c"]])),Ia={...we,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",headerFontColor:"",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",cellFontColor:"",headerBackgroundColor:"",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:{},stripedShow:!1,stripedColor:"#fafafa",isGroupTable:!0,seqWidth:"10%",seqName:"序号",seqIcon:!1,isSummaryFixed:!1,isPageBottom:!1,isShowTotal:!1,hideTableHeader:!1,paginationColor:"",paginationBgColor:"",activePaginationColor:"",activePaginationBgColor:"",hoverBackgroundColor:"",subTotalColumn:"",subTotalName:"小计",isSortByFront:!1},_a=ve(Ia),wl=["click","refreshData","resetRecord","exportTableData"],_f="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAAAAXNSR0IArs4c6QAABzRJREFUaEPtWktzVEUUPn1fk5lJ5DVJeEx4hMRAxABCBKRUqtTS8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rqDPKqwK8zGDzbqDqDvCrw6wwGiyCDeCZn+RfpsO2GYGCgnxBUqWeEVpdpMc44JjiRhqMyHfbvxT7KUjbE4xifWxBbRHsoABhCd3VwmJh5+YJMdmYz2ZLZ6kyKLmlOYP9YHM/9WJim4aAc2F6lC+dznwp5f1f7TWpX8QY6XatygXW8ls6dwNgroo3JTUIwNXgFu42OjFCWcuny5PNCF6mvo0CyQk4h+X+EuZXPUHkGUd/YJJd9hZqQHTcvjqj5anpe3rzY2m6viC48KcguBQZaHvItgm4rgco+GXrubaIHY2uEnMlMEwMGrAUlP52jLGVTSxITqdXza0jn3CdTQ5LqMYuWQg5XV6nHnKOFAjT8CPByvatojr7iDXRD9b3uU0+iXocOqmcm6qYmpkiVuiIRakom5DUJANAMY61jTJV/lhlVLHyH+Pvttg0/2GN7v0NaFMHAQHpRKghBm03yVoYodDODw1tENnUi4too+YHxn6jelHcBsjeiR5Xu8O6VGTfWeNV5oujcMdDFreqwIKoi7FE8q14dz8qMKQAc392e84qGl373h2Bg4INH8D9A563p5gHY1gAAAABJRU5ErkJggg==",Oa=n.defineComponent({name:"EcanTable",components:{Skeleton:ln,AButton:ce.Button,AInput:ce.Input,ACheckboxGroup:ce.CheckboxGroup,ATable:ce.Table,ATableSummary:ce.TableSummary,ATableSummaryRow:ce.TableSummaryRow,ATableSummaryCell:ce.TableSummaryCell},props:{..._a},setup(e,{expose:o}){const t=n.ref(!1),a=n.computed(()=>{const H=qe.cloneDeep(e.columns);return e.isUseSeq&&H.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&H.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),H}),r=n.ref(),i=n.ref(!1),s=Ce(e),l=n.ref([]),d=n.computed(()=>e.scrollX),c=n.ref(0),u=()=>{let H=0;switch(e.size){case"small":H=50;break;case"middle":H=53;break;default:H=65;break}return H};n.watchEffect(()=>{var H;(H=l.value)!=null&&H.length&&e.height&&n.nextTick(()=>{let Z=parseFloat(e.height);const Q=document.querySelector(`#ecanTable-${e.id} .ant-table-tbody`),oe=document.querySelector(`#ecanTable-${e.id} thead.ant-table-thead`),ie=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`);let te=0;if(oe&&(Z-=(oe==null?void 0:oe.clientHeight)||0),ie&&e.isSummaryFixed&&(te=(ie==null?void 0:ie.clientHeight)||0,Z-=te),e.paginationShow){let ee=0;ee=u(),ee&&(Z-=ee)}(Q==null?void 0:Q.clientHeight)>Z?c.value=Z:c.value=0,n.nextTick(()=>{if(te){const ee=document.querySelector(`#ecanTable-${e.id} .ant-table-summary`),fe=(ee==null?void 0:ee.clientHeight)||0;te!==fe&&n.unref(c)&&(c.value=Z+te-fe)}})})});const g=n.ref([]),m=n.ref([]),h=n.ref([]),y=n.ref([]),f=n.ref(0),S=n.ref(1),D=n.ref(e.paginationPageSize||10),p=n.reactive([]),b=(H=[])=>{var Z,Q;if(Array.isArray(H)&&H.length>0){let oe=H.length;const ie=e.columnsFixedNum;if(e.dataType==="indicator"&&((Z=n.unref(a))!=null&&Z.length)){const{graphicConfig:{indicators:te=[]}}=e;H.forEach((ee,fe)=>{if(n.unref(a)[fe])for(const Oe in n.unref(a)[fe])["dataIndex","title"].includes(Oe)||(ee[Oe]=n.unref(a)[fe][Oe]);const he=te.find(Oe=>Oe.label===ee.title),{showLabel:ge=""}=he||{};ge&&(ee.title=ge)})}for(let te=oe-1;te>=0;te--)(Q=H[te])!=null&&Q.isHidden&&H.splice(te,1);oe=H.length;for(let te=0;te<oe;te++){const ee=H[te];if(te<ie?ee.fixed="left":ee.fixed=!1,e.isSortByFront&&ee.sorter){const Ke=ee.dataIndex;ee.sorter=(_t,$t)=>_t[Ke]-$t[Ke]}const{cellAlign:fe="center",cellColor:he,dataIndex:ge,title:Oe,tableFilter:Ye,headerCellAlign:yt,headerCellColor:It,overflow:Sn}=ee;Ye&&(p.push(ge),ee.filterOptionsInputValue="",ee.filterCheckboxGroupValue=[],ee.customFilterDropdown=!0,ee.onFilter=(Ke,_t)=>_t[ge].toString().toLowerCase().includes(Ke.toLowerCase())),ee.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:yt||"center",color:It||e.headerFontColor,borderBottomColor:e.borderColor,backgroundColor:e.headerBackgroundColor}}),ee.customCell=(Ke,_t)=>({style:{textAlign:fe,color:he||e.cellFontColor,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:n.unref(W)===_t&&e.clickHighlight},onClick:U("click",()=>{const $t=e.id,Cn=z($t);Ke={dataIndex:ge,title:Oe,...Ke},q($t,{...Cn,type:e.type,RECORD:Ke})})}),Sn==="ellipsis"?ee.ellipsis=!0:ee.ellipsis=!1,Array.isArray(ee.children)&&b(ee.children)}}},x=(H=[])=>{var Q;let Z=qe.cloneDeep(H);return(Q=n.unref(y))!=null&&Q.length&&(Z=qe.cloneDeep(n.unref(y))),e.isUseSeq&&Z.unshift({title:e.seqName,dataIndex:"SEQ",align:"center",width:e.seqWidth}),e.isUseAction&&Z.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(Z),Z};n.watch(D,()=>{S.value=1,Y(!1)}),n.watch(r,H=>{i.value=!!H}),n.watch(()=>[e.columns,e.isUseSeq,e.seqWidth,e.seqName,e.seqIcon,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.headerBackgroundColor,e.borderColor,e.stripedColor],()=>{g.value=x(qe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),n.watch(()=>[e.data,e.dataType],([H,Z])=>{Z==="static"&&(m.value=H)},{immediate:!0});const k=n.ref({}),T=H=>{if(Array.isArray(H)){const Z=H.length,Q=p,oe=Q.length,ie={};for(let ee=0;ee<Z;ee++){const fe=H[ee];for(let he=0;he<oe;he++){const ge=Q[he];if(ie[ge])ie[ge].add(fe[ge]);else{const Oe=new Set;Oe.add(fe[ge]),ie[ge]=Oe}}}const te={};for(const ee in ie)if(Object.prototype.hasOwnProperty.call(ie,ee)){const fe=ie[ee],he=Array.from(fe);te[ee]=he.map(ge=>({label:ge,value:ge}))}k.value=te}};n.watch(()=>[e.isReverse,g.value,m.value],()=>{const H=n.unref(g),Z=n.unref(m);if(T(Z),e.isReverse){const{columns:Q,dataSource:oe}=R(qe.cloneDeep(H),qe.cloneDeep(Z));h.value=Q,l.value=oe}else h.value=H,l.value=Z},{immediate:!0});const R=(H,Z)=>{const Q=H[0],oe=[{title:Q.title,dataIndex:"col0",key:"col0",align:"center"}];for(let te=0;te<Z.length;te++){const ee=Z[te],fe="col"+(te+1);oe.push({title:ee[Q.dataIndex],dataIndex:fe,key:fe,align:"center"})}const ie=[];for(let te=1;te<H.length;te++){const ee=H[te],fe={col0:ee.title};for(let he=0;he<Z.length;he++){const ge=Z[he];fe[`col${he+1}`]=ge[ee.dataIndex]}ie.push(fe)}return{columns:oe,dataSource:ie}},_=n.ref(""),F=He(e),A=async(H=!0,Z={})=>{var Q;try{H&&(t.value=!0),n.unref(_)&&(Z.orderCondition=n.unref(_)),e.paginationShow&&(Z={pageNum:n.unref(S),pageSize:n.unref(D)||"10",layer:"1",...Z});const oe=await F(Z),{rows:ie=[],total:te=0}=((Q=oe==null?void 0:oe.data)==null?void 0:Q.data)||{};if(f.value=te,Array.isArray(ie)&&(m.value=ie),window.config.routerBaseURL.includes("1523545080925487106")){const{requestParams:ee=[]}=e,fe=ee.find(he=>he.key==="dataSqlId");if((fe==null?void 0:fe.value)==="xt_jxzebg"){const he=ie.filter(ge=>!ge.绩效总额).map(ge=>ge.ORG_NAME);he!=null&&he.length&&n.nextTick(()=>{ce.notification.warning({message:"提示",description:`当前时段${he.join("、")}绩效数据为空`,duration:3})})}}}catch(oe){console.error(oe)}finally{t.value=!1}},v=({current:H},Z,Q)=>{if(S.value=H,Q&&Object.keys(Q).length>0){const{field:oe,order:ie}=Q,ee={ascend:"asc",descend:"desc"}[ie];oe!=null&&ee!=null&&ee?_.value=oe+" "+ee:ee||(_.value="")}e.isSortByFront||Y(!1)},w=n.computed(()=>{const H=e.simple,Z=[e.paginationPosition],Q={};return e.isShowTotal&&(Q.showTotal=oe=>`共 ${oe} 条数据`),e.paginationShow&&{simple:H,position:Z,total:n.unref(f),current:n.unref(S),pageSize:n.unref(D)||"10",showSizeChanger:!1,size:"large",...Q}}),C=H=>+H==1?"是":+H==0?"否":H,B=(H,Z)=>{const{format:Q,retentiondigit:oe,customFormatter:ie}=Z;if(Q==null||Q==="")return H;const te={money:Eo,percentage:pn,contrast:pn,boolean:C,decimals:gc,custom:gi};return te[Q]?Q==="decimals"?te[Q](H,oe)||"":Q==="custom"?te[Q](H,ie)||"":te[Q](H)||"":""},E=H=>H==="contrast"?"upDown":"",L=H=>{const{text:Z,format:Q,declineColor:oe="#39cf93",increaseColor:ie="#ff512e"}=H;if(Q==="contrast"){const te={fontSize:e.fontSize},ee=parseFloat(Z+"");return ee>=0?te.color=ie:ee<0&&(te.color=oe),te}else return{}},M=n.computed(()=>{const{fontSize:H}=e;return{width:H,height:H,textIndent:`-${parseFloat(H)*2}px`,overflow:"hidden"}}),P=H=>{const{text:Z,declineColor:Q="#39cf93",increaseColor:oe="#ff512e"}=H,{fontSize:ie}=e,te=parseFloat(Z+""),ee={width:ie,verticalAlign:"unset"};return te>=0?ee.filter=`drop-shadow(${oe||"#ff512e"} ${ie} -1px)`:te<0&&(ee.filter=`drop-shadow(${Q||"#39cf93"} ${ie} -1px)`),ee},V=H=>{const Z=parseFloat(H+"");if(Z>=0)return Oo;if(Z<0)return Lo},U=Ee(e),{getGlobalModel:z,setGlobalModel:q}=n.inject(Be,{getGlobalModel:H=>{},setGlobalModel:(H,Z)=>{}});q(e.id,{type:e.type,RECORD:""});const O=(H=[],Z=[])=>{const Q=H.map(oe=>({title:oe,dataIndex:oe,key:oe}));y.value=qe.cloneDeep(Q),g.value=x(Q),m.value=Z},I=it(e),N=async(H=!0)=>{var Z,Q,oe,ie;try{H&&(t.value=!0);const te=n.unref(_).split(" "),ee={};e.isSortByFront||(ee.sort={order:te[1],field:te[0]});const fe=await I(ee);O((Q=(Z=fe==null?void 0:fe.data)==null?void 0:Z.data)==null?void 0:Q.columns,(ie=(oe=fe==null?void 0:fe.data)==null?void 0:oe.data)==null?void 0:ie.rows)}catch(te){console.error(te)}finally{t.value=!1}},W=n.ref(-1),J=(H,Z)=>({onClick:U("rowClick",()=>{const Q=e.id,oe=z(Q);q(Q,{...oe,type:e.type,RECORD:H}),W.value=Z})}),{loadedData:$}=n.inject(bt,{loadedData:{}}),ae=n.ref(!1);n.watch($,H=>{if(e.dataType==="indicator"){const Z=en(e.graphicConfig);Z!=null&&Z.length&&(!n.unref(ae)&&at(e.graphicConfig,H)?(ae.value=!0,Y()):at(e.graphicConfig,H)||(ae.value=!1))}},{deep:!0});const Y=(H=!0)=>{switch(e.dataType){case"request":A(H);break;case"indicator":at(e.graphicConfig,n.unref($))&&N(H);break}},le=()=>{const H=e.id,Z=z(H);q(H,{...Z,type:e.type,RECORD:""})},re=n.computed(()=>{const H=n.unref(h);let Z=0;const{subTotalColumn:Q,subTotalName:oe}=e;Q&&(Z=H.findIndex(he=>he.dataIndex===Q),Z<0&&(Z=0));const ie=[];let te=0;for(let he=0;he<H.length;he++){const ge=H[he],{isCalcTotal:Oe}=ge;he===Z?ie.push({...ge,total:oe}):Oe?(ie.push({...ge,index:he,total:0}),te++):ie.push({...ge})}if(te===0)return[];const ee=n.unref(l),fe=K(ie);for(let he=0;he<fe.length;he++){const ge=fe[he];let Oe=0;const{isCalcTotal:Ye,dataIndex:yt}=ge;if(Ye===!0){for(let It=0;It<ee.length;It++){const Ke=+ee[It][yt];isNaN(Ke)||(Oe=new Pl.Big(Oe).add(Ke).toNumber())}ge.total=Oe}}return fe});function K(H){var Q;const Z=[];for(const oe of H)(Q=oe.children)!=null&&Q.length?Z.push(...K(oe.children)):Z.push(oe);return Z}const{setRequest:X}=n.inject(ze,{setRequest:H=>{}});typeof X=="function"&&X({id:e.id,requestFn:Y,sortNum:e.requestSort}),o({refreshData:Y});const ne=(H="",Z)=>De(H,Z),xe=H=>{if(H!=="event")return{self:"_self",blank:"_blank"}[H]},Ae=(H,Z="")=>{H==="event"&&window.parent.postMessage({type:"openPage",url:Z},"*")},ke=(H,Z)=>{H(Z.filterCheckboxGroupValue)},$e=(H,Z)=>{H({confirm:!0}),Z.filterOptionsInputValue="",Z.filterCheckboxGroupValue=[]},Fe=()=>{},Ie=H=>{const Z=H.dataIndex;if(typeof Z=="string"){let Q=n.unref(k)[Z];const oe=n.unref(H.filterOptionsInputValue).trim();return Array.isArray(Q)?(Q=Q.filter(ie=>typeof ie.label=="string"?ie.label.toLowerCase().includes(oe.toLowerCase()):!0),Q):[]}return[]},Te=async()=>{var ge,Oe;const H="EXPORT_KEY";ce.message.loading({key:H,content:"正在导出...",duration:0});let Z=[];if(e.dataType==="static")Z=e.data;else if(e.dataType==="request"){const Ye={layer:"1"};n.unref(_)&&(Ye.orderCondition=n.unref(_));const yt=await F(Ye);Z=((Oe=(ge=yt==null?void 0:yt.data)==null?void 0:ge.data)==null?void 0:Oe.rows)||{}}const Q=n.unref(h),oe=[],ie=[];Q==null||Q.forEach(Ye=>{oe.push(Ye.dataIndex),ie.push(Ye.title)});const te=Z.map(Ye=>qe.pick(Ye,oe)),ee=Zt.utils.book_new(),fe=Zt.utils.aoa_to_sheet([ie]),he=Zt.utils.sheet_add_json(fe,te,{skipHeader:!0,origin:"A2"});Zt.utils.book_append_sheet(ee,he,"sheet"),Zt.writeFile(ee,"表格数据.xlsx"),ce.message.success({key:H,content:"导出成功"})},Ne=(H,Z=2)=>{const Q=+H*100;return isNaN(Q)||Q<=0?0:Q>=100?100:Q.toFixed(Z)};Le(e,{resetRecord:le,refreshData:Y,exportTableData:Te});const Ve=(H,Z)=>{let Q=null;return e.stripedShow&&(Q=Z%2===1?"table-striped":null),Q},et=n.computed(()=>{let H=0;const{height:Z,isPageBottom:Q}=e;return Q&&Z&&(H=parseFloat(Z)-u()),H?H+"px":"100%"}),je=n.computed(()=>{let H="#071655";return e.headerBackgroundColor&&(H="transparent"),H}),We=n.computed(()=>{let H="#071655";return(e.cellBackgroundColor||e.stripedShow&&e.stripedColor)&&(H="transparent"),H}),ct=n.computed(()=>parseFloat(e.fontSize)+16),Ze=n.computed(()=>{let H="";const{paginationColor:Z,paginationBgColor:Q,activePaginationColor:oe,activePaginationBgColor:ie,hoverBackgroundColor:te}=e;return Z&&(H+="p-color "),Q&&(H+="p-bg-color "),oe&&(H+="active-p-color "),ie&&(H+="active-p-bg-color "),te&&(H+="hover-bg-color "),H});return{x:d,y:c,style:s,customRow:J,pagination:w,formatFn:B,contrastClass:E,tableChange:v,summaryList:re,loading:t,onTouchHrefEvent:Ae,handleHref:ne,handleHrefTarget:xe,useRowIndex:W,tableColumns:h,tableDataSource:l,useFilterOptions:Ie,useSetSelectedKeys:ke,onResetFilter:$e,onSearchFilterOptions:Fe,exportTableData:Te,handleProgressText:Ne,pageSizeVisible:i,pageSize:D,tableRef:r,rowClassName:Ve,tableHeight:et,tableHeaderBgColor:je,tableBodyBgColor:We,getChgStyle:L,chgBoxStyle:M,getChgBoxImgStyle:P,getChgBoxImgSrc:V,seqIcon1:_f,seqIcon2:Of,seqIcon3:Lf,iconSize:ct,containerClass:Ze,getCellStyle:H=>{const{overflow:Z}=H;if(Z==="ellipsis")return{overflow:"hidden",textOverflow:"ellipsis"};if(Z==="wrap")return{}}}}}),Al=()=>{n.useCssVars(e=>({"70c383fc":e.stripedColor,"35e71b39":e.tableHeaderBgColor,"53718c84":e.tableBodyBgColor,cedc7664:e.paginationBgColor,"6ceaca13":e.paginationColor,"25b86a30":e.activePaginationBgColor,"6a9b8ead":e.activePaginationColor,"7d7d7e0f":e.hoverBackgroundColor}))},kl=Oa.setup;Oa.setup=kl?(e,o)=>(Al(),kl(e,o)):Al;const O1="",L1="",Nf=e=>(n.pushScopeId("data-v-f641124f"),e=e(),n.popScopeId(),e),Ff=["id"],Mf={key:0,class:"table-tool"},zf=n.createTextVNode("导出数据"),Pf=n.createTextVNode(" 搜索 "),qf=n.createTextVNode(" 重置 "),Hf=["src","width","height"],Vf=["src","width","height"],jf=["src","width","height"],Wf={key:1},Uf={key:1,class:"action-list"},Gf=["href","target","onClick"],$f={key:2,class:"progress-cell"},Zf=["title"],Yf=["title"],Kf=["src"],Qf=["title"],Jf=["src"],Xf={class:"ant-pagination-options-quick-jumper"},eu=Nf(()=>n.createElementVNode("span",null,"条 / 页",-1));function tu(e,o,t,a,r,i){const s=n.resolveComponent("a-button"),l=n.resolveComponent("a-input"),d=n.resolveComponent("a-checkbox-group"),c=n.resolveComponent("a-table-summary-cell"),u=n.resolveComponent("a-table-summary-row"),g=n.resolveComponent("a-table-summary"),m=n.resolveComponent("a-table"),h=n.resolveComponent("skeleton");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["ecan-table",e.containerClass]),id:"ecanTable-"+e.id,style:n.normalizeStyle(e.style)},[n.createVNode(h,{loading:e.loading},{default:n.withCtx(()=>{var y;return[e.isUseExport?(n.openBlock(),n.createElementBlock("div",Mf,[n.createVNode(s,{class:"export-button",onClick:e.exportTableData},{default:n.withCtx(()=>[zf]),_:1},8,["onClick"])])):n.createCommentVNode("",!0),n.createVNode(m,{ref:"tableRef",class:"table",style:n.normalizeStyle({height:e.tableHeight}),columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:e.y?{x:e.x,y:e.y}:{},pagination:e.pagination,"row-class-name":e.rowClassName,"show-header":!e.hideTableHeader,onChange:e.tableChange},{customFilterDropdown:n.withCtx(({column:f,selectedKeys:S,setSelectedKeys:D,confirm:p,clearFilters:b})=>[n.createElementVNode("div",{class:"ecan-table-filter",style:n.normalizeStyle({height:e.filterDropdownHeight})},[n.createVNode(l,{value:f.filterOptionsInputValue,"onUpdate:value":x=>f.filterOptionsInputValue=x,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),n.createVNode(d,{value:f.filterCheckboxGroupValue,"onUpdate:value":x=>f.filterCheckboxGroupValue=x,class:"filter-checkbox",options:e.useFilterOptions(f),onChange:x=>e.useSetSelectedKeys(D,f)},null,8,["value","onUpdate:value","options","onChange"]),n.createElementVNode("div",null,[n.createVNode(s,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:n.withCtx(()=>[Pf]),_:2},1032,["onClick"]),n.createVNode(s,{size:"small",style:{width:"90px"},onClick:n.withModifiers(x=>e.onResetFilter(b,f),["stop"])},{default:n.withCtx(()=>[qf]),_:2},1032,["onClick"])])],4)]),bodyCell:n.withCtx(({column:f,index:S,text:D,record:p})=>{var b,x,k,T;return[f.dataIndex==="SEQ"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.seqIcon?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[S===0?(n.openBlock(),n.createElementBlock("img",{key:0,class:"seq-icon",src:e.seqIcon1,width:e.iconSize,height:e.iconSize},null,8,Hf)):S===1?(n.openBlock(),n.createElementBlock("img",{key:1,class:"seq-icon",src:e.seqIcon2,width:e.iconSize,height:e.iconSize},null,8,Vf)):S>=2?(n.openBlock(),n.createElementBlock("img",{key:2,class:"seq-icon",src:e.seqIcon3,width:e.iconSize,height:e.iconSize},null,8,jf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:"seq-icon seq-text",style:n.normalizeStyle({fontSize:e.fontSize})},n.toDisplayString(S+1),5)],64)):(n.openBlock(),n.createElementBlock("span",Wf,n.toDisplayString(S+1),1))],64)):f.dataIndex==="ACTION"?(n.openBlock(),n.createElementBlock("div",Uf,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actionList,(R,_)=>(n.openBlock(),n.createElementBlock("div",{class:"action",key:_},[n.createElementVNode("a",{href:e.handleHref(R.href,p),target:e.handleHrefTarget(R.target),style:n.normalizeStyle({color:R.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:F=>e.onTouchHrefEvent(R.target,e.handleHref(R.href,p))},n.toDisplayString(R.title),13,Gf)]))),128))])):f.format==="progress"?(n.openBlock(),n.createElementBlock("div",$f,[n.createElementVNode("div",{class:"progress",style:n.normalizeStyle({background:f.progressColor||"#1890ff",height:f.progressWidth||"18px",width:`${e.handleProgressText(D,f.progressTextDecimalPlaces)}%`})},null,4),n.createElementVNode("div",{class:"progress-text",style:n.normalizeStyle({color:+e.handleProgressText(D)<100?f.progressTextColor||"#333":f.progressFinishedTextColor||"#fff"})},n.toDisplayString(e.handleProgressText(D,f.progressTextDecimalPlaces))+"% ",5)])):(n.openBlock(),n.createElementBlock("div",{key:3,style:n.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight,...e.getCellStyle(f)})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:0,title:((b=f==null?void 0:f.customFormatter)==null?void 0:b.split("{value}")[0])||""},n.toDisplayString(((x=f==null?void 0:f.customFormatter)==null?void 0:x.split("{value}")[0])||""),9,Zf)):n.createCommentVNode("",!0),n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle(e.getChgStyle({...f,text:D})),title:f.format!=null?e.formatFn(D,f):D},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:D})),src:e.getChgBoxImgSrc(D)},null,12,Kf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString(f.format!=null?e.formatFn(D,f):D),1)],14,Yf),f.format==="contrast"?(n.openBlock(),n.createElementBlock("span",{key:1,title:((k=f==null?void 0:f.customFormatter)==null?void 0:k.split("{value}")[1])||""},n.toDisplayString(((T=f==null?void 0:f.customFormatter)==null?void 0:T.split("{value}")[1])||""),9,Qf)):n.createCommentVNode("",!0)],4))]}),summary:n.withCtx(()=>[e.summaryList.length>0?(n.openBlock(),n.createBlock(g,{key:0,fixed:e.isSummaryFixed},{default:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.summaryList,(f,S)=>(n.openBlock(),n.createBlock(c,{key:S,index:S,style:n.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:f.cellAlign||"center",color:e.cellFontColor,borderBottomColor:e.borderColor})},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass([e.contrastClass(f.format)]),style:n.normalizeStyle({...e.getChgStyle({...f,text:f.total}),fontSize:e.fontSize,fontWeight:e.fontWeight})},[f.format==="contrast"?(n.openBlock(),n.createElementBlock("div",{key:0,style:n.normalizeStyle(e.chgBoxStyle)},[n.createElementVNode("img",{style:n.normalizeStyle(e.getChgBoxImgStyle({...f,text:f.total})),src:e.getChgBoxImgSrc(f.total)},null,12,Jf)],4)):n.createCommentVNode("",!0),n.createTextVNode(" "+n.toDisplayString((f.format!=null||f.format!=="")&&e.formatFn(f.total,f)),1)],6)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1},8,["fixed"])):n.createCommentVNode("",!0)]),_:1},8,["style","columns","data-source","bordered","size","customRow","scroll","pagination","row-class-name","show-header","onChange"]),e.paginationShow?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[(y=e.tableDataSource)!=null&&y.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(n.openBlock(),n.createBlock(n.Teleport,{key:0,to:"#ecanTable-"+e.id+" .ant-pagination"},[n.createElementVNode("div",Xf,[n.withDirectives(n.createElementVNode("input",{type:"text","onUpdate:modelValue":o[0]||(o[0]=f=>e.pageSize=f)},null,512),[[n.vModelText,e.pageSize]]),eu])],8,["to"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)]}),_:1},8,["loading"])],14,Ff)}const Tl=pe(ye(Oa,[["render",tu],["__scopeId","data-v-f641124f"]])),La={...we,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:"{name}:{value}",tooltipRequestData:{requestUrl:"",requestMethod:"get",requestParams:[]},tooltipBackgroundColor:"#fff"},Na=ve(La),Bl=["click"];Qe.use([Et.CanvasRenderer,ht.MapChart,ht.ScatterChart,be.VisualMapComponent,be.TooltipComponent,be.GraphicComponent]);const nu=n.defineComponent({name:"EcanMap",components:{Echarts:xt},props:{...Na},setup(e){const o=He(e),t=He({...e.tooltipRequestData,requestHeaders:{}}),a=n.ref(),r=n.ref(""),i=n.ref(""),s=Ce(e,["backgroundImage"]),l=n.ref(),d=n.computed(()=>At(e.geoBackgroundImage)),c=n.computed(()=>At(e.backgroundImage)),u=n.computed(()=>e.geoBackgroundImage?{image:n.unref(l),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),g=n.computed(()=>{const C=e.symbolImage;return e.symbolImage?"image://"+At(C):"circle"}),m=C=>{let B=e.tooltipFormatter;const E=B.match(/\{(.+?)\}/g);if(E==null||E.length===0)return B;for(let L=0;L<E.length;L++){const M=E[L];let P=M.slice(1,-1).trim();const V=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,U=P.match(V);for(let z=0;z<U.length;z++){const q=U[z],O=C[q];O!=null&&(P=P.replace(q,O))}B=B.replace(M,P)}return B.split(`
|
|
120
120
|
`)},h=n.ref(!1),y=n.ref("");let f=new AbortController;const S=(C,B)=>{const E=f.signal;h.value=!0,r.value=C,t({name:C,signal:E}).then(L=>{var M,P;if(L){const V=((P=(M=L==null?void 0:L.data)==null?void 0:M.data)==null?void 0:P.rows)||[];let U="";for(const z of V){const q=m(z)||[];if(q!=null&&q.length)for(const O of q)U+=`<div style="word-break: break-all;white-space: normal;">${O}</div>`}U=`<div style="max-width:200px;">${U}</div>`,i.value=U,B(n.unref(y),U)}else E.aborted?i.value="Loading":i.value=C,B(n.unref(y),i.value);h.value=!1})},D=n.computed(()=>{const C=e.geoCenter;let B;return typeof C=="string"&&C!==""&&(B=C.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:n.unref(c)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:B,map:`map-${e.id}`,tooltip:{show:e.tooltipShow,trigger:"item",backgroundColor:e.tooltipBackgroundColor,borderColor:"transparent",textStyle:{color:e.tooltipTextStyleColor},formatter:(E,L,M)=>{y.value=L;const{name:P=""}=E,{requestUrl:V}=e.tooltipRequestData;if(!V)return P;if(n.unref(h))n.unref(r)!==P&&(f.abort(),f=new AbortController);else{if(n.unref(r)===P)return n.unref(i);S(P,M)}return"Loading"}},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:n.unref(u),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:n.unref(g),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),p=n.ref(!1),b=async()=>{var E;p.value=!1;const C=e.mapJson,B=`map-${e.id}`;if(C!=null&&C.path){const L=await ft(((E=window==null?void 0:window.config)==null?void 0:E.uploadPath)+C.path);Qe.registerMap(B,(L==null?void 0:L.data)||{})}else Qe.registerMap(B,{});p.value=!0};n.watch(()=>e.mapJson,()=>{b()},{immediate:!0,deep:!0});const x=async()=>{var C,B;if(e.dataType==="request"){p.value=!1;try{const E=await o(),L=((B=(C=E==null?void 0:E.data)==null?void 0:C.data)==null?void 0:B.rows)||{},M=`map-${e.id}`;if(L!=null&&L.path){const P=await ft(L.path);Qe.registerMap(M,(P==null?void 0:P.data)||{})}else Qe.registerMap(M,{})}catch(E){console.error(E)}finally{p.value=!0}}},k=()=>{switch(e.dataType){case"request":x();break}},{getGlobalModel:T,setGlobalModel:R}=n.inject(Be,{getGlobalModel:C=>{},setGlobalModel:(C,B)=>{}}),F=Ee(e)("click",()=>{const C=T(e.id);R(e.id,{...C,RECORD:n.unref(a)})});Le(e,{refreshData:k});const{setRequest:A}=n.inject(ze,{setRequest:C=>{}});return typeof A=="function"&&A({id:e.id,requestFn:k,sortNum:e.requestSort}),{option:D,style:s,isLoadedData:p,geoBackgroundImageRef:l,myGeoBackgroundImage:d,customClick:()=>{n.unref(a)&&F()},onMouseOver:(C={})=>{C.componentType==="geo"&&C.region?a.value=C.region:a.value=null}}}}),F1="",ou=["src"];function au(e,o,t,a,r,i){const s=n.resolveComponent("echarts");return n.openBlock(),n.createElementBlock("div",{class:"ecan-map",style:n.normalizeStyle(e.style)},[e.isLoadedData?(n.openBlock(),n.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:"","onZr:click":e.customClick,onMouseover:e.onMouseOver},null,8,["option","onZr:click","onMouseover"])):n.createCommentVNode("",!0),n.withDirectives(n.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,ou),[[n.vShow,!1]])],4)}const El=pe(ye(nu,[["render",au],["__scopeId","data-v-10f150ac"]])),Dl=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:il,EcanBorder:ml,EcanButton:Wi,EcanCheckbox:Gi,EcanComboGraph:fl,EcanCustomGraph:cl,EcanDatePicker:Mi,EcanIframe:Cl,EcanImage:Sl,EcanInput:Oi,EcanLine:al,EcanList:Di,EcanMap:El,EcanModal:kt,EcanPageConfig:yi,EcanPie:nl,EcanProportion:Ii,EcanProviderConfig:xi,EcanRadar:hl,EcanRadio:Ji,EcanRangePicker:Vi,EcanScatter:sl,EcanScrollText:Ci,EcanSelect:Zi,EcanTable:Tl,EcanTabs:xl,EcanText:Si,EcanTimeDisplay:Ai,EcanTreeSelect:Ki,barComponentProps:ha,barEvents:rl,barProps:ua,borderComponentProps:wa,borderEvents:gl,borderProps:Ca,buttonComponentProps:Qo,buttonEvents:ji,buttonProps:Ko,checkboxComponentProps:Xo,checkboxEvents:Ui,checkboxProps:Jo,comboGraphComponentProps:ba,comboGraphEvents:dl,comboGraphProps:pa,customGraphComponentProps:xa,customGraphProps:ya,datePickerComponentProps:Uo,datePickerEvents:Li,datePickerProps:Wo,iframeComponentProps:Ra,iframeProps:Da,imageComponentProps:Ba,imageEvents:pl,imageProps:Ta,inputComponentProps:jo,inputEvents:_i,inputProps:Vo,lineComponentProps:fa,lineEvents:ol,lineProps:da,listComponentProps:Po,listEvents:ki,listProps:zo,mapComponentProps:Na,mapEvents:Bl,mapProps:La,modalComponentProps:ca,modalEvents:el,modalProps:sa,pageConfig:Fn,pageConfigComponentProps:Mn,pieComponentProps:la,pieEvents:Xi,pieProps:ia,proportionComponentProps:Ho,proportionEvents:Ri,proportionProps:qo,providerConfig:Do,providerConfigComponentProps:Ro,radarComponentProps:Sa,radarEvents:ul,radarProps:va,radioComponentProps:ra,radioEvents:Qi,radioProps:aa,rangePickerComponentProps:Zo,rangePickerEvents:zi,rangePickerProps:$o,scatterComponentProps:ma,scatterEvents:ll,scatterProps:ga,selectComponentProps:ta,selectEvents:$i,selectProps:ea,tableComponentProps:_a,tableEvents:wl,tableProps:Ia,tabsComponentProps:ka,tabsEvents:yl,tabsProps:Aa,textComponentProps:_o,textEvents:pi,textProps:Io,timeDisplayComponentProps:Mo,timeDisplayEvents:wi,timeDisplayProps:Fo,treeSelectComponentProps:oa,treeSelectEvents:Yi,treeSelectProps:na},Symbol.toStringTag,{value:"Module"})),ru={install:e=>{Object.keys(Dl).forEach(o=>{const t=Dl[o];t.install&&e.use(t)})}};j.EcanBar=il,j.EcanBorder=ml,j.EcanButton=Wi,j.EcanCheckbox=Gi,j.EcanComboGraph=fl,j.EcanCustomGraph=cl,j.EcanDatePicker=Mi,j.EcanIframe=Cl,j.EcanImage=Sl,j.EcanInput=Oi,j.EcanLine=al,j.EcanList=Di,j.EcanMap=El,j.EcanModal=kt,j.EcanPageConfig=yi,j.EcanPie=nl,j.EcanProportion=Ii,j.EcanProviderConfig=xi,j.EcanRadar=hl,j.EcanRadio=Ji,j.EcanRangePicker=Vi,j.EcanScatter=sl,j.EcanScrollText=Ci,j.EcanSelect=Zi,j.EcanTable=Tl,j.EcanTabs=xl,j.EcanText=Si,j.EcanTimeDisplay=Ai,j.EcanTreeSelect=Ki,j.barComponentProps=ha,j.barEvents=rl,j.barProps=ua,j.borderComponentProps=wa,j.borderEvents=gl,j.borderProps=Ca,j.buttonComponentProps=Qo,j.buttonEvents=ji,j.buttonProps=Ko,j.checkboxComponentProps=Xo,j.checkboxEvents=Ui,j.checkboxProps=Jo,j.comboGraphComponentProps=ba,j.comboGraphEvents=dl,j.comboGraphProps=pa,j.compatibleMobileList=tl,j.customGraphComponentProps=xa,j.customGraphProps=ya,j.datePickerComponentProps=Uo,j.datePickerEvents=Li,j.datePickerProps=Wo,j.default=ru,j.iframeComponentProps=Ra,j.iframeProps=Da,j.imageComponentProps=Ba,j.imageEvents=pl,j.imageProps=Ta,j.inputComponentProps=jo,j.inputEvents=_i,j.inputProps=Vo,j.lineComponentProps=fa,j.lineEvents=ol,j.lineProps=da,j.listComponentProps=Po,j.listEvents=ki,j.listProps=zo,j.mapComponentProps=Na,j.mapEvents=Bl,j.mapProps=La,j.modalComponentProps=ca,j.modalEvents=el,j.modalProps=sa,j.pageConfig=Fn,j.pageConfigComponentProps=Mn,j.pieComponentProps=la,j.pieEvents=Xi,j.pieProps=ia,j.proportionComponentProps=Ho,j.proportionEvents=Ri,j.proportionProps=qo,j.providerConfig=Do,j.providerConfigComponentProps=Ro,j.radarComponentProps=Sa,j.radarEvents=ul,j.radarProps=va,j.radioComponentProps=ra,j.radioEvents=Qi,j.radioProps=aa,j.rangePickerComponentProps=Zo,j.rangePickerEvents=zi,j.rangePickerProps=$o,j.scatterComponentProps=ma,j.scatterEvents=ll,j.scatterProps=ga,j.selectComponentProps=ta,j.selectEvents=$i,j.selectProps=ea,j.tableComponentProps=_a,j.tableEvents=wl,j.tableProps=Ia,j.tabsComponentProps=ka,j.tabsEvents=yl,j.tabsProps=Aa,j.textComponentProps=_o,j.textEvents=pi,j.textProps=Io,j.timeDisplayComponentProps=Mo,j.timeDisplayEvents=wi,j.timeDisplayProps=Fo,j.treeSelectComponentProps=oa,j.treeSelectEvents=Yi,j.treeSelectProps=na,Object.defineProperties(j,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
121
121
|
//# sourceMappingURL=index.umd.js.map
|