@ecan-bi/datav 1.1.29 → 1.1.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.1.29 */
1
+ /*! @ecan-bi/datav@1.1.31 */
2
2
  (function(p,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("axios"),require("mitt"),require("dayjs"),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/select/style"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("echarts"),require("ant-design-vue/es/modal/style"),require("ant-design-vue/es/table/style"),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","axios","mitt","dayjs","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/select/style","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","echarts/renderers","echarts/charts","echarts/components","echarts","ant-design-vue/es/modal/style","ant-design-vue/es/table/style","big.js"],t):(p=typeof globalThis<"u"?globalThis:p||self,t(p["@ecan/bi-datav"]={},p.vue,p["echarts/core"],p["resize-detector"],p["ant-design-vue"],null,null,p["lodash-es"],p.axios,p.mitt,p.dayjs,null,null,null,p["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,p["echarts/renderers"],p["echarts/charts"],p["echarts/components"],p.echarts,null,null,p.big.js))})(this,function(p,t,fe,an,D,$i,ji,ue,Ue,Io,he,Vi,Gi,qi,ln,Ui,Wi,Hi,Ae,ye,J,No,Zi,Ji,Mo){var To,xo,_o,Eo;"use strict";function vo(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const Bo=vo(No),zo=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Fo(e,o){function n(l){return(...r)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[l].apply(e.value,r)}}function a(){const l=Object.create(null);return zo.forEach(r=>{l[r]=n(r)}),l}return a()}function Oo(e,o,n){let a=null;t.watch([n,e,o],([l,r,s],c,i)=>{l&&r&&s&&(a=fe.throttle(()=>{r.resize()},100),an.addListener(l,a)),i(()=>{a&&l&&an.removeListener(l,a)})})}const Po={autoresize:Boolean},Ro="ecLoadingOptions";function Do(e,o,n){const a=t.inject(Ro,{}),l=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const r=e.value;r&&(o.value?r.showLoading(l.value):r.hideLoading())})}const $o={loading:Boolean,loadingOptions:Object},Yi="",jo=/^on[^a-z]/,Vo=e=>jo.test(e);function Go(e){const o={};for(const n in e)Vo(n)||(o[n]=e[n]);return o}const qo="x-vue-echarts",Uo="ecTheme",Wo="ecInitOptions",Ho="ecUpdateOptions",pe=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Po,...$o},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),l=t.shallowRef(),r=t.shallowRef(),s=t.inject(Uo,null),c=t.inject(Wo,null),i=t.inject(Ho,null),{autoresize:m,manualUpdate:d,loading:u,loadingOptions:h}=t.toRefs(e),b=t.computed(()=>r.value||e.option||Object.create(null)),g=t.computed(()=>e.theme||t.unref(s)||{}),S=t.computed(()=>e.initOptions||t.unref(c)||{}),C=t.computed(()=>e.updateOptions||t.unref(i)||{}),y=t.computed(()=>Go(o));function _(x){if(l.value||!a.value)return;const f=l.value=fe.init(a.value,g.value,S.value);e.group&&(f.group=e.group);let w=n;w||(w={},Object.keys(o).filter(A=>A.indexOf("on")===0&&A.length>2).forEach(A=>{const E=A.charAt(2).toLowerCase()+A.slice(3);w[E]=o[A]})),Object.keys(w).forEach(A=>{const E=w[A];E&&(A.indexOf("zr:")===0?f.getZr().on(A.slice(3).toLowerCase(),E):f.on(A.toLowerCase(),E))});function k(){if(f&&!f.isDisposed())try{f.resize()}catch(A){if(A.message==="Cannot read property 'get' of undefined")return;throw A}}function L(){f.setOption(x||b.value,C.value)}m.value?t.nextTick(()=>{k(),L()}):L()}function T(x,f){e.manualUpdate&&(r.value=x),l.value?l.value.setOption(x,f||{}):_(x)}function F(){l.value&&(l.value.dispose(),l.value=void 0)}let I=null;t.watch(d,x=>{typeof I=="function"&&(I(),I=null),x||(I=t.watch(()=>e.option,f=>{f&&(l.value?l.value.setOption(f,C.value):_())},{deep:!0}))},{immediate:!0}),t.watch([g,S],()=>{F(),_()},{deep:!0}),t.watchEffect(()=>{e.group&&l.value&&(l.value.group=e.group)});const M=Fo(l,_);return Do(l,u,h),Oo(l,m,a),t.onMounted(()=>{e.option&&_()}),t.onUnmounted(F),{chart:l,root:a,setOption:T,nonEventAttrs:y,...M}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(qo,e)}});function se(e,o){Zo(e)&&(e="100%");var n=Jo(e);return e=o===360?e:Math.min(o,Math.max(0,parseFloat(e))),n&&(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 Zo(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Jo(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Yo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Oe(e){return e<=1?"".concat(Number(e)*100,"%"):e}function We(e){return e.length===1?"0"+e:String(e)}function Qo(e,o,n){return{r:se(e,255)*255,g:se(o,255)*255,b:se(n,255)*255}}function He(e,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(o-e)*(6*n):n<1/2?o:n<2/3?e+(o-e)*(2/3-n)*6:e}function Ko(e,o,n){var a,l,r;if(e=se(e,360),o=se(o,100),n=se(n,100),o===0)l=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,c=2*n-s;a=He(c,s,e+1/3),l=He(c,s,e),r=He(c,s,e-1/3)}return{r:a*255,g:l*255,b:r*255}}function Xo(e,o,n){e=se(e,255),o=se(o,255),n=se(n,255);var a=Math.max(e,o,n),l=Math.min(e,o,n),r=0,s=a,c=a-l,i=a===0?0:c/a;if(a===l)r=0;else{switch(a){case e:r=(o-n)/c+(o<n?6:0);break;case o:r=(n-e)/c+2;break;case n:r=(e-o)/c+4;break}r/=6}return{h:r,s:i,v:s}}function ea(e,o,n){e=se(e,360)*6,o=se(o,100),n=se(n,100);var a=Math.floor(e),l=e-a,r=n*(1-o),s=n*(1-l*o),c=n*(1-(1-l)*o),i=a%6,m=[n,s,r,r,c,n][i],d=[c,n,n,s,r,r][i],u=[r,r,c,n,n,s][i];return{r:m*255,g:d*255,b:u*255}}function ta(e,o,n,a){var l=[We(Math.round(e).toString(16)),We(Math.round(o).toString(16)),We(Math.round(n).toString(16))];return a&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function rn(e){return ie(e)/255}function ie(e){return parseInt(e,16)}var sn={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 Ee(e){var o={r:0,g:0,b:0},n=1,a=null,l=null,r=null,s=!1,c=!1;return typeof e=="string"&&(e=aa(e)),typeof e=="object"&&(ge(e.r)&&ge(e.g)&&ge(e.b)?(o=Qo(e.r,e.g,e.b),s=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ge(e.h)&&ge(e.s)&&ge(e.v)?(a=Oe(e.s),l=Oe(e.v),o=ea(e.h,a,l),s=!0,c="hsv"):ge(e.h)&&ge(e.s)&&ge(e.l)&&(a=Oe(e.s),r=Oe(e.l),o=Ko(e.h,a,r),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Yo(n),{ok:s,format:e.format||c,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:n}}var na="[-\\+]?\\d+%?",oa="[-\\+]?\\d*\\.\\d+%?",be="(?:".concat(oa,")|(?:").concat(na,")"),Ze="[\\s|\\(]+(".concat(be,")[,|\\s]+(").concat(be,")[,|\\s]+(").concat(be,")\\s*\\)?"),Je="[\\s|\\(]+(".concat(be,")[,|\\s]+(").concat(be,")[,|\\s]+(").concat(be,")[,|\\s]+(").concat(be,")\\s*\\)?"),ce={CSS_UNIT:new RegExp(be),rgb:new RegExp("rgb"+Ze),rgba:new RegExp("rgba"+Je),hsl:new RegExp("hsl"+Ze),hsla:new RegExp("hsla"+Je),hsv:new RegExp("hsv"+Ze),hsva:new RegExp("hsva"+Je),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function aa(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(sn[e])e=sn[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ce.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ce.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ce.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ce.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ce.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ce.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ce.hex8.exec(e),n?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),a:rn(n[4]),format:o?"name":"hex8"}:(n=ce.hex6.exec(e),n?{r:ie(n[1]),g:ie(n[2]),b:ie(n[3]),format:o?"name":"hex"}:(n=ce.hex4.exec(e),n?{r:ie(n[1]+n[1]),g:ie(n[2]+n[2]),b:ie(n[3]+n[3]),a:rn(n[4]+n[4]),format:o?"name":"hex8"}:(n=ce.hex3.exec(e),n?{r:ie(n[1]+n[1]),g:ie(n[2]+n[2]),b:ie(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function ge(e){return Boolean(ce.CSS_UNIT.exec(String(e)))}var Pe=2,cn=.16,la=.05,ia=.05,ra=.15,dn=5,mn=4,sa=[{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 fn(e){var o=e.r,n=e.g,a=e.b,l=Xo(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function Re(e){var o=e.r,n=e.g,a=e.b;return"#".concat(ta(o,n,a,!1))}function ca(e,o,n){var a=n/100,l={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 l}function un(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-Pe*o:Math.round(e.h)+Pe*o:a=n?Math.round(e.h)+Pe*o:Math.round(e.h)-Pe*o,a<0?a+=360:a>=360&&(a-=360),a}function gn(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-cn*o:o===mn?a=e.s+cn:a=e.s+la*o,a>1&&(a=1),n&&o===dn&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function hn(e,o,n){var a;return n?a=e.v+ia*o:a=e.v-ra*o,a>1&&(a=1),Number(a.toFixed(2))}function Ye(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Ee(e),l=dn;l>0;l-=1){var r=fn(a),s=Re(Ee({h:un(r,l,!0),s:gn(r,l,!0),v:hn(r,l,!0)}));n.push(s)}n.push(Re(a));for(var c=1;c<=mn;c+=1){var i=fn(a),m=Re(Ee({h:un(i,c),s:gn(i,c),v:hn(i,c)}));n.push(m)}return o.theme==="dark"?sa.map(function(d){var u=d.index,h=d.opacity,b=Re(ca(Ee(o.backgroundColor||"#141414"),Ee(n[u]),h*100));return b}):n}var Qe={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"},Ke={},Xe={};Object.keys(Qe).forEach(function(e){Ke[e]=Ye(Qe[e]),Ke[e].primary=Ke[e][5],Xe[e]=Ye(Qe[e],{theme:"dark",backgroundColor:"#141414"}),Xe[e].primary=Xe[e][5]});var yn=[],Le=[],da="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function ma(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function fa(e,o){if(o=o||{},e===void 0)throw new Error(da);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=yn.indexOf(a);l===-1&&(l=yn.push(a)-1,Le[l]={});var r;return Le[l]!==void 0&&Le[l][n]!==void 0?r=Le[l][n]:(r=Le[l][n]=ma(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),r.styleSheet?r.styleSheet.cssText+=e:r.textContent+=e,r}function bn(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ua(e,l,n[l])})}return e}function ua(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function ga(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function ha(e,o){ga(e,"[@ant-design/icons-vue] ".concat(o))}function pn(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function et(e,o,n){return n?t.h(e.tag,bn({key:o},n,e.attrs),(e.children||[]).map(function(a,l){return et(a,"".concat(o,"-").concat(e.tag,"-").concat(l))})):t.h(e.tag,bn({key:o},e.attrs),(e.children||[]).map(function(a,l){return et(a,"".concat(o,"-").concat(e.tag,"-").concat(l))}))}function Cn(e){return Ye(e)[0]}function kn(e){return e?Array.isArray(e)?e:[e]:[]}var ya=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -55,6 +55,6 @@
55
55
  }
56
56
  `,Sn=!1,ba=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ya;t.nextTick(function(){Sn||(typeof window<"u"&&window.document&&window.document.documentElement&&fa(o,{prepend:!0}),Sn=!0)})},pa=["icon","primaryColor","secondaryColor"];function Ca(e,o){if(e==null)return{};var n=ka(e,o),a,l;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l<r.length;l++)a=r[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function ka(e,o){if(e==null)return{};var n={},a=Object.keys(e),l,r;for(r=0;r<a.length;r++)l=a[r],!(o.indexOf(l)>=0)&&(n[l]=e[l]);return n}function De(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Sa(e,l,n[l])})}return e}function Sa(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Ie={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function wa(e){var o=e.primaryColor,n=e.secondaryColor;Ie.primaryColor=o,Ie.secondaryColor=n||Cn(o),Ie.calculated=!!n}function Aa(){return De({},Ie)}var Te=function(o,n){var a=De({},o,n.attrs),l=a.icon,r=a.primaryColor,s=a.secondaryColor,c=Ca(a,pa),i=Ie;if(r&&(i={primaryColor:r,secondaryColor:s||Cn(r)}),ba(),ha(pn(l),"icon should be icon definiton, but got ".concat(l)),!pn(l))return null;var m=l;return m&&typeof m.icon=="function"&&(m=De({},m,{icon:m.icon(i.primaryColor,i.secondaryColor)})),et(m.icon,"svg-".concat(m.name),De({},c,{"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Te.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Te.inheritAttrs=!1,Te.displayName="IconBase",Te.getTwoToneColors=Aa,Te.setTwoToneColors=wa;const tt=Te;function Ta(e,o){return La(e)||Ea(e,o)||_a(e,o)||xa()}function xa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
57
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _a(e,o){if(e){if(typeof e=="string")return wn(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wn(e,o)}}function wn(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function Ea(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,s,c;try{for(n=n.call(e);!(l=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,c=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw c}}return a}}function La(e){if(Array.isArray(e))return e}function An(e){var o=kn(e),n=Ta(o,2),a=n[0],l=n[1];return tt.setTwoToneColors({primaryColor:a,secondaryColor:l})}function Ia(){var e=tt.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Na=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ma(e,o){return Fa(e)||za(e,o)||Ba(e,o)||va()}function va(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ba(e,o){if(e){if(typeof e=="string")return Tn(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tn(e,o)}}function Tn(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function za(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,s,c;try{for(n=n.call(e);!(l=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,c=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw c}}return a}}function Fa(e){if(Array.isArray(e))return e}function xn(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){nt(e,l,n[l])})}return e}function nt(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Oa(e,o){if(e==null)return{};var n=Pa(e,o),a,l;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l<r.length;l++)a=r[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Pa(e,o){if(e==null)return{};var n={},a=Object.keys(e),l,r;for(r=0;r<a.length;r++)l=a[r],!(o.indexOf(l)>=0)&&(n[l]=e[l]);return n}An("#1890ff");var xe=function(o,n){var a,l=xn({},o,n.attrs),r=l.class,s=l.icon,c=l.spin,i=l.rotate,m=l.tabindex,d=l.twoToneColor,u=l.onClick,h=Oa(l,Na),b=(a={anticon:!0},nt(a,"anticon-".concat(s.name),Boolean(s.name)),nt(a,r,r),a),g=c===""||c||s.name==="loading"?"anticon-spin":"",S=m;S===void 0&&u&&(S=-1,h.tabindex=S);var C=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=kn(d),_=Ma(y,2),T=_[0],F=_[1];return t.createVNode("span",xn({role:"img","aria-label":s.name},h,{onClick:u,class:b}),[t.createVNode(tt,{class:g,icon:s,primaryColor:T,secondaryColor:F,style:C},null)])};xe.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},xe.displayName="AntdIcon",xe.inheritAttrs=!1,xe.getTwoToneColor=Ia,xe.setTwoToneColor=An;const Ra=xe;var Da={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const $a=Da;function _n(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ja(e,l,n[l])})}return e}function ja(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var ot=function(o,n){var a=_n({},o,n.attrs);return t.createVNode(Ra,_n({},a,{icon:$a}),null)};ot.displayName="LoadingOutlined",ot.inheritAttrs=!1;const Va=ot,Ga=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:D.Spin},setup(){return{indicator:t.h(Va,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Qi="",j=(e,o)=>{const n=e.__vccOpts||e;for(const[a,l]of o)n[a]=l;return n},qa={class:"spin-wrapper"};function Ua(e,o,n,a,l,r){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",qa,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const Ne=j(Ga,[["render",Ua]]),Wa=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:D.Skeleton}});function Ha(e,o,n,a,l,r){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const $e=j(Wa,[["render",Ha]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const q=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},Y={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},W=e=>ue.mapValues(e,o=>o==null?{}:{type:o.constructor,default:o}),at={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},lt=W(at),Za=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex"],H=(e,o=[])=>{const n=ue.without(Za,...o);return t.computed(()=>ue.pick(e,n))},it="EVENT_BUS",K="GLOBAL_CONFIG",X="GLOBAL_MODEL",re="REQUEST_MODEL",En="GLOBAL_TOKEN",Me="REFRESH_PAGE",je=(To=window==null?void 0:window.config)==null?void 0:To.indicatorURL;(xo=window==null?void 0:window.config)!=null&&xo.uploadPath;const Ln=((_o=window==null?void 0:window.config)==null?void 0:_o.routerBaseURL)||"./",Ja=((Eo=window==null?void 0:window.config)==null?void 0:Eo.erdURL)||"",te=(e,o)=>{t.watch(()=>e.id,(n,a)=>{const l=t.inject(it,{onEvent:(r,s)=>{},offEvent:r=>{}});n!=null&&n!==""&&l.onEvent(n,o)},{immediate:!0})},ee=e=>{const o=e.events,n=e.id,a=t.inject(it,{emitEvent:(r,s)=>{}}),{touchEventId:l}=t.inject(K,{touchEventId:t.ref("")});return(r,s=()=>{})=>function(){if(s.call(this,...arguments),a){const{emitEvent:c}=a;o.forEach(i=>{if(r===i.on)try{l.value=n,c(i.target,i.emit)}catch(m){console.error(m)}})}}},ve=(e,o)=>{let{name:n="name",value:a="value",type:l="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),l=l==null?void 0:l.trim();const r=new Set,s=new Map,c=e.length;for(let d=0;d<c;d++){const u=e[d],h=u[n]||"",b=u[a]||"",g=u[l]||"";if(r.add(h),s.has(g)){const S=s.get(g);S.push({name:h,value:b,...u}),s.set(g,S)}else s.set(g,[{name:h,value:b,...u}])}const i=Array.from(r),m=[];for(const[d,u]of s)m.push({name:d,data:u});return{dimensions:i,dataset:m}},Ya=e=>e.replace(/\\n/g,`
59
- `),rt=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)||n<0?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Ve=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},In=(e,o)=>typeof e=="string"&&typeof o=="string"?e.toLocaleLowerCase().includes(o.toLocaleLowerCase()):!1,ae=(e="",o={},{useNewline:n=!1,useSpace:a=!1}={})=>{o={...window.config||{},...o};const r=e.match(/\{(.+?)\}/g);if(r==null||r.length===0)return e;for(let s=0;s<r.length;s++){const c=r[s];let i=c.slice(1,-1);const m=/[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g,d=i.match(m);for(let u=0;u<d.length;u++){const h=d[u],b=o[h];b!=null&&(i=i.replace(h,b))}try{i=(0,eval)(i)}catch{}e=e.replace(c,i)}return n&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},de=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:l,requestParams:r,requestInterval:s,isOpenRequestTimer:c}=e,{contextRequestUrl:i,pageMode:m,touchEventId:d}=t.inject(K,{contextRequestUrl:"",pageMode:"normal",touchEventId:""}),{getGlobalModel:u}=t.inject(X,{getGlobalModel:S=>{}}),h=ae(n),b=async(S={})=>{if(!h||!a||!l||t.unref(m)==="design")return;let C={};r.forEach(I=>{const{key:M,value:x}=I;if(typeof x=="object"&&x.id){let f={};const{id:w,prop:k,propKey:L,operate:A}=x;w==="THIS"?f=u(t.unref(d))||{}:f=u(w)||{};const E=t.unref(f[k]);let v=null;if(["date","range"].some(V=>In(f==null?void 0:f.type,V))){const{value:V,type:$,mode:G}=A||{};if(V&&$&&G)switch($){case"add":v=t.unref(E).add(V,G);break;case"minus":v=t.unref(E).subtract(V,G);break}v==null&&(v=t.unref(E)),v=(v==null?void 0:v.format((L==null?void 0:L.trim())||f.format))||""}else Object.prototype.toString.call(E)==="[object Object]"?v=E[L||"value"]:v=E;C[M]=v}else typeof x=="string"&&(C[M]=ae(x))}),C={...window.config.requestParams,...S,...C};let y="";const _=Object.keys(C),T=_.length-1,F=_.length;_.forEach((I,M)=>{M===0?F!==1?y+=`?${I}=${C[I]}&`:y+=`?${I}=${C[I]}`:M===T?y+=`${I}=${C[I]}`:y+=`${I}=${C[I]}&`});try{const I=["get","head"].includes(a),M=await Ue({baseURL:t.unref(i),url:I?h+y:h,method:a,headers:l,data:I?{}:C});return o(M),M}catch(I){console.error(I)}},g=c&&setInterval(b,s*1e3);return t.onUnmounted(()=>{clearInterval(g)}),b},_e=(e=[],o)=>{let{name:n="name",types:a=[]}=o||{};n=(n==null?void 0:n.trim())||n;const l=new Set,r=new Map,s=e.length,c=a.length;if(s===1){const d=[];for(let h=0;h<c;h++){const b=a[h],{label:g,value:S}=b,C={...e[0],value:e[0][S]};l.add(g),d.push(C)}const u=e[0][n]||"";r.set(u,d)}else for(let d=0;d<s;d++){const u=e[d],h=u[n];l.add(h);for(let b=0;b<c;b++){const g=a[b],{label:S,value:C}=g,y={...u,value:u[C]};if(r.has(S)){const _=r.get(S);_.push(y),r.set(S,_)}else r.set(S,[y])}}const i=Array.from(l),m=[];for(const[d,u]of r)m.push({name:d,data:u});return{dimensions:i,dataset:m}},Ce=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},Nn=(e,o)=>{const n=`${Ln}/preview?pageId=${o}`,a=`${Ln}/${o}`;return e==="preview"?n:a},ke=Ue.create({});ke.interceptors.request.use(e=>e,e=>Promise.reject(e)),ke.interceptors.response.use(e=>{var o,n,a;return+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&D.message.error({content:((n=e==null?void 0:e.data)==null?void 0:n.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR"}),e},e=>{if(e.message.includes("timeout"))D.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:o}=e.response;o>=400&&o<500&&D.message.error({content:"请求异常",key:"REQUEST_ERROR"}),o>=500&&D.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const st=e=>{const{getGlobalModel:o}=t.inject(X,{getGlobalModel:i=>{}}),n=i=>{const m=[];return i==null||i.leftAxisList.forEach(d=>{if(d){let u=!1;i.leftAxis.includes(d.name)&&(u=!0);let h={label:d.name,columnName:d.label,aggregate:d.calcValue?d.calcValue:"SUM",order:null,location:"LEFT",show:u};i.source==="INDICATOR_LIB"&&(h.hrpIndexCode=d.indexCode),h=a(d,h),m.push(h)}}),i.rightAxisList.forEach(d=>{let u=!1;i.rightAxis.includes(d.name)&&(u=!0);let h={label:d.name,columnName:d.label,aggregate:"SUM",order:null,location:"LEFT",show:u};h=a(d,h),i.source==="INDICATOR_LIB"&&(h.hrpIndexCode=d.indexCode),m.push(h)}),m},a=(i,m)=>{const d={...m};return i.calcMethod?i.calcMethod==="FORMULA"?(i.formulafuc&&(d.formula=i.formulafuc),d.calcType="FORMULA"):(d.builtInFormula=i.calculmethod,d.calcType="BUILT_IN",i.comeFrom&&(d.builtInValueSource=i.comeFrom),i.accessPrinciple&&(d.builtInCalcWay=i.accessPrinciple)):d.calcType="COLUMN",d},l=(i=[])=>{var d;const m=[];for(let u=0;u<i.length;u++){const{keyName:h,searchName:b,searchType:g,variateName:S,id:C}=i[u],y={alias:h,fieldName:b,rule:g||"NONE",fieldValue:"",valueType:"",variateName:S},_=o(C)||{};if(b==="the_date"?y.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(b)&&(y.valueType="TEXT"),_.type==="ecanDatePicker"){y.dateFormat=_.format;const T=(d=t.unref(_))==null?void 0:d.value.format;typeof T=="function"&&(y.fieldValue=T(_==null?void 0:_.format))}m.push(y)}return m},r=(i,m)=>{const d=m.find(u=>u.name===i.label);d.sort.type&&(d.sort.type!=="CUSTOM"?i.sort={label:d.sort.label,columnName:d.sort.columnName,type:"NORMAL",order:d.sort.type}:i.sort={label:d.label,columnName:d.columnName,type:"CUSTOM",customOrderColumns:d.sort.customOrderColumns}),d.customGroup&&d.customGroup.groupList.length>1&&(i.customGroup={groupInfoMap:{},otherGroupName:""},d.customGroup.groupList.forEach((u,h)=>{h!==0&&(i.customGroup.groupInfoMap[u.key]=u.value)}),i.customGroup.otherGroupName=d.customGroup.otherName||""),i.rangeIndexTypeGuid=d.typeGuid,i.customFilterSqlPart=d.filterSql||""},s=(i,m)=>{for(let d=0;d<i.children.length;d++)if(i.children[d].children.length>0){let u="";i.type==="and"?u="&&":u="||",m.push({conditions:[],join:u}),s(i.children[d],m[m.length-1].conditions)}else if(i.children[d].fieldName){let u="";const h={fieldName:i.children[d].fieldName,fieldType:i.children[d].itemType,rule:i.children[d].rule,fieldValue:"",label:i.children[d].label,version:i.children[d].version?i.children[d].version:100,targetSource:i.children[d].targetSource?i.children[d].targetSource:""};if(u=JSON.parse(JSON.stringify(i.children[d].fieldValue)),i.children[d].itemType==="DATE")h.dateFormat=i.children[d].format,h.dateCalcTypes=i.children[d].dateCalcTypes,h.calcWays=i.children[d].calcWays,i.children[d].selectType==="time"?i.children[d].absoluteBool&&(u="#######",h.calcWays=i.children[d].calcWays):i.children[d].selectType==="component"&&(u="${"+i.children[d].relateCompent+"}"),h.dateFormat=i.children[d].format,h.dateCalcTypes=i.children[d].dateCalcTypes,h.calcWays=i.children[d].calcWays;else if(Object.prototype.toString.call(u)==="[object Array]"){const b=[];for(let g=0;g<u.length;g++)u[g]!=="全选"&&b.push(u[g]);u=b.join(",")}h.fieldValue=u,i.children.length>1&&d!==i.children.length-1&&(i.type==="and"?h.join="&&":h.join="||"),m.push(h)}},c=(i,m,d)=>{if(!i)return;const u=d[m].find(g=>g.name===i.label);if(!u)return;const h=[],b=u.filterList;if(b)for(let g=0;g<b.length;g++)b[g].children.length>0&&s(b[g],h);return h};return async function(){var I,M;const i=e.type;let m=e.graphicConfig;(!m||Object.keys(m).length===0)&&(m={classify:[],classifyList:[],series:[],seriesList:[],leftAxis:[],leftAxisList:[],rightAxis:[],rightAxisList:[],relativeList:[]});const d=m.classify;if([...m.leftAxis,...m.rightAxis].length===0){D.message.error("当前y轴无配置信息");return}const h=n(m);let b;if(Array.isArray(m.series)&&m.series.length>0){const x=(I=m.seriesList)==null?void 0:I.find(f=>{const w=m.series[0];return f.name===w||f.nameBak===w});x!=null&&(b={label:x.name,columnName:x.label})}let g;if(d.length>0){g={label:d[0],columnName:d[0]};const x=((M=m.classifyList)==null?void 0:M.find(f=>(f==null?void 0:f.name)===d[0]||(f==null?void 0:f.nameBak)===d[0]))||{};g.columnName=x.label,r(g,m.classifyList),g.conditions=c(g,"classifyList",m)||[]}b&&(r(b,m.seriesList),b.conditions=c(b,"seriesList",m)||[]);for(let x=0;x<h.length;x++)h[x].location==="RIGHT"?h[x].conditions=c(h[x],"rightAxisList",m):h[x].conditions=c(h[x],"leftAxisList",m);let S;(m==null?void 0:m.pageMode)==="design"?S=m.sqlConditions??[]:S=l(m==null?void 0:m.relativeList);let C="SQL_VIEW",y="",_="",T="";m.source==="INDICATOR_LIB"&&(C="INDICATOR_LIB",y=m.fixedDimSql,_=m.dataSourceId,T=m.idxLibMode);const F={ecanBar:"bar",ecanLine:"line",ecanPie:"pie",ecanScatter:"scatter"};try{const x=await ke.get(`${je}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});return ke.post(`${je}/diagram`,{dataViewId:m.dataViewId,plugin:"1",layer:"2",chartType:F[i],classification:g,indicatorList:h,series:b,sqlConditions:S,source:C,fixedDimSql:y,dataSourceId:_,idxLibMode:T},{headers:{Authentication:x.data.data.token}})}catch(x){console.error(x)}}},Se=(e,o)=>{if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let l=0;l<a;l++){const r=n[l];if(r==null||r==="")break;let s=r.slice(1,-1);s=s==null?void 0:s.replace(/value/g,o);try{let c=s;/[+\-*/%]+/g.test(s)&&(c=(0,eval)(s)),e=e.replace(r,c)}catch(c){e=e.replace(r,s),console.warn(c)}}return e},Mn=(e={})=>{const{requestToken:o}=t.inject(En,{requestToken:()=>{}});e.dataType==="indicator"&&o();const n=(s={})=>{const{label:c,name:i,location:m,show:d,indexCode:u}=s;return{label:c,columnName:i,location:m,show:d,calcType:"COLUMN",hrpIndexCode:u}},a=(s={})=>{const{label:c,name:i,location:m,show:d,indexCode:u,calcType:h="COLUMN",builtInFormula:b,builtInValueSource:g,builtInCalcWay:S,formula:C,conditions:y}=s;return{label:c,columnName:i,location:m,show:d,calcType:h,hrpIndexCode:u,aggregate:"SUM",builtInFormula:b,builtInValueSource:g,builtInCalcWay:S,formula:C,conditions:y}},{getGlobalModel:l}=t.inject(X,{getGlobalModel:s=>{}}),r=(s=[])=>{var m;const c=s.length,i=[];for(let d=0;d<c;d++){const u=s[d],{id:h,conditionLabel:b,conditionKey:g,conditionValueType:S}=u,C={rule:"NONE",label:b,fieldName:g,fieldValue:"",valueType:S},y=l(h)||{};if(In(y.type,"date")){const{value:_,format:T}=y||{};C.fieldValue=(m=t.unref(_))==null?void 0:m.format(T),C.dateFormat=T}i.push(C)}return i};return async()=>{var L;const{graphicConfig:s}=e,{source:c,dataViewId:i,plugin:m,layer:d,chartType:u,classificationList:h=[],seriesList:b=[],leftAxisList:g=[],rightAxisList:S=[],queryColumnList:C=[],indicators:y=[],controlList:_=[],dataSourceId:T,idxLibMode:F,preview:I=!1}=s||{};let M;if(Array.isArray(h)&&h.length>0){const A=h.length;for(let E=0;E<A;E++){const v=h[E]||{},{label:P="",name:V="",show:$=!1,sort:G,customGroup:Q,conditions:we}=v;if($||A===1){M={label:P,columnName:V,show:$,sort:G,customGroup:Q,conditions:we};break}}}let x;if(Array.isArray(b)&&b.length>0){const A=b.length;for(let E=0;E<A;E++){const v=b[E]||{},{label:P="",name:V="",show:$=!1,sort:G,customGroup:Q,conditions:we}=v;if($||A===1){x={label:P,columnName:V,show:$,sort:G,customGroup:Q,conditions:we};break}}}const f=[];C==null||C.forEach(A=>{f.push(n(A))});const w=[];if(g==null||g.forEach(A=>{A.location="LEFT",w.push(a(A))}),S==null||S.forEach(A=>{A.location="RIGHT",w.push(a(A))}),y==null||y.forEach(A=>{A.location="LEFT",w.push(a(A))}),d==="1"&&f.length===0)return;if(d==="2"&&w.length===0)return;let k;(s==null?void 0:s.pageMode)==="design"?k=s.sqlConditions??[]:k=r(_);try{return await ke.post(`${je}/diagram`,{source:c,dataViewId:i,plugin:m,layer:d,chartType:u,classification:M,series:x,indicatorList:w,queryColumns:f,pageFlag:!0,sqlConditions:k,dataSourceId:T,idxLibMode:F,preview:I},{headers:{Authentication:(L=window==null?void 0:window.config)==null?void 0:L.indicatorToken,operateContext:"ygt"}})}catch(A){console.error(A)}}},Qa=()=>{const o=window.location.search.slice(1).split("&"),n=o.length;for(let a=0;a<n;a++){const l=o[a];if(l==null||l==="")continue;const r=l.split("=");if(Array.isArray(r)){const s=r[0],c=r[1];window.config[s]=c}}},Ka=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...lt},setup(e){const o=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:Ce(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),n=t.ref(0),a=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(!1),c=t.ref();let i;const m=()=>new Promise(S=>{t.nextTick(()=>{e.width&&e.height?(n.value=parseFloat(e.width),a.value=parseFloat(e.height)):(n.value=c.value.clientWidth,a.value=c.value.clientHeight),(!l.value||!r.value)&&(l.value=window.screen.width,r.value=window.screen.height),S()})}),d=()=>{n.value&&a.value?(c.value.style.width=`${n.value}px`,c.value.style.height=`${a.value}px`):(c.value.style.width=`${l.value}px`,c.value.style.height=`${r.value}px`)},u=()=>{const S=document.body.clientWidth,C=document.body.clientHeight,y=n.value||l.value,_=a.value||r.value,T=S/y,F=C/_;c.value&&(c.value.style.transform=`scale(${T}, ${F})`)},h=ue.debounce(async()=>{await m(),u()},100),b=()=>{const S=window.MutationObserver;i=new S(h),i.observe(c.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},g=()=>{i&&(i.disconnect(),i.takeRecords(),i=null)};return t.onMounted(async()=>{s.value=!1,await m(),d(),u(),window.addEventListener("resize",h),b(),s.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",h),g()}),{style:o,container:c,ready:s}}}),Ki="",Xa={id:"container",ref:"container"};function el(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",Xa,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const vn=q(j(Ka,[["render",el],["__scopeId","data-v-242d350e"]])),ct={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},dt=W(ct),tl=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...dt},setup(e,{expose:o}){Qa();const n=t.ref(),a=()=>{n.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>ae(e.contextRequestUrl)),r=t.computed(()=>e.pageMode),s=t.computed(()=>e.theme),c=t.ref("");t.provide(K,{contextRequestUrl:l,pageMode:r,theme:s,touchEventId:c});const i=new Map,m=k=>i.get(k),d=(k,L)=>{i.set(k,L)};t.provide(X,{getGlobalModel:m,setGlobalModel:d});const u=Io(),h=new Set,b=(k,L)=>{h.has(k)&&u.off(k),u.on(k,A=>(h.add(k),Object.prototype.toString.call(L[A])==="[object Function]"&&L[A]())),t.onBeforeUnmount(()=>{u.off(k)})},g=k=>{u.off(k)},S=(k,L)=>{u.emit(k,L)};t.provide(it,{onEvent:b,offEvent:g,emitEvent:S});const C=t.ref(0),y=()=>{C.value=t.unref(C)+1};t.provide(En,{requestToken:y});const _=new Map,T=new Map,F=({requestFn:k=()=>{},sortNum:L=0,id:A=""})=>{if(_.has(L)){const E=_.get(L);E==null||E.push(k)}else _.set(L,[k]);T.set(A,k)},I=k=>new Promise((L,A)=>{const E=k.map(v=>v());Promise.all(E).then(v=>{L(v)}).catch(v=>{A(v)})}),M=async()=>{var L;const k=await Ue.get(`${je}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});config.indicatorToken=(L=k.data.data)==null?void 0:L.token},x=async k=>{if(k){if(typeof k=="string"){const L=T.get(k);typeof L=="function"&&L()}}else{const L=Array.from(_);L.sort((E,v)=>v[0]-E[0]);const A=L.length;try{e.pageMode!=="design"&&t.unref(C)>0&&await M();for(let E=0;E<A;E++){const v=L[E][1];await I(v)}}catch(E){console.error(E)}finally{_.clear()}}};t.provide(re,{setRequest:F,touchRequest:x});const f=()=>{u.emit(Me)};t.provide(Me,{emitRefreshPage:f});const w=k=>{u.on(Me,()=>k()),t.onMounted(()=>{u.off(Me)})};return t.onBeforeUnmount(()=>{_==null||_.clear(),T==null||T.clear()}),o({touchRequest:x,getGlobalModel:m,onRefreshPage:w}),{providerConfig:n}}}),nl={id:"ProviderConfig",ref:"providerConfig"};function ol(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",nl,[t.renderSlot(e.$slots,"default")],512)}const Bn=q(j(tl,[["render",ol]])),mt={...Y,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",data:{},variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:""},ft=W(mt),zn=["refreshData","click"],al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",ll="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",il=t.defineComponent({name:"EcanText",components:{Skeleton:$e},props:{...ft},setup(e){const o=H(e),n=t.ref({});t.watch(()=>[e.data,e.dataType],([h,b])=>{b==="static"&&(n.value=h)},{immediate:!0});const a=t.computed(()=>{var S;const h=t.unref(n);let b=e.text;b=b==null?void 0:b.replace(/\n|\\n/g,"<br/>"),b=b==null?void 0:b.replace(/\s/g,"&nbsp;");const g=b.match(/\{\s*[\w\u4e00-\u9fa5]*\s*\}/g);if(g==null||g.length===0)return b;for(let C=0;C<g.length;C++){const y=g[C],_=(S=y==null?void 0:y.slice(1,y.length-1))==null?void 0:S.trim();let T=h[_];if(T!=null){const F=e.format;F==="percentage"?(T=+T,isNaN(T)?b=b.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`):(T=(T*100).toFixed(2),T>=0?b=b.replace(y,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${al}"/>${T}%</span>`):b=b.replace(y,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${ll}"/>${Math.abs(T)}%</span>`))):F==="percent"?(T=+T,isNaN(T)||(T=(T*100).toFixed(2),b=b.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}%</span>`))):e.format==="money"?(T=+T,isNaN(T)||(T=rt(T),b=b.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}</span>`))):b=b.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}</span>`)}else b=b.replace(y,e.variableDefaultValue)}return`<span>${b}</span>`}),{pageMode:l}=t.inject(K,{pageMode:"normal"}),r=de(e),s=t.ref(!1),c=async()=>{var h;if(t.unref(l)!=="design")try{s.value=!0;const b=await r();n.value=((h=b==null?void 0:b.data)==null?void 0:h.data)||{}}catch(b){console.error(b)}finally{s.value=!1}},i=()=>{e.dataType!=="static"&&c()};te(e,{refreshData:i});const{setRequest:m}=t.inject(re,{setRequest:({id:h,sortNum:b,requestFn:g})=>{}});m({id:e.id,requestFn:i,sortNum:e.requestSort}),te(e,{refreshData:i});const u=ee(e)("click",()=>{if(!e.linkPage&&!e.href)return;const h=e.linkPage||"",b=Nn(t.unref(l),h),g=e.href;let S=g||b;S=ae(S);const C=e.target;C==null||C===""||(C!=="event"?window.open(S,"_"+C):window.parent.postMessage({type:"openPage",url:g},"*"))});return{style:o,myText:a,loading:s,click:u}}}),tr="",rl=["innerHTML"];function sl(e,o,n,a,l,r){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-text",style:t.normalizeStyle(e.style),innerHTML:e.myText,onClick:o[0]||(o[0]=(...c)=>e.click&&e.click(...c))},null,12,rl))}const Fn=q(j(il,[["render",sl],["__scopeId","data-v-82ead2bb"]])),cl=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),or="",dl={class:"red"};function ml(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",dl,t.toDisplayString(e.text),1)}const On=q(j(cl,[["render",ml],["__scopeId","data-v-4dd9c03e"]])),ut={...Y,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",textAlign:"center",fontFamily:"",fontWeight:400,textShadow:"",verticalAlign:"middle"},gt=W(ut),fl=t.defineComponent({name:"EcanTimeDisplay",props:{...gt},setup(e){const o=H(e),n=t.ref(he().format(e.format));let a=null;const l=()=>{clearInterval(a),a=null},r=()=>{a&&l(),a=setInterval(()=>{n.value=he().add(1,"s").format(e.format)},1e3)};return t.onMounted(()=>{r()}),t.onUnmounted(()=>{l()}),{style:o,time:n}}}),lr="";function ul(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Pn=q(j(fl,[["render",ul],["__scopeId","data-v-07d3cde3"]])),ht={...Y,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},yt=W(ht),Rn=["refreshData","click"],gl=t.defineComponent({name:"EcanList",components:{Skeleton:$e},props:{...yt},setup(e){const o=t.ref(e.data),n=H(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(g,S)=>S==null||S===""?g:{money:rt,percentage:Ve,contrast:Ve}[S](g)||"",r=(g,S)=>{const C=parseFloat(g+"");if(S!=="contrast")return"";switch(!0){case C>=0:return"goUp";case C<0:return"goDown"}},s=de(e),{pageMode:c}=t.inject(K,{pageMode:"normal"}),i=t.ref(!1),m=async()=>{var g;if(!(e.dataType!=="request"||t.unref(c)==="design"))try{i.value=!0;const S=await s();o.value=((g=S==null?void 0:S.data)==null?void 0:g.data.rows)||[]}catch(S){console.error(S)}finally{i.value=!1}},d=()=>{m()},h=ee(e)("click",()=>{});te(e,{refreshData:d});const{setRequest:b}=t.inject(re,{setRequest:({id:g,sortNum:S,requestFn:C})=>{}});return b({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,formatFn:l,columnStyle:a,contrastClass:r,dataSource:o,loading:i,click:h}}}),rr="",sr="",hl=e=>(t.pushScopeId("data-v-baf2ff0c"),e=e(),t.popScopeId(),e),yl={key:0,class:"title"},bl={key:0,class:"ranking"},pl={key:1,class:"ecan-list-content"},Cl={key:0,class:"ranking"},kl=hl(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Sl={class:"sort"},wl={key:2,class:"empty"};function Al(e,o,n,a,l,r){const s=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",yl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:""}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",bl)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(i,m)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:i.key||m,style:t.normalizeStyle({color:i.titleColor,...e.columnStyle})},t.toDisplayString(i.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",pl,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,i)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(i+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:c.id||i,onClick:o[0]||(o[0]=(...m)=>e.click&&e.click(...m))},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Cl,[kl,t.createElementVNode("div",Sl," Top "+t.toDisplayString(i+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,m=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[m.key],m.format)]),key:m.key,style:t.normalizeStyle({fontSize:m.fontSize,color:e.contrastClass(c[m.key],m.format)===""?m.color:"",fontWeight:m.fontWeight,...e.columnStyle})},t.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(c[m.key],m.format)),7))),128))],4))),128))])):(t.openBlock(),t.createElementBlock("div",wl," 暂无数据 "))]),_:1},8,["loading"])],4)}const Dn=q(j(gl,[["render",Al],["__scopeId","data-v-baf2ff0c"]])),bt={...Y,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:!1,variableDefaultValue:"0"},pt=W(bt),$n=["refreshData","click"],Tl=t.defineComponent({name:"EcanProportion",components:{AProgress:D.Progress,Skeleton:$e},props:{...pt},setup(e){const{pageMode:o}=t.inject(K,{pageMode:"normal"}),n=H(e),a=t.computed(()=>{const g=e.width;return parseFloat(g)}),l=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(o)==="design")&&(l.value=e.data)},{immediate:!0,deep:!0});const r=t.computed(()=>{const g=t.unref(l),S=+e.variableDefaultValue;if(g==null)return isNaN(S)?0:S;const C=e.text.match(/\{.+\}/g)||[];let y;const _=new Set(Object.keys(g));for(let T=0;T<C.length;T++){const F=C[T],I=F.slice(1,F.length-1);if(_.has(I)){y=g[I];break}}return typeof y=="number"?y=y*100:typeof y=="string"&&!isNaN(+y)?y=+y*100:isNaN(S)?y=0:y=S*100,e.decimalFormat&&(y=+y.toFixed(2)),y}),s=t.computed(()=>{var _;let g=e.text;if(g==="")return t.unref(r);const S=e.variableDefaultValue,C=t.unref(l),y=g.match(/\{.+\}/g)||[];for(let T=0;T<y.length;T++){const F=y[T];let I=F.slice(1,F.length-1);const M=I.match(/.*/g);for(let f=0;f<(M==null?void 0:M.length);f++){const w=(_=M[T])==null?void 0:_.trim();C[w]!=null?I=I.replace(w,C[w]):I=I.replace(w,S)}let x=I;try{/\w+[+\-*/%]+\w+/g.test(I)&&(x=(0,eval)(I))}catch(f){console.error(f)}(typeof x=="number"||!isNaN(+x))&&(x=+x*100,e.decimalFormat&&(x=x.toFixed(2))),g=g.replace(F,x+"")}return g}),c=de(e),i=t.ref(!1),m=async()=>{var g;if(!(e.dataType!=="request"||t.unref(o)==="design"))try{i.value=!0;const S=await c();l.value=((g=S==null?void 0:S.data)==null?void 0:g.data)||{}}catch(S){console.error(S)}finally{i.value=!1}};te(e,{refreshData:()=>{m()}});const h=ee(e)("click",()=>{}),{setRequest:b}=t.inject(re,{setRequest:({id:g,sortNum:S,requestFn:C})=>{}});return b({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,myWidth:a,text:s,myValue:r,loading:i,click:h}}}),dr="";function xl(e,o,n,a,l,r){const s=t.resolveComponent("skeleton"),c=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(c,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5))]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)}const jn=q(j(Tl,[["render",xl],["__scopeId","data-v-304d430d"]])),Ct={...Y,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},kt=W(Ct),Vn=["inputChange","inputBlur"],_l=t.defineComponent({name:"EcanInput",components:{AInput:D.Input},props:{...kt},setup(e){const o=H(e),n=t.ref("");t.watch(()=>e.value,d=>{n.value=d},{immediate:!0});const a=e.id,{getGlobalModel:l,setGlobalModel:r}=t.inject(X,{getGlobalModel:d=>{},setGlobalModel:(d,u)=>{}});r(e.id,{type:e.type,value:n});const s=()=>{const d=l(a);r(a,{...d,RECORD:n})},c=ee(e),i=ue.debounce(c("inputChange",()=>{s()}),300),m=c("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:m,inputChange:i}}}),fr="";function El(e,o,n,a,l,r){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const Gn=q(j(_l,[["render",El]])),St={...Y,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},wt=W(St),qn=["dateChange"],Ll=t.defineComponent({name:"EcanDatePicker",props:{...wt},components:{ADatePicker:D.DatePicker},setup(e){const o=H(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime],([c,i])=>{let m=null;c?m=he(c):i&&(m=he()),a.value=m},{immediate:!0});const{setGlobalModel:l}=t.inject(X,{setGlobalModel:(c,i)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const s=ee(e)("dateChange",()=>{});return te(e,{dateChange:s}),{style:o,getPopupContainer:n,myValue:a,locale:ln,dateChange:s}}}),gr="";function Il(e,o,n,a,l,r){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.dateChange,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const Un=q(j(Ll,[["render",Il]])),At={...Y,name:"选择器",keyName:"选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value"},maxTagCount:void 0},Tt=W(At),Wn=["selectChange"],Nl=t.defineComponent({name:"EcanSelect",components:{ASelect:D.Select},props:{...Tt},setup(e){const o=H(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=de(e),{pageMode:l}=t.inject(K,{pageMode:"normal"}),r=t.ref(e.data),s=t.ref(e.value||e.data[0]),c=e.dataFieldNames,i=(C,y)=>{const _=c.label,T=c.value;let F;const I=y[_],M=y[T];return I!=null?F=I:M!=null&&(F=M),(F==null?void 0:F.toLowerCase().indexOf(C==null?void 0:C.toLowerCase()))>=0},m=t.ref(!1),d=async()=>{var C,y;if(!(e.dataType!=="request"||t.unref(l)==="design")){m.value=!0;try{const _=await a();r.value=((y=(C=_==null?void 0:_.data)==null?void 0:C.data)==null?void 0:y.rows)||[];const T=t.unref(r)[0];e.value===""&&T!=null&&(s.value=T[c.value])}catch(_){console.error(_)}finally{m.value=!1}}},{getGlobalModel:u,setGlobalModel:h}=t.inject(X,{getGlobalModel:C=>{},setGlobalModel:(C,y)=>{}});h(e.id,{type:e.type,value:s});const g=ee(e)("selectChange",()=>{const C=e.id,y=u(C);h(C,{...y,RECORD:s})});te(e,{selectChange:g});const{setRequest:S}=t.inject(re,{setRequest:({id:C,sortNum:y,requestFn:_})=>{}});return S({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,getPopupContainer:n,myValue:s,selectChange:g,options:r,filterOption:i,loading:m}}}),yr="",br="";function Ml(e,o,n,a,l,r){const s=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"select",value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,"field-names":e.dataFieldNames,maxTagCount:e.maxTagCount,"show-search":"","filter-option":e.filterOption,onChange:e.selectChange,loading:e.loading},null,8,["value","options","mode","getPopupContainer","field-names","maxTagCount","filter-option","onChange","loading"])],4)}const Hn=q(j(Nl,[["render",Ml],["__scopeId","data-v-dd2bcf63"]])),xt={...Y,name:"范围选择器",keyName:"范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year"},_t=W(xt),Zn=["dateChange"],vl=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:D.RangePicker},props:{..._t},setup(e){const o=H(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit],([m,d,u,h,b])=>{let g=null,S=null;u&&(g=he().subtract(h,b),S=he()),m&&(g=he(m)),d&&(S=he(d)),a.value=[g,S]},{immediate:!0});const{setGlobalModel:l}=t.inject(X,{setGlobalModel:(m,d)=>{}}),r=t.computed(()=>t.unref(a)[0]),s=t.computed(()=>t.unref(a)[1]);l(e.id,{type:e.type,format:e.format,startTime:r,endTime:s});const i=ee(e)("dateChange",()=>{});return te(e,{dateChange:i}),{style:o,getPopupContainer:n,locale:ln,dateChange:i,myValue:a}}}),Cr="",kr="";function Bl(e,o,n,a,l,r){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,onChange:e.dateChange},null,8,["value","format","picker","locale","getPopupContainer","onChange"])],4)}const Jn=q(j(vl,[["render",Bl],["__scopeId","data-v-81675950"]])),Et={...Y,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},Lt=W(Et),Yn=["click"],zl=t.defineComponent({name:"EcanButton",components:{AButton:D.Button},props:{...Lt},setup(e){const o=H(e),a=ee(e)("click",()=>{const c=t.unref(r);c&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:c},"*")}),l=t.computed(()=>ae(e.text)),r=t.computed(()=>ae(e.href)||null),s=t.computed(()=>{const c=e.target;if(!(c==="event"||t.unref(r)==null))return{self:"_self",blank:"_blank"}[c]});return{style:o,click:a,myText:l,myHref:r,myTarget:s}}}),wr="";function Fl(e,o,n,a,l,r){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const Qn=q(j(zl,[["render",Fl]])),It={...Y,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"}]},Nt=W(It),Kn=["checkboxChange"],Ol=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:D.CheckboxGroup},props:{...Nt},setup(e){const o=H(e),n=t.ref([]),a=t.ref([]),l=g=>{const S=e.value;let C=[];g.forEach(y=>{y.checked&&C.push(y.value)}),typeof S=="string"&&S!==""?C=C.concat(S.split(",")):Array.isArray(S)&&(C=C.concat(S)),n.value=g,a.value=C};t.watch(()=>[e.data,e.value],([g])=>{l(g)},{immediate:!0,deep:!0});const r=de(e),{pageMode:s}=t.inject(K,{pageMode:"normal"}),c=async()=>{var C,y;if(e.dataType!=="request"||t.unref(s)==="design")return;const g=await r(),S=((y=(C=g==null?void 0:g.data)==null?void 0:C.data)==null?void 0:y.rows)||[];l(S)},i=e.id,{getGlobalModel:m,setGlobalModel:d}=t.inject(X,{getGlobalModel:g=>{},setGlobalModel:(g,S)=>{}});d(e.id,{type:e.type,value:a});const h=ee(e)("checkboxChange",()=>{const g=m(i);d(i,{...g,RECORD:a})}),{setRequest:b}=t.inject(re,{setRequest:({id:g,sortNum:S,requestFn:C})=>{}});return b({id:e.id,requestFn:c,sortNum:e.requestSort}),{myOption:n,style:o,myValue:a,checkboxChange:h}}}),Tr="";function Pl(e,o,n,a,l,r){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Xn=q(j(Ol,[["render",Pl]])),Mt={...Y,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,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%",labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},vt=W(Mt),eo=["click","refreshData","resetRecord"],Be=async e=>{var i;const o=await ke.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,l=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),r=new Blob([n]),s=document.createElement("a"),c=window.URL.createObjectURL(r);s.href=c,s.download=decodeURI(l),s.style.display="none",document.body.appendChild(s),s.click(),(i=s.parentNode)==null||i.removeChild(s),window.URL.revokeObjectURL(c)};fe.use([Ae.CanvasRenderer,ye.PieChart,J.TitleComponent,J.ToolboxComponent,J.TooltipComponent,J.LegendComponent]);const Rl=t.defineComponent({name:"EcanPie",props:{...vt},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e){const o=H(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},r=t.computed(()=>{let{data:M=[]}=t.unref(n)[0]||{};if(Array.isArray(e.colors)){const x=e.isUseLabelColors,f=e.colors;M=M.map((w,k)=>({label:x?{color:f[k]}:{},...w}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){a.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:x=>{const{marker:f,seriesName:w,name:k,value:L,percent:A,data:E}=x||{};return ae(e.tooltipFormatter,{marker:f,name:k,value:L,percent:A,a:w,b:k,c:L,d:A,...E},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},color:e.colors,series:[{data:M,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:e.labelFontSize,position:e.labelPosition,formatter:Ya(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),{getGlobalModel:s,setGlobalModel:c}=t.inject(X,{getGlobalModel:M=>{},setGlobalModel:(M,x)=>{}}),{pageMode:i}=t.inject(K,{pageMode:"normal"}),m=(M=[],x)=>{const{dataset:f}=ve(M,x);n.value=f},d=(M=[],x)=>{const f=ve(M,x);n.value=f.dataset};t.watch(()=>e.data,M=>{(e.dataType==="static"||t.unref(i)==="design")&&m(M)},{immediate:!0,deep:!0});const u=t.ref(!1),h=de(e),b=async()=>{var M,x;if(!(e.dataType!=="request"||t.unref(i)==="design"))try{u.value=!0;const f=await h();m((x=(M=f==null?void 0:f.data)==null?void 0:M.data)==null?void 0:x.rows,e.valueTypeDataFieldNames)}catch(f){console.error(f)}finally{u.value=!1}},S=ee(e)("click",M=>{const x=e.id,f=s(x);c(x,{...f,RECORD:M==null?void 0:M.data})}),C=st(e),y=async()=>{var M,x,f,w,k,L;if(!(e.dataType!=="indicator"||t.unref(i)==="design"))try{u.value=!0;const A=await C();let E=[];if(((f=(x=(M=A==null?void 0:A.data)==null?void 0:M.data)==null?void 0:x.columns)==null?void 0:f.length)>0){const v=A.data.data.columns[0],P=A.data.data.columns[1];E=(L=(k=(w=A==null?void 0:A.data)==null?void 0:w.data)==null?void 0:k.rows)==null?void 0:L.map(V=>({name:V[v],value:V[P]}))}d(E)}catch(A){console.error(A)}finally{u.value=!1}},_=()=>{t.unref(i)!=="design"&&(y(),b())};te(e,{resetRecord:()=>{const M=e.id,x=s(M);c(M,{...x,RECORD:""})},refreshData:()=>{_()},click:S});const{setRequest:I}=t.inject(re,{setRequest:({id:M,sortNum:x,requestFn:f})=>{}});return I({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:r,style:o,click:S,loading:u,visible:a,hideModal:l}}}),_r="";function Dl(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const to=q(j(Rl,[["render",Dl]])),Bt={...Y,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},zt=W(Bt),no=["click","refreshData","resetRecord"];fe.use([Ae.CanvasRenderer,ye.LineChart,J.ToolboxComponent,J.TitleComponent,J.LegendComponent]);const $l=t.defineComponent({name:"EcanLine",props:{...zt},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e){const o=H(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},s=t.computed(()=>{const x=e.xAxisLabelFormatter,f=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){l.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:w=>{const k=w.length;let L="",A=e.tooltipFormatter;A===""&&(A="{marker} {a} {c}");for(let E=0;E<k;E++){const{marker:v,seriesName:P,name:V,value:$,data:G}=w[E]||{};E===0&&(L+=`${V}<br/>`),L+=ae(A,{marker:v,name:V,value:$,a:P,b:V,c:$,...G},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L}},xAxis:{type:"category",data:t.unref(a),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,formatter(w){return Se(x,w)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(w){return Se(f,w)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:t.unref(n)}}),{getGlobalModel:c,setGlobalModel:i}=t.inject(X,{getGlobalModel:x=>{},setGlobalModel:(x,f)=>{}}),{pageMode:m}=t.inject(K,{pageMode:"normal"}),d=(x=[],f=!1)=>{let w;if(e.dataFieldConfigType==="key"){const E=f?e.keyTypeDataFieldNames:null;w=_e(x,E)}else if(e.dataFieldConfigType==="value"){const E=f?e.valueTypeDataFieldNames:null;w=ve(x,E)}a.value=w.dimensions;const k=w.dataset,L=[],A=k.length;for(let E=0;E<A;E++)L.push({type:"line",...k[E],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});n.value=L},u=(x=[],f,w=!1)=>{const L=_e(x,w?f:null);a.value=L.dimensions;const A=L.dataset,E=[],v=A.length;for(let P=0;P<v;P++)E.push({type:"line",...A[P],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});n.value=E};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([x])=>{(e.dataType==="static"||t.unref(m)==="design")&&d(x)},{immediate:!0,deep:!0});const h=t.ref(!1),b=de(e),g=async()=>{var x,f;if(!(e.dataType!=="request"||t.unref(m)==="design"))try{h.value=!0;const w=await b();d((f=(x=w==null?void 0:w.data)==null?void 0:x.data)==null?void 0:f.rows,!0)}catch(w){console.error(w)}finally{h.value=!1}},C=ee(e)("click",x=>{const f=e.id,w=c(f);i(f,{...w,RECORD:x==null?void 0:x.data})}),y=st(e),_=async()=>{var x,f,w,k,L;if(!(e.dataType!=="indicator"||t.unref(m)==="design"))try{h.value=!0;const A=await y();let E;((w=(f=(x=A==null?void 0:A.data)==null?void 0:x.data)==null?void 0:f.columns)==null?void 0:w.length)>0&&(E={name:A.data.data.columns[0],types:A.data.data.columns.slice(1).map(v=>({label:v,value:v}))}),u((L=(k=A==null?void 0:A.data)==null?void 0:k.data)==null?void 0:L.rows,E,!0)}catch(A){console.error(A)}finally{h.value=!1}},T=()=>{t.unref(m)!=="design"&&(_(),g())};te(e,{refreshData:()=>{T()},resetRecord:()=>{const x=e.id,f=c(x);i(x,{...f,RECORD:""})},click:C});const{setRequest:M}=t.inject(re,{setRequest:({id:x,sortNum:f,requestFn:w})=>{}});return M({id:e.id,requestFn:T,sortNum:e.requestSort}),{option:s,style:o,click:C,loading:h,visible:l,hideModal:r}}}),Lr="";function jl(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const oo=q(j($l,[["render",jl]])),Ft={...Y,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{chartType:"bar",plugin:"1",layer:"2"},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:""},Ot=W(Ft),ao=["refreshData","click","resetRecord"];fe.use([Ae.CanvasRenderer,ye.BarChart,J.TitleComponent,J.LegendComponent,J.DatasetComponent,J.ToolboxComponent]);const Vl=t.defineComponent({name:"EcanBar",props:{...Ot},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e,{expose:o}){const n=H(e),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},s=t.computed(()=>{const f=t.unref(a),w=f.length,k=[];for(let L=0;L<w;L++){const A={...f[L],type:"bar",barWidth:e.barWidth};e.isStack&&(A.stack="stack"),A.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},k.push(A)}return k}),c=t.ref([]),i=t.ref(!1),m=t.computed(()=>{const f=e.yAxisLabelFormatter,w=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){l.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:k=>{const L=k.length;let A="",E=e.tooltipFormatter;E===""&&(E="{marker} {a} {c}");for(let v=0;v<L;v++){const{marker:P,seriesName:V,name:$,value:G,data:Q}=k[v]||{};v===0&&(A+=`${$}<br/>`),A+=ae(E,{marker:P,name:$,value:G,a:V,b:$,c:G,...Q},{useNewline:!0,useSpace:!0}),A+="<br/>"}return A},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(c),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(k){return Se(w,k)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(c):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(k){return Se(f,k)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(s)}}),{pageMode:d}=t.inject(K,{pageMode:"normal"}),u=(f=[],w=!1)=>{let k={};if(e.dataFieldConfigType==="key"){const L=w?e.keyTypeDataFieldNames:null;k=_e(f,L)}else if(e.dataFieldConfigType==="value"){const L=w?e.valueTypeDataFieldNames:null;k=ve(f,L)}a.value=k.dataset,c.value=k.dimensions},h=(f=[],w,k=!1)=>{const A=_e(f,k?w:null);a.value=A.dataset,c.value=A.dimensions};t.watch(()=>e.data,f=>{(e.dataType==="static"||t.unref(d)==="design")&&u(f)},{immediate:!0,deep:!0});const b=de(e),g=async()=>{var f,w;try{i.value=!0;const k=await b();u((w=(f=k==null?void 0:k.data)==null?void 0:f.data)==null?void 0:w.rows,!0)}catch(k){console.error(k)}finally{i.value=!1}},S=Mn(e),C=async()=>{var f;try{i.value=!0;const w=await S(),{columns:k=[],rows:L=[]}=((f=w==null?void 0:w.data)==null?void 0:f.data)??{};let A;k.length>0&&(A={name:k[0],types:k.slice(1).map(E=>({label:E,value:E}))}),h(L,A,!0)}catch(w){console.error(w)}finally{i.value=!1}},y=()=>{if(t.unref(d)!=="design")switch(e.dataType){case"indicator":C();break;case"request":g();break}};o({refreshData:y});const _=ee(e),{getGlobalModel:T,setGlobalModel:F}=t.inject(X,{getGlobalModel:f=>{},setGlobalModel:(f,w)=>{}}),I=_("click",f=>{const w=e.id,k=T(w);F(w,{...k,RECORD:f.data})}),{setRequest:M}=t.inject(re,{setRequest:({id:f,sortNum:w,requestFn:k})=>{}});return M({id:e.id,requestFn:y,sortNum:e.requestSort}),te(e,{refreshData:y,click:I,resetRecord:()=>{const f=e.id,w=T(f);F(f,{...w,RECORD:""})}}),{option:m,style:n,refreshData:y,click:I,loading:i,visible:l,hideModal:r}}}),Nr="";function Gl(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const lo=q(j(Vl,[["render",Gl]])),Pt={...Y,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:void 0,toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Rt=W(Pt),io=["click","refreshData"];fe.use([Ae.CanvasRenderer,ye.ScatterChart,J.ToolboxComponent,J.TitleComponent,J.TooltipComponent,J.LegendComponent]);const ql=t.defineComponent({name:"EcanScatter",props:{...Rt},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e){const o=H(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},r=t.computed(()=>{const y=e.xAxisLabelFormatter,_=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){a.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,formatter(T){return Se(y,T)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(T){return Se(_,T)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:function(T){var w;const{marker:F,seriesName:I}=T,M=((w=T==null?void 0:T.data)==null?void 0:w.record)??{},{name:x,value:f}=M;return ae(e.tooltipFormatter,{marker:F,seriesName:I,a:I,b:x,c:f,...M})},axisPointer:{type:"cross"}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:[{data:t.unref(n),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:c}=t.inject(X,{getGlobalModel:y=>{},setGlobalModel:(y,_)=>{}}),{pageMode:i}=t.inject(K,{pageMode:"normal"}),m=(y=[],_)=>{const{name:T="name",value:F="value"}=_||{};n.value=y.map(I=>({value:[I[T],I[F]],record:I}))};t.watch(()=>e.data,y=>{(e.dataType==="static"||t.unref(i)==="design")&&m(y)},{immediate:!0,deep:!0});const d=t.ref(!1),u=de(e),h=async()=>{var y,_;if(!(e.dataType!=="request"||t.unref(i)==="design")){d.value=!0;try{const T=await u();m((_=(y=T==null?void 0:T.data)==null?void 0:y.data)==null?void 0:_.rows,e.dataFieldNames)}catch(T){console.error(T)}finally{d.value=!1}}},g=ee(e)("click",y=>{const _=e.id,T=s(_);c(_,{...T,RECORD:y==null?void 0:y.data})});te(e,{refreshData:()=>{h()},click:g});const{setRequest:C}=t.inject(re,{setRequest:({id:y,sortNum:_,requestFn:T})=>{}});return C({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:r,style:o,click:g,loading:d,visible:a,hideModal:l}}}),vr="";function Ul(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const ro=q(j(ql,[["render",Ul]])),Dt={...Y,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},$t=W(Dt),Wl=t.defineComponent({name:"EcanCustomGraph",props:{...$t},components:{Echarts:pe},setup(e){const o=H(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const l=eval;n.value=l(a)}catch(l){console.error(l)}},{immediate:!0}),{style:o,myOption:n,echarts:Bo}}});function Hl(e,o,n,a,l,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const so=q(j(Wl,[["render",Hl]])),jt={...Y,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"},Vt=W(jt),co=["refreshData","click","resetRecord"];fe.use([Ae.CanvasRenderer,ye.BarChart,ye.LineChart,J.TitleComponent,J.LegendComponent,J.DatasetComponent,J.ToolboxComponent]);const Zl=t.defineComponent({name:"EcanComboGraph",props:{...Vt},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e){const o=H(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},s=t.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){l.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:f=>{const w=f.length;let k="",L=e.tooltipFormatter;L===""&&(L="{marker} {a} {c}");const A=e.seriesTypes;for(let E=0;E<w;E++){const v=A[E],{tooltipFormatter:P}=v||{},{marker:V,seriesName:$,name:G,value:Q,data:we}=f[E]||{};E===0&&(k+=`${G}<br/>`),k+=ae(P||L,{marker:V,name:G,value:Q,seriesName:$,a:$,b:G,c:Q,...we},{useNewline:!0,useSpace:!0}),k+="<br/>"}return k},textStyle:{color:e.tooltipTextStyleColor}},xAxis:{type:"category",data:t.unref(a),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:t.unref(d),series:t.unref(n)})),{pageMode:c}=t.inject(K,{pageMode:"normal"}),i=(f=[],w=!1)=>{let k;if(e.dataFieldConfigType==="key"){const P=w?e.keyTypeDataFieldNames:null;k=_e(f,P)}else if(e.dataFieldConfigType==="value"){const P=w?e.valueTypeDataFieldNames:null;k=ve(f,P)}a.value=k.dimensions;const L=k.dataset,A=[],E=L.length,v=e.seriesTypes;for(let P=0;P<E;P++){const V=v[P],{type:$,axisIndex:G}=V||{};let Q={type:$,yAxisIndex:G,...L[P]};$==="line"&&(Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),$==="bar"&&(Q={...Q,barWidth:e.barWidth}),A.push(Q)}n.value=A},m=(f=[],w,k=!1)=>{const A=_e(f,k?w:null);a.value=A.dimensions;const E=A.dataset,v=[],P=E.length,V=e.seriesTypes;for(let $=0;$<P;$++){const G=V[$];v.push({type:G==null?void 0:G.type,yAxisIndex:G==null?void 0:G.axisIndex,...E[$]})}n.value=v};t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([f])=>{(e.dataType==="static"||t.unref(c)==="design")&&i(f)},{immediate:!0,deep:!0});const d=t.computed(()=>{const f=e.yAxis;return f==null?void 0:f.map(w=>({type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(k){return Se(w.axisLabelFormatter,k)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),u=t.ref(!1),h=de(e),b=async()=>{var f,w;if(!(e.dataType!=="request"||t.unref(c)==="design"))try{u.value=!0;const k=await h();i((w=(f=k==null?void 0:k.data)==null?void 0:f.data)==null?void 0:w.rows,!0)}catch(k){console.error(k)}finally{u.value=!1}},g=st(e),S=async()=>{var f,w,k,L,A;if(!(e.dataType!=="indicator"||t.unref(c)==="design"))try{u.value=!0;const E=await g();let v;((k=(w=(f=E==null?void 0:E.data)==null?void 0:f.data)==null?void 0:w.columns)==null?void 0:k.length)>0&&(v={name:E.data.data.columns[0],types:E.data.data.columns.slice(1).map(P=>({label:P,value:P}))}),m((A=(L=E==null?void 0:E.data)==null?void 0:L.data)==null?void 0:A.rows,v,!0)}catch(E){console.error(E)}finally{u.value=!1}},C=()=>{t.unref(c)!=="design"&&(S(),b())},y=()=>{C()},_=ee(e),{getGlobalModel:T,setGlobalModel:F}=t.inject(X,{getGlobalModel:f=>{},setGlobalModel:(f,w)=>{}}),I=_("click",f=>{const w=e.id,k=T(w);F(w,{...k,RECORD:f==null?void 0:f.data})}),{setRequest:M}=t.inject(re,{setRequest:({id:f,sortNum:w,requestFn:k})=>{}});return M({id:e.id,requestFn:C,sortNum:e.requestSort}),te(e,{resetRecord:()=>{const f=e.id,w=T(f);F(f,{...w,RECORD:""})},refreshData:y,click:I}),{style:o,option:s,click:I,loading:u,visible:l,hideModal:r}}}),Fr="";function Jl(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const mo=q(j(Zl,[["render",Jl]])),Gt={...Y,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},qt=W(Gt),fo=["click"],Yl=t.defineComponent({name:"EcanBorder",props:{...qt},setup(e){const o=H(e,["background"]),{theme:n}=t.inject(K,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),r=ee(e)("click",()=>{}),s=t.ref([]);t.watch(()=>e.data,i=>{s.value=i},{immediate:!0,deep:!0}),te(e,{click:r});const{setGlobalModel:c}=t.inject(X,{setGlobalModel:(i,m)=>{}});return c(e.id,{type:e.type,value:s}),{style:o,click:r,borderStyle:a,theme:n}}}),Ql="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Kl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Pr="",me=e=>(t.pushScopeId("data-v-f3fc1305"),e=e(),t.popScopeId(),e),Xl=me(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ei=me(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),ti=me(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ni=me(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),oi={class:"title-item-wrapper"},ai={class:"title-item"},li=me(()=>t.createElementVNode("img",{class:"title-decoration-left",src:Ql},null,-1)),ii={class:"title"},ri=me(()=>t.createElementVNode("img",{class:"title-decoration-right",src:Kl},null,-1)),si=me(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ci=me(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),di=me(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),mi=me(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),fi={key:2,class:"left-title"},ui={class:"title"};function gi(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s))},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Xl,ei,ti,ni],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",oi,[t.createElementVNode("div",ai,[li,t.createElementVNode("div",ii,t.toDisplayString(e.title),1),ri])]),si,ci,di,mi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",fi,[t.createElementVNode("div",ui,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const uo=q(j(Yl,[["render",gi],["__scopeId","data-v-f3fc1305"]])),Ut={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default"},Wt=W(Ut),go=["showModal"],hi=t.defineComponent({name:"EcanModal",components:{AModal:D.Modal},props:{...Wt},setup(e){const o=()=>document.getElementById("ProviderConfig")||document.body,n=t.computed(()=>{const v=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[v]}}),a=e.width,l=e.height,r=e.originalWidth,s=e.originalHeight,c=t.ref("80%"),i=t.ref(0),m=t.ref(),d=t.ref(0),u=t.ref({}),h=H(e),b=t.ref({}),g=t.ref(!1),S=t.ref();let C;const y=()=>{m.value=parseFloat(a)/parseFloat(r);const v=parseFloat(l)/parseFloat(s),P=document.body.offsetWidth,V=document.body.offsetHeight;i.value=P*t.unref(m),d.value=V*v,c.value=`${t.unref(m)*100}%`,u.value={width:`${t.unref(i)}px`,height:`${t.unref(d)}px`},b.value={...t.unref(h),backgroundImage:Ce(e.backgroundImage,!0),transform:`scale(${t.unref(i)/parseFloat(a)},${t.unref(d)/parseFloat(l)})`}},_=ue.debounce(()=>{y()},100),T=()=>{const v=window.MutationObserver;C=new v(_),C.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},F=()=>{C&&(C.disconnect(),C.takeRecords(),C=null)},I=t.ref(!1),{touchRequest:M}=t.inject(re,{touchRequest:()=>{}}),x=()=>{I.value=!0,t.nextTick(()=>{M()})},f=()=>{I.value=!1},w=()=>{f()},k=()=>{f()};t.watch(()=>I.value,v=>{v?(g.value=!1,t.nextTick(()=>{y(),window.addEventListener("resize",_),T(),g.value=!0})):(window.removeEventListener("resize",_),F())});const L=t.computed(()=>t.unref(m)>=1),A=t.computed(()=>e.fullModal),E=t.computed(()=>{let v="ecan-modal";return t.unref(L)&&(v+=" ecan-full-width-modal"),t.unref(A)&&(v+=" ecan-full-modal"),v});return te(e,{showModal:x}),{modalRef:S,containStyle:u,contentStyle:b,getContainer:o,modalStyle:n,modalWith:c,isFullModal:A,style:h,visible:I,showModal:x,onOk:w,onCancel:k,isFullWidth:L,wrapClassName:E,ready:g}}}),Dr="",$r="";function yi(e,o,n,a,l,r){const s=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},t.createSlots({default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,(c,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.mergeProps({key:c.id+i},c),null,16))),128))],4)):t.createCommentVNode("",!0)],4)]),_:2},[e.title?{name:"title",fn:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor,backgroundColor:e.backgroundColor,padding:"16px 24px"})},t.toDisplayString(e.title),5)])}:void 0]),1032,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const ho=q(j(hi,[["render",yi],["__scopeId","data-v-d4c1c742"]])),Ht={...Y,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,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},Zt=W(Ht),yo=["tabChange"],bi=t.defineComponent({name:"EcanTabs",props:{...Zt},setup(e){var d;const o=H(e),n=t.ref(0);t.watch(()=>e.activeKey,u=>{n.value=u},{immediate:!0});const a=t.ref([]);t.watch(()=>e.data,u=>{a.value=u},{immediate:!0,deep:!0});const l=u=>n.value===u,r=t.ref(e.value||t.unref(a)[0]&&((d=t.unref(a)[0])==null?void 0:d.value)||""),s=ee(e),{setGlobalModel:c}=t.inject(X,{setGlobalModel:(u,h)=>{}});c(e.id,{value:r,activeKey:n});const{emitRefreshPage:i}=t.inject(Me,{emitRefreshPage:()=>{}}),m=s("tabChange",(u,h)=>{h!==t.unref(n)&&(r.value=(u==null?void 0:u.value)||"",n.value=h,i())});return te(e,{tabChange:m}),{style:o,activeKey:n,isActive:l,tabChange:m,myData:a,useImagePath:Ce}}}),Vr="",pi=["onClick"];function Ci(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style)},[t.createElementVNode("div",{class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(s,c)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.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:t.withModifiers(i=>e.tabChange(s,c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(s.title),5)],12,pi))),128))],4)],4)}const bo=q(j(bi,[["render",Ci],["__scopeId","data-v-3db5a989"]])),Jt={...Y,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Yt=W(Jt),ki=t.defineComponent({name:"EcanImage",props:{...Yt},setup(e){const o=H(e),n=t.computed(()=>Ce(e.imgUrl)),{pageMode:a}=t.inject(K,{pageMode:"normal"});return{style:o,myImgUrl:n,onClick:()=>{if(!e.linkPage&&!e.href)return;const r=e.linkPage||"",s=Nn(t.unref(a),r),c=e.href;let i=c||s;i=ae(i);const m=e.target;m==null||m===""||(m!=="event"?window.open(i,"_"+m):window.parent.postMessage({type:"openPage",url:c},"*"))}}}}),qr="",Si=["src"];function wi(e,o,n,a,l,r){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Si)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const po=q(j(ki,[["render",wi],["__scopeId","data-v-9706b851"]])),Qt={...Y,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Kt=W(Qt),Ai=t.defineComponent({name:"EcanIframe",props:{...Kt},setup(e){const o=H(e),{contextRequestUrl:n}=t.inject(K,{contextRequestUrl:""}),a=t.computed(()=>{let l=ae(e.link);if(e.linkType==="erd"&&l!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",l=`${Ja||r}?_t=0&uid=${l}`}return l});return{style:o,myLink:a}}}),Wr="",Ti=["src"];function xi(e,o,n,a,l,r){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,Ti)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Co=q(j(Ai,[["render",xi],["__scopeId","data-v-b0be60e8"]])),Xt={...Y,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{chartType:"table",plugin:"1",layer:"1"}},en=W(Xt),ko=["click","refreshData","resetRecord"],_i=t.defineComponent({name:"EcanTable",components:{Skeleton:$e,AInput:D.Input,ACheckboxGroup:D.CheckboxGroup,ATable:D.Table,ATableSummary:D.TableSummary,ATableSummaryRow:D.TableSummaryRow,ATableSummaryCell:D.TableSummaryCell},props:{...en},setup(e,{expose:o}){const n=H(e),a=t.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=t.computed(()=>e.scrollX),r=t.computed(()=>parseFloat(e.height)-t.unref(a)),s=t.ref([]),c=t.ref([]),i=t.ref([]),m=t.ref([]),d=t.ref(0),u=t.ref(1),h=t.computed(()=>e.paginationPageSize),b=t.reactive([]),g=(N=[])=>{if(Array.isArray(N)&&N.length>0){const B=N.length,O=e.columnsFixedNum;for(let R=0;R<B;R++){const z=N[R];R<O?z.fixed="left":z.fixed=!1;const{cellAlign:U="center",cellColor:Z,dataIndex:ne,title:le,tableFilter:oe,headerCellAlign:ze,headerCellColor:qe}=z;oe&&(b.push(ne),z.filterOptionsInputValue="",z.filterCheckboxGroupValue=[],z.customFilterDropdown=!0,z.onFilter=(Fe,on)=>on[ne].toString().toLowerCase().includes(Fe.toLowerCase())),z.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:ze||"center",color:qe,borderBottomColor:e.borderColor}}),z.customCell=(Fe,on)=>({style:{textAlign:U,color:Z,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(Q)===on&&e.clickHighlight},onClick:A("click",()=>{const Lo=e.id,Di=v(Lo);Fe={dataIndex:ne,title:le,...Fe},P(Lo,{...Di,RECORD:Fe})})}),Array.isArray(z.children)&&g(z.children)}}},S=(N=[])=>(e.isUseSeq&&N.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&N.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),g(N),N);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{s.value=S(ue.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([N,B])=>{B==="static"&&(c.value=N)},{immediate:!0});const C=t.ref({}),y=N=>{if(Array.isArray(N)){const B=N.length,O=b,R=O.length,z={};for(let Z=0;Z<B;Z++){const ne=N[Z];for(let le=0;le<R;le++){const oe=O[le];if(z[oe])z[oe].add(ne[oe]);else{const ze=new Set;ze.add(ne[oe]),z[oe]=ze}}}const U={};for(const Z in z)if(Object.prototype.hasOwnProperty.call(z,Z)){const ne=z[Z],le=Array.from(ne);U[Z]=le.map(oe=>({label:oe,value:oe}))}C.value=U}};t.watch(()=>[e.isReverse,s.value,c.value],()=>{const N=t.unref(s),B=t.unref(c);if(y(B),e.isReverse){const{columns:O,dataSource:R}=_(ue.cloneDeep(N),ue.cloneDeep(B));i.value=O,m.value=R}else i.value=N,m.value=B},{immediate:!0,flush:"post"});const _=(N,B)=>{const O=N[0],R=[{title:O.title,dataIndex:"col0",key:"col0",align:"center"}];for(let U=0;U<B.length;U++){const Z=B[U],ne="col"+(U+1);R.push({title:Z[O.dataIndex],dataIndex:ne,key:ne,align:"center"})}const z=[];for(let U=1;U<N.length;U++){const Z=N[U],ne={col0:Z.title};for(let le=0;le<B.length;le++){const oe=B[le];ne[`col${le+1}`]=oe[Z.dataIndex]}z.push(ne)}return{columns:R,dataSource:z}},T=t.ref(""),F=de(e),I=t.ref(!1),M=async(N=!0)=>{var B;try{N&&(I.value=!0);let O={};t.unref(T)&&(O.orderCondition=t.unref(T)),e.paginationShow&&(O={pageNum:t.unref(u),pageSize:t.unref(h),layer:"1",...O});const R=await F(O),{rows:z=[],total:U=0}=((B=R==null?void 0:R.data)==null?void 0:B.data)||{};d.value=U,Array.isArray(z)&&(c.value=z)}catch(O){console.error(O)}finally{I.value=!1}},x=({current:N},B,O)=>{if(u.value=N,O&&Object.keys(O).length>0){const{field:R,order:z}=O,Z={ascend:"asc",descend:"desc"}[z];R!=null&&Z!=null&&(T.value=R+" "+Z,u.value=1)}Ge(!1)},f=t.computed(()=>{const N=e.simple,B=[e.paginationPosition];return e.paginationShow&&{simple:N,position:B,total:t.unref(d),current:t.unref(u),pageSize:t.unref(h),showSizeChanger:!1}}),w=N=>+N==1?"是":+N==0?"否":N,k=(N,B)=>B==null||B===""?N:{money:rt,percentage:Ve,contrast:Ve,boolean:w}[B](N)||"",L=(N,B)=>{const O=parseFloat(N+"");if(B!=="contrast")return"";switch(!0){case O>=0:return"goUp";case O<0:return"goDown"}},A=ee(e),{pageMode:E}=t.inject(K,{pageMode:"normal"}),{getGlobalModel:v,setGlobalModel:P}=t.inject(X,{getGlobalModel:N=>{},setGlobalModel:(N,B)=>{}}),V=(N=[],B=[])=>{const O=N.map(R=>({title:R,dataIndex:R,key:R}));s.value=S(O),c.value=B},$=Mn(e),G=async()=>{var N,B,O,R;try{I.value=!0;const z=await $();V((B=(N=z==null?void 0:z.data)==null?void 0:N.data)==null?void 0:B.columns,(R=(O=z==null?void 0:z.data)==null?void 0:O.data)==null?void 0:R.rows)}catch(z){console.error(z)}finally{I.value=!1}},Q=t.ref(-1),we=(N,B)=>({onClick:A("rowClick",()=>{const O=e.id,R=v(O);P(O,{...R,RECORD:N}),Q.value=B})}),Ge=(N=!0)=>{if(t.unref(E)!=="design")switch(e.dataType){case"request":M(N);break;case"indicator":G();break}};te(e,{resetRecord:()=>{const N=e.id,B=v(N);P(N,{...B,RECORD:""})},refreshData:Ge});const Pi=t.computed(()=>{const N=t.unref(i),B=[];let O=0;for(let z=0;z<N.length;z++){const U=N[z],{isCalcTotal:Z}=U;e.isUseSeq&&z===0?B.push({...U,total:"小计"}):Z?(B.push({...U,index:z,total:0}),O++):B.push({...U})}if(O===0)return[];let R=t.unref(m);if(e.paginationShow){const z=(t.unref(u)-1)*t.unref(h),U=z+t.unref(h);R=R.slice(z,U)}for(let z=0;z<B.length;z++){const U=B[z];let Z=0;const{isCalcTotal:ne,dataIndex:le}=U;if(ne===!0){for(let oe=0;oe<R.length;oe++){const qe=+R[oe][le];isNaN(qe)||(Z=new Mo.Big(Z).add(qe).toNumber())}U.total=Z}}return B}),{setRequest:Ri}=t.inject(re,{setRequest:({id:N,sortNum:B,requestFn:O})=>{}});return Ri({id:e.id,requestFn:Ge,sortNum:e.requestSort}),o({refreshData:Ge}),{x:l,y:r,style:n,customRow:we,pagination:f,formatFn:k,contrastClass:L,tableChange:x,summaryList:Pi,loading:I,onTouchHrefEvent:(N,B="")=>{N==="event"&&window.parent.postMessage({type:"openPage",url:B},"*")},handleHref:(N="",B)=>ae(N,B),handleHrefTarget:N=>{if(N!=="event")return{self:"_self",blank:"_blank"}[N]},useRowIndex:Q,tableColumns:i,tableDataSource:m,useFilterOptions:N=>{const B=N.dataIndex;if(typeof B=="string"){let O=t.unref(C)[B];const R=t.unref(N.filterOptionsInputValue).trim();return Array.isArray(O)?(O=O.filter(z=>typeof z.label=="string"?z.label.toLowerCase().includes(R.toLowerCase()):!0),O):[]}return[]},useSetSelectedKeys:(N,B)=>{N(B.filterCheckboxGroupValue)},onResetFilter:(N,B)=>{N({confirm:!0}),B.filterOptionsInputValue="",B.filterCheckboxGroupValue=[]},onSearchFilterOptions:()=>{}}}}),Zr="",Jr="",Ei=t.createTextVNode(" 搜索 "),Li=t.createTextVNode(" 重置 "),Ii={key:0},Ni={key:1,class:"action-list"},Mi=["href","target","onClick"];function vi(e,o,n,a,l,r){const s=t.resolveComponent("a-input"),c=t.resolveComponent("a-checkbox-group"),i=t.resolveComponent("a-button"),m=t.resolveComponent("a-table-summary-cell"),d=t.resolveComponent("a-table-summary-row"),u=t.resolveComponent("a-table-summary"),h=t.resolveComponent("a-table"),b=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(b,{loading:e.loading},{default:t.withCtx(()=>[t.createVNode(h,{class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:g,selectedKeys:S,setSelectedKeys:C,confirm:y,clearFilters:_})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(s,{value:g.filterOptionsInputValue,"onUpdate:value":T=>g.filterOptionsInputValue=T,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(c,{value:g.filterCheckboxGroupValue,"onUpdate:value":T=>g.filterCheckboxGroupValue=T,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:T=>e.useSetSelectedKeys(C,g)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(i,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>y()},{default:t.withCtx(()=>[Ei]),_:2},1032,["onClick"]),t.createVNode(i,{size:"small",style:{width:"90px"},onClick:T=>e.onResetFilter(_,g)},{default:t.withCtx(()=>[Li]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:g,index:S,text:C,record:y})=>[g.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",Ii,t.toDisplayString(S+1),1)):t.createCommentVNode("",!0),g.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Ni,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(_,T)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:T},[t.createElementVNode("a",{href:e.handleHref(_.href,y),target:e.handleHrefTarget(_.target),style:t.normalizeStyle({color:_.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:F=>e.onTouchHrefEvent(_.target,e.handleHref(_.href,y))},t.toDisplayString(_.title),13,Mi)]))),128))])):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass([e.contrastClass(C,g.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(g.format!=null?e.formatFn(C,g.format):C),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx(()=>[t.createVNode(d,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(g,S)=>(t.openBlock(),t.createBlock(m,{key:S,index:S,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:g.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(g.total,g.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]),_:1},8,["loading"])],4)}const So=q(j(_i,[["render",vi],["__scopeId","data-v-4292daa2"]])),tn={...Y,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},nn=W(tn);fe.use([Ae.CanvasRenderer,ye.MapChart,ye.ScatterChart,J.VisualMapComponent,J.TooltipComponent,J.GraphicComponent]);const Bi=t.defineComponent({name:"EcanMap",components:{Echarts:pe},props:{...nn},setup(e){const o=H(e,["backgroundImage"]),n=t.ref(),a=t.computed(()=>Ce(e.geoBackgroundImage)),l=t.computed(()=>Ce(e.backgroundImage)),r=t.computed(()=>e.geoBackgroundImage?{image:t.unref(n),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),s=t.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+Ce(d):"circle"}),c=t.computed(()=>{const d=e.geoCenter;let u;return typeof d=="string"&&d!==""&&(u=d.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(l)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:u,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(r),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(s),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),i=t.ref(!1),m=async()=>{var u;const d=e.mapJson;if(d!=null&&d.path){const h=await ke(((u=window==null?void 0:window.config)==null?void 0:u.uploadPath)+d.path);fe.registerMap("map",(h==null?void 0:h.data)||{})}i.value=!0};return t.watch(()=>e.mapJson,()=>{m()},{immediate:!0,deep:!0}),{option:c,style:o,isLoadedData:i,geoBackgroundImageRef:n,myGeoBackgroundImage:a}}}),Qr="",zi=["src"];function Fi(e,o,n,a,l,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,zi),[[t.vShow,!1]])],4)}const wo=q(j(Bi,[["render",Fi],["__scopeId","data-v-1eea2b3c"]])),Ao=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:lo,EcanBorder:uo,EcanButton:Qn,EcanCheckbox:Xn,EcanComboGraph:mo,EcanCustomGraph:so,EcanDatePicker:Un,EcanIframe:Co,EcanImage:po,EcanInput:Gn,EcanLine:oo,EcanList:Dn,EcanMap:wo,EcanModal:ho,EcanPageConfig:vn,EcanPie:to,EcanProportion:jn,EcanProviderConfig:Bn,EcanRangePicker:Jn,EcanScatter:ro,EcanScrollText:On,EcanSelect:Hn,EcanTable:So,EcanTabs:bo,EcanText:Fn,EcanTimeDisplay:Pn,barComponentProps:Ot,barEvents:ao,barProps:Ft,borderComponentProps:qt,borderEvents:fo,borderProps:Gt,buttonComponentProps:Lt,buttonEvents:Yn,buttonProps:Et,checkboxComponentProps:Nt,checkboxEvents:Kn,checkboxProps:It,comboGraphComponentProps:Vt,comboGraphEvents:co,comboGraphProps:jt,customGraphComponentProps:$t,customGraphProps:Dt,datePickerComponentProps:wt,datePickerEvents:qn,datePickerProps:St,iframeComponentProps:Kt,iframeProps:Qt,imageComponentProps:Yt,imageProps:Jt,inputComponentProps:kt,inputEvents:Vn,inputProps:Ct,lineComponentProps:zt,lineEvents:no,lineProps:Bt,listComponentProps:yt,listEvents:Rn,listProps:ht,mapComponentProps:nn,mapProps:tn,modalComponentProps:Wt,modalEvents:go,modalProps:Ut,pageConfig:at,pageConfigComponentProps:lt,pieComponentProps:vt,pieEvents:eo,pieProps:Mt,proportionComponentProps:pt,proportionEvents:$n,proportionProps:bt,providerConfig:ct,providerConfigComponentProps:dt,rangePickerComponentProps:_t,rangePickerEvents:Zn,rangePickerProps:xt,scatterComponentProps:Rt,scatterEvents:io,scatterProps:Pt,selectComponentProps:Tt,selectEvents:Wn,selectProps:At,tableComponentProps:en,tableEvents:ko,tableProps:Xt,tabsComponentProps:Zt,tabsEvents:yo,tabsProps:Ht,textComponentProps:ft,textEvents:zn,textProps:mt,timeDisplayComponentProps:gt,timeDisplayProps:ut},Symbol.toStringTag,{value:"Module"})),Oi={install:e=>{Object.keys(Ao).forEach(o=>{const n=Ao[o];n.install&&e.use(n)})}};p.EcanBar=lo,p.EcanBorder=uo,p.EcanButton=Qn,p.EcanCheckbox=Xn,p.EcanComboGraph=mo,p.EcanCustomGraph=so,p.EcanDatePicker=Un,p.EcanIframe=Co,p.EcanImage=po,p.EcanInput=Gn,p.EcanLine=oo,p.EcanList=Dn,p.EcanMap=wo,p.EcanModal=ho,p.EcanPageConfig=vn,p.EcanPie=to,p.EcanProportion=jn,p.EcanProviderConfig=Bn,p.EcanRangePicker=Jn,p.EcanScatter=ro,p.EcanScrollText=On,p.EcanSelect=Hn,p.EcanTable=So,p.EcanTabs=bo,p.EcanText=Fn,p.EcanTimeDisplay=Pn,p.barComponentProps=Ot,p.barEvents=ao,p.barProps=Ft,p.borderComponentProps=qt,p.borderEvents=fo,p.borderProps=Gt,p.buttonComponentProps=Lt,p.buttonEvents=Yn,p.buttonProps=Et,p.checkboxComponentProps=Nt,p.checkboxEvents=Kn,p.checkboxProps=It,p.comboGraphComponentProps=Vt,p.comboGraphEvents=co,p.comboGraphProps=jt,p.customGraphComponentProps=$t,p.customGraphProps=Dt,p.datePickerComponentProps=wt,p.datePickerEvents=qn,p.datePickerProps=St,p.default=Oi,p.iframeComponentProps=Kt,p.iframeProps=Qt,p.imageComponentProps=Yt,p.imageProps=Jt,p.inputComponentProps=kt,p.inputEvents=Vn,p.inputProps=Ct,p.lineComponentProps=zt,p.lineEvents=no,p.lineProps=Bt,p.listComponentProps=yt,p.listEvents=Rn,p.listProps=ht,p.mapComponentProps=nn,p.mapProps=tn,p.modalComponentProps=Wt,p.modalEvents=go,p.modalProps=Ut,p.pageConfig=at,p.pageConfigComponentProps=lt,p.pieComponentProps=vt,p.pieEvents=eo,p.pieProps=Mt,p.proportionComponentProps=pt,p.proportionEvents=$n,p.proportionProps=bt,p.providerConfig=ct,p.providerConfigComponentProps=dt,p.rangePickerComponentProps=_t,p.rangePickerEvents=Zn,p.rangePickerProps=xt,p.scatterComponentProps=Rt,p.scatterEvents=io,p.scatterProps=Pt,p.selectComponentProps=Tt,p.selectEvents=Wn,p.selectProps=At,p.tableComponentProps=en,p.tableEvents=ko,p.tableProps=Xt,p.tabsComponentProps=Zt,p.tabsEvents=yo,p.tabsProps=Ht,p.textComponentProps=ft,p.textEvents=zn,p.textProps=mt,p.timeDisplayComponentProps=gt,p.timeDisplayProps=ut,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ba(e,o){if(e){if(typeof e=="string")return Tn(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tn(e,o)}}function Tn(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function za(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,s,c;try{for(n=n.call(e);!(l=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,c=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw c}}return a}}function Fa(e){if(Array.isArray(e))return e}function xn(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){nt(e,l,n[l])})}return e}function nt(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Oa(e,o){if(e==null)return{};var n=Pa(e,o),a,l;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(l=0;l<r.length;l++)a=r[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Pa(e,o){if(e==null)return{};var n={},a=Object.keys(e),l,r;for(r=0;r<a.length;r++)l=a[r],!(o.indexOf(l)>=0)&&(n[l]=e[l]);return n}An("#1890ff");var xe=function(o,n){var a,l=xn({},o,n.attrs),r=l.class,s=l.icon,c=l.spin,i=l.rotate,m=l.tabindex,d=l.twoToneColor,u=l.onClick,h=Oa(l,Na),b=(a={anticon:!0},nt(a,"anticon-".concat(s.name),Boolean(s.name)),nt(a,r,r),a),g=c===""||c||s.name==="loading"?"anticon-spin":"",S=m;S===void 0&&u&&(S=-1,h.tabindex=S);var C=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=kn(d),_=Ma(y,2),T=_[0],F=_[1];return t.createVNode("span",xn({role:"img","aria-label":s.name},h,{onClick:u,class:b}),[t.createVNode(tt,{class:g,icon:s,primaryColor:T,secondaryColor:F,style:C},null)])};xe.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},xe.displayName="AntdIcon",xe.inheritAttrs=!1,xe.getTwoToneColor=Ia,xe.setTwoToneColor=An;const Ra=xe;var Da={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const $a=Da;function _n(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ja(e,l,n[l])})}return e}function ja(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var ot=function(o,n){var a=_n({},o,n.attrs);return t.createVNode(Ra,_n({},a,{icon:$a}),null)};ot.displayName="LoadingOutlined",ot.inheritAttrs=!1;const Va=ot,Ga=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:D.Spin},setup(){return{indicator:t.h(Va,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Qi="",j=(e,o)=>{const n=e.__vccOpts||e;for(const[a,l]of o)n[a]=l;return n},qa={class:"spin-wrapper"};function Ua(e,o,n,a,l,r){const s=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",qa,[e.spinning?(t.openBlock(),t.createBlock(s,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const Ne=j(Ga,[["render",Ua]]),Wa=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:D.Skeleton}});function Ha(e,o,n,a,l,r){const s=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(s,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const $e=j(Wa,[["render",Ha]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const q=(e,o)=>{if(e.install=n=>{for(const a of[e,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))e[n]=a;return e},Y={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},W=e=>ue.mapValues(e,o=>o==null?{}:{type:o.constructor,default:o}),at={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},lt=W(at),Za=["width","height","color","position","top","left","rotate","fontSize","fontFamily","fontWeight","textDecoration","textAlign","lineHeight","verticalAlign","overflow","backgroundColor","backgroundImage","backgroundSize","borderWidth","borderStyle","borderRadius","borderColor","textShadow","justifyContent","alignItems","zIndex"],H=(e,o=[])=>{const n=ue.without(Za,...o);return t.computed(()=>ue.pick(e,n))},it="EVENT_BUS",K="GLOBAL_CONFIG",X="GLOBAL_MODEL",re="REQUEST_MODEL",En="GLOBAL_TOKEN",Me="REFRESH_PAGE",je=(To=window==null?void 0:window.config)==null?void 0:To.indicatorURL;(xo=window==null?void 0:window.config)!=null&&xo.uploadPath;const Ln=((_o=window==null?void 0:window.config)==null?void 0:_o.routerBaseURL)||"./",Ja=((Eo=window==null?void 0:window.config)==null?void 0:Eo.erdURL)||"",te=(e,o)=>{t.watch(()=>e.id,(n,a)=>{const l=t.inject(it,{onEvent:(r,s)=>{},offEvent:r=>{}});n!=null&&n!==""&&l.onEvent(n,o)},{immediate:!0})},ee=e=>{const o=e.events,n=e.id,a=t.inject(it,{emitEvent:(r,s)=>{}}),{touchEventId:l}=t.inject(K,{touchEventId:t.ref("")});return(r,s=()=>{})=>function(){if(s.call(this,...arguments),a){const{emitEvent:c}=a;o.forEach(i=>{if(r===i.on)try{l.value=n,c(i.target,i.emit)}catch(m){console.error(m)}})}}},ve=(e,o)=>{let{name:n="name",value:a="value",type:l="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),l=l==null?void 0:l.trim();const r=new Set,s=new Map,c=e.length;for(let d=0;d<c;d++){const u=e[d],h=u[n]||"",b=u[a]||"",g=u[l]||"";if(r.add(h),s.has(g)){const S=s.get(g);S.push({name:h,value:b,...u}),s.set(g,S)}else s.set(g,[{name:h,value:b,...u}])}const i=Array.from(r),m=[];for(const[d,u]of s)m.push({name:d,data:u});return{dimensions:i,dataset:m}},Ya=e=>e.replace(/\\n/g,`
59
+ `),rt=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)||n<0?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},Ve=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},In=(e,o)=>typeof e=="string"&&typeof o=="string"?e.toLocaleLowerCase().includes(o.toLocaleLowerCase()):!1,ae=(e="",o={},{useNewline:n=!1,useSpace:a=!1}={})=>{o={...window.config||{},...o};const r=e.match(/\{(.+?)\}/g);if(r==null||r.length===0)return e;for(let s=0;s<r.length;s++){const c=r[s];let i=c.slice(1,-1);const m=/[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g,d=i.match(m);for(let u=0;u<d.length;u++){const h=d[u],b=o[h];b!=null&&(i=i.replace(h,b))}try{i=(0,eval)(i)}catch{}e=e.replace(c,i)}return n&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),a&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},de=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:l,requestParams:r,requestInterval:s,isOpenRequestTimer:c}=e,{contextRequestUrl:i,pageMode:m,touchEventId:d}=t.inject(K,{contextRequestUrl:"",pageMode:"normal",touchEventId:""}),{getGlobalModel:u}=t.inject(X,{getGlobalModel:S=>{}}),h=ae(n),b=async(S={})=>{if(!h||!a||!l||t.unref(m)==="design")return;let C={};r.forEach(I=>{const{key:M,value:x}=I;if(typeof x=="object"&&x.id){let f={};const{id:w,prop:k,propKey:L,operate:A}=x;w==="THIS"?f=u(t.unref(d))||{}:f=u(w)||{};const E=t.unref(f[k]);let v=null;if(["date","range"].some(V=>In(f==null?void 0:f.type,V))){const{value:V,type:$,mode:G}=A||{};if(V&&$&&G)switch($){case"add":v=t.unref(E).add(V,G);break;case"minus":v=t.unref(E).subtract(V,G);break}v==null&&(v=t.unref(E)),v=(v==null?void 0:v.format((L==null?void 0:L.trim())||f.format))||""}else Object.prototype.toString.call(E)==="[object Object]"?v=E[L||"value"]:v=E;C[M]=v}else typeof x=="string"&&(C[M]=ae(x))}),C={...window.config.requestParams,...S,...C};let y="";const _=Object.keys(C),T=_.length-1,F=_.length;_.forEach((I,M)=>{M===0?F!==1?y+=`?${I}=${C[I]}&`:y+=`?${I}=${C[I]}`:M===T?y+=`${I}=${C[I]}`:y+=`${I}=${C[I]}&`});try{const I=["get","head"].includes(a),M=await Ue({baseURL:t.unref(i),url:I?h+y:h,method:a,headers:l,data:I?{}:C});return o(M),M}catch(I){console.error(I)}},g=c&&setInterval(b,s*1e3);return t.onUnmounted(()=>{clearInterval(g)}),b},_e=(e=[],o)=>{let{name:n="name",types:a=[]}=o||{};n=(n==null?void 0:n.trim())||n;const l=new Set,r=new Map,s=e.length,c=a.length;if(s===1){const d=[];for(let h=0;h<c;h++){const b=a[h],{label:g,value:S}=b,C={...e[0],value:e[0][S]};l.add(g),d.push(C)}const u=e[0][n]||"";r.set(u,d)}else for(let d=0;d<s;d++){const u=e[d],h=u[n];l.add(h);for(let b=0;b<c;b++){const g=a[b],{label:S,value:C}=g,y={...u,value:u[C]};if(r.has(S)){const _=r.get(S);_.push(y),r.set(S,_)}else r.set(S,[y])}}const i=Array.from(l),m=[];for(const[d,u]of r)m.push({name:d,data:u});return{dimensions:i,dataset:m}},Ce=(e,o=!1)=>{var a;if(!e)return e;let n="";return e!=null&&e.includes("://")?n=e:n=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,o&&(n=`url(${n})`),n},Nn=(e,o)=>{const n=`${Ln}/preview?pageId=${o}`,a=`${Ln}/${o}`;return e==="preview"?n:a},ke=Ue.create({});ke.interceptors.request.use(e=>e,e=>Promise.reject(e)),ke.interceptors.response.use(e=>{var o,n,a;return+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&D.message.error({content:((n=e==null?void 0:e.data)==null?void 0:n.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR"}),e},e=>{if(e.message.includes("timeout"))D.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:o}=e.response;o>=400&&o<500&&D.message.error({content:"请求异常",key:"REQUEST_ERROR"}),o>=500&&D.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const st=e=>{const{getGlobalModel:o}=t.inject(X,{getGlobalModel:i=>{}}),n=i=>{const m=[];return i==null||i.leftAxisList.forEach(d=>{if(d){let u=!1;i.leftAxis.includes(d.name)&&(u=!0);let h={label:d.name,columnName:d.label,aggregate:d.calcValue?d.calcValue:"SUM",order:null,location:"LEFT",show:u};i.source==="INDICATOR_LIB"&&(h.hrpIndexCode=d.indexCode),h=a(d,h),m.push(h)}}),i.rightAxisList.forEach(d=>{let u=!1;i.rightAxis.includes(d.name)&&(u=!0);let h={label:d.name,columnName:d.label,aggregate:"SUM",order:null,location:"LEFT",show:u};h=a(d,h),i.source==="INDICATOR_LIB"&&(h.hrpIndexCode=d.indexCode),m.push(h)}),m},a=(i,m)=>{const d={...m};return i.calcMethod?i.calcMethod==="FORMULA"?(i.formulafuc&&(d.formula=i.formulafuc),d.calcType="FORMULA"):(d.builtInFormula=i.calculmethod,d.calcType="BUILT_IN",i.comeFrom&&(d.builtInValueSource=i.comeFrom),i.accessPrinciple&&(d.builtInCalcWay=i.accessPrinciple)):d.calcType="COLUMN",d},l=(i=[])=>{var d;const m=[];for(let u=0;u<i.length;u++){const{keyName:h,searchName:b,searchType:g,variateName:S,id:C}=i[u],y={alias:h,fieldName:b,rule:g||"NONE",fieldValue:"",valueType:"",variateName:S},_=o(C)||{};if(b==="the_date"?y.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(b)&&(y.valueType="TEXT"),_.type==="ecanDatePicker"){y.dateFormat=_.format;const T=(d=t.unref(_))==null?void 0:d.value.format;typeof T=="function"&&(y.fieldValue=T(_==null?void 0:_.format))}m.push(y)}return m},r=(i,m)=>{const d=m.find(u=>u.name===i.label);d.sort.type&&(d.sort.type!=="CUSTOM"?i.sort={label:d.sort.label,columnName:d.sort.columnName,type:"NORMAL",order:d.sort.type}:i.sort={label:d.label,columnName:d.columnName,type:"CUSTOM",customOrderColumns:d.sort.customOrderColumns}),d.customGroup&&d.customGroup.groupList.length>1&&(i.customGroup={groupInfoMap:{},otherGroupName:""},d.customGroup.groupList.forEach((u,h)=>{h!==0&&(i.customGroup.groupInfoMap[u.key]=u.value)}),i.customGroup.otherGroupName=d.customGroup.otherName||""),i.rangeIndexTypeGuid=d.typeGuid,i.customFilterSqlPart=d.filterSql||""},s=(i,m)=>{for(let d=0;d<i.children.length;d++)if(i.children[d].children.length>0){let u="";i.type==="and"?u="&&":u="||",m.push({conditions:[],join:u}),s(i.children[d],m[m.length-1].conditions)}else if(i.children[d].fieldName){let u="";const h={fieldName:i.children[d].fieldName,fieldType:i.children[d].itemType,rule:i.children[d].rule,fieldValue:"",label:i.children[d].label,version:i.children[d].version?i.children[d].version:100,targetSource:i.children[d].targetSource?i.children[d].targetSource:""};if(u=JSON.parse(JSON.stringify(i.children[d].fieldValue)),i.children[d].itemType==="DATE")h.dateFormat=i.children[d].format,h.dateCalcTypes=i.children[d].dateCalcTypes,h.calcWays=i.children[d].calcWays,i.children[d].selectType==="time"?i.children[d].absoluteBool&&(u="#######",h.calcWays=i.children[d].calcWays):i.children[d].selectType==="component"&&(u="${"+i.children[d].relateCompent+"}"),h.dateFormat=i.children[d].format,h.dateCalcTypes=i.children[d].dateCalcTypes,h.calcWays=i.children[d].calcWays;else if(Object.prototype.toString.call(u)==="[object Array]"){const b=[];for(let g=0;g<u.length;g++)u[g]!=="全选"&&b.push(u[g]);u=b.join(",")}h.fieldValue=u,i.children.length>1&&d!==i.children.length-1&&(i.type==="and"?h.join="&&":h.join="||"),m.push(h)}},c=(i,m,d)=>{if(!i)return;const u=d[m].find(g=>g.name===i.label);if(!u)return;const h=[],b=u.filterList;if(b)for(let g=0;g<b.length;g++)b[g].children.length>0&&s(b[g],h);return h};return async function(){var I,M;const i=e.type;let m=e.graphicConfig;(!m||Object.keys(m).length===0)&&(m={classify:[],classifyList:[],series:[],seriesList:[],leftAxis:[],leftAxisList:[],rightAxis:[],rightAxisList:[],relativeList:[]});const d=m.classify;if([...m.leftAxis,...m.rightAxis].length===0){D.message.error("当前y轴无配置信息");return}const h=n(m);let b;if(Array.isArray(m.series)&&m.series.length>0){const x=(I=m.seriesList)==null?void 0:I.find(f=>{const w=m.series[0];return f.name===w||f.nameBak===w});x!=null&&(b={label:x.name,columnName:x.label})}let g;if(d.length>0){g={label:d[0],columnName:d[0]};const x=((M=m.classifyList)==null?void 0:M.find(f=>(f==null?void 0:f.name)===d[0]||(f==null?void 0:f.nameBak)===d[0]))||{};g.columnName=x.label,r(g,m.classifyList),g.conditions=c(g,"classifyList",m)||[]}b&&(r(b,m.seriesList),b.conditions=c(b,"seriesList",m)||[]);for(let x=0;x<h.length;x++)h[x].location==="RIGHT"?h[x].conditions=c(h[x],"rightAxisList",m):h[x].conditions=c(h[x],"leftAxisList",m);let S;(m==null?void 0:m.pageMode)==="design"?S=m.sqlConditions??[]:S=l(m==null?void 0:m.relativeList);let C="SQL_VIEW",y="",_="",T="";m.source==="INDICATOR_LIB"&&(C="INDICATOR_LIB",y=m.fixedDimSql,_=m.dataSourceId,T=m.idxLibMode);const F={ecanBar:"bar",ecanLine:"line",ecanPie:"pie",ecanScatter:"scatter"};try{const x=await ke.get(`${je}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});return ke.post(`${je}/diagram`,{dataViewId:m.dataViewId,plugin:"1",layer:"2",chartType:F[i],classification:g,indicatorList:h,series:b,sqlConditions:S,source:C,fixedDimSql:y,dataSourceId:_,idxLibMode:T},{headers:{Authentication:x.data.data.token}})}catch(x){console.error(x)}}},Se=(e,o)=>{if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let l=0;l<a;l++){const r=n[l];if(r==null||r==="")break;let s=r.slice(1,-1);s=s==null?void 0:s.replace(/value/g,o);try{let c=s;/[+\-*/%]+/g.test(s)&&(c=(0,eval)(s)),e=e.replace(r,c)}catch(c){e=e.replace(r,s),console.warn(c)}}return e},Mn=(e={})=>{const{requestToken:o}=t.inject(En,{requestToken:()=>{}});e.dataType==="indicator"&&o();const n=(s={})=>{const{label:c,name:i,location:m,show:d,indexCode:u}=s;return{label:c,columnName:i,location:m,show:d,calcType:"COLUMN",hrpIndexCode:u}},a=(s={})=>{const{label:c,name:i,location:m,show:d,indexCode:u,calcType:h="COLUMN",builtInFormula:b,builtInValueSource:g,builtInCalcWay:S,formula:C,conditions:y}=s;return{label:c,columnName:i,location:m,show:d,calcType:h,hrpIndexCode:u,aggregate:"SUM",builtInFormula:b,builtInValueSource:g,builtInCalcWay:S,formula:C,conditions:y}},{getGlobalModel:l}=t.inject(X,{getGlobalModel:s=>{}}),r=(s=[])=>{var m;const c=s.length,i=[];for(let d=0;d<c;d++){const u=s[d],{id:h,conditionLabel:b,conditionKey:g,conditionValueType:S}=u,C={rule:"NONE",label:b,fieldName:g,fieldValue:"",valueType:S},y=l(h)||{};if(In(y.type,"date")){const{value:_,format:T}=y||{};C.fieldValue=(m=t.unref(_))==null?void 0:m.format(T),C.dateFormat=T}i.push(C)}return i};return async()=>{var L;const{graphicConfig:s}=e,{source:c,dataViewId:i,plugin:m,layer:d,chartType:u,classificationList:h=[],seriesList:b=[],leftAxisList:g=[],rightAxisList:S=[],queryColumnList:C=[],indicators:y=[],controlList:_=[],dataSourceId:T,idxLibMode:F,preview:I=!1}=s||{};let M;if(Array.isArray(h)&&h.length>0){const A=h.length;for(let E=0;E<A;E++){const v=h[E]||{},{label:P="",name:V="",show:$=!1,sort:G,customGroup:Q,conditions:we}=v;if($||A===1){M={label:P,columnName:V,show:$,sort:G,customGroup:Q,conditions:we};break}}}let x;if(Array.isArray(b)&&b.length>0){const A=b.length;for(let E=0;E<A;E++){const v=b[E]||{},{label:P="",name:V="",show:$=!1,sort:G,customGroup:Q,conditions:we}=v;if($||A===1){x={label:P,columnName:V,show:$,sort:G,customGroup:Q,conditions:we};break}}}const f=[];C==null||C.forEach(A=>{f.push(n(A))});const w=[];if(g==null||g.forEach(A=>{A.location="LEFT",w.push(a(A))}),S==null||S.forEach(A=>{A.location="RIGHT",w.push(a(A))}),y==null||y.forEach(A=>{A.location="LEFT",w.push(a(A))}),d==="1"&&f.length===0)return;if(d==="2"&&w.length===0)return;let k;(s==null?void 0:s.pageMode)==="design"?k=s.sqlConditions??[]:k=r(_);try{return await ke.post(`${je}/diagram`,{source:c,dataViewId:i,plugin:m,layer:d,chartType:u,classification:M,series:x,indicatorList:w,queryColumns:f,pageFlag:!0,sqlConditions:k,dataSourceId:T,idxLibMode:F,preview:I},{headers:{Authentication:(L=window==null?void 0:window.config)==null?void 0:L.indicatorToken,operateContext:"ygt"}})}catch(A){console.error(A)}}},Qa=()=>{const o=window.location.search.slice(1).split("&"),n=o.length;for(let a=0;a<n;a++){const l=o[a];if(l==null||l==="")continue;const r=l.split("=");if(Array.isArray(r)){const s=r[0],c=r[1];window.config[s]=c}}},Ka=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...lt},setup(e){const o=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:Ce(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),n=t.ref(0),a=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(!1),c=t.ref();let i;const m=()=>new Promise(S=>{t.nextTick(()=>{e.width&&e.height?(n.value=parseFloat(e.width),a.value=parseFloat(e.height)):(n.value=c.value.clientWidth,a.value=c.value.clientHeight),(!l.value||!r.value)&&(l.value=window.screen.width,r.value=window.screen.height),S()})}),d=()=>{n.value&&a.value?(c.value.style.width=`${n.value}px`,c.value.style.height=`${a.value}px`):(c.value.style.width=`${l.value}px`,c.value.style.height=`${r.value}px`)},u=()=>{const S=document.body.clientWidth,C=document.body.clientHeight,y=n.value||l.value,_=a.value||r.value,T=S/y,F=C/_;c.value&&(c.value.style.transform=`scale(${T}, ${F})`)},h=ue.debounce(async()=>{await m(),u()},100),b=()=>{const S=window.MutationObserver;i=new S(h),i.observe(c.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},g=()=>{i&&(i.disconnect(),i.takeRecords(),i=null)};return t.onMounted(async()=>{s.value=!1,await m(),d(),u(),window.addEventListener("resize",h),b(),s.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",h),g()}),{style:o,container:c,ready:s}}}),Ki="",Xa={id:"container",ref:"container"};function el(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",Xa,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const vn=q(j(Ka,[["render",el],["__scopeId","data-v-242d350e"]])),ct={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},dt=W(ct),tl=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...dt},setup(e,{expose:o}){Qa();const n=t.ref(),a=()=>{n.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>ae(e.contextRequestUrl)),r=t.computed(()=>e.pageMode),s=t.computed(()=>e.theme),c=t.ref("");t.provide(K,{contextRequestUrl:l,pageMode:r,theme:s,touchEventId:c});const i=new Map,m=k=>i.get(k),d=(k,L)=>{i.set(k,L)};t.provide(X,{getGlobalModel:m,setGlobalModel:d});const u=Io(),h=new Set,b=(k,L)=>{h.has(k)&&u.off(k),u.on(k,A=>(h.add(k),Object.prototype.toString.call(L[A])==="[object Function]"&&L[A]())),t.onBeforeUnmount(()=>{u.off(k)})},g=k=>{u.off(k)},S=(k,L)=>{u.emit(k,L)};t.provide(it,{onEvent:b,offEvent:g,emitEvent:S});const C=t.ref(0),y=()=>{C.value=t.unref(C)+1};t.provide(En,{requestToken:y});const _=new Map,T=new Map,F=({requestFn:k=()=>{},sortNum:L=0,id:A=""})=>{if(_.has(L)){const E=_.get(L);E==null||E.push(k)}else _.set(L,[k]);T.set(A,k)},I=k=>new Promise((L,A)=>{const E=k.map(v=>v());Promise.all(E).then(v=>{L(v)}).catch(v=>{A(v)})}),M=async()=>{var L;const k=await Ue.get(`${je}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});config.indicatorToken=(L=k.data.data)==null?void 0:L.token},x=async k=>{if(k){if(typeof k=="string"){const L=T.get(k);typeof L=="function"&&L()}}else{const L=Array.from(_);L.sort((E,v)=>v[0]-E[0]);const A=L.length;try{e.pageMode!=="design"&&t.unref(C)>0&&await M();for(let E=0;E<A;E++){const v=L[E][1];await I(v)}}catch(E){console.error(E)}finally{_.clear()}}};t.provide(re,{setRequest:F,touchRequest:x});const f=()=>{u.emit(Me)};t.provide(Me,{emitRefreshPage:f});const w=k=>{u.on(Me,()=>k()),t.onMounted(()=>{u.off(Me)})};return t.onBeforeUnmount(()=>{_==null||_.clear(),T==null||T.clear()}),o({touchRequest:x,getGlobalModel:m,onRefreshPage:w}),{providerConfig:n}}}),nl={id:"ProviderConfig",ref:"providerConfig"};function ol(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",nl,[t.renderSlot(e.$slots,"default")],512)}const Bn=q(j(tl,[["render",ol]])),mt={...Y,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",data:{},variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:""},ft=W(mt),zn=["refreshData","click"],al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",ll="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",il=t.defineComponent({name:"EcanText",components:{Skeleton:$e},props:{...ft},setup(e){const o=H(e),n=t.ref({});t.watch(()=>[e.data,e.dataType],([h,b])=>{b==="static"&&(n.value=h)},{immediate:!0});const a=t.computed(()=>{var S;const h=t.unref(n);let b=e.text;b=b==null?void 0:b.replace(/\n|\\n/g,"<br/>"),b=b==null?void 0:b.replace(/\s/g,"&nbsp;");const g=b.match(/\{\s*[\w\u4e00-\u9fa5]*\s*\}/g);if(g==null||g.length===0)return b;for(let C=0;C<g.length;C++){const y=g[C],_=(S=y==null?void 0:y.slice(1,y.length-1))==null?void 0:S.trim();let T=h[_];if(T!=null){const F=e.format;F==="percentage"?(T=+T,isNaN(T)?b=b.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`):(T=(T*100).toFixed(2),T>=0?b=b.replace(y,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${al}"/>${T}%</span>`):b=b.replace(y,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${ll}"/>${Math.abs(T)}%</span>`))):F==="percent"?(T=+T,isNaN(T)||(T=(T*100).toFixed(2),b=b.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}%</span>`))):e.format==="money"?(T=+T,isNaN(T)||(T=rt(T),b=b.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}</span>`))):b=b.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}</span>`)}else b=b.replace(y,e.variableDefaultValue)}return`<span>${b}</span>`}),{pageMode:l}=t.inject(K,{pageMode:"normal"}),r=de(e),s=t.ref(!1),c=async()=>{var h;if(t.unref(l)!=="design")try{s.value=!0;const b=await r();n.value=((h=b==null?void 0:b.data)==null?void 0:h.data)||{}}catch(b){console.error(b)}finally{s.value=!1}},i=()=>{e.dataType!=="static"&&c()};te(e,{refreshData:i});const{setRequest:m}=t.inject(re,{setRequest:({id:h,sortNum:b,requestFn:g})=>{}});m({id:e.id,requestFn:i,sortNum:e.requestSort}),te(e,{refreshData:i});const u=ee(e)("click",()=>{if(!e.linkPage&&!e.href)return;const h=e.linkPage||"",b=Nn(t.unref(l),h),g=e.href;let S=g||b;S=ae(S);const C=e.target;C==null||C===""||(C!=="event"?window.open(S,"_"+C):window.parent.postMessage({type:"openPage",url:g},"*"))});return{style:o,myText:a,loading:s,click:u}}}),tr="",rl=["innerHTML"];function sl(e,o,n,a,l,r){const s=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-text",style:t.normalizeStyle(e.style),innerHTML:e.myText,onClick:o[0]||(o[0]=(...c)=>e.click&&e.click(...c))},null,12,rl))}const Fn=q(j(il,[["render",sl],["__scopeId","data-v-824f48d8"]])),cl=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),or="",dl={class:"red"};function ml(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",dl,t.toDisplayString(e.text),1)}const On=q(j(cl,[["render",ml],["__scopeId","data-v-4dd9c03e"]])),ut={...Y,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",textAlign:"center",fontFamily:"",fontWeight:400,textShadow:"",verticalAlign:"middle"},gt=W(ut),fl=t.defineComponent({name:"EcanTimeDisplay",props:{...gt},setup(e){const o=H(e),n=t.ref(he().format(e.format));let a=null;const l=()=>{clearInterval(a),a=null},r=()=>{a&&l(),a=setInterval(()=>{n.value=he().add(1,"s").format(e.format)},1e3)};return t.onMounted(()=>{r()}),t.onUnmounted(()=>{l()}),{style:o,time:n}}}),lr="";function ul(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Pn=q(j(fl,[["render",ul],["__scopeId","data-v-07d3cde3"]])),ht={...Y,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},yt=W(ht),Rn=["refreshData","click"],gl=t.defineComponent({name:"EcanList",components:{Skeleton:$e},props:{...yt},setup(e){const o=t.ref(e.data),n=H(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(g,S)=>S==null||S===""?g:{money:rt,percentage:Ve,contrast:Ve}[S](g)||"",r=(g,S)=>{const C=parseFloat(g+"");if(S!=="contrast")return"";switch(!0){case C>=0:return"goUp";case C<0:return"goDown"}},s=de(e),{pageMode:c}=t.inject(K,{pageMode:"normal"}),i=t.ref(!1),m=async()=>{var g;if(!(e.dataType!=="request"||t.unref(c)==="design"))try{i.value=!0;const S=await s();o.value=((g=S==null?void 0:S.data)==null?void 0:g.data.rows)||[]}catch(S){console.error(S)}finally{i.value=!1}},d=()=>{m()},h=ee(e)("click",()=>{});te(e,{refreshData:d});const{setRequest:b}=t.inject(re,{setRequest:({id:g,sortNum:S,requestFn:C})=>{}});return b({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,formatFn:l,columnStyle:a,contrastClass:r,dataSource:o,loading:i,click:h}}}),rr="",sr="",hl=e=>(t.pushScopeId("data-v-baf2ff0c"),e=e(),t.popScopeId(),e),yl={key:0,class:"title"},bl={key:0,class:"ranking"},pl={key:1,class:"ecan-list-content"},Cl={key:0,class:"ranking"},kl=hl(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Sl={class:"sort"},wl={key:2,class:"empty"};function Al(e,o,n,a,l,r){const s=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(s,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",yl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,c=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:c%e.columnCount!==0?e.itemColSpan:""}),key:c},[e.useRanking?(t.openBlock(),t.createElementBlock("div",bl)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(i,m)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:i.key||m,style:t.normalizeStyle({color:i.titleColor,...e.columnStyle})},t.toDisplayString(i.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",pl,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(c,i)=>(t.openBlock(),t.createElementBlock("div",{class:"item",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(i+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:c.id||i,onClick:o[0]||(o[0]=(...m)=>e.click&&e.click(...m))},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Cl,[kl,t.createElementVNode("div",Sl," Top "+t.toDisplayString(i+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,m=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(c[m.key],m.format)]),key:m.key,style:t.normalizeStyle({fontSize:m.fontSize,color:e.contrastClass(c[m.key],m.format)===""?m.color:"",fontWeight:m.fontWeight,...e.columnStyle})},t.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(c[m.key],m.format)),7))),128))],4))),128))])):(t.openBlock(),t.createElementBlock("div",wl," 暂无数据 "))]),_:1},8,["loading"])],4)}const Dn=q(j(gl,[["render",Al],["__scopeId","data-v-baf2ff0c"]])),bt={...Y,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:!1,variableDefaultValue:"0"},pt=W(bt),$n=["refreshData","click"],Tl=t.defineComponent({name:"EcanProportion",components:{AProgress:D.Progress,Skeleton:$e},props:{...pt},setup(e){const{pageMode:o}=t.inject(K,{pageMode:"normal"}),n=H(e),a=t.computed(()=>{const g=e.width;return parseFloat(g)}),l=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(o)==="design")&&(l.value=e.data)},{immediate:!0,deep:!0});const r=t.computed(()=>{const g=t.unref(l),S=+e.variableDefaultValue;if(g==null)return isNaN(S)?0:S;const C=e.text.match(/\{.+\}/g)||[];let y;const _=new Set(Object.keys(g));for(let T=0;T<C.length;T++){const F=C[T],I=F.slice(1,F.length-1);if(_.has(I)){y=g[I];break}}return typeof y=="number"?y=y*100:typeof y=="string"&&!isNaN(+y)?y=+y*100:isNaN(S)?y=0:y=S*100,e.decimalFormat&&(y=+y.toFixed(2)),y}),s=t.computed(()=>{var _;let g=e.text;if(g==="")return t.unref(r);const S=e.variableDefaultValue,C=t.unref(l),y=g.match(/\{.+\}/g)||[];for(let T=0;T<y.length;T++){const F=y[T];let I=F.slice(1,F.length-1);const M=I.match(/.*/g);for(let f=0;f<(M==null?void 0:M.length);f++){const w=(_=M[T])==null?void 0:_.trim();C[w]!=null?I=I.replace(w,C[w]):I=I.replace(w,S)}let x=I;try{/\w+[+\-*/%]+\w+/g.test(I)&&(x=(0,eval)(I))}catch(f){console.error(f)}(typeof x=="number"||!isNaN(+x))&&(x=+x*100,e.decimalFormat&&(x=x.toFixed(2))),g=g.replace(F,x+"")}return g}),c=de(e),i=t.ref(!1),m=async()=>{var g;if(!(e.dataType!=="request"||t.unref(o)==="design"))try{i.value=!0;const S=await c();l.value=((g=S==null?void 0:S.data)==null?void 0:g.data)||{}}catch(S){console.error(S)}finally{i.value=!1}};te(e,{refreshData:()=>{m()}});const h=ee(e)("click",()=>{}),{setRequest:b}=t.inject(re,{setRequest:({id:g,sortNum:S,requestFn:C})=>{}});return b({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,myWidth:a,text:s,myValue:r,loading:i,click:h}}}),dr="";function xl(e,o,n,a,l,r){const s=t.resolveComponent("skeleton"),c=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(c,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(s,{key:0,loading:e.loading},null,8,["loading"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5))]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)}const jn=q(j(Tl,[["render",xl],["__scopeId","data-v-304d430d"]])),Ct={...Y,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},kt=W(Ct),Vn=["inputChange","inputBlur"],_l=t.defineComponent({name:"EcanInput",components:{AInput:D.Input},props:{...kt},setup(e){const o=H(e),n=t.ref("");t.watch(()=>e.value,d=>{n.value=d},{immediate:!0});const a=e.id,{getGlobalModel:l,setGlobalModel:r}=t.inject(X,{getGlobalModel:d=>{},setGlobalModel:(d,u)=>{}});r(e.id,{type:e.type,value:n});const s=()=>{const d=l(a);r(a,{...d,RECORD:n})},c=ee(e),i=ue.debounce(c("inputChange",()=>{s()}),300),m=c("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:m,inputChange:i}}}),fr="";function El(e,o,n,a,l,r){const s=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const Gn=q(j(_l,[["render",El]])),St={...Y,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},wt=W(St),qn=["dateChange"],Ll=t.defineComponent({name:"EcanDatePicker",props:{...wt},components:{ADatePicker:D.DatePicker},setup(e){const o=H(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime],([c,i])=>{let m=null;c?m=he(c):i&&(m=he()),a.value=m},{immediate:!0});const{setGlobalModel:l}=t.inject(X,{setGlobalModel:(c,i)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const s=ee(e)("dateChange",()=>{});return te(e,{dateChange:s}),{style:o,getPopupContainer:n,myValue:a,locale:ln,dateChange:s}}}),gr="";function Il(e,o,n,a,l,r){const s=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.dateChange,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const Un=q(j(Ll,[["render",Il]])),At={...Y,name:"选择器",keyName:"选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value"},maxTagCount:void 0},Tt=W(At),Wn=["selectChange"],Nl=t.defineComponent({name:"EcanSelect",components:{ASelect:D.Select},props:{...Tt},setup(e){const o=H(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=de(e),{pageMode:l}=t.inject(K,{pageMode:"normal"}),r=t.ref(e.data),s=t.ref(e.value||e.data[0]),c=e.dataFieldNames,i=(C,y)=>{const _=c.label,T=c.value;let F;const I=y[_],M=y[T];return I!=null?F=I:M!=null&&(F=M),(F==null?void 0:F.toLowerCase().indexOf(C==null?void 0:C.toLowerCase()))>=0},m=t.ref(!1),d=async()=>{var C,y;if(!(e.dataType!=="request"||t.unref(l)==="design")){m.value=!0;try{const _=await a();r.value=((y=(C=_==null?void 0:_.data)==null?void 0:C.data)==null?void 0:y.rows)||[];const T=t.unref(r)[0];e.value===""&&T!=null&&(s.value=T[c.value])}catch(_){console.error(_)}finally{m.value=!1}}},{getGlobalModel:u,setGlobalModel:h}=t.inject(X,{getGlobalModel:C=>{},setGlobalModel:(C,y)=>{}});h(e.id,{type:e.type,value:s});const g=ee(e)("selectChange",()=>{const C=e.id,y=u(C);h(C,{...y,RECORD:s})});te(e,{selectChange:g});const{setRequest:S}=t.inject(re,{setRequest:({id:C,sortNum:y,requestFn:_})=>{}});return S({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,getPopupContainer:n,myValue:s,selectChange:g,options:r,filterOption:i,loading:m}}}),yr="",br="";function Ml(e,o,n,a,l,r){const s=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"select",value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,"field-names":e.dataFieldNames,maxTagCount:e.maxTagCount,"show-search":"","filter-option":e.filterOption,onChange:e.selectChange,loading:e.loading},null,8,["value","options","mode","getPopupContainer","field-names","maxTagCount","filter-option","onChange","loading"])],4)}const Hn=q(j(Nl,[["render",Ml],["__scopeId","data-v-dd2bcf63"]])),xt={...Y,name:"范围选择器",keyName:"范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year"},_t=W(xt),Zn=["dateChange"],vl=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:D.RangePicker},props:{..._t},setup(e){const o=H(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit],([m,d,u,h,b])=>{let g=null,S=null;u&&(g=he().subtract(h,b),S=he()),m&&(g=he(m)),d&&(S=he(d)),a.value=[g,S]},{immediate:!0});const{setGlobalModel:l}=t.inject(X,{setGlobalModel:(m,d)=>{}}),r=t.computed(()=>t.unref(a)[0]),s=t.computed(()=>t.unref(a)[1]);l(e.id,{type:e.type,format:e.format,startTime:r,endTime:s});const i=ee(e)("dateChange",()=>{});return te(e,{dateChange:i}),{style:o,getPopupContainer:n,locale:ln,dateChange:i,myValue:a}}}),Cr="",kr="";function Bl(e,o,n,a,l,r){const s=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,onChange:e.dateChange},null,8,["value","format","picker","locale","getPopupContainer","onChange"])],4)}const Jn=q(j(vl,[["render",Bl],["__scopeId","data-v-81675950"]])),Et={...Y,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},Lt=W(Et),Yn=["click"],zl=t.defineComponent({name:"EcanButton",components:{AButton:D.Button},props:{...Lt},setup(e){const o=H(e),a=ee(e)("click",()=>{const c=t.unref(r);c&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:c},"*")}),l=t.computed(()=>ae(e.text)),r=t.computed(()=>ae(e.href)||null),s=t.computed(()=>{const c=e.target;if(!(c==="event"||t.unref(r)==null))return{self:"_self",blank:"_blank"}[c]});return{style:o,click:a,myText:l,myHref:r,myTarget:s}}}),wr="";function Fl(e,o,n,a,l,r){const s=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(s,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const Qn=q(j(zl,[["render",Fl]])),It={...Y,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"}]},Nt=W(It),Kn=["checkboxChange"],Ol=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:D.CheckboxGroup},props:{...Nt},setup(e){const o=H(e),n=t.ref([]),a=t.ref([]),l=g=>{const S=e.value;let C=[];g.forEach(y=>{y.checked&&C.push(y.value)}),typeof S=="string"&&S!==""?C=C.concat(S.split(",")):Array.isArray(S)&&(C=C.concat(S)),n.value=g,a.value=C};t.watch(()=>[e.data,e.value],([g])=>{l(g)},{immediate:!0,deep:!0});const r=de(e),{pageMode:s}=t.inject(K,{pageMode:"normal"}),c=async()=>{var C,y;if(e.dataType!=="request"||t.unref(s)==="design")return;const g=await r(),S=((y=(C=g==null?void 0:g.data)==null?void 0:C.data)==null?void 0:y.rows)||[];l(S)},i=e.id,{getGlobalModel:m,setGlobalModel:d}=t.inject(X,{getGlobalModel:g=>{},setGlobalModel:(g,S)=>{}});d(e.id,{type:e.type,value:a});const h=ee(e)("checkboxChange",()=>{const g=m(i);d(i,{...g,RECORD:a})}),{setRequest:b}=t.inject(re,{setRequest:({id:g,sortNum:S,requestFn:C})=>{}});return b({id:e.id,requestFn:c,sortNum:e.requestSort}),{myOption:n,style:o,myValue:a,checkboxChange:h}}}),Tr="";function Pl(e,o,n,a,l,r){const s=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(s,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const Xn=q(j(Ol,[["render",Pl]])),Mt={...Y,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,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%",labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},vt=W(Mt),eo=["click","refreshData","resetRecord"],Be=async e=>{var i;const o=await ke.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,l=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),r=new Blob([n]),s=document.createElement("a"),c=window.URL.createObjectURL(r);s.href=c,s.download=decodeURI(l),s.style.display="none",document.body.appendChild(s),s.click(),(i=s.parentNode)==null||i.removeChild(s),window.URL.revokeObjectURL(c)};fe.use([Ae.CanvasRenderer,ye.PieChart,J.TitleComponent,J.ToolboxComponent,J.TooltipComponent,J.LegendComponent]);const Rl=t.defineComponent({name:"EcanPie",props:{...vt},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e){const o=H(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},r=t.computed(()=>{let{data:M=[]}=t.unref(n)[0]||{};if(Array.isArray(e.colors)){const x=e.isUseLabelColors,f=e.colors;M=M.map((w,k)=>({label:x?{color:f[k]}:{},...w}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){a.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:x=>{const{marker:f,seriesName:w,name:k,value:L,percent:A,data:E}=x||{};return ae(e.tooltipFormatter,{marker:f,name:k,value:L,percent:A,a:w,b:k,c:L,d:A,...E},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},color:e.colors,series:[{data:M,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:e.labelFontSize,position:e.labelPosition,formatter:Ya(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),{getGlobalModel:s,setGlobalModel:c}=t.inject(X,{getGlobalModel:M=>{},setGlobalModel:(M,x)=>{}}),{pageMode:i}=t.inject(K,{pageMode:"normal"}),m=(M=[],x)=>{const{dataset:f}=ve(M,x);n.value=f},d=(M=[],x)=>{const f=ve(M,x);n.value=f.dataset};t.watch(()=>e.data,M=>{(e.dataType==="static"||t.unref(i)==="design")&&m(M)},{immediate:!0,deep:!0});const u=t.ref(!1),h=de(e),b=async()=>{var M,x;if(!(e.dataType!=="request"||t.unref(i)==="design"))try{u.value=!0;const f=await h();m((x=(M=f==null?void 0:f.data)==null?void 0:M.data)==null?void 0:x.rows,e.valueTypeDataFieldNames)}catch(f){console.error(f)}finally{u.value=!1}},S=ee(e)("click",M=>{const x=e.id,f=s(x);c(x,{...f,RECORD:M==null?void 0:M.data})}),C=st(e),y=async()=>{var M,x,f,w,k,L;if(!(e.dataType!=="indicator"||t.unref(i)==="design"))try{u.value=!0;const A=await C();let E=[];if(((f=(x=(M=A==null?void 0:A.data)==null?void 0:M.data)==null?void 0:x.columns)==null?void 0:f.length)>0){const v=A.data.data.columns[0],P=A.data.data.columns[1];E=(L=(k=(w=A==null?void 0:A.data)==null?void 0:w.data)==null?void 0:k.rows)==null?void 0:L.map(V=>({name:V[v],value:V[P]}))}d(E)}catch(A){console.error(A)}finally{u.value=!1}},_=()=>{t.unref(i)!=="design"&&(y(),b())};te(e,{resetRecord:()=>{const M=e.id,x=s(M);c(M,{...x,RECORD:""})},refreshData:()=>{_()},click:S});const{setRequest:I}=t.inject(re,{setRequest:({id:M,sortNum:x,requestFn:f})=>{}});return I({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:r,style:o,click:S,loading:u,visible:a,hideModal:l}}}),_r="";function Dl(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const to=q(j(Rl,[["render",Dl]])),Bt={...Y,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},zt=W(Bt),no=["click","refreshData","resetRecord"];fe.use([Ae.CanvasRenderer,ye.LineChart,J.ToolboxComponent,J.TitleComponent,J.LegendComponent]);const $l=t.defineComponent({name:"EcanLine",props:{...zt},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e){const o=H(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},s=t.computed(()=>{const x=e.xAxisLabelFormatter,f=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){l.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:w=>{const k=w.length;let L="",A=e.tooltipFormatter;A===""&&(A="{marker} {a} {c}");for(let E=0;E<k;E++){const{marker:v,seriesName:P,name:V,value:$,data:G}=w[E]||{};E===0&&(L+=`${V}<br/>`),L+=ae(A,{marker:v,name:V,value:$,a:P,b:V,c:$,...G},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L}},xAxis:{type:"category",data:t.unref(a),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,formatter(w){return Se(x,w)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(w){return Se(f,w)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:t.unref(n)}}),{getGlobalModel:c,setGlobalModel:i}=t.inject(X,{getGlobalModel:x=>{},setGlobalModel:(x,f)=>{}}),{pageMode:m}=t.inject(K,{pageMode:"normal"}),d=(x=[],f=!1)=>{let w;if(e.dataFieldConfigType==="key"){const E=f?e.keyTypeDataFieldNames:null;w=_e(x,E)}else if(e.dataFieldConfigType==="value"){const E=f?e.valueTypeDataFieldNames:null;w=ve(x,E)}a.value=w.dimensions;const k=w.dataset,L=[],A=k.length;for(let E=0;E<A;E++)L.push({type:"line",...k[E],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});n.value=L},u=(x=[],f,w=!1)=>{const L=_e(x,w?f:null);a.value=L.dimensions;const A=L.dataset,E=[],v=A.length;for(let P=0;P<v;P++)E.push({type:"line",...A[P],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});n.value=E};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([x])=>{(e.dataType==="static"||t.unref(m)==="design")&&d(x)},{immediate:!0,deep:!0});const h=t.ref(!1),b=de(e),g=async()=>{var x,f;if(!(e.dataType!=="request"||t.unref(m)==="design"))try{h.value=!0;const w=await b();d((f=(x=w==null?void 0:w.data)==null?void 0:x.data)==null?void 0:f.rows,!0)}catch(w){console.error(w)}finally{h.value=!1}},C=ee(e)("click",x=>{const f=e.id,w=c(f);i(f,{...w,RECORD:x==null?void 0:x.data})}),y=st(e),_=async()=>{var x,f,w,k,L;if(!(e.dataType!=="indicator"||t.unref(m)==="design"))try{h.value=!0;const A=await y();let E;((w=(f=(x=A==null?void 0:A.data)==null?void 0:x.data)==null?void 0:f.columns)==null?void 0:w.length)>0&&(E={name:A.data.data.columns[0],types:A.data.data.columns.slice(1).map(v=>({label:v,value:v}))}),u((L=(k=A==null?void 0:A.data)==null?void 0:k.data)==null?void 0:L.rows,E,!0)}catch(A){console.error(A)}finally{h.value=!1}},T=()=>{t.unref(m)!=="design"&&(_(),g())};te(e,{refreshData:()=>{T()},resetRecord:()=>{const x=e.id,f=c(x);i(x,{...f,RECORD:""})},click:C});const{setRequest:M}=t.inject(re,{setRequest:({id:x,sortNum:f,requestFn:w})=>{}});return M({id:e.id,requestFn:T,sortNum:e.requestSort}),{option:s,style:o,click:C,loading:h,visible:l,hideModal:r}}}),Lr="";function jl(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const oo=q(j($l,[["render",jl]])),Ft={...Y,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{chartType:"bar",plugin:"1",layer:"2"},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:""},Ot=W(Ft),ao=["refreshData","click","resetRecord"];fe.use([Ae.CanvasRenderer,ye.BarChart,J.TitleComponent,J.LegendComponent,J.DatasetComponent,J.ToolboxComponent]);const Vl=t.defineComponent({name:"EcanBar",props:{...Ot},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e,{expose:o}){const n=H(e),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},s=t.computed(()=>{const f=t.unref(a),w=f.length,k=[];for(let L=0;L<w;L++){const A={...f[L],type:"bar",barWidth:e.barWidth};e.isStack&&(A.stack="stack"),A.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},k.push(A)}return k}),c=t.ref([]),i=t.ref(!1),m=t.computed(()=>{const f=e.yAxisLabelFormatter,w=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){l.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:k=>{const L=k.length;let A="",E=e.tooltipFormatter;E===""&&(E="{marker} {a} {c}");for(let v=0;v<L;v++){const{marker:P,seriesName:V,name:$,value:G,data:Q}=k[v]||{};v===0&&(A+=`${$}<br/>`),A+=ae(E,{marker:P,name:$,value:G,a:V,b:$,c:G,...Q},{useNewline:!0,useSpace:!0}),A+="<br/>"}return A},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(c),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(k){return Se(w,k)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(c):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(k){return Se(f,k)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(s)}}),{pageMode:d}=t.inject(K,{pageMode:"normal"}),u=(f=[],w=!1)=>{let k={};if(e.dataFieldConfigType==="key"){const L=w?e.keyTypeDataFieldNames:null;k=_e(f,L)}else if(e.dataFieldConfigType==="value"){const L=w?e.valueTypeDataFieldNames:null;k=ve(f,L)}a.value=k.dataset,c.value=k.dimensions},h=(f=[],w,k=!1)=>{const A=_e(f,k?w:null);a.value=A.dataset,c.value=A.dimensions};t.watch(()=>e.data,f=>{(e.dataType==="static"||t.unref(d)==="design")&&u(f)},{immediate:!0,deep:!0});const b=de(e),g=async()=>{var f,w;try{i.value=!0;const k=await b();u((w=(f=k==null?void 0:k.data)==null?void 0:f.data)==null?void 0:w.rows,!0)}catch(k){console.error(k)}finally{i.value=!1}},S=Mn(e),C=async()=>{var f;try{i.value=!0;const w=await S(),{columns:k=[],rows:L=[]}=((f=w==null?void 0:w.data)==null?void 0:f.data)??{};let A;k.length>0&&(A={name:k[0],types:k.slice(1).map(E=>({label:E,value:E}))}),h(L,A,!0)}catch(w){console.error(w)}finally{i.value=!1}},y=()=>{if(t.unref(d)!=="design")switch(e.dataType){case"indicator":C();break;case"request":g();break}};o({refreshData:y});const _=ee(e),{getGlobalModel:T,setGlobalModel:F}=t.inject(X,{getGlobalModel:f=>{},setGlobalModel:(f,w)=>{}}),I=_("click",f=>{const w=e.id,k=T(w);F(w,{...k,RECORD:f.data})}),{setRequest:M}=t.inject(re,{setRequest:({id:f,sortNum:w,requestFn:k})=>{}});return M({id:e.id,requestFn:y,sortNum:e.requestSort}),te(e,{refreshData:y,click:I,resetRecord:()=>{const f=e.id,w=T(f);F(f,{...w,RECORD:""})}}),{option:m,style:n,refreshData:y,click:I,loading:i,visible:l,hideModal:r}}}),Nr="";function Gl(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const lo=q(j(Vl,[["render",Gl]])),Pt={...Y,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:void 0,toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Rt=W(Pt),io=["click","refreshData"];fe.use([Ae.CanvasRenderer,ye.ScatterChart,J.ToolboxComponent,J.TitleComponent,J.TooltipComponent,J.LegendComponent]);const ql=t.defineComponent({name:"EcanScatter",props:{...Rt},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e){const o=H(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},r=t.computed(()=>{const y=e.xAxisLabelFormatter,_=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){a.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,formatter(T){return Se(y,T)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(T){return Se(_,T)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:function(T){var w;const{marker:F,seriesName:I}=T,M=((w=T==null?void 0:T.data)==null?void 0:w.record)??{},{name:x,value:f}=M;return ae(e.tooltipFormatter,{marker:F,seriesName:I,a:I,b:x,c:f,...M})},axisPointer:{type:"cross"}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:[{data:t.unref(n),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:c}=t.inject(X,{getGlobalModel:y=>{},setGlobalModel:(y,_)=>{}}),{pageMode:i}=t.inject(K,{pageMode:"normal"}),m=(y=[],_)=>{const{name:T="name",value:F="value"}=_||{};n.value=y.map(I=>({value:[I[T],I[F]],record:I}))};t.watch(()=>e.data,y=>{(e.dataType==="static"||t.unref(i)==="design")&&m(y)},{immediate:!0,deep:!0});const d=t.ref(!1),u=de(e),h=async()=>{var y,_;if(!(e.dataType!=="request"||t.unref(i)==="design")){d.value=!0;try{const T=await u();m((_=(y=T==null?void 0:T.data)==null?void 0:y.data)==null?void 0:_.rows,e.dataFieldNames)}catch(T){console.error(T)}finally{d.value=!1}}},g=ee(e)("click",y=>{const _=e.id,T=s(_);c(_,{...T,RECORD:y==null?void 0:y.data})});te(e,{refreshData:()=>{h()},click:g});const{setRequest:C}=t.inject(re,{setRequest:({id:y,sortNum:_,requestFn:T})=>{}});return C({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:r,style:o,click:g,loading:d,visible:a,hideModal:l}}}),vr="";function Ul(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const ro=q(j(ql,[["render",Ul]])),Dt={...Y,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},$t=W(Dt),Wl=t.defineComponent({name:"EcanCustomGraph",props:{...$t},components:{Echarts:pe},setup(e){const o=H(e),n=t.ref();return t.watch(()=>e.optionCode,a=>{try{const l=eval;n.value=l(a)}catch(l){console.error(l)}},{immediate:!0}),{style:o,myOption:n,echarts:Bo}}});function Hl(e,o,n,a,l,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const so=q(j(Wl,[["render",Hl]])),jt={...Y,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"},Vt=W(jt),co=["refreshData","click","resetRecord"];fe.use([Ae.CanvasRenderer,ye.BarChart,ye.LineChart,J.TitleComponent,J.LegendComponent,J.DatasetComponent,J.ToolboxComponent]);const Zl=t.defineComponent({name:"EcanComboGraph",props:{...Vt},components:{Spin:Ne,Echarts:pe,AModal:D.Modal},setup(e){const o=H(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},s=t.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,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(){Be(e.toolboxDownloadUrl)}},myDataZoom:{show:!0,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(){l.value=!0}},myInfo:{show:!0,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(){D.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:f=>{const w=f.length;let k="",L=e.tooltipFormatter;L===""&&(L="{marker} {a} {c}");const A=e.seriesTypes;for(let E=0;E<w;E++){const v=A[E],{tooltipFormatter:P}=v||{},{marker:V,seriesName:$,name:G,value:Q,data:we}=f[E]||{};E===0&&(k+=`${G}<br/>`),k+=ae(P||L,{marker:V,name:G,value:Q,seriesName:$,a:$,b:G,c:Q,...we},{useNewline:!0,useSpace:!0}),k+="<br/>"}return k},textStyle:{color:e.tooltipTextStyleColor}},xAxis:{type:"category",data:t.unref(a),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:t.unref(d),series:t.unref(n)})),{pageMode:c}=t.inject(K,{pageMode:"normal"}),i=(f=[],w=!1)=>{let k;if(e.dataFieldConfigType==="key"){const P=w?e.keyTypeDataFieldNames:null;k=_e(f,P)}else if(e.dataFieldConfigType==="value"){const P=w?e.valueTypeDataFieldNames:null;k=ve(f,P)}a.value=k.dimensions;const L=k.dataset,A=[],E=L.length,v=e.seriesTypes;for(let P=0;P<E;P++){const V=v[P],{type:$,axisIndex:G}=V||{};let Q={type:$,yAxisIndex:G,...L[P]};$==="line"&&(Q={...Q,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),$==="bar"&&(Q={...Q,barWidth:e.barWidth}),A.push(Q)}n.value=A},m=(f=[],w,k=!1)=>{const A=_e(f,k?w:null);a.value=A.dimensions;const E=A.dataset,v=[],P=E.length,V=e.seriesTypes;for(let $=0;$<P;$++){const G=V[$];v.push({type:G==null?void 0:G.type,yAxisIndex:G==null?void 0:G.axisIndex,...E[$]})}n.value=v};t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([f])=>{(e.dataType==="static"||t.unref(c)==="design")&&i(f)},{immediate:!0,deep:!0});const d=t.computed(()=>{const f=e.yAxis;return f==null?void 0:f.map(w=>({type:"value",splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(k){return Se(w.axisLabelFormatter,k)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),u=t.ref(!1),h=de(e),b=async()=>{var f,w;if(!(e.dataType!=="request"||t.unref(c)==="design"))try{u.value=!0;const k=await h();i((w=(f=k==null?void 0:k.data)==null?void 0:f.data)==null?void 0:w.rows,!0)}catch(k){console.error(k)}finally{u.value=!1}},g=st(e),S=async()=>{var f,w,k,L,A;if(!(e.dataType!=="indicator"||t.unref(c)==="design"))try{u.value=!0;const E=await g();let v;((k=(w=(f=E==null?void 0:E.data)==null?void 0:f.data)==null?void 0:w.columns)==null?void 0:k.length)>0&&(v={name:E.data.data.columns[0],types:E.data.data.columns.slice(1).map(P=>({label:P,value:P}))}),m((A=(L=E==null?void 0:E.data)==null?void 0:L.data)==null?void 0:A.rows,v,!0)}catch(E){console.error(E)}finally{u.value=!1}},C=()=>{t.unref(c)!=="design"&&(S(),b())},y=()=>{C()},_=ee(e),{getGlobalModel:T,setGlobalModel:F}=t.inject(X,{getGlobalModel:f=>{},setGlobalModel:(f,w)=>{}}),I=_("click",f=>{const w=e.id,k=T(w);F(w,{...k,RECORD:f==null?void 0:f.data})}),{setRequest:M}=t.inject(re,{setRequest:({id:f,sortNum:w,requestFn:k})=>{}});return M({id:e.id,requestFn:C,sortNum:e.requestSort}),te(e,{resetRecord:()=>{const f=e.id,w=T(f);F(f,{...w,RECORD:""})},refreshData:y,click:I}),{style:o,option:s,click:I,loading:u,visible:l,hideModal:r}}}),Fr="";function Jl(e,o,n,a,l,r){const s=t.resolveComponent("echarts"),c=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(i,{"wrap-class-name":"full-modal",width:"100%",visible:e.visible,footer:null,onCancel:e.hideModal},{default:t.withCtx(()=>[t.createVNode(c,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(s,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const mo=q(j(Zl,[["render",Jl]])),Gt={...Y,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},qt=W(Gt),fo=["click"],Yl=t.defineComponent({name:"EcanBorder",props:{...qt},setup(e){const o=H(e,["background"]),{theme:n}=t.inject(K,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),r=ee(e)("click",()=>{}),s=t.ref([]);t.watch(()=>e.data,i=>{s.value=i},{immediate:!0,deep:!0}),te(e,{click:r});const{setGlobalModel:c}=t.inject(X,{setGlobalModel:(i,m)=>{}});return c(e.id,{type:e.type,value:s}),{style:o,click:r,borderStyle:a,theme:n}}}),Ql="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Kl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Pr="",me=e=>(t.pushScopeId("data-v-f3fc1305"),e=e(),t.popScopeId(),e),Xl=me(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ei=me(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),ti=me(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ni=me(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),oi={class:"title-item-wrapper"},ai={class:"title-item"},li=me(()=>t.createElementVNode("img",{class:"title-decoration-left",src:Ql},null,-1)),ii={class:"title"},ri=me(()=>t.createElementVNode("img",{class:"title-decoration-right",src:Kl},null,-1)),si=me(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ci=me(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),di=me(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),mi=me(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),fi={key:2,class:"left-title"},ui={class:"title"};function gi(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...s)=>e.click&&e.click(...s))},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Xl,ei,ti,ni],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",oi,[t.createElementVNode("div",ai,[li,t.createElementVNode("div",ii,t.toDisplayString(e.title),1),ri])]),si,ci,di,mi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",fi,[t.createElementVNode("div",ui,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const uo=q(j(Yl,[["render",gi],["__scopeId","data-v-f3fc1305"]])),Ut={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default"},Wt=W(Ut),go=["showModal"],hi=t.defineComponent({name:"EcanModal",components:{AModal:D.Modal},props:{...Wt},setup(e){const o=()=>document.getElementById("ProviderConfig")||document.body,n=t.computed(()=>{const v=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[v]}}),a=e.width,l=e.height,r=e.originalWidth,s=e.originalHeight,c=t.ref("80%"),i=t.ref(0),m=t.ref(),d=t.ref(0),u=t.ref({}),h=H(e),b=t.ref({}),g=t.ref(!1),S=t.ref();let C;const y=()=>{m.value=parseFloat(a)/parseFloat(r);const v=parseFloat(l)/parseFloat(s),P=document.body.offsetWidth,V=document.body.offsetHeight;i.value=P*t.unref(m),d.value=V*v,c.value=`${t.unref(m)*100}%`,u.value={width:`${t.unref(i)}px`,height:`${t.unref(d)}px`},b.value={...t.unref(h),backgroundImage:Ce(e.backgroundImage,!0),transform:`scale(${t.unref(i)/parseFloat(a)},${t.unref(d)/parseFloat(l)})`}},_=ue.debounce(()=>{y()},100),T=()=>{const v=window.MutationObserver;C=new v(_),C.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},F=()=>{C&&(C.disconnect(),C.takeRecords(),C=null)},I=t.ref(!1),{touchRequest:M}=t.inject(re,{touchRequest:()=>{}}),x=()=>{I.value=!0,t.nextTick(()=>{M()})},f=()=>{I.value=!1},w=()=>{f()},k=()=>{f()};t.watch(()=>I.value,v=>{v?(g.value=!1,t.nextTick(()=>{y(),window.addEventListener("resize",_),T(),g.value=!0})):(window.removeEventListener("resize",_),F())});const L=t.computed(()=>t.unref(m)>=1),A=t.computed(()=>e.fullModal),E=t.computed(()=>{let v="ecan-modal";return t.unref(L)&&(v+=" ecan-full-width-modal"),t.unref(A)&&(v+=" ecan-full-modal"),v});return te(e,{showModal:x}),{modalRef:S,containStyle:u,contentStyle:b,getContainer:o,modalStyle:n,modalWith:c,isFullModal:A,style:h,visible:I,showModal:x,onOk:w,onCancel:k,isFullWidth:L,wrapClassName:E,ready:g}}}),Dr="",$r="";function yi(e,o,n,a,l,r){const s=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:t.normalizeStyle(e.modalStyle),onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},t.createSlots({default:t.withCtx(()=>[t.createElementVNode("div",{class:"contain",ref:"containRef",style:t.normalizeStyle(e.containStyle)},[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"content",style:t.normalizeStyle(e.contentStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,(c,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(c.type),t.mergeProps({key:c.id+i},c),null,16))),128))],4)):t.createCommentVNode("",!0)],4)]),_:2},[e.title?{name:"title",fn:t.withCtx(()=>[t.createElementVNode("div",{style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor,backgroundColor:e.backgroundColor,padding:"16px 24px"})},t.toDisplayString(e.title),5)])}:void 0]),1032,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const ho=q(j(hi,[["render",yi],["__scopeId","data-v-d4c1c742"]])),Ht={...Y,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,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},Zt=W(Ht),yo=["tabChange"],bi=t.defineComponent({name:"EcanTabs",props:{...Zt},setup(e){var d;const o=H(e),n=t.ref(0);t.watch(()=>e.activeKey,u=>{n.value=u},{immediate:!0});const a=t.ref([]);t.watch(()=>e.data,u=>{a.value=u},{immediate:!0,deep:!0});const l=u=>n.value===u,r=t.ref(e.value||t.unref(a)[0]&&((d=t.unref(a)[0])==null?void 0:d.value)||""),s=ee(e),{setGlobalModel:c}=t.inject(X,{setGlobalModel:(u,h)=>{}});c(e.id,{value:r,activeKey:n});const{emitRefreshPage:i}=t.inject(Me,{emitRefreshPage:()=>{}}),m=s("tabChange",(u,h)=>{h!==t.unref(n)&&(r.value=(u==null?void 0:u.value)||"",n.value=h,i())});return te(e,{tabChange:m}),{style:o,activeKey:n,isActive:l,tabChange:m,myData:a,useImagePath:Ce}}}),Vr="",pi=["onClick"];function Ci(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style)},[t.createElementVNode("div",{class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(s,c)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.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:t.withModifiers(i=>e.tabChange(s,c),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(c)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(s.title),5)],12,pi))),128))],4)],4)}const bo=q(j(bi,[["render",Ci],["__scopeId","data-v-3db5a989"]])),Jt={...Y,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Yt=W(Jt),ki=t.defineComponent({name:"EcanImage",props:{...Yt},setup(e){const o=H(e),n=t.computed(()=>Ce(e.imgUrl)),{pageMode:a}=t.inject(K,{pageMode:"normal"});return{style:o,myImgUrl:n,onClick:()=>{if(!e.linkPage&&!e.href)return;const r=e.linkPage||"",s=Nn(t.unref(a),r),c=e.href;let i=c||s;i=ae(i);const m=e.target;m==null||m===""||(m!=="event"?window.open(i,"_"+m):window.parent.postMessage({type:"openPage",url:c},"*"))}}}}),qr="",Si=["src"];function wi(e,o,n,a,l,r){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...s)=>e.onClick&&e.onClick(...s))},null,12,Si)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const po=q(j(ki,[["render",wi],["__scopeId","data-v-9706b851"]])),Qt={...Y,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Kt=W(Qt),Ai=t.defineComponent({name:"EcanIframe",props:{...Kt},setup(e){const o=H(e),{contextRequestUrl:n}=t.inject(K,{contextRequestUrl:""}),a=t.computed(()=>{let l=ae(e.link);if(e.linkType==="erd"&&l!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",l=`${Ja||r}?_t=0&uid=${l}`}return l});return{style:o,myLink:a}}}),Wr="",Ti=["src"];function xi(e,o,n,a,l,r){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,Ti)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Co=q(j(Ai,[["render",xi],["__scopeId","data-v-b0be60e8"]])),Xt={...Y,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{chartType:"table",plugin:"1",layer:"1"}},en=W(Xt),ko=["click","refreshData","resetRecord"],_i=t.defineComponent({name:"EcanTable",components:{Skeleton:$e,AInput:D.Input,ACheckboxGroup:D.CheckboxGroup,ATable:D.Table,ATableSummary:D.TableSummary,ATableSummaryRow:D.TableSummaryRow,ATableSummaryCell:D.TableSummaryCell},props:{...en},setup(e,{expose:o}){const n=H(e),a=t.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=t.computed(()=>e.scrollX),r=t.computed(()=>parseFloat(e.height)-t.unref(a)),s=t.ref([]),c=t.ref([]),i=t.ref([]),m=t.ref([]),d=t.ref(0),u=t.ref(1),h=t.computed(()=>e.paginationPageSize),b=t.reactive([]),g=(N=[])=>{if(Array.isArray(N)&&N.length>0){const B=N.length,O=e.columnsFixedNum;for(let R=0;R<B;R++){const z=N[R];R<O?z.fixed="left":z.fixed=!1;const{cellAlign:U="center",cellColor:Z,dataIndex:ne,title:le,tableFilter:oe,headerCellAlign:ze,headerCellColor:qe}=z;oe&&(b.push(ne),z.filterOptionsInputValue="",z.filterCheckboxGroupValue=[],z.customFilterDropdown=!0,z.onFilter=(Fe,on)=>on[ne].toString().toLowerCase().includes(Fe.toLowerCase())),z.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:ze||"center",color:qe,borderBottomColor:e.borderColor}}),z.customCell=(Fe,on)=>({style:{textAlign:U,color:Z,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(Q)===on&&e.clickHighlight},onClick:A("click",()=>{const Lo=e.id,Di=v(Lo);Fe={dataIndex:ne,title:le,...Fe},P(Lo,{...Di,RECORD:Fe})})}),Array.isArray(z.children)&&g(z.children)}}},S=(N=[])=>(e.isUseSeq&&N.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&N.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),g(N),N);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{s.value=S(ue.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([N,B])=>{B==="static"&&(c.value=N)},{immediate:!0});const C=t.ref({}),y=N=>{if(Array.isArray(N)){const B=N.length,O=b,R=O.length,z={};for(let Z=0;Z<B;Z++){const ne=N[Z];for(let le=0;le<R;le++){const oe=O[le];if(z[oe])z[oe].add(ne[oe]);else{const ze=new Set;ze.add(ne[oe]),z[oe]=ze}}}const U={};for(const Z in z)if(Object.prototype.hasOwnProperty.call(z,Z)){const ne=z[Z],le=Array.from(ne);U[Z]=le.map(oe=>({label:oe,value:oe}))}C.value=U}};t.watch(()=>[e.isReverse,s.value,c.value],()=>{const N=t.unref(s),B=t.unref(c);if(y(B),e.isReverse){const{columns:O,dataSource:R}=_(ue.cloneDeep(N),ue.cloneDeep(B));i.value=O,m.value=R}else i.value=N,m.value=B},{immediate:!0,flush:"post"});const _=(N,B)=>{const O=N[0],R=[{title:O.title,dataIndex:"col0",key:"col0",align:"center"}];for(let U=0;U<B.length;U++){const Z=B[U],ne="col"+(U+1);R.push({title:Z[O.dataIndex],dataIndex:ne,key:ne,align:"center"})}const z=[];for(let U=1;U<N.length;U++){const Z=N[U],ne={col0:Z.title};for(let le=0;le<B.length;le++){const oe=B[le];ne[`col${le+1}`]=oe[Z.dataIndex]}z.push(ne)}return{columns:R,dataSource:z}},T=t.ref(""),F=de(e),I=t.ref(!1),M=async(N=!0)=>{var B;try{N&&(I.value=!0);let O={};t.unref(T)&&(O.orderCondition=t.unref(T)),e.paginationShow&&(O={pageNum:t.unref(u),pageSize:t.unref(h),layer:"1",...O});const R=await F(O),{rows:z=[],total:U=0}=((B=R==null?void 0:R.data)==null?void 0:B.data)||{};d.value=U,Array.isArray(z)&&(c.value=z)}catch(O){console.error(O)}finally{I.value=!1}},x=({current:N},B,O)=>{if(u.value=N,O&&Object.keys(O).length>0){const{field:R,order:z}=O,Z={ascend:"asc",descend:"desc"}[z];R!=null&&Z!=null&&(T.value=R+" "+Z,u.value=1)}Ge(!1)},f=t.computed(()=>{const N=e.simple,B=[e.paginationPosition];return e.paginationShow&&{simple:N,position:B,total:t.unref(d),current:t.unref(u),pageSize:t.unref(h),showSizeChanger:!1}}),w=N=>+N==1?"是":+N==0?"否":N,k=(N,B)=>B==null||B===""?N:{money:rt,percentage:Ve,contrast:Ve,boolean:w}[B](N)||"",L=(N,B)=>{const O=parseFloat(N+"");if(B!=="contrast")return"";switch(!0){case O>=0:return"goUp";case O<0:return"goDown"}},A=ee(e),{pageMode:E}=t.inject(K,{pageMode:"normal"}),{getGlobalModel:v,setGlobalModel:P}=t.inject(X,{getGlobalModel:N=>{},setGlobalModel:(N,B)=>{}}),V=(N=[],B=[])=>{const O=N.map(R=>({title:R,dataIndex:R,key:R}));s.value=S(O),c.value=B},$=Mn(e),G=async()=>{var N,B,O,R;try{I.value=!0;const z=await $();V((B=(N=z==null?void 0:z.data)==null?void 0:N.data)==null?void 0:B.columns,(R=(O=z==null?void 0:z.data)==null?void 0:O.data)==null?void 0:R.rows)}catch(z){console.error(z)}finally{I.value=!1}},Q=t.ref(-1),we=(N,B)=>({onClick:A("rowClick",()=>{const O=e.id,R=v(O);P(O,{...R,RECORD:N}),Q.value=B})}),Ge=(N=!0)=>{if(t.unref(E)!=="design")switch(e.dataType){case"request":M(N);break;case"indicator":G();break}};te(e,{resetRecord:()=>{const N=e.id,B=v(N);P(N,{...B,RECORD:""})},refreshData:Ge});const Pi=t.computed(()=>{const N=t.unref(i),B=[];let O=0;for(let z=0;z<N.length;z++){const U=N[z],{isCalcTotal:Z}=U;e.isUseSeq&&z===0?B.push({...U,total:"小计"}):Z?(B.push({...U,index:z,total:0}),O++):B.push({...U})}if(O===0)return[];let R=t.unref(m);if(e.paginationShow){const z=(t.unref(u)-1)*t.unref(h),U=z+t.unref(h);R=R.slice(z,U)}for(let z=0;z<B.length;z++){const U=B[z];let Z=0;const{isCalcTotal:ne,dataIndex:le}=U;if(ne===!0){for(let oe=0;oe<R.length;oe++){const qe=+R[oe][le];isNaN(qe)||(Z=new Mo.Big(Z).add(qe).toNumber())}U.total=Z}}return B}),{setRequest:Ri}=t.inject(re,{setRequest:({id:N,sortNum:B,requestFn:O})=>{}});return Ri({id:e.id,requestFn:Ge,sortNum:e.requestSort}),o({refreshData:Ge}),{x:l,y:r,style:n,customRow:we,pagination:f,formatFn:k,contrastClass:L,tableChange:x,summaryList:Pi,loading:I,onTouchHrefEvent:(N,B="")=>{N==="event"&&window.parent.postMessage({type:"openPage",url:B},"*")},handleHref:(N="",B)=>ae(N,B),handleHrefTarget:N=>{if(N!=="event")return{self:"_self",blank:"_blank"}[N]},useRowIndex:Q,tableColumns:i,tableDataSource:m,useFilterOptions:N=>{const B=N.dataIndex;if(typeof B=="string"){let O=t.unref(C)[B];const R=t.unref(N.filterOptionsInputValue).trim();return Array.isArray(O)?(O=O.filter(z=>typeof z.label=="string"?z.label.toLowerCase().includes(R.toLowerCase()):!0),O):[]}return[]},useSetSelectedKeys:(N,B)=>{N(B.filterCheckboxGroupValue)},onResetFilter:(N,B)=>{N({confirm:!0}),B.filterOptionsInputValue="",B.filterCheckboxGroupValue=[]},onSearchFilterOptions:()=>{}}}}),Zr="",Jr="",Ei=t.createTextVNode(" 搜索 "),Li=t.createTextVNode(" 重置 "),Ii={key:0},Ni={key:1,class:"action-list"},Mi=["href","target","onClick"];function vi(e,o,n,a,l,r){const s=t.resolveComponent("a-input"),c=t.resolveComponent("a-checkbox-group"),i=t.resolveComponent("a-button"),m=t.resolveComponent("a-table-summary-cell"),d=t.resolveComponent("a-table-summary-row"),u=t.resolveComponent("a-table-summary"),h=t.resolveComponent("a-table"),b=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(b,{loading:e.loading},{default:t.withCtx(()=>[t.createVNode(h,{class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:t.withCtx(({column:g,selectedKeys:S,setSelectedKeys:C,confirm:y,clearFilters:_})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(s,{value:g.filterOptionsInputValue,"onUpdate:value":T=>g.filterOptionsInputValue=T,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(c,{value:g.filterCheckboxGroupValue,"onUpdate:value":T=>g.filterCheckboxGroupValue=T,class:"filter-checkbox",options:e.useFilterOptions(g),onChange:T=>e.useSetSelectedKeys(C,g)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(i,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>y()},{default:t.withCtx(()=>[Ei]),_:2},1032,["onClick"]),t.createVNode(i,{size:"small",style:{width:"90px"},onClick:T=>e.onResetFilter(_,g)},{default:t.withCtx(()=>[Li]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:g,index:S,text:C,record:y})=>[g.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",Ii,t.toDisplayString(S+1),1)):t.createCommentVNode("",!0),g.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Ni,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(_,T)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:T},[t.createElementVNode("a",{href:e.handleHref(_.href,y),target:e.handleHrefTarget(_.target),style:t.normalizeStyle({color:_.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:F=>e.onTouchHrefEvent(_.target,e.handleHref(_.href,y))},t.toDisplayString(_.title),13,Mi)]))),128))])):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass([e.contrastClass(C,g.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(g.format!=null?e.formatFn(C,g.format):C),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(u,{key:0},{default:t.withCtx(()=>[t.createVNode(d,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(g,S)=>(t.openBlock(),t.createBlock(m,{key:S,index:S,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:g.cellAlign||"center",color:g.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(g.total,g.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString((g.format!=null||g.format!=="")&&e.formatFn(g.total,g.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):t.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"])]),_:1},8,["loading"])],4)}const So=q(j(_i,[["render",vi],["__scopeId","data-v-4292daa2"]])),tn={...Y,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},nn=W(tn);fe.use([Ae.CanvasRenderer,ye.MapChart,ye.ScatterChart,J.VisualMapComponent,J.TooltipComponent,J.GraphicComponent]);const Bi=t.defineComponent({name:"EcanMap",components:{Echarts:pe},props:{...nn},setup(e){const o=H(e,["backgroundImage"]),n=t.ref(),a=t.computed(()=>Ce(e.geoBackgroundImage)),l=t.computed(()=>Ce(e.backgroundImage)),r=t.computed(()=>e.geoBackgroundImage?{image:t.unref(n),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),s=t.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+Ce(d):"circle"}),c=t.computed(()=>{const d=e.geoCenter;let u;return typeof d=="string"&&d!==""&&(u=d.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(l)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:u,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(r),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(s),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),i=t.ref(!1),m=async()=>{var u;const d=e.mapJson;if(d!=null&&d.path){const h=await ke(((u=window==null?void 0:window.config)==null?void 0:u.uploadPath)+d.path);fe.registerMap("map",(h==null?void 0:h.data)||{})}i.value=!0};return t.watch(()=>e.mapJson,()=>{m()},{immediate:!0,deep:!0}),{option:c,style:o,isLoadedData:i,geoBackgroundImageRef:n,myGeoBackgroundImage:a}}}),Qr="",zi=["src"];function Fi(e,o,n,a,l,r){const s=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(s,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,zi),[[t.vShow,!1]])],4)}const wo=q(j(Bi,[["render",Fi],["__scopeId","data-v-1eea2b3c"]])),Ao=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:lo,EcanBorder:uo,EcanButton:Qn,EcanCheckbox:Xn,EcanComboGraph:mo,EcanCustomGraph:so,EcanDatePicker:Un,EcanIframe:Co,EcanImage:po,EcanInput:Gn,EcanLine:oo,EcanList:Dn,EcanMap:wo,EcanModal:ho,EcanPageConfig:vn,EcanPie:to,EcanProportion:jn,EcanProviderConfig:Bn,EcanRangePicker:Jn,EcanScatter:ro,EcanScrollText:On,EcanSelect:Hn,EcanTable:So,EcanTabs:bo,EcanText:Fn,EcanTimeDisplay:Pn,barComponentProps:Ot,barEvents:ao,barProps:Ft,borderComponentProps:qt,borderEvents:fo,borderProps:Gt,buttonComponentProps:Lt,buttonEvents:Yn,buttonProps:Et,checkboxComponentProps:Nt,checkboxEvents:Kn,checkboxProps:It,comboGraphComponentProps:Vt,comboGraphEvents:co,comboGraphProps:jt,customGraphComponentProps:$t,customGraphProps:Dt,datePickerComponentProps:wt,datePickerEvents:qn,datePickerProps:St,iframeComponentProps:Kt,iframeProps:Qt,imageComponentProps:Yt,imageProps:Jt,inputComponentProps:kt,inputEvents:Vn,inputProps:Ct,lineComponentProps:zt,lineEvents:no,lineProps:Bt,listComponentProps:yt,listEvents:Rn,listProps:ht,mapComponentProps:nn,mapProps:tn,modalComponentProps:Wt,modalEvents:go,modalProps:Ut,pageConfig:at,pageConfigComponentProps:lt,pieComponentProps:vt,pieEvents:eo,pieProps:Mt,proportionComponentProps:pt,proportionEvents:$n,proportionProps:bt,providerConfig:ct,providerConfigComponentProps:dt,rangePickerComponentProps:_t,rangePickerEvents:Zn,rangePickerProps:xt,scatterComponentProps:Rt,scatterEvents:io,scatterProps:Pt,selectComponentProps:Tt,selectEvents:Wn,selectProps:At,tableComponentProps:en,tableEvents:ko,tableProps:Xt,tabsComponentProps:Zt,tabsEvents:yo,tabsProps:Ht,textComponentProps:ft,textEvents:zn,textProps:mt,timeDisplayComponentProps:gt,timeDisplayProps:ut},Symbol.toStringTag,{value:"Module"})),Oi={install:e=>{Object.keys(Ao).forEach(o=>{const n=Ao[o];n.install&&e.use(n)})}};p.EcanBar=lo,p.EcanBorder=uo,p.EcanButton=Qn,p.EcanCheckbox=Xn,p.EcanComboGraph=mo,p.EcanCustomGraph=so,p.EcanDatePicker=Un,p.EcanIframe=Co,p.EcanImage=po,p.EcanInput=Gn,p.EcanLine=oo,p.EcanList=Dn,p.EcanMap=wo,p.EcanModal=ho,p.EcanPageConfig=vn,p.EcanPie=to,p.EcanProportion=jn,p.EcanProviderConfig=Bn,p.EcanRangePicker=Jn,p.EcanScatter=ro,p.EcanScrollText=On,p.EcanSelect=Hn,p.EcanTable=So,p.EcanTabs=bo,p.EcanText=Fn,p.EcanTimeDisplay=Pn,p.barComponentProps=Ot,p.barEvents=ao,p.barProps=Ft,p.borderComponentProps=qt,p.borderEvents=fo,p.borderProps=Gt,p.buttonComponentProps=Lt,p.buttonEvents=Yn,p.buttonProps=Et,p.checkboxComponentProps=Nt,p.checkboxEvents=Kn,p.checkboxProps=It,p.comboGraphComponentProps=Vt,p.comboGraphEvents=co,p.comboGraphProps=jt,p.customGraphComponentProps=$t,p.customGraphProps=Dt,p.datePickerComponentProps=wt,p.datePickerEvents=qn,p.datePickerProps=St,p.default=Oi,p.iframeComponentProps=Kt,p.iframeProps=Qt,p.imageComponentProps=Yt,p.imageProps=Jt,p.inputComponentProps=kt,p.inputEvents=Vn,p.inputProps=Ct,p.lineComponentProps=zt,p.lineEvents=no,p.lineProps=Bt,p.listComponentProps=yt,p.listEvents=Rn,p.listProps=ht,p.mapComponentProps=nn,p.mapProps=tn,p.modalComponentProps=Wt,p.modalEvents=go,p.modalProps=Ut,p.pageConfig=at,p.pageConfigComponentProps=lt,p.pieComponentProps=vt,p.pieEvents=eo,p.pieProps=Mt,p.proportionComponentProps=pt,p.proportionEvents=$n,p.proportionProps=bt,p.providerConfig=ct,p.providerConfigComponentProps=dt,p.rangePickerComponentProps=_t,p.rangePickerEvents=Zn,p.rangePickerProps=xt,p.scatterComponentProps=Rt,p.scatterEvents=io,p.scatterProps=Pt,p.selectComponentProps=Tt,p.selectEvents=Wn,p.selectProps=At,p.tableComponentProps=en,p.tableEvents=ko,p.tableProps=Xt,p.tabsComponentProps=Zt,p.tabsEvents=yo,p.tabsProps=Ht,p.textComponentProps=ft,p.textEvents=zn,p.textProps=mt,p.timeDisplayComponentProps=gt,p.timeDisplayProps=ut,Object.defineProperties(p,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
60
  //# sourceMappingURL=index.umd.js.map