@ecan-bi/datav 1.1.36 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +795 -775
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
(function(S,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):(S=typeof globalThis<"u"?globalThis:S||self,t(S["@ecan/bi-datav"]={},S.vue,S["echarts/core"],S["resize-detector"],S["ant-design-vue"],null,null,S["lodash-es"],S.axios,S.mitt,S.dayjs,null,null,null,S["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,S["echarts/renderers"],S["echarts/charts"],S["echarts/components"],S.echarts,null,null,S.big.js))})(this,function(S,t,he,an,q,Gi,Ui,ye,ln,No,pe,Wi,Hi,Zi,rn,Ji,Yi,Qi,Te,Ce,Q,Bo,Ki,Xi,zo){var Eo,Lo,Io,Mo;"use strict";function Fo(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 Oo=Fo(Bo),Po=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Ro(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 Po.forEach(r=>{l[r]=n(r)}),l}return a()}function Do(e,o,n){let a=null;t.watch([n,e,o],([l,r,s],c,i)=>{l&&r&&s&&(a=he.throttle(()=>{r.resize()},100),an.addListener(l,a)),i(()=>{a&&l&&an.removeListener(l,a)})})}const $o={autoresize:Boolean},jo="ecLoadingOptions";function Vo(e,o,n){const a=t.inject(jo,{}),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 qo={loading:Boolean,loadingOptions:Object},er="",Go=/^on[^a-z]/,Uo=e=>Go.test(e);function Wo(e){const o={};for(const n in e)Uo(n)||(o[n]=e[n]);return o}const Ho="x-vue-echarts",Zo="ecTheme",Jo="ecInitOptions",Yo="ecUpdateOptions",Se=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...$o,...qo},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),l=t.shallowRef(),r=t.shallowRef(),s=t.inject(Zo,null),c=t.inject(Jo,null),i=t.inject(Yo,null),{autoresize:m,manualUpdate:d,loading:g,loadingOptions:h}=t.toRefs(e),p=t.computed(()=>r.value||e.option||Object.create(null)),u=t.computed(()=>e.theme||t.unref(s)||{}),C=t.computed(()=>e.initOptions||t.unref(c)||{}),b=t.computed(()=>e.updateOptions||t.unref(i)||{}),y=t.computed(()=>Wo(o));function x(T){if(l.value||!a.value)return;const f=l.value=he.init(a.value,u.value,C.value);e.group&&(f.group=e.group);let k=n;k||(k={},Object.keys(o).filter(A=>A.indexOf("on")===0&&A.length>2).forEach(A=>{const E=A.charAt(2).toLowerCase()+A.slice(3);k[E]=o[A]})),Object.keys(k).forEach(A=>{const E=k[A];E&&(A.indexOf("zr:")===0?f.getZr().on(A.slice(3).toLowerCase(),E):f.on(A.toLowerCase(),E))});function _(){if(f&&!f.isDisposed())try{f.resize()}catch(A){if(A.message==="Cannot read property 'get' of undefined")return;throw A}}function N(){f.setOption(T||p.value,b.value)}m.value?t.nextTick(()=>{_(),N()}):N()}function w(T,f){e.manualUpdate&&(r.value=T),l.value?l.value.setOption(T,f||{}):x(T)}function P(){l.value&&(l.value.dispose(),l.value=void 0)}let L=null;t.watch(d,T=>{typeof L=="function"&&(L(),L=null),T||(L=t.watch(()=>e.option,f=>{f&&(l.value?l.value.setOption(f,b.value):x())},{deep:!0}))},{immediate:!0}),t.watch([u,C],()=>{P(),x()},{deep:!0}),t.watchEffect(()=>{e.group&&l.value&&(l.value.group=e.group)});const M=Ro(l,x);return Vo(l,g,h),Do(l,m,a),t.onMounted(()=>{e.option&&x()}),t.onUnmounted(P),{chart:l,root:a,setOption:w,nonEventAttrs:y,...M}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(Ho,e)}});function de(e,o){Qo(e)&&(e="100%");var n=Ko(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 Qo(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ko(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Xo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Pe(e){return e<=1?"".concat(Number(e)*100,"%"):e}function We(e){return e.length===1?"0"+e:String(e)}function ea(e,o,n){return{r:de(e,255)*255,g:de(o,255)*255,b:de(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 ta(e,o,n){var a,l,r;if(e=de(e,360),o=de(o,100),n=de(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 na(e,o,n){e=de(e,255),o=de(o,255),n=de(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 oa(e,o,n){e=de(e,360)*6,o=de(o,100),n=de(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],g=[r,r,c,n,n,s][i];return{r:m*255,g:d*255,b:g*255}}function aa(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 sn(e){return se(e)/255}function se(e){return parseInt(e,16)}var cn={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 Le(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=ra(e)),typeof e=="object"&&(be(e.r)&&be(e.g)&&be(e.b)?(o=ea(e.r,e.g,e.b),s=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):be(e.h)&&be(e.s)&&be(e.v)?(a=Pe(e.s),l=Pe(e.v),o=oa(e.h,a,l),s=!0,c="hsv"):be(e.h)&&be(e.s)&&be(e.l)&&(a=Pe(e.s),r=Pe(e.l),o=ta(e.h,a,r),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Xo(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 la="[-\\+]?\\d+%?",ia="[-\\+]?\\d*\\.\\d+%?",ke="(?:".concat(ia,")|(?:").concat(la,")"),Ze="[\\s|\\(]+(".concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")\\s*\\)?"),Je="[\\s|\\(]+(".concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")\\s*\\)?"),me={CSS_UNIT:new RegExp(ke),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 ra(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(cn[e])e=cn[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=me.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=me.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=me.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=me.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=me.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=me.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=me.hex8.exec(e),n?{r:se(n[1]),g:se(n[2]),b:se(n[3]),a:sn(n[4]),format:o?"name":"hex8"}:(n=me.hex6.exec(e),n?{r:se(n[1]),g:se(n[2]),b:se(n[3]),format:o?"name":"hex"}:(n=me.hex4.exec(e),n?{r:se(n[1]+n[1]),g:se(n[2]+n[2]),b:se(n[3]+n[3]),a:sn(n[4]+n[4]),format:o?"name":"hex8"}:(n=me.hex3.exec(e),n?{r:se(n[1]+n[1]),g:se(n[2]+n[2]),b:se(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function be(e){return Boolean(me.CSS_UNIT.exec(String(e)))}var Re=2,dn=.16,sa=.05,ca=.05,da=.15,mn=5,fn=4,ma=[{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 un(e){var o=e.r,n=e.g,a=e.b,l=na(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function De(e){var o=e.r,n=e.g,a=e.b;return"#".concat(aa(o,n,a,!1))}function fa(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 gn(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-Re*o:Math.round(e.h)+Re*o:a=n?Math.round(e.h)+Re*o:Math.round(e.h)-Re*o,a<0?a+=360:a>=360&&(a-=360),a}function hn(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-dn*o:o===fn?a=e.s+dn:a=e.s+sa*o,a>1&&(a=1),n&&o===mn&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function yn(e,o,n){var a;return n?a=e.v+ca*o:a=e.v-da*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=Le(e),l=mn;l>0;l-=1){var r=un(a),s=De(Le({h:gn(r,l,!0),s:hn(r,l,!0),v:yn(r,l,!0)}));n.push(s)}n.push(De(a));for(var c=1;c<=fn;c+=1){var i=un(a),m=De(Le({h:gn(i,c),s:hn(i,c),v:yn(i,c)}));n.push(m)}return o.theme==="dark"?ma.map(function(d){var g=d.index,h=d.opacity,p=De(fa(Le(o.backgroundColor||"#141414"),Le(n[g]),h*100));return p}):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 bn=[],Ie=[],ua="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function ga(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function ha(e,o){if(o=o||{},e===void 0)throw new Error(ua);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=bn.indexOf(a);l===-1&&(l=bn.push(a)-1,Ie[l]={});var r;return Ie[l]!==void 0&&Ie[l][n]!==void 0?r=Ie[l][n]:(r=Ie[l][n]=ga(),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 pn(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){ya(e,l,n[l])})}return e}function ya(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function ba(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function pa(e,o){ba(e,"[@ant-design/icons-vue] ".concat(o))}function Cn(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,pn({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,pn({key:o},e.attrs),(e.children||[]).map(function(a,l){return et(a,"".concat(o,"-").concat(e.tag,"-").concat(l))}))}function kn(e){return Ye(e)[0]}function Sn(e){return e?Array.isArray(e)?e:[e]:[]}var Ca=`
|
|
1
|
+
/*! @ecan-bi/datav@1.1.38 */
|
|
2
|
+
(function(S,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):(S=typeof globalThis<"u"?globalThis:S||self,t(S["@ecan/bi-datav"]={},S.vue,S["echarts/core"],S["resize-detector"],S["ant-design-vue"],null,null,S["lodash-es"],S.axios,S.mitt,S.dayjs,null,null,null,S["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,S["echarts/renderers"],S["echarts/charts"],S["echarts/components"],S.echarts,null,null,S.big.js))})(this,function(S,t,he,an,q,Gi,Ui,ye,ln,No,pe,Wi,Hi,Zi,rn,Ji,Yi,Qi,Te,Ce,Q,Bo,Ki,Xi,zo){var Eo,Lo,Io,Mo;"use strict";function Fo(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 Oo=Fo(Bo),Po=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Ro(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 Po.forEach(r=>{l[r]=n(r)}),l}return a()}function Do(e,o,n){let a=null;t.watch([n,e,o],([l,r,c],s,i)=>{l&&r&&c&&(a=he.throttle(()=>{r.resize()},100),an.addListener(l,a)),i(()=>{a&&l&&an.removeListener(l,a)})})}const $o={autoresize:Boolean},jo="ecLoadingOptions";function Vo(e,o,n){const a=t.inject(jo,{}),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 qo={loading:Boolean,loadingOptions:Object},er="",Go=/^on[^a-z]/,Uo=e=>Go.test(e);function Wo(e){const o={};for(const n in e)Uo(n)||(o[n]=e[n]);return o}const Ho="x-vue-echarts",Zo="ecTheme",Jo="ecInitOptions",Yo="ecUpdateOptions",Se=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...$o,...qo},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),l=t.shallowRef(),r=t.shallowRef(),c=t.inject(Zo,null),s=t.inject(Jo,null),i=t.inject(Yo,null),{autoresize:m,manualUpdate:d,loading:g,loadingOptions:h}=t.toRefs(e),p=t.computed(()=>r.value||e.option||Object.create(null)),u=t.computed(()=>e.theme||t.unref(c)||{}),C=t.computed(()=>e.initOptions||t.unref(s)||{}),b=t.computed(()=>e.updateOptions||t.unref(i)||{}),y=t.computed(()=>Wo(o));function x(w){if(l.value||!a.value)return;const f=l.value=he.init(a.value,u.value,C.value);e.group&&(f.group=e.group);let k=n;k||(k={},Object.keys(o).filter(A=>A.indexOf("on")===0&&A.length>2).forEach(A=>{const L=A.charAt(2).toLowerCase()+A.slice(3);k[L]=o[A]})),Object.keys(k).forEach(A=>{const L=k[A];L&&(A.indexOf("zr:")===0?f.getZr().on(A.slice(3).toLowerCase(),L):f.on(A.toLowerCase(),L))});function E(){if(f&&!f.isDisposed())try{f.resize()}catch(A){if(A.message==="Cannot read property 'get' of undefined")return;throw A}}function N(){f.setOption(w||p.value,b.value)}m.value?t.nextTick(()=>{E(),N()}):N()}function _(w,f){e.manualUpdate&&(r.value=w),l.value?l.value.setOption(w,f||{}):x(w)}function P(){l.value&&(l.value.dispose(),l.value=void 0)}let T=null;t.watch(d,w=>{typeof T=="function"&&(T(),T=null),w||(T=t.watch(()=>e.option,f=>{f&&(l.value?l.value.setOption(f,b.value):x())},{deep:!0}))},{immediate:!0}),t.watch([u,C],()=>{P(),x()},{deep:!0}),t.watchEffect(()=>{e.group&&l.value&&(l.value.group=e.group)});const I=Ro(l,x);return Vo(l,g,h),Do(l,m,a),t.onMounted(()=>{e.option&&x()}),t.onUnmounted(P),{chart:l,root:a,setOption:_,nonEventAttrs:y,...I}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(Ho,e)}});function de(e,o){Qo(e)&&(e="100%");var n=Ko(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 Qo(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ko(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Xo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Pe(e){return e<=1?"".concat(Number(e)*100,"%"):e}function We(e){return e.length===1?"0"+e:String(e)}function ea(e,o,n){return{r:de(e,255)*255,g:de(o,255)*255,b:de(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 ta(e,o,n){var a,l,r;if(e=de(e,360),o=de(o,100),n=de(n,100),o===0)l=n,r=n,a=n;else{var c=n<.5?n*(1+o):n+o-n*o,s=2*n-c;a=He(s,c,e+1/3),l=He(s,c,e),r=He(s,c,e-1/3)}return{r:a*255,g:l*255,b:r*255}}function na(e,o,n){e=de(e,255),o=de(o,255),n=de(n,255);var a=Math.max(e,o,n),l=Math.min(e,o,n),r=0,c=a,s=a-l,i=a===0?0:s/a;if(a===l)r=0;else{switch(a){case e:r=(o-n)/s+(o<n?6:0);break;case o:r=(n-e)/s+2;break;case n:r=(e-o)/s+4;break}r/=6}return{h:r,s:i,v:c}}function oa(e,o,n){e=de(e,360)*6,o=de(o,100),n=de(n,100);var a=Math.floor(e),l=e-a,r=n*(1-o),c=n*(1-l*o),s=n*(1-(1-l)*o),i=a%6,m=[n,c,r,r,s,n][i],d=[s,n,n,c,r,r][i],g=[r,r,s,n,n,c][i];return{r:m*255,g:d*255,b:g*255}}function aa(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 sn(e){return se(e)/255}function se(e){return parseInt(e,16)}var cn={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 Le(e){var o={r:0,g:0,b:0},n=1,a=null,l=null,r=null,c=!1,s=!1;return typeof e=="string"&&(e=ra(e)),typeof e=="object"&&(be(e.r)&&be(e.g)&&be(e.b)?(o=ea(e.r,e.g,e.b),c=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):be(e.h)&&be(e.s)&&be(e.v)?(a=Pe(e.s),l=Pe(e.v),o=oa(e.h,a,l),c=!0,s="hsv"):be(e.h)&&be(e.s)&&be(e.l)&&(a=Pe(e.s),r=Pe(e.l),o=ta(e.h,a,r),c=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Xo(n),{ok:c,format:e.format||s,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 la="[-\\+]?\\d+%?",ia="[-\\+]?\\d*\\.\\d+%?",ke="(?:".concat(ia,")|(?:").concat(la,")"),Ze="[\\s|\\(]+(".concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")\\s*\\)?"),Je="[\\s|\\(]+(".concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")\\s*\\)?"),me={CSS_UNIT:new RegExp(ke),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 ra(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(cn[e])e=cn[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=me.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=me.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=me.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=me.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=me.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=me.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=me.hex8.exec(e),n?{r:se(n[1]),g:se(n[2]),b:se(n[3]),a:sn(n[4]),format:o?"name":"hex8"}:(n=me.hex6.exec(e),n?{r:se(n[1]),g:se(n[2]),b:se(n[3]),format:o?"name":"hex"}:(n=me.hex4.exec(e),n?{r:se(n[1]+n[1]),g:se(n[2]+n[2]),b:se(n[3]+n[3]),a:sn(n[4]+n[4]),format:o?"name":"hex8"}:(n=me.hex3.exec(e),n?{r:se(n[1]+n[1]),g:se(n[2]+n[2]),b:se(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function be(e){return Boolean(me.CSS_UNIT.exec(String(e)))}var Re=2,dn=.16,sa=.05,ca=.05,da=.15,mn=5,fn=4,ma=[{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 un(e){var o=e.r,n=e.g,a=e.b,l=na(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function De(e){var o=e.r,n=e.g,a=e.b;return"#".concat(aa(o,n,a,!1))}function fa(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 gn(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-Re*o:Math.round(e.h)+Re*o:a=n?Math.round(e.h)+Re*o:Math.round(e.h)-Re*o,a<0?a+=360:a>=360&&(a-=360),a}function hn(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-dn*o:o===fn?a=e.s+dn:a=e.s+sa*o,a>1&&(a=1),n&&o===mn&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function yn(e,o,n){var a;return n?a=e.v+ca*o:a=e.v-da*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=Le(e),l=mn;l>0;l-=1){var r=un(a),c=De(Le({h:gn(r,l,!0),s:hn(r,l,!0),v:yn(r,l,!0)}));n.push(c)}n.push(De(a));for(var s=1;s<=fn;s+=1){var i=un(a),m=De(Le({h:gn(i,s),s:hn(i,s),v:yn(i,s)}));n.push(m)}return o.theme==="dark"?ma.map(function(d){var g=d.index,h=d.opacity,p=De(fa(Le(o.backgroundColor||"#141414"),Le(n[g]),h*100));return p}):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 bn=[],Ie=[],ua="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function ga(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function ha(e,o){if(o=o||{},e===void 0)throw new Error(ua);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=bn.indexOf(a);l===-1&&(l=bn.push(a)-1,Ie[l]={});var r;return Ie[l]!==void 0&&Ie[l][n]!==void 0?r=Ie[l][n]:(r=Ie[l][n]=ga(),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 pn(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){ya(e,l,n[l])})}return e}function ya(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function ba(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function pa(e,o){ba(e,"[@ant-design/icons-vue] ".concat(o))}function Cn(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,pn({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,pn({key:o},e.attrs),(e.children||[]).map(function(a,l){return et(a,"".concat(o,"-").concat(e.tag,"-").concat(l))}))}function kn(e){return Ye(e)[0]}function Sn(e){return e?Array.isArray(e)?e:[e]:[]}var Ca=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: inherit;
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
transform: rotate(360deg);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,wn=!1,ka=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ca;t.nextTick(function(){wn||(typeof window<"u"&&window.document&&window.document.documentElement&&ha(o,{prepend:!0}),wn=!0)})},Sa=["icon","primaryColor","secondaryColor"];function wa(e,o){if(e==null)return{};var n=Aa(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 Aa(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 $e(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){Ta(e,l,n[l])})}return e}function Ta(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Me={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xa(e){var o=e.primaryColor,n=e.secondaryColor;Me.primaryColor=o,Me.secondaryColor=n||kn(o),Me.calculated=!!n}function _a(){return $e({},Me)}var xe=function(o,n){var a=$e({},o,n.attrs),l=a.icon,r=a.primaryColor,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ia(e,o){if(e){if(typeof e=="string")return An(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 An(e,o)}}function An(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 Ma(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
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oa(e,o){if(e){if(typeof e=="string")return xn(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 xn(e,o)}}function xn(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 Pa(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
|
|
59
|
-
`),rt=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},el=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},qe=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Nn=(e,o)=>typeof e=="string"&&typeof o=="string"?e.toLocaleLowerCase().includes(o.toLocaleLowerCase()):!1,ie=(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).trim();const m=/[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g,d=i.match(m);for(let g=0;g<d.length;g++){const h=d[g],p=o[h];if(p!=null&&(i=i.replace(h,p)),p!==i)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," ")),e},fe=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:l,requestParams:r,requestInterval:s,isOpenRequestTimer:c}=e,{contextRequestUrl:i,pageMode:m,touchEventId:d}=t.inject(ee,{contextRequestUrl:"",pageMode:"normal",touchEventId:""}),{getGlobalModel:g}=t.inject(te,{getGlobalModel:C=>{}}),h=ie(n),p=async(C={})=>{if(!h||!a||!l||t.unref(m)==="design")return;let b={};r.forEach(L=>{const{key:M,value:T}=L;if(typeof T=="object"&&T.id){let f={};const{id:k,prop:_,propKey:N,operate:A}=T;k==="THIS"?f=g(t.unref(d))||{}:f=g(k)||{};const E=t.unref(f[_]);let R=null;if(["date","range"].some(v=>Nn(f==null?void 0:f.type,v))){const{value:v,type:F,mode:z}=A||{};if(v&&F&&z)switch(F){case"add":R=t.unref(E).add(v,z);break;case"minus":R=t.unref(E).subtract(v,z);break}R==null&&(R=t.unref(E)),R=(R==null?void 0:R.format((N==null?void 0:N.trim())||f.format))||""}else Object.prototype.toString.call(E)==="[object Object]"?R=E[N||"value"]:R=E;b[M]=R}else typeof T=="string"&&(b[M]=ie(T))}),b={...window.config.requestParams,...C,...b};let y="";const x=Object.keys(b),w=x.length-1,P=x.length;x.forEach((L,M)=>{M===0?P!==1?y+=`?${L}=${b[L]}&`:y+=`?${L}=${b[L]}`:M===w?y+=`${L}=${b[L]}`:y+=`${L}=${b[L]}&`});try{const L=["get","head"].includes(a),M=await ue({baseURL:t.unref(i)||"",url:L?h+y:h,method:a,headers:l,data:L?{}:b});return o(M),M}catch(L){console.error(L)}},u=c&&setInterval(p,s*1e3);return t.onUnmounted(()=>{clearInterval(u)}),p},Ee=(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 p=a[h],{label:u,value:C}=p,b={...e[0],value:e[0][C]};l.add(u),d.push(b)}const g=e[0][n]||"";r.set(g,d)}else for(let d=0;d<s;d++){const g=e[d],h=g[n];l.add(h);for(let p=0;p<c;p++){const u=a[p],{label:C,value:b}=u,y={...g,value:g[b]};if(r.has(C)){const x=r.get(C);x.push(y),r.set(C,x)}else r.set(C,[y])}}const i=Array.from(l),m=[];for(const[d,g]of r)m.push({name:d,data:g});return{dimensions:i,dataset:m}},we=(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},Bn=(e,o)=>{const n=`${Mn}/preview?pageId=${o}`,a=`${Mn}/${o}`;return e==="preview"?n:a},st=e=>{const{getGlobalModel:o}=t.inject(te,{getGlobalModel:i=>{}}),n=i=>{const m=[];return i==null||i.leftAxisList.forEach(d=>{if(d){let g=!1;i.leftAxis.includes(d.name)&&(g=!0);let h={label:d.name,columnName:d.label,aggregate:d.calcValue?d.calcValue:"SUM",order:null,location:"LEFT",show:g};i.source==="INDICATOR_LIB"&&(h.hrpIndexCode=d.indexCode),h=a(d,h),m.push(h)}}),i.rightAxisList.forEach(d=>{let g=!1;i.rightAxis.includes(d.name)&&(g=!0);let h={label:d.name,columnName:d.label,aggregate:"SUM",order:null,location:"LEFT",show:g};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 g=0;g<i.length;g++){const{keyName:h,searchName:p,searchType:u,variateName:C,id:b}=i[g],y={alias:h,fieldName:p,rule:u||"NONE",fieldValue:"",valueType:"",variateName:C},x=o(b)||{};if(p==="the_date"?y.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(p)&&(y.valueType="TEXT"),x.type==="ecanDatePicker"){y.dateFormat=x.format;const w=(d=t.unref(x))==null?void 0:d.value.format;typeof w=="function"&&(y.fieldValue=w(x==null?void 0:x.format))}m.push(y)}return m},r=(i,m)=>{const d=m.find(g=>g.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((g,h)=>{h!==0&&(i.customGroup.groupInfoMap[g.key]=g.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 g="";i.type==="and"?g="&&":g="||",m.push({conditions:[],join:g}),s(i.children[d],m[m.length-1].conditions)}else if(i.children[d].fieldName){let g="";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(g=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&&(g="#######",h.calcWays=i.children[d].calcWays):i.children[d].selectType==="component"&&(g="${"+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(g)==="[object Array]"){const p=[];for(let u=0;u<g.length;u++)g[u]!=="全选"&&p.push(g[u]);g=p.join(",")}h.fieldValue=g,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 g=d[m].find(u=>u.name===i.label);if(!g)return;const h=[],p=g.filterList;if(p)for(let u=0;u<p.length;u++)p[u].children.length>0&&s(p[u],h);return h};return async function(){var L,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){q.message.error("当前y轴无配置信息");return}const h=n(m);let p;if(Array.isArray(m.series)&&m.series.length>0){const T=(L=m.seriesList)==null?void 0:L.find(f=>{const k=m.series[0];return f.name===k||f.nameBak===k});T!=null&&(p={label:T.name,columnName:T.label})}let u;if(d.length>0){u={label:d[0],columnName:d[0]};const T=((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]))||{};u.columnName=T.label,r(u,m.classifyList),u.conditions=c(u,"classifyList",m)||[]}p&&(r(p,m.seriesList),p.conditions=c(p,"seriesList",m)||[]);for(let T=0;T<h.length;T++)h[T].location==="RIGHT"?h[T].conditions=c(h[T],"rightAxisList",m):h[T].conditions=c(h[T],"leftAxisList",m);let C;(m==null?void 0:m.pageMode)==="design"?C=m.sqlConditions??[]:C=l(m==null?void 0:m.relativeList);let b="SQL_VIEW",y="",x="",w="";m.source==="INDICATOR_LIB"&&(b="INDICATOR_LIB",y=m.fixedDimSql,x=m.dataSourceId,w=m.idxLibMode);const P={ecanBar:"bar",ecanLine:"line",ecanPie:"pie",ecanScatter:"scatter"};try{const T=await ue.get(`${Ve}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});return ue.post(`${Ve}/diagram`,{dataViewId:m.dataViewId,plugin:"1",layer:"2",chartType:P[i],classification:u,indicatorList:h,series:p,sqlConditions:C,source:b,fixedDimSql:y,dataSourceId:x,idxLibMode:w},{headers:{Authentication:T.data.data.token}})}catch(T){console.error(T)}}},Ae=(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;s!==o.toString()&&(c=(0,eval)(s)),e=e.replace(r,c)}catch{e=e.replace(r,s)}}return e},zn=(e={})=>{const{requestToken:o}=t.inject(Ln,{requestToken:()=>{}});e.dataType==="indicator"&&o();const n=(s={})=>{const{label:c,name:i,location:m,show:d,indexCode:g}=s;return{label:c,columnName:i,location:m,show:d,calcType:"COLUMN",hrpIndexCode:g}},a=(s={})=>{const{label:c,name:i,location:m,show:d,indexCode:g,calcType:h="COLUMN",builtInFormula:p,builtInValueSource:u,builtInCalcWay:C,formula:b,conditions:y}=s;return{label:c,columnName:i,location:m,show:d,calcType:h,hrpIndexCode:g,aggregate:"SUM",builtInFormula:p,builtInValueSource:u,builtInCalcWay:C,formula:b,conditions:y}},{getGlobalModel:l}=t.inject(te,{getGlobalModel:s=>{}}),r=(s=[])=>{var m;const c=s.length,i=[];for(let d=0;d<c;d++){const g=s[d],{id:h,conditionLabel:p,conditionKey:u,conditionValueType:C}=g,b={rule:"NONE",label:p,fieldName:u,fieldValue:"",valueType:C},y=l(h)||{};if(Nn(y.type,"date")){const{value:x,format:w}=y||{};b.fieldValue=(m=t.unref(x))==null?void 0:m.format(w),b.dateFormat=w}i.push(b)}return i};return async()=>{var N;const{graphicConfig:s}=e,{source:c,dataViewId:i,plugin:m,layer:d,chartType:g,classificationList:h=[],seriesList:p=[],leftAxisList:u=[],rightAxisList:C=[],queryColumnList:b=[],indicators:y=[],controlList:x=[],dataSourceId:w,idxLibMode:P,preview:L=!1}=s||{};let M;if(Array.isArray(h)&&h.length>0){const A=h.length;for(let E=0;E<A;E++){const R=h[E]||{},{label:j="",name:v="",show:F=!1,sort:z,customGroup:D,conditions:W}=R;if(F||A===1){M={label:j,columnName:v,show:F,sort:z,customGroup:D,conditions:W};break}}}let T;if(Array.isArray(p)&&p.length>0){const A=p.length;for(let E=0;E<A;E++){const R=p[E]||{},{label:j="",name:v="",show:F=!1,sort:z,customGroup:D,conditions:W}=R;if(F||A===1){T={label:j,columnName:v,show:F,sort:z,customGroup:D,conditions:W};break}}}const f=[];b==null||b.forEach(A=>{f.push(n(A))});const k=[];if(u==null||u.forEach(A=>{A.location="LEFT",k.push(a(A))}),C==null||C.forEach(A=>{A.location="RIGHT",k.push(a(A))}),y==null||y.forEach(A=>{A.location="LEFT",k.push(a(A))}),d==="1"&&f.length===0)return;if(d==="2"&&k.length===0)return;let _;(s==null?void 0:s.pageMode)==="design"?_=s.sqlConditions??[]:_=r(x);try{return await ue.post(`${Ve}/diagram`,{source:c,dataViewId:i,plugin:m,layer:d,chartType:g,classification:M,series:T,indicatorList:k,queryColumns:f,pageFlag:!0,sqlConditions:_,dataSourceId:w,idxLibMode:P,preview:L},{headers:{Authentication:(N=window==null?void 0:window.config)==null?void 0:N.indicatorToken,operateContext:"ygt"}})}catch(A){console.error(A)}}},tl=()=>{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}}},nl=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...lt},setup(e){const o=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:we(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(C=>{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),C()})}),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`)},g=()=>{const C=document.body.clientWidth,b=document.body.clientHeight,y=n.value||l.value,x=a.value||r.value,w=C/y,P=b/x;c.value&&(c.value.style.transform=`scale(${w}, ${P})`)},h=ye.debounce(async()=>{await m(),g()},100),p=()=>{const C=window.MutationObserver;i=new C(h),i.observe(c.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},u=()=>{i&&(i.disconnect(),i.takeRecords(),i=null)};return t.onMounted(async()=>{s.value=!1,await m(),d(),g(),window.addEventListener("resize",h),p(),s.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",h),u()}),{style:o,container:c,ready:s}}}),nr="",ol={id:"container",ref:"container"};function al(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",ol,[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 Fn=U(G(nl,[["render",al],["__scopeId","data-v-242d350e"]])),ct={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},dt=Z(ct),ll=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...dt},setup(e,{expose:o}){tl();const n=t.ref(),a=()=>{n.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>ie(e.contextRequestUrl)),r=t.computed(()=>e.pageMode),s=t.computed(()=>e.theme),c=t.ref("");t.provide(ee,{contextRequestUrl:l,pageMode:r,theme:s,touchEventId:c});const i=new Map,m=v=>i.get(v),d=(v,F)=>{i.set(v,F)};t.provide(te,{getGlobalModel:m,setGlobalModel:d});const g=[],h=()=>{g.pop()},p=v=>{g.push(v)},u=new Map,C=v=>u.get(v),b=(v,F)=>{u.set(v,F)};t.provide(In,{popUseModalIds:h,pushUseModalIds:p,getModalModel:C,setModalModel:b});const y=No(),x=new Set,w=(v,F)=>{x.add(v),y.on(v,z=>typeof F[z]=="function"&&F[z]()),t.onBeforeUnmount(()=>{P(v)})},P=v=>{x.delete(v),y.off(v)},L=(v,F)=>{if(v==="PAGE"){const z=g.length;let D=[];if(z===0)D=[...x];else{const W=g[z-1];D=[...C(W)]}D.forEach(W=>{y.emit(W,F)})}else y.emit(v,F)};t.provide(it,{onEvent:w,offEvent:P,emitEvent:L});const M=t.ref(0),T=()=>{M.value=t.unref(M)+1};t.provide(Ln,{requestToken:T});const f=new Map,k=new Map,_=({requestFn:v=()=>{},sortNum:F=0,id:z=""})=>{if(f.has(F)){const D=f.get(F);D==null||D.push(v)}else f.set(F,[v]);k.set(z,v)},N=v=>new Promise((F,z)=>{const D=v.map(W=>W());Promise.all(D).then(W=>{F(W)}).catch(W=>{z(W)})}),A=async()=>{var F;const v=await ln.get(`${Ve}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});config.indicatorToken=(F=v.data.data)==null?void 0:F.token},E=v=>new Promise(async(F,z)=>{if(v){if(typeof v=="string"){const D=k.get(v);if(typeof D=="function"){const W=ue.interceptors.response.use(X=>(F(X),X),X=>(z(X),Promise.reject(X)));D(),ue.interceptors.response.eject(W)}}}else{const D=Array.from(f);D.sort((X,Ge)=>Ge[0]-X[0]);const W=D.length;try{e.pageMode!=="design"&&t.unref(M)>0&&await A();for(let X=0;X<W;X++){const Ge=D[X][1];await N(Ge)}}catch(X){console.error(X)}finally{f.clear(),F(null)}}});t.provide(ce,{setRequest:_,touchRequest:E});const R=()=>{y.emit(Ne)};t.provide(Ne,{emitRefreshPage:R});const j=v=>{y.on(Ne,()=>v()),t.onMounted(()=>{y.off(Ne)})};return t.onBeforeUnmount(()=>{f==null||f.clear(),k==null||k.clear()}),o({touchRequest:E,getGlobalModel:m,onRefreshPage:j}),{providerConfig:n}}}),il={id:"ProviderConfig",ref:"providerConfig"};function rl(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",il,[t.renderSlot(e.$slots,"default")],512)}const On=U(G(ll,[["render",rl]])),mt={...K,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",data:{},variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:""},ft=Z(mt),Pn=["refreshData","click"],sl="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=",cl="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==",dl=t.defineComponent({name:"EcanText",components:{Skeleton:je},props:{...ft},setup(e){const o=J(e),n=t.ref({});t.watch(()=>[e.data,e.dataType],([h,p])=>{p==="static"&&(n.value=h)},{immediate:!0});const a=t.computed(()=>{var C;const h=t.unref(n);let p=e.text;p=p==null?void 0:p.replace(/\n|\\n/g,"<br/>"),p=p==null?void 0:p.replace(/\s(?!\{) | (?!\})\s/g," ");const u=p.match(/\{\s*[\w\u4e00-\u9fa5]*\s*\}/g);if(u==null||u.length===0)return p;for(let b=0;b<u.length;b++){const y=u[b],x=(C=y==null?void 0:y.slice(1,y.length-1))==null?void 0:C.trim();let w=h[x];if(w!=null){const P=e.format;P==="percentage"?(w=+w,isNaN(w)?p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`):(w=(w*100).toFixed(2),w>=0?p=p.replace(y,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${sl}"/>${w}%</span>`):p=p.replace(y,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${cl}"/>${Math.abs(w)}%</span>`))):P==="percent"?(w=+w,isNaN(w)||(w=(w*100).toFixed(2),p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}%</span>`))):e.format==="money"?(w=+w,isNaN(w)||(w=rt(w),p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))):P==="thousands"?(w=+w,isNaN(w)||(w=el(w),p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`))):p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${w}</span>`)}else p=p.replace(y,e.variableDefaultValue)}return`<span>${p}</span>`}),{pageMode:l}=t.inject(ee,{pageMode:"normal"}),r=fe(e),s=t.ref(!1),c=async()=>{var h;if(t.unref(l)!=="design")try{s.value=!0;const p=await r();n.value=((h=p==null?void 0:p.data)==null?void 0:h.data)||{}}catch(p){console.error(p)}finally{s.value=!1}},i=()=>{e.dataType!=="static"&&c()};oe(e,{refreshData:i});const{setRequest:m}=t.inject(ce,{setRequest:({id:h,sortNum:p,requestFn:u})=>{}});m({id:e.id,requestFn:i,sortNum:e.requestSort}),oe(e,{refreshData:i});const g=ne(e)("click",()=>{if(!e.linkPage&&!e.href)return;const h=e.linkPage||"",p=Bn(t.unref(l),h),u=e.href;let C=u||p;C=ie(C);const b=e.target;b==null||b===""||(b!=="event"?window.open(C,"_"+b):window.parent.postMessage({type:"openPage",url:u},"*"))});return{style:o,myText:a,loading:s,click:g}}}),lr="",ml=["innerHTML"];function fl(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,ml))}const Rn=U(G(dl,[["render",fl],["__scopeId","data-v-d95aef76"]])),ul=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),rr="",gl={class:"red"};function hl(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",gl,t.toDisplayString(e.text),1)}const Dn=U(G(ul,[["render",hl],["__scopeId","data-v-4dd9c03e"]])),ut={...K,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=Z(ut),yl=t.defineComponent({name:"EcanTimeDisplay",props:{...gt},setup(e){const o=J(e),n=t.ref(pe().format(e.format));let a=null;const l=()=>{clearInterval(a),a=null},r=()=>{a&&l(),a=setInterval(()=>{n.value=pe().add(1,"s").format(e.format)},1e3)};return t.onMounted(()=>{r()}),t.onUnmounted(()=>{l()}),{style:o,time:n}}}),cr="";function bl(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 $n=U(G(yl,[["render",bl],["__scopeId","data-v-07d3cde3"]])),ht={...K,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},yt=Z(ht),jn=["refreshData","click"],pl=t.defineComponent({name:"EcanList",components:{Skeleton:je},props:{...yt},setup(e){const o=t.ref(e.data),n=J(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(u,C)=>C==null||C===""?u:{money:rt,percentage:qe,contrast:qe}[C](u)||"",r=(u,C)=>{const b=parseFloat(u+"");if(C!=="contrast")return"";switch(!0){case b>=0:return"goUp";case b<0:return"goDown"}},s=fe(e),{pageMode:c}=t.inject(ee,{pageMode:"normal"}),i=t.ref(!1),m=async()=>{var u;if(!(e.dataType!=="request"||t.unref(c)==="design"))try{i.value=!0;const C=await s();o.value=((u=C==null?void 0:C.data)==null?void 0:u.data.rows)||[]}catch(C){console.error(C)}finally{i.value=!1}},d=()=>{m()},h=ne(e)("click",()=>{});oe(e,{refreshData:d});const{setRequest:p}=t.inject(ce,{setRequest:({id:u,sortNum:C,requestFn:b})=>{}});return p({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,formatFn:l,columnStyle:a,contrastClass:r,dataSource:o,loading:i,click:h}}}),mr="",fr="",Cl=e=>(t.pushScopeId("data-v-baf2ff0c"),e=e(),t.popScopeId(),e),kl={key:0,class:"title"},Sl={key:0,class:"ranking"},wl={key:1,class:"ecan-list-content"},Al={key:0,class:"ranking"},Tl=Cl(()=>t.createElementVNode("div",{class:"icon"},null,-1)),xl={class:"sort"},_l={key:2,class:"empty"};function El(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",kl,[(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",Sl)):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",wl,[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",Al,[Tl,t.createElementVNode("div",xl," 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",_l," 暂无数据 "))]),_:1},8,["loading"])],4)}const Vn=U(G(pl,[["render",El],["__scopeId","data-v-baf2ff0c"]])),bt={...K,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!1,variableDefaultValue:"0"},pt=Z(bt),qn=["refreshData","click"],Ll=t.defineComponent({name:"EcanProportion",components:{AProgress:q.Progress,Skeleton:je},props:{...pt},setup(e){const{pageMode:o}=t.inject(ee,{pageMode:"normal"}),n=J(e),a=t.computed(()=>{const u=e.width;return parseFloat(u)}),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 u=t.unref(l),C=+e.variableDefaultValue;if(u==null)return isNaN(C)?0:C;const b=e.text.match(/\{.+\}/g)||[];let y;const x=new Set(Object.keys(u));for(let w=0;w<b.length;w++){const P=b[w],L=P.slice(1,P.length-1);if(x.has(L)){y=u[L];break}}return typeof y=="number"?y=y*100:typeof y=="string"&&!isNaN(+y)?y=+y*100:isNaN(C)?y=0:y=C*100,e.decimalFormat&&(y=+y.toFixed(2)),y}),s=t.computed(()=>{var x;let u=e.text;if(u==="")return t.unref(r);const C=e.variableDefaultValue,b=t.unref(l),y=u.match(/\{.+\}/g)||[];for(let w=0;w<y.length;w++){const P=y[w];let L=P.slice(1,P.length-1);const M=L.match(/.*/g);for(let f=0;f<(M==null?void 0:M.length);f++){const k=(x=M[w])==null?void 0:x.trim();b[k]!=null?L=L.replace(k,b[k]):L=L.replace(k,C)}let T=L;try{/\w+[+\-*/%]+\w+/g.test(L)&&(T=(0,eval)(L))}catch(f){console.error(f)}(typeof T=="number"||!isNaN(+T))&&(T=+T*100,e.decimalFormat&&(T=T.toFixed(2))),u=u.replace(P,T+"")}return u}),c=fe(e),i=t.ref(!1),m=async()=>{var u;if(!(e.dataType!=="request"||t.unref(o)==="design"))try{i.value=!0;const C=await c();l.value=((u=C==null?void 0:C.data)==null?void 0:u.data)||{}}catch(C){console.error(C)}finally{i.value=!1}};oe(e,{refreshData:()=>{m()}});const h=ne(e)("click",()=>{}),{setRequest:p}=t.inject(ce,{setRequest:({id:u,sortNum:C,requestFn:b})=>{}});return p({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,myWidth:a,text:s,myValue:r,loading:i,click:h}}}),gr="";function Il(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 Gn=U(G(Ll,[["render",Il],["__scopeId","data-v-304d430d"]])),Ct={...K,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},kt=Z(Ct),Un=["inputChange","inputBlur"],Ml=t.defineComponent({name:"EcanInput",components:{AInput:q.Input},props:{...kt},setup(e){const o=J(e),n=t.ref("");t.watch(()=>e.value,d=>{n.value=d},{immediate:!0});const a=e.id,{getGlobalModel:l,setGlobalModel:r}=t.inject(te,{getGlobalModel:d=>{},setGlobalModel:(d,g)=>{}});r(e.id,{type:e.type,value:n});const s=()=>{const d=l(a);r(a,{...d,RECORD:n})},c=ne(e),i=ye.debounce(c("inputChange",()=>{s()}),300),m=c("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:m,inputChange:i}}}),yr="";function vl(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 Wn=U(G(Ml,[["render",vl]])),St={...K,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null},wt=Z(St),Hn=["dateChange"],Nl=t.defineComponent({name:"EcanDatePicker",props:{...wt},components:{ADatePicker:q.DatePicker},setup(e){const o=J(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([c,i,m])=>{let d=null;if(c?d=pe(c):i&&(d=pe()),m&&d){const{type:g,value:h,mode:p}=m;switch(g){case"add":d=d.add(h,p);break;case"minus":d=d.subtract(h,p)}}a.value=d},{deep:!0,immediate:!0});const{setGlobalModel:l}=t.inject(te,{setGlobalModel:(c,i)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const s=ne(e)("dateChange",()=>{});return oe(e,{dateChange:s}),{style:o,getPopupContainer:n,myValue:a,locale:rn,dateChange:s}}}),pr="";function Bl(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 Zn=U(G(Nl,[["render",Bl]])),At={...K,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=Z(At),Jn=["selectChange"],zl=t.defineComponent({name:"EcanSelect",components:{ASelect:q.Select},props:{...Tt},setup(e){const o=J(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=fe(e),{pageMode:l}=t.inject(ee,{pageMode:"normal"}),r=t.ref(e.data),s=t.ref(e.value||e.data[0]),c=e.dataFieldNames,i=(b,y)=>{const x=c.label,w=c.value;let P;const L=y[x],M=y[w];return L!=null?P=L:M!=null&&(P=M),(P==null?void 0:P.toLowerCase().indexOf(b==null?void 0:b.toLowerCase()))>=0},m=t.ref(!1),d=async()=>{var b,y;if(!(e.dataType!=="request"||t.unref(l)==="design")){m.value=!0;try{const x=await a();r.value=((y=(b=x==null?void 0:x.data)==null?void 0:b.data)==null?void 0:y.rows)||[];const w=t.unref(r)[0];e.value===""&&w!=null&&(s.value=w[c.value])}catch(x){console.error(x)}finally{m.value=!1}}},{getGlobalModel:g,setGlobalModel:h}=t.inject(te,{getGlobalModel:b=>{},setGlobalModel:(b,y)=>{}});h(e.id,{type:e.type,value:s});const u=ne(e)("selectChange",()=>{const b=e.id,y=g(b);h(b,{...y,RECORD:s})});oe(e,{selectChange:u});const{setRequest:C}=t.inject(ce,{setRequest:({id:b,sortNum:y,requestFn:x})=>{}});return C({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,getPopupContainer:n,myValue:s,selectChange:u,options:r,filterOption:i,loading:m}}}),kr="",Sr="";function Fl(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 Yn=U(G(zl,[["render",Fl],["__scopeId","data-v-dd2bcf63"]])),xt={...K,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null},_t=Z(xt),Qn=["dateChange"],Ol=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:q.RangePicker},props:{..._t},setup(e){const o=J(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([m,d,g,h,p,u])=>{let C=null,b=null;if(g&&(C=pe().subtract(h,p),b=pe()),m&&(C=pe(m)),d&&(b=pe(d)),u){const{type:y,value:x,mode:w}=u;switch(y){case"add":C=C&&C.add(x,w),b=b&&b.add(x,w);break;case"minus":C=C&&C.subtract(x,w),b=b&&b.subtract(x,w)}}a.value=[C,b]},{immediate:!0});const{setGlobalModel:l}=t.inject(te,{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=ne(e)("dateChange",()=>{});return oe(e,{dateChange:i}),{style:o,getPopupContainer:n,locale:rn,dateChange:i,myValue:a}}}),Ar="",Tr="";function Pl(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 Kn=U(G(Ol,[["render",Pl],["__scopeId","data-v-adf450ac"]])),Et={...K,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},Lt=Z(Et),Xn=["click"],Rl=t.defineComponent({name:"EcanButton",components:{AButton:q.Button},props:{...Lt},setup(e){const o=J(e),a=ne(e)("click",()=>{const c=t.unref(r);c&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:c},"*")}),l=t.computed(()=>ie(e.text)),r=t.computed(()=>ie(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}}}),_r="";function Dl(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 eo=U(G(Rl,[["render",Dl]])),It={...K,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}]},Mt=Z(It),to=["checkboxChange"],$l=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:q.CheckboxGroup},props:{...Mt},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=u=>{const C=e.value;let b=[];u.forEach(y=>{y.checked&&b.push(y.value)}),typeof C=="string"&&C!==""?b=b.concat(C.split(",")):Array.isArray(C)&&(b=b.concat(C)),n.value=u,a.value=b};t.watch(()=>[e.data,e.value],([u])=>{l(u)},{immediate:!0,deep:!0});const r=fe(e),{pageMode:s}=t.inject(ee,{pageMode:"normal"}),c=async()=>{var b,y;if(e.dataType!=="request"||t.unref(s)==="design")return;const u=await r(),C=((y=(b=u==null?void 0:u.data)==null?void 0:b.data)==null?void 0:y.rows)||[];l(C)},i=e.id,{getGlobalModel:m,setGlobalModel:d}=t.inject(te,{getGlobalModel:u=>{},setGlobalModel:(u,C)=>{}});d(e.id,{type:e.type,value:a});const h=ne(e)("checkboxChange",()=>{const u=m(i);d(i,{...u,RECORD:a})}),{setRequest:p}=t.inject(ce,{setRequest:({id:u,sortNum:C,requestFn:b})=>{}});return p({id:e.id,requestFn:c,sortNum:e.requestSort}),{myOption:n,style:o,myValue:a,checkboxChange:h}}}),Lr="";function jl(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 no=U(G($l,[["render",jl]])),vt={...K,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:20,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:"当前无说明信息"},Nt=Z(vt),oo=["click","refreshData","resetRecord"],ze=async e=>{var i;const o=await ue.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)};he.use([Te.CanvasRenderer,Ce.PieChart,Q.TitleComponent,Q.ToolboxComponent,Q.TooltipComponent,Q.LegendComponent]);const Vl=t.defineComponent({name:"EcanPie",props:{...Nt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(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 T=e.isUseLabelColors,f=e.colors;M=M.map((k,_)=>({label:T?{color:f[_]}:{},...k}))}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(){ze(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(){q.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:T=>{const{marker:f,seriesName:k,name:_,value:N,percent:A,data:E}=T||{};return ie(e.tooltipFormatter,{marker:f,name:_,value:N,percent:A,a:k,b:_,c:N,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,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:e.labelFontSize,position:e.labelPosition,formatter:Xa(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(te,{getGlobalModel:M=>{},setGlobalModel:(M,T)=>{}}),{pageMode:i}=t.inject(ee,{pageMode:"normal"}),m=(M=[],T)=>{const{dataset:f}=Be(M,T);n.value=f},d=(M=[],T)=>{const f=Be(M,T);n.value=f.dataset};t.watch(()=>e.data,M=>{(e.dataType==="static"||t.unref(i)==="design")&&m(M)},{immediate:!0,deep:!0});const g=t.ref(!1),h=fe(e),p=async()=>{var M,T;if(!(e.dataType!=="request"||t.unref(i)==="design"))try{g.value=!0;const f=await h();m((T=(M=f==null?void 0:f.data)==null?void 0:M.data)==null?void 0:T.rows,e.valueTypeDataFieldNames)}catch(f){console.error(f)}finally{g.value=!1}},C=ne(e)("click",M=>{const T=e.id,f=s(T);c(T,{...f,RECORD:M==null?void 0:M.data})}),b=st(e),y=async()=>{var M,T,f,k,_,N;if(!(e.dataType!=="indicator"||t.unref(i)==="design"))try{g.value=!0;const A=await b();let E=[];if(((f=(T=(M=A==null?void 0:A.data)==null?void 0:M.data)==null?void 0:T.columns)==null?void 0:f.length)>0){const R=A.data.data.columns[0],j=A.data.data.columns[1];E=(N=(_=(k=A==null?void 0:A.data)==null?void 0:k.data)==null?void 0:_.rows)==null?void 0:N.map(v=>({name:v[R],value:v[j]}))}d(E)}catch(A){console.error(A)}finally{g.value=!1}},x=()=>{t.unref(i)!=="design"&&(y(),p())};oe(e,{resetRecord:()=>{const M=e.id,T=s(M);c(M,{...T,RECORD:""})},refreshData:()=>{x()},click:C});const{setRequest:L}=t.inject(ce,{setRequest:({id:M,sortNum:T,requestFn:f})=>{}});return L({id:e.id,requestFn:x,sortNum:e.requestSort}),{option:r,style:o,click:C,loading:g,visible:a,hideModal:l}}}),Mr="";function ql(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 ao=U(G(Vl,[["render",ql]])),Bt={...K,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},zt=Z(Bt),lo=["click","refreshData","resetRecord"];he.use([Te.CanvasRenderer,Ce.LineChart,Q.ToolboxComponent,Q.TitleComponent,Q.LegendComponent]);const Gl=t.defineComponent({name:"EcanLine",props:{...zt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},s=t.computed(()=>{const T=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(){ze(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(){q.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 _=k.length;let N="",A=e.tooltipFormatter;A===""&&(A="{marker} {a} {c}");for(let E=0;E<_;E++){const{marker:R,seriesName:j,name:v,value:F,data:z}=k[E]||{};E===0&&(N+=`${v}<br/>`),N+=ie(A,{marker:R,name:v,value:F,a:j,b:v,c:F,...z},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N}},xAxis:{type:"category",data:t.unref(a),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,formatter(k){return Ae(T,k)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(k){return Ae(f,k)}},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(te,{getGlobalModel:T=>{},setGlobalModel:(T,f)=>{}}),{pageMode:m}=t.inject(ee,{pageMode:"normal"}),d=(T=[],f=!1)=>{let k;if(e.dataFieldConfigType==="key"){const E=f?e.keyTypeDataFieldNames:null;k=Ee(T,E)}else if(e.dataFieldConfigType==="value"){const E=f?e.valueTypeDataFieldNames:null;k=Be(T,E)}a.value=k.dimensions;const _=k.dataset,N=[],A=_.length;for(let E=0;E<A;E++)N.push({type:"line",..._[E],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});n.value=N},g=(T=[],f,k=!1)=>{const N=Ee(T,k?f:null);a.value=N.dimensions;const A=N.dataset,E=[],R=A.length;for(let j=0;j<R;j++)E.push({type:"line",...A[j],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],([T])=>{(e.dataType==="static"||t.unref(m)==="design")&&d(T)},{immediate:!0,deep:!0});const h=t.ref(!1),p=fe(e),u=async()=>{var T,f;if(!(e.dataType!=="request"||t.unref(m)==="design"))try{h.value=!0;const k=await p();d((f=(T=k==null?void 0:k.data)==null?void 0:T.data)==null?void 0:f.rows,!0)}catch(k){console.error(k)}finally{h.value=!1}},b=ne(e)("click",T=>{const f=e.id,k=c(f);i(f,{...k,RECORD:T==null?void 0:T.data})}),y=st(e),x=async()=>{var T,f,k,_,N;if(!(e.dataType!=="indicator"||t.unref(m)==="design"))try{h.value=!0;const A=await y();let E;((k=(f=(T=A==null?void 0:A.data)==null?void 0:T.data)==null?void 0:f.columns)==null?void 0:k.length)>0&&(E={name:A.data.data.columns[0],types:A.data.data.columns.slice(1).map(R=>({label:R,value:R}))}),g((N=(_=A==null?void 0:A.data)==null?void 0:_.data)==null?void 0:N.rows,E,!0)}catch(A){console.error(A)}finally{h.value=!1}},w=()=>{t.unref(m)!=="design"&&(x(),u())};oe(e,{refreshData:()=>{w()},resetRecord:()=>{const T=e.id,f=c(T);i(T,{...f,RECORD:""})},click:b});const{setRequest:M}=t.inject(ce,{setRequest:({id:T,sortNum:f,requestFn:k})=>{}});return M({id:e.id,requestFn:w,sortNum:e.requestSort}),{option:s,style:o,click:b,loading:h,visible:l,hideModal:r}}}),Nr="";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 io=U(G(Gl,[["render",Ul]])),Ft={...K,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{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=Z(Ft),ro=["refreshData","click","resetRecord"];he.use([Te.CanvasRenderer,Ce.BarChart,Q.TitleComponent,Q.LegendComponent,Q.DatasetComponent,Q.ToolboxComponent]);const Wl=t.defineComponent({name:"EcanBar",props:{...Ot},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e,{expose:o}){const n=J(e),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},s=t.computed(()=>{const f=t.unref(a),k=f.length,_=[];for(let N=0;N<k;N++){const A={...f[N],type:"bar",barWidth:e.barWidth};e.isStack&&(A.stack="stack"),A.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},_.push(A)}return _}),c=t.ref([]),i=t.ref(!1),m=t.computed(()=>{const f=e.yAxisLabelFormatter,k=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!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(){ze(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(){q.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:_=>{const N=_.length;let A="",E=e.tooltipFormatter;E===""&&(E="{marker} {a} {c}");for(let R=0;R<N;R++){const{marker:j,seriesName:v,name:F,value:z,data:D}=_[R]||{};R===0&&(A+=`${F}<br/>`),A+=ie(E,{marker:j,name:F,value:z,a:v,b:F,c:z,...D},{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,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(_){return Ae(k,_)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(c):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(_){return Ae(f,_)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(s)}}),{pageMode:d}=t.inject(ee,{pageMode:"normal"}),g=(f=[],k=!1)=>{let _={};if(e.dataFieldConfigType==="key"){const N=k?e.keyTypeDataFieldNames:null;_=Ee(f,N)}else if(e.dataFieldConfigType==="value"){const N=k?e.valueTypeDataFieldNames:null;_=Be(f,N)}a.value=_.dataset,c.value=_.dimensions},h=(f=[],k,_=!1)=>{const A=Ee(f,_?k:null);a.value=A.dataset,c.value=A.dimensions};t.watch(()=>e.data,f=>{(e.dataType==="static"||t.unref(d)==="design")&&g(f)},{immediate:!0,deep:!0});const p=fe(e),u=async()=>{var f,k;try{i.value=!0;const _=await p();g((k=(f=_==null?void 0:_.data)==null?void 0:f.data)==null?void 0:k.rows,!0)}catch(_){console.error(_)}finally{i.value=!1}},C=zn(e),b=async()=>{var f;try{i.value=!0;const k=await C(),{columns:_=[],rows:N=[]}=((f=k==null?void 0:k.data)==null?void 0:f.data)??{};let A;_.length>0&&(A={name:_[0],types:_.slice(1).map(E=>({label:E,value:E}))}),h(N,A,!0)}catch(k){console.error(k)}finally{i.value=!1}},y=()=>{if(t.unref(d)!=="design")switch(e.dataType){case"indicator":b();break;case"request":u();break}};o({refreshData:y});const x=ne(e),{getGlobalModel:w,setGlobalModel:P}=t.inject(te,{getGlobalModel:f=>{},setGlobalModel:(f,k)=>{}}),L=x("click",f=>{const k=e.id,_=w(k);P(k,{..._,RECORD:f.data})}),{setRequest:M}=t.inject(ce,{setRequest:({id:f,sortNum:k,requestFn:_})=>{}});return M({id:e.id,requestFn:y,sortNum:e.requestSort}),oe(e,{refreshData:y,click:L,resetRecord:()=>{const f=e.id,k=w(f);P(f,{...k,RECORD:""})}}),{option:m,style:n,refreshData:y,click:L,loading:i,visible:l,hideModal:r}}}),zr="";function Hl(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 so=U(G(Wl,[["render",Hl]])),Pt={...K,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",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=Z(Pt),co=["click","refreshData"];he.use([Te.CanvasRenderer,Ce.ScatterChart,Q.ToolboxComponent,Q.TitleComponent,Q.TooltipComponent,Q.LegendComponent]);const Zl=t.defineComponent({name:"EcanScatter",props:{...Rt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},r=t.computed(()=>{const y=e.xAxisLabelFormatter,x=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(){ze(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(){q.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(w){return Ae(y,w)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(w){return Ae(x,w)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:function(w){var k;const{marker:P,seriesName:L}=w,M=((k=w==null?void 0:w.data)==null?void 0:k.record)??{},{name:T,value:f}=M;return ie(e.tooltipFormatter,{marker:P,seriesName:L,a:L,b:T,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(te,{getGlobalModel:y=>{},setGlobalModel:(y,x)=>{}}),{pageMode:i}=t.inject(ee,{pageMode:"normal"}),m=(y=[],x)=>{const{name:w="name",value:P="value"}=x||{};n.value=y.map(L=>({value:[L[w],L[P]],record:L}))};t.watch(()=>e.data,y=>{(e.dataType==="static"||t.unref(i)==="design")&&m(y)},{immediate:!0,deep:!0});const d=t.ref(!1),g=fe(e),h=async()=>{var y,x;if(!(e.dataType!=="request"||t.unref(i)==="design")){d.value=!0;try{const w=await g();m((x=(y=w==null?void 0:w.data)==null?void 0:y.data)==null?void 0:x.rows,e.dataFieldNames)}catch(w){console.error(w)}finally{d.value=!1}}},u=ne(e)("click",y=>{const x=e.id,w=s(x);c(x,{...w,RECORD:y==null?void 0:y.data})});oe(e,{refreshData:()=>{h()},click:u});const{setRequest:b}=t.inject(ce,{setRequest:({id:y,sortNum:x,requestFn:w})=>{}});return b({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:r,style:o,click:u,loading:d,visible:a,hideModal:l}}}),Or="";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 mo=U(G(Zl,[["render",Jl]])),Dt={...K,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},$t=Z(Dt),Yl=t.defineComponent({name:"EcanCustomGraph",props:{...$t},components:{Echarts:Se},setup(e){const o=J(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:Oo}}});function Ql(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 fo=U(G(Yl,[["render",Ql]])),jt={...K,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,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=Z(jt),uo=["refreshData","click","resetRecord"];he.use([Te.CanvasRenderer,Ce.BarChart,Ce.LineChart,Q.TitleComponent,Q.LegendComponent,Q.DatasetComponent,Q.ToolboxComponent]);const Kl=t.defineComponent({name:"EcanComboGraph",props:{...Vt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(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(){ze(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(){q.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 k=f.length;let _="",N=e.tooltipFormatter;N===""&&(N="{marker} {a} {c}");const A=e.seriesTypes;for(let E=0;E<k;E++){const R=A[E],{tooltipFormatter:j}=R||{},{marker:v,seriesName:F,name:z,value:D,data:W}=f[E]||{};E===0&&(_+=`${z}<br/>`),_+=ie(j||N,{marker:v,name:z,value:D,seriesName:F,a:F,b:z,c:D,...W},{useNewline:!0,useSpace:!0}),_+="<br/>"}return _},textStyle:{color:e.tooltipTextStyleColor}},xAxis:{minInterval:e.xAxisMinInterval,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(ee,{pageMode:"normal"}),i=(f=[],k=!1)=>{let _;if(e.dataFieldConfigType==="key"){const j=k?e.keyTypeDataFieldNames:null;_=Ee(f,j)}else if(e.dataFieldConfigType==="value"){const j=k?e.valueTypeDataFieldNames:null;_=Be(f,j)}a.value=_.dimensions;const N=_.dataset,A=[],E=N.length,R=e.seriesTypes;for(let j=0;j<E;j++){const v=R[j],{type:F,axisIndex:z}=v||{};let D={type:F,yAxisIndex:z,...N[j]};F==="line"&&(D={...D,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),F==="bar"&&(D={...D,barWidth:e.barWidth}),A.push(D)}n.value=A},m=(f=[],k,_=!1)=>{const A=Ee(f,_?k:null);a.value=A.dimensions;const E=A.dataset,R=[],j=E.length,v=e.seriesTypes;for(let F=0;F<j;F++){const z=v[F];R.push({type:z==null?void 0:z.type,yAxisIndex:z==null?void 0:z.axisIndex,...E[F]})}n.value=R};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(k=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(_){return Ae(k.axisLabelFormatter,_)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),g=t.ref(!1),h=fe(e),p=async()=>{var f,k;if(!(e.dataType!=="request"||t.unref(c)==="design"))try{g.value=!0;const _=await h();i((k=(f=_==null?void 0:_.data)==null?void 0:f.data)==null?void 0:k.rows,!0)}catch(_){console.error(_)}finally{g.value=!1}},u=st(e),C=async()=>{var f,k,_,N,A;if(!(e.dataType!=="indicator"||t.unref(c)==="design"))try{g.value=!0;const E=await u();let R;((_=(k=(f=E==null?void 0:E.data)==null?void 0:f.data)==null?void 0:k.columns)==null?void 0:_.length)>0&&(R={name:E.data.data.columns[0],types:E.data.data.columns.slice(1).map(j=>({label:j,value:j}))}),m((A=(N=E==null?void 0:E.data)==null?void 0:N.data)==null?void 0:A.rows,R,!0)}catch(E){console.error(E)}finally{g.value=!1}},b=()=>{t.unref(c)!=="design"&&(C(),p())},y=()=>{b()},x=ne(e),{getGlobalModel:w,setGlobalModel:P}=t.inject(te,{getGlobalModel:f=>{},setGlobalModel:(f,k)=>{}}),L=x("click",f=>{const k=e.id,_=w(k);P(k,{..._,RECORD:f==null?void 0:f.data})}),{setRequest:M}=t.inject(ce,{setRequest:({id:f,sortNum:k,requestFn:_})=>{}});return M({id:e.id,requestFn:b,sortNum:e.requestSort}),oe(e,{resetRecord:()=>{const f=e.id,k=w(f);P(f,{...k,RECORD:""})},refreshData:y,click:L}),{style:o,option:s,click:L,loading:g,visible:l,hideModal:r}}}),Dr="";function Xl(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 go=U(G(Kl,[["render",Xl]])),qt={...K,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},Gt=Z(qt),ho=["click"],ei=t.defineComponent({name:"EcanBorder",props:{...Gt},setup(e){const o=J(e,["background"]),{theme:n}=t.inject(ee,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),r=ne(e)("click",()=>{}),s=t.ref([]);t.watch(()=>e.data,i=>{s.value=i},{immediate:!0,deep:!0}),oe(e,{click:r});const{setGlobalModel:c}=t.inject(te,{setGlobalModel:(i,m)=>{}});return c(e.id,{type:e.type,value:s}),{style:o,click:r,borderStyle:a,theme:n}}}),ti="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",ni="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",jr="",ge=e=>(t.pushScopeId("data-v-f3fc1305"),e=e(),t.popScopeId(),e),oi=ge(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ai=ge(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),li=ge(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ii=ge(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),ri={class:"title-item-wrapper"},si={class:"title-item"},ci=ge(()=>t.createElementVNode("img",{class:"title-decoration-left",src:ti},null,-1)),di={class:"title"},mi=ge(()=>t.createElementVNode("img",{class:"title-decoration-right",src:ni},null,-1)),fi=ge(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ui=ge(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),gi=ge(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),hi=ge(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),yi={key:2,class:"left-title"},bi={class:"title"};function pi(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},[oi,ai,li,ii],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",ri,[t.createElementVNode("div",si,[ci,t.createElementVNode("div",di,t.toDisplayString(e.title),1),mi])]),fi,ui,gi,hi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",yi,[t.createElementVNode("div",bi,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const yo=U(G(ei,[["render",pi],["__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=Z(Ut),bo=["showModal"],Ci=t.defineComponent({name:"EcanModal",components:{AModal:q.Modal},props:{...Wt},setup(e){const o=()=>document.getElementById("ProviderConfig")||document.body,n=t.computed(()=>{const z=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[z]}}),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),g=t.ref({}),h=J(e),p=t.ref({}),u=t.ref(!1),C=t.ref();let b;const y=()=>{m.value=parseFloat(a)/parseFloat(r);const z=parseFloat(l)/parseFloat(s),D=document.body.offsetWidth,W=document.body.offsetHeight;i.value=D*t.unref(m),d.value=W*z,c.value=`${t.unref(m)*100}%`,g.value={width:`${t.unref(i)}px`,height:`${t.unref(d)}px`},p.value={...t.unref(h),backgroundImage:we(e.backgroundImage,!0),transform:`scale(${t.unref(i)/parseFloat(a)},${t.unref(d)/parseFloat(l)})`}},x=ye.debounce(()=>{y()},100),w=()=>{const z=window.MutationObserver;b=new z(x),b.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},P=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)},L=t.ref(!1),{touchRequest:M}=t.inject(ce,{touchRequest:()=>{}}),T=()=>{L.value=!0},f=()=>{L.value=!1},k=()=>{f()},_=()=>{f()},{setModalModel:N,pushUseModalIds:A,popUseModalIds:E}=t.inject(In,{pushUseModalIds:z=>{},popUseModalIds:()=>{},setModalModel:(z,D)=>{}}),R=()=>{const z=e.id;let D=[];const W=e.componentList;Array.isArray(W)&&(D=W.map(X=>X.id),N(z,[...new Set(D)]))};t.watch(()=>L.value,async z=>{z?(u.value=!1,A(e.id),R(),await t.nextTick(()=>{y(),window.addEventListener("resize",x),w(),u.value=!0}),M()):(E(),window.removeEventListener("resize",x),P())});const j=t.computed(()=>t.unref(m)>=1),v=t.computed(()=>e.fullModal),F=t.computed(()=>{let z="ecan-modal";return t.unref(j)&&(z+=" ecan-full-width-modal"),t.unref(v)&&(z+=" ecan-full-modal"),z});return oe(e,{showModal:T}),{modalRef:C,containStyle:g,contentStyle:p,getContainer:o,modalStyle:n,modalWith:c,isFullModal:v,style:h,visible:L,showModal:T,onOk:k,onCancel:_,isFullWidth:j,wrapClassName:F,ready:u}}}),qr="",Gr="";function ki(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 po=U(G(Ci,[["render",ki],["__scopeId","data-v-0447cd77"]])),Ht={...K,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},Zt=Z(Ht),Co=["tabChange"],Si=t.defineComponent({name:"EcanTabs",props:{...Zt},setup(e){var d;const o=J(e),n=t.ref(0);t.watch(()=>e.activeKey,g=>{n.value=g},{immediate:!0});const a=t.ref([]);t.watch(()=>e.data,g=>{a.value=g},{immediate:!0,deep:!0});const l=g=>n.value===g,r=t.ref(e.value||t.unref(a)[0]&&((d=t.unref(a)[0])==null?void 0:d.value)||""),s=ne(e),{setGlobalModel:c}=t.inject(te,{setGlobalModel:(g,h)=>{}});c(e.id,{value:r,activeKey:n});const{emitRefreshPage:i}=t.inject(Ne,{emitRefreshPage:()=>{}}),m=s("tabChange",(g,h)=>{h!==t.unref(n)&&(r.value=(g==null?void 0:g.value)||"",n.value=h,i())});return oe(e,{tabChange:m}),{style:o,activeKey:n,isActive:l,tabChange:m,myData:a,useImagePath:we}}}),Wr="",wi=["onClick"];function Ai(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,wi))),128))],4)],4)}const ko=U(G(Si,[["render",Ai],["__scopeId","data-v-3db5a989"]])),Jt={...K,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Yt=Z(Jt),Ti=t.defineComponent({name:"EcanImage",props:{...Yt},setup(e){const o=J(e),n=t.computed(()=>we(e.imgUrl)),{pageMode:a}=t.inject(ee,{pageMode:"normal"});return{style:o,myImgUrl:n,onClick:()=>{if(!e.linkPage&&!e.href)return;const r=e.linkPage||"",s=Bn(t.unref(a),r),c=e.href;let i=c||s;i=ie(i);const m=e.target;m==null||m===""||(m!=="event"?window.open(i,"_"+m):window.parent.postMessage({type:"openPage",url:c},"*"))}}}}),Zr="",xi=["src"];function _i(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,xi)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const So=U(G(Ti,[["render",_i],["__scopeId","data-v-9706b851"]])),Qt={...K,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Kt=Z(Qt),Ei=t.defineComponent({name:"EcanIframe",props:{...Kt},setup(e){const o=J(e),{contextRequestUrl:n}=t.inject(ee,{contextRequestUrl:""}),a=t.computed(()=>{let l=ie(e.link);if(e.linkType==="erd"&&l!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",l=`${Ka||r}?_t=0&uid=${l}`}return l});return{style:o,myLink:a}}}),Yr="",Li=["src"];function Ii(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,Li)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const wo=U(G(Ei,[["render",Ii],["__scopeId","data-v-b0be60e8"]])),Xt={...K,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=Z(Xt),Ao=["click","refreshData","resetRecord"],Mi=t.defineComponent({name:"EcanTable",components:{Skeleton:je,AInput:q.Input,ACheckboxGroup:q.CheckboxGroup,ATable:q.Table,ATableSummary:q.TableSummary,ATableSummaryRow:q.TableSummaryRow,ATableSummaryCell:q.TableSummaryCell},props:{...en},setup(e,{expose:o}){const n=J(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),g=t.ref(1),h=t.computed(()=>e.paginationPageSize),p=t.reactive([]),u=(I=[])=>{if(Array.isArray(I)&&I.length>0){const B=I.length,$=e.columnsFixedNum;for(let V=0;V<B;V++){const O=I[V];V<$?O.fixed="left":O.fixed=!1;const{cellAlign:H="center",cellColor:Y,dataIndex:ae,title:re,tableFilter:le,headerCellAlign:Fe,headerCellColor:Ue}=O;le&&(p.push(ae),O.filterOptionsInputValue="",O.filterCheckboxGroupValue=[],O.customFilterDropdown=!0,O.onFilter=(Oe,on)=>on[ae].toString().toLowerCase().includes(Oe.toLowerCase())),O.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Fe||"center",color:Ue,borderBottomColor:e.borderColor}}),O.customCell=(Oe,on)=>({style:{textAlign:H,color:Y,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(D)===on&&e.clickHighlight},onClick:A("click",()=>{const vo=e.id,qi=R(vo);Oe={dataIndex:ae,title:re,...Oe},j(vo,{...qi,RECORD:Oe})})}),Array.isArray(O.children)&&u(O.children)}}},C=(I=[])=>(e.isUseSeq&&I.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&I.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),u(I),I);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{s.value=C(ye.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([I,B])=>{B==="static"&&(c.value=I)},{immediate:!0});const b=t.ref({}),y=I=>{if(Array.isArray(I)){const B=I.length,$=p,V=$.length,O={};for(let Y=0;Y<B;Y++){const ae=I[Y];for(let re=0;re<V;re++){const le=$[re];if(O[le])O[le].add(ae[le]);else{const Fe=new Set;Fe.add(ae[le]),O[le]=Fe}}}const H={};for(const Y in O)if(Object.prototype.hasOwnProperty.call(O,Y)){const ae=O[Y],re=Array.from(ae);H[Y]=re.map(le=>({label:le,value:le}))}b.value=H}};t.watch(()=>[e.isReverse,s.value,c.value],()=>{const I=t.unref(s),B=t.unref(c);if(y(B),e.isReverse){const{columns:$,dataSource:V}=x(ye.cloneDeep(I),ye.cloneDeep(B));i.value=$,m.value=V}else i.value=I,m.value=B});const x=(I,B)=>{const $=I[0],V=[{title:$.title,dataIndex:"col0",key:"col0",align:"center"}];for(let H=0;H<B.length;H++){const Y=B[H],ae="col"+(H+1);V.push({title:Y[$.dataIndex],dataIndex:ae,key:ae,align:"center"})}const O=[];for(let H=1;H<I.length;H++){const Y=I[H],ae={col0:Y.title};for(let re=0;re<B.length;re++){const le=B[re];ae[`col${re+1}`]=le[Y.dataIndex]}O.push(ae)}return{columns:V,dataSource:O}},w=t.ref(""),P=fe(e),L=t.ref(!1),M=async(I=!0)=>{var B;try{I&&(L.value=!0);let $={};t.unref(w)&&($.orderCondition=t.unref(w)),e.paginationShow&&($={pageNum:t.unref(g),pageSize:t.unref(h),layer:"1",...$});const V=await P($),{rows:O=[],total:H=0}=((B=V==null?void 0:V.data)==null?void 0:B.data)||{};d.value=H,Array.isArray(O)&&(c.value=O)}catch($){console.error($)}finally{L.value=!1}},T=({current:I},B,$)=>{if(g.value=I,$&&Object.keys($).length>0){const{field:V,order:O}=$,Y={ascend:"asc",descend:"desc"}[O];V!=null&&Y!=null&&(w.value=V+" "+Y,g.value=1)}X(!1)},f=t.computed(()=>{const I=e.simple,B=[e.paginationPosition];return e.paginationShow&&{simple:I,position:B,total:t.unref(d),current:t.unref(g),pageSize:t.unref(h),showSizeChanger:!1}}),k=I=>+I==1?"是":+I==0?"否":I,_=(I,B)=>B==null||B===""?I:{money:rt,percentage:qe,contrast:qe,boolean:k}[B](I)||"",N=(I,B)=>{const $=parseFloat(I+"");if(B!=="contrast")return"";switch(!0){case $>=0:return"goUp";case $<0:return"goDown"}},A=ne(e),{pageMode:E}=t.inject(ee,{pageMode:"normal"}),{getGlobalModel:R,setGlobalModel:j}=t.inject(te,{getGlobalModel:I=>{},setGlobalModel:(I,B)=>{}}),v=(I=[],B=[])=>{const $=I.map(V=>({title:V,dataIndex:V,key:V}));s.value=C($),c.value=B},F=zn(e),z=async()=>{var I,B,$,V;try{L.value=!0;const O=await F();v((B=(I=O==null?void 0:O.data)==null?void 0:I.data)==null?void 0:B.columns,(V=($=O==null?void 0:O.data)==null?void 0:$.data)==null?void 0:V.rows)}catch(O){console.error(O)}finally{L.value=!1}},D=t.ref(-1),W=(I,B)=>({onClick:A("rowClick",()=>{const $=e.id,V=R($);j($,{...V,RECORD:I}),D.value=B})}),X=(I=!0)=>{if(t.unref(E)!=="design")switch(e.dataType){case"request":M(I);break;case"indicator":z();break}};oe(e,{resetRecord:()=>{const I=e.id,B=R(I);j(I,{...B,RECORD:""})},refreshData:X});const ji=t.computed(()=>{const I=t.unref(i),B=[];let $=0;for(let O=0;O<I.length;O++){const H=I[O],{isCalcTotal:Y}=H;e.isUseSeq&&O===0?B.push({...H,total:"小计"}):Y?(B.push({...H,index:O,total:0}),$++):B.push({...H})}if($===0)return[];let V=t.unref(m);if(e.paginationShow){const O=(t.unref(g)-1)*t.unref(h),H=O+t.unref(h);V=V.slice(O,H)}for(let O=0;O<B.length;O++){const H=B[O];let Y=0;const{isCalcTotal:ae,dataIndex:re}=H;if(ae===!0){for(let le=0;le<V.length;le++){const Ue=+V[le][re];isNaN(Ue)||(Y=new zo.Big(Y).add(Ue).toNumber())}H.total=Y}}return B}),{setRequest:Vi}=t.inject(ce,{setRequest:({id:I,sortNum:B,requestFn:$})=>{}});return Vi({id:e.id,requestFn:X,sortNum:e.requestSort}),o({refreshData:X}),{x:l,y:r,style:n,customRow:W,pagination:f,formatFn:_,contrastClass:N,tableChange:T,summaryList:ji,loading:L,onTouchHrefEvent:(I,B="")=>{I==="event"&&window.parent.postMessage({type:"openPage",url:B},"*")},handleHref:(I="",B)=>ie(I,B),handleHrefTarget:I=>{if(I!=="event")return{self:"_self",blank:"_blank"}[I]},useRowIndex:D,tableColumns:i,tableDataSource:m,useFilterOptions:I=>{const B=I.dataIndex;if(typeof B=="string"){let $=t.unref(b)[B];const V=t.unref(I.filterOptionsInputValue).trim();return Array.isArray($)?($=$.filter(O=>typeof O.label=="string"?O.label.toLowerCase().includes(V.toLowerCase()):!0),$):[]}return[]},useSetSelectedKeys:(I,B)=>{I(B.filterCheckboxGroupValue)},onResetFilter:(I,B)=>{I({confirm:!0}),B.filterOptionsInputValue="",B.filterCheckboxGroupValue=[]},onSearchFilterOptions:()=>{}}}}),Kr="",Xr="",vi=t.createTextVNode(" 搜索 "),Ni=t.createTextVNode(" 重置 "),Bi={key:0},zi={key:1,class:"action-list"},Fi=["href","target","onClick"];function Oi(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"),g=t.resolveComponent("a-table-summary"),h=t.resolveComponent("a-table"),p=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(p,{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:u,selectedKeys:C,setSelectedKeys:b,confirm:y,clearFilters:x})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(s,{value:u.filterOptionsInputValue,"onUpdate:value":w=>u.filterOptionsInputValue=w,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(c,{value:u.filterCheckboxGroupValue,"onUpdate:value":w=>u.filterCheckboxGroupValue=w,class:"filter-checkbox",options:e.useFilterOptions(u),onChange:w=>e.useSetSelectedKeys(b,u)},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(()=>[vi]),_:2},1032,["onClick"]),t.createVNode(i,{size:"small",style:{width:"90px"},onClick:w=>e.onResetFilter(x,u)},{default:t.withCtx(()=>[Ni]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:u,index:C,text:b,record:y})=>[u.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",Bi,t.toDisplayString(C+1),1)):t.createCommentVNode("",!0),u.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",zi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(x,w)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:w},[t.createElementVNode("a",{href:e.handleHref(x.href,y),target:e.handleHrefTarget(x.target),style:t.normalizeStyle({color:x.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:P=>e.onTouchHrefEvent(x.target,e.handleHref(x.href,y))},t.toDisplayString(x.title),13,Fi)]))),128))])):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass([e.contrastClass(b,u.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(u.format!=null?e.formatFn(b,u.format):b),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(g,{key:0},{default:t.withCtx(()=>[t.createVNode(d,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(u,C)=>(t.openBlock(),t.createBlock(m,{key:C,index:C,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:u.cellAlign||"center",color:u.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(u.total,u.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString((u.format!=null||u.format!=="")&&e.formatFn(u.total,u.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 To=U(G(Mi,[["render",Oi],["__scopeId","data-v-c77bd76b"]])),tn={...K,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},nn=Z(tn);he.use([Te.CanvasRenderer,Ce.MapChart,Ce.ScatterChart,Q.VisualMapComponent,Q.TooltipComponent,Q.GraphicComponent]);const Pi=t.defineComponent({name:"EcanMap",components:{Echarts:Se},props:{...nn},setup(e){const o=J(e,["backgroundImage"]),n=t.ref(),a=t.computed(()=>we(e.geoBackgroundImage)),l=t.computed(()=>we(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://"+we(d):"circle"}),c=t.computed(()=>{const d=e.geoCenter;let g;return typeof d=="string"&&d!==""&&(g=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:g,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 g;const d=e.mapJson;if(d!=null&&d.path){const h=await ue(((g=window==null?void 0:window.config)==null?void 0:g.uploadPath)+d.path);he.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}}}),ts="",Ri=["src"];function Di(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,Ri),[[t.vShow,!1]])],4)}const xo=U(G(Pi,[["render",Di],["__scopeId","data-v-1eea2b3c"]])),_o=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:so,EcanBorder:yo,EcanButton:eo,EcanCheckbox:no,EcanComboGraph:go,EcanCustomGraph:fo,EcanDatePicker:Zn,EcanIframe:wo,EcanImage:So,EcanInput:Wn,EcanLine:io,EcanList:Vn,EcanMap:xo,EcanModal:po,EcanPageConfig:Fn,EcanPie:ao,EcanProportion:Gn,EcanProviderConfig:On,EcanRangePicker:Kn,EcanScatter:mo,EcanScrollText:Dn,EcanSelect:Yn,EcanTable:To,EcanTabs:ko,EcanText:Rn,EcanTimeDisplay:$n,barComponentProps:Ot,barEvents:ro,barProps:Ft,borderComponentProps:Gt,borderEvents:ho,borderProps:qt,buttonComponentProps:Lt,buttonEvents:Xn,buttonProps:Et,checkboxComponentProps:Mt,checkboxEvents:to,checkboxProps:It,comboGraphComponentProps:Vt,comboGraphEvents:uo,comboGraphProps:jt,customGraphComponentProps:$t,customGraphProps:Dt,datePickerComponentProps:wt,datePickerEvents:Hn,datePickerProps:St,iframeComponentProps:Kt,iframeProps:Qt,imageComponentProps:Yt,imageProps:Jt,inputComponentProps:kt,inputEvents:Un,inputProps:Ct,lineComponentProps:zt,lineEvents:lo,lineProps:Bt,listComponentProps:yt,listEvents:jn,listProps:ht,mapComponentProps:nn,mapProps:tn,modalComponentProps:Wt,modalEvents:bo,modalProps:Ut,pageConfig:at,pageConfigComponentProps:lt,pieComponentProps:Nt,pieEvents:oo,pieProps:vt,proportionComponentProps:pt,proportionEvents:qn,proportionProps:bt,providerConfig:ct,providerConfigComponentProps:dt,rangePickerComponentProps:_t,rangePickerEvents:Qn,rangePickerProps:xt,scatterComponentProps:Rt,scatterEvents:co,scatterProps:Pt,selectComponentProps:Tt,selectEvents:Jn,selectProps:At,tableComponentProps:en,tableEvents:Ao,tableProps:Xt,tabsComponentProps:Zt,tabsEvents:Co,tabsProps:Ht,textComponentProps:ft,textEvents:Pn,textProps:mt,timeDisplayComponentProps:gt,timeDisplayProps:ut},Symbol.toStringTag,{value:"Module"})),$i={install:e=>{Object.keys(_o).forEach(o=>{const n=_o[o];n.install&&e.use(n)})}};S.EcanBar=so,S.EcanBorder=yo,S.EcanButton=eo,S.EcanCheckbox=no,S.EcanComboGraph=go,S.EcanCustomGraph=fo,S.EcanDatePicker=Zn,S.EcanIframe=wo,S.EcanImage=So,S.EcanInput=Wn,S.EcanLine=io,S.EcanList=Vn,S.EcanMap=xo,S.EcanModal=po,S.EcanPageConfig=Fn,S.EcanPie=ao,S.EcanProportion=Gn,S.EcanProviderConfig=On,S.EcanRangePicker=Kn,S.EcanScatter=mo,S.EcanScrollText=Dn,S.EcanSelect=Yn,S.EcanTable=To,S.EcanTabs=ko,S.EcanText=Rn,S.EcanTimeDisplay=$n,S.barComponentProps=Ot,S.barEvents=ro,S.barProps=Ft,S.borderComponentProps=Gt,S.borderEvents=ho,S.borderProps=qt,S.buttonComponentProps=Lt,S.buttonEvents=Xn,S.buttonProps=Et,S.checkboxComponentProps=Mt,S.checkboxEvents=to,S.checkboxProps=It,S.comboGraphComponentProps=Vt,S.comboGraphEvents=uo,S.comboGraphProps=jt,S.customGraphComponentProps=$t,S.customGraphProps=Dt,S.datePickerComponentProps=wt,S.datePickerEvents=Hn,S.datePickerProps=St,S.default=$i,S.iframeComponentProps=Kt,S.iframeProps=Qt,S.imageComponentProps=Yt,S.imageProps=Jt,S.inputComponentProps=kt,S.inputEvents=Un,S.inputProps=Ct,S.lineComponentProps=zt,S.lineEvents=lo,S.lineProps=Bt,S.listComponentProps=yt,S.listEvents=jn,S.listProps=ht,S.mapComponentProps=nn,S.mapProps=tn,S.modalComponentProps=Wt,S.modalEvents=bo,S.modalProps=Ut,S.pageConfig=at,S.pageConfigComponentProps=lt,S.pieComponentProps=Nt,S.pieEvents=oo,S.pieProps=vt,S.proportionComponentProps=pt,S.proportionEvents=qn,S.proportionProps=bt,S.providerConfig=ct,S.providerConfigComponentProps=dt,S.rangePickerComponentProps=_t,S.rangePickerEvents=Qn,S.rangePickerProps=xt,S.scatterComponentProps=Rt,S.scatterEvents=co,S.scatterProps=Pt,S.selectComponentProps=Tt,S.selectEvents=Jn,S.selectProps=At,S.tableComponentProps=en,S.tableEvents=Ao,S.tableProps=Xt,S.tabsComponentProps=Zt,S.tabsEvents=Co,S.tabsProps=Ht,S.textComponentProps=ft,S.textEvents=Pn,S.textProps=mt,S.timeDisplayComponentProps=gt,S.timeDisplayProps=ut,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
56
|
+
`,wn=!1,ka=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ca;t.nextTick(function(){wn||(typeof window<"u"&&window.document&&window.document.documentElement&&ha(o,{prepend:!0}),wn=!0)})},Sa=["icon","primaryColor","secondaryColor"];function wa(e,o){if(e==null)return{};var n=Aa(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 Aa(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 $e(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){Ta(e,l,n[l])})}return e}function Ta(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Me={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xa(e){var o=e.primaryColor,n=e.secondaryColor;Me.primaryColor=o,Me.secondaryColor=n||kn(o),Me.calculated=!!n}function _a(){return $e({},Me)}var xe=function(o,n){var a=$e({},o,n.attrs),l=a.icon,r=a.primaryColor,c=a.secondaryColor,s=wa(a,Sa),i=Me;if(r&&(i={primaryColor:r,secondaryColor:c||kn(r)}),ka(),pa(Cn(l),"icon should be icon definiton, but got ".concat(l)),!Cn(l))return null;var m=l;return m&&typeof m.icon=="function"&&(m=$e({},m,{icon:m.icon(i.primaryColor,i.secondaryColor)})),et(m.icon,"svg-".concat(m.name),$e({},s,{"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};xe.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},xe.inheritAttrs=!1,xe.displayName="IconBase",xe.getTwoToneColors=_a,xe.setTwoToneColors=xa;const tt=xe;function Ea(e,o){return va(e)||Ma(e,o)||Ia(e,o)||La()}function La(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ia(e,o){if(e){if(typeof e=="string")return An(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 An(e,o)}}function An(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 Ma(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,c,s;try{for(n=n.call(e);!(l=(c=n.next()).done)&&(a.push(c.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,s=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw s}}return a}}function va(e){if(Array.isArray(e))return e}function Tn(e){var o=Sn(e),n=Ea(o,2),a=n[0],l=n[1];return tt.setTwoToneColors({primaryColor:a,secondaryColor:l})}function Na(){var e=tt.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Ba=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function za(e,o){return Ra(e)||Pa(e,o)||Oa(e,o)||Fa()}function Fa(){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 Oa(e,o){if(e){if(typeof e=="string")return xn(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 xn(e,o)}}function xn(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 Pa(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,c,s;try{for(n=n.call(e);!(l=(c=n.next()).done)&&(a.push(c.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,s=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw s}}return a}}function Ra(e){if(Array.isArray(e))return e}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){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 Da(e,o){if(e==null)return{};var n=$a(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 $a(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}Tn("#1890ff");var _e=function(o,n){var a,l=_n({},o,n.attrs),r=l.class,c=l.icon,s=l.spin,i=l.rotate,m=l.tabindex,d=l.twoToneColor,g=l.onClick,h=Da(l,Ba),p=(a={anticon:!0},nt(a,"anticon-".concat(c.name),Boolean(c.name)),nt(a,r,r),a),u=s===""||s||c.name==="loading"?"anticon-spin":"",C=m;C===void 0&&g&&(C=-1,h.tabindex=C);var b=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=Sn(d),x=za(y,2),_=x[0],P=x[1];return t.createVNode("span",_n({role:"img","aria-label":c.name},h,{onClick:g,class:p}),[t.createVNode(tt,{class:u,icon:c,primaryColor:_,secondaryColor:P,style:b},null)])};_e.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},_e.displayName="AntdIcon",_e.inheritAttrs=!1,_e.getTwoToneColor=Na,_e.setTwoToneColor=Tn;const ja=_e;var Va={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 qa=Va;function En(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){Ga(e,l,n[l])})}return e}function Ga(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=En({},o,n.attrs);return t.createVNode(ja,En({},a,{icon:qa}),null)};ot.displayName="LoadingOutlined",ot.inheritAttrs=!1;const Ua=ot,Wa=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:q.Spin},setup(){return{indicator:t.h(Ua,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),tr="",G=(e,o)=>{const n=e.__vccOpts||e;for(const[a,l]of o)n[a]=l;return n},Ha={class:"spin-wrapper"};function Za(e,o,n,a,l,r){const c=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",Ha,[e.spinning?(t.openBlock(),t.createBlock(c,{key:0,class:"spin",spinning:e.spinning,indicator:e.indicator,tip:"加载中..."},null,8,["spinning","indicator"])):t.renderSlot(e.$slots,"default",{key:1})])}const ve=G(Wa,[["render",Za]]),Ja=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:q.Skeleton}});function Ya(e,o,n,a,l,r){const c=t.resolveComponent("a-skeleton");return t.openBlock(),t.createBlock(c,{active:"",loading:e.loading},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["loading"])}const je=G(Ja,[["render",Ya]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const U=(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},K={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},Z=e=>ye.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=Z(at),Qa=["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"],J=(e,o=[])=>{const n=ye.without(Qa,...o);return t.computed(()=>ye.pick(e,n))},it="EVENT_BUS",ee="GLOBAL_CONFIG",te="GLOBAL_MODEL",ce="REQUEST_MODEL",Ln="GLOBAL_TOKEN",Ne="REFRESH_PAGE",In="MODAL_MODEL",Ve=(Eo=window==null?void 0:window.config)==null?void 0:Eo.indicatorURL;(Lo=window==null?void 0:window.config)!=null&&Lo.uploadPath;const Mn=((Io=window==null?void 0:window.config)==null?void 0:Io.routerBaseURL)||"./",Ka=((Mo=window==null?void 0:window.config)==null?void 0:Mo.erdURL)||"",oe=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(it,{onEvent:(l,r)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},ne=e=>{const o=e.events,n=e.id,a=t.inject(it,{emitEvent:(r,c)=>{}}),{touchEventId:l}=t.inject(ee,{touchEventId:t.ref("")});return(r,c=()=>{})=>function(){c.call(this,...arguments);const{emitEvent:s}=a;o.forEach(i=>{if(r===i.on)try{l.value=n,s(i.target,i.emit)}catch(m){console.error(m)}})}},Be=(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,c=new Map,s=e.length;for(let d=0;d<s;d++){const g=e[d],h=g[n]||"",p=g[a]||"",u=g[l]||"";if(r.add(h),c.has(u)){const C=c.get(u);C.push({name:h,value:p,...g}),c.set(u,C)}else c.set(u,[{name:h,value:p,...g}])}const i=Array.from(r),m=[];for(const[d,g]of c)m.push({name:d,data:g});return{dimensions:i,dataset:m}},vn=window.config.requestErrorTip,ue=ln.create({});ue.interceptors.request.use(e=>e,e=>Promise.reject(e)),ue.interceptors.response.use(e=>{var o,n,a;return vn&&+((o=e==null?void 0:e.data)==null?void 0:o.code)==500&&q.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(vn)if(e.message.includes("timeout"))q.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:o}=(e==null?void 0:e.response)||{};o>=400&&o<500&&q.message.error({content:"请求异常",key:"REQUEST_ERROR"}),o>=500&&q.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const Xa=e=>e.replace(/\\n/g,`
|
|
59
|
+
`),rt=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},el=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},qe=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},Nn=(e,o)=>typeof e=="string"&&typeof o=="string"?e.toLocaleLowerCase().includes(o.toLocaleLowerCase()):!1,ie=(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 c=0;c<r.length;c++){const s=r[c];let i=s.slice(1,-1).trim();const m=/[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g,d=i.match(m);for(let g=0;g<d.length;g++){const h=d[g],p=o[h];if(p!=null&&(i=i.replace(h,p)),p!==i)try{i=(0,eval)(i)}catch{}e=e.replace(s,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," ")),e},fe=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:l,requestParams:r,requestInterval:c,isOpenRequestTimer:s}=e,{contextRequestUrl:i,pageMode:m,touchEventId:d}=t.inject(ee,{contextRequestUrl:"",pageMode:"normal",touchEventId:""}),{getGlobalModel:g}=t.inject(te,{getGlobalModel:C=>{}}),h=ie(n),p=async(C={})=>{if(!h||!a||!l||t.unref(m)==="design")return;let b={};r.forEach(T=>{const{key:I,value:w}=T;if(typeof w=="object"&&w.id){let f={};const{id:k,prop:E,propKey:N,operate:A}=w;k==="THIS"?f=g(t.unref(d))||{}:f=g(k)||{};const L=t.unref(f[E]);let R=null;if(["date","range"].some(v=>Nn(f==null?void 0:f.type,v))){const{value:v,type:F,mode:z}=A||{};if(v&&F&&z)switch(F){case"add":R=t.unref(L).add(v,z);break;case"minus":R=t.unref(L).subtract(v,z);break}R==null&&(R=t.unref(L)),R=(R==null?void 0:R.format((N==null?void 0:N.trim())||f.format))||""}else Object.prototype.toString.call(L)==="[object Object]"?R=L[N||"value"]:R=L;b[I]=R}else typeof w=="string"&&(b[I]=ie(w))}),b={...window.config.requestParams,...C,...b};let y="";const x=Object.keys(b),_=x.length-1,P=x.length;x.forEach((T,I)=>{I===0?P!==1?y+=`?${T}=${b[T]}&`:y+=`?${T}=${b[T]}`:I===_?y+=`${T}=${b[T]}`:y+=`${T}=${b[T]}&`});try{const T=["get","head"].includes(a),I=await ue({baseURL:t.unref(i)||"",url:T?h+y:h,method:a,headers:l,data:T?{}:b});return o(I),I}catch(T){console.error(T)}},u=s&&setInterval(p,c*1e3);return t.onUnmounted(()=>{clearInterval(u)}),p},Ee=(e=[],o)=>{let{name:n="name",types:a=[]}=o||{};n=(n==null?void 0:n.trim())||n;const l=new Set,r=new Map,c=e.length,s=a.length;if(c===1){const d=[];for(let h=0;h<s;h++){const p=a[h],{label:u,value:C}=p,b={...e[0],value:e[0][C]};l.add(u),d.push(b)}const g=e[0][n]||"";r.set(g,d)}else for(let d=0;d<c;d++){const g=e[d],h=g[n];l.add(h);for(let p=0;p<s;p++){const u=a[p],{label:C,value:b}=u,y={...g,value:g[b]};if(r.has(C)){const x=r.get(C);x.push(y),r.set(C,x)}else r.set(C,[y])}}const i=Array.from(l),m=[];for(const[d,g]of r)m.push({name:d,data:g});return{dimensions:i,dataset:m}},we=(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},Bn=(e,o)=>{const n=`${Mn}/preview?pageId=${o}`,a=`${Mn}/${o}`;return e==="preview"?n:a},st=e=>{const{getGlobalModel:o}=t.inject(te,{getGlobalModel:i=>{}}),n=i=>{const m=[];return i==null||i.leftAxisList.forEach(d=>{if(d){let g=!1;i.leftAxis.includes(d.name)&&(g=!0);let h={label:d.name,columnName:d.label,aggregate:d.calcValue?d.calcValue:"SUM",order:null,location:"LEFT",show:g};i.source==="INDICATOR_LIB"&&(h.hrpIndexCode=d.indexCode),h=a(d,h),m.push(h)}}),i.rightAxisList.forEach(d=>{let g=!1;i.rightAxis.includes(d.name)&&(g=!0);let h={label:d.name,columnName:d.label,aggregate:"SUM",order:null,location:"LEFT",show:g};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 g=0;g<i.length;g++){const{keyName:h,searchName:p,searchType:u,variateName:C,id:b}=i[g],y={alias:h,fieldName:p,rule:u||"NONE",fieldValue:"",valueType:"",variateName:C},x=o(b)||{};if(p==="the_date"?y.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(p)&&(y.valueType="TEXT"),x.type==="ecanDatePicker"){y.dateFormat=x.format;const _=(d=t.unref(x))==null?void 0:d.value.format;typeof _=="function"&&(y.fieldValue=_(x==null?void 0:x.format))}m.push(y)}return m},r=(i,m)=>{const d=m.find(g=>g.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((g,h)=>{h!==0&&(i.customGroup.groupInfoMap[g.key]=g.value)}),i.customGroup.otherGroupName=d.customGroup.otherName||""),i.rangeIndexTypeGuid=d.typeGuid,i.customFilterSqlPart=d.filterSql||""},c=(i,m)=>{for(let d=0;d<i.children.length;d++)if(i.children[d].children.length>0){let g="";i.type==="and"?g="&&":g="||",m.push({conditions:[],join:g}),c(i.children[d],m[m.length-1].conditions)}else if(i.children[d].fieldName){let g="";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(g=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&&(g="#######",h.calcWays=i.children[d].calcWays):i.children[d].selectType==="component"&&(g="${"+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(g)==="[object Array]"){const p=[];for(let u=0;u<g.length;u++)g[u]!=="全选"&&p.push(g[u]);g=p.join(",")}h.fieldValue=g,i.children.length>1&&d!==i.children.length-1&&(i.type==="and"?h.join="&&":h.join="||"),m.push(h)}},s=(i,m,d)=>{if(!i)return;const g=d[m].find(u=>u.name===i.label);if(!g)return;const h=[],p=g.filterList;if(p)for(let u=0;u<p.length;u++)p[u].children.length>0&&c(p[u],h);return h};return async function(){var T,I;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){q.message.error("当前y轴无配置信息");return}const h=n(m);let p;if(Array.isArray(m.series)&&m.series.length>0){const w=(T=m.seriesList)==null?void 0:T.find(f=>{const k=m.series[0];return f.name===k||f.nameBak===k});w!=null&&(p={label:w.name,columnName:w.label})}let u;if(d.length>0){u={label:d[0],columnName:d[0]};const w=((I=m.classifyList)==null?void 0:I.find(f=>(f==null?void 0:f.name)===d[0]||(f==null?void 0:f.nameBak)===d[0]))||{};u.columnName=w.label,r(u,m.classifyList),u.conditions=s(u,"classifyList",m)||[]}p&&(r(p,m.seriesList),p.conditions=s(p,"seriesList",m)||[]);for(let w=0;w<h.length;w++)h[w].location==="RIGHT"?h[w].conditions=s(h[w],"rightAxisList",m):h[w].conditions=s(h[w],"leftAxisList",m);let C;(m==null?void 0:m.pageMode)==="design"?C=m.sqlConditions??[]:C=l(m==null?void 0:m.relativeList);let b="SQL_VIEW",y="",x="",_="";m.source==="INDICATOR_LIB"&&(b="INDICATOR_LIB",y=m.fixedDimSql,x=m.dataSourceId,_=m.idxLibMode);const P={ecanBar:"bar",ecanLine:"line",ecanPie:"pie",ecanScatter:"scatter"};try{const w=await ue.get(`${Ve}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});return ue.post(`${Ve}/diagram`,{dataViewId:m.dataViewId,plugin:"1",layer:"2",chartType:P[i],classification:u,indicatorList:h,series:p,sqlConditions:C,source:b,fixedDimSql:y,dataSourceId:x,idxLibMode:_},{headers:{Authentication:w.data.data.token}})}catch(w){console.error(w)}}},Ae=(e,o)=>{var l;if(e==null)return o;const n=e.match(/\{.*\}/g);if(n==null||n.length===0)return o;const a=n.length;for(let r=0;r<a;r++){const c=n[r];if(c==null||c==="")break;let s=(l=c.slice(1,-1))==null?void 0:l.trim();s=s==null?void 0:s.replace(/value/g,o);try{let i=s;if(s!==o.toString())try{i=(0,eval)(s)}catch{}e=e.replace(c,i)}catch{e=e.replace(c,s)}}return e},zn=(e={})=>{const{requestToken:o}=t.inject(Ln,{requestToken:()=>{}});e.dataType==="indicator"&&o();const n=(c={})=>{const{label:s,name:i,location:m,show:d,indexCode:g}=c;return{label:s,columnName:i,location:m,show:d,calcType:"COLUMN",hrpIndexCode:g}},a=(c={})=>{const{label:s,name:i,location:m,show:d,indexCode:g,calcType:h="COLUMN",builtInFormula:p,builtInValueSource:u,builtInCalcWay:C,formula:b,conditions:y}=c;return{label:s,columnName:i,location:m,show:d,calcType:h,hrpIndexCode:g,aggregate:"SUM",builtInFormula:p,builtInValueSource:u,builtInCalcWay:C,formula:b,conditions:y}},{getGlobalModel:l}=t.inject(te,{getGlobalModel:c=>{}}),r=(c=[])=>{var m;const s=c.length,i=[];for(let d=0;d<s;d++){const g=c[d],{id:h,conditionLabel:p,conditionKey:u,conditionValueType:C}=g,b={rule:"NONE",label:p,fieldName:u,fieldValue:"",valueType:C},y=l(h)||{};if(Nn(y.type,"date")){const{value:x,format:_}=y||{};b.fieldValue=(m=t.unref(x))==null?void 0:m.format(_),b.dateFormat=_}i.push(b)}return i};return async()=>{var N;const{graphicConfig:c}=e,{source:s,dataViewId:i,plugin:m,layer:d,chartType:g,classificationList:h=[],seriesList:p=[],leftAxisList:u=[],rightAxisList:C=[],queryColumnList:b=[],indicators:y=[],controlList:x=[],dataSourceId:_,idxLibMode:P,preview:T=!1}=c||{};let I;if(Array.isArray(h)&&h.length>0){const A=h.length;for(let L=0;L<A;L++){const R=h[L]||{},{label:j="",name:v="",show:F=!1,sort:z,customGroup:D,conditions:W}=R;if(F||A===1){I={label:j,columnName:v,show:F,sort:z,customGroup:D,conditions:W};break}}}let w;if(Array.isArray(p)&&p.length>0){const A=p.length;for(let L=0;L<A;L++){const R=p[L]||{},{label:j="",name:v="",show:F=!1,sort:z,customGroup:D,conditions:W}=R;if(F||A===1){w={label:j,columnName:v,show:F,sort:z,customGroup:D,conditions:W};break}}}const f=[];b==null||b.forEach(A=>{f.push(n(A))});const k=[];if(u==null||u.forEach(A=>{A.location="LEFT",k.push(a(A))}),C==null||C.forEach(A=>{A.location="RIGHT",k.push(a(A))}),y==null||y.forEach(A=>{A.location="LEFT",k.push(a(A))}),d==="1"&&f.length===0)return;if(d==="2"&&k.length===0)return;let E;(c==null?void 0:c.pageMode)==="design"?E=c.sqlConditions??[]:E=r(x);try{return await ue.post(`${Ve}/diagram`,{source:s,dataViewId:i,plugin:m,layer:d,chartType:g,classification:I,series:w,indicatorList:k,queryColumns:f,pageFlag:!0,sqlConditions:E,dataSourceId:_,idxLibMode:P,preview:T},{headers:{Authentication:(N=window==null?void 0:window.config)==null?void 0:N.indicatorToken,operateContext:"ygt"}})}catch(A){console.error(A)}}},tl=()=>{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 c=r[0],s=r[1];window.config[c]=s}}},nl=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...lt},setup(e){const o=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:we(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),n=t.ref(0),a=t.ref(0),l=t.ref(0),r=t.ref(0),c=t.ref(!1),s=t.ref();let i;const m=()=>new Promise(C=>{t.nextTick(()=>{e.width&&e.height?(n.value=parseFloat(e.width),a.value=parseFloat(e.height)):(n.value=s.value.clientWidth,a.value=s.value.clientHeight),(!l.value||!r.value)&&(l.value=window.screen.width,r.value=window.screen.height),C()})}),d=()=>{n.value&&a.value?(s.value.style.width=`${n.value}px`,s.value.style.height=`${a.value}px`):(s.value.style.width=`${l.value}px`,s.value.style.height=`${r.value}px`)},g=()=>{const C=document.body.clientWidth,b=document.body.clientHeight,y=n.value||l.value,x=a.value||r.value,_=C/y,P=b/x;s.value&&(s.value.style.transform=`scale(${_}, ${P})`)},h=ye.debounce(async()=>{await m(),g()},100),p=()=>{const C=window.MutationObserver;i=new C(h),i.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},u=()=>{i&&(i.disconnect(),i.takeRecords(),i=null)};return t.onMounted(async()=>{c.value=!1,await m(),d(),g(),window.addEventListener("resize",h),p(),c.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",h),u()}),{style:o,container:s,ready:c}}}),nr="",ol={id:"container",ref:"container"};function al(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",ol,[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 Fn=U(G(nl,[["render",al],["__scopeId","data-v-242d350e"]])),ct={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},dt=Z(ct),ll=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...dt},setup(e,{expose:o}){tl();const n=t.ref(),a=()=>{n.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>ie(e.contextRequestUrl)),r=t.computed(()=>e.pageMode),c=t.computed(()=>e.theme),s=t.ref("");t.provide(ee,{contextRequestUrl:l,pageMode:r,theme:c,touchEventId:s});const i=new Map,m=v=>i.get(v),d=(v,F)=>{i.set(v,F)};t.provide(te,{getGlobalModel:m,setGlobalModel:d});const g=[],h=()=>{g.pop()},p=v=>{g.push(v)},u=new Map,C=v=>u.get(v),b=(v,F)=>{u.set(v,F)};t.provide(In,{popUseModalIds:h,pushUseModalIds:p,getModalModel:C,setModalModel:b});const y=No(),x=new Set,_=(v,F)=>{x.add(v),y.on(v,z=>typeof F[z]=="function"&&F[z]()),t.onBeforeUnmount(()=>{P(v)})},P=v=>{x.delete(v),y.off(v)},T=(v,F)=>{if(v==="PAGE"){const z=g.length;let D=[];if(z===0)D=[...x];else{const W=g[z-1];D=[...C(W)]}D.forEach(W=>{y.emit(W,F)})}else y.emit(v,F)};t.provide(it,{onEvent:_,offEvent:P,emitEvent:T});const I=t.ref(0),w=()=>{I.value=t.unref(I)+1};t.provide(Ln,{requestToken:w});const f=new Map,k=new Map,E=({requestFn:v=()=>{},sortNum:F=0,id:z=""})=>{if(f.has(F)){const D=f.get(F);D==null||D.push(v)}else f.set(F,[v]);k.set(z,v)},N=v=>new Promise((F,z)=>{const D=v.map(W=>W());Promise.all(D).then(W=>{F(W)}).catch(W=>{z(W)})}),A=async()=>{var F;const v=await ln.get(`${Ve}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});config.indicatorToken=(F=v.data.data)==null?void 0:F.token},L=v=>new Promise(async(F,z)=>{if(v){if(typeof v=="string"){const D=k.get(v);if(typeof D=="function"){const W=ue.interceptors.response.use(X=>(F(X),X),X=>(z(X),Promise.reject(X)));D(),ue.interceptors.response.eject(W)}}}else{const D=Array.from(f);D.sort((X,Ge)=>Ge[0]-X[0]);const W=D.length;try{e.pageMode!=="design"&&t.unref(I)>0&&await A();for(let X=0;X<W;X++){const Ge=D[X][1];await N(Ge)}}catch(X){console.error(X)}finally{f.clear(),F(null)}}});t.provide(ce,{setRequest:E,touchRequest:L});const R=()=>{y.emit(Ne)};t.provide(Ne,{emitRefreshPage:R});const j=v=>{y.on(Ne,()=>v()),t.onMounted(()=>{y.off(Ne)})};return t.onBeforeUnmount(()=>{f==null||f.clear(),k==null||k.clear()}),o({touchRequest:L,getGlobalModel:m,onRefreshPage:j}),{providerConfig:n}}}),il={id:"ProviderConfig",ref:"providerConfig"};function rl(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",il,[t.renderSlot(e.$slots,"default")],512)}const On=U(G(ll,[["render",rl]])),mt={...K,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",data:{},variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:""},ft=Z(mt),Pn=["refreshData","click"],sl="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=",cl="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==",dl=t.defineComponent({name:"EcanText",components:{Skeleton:je},props:{...ft},setup(e){const o=J(e),n=t.ref({});t.watch(()=>[e.data,e.dataType],([h,p])=>{p==="static"&&(n.value=h)},{immediate:!0});const a=t.computed(()=>{var C;const h=t.unref(n);let p=e.text;p=p==null?void 0:p.replace(/\n|\\n/g,"<br/>"),p=p==null?void 0:p.replace(/\s(?!\{) | (?!\})\s/g," ");const u=p.match(/\{(.+?)\}/g);if(u==null||u.length===0)return p;for(let b=0;b<u.length;b++){const y=u[b],x=(C=y==null?void 0:y.slice(1,y.length-1))==null?void 0:C.trim();let _=x;const P=x.match(/[\u4e00-\u9fa5a-z-_A-Z]+[0-9]*/g);for(let I=0;I<P.length;I++){const w=P[I],f=h[w];f&&(_=x.replace(w,f))}if(x!==_){let I=null;try{I=(0,eval)(_)}catch{}I!=null&&(_=I)}let T=_;if(T!=null){const I=e.format;I==="percentage"?(T=+T,isNaN(T)?p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`):T>=0?(T=(T*100).toFixed(2),p=p.replace(y,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${sl}"/>${T}%</span>`)):(T=(T*100).toFixed(2),p=p.replace(y,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${cl}"/>${Math.abs(+T)}%</span>`))):I==="percent"?(T=+T,isNaN(T)||(T=(T*100).toFixed(2),p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}%</span>`))):e.format==="money"?(T=+T,isNaN(T)||(T=rt(T),p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}</span>`))):I==="thousands"?(T=+T,isNaN(T)||(T=el(T),p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}</span>`))):p=p.replace(y,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${T}</span>`)}else p=p.replace(y,e.variableDefaultValue)}return`<span>${p}</span>`}),{pageMode:l}=t.inject(ee,{pageMode:"normal"}),r=fe(e),c=t.ref(!1),s=async()=>{var h;if(t.unref(l)!=="design")try{c.value=!0;const p=await r();n.value=((h=p==null?void 0:p.data)==null?void 0:h.data)||{}}catch(p){console.error(p)}finally{c.value=!1}},i=()=>{e.dataType!=="static"&&s()};oe(e,{refreshData:i});const{setRequest:m}=t.inject(ce,{setRequest:({id:h,sortNum:p,requestFn:u})=>{}});m({id:e.id,requestFn:i,sortNum:e.requestSort}),oe(e,{refreshData:i});const g=ne(e)("click",()=>{if(!e.linkPage&&!e.href)return;const h=e.linkPage||"",p=Bn(t.unref(l),h),u=e.href;let C=u||p;C=ie(C);const b=e.target;b==null||b===""||(b!=="event"?window.open(C,"_"+b):window.parent.postMessage({type:"openPage",url:u},"*"))});return{style:o,myText:a,loading:c,click:g}}}),lr="",ml=["innerHTML"];function fl(e,o,n,a,l,r){const c=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(c,{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]=(...s)=>e.click&&e.click(...s))},null,12,ml))}const Rn=U(G(dl,[["render",fl],["__scopeId","data-v-2309a080"]])),ul=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),rr="",gl={class:"red"};function hl(e,o,n,a,l,r){return t.openBlock(),t.createElementBlock("div",gl,t.toDisplayString(e.text),1)}const Dn=U(G(ul,[["render",hl],["__scopeId","data-v-4dd9c03e"]])),ut={...K,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=Z(ut),yl=t.defineComponent({name:"EcanTimeDisplay",props:{...gt},setup(e){const o=J(e),n=t.ref(pe().format(e.format));let a=null;const l=()=>{clearInterval(a),a=null},r=()=>{a&&l(),a=setInterval(()=>{n.value=pe().add(1,"s").format(e.format)},1e3)};return t.onMounted(()=>{r()}),t.onUnmounted(()=>{l()}),{style:o,time:n}}}),cr="";function bl(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 $n=U(G(yl,[["render",bl],["__scopeId","data-v-07d3cde3"]])),ht={...K,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},yt=Z(ht),jn=["refreshData","click"],pl=t.defineComponent({name:"EcanList",components:{Skeleton:je},props:{...yt},setup(e){const o=t.ref(e.data),n=J(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(u,C)=>C==null||C===""?u:{money:rt,percentage:qe,contrast:qe}[C](u)||"",r=(u,C)=>{const b=parseFloat(u+"");if(C!=="contrast")return"";switch(!0){case b>=0:return"goUp";case b<0:return"goDown"}},c=fe(e),{pageMode:s}=t.inject(ee,{pageMode:"normal"}),i=t.ref(!1),m=async()=>{var u;if(!(e.dataType!=="request"||t.unref(s)==="design"))try{i.value=!0;const C=await c();o.value=((u=C==null?void 0:C.data)==null?void 0:u.data.rows)||[]}catch(C){console.error(C)}finally{i.value=!1}},d=()=>{m()},h=ne(e)("click",()=>{});oe(e,{refreshData:d});const{setRequest:p}=t.inject(ce,{setRequest:({id:u,sortNum:C,requestFn:b})=>{}});return p({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,formatFn:l,columnStyle:a,contrastClass:r,dataSource:o,loading:i,click:h}}}),mr="",fr="",Cl=e=>(t.pushScopeId("data-v-baf2ff0c"),e=e(),t.popScopeId(),e),kl={key:0,class:"title"},Sl={key:0,class:"ranking"},wl={key:1,class:"ecan-list-content"},Al={key:0,class:"ranking"},Tl=Cl(()=>t.createElementVNode("div",{class:"icon"},null,-1)),xl={class:"sort"},_l={key:2,class:"empty"};function El(e,o,n,a,l,r){const c=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(c,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",kl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,s=>(t.openBlock(),t.createElementBlock("div",{class:"title-inner",style:t.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Sl)):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",wl,[e.useTitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:"title-placeholder",style:t.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataSource.slice(0,e.sliceCount),(s,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:s.id||i,onClick:o[0]||(o[0]=(...m)=>e.click&&e.click(...m))},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Al,[Tl,t.createElementVNode("div",xl," 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(s[m.key],m.format)]),key:m.key,style:t.normalizeStyle({fontSize:m.fontSize,color:e.contrastClass(s[m.key],m.format)===""?m.color:"",fontWeight:m.fontWeight,...e.columnStyle})},t.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(s[m.key],m.format)),7))),128))],4))),128))])):(t.openBlock(),t.createElementBlock("div",_l," 暂无数据 "))]),_:1},8,["loading"])],4)}const Vn=U(G(pl,[["render",El],["__scopeId","data-v-baf2ff0c"]])),bt={...K,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!1,variableDefaultValue:"0"},pt=Z(bt),qn=["refreshData","click"],Ll=t.defineComponent({name:"EcanProportion",components:{AProgress:q.Progress,Skeleton:je},props:{...pt},setup(e){const{pageMode:o}=t.inject(ee,{pageMode:"normal"}),n=J(e),a=t.computed(()=>{const u=e.width;return parseFloat(u)}),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 u=t.unref(l),C=+e.variableDefaultValue;if(u==null)return isNaN(C)?0:C;const b=e.text.match(/\{.+\}/g)||[];let y;const x=new Set(Object.keys(u));for(let _=0;_<b.length;_++){const P=b[_],T=P.slice(1,P.length-1);if(x.has(T)){y=u[T];break}}return typeof y=="number"?y=y*100:typeof y=="string"&&!isNaN(+y)?y=+y*100:isNaN(C)?y=0:y=C*100,e.decimalFormat&&(y=+y.toFixed(2)),y}),c=t.computed(()=>{var x;let u=e.text;if(u==="")return t.unref(r);const C=e.variableDefaultValue,b=t.unref(l),y=u.match(/\{.+\}/g)||[];for(let _=0;_<y.length;_++){const P=y[_];let T=P.slice(1,P.length-1);const I=T.match(/.*/g);for(let f=0;f<(I==null?void 0:I.length);f++){const k=(x=I[_])==null?void 0:x.trim();b[k]!=null?T=T.replace(k,b[k]):T=T.replace(k,C)}let w=T;try{/\w+[+\-*/%]+\w+/g.test(T)&&(w=(0,eval)(T))}catch(f){console.error(f)}(typeof w=="number"||!isNaN(+w))&&(w=+w*100,e.decimalFormat&&(w=w.toFixed(2))),u=u.replace(P,w+"")}return u}),s=fe(e),i=t.ref(!1),m=async()=>{var u;if(!(e.dataType!=="request"||t.unref(o)==="design"))try{i.value=!0;const C=await s();l.value=((u=C==null?void 0:C.data)==null?void 0:u.data)||{}}catch(C){console.error(C)}finally{i.value=!1}};oe(e,{refreshData:()=>{m()}});const h=ne(e)("click",()=>{}),{setRequest:p}=t.inject(ce,{setRequest:({id:u,sortNum:C,requestFn:b})=>{}});return p({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,myWidth:a,text:c,myValue:r,loading:i,click:h}}}),gr="";function Il(e,o,n,a,l,r){const c=t.resolveComponent("skeleton"),s=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(s,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:t.withCtx(()=>[e.loading?(t.openBlock(),t.createBlock(c,{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 Gn=U(G(Ll,[["render",Il],["__scopeId","data-v-304d430d"]])),Ct={...K,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},kt=Z(Ct),Un=["inputChange","inputBlur"],Ml=t.defineComponent({name:"EcanInput",components:{AInput:q.Input},props:{...kt},setup(e){const o=J(e),n=t.ref("");t.watch(()=>e.value,d=>{n.value=d},{immediate:!0});const a=e.id,{getGlobalModel:l,setGlobalModel:r}=t.inject(te,{getGlobalModel:d=>{},setGlobalModel:(d,g)=>{}});r(e.id,{type:e.type,value:n});const c=()=>{const d=l(a);r(a,{...d,RECORD:n})},s=ne(e),i=ye.debounce(s("inputChange",()=>{c()}),300),m=s("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:m,inputChange:i}}}),yr="";function vl(e,o,n,a,l,r){const c=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(c,{class:"input",value:e.myValue,"onUpdate:value":o[0]||(o[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const Wn=U(G(Ml,[["render",vl]])),St={...K,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null},wt=Z(St),Hn=["dateChange"],Nl=t.defineComponent({name:"EcanDatePicker",props:{...wt},components:{ADatePicker:q.DatePicker},setup(e){const o=J(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([s,i,m])=>{let d=null;if(s?d=pe(s):i&&(d=pe()),m&&d){const{type:g,value:h,mode:p}=m;switch(g){case"add":d=d.add(h,p);break;case"minus":d=d.subtract(h,p)}}a.value=d},{deep:!0,immediate:!0});const{setGlobalModel:l}=t.inject(te,{setGlobalModel:(s,i)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const c=ne(e)("dateChange",()=>{});return oe(e,{dateChange:c}),{style:o,getPopupContainer:n,myValue:a,locale:rn,dateChange:c}}}),pr="";function Bl(e,o,n,a,l,r){const c=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style)},[t.createVNode(c,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=s=>e.myValue=s),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 Zn=U(G(Nl,[["render",Bl]])),At={...K,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=Z(At),Jn=["selectChange"],zl=t.defineComponent({name:"EcanSelect",components:{ASelect:q.Select},props:{...Tt},setup(e){const o=J(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=fe(e),{pageMode:l}=t.inject(ee,{pageMode:"normal"}),r=t.ref(e.data),c=t.ref(e.value||e.data[0]),s=e.dataFieldNames,i=(b,y)=>{const x=s.label,_=s.value;let P;const T=y[x],I=y[_];return T!=null?P=T:I!=null&&(P=I),(P==null?void 0:P.toLowerCase().indexOf(b==null?void 0:b.toLowerCase()))>=0},m=t.ref(!1),d=async()=>{var b,y;if(!(e.dataType!=="request"||t.unref(l)==="design")){m.value=!0;try{const x=await a();r.value=((y=(b=x==null?void 0:x.data)==null?void 0:b.data)==null?void 0:y.rows)||[];const _=t.unref(r)[0];e.value===""&&_!=null&&(c.value=_[s.value])}catch(x){console.error(x)}finally{m.value=!1}}},{getGlobalModel:g,setGlobalModel:h}=t.inject(te,{getGlobalModel:b=>{},setGlobalModel:(b,y)=>{}});h(e.id,{type:e.type,value:c});const u=ne(e)("selectChange",()=>{const b=e.id,y=g(b);h(b,{...y,RECORD:c})});oe(e,{selectChange:u});const{setRequest:C}=t.inject(ce,{setRequest:({id:b,sortNum:y,requestFn:x})=>{}});return C({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,getPopupContainer:n,myValue:c,selectChange:u,options:r,filterOption:i,loading:m}}}),kr="",Sr="";function Fl(e,o,n,a,l,r){const c=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(c,{class:"select",value:e.myValue,"onUpdate:value":o[0]||(o[0]=s=>e.myValue=s),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 Yn=U(G(zl,[["render",Fl],["__scopeId","data-v-dd2bcf63"]])),xt={...K,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null},_t=Z(xt),Qn=["dateChange"],Ol=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:q.RangePicker},props:{..._t},setup(e){const o=J(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([m,d,g,h,p,u])=>{let C=null,b=null;if(g&&(C=pe().subtract(h,p),b=pe()),m&&(C=pe(m)),d&&(b=pe(d)),u){const{type:y,value:x,mode:_}=u;switch(y){case"add":C=C&&C.add(x,_),b=b&&b.add(x,_);break;case"minus":C=C&&C.subtract(x,_),b=b&&b.subtract(x,_)}}a.value=[C,b]},{immediate:!0});const{setGlobalModel:l}=t.inject(te,{setGlobalModel:(m,d)=>{}}),r=t.computed(()=>t.unref(a)[0]),c=t.computed(()=>t.unref(a)[1]);l(e.id,{type:e.type,format:e.format,startTime:r,endTime:c});const i=ne(e)("dateChange",()=>{});return oe(e,{dateChange:i}),{style:o,getPopupContainer:n,locale:rn,dateChange:i,myValue:a}}}),Ar="",Tr="";function Pl(e,o,n,a,l,r){const c=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(c,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":o[0]||(o[0]=s=>e.myValue=s),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 Kn=U(G(Ol,[["render",Pl],["__scopeId","data-v-adf450ac"]])),Et={...K,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},Lt=Z(Et),Xn=["click"],Rl=t.defineComponent({name:"EcanButton",components:{AButton:q.Button},props:{...Lt},setup(e){const o=J(e),a=ne(e)("click",()=>{const s=t.unref(r);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),l=t.computed(()=>ie(e.text)),r=t.computed(()=>ie(e.href)||null),c=t.computed(()=>{const s=e.target;if(!(s==="event"||t.unref(r)==null))return{self:"_self",blank:"_blank"}[s]});return{style:o,click:a,myText:l,myHref:r,myTarget:c}}}),_r="";function Dl(e,o,n,a,l,r){const c=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(c,{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 eo=U(G(Rl,[["render",Dl]])),It={...K,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}]},Mt=Z(It),to=["checkboxChange"],$l=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:q.CheckboxGroup},props:{...Mt},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=u=>{const C=e.value;let b=[];u.forEach(y=>{y.checked&&b.push(y.value)}),typeof C=="string"&&C!==""?b=b.concat(C.split(",")):Array.isArray(C)&&(b=b.concat(C)),n.value=u,a.value=b};t.watch(()=>[e.data,e.value],([u])=>{l(u)},{immediate:!0,deep:!0});const r=fe(e),{pageMode:c}=t.inject(ee,{pageMode:"normal"}),s=async()=>{var b,y;if(e.dataType!=="request"||t.unref(c)==="design")return;const u=await r(),C=((y=(b=u==null?void 0:u.data)==null?void 0:b.data)==null?void 0:y.rows)||[];l(C)},i=e.id,{getGlobalModel:m,setGlobalModel:d}=t.inject(te,{getGlobalModel:u=>{},setGlobalModel:(u,C)=>{}});d(e.id,{type:e.type,value:a});const h=ne(e)("checkboxChange",()=>{const u=m(i);d(i,{...u,RECORD:a})}),{setRequest:p}=t.inject(ce,{setRequest:({id:u,sortNum:C,requestFn:b})=>{}});return p({id:e.id,requestFn:s,sortNum:e.requestSort}),{myOption:n,style:o,myValue:a,checkboxChange:h}}}),Lr="";function jl(e,o,n,a,l,r){const c=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(c,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const no=U(G($l,[["render",jl]])),vt={...K,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Nt=Z(vt),oo=["click","refreshData","resetRecord"],ze=async e=>{var i;const o=await ue.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,l=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),r=new Blob([n]),c=document.createElement("a"),s=window.URL.createObjectURL(r);c.href=s,c.download=decodeURI(l),c.style.display="none",document.body.appendChild(c),c.click(),(i=c.parentNode)==null||i.removeChild(c),window.URL.revokeObjectURL(s)};he.use([Te.CanvasRenderer,Ce.PieChart,Q.TitleComponent,Q.ToolboxComponent,Q.TooltipComponent,Q.LegendComponent]);const Vl=t.defineComponent({name:"EcanPie",props:{...Nt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},r=t.computed(()=>{let{data:I=[]}=t.unref(n)[0]||{};if(Array.isArray(e.colors)){const w=e.isUseLabelColors,f=e.colors;I=I.map((k,E)=>({label:w?{color:f[E]}:{},...k}))}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(){ze(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(){q.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:w=>{const{marker:f,seriesName:k,name:E,value:N,percent:A,data:L}=w||{};return ie(e.tooltipFormatter,{marker:f,name:E,value:N,percent:A,a:k,b:E,c:N,d:A,...L},{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:I,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:e.labelFontSize,position:e.labelPosition,formatter:Xa(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:c,setGlobalModel:s}=t.inject(te,{getGlobalModel:I=>{},setGlobalModel:(I,w)=>{}}),{pageMode:i}=t.inject(ee,{pageMode:"normal"}),m=(I=[],w)=>{const{dataset:f}=Be(I,w);n.value=f},d=(I=[],w)=>{const f=Be(I,w);n.value=f.dataset};t.watch(()=>e.data,I=>{(e.dataType==="static"||t.unref(i)==="design")&&m(I)},{immediate:!0,deep:!0});const g=t.ref(!1),h=fe(e),p=async()=>{var I,w;if(!(e.dataType!=="request"||t.unref(i)==="design"))try{g.value=!0;const f=await h();m((w=(I=f==null?void 0:f.data)==null?void 0:I.data)==null?void 0:w.rows,e.valueTypeDataFieldNames)}catch(f){console.error(f)}finally{g.value=!1}},C=ne(e)("click",I=>{const w=e.id,f=c(w);s(w,{...f,RECORD:I==null?void 0:I.data})}),b=st(e),y=async()=>{var I,w,f,k,E,N;if(!(e.dataType!=="indicator"||t.unref(i)==="design"))try{g.value=!0;const A=await b();let L=[];if(((f=(w=(I=A==null?void 0:A.data)==null?void 0:I.data)==null?void 0:w.columns)==null?void 0:f.length)>0){const R=A.data.data.columns[0],j=A.data.data.columns[1];L=(N=(E=(k=A==null?void 0:A.data)==null?void 0:k.data)==null?void 0:E.rows)==null?void 0:N.map(v=>({name:v[R],value:v[j]}))}d(L)}catch(A){console.error(A)}finally{g.value=!1}},x=()=>{t.unref(i)!=="design"&&(y(),p())};oe(e,{resetRecord:()=>{const I=e.id,w=c(I);s(I,{...w,RECORD:""})},refreshData:()=>{x()},click:C});const{setRequest:T}=t.inject(ce,{setRequest:({id:I,sortNum:w,requestFn:f})=>{}});return T({id:e.id,requestFn:x,sortNum:e.requestSort}),{option:r,style:o,click:C,loading:g,visible:a,hideModal:l}}}),Mr="";function ql(e,o,n,a,l,r){const c=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{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(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const ao=U(G(Vl,[["render",ql]])),Bt={...K,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},zt=Z(Bt),lo=["click","refreshData","resetRecord"];he.use([Te.CanvasRenderer,Ce.LineChart,Q.ToolboxComponent,Q.TitleComponent,Q.LegendComponent]);const Gl=t.defineComponent({name:"EcanLine",props:{...zt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},c=t.computed(()=>{const w=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(){ze(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(){q.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 E=k.length;let N="",A=e.tooltipFormatter;A===""&&(A="{marker} {a} {c}");for(let L=0;L<E;L++){const{marker:R,seriesName:j,name:v,value:F,data:z}=k[L]||{};L===0&&(N+=`${v}<br/>`),N+=ie(A,{marker:R,name:v,value:F,a:j,b:v,c:F,...z},{useNewline:!0,useSpace:!0}),N+="<br/>"}return N}},xAxis:{type:"category",data:t.unref(a),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,formatter(k){return Ae(w,k)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(k){return Ae(f,k)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:t.unref(n)}}),{getGlobalModel:s,setGlobalModel:i}=t.inject(te,{getGlobalModel:w=>{},setGlobalModel:(w,f)=>{}}),{pageMode:m}=t.inject(ee,{pageMode:"normal"}),d=(w=[],f=!1)=>{let k;if(e.dataFieldConfigType==="key"){const L=f?e.keyTypeDataFieldNames:null;k=Ee(w,L)}else if(e.dataFieldConfigType==="value"){const L=f?e.valueTypeDataFieldNames:null;k=Be(w,L)}a.value=k.dimensions;const E=k.dataset,N=[],A=E.length;for(let L=0;L<A;L++)N.push({type:"line",...E[L],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});n.value=N},g=(w=[],f,k=!1)=>{const N=Ee(w,k?f:null);a.value=N.dimensions;const A=N.dataset,L=[],R=A.length;for(let j=0;j<R;j++)L.push({type:"line",...A[j],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});n.value=L};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([w])=>{(e.dataType==="static"||t.unref(m)==="design")&&d(w)},{immediate:!0,deep:!0});const h=t.ref(!1),p=fe(e),u=async()=>{var w,f;if(!(e.dataType!=="request"||t.unref(m)==="design"))try{h.value=!0;const k=await p();d((f=(w=k==null?void 0:k.data)==null?void 0:w.data)==null?void 0:f.rows,!0)}catch(k){console.error(k)}finally{h.value=!1}},b=ne(e)("click",w=>{const f=e.id,k=s(f);i(f,{...k,RECORD:w==null?void 0:w.data})}),y=st(e),x=async()=>{var w,f,k,E,N;if(!(e.dataType!=="indicator"||t.unref(m)==="design"))try{h.value=!0;const A=await y();let L;((k=(f=(w=A==null?void 0:A.data)==null?void 0:w.data)==null?void 0:f.columns)==null?void 0:k.length)>0&&(L={name:A.data.data.columns[0],types:A.data.data.columns.slice(1).map(R=>({label:R,value:R}))}),g((N=(E=A==null?void 0:A.data)==null?void 0:E.data)==null?void 0:N.rows,L,!0)}catch(A){console.error(A)}finally{h.value=!1}},_=()=>{t.unref(m)!=="design"&&(x(),u())};oe(e,{refreshData:()=>{_()},resetRecord:()=>{const w=e.id,f=s(w);i(w,{...f,RECORD:""})},click:b});const{setRequest:I}=t.inject(ce,{setRequest:({id:w,sortNum:f,requestFn:k})=>{}});return I({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:c,style:o,click:b,loading:h,visible:l,hideModal:r}}}),Nr="";function Ul(e,o,n,a,l,r){const c=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{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(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const io=U(G(Gl,[["render",Ul]])),Ft={...K,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{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=Z(Ft),ro=["refreshData","click","resetRecord"];he.use([Te.CanvasRenderer,Ce.BarChart,Q.TitleComponent,Q.LegendComponent,Q.DatasetComponent,Q.ToolboxComponent]);const Wl=t.defineComponent({name:"EcanBar",props:{...Ot},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e,{expose:o}){const n=J(e),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},c=t.computed(()=>{const f=t.unref(a),k=f.length,E=[];for(let N=0;N<k;N++){const A={...f[N],type:"bar",barWidth:e.barWidth};e.isStack&&(A.stack="stack"),A.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},E.push(A)}return E}),s=t.ref([]),i=t.ref(!1),m=t.computed(()=>{const f=e.yAxisLabelFormatter,k=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!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(){ze(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(){q.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:E=>{const N=E.length;let A="",L=e.tooltipFormatter;L===""&&(L="{marker} {a} {c}");for(let R=0;R<N;R++){const{marker:j,seriesName:v,name:F,value:z,data:D}=E[R]||{};R===0&&(A+=`${F}<br/>`),A+=ie(L,{marker:j,name:F,value:z,a:v,b:F,c:z,...D},{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(s),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(E){return Ae(k,E)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(s):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(E){return Ae(f,E)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(c)}}),{pageMode:d}=t.inject(ee,{pageMode:"normal"}),g=(f=[],k=!1)=>{let E={};if(e.dataFieldConfigType==="key"){const N=k?e.keyTypeDataFieldNames:null;E=Ee(f,N)}else if(e.dataFieldConfigType==="value"){const N=k?e.valueTypeDataFieldNames:null;E=Be(f,N)}a.value=E.dataset,s.value=E.dimensions},h=(f=[],k,E=!1)=>{const A=Ee(f,E?k:null);a.value=A.dataset,s.value=A.dimensions};t.watch(()=>e.data,f=>{(e.dataType==="static"||t.unref(d)==="design")&&g(f)},{immediate:!0,deep:!0});const p=fe(e),u=async()=>{var f,k;try{i.value=!0;const E=await p();g((k=(f=E==null?void 0:E.data)==null?void 0:f.data)==null?void 0:k.rows,!0)}catch(E){console.error(E)}finally{i.value=!1}},C=zn(e),b=async()=>{var f;try{i.value=!0;const k=await C(),{columns:E=[],rows:N=[]}=((f=k==null?void 0:k.data)==null?void 0:f.data)??{};let A;E.length>0&&(A={name:E[0],types:E.slice(1).map(L=>({label:L,value:L}))}),h(N,A,!0)}catch(k){console.error(k)}finally{i.value=!1}},y=()=>{if(t.unref(d)!=="design")switch(e.dataType){case"indicator":b();break;case"request":u();break}};o({refreshData:y});const x=ne(e),{getGlobalModel:_,setGlobalModel:P}=t.inject(te,{getGlobalModel:f=>{},setGlobalModel:(f,k)=>{}}),T=x("click",f=>{const k=e.id,E=_(k);P(k,{...E,RECORD:f.data})}),{setRequest:I}=t.inject(ce,{setRequest:({id:f,sortNum:k,requestFn:E})=>{}});return I({id:e.id,requestFn:y,sortNum:e.requestSort}),oe(e,{refreshData:y,click:T,resetRecord:()=>{const f=e.id,k=_(f);P(f,{...k,RECORD:""})}}),{option:m,style:n,refreshData:y,click:T,loading:i,visible:l,hideModal:r}}}),zr="";function Hl(e,o,n,a,l,r){const c=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{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(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const so=U(G(Wl,[["render",Hl]])),Pt={...K,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",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=Z(Pt),co=["click","refreshData"];he.use([Te.CanvasRenderer,Ce.ScatterChart,Q.ToolboxComponent,Q.TitleComponent,Q.TooltipComponent,Q.LegendComponent]);const Zl=t.defineComponent({name:"EcanScatter",props:{...Rt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},r=t.computed(()=>{const y=e.xAxisLabelFormatter,x=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(){ze(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(){q.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(_){return Ae(y,_)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(_){return Ae(x,_)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:function(_){var k;const{marker:P,seriesName:T}=_,I=((k=_==null?void 0:_.data)==null?void 0:k.record)??{},{name:w,value:f}=I;return ie(e.tooltipFormatter,{marker:P,seriesName:T,a:T,b:w,c:f,...I})},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:c,setGlobalModel:s}=t.inject(te,{getGlobalModel:y=>{},setGlobalModel:(y,x)=>{}}),{pageMode:i}=t.inject(ee,{pageMode:"normal"}),m=(y=[],x)=>{const{name:_="name",value:P="value"}=x||{};n.value=y.map(T=>({value:[T[_],T[P]],record:T}))};t.watch(()=>e.data,y=>{(e.dataType==="static"||t.unref(i)==="design")&&m(y)},{immediate:!0,deep:!0});const d=t.ref(!1),g=fe(e),h=async()=>{var y,x;if(!(e.dataType!=="request"||t.unref(i)==="design")){d.value=!0;try{const _=await g();m((x=(y=_==null?void 0:_.data)==null?void 0:y.data)==null?void 0:x.rows,e.dataFieldNames)}catch(_){console.error(_)}finally{d.value=!1}}},u=ne(e)("click",y=>{const x=e.id,_=c(x);s(x,{..._,RECORD:y==null?void 0:y.data})});oe(e,{refreshData:()=>{h()},click:u});const{setRequest:b}=t.inject(ce,{setRequest:({id:y,sortNum:x,requestFn:_})=>{}});return b({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:r,style:o,click:u,loading:d,visible:a,hideModal:l}}}),Or="";function Jl(e,o,n,a,l,r){const c=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{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(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const mo=U(G(Zl,[["render",Jl]])),Dt={...K,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},$t=Z(Dt),Yl=t.defineComponent({name:"EcanCustomGraph",props:{...$t},components:{Echarts:Se},setup(e){const o=J(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:Oo}}});function Ql(e,o,n,a,l,r){const c=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(c,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const fo=U(G(Yl,[["render",Ql]])),jt={...K,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,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=Z(jt),uo=["refreshData","click","resetRecord"];he.use([Te.CanvasRenderer,Ce.BarChart,Ce.LineChart,Q.TitleComponent,Q.LegendComponent,Q.DatasetComponent,Q.ToolboxComponent]);const Kl=t.defineComponent({name:"EcanComboGraph",props:{...Vt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),r=()=>{l.value=!1},c=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(){ze(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(){q.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 k=f.length;let E="",N=e.tooltipFormatter;N===""&&(N="{marker} {a} {c}");const A=e.seriesTypes;for(let L=0;L<k;L++){const R=A[L],{tooltipFormatter:j}=R||{},{marker:v,seriesName:F,name:z,value:D,data:W}=f[L]||{};L===0&&(E+=`${z}<br/>`),E+=ie(j||N,{marker:v,name:z,value:D,seriesName:F,a:F,b:z,c:D,...W},{useNewline:!0,useSpace:!0}),E+="<br/>"}return E},textStyle:{color:e.tooltipTextStyleColor}},xAxis:{minInterval:e.xAxisMinInterval,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:s}=t.inject(ee,{pageMode:"normal"}),i=(f=[],k=!1)=>{let E;if(e.dataFieldConfigType==="key"){const j=k?e.keyTypeDataFieldNames:null;E=Ee(f,j)}else if(e.dataFieldConfigType==="value"){const j=k?e.valueTypeDataFieldNames:null;E=Be(f,j)}a.value=E.dimensions;const N=E.dataset,A=[],L=N.length,R=e.seriesTypes;for(let j=0;j<L;j++){const v=R[j],{type:F,axisIndex:z}=v||{};let D={type:F,yAxisIndex:z,...N[j]};F==="line"&&(D={...D,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),F==="bar"&&(D={...D,barWidth:e.barWidth}),A.push(D)}n.value=A},m=(f=[],k,E=!1)=>{const A=Ee(f,E?k:null);a.value=A.dimensions;const L=A.dataset,R=[],j=L.length,v=e.seriesTypes;for(let F=0;F<j;F++){const z=v[F];R.push({type:z==null?void 0:z.type,yAxisIndex:z==null?void 0:z.axisIndex,...L[F]})}n.value=R};t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([f])=>{(e.dataType==="static"||t.unref(s)==="design")&&i(f)},{immediate:!0,deep:!0});const d=t.computed(()=>{const f=e.yAxis;return f==null?void 0:f.map(k=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(E){return Ae(k.axisLabelFormatter,E)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),g=t.ref(!1),h=fe(e),p=async()=>{var f,k;if(!(e.dataType!=="request"||t.unref(s)==="design"))try{g.value=!0;const E=await h();i((k=(f=E==null?void 0:E.data)==null?void 0:f.data)==null?void 0:k.rows,!0)}catch(E){console.error(E)}finally{g.value=!1}},u=st(e),C=async()=>{var f,k,E,N,A;if(!(e.dataType!=="indicator"||t.unref(s)==="design"))try{g.value=!0;const L=await u();let R;((E=(k=(f=L==null?void 0:L.data)==null?void 0:f.data)==null?void 0:k.columns)==null?void 0:E.length)>0&&(R={name:L.data.data.columns[0],types:L.data.data.columns.slice(1).map(j=>({label:j,value:j}))}),m((A=(N=L==null?void 0:L.data)==null?void 0:N.data)==null?void 0:A.rows,R,!0)}catch(L){console.error(L)}finally{g.value=!1}},b=()=>{t.unref(s)!=="design"&&(C(),p())},y=()=>{b()},x=ne(e),{getGlobalModel:_,setGlobalModel:P}=t.inject(te,{getGlobalModel:f=>{},setGlobalModel:(f,k)=>{}}),T=x("click",f=>{const k=e.id,E=_(k);P(k,{...E,RECORD:f==null?void 0:f.data})}),{setRequest:I}=t.inject(ce,{setRequest:({id:f,sortNum:k,requestFn:E})=>{}});return I({id:e.id,requestFn:b,sortNum:e.requestSort}),oe(e,{resetRecord:()=>{const f=e.id,k=_(f);P(f,{...k,RECORD:""})},refreshData:y,click:T}),{style:o,option:c,click:T,loading:g,visible:l,hideModal:r}}}),Dr="";function Xl(e,o,n,a,l,r){const c=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{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(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(c,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const go=U(G(Kl,[["render",Xl]])),qt={...K,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},Gt=Z(qt),ho=["click"],ei=t.defineComponent({name:"EcanBorder",props:{...Gt},setup(e){const o=J(e,["background"]),{theme:n}=t.inject(ee,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),r=ne(e)("click",()=>{}),c=t.ref([]);t.watch(()=>e.data,i=>{c.value=i},{immediate:!0,deep:!0}),oe(e,{click:r});const{setGlobalModel:s}=t.inject(te,{setGlobalModel:(i,m)=>{}});return s(e.id,{type:e.type,value:c}),{style:o,click:r,borderStyle:a,theme:n}}}),ti="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",ni="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",jr="",ge=e=>(t.pushScopeId("data-v-f3fc1305"),e=e(),t.popScopeId(),e),oi=ge(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ai=ge(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),li=ge(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ii=ge(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),ri={class:"title-item-wrapper"},si={class:"title-item"},ci=ge(()=>t.createElementVNode("img",{class:"title-decoration-left",src:ti},null,-1)),di={class:"title"},mi=ge(()=>t.createElementVNode("img",{class:"title-decoration-right",src:ni},null,-1)),fi=ge(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ui=ge(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),gi=ge(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),hi=ge(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),yi={key:2,class:"left-title"},bi={class:"title"};function pi(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]=(...c)=>e.click&&e.click(...c))},[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},[oi,ai,li,ii],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",ri,[t.createElementVNode("div",si,[ci,t.createElementVNode("div",di,t.toDisplayString(e.title),1),mi])]),fi,ui,gi,hi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",yi,[t.createElementVNode("div",bi,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const yo=U(G(ei,[["render",pi],["__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=Z(Ut),bo=["showModal"],Ci=t.defineComponent({name:"EcanModal",components:{AModal:q.Modal},props:{...Wt},setup(e){const o=()=>document.getElementById("ProviderConfig")||document.body,n=t.computed(()=>{const z=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[z]}}),a=e.width,l=e.height,r=e.originalWidth,c=e.originalHeight,s=t.ref("80%"),i=t.ref(0),m=t.ref(),d=t.ref(0),g=t.ref({}),h=J(e),p=t.ref({}),u=t.ref(!1),C=t.ref();let b;const y=()=>{m.value=parseFloat(a)/parseFloat(r);const z=parseFloat(l)/parseFloat(c),D=document.body.offsetWidth,W=document.body.offsetHeight;i.value=D*t.unref(m),d.value=W*z,s.value=`${t.unref(m)*100}%`,g.value={width:`${t.unref(i)}px`,height:`${t.unref(d)}px`},p.value={...t.unref(h),backgroundImage:we(e.backgroundImage,!0),transform:`scale(${t.unref(i)/parseFloat(a)},${t.unref(d)/parseFloat(l)})`}},x=ye.debounce(()=>{y()},100),_=()=>{const z=window.MutationObserver;b=new z(x),b.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},P=()=>{b&&(b.disconnect(),b.takeRecords(),b=null)},T=t.ref(!1),{touchRequest:I}=t.inject(ce,{touchRequest:()=>{}}),w=()=>{T.value=!0},f=()=>{T.value=!1},k=()=>{f()},E=()=>{f()},{setModalModel:N,pushUseModalIds:A,popUseModalIds:L}=t.inject(In,{pushUseModalIds:z=>{},popUseModalIds:()=>{},setModalModel:(z,D)=>{}}),R=()=>{const z=e.id;let D=[];const W=e.componentList;Array.isArray(W)&&(D=W.map(X=>X.id),N(z,[...new Set(D)]))};t.watch(()=>T.value,async z=>{z?(u.value=!1,A(e.id),R(),await t.nextTick(()=>{y(),window.addEventListener("resize",x),_(),u.value=!0}),I()):(L(),window.removeEventListener("resize",x),P())});const j=t.computed(()=>t.unref(m)>=1),v=t.computed(()=>e.fullModal),F=t.computed(()=>{let z="ecan-modal";return t.unref(j)&&(z+=" ecan-full-width-modal"),t.unref(v)&&(z+=" ecan-full-modal"),z});return oe(e,{showModal:w}),{modalRef:C,containStyle:g,contentStyle:p,getContainer:o,modalStyle:n,modalWith:s,isFullModal:v,style:h,visible:T,showModal:w,onOk:k,onCancel:E,isFullWidth:j,wrapClassName:F,ready:u}}}),qr="",Gr="";function ki(e,o,n,a,l,r){const c=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(c,{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,(s,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(s.type),t.mergeProps({key:s.id+i},s),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 po=U(G(Ci,[["render",ki],["__scopeId","data-v-0447cd77"]])),Ht={...K,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},Zt=Z(Ht),Co=["tabChange"],Si=t.defineComponent({name:"EcanTabs",props:{...Zt},setup(e){var d;const o=J(e),n=t.ref(0);t.watch(()=>e.activeKey,g=>{n.value=g},{immediate:!0});const a=t.ref([]);t.watch(()=>e.data,g=>{a.value=g},{immediate:!0,deep:!0});const l=g=>n.value===g,r=t.ref(e.value||t.unref(a)[0]&&((d=t.unref(a)[0])==null?void 0:d.value)||""),c=ne(e),{setGlobalModel:s}=t.inject(te,{setGlobalModel:(g,h)=>{}});s(e.id,{value:r,activeKey:n});const{emitRefreshPage:i}=t.inject(Ne,{emitRefreshPage:()=>{}}),m=c("tabChange",(g,h)=>{h!==t.unref(n)&&(r.value=(g==null?void 0:g.value)||"",n.value=h,i())});return oe(e,{tabChange:m}),{style:o,activeKey:n,isActive:l,tabChange:m,myData:a,useImagePath:we}}}),Wr="",wi=["onClick"];function Ai(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,(c,s)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:s,onClick:t.withModifiers(i=>e.tabChange(c,s),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,wi))),128))],4)],4)}const ko=U(G(Si,[["render",Ai],["__scopeId","data-v-3db5a989"]])),Jt={...K,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Yt=Z(Jt),Ti=t.defineComponent({name:"EcanImage",props:{...Yt},setup(e){const o=J(e),n=t.computed(()=>we(e.imgUrl)),{pageMode:a}=t.inject(ee,{pageMode:"normal"});return{style:o,myImgUrl:n,onClick:()=>{if(!e.linkPage&&!e.href)return;const r=e.linkPage||"",c=Bn(t.unref(a),r),s=e.href;let i=s||c;i=ie(i);const m=e.target;m==null||m===""||(m!=="event"?window.open(i,"_"+m):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),Zr="",xi=["src"];function _i(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]=(...c)=>e.onClick&&e.onClick(...c))},null,12,xi)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const So=U(G(Ti,[["render",_i],["__scopeId","data-v-9706b851"]])),Qt={...K,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Kt=Z(Qt),Ei=t.defineComponent({name:"EcanIframe",props:{...Kt},setup(e){const o=J(e),{contextRequestUrl:n}=t.inject(ee,{contextRequestUrl:""}),a=t.computed(()=>{let l=ie(e.link);if(e.linkType==="erd"&&l!=null){let r=t.unref(n);r[r.length-1]==="/"?r+="erdReport":r+="/erdReport",l=`${Ka||r}?_t=0&uid=${l}`}return l});return{style:o,myLink:a}}}),Yr="",Li=["src"];function Ii(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,Li)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const wo=U(G(Ei,[["render",Ii],["__scopeId","data-v-b0be60e8"]])),Xt={...K,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=Z(Xt),Ao=["click","refreshData","resetRecord"],Mi=t.defineComponent({name:"EcanTable",components:{Skeleton:je,AInput:q.Input,ACheckboxGroup:q.CheckboxGroup,ATable:q.Table,ATableSummary:q.TableSummary,ATableSummaryRow:q.TableSummaryRow,ATableSummaryCell:q.TableSummaryCell},props:{...en},setup(e,{expose:o}){const n=J(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)),c=t.ref([]),s=t.ref([]),i=t.ref([]),m=t.ref([]),d=t.ref(0),g=t.ref(1),h=t.computed(()=>e.paginationPageSize),p=t.reactive([]),u=(M=[])=>{if(Array.isArray(M)&&M.length>0){const B=M.length,$=e.columnsFixedNum;for(let V=0;V<B;V++){const O=M[V];V<$?O.fixed="left":O.fixed=!1;const{cellAlign:H="center",cellColor:Y,dataIndex:ae,title:re,tableFilter:le,headerCellAlign:Fe,headerCellColor:Ue}=O;le&&(p.push(ae),O.filterOptionsInputValue="",O.filterCheckboxGroupValue=[],O.customFilterDropdown=!0,O.onFilter=(Oe,on)=>on[ae].toString().toLowerCase().includes(Oe.toLowerCase())),O.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Fe||"center",color:Ue,borderBottomColor:e.borderColor}}),O.customCell=(Oe,on)=>({style:{textAlign:H,color:Y,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(D)===on&&e.clickHighlight},onClick:A("click",()=>{const vo=e.id,qi=R(vo);Oe={dataIndex:ae,title:re,...Oe},j(vo,{...qi,RECORD:Oe})})}),Array.isArray(O.children)&&u(O.children)}}},C=(M=[])=>(e.isUseSeq&&M.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&M.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),u(M),M);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{c.value=C(ye.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([M,B])=>{B==="static"&&(s.value=M)},{immediate:!0});const b=t.ref({}),y=M=>{if(Array.isArray(M)){const B=M.length,$=p,V=$.length,O={};for(let Y=0;Y<B;Y++){const ae=M[Y];for(let re=0;re<V;re++){const le=$[re];if(O[le])O[le].add(ae[le]);else{const Fe=new Set;Fe.add(ae[le]),O[le]=Fe}}}const H={};for(const Y in O)if(Object.prototype.hasOwnProperty.call(O,Y)){const ae=O[Y],re=Array.from(ae);H[Y]=re.map(le=>({label:le,value:le}))}b.value=H}};t.watch(()=>[e.isReverse,c.value,s.value],()=>{const M=t.unref(c),B=t.unref(s);if(y(B),e.isReverse){const{columns:$,dataSource:V}=x(ye.cloneDeep(M),ye.cloneDeep(B));i.value=$,m.value=V}else i.value=M,m.value=B});const x=(M,B)=>{const $=M[0],V=[{title:$.title,dataIndex:"col0",key:"col0",align:"center"}];for(let H=0;H<B.length;H++){const Y=B[H],ae="col"+(H+1);V.push({title:Y[$.dataIndex],dataIndex:ae,key:ae,align:"center"})}const O=[];for(let H=1;H<M.length;H++){const Y=M[H],ae={col0:Y.title};for(let re=0;re<B.length;re++){const le=B[re];ae[`col${re+1}`]=le[Y.dataIndex]}O.push(ae)}return{columns:V,dataSource:O}},_=t.ref(""),P=fe(e),T=t.ref(!1),I=async(M=!0)=>{var B;try{M&&(T.value=!0);let $={};t.unref(_)&&($.orderCondition=t.unref(_)),e.paginationShow&&($={pageNum:t.unref(g),pageSize:t.unref(h),layer:"1",...$});const V=await P($),{rows:O=[],total:H=0}=((B=V==null?void 0:V.data)==null?void 0:B.data)||{};d.value=H,Array.isArray(O)&&(s.value=O)}catch($){console.error($)}finally{T.value=!1}},w=({current:M},B,$)=>{if(g.value=M,$&&Object.keys($).length>0){const{field:V,order:O}=$,Y={ascend:"asc",descend:"desc"}[O];V!=null&&Y!=null&&(_.value=V+" "+Y,g.value=1)}X(!1)},f=t.computed(()=>{const M=e.simple,B=[e.paginationPosition];return e.paginationShow&&{simple:M,position:B,total:t.unref(d),current:t.unref(g),pageSize:t.unref(h),showSizeChanger:!1}}),k=M=>+M==1?"是":+M==0?"否":M,E=(M,B)=>B==null||B===""?M:{money:rt,percentage:qe,contrast:qe,boolean:k}[B](M)||"",N=(M,B)=>{const $=parseFloat(M+"");if(B!=="contrast")return"";switch(!0){case $>=0:return"goUp";case $<0:return"goDown"}},A=ne(e),{pageMode:L}=t.inject(ee,{pageMode:"normal"}),{getGlobalModel:R,setGlobalModel:j}=t.inject(te,{getGlobalModel:M=>{},setGlobalModel:(M,B)=>{}}),v=(M=[],B=[])=>{const $=M.map(V=>({title:V,dataIndex:V,key:V}));c.value=C($),s.value=B},F=zn(e),z=async()=>{var M,B,$,V;try{T.value=!0;const O=await F();v((B=(M=O==null?void 0:O.data)==null?void 0:M.data)==null?void 0:B.columns,(V=($=O==null?void 0:O.data)==null?void 0:$.data)==null?void 0:V.rows)}catch(O){console.error(O)}finally{T.value=!1}},D=t.ref(-1),W=(M,B)=>({onClick:A("rowClick",()=>{const $=e.id,V=R($);j($,{...V,RECORD:M}),D.value=B})}),X=(M=!0)=>{if(t.unref(L)!=="design")switch(e.dataType){case"request":I(M);break;case"indicator":z();break}};oe(e,{resetRecord:()=>{const M=e.id,B=R(M);j(M,{...B,RECORD:""})},refreshData:X});const ji=t.computed(()=>{const M=t.unref(i),B=[];let $=0;for(let O=0;O<M.length;O++){const H=M[O],{isCalcTotal:Y}=H;e.isUseSeq&&O===0?B.push({...H,total:"小计"}):Y?(B.push({...H,index:O,total:0}),$++):B.push({...H})}if($===0)return[];let V=t.unref(m);if(e.paginationShow){const O=(t.unref(g)-1)*t.unref(h),H=O+t.unref(h);V=V.slice(O,H)}for(let O=0;O<B.length;O++){const H=B[O];let Y=0;const{isCalcTotal:ae,dataIndex:re}=H;if(ae===!0){for(let le=0;le<V.length;le++){const Ue=+V[le][re];isNaN(Ue)||(Y=new zo.Big(Y).add(Ue).toNumber())}H.total=Y}}return B}),{setRequest:Vi}=t.inject(ce,{setRequest:({id:M,sortNum:B,requestFn:$})=>{}});return Vi({id:e.id,requestFn:X,sortNum:e.requestSort}),o({refreshData:X}),{x:l,y:r,style:n,customRow:W,pagination:f,formatFn:E,contrastClass:N,tableChange:w,summaryList:ji,loading:T,onTouchHrefEvent:(M,B="")=>{M==="event"&&window.parent.postMessage({type:"openPage",url:B},"*")},handleHref:(M="",B)=>ie(M,B),handleHrefTarget:M=>{if(M!=="event")return{self:"_self",blank:"_blank"}[M]},useRowIndex:D,tableColumns:i,tableDataSource:m,useFilterOptions:M=>{const B=M.dataIndex;if(typeof B=="string"){let $=t.unref(b)[B];const V=t.unref(M.filterOptionsInputValue).trim();return Array.isArray($)?($=$.filter(O=>typeof O.label=="string"?O.label.toLowerCase().includes(V.toLowerCase()):!0),$):[]}return[]},useSetSelectedKeys:(M,B)=>{M(B.filterCheckboxGroupValue)},onResetFilter:(M,B)=>{M({confirm:!0}),B.filterOptionsInputValue="",B.filterCheckboxGroupValue=[]},onSearchFilterOptions:()=>{}}}}),Kr="",Xr="",vi=t.createTextVNode(" 搜索 "),Ni=t.createTextVNode(" 重置 "),Bi={key:0},zi={key:1,class:"action-list"},Fi=["href","target","onClick"];function Oi(e,o,n,a,l,r){const c=t.resolveComponent("a-input"),s=t.resolveComponent("a-checkbox-group"),i=t.resolveComponent("a-button"),m=t.resolveComponent("a-table-summary-cell"),d=t.resolveComponent("a-table-summary-row"),g=t.resolveComponent("a-table-summary"),h=t.resolveComponent("a-table"),p=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(p,{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:u,selectedKeys:C,setSelectedKeys:b,confirm:y,clearFilters:x})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(c,{value:u.filterOptionsInputValue,"onUpdate:value":_=>u.filterOptionsInputValue=_,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(s,{value:u.filterCheckboxGroupValue,"onUpdate:value":_=>u.filterCheckboxGroupValue=_,class:"filter-checkbox",options:e.useFilterOptions(u),onChange:_=>e.useSetSelectedKeys(b,u)},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(()=>[vi]),_:2},1032,["onClick"]),t.createVNode(i,{size:"small",style:{width:"90px"},onClick:_=>e.onResetFilter(x,u)},{default:t.withCtx(()=>[Ni]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:u,index:C,text:b,record:y})=>[u.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",Bi,t.toDisplayString(C+1),1)):t.createCommentVNode("",!0),u.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",zi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(x,_)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:_},[t.createElementVNode("a",{href:e.handleHref(x.href,y),target:e.handleHrefTarget(x.target),style:t.normalizeStyle({color:x.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:P=>e.onTouchHrefEvent(x.target,e.handleHref(x.href,y))},t.toDisplayString(x.title),13,Fi)]))),128))])):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass([e.contrastClass(b,u.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(u.format!=null?e.formatFn(b,u.format):b),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(g,{key:0},{default:t.withCtx(()=>[t.createVNode(d,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(u,C)=>(t.openBlock(),t.createBlock(m,{key:C,index:C,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:u.cellAlign||"center",color:u.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(u.total,u.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString((u.format!=null||u.format!=="")&&e.formatFn(u.total,u.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 To=U(G(Mi,[["render",Oi],["__scopeId","data-v-c77bd76b"]])),tn={...K,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},nn=Z(tn);he.use([Te.CanvasRenderer,Ce.MapChart,Ce.ScatterChart,Q.VisualMapComponent,Q.TooltipComponent,Q.GraphicComponent]);const Pi=t.defineComponent({name:"EcanMap",components:{Echarts:Se},props:{...nn},setup(e){const o=J(e,["backgroundImage"]),n=t.ref(),a=t.computed(()=>we(e.geoBackgroundImage)),l=t.computed(()=>we(e.backgroundImage)),r=t.computed(()=>e.geoBackgroundImage?{image:t.unref(n),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),c=t.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+we(d):"circle"}),s=t.computed(()=>{const d=e.geoCenter;let g;return typeof d=="string"&&d!==""&&(g=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:g,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(c),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 g;const d=e.mapJson;if(d!=null&&d.path){const h=await ue(((g=window==null?void 0:window.config)==null?void 0:g.uploadPath)+d.path);he.registerMap("map",(h==null?void 0:h.data)||{})}i.value=!0};return t.watch(()=>e.mapJson,()=>{m()},{immediate:!0,deep:!0}),{option:s,style:o,isLoadedData:i,geoBackgroundImageRef:n,myGeoBackgroundImage:a}}}),ts="",Ri=["src"];function Di(e,o,n,a,l,r){const c=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(c,{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,Ri),[[t.vShow,!1]])],4)}const xo=U(G(Pi,[["render",Di],["__scopeId","data-v-1eea2b3c"]])),_o=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:so,EcanBorder:yo,EcanButton:eo,EcanCheckbox:no,EcanComboGraph:go,EcanCustomGraph:fo,EcanDatePicker:Zn,EcanIframe:wo,EcanImage:So,EcanInput:Wn,EcanLine:io,EcanList:Vn,EcanMap:xo,EcanModal:po,EcanPageConfig:Fn,EcanPie:ao,EcanProportion:Gn,EcanProviderConfig:On,EcanRangePicker:Kn,EcanScatter:mo,EcanScrollText:Dn,EcanSelect:Yn,EcanTable:To,EcanTabs:ko,EcanText:Rn,EcanTimeDisplay:$n,barComponentProps:Ot,barEvents:ro,barProps:Ft,borderComponentProps:Gt,borderEvents:ho,borderProps:qt,buttonComponentProps:Lt,buttonEvents:Xn,buttonProps:Et,checkboxComponentProps:Mt,checkboxEvents:to,checkboxProps:It,comboGraphComponentProps:Vt,comboGraphEvents:uo,comboGraphProps:jt,customGraphComponentProps:$t,customGraphProps:Dt,datePickerComponentProps:wt,datePickerEvents:Hn,datePickerProps:St,iframeComponentProps:Kt,iframeProps:Qt,imageComponentProps:Yt,imageProps:Jt,inputComponentProps:kt,inputEvents:Un,inputProps:Ct,lineComponentProps:zt,lineEvents:lo,lineProps:Bt,listComponentProps:yt,listEvents:jn,listProps:ht,mapComponentProps:nn,mapProps:tn,modalComponentProps:Wt,modalEvents:bo,modalProps:Ut,pageConfig:at,pageConfigComponentProps:lt,pieComponentProps:Nt,pieEvents:oo,pieProps:vt,proportionComponentProps:pt,proportionEvents:qn,proportionProps:bt,providerConfig:ct,providerConfigComponentProps:dt,rangePickerComponentProps:_t,rangePickerEvents:Qn,rangePickerProps:xt,scatterComponentProps:Rt,scatterEvents:co,scatterProps:Pt,selectComponentProps:Tt,selectEvents:Jn,selectProps:At,tableComponentProps:en,tableEvents:Ao,tableProps:Xt,tabsComponentProps:Zt,tabsEvents:Co,tabsProps:Ht,textComponentProps:ft,textEvents:Pn,textProps:mt,timeDisplayComponentProps:gt,timeDisplayProps:ut},Symbol.toStringTag,{value:"Module"})),$i={install:e=>{Object.keys(_o).forEach(o=>{const n=_o[o];n.install&&e.use(n)})}};S.EcanBar=so,S.EcanBorder=yo,S.EcanButton=eo,S.EcanCheckbox=no,S.EcanComboGraph=go,S.EcanCustomGraph=fo,S.EcanDatePicker=Zn,S.EcanIframe=wo,S.EcanImage=So,S.EcanInput=Wn,S.EcanLine=io,S.EcanList=Vn,S.EcanMap=xo,S.EcanModal=po,S.EcanPageConfig=Fn,S.EcanPie=ao,S.EcanProportion=Gn,S.EcanProviderConfig=On,S.EcanRangePicker=Kn,S.EcanScatter=mo,S.EcanScrollText=Dn,S.EcanSelect=Yn,S.EcanTable=To,S.EcanTabs=ko,S.EcanText=Rn,S.EcanTimeDisplay=$n,S.barComponentProps=Ot,S.barEvents=ro,S.barProps=Ft,S.borderComponentProps=Gt,S.borderEvents=ho,S.borderProps=qt,S.buttonComponentProps=Lt,S.buttonEvents=Xn,S.buttonProps=Et,S.checkboxComponentProps=Mt,S.checkboxEvents=to,S.checkboxProps=It,S.comboGraphComponentProps=Vt,S.comboGraphEvents=uo,S.comboGraphProps=jt,S.customGraphComponentProps=$t,S.customGraphProps=Dt,S.datePickerComponentProps=wt,S.datePickerEvents=Hn,S.datePickerProps=St,S.default=$i,S.iframeComponentProps=Kt,S.iframeProps=Qt,S.imageComponentProps=Yt,S.imageProps=Jt,S.inputComponentProps=kt,S.inputEvents=Un,S.inputProps=Ct,S.lineComponentProps=zt,S.lineEvents=lo,S.lineProps=Bt,S.listComponentProps=yt,S.listEvents=jn,S.listProps=ht,S.mapComponentProps=nn,S.mapProps=tn,S.modalComponentProps=Wt,S.modalEvents=bo,S.modalProps=Ut,S.pageConfig=at,S.pageConfigComponentProps=lt,S.pieComponentProps=Nt,S.pieEvents=oo,S.pieProps=vt,S.proportionComponentProps=pt,S.proportionEvents=qn,S.proportionProps=bt,S.providerConfig=ct,S.providerConfigComponentProps=dt,S.rangePickerComponentProps=_t,S.rangePickerEvents=Qn,S.rangePickerProps=xt,S.scatterComponentProps=Rt,S.scatterEvents=co,S.scatterProps=Pt,S.selectComponentProps=Tt,S.selectEvents=Jn,S.selectProps=At,S.tableComponentProps=en,S.tableEvents=Ao,S.tableProps=Xt,S.tabsComponentProps=Zt,S.tabsEvents=Co,S.tabsProps=Ht,S.textComponentProps=ft,S.textEvents=Pn,S.textProps=mt,S.timeDisplayComponentProps=gt,S.timeDisplayProps=ut,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
60
|
//# sourceMappingURL=index.umd.js.map
|