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