@ecan-bi/datav 1.1.54 → 1.1.56
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 +2022 -1979
- 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 +5 -3
- package/types/control/range-picker/RangePicker.vue.d.ts +19 -1
- package/types/control/range-picker/index.d.ts +18 -0
- package/types/control/range-picker/props.d.ts +10 -0
- package/types/graph/bar/Bar.vue.d.ts +8 -0
- package/types/graph/bar/index.d.ts +8 -0
- package/types/graph/bar/props.d.ts +5 -0
- package/types/graph/combo-graph/ComboGraph.vue.d.ts +8 -0
- package/types/graph/combo-graph/index.d.ts +8 -0
- package/types/graph/combo-graph/props.d.ts +5 -0
- package/types/graph/line/Line.vue.d.ts +8 -0
- package/types/graph/line/index.d.ts +8 -0
- package/types/graph/line/props.d.ts +6 -0
- package/types/hooks/useVariablesInText.d.ts +7 -2
- package/types/table/table/Table.vue.d.ts +15 -5
- package/types/table/table/index.d.ts +15 -5
- package/types/table/table/props.d.ts +7 -2
- package/types/utils/runCode.d.ts +3 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/datav@1.1.
|
|
2
|
-
(function(k,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("dayjs"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/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","dayjs","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/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):(k=typeof globalThis<"u"?globalThis:k||self,t(k["@ecan/bi-datav"]={},k.vue,k["echarts/core"],k["resize-detector"],k["ant-design-vue"],null,null,k["lodash-es"],k.axios,k.dayjs,k.mitt,null,null,null,k["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,k["echarts/renderers"],k["echarts/charts"],k["echarts/components"],k.echarts,null,null,k.big.js))})(this,function(k,t,he,ln,q,Ui,Wi,pe,rn,ye,Bo,Hi,Zi,Ji,sn,Yi,Qi,Ki,xe,Ce,Q,zo,Xi,er,Fo){var Lo,Io,Mo,vo;"use strict";function Oo(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 Po=Oo(zo),Ro=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Do(e,o){function n(l){return(...s)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[l].apply(e.value,s)}}function a(){const l=Object.create(null);return Ro.forEach(s=>{l[s]=n(s)}),l}return a()}function $o(e,o,n){let a=null;t.watch([n,e,o],([l,s,r],c,i)=>{l&&s&&r&&(a=he.throttle(()=>{s.resize()},100),ln.addListener(l,a)),i(()=>{a&&l&&ln.removeListener(l,a)})})}const jo={autoresize:Boolean},Vo="ecLoadingOptions";function qo(e,o,n){const a=t.inject(Vo,{}),l=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const s=e.value;s&&(o.value?s.showLoading(l.value):s.hideLoading())})}const Go={loading:Boolean,loadingOptions:Object},tr="",Uo=/^on[^a-z]/,Wo=e=>Uo.test(e);function Ho(e){const o={};for(const n in e)Wo(n)||(o[n]=e[n]);return o}const Zo="x-vue-echarts",Jo="ecTheme",Yo="ecInitOptions",Qo="ecUpdateOptions",Se=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...jo,...Go},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),l=t.shallowRef(),s=t.shallowRef(),r=t.inject(Jo,null),c=t.inject(Yo,null),i=t.inject(Qo,null),{autoresize:m,manualUpdate:d,loading:h,loadingOptions:y}=t.toRefs(e),g=t.computed(()=>s.value||e.option||Object.create(null)),u=t.computed(()=>e.theme||t.unref(r)||{}),b=t.computed(()=>e.initOptions||t.unref(c)||{}),C=t.computed(()=>e.updateOptions||t.unref(i)||{}),p=t.computed(()=>Ho(o));function T(x){if(l.value||!a.value)return;const f=l.value=he.init(a.value,u.value,b.value);e.group&&(f.group=e.group);let S=n;S||(S={},Object.keys(o).filter(w=>w.indexOf("on")===0&&w.length>2).forEach(w=>{const L=w.charAt(2).toLowerCase()+w.slice(3);S[L]=o[w]})),Object.keys(S).forEach(w=>{const L=S[w];L&&(w.indexOf("zr:")===0?f.getZr().on(w.slice(3).toLowerCase(),L):f.on(w.toLowerCase(),L))});function E(){if(f&&!f.isDisposed())try{f.resize()}catch(w){if(w.message==="Cannot read property 'get' of undefined")return;throw w}}function N(){f.setOption(x||g.value,C.value)}m.value?t.nextTick(()=>{E(),N()}):N()}function _(x,f){e.manualUpdate&&(s.value=x),l.value?l.value.setOption(x,f||{}):T(x)}function P(){l.value&&(l.value.dispose(),l.value=void 0)}let A=null;t.watch(d,x=>{typeof A=="function"&&(A(),A=null),x||(A=t.watch(()=>e.option,f=>{f&&(l.value?l.value.setOption(f,C.value):T())},{deep:!0}))},{immediate:!0}),t.watch([u,b],()=>{P(),T()},{deep:!0}),t.watchEffect(()=>{e.group&&l.value&&(l.value.group=e.group)});const I=Do(l,T);return qo(l,h,y),$o(l,m,a),t.onMounted(()=>{e.option&&T()}),t.onUnmounted(P),{chart:l,root:a,setOption:_,nonEventAttrs:p,...I}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(Zo,e)}});function de(e,o){Ko(e)&&(e="100%");var n=Xo(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 Ko(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Xo(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ea(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 He(e){return e.length===1?"0"+e:String(e)}function ta(e,o,n){return{r:de(e,255)*255,g:de(o,255)*255,b:de(n,255)*255}}function Ze(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 na(e,o,n){var a,l,s;if(e=de(e,360),o=de(o,100),n=de(n,100),o===0)l=n,s=n,a=n;else{var r=n<.5?n*(1+o):n+o-n*o,c=2*n-r;a=Ze(c,r,e+1/3),l=Ze(c,r,e),s=Ze(c,r,e-1/3)}return{r:a*255,g:l*255,b:s*255}}function oa(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),s=0,r=a,c=a-l,i=a===0?0:c/a;if(a===l)s=0;else{switch(a){case e:s=(o-n)/c+(o<n?6:0);break;case o:s=(n-e)/c+2;break;case n:s=(e-o)/c+4;break}s/=6}return{h:s,s:i,v:r}}function aa(e,o,n){e=de(e,360)*6,o=de(o,100),n=de(n,100);var a=Math.floor(e),l=e-a,s=n*(1-o),r=n*(1-l*o),c=n*(1-(1-l)*o),i=a%6,m=[n,r,s,s,c,n][i],d=[c,n,n,r,s,s][i],h=[s,s,c,n,n,r][i];return{r:m*255,g:d*255,b:h*255}}function la(e,o,n,a){var l=[He(Math.round(e).toString(16)),He(Math.round(o).toString(16)),He(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 cn(e){return se(e)/255}function se(e){return parseInt(e,16)}var dn={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,s=null,r=!1,c=!1;return typeof e=="string"&&(e=sa(e)),typeof e=="object"&&(be(e.r)&&be(e.g)&&be(e.b)?(o=ta(e.r,e.g,e.b),r=!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=aa(e.h,a,l),r=!0,c="hsv"):be(e.h)&&be(e.s)&&be(e.l)&&(a=Pe(e.s),s=Pe(e.l),o=na(e.h,a,s),r=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ea(n),{ok:r,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 ia="[-\\+]?\\d+%?",ra="[-\\+]?\\d*\\.\\d+%?",ke="(?:".concat(ra,")|(?:").concat(ia,")"),Je="[\\s|\\(]+(".concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")\\s*\\)?"),Ye="[\\s|\\(]+(".concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")\\s*\\)?"),me={CSS_UNIT:new RegExp(ke),rgb:new RegExp("rgb"+Je),rgba:new RegExp("rgba"+Ye),hsl:new RegExp("hsl"+Je),hsla:new RegExp("hsla"+Ye),hsv:new RegExp("hsv"+Je),hsva:new RegExp("hsva"+Ye),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 sa(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(dn[e])e=dn[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:cn(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:cn(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,mn=.16,ca=.05,da=.05,ma=.15,fn=5,un=4,fa=[{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 gn(e){var o=e.r,n=e.g,a=e.b,l=oa(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(la(o,n,a,!1))}function ua(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 hn(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 yn(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-mn*o:o===un?a=e.s+mn:a=e.s+ca*o,a>1&&(a=1),n&&o===fn&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function bn(e,o,n){var a;return n?a=e.v+da*o:a=e.v-ma*o,a>1&&(a=1),Number(a.toFixed(2))}function Qe(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Le(e),l=fn;l>0;l-=1){var s=gn(a),r=De(Le({h:hn(s,l,!0),s:yn(s,l,!0),v:bn(s,l,!0)}));n.push(r)}n.push(De(a));for(var c=1;c<=un;c+=1){var i=gn(a),m=De(Le({h:hn(i,c),s:yn(i,c),v:bn(i,c)}));n.push(m)}return o.theme==="dark"?fa.map(function(d){var h=d.index,y=d.opacity,g=De(ua(Le(o.backgroundColor||"#141414"),Le(n[h]),y*100));return g}):n}var Ke={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"},Xe={},et={};Object.keys(Ke).forEach(function(e){Xe[e]=Qe(Ke[e]),Xe[e].primary=Xe[e][5],et[e]=Qe(Ke[e],{theme:"dark",backgroundColor:"#141414"}),et[e].primary=et[e][5]});var pn=[],Ie=[],ga="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function ha(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function ya(e,o){if(o=o||{},e===void 0)throw new Error(ga);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=pn.indexOf(a);l===-1&&(l=pn.push(a)-1,Ie[l]={});var s;return Ie[l]!==void 0&&Ie[l][n]!==void 0?s=Ie[l][n]:(s=Ie[l][n]=ha(),n==="prepend"?a.insertBefore(s,a.childNodes[0]):a.appendChild(s)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),s.styleSheet?s.styleSheet.cssText+=e:s.textContent+=e,s}function Cn(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){ba(e,l,n[l])})}return e}function ba(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function pa(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function Ca(e,o){pa(e,"[@ant-design/icons-vue] ".concat(o))}function kn(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function tt(e,o,n){return n?t.h(e.tag,Cn({key:o},n,e.attrs),(e.children||[]).map(function(a,l){return tt(a,"".concat(o,"-").concat(e.tag,"-").concat(l))})):t.h(e.tag,Cn({key:o},e.attrs),(e.children||[]).map(function(a,l){return tt(a,"".concat(o,"-").concat(e.tag,"-").concat(l))}))}function Sn(e){return Qe(e)[0]}function wn(e){return e?Array.isArray(e)?e:[e]:[]}var ka=`
|
|
1
|
+
/*! @ecan-bi/datav@1.1.56 */
|
|
2
|
+
(function(C,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("dayjs"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/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("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","axios","dayjs","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/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","xlsx","big.js"],t):(C=typeof globalThis<"u"?globalThis:C||self,t(C["@ecan/bi-datav"]={},C.Vue,C["echarts/core"],C.ResizeDetector,C.AntDesignVue,null,null,C.LodashEs,C.Axios,C.Dayjs,C.Mitt,null,null,null,C["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,C["echarts/renderers"],C["echarts/charts"],C["echarts/components"],C.Echarts,null,null,C.Xlsx,C.big.js))})(this,function(C,t,ye,ln,q,Zi,Ji,pe,rn,se,zo,Yi,Qi,Xi,sn,Ki,er,tr,Te,Ce,Q,Fo,nr,or,cn,Oo){var Io,Mo,No,vo;"use strict";function Po(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 Ro=Po(Fo),Do=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function $o(e,o){function n(l){return(...s)=>{if(e.value||o(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[l].apply(e.value,s)}}function a(){const l=Object.create(null);return Do.forEach(s=>{l[s]=n(s)}),l}return a()}function jo(e,o,n){let a=null;t.watch([n,e,o],([l,s,c],r,i)=>{l&&s&&c&&(a=ye.throttle(()=>{s.resize()},100),ln.addListener(l,a)),i(()=>{a&&l&&ln.removeListener(l,a)})})}const Vo={autoresize:Boolean},qo="ecLoadingOptions";function Go(e,o,n){const a=t.inject(qo,{}),l=t.computed(()=>({...t.unref(a),...n==null?void 0:n.value}));t.watchEffect(()=>{const s=e.value;s&&(o.value?s.showLoading(l.value):s.hideLoading())})}const Uo={loading:Boolean,loadingOptions:Object},ar="",Wo=/^on[^a-z]/,Ho=e=>Wo.test(e);function Zo(e){const o={};for(const n in e)Ho(n)||(o[n]=e[n]);return o}const Jo="x-vue-echarts",Yo="ecTheme",Qo="ecInitOptions",Xo="ecUpdateOptions",we=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Vo,...Uo},inheritAttrs:!1,setup(e,{attrs:o,listeners:n}){const a=t.shallowRef(),l=t.shallowRef(),s=t.shallowRef(),c=t.inject(Yo,null),r=t.inject(Qo,null),i=t.inject(Xo,null),{autoresize:m,manualUpdate:d,loading:y,loadingOptions:h}=t.toRefs(e),f=t.computed(()=>s.value||e.option||Object.create(null)),u=t.computed(()=>e.theme||t.unref(c)||{}),b=t.computed(()=>e.initOptions||t.unref(r)||{}),k=t.computed(()=>e.updateOptions||t.unref(i)||{}),p=t.computed(()=>Zo(o));function x(w){if(l.value||!a.value)return;const g=l.value=ye.init(a.value,u.value,b.value);e.group&&(g.group=e.group);let S=n;S||(S={},Object.keys(o).filter(A=>A.indexOf("on")===0&&A.length>2).forEach(A=>{const I=A.charAt(2).toLowerCase()+A.slice(3);S[I]=o[A]})),Object.keys(S).forEach(A=>{const I=S[A];I&&(A.indexOf("zr:")===0?g.getZr().on(A.slice(3).toLowerCase(),I):g.on(A.toLowerCase(),I))});function L(){if(g&&!g.isDisposed())try{g.resize()}catch(A){if(A.message==="Cannot read property 'get' of undefined")return;throw A}}function B(){g.setOption(w||f.value,k.value)}m.value?t.nextTick(()=>{L(),B()}):B()}function T(w,g){e.manualUpdate&&(s.value=w),l.value?l.value.setOption(w,g||{}):x(w)}function v(){l.value&&(l.value.dispose(),l.value=void 0)}let E=null;t.watch(d,w=>{typeof E=="function"&&(E(),E=null),w||(E=t.watch(()=>e.option,g=>{g&&(l.value?l.value.setOption(g,k.value):x())},{deep:!0}))},{immediate:!0}),t.watch([u,b],()=>{v(),x()},{deep:!0}),t.watchEffect(()=>{e.group&&l.value&&(l.value.group=e.group)});const _=$o(l,x);return Go(l,y,h),jo(l,m,a),t.onMounted(()=>{e.option&&x()}),t.onUnmounted(v),{chart:l,root:a,setOption:T,nonEventAttrs:p,..._}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(Jo,e)}});function me(e,o){Ko(e)&&(e="100%");var n=ea(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 Ko(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ea(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ta(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Re(e){return e<=1?"".concat(Number(e)*100,"%"):e}function He(e){return e.length===1?"0"+e:String(e)}function na(e,o,n){return{r:me(e,255)*255,g:me(o,255)*255,b:me(n,255)*255}}function Ze(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 oa(e,o,n){var a,l,s;if(e=me(e,360),o=me(o,100),n=me(n,100),o===0)l=n,s=n,a=n;else{var c=n<.5?n*(1+o):n+o-n*o,r=2*n-c;a=Ze(r,c,e+1/3),l=Ze(r,c,e),s=Ze(r,c,e-1/3)}return{r:a*255,g:l*255,b:s*255}}function aa(e,o,n){e=me(e,255),o=me(o,255),n=me(n,255);var a=Math.max(e,o,n),l=Math.min(e,o,n),s=0,c=a,r=a-l,i=a===0?0:r/a;if(a===l)s=0;else{switch(a){case e:s=(o-n)/r+(o<n?6:0);break;case o:s=(n-e)/r+2;break;case n:s=(e-o)/r+4;break}s/=6}return{h:s,s:i,v:c}}function la(e,o,n){e=me(e,360)*6,o=me(o,100),n=me(n,100);var a=Math.floor(e),l=e-a,s=n*(1-o),c=n*(1-l*o),r=n*(1-(1-l)*o),i=a%6,m=[n,c,s,s,r,n][i],d=[r,n,n,c,s,s][i],y=[s,s,r,n,n,c][i];return{r:m*255,g:d*255,b:y*255}}function ia(e,o,n,a){var l=[He(Math.round(e).toString(16)),He(Math.round(o).toString(16)),He(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 dn(e){return ce(e)/255}function ce(e){return parseInt(e,16)}var mn={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 Ie(e){var o={r:0,g:0,b:0},n=1,a=null,l=null,s=null,c=!1,r=!1;return typeof e=="string"&&(e=ca(e)),typeof e=="object"&&(be(e.r)&&be(e.g)&&be(e.b)?(o=na(e.r,e.g,e.b),c=!0,r=String(e.r).substr(-1)==="%"?"prgb":"rgb"):be(e.h)&&be(e.s)&&be(e.v)?(a=Re(e.s),l=Re(e.v),o=la(e.h,a,l),c=!0,r="hsv"):be(e.h)&&be(e.s)&&be(e.l)&&(a=Re(e.s),s=Re(e.l),o=oa(e.h,a,s),c=!0,r="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=ta(n),{ok:c,format:e.format||r,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 ra="[-\\+]?\\d+%?",sa="[-\\+]?\\d*\\.\\d+%?",ke="(?:".concat(sa,")|(?:").concat(ra,")"),Je="[\\s|\\(]+(".concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")\\s*\\)?"),Ye="[\\s|\\(]+(".concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")[,|\\s]+(").concat(ke,")\\s*\\)?"),fe={CSS_UNIT:new RegExp(ke),rgb:new RegExp("rgb"+Je),rgba:new RegExp("rgba"+Ye),hsl:new RegExp("hsl"+Je),hsla:new RegExp("hsla"+Ye),hsv:new RegExp("hsv"+Je),hsva:new RegExp("hsva"+Ye),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 ca(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var o=!1;if(mn[e])e=mn[e],o=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=fe.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=fe.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=fe.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=fe.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=fe.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=fe.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=fe.hex8.exec(e),n?{r:ce(n[1]),g:ce(n[2]),b:ce(n[3]),a:dn(n[4]),format:o?"name":"hex8"}:(n=fe.hex6.exec(e),n?{r:ce(n[1]),g:ce(n[2]),b:ce(n[3]),format:o?"name":"hex"}:(n=fe.hex4.exec(e),n?{r:ce(n[1]+n[1]),g:ce(n[2]+n[2]),b:ce(n[3]+n[3]),a:dn(n[4]+n[4]),format:o?"name":"hex8"}:(n=fe.hex3.exec(e),n?{r:ce(n[1]+n[1]),g:ce(n[2]+n[2]),b:ce(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function be(e){return Boolean(fe.CSS_UNIT.exec(String(e)))}var De=2,fn=.16,da=.05,ma=.05,fa=.15,un=5,gn=4,ua=[{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 hn(e){var o=e.r,n=e.g,a=e.b,l=aa(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function $e(e){var o=e.r,n=e.g,a=e.b;return"#".concat(ia(o,n,a,!1))}function ga(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 yn(e,o,n){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=n?Math.round(e.h)-De*o:Math.round(e.h)+De*o:a=n?Math.round(e.h)+De*o:Math.round(e.h)-De*o,a<0?a+=360:a>=360&&(a-=360),a}function bn(e,o,n){if(e.h===0&&e.s===0)return e.s;var a;return n?a=e.s-fn*o:o===gn?a=e.s+fn:a=e.s+da*o,a>1&&(a=1),n&&o===un&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function pn(e,o,n){var a;return n?a=e.v+ma*o:a=e.v-fa*o,a>1&&(a=1),Number(a.toFixed(2))}function Qe(e){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Ie(e),l=un;l>0;l-=1){var s=hn(a),c=$e(Ie({h:yn(s,l,!0),s:bn(s,l,!0),v:pn(s,l,!0)}));n.push(c)}n.push($e(a));for(var r=1;r<=gn;r+=1){var i=hn(a),m=$e(Ie({h:yn(i,r),s:bn(i,r),v:pn(i,r)}));n.push(m)}return o.theme==="dark"?ua.map(function(d){var y=d.index,h=d.opacity,f=$e(ga(Ie(o.backgroundColor||"#141414"),Ie(n[y]),h*100));return f}):n}var Xe={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={},et={};Object.keys(Xe).forEach(function(e){Ke[e]=Qe(Xe[e]),Ke[e].primary=Ke[e][5],et[e]=Qe(Xe[e],{theme:"dark",backgroundColor:"#141414"}),et[e].primary=et[e][5]});var Cn=[],Me=[],ha="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function ya(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function ba(e,o){if(o=o||{},e===void 0)throw new Error(ha);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Cn.indexOf(a);l===-1&&(l=Cn.push(a)-1,Me[l]={});var s;return Me[l]!==void 0&&Me[l][n]!==void 0?s=Me[l][n]:(s=Me[l][n]=ya(),n==="prepend"?a.insertBefore(s,a.childNodes[0]):a.appendChild(s)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),s.styleSheet?s.styleSheet.cssText+=e:s.textContent+=e,s}function kn(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){pa(e,l,n[l])})}return e}function pa(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Ca(e,o){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(o))}function ka(e,o){Ca(e,"[@ant-design/icons-vue] ".concat(o))}function Sn(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function tt(e,o,n){return n?t.h(e.tag,kn({key:o},n,e.attrs),(e.children||[]).map(function(a,l){return tt(a,"".concat(o,"-").concat(e.tag,"-").concat(l))})):t.h(e.tag,kn({key:o},e.attrs),(e.children||[]).map(function(a,l){return tt(a,"".concat(o,"-").concat(e.tag,"-").concat(l))}))}function wn(e){return Qe(e)[0]}function An(e){return e?Array.isArray(e)?e:[e]:[]}var Sa=`
|
|
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
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
59
|
-
`),st=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},tl=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)}%`},Bn=(e,o)=>typeof e=="string"&&typeof o=="string"?e.toLocaleLowerCase().includes(o.toLocaleLowerCase()):!1,Ge=e=>{const o={dayjs:ye};let n="";const a=[];for(const r in o)n+=`${r},`,a.push(o[r]);n=n.replace(/,$/,"");const l=`function (${n}){return ${e}}`;let s;try{s=Function(`"use strict";return (${l})`)()(...a)}catch{return e}return s},oe=(e="",o={},{useNewline:n=!1,useSpace:a=!1}={})=>{o={...window.config||{},...o};const s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let r=0;r<s.length;r++){const c=s[r];let i=c.slice(1,-1).trim();const m=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,d=i.match(m);for(let h=0;h<d.length;h++){const y=d[h],g=o[y];g!=null&&(i=i.replace(y,g))}/\(.*\)/g.test(i)&&(i=Ge(i)),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:s,requestInterval:r,isOpenRequestTimer:c}=e,{contextRequestUrl:i,pageMode:m,touchEventId:d}=t.inject(ee,{contextRequestUrl:"",pageMode:"normal",touchEventId:""}),{getGlobalModel:h}=t.inject(te,{getGlobalModel:b=>{}}),y=oe(n),g=async(b={})=>{if(!y||!a||!l||t.unref(m)==="design")return;let C={};s.forEach(A=>{const{key:I,value:x}=A;if(typeof x=="object"&&x.id){let f={};const{id:S,prop:E,propKey:N,operate:w}=x;S==="THIS"?f=h(t.unref(d))||{}:f=h(S)||{};const L=t.unref(f[E]);let R=null;if(["date","range"].some(v=>Bn(f==null?void 0:f.type,v))){const{value:v,type:F,mode:z}=w||{};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;C[I]=R}else typeof x=="string"&&(C[I]=oe(x))}),C={...window.config.requestParams,...b,...C};let p="";const T=Object.keys(C),_=T.length-1,P=T.length;T.forEach((A,I)=>{I===0?P!==1?p+=`?${A}=${C[A]}&`:p+=`?${A}=${C[A]}`:I===_?p+=`${A}=${C[A]}`:p+=`${A}=${C[A]}&`});try{const A=["get","head"].includes(a),I=await ue({baseURL:t.unref(i)||"",url:A?y+p:y,method:a,headers:l,data:A?{}:C});return o(I),I}catch(A){console.error(A)}},u=c&&setInterval(g,r*1e3);return t.onUnmounted(()=>{clearInterval(u)}),g},Ee=(e=[],o)=>{let{name:n="name",types:a=[]}=o||{};n=(n==null?void 0:n.trim())||n;const l=new Set,s=new Map,r=e.length,c=a.length;if(r===1){const d=[];for(let y=0;y<c;y++){const g=a[y],{label:u,value:b}=g,C={...e[0],value:e[0][b]};l.add(u),d.push(C)}const h=e[0][n]||"";s.set(h,d)}else for(let d=0;d<r;d++){const h=e[d],y=h[n];l.add(y);for(let g=0;g<c;g++){const u=a[g],{label:b,value:C}=u,p={...h,value:h[C]};if(s.has(b)){const T=s.get(b);T.push(p),s.set(b,T)}else s.set(b,[p])}}const i=Array.from(l),m=[];for(const[d,h]of s)m.push({name:d,data:h});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},zn=(e,o)=>{const n=`${vn}/preview?pageId=${o}`,a=`${vn}/${o}`;return e==="preview"?n:a},ct=e=>{const{getGlobalModel:o}=t.inject(te,{getGlobalModel:i=>{}}),n=i=>{const m=[];return i==null||i.leftAxisList.forEach(d=>{if(d){let h=!1;i.leftAxis.includes(d.name)&&(h=!0);let y={label:d.name,columnName:d.label,aggregate:d.calcValue?d.calcValue:"SUM",order:null,location:"LEFT",show:h};i.source==="INDICATOR_LIB"&&(y.hrpIndexCode=d.indexCode),y=a(d,y),m.push(y)}}),i.rightAxisList.forEach(d=>{let h=!1;i.rightAxis.includes(d.name)&&(h=!0);let y={label:d.name,columnName:d.label,aggregate:"SUM",order:null,location:"LEFT",show:h};y=a(d,y),i.source==="INDICATOR_LIB"&&(y.hrpIndexCode=d.indexCode),m.push(y)}),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 h=0;h<i.length;h++){const{keyName:y,searchName:g,searchType:u,variateName:b,id:C}=i[h],p={alias:y,fieldName:g,rule:u||"NONE",fieldValue:"",valueType:"",variateName:b},T=o(C)||{};if(g==="the_date"?p.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(g)&&(p.valueType="TEXT"),T.type==="ecanDatePicker"){p.dateFormat=T.format;const _=(d=t.unref(T))==null?void 0:d.value.format;typeof _=="function"&&(p.fieldValue=_(T==null?void 0:T.format))}m.push(p)}return m},s=(i,m)=>{const d=m.find(h=>h.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((h,y)=>{y!==0&&(i.customGroup.groupInfoMap[h.key]=h.value)}),i.customGroup.otherGroupName=d.customGroup.otherName||""),i.rangeIndexTypeGuid=d.typeGuid,i.customFilterSqlPart=d.filterSql||""},r=(i,m)=>{for(let d=0;d<i.children.length;d++)if(i.children[d].children.length>0){let h="";i.type==="and"?h="&&":h="||",m.push({conditions:[],join:h}),r(i.children[d],m[m.length-1].conditions)}else if(i.children[d].fieldName){let h="";const y={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(h=JSON.parse(JSON.stringify(i.children[d].fieldValue)),i.children[d].itemType==="DATE")y.dateFormat=i.children[d].format,y.dateCalcTypes=i.children[d].dateCalcTypes,y.calcWays=i.children[d].calcWays,i.children[d].selectType==="time"?i.children[d].absoluteBool&&(h="#######",y.calcWays=i.children[d].calcWays):i.children[d].selectType==="component"&&(h="${"+i.children[d].relateCompent+"}"),y.dateFormat=i.children[d].format,y.dateCalcTypes=i.children[d].dateCalcTypes,y.calcWays=i.children[d].calcWays;else if(Object.prototype.toString.call(h)==="[object Array]"){const g=[];for(let u=0;u<h.length;u++)h[u]!=="全选"&&g.push(h[u]);h=g.join(",")}y.fieldValue=h,i.children.length>1&&d!==i.children.length-1&&(i.type==="and"?y.join="&&":y.join="||"),m.push(y)}},c=(i,m,d)=>{if(!i)return;const h=d[m].find(u=>u.name===i.label);if(!h)return;const y=[],g=h.filterList;if(g)for(let u=0;u<g.length;u++)g[u].children.length>0&&r(g[u],y);return y};return async function(){var A,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 y=n(m);let g;if(Array.isArray(m.series)&&m.series.length>0){const x=(A=m.seriesList)==null?void 0:A.find(f=>{const S=m.series[0];return f.name===S||f.nameBak===S});x!=null&&(g={label:x.name,columnName:x.label})}let u;if(d.length>0){u={label:d[0],columnName:d[0]};const x=((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=x.label,s(u,m.classifyList),u.conditions=c(u,"classifyList",m)||[]}g&&(s(g,m.seriesList),g.conditions=c(g,"seriesList",m)||[]);for(let x=0;x<y.length;x++)y[x].location==="RIGHT"?y[x].conditions=c(y[x],"rightAxisList",m):y[x].conditions=c(y[x],"leftAxisList",m);let b;(m==null?void 0:m.pageMode)==="design"?b=m.sqlConditions??[]:b=l(m==null?void 0:m.relativeList);let C="SQL_VIEW",p="",T="",_="";m.source==="INDICATOR_LIB"&&(C="INDICATOR_LIB",p=m.fixedDimSql,T=m.dataSourceId,_=m.idxLibMode);const P={ecanBar:"bar",ecanLine:"line",ecanPie:"pie",ecanScatter:"scatter"};try{const x=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:y,series:g,sqlConditions:b,source:C,fixedDimSql:p,dataSourceId:T,idxLibMode:_},{headers:{Authentication:x.data.data.token}})}catch(x){console.error(x)}}},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 s=0;s<a;s++){const r=n[s];if(r==null||r==="")break;let c=(l=r.slice(1,-1))==null?void 0:l.trim();c=c==null?void 0:c.replace(/value/g,o);try{let i=c;/\(.*\)/g.test(c)&&(i=Ge(c)),e=e.replace(r,i)}catch{e=e.replace(r,c)}}return e},Fn=(e={})=>{const{requestToken:o}=t.inject(In,{requestToken:()=>{}});e.dataType==="indicator"&&o();const n=(r={})=>{const{label:c,name:i,location:m,show:d,indexCode:h}=r;return{label:c,columnName:i,location:m,show:d,calcType:"COLUMN",hrpIndexCode:h}},a=(r={})=>{const{label:c,name:i,location:m,show:d,indexCode:h,calcType:y="COLUMN",builtInFormula:g,builtInValueSource:u,builtInCalcWay:b,formula:C,conditions:p}=r;return{label:c,columnName:i,location:m,show:d,calcType:y,hrpIndexCode:h,aggregate:"SUM",builtInFormula:g,builtInValueSource:u,builtInCalcWay:b,formula:C,conditions:p}},{getGlobalModel:l}=t.inject(te,{getGlobalModel:r=>{}}),s=(r=[])=>{var m;const c=r.length,i=[];for(let d=0;d<c;d++){const h=r[d],{id:y,conditionLabel:g,conditionKey:u,conditionValueType:b}=h,C={rule:"NONE",label:g,fieldName:u,fieldValue:"",valueType:b},p=l(y)||{};if(Bn(p.type,"date")){const{value:T,format:_}=p||{};C.fieldValue=(m=t.unref(T))==null?void 0:m.format(_),C.dateFormat=_}i.push(C)}return i};return async()=>{var N;const{graphicConfig:r}=e,{source:c,dataViewId:i,plugin:m,layer:d,chartType:h,classificationList:y=[],seriesList:g=[],leftAxisList:u=[],rightAxisList:b=[],queryColumnList:C=[],indicators:p=[],controlList:T=[],dataSourceId:_,idxLibMode:P,preview:A=!1}=r||{};let I;if(Array.isArray(y)&&y.length>0){const w=y.length;for(let L=0;L<w;L++){const R=y[L]||{},{label:j="",name:v="",show:F=!1,sort:z,customGroup:D,conditions:W}=R;if(F||w===1){I={label:j,columnName:v,show:F,sort:z,customGroup:D,conditions:W};break}}}let x;if(Array.isArray(g)&&g.length>0){const w=g.length;for(let L=0;L<w;L++){const R=g[L]||{},{label:j="",name:v="",show:F=!1,sort:z,customGroup:D,conditions:W}=R;if(F||w===1){x={label:j,columnName:v,show:F,sort:z,customGroup:D,conditions:W};break}}}const f=[];C==null||C.forEach(w=>{f.push(n(w))});const S=[];if(u==null||u.forEach(w=>{w.location="LEFT",S.push(a(w))}),b==null||b.forEach(w=>{w.location="RIGHT",S.push(a(w))}),p==null||p.forEach(w=>{w.location="LEFT",S.push(a(w))}),d==="1"&&f.length===0)return;if(d==="2"&&S.length===0)return;let E;(r==null?void 0:r.pageMode)==="design"?E=r.sqlConditions??[]:E=s(T);try{return await ue.post(`${Ve}/diagram`,{source:c,dataViewId:i,plugin:m,layer:d,chartType:h,classification:I,series:x,indicatorList:S,queryColumns:f,pageFlag:!0,sqlConditions:E,dataSourceId:_,idxLibMode:P,preview:A},{headers:{Authentication:(N=window==null?void 0:window.config)==null?void 0:N.indicatorToken,operateContext:"ygt"}})}catch(w){console.error(w)}}},nl=()=>{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 s=l.split("=");if(Array.isArray(s)){const r=s[0],c=s[1];window.config[r]=c}}},ol=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...it},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),s=t.ref(0),r=t.ref(!1),c=t.ref();let i;const m=()=>new Promise(b=>{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||!s.value)&&(l.value=window.screen.width,s.value=window.screen.height),b()})}),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=`${s.value}px`)},h=()=>{const b=document.body.clientWidth,C=document.body.clientHeight,p=n.value||l.value,T=a.value||s.value,_=b/p,P=C/T;c.value&&(c.value.style.transform=`scale(${_}, ${P})`)},y=pe.debounce(async()=>{await m(),h()},100),g=()=>{const b=window.MutationObserver;i=new b(y),i.observe(c.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},u=()=>{i&&(i.disconnect(),i.takeRecords(),i=null)};return t.onMounted(async()=>{r.value=!1,await m(),d(),h(),window.addEventListener("resize",y),g(),r.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",y),u()}),{style:o,container:c,ready:r}}}),or="",al={id:"container",ref:"container"};function ll(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",al,[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 On=U(G(ol,[["render",ll],["__scopeId","data-v-242d350e"]])),dt={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},mt=Z(dt),il=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...mt},setup(e,{expose:o}){nl();const n=t.ref(),a=()=>{n.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>oe(e.contextRequestUrl)),s=t.computed(()=>e.pageMode),r=t.computed(()=>e.theme),c=t.ref("");t.provide(ee,{contextRequestUrl:l,pageMode:s,theme:r,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 h=[],y=()=>{h.pop()},g=v=>{h.push(v)},u=new Map,b=v=>u.get(v),C=(v,F)=>{u.set(v,F)};t.provide(Mn,{popUseModalIds:y,pushUseModalIds:g,getModalModel:b,setModalModel:C});const p=Bo(),T=new Set,_=(v,F)=>{T.add(v),p.on(v,z=>typeof F[z]=="function"&&F[z]()),t.onBeforeUnmount(()=>{P(v)})},P=v=>{T.delete(v),p.off(v)},A=(v,F)=>{if(v==="PAGE"){const z=h.length;let D=[];if(z===0)D=[...T];else{const W=h[z-1];D=[...b(W)]}D.forEach(W=>{p.emit(W,F)})}else p.emit(v,F)};t.provide(rt,{onEvent:_,offEvent:P,emitEvent:A});const I=t.ref(0),x=()=>{I.value=t.unref(I)+1};t.provide(In,{requestToken:x});const f=new Map,S=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]);S.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)})}),w=async()=>{var F;const v=await rn.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=S.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,Ue)=>Ue[0]-X[0]);const W=D.length;try{e.pageMode!=="design"&&t.unref(I)>0&&await w();for(let X=0;X<W;X++){const Ue=D[X][1];await N(Ue)}}catch(X){console.error(X)}finally{f.clear(),F(null)}}});t.provide(ce,{setRequest:E,touchRequest:L});const R=()=>{p.emit(Ne)};t.provide(Ne,{emitRefreshPage:R});const j=v=>{p.on(Ne,()=>v()),t.onMounted(()=>{p.off(Ne)})};return t.onBeforeUnmount(()=>{f==null||f.clear(),S==null||S.clear()}),o({touchRequest:L,getGlobalModel:m,onRefreshPage:j}),{providerConfig:n}}}),rl={id:"ProviderConfig",ref:"providerConfig"};function sl(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",rl,[t.renderSlot(e.$slots,"default")],512)}const Pn=U(G(il,[["render",sl]])),ft={...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:""},ut=Z(ft),Rn=["refreshData","click"],cl="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=",dl="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==",ml=t.defineComponent({name:"EcanText",components:{Skeleton:je},props:{...ut},setup(e){const o=J(e),n=t.ref({});t.watch(()=>[e.data,e.dataType],([y,g])=>{g==="static"&&(n.value=y)},{immediate:!0});const a=t.computed(()=>{var b;const y=t.unref(n);let g=e.text;g=g==null?void 0:g.replace(/\n|\\n/g,"<br/>"),g=g==null?void 0:g.replace(/\s(?!\{) | (?!\})\s/g," ");const u=g.match(/\{(.+?)\}/g);if(u==null||u.length===0)return g;for(let C=0;C<u.length;C++){const p=u[C],T=(b=p==null?void 0:p.slice(1,p.length-1))==null?void 0:b.trim();let _=T;const P=T.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let I=0;I<P.length;I++){const x=P[I],f=y[x];f&&(_=T.replace(x,f))}if(/\(.*\)/g.test(_)){const I=Ge(_);I!=null&&(_=I)}let A=_;if(A===T&&(A=e.variableDefaultValue),A!=null){const I=e.format;I==="percentage"?(A=+A,isNaN(A)?g=g.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`):A>=0?(A=(A*100).toFixed(2),g=g.replace(p,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${cl}"/>${A}%</span>`)):(A=(A*100).toFixed(2),g=g.replace(p,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${dl}"/>${Math.abs(+A)}%</span>`))):e.format==="percent"?(A=+A,isNaN(A)||(A=(A*100).toFixed(2),g=g.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${A}%</span>`))):e.format==="money"?(A=+A,isNaN(A)||(A=st(A),g=g.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${A}</span>`))):I==="thousands"?(A=+A,isNaN(A)||(A=tl(A),g=g.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${A}</span>`))):g=g.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${A}</span>`)}}return`<span>${g}</span>`}),{pageMode:l}=t.inject(ee,{pageMode:"normal"}),s=fe(e),r=t.ref(!1),c=async()=>{var y;if(t.unref(l)!=="design")try{r.value=!0;const g=await s();n.value=((y=g==null?void 0:g.data)==null?void 0:y.data)||{}}catch(g){console.error(g)}finally{r.value=!1}},i=()=>{e.dataType!=="static"&&c()};ae(e,{refreshData:i});const{setRequest:m}=t.inject(ce,{setRequest:({id:y,sortNum:g,requestFn:u})=>{}});m({id:e.id,requestFn:i,sortNum:e.requestSort}),ae(e,{refreshData:i});const h=ne(e)("click",()=>{if(!e.linkPage&&!e.href)return;const y=e.linkPage||"",g=zn(t.unref(l),y),u=e.href;let b=u||g;b=oe(b);const C=e.target;C&&(C!=="event"?window.open(b,"_"+C):window.parent.postMessage({type:"openPage",url:u},"*"))});return{style:o,myText:a,loading:r,click:h}}}),ir="",fl=["innerHTML"];function ul(e,o,n,a,l,s){const r=t.resolveComponent("skeleton");return e.loading?(t.openBlock(),t.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:t.normalizeStyle(e.style)},[t.createVNode(r,{loading:e.loading},null,8,["loading"])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"ecan-text",style:t.normalizeStyle(e.style),innerHTML:e.myText,onClick:o[0]||(o[0]=(...c)=>e.click&&e.click(...c))},null,12,fl))}const Dn=U(G(ml,[["render",ul],["__scopeId","data-v-f9ba6c3f"]])),gl=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),sr="",hl={class:"red"};function yl(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",hl,t.toDisplayString(e.text),1)}const $n=U(G(gl,[["render",yl],["__scopeId","data-v-4dd9c03e"]])),gt={...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"},ht=Z(gt),bl=t.defineComponent({name:"EcanTimeDisplay",props:{...ht},setup(e){const o=J(e),n=t.ref(ye().format(e.format));let a=null;const l=()=>{clearInterval(a),a=null},s=()=>{a&&l(),a=setInterval(()=>{n.value=ye().add(1,"s").format(e.format)},1e3)};return t.onMounted(()=>{s()}),t.onUnmounted(()=>{l()}),{style:o,time:n}}}),dr="";function pl(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const jn=U(G(bl,[["render",pl],["__scopeId","data-v-47d57d2d"]])),yt={...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"}]},bt=Z(yt),Vn=["refreshData","click"],Cl=t.defineComponent({name:"EcanList",components:{Skeleton:je},props:{...bt},setup(e){const o=t.ref(e.data),n=J(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(u,b)=>b==null||b===""?u:{money:st,percentage:qe,contrast:qe}[b](u)||"",s=(u,b)=>{const C=parseFloat(u+"");if(b!=="contrast")return"";switch(!0){case C>=0:return"goUp";case C<0:return"goDown"}},r=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 b=await r();o.value=((u=b==null?void 0:b.data)==null?void 0:u.data.rows)||[]}catch(b){console.error(b)}finally{i.value=!1}},d=()=>{m()},y=ne(e)("click",()=>{});ae(e,{refreshData:d});const{setRequest:g}=t.inject(ce,{setRequest:({id:u,sortNum:b,requestFn:C})=>{}});return g({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,formatFn:l,columnStyle:a,contrastClass:s,dataSource:o,loading:i,click:y}}}),fr="",ur="",kl=e=>(t.pushScopeId("data-v-211785ca"),e=e(),t.popScopeId(),e),Sl={key:0,class:"title"},wl={key:0,class:"ranking"},Al={key:1,class:"ecan-list-content"},xl={key:0,class:"ranking"},Tl=kl(()=>t.createElementVNode("div",{class:"icon"},null,-1)),_l={class:"sort"},El={key:2,class:"empty"};function Ll(e,o,n,a,l,s){const r=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-list",style:t.normalizeStyle(e.style)},[t.createVNode(r,{loading:e.loading},{default:t.withCtx(()=>[e.useTitle?(t.openBlock(),t.createElementBlock("div",Sl,[(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",wl)):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",Al,[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",xl,[Tl,t.createElementVNode("div",_l," 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",El," 暂无数据 "))]),_:1},8,["loading"])],4)}const qn=U(G(Cl,[["render",Ll],["__scopeId","data-v-211785ca"]])),pt={...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"},Ct=Z(pt),Gn=["refreshData","click"],Il=t.defineComponent({name:"EcanProportion",components:{AProgress:q.Progress,Skeleton:je},props:{...Ct},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 s=t.computed(()=>{const u=t.unref(l),b=+e.variableDefaultValue;if(u==null)return isNaN(b)?0:b;const C=e.text.match(/\{.+\}/g)||[];let p;const T=new Set(Object.keys(u));for(let _=0;_<C.length;_++){const P=C[_],A=P.slice(1,P.length-1);if(T.has(A)){p=u[A];break}}return typeof p=="number"?p=p*100:typeof p=="string"&&!isNaN(+p)?p=+p*100:isNaN(b)?p=0:p=b*100,e.decimalFormat&&(p=+p.toFixed(2)),p}),r=t.computed(()=>{var T;let u=e.text;if(u==="")return t.unref(s);const b=e.variableDefaultValue,C=t.unref(l),p=u.match(/\{.+\}/g)||[];for(let _=0;_<p.length;_++){const P=p[_];let A=P.slice(1,P.length-1);const I=A.match(/.*/g);for(let f=0;f<(I==null?void 0:I.length);f++){const S=(T=I[_])==null?void 0:T.trim();C[S]!=null?A=A.replace(S,C[S]):A=A.replace(S,b)}let x=A;try{/\(.*\)/g.test(A)&&(x=Ge(A))}catch(f){console.error(f)}(typeof x=="number"||!isNaN(+x))&&(x=+x*100,e.decimalFormat&&(x=x.toFixed(2))),u=u.replace(P,x+"")}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 b=await c();l.value=((u=b==null?void 0:b.data)==null?void 0:u.data)||{}}catch(b){console.error(b)}finally{i.value=!1}};ae(e,{refreshData:()=>{m()}});const y=ne(e)("click",()=>{}),{setRequest:g}=t.inject(ce,{setRequest:({id:u,sortNum:b,requestFn:C})=>{}});return g({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,myWidth:a,text:r,myValue:s,loading:i,click:y}}}),hr="";function Ml(e,o,n,a,l,s){const r=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(r,{key:0,loading:e.loading},null,8,["loading"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"format",style:t.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},t.toDisplayString(e.text),5))]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)}const Un=U(G(Il,[["render",Ml],["__scopeId","data-v-49732adf"]])),kt={...K,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},St=Z(kt),Wn=["inputChange","inputBlur"],vl=t.defineComponent({name:"EcanInput",components:{AInput:q.Input},props:{...St},setup(e){const o=J(e),n=t.ref("");t.watch(()=>e.value,m=>{n.value=m},{immediate:!0});const{getGlobalModel:a,setGlobalModel:l}=t.inject(te,{getGlobalModel:m=>{},setGlobalModel:(m,d)=>{}});l(e.id,{type:e.type,value:n});const s=()=>{const m=a(e.id);l(e.id,{...m,RECORD:n})},r=ne(e),c=pe.debounce(r("inputChange",()=>{s()}),300),i=r("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:i,inputChange:c}}}),br="";function Nl(e,o,n,a,l,s){const r=t.resolveComponent("a-input");return t.openBlock(),t.createElementBlock("div",{class:"ecan-input",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"input",value:e.myValue,"onUpdate:value":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 Hn=U(G(vl,[["render",Nl]])),wt={...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},At=Z(wt),Zn=["dateChange"],Bl=t.defineComponent({name:"EcanDatePicker",props:{...At},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=ye(oe(c)):i&&(d=ye()),m&&d){const{type:h,value:y,mode:g}=m;switch(h){case"add":d=d.add(y,g);break;case"minus":d=d.subtract(y,g)}}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 r=ne(e)("dateChange",()=>{});return ae(e,{dateChange:r}),{style:o,getPopupContainer:n,myValue:a,locale:sn,dateChange:r}}}),Cr="";function zl(e,o,n,a,l,s){const r=t.resolveComponent("a-date-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-date-picker",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":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 Jn=U(G(Bl,[["render",zl]])),xt={...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(xt),Yn=["selectChange"],Fl=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"}),s=t.ref(e.data),r=t.ref(e.value||e.data[0]),c=e.dataFieldNames,i=(C,p)=>{const T=c.label,_=c.value;let P;const A=p[T],I=p[_];return A!=null?P=A:I!=null&&(P=I),(P==null?void 0:P.toLowerCase().indexOf(C==null?void 0:C.toLowerCase()))>=0},m=t.ref(!1),d=async()=>{var C,p;if(!(e.dataType!=="request"||t.unref(l)==="design")){m.value=!0;try{const T=await a();s.value=((p=(C=T==null?void 0:T.data)==null?void 0:C.data)==null?void 0:p.rows)||[];const _=t.unref(s)[0];e.value===""&&_!=null&&(r.value=_[c.value])}catch(T){console.error(T)}finally{m.value=!1}}},{getGlobalModel:h,setGlobalModel:y}=t.inject(te,{getGlobalModel:C=>{},setGlobalModel:(C,p)=>{}});y(e.id,{type:e.type,value:r});const u=ne(e)("selectChange",()=>{const C=e.id,p=h(C);y(C,{...p,RECORD:r})});ae(e,{selectChange:u});const{setRequest:b}=t.inject(ce,{setRequest:({id:C,sortNum:p,requestFn:T})=>{}});return b({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,getPopupContainer:n,myValue:r,selectChange:u,options:s,filterOption:i,loading:m}}}),Sr="",wr="";function Ol(e,o,n,a,l,s){const r=t.resolveComponent("a-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-select",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"select",value:e.myValue,"onUpdate:value":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 Qn=U(G(Fl,[["render",Ol],["__scopeId","data-v-ef197aff"]])),_t={...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},Et=Z(_t),Kn=["dateChange"],Pl=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:q.RangePicker},props:{...Et},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,h,y,g,u])=>{let b=null,C=null;if(h&&(b=ye().subtract(y,g),C=ye()),m&&(b=ye(oe(m))),d&&(C=ye(oe(d))),u){const{type:p,value:T,mode:_}=u;switch(p){case"add":b=b&&b.add(T,_),C=C&&C.add(T,_);break;case"minus":b=b&&b.subtract(T,_),C=C&&C.subtract(T,_)}}a.value=[b,C]},{immediate:!0});const{setGlobalModel:l}=t.inject(te,{setGlobalModel:(m,d)=>{}}),s=t.computed(()=>t.unref(a)[0]),r=t.computed(()=>t.unref(a)[1]);l(e.id,{type:e.type,format:e.format,startTime:s,endTime:r});const i=ne(e)("dateChange",()=>{});return ae(e,{dateChange:i}),{style:o,getPopupContainer:n,locale:sn,dateChange:i,myValue:a}}}),xr="",Tr="";function Rl(e,o,n,a,l,s){const r=t.resolveComponent("a-range-picker");return t.openBlock(),t.createElementBlock("div",{class:"ecan-range-picker",style:t.normalizeStyle(e.style)},[t.createVNode(r,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":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 Xn=U(G(Pl,[["render",Rl],["__scopeId","data-v-e4162acb"]])),Lt={...K,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},It=Z(Lt),eo=["click"],Dl=t.defineComponent({name:"EcanButton",components:{AButton:q.Button},props:{...It},setup(e){const o=J(e),a=ne(e)("click",()=>{const c=t.unref(s);c&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:c},"*")}),l=t.computed(()=>oe(e.text)),s=t.computed(()=>oe(e.href)||null),r=t.computed(()=>{const c=e.target;if(!(c==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[c]});return{style:o,click:a,myText:l,myHref:s,myTarget:r}}}),Er="";function $l(e,o,n,a,l,s){const r=t.resolveComponent("a-button");return t.openBlock(),t.createElementBlock("div",{class:"ecan-button",style:t.normalizeStyle(e.style)},[t.createVNode(r,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:t.withCtx(()=>[t.createElementVNode("span",{style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const to=U(G(Dl,[["render",$l]])),Mt={...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"}]},vt=Z(Mt),no=["checkboxChange"],jl=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:q.CheckboxGroup},props:{...vt},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=g=>{const u=e.value;let b=[];g.forEach(C=>{C.checked&&b.push(C.value)}),typeof u=="string"&&u!==""?b=b.concat(u.split(",")):Array.isArray(u)&&(b=b.concat(u)),n.value=g,a.value=b};t.watch(()=>[e.data,e.value],([g])=>{l(g)},{immediate:!0,deep:!0});const s=fe(e),{pageMode:r}=t.inject(ee,{pageMode:"normal"}),c=async()=>{var b,C;if(e.dataType!=="request"||t.unref(r)==="design")return;const g=await s(),u=((C=(b=g==null?void 0:g.data)==null?void 0:b.data)==null?void 0:C.rows)||[];l(u)},{getGlobalModel:i,setGlobalModel:m}=t.inject(te,{getGlobalModel:g=>{},setGlobalModel:(g,u)=>{}});m(e.id,{type:e.type,value:a});const h=ne(e)("checkboxChange",()=>{const g=i(e.id);m(e.id,{...g,RECORD:a})}),{setRequest:y}=t.inject(ce,{setRequest:({id:g,sortNum:u,requestFn:b})=>{}});return y({id:e.id,requestFn:c,sortNum:e.requestSort}),{myOption:n,style:o,myValue:a,checkboxChange:h}}}),Ir="";function Vl(e,o,n,a,l,s){const r=t.resolveComponent("a-checkbox-group");return t.openBlock(),t.createElementBlock("div",{class:"ecan-checkbox",style:t.normalizeStyle(e.style)},[t.createVNode(r,{options:e.myOption,value:e.myValue,"onUpdate:value":o[0]||(o[0]=c=>e.myValue=c),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const oo=U(G(jl,[["render",Vl]])),Nt={...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:"当前无说明信息"},Bt=Z(Nt),ao=["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"),s=new Blob([n]),r=document.createElement("a"),c=window.URL.createObjectURL(s);r.href=c,r.download=decodeURI(l),r.style.display="none",document.body.appendChild(r),r.click(),(i=r.parentNode)==null||i.removeChild(r),window.URL.revokeObjectURL(c)};he.use([xe.CanvasRenderer,Ce.PieChart,Q.TitleComponent,Q.ToolboxComponent,Q.TooltipComponent,Q.LegendComponent]);const ql=t.defineComponent({name:"EcanPie",props:{...Bt},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},s=t.computed(()=>{let{data:I=[]}=t.unref(n)[0]||{};if(Array.isArray(e.colors)){const x=e.isUseLabelColors,f=e.colors;I=I.map((S,E)=>({label:x?{color:f[E]}:{},...S}))}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:x=>{const{marker:f,seriesName:S,name:E,value:N,percent:w,data:L}=x||{};return oe(e.tooltipFormatter,{marker:f,name:E,value:N,percent:w,a:S,b:E,c:N,d:w,...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:el(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:r,setGlobalModel:c}=t.inject(te,{getGlobalModel:I=>{},setGlobalModel:(I,x)=>{}}),{pageMode:i}=t.inject(ee,{pageMode:"normal"}),m=(I=[],x)=>{const{dataset:f}=Be(I,x);n.value=f},d=(I=[],x)=>{const f=Be(I,x);n.value=f.dataset};t.watch(()=>e.data,I=>{(e.dataType==="static"||t.unref(i)==="design")&&m(I)},{immediate:!0,deep:!0});const h=t.ref(!1),y=fe(e),g=async()=>{var I,x;if(!(e.dataType!=="request"||t.unref(i)==="design"))try{h.value=!0;const f=await y();m((x=(I=f==null?void 0:f.data)==null?void 0:I.data)==null?void 0:x.rows,e.valueTypeDataFieldNames)}catch(f){console.error(f)}finally{h.value=!1}},b=ne(e)("click",I=>{const x=r(e.id);c(e.id,{...x,RECORD:I==null?void 0:I.data})}),C=ct(e),p=async()=>{var I,x,f,S,E,N;if(!(e.dataType!=="indicator"||t.unref(i)==="design"))try{h.value=!0;const w=await C();let L=[];if(((f=(x=(I=w==null?void 0:w.data)==null?void 0:I.data)==null?void 0:x.columns)==null?void 0:f.length)>0){const R=w.data.data.columns[0],j=w.data.data.columns[1];L=(N=(E=(S=w==null?void 0:w.data)==null?void 0:S.data)==null?void 0:E.rows)==null?void 0:N.map(v=>({name:v[R],value:v[j]}))}d(L)}catch(w){console.error(w)}finally{h.value=!1}},T=()=>{t.unref(i)!=="design"&&(p(),g())};ae(e,{resetRecord:()=>{const I=e.id,x=r(I);c(I,{...x,RECORD:""})},refreshData:()=>{T()},click:b});const{setRequest:A}=t.inject(ce,{setRequest:({id:I,sortNum:x,requestFn:f})=>{}});return A({id:e.id,requestFn:T,sortNum:e.requestSort}),{option:s,style:o,click:b,loading:h,visible:a,hideModal:l}}}),vr="";function Gl(e,o,n,a,l,s){const r=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(r,{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(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const lo=U(G(ql,[["render",Gl]])),zt={...K,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",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},Ft=Z(zt),io=["click","refreshData","resetRecord"];he.use([xe.CanvasRenderer,Ce.LineChart,Q.ToolboxComponent,Q.TitleComponent,Q.LegendComponent]);const Ul=t.defineComponent({name:"EcanLine",props:{...Ft},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),s=()=>{l.value=!1},r=t.computed(()=>{const x=e.xAxisLabelFormatter,f=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!0,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){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:S=>{const E=S.length;let N="",w=e.tooltipFormatter;w===""&&(w="{marker} {a} {c}");for(let L=0;L<E;L++){const{marker:R,seriesName:j,name:v,value:F,data:z}=S[L]||{};L===0&&(N+=`${v}<br/>`),N+=oe(w,{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,interval:0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(S){return Ae(x,S)}},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(S){return Ae(f,S)}},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:x=>{},setGlobalModel:(x,f)=>{}}),{pageMode:m}=t.inject(ee,{pageMode:"normal"}),d=(x=[],f=!1)=>{let S;if(e.dataFieldConfigType==="key"){const L=f?e.keyTypeDataFieldNames:null;S=Ee(x,L)}else if(e.dataFieldConfigType==="value"){const L=f?e.valueTypeDataFieldNames:null;S=Be(x,L)}a.value=S.dimensions;const E=S.dataset,N=[],w=E.length;for(let L=0;L<w;L++)N.push({type:"line",...E[L],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});n.value=N},h=(x=[],f,S=!1)=>{const N=Ee(x,S?f:null);a.value=N.dimensions;const w=N.dataset,L=[],R=w.length;for(let j=0;j<R;j++)L.push({type:"line",...w[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],([x])=>{(e.dataType==="static"||t.unref(m)==="design")&&d(x)},{immediate:!0,deep:!0});const y=t.ref(!1),g=fe(e),u=async()=>{var x,f;if(!(e.dataType!=="request"||t.unref(m)==="design"))try{y.value=!0;const S=await g();d((f=(x=S==null?void 0:S.data)==null?void 0:x.data)==null?void 0:f.rows,!0)}catch(S){console.error(S)}finally{y.value=!1}},C=ne(e)("click",x=>{const f=c(e.id);i(e.id,{...f,RECORD:x==null?void 0:x.data})}),p=ct(e),T=async()=>{var x,f,S,E,N;if(!(e.dataType!=="indicator"||t.unref(m)==="design"))try{y.value=!0;const w=await p();let L;((S=(f=(x=w==null?void 0:w.data)==null?void 0:x.data)==null?void 0:f.columns)==null?void 0:S.length)>0&&(L={name:w.data.data.columns[0],types:w.data.data.columns.slice(1).map(R=>({label:R,value:R}))}),h((N=(E=w==null?void 0:w.data)==null?void 0:E.data)==null?void 0:N.rows,L,!0)}catch(w){console.error(w)}finally{y.value=!1}},_=()=>{t.unref(m)!=="design"&&(T(),u())};ae(e,{refreshData:()=>{_()},resetRecord:()=>{const x=e.id,f=c(x);i(x,{...f,RECORD:""})},click:C});const{setRequest:I}=t.inject(ce,{setRequest:({id:x,sortNum:f,requestFn:S})=>{}});return I({id:e.id,requestFn:_,sortNum:e.requestSort}),{option:r,style:o,click:C,loading:y,visible:l,hideModal:s}}}),Br="";function Wl(e,o,n,a,l,s){const r=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(r,{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(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const ro=U(G(Ul,[["render",Wl]])),Ot={...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:""},Pt=Z(Ot),so=["refreshData","click","resetRecord"];he.use([xe.CanvasRenderer,Ce.BarChart,Q.TitleComponent,Q.LegendComponent,Q.DatasetComponent,Q.ToolboxComponent]);const Hl=t.defineComponent({name:"EcanBar",props:{...Pt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e,{expose:o}){const n=J(e),a=t.ref([]),l=t.ref(!1),s=()=>{l.value=!1},r=t.computed(()=>{const f=t.unref(a),S=f.length,E=[];for(let N=0;N<S;N++){const w={...f[N],type:"bar",barWidth:e.barWidth};e.isStack&&(w.stack="stack"),w.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},E.push(w)}return E}),c=t.ref([]),i=t.ref(!1),m=t.computed(()=>{const f=e.yAxisLabelFormatter,S=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 w="",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&&(w+=`${F}<br/>`),w+=oe(L,{marker:j,name:F,value:z,a:v,b:F,c:z,...D},{useNewline:!0,useSpace:!0}),w+="<br/>"}return w},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(E){return Ae(S,E)}},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(E){return Ae(f,E)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(r)}}),{pageMode:d}=t.inject(ee,{pageMode:"normal"}),h=(f=[],S=!1)=>{let E={};if(e.dataFieldConfigType==="key"){const N=S?e.keyTypeDataFieldNames:null;E=Ee(f,N)}else if(e.dataFieldConfigType==="value"){const N=S?e.valueTypeDataFieldNames:null;E=Be(f,N)}a.value=E.dataset,c.value=E.dimensions},y=(f=[],S,E=!1)=>{const w=Ee(f,E?S:null);a.value=w.dataset,c.value=w.dimensions};t.watch(()=>e.data,f=>{(e.dataType==="static"||t.unref(d)==="design")&&h(f)},{immediate:!0,deep:!0});const g=fe(e),u=async()=>{var f,S;try{i.value=!0;const E=await g();h((S=(f=E==null?void 0:E.data)==null?void 0:f.data)==null?void 0:S.rows,!0)}catch(E){console.error(E)}finally{i.value=!1}},b=Fn(e),C=async()=>{var f;try{i.value=!0;const S=await b(),{columns:E=[],rows:N=[]}=((f=S==null?void 0:S.data)==null?void 0:f.data)??{};let w;E.length>0&&(w={name:E[0],types:E.slice(1).map(L=>({label:L,value:L}))}),y(N,w,!0)}catch(S){console.error(S)}finally{i.value=!1}},p=()=>{if(t.unref(d)!=="design")switch(e.dataType){case"indicator":C();break;case"request":u();break}};o({refreshData:p});const T=ne(e),{getGlobalModel:_,setGlobalModel:P}=t.inject(te,{getGlobalModel:f=>{},setGlobalModel:(f,S)=>{}}),A=T("click",f=>{const S=_(e.id);P(e.id,{...S,RECORD:f.data})}),{setRequest:I}=t.inject(ce,{setRequest:({id:f,sortNum:S,requestFn:E})=>{}});return I({id:e.id,requestFn:p,sortNum:e.requestSort}),ae(e,{refreshData:p,click:A,resetRecord:()=>{const f=e.id,S=_(f);P(f,{...S,RECORD:""})}}),{option:m,style:n,refreshData:p,click:A,loading:i,visible:l,hideModal:s}}}),Fr="";function Zl(e,o,n,a,l,s){const r=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(r,{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(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const co=U(G(Hl,[["render",Zl]])),Rt={...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:"当前无说明信息"},Dt=Z(Rt),mo=["click","refreshData"];he.use([xe.CanvasRenderer,Ce.ScatterChart,Q.ToolboxComponent,Q.TitleComponent,Q.TooltipComponent,Q.LegendComponent]);const Jl=t.defineComponent({name:"EcanScatter",props:{...Dt},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},s=t.computed(()=>{const p=e.xAxisLabelFormatter,T=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:!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(p,_)}},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(T,_)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:function(_){var S;const{marker:P,seriesName:A}=_,I=((S=_==null?void 0:_.data)==null?void 0:S.record)??{},{name:x,value:f}=I;return oe(e.tooltipFormatter,{marker:P,seriesName:A,a:A,b:x,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:r,setGlobalModel:c}=t.inject(te,{getGlobalModel:p=>{},setGlobalModel:(p,T)=>{}}),{pageMode:i}=t.inject(ee,{pageMode:"normal"}),m=(p=[],T)=>{const{name:_="name",value:P="value"}=T||{};n.value=p.map(A=>({value:[A[_],A[P]],record:A}))};t.watch(()=>e.data,p=>{(e.dataType==="static"||t.unref(i)==="design")&&m(p)},{immediate:!0,deep:!0});const d=t.ref(!1),h=fe(e),y=async()=>{var p,T;if(!(e.dataType!=="request"||t.unref(i)==="design")){d.value=!0;try{const _=await h();m((T=(p=_==null?void 0:_.data)==null?void 0:p.data)==null?void 0:T.rows,e.dataFieldNames)}catch(_){console.error(_)}finally{d.value=!1}}},u=ne(e)("click",p=>{const T=e.id,_=r(T);c(T,{..._,RECORD:p==null?void 0:p.data})});ae(e,{refreshData:()=>{y()},click:u});const{setRequest:C}=t.inject(ce,{setRequest:({id:p,sortNum:T,requestFn:_})=>{}});return C({id:e.id,requestFn:y,sortNum:e.requestSort}),{option:s,style:o,click:u,loading:d,visible:a,hideModal:l}}}),Pr="";function Yl(e,o,n,a,l,s){const r=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(r,{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(r,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const fo=U(G(Jl,[["render",Yl]])),$t={...K,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},jt=Z($t),Ql=t.defineComponent({name:"EcanCustomGraph",props:{...jt},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:Po}}});function Kl(e,o,n,a,l,s){const r=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(r,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const uo=U(G(Ql,[["render",Kl]])),Vt={...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%"},qt=Z(Vt),go=["refreshData","click","resetRecord"];he.use([xe.CanvasRenderer,Ce.BarChart,Ce.LineChart,Q.TitleComponent,Q.LegendComponent,Q.DatasetComponent,Q.ToolboxComponent]);const Xl=t.defineComponent({name:"EcanComboGraph",props:{...qt},components:{Spin:ve,Echarts:Se,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),s=()=>{l.value=!1},r=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 S=f.length;let E="",N=e.tooltipFormatter;N===""&&(N="{marker} {a} {c}");const w=e.seriesTypes;for(let L=0;L<S;L++){const R=w[L],{tooltipFormatter:j}=R||{},{marker:v,seriesName:F,name:z,value:D,data:W}=f[L]||{};L===0&&(E+=`${z}<br/>`),E+=oe(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:c}=t.inject(ee,{pageMode:"normal"}),i=(f=[],S=!1)=>{let E;if(e.dataFieldConfigType==="key"){const j=S?e.keyTypeDataFieldNames:null;E=Ee(f,j)}else if(e.dataFieldConfigType==="value"){const j=S?e.valueTypeDataFieldNames:null;E=Be(f,j)}a.value=E.dimensions;const N=E.dataset,w=[],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}),w.push(D)}n.value=w},m=(f=[],S,E=!1)=>{const w=Ee(f,E?S:null);a.value=w.dimensions;const L=w.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(c)==="design")&&i(f)},{immediate:!0,deep:!0});const d=t.computed(()=>{const f=e.yAxis;return f==null?void 0:f.map(S=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(E){return Ae(S.axisLabelFormatter,E)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),h=t.ref(!1),y=fe(e),g=async()=>{var f,S;if(!(e.dataType!=="request"||t.unref(c)==="design"))try{h.value=!0;const E=await y();i((S=(f=E==null?void 0:E.data)==null?void 0:f.data)==null?void 0:S.rows,!0)}catch(E){console.error(E)}finally{h.value=!1}},u=ct(e),b=async()=>{var f,S,E,N,w;if(!(e.dataType!=="indicator"||t.unref(c)==="design"))try{h.value=!0;const L=await u();let R;((E=(S=(f=L==null?void 0:L.data)==null?void 0:f.data)==null?void 0:S.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((w=(N=L==null?void 0:L.data)==null?void 0:N.data)==null?void 0:w.rows,R,!0)}catch(L){console.error(L)}finally{h.value=!1}},C=()=>{t.unref(c)!=="design"&&(b(),g())},p=()=>{C()},T=ne(e),{getGlobalModel:_,setGlobalModel:P}=t.inject(te,{getGlobalModel:f=>{},setGlobalModel:(f,S)=>{}}),A=T("click",f=>{const S=_(e.id);P(e.id,{...S,RECORD:f==null?void 0:f.data})}),{setRequest:I}=t.inject(ce,{setRequest:({id:f,sortNum:S,requestFn:E})=>{}});return I({id:e.id,requestFn:C,sortNum:e.requestSort}),ae(e,{resetRecord:()=>{const f=e.id,S=_(f);P(f,{...S,RECORD:""})},refreshData:p,click:A}),{style:o,option:r,click:A,loading:h,visible:l,hideModal:s}}}),$r="";function ei(e,o,n,a,l,s){const r=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(r,{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(r,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["visible","onCancel"])],4)}const ho=U(G(Xl,[["render",ei]])),Gt={...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:{}},Ut=Z(Gt),yo=["click"],ti=t.defineComponent({name:"EcanBorder",props:{...Ut},setup(e){const o=J(e,["background"]),{theme:n}=t.inject(ee,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),s=ne(e)("click",()=>{}),r=t.ref([]);t.watch(()=>e.data,i=>{r.value=i},{immediate:!0,deep:!0}),ae(e,{click:s});const{setGlobalModel:c}=t.inject(te,{setGlobalModel:(i,m)=>{}});return c(e.id,{type:e.type,value:r}),{style:o,click:s,borderStyle:a,theme:n}}}),ni="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",oi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Vr="",ge=e=>(t.pushScopeId("data-v-1550b11b"),e=e(),t.popScopeId(),e),ai=ge(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),li=ge(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),ii=ge(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),ri=ge(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),si={class:"title-item-wrapper"},ci={class:"title-item"},di=ge(()=>t.createElementVNode("img",{class:"title-decoration-left",src:ni},null,-1)),mi={class:"title"},fi=ge(()=>t.createElementVNode("img",{class:"title-decoration-right",src:oi},null,-1)),ui=ge(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),gi=ge(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),hi=ge(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),yi=ge(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),bi={key:2,class:"left-title"},pi={class:"title"};function Ci(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:o[0]||(o[0]=(...r)=>e.click&&e.click(...r))},[e.mode==="no-title"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"no-title",style:t.normalizeStyle(e.borderStyle)},[e.useBorderModify?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[ai,li,ii,ri],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",si,[t.createElementVNode("div",ci,[di,t.createElementVNode("div",mi,t.toDisplayString(e.title),1),fi])]),ui,gi,hi,yi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",bi,[t.createElementVNode("div",pi,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const bo=U(G(ti,[["render",Ci],["__scopeId","data-v-1550b11b"]])),Wt={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"},Ht=Z(Wt),po=["showModal"],ki=t.defineComponent({name:"EcanModal",components:{AModal:q.Modal},props:{...Ht},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,s=e.originalWidth,r=e.originalHeight,c=t.ref("80%"),i=t.ref(0),m=t.ref(),d=t.ref(0),h=t.ref({}),y=J(e),g=t.ref({}),u=t.ref(!1),b=t.ref();let C;const p=()=>{m.value=parseFloat(a)/parseFloat(s);const z=parseFloat(l)/parseFloat(r),D=document.body.offsetWidth,W=document.body.offsetHeight;i.value=D*t.unref(m),d.value=W*z,c.value=`${t.unref(m)*100}%`,h.value={width:`${t.unref(i)}px`,height:`${t.unref(d)}px`},g.value={...t.unref(y),backgroundImage:we(e.backgroundImage,!0),transform:`scale(${t.unref(i)/parseFloat(a)},${t.unref(d)/parseFloat(l)})`}},T=pe.debounce(()=>{p()},100),_=()=>{const z=window.MutationObserver;C=new z(T),C.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},P=()=>{C&&(C.disconnect(),C.takeRecords(),C=null)},A=t.ref(!1),{touchRequest:I}=t.inject(ce,{touchRequest:()=>{}}),x=()=>{A.value=!0},f=()=>{A.value=!1},S=()=>{f()},E=()=>{f()},{setModalModel:N,pushUseModalIds:w,popUseModalIds:L}=t.inject(Mn,{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(()=>A.value,async z=>{z?(u.value=!1,w(e.id),R(),await t.nextTick(()=>{p(),window.addEventListener("resize",T),_(),u.value=!0}),I()):(L(),window.removeEventListener("resize",T),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 ae(e,{showModal:x}),{modalRef:b,containStyle:h,contentStyle:g,getContainer:o,modalStyle:n,modalWith:c,isFullModal:v,style:y,visible:A,showModal:x,onOk:S,onCancel:E,isFullWidth:j,wrapClassName:F,ready:u}}}),Gr="",Ur="";function Si(e,o,n,a,l,s){const r=t.resolveComponent("a-modal");return t.openBlock(),t.createBlock(r,{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 Co=U(G(ki,[["render",Si],["__scopeId","data-v-2db14456"]])),Zt={...K,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},Jt=Z(Zt),ko=["tabChange"],wi=t.defineComponent({name:"EcanTabs",props:{...Jt},setup(e){const o=J(e),n=t.ref(0);t.watch(()=>e.activeKey,g=>{n.value=g},{immediate:!0});const{pageMode:a}=t.inject(ee,{pageMode:"normal"});let l=null;const s=()=>{const g=Array.isArray(t.unref(r))?t.unref(r).length-1:0;e.autoSwitch&&g>0&&(l=setInterval(()=>{const u=t.unref(n)+1;u<=g?n.value=u:n.value=0,c.value=t.unref(r)[t.unref(n)],h()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&s()}),t.onBeforeUnmount(()=>{clearInterval(l)});const r=t.ref([]),c=t.ref({});t.watch(()=>e.data,g=>{r.value=g,c.value=Array.isArray(g)&&g.length>0?g[0]:{}},{immediate:!0,deep:!0});const i=g=>n.value===g,m=ne(e),{setGlobalModel:d}=t.inject(te,{setGlobalModel:(g,u)=>{}});d(e.id,{value:c,activeKey:n});const{emitRefreshPage:h}=t.inject(Ne,{emitRefreshPage:()=>{}}),y=m("tabChange",(g,u)=>{u!==t.unref(n)&&(c.value=g,n.value=u,h())});return ae(e,{tabChange:y}),{style:o,activeKey:n,isActive:i,tabChange:y,myData:r,useImagePath:we}}}),Hr="",Ai=["onClick"];function xi(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",{class:"ecan-tabs",style:t.normalizeStyle(e.style)},[t.createElementVNode("div",{class:"tabs-header",style:t.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.myData,(r,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(r,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(r.title),5)],12,Ai))),128))],4)],4)}const So=U(G(wi,[["render",xi],["__scopeId","data-v-a2045b93"]])),Yt={...K,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Qt=Z(Yt),Ti=t.defineComponent({name:"EcanImage",props:{...Qt},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 s=e.linkPage||"",r=zn(t.unref(a),s),c=e.href;let i=c||r;i=oe(i);const m=e.target;m&&(m!=="event"?window.open(i,"_"+m):window.parent.postMessage({type:"openPage",url:c},"*"))}}}}),Jr="",_i=["src"];function Ei(e,o,n,a,l,s){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:o[0]||(o[0]=(...r)=>e.onClick&&e.onClick(...r))},null,12,_i)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const wo=U(G(Ti,[["render",Ei],["__scopeId","data-v-ef7a7bee"]])),Kt={...K,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Xt=Z(Kt),Li=t.defineComponent({name:"EcanIframe",props:{...Xt},setup(e){const o=J(e),{contextRequestUrl:n}=t.inject(ee,{contextRequestUrl:""}),a=t.computed(()=>{let l=oe(e.link);if(e.linkType==="erd"&&l!=null){let s=t.unref(n);s[s.length-1]==="/"?s+="erdReport":s+="/erdReport",l=`${Xa||s}?_t=0&uid=${l}`}return l});return{style:o,myLink:a}}}),Qr="",Ii=["src"];function Mi(e,o,n,a,l,s){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,Ii)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Ao=U(G(Li,[["render",Mi],["__scopeId","data-v-19bc100c"]])),en={...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"}},tn=Z(en),xo=["click","refreshData","resetRecord"],vi=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:{...tn},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),s=t.computed(()=>parseFloat(e.height)-t.unref(a)),r=t.ref([]),c=t.ref([]),i=t.ref([]),m=t.ref([]),d=t.ref(0),h=t.ref(1),y=t.computed(()=>e.paginationPageSize),g=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:le,title:re,tableFilter:ie,headerCellAlign:Fe,headerCellColor:We}=O;ie&&(g.push(le),O.filterOptionsInputValue="",O.filterCheckboxGroupValue=[],O.customFilterDropdown=!0,O.onFilter=(Oe,an)=>an[le].toString().toLowerCase().includes(Oe.toLowerCase())),O.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Fe||"center",color:We,borderBottomColor:e.borderColor}}),O.customCell=(Oe,an)=>({style:{textAlign:H,color:Y,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(D)===an&&e.clickHighlight},onClick:w("click",()=>{const No=e.id,Gi=R(No);Oe={dataIndex:le,title:re,...Oe},j(No,{...Gi,RECORD:Oe})})}),Array.isArray(O.children)&&u(O.children)}}},b=(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],()=>{r.value=b(pe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([M,B])=>{B==="static"&&(c.value=M)},{immediate:!0});const C=t.ref({}),p=M=>{if(Array.isArray(M)){const B=M.length,$=g,V=$.length,O={};for(let Y=0;Y<B;Y++){const le=M[Y];for(let re=0;re<V;re++){const ie=$[re];if(O[ie])O[ie].add(le[ie]);else{const Fe=new Set;Fe.add(le[ie]),O[ie]=Fe}}}const H={};for(const Y in O)if(Object.prototype.hasOwnProperty.call(O,Y)){const le=O[Y],re=Array.from(le);H[Y]=re.map(ie=>({label:ie,value:ie}))}C.value=H}};t.watch(()=>[e.isReverse,r.value,c.value],()=>{const M=t.unref(r),B=t.unref(c);if(p(B),e.isReverse){const{columns:$,dataSource:V}=T(pe.cloneDeep(M),pe.cloneDeep(B));i.value=$,m.value=V}else i.value=M,m.value=B},{immediate:!0});const T=(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],le="col"+(H+1);V.push({title:Y[$.dataIndex],dataIndex:le,key:le,align:"center"})}const O=[];for(let H=1;H<M.length;H++){const Y=M[H],le={col0:Y.title};for(let re=0;re<B.length;re++){const ie=B[re];le[`col${re+1}`]=ie[Y.dataIndex]}O.push(le)}return{columns:V,dataSource:O}},_=t.ref(""),P=fe(e),A=t.ref(!1),I=async(M=!0)=>{var B;try{M&&(A.value=!0);let $={};t.unref(_)&&($.orderCondition=t.unref(_)),e.paginationShow&&($={pageNum:t.unref(h),pageSize:t.unref(y),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=t.unref(c).concat(O))}catch($){console.error($)}finally{A.value=!1}},x=({current:M},B,$)=>{if(h.value=M,$&&Object.keys($).length>0){const{field:V,order:O}=$,Y={ascend:"asc",descend:"desc"}[O];V!=null&&Y!=null&&(_.value=V+" "+Y,h.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(h),pageSize:t.unref(y),showSizeChanger:!1}}),S=M=>+M==1?"是":+M==0?"否":M,E=(M,B)=>B==null||B===""?M:{money:st,percentage:qe,contrast:qe,boolean:S}[B](M)||"",N=(M,B)=>{const $=parseFloat(M+"");if(B!=="contrast")return"";switch(!0){case $>=0:return"goUp";case $<0:return"goDown"}},w=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}));r.value=b($),c.value=B},F=Fn(e),z=async()=>{var M,B,$,V;try{A.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{A.value=!1}},D=t.ref(-1),W=(M,B)=>({onClick:w("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}};ae(e,{resetRecord:()=>{const M=e.id,B=R(M);j(M,{...B,RECORD:""})},refreshData:X});const Vi=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=[];if(console.log("---",t.unref(m)),console.log("paginationShow",e.paginationShow),e.paginationShow){const O=(t.unref(h)-1)*t.unref(y),H=O+t.unref(y);V=t.unref(m).slice(O,H)}console.log("records",V);for(let O=0;O<B.length;O++){const H=B[O];let Y=0;const{isCalcTotal:le,dataIndex:re}=H;if(le===!0){for(let ie=0;ie<V.length;ie++){const We=+V[ie][re];isNaN(We)||(Y=new Fo.Big(Y).add(We).toNumber())}H.total=Y}}return B}),{setRequest:qi}=t.inject(ce,{setRequest:({id:M,sortNum:B,requestFn:$})=>{}});return qi({id:e.id,requestFn:X,sortNum:e.requestSort}),o({refreshData:X}),{x:l,y:s,style:n,customRow:W,pagination:f,formatFn:E,contrastClass:N,tableChange:x,summaryList:Vi,loading:A,onTouchHrefEvent:(M,B="")=>{M==="event"&&window.parent.postMessage({type:"openPage",url:B},"*")},handleHref:(M="",B)=>oe(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(C)[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:()=>{}}}}),Xr="",es="",Ni=t.createTextVNode(" 搜索 "),Bi=t.createTextVNode(" 重置 "),zi={key:0},Fi={key:1,class:"action-list"},Oi=["href","target","onClick"];function Pi(e,o,n,a,l,s){const r=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"),h=t.resolveComponent("a-table-summary"),y=t.resolveComponent("a-table"),g=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(g,{loading:e.loading},{default:t.withCtx(()=>[t.createVNode(y,{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:b,setSelectedKeys:C,confirm:p,clearFilters:T})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(r,{value:u.filterOptionsInputValue,"onUpdate:value":_=>u.filterOptionsInputValue=_,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(c,{value:u.filterCheckboxGroupValue,"onUpdate:value":_=>u.filterCheckboxGroupValue=_,class:"filter-checkbox",options:e.useFilterOptions(u),onChange:_=>e.useSetSelectedKeys(C,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:()=>p()},{default:t.withCtx(()=>[Ni]),_:2},1032,["onClick"]),t.createVNode(i,{size:"small",style:{width:"90px"},onClick:_=>e.onResetFilter(T,u)},{default:t.withCtx(()=>[Bi]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:u,index:b,text:C,record:p})=>[u.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",zi,t.toDisplayString(b+1),1)):t.createCommentVNode("",!0),u.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Fi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(T,_)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:_},[t.createElementVNode("a",{href:e.handleHref(T.href,p),target:e.handleHrefTarget(T.target),style:t.normalizeStyle({color:T.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:P=>e.onTouchHrefEvent(T.target,e.handleHref(T.href,p))},t.toDisplayString(T.title),13,Oi)]))),128))])):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass([e.contrastClass(C,u.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(u.format!=null?e.formatFn(C,u.format):C),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(h,{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,b)=>(t.openBlock(),t.createBlock(m,{key:b,index:b,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(vi,[["render",Pi],["__scopeId","data-v-f1e6390f"]])),nn={...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}"},on=Z(nn);he.use([xe.CanvasRenderer,Ce.MapChart,Ce.ScatterChart,Q.VisualMapComponent,Q.TooltipComponent,Q.GraphicComponent]);const Ri=t.defineComponent({name:"EcanMap",components:{Echarts:Se},props:{...on},setup(e){const o=J(e,["backgroundImage"]),n=t.ref(),a=t.computed(()=>we(e.geoBackgroundImage)),l=t.computed(()=>we(e.backgroundImage)),s=t.computed(()=>e.geoBackgroundImage?{image:t.unref(n),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),r=t.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+we(d):"circle"}),c=t.computed(()=>{const d=e.geoCenter;let h;return typeof d=="string"&&d!==""&&(h=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:h,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(s),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:t.unref(r),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),i=t.ref(!1),m=async()=>{var h;const d=e.mapJson;if(d!=null&&d.path){const y=await ue(((h=window==null?void 0:window.config)==null?void 0:h.uploadPath)+d.path);he.registerMap("map",(y==null?void 0:y.data)||{})}i.value=!0};return t.watch(()=>e.mapJson,()=>{m()},{immediate:!0,deep:!0}),{option:c,style:o,isLoadedData:i,geoBackgroundImageRef:n,myGeoBackgroundImage:a}}}),ns="",Di=["src"];function $i(e,o,n,a,l,s){const r=t.resolveComponent("echarts");return t.openBlock(),t.createElementBlock("div",{class:"ecan-map",style:t.normalizeStyle(e.style)},[e.isLoadedData?(t.openBlock(),t.createBlock(r,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,Di),[[t.vShow,!1]])],4)}const _o=U(G(Ri,[["render",$i],["__scopeId","data-v-1fb5cdee"]])),Eo=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:co,EcanBorder:bo,EcanButton:to,EcanCheckbox:oo,EcanComboGraph:ho,EcanCustomGraph:uo,EcanDatePicker:Jn,EcanIframe:Ao,EcanImage:wo,EcanInput:Hn,EcanLine:ro,EcanList:qn,EcanMap:_o,EcanModal:Co,EcanPageConfig:On,EcanPie:lo,EcanProportion:Un,EcanProviderConfig:Pn,EcanRangePicker:Xn,EcanScatter:fo,EcanScrollText:$n,EcanSelect:Qn,EcanTable:To,EcanTabs:So,EcanText:Dn,EcanTimeDisplay:jn,barComponentProps:Pt,barEvents:so,barProps:Ot,borderComponentProps:Ut,borderEvents:yo,borderProps:Gt,buttonComponentProps:It,buttonEvents:eo,buttonProps:Lt,checkboxComponentProps:vt,checkboxEvents:no,checkboxProps:Mt,comboGraphComponentProps:qt,comboGraphEvents:go,comboGraphProps:Vt,customGraphComponentProps:jt,customGraphProps:$t,datePickerComponentProps:At,datePickerEvents:Zn,datePickerProps:wt,iframeComponentProps:Xt,iframeProps:Kt,imageComponentProps:Qt,imageProps:Yt,inputComponentProps:St,inputEvents:Wn,inputProps:kt,lineComponentProps:Ft,lineEvents:io,lineProps:zt,listComponentProps:bt,listEvents:Vn,listProps:yt,mapComponentProps:on,mapProps:nn,modalComponentProps:Ht,modalEvents:po,modalProps:Wt,pageConfig:lt,pageConfigComponentProps:it,pieComponentProps:Bt,pieEvents:ao,pieProps:Nt,proportionComponentProps:Ct,proportionEvents:Gn,proportionProps:pt,providerConfig:dt,providerConfigComponentProps:mt,rangePickerComponentProps:Et,rangePickerEvents:Kn,rangePickerProps:_t,scatterComponentProps:Dt,scatterEvents:mo,scatterProps:Rt,selectComponentProps:Tt,selectEvents:Yn,selectProps:xt,tableComponentProps:tn,tableEvents:xo,tableProps:en,tabsComponentProps:Jt,tabsEvents:ko,tabsProps:Zt,textComponentProps:ut,textEvents:Rn,textProps:ft,timeDisplayComponentProps:ht,timeDisplayProps:gt},Symbol.toStringTag,{value:"Module"})),ji={install:e=>{Object.keys(Eo).forEach(o=>{const n=Eo[o];n.install&&e.use(n)})}};k.EcanBar=co,k.EcanBorder=bo,k.EcanButton=to,k.EcanCheckbox=oo,k.EcanComboGraph=ho,k.EcanCustomGraph=uo,k.EcanDatePicker=Jn,k.EcanIframe=Ao,k.EcanImage=wo,k.EcanInput=Hn,k.EcanLine=ro,k.EcanList=qn,k.EcanMap=_o,k.EcanModal=Co,k.EcanPageConfig=On,k.EcanPie=lo,k.EcanProportion=Un,k.EcanProviderConfig=Pn,k.EcanRangePicker=Xn,k.EcanScatter=fo,k.EcanScrollText=$n,k.EcanSelect=Qn,k.EcanTable=To,k.EcanTabs=So,k.EcanText=Dn,k.EcanTimeDisplay=jn,k.barComponentProps=Pt,k.barEvents=so,k.barProps=Ot,k.borderComponentProps=Ut,k.borderEvents=yo,k.borderProps=Gt,k.buttonComponentProps=It,k.buttonEvents=eo,k.buttonProps=Lt,k.checkboxComponentProps=vt,k.checkboxEvents=no,k.checkboxProps=Mt,k.comboGraphComponentProps=qt,k.comboGraphEvents=go,k.comboGraphProps=Vt,k.customGraphComponentProps=jt,k.customGraphProps=$t,k.datePickerComponentProps=At,k.datePickerEvents=Zn,k.datePickerProps=wt,k.default=ji,k.iframeComponentProps=Xt,k.iframeProps=Kt,k.imageComponentProps=Qt,k.imageProps=Yt,k.inputComponentProps=St,k.inputEvents=Wn,k.inputProps=kt,k.lineComponentProps=Ft,k.lineEvents=io,k.lineProps=zt,k.listComponentProps=bt,k.listEvents=Vn,k.listProps=yt,k.mapComponentProps=on,k.mapProps=nn,k.modalComponentProps=Ht,k.modalEvents=po,k.modalProps=Wt,k.pageConfig=lt,k.pageConfigComponentProps=it,k.pieComponentProps=Bt,k.pieEvents=ao,k.pieProps=Nt,k.proportionComponentProps=Ct,k.proportionEvents=Gn,k.proportionProps=pt,k.providerConfig=dt,k.providerConfigComponentProps=mt,k.rangePickerComponentProps=Et,k.rangePickerEvents=Kn,k.rangePickerProps=_t,k.scatterComponentProps=Dt,k.scatterEvents=mo,k.scatterProps=Rt,k.selectComponentProps=Tt,k.selectEvents=Yn,k.selectProps=xt,k.tableComponentProps=tn,k.tableEvents=xo,k.tableProps=en,k.tabsComponentProps=Jt,k.tabsEvents=ko,k.tabsProps=Zt,k.textComponentProps=ut,k.textEvents=Rn,k.textProps=ft,k.timeDisplayComponentProps=ht,k.timeDisplayProps=gt,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
56
|
+
`,xn=!1,wa=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Sa;t.nextTick(function(){xn||(typeof window<"u"&&window.document&&window.document.documentElement&&ba(o,{prepend:!0}),xn=!0)})},Aa=["icon","primaryColor","secondaryColor"];function xa(e,o){if(e==null)return{};var n=Ta(e,o),a,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)a=s[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Ta(e,o){if(e==null)return{};var n={},a=Object.keys(e),l,s;for(s=0;s<a.length;s++)l=a[s],!(o.indexOf(l)>=0)&&(n[l]=e[l]);return n}function je(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){Ea(e,l,n[l])})}return e}function Ea(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var Ne={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function _a(e){var o=e.primaryColor,n=e.secondaryColor;Ne.primaryColor=o,Ne.secondaryColor=n||wn(o),Ne.calculated=!!n}function La(){return je({},Ne)}var Ee=function(o,n){var a=je({},o,n.attrs),l=a.icon,s=a.primaryColor,c=a.secondaryColor,r=xa(a,Aa),i=Ne;if(s&&(i={primaryColor:s,secondaryColor:c||wn(s)}),wa(),ka(Sn(l),"icon should be icon definiton, but got ".concat(l)),!Sn(l))return null;var m=l;return m&&typeof m.icon=="function"&&(m=je({},m,{icon:m.icon(i.primaryColor,i.secondaryColor)})),tt(m.icon,"svg-".concat(m.name),je({},r,{"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ee.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ee.inheritAttrs=!1,Ee.displayName="IconBase",Ee.getTwoToneColors=La,Ee.setTwoToneColors=_a;const nt=Ee;function Ia(e,o){return Ba(e)||va(e,o)||Na(e,o)||Ma()}function Ma(){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 Na(e,o){if(e){if(typeof e=="string")return Tn(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tn(e,o)}}function Tn(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=e[n];return a}function va(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],l=!0,s=!1,c,r;try{for(n=n.call(e);!(l=(c=n.next()).done)&&(a.push(c.value),!(o&&a.length===o));l=!0);}catch(i){s=!0,r=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(s)throw r}}return a}}function Ba(e){if(Array.isArray(e))return e}function En(e){var o=An(e),n=Ia(o,2),a=n[0],l=n[1];return nt.setTwoToneColors({primaryColor:a,secondaryColor:l})}function za(){var e=nt.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Fa=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Oa(e,o){return $a(e)||Da(e,o)||Ra(e,o)||Pa()}function Pa(){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 Ra(e,o){if(e){if(typeof e=="string")return _n(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 _n(e,o)}}function _n(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 Da(e,o){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],l=!0,s=!1,c,r;try{for(n=n.call(e);!(l=(c=n.next()).done)&&(a.push(c.value),!(o&&a.length===o));l=!0);}catch(i){s=!0,r=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(s)throw r}}return a}}function $a(e){if(Array.isArray(e))return e}function Ln(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){ot(e,l,n[l])})}return e}function ot(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function ja(e,o){if(e==null)return{};var n=Va(e,o),a,l;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(l=0;l<s.length;l++)a=s[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Va(e,o){if(e==null)return{};var n={},a=Object.keys(e),l,s;for(s=0;s<a.length;s++)l=a[s],!(o.indexOf(l)>=0)&&(n[l]=e[l]);return n}En("#1890ff");var _e=function(o,n){var a,l=Ln({},o,n.attrs),s=l.class,c=l.icon,r=l.spin,i=l.rotate,m=l.tabindex,d=l.twoToneColor,y=l.onClick,h=ja(l,Fa),f=(a={anticon:!0},ot(a,"anticon-".concat(c.name),Boolean(c.name)),ot(a,s,s),a),u=r===""||r||c.name==="loading"?"anticon-spin":"",b=m;b===void 0&&y&&(b=-1,h.tabindex=b);var k=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,p=An(d),x=Oa(p,2),T=x[0],v=x[1];return t.createVNode("span",Ln({role:"img","aria-label":c.name},h,{onClick:y,class:f}),[t.createVNode(nt,{class:u,icon:c,primaryColor:T,secondaryColor:v,style:k},null)])};_e.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},_e.displayName="AntdIcon",_e.inheritAttrs=!1,_e.getTwoToneColor=za,_e.setTwoToneColor=En;const qa=_e;var Ga={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 Ua=Ga;function In(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){Wa(e,l,n[l])})}return e}function Wa(e,o,n){return o in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}var at=function(o,n){var a=In({},o,n.attrs);return t.createVNode(qa,In({},a,{icon:Ua}),null)};at.displayName="LoadingOutlined",at.inheritAttrs=!1;const Ha=at,Za=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:q.Spin},setup(){return{indicator:t.h(Ha,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),lr="",G=(e,o)=>{const n=e.__vccOpts||e;for(const[a,l]of o)n[a]=l;return n},Ja={class:"spin-wrapper"};function Ya(e,o,n,a,l,s){const c=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",Ja,[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(Za,[["render",Ya]]),Qa=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:q.Skeleton}});function Xa(e,o,n,a,l,s){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 Ve=G(Qa,[["render",Xa]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const W=(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},X={id:"",name:"",keyName:"",type:"",width:"100px",height:"40px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestMethod:"get",requestHeaders:{},isOpenRequestTimer:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static"},Z=e=>{const o={};if(typeof e=="object"&&e!=null)for(const n in e){const a=e[n];o[n]={type:a==null?void 0:a.constructor,default:a}}return o},lt={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},it=Z(lt),Ka=["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=pe.without(Ka,...o);return t.computed(()=>pe.pick(e,n))},rt="EVENT_BUS",ee="GLOBAL_CONFIG",te="GLOBAL_MODEL",de="REQUEST_MODEL",Mn="GLOBAL_TOKEN",Be="REFRESH_PAGE",Nn="MODAL_MODEL",qe=(Io=window==null?void 0:window.config)==null?void 0:Io.indicatorURL;(Mo=window==null?void 0:window.config)!=null&&Mo.uploadPath;const vn=((No=window==null?void 0:window.config)==null?void 0:No.routerBaseURL)||"./",el=((vo=window==null?void 0:window.config)==null?void 0:vo.erdURL)||"",ae=(e,o)=>{t.watch(()=>e.id,n=>{const a=t.inject(rt,{onEvent:(l,s)=>{}});n!=null&&n!==""&&a.onEvent(n,o)},{immediate:!0})},ne=e=>{const o=e.events,n=e.id,a=t.inject(rt,{emitEvent:(s,c)=>{}}),{touchEventId:l}=t.inject(ee,{touchEventId:t.ref("")});return(s,c=()=>{})=>function(){c.call(this,...arguments);const{emitEvent:r}=a;o.forEach(i=>{if(s===i.on)try{l.value=n,r(i.target,i.emit)}catch(m){console.error(m)}})}},ze=(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 s=new Set,c=new Map,r=e.length;for(let d=0;d<r;d++){const y=e[d],h=y[n]||"",f=y[a]||"",u=y[l]||"";if(s.add(h),c.has(u)){const b=c.get(u);b.push({name:h,value:f,...y}),c.set(u,b)}else c.set(u,[{name:h,value:f,...y}])}const i=Array.from(s),m=[];for(const[d,y]of c)m.push({name:d,data:y});return{dimensions:i,dataset:m}},Bn=window.config.requestErrorTip,ge=rn.create({});ge.interceptors.request.use(e=>e,e=>Promise.reject(e)),ge.interceptors.response.use(e=>{var o,n,a;return Bn&&+((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(Bn)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 tl=e=>e.replace(/\\n/g,`
|
|
59
|
+
`),st=(e,o=2)=>{const n=parseFloat(e+"");return isNaN(n)?e:n.toFixed(o).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},nl=e=>{const o=parseFloat(e+"");return isNaN(o)?e:(o+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Ge=(e,o=2)=>{const n=e+"";if(n.includes("%"))return e;const a=parseFloat(n);return isNaN(a)?e:`${(a*100).toFixed(o)}%`},zn=(e,o)=>typeof e=="string"&&typeof o=="string"?e.toLocaleLowerCase().includes(o.toLocaleLowerCase()):!1,Ue=(e,o)=>{const n={dayjs:se,...o};let a="";const l=[];for(const r in n)a+=`${r},`,l.push(n[r]);a=a.replace(/,$/,"");const s=`function (${a}){return ${e}}`;let c;try{c=Function(`"use strict";return (${s})`)()(...l)}catch{return e}return c},K=(e="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const c={...window.config||{},...o},r=e.match(/\{(.+?)\}/g);if(r==null||r.length===0)return e;for(let i=0;i<r.length;i++){const m=r[i];let d=m.slice(1,-1).trim();const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,h=d.match(y);for(let f=0;f<h.length;f++){const u=h[f],b=c[u];b!=null&&(d=d.replace(u,b))}/\(.*\)/g.test(d)&&(d=Ue(d,n)),e=e.replace(m,d)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),l&&(e=e==null?void 0:e.replace(/\s{2,}?/g," ")),e},ue=(e,o=()=>{})=>{const{requestUrl:n,requestMethod:a,requestHeaders:l,requestParams:s,requestInterval:c,isOpenRequestTimer:r}=e,{contextRequestUrl:i,pageMode:m,touchEventId:d}=t.inject(ee,{contextRequestUrl:"",pageMode:"normal",touchEventId:""}),{getGlobalModel:y}=t.inject(te,{getGlobalModel:b=>{}}),h=K(n),f=async(b={})=>{if(!h||!a||!l||t.unref(m)==="design")return;let k={};s.forEach(E=>{const{key:_,value:w}=E;if(typeof w=="object"&&w!=null&&w.id){let g={};const{id:S,prop:L,propKey:B,operate:A}=w;S==="THIS"?g=y(t.unref(d))||{}:g=y(S)||{};const I=t.unref(g[L]);let R=null;if(["date","range"].some(N=>zn(g==null?void 0:g.type,N))){const{value:N,type:O,mode:F}=A||{};if(N&&O&&F)switch(O){case"add":R=t.unref(I).add(N,F);break;case"minus":R=t.unref(I).subtract(N,F);break}R==null&&(R=t.unref(I)),R=(R==null?void 0:R.format((B==null?void 0:B.trim())||g.format))||""}else Object.prototype.toString.call(I)==="[object Object]"?R=I[B||"value"]:R=I;k[_]=R}else typeof w=="string"&&(k[_]=K(w))}),k={...window.config.requestParams,...b,...k};let p="";const x=Object.keys(k),T=x.length-1,v=x.length;x.forEach((E,_)=>{_===0?v!==1?p+=`?${E}=${k[E]}&`:p+=`?${E}=${k[E]}`:_===T?p+=`${E}=${k[E]}`:p+=`${E}=${k[E]}&`});try{const E=["get","head"].includes(a),_=await ge({baseURL:t.unref(i)||"",url:E?h+p:h,method:a,headers:l,data:E?{}:k});return o(_),_}catch(E){console.error(E)}},u=r&&setInterval(f,c*1e3);return t.onUnmounted(()=>{clearInterval(u)}),f},Le=(e=[],o)=>{let{name:n="name",types:a=[]}=o||{};n=(n==null?void 0:n.trim())||n;const l=new Set,s=new Map,c=e.length,r=a.length;if(c===1){const d=[];for(let h=0;h<r;h++){const f=a[h],{label:u,value:b}=f,k={...e[0],value:e[0][b]};l.add(u),d.push(k)}const y=e[0][n]||"";s.set(y,d)}else for(let d=0;d<c;d++){const y=e[d],h=y[n];l.add(h);for(let f=0;f<r;f++){const u=a[f],{label:b,value:k}=u,p={...y,value:y[k]};if(s.has(b)){const x=s.get(b);x.push(p),s.set(b,x)}else s.set(b,[p])}}const i=Array.from(l),m=[];for(const[d,y]of s)m.push({name:d,data:y});return{dimensions:i,dataset:m}},Ae=(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},Fn=(e,o)=>{const n=`${vn}/preview?pageId=${o}`,a=`${vn}/${o}`;return e==="preview"?n:a},ct=e=>{const{getGlobalModel:o}=t.inject(te,{getGlobalModel:i=>{}}),n=i=>{const m=[];return i==null||i.leftAxisList.forEach(d=>{if(d){let y=!1;i.leftAxis.includes(d.name)&&(y=!0);let h={label:d.name,columnName:d.label,aggregate:d.calcValue?d.calcValue:"SUM",order:null,location:"LEFT",show:y};i.source==="INDICATOR_LIB"&&(h.hrpIndexCode=d.indexCode),h=a(d,h),m.push(h)}}),i.rightAxisList.forEach(d=>{let y=!1;i.rightAxis.includes(d.name)&&(y=!0);let h={label:d.name,columnName:d.label,aggregate:"SUM",order:null,location:"LEFT",show:y};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 y=0;y<i.length;y++){const{keyName:h,searchName:f,searchType:u,variateName:b,id:k}=i[y],p={alias:h,fieldName:f,rule:u||"NONE",fieldValue:"",valueType:"",variateName:b},x=o(k)||{};if(f==="the_date"?p.valueType="DATE":["hbdwbh","hbdwbh_name"].includes(f)&&(p.valueType="TEXT"),x.type==="ecanDatePicker"){p.dateFormat=x.format;const T=(d=t.unref(x))==null?void 0:d.value.format;typeof T=="function"&&(p.fieldValue=T(x==null?void 0:x.format))}m.push(p)}return m},s=(i,m)=>{const d=m.find(y=>y.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((y,h)=>{h!==0&&(i.customGroup.groupInfoMap[y.key]=y.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 y="";i.type==="and"?y="&&":y="||",m.push({conditions:[],join:y}),c(i.children[d],m[m.length-1].conditions)}else if(i.children[d].fieldName){let y="";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(y=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&&(y="#######",h.calcWays=i.children[d].calcWays):i.children[d].selectType==="component"&&(y="${"+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(y)==="[object Array]"){const f=[];for(let u=0;u<y.length;u++)y[u]!=="全选"&&f.push(y[u]);y=f.join(",")}h.fieldValue=y,i.children.length>1&&d!==i.children.length-1&&(i.type==="and"?h.join="&&":h.join="||"),m.push(h)}},r=(i,m,d)=>{if(!i)return;const y=d[m].find(u=>u.name===i.label);if(!y)return;const h=[],f=y.filterList;if(f)for(let u=0;u<f.length;u++)f[u].children.length>0&&c(f[u],h);return h};return async function(){var E,_;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 f;if(Array.isArray(m.series)&&m.series.length>0){const w=(E=m.seriesList)==null?void 0:E.find(g=>{const S=m.series[0];return g.name===S||g.nameBak===S});w!=null&&(f={label:w.name,columnName:w.label})}let u;if(d.length>0){u={label:d[0],columnName:d[0]};const w=((_=m.classifyList)==null?void 0:_.find(g=>(g==null?void 0:g.name)===d[0]||(g==null?void 0:g.nameBak)===d[0]))||{};u.columnName=w.label,s(u,m.classifyList),u.conditions=r(u,"classifyList",m)||[]}f&&(s(f,m.seriesList),f.conditions=r(f,"seriesList",m)||[]);for(let w=0;w<h.length;w++)h[w].location==="RIGHT"?h[w].conditions=r(h[w],"rightAxisList",m):h[w].conditions=r(h[w],"leftAxisList",m);let b;(m==null?void 0:m.pageMode)==="design"?b=m.sqlConditions??[]:b=l(m==null?void 0:m.relativeList);let k="SQL_VIEW",p="",x="",T="";m.source==="INDICATOR_LIB"&&(k="INDICATOR_LIB",p=m.fixedDimSql,x=m.dataSourceId,T=m.idxLibMode);const v={ecanBar:"bar",ecanLine:"line",ecanPie:"pie",ecanScatter:"scatter"};try{const w=await ge.get(`${qe}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});return ge.post(`${qe}/diagram`,{dataViewId:m.dataViewId,plugin:"1",layer:"2",chartType:v[i],classification:u,indicatorList:h,series:f,sqlConditions:b,source:k,fixedDimSql:p,dataSourceId:x,idxLibMode:T},{headers:{Authentication:w.data.data.token}})}catch(w){console.error(w)}}},xe=(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 s=0;s<a;s++){const c=n[s];if(c==null||c==="")break;let r=(l=c.slice(1,-1))==null?void 0:l.trim();r=r==null?void 0:r.replace(/value/g,o);try{let i=r;/\(.*\)/g.test(r)&&(i=Ue(r)),e=e.replace(c,i)}catch{e=e.replace(c,r)}}return e},On=(e={})=>{const{requestToken:o}=t.inject(Mn,{requestToken:()=>{}});e.dataType==="indicator"&&o();const n=(c={})=>{const{label:r,name:i,location:m,show:d,indexCode:y}=c;return{label:r,columnName:i,location:m,show:d,calcType:"COLUMN",hrpIndexCode:y}},a=(c={})=>{const{label:r,name:i,location:m,show:d,indexCode:y,calcType:h="COLUMN",builtInFormula:f,builtInValueSource:u,builtInCalcWay:b,formula:k,conditions:p}=c;return{label:r,columnName:i,location:m,show:d,calcType:h,hrpIndexCode:y,aggregate:"SUM",builtInFormula:f,builtInValueSource:u,builtInCalcWay:b,formula:k,conditions:p}},{getGlobalModel:l}=t.inject(te,{getGlobalModel:c=>{}}),s=(c=[])=>{var m;const r=c.length,i=[];for(let d=0;d<r;d++){const y=c[d],{id:h,conditionLabel:f,conditionKey:u,conditionValueType:b}=y,k={rule:"NONE",label:f,fieldName:u,fieldValue:"",valueType:b},p=l(h)||{};if(zn(p.type,"date")){const{value:x,format:T}=p||{};k.fieldValue=(m=t.unref(x))==null?void 0:m.format(T),k.dateFormat=T}i.push(k)}return i};return async()=>{var B;const{graphicConfig:c}=e,{source:r,dataViewId:i,plugin:m,layer:d,chartType:y,classificationList:h=[],seriesList:f=[],leftAxisList:u=[],rightAxisList:b=[],queryColumnList:k=[],indicators:p=[],controlList:x=[],dataSourceId:T,idxLibMode:v,preview:E=!1}=c||{};let _;if(Array.isArray(h)&&h.length>0){const A=h.length;for(let I=0;I<A;I++){const R=h[I]||{},{label:j="",name:N="",show:O=!1,sort:F,customGroup:$,conditions:U}=R;if(O||A===1){_={label:j,columnName:N,show:O,sort:F,customGroup:$,conditions:U};break}}}let w;if(Array.isArray(f)&&f.length>0){const A=f.length;for(let I=0;I<A;I++){const R=f[I]||{},{label:j="",name:N="",show:O=!1,sort:F,customGroup:$,conditions:U}=R;if(O||A===1){w={label:j,columnName:N,show:O,sort:F,customGroup:$,conditions:U};break}}}const g=[];k==null||k.forEach(A=>{g.push(n(A))});const S=[];if(u==null||u.forEach(A=>{A.location="LEFT",S.push(a(A))}),b==null||b.forEach(A=>{A.location="RIGHT",S.push(a(A))}),p==null||p.forEach(A=>{A.location="LEFT",S.push(a(A))}),d==="1"&&g.length===0)return;if(d==="2"&&S.length===0)return;let L;(c==null?void 0:c.pageMode)==="design"?L=c.sqlConditions??[]:L=s(x);try{return await ge.post(`${qe}/diagram`,{source:r,dataViewId:i,plugin:m,layer:d,chartType:y,classification:_,series:w,indicatorList:S,queryColumns:g,pageFlag:!0,sqlConditions:L,dataSourceId:T,idxLibMode:v,preview:E},{headers:{Authentication:(B=window==null?void 0:window.config)==null?void 0:B.indicatorToken,operateContext:"ygt"}})}catch(A){console.error(A)}}},ol=()=>{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 s=l.split("=");if(Array.isArray(s)){const c=s[0],r=s[1];window.config[c]=r}}},al=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...it},setup(e){const o=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:Ae(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),n=t.ref(0),a=t.ref(0),l=t.ref(0),s=t.ref(0),c=t.ref(!1),r=t.ref();let i;const m=()=>new Promise(b=>{t.nextTick(()=>{e.width&&e.height?(n.value=parseFloat(e.width),a.value=parseFloat(e.height)):(n.value=r.value.clientWidth,a.value=r.value.clientHeight),(!l.value||!s.value)&&(l.value=window.screen.width,s.value=window.screen.height),b()})}),d=()=>{n.value&&a.value?(r.value.style.width=`${n.value}px`,r.value.style.height=`${a.value}px`):(r.value.style.width=`${l.value}px`,r.value.style.height=`${s.value}px`)},y=()=>{const b=document.body.clientWidth,k=document.body.clientHeight,p=n.value||l.value,x=a.value||s.value,T=b/p,v=k/x;r.value&&(r.value.style.transform=`scale(${T}, ${v})`)},h=pe.debounce(async()=>{await m(),y()},100),f=()=>{const b=window.MutationObserver;i=new b(h),i.observe(r.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(),y(),window.addEventListener("resize",h),f(),c.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",h),u()}),{style:o,container:r,ready:c}}}),ir="",ll={id:"container",ref:"container"};function il(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",ll,[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 Pn=W(G(al,[["render",il],["__scopeId","data-v-242d350e"]])),dt={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},mt=Z(dt),rl=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...mt},setup(e,{expose:o}){ol();const n=t.ref(),a=()=>{n.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>K(e.contextRequestUrl)),s=t.computed(()=>e.pageMode),c=t.computed(()=>e.theme),r=t.ref("");t.provide(ee,{contextRequestUrl:l,pageMode:s,theme:c,touchEventId:r});const i=new Map,m=N=>i.get(N),d=(N,O)=>{i.set(N,O)};t.provide(te,{getGlobalModel:m,setGlobalModel:d});const y=[],h=()=>{y.pop()},f=N=>{y.push(N)},u=new Map,b=N=>u.get(N),k=(N,O)=>{u.set(N,O)};t.provide(Nn,{popUseModalIds:h,pushUseModalIds:f,getModalModel:b,setModalModel:k});const p=zo(),x=new Set,T=(N,O)=>{x.add(N),p.on(N,F=>typeof O[F]=="function"&&O[F]()),t.onBeforeUnmount(()=>{v(N)})},v=N=>{x.delete(N),p.off(N)},E=(N,O)=>{if(N==="PAGE"){const F=y.length;let $=[];if(F===0)$=[...x];else{const U=y[F-1];$=[...b(U)]}$.forEach(U=>{p.emit(U,O)})}else p.emit(N,O)};t.provide(rt,{onEvent:T,offEvent:v,emitEvent:E});const _=t.ref(0),w=()=>{_.value=t.unref(_)+1};t.provide(Mn,{requestToken:w});const g=new Map,S=new Map,L=({requestFn:N=()=>{},sortNum:O=0,id:F=""})=>{if(g.has(O)){const $=g.get(O);$==null||$.push(N)}else g.set(O,[N]);S.set(F,N)},B=N=>new Promise((O,F)=>{const $=N.map(U=>U());Promise.all($).then(U=>{O(U)}).catch(U=>{F(U)})}),A=async()=>{var O;const N=await rn.get(`${qe}/user/anonymous?username=admin`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt"}});config.indicatorToken=(O=N.data.data)==null?void 0:O.token},I=N=>new Promise(async(O,F)=>{if(N){if(typeof N=="string"){const $=S.get(N);if(typeof $=="function"){const U=ge.interceptors.response.use(oe=>(O(oe),oe),oe=>(F(oe),Promise.reject(oe)));$(),ge.interceptors.response.eject(U)}}}else{const $=Array.from(g);$.sort((oe,Se)=>Se[0]-oe[0]);const U=$.length;try{e.pageMode!=="design"&&t.unref(_)>0&&await A();for(let oe=0;oe<U;oe++){const Se=$[oe][1];await B(Se)}}catch(oe){console.error(oe)}finally{g.clear(),O(null)}}});t.provide(de,{setRequest:L,touchRequest:I});const R=()=>{p.emit(Be)};t.provide(Be,{emitRefreshPage:R});const j=N=>{p.on(Be,()=>N()),t.onMounted(()=>{p.off(Be)})};return t.onBeforeUnmount(()=>{g==null||g.clear(),S==null||S.clear()}),o({touchRequest:I,getGlobalModel:m,onRefreshPage:j}),{providerConfig:n}}}),sl={id:"ProviderConfig",ref:"providerConfig"};function cl(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",sl,[t.renderSlot(e.$slots,"default")],512)}const Rn=W(G(rl,[["render",cl]])),ft={...X,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:""},ut=Z(ft),Dn=["refreshData","click"],dl="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=",ml="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==",fl=t.defineComponent({name:"EcanText",components:{Skeleton:Ve},props:{...ut},setup(e){const o=J(e),n=t.ref({});t.watch(()=>[e.data,e.dataType],([h,f])=>{f==="static"&&(n.value=h)},{immediate:!0});const a=t.computed(()=>{var b;const h=t.unref(n);let f=e.text;f=f==null?void 0:f.replace(/\n|\\n/g,"<br/>"),f=f==null?void 0:f.replace(/\s(?!\{) | (?!\})\s/g," ");const u=f.match(/\{(.+?)\}/g);if(u==null||u.length===0)return f;for(let k=0;k<u.length;k++){const p=u[k],x=(b=p==null?void 0:p.slice(1,p.length-1))==null?void 0:b.trim();let T=x;const v=x.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let _=0;_<v.length;_++){const w=v[_],g=h[w];g&&(T=x.replace(w,g))}if(/\(.*\)/g.test(T)){const _=Ue(T);_!=null&&(T=_)}let E=T;if(E===x&&(E=e.variableDefaultValue),E!=null){const _=e.format;_==="percentage"?(E=+E,isNaN(E)?f=f.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${0}%</span>`):E>=0?(E=(E*100).toFixed(2),f=f.replace(p,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${dl}"/>${E}%</span>`)):(E=(E*100).toFixed(2),f=f.replace(p,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${ml}"/>${Math.abs(+E)}%</span>`))):e.format==="percent"?(E=+E,isNaN(E)||(E=(E*100).toFixed(2),f=f.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${E}%</span>`))):e.format==="money"?(E=+E,isNaN(E)||(E=st(E),f=f.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${E}</span>`))):_==="thousands"?(E=+E,isNaN(E)||(E=nl(E),f=f.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${E}</span>`))):f=f.replace(p,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${E}</span>`)}}return`<span>${f}</span>`}),{pageMode:l}=t.inject(ee,{pageMode:"normal"}),s=ue(e),c=t.ref(!1),r=async()=>{var h;if(t.unref(l)!=="design")try{c.value=!0;const f=await s();n.value=((h=f==null?void 0:f.data)==null?void 0:h.data)||{}}catch(f){console.error(f)}finally{c.value=!1}},i=()=>{e.dataType!=="static"&&r()};ae(e,{refreshData:i});const{setRequest:m}=t.inject(de,{setRequest:({id:h,sortNum:f,requestFn:u})=>{}});m({id:e.id,requestFn:i,sortNum:e.requestSort}),ae(e,{refreshData:i});const y=ne(e)("click",()=>{if(!e.linkPage&&!e.href)return;const h=e.linkPage||"",f=Fn(t.unref(l),h),u=e.href;let b=u||f;b=K(b);const k=e.target;k&&(k!=="event"?window.open(b,"_"+k):window.parent.postMessage({type:"openPage",url:u},"*"))});return{style:o,myText:a,loading:c,click:y}}}),cr="",ul=["innerHTML"];function gl(e,o,n,a,l,s){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]=(...r)=>e.click&&e.click(...r))},null,12,ul))}const $n=W(G(fl,[["render",gl],["__scopeId","data-v-f9ba6c3f"]])),hl=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),mr="",yl={class:"red"};function bl(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",yl,t.toDisplayString(e.text),1)}const jn=W(G(hl,[["render",bl],["__scopeId","data-v-4dd9c03e"]])),gt={...X,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"},ht=Z(gt),pl=t.defineComponent({name:"EcanTimeDisplay",props:{...ht},setup(e){const o=J(e),n=t.ref(se().format(e.format));let a=null;const l=()=>{clearInterval(a),a=null},s=()=>{a&&l(),a=setInterval(()=>{n.value=se().add(1,"s").format(e.format)},1e3)};return t.onMounted(()=>{s()}),t.onUnmounted(()=>{l()}),{style:o,time:n}}}),ur="";function Cl(e,o,n,a,l,s){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const Vn=W(G(pl,[["render",Cl],["__scopeId","data-v-47d57d2d"]])),yt={...X,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"}]},bt=Z(yt),qn=["refreshData","click"],kl=t.defineComponent({name:"EcanList",components:{Skeleton:Ve},props:{...bt},setup(e){const o=t.ref(e.data),n=J(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(u,b)=>b==null||b===""?u:{money:st,percentage:Ge,contrast:Ge}[b](u)||"",s=(u,b)=>{const k=parseFloat(u+"");if(b!=="contrast")return"";switch(!0){case k>=0:return"goUp";case k<0:return"goDown"}},c=ue(e),{pageMode:r}=t.inject(ee,{pageMode:"normal"}),i=t.ref(!1),m=async()=>{var u;if(!(e.dataType!=="request"||t.unref(r)==="design"))try{i.value=!0;const b=await c();o.value=((u=b==null?void 0:b.data)==null?void 0:u.data.rows)||[]}catch(b){console.error(b)}finally{i.value=!1}},d=()=>{m()},h=ne(e)("click",()=>{});ae(e,{refreshData:d});const{setRequest:f}=t.inject(de,{setRequest:({id:u,sortNum:b,requestFn:k})=>{}});return f({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,formatFn:l,columnStyle:a,contrastClass:s,dataSource:o,loading:i,click:h}}}),hr="",yr="",Sl=e=>(t.pushScopeId("data-v-211785ca"),e=e(),t.popScopeId(),e),wl={key:0,class:"title"},Al={key:0,class:"ranking"},xl={key:1,class:"ecan-list-content"},Tl={key:0,class:"ranking"},El=Sl(()=>t.createElementVNode("div",{class:"icon"},null,-1)),_l={class:"sort"},Ll={key:2,class:"empty"};function Il(e,o,n,a,l,s){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",wl,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columnCount,r=>(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:r%e.columnCount!==0?e.itemColSpan:""}),key:r},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Al)):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",xl,[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),(r,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:r.id||i,onClick:o[0]||(o[0]=(...m)=>e.click&&e.click(...m))},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Tl,[El,t.createElementVNode("div",_l," 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(r[m.key],m.format)]),key:m.key,style:t.normalizeStyle({fontSize:m.fontSize,color:e.contrastClass(r[m.key],m.format)===""?m.color:"",fontWeight:m.fontWeight,...e.columnStyle})},t.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(r[m.key],m.format)),7))),128))],4))),128))])):(t.openBlock(),t.createElementBlock("div",Ll," 暂无数据 "))]),_:1},8,["loading"])],4)}const Gn=W(G(kl,[["render",Il],["__scopeId","data-v-211785ca"]])),pt={...X,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"},Ct=Z(pt),Un=["refreshData","click"],Ml=t.defineComponent({name:"EcanProportion",components:{AProgress:q.Progress,Skeleton:Ve},props:{...Ct},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 s=t.computed(()=>{const u=t.unref(l),b=+e.variableDefaultValue;if(u==null)return isNaN(b)?0:b;const k=e.text.match(/\{.+\}/g)||[];let p;const x=new Set(Object.keys(u));for(let T=0;T<k.length;T++){const v=k[T],E=v.slice(1,v.length-1);if(x.has(E)){p=u[E];break}}return typeof p=="number"?p=p*100:typeof p=="string"&&!isNaN(+p)?p=+p*100:isNaN(b)?p=0:p=b*100,e.decimalFormat&&(p=+p.toFixed(2)),p}),c=t.computed(()=>{var p;let u=e.text;if(u==="")return t.unref(s);const b=t.unref(l),k=u.match(/\{.+\}/g)||[];for(let x=0;x<k.length;x++){const T=k[x];let v=T.slice(1,T.length-1);const E=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,_=T.match(E);for(let g=0;g<(_==null?void 0:_.length);g++){const S=(p=_[g])==null?void 0:p.trim();b[S]!=null&&(v=v.replace(S,b[S]))}let w=v;try{/\(.*\)/g.test(v)&&(w=Ue(v))}catch(g){console.error(g)}(typeof+w=="number"||!isNaN(+w))&&e.decimalFormat&&(w=+w*100,w=w.toFixed(2)),u=u.replace(T,w+"")}return u}),r=ue(e),i=t.ref(!1),m=async()=>{var u;if(!(e.dataType!=="request"||t.unref(o)==="design"))try{i.value=!0;const b=await r();l.value=((u=b==null?void 0:b.data)==null?void 0:u.data)||{}}catch(b){console.error(b)}finally{i.value=!1}};ae(e,{refreshData:()=>{m()}});const h=ne(e)("click",()=>{}),{setRequest:f}=t.inject(de,{setRequest:({id:u,sortNum:b,requestFn:k})=>{}});return f({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:n,myWidth:a,text:c,myValue:s,loading:i,click:h}}}),pr="";function Nl(e,o,n,a,l,s){const c=t.resolveComponent("skeleton"),r=t.resolveComponent("a-progress");return t.openBlock(),t.createElementBlock("div",{class:"ecan-proportion",style:t.normalizeStyle(e.style)},[t.createVNode(r,{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 Wn=W(G(Ml,[["render",Nl],["__scopeId","data-v-28b872d0"]])),kt={...X,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},St=Z(kt),Hn=["inputChange","inputBlur"],vl=t.defineComponent({name:"EcanInput",components:{AInput:q.Input},props:{...St},setup(e){const o=J(e),n=t.ref("");t.watch(()=>e.value,m=>{n.value=m},{immediate:!0});const{getGlobalModel:a,setGlobalModel:l}=t.inject(te,{getGlobalModel:m=>{},setGlobalModel:(m,d)=>{}});l(e.id,{type:e.type,value:n});const s=()=>{const m=a(e.id);l(e.id,{...m,RECORD:n})},c=ne(e),r=pe.debounce(c("inputChange",()=>{s()}),300),i=c("inputBlur",()=>{});return{style:o,myValue:n,inputBlur:i,inputChange:r}}}),kr="";function Bl(e,o,n,a,l,s){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]=r=>e.myValue=r),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const Zn=W(G(vl,[["render",Bl]])),wt={...X,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},At=Z(wt),Jn=["dateChange"],zl=t.defineComponent({name:"EcanDatePicker",props:{...At},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],([r,i,m])=>{let d=null;if(r?d=se(K(r)):i&&(d=se()),m&&d){const{type:y,value:h,mode:f}=m;switch(y){case"add":d=d.add(h,f);break;case"minus":d=d.subtract(h,f)}}a.value=d},{deep:!0,immediate:!0});const{setGlobalModel:l}=t.inject(te,{setGlobalModel:(r,i)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const c=ne(e)("dateChange",()=>{});return ae(e,{dateChange:c}),{style:o,getPopupContainer:n,myValue:a,locale:sn,dateChange:c}}}),wr="";function Fl(e,o,n,a,l,s){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]=r=>e.myValue=r),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 Yn=W(G(zl,[["render",Fl]])),xt={...X,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(xt),Qn=["selectChange"],Ol=t.defineComponent({name:"EcanSelect",components:{ASelect:q.Select},props:{...Tt},setup(e){const o=J(e),n=()=>document.getElementById("ProviderConfig")||document.body,a=ue(e),{pageMode:l}=t.inject(ee,{pageMode:"normal"}),s=t.ref(e.data),c=t.ref(e.value||e.data[0]),r=e.dataFieldNames,i=(k,p)=>{const x=r.label,T=r.value;let v;const E=p[x],_=p[T];return E!=null?v=E:_!=null&&(v=_),(v==null?void 0:v.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},m=t.ref(!1),d=async()=>{var k,p;if(!(e.dataType!=="request"||t.unref(l)==="design")){m.value=!0;try{const x=await a();s.value=((p=(k=x==null?void 0:x.data)==null?void 0:k.data)==null?void 0:p.rows)||[];const T=t.unref(s)[0];e.value===""&&T!=null&&(c.value=T[r.value])}catch(x){console.error(x)}finally{m.value=!1}}},{getGlobalModel:y,setGlobalModel:h}=t.inject(te,{getGlobalModel:k=>{},setGlobalModel:(k,p)=>{}});h(e.id,{type:e.type,value:c});const u=ne(e)("selectChange",()=>{const k=e.id,p=y(k);h(k,{...p,RECORD:c})});ae(e,{selectChange:u});const{setRequest:b}=t.inject(de,{setRequest:({id:k,sortNum:p,requestFn:x})=>{}});return b({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,getPopupContainer:n,myValue:c,selectChange:u,options:s,filterOption:i,loading:m}}}),xr="",Tr="";function Pl(e,o,n,a,l,s){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]=r=>e.myValue=r),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 Xn=W(G(Ol,[["render",Pl],["__scopeId","data-v-ef197aff"]])),Et={...X,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:""},_t=Z(Et),Kn=["dateChange"],Rl=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],([f,u,b,k,p,x])=>{let T=null,v=null;if(b&&(T=se().subtract(k,p),v=se()),f&&(T=se(K(f))),u&&(v=se(K(u))),x){const{type:E,value:_,mode:w}=x;switch(E){case"add":T=T&&T.add(_,w),v=v&&v.add(_,w);break;case"minus":T=T&&T.subtract(_,w),v=v&&v.subtract(_,w)}}a.value=[T,v]},{immediate:!0});let l=t.unref(a)[0],s=t.unref(a)[1];const c=f=>{Array.isArray(f)?(l=f[0],s=f[1]):(l=null,s=null)},r=f=>{let u=!1,{limitStartTime:b,limitEndTime:k}=e;const p={startTime:`${l||""}`,endTime:`${s||""}`};return b=K(b,{codeData:p}),k=K(k,{codeData:p}),b&&k?u=!(se(b)<f&&f<se(k)):b?u=se(b)>f:k&&(u=se(k)<f),u},{setGlobalModel:i}=t.inject(te,{setGlobalModel:(f,u)=>{}}),m=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),d=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);i(e.id,{type:e.type,format:e.format,startTime:m,endTime:d});const h=ne(e)("dateChange",()=>{console.log("dateChange")});return ae(e,{dateChange:h}),{style:o,getPopupContainer:n,locale:sn,dateChange:h,myValue:a,disabledDate:r,calendarChange:c}}}),_r="",Lr="";function Dl(e,o,n,a,l,s){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]=r=>e.myValue=r),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.dateChange,onCalendarChange:e.calendarChange},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange"])],4)}const eo=W(G(Rl,[["render",Dl],["__scopeId","data-v-24f19e2d"]])),Lt={...X,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},It=Z(Lt),to=["click"],$l=t.defineComponent({name:"EcanButton",components:{AButton:q.Button},props:{...It},setup(e){const o=J(e),a=ne(e)("click",()=>{const r=t.unref(s);r&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:r},"*")}),l=t.computed(()=>K(e.text)),s=t.computed(()=>K(e.href)||null),c=t.computed(()=>{const r=e.target;if(!(r==="event"||t.unref(s)==null))return{self:"_self",blank:"_blank"}[r]});return{style:o,click:a,myText:l,myHref:s,myTarget:c}}}),Mr="";function jl(e,o,n,a,l,s){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 no=W(G($l,[["render",jl]])),Mt={...X,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}]},Nt=Z(Mt),oo=["checkboxChange"],Vl=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:q.CheckboxGroup},props:{...Nt},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=f=>{const u=e.value;let b=[];f.forEach(k=>{k.checked&&b.push(k.value)}),typeof u=="string"&&u!==""?b=b.concat(u.split(",")):Array.isArray(u)&&(b=b.concat(u)),n.value=f,a.value=b};t.watch(()=>[e.data,e.value],([f])=>{l(f)},{immediate:!0,deep:!0});const s=ue(e),{pageMode:c}=t.inject(ee,{pageMode:"normal"}),r=async()=>{var b,k;if(e.dataType!=="request"||t.unref(c)==="design")return;const f=await s(),u=((k=(b=f==null?void 0:f.data)==null?void 0:b.data)==null?void 0:k.rows)||[];l(u)},{getGlobalModel:i,setGlobalModel:m}=t.inject(te,{getGlobalModel:f=>{},setGlobalModel:(f,u)=>{}});m(e.id,{type:e.type,value:a});const y=ne(e)("checkboxChange",()=>{const f=i(e.id);m(e.id,{...f,RECORD:a})}),{setRequest:h}=t.inject(de,{setRequest:({id:f,sortNum:u,requestFn:b})=>{}});return h({id:e.id,requestFn:r,sortNum:e.requestSort}),{myOption:n,style:o,myValue:a,checkboxChange:y}}}),vr="";function ql(e,o,n,a,l,s){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]=r=>e.myValue=r),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const ao=W(G(Vl,[["render",ql]])),vt={...X,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:"当前无说明信息"},Bt=Z(vt),lo=["click","refreshData","resetRecord"],Fe=async e=>{var i;const o=await ge.post(e,{},{responseType:"blob"}),{data:n,headers:a}=o,l=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),s=new Blob([n]),c=document.createElement("a"),r=window.URL.createObjectURL(s);c.href=r,c.download=decodeURI(l),c.style.display="none",document.body.appendChild(c),c.click(),(i=c.parentNode)==null||i.removeChild(c),window.URL.revokeObjectURL(r)};ye.use([Te.CanvasRenderer,Ce.PieChart,Q.TitleComponent,Q.ToolboxComponent,Q.TooltipComponent,Q.LegendComponent]);const Gl=t.defineComponent({name:"EcanPie",props:{...Bt},components:{Spin:ve,Echarts:we,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},s=t.computed(()=>{let{data:_=[]}=t.unref(n)[0]||{};if(Array.isArray(e.colors)){const w=e.isUseLabelColors,g=e.colors;_=_.map((S,L)=>({label:w?{color:g[L]}:{},...S}))}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(){Fe(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:g,seriesName:S,name:L,value:B,percent:A,data:I}=w||{};return K(e.tooltipFormatter,{marker:g,name:L,value:B,percent:A,a:S,b:L,c:B,d:A,...I},{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:_,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:tl(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:r}=t.inject(te,{getGlobalModel:_=>{},setGlobalModel:(_,w)=>{}}),{pageMode:i}=t.inject(ee,{pageMode:"normal"}),m=(_=[],w)=>{const{dataset:g}=ze(_,w);n.value=g},d=(_=[],w)=>{const g=ze(_,w);n.value=g.dataset};t.watch(()=>e.data,_=>{(e.dataType==="static"||t.unref(i)==="design")&&m(_)},{immediate:!0,deep:!0});const y=t.ref(!1),h=ue(e),f=async()=>{var _,w;if(!(e.dataType!=="request"||t.unref(i)==="design"))try{y.value=!0;const g=await h();m((w=(_=g==null?void 0:g.data)==null?void 0:_.data)==null?void 0:w.rows,e.valueTypeDataFieldNames)}catch(g){console.error(g)}finally{y.value=!1}},b=ne(e)("click",_=>{const w=c(e.id);r(e.id,{...w,RECORD:_==null?void 0:_.data})}),k=ct(e),p=async()=>{var _,w,g,S,L,B;if(!(e.dataType!=="indicator"||t.unref(i)==="design"))try{y.value=!0;const A=await k();let I=[];if(((g=(w=(_=A==null?void 0:A.data)==null?void 0:_.data)==null?void 0:w.columns)==null?void 0:g.length)>0){const R=A.data.data.columns[0],j=A.data.data.columns[1];I=(B=(L=(S=A==null?void 0:A.data)==null?void 0:S.data)==null?void 0:L.rows)==null?void 0:B.map(N=>({name:N[R],value:N[j]}))}d(I)}catch(A){console.error(A)}finally{y.value=!1}},x=()=>{t.unref(i)!=="design"&&(p(),f())};ae(e,{resetRecord:()=>{const _=e.id,w=c(_);r(_,{...w,RECORD:""})},refreshData:()=>{x()},click:b});const{setRequest:E}=t.inject(de,{setRequest:({id:_,sortNum:w,requestFn:g})=>{}});return E({id:e.id,requestFn:x,sortNum:e.requestSort}),{option:s,style:o,click:b,loading:y,visible:a,hideModal:l}}}),zr="";function Ul(e,o,n,a,l,s){const c=t.resolveComponent("echarts"),r=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(r,{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(r,{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=W(G(Gl,[["render",Ul]])),zt={...X,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},Ft=Z(zt),ro=["click","refreshData","resetRecord"];ye.use([Te.CanvasRenderer,Ce.LineChart,Q.ToolboxComponent,Q.TitleComponent,Q.LegendComponent]);const Wl=t.defineComponent({name:"EcanLine",props:{...Ft},components:{Spin:ve,Echarts:we,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),s=()=>{l.value=!1},c=t.computed(()=>{const w=e.xAxisLabelFormatter,g=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(){Fe(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:S=>{const L=S.length;let B="",A=e.tooltipFormatter;A===""&&(A="{marker} {a} {c}");for(let I=0;I<L;I++){const{marker:R,seriesName:j,name:N,value:O,data:F}=S[I]||{};I===0&&(B+=`${N}<br/>`),B+=K(A,{marker:R,name:N,value:O,a:j,b:N,c:O,...F},{useNewline:!0,useSpace:!0}),B+="<br/>"}return B}},xAxis:{type:"category",data:t.unref(a),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(S){return xe(w,S)}},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(S){return xe(g,S)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft},series:t.unref(n)}}),{getGlobalModel:r,setGlobalModel:i}=t.inject(te,{getGlobalModel:w=>{},setGlobalModel:(w,g)=>{}}),{pageMode:m}=t.inject(ee,{pageMode:"normal"}),d=(w=[],g=!1)=>{let S;if(e.dataFieldConfigType==="key"){const I=g?e.keyTypeDataFieldNames:null;S=Le(w,I)}else if(e.dataFieldConfigType==="value"){const I=g?e.valueTypeDataFieldNames:null;S=ze(w,I)}a.value=S.dimensions;const L=S.dataset,B=[],A=L.length;for(let I=0;I<A;I++)B.push({type:"line",...L[I],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});n.value=B},y=(w=[],g,S=!1)=>{const B=Le(w,S?g:null);a.value=B.dimensions;const A=B.dataset,I=[],R=A.length;for(let j=0;j<R;j++)I.push({type:"line",...A[j],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});n.value=I};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),f=ue(e),u=async()=>{var w,g;if(!(e.dataType!=="request"||t.unref(m)==="design"))try{h.value=!0;const S=await f();d((g=(w=S==null?void 0:S.data)==null?void 0:w.data)==null?void 0:g.rows,!0)}catch(S){console.error(S)}finally{h.value=!1}},k=ne(e)("click",w=>{const g=r(e.id);i(e.id,{...g,RECORD:w==null?void 0:w.data})}),p=ct(e),x=async()=>{var w,g,S,L,B;if(!(e.dataType!=="indicator"||t.unref(m)==="design"))try{h.value=!0;const A=await p();let I;((S=(g=(w=A==null?void 0:A.data)==null?void 0:w.data)==null?void 0:g.columns)==null?void 0:S.length)>0&&(I={name:A.data.data.columns[0],types:A.data.data.columns.slice(1).map(R=>({label:R,value:R}))}),y((B=(L=A==null?void 0:A.data)==null?void 0:L.data)==null?void 0:B.rows,I,!0)}catch(A){console.error(A)}finally{h.value=!1}},T=()=>{t.unref(m)!=="design"&&(x(),u())};ae(e,{refreshData:()=>{T()},resetRecord:()=>{const w=e.id,g=r(w);i(w,{...g,RECORD:""})},click:k});const{setRequest:_}=t.inject(de,{setRequest:({id:w,sortNum:g,requestFn:S})=>{}});return _({id:e.id,requestFn:T,sortNum:e.requestSort}),{option:c,style:o,click:k,loading:h,visible:l,hideModal:s}}}),Or="";function Hl(e,o,n,a,l,s){const c=t.resolveComponent("echarts"),r=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(r,{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(r,{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=W(G(Wl,[["render",Hl]])),Ot={...X,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}",xAxisLabelInterval:0,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:""},Pt=Z(Ot),co=["refreshData","click","resetRecord"];ye.use([Te.CanvasRenderer,Ce.BarChart,Q.TitleComponent,Q.LegendComponent,Q.DatasetComponent,Q.ToolboxComponent]);const Zl=t.defineComponent({name:"EcanBar",props:{...Pt},components:{Spin:ve,Echarts:we,AModal:q.Modal},setup(e,{expose:o}){const n=J(e),a=t.ref([]),l=t.ref(!1),s=()=>{l.value=!1},c=t.computed(()=>{const g=t.unref(a),S=g.length,L=[];for(let B=0;B<S;B++){const A={...g[B],type:"bar",barWidth:e.barWidth};e.isStack&&(A.stack="stack"),A.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},L.push(A)}return L}),r=t.ref([]),i=t.ref(!1),m=t.computed(()=>{const g=e.yAxisLabelFormatter,S=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(){Fe(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:L=>{const B=L.length;let A="",I=e.tooltipFormatter;I===""&&(I="{marker} {a} {c}");for(let R=0;R<B;R++){const{marker:j,seriesName:N,name:O,value:F,data:$}=L[R]||{};R===0&&(A+=`${O}<br/>`),A+=K(I,{marker:j,name:O,value:F,a:N,b:O,c:F,...$},{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(r),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(L){return xe(S,L)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(r):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(L){return xe(g,L)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(c)}}),{pageMode:d}=t.inject(ee,{pageMode:"normal"}),y=(g=[],S=!1)=>{let L={};if(e.dataFieldConfigType==="key"){const B=S?e.keyTypeDataFieldNames:null;L=Le(g,B)}else if(e.dataFieldConfigType==="value"){const B=S?e.valueTypeDataFieldNames:null;L=ze(g,B)}a.value=L.dataset,r.value=L.dimensions},h=(g=[],S,L=!1)=>{const A=Le(g,L?S:null);a.value=A.dataset,r.value=A.dimensions};t.watch(()=>e.data,g=>{(e.dataType==="static"||t.unref(d)==="design")&&y(g)},{immediate:!0,deep:!0});const f=ue(e),u=async()=>{var g,S;try{i.value=!0;const L=await f();y((S=(g=L==null?void 0:L.data)==null?void 0:g.data)==null?void 0:S.rows,!0)}catch(L){console.error(L)}finally{i.value=!1}},b=On(e),k=async()=>{var g;try{i.value=!0;const S=await b(),{columns:L=[],rows:B=[]}=((g=S==null?void 0:S.data)==null?void 0:g.data)??{};let A;L.length>0&&(A={name:L[0],types:L.slice(1).map(I=>({label:I,value:I}))}),h(B,A,!0)}catch(S){console.error(S)}finally{i.value=!1}},p=()=>{if(t.unref(d)!=="design")switch(e.dataType){case"indicator":k();break;case"request":u();break}};o({refreshData:p});const x=ne(e),{getGlobalModel:T,setGlobalModel:v}=t.inject(te,{getGlobalModel:g=>{},setGlobalModel:(g,S)=>{}}),E=x("click",g=>{const S=T(e.id);v(e.id,{...S,RECORD:g.data})}),{setRequest:_}=t.inject(de,{setRequest:({id:g,sortNum:S,requestFn:L})=>{}});return _({id:e.id,requestFn:p,sortNum:e.requestSort}),ae(e,{refreshData:p,click:E,resetRecord:()=>{const g=e.id,S=T(g);v(g,{...S,RECORD:""})}}),{option:m,style:n,refreshData:p,click:E,loading:i,visible:l,hideModal:s}}}),Rr="";function Jl(e,o,n,a,l,s){const c=t.resolveComponent("echarts"),r=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{class:"ecan-bar",style:t.normalizeStyle(e.style)},[t.createVNode(r,{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(r,{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=W(G(Zl,[["render",Jl]])),Rt={...X,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:"当前无说明信息"},Dt=Z(Rt),fo=["click","refreshData"];ye.use([Te.CanvasRenderer,Ce.ScatterChart,Q.ToolboxComponent,Q.TitleComponent,Q.TooltipComponent,Q.LegendComponent]);const Yl=t.defineComponent({name:"EcanScatter",props:{...Dt},components:{Spin:ve,Echarts:we,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref(!1),l=()=>{a.value=!1},s=t.computed(()=>{const p=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(){Fe(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(T){return xe(p,T)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(T){return xe(x,T)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:function(T){var S;const{marker:v,seriesName:E}=T,_=((S=T==null?void 0:T.data)==null?void 0:S.record)??{},{name:w,value:g}=_;return K(e.tooltipFormatter,{marker:v,seriesName:E,a:E,b:w,c:g,..._})},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:r}=t.inject(te,{getGlobalModel:p=>{},setGlobalModel:(p,x)=>{}}),{pageMode:i}=t.inject(ee,{pageMode:"normal"}),m=(p=[],x)=>{const{name:T="name",value:v="value"}=x||{};n.value=p.map(E=>({value:[E[T],E[v]],record:E}))};t.watch(()=>e.data,p=>{(e.dataType==="static"||t.unref(i)==="design")&&m(p)},{immediate:!0,deep:!0});const d=t.ref(!1),y=ue(e),h=async()=>{var p,x;if(!(e.dataType!=="request"||t.unref(i)==="design")){d.value=!0;try{const T=await y();m((x=(p=T==null?void 0:T.data)==null?void 0:p.data)==null?void 0:x.rows,e.dataFieldNames)}catch(T){console.error(T)}finally{d.value=!1}}},u=ne(e)("click",p=>{const x=e.id,T=c(x);r(x,{...T,RECORD:p==null?void 0:p.data})});ae(e,{refreshData:()=>{h()},click:u});const{setRequest:k}=t.inject(de,{setRequest:({id:p,sortNum:x,requestFn:T})=>{}});return k({id:e.id,requestFn:h,sortNum:e.requestSort}),{option:s,style:o,click:u,loading:d,visible:a,hideModal:l}}}),$r="";function Ql(e,o,n,a,l,s){const c=t.resolveComponent("echarts"),r=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(r,{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(r,{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 uo=W(G(Yl,[["render",Ql]])),$t={...X,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},jt=Z($t),Xl=t.defineComponent({name:"EcanCustomGraph",props:{...jt},components:{Echarts:we},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:Ro}}});function Kl(e,o,n,a,l,s){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 go=W(G(Xl,[["render",Kl]])),Vt={...X,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,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%"},qt=Z(Vt),ho=["refreshData","click","resetRecord"];ye.use([Te.CanvasRenderer,Ce.BarChart,Ce.LineChart,Q.TitleComponent,Q.LegendComponent,Q.DatasetComponent,Q.ToolboxComponent]);const ei=t.defineComponent({name:"EcanComboGraph",props:{...qt},components:{Spin:ve,Echarts:we,AModal:q.Modal},setup(e){const o=J(e),n=t.ref([]),a=t.ref([]),l=t.ref(!1),s=()=>{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(){Fe(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:g=>{const S=g.length;let L="",B=e.tooltipFormatter;B===""&&(B="{marker} {a} {c}");const A=e.seriesTypes;for(let I=0;I<S;I++){const R=A[I],{tooltipFormatter:j}=R||{},{marker:N,seriesName:O,name:F,value:$,data:U}=g[I]||{};I===0&&(L+=`${F}<br/>`),L+=K(j||B,{marker:N,name:F,value:$,seriesName:O,a:O,b:F,c:$,...U},{useNewline:!0,useSpace:!0}),L+="<br/>"}return L},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:r}=t.inject(ee,{pageMode:"normal"}),i=(g=[],S=!1)=>{let L;if(e.dataFieldConfigType==="key"){const j=S?e.keyTypeDataFieldNames:null;L=Le(g,j)}else if(e.dataFieldConfigType==="value"){const j=S?e.valueTypeDataFieldNames:null;L=ze(g,j)}a.value=L.dimensions;const B=L.dataset,A=[],I=B.length,R=e.seriesTypes;for(let j=0;j<I;j++){const N=R[j],{type:O,axisIndex:F}=N||{};let $={type:O,yAxisIndex:F,...B[j]};O==="line"&&($={...$,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),O==="bar"&&($={...$,barWidth:e.barWidth}),A.push($)}n.value=A},m=(g=[],S,L=!1)=>{const A=Le(g,L?S:null);a.value=A.dimensions;const I=A.dataset,R=[],j=I.length,N=e.seriesTypes;for(let O=0;O<j;O++){const F=N[O];R.push({type:F==null?void 0:F.type,yAxisIndex:F==null?void 0:F.axisIndex,...I[O]})}n.value=R};t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([g])=>{(e.dataType==="static"||t.unref(r)==="design")&&i(g)},{immediate:!0,deep:!0});const d=t.computed(()=>{const g=e.yAxis;return g==null?void 0:g.map(S=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{color:e.yAxisLabelColor,formatter(L){return xe(S.axisLabelFormatter,L)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),y=t.ref(!1),h=ue(e),f=async()=>{var g,S;if(!(e.dataType!=="request"||t.unref(r)==="design"))try{y.value=!0;const L=await h();i((S=(g=L==null?void 0:L.data)==null?void 0:g.data)==null?void 0:S.rows,!0)}catch(L){console.error(L)}finally{y.value=!1}},u=ct(e),b=async()=>{var g,S,L,B,A;if(!(e.dataType!=="indicator"||t.unref(r)==="design"))try{y.value=!0;const I=await u();let R;((L=(S=(g=I==null?void 0:I.data)==null?void 0:g.data)==null?void 0:S.columns)==null?void 0:L.length)>0&&(R={name:I.data.data.columns[0],types:I.data.data.columns.slice(1).map(j=>({label:j,value:j}))}),m((A=(B=I==null?void 0:I.data)==null?void 0:B.data)==null?void 0:A.rows,R,!0)}catch(I){console.error(I)}finally{y.value=!1}},k=()=>{t.unref(r)!=="design"&&(b(),f())},p=()=>{k()},x=ne(e),{getGlobalModel:T,setGlobalModel:v}=t.inject(te,{getGlobalModel:g=>{},setGlobalModel:(g,S)=>{}}),E=x("click",g=>{const S=T(e.id);v(e.id,{...S,RECORD:g==null?void 0:g.data})}),{setRequest:_}=t.inject(de,{setRequest:({id:g,sortNum:S,requestFn:L})=>{}});return _({id:e.id,requestFn:k,sortNum:e.requestSort}),ae(e,{resetRecord:()=>{const g=e.id,S=T(g);v(g,{...S,RECORD:""})},refreshData:p,click:E}),{style:o,option:c,click:E,loading:y,visible:l,hideModal:s}}}),qr="";function ti(e,o,n,a,l,s){const c=t.resolveComponent("echarts"),r=t.resolveComponent("spin"),i=t.resolveComponent("a-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(r,{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(r,{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 yo=W(G(ei,[["render",ti]])),Gt={...X,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:{}},Ut=Z(Gt),bo=["click"],ni=t.defineComponent({name:"EcanBorder",props:{...Ut},setup(e){const o=J(e,["background"]),{theme:n}=t.inject(ee,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),s=ne(e)("click",()=>{}),c=t.ref([]);t.watch(()=>e.data,i=>{c.value=i},{immediate:!0,deep:!0}),ae(e,{click:s});const{setGlobalModel:r}=t.inject(te,{setGlobalModel:(i,m)=>{}});return r(e.id,{type:e.type,value:c}),{style:o,click:s,borderStyle:a,theme:n}}}),oi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",ai="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",Ur="",he=e=>(t.pushScopeId("data-v-1550b11b"),e=e(),t.popScopeId(),e),li=he(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),ii=he(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),ri=he(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),si=he(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),ci={class:"title-item-wrapper"},di={class:"title-item"},mi=he(()=>t.createElementVNode("img",{class:"title-decoration-left",src:oi},null,-1)),fi={class:"title"},ui=he(()=>t.createElementVNode("img",{class:"title-decoration-right",src:ai},null,-1)),gi=he(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),hi=he(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),yi=he(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),bi=he(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),pi={key:2,class:"left-title"},Ci={class:"title"};function ki(e,o,n,a,l,s){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},[li,ii,ri,si],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",ci,[t.createElementVNode("div",di,[mi,t.createElementVNode("div",fi,t.toDisplayString(e.title),1),ui])]),gi,hi,yi,bi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",pi,[t.createElementVNode("div",Ci,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const po=W(G(ni,[["render",ki],["__scopeId","data-v-1550b11b"]])),Wt={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"},Ht=Z(Wt),Co=["showModal"],Si=t.defineComponent({name:"EcanModal",components:{AModal:q.Modal},props:{...Ht},setup(e){const o=()=>document.getElementById("ProviderConfig")||document.body,n=t.computed(()=>{const F=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[F]}}),a=e.width,l=e.height,s=e.originalWidth,c=e.originalHeight,r=t.ref("80%"),i=t.ref(0),m=t.ref(),d=t.ref(0),y=t.ref({}),h=J(e),f=t.ref({}),u=t.ref(!1),b=t.ref();let k;const p=()=>{m.value=parseFloat(a)/parseFloat(s);const F=parseFloat(l)/parseFloat(c),$=document.body.offsetWidth,U=document.body.offsetHeight;i.value=$*t.unref(m),d.value=U*F,r.value=`${t.unref(m)*100}%`,y.value={width:`${t.unref(i)}px`,height:`${t.unref(d)}px`},f.value={...t.unref(h),backgroundImage:Ae(e.backgroundImage,!0),transform:`scale(${t.unref(i)/parseFloat(a)},${t.unref(d)/parseFloat(l)})`}},x=pe.debounce(()=>{p()},100),T=()=>{const F=window.MutationObserver;k=new F(x),k.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},v=()=>{k&&(k.disconnect(),k.takeRecords(),k=null)},E=t.ref(!1),{touchRequest:_}=t.inject(de,{touchRequest:()=>{}}),w=()=>{E.value=!0},g=()=>{E.value=!1},S=()=>{g()},L=()=>{g()},{setModalModel:B,pushUseModalIds:A,popUseModalIds:I}=t.inject(Nn,{pushUseModalIds:F=>{},popUseModalIds:()=>{},setModalModel:(F,$)=>{}}),R=()=>{const F=e.id;let $=[];const U=e.componentList;Array.isArray(U)&&($=U.map(oe=>oe.id),B(F,[...new Set($)]))};t.watch(()=>E.value,async F=>{F?(u.value=!1,A(e.id),R(),await t.nextTick(()=>{p(),window.addEventListener("resize",x),T(),u.value=!0}),_()):(I(),window.removeEventListener("resize",x),v())});const j=t.computed(()=>t.unref(m)>=1),N=t.computed(()=>e.fullModal),O=t.computed(()=>{let F="ecan-modal";return t.unref(j)&&(F+=" ecan-full-width-modal"),t.unref(N)&&(F+=" ecan-full-modal"),F});return ae(e,{showModal:w}),{modalRef:b,containStyle:y,contentStyle:f,getContainer:o,modalStyle:n,modalWith:r,isFullModal:N,style:h,visible:E,showModal:w,onOk:S,onCancel:L,isFullWidth:j,wrapClassName:O,ready:u}}}),Hr="",Zr="";function wi(e,o,n,a,l,s){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,(r,i)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.type),t.mergeProps({key:r.id+i},r),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 ko=W(G(Si,[["render",wi],["__scopeId","data-v-2db14456"]])),Zt={...X,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},Jt=Z(Zt),So=["tabChange"],Ai=t.defineComponent({name:"EcanTabs",props:{...Jt},setup(e){const o=J(e),n=t.ref(0);t.watch(()=>e.activeKey,f=>{n.value=f},{immediate:!0});const{pageMode:a}=t.inject(ee,{pageMode:"normal"});let l=null;const s=()=>{const f=Array.isArray(t.unref(c))?t.unref(c).length-1:0;e.autoSwitch&&f>0&&(l=setInterval(()=>{const u=t.unref(n)+1;u<=f?n.value=u:n.value=0,r.value=t.unref(c)[t.unref(n)],y()},e.autoSwitchInterval*1e3))};t.onMounted(()=>{t.unref(a)!=="design"&&s()}),t.onBeforeUnmount(()=>{clearInterval(l)});const c=t.ref([]),r=t.ref({});t.watch(()=>e.data,f=>{c.value=f,r.value=Array.isArray(f)&&f.length>0?f[0]:{}},{immediate:!0,deep:!0});const i=f=>n.value===f,m=ne(e),{setGlobalModel:d}=t.inject(te,{setGlobalModel:(f,u)=>{}});d(e.id,{value:r,activeKey:n});const{emitRefreshPage:y}=t.inject(Be,{emitRefreshPage:()=>{}}),h=m("tabChange",(f,u)=>{u!==t.unref(n)&&(r.value=f,n.value=u,y())});return ae(e,{tabChange:h}),{style:o,activeKey:n,isActive:i,tabChange:h,myData:c,useImagePath:Ae}}}),Yr="",xi=["onClick"];function Ti(e,o,n,a,l,s){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,r)=>(t.openBlock(),t.createElementBlock("div",{class:"tab",style:t.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(r)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(r)?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:r,onClick:t.withModifiers(i=>e.tabChange(c,r),["prevent","stop"])},[t.createElementVNode("div",{class:"tab-inner",style:t.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(r)?e.activeTabColor:"transparent"}`:""})},t.toDisplayString(c.title),5)],12,xi))),128))],4)],4)}const wo=W(G(Ai,[["render",Ti],["__scopeId","data-v-a2045b93"]])),Yt={...X,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Qt=Z(Yt),Ei=t.defineComponent({name:"EcanImage",props:{...Qt},setup(e){const o=J(e),n=t.computed(()=>Ae(e.imgUrl)),{pageMode:a}=t.inject(ee,{pageMode:"normal"});return{style:o,myImgUrl:n,onClick:()=>{if(!e.linkPage&&!e.href)return;const s=e.linkPage||"",c=Fn(t.unref(a),s),r=e.href;let i=r||c;i=K(i);const m=e.target;m&&(m!=="event"?window.open(i,"_"+m):window.parent.postMessage({type:"openPage",url:r},"*"))}}}}),Xr="",_i=["src"];function Li(e,o,n,a,l,s){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,_i)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Ao=W(G(Ei,[["render",Li],["__scopeId","data-v-ef7a7bee"]])),Xt={...X,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Kt=Z(Xt),Ii=t.defineComponent({name:"EcanIframe",props:{...Kt},setup(e){const o=J(e),{contextRequestUrl:n}=t.inject(ee,{contextRequestUrl:""}),a=t.computed(()=>{let l=K(e.link);if(e.linkType==="erd"&&l!=null){let s=t.unref(n);s[s.length-1]==="/"?s+="erdReport":s+="/erdReport",l=`${el||s}?_t=0&uid=${l}`}return l});return{style:o,myLink:a}}}),es="",Mi=["src"];function Ni(e,o,n,a,l,s){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,Mi)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const xo=W(G(Ii,[["render",Ni],["__scopeId","data-v-19bc100c"]])),en={...X,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{chartType:"table",plugin:"1",layer:"1"}},tn=Z(en),To=["click","refreshData","resetRecord"],vi=t.defineComponent({name:"EcanTable",components:{Skeleton:Ve,AButton:q.Button,AInput:q.Input,ACheckboxGroup:q.CheckboxGroup,ATable:q.Table,ATableSummary:q.TableSummary,ATableSummaryRow:q.TableSummaryRow,ATableSummaryCell:q.TableSummaryCell},props:{...tn},setup(e,{expose:o}){const n=J(e),a=t.ref(),l=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}}),s=t.computed(()=>e.scrollX),c=t.computed(()=>parseFloat(e.height)-t.unref(l)),r=t.ref([]),i=t.ref([]),m=t.ref([]),d=t.ref([]),y=t.ref(0),h=t.ref(1),f=t.computed(()=>e.paginationPageSize),u=t.reactive([]),b=(M=[])=>{if(Array.isArray(M)&&M.length>0){const z=M.length,D=e.columnsFixedNum;for(let V=0;V<z;V++){const P=M[V];V<D?P.fixed="left":P.fixed=!1;const{cellAlign:H="center",cellColor:Y,dataIndex:le,title:re,tableFilter:ie,headerCellAlign:Oe,headerCellColor:We}=P;ie&&(u.push(le),P.filterOptionsInputValue="",P.filterCheckboxGroupValue=[],P.customFilterDropdown=!0,P.onFilter=(Pe,an)=>an[le].toString().toLowerCase().includes(Pe.toLowerCase())),P.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Oe||"center",color:We,borderBottomColor:e.borderColor}}),P.customCell=(Pe,an)=>({style:{textAlign:H,color:Y,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(U)===an&&e.clickHighlight},onClick:I("click",()=>{const Bo=e.id,Hi=j(Bo);Pe={dataIndex:le,title:re,...Pe},N(Bo,{...Hi,RECORD:Pe})})}),Array.isArray(P.children)&&b(P.children)}}},k=(M=[])=>(e.isUseSeq&&M.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&M.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),b(M),M);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{r.value=k(pe.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([M,z])=>{z==="static"&&(i.value=M)},{immediate:!0});const p=t.ref({}),x=M=>{if(Array.isArray(M)){const z=M.length,D=u,V=D.length,P={};for(let Y=0;Y<z;Y++){const le=M[Y];for(let re=0;re<V;re++){const ie=D[re];if(P[ie])P[ie].add(le[ie]);else{const Oe=new Set;Oe.add(le[ie]),P[ie]=Oe}}}const H={};for(const Y in P)if(Object.prototype.hasOwnProperty.call(P,Y)){const le=P[Y],re=Array.from(le);H[Y]=re.map(ie=>({label:ie,value:ie}))}p.value=H}};t.watch(()=>[e.isReverse,r.value,i.value],()=>{const M=t.unref(r),z=t.unref(i);if(x(z),e.isReverse){const{columns:D,dataSource:V}=T(pe.cloneDeep(M),pe.cloneDeep(z));m.value=D,d.value=V}else m.value=M,d.value=z},{immediate:!0});const T=(M,z)=>{const D=M[0],V=[{title:D.title,dataIndex:"col0",key:"col0",align:"center"}];for(let H=0;H<z.length;H++){const Y=z[H],le="col"+(H+1);V.push({title:Y[D.dataIndex],dataIndex:le,key:le,align:"center"})}const P=[];for(let H=1;H<M.length;H++){const Y=M[H],le={col0:Y.title};for(let re=0;re<z.length;re++){const ie=z[re];le[`col${re+1}`]=ie[Y.dataIndex]}P.push(le)}return{columns:V,dataSource:P}},v=t.ref(""),E=ue(e),_=t.ref(!1),w=async(M=!0)=>{var z;try{M&&(_.value=!0);let D={};t.unref(v)&&(D.orderCondition=t.unref(v)),e.paginationShow&&(D={pageNum:t.unref(h),pageSize:t.unref(f),layer:"1",...D});const V=await E(D),{rows:P=[],total:H=0}=((z=V==null?void 0:V.data)==null?void 0:z.data)||{};y.value=H,Array.isArray(P)&&(i.value=t.unref(i).concat(P))}catch(D){console.error(D)}finally{_.value=!1}},g=({current:M},z,D)=>{if(h.value=M,D&&Object.keys(D).length>0){const{field:V,order:P}=D,Y={ascend:"asc",descend:"desc"}[P];V!=null&&Y!=null&&(v.value=V+" "+Y,h.value=1)}Se(!1)},S=t.computed(()=>{const M=e.simple,z=[e.paginationPosition];return e.paginationShow&&{simple:M,position:z,total:t.unref(y),current:t.unref(h),pageSize:t.unref(f),showSizeChanger:!1}}),L=M=>+M==1?"是":+M==0?"否":M,B=(M,z)=>z==null||z===""?M:{money:st,percentage:Ge,contrast:Ge,boolean:L}[z](M)||"",A=(M,z)=>{const D=parseFloat(M+"");if(z!=="contrast")return"";switch(!0){case D>=0:return"goUp";case D<0:return"goDown"}},I=ne(e),{pageMode:R}=t.inject(ee,{pageMode:"normal"}),{getGlobalModel:j,setGlobalModel:N}=t.inject(te,{getGlobalModel:M=>{},setGlobalModel:(M,z)=>{}}),O=(M=[],z=[])=>{const D=M.map(V=>({title:V,dataIndex:V,key:V}));r.value=k(D),i.value=z},F=On(e),$=async()=>{var M,z,D,V;try{_.value=!0;const P=await F();O((z=(M=P==null?void 0:P.data)==null?void 0:M.data)==null?void 0:z.columns,(V=(D=P==null?void 0:P.data)==null?void 0:D.data)==null?void 0:V.rows)}catch(P){console.error(P)}finally{_.value=!1}},U=t.ref(-1),oe=(M,z)=>({onClick:I("rowClick",()=>{const D=e.id,V=j(D);N(D,{...V,RECORD:M}),U.value=z})}),Se=(M=!0)=>{if(t.unref(R)!=="design")switch(e.dataType){case"request":w(M);break;case"indicator":$();break}};ae(e,{resetRecord:()=>{const M=e.id,z=j(M);N(M,{...z,RECORD:""})},refreshData:Se});const Ui=t.computed(()=>{const M=t.unref(m),z=[];let D=0;for(let P=0;P<M.length;P++){const H=M[P],{isCalcTotal:Y}=H;e.isUseSeq&&P===0?z.push({...H,total:"小计"}):Y?(z.push({...H,index:P,total:0}),D++):z.push({...H})}if(D===0)return[];let V=[];if(e.paginationShow){const P=(t.unref(h)-1)*t.unref(f),H=P+t.unref(f);V=t.unref(d).slice(P,H)}for(let P=0;P<z.length;P++){const H=z[P];let Y=0;const{isCalcTotal:le,dataIndex:re}=H;if(le===!0){for(let ie=0;ie<V.length;ie++){const We=+V[ie][re];isNaN(We)||(Y=new Oo.Big(Y).add(We).toNumber())}H.total=Y}}return z}),{setRequest:Wi}=t.inject(de,{setRequest:({id:M,sortNum:z,requestFn:D})=>{}});return Wi({id:e.id,requestFn:Se,sortNum:e.requestSort}),o({refreshData:Se}),{x:s,y:c,style:n,customRow:oe,pagination:S,formatFn:B,contrastClass:A,tableChange:g,summaryList:Ui,loading:_,onTouchHrefEvent:(M,z="")=>{M==="event"&&window.parent.postMessage({type:"openPage",url:z},"*")},handleHref:(M="",z)=>K(M,z),handleHrefTarget:M=>{if(M!=="event")return{self:"_self",blank:"_blank"}[M]},useRowIndex:U,tableColumns:m,tableDataSource:d,useFilterOptions:M=>{const z=M.dataIndex;if(typeof z=="string"){let D=t.unref(p)[z];const V=t.unref(M.filterOptionsInputValue).trim();return Array.isArray(D)?(D=D.filter(P=>typeof P.label=="string"?P.label.toLowerCase().includes(V.toLowerCase()):!0),D):[]}return[]},useSetSelectedKeys:(M,z)=>{M(z.filterCheckboxGroupValue)},onResetFilter:(M,z)=>{M({confirm:!0}),z.filterOptionsInputValue="",z.filterCheckboxGroupValue=[]},onSearchFilterOptions:()=>{},exportTable:()=>{var z;const M=(z=t.unref(a))==null?void 0:z.$el;M&&cn.writeFileXLSX(cn.utils.table_to_book(M),"表格数据.xlsx")},tableRef:a}}}),ns="",os="",Bi={key:0,class:"table-tool"},zi=t.createTextVNode("导出数据"),Fi=t.createTextVNode(" 搜索 "),Oi=t.createTextVNode(" 重置 "),Pi={key:0},Ri={key:1,class:"action-list"},Di=["href","target","onClick"];function $i(e,o,n,a,l,s){const c=t.resolveComponent("a-button"),r=t.resolveComponent("a-input"),i=t.resolveComponent("a-checkbox-group"),m=t.resolveComponent("a-table-summary-cell"),d=t.resolveComponent("a-table-summary-row"),y=t.resolveComponent("a-table-summary"),h=t.resolveComponent("a-table"),f=t.resolveComponent("skeleton");return t.openBlock(),t.createElementBlock("div",{class:"ecan-table",style:t.normalizeStyle(e.style)},[t.createVNode(f,{loading:e.loading},{default:t.withCtx(()=>[e.isUseExport?(t.openBlock(),t.createElementBlock("div",Bi,[t.createVNode(c,{class:"export-button",onClick:e.exportTable},{default:t.withCtx(()=>[zi]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(h,{class:"table",ref:"tableRef",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:b,setSelectedKeys:k,confirm:p,clearFilters:x})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(r,{value:u.filterOptionsInputValue,"onUpdate:value":T=>u.filterOptionsInputValue=T,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(i,{value:u.filterCheckboxGroupValue,"onUpdate:value":T=>u.filterCheckboxGroupValue=T,class:"filter-checkbox",options:e.useFilterOptions(u),onChange:T=>e.useSetSelectedKeys(k,u)},null,8,["value","onUpdate:value","options","onChange"]),t.createElementVNode("div",null,[t.createVNode(c,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>p()},{default:t.withCtx(()=>[Fi]),_:2},1032,["onClick"]),t.createVNode(c,{size:"small",style:{width:"90px"},onClick:t.withModifiers(T=>e.onResetFilter(x,u),["stop"])},{default:t.withCtx(()=>[Oi]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:u,index:b,text:k,record:p})=>[u.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",Pi,t.toDisplayString(b+1),1)):t.createCommentVNode("",!0),u.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",Ri,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(x,T)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:T},[t.createElementVNode("a",{href:e.handleHref(x.href,p),target:e.handleHrefTarget(x.target),style:t.normalizeStyle({color:x.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:v=>e.onTouchHrefEvent(x.target,e.handleHref(x.href,p))},t.toDisplayString(x.title),13,Di)]))),128))])):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass([e.contrastClass(k,u.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(u.format!=null?e.formatFn(k,u.format):k),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(y,{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,b)=>(t.openBlock(),t.createBlock(m,{key:b,index:b,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 Eo=W(G(vi,[["render",$i],["__scopeId","data-v-440881f8"]])),nn={...X,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}"},on=Z(nn);ye.use([Te.CanvasRenderer,Ce.MapChart,Ce.ScatterChart,Q.VisualMapComponent,Q.TooltipComponent,Q.GraphicComponent]);const ji=t.defineComponent({name:"EcanMap",components:{Echarts:we},props:{...on},setup(e){const o=J(e,["backgroundImage"]),n=t.ref(),a=t.computed(()=>Ae(e.geoBackgroundImage)),l=t.computed(()=>Ae(e.backgroundImage)),s=t.computed(()=>e.geoBackgroundImage?{image:t.unref(n),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),c=t.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+Ae(d):"circle"}),r=t.computed(()=>{const d=e.geoCenter;let y;return typeof d=="string"&&d!==""&&(y=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:y,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(s),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 y;const d=e.mapJson;if(d!=null&&d.path){const h=await ge(((y=window==null?void 0:window.config)==null?void 0:y.uploadPath)+d.path);ye.registerMap("map",(h==null?void 0:h.data)||{})}i.value=!0};return t.watch(()=>e.mapJson,()=>{m()},{immediate:!0,deep:!0}),{option:r,style:o,isLoadedData:i,geoBackgroundImageRef:n,myGeoBackgroundImage:a}}}),ls="",Vi=["src"];function qi(e,o,n,a,l,s){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,Vi),[[t.vShow,!1]])],4)}const _o=W(G(ji,[["render",qi],["__scopeId","data-v-1fb5cdee"]])),Lo=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:mo,EcanBorder:po,EcanButton:no,EcanCheckbox:ao,EcanComboGraph:yo,EcanCustomGraph:go,EcanDatePicker:Yn,EcanIframe:xo,EcanImage:Ao,EcanInput:Zn,EcanLine:so,EcanList:Gn,EcanMap:_o,EcanModal:ko,EcanPageConfig:Pn,EcanPie:io,EcanProportion:Wn,EcanProviderConfig:Rn,EcanRangePicker:eo,EcanScatter:uo,EcanScrollText:jn,EcanSelect:Xn,EcanTable:Eo,EcanTabs:wo,EcanText:$n,EcanTimeDisplay:Vn,barComponentProps:Pt,barEvents:co,barProps:Ot,borderComponentProps:Ut,borderEvents:bo,borderProps:Gt,buttonComponentProps:It,buttonEvents:to,buttonProps:Lt,checkboxComponentProps:Nt,checkboxEvents:oo,checkboxProps:Mt,comboGraphComponentProps:qt,comboGraphEvents:ho,comboGraphProps:Vt,customGraphComponentProps:jt,customGraphProps:$t,datePickerComponentProps:At,datePickerEvents:Jn,datePickerProps:wt,iframeComponentProps:Kt,iframeProps:Xt,imageComponentProps:Qt,imageProps:Yt,inputComponentProps:St,inputEvents:Hn,inputProps:kt,lineComponentProps:Ft,lineEvents:ro,lineProps:zt,listComponentProps:bt,listEvents:qn,listProps:yt,mapComponentProps:on,mapProps:nn,modalComponentProps:Ht,modalEvents:Co,modalProps:Wt,pageConfig:lt,pageConfigComponentProps:it,pieComponentProps:Bt,pieEvents:lo,pieProps:vt,proportionComponentProps:Ct,proportionEvents:Un,proportionProps:pt,providerConfig:dt,providerConfigComponentProps:mt,rangePickerComponentProps:_t,rangePickerEvents:Kn,rangePickerProps:Et,scatterComponentProps:Dt,scatterEvents:fo,scatterProps:Rt,selectComponentProps:Tt,selectEvents:Qn,selectProps:xt,tableComponentProps:tn,tableEvents:To,tableProps:en,tabsComponentProps:Jt,tabsEvents:So,tabsProps:Zt,textComponentProps:ut,textEvents:Dn,textProps:ft,timeDisplayComponentProps:ht,timeDisplayProps:gt},Symbol.toStringTag,{value:"Module"})),Gi={install:e=>{Object.keys(Lo).forEach(o=>{const n=Lo[o];n.install&&e.use(n)})}};C.EcanBar=mo,C.EcanBorder=po,C.EcanButton=no,C.EcanCheckbox=ao,C.EcanComboGraph=yo,C.EcanCustomGraph=go,C.EcanDatePicker=Yn,C.EcanIframe=xo,C.EcanImage=Ao,C.EcanInput=Zn,C.EcanLine=so,C.EcanList=Gn,C.EcanMap=_o,C.EcanModal=ko,C.EcanPageConfig=Pn,C.EcanPie=io,C.EcanProportion=Wn,C.EcanProviderConfig=Rn,C.EcanRangePicker=eo,C.EcanScatter=uo,C.EcanScrollText=jn,C.EcanSelect=Xn,C.EcanTable=Eo,C.EcanTabs=wo,C.EcanText=$n,C.EcanTimeDisplay=Vn,C.barComponentProps=Pt,C.barEvents=co,C.barProps=Ot,C.borderComponentProps=Ut,C.borderEvents=bo,C.borderProps=Gt,C.buttonComponentProps=It,C.buttonEvents=to,C.buttonProps=Lt,C.checkboxComponentProps=Nt,C.checkboxEvents=oo,C.checkboxProps=Mt,C.comboGraphComponentProps=qt,C.comboGraphEvents=ho,C.comboGraphProps=Vt,C.customGraphComponentProps=jt,C.customGraphProps=$t,C.datePickerComponentProps=At,C.datePickerEvents=Jn,C.datePickerProps=wt,C.default=Gi,C.iframeComponentProps=Kt,C.iframeProps=Xt,C.imageComponentProps=Qt,C.imageProps=Yt,C.inputComponentProps=St,C.inputEvents=Hn,C.inputProps=kt,C.lineComponentProps=Ft,C.lineEvents=ro,C.lineProps=zt,C.listComponentProps=bt,C.listEvents=qn,C.listProps=yt,C.mapComponentProps=on,C.mapProps=nn,C.modalComponentProps=Ht,C.modalEvents=Co,C.modalProps=Wt,C.pageConfig=lt,C.pageConfigComponentProps=it,C.pieComponentProps=Bt,C.pieEvents=lo,C.pieProps=vt,C.proportionComponentProps=Ct,C.proportionEvents=Un,C.proportionProps=pt,C.providerConfig=dt,C.providerConfigComponentProps=mt,C.rangePickerComponentProps=_t,C.rangePickerEvents=Kn,C.rangePickerProps=Et,C.scatterComponentProps=Dt,C.scatterEvents=fo,C.scatterProps=Rt,C.selectComponentProps=Tt,C.selectEvents=Qn,C.selectProps=xt,C.tableComponentProps=tn,C.tableEvents=To,C.tableProps=en,C.tabsComponentProps=Jt,C.tabsEvents=So,C.tabsProps=Zt,C.textComponentProps=ut,C.textEvents=Dn,C.textProps=ft,C.timeDisplayComponentProps=ht,C.timeDisplayProps=gt,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
60
60
|
//# sourceMappingURL=index.umd.js.map
|