@ecan-bi/datav 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.2.1 */
1
+ /*! @ecan-bi/datav@1.2.2 */
2
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("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","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.Dayjs,g.Axios,g.Mitt,null,null,null,g["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,g["echarts/renderers"],g["echarts/charts"],g["echarts/components"],null,g.Echarts,null,g.Xlsx,g.big.js))})(this,function(g,t,xe,Co,U,xr,Ar,Ae,be,So,Yn,_r,Tr,Er,ko,Lr,vr,Ir,Mr,Pe,Le,ae,Nr,Qn,Br,Ve,Kn){var Gn,Un,Wn,Hn;"use strict";function Xn(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return n.default=e,Object.freeze(n)}const ea=Xn(Qn),ta=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function oa(e,n){function o(l){return(...i)=>{if(e.value||n(),!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 ta.forEach(i=>{l[i]=o(i)}),l}return a()}function na(e,n,o){let a=null;t.watch([o,e,n],([l,i,r],s,d)=>{l&&i&&r&&(a=xe.throttle(()=>{i.resize()},100),Co.addListener(l,a)),d(()=>{a&&l&&Co.removeListener(l,a)})})}const aa={autoresize:Boolean},la="ecLoadingOptions";function ia(e,n,o){const a=t.inject(la,{}),l=t.computed(()=>({...t.unref(a),...o==null?void 0:o.value}));t.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(l.value):i.hideLoading())})}const ra={loading:Boolean,loadingOptions:Object},zr="",sa=/^on[^a-z]/,ca=e=>sa.test(e);function da(e){const n={};for(const o in e)ca(o)||(n[o]=e[o]);return n}const fa="x-vue-echarts",ma="ecTheme",ua="ecInitOptions",ha="ecUpdateOptions",Ne=t.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...aa,...ra},inheritAttrs:!1,setup(e,{attrs:n,listeners:o}){const a=t.shallowRef(),l=t.shallowRef(),i=t.shallowRef(),r=t.inject(ma,null),s=t.inject(ua,null),d=t.inject(ha,null),{autoresize:m,manualUpdate:b,loading:h,loadingOptions:w}=t.toRefs(e),f=t.computed(()=>i.value||e.option||Object.create(null)),c=t.computed(()=>e.theme||t.unref(r)||{}),y=t.computed(()=>e.initOptions||t.unref(s)||{}),k=t.computed(()=>e.updateOptions||t.unref(d)||{}),S=t.computed(()=>da(n));function x(T){if(l.value||!a.value)return;const E=l.value=xe.init(a.value,c.value,y.value);e.group&&(E.group=e.group);let B=o;B||(B={},Object.keys(n).filter(D=>D.indexOf("on")===0&&D.length>2).forEach(D=>{const L=D.charAt(2).toLowerCase()+D.slice(3);B[L]=n[D]})),Object.keys(B).forEach(D=>{const L=B[D];L&&(D.indexOf("zr:")===0?E.getZr().on(D.slice(3).toLowerCase(),L):E.on(D.toLowerCase(),L))});function V(){if(E&&!E.isDisposed())try{E.resize()}catch(D){if(D.message==="Cannot read property 'get' of undefined")return;throw D}}function Y(){E.setOption(T||f.value,k.value)}m.value?t.nextTick(()=>{V(),Y()}):Y()}function I(T,E){e.manualUpdate&&(i.value=T),l.value?l.value.setOption(T,E||{}):x(T)}function A(){l.value&&(l.value.dispose(),l.value=void 0)}let N=null;t.watch(b,T=>{typeof N=="function"&&(N(),N=null),T||(N=t.watch(()=>e.option,E=>{E&&(l.value?l.value.setOption(E,k.value):x())},{deep:!0}))},{immediate:!0}),t.watch([c,y],()=>{A(),x()},{deep:!0}),t.watchEffect(()=>{e.group&&l.value&&(l.value.group=e.group)});const u=oa(l,x);return ia(l,h,w),na(l,m,a),t.onMounted(()=>{e.option&&x()}),t.onUnmounted(A),{chart:l,root:a,setOption:I,nonEventAttrs:S,...u}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",t.h(fa,e)}});function pe(e,n){ga(e)&&(e="100%");var o=ya(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),o&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function ga(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ya(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ba(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ye(e){return e<=1?"".concat(Number(e)*100,"%"):e}function at(e){return e.length===1?"0"+e:String(e)}function pa(e,n,o){return{r:pe(e,255)*255,g:pe(n,255)*255,b:pe(o,255)*255}}function lt(e,n,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?e+(n-e)*(6*o):o<1/2?n:o<2/3?e+(n-e)*(2/3-o)*6:e}function Ca(e,n,o){var a,l,i;if(e=pe(e,360),n=pe(n,100),o=pe(o,100),n===0)l=o,i=o,a=o;else{var r=o<.5?o*(1+n):o+n-o*n,s=2*o-r;a=lt(s,r,e+1/3),l=lt(s,r,e),i=lt(s,r,e-1/3)}return{r:a*255,g:l*255,b:i*255}}function Sa(e,n,o){e=pe(e,255),n=pe(n,255),o=pe(o,255);var a=Math.max(e,n,o),l=Math.min(e,n,o),i=0,r=a,s=a-l,d=a===0?0:s/a;if(a===l)i=0;else{switch(a){case e:i=(n-o)/s+(n<o?6:0);break;case n:i=(o-e)/s+2;break;case o:i=(e-n)/s+4;break}i/=6}return{h:i,s:d,v:r}}function ka(e,n,o){e=pe(e,360)*6,n=pe(n,100),o=pe(o,100);var a=Math.floor(e),l=e-a,i=o*(1-n),r=o*(1-l*n),s=o*(1-(1-l)*n),d=a%6,m=[o,r,i,i,s,o][d],b=[s,o,o,r,i,i][d],h=[i,i,s,o,o,r][d];return{r:m*255,g:b*255,b:h*255}}function wa(e,n,o,a){var l=[at(Math.round(e).toString(16)),at(Math.round(n).toString(16)),at(Math.round(o).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 wo(e){return ye(e)/255}function ye(e){return parseInt(e,16)}var xo={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 je(e){var n={r:0,g:0,b:0},o=1,a=null,l=null,i=null,r=!1,s=!1;return typeof e=="string"&&(e=_a(e)),typeof e=="object"&&(_e(e.r)&&_e(e.g)&&_e(e.b)?(n=pa(e.r,e.g,e.b),r=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):_e(e.h)&&_e(e.s)&&_e(e.v)?(a=Ye(e.s),l=Ye(e.v),n=ka(e.h,a,l),r=!0,s="hsv"):_e(e.h)&&_e(e.s)&&_e(e.l)&&(a=Ye(e.s),i=Ye(e.l),n=Ca(e.h,a,i),r=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(o=e.a)),o=ba(o),{ok:r,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:o}}var xa="[-\\+]?\\d+%?",Aa="[-\\+]?\\d*\\.\\d+%?",ve="(?:".concat(Aa,")|(?:").concat(xa,")"),it="[\\s|\\(]+(".concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")\\s*\\)?"),rt="[\\s|\\(]+(".concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")[,|\\s]+(").concat(ve,")\\s*\\)?"),ke={CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+it),rgba:new RegExp("rgba"+rt),hsl:new RegExp("hsl"+it),hsla:new RegExp("hsla"+rt),hsv:new RegExp("hsv"+it),hsva:new RegExp("hsva"+rt),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 _a(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(xo[e])e=xo[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var o=ke.rgb.exec(e);return o?{r:o[1],g:o[2],b:o[3]}:(o=ke.rgba.exec(e),o?{r:o[1],g:o[2],b:o[3],a:o[4]}:(o=ke.hsl.exec(e),o?{h:o[1],s:o[2],l:o[3]}:(o=ke.hsla.exec(e),o?{h:o[1],s:o[2],l:o[3],a:o[4]}:(o=ke.hsv.exec(e),o?{h:o[1],s:o[2],v:o[3]}:(o=ke.hsva.exec(e),o?{h:o[1],s:o[2],v:o[3],a:o[4]}:(o=ke.hex8.exec(e),o?{r:ye(o[1]),g:ye(o[2]),b:ye(o[3]),a:wo(o[4]),format:n?"name":"hex8"}:(o=ke.hex6.exec(e),o?{r:ye(o[1]),g:ye(o[2]),b:ye(o[3]),format:n?"name":"hex"}:(o=ke.hex4.exec(e),o?{r:ye(o[1]+o[1]),g:ye(o[2]+o[2]),b:ye(o[3]+o[3]),a:wo(o[4]+o[4]),format:n?"name":"hex8"}:(o=ke.hex3.exec(e),o?{r:ye(o[1]+o[1]),g:ye(o[2]+o[2]),b:ye(o[3]+o[3]),format:n?"name":"hex"}:!1)))))))))}function _e(e){return!!ke.CSS_UNIT.exec(String(e))}var Qe=2,Ao=.16,Ta=.05,Ea=.05,La=.15,_o=5,To=4,va=[{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 Eo(e){var n=e.r,o=e.g,a=e.b,l=Sa(n,o,a);return{h:l.h*360,s:l.s,v:l.v}}function Ke(e){var n=e.r,o=e.g,a=e.b;return"#".concat(wa(n,o,a,!1))}function Ia(e,n,o){var a=o/100,l={r:(n.r-e.r)*a+e.r,g:(n.g-e.g)*a+e.g,b:(n.b-e.b)*a+e.b};return l}function Lo(e,n,o){var a;return Math.round(e.h)>=60&&Math.round(e.h)<=240?a=o?Math.round(e.h)-Qe*n:Math.round(e.h)+Qe*n:a=o?Math.round(e.h)+Qe*n:Math.round(e.h)-Qe*n,a<0?a+=360:a>=360&&(a-=360),a}function vo(e,n,o){if(e.h===0&&e.s===0)return e.s;var a;return o?a=e.s-Ao*n:n===To?a=e.s+Ao:a=e.s+Ta*n,a>1&&(a=1),o&&n===_o&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Io(e,n,o){var a;return o?a=e.v+Ea*n:a=e.v-La*n,a>1&&(a=1),Number(a.toFixed(2))}function st(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[],a=je(e),l=_o;l>0;l-=1){var i=Eo(a),r=Ke(je({h:Lo(i,l,!0),s:vo(i,l,!0),v:Io(i,l,!0)}));o.push(r)}o.push(Ke(a));for(var s=1;s<=To;s+=1){var d=Eo(a),m=Ke(je({h:Lo(d,s),s:vo(d,s),v:Io(d,s)}));o.push(m)}return n.theme==="dark"?va.map(function(b){var h=b.index,w=b.opacity,f=Ke(Ia(je(n.backgroundColor||"#141414"),je(o[h]),w*100));return f}):o}var ct={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"},dt={},ft={};Object.keys(ct).forEach(function(e){dt[e]=st(ct[e]),dt[e].primary=dt[e][5],ft[e]=st(ct[e],{theme:"dark",backgroundColor:"#141414"}),ft[e].primary=ft[e][5]});var Mo=[],qe=[],Ma="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Na(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function Ba(e,n){if(n=n||{},e===void 0)throw new Error(Ma);var o=n.prepend===!0?"prepend":"append",a=n.container!==void 0?n.container:document.querySelector("head"),l=Mo.indexOf(a);l===-1&&(l=Mo.push(a)-1,qe[l]={});var i;return qe[l]!==void 0&&qe[l][o]!==void 0?i=qe[l][o]:(i=qe[l][o]=Na(),o==="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 No(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){za(e,l,o[l])})}return e}function za(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function Oa(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Pa(e,n){Oa(e,"[@ant-design/icons-vue] ".concat(n))}function Bo(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function mt(e,n,o){return o?t.h(e.tag,No({key:n},o,e.attrs),(e.children||[]).map(function(a,l){return mt(a,"".concat(n,"-").concat(e.tag,"-").concat(l))})):t.h(e.tag,No({key:n},e.attrs),(e.children||[]).map(function(a,l){return mt(a,"".concat(n,"-").concat(e.tag,"-").concat(l))}))}function zo(e){return st(e)[0]}function Oo(e){return e?Array.isArray(e)?e:[e]:[]}var Fa=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -56,5 +56,5 @@
56
56
  `,Po=!1,Da=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fa;t.nextTick(function(){Po||(typeof window<"u"&&window.document&&window.document.documentElement&&Ba(n,{prepend:!0}),Po=!0)})},Ra=["icon","primaryColor","secondaryColor"];function $a(e,n){if(e==null)return{};var o=Va(e,n),a,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)a=i[l],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function Va(e,n){if(e==null)return{};var o={},a=Object.keys(e),l,i;for(i=0;i<a.length;i++)l=a[i],!(n.indexOf(l)>=0)&&(o[l]=e[l]);return o}function Xe(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){ja(e,l,o[l])})}return e}function ja(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var Ge={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function qa(e){var n=e.primaryColor,o=e.secondaryColor;Ge.primaryColor=n,Ge.secondaryColor=o||zo(n),Ge.calculated=!!o}function Ga(){return Xe({},Ge)}var Fe=function(n,o){var a=Xe({},n,o.attrs),l=a.icon,i=a.primaryColor,r=a.secondaryColor,s=$a(a,Ra),d=Ge;if(i&&(d={primaryColor:i,secondaryColor:r||zo(i)}),Da(),Pa(Bo(l),"icon should be icon definiton, but got ".concat(l)),!Bo(l))return null;var m=l;return m&&typeof m.icon=="function"&&(m=Xe({},m,{icon:m.icon(d.primaryColor,d.secondaryColor)})),mt(m.icon,"svg-".concat(m.name),Xe({},s,{"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Fe.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Fe.inheritAttrs=!1,Fe.displayName="IconBase",Fe.getTwoToneColors=Ga,Fe.setTwoToneColors=qa;const ut=Fe;function Ua(e,n){return Ja(e)||Za(e,n)||Ha(e,n)||Wa()}function Wa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
57
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ha(e,n){if(e){if(typeof e=="string")return Fo(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Fo(e,n)}}function Fo(e,n){(n==null||n>e.length)&&(n=e.length);for(var o=0,a=new Array(n);o<n;o++)a[o]=e[o];return a}function Za(e,n){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var a=[],l=!0,i=!1,r,s;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(a.push(r.value),!(n&&a.length===n));l=!0);}catch(d){i=!0,s=d}finally{try{!l&&o.return!=null&&o.return()}finally{if(i)throw s}}return a}}function Ja(e){if(Array.isArray(e))return e}function Do(e){var n=Oo(e),o=Ua(n,2),a=o[0],l=o[1];return ut.setTwoToneColors({primaryColor:a,secondaryColor:l})}function Ya(){var e=ut.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Qa=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ka(e,n){return ol(e)||tl(e,n)||el(e,n)||Xa()}function Xa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
58
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function el(e,n){if(e){if(typeof e=="string")return Ro(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);if(o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set")return Array.from(e);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Ro(e,n)}}function Ro(e,n){(n==null||n>e.length)&&(n=e.length);for(var o=0,a=new Array(n);o<n;o++)a[o]=e[o];return a}function tl(e,n){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var a=[],l=!0,i=!1,r,s;try{for(o=o.call(e);!(l=(r=o.next()).done)&&(a.push(r.value),!(n&&a.length===n));l=!0);}catch(d){i=!0,s=d}finally{try{!l&&o.return!=null&&o.return()}finally{if(i)throw s}}return a}}function ol(e){if(Array.isArray(e))return e}function $o(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){ht(e,l,o[l])})}return e}function ht(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}function nl(e,n){if(e==null)return{};var o=al(e,n),a,l;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)a=i[l],!(n.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function al(e,n){if(e==null)return{};var o={},a=Object.keys(e),l,i;for(i=0;i<a.length;i++)l=a[i],!(n.indexOf(l)>=0)&&(o[l]=e[l]);return o}Do("#1890ff");var De=function(n,o){var a,l=$o({},n,o.attrs),i=l.class,r=l.icon,s=l.spin,d=l.rotate,m=l.tabindex,b=l.twoToneColor,h=l.onClick,w=nl(l,Qa),f=(a={anticon:!0},ht(a,"anticon-".concat(r.name),!!r.name),ht(a,i,i),a),c=s===""||s||r.name==="loading"?"anticon-spin":"",y=m;y===void 0&&h&&(y=-1,w.tabindex=y);var k=d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0,S=Oo(b),x=Ka(S,2),I=x[0],A=x[1];return t.createVNode("span",$o({role:"img","aria-label":r.name},w,{onClick:h,class:f}),[t.createVNode(ut,{class:c,icon:r,primaryColor:I,secondaryColor:A,style:k},null)])};De.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},De.displayName="AntdIcon",De.inheritAttrs=!1,De.getTwoToneColor=Ya,De.setTwoToneColor=Do;const Vo=De;var ll={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const il=ll;function jo(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){rl(e,l,o[l])})}return e}function rl(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var gt=function(n,o){var a=jo({},n,o.attrs);return t.createVNode(Vo,jo({},a,{icon:il}),null)};gt.displayName="CloseOutlined",gt.inheritAttrs=!1;const sl=gt;var cl={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 dl=cl;function qo(e){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?Object(arguments[n]):{},a=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(o).filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable}))),a.forEach(function(l){fl(e,l,o[l])})}return e}function fl(e,n,o){return n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,e}var yt=function(n,o){var a=qo({},n,o.attrs);return t.createVNode(Vo,qo({},a,{icon:dl}),null)};yt.displayName="LoadingOutlined",yt.inheritAttrs=!1;const ml=yt,ul=t.defineComponent({props:{spinning:{type:Boolean,default:!1}},components:{ASpin:U.Spin},setup(){return{indicator:t.h(ml,{style:{fontSize:"24px",color:"#1890ff"},spin:!0})}}}),Or="",W=(e,n)=>{const o=e.__vccOpts||e;for(const[a,l]of n)o[a]=l;return o},hl={class:"spin-wrapper"};function gl(e,n,o,a,l,i){const r=t.resolveComponent("a-spin");return t.openBlock(),t.createElementBlock("div",hl,[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 Ue=W(ul,[["render",gl]]),yl=t.defineComponent({name:"Skeleton",props:{loading:{type:Boolean,default:!1}},components:{ASkeleton:U.Skeleton}});function bl(e,n,o,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 et=W(yl,[["render",bl]]);process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Z=(e,n)=>{if(e.install=o=>{for(const a of[e,...Object.values(n??{})])o.component(a.name,a)},n)for(const[o,a]of Object.entries(n))e[o]=a;return e},oe={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 n={};if(typeof e=="object"&&e!=null)for(const o in e){const a=e[o];n[o]={type:a==null?void 0:a.constructor,default:a}}return n},bt={width:"1920px",height:"1080px",backgroundColor:"#ffffff",backgroundImage:"",backgroundSize:"100% 100%",contextRequestUrl:"",mode:"normal"},pt=J(bt),pl=["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"],te=(e,n=[])=>{const o=Ae.without(pl,...n);return t.computed(()=>Ae.pick(e,o))},Ct="EVENT_BUS",he="GLOBAL_CONFIG",me="GLOBAL_MODEL",ge="REQUEST_MODEL",Go="GLOBAL_TOKEN",We="REFRESH_PAGE",Uo="MODAL_MODEL",Re=18,Wo=(Gn=window==null?void 0:window.config)==null?void 0:Gn.indicatorURL;(Un=window==null?void 0:window.config)!=null&&Un.uploadPath;const Ho=((Wn=window==null?void 0:window.config)==null?void 0:Wn.routerBaseURL)||"./",Cl=((Hn=window==null?void 0:window.config)==null?void 0:Hn.erdURL)||"",ce=(e,n)=>{t.watch(()=>e.id,o=>{const a=t.inject(Ct,{onEvent:(l,i)=>{}});o!=null&&o!==""&&a.onEvent(o,n)},{immediate:!0})},le=e=>{const n=e.events,o=e.id,a=t.inject(Ct,{emitEvent:(i,r)=>{}}),{touchEventId:l}=t.inject(he,{touchEventId:t.ref("")});return(i,r=()=>{})=>function(){r.call(this,...arguments);const{emitEvent:s}=a;n.forEach(d=>{if(i===d.on)try{l.value=o,s(d.target,d.emit)}catch(m){console.error(m)}})}},He=(e,n)=>{let{name:o="name",value:a="value",type:l="type"}=n||{};o=o==null?void 0:o.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 b=0;b<s;b++){const h=e[b],w=h[o]||"",f=h[a]||"",c=h[l]||"";if(i.add(w),r.has(c)){const y=r.get(c);y.push({name:w,value:f,...h}),r.set(c,y)}else r.set(c,[{name:w,value:f,...h}])}const d=Array.from(i),m=[];for(const[b,h]of r)m.push({name:b,data:h});return{dimensions:d,dataset:m}},Zo=window.config.requestErrorTip,Ie=So.create({timeout:1e3*180});Ie.interceptors.request.use(e=>e,e=>Promise.reject(e)),Ie.interceptors.response.use(e=>{var n,o,a;return Zo&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&U.message.error({content:((o=e==null?void 0:e.data)==null?void 0:o.msg)||((a=e==null?void 0:e.data)==null?void 0:a.message)||"服务器异常",key:"SERVER_ERROR"}),e},e=>{if(Zo)if(e.message.includes("timeout"))U.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&U.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&U.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const Sl=e=>e.replace(/\\n/g,`
59
- `),St=(e,n=2)=>{const o=parseFloat(e+"");return isNaN(o)?e:o.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},kl=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},tt=(e,n=2)=>{const o=e+"";if(o.includes("%"))return e;const a=parseFloat(o);return isNaN(a)?e:`${(a*100).toFixed(n)}%`},ot=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,nt=(e,n)=>{const o={dayjs:be,...n};let a="";const l=[];for(const s in o)a+=`${s},`,l.push(o[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},ie=(e="",{textData:n,codeData:o}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let d=0;d<s.length;d++){const m=s[d];let b=m.slice(1,-1).trim();const h=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,w=b.match(h);for(let f=0;f<w.length;f++){const c=w[f],y=r[c];y!=null&&(b=b.replace(c,y))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=nt(b,o)),e=e.replace(m,b)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),l&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},Ce=(e,n=()=>{})=>{const{requestUrl:o,requestMethod:a,requestHeaders:l,requestParams:i,requestInterval:r,isOpenRequestTimer:s}=e,{contextRequestUrl:d,touchEventId:m}=t.inject(he,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:b}=t.inject(me,{getGlobalModel:c=>{}}),h=ie(o),w=async(c={})=>{if(!h||!a||!l)return;let y={};i.forEach(A=>{const{key:N,value:u}=A;if(typeof u=="object"&&u!=null&&u.id){let T={};const{id:E,prop:B,propKey:V,operate:Y}=u;E==="THIS"?T=b(t.unref(m))||{}:T=b(E)||{};const D=t.unref(T[B]);let L=null;if(["date","range"].some(P=>ot(T==null?void 0:T.type,P))){const{value:P,type:F,mode:_}=Y||{};if(P&&F&&_)switch(F){case"add":L=t.unref(D).add(P,_);break;case"minus":L=t.unref(D).subtract(P,_);break}L==null&&(L=t.unref(D)),L=(L==null?void 0:L.format((V==null?void 0:V.trim())||T.format))||""}else Object.prototype.toString.call(D)==="[object Object]"?V?L=D[V]:L=B?D[B]:D:ot(T==null?void 0:T.type,"select")&&t.unref(D)&&B&&Array.isArray(t.unref(D))?L=t.unref(D).map(P=>Object.prototype.hasOwnProperty.call(P,B)?P[B]:P):L=D;y[N]=L}else typeof u=="string"&&(y[N]=ie(u))}),y={...window.config.requestParams,...c,...y};let k="";const S=Object.keys(y),x=S.length-1,I=S.length;S.forEach((A,N)=>{let u=y[A];Object.prototype.toString.call(u)==="[object Object]"&&(u=JSON.stringify(u)),N===0?I!==1?k+=`?${A}=${u}&`:k+=`?${A}=${u}`:N===x?k+=`${A}=${u}`:k+=`${A}=${u}&`});try{const A=["get","head"].includes(a);let N=A?h+k:h;y.dataSqlId&&!N.includes("dataSqlId")&&(N+=`${N.includes("?")?"&":"?"}dataSqlId=${y.dataSqlId}`);const u=await Ie({baseURL:t.unref(d)||"",url:N,method:a,headers:l,data:A?{}:y});return n(u),u}catch(A){console.error(A)}},f=s&&setInterval(w,r*1e3);return t.onUnmounted(()=>{clearInterval(f)}),w},$e=(e=[],n)=>{let{name:o="name",types:a=[]}=n||{};o=(o==null?void 0:o.trim())||o;const l=new Set,i=new Map,r=e.length,s=a.length;if(r===1){const b=[];for(let w=0;w<s;w++){const f=a[w],{label:c,value:y}=f,k={...e[0],value:e[0][y]};l.add(c),b.push(k)}const h=e[0][o]||"";i.set(h,b)}else for(let b=0;b<r;b++){const h=e[b],w=h[o];l.add(w);for(let f=0;f<s;f++){const c=a[f],{label:y,value:k}=c,S={...h,value:h[k]};if(i.has(y)){const x=i.get(y);x.push(S),i.set(y,x)}else i.set(y,[S])}}const d=Array.from(l),m=[];for(const[b,h]of i)m.push({name:b,data:h});return{dimensions:d,dataset:m}},Be=(e,n=!1)=>{var a;if(!e)return e;let o="";return e!=null&&e.includes("://")?o=e:o=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,n&&(o=`url(${o})`),o},Jo=(e,n)=>{const o=`${Ho}/preview?pageId=${n}`,a=`${Ho}/${n}`;return e==="preview"?o:a},ze=(e,n)=>{var l;if(e==null)return n;const o=e.match(/\{.*\}/g);if(o==null||o.length===0)return n;const a=o.length;for(let i=0;i<a;i++){const r=o[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,n);try{let d=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(d=nt(s)),e=e.replace(r,d)}catch{e=e.replace(r,s)}}return e},Ze=(e={})=>{const{requestToken:n}=t.inject(Go,{requestToken:()=>{}});e.dataType==="indicator"&&n();const o=(r={})=>{const{label:s,name:d,location:m,show:b,indexCode:h}=r;return{label:s,columnName:d,location:m,show:b,calcType:"COLUMN",hrpIndexCode:h}},a=(r={})=>{const{label:s,name:d,location:m,show:b,indexCode:h,calcType:w="COLUMN",builtInFormula:f,builtInValueSource:c,builtInCalcWay:y,formula:k,conditions:S}=r;return{label:s,columnName:d,location:m,show:b,calcType:w,hrpIndexCode:h,aggregate:"SUM",builtInFormula:f,builtInValueSource:c,builtInCalcWay:y,formula:k,conditions:S}},{getGlobalModel:l}=t.inject(me,{getGlobalModel:r=>{}}),i=(r=[])=>{var m;const s=r.length;console.log("controlList",r);const d=[];for(let b=0;b<s;b++){const h=r[b],{id:w,conditionLabel:f,conditionKey:c,conditionValueType:y}=h,k={rule:"NONE",label:f,fieldName:c,fieldValue:"2020-02",dateFormat:"YYYY-MM",valueType:y},S=l(w)||{};if(console.log("model",S),ot(S.type,"date")){const{value:x,format:I}=S||{};k.fieldValue=(m=t.unref(x))==null?void 0:m.format(I),k.dateFormat=I}d.push(k)}return d};return async()=>{var D;const{graphicConfig:r,type:s}=e;let{source:d,dataViewId:m,plugin:b="1",layer:h,chartType:w,classificationList:f=[],seriesList:c=[],leftAxisList:y=[],rightAxisList:k=[],queryColumnList:S=[],indicators:x=[],controlList:I=[],dataSourceId:A,idxLibMode:N,preview:u=!1}=r||{};h==null&&(ot(s,"table")?h="1":h="2");let T;if(Array.isArray(f)&&f.length>0){const L=f.length;for(let $=0;$<L;$++){const P=f[$]||{},{label:F="",name:_="",show:p=!1,sort:C,customGroup:v,conditions:z}=P;if(p||L===1){T={label:F,columnName:_,show:p,sort:C,customGroup:v,conditions:z};break}}}let E;if(Array.isArray(c)&&c.length>0){const L=c.length;for(let $=0;$<L;$++){const P=c[$]||{},{label:F="",name:_="",show:p=!1,sort:C,customGroup:v,conditions:z}=P;if(p||L===1){E={label:F,columnName:_,show:p,sort:C,customGroup:v,conditions:z};break}}}const B=[];S==null||S.forEach(L=>{B.push(o(L))});const V=[];if(y==null||y.forEach(L=>{L.location="LEFT",V.push(a(L))}),k==null||k.forEach(L=>{L.location="RIGHT",V.push(a(L))}),x==null||x.forEach(L=>{L.location="LEFT",V.push(a(L))}),h==="1"&&B.length===0)return;if(h==="2"&&V.length===0)return;const Y=i(I);try{return await Ie.post(`${Wo}/diagram`,{source:d,dataViewId:m,plugin:b,layer:h,chartType:w,classification:T,series:E,indicatorList:V,queryColumns:B,pageFlag:!0,sqlConditions:Y,dataSourceId:A,idxLibMode:N,preview:u},{headers:{Authentication:(D=window==null?void 0:window.config)==null?void 0:D.indicatorToken,operateContext:"ygt"}})}catch(L){console.error(L)}}},wl=()=>{const n=window.location.search.slice(1).split("&"),o=n.length,a={};for(let l=0;l<o;l++){const i=n[l];if(i==null||i==="")continue;const r=i.split("=");if(Array.isArray(r)){const s=r[0];a[s]=r[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},xl=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pt},setup(e){const n=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:Be(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),o=t.ref(0),a=t.ref(0),l=t.ref(0),i=t.ref(0),r=t.ref(!1),s=t.ref();let d;const m=()=>new Promise(y=>{t.nextTick(()=>{e.width&&e.height?(o.value=parseFloat(e.width),a.value=parseFloat(e.height)):(o.value=s.value.clientWidth,a.value=s.value.clientHeight),(!l.value||!i.value)&&(l.value=window.screen.width,i.value=window.screen.height),y()})}),b=()=>{o.value&&a.value?(s.value.style.width=`${o.value}px`,s.value.style.height=`${a.value}px`):(s.value.style.width=`${l.value}px`,s.value.style.height=`${i.value}px`)},h=()=>{const y=document.body.clientWidth,k=document.body.clientHeight,S=o.value||l.value,x=a.value||i.value,I=y/S,A=k/x;s.value&&(s.value.style.transform=`scale(${I}, ${A})`)},w=Ae.debounce(async()=>{await m(),h()},100),f=()=>{const y=window.MutationObserver;d=new y(w),d.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},c=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return t.onMounted(async()=>{r.value=!1,await m(),b(),h(),window.addEventListener("resize",w),f(),r.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",w),c()}),{style:n,container:s,ready:r}}}),Pr="",Al={id:"container",ref:"container"};function _l(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",Al,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Yo=Z(W(xl,[["render",_l],["__scopeId","data-v-242d350e"]])),kt={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},wt=J(kt),Tl=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...wt},setup(e,{expose:n}){wl();const o=t.ref(),a=()=>{o.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>ie(e.contextRequestUrl)),i=t.computed(()=>e.pageMode),r=t.computed(()=>e.theme),s=t.ref("");t.provide(he,{contextRequestUrl:l,pageMode:i,theme:r,touchEventId:s});const d=new Map;console.log("globalModel",d);const m=F=>d.get(F),b=(F,_)=>{d.set(F,_)};t.provide(me,{getGlobalModel:m,setGlobalModel:b});const h=[],w=()=>{h.pop()},f=F=>{h.push(F)},c=new Map,y=F=>c.get(F),k=(F,_)=>{c.set(F,_)};t.provide(Uo,{popUseModalIds:w,pushUseModalIds:f,getModalModel:y,setModalModel:k});const S=Yn(),x=new Set,I=(F,_)=>{x.add(F),S.on(F,p=>typeof _[p]=="function"&&_[p]()),t.onBeforeUnmount(()=>{A(F)})},A=F=>{x.delete(F),S.off(F)},N=(F,_)=>{if(F==="PAGE"){const p=h.length;let C=[];if(p===0)C=[...x];else{const v=h[p-1];C=[...y(v)]}C.forEach(v=>{S.emit(v,_)})}else S.emit(F,_)};t.provide(Ct,{onEvent:I,offEvent:A,emitEvent:N});const u=t.ref(0),T=()=>{u.value=t.unref(u)+1};t.provide(Go,{requestToken:T});const E=new Map,B=new Map,V=({requestFn:F=()=>{},sortNum:_=0,id:p=""})=>{if(E.has(_)){const C=E.get(_);C==null||C.push(F)}else E.set(_,[F]);B.set(p,F)},Y=F=>new Promise((_,p)=>{const C=F.map(v=>v());Promise.all(C).then(v=>{_(v)}).catch(v=>{p(v)})}),D=async()=>{var p;const F=await So.get(`${Wo}/user/anonymous?username=admin&businessOfficeId=350421`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt",Authentication:""}}),{token:_}=((p=F.data)==null?void 0:p.data)||{};window.config.indicatorToken=_},L=F=>new Promise(async(_,p)=>{if(F){if(typeof F=="string"){const C=B.get(F);if(typeof C=="function"){const v=Ie.interceptors.response.use(z=>(_(z),z),z=>(p(z),Promise.reject(z)));C(),Ie.interceptors.response.eject(v)}}}else{const C=Array.from(E);C.sort((z,q)=>q[0]-z[0]);const v=C.length;try{e.pageMode!=="design"&&t.unref(u)>0&&await D();for(let z=0;z<v;z++){const q=C[z][1];await Y(q)}}catch(z){console.error(z)}finally{E.clear(),_(null)}}});t.provide(ge,{setRequest:V,touchRequest:L});const $=()=>{S.emit(We)};t.provide(We,{emitRefreshPage:$});const P=F=>{S.on(We,()=>F()),t.onMounted(()=>{S.off(We)})};return t.onBeforeUnmount(()=>{E==null||E.clear(),B==null||B.clear()}),n({touchRequest:L,getGlobalModel:m,onRefreshPage:P}),{providerConfig:o}}}),El={id:"ProviderConfig",ref:"providerConfig"};function Ll(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",El,[t.renderSlot(e.$slots,"default")],512)}const Qo=Z(W(Tl,[["render",Ll]])),xt={...oe,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",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{}},At=J(xt),Ko=["refreshData","click","valueChange"],vl="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=",Il="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Ml=t.defineComponent({name:"EcanText",components:{Skeleton:et},props:{...At},setup(e){const n=te(e),o=t.ref({});t.watch(()=>[e.data,e.dataType],([f,c])=>{c==="static"&&(o.value=f)},{immediate:!0});const a=t.computed(()=>{var k;const f=t.unref(o);let c=e.text;c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>"),c=c==null?void 0:c.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const y=c.match(/\{(.+?)\}/g);if(y==null||y.length===0)return c;for(let S=0;S<y.length;S++){const x=y[S],I=(k=x==null?void 0:x.slice(1,x.length-1))==null?void 0:k.trim();let A=I;const N=I.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let T=0;T<N.length;T++){const E=N[T],B=f[E];B&&(A=I.replace(E,B))}if(/\(.*\)/g.test(A)){const T=nt(A);T!=null&&(A=T)}let u=A;if(u===I&&(u=e.variableDefaultValue),u!=null){const T=e.format;T==="percentage"?(u=+u,isNaN(u)?c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`):u>=0?(u=(u*100).toFixed(2),c=c.replace(x,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${vl}"/>${u}%</span>`)):(u=(u*100).toFixed(2),c=c.replace(x,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Il}"/>${Math.abs(+u)}%</span>`))):e.format==="percent"?(u=+u,isNaN(u)||(u=(u*100).toFixed(2),c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${u}%</span>`))):e.format==="money"?(u=+u,isNaN(u)||(u=St(u),c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${u}</span>`))):T==="thousands"?(u=+u,isNaN(u)||(u=kl(u),c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${u}</span>`))):c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${u}</span>`)}}return`<span>${c}</span>`}),{pageMode:l}=t.inject(he,{pageMode:"normal"}),i=Ce(e),r=t.ref(!1),s=async()=>{var f;try{r.value=!0;const c=await i();o.value=((f=c==null?void 0:c.data)==null?void 0:f.data)||{}}catch(c){console.error(c)}finally{r.value=!1}},d=()=>{e.dataType!=="static"&&s()};ce(e,{refreshData:d});const{setRequest:m}=t.inject(ge,{setRequest:({id:f,sortNum:c,requestFn:y})=>{}});m({id:e.id,requestFn:d,sortNum:e.requestSort}),ce(e,{refreshData:d});const b=le(e),h=b("click",()=>{if(!e.linkPage&&!e.href)return;const f=e.linkPage||"",c=Jo(t.unref(l),f),y=e.href;let k=y||c;k=ie(k);const S=e.target;S&&(S!=="event"?window.open(k,"_"+S):window.parent.postMessage({type:"openPage",url:y},"*"))}),w=b("valueChange",()=>{});return t.watch(()=>a.value,(f,c)=>{f!==c&&w()}),{style:n,myText:a,loading:r,click:h}}}),Rr="",Nl=["innerHTML"];function Bl(e,n,o,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:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Nl))}const Xo=Z(W(Ml,[["render",Bl],["__scopeId","data-v-e3658bca"]])),zl=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),Vr="",Ol={class:"red"};function Pl(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",Ol,t.toDisplayString(e.text),1)}const en=Z(W(zl,[["render",Pl],["__scopeId","data-v-4dd9c03e"]])),_t={...oe,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},Tt=J(_t),tn=["timeChange"],Fl=t.defineComponent({name:"EcanTimeDisplay",props:{...Tt},setup(e){const n=te(e),o=()=>{const{format:m,operate:b}=e;let h=be();if(b){const{type:w,value:f,mode:c}=b;switch(w){case"add":h=h.add(f,c);break;case"minus":h=h.subtract(f,c)}}return h.format(m)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=o()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let l=null;const i=()=>{clearInterval(l),l=null},s=le(e)("timeChange",()=>{}),d=()=>{l&&i();let m=1e3;const{value:b,mode:h}=e.updateInterval||{};b&&(m=m*b);const w={second:1,minute:60,hour:60*60,day:24*60*60};h&&(m=m*w[h]),l=setInterval(()=>{a.value=o(),s()},m)};return ce(e,{timeChange:s}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:n,time:a}}}),qr="";function Dl(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const on=Z(W(Fl,[["render",Dl],["__scopeId","data-v-b628fca2"]])),Et={...oe,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"}]},Lt=J(Et),nn=["refreshData","click"],Rl=t.defineComponent({name:"EcanList",components:{Skeleton:et},props:{...Lt},setup(e){const n=t.ref(e.data),o=te(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(f,c)=>c==null||c===""?f:{money:St,percentage:tt,contrast:tt}[c](f)||"",i=(f,c)=>{const y=parseFloat(f+"");if(c!=="contrast")return"";switch(!0){case y>=0:return"goUp";case y<0:return"goDown"}},r=Ce(e),s=t.ref(!1),d=async()=>{var f;if(e.dataType==="request")try{s.value=!0;const c=await r();n.value=((f=c==null?void 0:c.data)==null?void 0:f.data.rows)||[]}catch(c){console.error(c)}finally{s.value=!1}},m=()=>{d()},h=le(e)("click",()=>{});ce(e,{refreshData:m});const{setRequest:w}=t.inject(ge,{setRequest:({id:f,sortNum:c,requestFn:y})=>{}});return w({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,formatFn:l,columnStyle:a,contrastClass:i,dataSource:n,loading:s,click:h}}}),Ur="",Wr="",$l=e=>(t.pushScopeId("data-v-7aa27677"),e=e(),t.popScopeId(),e),Vl={key:0,class:"title"},jl={key:0,class:"ranking"},ql={key:1,class:"ecan-list-content"},Gl={key:0,class:"ranking"},Ul=$l(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Wl={class:"sort"},Hl={key:2,class:"empty"};function Zl(e,n,o,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",Vl,[(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",jl)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:d.key||m,style:t.normalizeStyle({color:d.titleColor,...e.columnStyle})},t.toDisplayString(d.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",ql,[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,d)=>(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:(d+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:s.id||d,onClick:n[0]||(n[0]=(...m)=>e.click&&e.click(...m))},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Gl,[Ul,t.createElementVNode("div",Wl," Top "+t.toDisplayString(d+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,m=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(s[m.key],m.format)]),key:m.key,style:t.normalizeStyle({fontSize:m.fontSize,color:e.contrastClass(s[m.key],m.format)===""?m.color:"",fontWeight:m.fontWeight,...e.columnStyle})},t.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(s[m.key],m.format)),7))),128))],4))),128))])):(t.openBlock(),t.createElementBlock("div",Hl," 暂无数据 "))]),_:1},8,["loading"])],4)}const an=Z(W(Rl,[["render",Zl],["__scopeId","data-v-7aa27677"]])),vt={...oe,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0"},It=J(vt),ln=["refreshData","click"],Jl=t.defineComponent({name:"EcanProportion",components:{AProgress:U.Progress,Skeleton:et},props:{...It},setup(e){const{pageMode:n}=t.inject(he,{pageMode:"normal"}),o=te(e),a=t.computed(()=>{const c=e.width;return parseFloat(c)}),l=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(n)==="design")&&(l.value=e.data)},{immediate:!0,deep:!0});const i=t.computed(()=>{const c=t.unref(l),y=+e.variableDefaultValue;if(c==null)return isNaN(y)?0:y;const k=e.text.match(/\{.+\}/g)||[];let S;const x=new Set(Object.keys(c));for(let I=0;I<k.length;I++){const A=k[I],N=A.slice(1,A.length-1);if(x.has(N)){S=c[N];break}}return typeof S=="number"?S=S*100:typeof S=="string"&&!isNaN(+S)?S=+S*100:isNaN(y)?S=0:S=y*100,e.decimalFormat&&(S=+S.toFixed(2)),S}),r=t.computed(()=>{var x;let c=e.text;if(c==="")return t.unref(i);const y=e.variableDefaultValue,k=t.unref(l),S=c.match(/\{.+\}/g)||[];for(let I=0;I<S.length;I++){const A=S[I];let N=A.slice(1,A.length-1);const u=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,T=A.match(u);for(let B=0;B<(T==null?void 0:T.length);B++){const V=(x=T[B])==null?void 0:x.trim();k[V]!=null&&(N=N.replace(V,k[V]))}let E=N;try{/\(.*\)/g.test(N)&&(E=nt(N))}catch(B){console.error(B)}typeof+E=="number"&&!isNaN(+E)?(E=+E*100,e.decimalFormat&&(E=E.toFixed(2))):E=y,c=c.replace(A,E+"")}return c}),s=Ce(e),d=t.ref(!1),m=async()=>{var c;if(e.dataType==="request")try{d.value=!0;const y=await s();l.value=((c=y==null?void 0:y.data)==null?void 0:c.data)||{}}catch(y){console.error(y)}finally{d.value=!1}};ce(e,{refreshData:()=>{m()}});const w=le(e)("click",()=>{}),{setRequest:f}=t.inject(ge,{setRequest:({id:c,sortNum:y,requestFn:k})=>{}});return f({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:o,myWidth:a,text:r,myValue:i,loading:d,click:w}}}),Zr="";function Yl(e,n,o,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 rn=Z(W(Jl,[["render",Yl],["__scopeId","data-v-00244f8a"]])),Mt={...oe,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},Nt=J(Mt),sn=["inputChange","inputBlur"],Ql=t.defineComponent({name:"EcanInput",components:{AInput:U.Input},props:{...Nt},setup(e){const n=te(e),o=t.ref("");t.watch(()=>e.value,m=>{o.value=m},{immediate:!0});const{getGlobalModel:a,setGlobalModel:l}=t.inject(me,{getGlobalModel:m=>{},setGlobalModel:(m,b)=>{}});l(e.id,{type:e.type,value:o});const i=()=>{const m=a(e.id);l(e.id,{...m,RECORD:o})},r=le(e),s=Ae.debounce(r("inputChange",()=>{i()}),300),d=r("inputBlur",()=>{});return{style:n,myValue:o,inputBlur:d,inputChange:s}}}),Yr="";function Kl(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const cn=Z(W(Ql,[["render",Kl]])),Bt={...oe,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},zt=J(Bt),dn=["dateChange"],Xl=t.defineComponent({name:"EcanDatePicker",props:{...zt},components:{ADatePicker:U.DatePicker},setup(e){const n=te(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([d,m,b])=>{let h=null;if(d?h=be(ie(d)):m&&(h=be()),b&&h){const{type:w,value:f,mode:c}=b;switch(w){case"add":h=h.add(f,c);break;case"minus":h=h.subtract(f,c)}}a.value=h},{deep:!0,immediate:!0});const{setGlobalModel:l}=t.inject(me,{setGlobalModel:(d,m)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const r=le(e)("dateChange",()=>{}),s=()=>{t.unref(a)&&r()};return ce(e,{dateChange:r}),{style:n,getPopupContainer:o,myValue:a,locale:ko,change:s}}}),Kr="";function ei(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const fn=Z(W(Xl,[["render",ei]])),Ot={...oe,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:""},Pt=J(Ot),mn=["dateChange"],ti=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:U.RangePicker},props:{...Pt},setup(e){const n=te(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([k,S,x,I,A,N])=>{let u=null,T=null;if(x&&(u=be().subtract(I,A),T=be()),k&&(u=be(ie(k))),S&&(T=be(ie(S))),N){const{type:E,value:B,mode:V}=N;switch(E){case"add":u=u&&u.add(B,V),T=T&&T.add(B,V);break;case"minus":u=u&&u.subtract(B,V),T=T&&T.subtract(B,V)}}a.value=[u,T]},{immediate:!0});let l=t.unref(a)[0],i=t.unref(a)[1];const r=k=>{Array.isArray(k)?(l=k[0],i=k[1]):(l=null,i=null)},s=k=>{let S=!1,{limitStartTime:x,limitEndTime:I}=e;const A={startTime:`${l||""}`,endTime:`${i||""}`};return x=ie(x,{codeData:A}),I=ie(I,{codeData:A}),x&&I?S=!(be(x)<k&&k<be(I)):x?S=be(x)>k:I&&(S=be(I)<k),S},{setGlobalModel:d}=t.inject(me,{setGlobalModel:(k,S)=>{}}),m=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),b=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);d(e.id,{type:e.type,format:e.format,startTime:m,endTime:b});const h=le(e);let w=!1;const f=h("dateChange",()=>{}),c=k=>{const S=t.unref(a),x=S&&S[0]&&S[1];k===!1&&w===!0&&x&&(f(),w=!1)},y=()=>{w=!0};return ce(e,{dateChange:f}),{style:n,getPopupContainer:o,locale:ko,dateChange:f,myValue:a,disabledDate:s,calendarChange:r,openChange:c,change:y}}}),es="",ts="";function oi(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const un=Z(W(ti,[["render",oi],["__scopeId","data-v-5a46a4a9"]])),Ft={...oe,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},Dt=J(Ft),hn=["click"],ni=t.defineComponent({name:"EcanButton",components:{AButton:U.Button},props:{...Dt},setup(e){const n=te(e),a=le(e)("click",()=>{const s=t.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),l=t.computed(()=>ie(e.text)),i=t.computed(()=>ie(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:n,click:a,myText:l,myHref:i,myTarget:r}}}),ns="";function ai(e,n,o,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 gn=Z(W(ni,[["render",ai]])),Rt={...oe,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"}]},$t=J(Rt),yn=["checkboxChange"],li=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:U.CheckboxGroup},props:{...$t},setup(e){const n=te(e),o=t.ref([]),a=t.ref([]),l=w=>{const f=e.value;let c=[];w.forEach(y=>{y.checked&&c.push(y.value)}),typeof f=="string"&&f!==""?c=c.concat(f.split(",")):Array.isArray(f)&&(c=c.concat(f)),o.value=w,a.value=c};t.watch(()=>[e.data,e.value],([w])=>{l(w)},{immediate:!0,deep:!0});const i=Ce(e),r=async()=>{var c,y;if(e.dataType!=="request")return;const w=await i(),f=((y=(c=w==null?void 0:w.data)==null?void 0:c.data)==null?void 0:y.rows)||[];l(f)},{getGlobalModel:s,setGlobalModel:d}=t.inject(me,{getGlobalModel:w=>{},setGlobalModel:(w,f)=>{}});d(e.id,{type:e.type,value:a});const b=le(e)("checkboxChange",()=>{const w=s(e.id);d(e.id,{...w,RECORD:a})}),{setRequest:h}=t.inject(ge,{setRequest:({id:w,sortNum:f,requestFn:c})=>{}});return h({id:e.id,requestFn:r,sortNum:e.requestSort}),{myOption:o,style:n,myValue:a,checkboxChange:b}}}),ls="";function ii(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const bn=Z(W(li,[["render",ii]])),Vt={...oe,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1},jt=J(Vt),pn=["selectChange","refreshData"],ri=t.defineComponent({name:"EcanSelect",components:{ASelect:U.Select},props:{...jt},setup(e){const n=te(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=Ce(e),l=t.ref(e.data||[]),i=t.ref();t.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:k,selectFirstOption:S,value:x}=e;k==="multiple"||k==="tags"||k==="combobox"?x?i.value=x.split(","):S&&(i.value=[t.unref(l)[0]]):x?i.value=x:S&&(i.value=t.unref(l)[0])},{immediate:!0});const r=e.dataFieldNames,s=(k,S)=>{const x=r.label,I=r.value;let A;const N=S[x],u=S[I];return N!=null?A=N:u!=null&&(A=u),(A==null?void 0:A.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},d=k=>{const{label:S,value:x,options:I}=e.dataFieldNames;if(I&&Array.isArray(k))if(k.some(A=>I in A)){const A={},N=[];k.forEach(u=>{A[u[I]]||(A[u[I]]=[]),A[u[I]].push({[S]:u[S],[x]:u[x]})});for(const u in A)N.push({[S]:u,[I]:A[u]});return N}else return k;else if(!I)return k},m=t.ref(!1),b=async()=>{var k,S;if(e.dataType==="request"){m.value=!0;try{const x=await a();l.value=d(((S=(k=x==null?void 0:x.data)==null?void 0:k.data)==null?void 0:S.rows)||[]);const I=t.unref(l)[0];e.value===""&&I!=null&&(i.value=I[r.value])}catch(x){console.error(x)}finally{m.value=!1}}},{getGlobalModel:h,setGlobalModel:w}=t.inject(me,{getGlobalModel:k=>{},setGlobalModel:(k,S)=>{}});w(e.id,{type:e.type,value:i});const c=le(e)("selectChange",()=>{const k=e.id,S=h(k);w(k,{...S,RECORD:i})});ce(e,{selectChange:c,refreshData:b});const{setRequest:y}=t.inject(ge,{setRequest:({id:k,sortNum:S,requestFn:x})=>{}});return y({id:e.id,requestFn:b,sortNum:e.requestSort}),{style:n,getPopupContainer:o,myValue:i,selectChange:c,options:l,filterOption:s,loading:m}}}),rs="",ss="";function si(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const Cn=Z(W(ri,[["render",si],["__scopeId","data-v-88398812"]])),qt={...oe,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Gt=J(qt),Sn=["selectChange","refreshData"],ci={name:"EcanTreeSelect",components:{ATreeSelect:U.TreeSelect},props:{...Gt},setup(e){const n=te(e),o=t.ref(e.data),a=(f,c)=>{const y=e.dataFieldNames,k=y.label,S=y.value;let x;const I=c[k],A=c[S];return I!=null?x=I:A!=null&&(x=A),(x==null?void 0:x.toLowerCase().indexOf(f==null?void 0:f.toLowerCase()))>=0},l=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:f,value:c,selectFirstOption:y}=e;f?c?l.value=c.split(","):y&&(l.value=[t.unref(o)[0]]):c?l.value=c:y&&(l.value=t.unref(o)[0])},{immediate:!0});const i=t.ref(!1),r=Ce(e),s=async()=>{var f,c;if(e.dataType==="request"){i.value=!0;try{const y=await r();o.value=((c=(f=y==null?void 0:y.data)==null?void 0:f.data)==null?void 0:c.rows)||[];const k=t.unref(o)[0];e.value===""&&k!=null&&(l.value=k[e.dataFieldNames.value])}catch(y){console.error(y)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:m}=t.inject(me,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}});m(e.id,{type:e.type,value:l});const h=le(e)("selectChange",()=>{const f=e.id,c=d(f);m(f,{...c,RECORD:l})});ce(e,{selectChange:h,refreshData:s});const{setRequest:w}=t.inject(ge,{setRequest:({id:f,sortNum:c,requestFn:y})=>{}});return w({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:o,filterTreeNode:a,myValue:l,loading:i,selectChange:h}}},ds="",fs="";function di(e,n,o,a,l,i){const r=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(r,{class:"tree-select",value:a.myValue,"onUpdate:value":n[0]||(n[0]=s=>a.myValue=s),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const kn=Z(W(ci,[["render",di],["__scopeId","data-v-37236421"]])),Ut={...oe,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,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",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:"当前无说明信息"},Wt=J(Ut),wn=["click","refreshData","resetRecord"],Je=async e=>{var d;const n=await Ie.post(e,{},{responseType:"blob"}),{data:o,headers:a}=n,l=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([o]),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(),(d=r.parentNode)==null||d.removeChild(r),window.URL.revokeObjectURL(s)},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),xn=["showModal"],fi=t.defineComponent({name:"EcanModal",components:{AModal:U.Modal,CloseOutlined:sl},props:{...Zt},setup(e,{emit:n}){const o=()=>document.getElementById("ProviderConfig")||document.body,a=t.computed(()=>{const C=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[C]}}),l=e.width,i=e.height,r=e.originalWidth,s=e.originalHeight,d=t.ref("80%"),m=t.ref(0),b=t.ref(),h=t.ref(0),w=t.ref({}),f=te(e),c=t.ref({}),y=t.ref(!1),k=t.ref();let S;const x=()=>{b.value=parseFloat(l)/parseFloat(r);const C=parseFloat(i)/parseFloat(s),v=document.body.offsetWidth,z=document.body.offsetHeight;m.value=v*t.unref(b),h.value=z*C,d.value=`${t.unref(b)*100}%`,w.value={width:`${t.unref(m)}px`,height:`${t.unref(h)}px`},c.value={...t.unref(f),backgroundImage:Be(e.backgroundImage,!0),transform:`scale(${t.unref(m)/parseFloat(l)},${t.unref(h)/parseFloat(i)})`}},I=Ae.debounce(()=>{x()},100),A=()=>{const C=window.MutationObserver;S=new C(I),S.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},N=()=>{S&&(S.disconnect(),S.takeRecords(),S=null)},u=t.ref(!1),{touchRequest:T}=t.inject(ge,{touchRequest:()=>{}}),E=()=>{u.value=!0},B=()=>{n("close"),u.value=!1},V=()=>{B()},Y=()=>{B()},{setModalModel:D,pushUseModalIds:L,popUseModalIds:$}=t.inject(Uo,{pushUseModalIds:C=>{},popUseModalIds:()=>{},setModalModel:(C,v)=>{}}),P=()=>{const C=e.id;let v=[];const z=e.componentList;console.log("componentList",z),Array.isArray(z)&&(v=z.map(q=>q.id),D(C,[...new Set(v)]))};t.watch(()=>u.value,async C=>{C?(y.value=!1,L(e.id),P(),await t.nextTick(()=>{x(),window.addEventListener("resize",I),A(),y.value=!0}),T()):($(),window.removeEventListener("resize",I),N())});const F=t.computed(()=>t.unref(b)>=1),_=t.computed(()=>e.fullModal),p=t.computed(()=>{let C="ecan-modal";return t.unref(F)&&(C+=" ecan-full-width-modal"),t.unref(_)&&(C+=" ecan-full-modal"),C});return ce(e,{showModal:E}),{modalRef:k,containStyle:w,contentStyle:c,getContainer:o,modalStyle:a,modalWith:d,isFullModal:_,style:f,visible:u,showModal:E,onOk:V,onCancel:Y,isFullWidth:F,wrapClassName:p,ready:y}}}),us="",hs="",mi={key:0};function ui(e,n,o,a,l,i){const r=t.resolveComponent("close-outlined"),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),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{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.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.title),5)):t.createCommentVNode("",!0),t.createVNode(r,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(t.openBlock(),t.createElementBlock("div",mi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,(d,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.type),t.mergeProps({key:d.id+m},d),null,16))),128))])):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const Oe=Z(W(fi,[["render",ui],["__scopeId","data-v-2814b49f"]]));xe.use([Pe.CanvasRenderer,Le.PieChart,ae.TitleComponent,ae.ToolboxComponent,ae.TooltipComponent,ae.LegendComponent]);const hi=t.defineComponent({name:"EcanPie",props:{...Wt},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe},setup(e,{expose:n}){const o=t.ref(!1),a=te(e),l=t.ref([]),i=t.ref(),r=t.computed(()=>{let{data:T=[]}=t.unref(l)[0]||{};if(Array.isArray(e.colors)){const E=e.isUseLabelColors,B=e.colors;T=T.map((V,Y)=>({label:E?{color:B[Y]}:{},...V}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var E;o.value=!0,(E=i.value)==null||E.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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:E=>{const{marker:B,seriesName:V,name:Y,value:D,percent:L,data:$}=E||{};return ie(e.tooltipFormatter,{textData:{marker:B,name:Y,value:D,percent:L,a:V,b:Y,c:D,d:L,...$}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Re:e.labelFontSize}},color:e.colors,series:[{data:T,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:o.value?Re:e.labelFontSize,position:e.labelPosition,formatter:Sl(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:{}}}]}}),s=()=>{o.value=!1},{getGlobalModel:d,setGlobalModel:m}=t.inject(me,{getGlobalModel:T=>{},setGlobalModel:(T,E)=>{}}),{pageMode:b}=t.inject(he,{pageMode:"normal"}),h=(T=[],E)=>{const{dataset:B}=He(T,E);l.value=B},w=(T=[],E)=>{const B=He(T,E);l.value=B.dataset};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(b)==="design")&&h(T)},{immediate:!0,deep:!0});const f=t.ref(!1),c=Ce(e),y=async()=>{var T,E;if(e.dataType==="request")try{f.value=!0;const B=await c();h((E=(T=B==null?void 0:B.data)==null?void 0:T.data)==null?void 0:E.rows,e.valueTypeDataFieldNames)}catch(B){console.error(B)}finally{f.value=!1}},S=le(e)("click",T=>{const E=d(e.id);m(e.id,{...E,RECORD:T==null?void 0:T.data})}),x=Ze(e),I=async()=>{var T;try{f.value=!0;const E=await x(),{data:B}=E.data||{};if(B){const{columns:V=[],rows:Y=[]}=((T=E==null?void 0:E.data)==null?void 0:T.data)??{};let D=[];if(V.length>0){const L=V[0],$=V[1];D=Y.map(P=>({name:P[L],value:P[$]}))}w(D)}}catch(E){console.error(E)}finally{f.value=!1}},A=()=>{switch(e.dataType){case"indicator":I();break;case"request":y();break}};ce(e,{resetRecord:()=>{const T=e.id,E=d(T);m(T,{...E,RECORD:""})},refreshData:A,click:S}),n({refreshData:A});const{setRequest:u}=t.inject(ge,{setRequest:T=>{}});return typeof u=="function"&&u({id:e.id,requestFn:A,sortNum:e.requestSort}),{option:r,style:a,click:S,onClose:s,loading:f,ecanModal:i}}}),ys="";function gi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-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(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"])],4)}const An=Z(W(hi,[["render",gi]])),Jt={...oe,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,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},Yt=J(Jt),_n=["click","refreshData","resetRecord"];xe.use([Pe.CanvasRenderer,Le.LineChart,ae.ToolboxComponent,ae.TitleComponent,ae.LegendComponent]);const yi=t.defineComponent({name:"EcanLine",props:{...Yt},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=te(e),i=t.ref([]),r=t.ref([]),s=t.ref(),d=t.computed(()=>a.value?Re:12),m=t.ref({});let b;const h=t.computed(()=>{const L=e.xAxisLabelFormatter,$=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var P;a.value=!0,(P=s.value)==null||P.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:P=>{var C;const F=P.length;let _="",p=e.tooltipFormatter;b=(C=P[0])==null?void 0:C.data,p===""&&(p="{marker} {a} {c}");for(let v=0;v<F;v++){const{marker:z,seriesName:q,name:X,value:H,data:de}=P[v]||{};v===0&&(_+=`${X}<br/>`),_+=ie(p,{textData:{marker:z,name:X,value:H,a:q,b:X,c:H,...de}},{useNewline:!0,useSpace:!0}),_+="<br/>"}return _}},xAxis:{type:"category",data:t.unref(r).map(P=>{let F={};return P&&typeof P=="object"?F={...P,textStyle:{fontSize:d.value}}:F={value:P,textStyle:{fontSize:d.value}},F}),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(P){return ze(L,P)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:d.value,color:e.yAxisLabelColor,formatter(P){return ze($,P)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:d.value}},series:t.unref(i)}}),w=()=>{a.value=!1},{getGlobalModel:f,setGlobalModel:c}=t.inject(me,{getGlobalModel:L=>{},setGlobalModel:(L,$)=>{}}),{pageMode:y}=t.inject(he,{pageMode:"normal"}),k=(L=[],$=!1)=>{let P;if(e.dataFieldConfigType==="key"){const C=$?e.keyTypeDataFieldNames:null;P=$e(L,C)}else if(e.dataFieldConfigType==="value"){const C=$?e.valueTypeDataFieldNames:null;P=He(L,C)}r.value=P.dimensions;const F=P.dataset,_=[],p=F.length;for(let C=0;C<p;C++)_.push({type:"line",...F[C],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=_},S=(L=[],$,P=!1)=>{const _=$e(L,P?$:null);r.value=_.dimensions;const p=_.dataset,C=[],v=p.length;for(let z=0;z<v;z++)C.push({type:"line",...p[z],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=C};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([L])=>{(e.dataType==="static"||t.unref(y)==="design")&&k(L)},{immediate:!0,deep:!0});const x=t.ref(!1),I=Ce(e),A=async()=>{var L,$;if(e.dataType==="request")try{x.value=!0;const P=await I();k(($=(L=P==null?void 0:P.data)==null?void 0:L.data)==null?void 0:$.rows,!0)}catch(P){console.error(P)}finally{x.value=!1}},u=le(e)("click",L=>{const $=f(e.id);c(e.id,{...$,RECORD:e.tooltipShow?b:L.data})}),T=L=>{o.value.chart.containPixel("grid",[L.offsetX,L.offsetY])&&u()};e.tooltipShow?m.value["zr:click"]=T:m.value.click=u;const E=Ze(e),B=async()=>{var L;try{x.value=!0;const $=await E(),{columns:P=[],rows:F=[]}=((L=$==null?void 0:$.data)==null?void 0:L.data)??{};let _;P.length>0&&(_={name:P[0],types:P.slice(1).map(p=>({label:p,value:p}))}),S(F,_,!0)}catch($){console.error($)}finally{x.value=!1}},V=()=>{switch(e.dataType){case"indicator":B();break;case"request":A();break}};ce(e,{refreshData:V,resetRecord:()=>{const L=e.id,$=f(L);c(L,{...$,RECORD:""})},click:u});const{setRequest:D}=t.inject(ge,{setRequest:L=>{}});return typeof D=="function"&&D({id:e.id,requestFn:V,sortNum:e.requestSort}),n({refreshData:V}),{option:h,style:l,click:u,loading:x,onClose:w,ecanModal:s,eventObj:m,echartRef:o}}}),ps="";function bi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"])],4)}const Tn=Z(W(yi,[["render",bi]])),Qt={...oe,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:"",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0},Kt=J(Qt),En=["refreshData","click","resetRecord"];xe.use([Pe.CanvasRenderer,Le.BarChart,ae.TitleComponent,ae.LegendComponent,ae.DatasetComponent,ae.ToolboxComponent]);const pi=t.defineComponent({name:"EcanBar",props:{...Kt},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe,AModal:U.Modal},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=t.ref(!1),i=t.ref(null),r=t.ref([]),s=te(e),d=t.ref([]),m=t.ref(),b=t.computed(()=>a.value?Re:12),h=t.computed(()=>{const p=t.unref(d),C=p.length,v=[];for(let z=0;z<C;z++){const q={...p[z],type:"bar",barWidth:e.barWidth};e.isStack&&(q.stack="stack"),q.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},v.push(q)}return v}),w=t.ref([]),f=t.ref(!1),c=t.computed(()=>{const p=e.yAxisLabelFormatter,C=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const v=o.value.chart.getOption(),{xAxis:z}=v||{};z&&z.length&&(r.value=z[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var v;a.value=!0,(v=m.value)==null||v.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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:v=>{const z=v.length;let q="",X=e.tooltipFormatter;X===""&&(X="{marker} {a} {c}");for(let H=0;H<z;H++){const{marker:de,seriesName:ne,name:ee,value:re,data:Te}=v[H]||{};H===0&&(q+=`${ee}<br/>`),q+=ie(X,{textData:{marker:de,name:ee,value:re,a:ne,b:ee,c:re,...Te}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q},textStyle:{color:e.tooltipTextStyleColor,fontSize:b.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:b.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(I),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(v){return ze(C,v)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(w):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:b.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(v){return ze(p,v)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(h)}}),{pageMode:y}=t.inject(he,{pageMode:"normal"}),k=()=>{a.value=!1},S=(p=[],C=!1)=>{let v={};if(e.dataFieldConfigType==="key"){const z=C?e.keyTypeDataFieldNames:null;v=$e(p,z)}else if(e.dataFieldConfigType==="value"){const z=C?e.valueTypeDataFieldNames:null;v=He(p,z)}d.value=v.dataset,w.value=v.dimensions},x=(p=[],C,v=!1)=>{const q=$e(p,v?C:null);d.value=q.dataset,w.value=q.dimensions},I=t.computed(()=>t.unref(w).map(p=>{let C={};return p&&typeof p=="object"?C={...p,textStyle:{fontSize:b.value}}:C={value:p,textStyle:{fontSize:b.value}},C}));t.watch(()=>e.data,p=>{(e.dataType==="static"||t.unref(y)==="design")&&S(p)},{immediate:!0,deep:!0});const A=Ce(e),N=async()=>{var p,C;try{f.value=!0;const v=await A();S((C=(p=v==null?void 0:v.data)==null?void 0:p.data)==null?void 0:C.rows,!0)}catch(v){console.error(v)}finally{f.value=!1}},u=Ze(e),T=async()=>{var p;try{f.value=!0;const C=await u(),{columns:v=[],rows:z=[]}=((p=C==null?void 0:C.data)==null?void 0:p.data)??{};let q;v.length>0&&(q={name:v[0],types:v.slice(1).map(X=>({label:X,value:X}))}),x(z,q,!0)}catch(C){console.error(C)}finally{f.value=!1}},E=()=>{switch(e.dataType){case"indicator":T();break;case"request":N();break}},B=(p,C)=>!!t.unref(r)[C.value].value.includes(p),V=async()=>{l.value=!1;const p=o.value.chart.getOption();for(let C=0;C<7;C++)await Y(p,C)},Y=(p,C)=>new Promise(v=>{setTimeout(()=>{const{series:z,color:q,xAxis:X}=p,H=o.value.chart,{splitArea:de={}}=X[0]||{};z.forEach((ne,ee)=>{const re=ne.data;let Te="";C%2?Te=q[ee]+"a8":Te=q[ee],re[i.value].itemStyle={color:Te}}),C%2?(de.show=!0,de.areaStyle.color=t.unref(r).map((ne,ee)=>ee===i.value?"#ff003b26":"")):de.show=!1,H.setOption({series:z,xAxis:X}),v()},200)});n({refreshData:E});const D=le(e),{getGlobalModel:L,setGlobalModel:$}=t.inject(me,{getGlobalModel:p=>{},setGlobalModel:(p,C)=>{}}),P=D("click",p=>{const C=L(e.id);$(e.id,{...C,RECORD:p.data})}),{setRequest:F}=t.inject(ge,{setRequest:p=>{}});return typeof F=="function"&&F({id:e.id,requestFn:E,sortNum:e.requestSort}),ce(e,{refreshData:E,click:P,resetRecord:()=>{const p=e.id,C=L(p);$(p,{...C,RECORD:""})}}),{option:c,style:s,refreshData:E,click:P,loading:f,onClose:k,ecanModal:m,echartRef:o,handleLocationOk:V,onFilterOption:B,locationVisible:l,locationValue:i,locationNames:r}}}),Ss="",ks="",Ci=e=>(t.pushScopeId("data-v-447bc52f"),e=e(),t.popScopeId(),e),Si={class:"location-wrap"},ki=Ci(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function wi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),m=t.resolveComponent("a-select-option"),b=t.resolveComponent("a-select"),h=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,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"]),t.createVNode(h,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=w=>e.locationVisible=w),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Si,[ki,t.createVNode(b,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=w=>e.locationValue=w),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(w,f)=>(t.openBlock(),t.createBlock(m,{key:f,value:f},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(w.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Ln=Z(W(pi,[["render",wi],["__scopeId","data-v-447bc52f"]])),Xt={...oe,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,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},eo=J(Xt),vn=["click","refreshData","resetRecord"];xe.use([Pe.CanvasRenderer,Le.ScatterChart,ae.ToolboxComponent,ae.TitleComponent,ae.TooltipComponent,ae.LegendComponent]);const xi=t.defineComponent({name:"EcanScatter",props:{...eo},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe},setup(e){const n=t.ref(!1),o=te(e),a=t.ref([]),l=t.ref(),i=t.computed(()=>n.value?Re:12),r=t.computed(()=>{const A=e.xAxisLabelFormatter,N=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var u;n.value=!0,(u=l.value)==null||u.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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:{fontSize:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(u){return ze(A,u)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.yAxisLabelColor,formatter(u){return ze(N,u)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(u){var D;const{marker:T,seriesName:E}=u,B=((D=u==null?void 0:u.data)==null?void 0:D.record)??{},{name:V,value:Y}=B;return ie(e.tooltipFormatter,{textData:{marker:T,seriesName:E,a:E,b:V,c:Y,...B}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:t.unref(a),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:d}=t.inject(me,{getGlobalModel:A=>{},setGlobalModel:(A,N)=>{}}),{pageMode:m}=t.inject(he,{pageMode:"normal"}),b=(A=[],N)=>{const{name:u="name",value:T="value"}=N||{};a.value=A.map(E=>({value:[E[u],E[T]],record:E}))};t.watch(()=>e.data,A=>{(e.dataType==="static"||t.unref(m)==="design")&&b(A)},{immediate:!0,deep:!0});const h=t.ref(!1),w=Ce(e),f=async()=>{var A,N;if(e.dataType==="request"){h.value=!0;try{const u=await w();b((N=(A=u==null?void 0:u.data)==null?void 0:A.data)==null?void 0:N.rows,e.dataFieldNames)}catch(u){console.error(u)}finally{h.value=!1}}},c=()=>{n.value=!1},k=le(e)("click",A=>{const N=e.id,u=s(N);d(N,{...u,RECORD:A==null?void 0:A.data})});ce(e,{refreshData:()=>{f()},click:k,resetRecord:()=>{const A=e.id,N=s(A);d(A,{...N,RECORD:""})}});const{setRequest:I}=t.inject(ge,{setRequest:A=>{}});return typeof I=="function"&&I({id:e.id,requestFn:f,sortNum:e.requestSort}),{option:r,style:o,click:k,loading:h,onClose:c,ecanModal:l}}}),xs="";function Ai(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-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(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"])],4)}const In=Z(W(xi,[["render",Ai]])),to={...oe,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},oo=J(to),_i=t.defineComponent({name:"EcanCustomGraph",props:{...oo},components:{Echarts:Ne},setup(e){const n=te(e),o=t.ref();return t.watch(()=>e.optionCode,a=>{try{const l=eval;o.value=l(a)}catch(l){console.error(l)}},{immediate:!0}),{style:n,myOption:o,echarts:ea}}});function Ti(e,n,o,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 Mn=Z(W(_i,[["render",Ti]])),no={...oe,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,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"},ao=J(no),Nn=["refreshData","click","resetRecord"];xe.use([Pe.CanvasRenderer,Le.BarChart,Le.LineChart,ae.TitleComponent,ae.LegendComponent,ae.DatasetComponent,ae.ToolboxComponent]);const Ei=t.defineComponent({name:"EcanComboGraph",props:{...ao},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe,AModal:U.Modal},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=t.ref(!1),i=t.ref(null),r=t.ref([]),s=te(e),d=t.ref([]),m=t.ref([]),b=t.ref(),h=t.computed(()=>a.value?Re:12),w=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:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const _=o.value.chart.getOption(),{xAxis:p}=_||{};p&&p.length&&(r.value=p[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;a.value=!0,(_=b.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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,fontSize:h.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:_=>{const p=_.length;let C="",v=e.tooltipFormatter;v===""&&(v="{marker} {a} {c}");const z=e.seriesTypes;for(let q=0;q<p;q++){const X=z[q],{tooltipFormatter:H}=X||{},{marker:de,seriesName:ne,name:ee,value:re,data:Te}=_[q]||{};q===0&&(C+=`${ee}<br/>`),C+=ie(H||v,{textData:{marker:de,name:ee,value:re,seriesName:ne,a:ne,b:ee,c:re,...Te}},{useNewline:!0,useSpace:!0}),C+="<br/>"}return C},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(m).map(_=>{let p={};return _&&typeof _=="object"?p={..._,textStyle:{fontSize:h.value}}:p={value:_,textStyle:{fontSize:h.value}},p}),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(S),series:t.unref(d)})),{pageMode:f}=t.inject(he,{pageMode:"normal"}),c=()=>{a.value=!1},y=(_=[],p=!1)=>{let C;if(e.dataFieldConfigType==="key"){const H=p?e.keyTypeDataFieldNames:null;C=$e(_,H)}else if(e.dataFieldConfigType==="value"){const H=p?e.valueTypeDataFieldNames:null;C=He(_,H)}m.value=C.dimensions;const v=C.dataset,z=[],q=v.length,X=e.seriesTypes;for(let H=0;H<q;H++){const de=X[H],{type:ne,axisIndex:ee}=de||{};let re={type:ne,yAxisIndex:ee,...v[H]};ne==="line"&&(re={...re,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),ne==="bar"&&(re={...re,barWidth:e.barWidth}),z.push(re)}d.value=z},k=(_=[],p,C=!1)=>{const z=$e(_,C?p:null);m.value=z.dimensions;const q=z.dataset,X=[],H=q.length,de=e.seriesTypes;for(let ne=0;ne<H;ne++){const ee=de[ne];X.push({type:ee==null?void 0:ee.type,yAxisIndex:ee==null?void 0:ee.axisIndex,...q[ne]})}d.value=X};t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([_])=>{(e.dataType==="static"||t.unref(f)==="design")&&y(_)},{immediate:!0,deep:!0});const S=t.computed(()=>{const _=e.yAxis;return _==null?void 0:_.map(p=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:h.value,color:e.yAxisLabelColor,formatter(C){return ze(p.axisLabelFormatter,C)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),x=t.ref(!1),I=Ce(e),A=async()=>{var _,p;if(e.dataType==="request")try{x.value=!0;const C=await I();y((p=(_=C==null?void 0:C.data)==null?void 0:_.data)==null?void 0:p.rows,!0)}catch(C){console.error(C)}finally{x.value=!1}},N=Ze(e),u=async()=>{var _;try{x.value=!0;const p=await N(),{columns:C=[],rows:v=[]}=((_=p==null?void 0:p.data)==null?void 0:_.data)??{};let z;C.length>0&&(z={name:C[0],types:C.slice(1).map(q=>({label:q,value:q}))}),k(v,z,!0)}catch(p){console.error(p)}finally{x.value=!1}},T=()=>{switch(e.dataType){case"indicator":u();break;case"request":A();break}},E=(_,p)=>!!t.unref(r)[p.value].value.includes(_),B=async()=>{l.value=!1;const _=o.value.chart.getOption();for(let p=0;p<7;p++)await V(_,p)},V=(_,p)=>new Promise(C=>{setTimeout(()=>{const{series:v,color:z,xAxis:q}=_,X=o.value.chart,{splitArea:H={}}=q[0]||{};v.forEach((de,ne)=>{const ee=de.data;let re="";p%2?re=z[ne]+"a8":re=z[ne],ee[i.value].itemStyle={color:re}}),p%2?(H.show=!0,H.areaStyle.color=t.unref(r).map((de,ne)=>ne===i.value?"#ff003b26":"")):H.show=!1,X.setOption({series:v,xAxis:q}),C()},200)});n({refreshData:T});const Y=le(e),{getGlobalModel:D,setGlobalModel:L}=t.inject(me,{getGlobalModel:_=>{},setGlobalModel:(_,p)=>{}}),$=Y("click",_=>{const p=D(e.id);L(e.id,{...p,RECORD:_==null?void 0:_.data})}),{setRequest:P}=t.inject(ge,{setRequest:_=>{}});return typeof P=="function"&&P({id:e.id,requestFn:T,sortNum:e.requestSort}),ce(e,{resetRecord:()=>{const _=e.id,p=D(_);L(_,{...p,RECORD:""})},refreshData:T,click:$}),{style:s,option:w,click:$,loading:x,onClose:c,ecanModal:b,echartRef:o,handleLocationOk:B,onFilterOption:E,locationVisible:l,locationValue:i,locationNames:r}}}),Ts="",Es="",Li=e=>(t.pushScopeId("data-v-b207f1d1"),e=e(),t.popScopeId(),e),vi={class:"location-wrap"},Ii=Li(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Mi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),m=t.resolveComponent("a-select-option"),b=t.resolveComponent("a-select"),h=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,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"]),t.createVNode(h,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=w=>e.locationVisible=w),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",vi,[Ii,t.createVNode(b,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=w=>e.locationValue=w),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(w,f)=>(t.openBlock(),t.createBlock(m,{key:f,value:f},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(w.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bn=Z(W(Ei,[["render",Mi],["__scopeId","data-v-b207f1d1"]])),lo={...oe,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:{}},io=J(lo),zn=["click"],Ni=t.defineComponent({name:"EcanBorder",props:{...io},setup(e){const n=te(e,["background"]),{theme:o}=t.inject(he,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),i=le(e)("click",()=>{}),r=t.ref([]);t.watch(()=>e.data,d=>{r.value=d},{immediate:!0,deep:!0}),ce(e,{click:i});const{setGlobalModel:s}=t.inject(me,{setGlobalModel:(d,m)=>{}});return s(e.id,{type:e.type,value:r}),{style:n,click:i,borderStyle:a,theme:o}}}),Bi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",zi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",vs="",we=e=>(t.pushScopeId("data-v-1550b11b"),e=e(),t.popScopeId(),e),Oi=we(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Pi=we(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Fi=we(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Di=we(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Ri={class:"title-item-wrapper"},$i={class:"title-item"},Vi=we(()=>t.createElementVNode("img",{class:"title-decoration-left",src:Bi},null,-1)),ji={class:"title"},qi=we(()=>t.createElementVNode("img",{class:"title-decoration-right",src:zi},null,-1)),Gi=we(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ui=we(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Wi=we(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hi=we(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Zi={key:2,class:"left-title"},Ji={class:"title"};function Yi(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:n[0]||(n[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},[Oi,Pi,Fi,Di],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",Ri,[t.createElementVNode("div",$i,[Vi,t.createElementVNode("div",ji,t.toDisplayString(e.title),1),qi])]),Gi,Ui,Wi,Hi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Zi,[t.createElementVNode("div",Ji,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const On=Z(W(Ni,[["render",Yi],["__scopeId","data-v-1550b11b"]])),ro={...oe,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"},so=J(ro),Pn=["tabChange"],Qi=t.defineComponent({name:"EcanTabs",props:{...so},setup(e){const n=te(e),o=t.ref(0);t.watch(()=>e.activeKey,f=>{o.value=f},{immediate:!0});const{pageMode:a}=t.inject(he,{pageMode:"normal"});let l=null;const i=()=>{const f=Array.isArray(t.unref(r))?t.unref(r).length-1:0;e.autoSwitch&&f>0&&(l=setInterval(()=>{const c=t.unref(o)+1;c<=f?o.value=c:o.value=0,s.value=t.unref(r)[t.unref(o)],h()},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,f=>{r.value=f,s.value=Array.isArray(f)&&f.length>0?f[0]:{}},{immediate:!0,deep:!0});const d=f=>o.value===f,m=le(e),{setGlobalModel:b}=t.inject(me,{setGlobalModel:(f,c)=>{}});b(e.id,{value:s,activeKey:o});const{emitRefreshPage:h}=t.inject(We,{emitRefreshPage:()=>{}}),w=m("tabChange",(f,c)=>{c!==t.unref(o)&&(s.value=f,o.value=c,h())});return ce(e,{tabChange:w}),{style:n,activeKey:o,isActive:d,tabChange:w,myData:r,useImagePath:Be}}}),Ms="",Ki=["onClick"];function Xi(e,n,o,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(d=>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,Ki))),128))],4)],4)}const Fn=Z(W(Qi,[["render",Xi],["__scopeId","data-v-a2045b93"]])),co={...oe,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},fo=J(co),er=t.defineComponent({name:"EcanImage",props:{...fo},setup(e){const n=te(e),o=t.computed(()=>Be(e.imgUrl)),{pageMode:a}=t.inject(he,{pageMode:"normal"});return{style:n,myImgUrl:o,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",r=Jo(t.unref(a),i),s=e.href;let d=s||r;d=ie(d);const m=e.target;m&&(m!=="event"?window.open(d,"_"+m):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),Bs="",tr=["src"];function or(e,n,o,a,l,i){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...r)=>e.onClick&&e.onClick(...r))},null,12,tr)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Dn=Z(W(er,[["render",or],["__scopeId","data-v-ef7a7bee"]])),mo={...oe,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},uo=J(mo),nr=t.defineComponent({name:"EcanIframe",props:{...uo},setup(e){const n=te(e),{contextRequestUrl:o}=t.inject(he,{contextRequestUrl:""}),a=t.computed(()=>{let l=ie(e.link);if(e.linkType==="erd"&&l!=null){let i=t.unref(o);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",l=`${Cl||i}?_t=0&uid=${l}`}return l});return{style:n,myLink:a}}}),Os="",ar=["src"];function lr(e,n,o,a,l,i){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,ar)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Rn=Z(W(nr,[["render",lr],["__scopeId","data-v-19bc100c"]])),ho={...oe,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:{}},go=J(ho),$n=["click","refreshData","resetRecord","exportTableData"],ir=t.defineComponent({name:"EcanTable",components:{Skeleton:et,AButton:U.Button,AInput:U.Input,ACheckboxGroup:U.CheckboxGroup,ATable:U.Table,ATableSummary:U.TableSummary,ATableSummaryRow:U.TableSummaryRow,ATableSummaryCell:U.TableSummaryCell},props:{...go},setup(e,{expose:n}){const o=te(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([]),d=t.ref([]),m=t.ref([]),b=t.ref(0),h=t.ref(1),w=t.computed(()=>e.paginationPageSize),f=t.reactive([]),c=(M=[])=>{if(Array.isArray(M)&&M.length>0){const O=M.length,j=e.columnsFixedNum;for(let G=0;G<O;G++){const R=M[G];G<j?R.fixed="left":R.fixed=!1;const{cellAlign:Q="center",cellColor:K,dataIndex:fe,title:ue,tableFilter:se,headerCellAlign:Me,headerCellColor:Se}=R;se&&(f.push(fe),R.filterOptionsInputValue="",R.filterCheckboxGroupValue=[],R.customFilterDropdown=!0,R.onFilter=(Ee,po)=>po[fe].toString().toLowerCase().includes(Ee.toLowerCase())),R.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Me||"center",color:Se,borderBottomColor:e.borderColor}}),R.customCell=(Ee,po)=>({style:{textAlign:Q,color:K,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(p)===po&&e.clickHighlight},onClick:D("click",()=>{const Jn=e.id,wr=L(Jn);Ee={dataIndex:fe,title:ue,...Ee},$(Jn,{...wr,RECORD:Ee})})}),Array.isArray(R.children)&&c(R.children)}}},y=(M=[])=>(e.isUseSeq&&M.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&M.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),c(M),M);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{r.value=y(Ae.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([M,O])=>{O==="static"&&(s.value=M)},{immediate:!0});const k=t.ref({}),S=M=>{if(Array.isArray(M)){const O=M.length,j=f,G=j.length,R={};for(let K=0;K<O;K++){const fe=M[K];for(let ue=0;ue<G;ue++){const se=j[ue];if(R[se])R[se].add(fe[se]);else{const Me=new Set;Me.add(fe[se]),R[se]=Me}}}const Q={};for(const K in R)if(Object.prototype.hasOwnProperty.call(R,K)){const fe=R[K],ue=Array.from(fe);Q[K]=ue.map(se=>({label:se,value:se}))}k.value=Q}};t.watch(()=>[e.isReverse,r.value,s.value],()=>{const M=t.unref(r),O=t.unref(s);if(S(O),e.isReverse){const{columns:j,dataSource:G}=x(Ae.cloneDeep(M),Ae.cloneDeep(O));d.value=j,m.value=G}else d.value=M,m.value=O},{immediate:!0});const x=(M,O)=>{const j=M[0],G=[{title:j.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Q=0;Q<O.length;Q++){const K=O[Q],fe="col"+(Q+1);G.push({title:K[j.dataIndex],dataIndex:fe,key:fe,align:"center"})}const R=[];for(let Q=1;Q<M.length;Q++){const K=M[Q],fe={col0:K.title};for(let ue=0;ue<O.length;ue++){const se=O[ue];fe[`col${ue+1}`]=se[K.dataIndex]}R.push(fe)}return{columns:G,dataSource:R}},I=t.ref(""),A=Ce(e),N=t.ref(!1),u=async(M=!0,O={})=>{var j;try{M&&(N.value=!0),t.unref(I)&&(O.orderCondition=t.unref(I)),e.paginationShow&&(O={pageNum:t.unref(h),pageSize:t.unref(w),layer:"1",...O});const G=await A(O),{rows:R=[],total:Q=0}=((j=G==null?void 0:G.data)==null?void 0:j.data)||{};b.value=Q,Array.isArray(R)&&(s.value=R)}catch(G){console.error(G)}finally{N.value=!1}},T=({current:M},O,j)=>{if(h.value=M,j&&Object.keys(j).length>0){const{field:G,order:R}=j,K={ascend:"asc",descend:"desc"}[R];G!=null&&K!=null&&(I.value=G+" "+K,h.value=1)}v(!1)},E=t.computed(()=>{const M=e.simple,O=[e.paginationPosition];return e.paginationShow&&{simple:M,position:O,total:t.unref(b),current:t.unref(h),pageSize:t.unref(w),showSizeChanger:!1}}),B=M=>+M==1?"是":+M==0?"否":M,V=(M,O)=>O==null||O===""?M:{money:St,percentage:tt,contrast:tt,boolean:B}[O](M)||"",Y=(M,O)=>{const j=parseFloat(M+"");if(O!=="contrast")return"";switch(!0){case j>=0:return"goUp";case j<0:return"goDown"}},D=le(e),{getGlobalModel:L,setGlobalModel:$}=t.inject(me,{getGlobalModel:M=>{},setGlobalModel:(M,O)=>{}}),P=(M=[],O=[])=>{const j=M.map(G=>({title:G,dataIndex:G,key:G}));r.value=y(j),s.value=O},F=Ze(e),_=async()=>{var M,O,j,G;try{N.value=!0;const R=await F();P((O=(M=R==null?void 0:R.data)==null?void 0:M.data)==null?void 0:O.columns,(G=(j=R==null?void 0:R.data)==null?void 0:j.data)==null?void 0:G.rows)}catch(R){console.error(R)}finally{N.value=!1}},p=t.ref(-1),C=(M,O)=>({onClick:D("rowClick",()=>{const j=e.id,G=L(j);$(j,{...G,RECORD:M}),p.value=O})}),v=(M=!0)=>{switch(e.dataType){case"request":u(M);break;case"indicator":_();break}},z=()=>{const M=e.id,O=L(M);$(M,{...O,RECORD:""})},q=t.computed(()=>{const M=t.unref(d),O=[];let j=0;for(let R=0;R<M.length;R++){const Q=M[R],{isCalcTotal:K}=Q;e.isUseSeq&&R===0?O.push({...Q,total:"小计"}):K?(O.push({...Q,index:R,total:0}),j++):O.push({...Q})}if(j===0)return[];const G=t.unref(m);for(let R=0;R<O.length;R++){const Q=O[R];let K=0;const{isCalcTotal:fe,dataIndex:ue}=Q;if(fe===!0){for(let se=0;se<G.length;se++){const Se=+G[se][ue];isNaN(Se)||(K=new Kn.Big(K).add(Se).toNumber())}Q.total=K}}return O}),{setRequest:X}=t.inject(ge,{setRequest:M=>{}});typeof X=="function"&&X({id:e.id,requestFn:v,sortNum:e.requestSort}),n({refreshData:v});const H=(M="",O)=>ie(M,O),de=M=>{if(M!=="event")return{self:"_self",blank:"_blank"}[M]},ne=(M,O="")=>{M==="event"&&window.parent.postMessage({type:"openPage",url:O},"*")},ee=(M,O)=>{M(O.filterCheckboxGroupValue)},re=(M,O)=>{M({confirm:!0}),O.filterOptionsInputValue="",O.filterCheckboxGroupValue=[]},Te=()=>{},Sr=M=>{const O=M.dataIndex;if(typeof O=="string"){let j=t.unref(k)[O];const G=t.unref(M.filterOptionsInputValue).trim();return Array.isArray(j)?(j=j.filter(R=>typeof R.label=="string"?R.label.toLowerCase().includes(G.toLowerCase()):!0),j):[]}return[]},Zn=async()=>{var se,Me;const M="EXPORT_KEY";U.message.loading({key:M,content:"正在导出...",duration:0});let O=[];if(e.dataType==="static")O=e.data;else if(e.dataType==="request"){const Se={layer:"1"};t.unref(I)&&(Se.orderCondition=t.unref(I));const Ee=await A(Se);O=((Me=(se=Ee==null?void 0:Ee.data)==null?void 0:se.data)==null?void 0:Me.rows)||{}}const j=t.unref(d),G=[],R=[];j==null||j.forEach(Se=>{G.push(Se.dataIndex),R.push(Se.title)});const Q=O.map(Se=>Ae.pick(Se,G)),K=Ve.utils.book_new(),fe=Ve.utils.aoa_to_sheet([R]),ue=Ve.utils.sheet_add_json(fe,Q,{skipHeader:!0,origin:"A2"});Ve.utils.book_append_sheet(K,ue,"sheet"),Ve.writeFile(K,"表格数据.xlsx"),U.message.success({key:M,content:"导出成功"})},kr=(M,O=2)=>{const j=+M*100;return isNaN(j)||j<=0?0:j>=100?100:j.toFixed(O)};return ce(e,{resetRecord:z,refreshData:v,exportTableData:Zn}),{x:l,y:i,style:o,customRow:C,pagination:E,formatFn:V,contrastClass:Y,tableChange:T,summaryList:q,loading:N,onTouchHrefEvent:ne,handleHref:H,handleHrefTarget:de,useRowIndex:p,tableColumns:d,tableDataSource:m,useFilterOptions:Sr,useSetSelectedKeys:ee,onResetFilter:re,onSearchFilterOptions:Te,exportTableData:Zn,handleProgressText:kr}}}),Fs="",Ds="",rr={key:0,class:"table-tool"},sr=t.createTextVNode("导出数据"),cr=t.createTextVNode(" 搜索 "),dr=t.createTextVNode(" 重置 "),fr={key:0},mr={key:1,class:"action-list"},ur=["href","target","onClick"],hr={key:2,class:"progress-cell"};function gr(e,n,o,a,l,i){const r=t.resolveComponent("a-button"),s=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),m=t.resolveComponent("a-table-summary-cell"),b=t.resolveComponent("a-table-summary-row"),h=t.resolveComponent("a-table-summary"),w=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",rr,[t.createVNode(r,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[sr]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(w,{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:c,selectedKeys:y,setSelectedKeys:k,confirm:S,clearFilters:x})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(s,{value:c.filterOptionsInputValue,"onUpdate:value":I=>c.filterOptionsInputValue=I,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:c.filterCheckboxGroupValue,"onUpdate:value":I=>c.filterCheckboxGroupValue=I,class:"filter-checkbox",options:e.useFilterOptions(c),onChange:I=>e.useSetSelectedKeys(k,c)},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:()=>S()},{default:t.withCtx(()=>[cr]),_:2},1032,["onClick"]),t.createVNode(r,{size:"small",style:{width:"90px"},onClick:t.withModifiers(I=>e.onResetFilter(x,c),["stop"])},{default:t.withCtx(()=>[dr]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:c,index:y,text:k,record:S})=>[c.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",fr,t.toDisplayString(y+1),1)):c.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",mr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(x,I)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:I},[t.createElementVNode("a",{href:e.handleHref(x.href,S),target:e.handleHrefTarget(x.target),style:t.normalizeStyle({color:x.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:A=>e.onTouchHrefEvent(x.target,e.handleHref(x.href,S))},t.toDisplayString(x.title),13,ur)]))),128))])):c.format==="progress"?(t.openBlock(),t.createElementBlock("div",hr,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:c.progressColor||"#1890ff",height:c.progressWidth||"18px",width:`${e.handleProgressText(k,c.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:e.handleProgressText(k)<100?c.progressTextColor||"#333":c.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(k,c.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass([e.contrastClass(k,c.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(c.format!=null?e.formatFn(k,c.format):k),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(h,{key:0},{default:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(c,y)=>(t.openBlock(),t.createBlock(m,{key:y,index:y,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:c.cellAlign||"center",color:c.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(c.total,c.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(c.total,c.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 Vn=Z(W(ir,[["render",gr],["__scopeId","data-v-5f774b48"]])),yo={...oe,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}"},bo=J(yo);xe.use([Pe.CanvasRenderer,Le.MapChart,Le.ScatterChart,ae.VisualMapComponent,ae.TooltipComponent,ae.GraphicComponent]);const yr=t.defineComponent({name:"EcanMap",components:{Echarts:Ne},props:{...bo},setup(e){const n=te(e,["backgroundImage"]),o=t.ref(),a=t.computed(()=>Be(e.geoBackgroundImage)),l=t.computed(()=>Be(e.backgroundImage)),i=t.computed(()=>e.geoBackgroundImage?{image:t.unref(o),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),r=t.computed(()=>{const b=e.symbolImage;return e.symbolImage?"image://"+Be(b):"circle"}),s=t.computed(()=>{const b=e.geoCenter;let h;return typeof b=="string"&&b!==""&&(h=b.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(l)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:h,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(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}]}}),d=t.ref(!1),m=async()=>{var h;const b=e.mapJson;if(b!=null&&b.path){const w=await Ie(((h=window==null?void 0:window.config)==null?void 0:h.uploadPath)+b.path);xe.registerMap("map",(w==null?void 0:w.data)||{})}d.value=!0};return t.watch(()=>e.mapJson,()=>{m()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:d,geoBackgroundImageRef:o,myGeoBackgroundImage:a}}}),$s="",br=["src"];function pr(e,n,o,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,br),[[t.vShow,!1]])],4)}const jn=Z(W(yr,[["render",pr],["__scopeId","data-v-1fb5cdee"]])),qn=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Ln,EcanBorder:On,EcanButton:gn,EcanCheckbox:bn,EcanComboGraph:Bn,EcanCustomGraph:Mn,EcanDatePicker:fn,EcanIframe:Rn,EcanImage:Dn,EcanInput:cn,EcanLine:Tn,EcanList:an,EcanMap:jn,EcanModal:Oe,EcanPageConfig:Yo,EcanPie:An,EcanProportion:rn,EcanProviderConfig:Qo,EcanRangePicker:un,EcanScatter:In,EcanScrollText:en,EcanSelect:Cn,EcanTable:Vn,EcanTabs:Fn,EcanText:Xo,EcanTimeDisplay:on,EcanTreeSelect:kn,barComponentProps:Kt,barEvents:En,barProps:Qt,borderComponentProps:io,borderEvents:zn,borderProps:lo,buttonComponentProps:Dt,buttonEvents:hn,buttonProps:Ft,checkboxComponentProps:$t,checkboxEvents:yn,checkboxProps:Rt,comboGraphComponentProps:ao,comboGraphEvents:Nn,comboGraphProps:no,customGraphComponentProps:oo,customGraphProps:to,datePickerComponentProps:zt,datePickerEvents:dn,datePickerProps:Bt,iframeComponentProps:uo,iframeProps:mo,imageComponentProps:fo,imageProps:co,inputComponentProps:Nt,inputEvents:sn,inputProps:Mt,lineComponentProps:Yt,lineEvents:_n,lineProps:Jt,listComponentProps:Lt,listEvents:nn,listProps:Et,mapComponentProps:bo,mapProps:yo,modalComponentProps:Zt,modalEvents:xn,modalProps:Ht,pageConfig:bt,pageConfigComponentProps:pt,pieComponentProps:Wt,pieEvents:wn,pieProps:Ut,proportionComponentProps:It,proportionEvents:ln,proportionProps:vt,providerConfig:kt,providerConfigComponentProps:wt,rangePickerComponentProps:Pt,rangePickerEvents:mn,rangePickerProps:Ot,scatterComponentProps:eo,scatterEvents:vn,scatterProps:Xt,selectComponentProps:jt,selectEvents:pn,selectProps:Vt,tableComponentProps:go,tableEvents:$n,tableProps:ho,tabsComponentProps:so,tabsEvents:Pn,tabsProps:ro,textComponentProps:At,textEvents:Ko,textProps:xt,timeDisplayComponentProps:Tt,timeDisplayEvents:tn,timeDisplayProps:_t,treeSelectComponentProps:Gt,treeSelectEvents:Sn,treeSelectProps:qt},Symbol.toStringTag,{value:"Module"})),Cr={install:e=>{Object.keys(qn).forEach(n=>{const o=qn[n];o.install&&e.use(o)})}};g.EcanBar=Ln,g.EcanBorder=On,g.EcanButton=gn,g.EcanCheckbox=bn,g.EcanComboGraph=Bn,g.EcanCustomGraph=Mn,g.EcanDatePicker=fn,g.EcanIframe=Rn,g.EcanImage=Dn,g.EcanInput=cn,g.EcanLine=Tn,g.EcanList=an,g.EcanMap=jn,g.EcanModal=Oe,g.EcanPageConfig=Yo,g.EcanPie=An,g.EcanProportion=rn,g.EcanProviderConfig=Qo,g.EcanRangePicker=un,g.EcanScatter=In,g.EcanScrollText=en,g.EcanSelect=Cn,g.EcanTable=Vn,g.EcanTabs=Fn,g.EcanText=Xo,g.EcanTimeDisplay=on,g.EcanTreeSelect=kn,g.barComponentProps=Kt,g.barEvents=En,g.barProps=Qt,g.borderComponentProps=io,g.borderEvents=zn,g.borderProps=lo,g.buttonComponentProps=Dt,g.buttonEvents=hn,g.buttonProps=Ft,g.checkboxComponentProps=$t,g.checkboxEvents=yn,g.checkboxProps=Rt,g.comboGraphComponentProps=ao,g.comboGraphEvents=Nn,g.comboGraphProps=no,g.customGraphComponentProps=oo,g.customGraphProps=to,g.datePickerComponentProps=zt,g.datePickerEvents=dn,g.datePickerProps=Bt,g.default=Cr,g.iframeComponentProps=uo,g.iframeProps=mo,g.imageComponentProps=fo,g.imageProps=co,g.inputComponentProps=Nt,g.inputEvents=sn,g.inputProps=Mt,g.lineComponentProps=Yt,g.lineEvents=_n,g.lineProps=Jt,g.listComponentProps=Lt,g.listEvents=nn,g.listProps=Et,g.mapComponentProps=bo,g.mapProps=yo,g.modalComponentProps=Zt,g.modalEvents=xn,g.modalProps=Ht,g.pageConfig=bt,g.pageConfigComponentProps=pt,g.pieComponentProps=Wt,g.pieEvents=wn,g.pieProps=Ut,g.proportionComponentProps=It,g.proportionEvents=ln,g.proportionProps=vt,g.providerConfig=kt,g.providerConfigComponentProps=wt,g.rangePickerComponentProps=Pt,g.rangePickerEvents=mn,g.rangePickerProps=Ot,g.scatterComponentProps=eo,g.scatterEvents=vn,g.scatterProps=Xt,g.selectComponentProps=jt,g.selectEvents=pn,g.selectProps=Vt,g.tableComponentProps=go,g.tableEvents=$n,g.tableProps=ho,g.tabsComponentProps=so,g.tabsEvents=Pn,g.tabsProps=ro,g.textComponentProps=At,g.textEvents=Ko,g.textProps=xt,g.timeDisplayComponentProps=Tt,g.timeDisplayEvents=tn,g.timeDisplayProps=_t,g.treeSelectComponentProps=Gt,g.treeSelectEvents=Sn,g.treeSelectProps=qt,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
59
+ `),St=(e,n=2)=>{const o=parseFloat(e+"");return isNaN(o)?e:o.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},kl=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},tt=(e,n=2)=>{const o=e+"";if(o.includes("%"))return e;const a=parseFloat(o);return isNaN(a)?e:`${(a*100).toFixed(n)}%`},ot=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,nt=(e,n)=>{const o={dayjs:be,...n};let a="";const l=[];for(const s in o)a+=`${s},`,l.push(o[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},ie=(e="",{textData:n,codeData:o}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let d=0;d<s.length;d++){const m=s[d];let b=m.slice(1,-1).trim();const h=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,w=b.match(h);for(let f=0;f<w.length;f++){const c=w[f],y=r[c];y!=null&&(b=b.replace(c,y))}(/\(.*\)/g.test(b)||/[+/\\*]/g.test(b))&&(b=nt(b,o)),e=e.replace(m,b)}return a&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),l&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},Ce=(e,n=()=>{})=>{const{requestUrl:o,requestMethod:a,requestHeaders:l,requestParams:i,requestInterval:r,isOpenRequestTimer:s}=e,{contextRequestUrl:d,touchEventId:m}=t.inject(he,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:b}=t.inject(me,{getGlobalModel:c=>{}}),h=ie(o),w=async(c={})=>{if(!h||!a||!l)return;let y={};i.forEach(A=>{const{key:N,value:u}=A;if(typeof u=="object"&&u!=null&&u.id){let T={};const{id:E,prop:B,propKey:V,operate:Y}=u;E==="THIS"?T=b(t.unref(m))||{}:T=b(E)||{};const D=t.unref(T[B]);let L=null;if(["date","range"].some(P=>ot(T==null?void 0:T.type,P))){const{value:P,type:F,mode:_}=Y||{};if(P&&F&&_)switch(F){case"add":L=t.unref(D).add(P,_);break;case"minus":L=t.unref(D).subtract(P,_);break}L==null&&(L=t.unref(D)),L=(L==null?void 0:L.format((V==null?void 0:V.trim())||T.format))||""}else Object.prototype.toString.call(D)==="[object Object]"?V?L=D[V]:L=B?D[B]:D:ot(T==null?void 0:T.type,"select")&&t.unref(D)&&B&&Array.isArray(t.unref(D))?L=t.unref(D).map(P=>Object.prototype.hasOwnProperty.call(P,B)?P[B]:P):L=D;y[N]=L}else typeof u=="string"&&(y[N]=ie(u))}),y={...window.config.requestParams,...c,...y};let k="";const S=Object.keys(y),x=S.length-1,I=S.length;S.forEach((A,N)=>{let u=y[A];Object.prototype.toString.call(u)==="[object Object]"&&(u=JSON.stringify(u)),N===0?I!==1?k+=`?${A}=${u}&`:k+=`?${A}=${u}`:N===x?k+=`${A}=${u}`:k+=`${A}=${u}&`});try{const A=["get","head"].includes(a);let N=A?h+k:h;y.dataSqlId&&!N.includes("dataSqlId")&&(N+=`${N.includes("?")?"&":"?"}dataSqlId=${y.dataSqlId}`);const u=await Ie({baseURL:t.unref(d)||"",url:N,method:a,headers:l,data:A?{}:y});return n(u),u}catch(A){console.error(A)}},f=s&&setInterval(w,r*1e3);return t.onUnmounted(()=>{clearInterval(f)}),w},$e=(e=[],n)=>{let{name:o="name",types:a=[]}=n||{};o=(o==null?void 0:o.trim())||o;const l=new Set,i=new Map,r=e.length,s=a.length;if(r===1){const b=[];for(let w=0;w<s;w++){const f=a[w],{label:c,value:y}=f,k={...e[0],value:e[0][y]};l.add(c),b.push(k)}const h=e[0][o]||"";i.set(h,b)}else for(let b=0;b<r;b++){const h=e[b],w=h[o];l.add(w);for(let f=0;f<s;f++){const c=a[f],{label:y,value:k}=c,S={...h,value:h[k]};if(i.has(y)){const x=i.get(y);x.push(S),i.set(y,x)}else i.set(y,[S])}}const d=Array.from(l),m=[];for(const[b,h]of i)m.push({name:b,data:h});return{dimensions:d,dataset:m}},Be=(e,n=!1)=>{var a;if(!e)return e;let o="";return e!=null&&e.includes("://")?o=e:o=((a=window==null?void 0:window.config)==null?void 0:a.uploadPath)+e,n&&(o=`url(${o})`),o},Jo=(e,n)=>{const o=`${Ho}/preview?pageId=${n}`,a=`${Ho}/${n}`;return e==="preview"?o:a},ze=(e,n)=>{var l;if(e==null)return n;const o=e.match(/\{.*\}/g);if(o==null||o.length===0)return n;const a=o.length;for(let i=0;i<a;i++){const r=o[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,n);try{let d=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(d=nt(s)),e=e.replace(r,d)}catch{e=e.replace(r,s)}}return e},Ze=(e={})=>{const{requestToken:n}=t.inject(Go,{requestToken:()=>{}});e.dataType==="indicator"&&n();const o=(r={})=>{const{label:s,name:d,location:m,show:b,indexCode:h}=r;return{label:s,columnName:d,location:m,show:b,calcType:"COLUMN",hrpIndexCode:h}},a=(r={})=>{const{label:s,name:d,location:m,show:b,indexCode:h,calcType:w="COLUMN",builtInFormula:f,builtInValueSource:c,builtInCalcWay:y,formula:k,conditions:S}=r;return{label:s,columnName:d,location:m,show:b,calcType:w,hrpIndexCode:h,aggregate:"SUM",builtInFormula:f,builtInValueSource:c,builtInCalcWay:y,formula:k,conditions:S}},{getGlobalModel:l}=t.inject(me,{getGlobalModel:r=>{}}),i=(r=[])=>{var m;const s=r.length;console.log("controlList",r);const d=[];for(let b=0;b<s;b++){const h=r[b],{id:w,conditionLabel:f,conditionKey:c,conditionValueType:y}=h,k={rule:"NONE",label:f,fieldName:c,fieldValue:"2020-02",dateFormat:"YYYY-MM",valueType:y},S=l(w)||{};if(console.log("model",S),ot(S.type,"date")){const{value:x,format:I}=S||{};k.fieldValue=(m=t.unref(x))==null?void 0:m.format(I),k.dateFormat=I}d.push(k)}return d};return async()=>{var D;const{graphicConfig:r,type:s}=e;let{source:d,dataViewId:m,plugin:b="1",layer:h,chartType:w,classificationList:f=[],seriesList:c=[],leftAxisList:y=[],rightAxisList:k=[],queryColumnList:S=[],indicators:x=[],controlList:I=[],dataSourceId:A,idxLibMode:N,preview:u=!1}=r||{};h==null&&(ot(s,"table")?h="1":h="2");let T;if(Array.isArray(f)&&f.length>0){const L=f.length;for(let $=0;$<L;$++){const P=f[$]||{},{label:F="",name:_="",show:p=!1,sort:C,customGroup:v,conditions:z}=P;if(p||L===1){T={label:F,columnName:_,show:p,sort:C,customGroup:v,conditions:z};break}}}let E;if(Array.isArray(c)&&c.length>0){const L=c.length;for(let $=0;$<L;$++){const P=c[$]||{},{label:F="",name:_="",show:p=!1,sort:C,customGroup:v,conditions:z}=P;if(p||L===1){E={label:F,columnName:_,show:p,sort:C,customGroup:v,conditions:z};break}}}const B=[];S==null||S.forEach(L=>{B.push(o(L))});const V=[];if(y==null||y.forEach(L=>{L.location="LEFT",V.push(a(L))}),k==null||k.forEach(L=>{L.location="RIGHT",V.push(a(L))}),x==null||x.forEach(L=>{L.location="LEFT",V.push(a(L))}),h==="1"&&B.length===0)return;if(h==="2"&&V.length===0)return;const Y=i(I);try{return await Ie.post(`${Wo}/diagram`,{source:d,dataViewId:m,plugin:b,layer:h,chartType:w,classification:T,series:E,indicatorList:V,queryColumns:B,pageFlag:!0,sqlConditions:Y,dataSourceId:A,idxLibMode:N,preview:u},{headers:{Authentication:(D=window==null?void 0:window.config)==null?void 0:D.indicatorToken,operateContext:"ygt"}})}catch(L){console.error(L)}}},wl=()=>{const n=window.location.search.slice(1).split("&"),o=n.length,a={};for(let l=0;l<o;l++){const i=n[l];if(i==null||i==="")continue;const r=i.split("=");if(Array.isArray(r)){const s=r[0];a[s]=r[1]}}window.config.requestParams={...window.config.requestParams,...a},window.config={...window.config,...a}},xl=t.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pt},setup(e){const n=t.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:Be(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),o=t.ref(0),a=t.ref(0),l=t.ref(0),i=t.ref(0),r=t.ref(!1),s=t.ref();let d;const m=()=>new Promise(y=>{t.nextTick(()=>{e.width&&e.height?(o.value=parseFloat(e.width),a.value=parseFloat(e.height)):(o.value=s.value.clientWidth,a.value=s.value.clientHeight),(!l.value||!i.value)&&(l.value=window.screen.width,i.value=window.screen.height),y()})}),b=()=>{o.value&&a.value?(s.value.style.width=`${o.value}px`,s.value.style.height=`${a.value}px`):(s.value.style.width=`${l.value}px`,s.value.style.height=`${i.value}px`)},h=()=>{const y=document.body.clientWidth,k=document.body.clientHeight,S=o.value||l.value,x=a.value||i.value,I=y/S,A=k/x;s.value&&(s.value.style.transform=`scale(${I}, ${A})`)},w=Ae.debounce(async()=>{await m(),h()},100),f=()=>{const y=window.MutationObserver;d=new y(w),d.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},c=()=>{d&&(d.disconnect(),d.takeRecords(),d=null)};return t.onMounted(async()=>{r.value=!1,await m(),b(),h(),window.addEventListener("resize",w),f(),r.value=!0}),t.onUnmounted(()=>{window.removeEventListener("resize",w),c()}),{style:n,container:s,ready:r}}}),Pr="",Al={id:"container",ref:"container"};function _l(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",Al,[e.ready?(t.openBlock(),t.createElementBlock("div",{key:0,class:"page-config",style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],512)}const Yo=Z(W(xl,[["render",_l],["__scopeId","data-v-242d350e"]])),kt={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},wt=J(kt),Tl=t.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...wt},setup(e,{expose:n}){wl();const o=t.ref(),a=()=>{o.value.setAttribute("datav-theme",e.theme)};t.watch(()=>e.theme,()=>{a()}),t.onMounted(()=>{a()});const l=t.computed(()=>ie(e.contextRequestUrl)),i=t.computed(()=>e.pageMode),r=t.computed(()=>e.theme),s=t.ref("");t.provide(he,{contextRequestUrl:l,pageMode:i,theme:r,touchEventId:s});const d=new Map;console.log("globalModel",d);const m=F=>d.get(F),b=(F,_)=>{d.set(F,_)};t.provide(me,{getGlobalModel:m,setGlobalModel:b});const h=[],w=()=>{h.pop()},f=F=>{h.push(F)},c=new Map,y=F=>c.get(F),k=(F,_)=>{c.set(F,_)};t.provide(Uo,{popUseModalIds:w,pushUseModalIds:f,getModalModel:y,setModalModel:k});const S=Yn(),x=new Set,I=(F,_)=>{x.add(F),S.on(F,p=>typeof _[p]=="function"&&_[p]()),t.onBeforeUnmount(()=>{A(F)})},A=F=>{x.delete(F),S.off(F)},N=(F,_)=>{if(F==="PAGE"){const p=h.length;let C=[];if(p===0)C=[...x];else{const v=h[p-1];C=[...y(v)]}C.forEach(v=>{S.emit(v,_)})}else S.emit(F,_)};t.provide(Ct,{onEvent:I,offEvent:A,emitEvent:N});const u=t.ref(0),T=()=>{u.value=t.unref(u)+1};t.provide(Go,{requestToken:T});const E=new Map,B=new Map,V=({requestFn:F=()=>{},sortNum:_=0,id:p=""})=>{if(E.has(_)){const C=E.get(_);C==null||C.push(F)}else E.set(_,[F]);B.set(p,F)},Y=F=>new Promise((_,p)=>{const C=F.map(v=>v());Promise.all(C).then(v=>{_(v)}).catch(v=>{p(v)})}),D=async()=>{var p;const F=await So.get(`${Wo}/user/anonymous?username=admin&businessOfficeId=350421`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:"ygt",Authentication:""}}),{token:_}=((p=F.data)==null?void 0:p.data)||{};window.config.indicatorToken=_},L=F=>new Promise(async(_,p)=>{if(F){if(typeof F=="string"){const C=B.get(F);if(typeof C=="function"){const v=Ie.interceptors.response.use(z=>(_(z),z),z=>(p(z),Promise.reject(z)));C(),Ie.interceptors.response.eject(v)}}}else{const C=Array.from(E);C.sort((z,q)=>q[0]-z[0]);const v=C.length;try{e.pageMode!=="design"&&t.unref(u)>0&&await D();for(let z=0;z<v;z++){const q=C[z][1];await Y(q)}}catch(z){console.error(z)}finally{E.clear(),_(null)}}});t.provide(ge,{setRequest:V,touchRequest:L});const $=()=>{S.emit(We)};t.provide(We,{emitRefreshPage:$});const P=F=>{S.on(We,()=>F()),t.onMounted(()=>{S.off(We)})};return t.onBeforeUnmount(()=>{E==null||E.clear(),B==null||B.clear()}),n({touchRequest:L,getGlobalModel:m,onRefreshPage:P}),{providerConfig:o}}}),El={id:"ProviderConfig",ref:"providerConfig"};function Ll(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",El,[t.renderSlot(e.$slots,"default")],512)}const Qo=Z(W(Tl,[["render",Ll]])),xt={...oe,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",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{}},At=J(xt),Ko=["refreshData","click","valueChange"],vl="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=",Il="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Ml=t.defineComponent({name:"EcanText",components:{Skeleton:et},props:{...At},setup(e){const n=te(e),o=t.ref({});t.watch(()=>[e.data,e.dataType],([f,c])=>{c==="static"&&(o.value=f)},{immediate:!0});const a=t.computed(()=>{var k;const f=t.unref(o);let c=e.text;c=c==null?void 0:c.replace(/\n|\\n/g,"<br/>"),c=c==null?void 0:c.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const y=c.match(/\{(.+?)\}/g);if(y==null||y.length===0)return c;for(let S=0;S<y.length;S++){const x=y[S],I=(k=x==null?void 0:x.slice(1,x.length-1))==null?void 0:k.trim();let A=I;const N=I.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let T=0;T<N.length;T++){const E=N[T],B=f[E];B&&(A=I.replace(E,B))}if(/\(.*\)/g.test(A)){const T=nt(A);T!=null&&(A=T)}let u=A;if(u===I&&(u=e.variableDefaultValue),u!=null){const T=e.format;T==="percentage"?(u=+u,isNaN(u)?c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`):u>=0?(u=(u*100).toFixed(2),c=c.replace(x,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${vl}"/>${u}%</span>`)):(u=(u*100).toFixed(2),c=c.replace(x,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Il}"/>${Math.abs(+u)}%</span>`))):e.format==="percent"?(u=+u,isNaN(u)||(u=(u*100).toFixed(2),c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${u}%</span>`))):e.format==="money"?(u=+u,isNaN(u)||(u=St(u),c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${u}</span>`))):T==="thousands"?(u=+u,isNaN(u)||(u=kl(u),c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${u}</span>`))):c=c.replace(x,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${u}</span>`)}}return`<span>${c}</span>`}),{pageMode:l}=t.inject(he,{pageMode:"normal"}),i=Ce(e),r=t.ref(!1),s=async()=>{var f;try{r.value=!0;const c=await i();o.value=((f=c==null?void 0:c.data)==null?void 0:f.data)||{}}catch(c){console.error(c)}finally{r.value=!1}},d=()=>{e.dataType!=="static"&&s()};ce(e,{refreshData:d});const{setRequest:m}=t.inject(ge,{setRequest:({id:f,sortNum:c,requestFn:y})=>{}});m({id:e.id,requestFn:d,sortNum:e.requestSort}),ce(e,{refreshData:d});const b=le(e),h=b("click",()=>{if(!e.linkPage&&!e.href)return;const f=e.linkPage||"",c=Jo(t.unref(l),f),y=e.href;let k=y||c;k=ie(k);const S=e.target;S&&(S!=="event"?window.open(k,"_"+S):window.parent.postMessage({type:"openPage",url:y},"*"))}),w=b("valueChange",()=>{});return t.watch(()=>a.value,(f,c)=>{f!==c&&w()}),{style:n,myText:a,loading:r,click:h}}}),Rr="",Nl=["innerHTML"];function Bl(e,n,o,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:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Nl))}const Xo=Z(W(Ml,[["render",Bl],["__scopeId","data-v-e3658bca"]])),zl=t.defineComponent({name:"EcanScrollText",setup(){return{text:t.ref("基础文本")}}}),Vr="",Ol={class:"red"};function Pl(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",Ol,t.toDisplayString(e.text),1)}const en=Z(W(zl,[["render",Pl],["__scopeId","data-v-4dd9c03e"]])),_t={...oe,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},Tt=J(_t),tn=["timeChange"],Fl=t.defineComponent({name:"EcanTimeDisplay",props:{...Tt},setup(e){const n=te(e),o=()=>{const{format:m,operate:b}=e;let h=be();if(b){const{type:w,value:f,mode:c}=b;switch(w){case"add":h=h.add(f,c);break;case"minus":h=h.subtract(f,c)}}return h.format(m)},a=t.ref();t.watch(()=>[e.operate,e.format],()=>{a.value=o()},{immediate:!0,deep:!0}),t.watch(()=>e.updateInterval,()=>{d()},{deep:!0});let l=null;const i=()=>{clearInterval(l),l=null},s=le(e)("timeChange",()=>{}),d=()=>{l&&i();let m=1e3;const{value:b,mode:h}=e.updateInterval||{};b&&(m=m*b);const w={second:1,minute:60,hour:60*60,day:24*60*60};h&&(m=m*w[h]),l=setInterval(()=>{a.value=o(),s()},m)};return ce(e,{timeChange:s}),t.onMounted(()=>{d()}),t.onUnmounted(()=>{i()}),{style:n,time:a}}}),qr="";function Dl(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"time-display",style:t.normalizeStyle(e.style)},t.toDisplayString(e.time),5)}const on=Z(W(Fl,[["render",Dl],["__scopeId","data-v-b628fca2"]])),Et={...oe,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"}]},Lt=J(Et),nn=["refreshData","click"],Rl=t.defineComponent({name:"EcanList",components:{Skeleton:et},props:{...Lt},setup(e){const n=t.ref(e.data),o=te(e,["backgroundColor"]),a=t.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),l=(f,c)=>c==null||c===""?f:{money:St,percentage:tt,contrast:tt}[c](f)||"",i=(f,c)=>{const y=parseFloat(f+"");if(c!=="contrast")return"";switch(!0){case y>=0:return"goUp";case y<0:return"goDown"}},r=Ce(e),s=t.ref(!1),d=async()=>{var f;if(e.dataType==="request")try{s.value=!0;const c=await r();n.value=((f=c==null?void 0:c.data)==null?void 0:f.data.rows)||[]}catch(c){console.error(c)}finally{s.value=!1}},m=()=>{d()},h=le(e)("click",()=>{});ce(e,{refreshData:m});const{setRequest:w}=t.inject(ge,{setRequest:({id:f,sortNum:c,requestFn:y})=>{}});return w({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:o,formatFn:l,columnStyle:a,contrastClass:i,dataSource:n,loading:s,click:h}}}),Ur="",Wr="",$l=e=>(t.pushScopeId("data-v-7aa27677"),e=e(),t.popScopeId(),e),Vl={key:0,class:"title"},jl={key:0,class:"ranking"},ql={key:1,class:"ecan-list-content"},Gl={key:0,class:"ranking"},Ul=$l(()=>t.createElementVNode("div",{class:"icon"},null,-1)),Wl={class:"sort"},Hl={key:2,class:"empty"};function Zl(e,n,o,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",Vl,[(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",jl)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:"column",key:d.key||m,style:t.normalizeStyle({color:d.titleColor,...e.columnStyle})},t.toDisplayString(d.title),5))),128))],4))),128))])):t.createCommentVNode("",!0),e.dataSource.length>0?(t.openBlock(),t.createElementBlock("div",ql,[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,d)=>(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:(d+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:s.id||d,onClick:n[0]||(n[0]=(...m)=>e.click&&e.click(...m))},[e.useRanking?(t.openBlock(),t.createElementBlock("div",Gl,[Ul,t.createElementVNode("div",Wl," Top "+t.toDisplayString(d+1),1)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,m=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["column",e.contrastClass(s[m.key],m.format)]),key:m.key,style:t.normalizeStyle({fontSize:m.fontSize,color:e.contrastClass(s[m.key],m.format)===""?m.color:"",fontWeight:m.fontWeight,...e.columnStyle})},t.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(s[m.key],m.format)),7))),128))],4))),128))])):(t.openBlock(),t.createElementBlock("div",Hl," 暂无数据 "))]),_:1},8,["loading"])],4)}const an=Z(W(Rl,[["render",Zl],["__scopeId","data-v-7aa27677"]])),vt={...oe,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0"},It=J(vt),ln=["refreshData","click"],Jl=t.defineComponent({name:"EcanProportion",components:{AProgress:U.Progress,Skeleton:et},props:{...It},setup(e){const{pageMode:n}=t.inject(he,{pageMode:"normal"}),o=te(e),a=t.computed(()=>{const c=e.width;return parseFloat(c)}),l=t.ref({});t.watch(()=>e.data,()=>{(e.dataType==="static"||t.unref(n)==="design")&&(l.value=e.data)},{immediate:!0,deep:!0});const i=t.computed(()=>{const c=t.unref(l),y=+e.variableDefaultValue;if(c==null)return isNaN(y)?0:y;const k=e.text.match(/\{.+\}/g)||[];let S;const x=new Set(Object.keys(c));for(let I=0;I<k.length;I++){const A=k[I],N=A.slice(1,A.length-1);if(x.has(N)){S=c[N];break}}return typeof S=="number"?S=S*100:typeof S=="string"&&!isNaN(+S)?S=+S*100:isNaN(y)?S=0:S=y*100,e.decimalFormat&&(S=+S.toFixed(2)),S}),r=t.computed(()=>{var x;let c=e.text;if(c==="")return t.unref(i);const y=e.variableDefaultValue,k=t.unref(l),S=c.match(/\{.+\}/g)||[];for(let I=0;I<S.length;I++){const A=S[I];let N=A.slice(1,A.length-1);const u=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,T=A.match(u);for(let B=0;B<(T==null?void 0:T.length);B++){const V=(x=T[B])==null?void 0:x.trim();k[V]!=null&&(N=N.replace(V,k[V]))}let E=N;try{/\(.*\)/g.test(N)&&(E=nt(N))}catch(B){console.error(B)}typeof+E=="number"&&!isNaN(+E)?(E=+E*100,e.decimalFormat&&(E=E.toFixed(2))):E=y,c=c.replace(A,E+"")}return c}),s=Ce(e),d=t.ref(!1),m=async()=>{var c;if(e.dataType==="request")try{d.value=!0;const y=await s();l.value=((c=y==null?void 0:y.data)==null?void 0:c.data)||{}}catch(y){console.error(y)}finally{d.value=!1}};ce(e,{refreshData:()=>{m()}});const w=le(e)("click",()=>{}),{setRequest:f}=t.inject(ge,{setRequest:({id:c,sortNum:y,requestFn:k})=>{}});return f({id:e.id,requestFn:m,sortNum:e.requestSort}),{style:o,myWidth:a,text:r,myValue:i,loading:d,click:w}}}),Zr="";function Yl(e,n,o,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 rn=Z(W(Jl,[["render",Yl],["__scopeId","data-v-00244f8a"]])),Mt={...oe,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},Nt=J(Mt),sn=["inputChange","inputBlur"],Ql=t.defineComponent({name:"EcanInput",components:{AInput:U.Input},props:{...Nt},setup(e){const n=te(e),o=t.ref("");t.watch(()=>e.value,m=>{o.value=m},{immediate:!0});const{getGlobalModel:a,setGlobalModel:l}=t.inject(me,{getGlobalModel:m=>{},setGlobalModel:(m,b)=>{}});l(e.id,{type:e.type,value:o});const i=()=>{const m=a(e.id);l(e.id,{...m,RECORD:o})},r=le(e),s=Ae.debounce(r("inputChange",()=>{i()}),300),d=r("inputBlur",()=>{});return{style:n,myValue:o,inputBlur:d,inputChange:s}}}),Yr="";function Kl(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const cn=Z(W(Ql,[["render",Kl]])),Bt={...oe,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},zt=J(Bt),dn=["dateChange"],Xl=t.defineComponent({name:"EcanDatePicker",props:{...zt},components:{ADatePicker:U.DatePicker},setup(e){const n=te(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref(null);t.watch(()=>[e.value,e.useCurrentTime,e.operate],([d,m,b])=>{let h=null;if(d?h=be(ie(d)):m&&(h=be()),b&&h){const{type:w,value:f,mode:c}=b;switch(w){case"add":h=h.add(f,c);break;case"minus":h=h.subtract(f,c)}}a.value=h},{deep:!0,immediate:!0});const{setGlobalModel:l}=t.inject(me,{setGlobalModel:(d,m)=>{}});l(e.id,{type:e.type,format:e.format,value:a});const r=le(e)("dateChange",()=>{}),s=()=>{t.unref(a)&&r()};return ce(e,{dateChange:r}),{style:n,getPopupContainer:o,myValue:a,locale:ko,change:s}}}),Kr="";function ei(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const fn=Z(W(Xl,[["render",ei]])),Ot={...oe,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:""},Pt=J(Ot),mn=["dateChange"],ti=t.defineComponent({name:"EcanRangePicker",components:{ARangePicker:U.RangePicker},props:{...Pt},setup(e){const n=te(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=t.ref([null,null]);t.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([k,S,x,I,A,N])=>{let u=null,T=null;if(x&&(u=be().subtract(I,A),T=be()),k&&(u=be(ie(k))),S&&(T=be(ie(S))),N){const{type:E,value:B,mode:V}=N;switch(E){case"add":u=u&&u.add(B,V),T=T&&T.add(B,V);break;case"minus":u=u&&u.subtract(B,V),T=T&&T.subtract(B,V)}}a.value=[u,T]},{immediate:!0});let l=t.unref(a)[0],i=t.unref(a)[1];const r=k=>{Array.isArray(k)?(l=k[0],i=k[1]):(l=null,i=null)},s=k=>{let S=!1,{limitStartTime:x,limitEndTime:I}=e;const A={startTime:`${l||""}`,endTime:`${i||""}`};return x=ie(x,{codeData:A}),I=ie(I,{codeData:A}),x&&I?S=!(be(x)<k&&k<be(I)):x?S=be(x)>k:I&&(S=be(I)<k),S},{setGlobalModel:d}=t.inject(me,{setGlobalModel:(k,S)=>{}}),m=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[0]:null),b=t.computed(()=>Array.isArray(t.unref(a))?t.unref(a)[1]:null);d(e.id,{type:e.type,format:e.format,startTime:m,endTime:b});const h=le(e);let w=!1;const f=h("dateChange",()=>{}),c=k=>{const S=t.unref(a),x=S&&S[0]&&S[1];k===!1&&w===!0&&x&&(f(),w=!1)},y=()=>{w=!0};return ce(e,{dateChange:f}),{style:n,getPopupContainer:o,locale:ko,dateChange:f,myValue:a,disabledDate:s,calendarChange:r,openChange:c,change:y}}}),es="",ts="";function oi(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const un=Z(W(ti,[["render",oi],["__scopeId","data-v-5a46a4a9"]])),Ft={...oe,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},Dt=J(Ft),hn=["click"],ni=t.defineComponent({name:"EcanButton",components:{AButton:U.Button},props:{...Dt},setup(e){const n=te(e),a=le(e)("click",()=>{const s=t.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),l=t.computed(()=>ie(e.text)),i=t.computed(()=>ie(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:n,click:a,myText:l,myHref:i,myTarget:r}}}),ns="";function ai(e,n,o,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 gn=Z(W(ni,[["render",ai]])),Rt={...oe,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"}]},$t=J(Rt),yn=["checkboxChange"],li=t.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:U.CheckboxGroup},props:{...$t},setup(e){const n=te(e),o=t.ref([]),a=t.ref([]),l=w=>{const f=e.value;let c=[];w.forEach(y=>{y.checked&&c.push(y.value)}),typeof f=="string"&&f!==""?c=c.concat(f.split(",")):Array.isArray(f)&&(c=c.concat(f)),o.value=w,a.value=c};t.watch(()=>[e.data,e.value],([w])=>{l(w)},{immediate:!0,deep:!0});const i=Ce(e),r=async()=>{var c,y;if(e.dataType!=="request")return;const w=await i(),f=((y=(c=w==null?void 0:w.data)==null?void 0:c.data)==null?void 0:y.rows)||[];l(f)},{getGlobalModel:s,setGlobalModel:d}=t.inject(me,{getGlobalModel:w=>{},setGlobalModel:(w,f)=>{}});d(e.id,{type:e.type,value:a});const b=le(e)("checkboxChange",()=>{const w=s(e.id);d(e.id,{...w,RECORD:a})}),{setRequest:h}=t.inject(ge,{setRequest:({id:w,sortNum:f,requestFn:c})=>{}});return h({id:e.id,requestFn:r,sortNum:e.requestSort}),{myOption:o,style:n,myValue:a,checkboxChange:b}}}),ls="";function ii(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const bn=Z(W(li,[["render",ii]])),Vt={...oe,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1},jt=J(Vt),pn=["selectChange","refreshData"],ri=t.defineComponent({name:"EcanSelect",components:{ASelect:U.Select},props:{...jt},setup(e){const n=te(e),o=()=>document.getElementById("ProviderConfig")||document.body,a=Ce(e),l=t.ref(e.data||[]),i=t.ref();t.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:k,selectFirstOption:S,value:x}=e;k==="multiple"||k==="tags"||k==="combobox"?x?i.value=x.split(","):S&&(i.value=[t.unref(l)[0]]):x?i.value=x:S&&(i.value=t.unref(l)[0])},{immediate:!0});const r=e.dataFieldNames,s=(k,S)=>{const x=r.label,I=r.value;let A;const N=S[x],u=S[I];return N!=null?A=N:u!=null&&(A=u),(A==null?void 0:A.toLowerCase().indexOf(k==null?void 0:k.toLowerCase()))>=0},d=k=>{const{label:S,value:x,options:I}=e.dataFieldNames;if(I&&Array.isArray(k))if(k.some(A=>I in A)){const A={},N=[];k.forEach(u=>{A[u[I]]||(A[u[I]]=[]),A[u[I]].push({[S]:u[S],[x]:u[x]})});for(const u in A)N.push({[S]:u,[I]:A[u]});return N}else return k;else if(!I)return k},m=t.ref(!1),b=async()=>{var k,S;if(e.dataType==="request"){m.value=!0;try{const x=await a();if(l.value=d(((S=(k=x==null?void 0:x.data)==null?void 0:k.data)==null?void 0:S.rows)||[]),e.selectFirstOption){console.log(t.unref(l));let I=t.unref(l)[0];if(r.options){const A=I[r.options];A&&A.length&&(I=A[0])}i.value=I[r.value]}}catch(x){console.error(x)}finally{m.value=!1}}},{getGlobalModel:h,setGlobalModel:w}=t.inject(me,{getGlobalModel:k=>{},setGlobalModel:(k,S)=>{}});w(e.id,{type:e.type,value:i});const c=le(e)("selectChange",()=>{const k=e.id,S=h(k);w(k,{...S,RECORD:i})});ce(e,{selectChange:c,refreshData:b});const{setRequest:y}=t.inject(ge,{setRequest:({id:k,sortNum:S,requestFn:x})=>{}});return y({id:e.id,requestFn:b,sortNum:e.requestSort}),{style:n,getPopupContainer:o,myValue:i,selectChange:c,options:l,filterOption:s,loading:m}}}),rs="",ss="";function si(e,n,o,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":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const Cn=Z(W(ri,[["render",si],["__scopeId","data-v-2e86a327"]])),qt={...oe,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Gt=J(qt),Sn=["selectChange","refreshData"],ci={name:"EcanTreeSelect",components:{ATreeSelect:U.TreeSelect},props:{...Gt},setup(e){const n=te(e),o=t.ref(e.data),a=(f,c)=>{const y=e.dataFieldNames,k=y.label,S=y.value;let x;const I=c[k],A=c[S];return I!=null?x=I:A!=null&&(x=A),(x==null?void 0:x.toLowerCase().indexOf(f==null?void 0:f.toLowerCase()))>=0},l=t.ref();t.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:f,value:c,selectFirstOption:y}=e;f?c?l.value=c.split(","):y&&(l.value=[t.unref(o)[0]]):c?l.value=c:y&&(l.value=t.unref(o)[0])},{immediate:!0});const i=t.ref(!1),r=Ce(e),s=async()=>{var f,c;if(e.dataType==="request"){i.value=!0;try{const y=await r();o.value=((c=(f=y==null?void 0:y.data)==null?void 0:f.data)==null?void 0:c.rows)||[];const k=t.unref(o)[0];e.value===""&&k!=null&&(l.value=k[e.dataFieldNames.value])}catch(y){console.error(y)}finally{i.value=!1}}},{getGlobalModel:d,setGlobalModel:m}=t.inject(me,{getGlobalModel:f=>{},setGlobalModel:(f,c)=>{}});m(e.id,{type:e.type,value:l});const h=le(e)("selectChange",()=>{const f=e.id,c=d(f);m(f,{...c,RECORD:l})});ce(e,{selectChange:h,refreshData:s});const{setRequest:w}=t.inject(ge,{setRequest:({id:f,sortNum:c,requestFn:y})=>{}});return w({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:o,filterTreeNode:a,myValue:l,loading:i,selectChange:h}}},ds="",fs="";function di(e,n,o,a,l,i){const r=t.resolveComponent("a-tree-select");return t.openBlock(),t.createElementBlock("div",{class:"ecan-tree-select",style:t.normalizeStyle(a.style)},[t.createVNode(r,{class:"tree-select",value:a.myValue,"onUpdate:value":n[0]||(n[0]=s=>a.myValue=s),allowClear:"",showSearch:"",loading:a.loading,fieldNames:e.dataFieldNames,treeData:a.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:a.filterTreeNode,placeholder:e.placeholder,onChange:a.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const kn=Z(W(ci,[["render",di],["__scopeId","data-v-37236421"]])),Ut={...oe,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,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",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:"当前无说明信息"},Wt=J(Ut),wn=["click","refreshData","resetRecord"],Je=async e=>{var d;const n=await Ie.post(e,{},{responseType:"blob"}),{data:o,headers:a}=n,l=a["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([o]),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(),(d=r.parentNode)==null||d.removeChild(r),window.URL.revokeObjectURL(s)},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),xn=["showModal"],fi=t.defineComponent({name:"EcanModal",components:{AModal:U.Modal,CloseOutlined:sl},props:{...Zt},setup(e,{emit:n}){const o=()=>document.getElementById("ProviderConfig")||document.body,a=t.computed(()=>{const C=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[C]}}),l=e.width,i=e.height,r=e.originalWidth,s=e.originalHeight,d=t.ref("80%"),m=t.ref(0),b=t.ref(),h=t.ref(0),w=t.ref({}),f=te(e),c=t.ref({}),y=t.ref(!1),k=t.ref();let S;const x=()=>{b.value=parseFloat(l)/parseFloat(r);const C=parseFloat(i)/parseFloat(s),v=document.body.offsetWidth,z=document.body.offsetHeight;m.value=v*t.unref(b),h.value=z*C,d.value=`${t.unref(b)*100}%`,w.value={width:`${t.unref(m)}px`,height:`${t.unref(h)}px`},c.value={...t.unref(f),backgroundImage:Be(e.backgroundImage,!0),transform:`scale(${t.unref(m)/parseFloat(l)},${t.unref(h)/parseFloat(i)})`}},I=Ae.debounce(()=>{x()},100),A=()=>{const C=window.MutationObserver;S=new C(I),S.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},N=()=>{S&&(S.disconnect(),S.takeRecords(),S=null)},u=t.ref(!1),{touchRequest:T}=t.inject(ge,{touchRequest:()=>{}}),E=()=>{u.value=!0},B=()=>{n("close"),u.value=!1},V=()=>{B()},Y=()=>{B()},{setModalModel:D,pushUseModalIds:L,popUseModalIds:$}=t.inject(Uo,{pushUseModalIds:C=>{},popUseModalIds:()=>{},setModalModel:(C,v)=>{}}),P=()=>{const C=e.id;let v=[];const z=e.componentList;console.log("componentList",z),Array.isArray(z)&&(v=z.map(q=>q.id),D(C,[...new Set(v)]))};t.watch(()=>u.value,async C=>{C?(y.value=!1,L(e.id),P(),await t.nextTick(()=>{x(),window.addEventListener("resize",I),A(),y.value=!0}),T()):($(),window.removeEventListener("resize",I),N())});const F=t.computed(()=>t.unref(b)>=1),_=t.computed(()=>e.fullModal),p=t.computed(()=>{let C="ecan-modal";return t.unref(F)&&(C+=" ecan-full-width-modal"),t.unref(_)&&(C+=" ecan-full-modal"),C});return ce(e,{showModal:E}),{modalRef:k,containStyle:w,contentStyle:c,getContainer:o,modalStyle:a,modalWith:d,isFullModal:_,style:f,visible:u,showModal:E,onOk:V,onCancel:Y,isFullWidth:F,wrapClassName:p,ready:y}}}),us="",hs="",mi={key:0};function ui(e,n,o,a,l,i){const r=t.resolveComponent("close-outlined"),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),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{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.createElementVNode("div",{class:"header-bar",style:t.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(t.openBlock(),t.createElementBlock("div",{key:0,class:"ant-modal-title",style:t.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},t.toDisplayString(e.title),5)):t.createCommentVNode("",!0),t.createVNode(r,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(t.openBlock(),t.createElementBlock("div",mi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.componentList,(d,m)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(d.type),t.mergeProps({key:d.id+m},d),null,16))),128))])):t.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):t.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const Oe=Z(W(fi,[["render",ui],["__scopeId","data-v-2814b49f"]]));xe.use([Pe.CanvasRenderer,Le.PieChart,ae.TitleComponent,ae.ToolboxComponent,ae.TooltipComponent,ae.LegendComponent]);const hi=t.defineComponent({name:"EcanPie",props:{...Wt},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe},setup(e,{expose:n}){const o=t.ref(!1),a=te(e),l=t.ref([]),i=t.ref(),r=t.computed(()=>{let{data:T=[]}=t.unref(l)[0]||{};if(Array.isArray(e.colors)){const E=e.isUseLabelColors,B=e.colors;T=T.map((V,Y)=>({label:E?{color:B[Y]}:{},...V}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var E;o.value=!0,(E=i.value)==null||E.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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:E=>{const{marker:B,seriesName:V,name:Y,value:D,percent:L,data:$}=E||{};return ie(e.tooltipFormatter,{textData:{marker:B,name:Y,value:D,percent:L,a:V,b:Y,c:D,d:L,...$}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:o.value?Re:e.labelFontSize}},color:e.colors,series:[{data:T,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:o.value?Re:e.labelFontSize,position:e.labelPosition,formatter:Sl(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:{}}}]}}),s=()=>{o.value=!1},{getGlobalModel:d,setGlobalModel:m}=t.inject(me,{getGlobalModel:T=>{},setGlobalModel:(T,E)=>{}}),{pageMode:b}=t.inject(he,{pageMode:"normal"}),h=(T=[],E)=>{const{dataset:B}=He(T,E);l.value=B},w=(T=[],E)=>{const B=He(T,E);l.value=B.dataset};t.watch(()=>e.data,T=>{(e.dataType==="static"||t.unref(b)==="design")&&h(T)},{immediate:!0,deep:!0});const f=t.ref(!1),c=Ce(e),y=async()=>{var T,E;if(e.dataType==="request")try{f.value=!0;const B=await c();h((E=(T=B==null?void 0:B.data)==null?void 0:T.data)==null?void 0:E.rows,e.valueTypeDataFieldNames)}catch(B){console.error(B)}finally{f.value=!1}},S=le(e)("click",T=>{const E=d(e.id);m(e.id,{...E,RECORD:T==null?void 0:T.data})}),x=Ze(e),I=async()=>{var T;try{f.value=!0;const E=await x(),{data:B}=E.data||{};if(B){const{columns:V=[],rows:Y=[]}=((T=E==null?void 0:E.data)==null?void 0:T.data)??{};let D=[];if(V.length>0){const L=V[0],$=V[1];D=Y.map(P=>({name:P[L],value:P[$]}))}w(D)}}catch(E){console.error(E)}finally{f.value=!1}},A=()=>{switch(e.dataType){case"indicator":I();break;case"request":y();break}};ce(e,{resetRecord:()=>{const T=e.id,E=d(T);m(T,{...E,RECORD:""})},refreshData:A,click:S}),n({refreshData:A});const{setRequest:u}=t.inject(ge,{setRequest:T=>{}});return typeof u=="function"&&u({id:e.id,requestFn:A,sortNum:e.requestSort}),{option:r,style:a,click:S,onClose:s,loading:f,ecanModal:i}}}),ys="";function gi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-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(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"])],4)}const An=Z(W(hi,[["render",gi]])),Jt={...oe,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,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},Yt=J(Jt),_n=["click","refreshData","resetRecord"];xe.use([Pe.CanvasRenderer,Le.LineChart,ae.ToolboxComponent,ae.TitleComponent,ae.LegendComponent]);const yi=t.defineComponent({name:"EcanLine",props:{...Yt},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=te(e),i=t.ref([]),r=t.ref([]),s=t.ref(),d=t.computed(()=>a.value?Re:12),m=t.ref({});let b;const h=t.computed(()=>{const L=e.xAxisLabelFormatter,$=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var P;a.value=!0,(P=s.value)==null||P.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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",textStyle:{fontSize:d.value},show:e.tooltipShow,formatter:P=>{var C;const F=P.length;let _="",p=e.tooltipFormatter;b=(C=P[0])==null?void 0:C.data,p===""&&(p="{marker} {a} {c}");for(let v=0;v<F;v++){const{marker:z,seriesName:q,name:X,value:H,data:de}=P[v]||{};v===0&&(_+=`${X}<br/>`),_+=ie(p,{textData:{marker:z,name:X,value:H,a:q,b:X,c:H,...de}},{useNewline:!0,useSpace:!0}),_+="<br/>"}return _}},xAxis:{type:"category",data:t.unref(r).map(P=>{let F={};return P&&typeof P=="object"?F={...P,textStyle:{fontSize:d.value}}:F={value:P,textStyle:{fontSize:d.value}},F}),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(P){return ze(L,P)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:d.value,color:e.yAxisLabelColor,formatter(P){return ze($,P)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:d.value}},series:t.unref(i)}}),w=()=>{a.value=!1},{getGlobalModel:f,setGlobalModel:c}=t.inject(me,{getGlobalModel:L=>{},setGlobalModel:(L,$)=>{}}),{pageMode:y}=t.inject(he,{pageMode:"normal"}),k=(L=[],$=!1)=>{let P;if(e.dataFieldConfigType==="key"){const C=$?e.keyTypeDataFieldNames:null;P=$e(L,C)}else if(e.dataFieldConfigType==="value"){const C=$?e.valueTypeDataFieldNames:null;P=He(L,C)}r.value=P.dimensions;const F=P.dataset,_=[],p=F.length;for(let C=0;C<p;C++)_.push({type:"line",...F[C],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=_},S=(L=[],$,P=!1)=>{const _=$e(L,P?$:null);r.value=_.dimensions;const p=_.dataset,C=[],v=p.length;for(let z=0;z<v;z++)C.push({type:"line",...p[z],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=C};t.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([L])=>{(e.dataType==="static"||t.unref(y)==="design")&&k(L)},{immediate:!0,deep:!0});const x=t.ref(!1),I=Ce(e),A=async()=>{var L,$;if(e.dataType==="request")try{x.value=!0;const P=await I();k(($=(L=P==null?void 0:P.data)==null?void 0:L.data)==null?void 0:$.rows,!0)}catch(P){console.error(P)}finally{x.value=!1}},u=le(e)("click",L=>{const $=f(e.id);c(e.id,{...$,RECORD:e.tooltipShow?b:L.data})}),T=L=>{o.value.chart.containPixel("grid",[L.offsetX,L.offsetY])&&u()};e.tooltipShow?m.value["zr:click"]=T:m.value.click=u;const E=Ze(e),B=async()=>{var L;try{x.value=!0;const $=await E(),{columns:P=[],rows:F=[]}=((L=$==null?void 0:$.data)==null?void 0:L.data)??{};let _;P.length>0&&(_={name:P[0],types:P.slice(1).map(p=>({label:p,value:p}))}),S(F,_,!0)}catch($){console.error($)}finally{x.value=!1}},V=()=>{switch(e.dataType){case"indicator":B();break;case"request":A();break}};ce(e,{refreshData:V,resetRecord:()=>{const L=e.id,$=f(L);c(L,{...$,RECORD:""})},click:u});const{setRequest:D}=t.inject(ge,{setRequest:L=>{}});return typeof D=="function"&&D({id:e.id,requestFn:V,sortNum:e.requestSort}),n({refreshData:V}),{option:h,style:l,click:u,loading:x,onClose:w,ecanModal:s,eventObj:m,echartRef:o}}}),ps="";function bi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal");return t.openBlock(),t.createElementBlock("div",{style:t.normalizeStyle(e.style)},[t.createVNode(s,{spinning:e.loading},{default:t.withCtx(()=>[t.createVNode(r,t.mergeProps({ref:"echartRef",option:e.option,autoresize:""},t.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"])],4)}const Tn=Z(W(yi,[["render",bi]])),Qt={...oe,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:"",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0},Kt=J(Qt),En=["refreshData","click","resetRecord"];xe.use([Pe.CanvasRenderer,Le.BarChart,ae.TitleComponent,ae.LegendComponent,ae.DatasetComponent,ae.ToolboxComponent]);const pi=t.defineComponent({name:"EcanBar",props:{...Kt},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe,AModal:U.Modal},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=t.ref(!1),i=t.ref(null),r=t.ref([]),s=te(e),d=t.ref([]),m=t.ref(),b=t.computed(()=>a.value?Re:12),h=t.computed(()=>{const p=t.unref(d),C=p.length,v=[];for(let z=0;z<C;z++){const q={...p[z],type:"bar",barWidth:e.barWidth};e.isStack&&(q.stack="stack"),q.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},v.push(q)}return v}),w=t.ref([]),f=t.ref(!1),c=t.computed(()=>{const p=e.yAxisLabelFormatter,C=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const v=o.value.chart.getOption(),{xAxis:z}=v||{};z&&z.length&&(r.value=z[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var v;a.value=!0,(v=m.value)==null||v.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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:v=>{const z=v.length;let q="",X=e.tooltipFormatter;X===""&&(X="{marker} {a} {c}");for(let H=0;H<z;H++){const{marker:de,seriesName:ne,name:ee,value:re,data:Te}=v[H]||{};H===0&&(q+=`${ee}<br/>`),q+=ie(X,{textData:{marker:de,name:ee,value:re,a:ne,b:ee,c:re,...Te}},{useNewline:!0,useSpace:!0}),q+="<br/>"}return q},textStyle:{color:e.tooltipTextStyleColor,fontSize:b.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:b.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:t.unref(I),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(v){return ze(C,v)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?t.unref(w):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:b.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(v){return ze(p,v)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},series:t.unref(h)}}),{pageMode:y}=t.inject(he,{pageMode:"normal"}),k=()=>{a.value=!1},S=(p=[],C=!1)=>{let v={};if(e.dataFieldConfigType==="key"){const z=C?e.keyTypeDataFieldNames:null;v=$e(p,z)}else if(e.dataFieldConfigType==="value"){const z=C?e.valueTypeDataFieldNames:null;v=He(p,z)}d.value=v.dataset,w.value=v.dimensions},x=(p=[],C,v=!1)=>{const q=$e(p,v?C:null);d.value=q.dataset,w.value=q.dimensions},I=t.computed(()=>t.unref(w).map(p=>{let C={};return p&&typeof p=="object"?C={...p,textStyle:{fontSize:b.value}}:C={value:p,textStyle:{fontSize:b.value}},C}));t.watch(()=>e.data,p=>{(e.dataType==="static"||t.unref(y)==="design")&&S(p)},{immediate:!0,deep:!0});const A=Ce(e),N=async()=>{var p,C;try{f.value=!0;const v=await A();S((C=(p=v==null?void 0:v.data)==null?void 0:p.data)==null?void 0:C.rows,!0)}catch(v){console.error(v)}finally{f.value=!1}},u=Ze(e),T=async()=>{var p;try{f.value=!0;const C=await u(),{columns:v=[],rows:z=[]}=((p=C==null?void 0:C.data)==null?void 0:p.data)??{};let q;v.length>0&&(q={name:v[0],types:v.slice(1).map(X=>({label:X,value:X}))}),x(z,q,!0)}catch(C){console.error(C)}finally{f.value=!1}},E=()=>{switch(e.dataType){case"indicator":T();break;case"request":N();break}},B=(p,C)=>!!t.unref(r)[C.value].value.includes(p),V=async()=>{l.value=!1;const p=o.value.chart.getOption();for(let C=0;C<7;C++)await Y(p,C)},Y=(p,C)=>new Promise(v=>{setTimeout(()=>{const{series:z,color:q,xAxis:X}=p,H=o.value.chart,{splitArea:de={}}=X[0]||{};z.forEach((ne,ee)=>{const re=ne.data;let Te="";C%2?Te=q[ee]+"a8":Te=q[ee],re[i.value].itemStyle={color:Te}}),C%2?(de.show=!0,de.areaStyle.color=t.unref(r).map((ne,ee)=>ee===i.value?"#ff003b26":"")):de.show=!1,H.setOption({series:z,xAxis:X}),v()},200)});n({refreshData:E});const D=le(e),{getGlobalModel:L,setGlobalModel:$}=t.inject(me,{getGlobalModel:p=>{},setGlobalModel:(p,C)=>{}}),P=D("click",p=>{const C=L(e.id);$(e.id,{...C,RECORD:p.data})}),{setRequest:F}=t.inject(ge,{setRequest:p=>{}});return typeof F=="function"&&F({id:e.id,requestFn:E,sortNum:e.requestSort}),ce(e,{refreshData:E,click:P,resetRecord:()=>{const p=e.id,C=L(p);$(p,{...C,RECORD:""})}}),{option:c,style:s,refreshData:E,click:P,loading:f,onClose:k,ecanModal:m,echartRef:o,handleLocationOk:V,onFilterOption:B,locationVisible:l,locationValue:i,locationNames:r}}}),Ss="",ks="",Ci=e=>(t.pushScopeId("data-v-447bc52f"),e=e(),t.popScopeId(),e),Si={class:"location-wrap"},ki=Ci(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function wi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),m=t.resolveComponent("a-select-option"),b=t.resolveComponent("a-select"),h=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,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"]),t.createVNode(h,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=w=>e.locationVisible=w),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",Si,[ki,t.createVNode(b,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=w=>e.locationValue=w),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(w,f)=>(t.openBlock(),t.createBlock(m,{key:f,value:f},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(w.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Ln=Z(W(pi,[["render",wi],["__scopeId","data-v-447bc52f"]])),Xt={...oe,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,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},eo=J(Xt),vn=["click","refreshData","resetRecord"];xe.use([Pe.CanvasRenderer,Le.ScatterChart,ae.ToolboxComponent,ae.TitleComponent,ae.TooltipComponent,ae.LegendComponent]);const xi=t.defineComponent({name:"EcanScatter",props:{...eo},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe},setup(e){const n=t.ref(!1),o=te(e),a=t.ref([]),l=t.ref(),i=t.computed(()=>n.value?Re:12),r=t.computed(()=>{const A=e.xAxisLabelFormatter,N=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var u;n.value=!0,(u=l.value)==null||u.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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:{fontSize:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(u){return ze(A,u)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.yAxisLabelColor,formatter(u){return ze(N,u)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(u){var D;const{marker:T,seriesName:E}=u,B=((D=u==null?void 0:u.data)==null?void 0:D.record)??{},{name:V,value:Y}=B;return ie(e.tooltipFormatter,{textData:{marker:T,seriesName:E,a:E,b:V,c:Y,...B}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:t.unref(a),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:d}=t.inject(me,{getGlobalModel:A=>{},setGlobalModel:(A,N)=>{}}),{pageMode:m}=t.inject(he,{pageMode:"normal"}),b=(A=[],N)=>{const{name:u="name",value:T="value"}=N||{};a.value=A.map(E=>({value:[E[u],E[T]],record:E}))};t.watch(()=>e.data,A=>{(e.dataType==="static"||t.unref(m)==="design")&&b(A)},{immediate:!0,deep:!0});const h=t.ref(!1),w=Ce(e),f=async()=>{var A,N;if(e.dataType==="request"){h.value=!0;try{const u=await w();b((N=(A=u==null?void 0:u.data)==null?void 0:A.data)==null?void 0:N.rows,e.dataFieldNames)}catch(u){console.error(u)}finally{h.value=!1}}},c=()=>{n.value=!1},k=le(e)("click",A=>{const N=e.id,u=s(N);d(N,{...u,RECORD:A==null?void 0:A.data})});ce(e,{refreshData:()=>{f()},click:k,resetRecord:()=>{const A=e.id,N=s(A);d(A,{...N,RECORD:""})}});const{setRequest:I}=t.inject(ge,{setRequest:A=>{}});return typeof I=="function"&&I({id:e.id,requestFn:f,sortNum:e.requestSort}),{option:r,style:o,click:k,loading:h,onClose:c,ecanModal:l}}}),xs="";function Ai(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-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(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"])],4)}const In=Z(W(xi,[["render",Ai]])),to={...oe,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},oo=J(to),_i=t.defineComponent({name:"EcanCustomGraph",props:{...oo},components:{Echarts:Ne},setup(e){const n=te(e),o=t.ref();return t.watch(()=>e.optionCode,a=>{try{const l=eval;o.value=l(a)}catch(l){console.error(l)}},{immediate:!0}),{style:n,myOption:o,echarts:ea}}});function Ti(e,n,o,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 Mn=Z(W(_i,[["render",Ti]])),no={...oe,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,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"},ao=J(no),Nn=["refreshData","click","resetRecord"];xe.use([Pe.CanvasRenderer,Le.BarChart,Le.LineChart,ae.TitleComponent,ae.LegendComponent,ae.DatasetComponent,ae.ToolboxComponent]);const Ei=t.defineComponent({name:"EcanComboGraph",props:{...ao},components:{Spin:Ue,Echarts:Ne,EcanModal:Oe,AModal:U.Modal},setup(e,{expose:n}){const o=t.ref(),a=t.ref(!1),l=t.ref(!1),i=t.ref(null),r=t.ref([]),s=te(e),d=t.ref([]),m=t.ref([]),b=t.ref(),h=t.computed(()=>a.value?Re:12),w=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:{myLocation:{show:a.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){l.value=!0;const _=o.value.chart.getOption(),{xAxis:p}=_||{};p&&p.length&&(r.value=p[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Je(e.toolboxDownloadUrl)}},myDataZoom:{show:a.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;a.value=!0,(_=b.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){U.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,fontSize:h.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:_=>{const p=_.length;let C="",v=e.tooltipFormatter;v===""&&(v="{marker} {a} {c}");const z=e.seriesTypes;for(let q=0;q<p;q++){const X=z[q],{tooltipFormatter:H}=X||{},{marker:de,seriesName:ne,name:ee,value:re,data:Te}=_[q]||{};q===0&&(C+=`${ee}<br/>`),C+=ie(H||v,{textData:{marker:de,name:ee,value:re,seriesName:ne,a:ne,b:ee,c:re,...Te}},{useNewline:!0,useSpace:!0}),C+="<br/>"}return C},textStyle:{color:e.tooltipTextStyleColor,fontSize:h.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:t.unref(m).map(_=>{let p={};return _&&typeof _=="object"?p={..._,textStyle:{fontSize:h.value}}:p={value:_,textStyle:{fontSize:h.value}},p}),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(S),series:t.unref(d)})),{pageMode:f}=t.inject(he,{pageMode:"normal"}),c=()=>{a.value=!1},y=(_=[],p=!1)=>{let C;if(e.dataFieldConfigType==="key"){const H=p?e.keyTypeDataFieldNames:null;C=$e(_,H)}else if(e.dataFieldConfigType==="value"){const H=p?e.valueTypeDataFieldNames:null;C=He(_,H)}m.value=C.dimensions;const v=C.dataset,z=[],q=v.length,X=e.seriesTypes;for(let H=0;H<q;H++){const de=X[H],{type:ne,axisIndex:ee}=de||{};let re={type:ne,yAxisIndex:ee,...v[H]};ne==="line"&&(re={...re,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),ne==="bar"&&(re={...re,barWidth:e.barWidth}),z.push(re)}d.value=z},k=(_=[],p,C=!1)=>{const z=$e(_,C?p:null);m.value=z.dimensions;const q=z.dataset,X=[],H=q.length,de=e.seriesTypes;for(let ne=0;ne<H;ne++){const ee=de[ne];X.push({type:ee==null?void 0:ee.type,yAxisIndex:ee==null?void 0:ee.axisIndex,...q[ne]})}d.value=X};t.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([_])=>{(e.dataType==="static"||t.unref(f)==="design")&&y(_)},{immediate:!0,deep:!0});const S=t.computed(()=>{const _=e.yAxis;return _==null?void 0:_.map(p=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:h.value,color:e.yAxisLabelColor,formatter(C){return ze(p.axisLabelFormatter,C)}},axisLine:{lineStyle:{color:e.yAxisLineStyleColor}}}))}),x=t.ref(!1),I=Ce(e),A=async()=>{var _,p;if(e.dataType==="request")try{x.value=!0;const C=await I();y((p=(_=C==null?void 0:C.data)==null?void 0:_.data)==null?void 0:p.rows,!0)}catch(C){console.error(C)}finally{x.value=!1}},N=Ze(e),u=async()=>{var _;try{x.value=!0;const p=await N(),{columns:C=[],rows:v=[]}=((_=p==null?void 0:p.data)==null?void 0:_.data)??{};let z;C.length>0&&(z={name:C[0],types:C.slice(1).map(q=>({label:q,value:q}))}),k(v,z,!0)}catch(p){console.error(p)}finally{x.value=!1}},T=()=>{switch(e.dataType){case"indicator":u();break;case"request":A();break}},E=(_,p)=>!!t.unref(r)[p.value].value.includes(_),B=async()=>{l.value=!1;const _=o.value.chart.getOption();for(let p=0;p<7;p++)await V(_,p)},V=(_,p)=>new Promise(C=>{setTimeout(()=>{const{series:v,color:z,xAxis:q}=_,X=o.value.chart,{splitArea:H={}}=q[0]||{};v.forEach((de,ne)=>{const ee=de.data;let re="";p%2?re=z[ne]+"a8":re=z[ne],ee[i.value].itemStyle={color:re}}),p%2?(H.show=!0,H.areaStyle.color=t.unref(r).map((de,ne)=>ne===i.value?"#ff003b26":"")):H.show=!1,X.setOption({series:v,xAxis:q}),C()},200)});n({refreshData:T});const Y=le(e),{getGlobalModel:D,setGlobalModel:L}=t.inject(me,{getGlobalModel:_=>{},setGlobalModel:(_,p)=>{}}),$=Y("click",_=>{const p=D(e.id);L(e.id,{...p,RECORD:_==null?void 0:_.data})}),{setRequest:P}=t.inject(ge,{setRequest:_=>{}});return typeof P=="function"&&P({id:e.id,requestFn:T,sortNum:e.requestSort}),ce(e,{resetRecord:()=>{const _=e.id,p=D(_);L(_,{...p,RECORD:""})},refreshData:T,click:$}),{style:s,option:w,click:$,loading:x,onClose:c,ecanModal:b,echartRef:o,handleLocationOk:B,onFilterOption:E,locationVisible:l,locationValue:i,locationNames:r}}}),Ts="",Es="",Li=e=>(t.pushScopeId("data-v-b207f1d1"),e=e(),t.popScopeId(),e),vi={class:"location-wrap"},Ii=Li(()=>t.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Mi(e,n,o,a,l,i){const r=t.resolveComponent("echarts"),s=t.resolveComponent("spin"),d=t.resolveComponent("ecan-modal"),m=t.resolveComponent("a-select-option"),b=t.resolveComponent("a-select"),h=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,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),t.createVNode(d,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:t.withCtx(()=>[t.createVNode(s,{class:"spin-wrap",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,["onClose"]),t.createVNode(h,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=w=>e.locationVisible=w),title:"快速定位",onOk:e.handleLocationOk},{default:t.withCtx(()=>[t.createElementVNode("div",vi,[Ii,t.createVNode(b,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=w=>e.locationValue=w),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.locationNames,(w,f)=>(t.openBlock(),t.createBlock(m,{key:f,value:f},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(w.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const Bn=Z(W(Ei,[["render",Mi],["__scopeId","data-v-b207f1d1"]])),lo={...oe,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:{}},io=J(lo),zn=["click"],Ni=t.defineComponent({name:"EcanBorder",props:{...io},setup(e){const n=te(e,["background"]),{theme:o}=t.inject(he,{theme:"light"}),a=t.computed(()=>({width:"100%",height:"100%"})),i=le(e)("click",()=>{}),r=t.ref([]);t.watch(()=>e.data,d=>{r.value=d},{immediate:!0,deep:!0}),ce(e,{click:i});const{setGlobalModel:s}=t.inject(me,{setGlobalModel:(d,m)=>{}});return s(e.id,{type:e.type,value:r}),{style:n,click:i,borderStyle:a,theme:o}}}),Bi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",zi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",vs="",we=e=>(t.pushScopeId("data-v-1550b11b"),e=e(),t.popScopeId(),e),Oi=we(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Pi=we(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Fi=we(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Di=we(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Ri={class:"title-item-wrapper"},$i={class:"title-item"},Vi=we(()=>t.createElementVNode("img",{class:"title-decoration-left",src:Bi},null,-1)),ji={class:"title"},qi=we(()=>t.createElementVNode("img",{class:"title-decoration-right",src:zi},null,-1)),Gi=we(()=>t.createElementVNode("div",{class:"top-left border-item"},null,-1)),Ui=we(()=>t.createElementVNode("div",{class:"top-right border-item"},null,-1)),Wi=we(()=>t.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Hi=we(()=>t.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Zi={key:2,class:"left-title"},Ji={class:"title"};function Yi(e,n,o,a,l,i){return t.openBlock(),t.createElementBlock("div",{class:"ecan-border",style:t.normalizeStyle(e.style),onClick:n[0]||(n[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},[Oi,Pi,Fi,Di],64)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),e.mode==="top-title"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"top-title",style:t.normalizeStyle(e.borderStyle)},[t.createElementVNode("div",Ri,[t.createElementVNode("div",$i,[Vi,t.createElementVNode("div",ji,t.toDisplayString(e.title),1),qi])]),Gi,Ui,Wi,Hi],4)):t.createCommentVNode("",!0),e.mode==="left-title"?(t.openBlock(),t.createElementBlock("div",Zi,[t.createElementVNode("div",Ji,[t.createElementVNode("span",null,t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0)],4)}const On=Z(W(Ni,[["render",Yi],["__scopeId","data-v-1550b11b"]])),ro={...oe,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"},so=J(ro),Pn=["tabChange"],Qi=t.defineComponent({name:"EcanTabs",props:{...so},setup(e){const n=te(e),o=t.ref(0);t.watch(()=>e.activeKey,f=>{o.value=f},{immediate:!0});const{pageMode:a}=t.inject(he,{pageMode:"normal"});let l=null;const i=()=>{const f=Array.isArray(t.unref(r))?t.unref(r).length-1:0;e.autoSwitch&&f>0&&(l=setInterval(()=>{const c=t.unref(o)+1;c<=f?o.value=c:o.value=0,s.value=t.unref(r)[t.unref(o)],h()},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,f=>{r.value=f,s.value=Array.isArray(f)&&f.length>0?f[0]:{}},{immediate:!0,deep:!0});const d=f=>o.value===f,m=le(e),{setGlobalModel:b}=t.inject(me,{setGlobalModel:(f,c)=>{}});b(e.id,{value:s,activeKey:o});const{emitRefreshPage:h}=t.inject(We,{emitRefreshPage:()=>{}}),w=m("tabChange",(f,c)=>{c!==t.unref(o)&&(s.value=f,o.value=c,h())});return ce(e,{tabChange:w}),{style:n,activeKey:o,isActive:d,tabChange:w,myData:r,useImagePath:Be}}}),Ms="",Ki=["onClick"];function Xi(e,n,o,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(d=>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,Ki))),128))],4)],4)}const Fn=Z(W(Qi,[["render",Xi],["__scopeId","data-v-a2045b93"]])),co={...oe,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},fo=J(co),er=t.defineComponent({name:"EcanImage",props:{...fo},setup(e){const n=te(e),o=t.computed(()=>Be(e.imgUrl)),{pageMode:a}=t.inject(he,{pageMode:"normal"});return{style:n,myImgUrl:o,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",r=Jo(t.unref(a),i),s=e.href;let d=s||r;d=ie(d);const m=e.target;m&&(m!=="event"?window.open(d,"_"+m):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),Bs="",tr=["src"];function or(e,n,o,a,l,i){return e.myImgUrl!==""?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...r)=>e.onClick&&e.onClick(...r))},null,12,tr)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"image-placeholder",style:t.normalizeStyle(e.style)}," 请上传图片 ",4))}const Dn=Z(W(er,[["render",or],["__scopeId","data-v-ef7a7bee"]])),mo={...oe,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},uo=J(mo),nr=t.defineComponent({name:"EcanIframe",props:{...uo},setup(e){const n=te(e),{contextRequestUrl:o}=t.inject(he,{contextRequestUrl:""}),a=t.computed(()=>{let l=ie(e.link);if(e.linkType==="erd"&&l!=null){let i=t.unref(o);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",l=`${Cl||i}?_t=0&uid=${l}`}return l});return{style:n,myLink:a}}}),Os="",ar=["src"];function lr(e,n,o,a,l,i){return e.myLink?(t.openBlock(),t.createElementBlock("iframe",{key:0,src:e.myLink,style:t.normalizeStyle(e.style)},null,12,ar)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"iframe-placeholder",style:t.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const Rn=Z(W(nr,[["render",lr],["__scopeId","data-v-19bc100c"]])),ho={...oe,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:{}},go=J(ho),$n=["click","refreshData","resetRecord","exportTableData"],ir=t.defineComponent({name:"EcanTable",components:{Skeleton:et,AButton:U.Button,AInput:U.Input,ACheckboxGroup:U.CheckboxGroup,ATable:U.Table,ATableSummary:U.TableSummary,ATableSummaryRow:U.TableSummaryRow,ATableSummaryCell:U.TableSummaryCell},props:{...go},setup(e,{expose:n}){const o=te(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([]),d=t.ref([]),m=t.ref([]),b=t.ref(0),h=t.ref(1),w=t.computed(()=>e.paginationPageSize),f=t.reactive([]),c=(M=[])=>{if(Array.isArray(M)&&M.length>0){const O=M.length,j=e.columnsFixedNum;for(let G=0;G<O;G++){const R=M[G];G<j?R.fixed="left":R.fixed=!1;const{cellAlign:Q="center",cellColor:K,dataIndex:fe,title:ue,tableFilter:se,headerCellAlign:Me,headerCellColor:Se}=R;se&&(f.push(fe),R.filterOptionsInputValue="",R.filterCheckboxGroupValue=[],R.customFilterDropdown=!0,R.onFilter=(Ee,po)=>po[fe].toString().toLowerCase().includes(Ee.toLowerCase())),R.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Me||"center",color:Se,borderBottomColor:e.borderColor}}),R.customCell=(Ee,po)=>({style:{textAlign:Q,color:K,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:t.unref(p)===po&&e.clickHighlight},onClick:D("click",()=>{const Jn=e.id,wr=L(Jn);Ee={dataIndex:fe,title:ue,...Ee},$(Jn,{...wr,RECORD:Ee})})}),Array.isArray(R.children)&&c(R.children)}}},y=(M=[])=>(e.isUseSeq&&M.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&M.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),c(M),M);t.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{r.value=y(Ae.cloneDeep(e.columns))},{immediate:!0,deep:!0}),t.watch(()=>[e.data,e.dataType],([M,O])=>{O==="static"&&(s.value=M)},{immediate:!0});const k=t.ref({}),S=M=>{if(Array.isArray(M)){const O=M.length,j=f,G=j.length,R={};for(let K=0;K<O;K++){const fe=M[K];for(let ue=0;ue<G;ue++){const se=j[ue];if(R[se])R[se].add(fe[se]);else{const Me=new Set;Me.add(fe[se]),R[se]=Me}}}const Q={};for(const K in R)if(Object.prototype.hasOwnProperty.call(R,K)){const fe=R[K],ue=Array.from(fe);Q[K]=ue.map(se=>({label:se,value:se}))}k.value=Q}};t.watch(()=>[e.isReverse,r.value,s.value],()=>{const M=t.unref(r),O=t.unref(s);if(S(O),e.isReverse){const{columns:j,dataSource:G}=x(Ae.cloneDeep(M),Ae.cloneDeep(O));d.value=j,m.value=G}else d.value=M,m.value=O},{immediate:!0});const x=(M,O)=>{const j=M[0],G=[{title:j.title,dataIndex:"col0",key:"col0",align:"center"}];for(let Q=0;Q<O.length;Q++){const K=O[Q],fe="col"+(Q+1);G.push({title:K[j.dataIndex],dataIndex:fe,key:fe,align:"center"})}const R=[];for(let Q=1;Q<M.length;Q++){const K=M[Q],fe={col0:K.title};for(let ue=0;ue<O.length;ue++){const se=O[ue];fe[`col${ue+1}`]=se[K.dataIndex]}R.push(fe)}return{columns:G,dataSource:R}},I=t.ref(""),A=Ce(e),N=t.ref(!1),u=async(M=!0,O={})=>{var j;try{M&&(N.value=!0),t.unref(I)&&(O.orderCondition=t.unref(I)),e.paginationShow&&(O={pageNum:t.unref(h),pageSize:t.unref(w),layer:"1",...O});const G=await A(O),{rows:R=[],total:Q=0}=((j=G==null?void 0:G.data)==null?void 0:j.data)||{};b.value=Q,Array.isArray(R)&&(s.value=R)}catch(G){console.error(G)}finally{N.value=!1}},T=({current:M},O,j)=>{if(h.value=M,j&&Object.keys(j).length>0){const{field:G,order:R}=j,K={ascend:"asc",descend:"desc"}[R];G!=null&&K!=null&&(I.value=G+" "+K,h.value=1)}v(!1)},E=t.computed(()=>{const M=e.simple,O=[e.paginationPosition];return e.paginationShow&&{simple:M,position:O,total:t.unref(b),current:t.unref(h),pageSize:t.unref(w),showSizeChanger:!1}}),B=M=>+M==1?"是":+M==0?"否":M,V=(M,O)=>O==null||O===""?M:{money:St,percentage:tt,contrast:tt,boolean:B}[O](M)||"",Y=(M,O)=>{const j=parseFloat(M+"");if(O!=="contrast")return"";switch(!0){case j>=0:return"goUp";case j<0:return"goDown"}},D=le(e),{getGlobalModel:L,setGlobalModel:$}=t.inject(me,{getGlobalModel:M=>{},setGlobalModel:(M,O)=>{}}),P=(M=[],O=[])=>{const j=M.map(G=>({title:G,dataIndex:G,key:G}));r.value=y(j),s.value=O},F=Ze(e),_=async()=>{var M,O,j,G;try{N.value=!0;const R=await F();P((O=(M=R==null?void 0:R.data)==null?void 0:M.data)==null?void 0:O.columns,(G=(j=R==null?void 0:R.data)==null?void 0:j.data)==null?void 0:G.rows)}catch(R){console.error(R)}finally{N.value=!1}},p=t.ref(-1),C=(M,O)=>({onClick:D("rowClick",()=>{const j=e.id,G=L(j);$(j,{...G,RECORD:M}),p.value=O})}),v=(M=!0)=>{switch(e.dataType){case"request":u(M);break;case"indicator":_();break}},z=()=>{const M=e.id,O=L(M);$(M,{...O,RECORD:""})},q=t.computed(()=>{const M=t.unref(d),O=[];let j=0;for(let R=0;R<M.length;R++){const Q=M[R],{isCalcTotal:K}=Q;e.isUseSeq&&R===0?O.push({...Q,total:"小计"}):K?(O.push({...Q,index:R,total:0}),j++):O.push({...Q})}if(j===0)return[];const G=t.unref(m);for(let R=0;R<O.length;R++){const Q=O[R];let K=0;const{isCalcTotal:fe,dataIndex:ue}=Q;if(fe===!0){for(let se=0;se<G.length;se++){const Se=+G[se][ue];isNaN(Se)||(K=new Kn.Big(K).add(Se).toNumber())}Q.total=K}}return O}),{setRequest:X}=t.inject(ge,{setRequest:M=>{}});typeof X=="function"&&X({id:e.id,requestFn:v,sortNum:e.requestSort}),n({refreshData:v});const H=(M="",O)=>ie(M,O),de=M=>{if(M!=="event")return{self:"_self",blank:"_blank"}[M]},ne=(M,O="")=>{M==="event"&&window.parent.postMessage({type:"openPage",url:O},"*")},ee=(M,O)=>{M(O.filterCheckboxGroupValue)},re=(M,O)=>{M({confirm:!0}),O.filterOptionsInputValue="",O.filterCheckboxGroupValue=[]},Te=()=>{},Sr=M=>{const O=M.dataIndex;if(typeof O=="string"){let j=t.unref(k)[O];const G=t.unref(M.filterOptionsInputValue).trim();return Array.isArray(j)?(j=j.filter(R=>typeof R.label=="string"?R.label.toLowerCase().includes(G.toLowerCase()):!0),j):[]}return[]},Zn=async()=>{var se,Me;const M="EXPORT_KEY";U.message.loading({key:M,content:"正在导出...",duration:0});let O=[];if(e.dataType==="static")O=e.data;else if(e.dataType==="request"){const Se={layer:"1"};t.unref(I)&&(Se.orderCondition=t.unref(I));const Ee=await A(Se);O=((Me=(se=Ee==null?void 0:Ee.data)==null?void 0:se.data)==null?void 0:Me.rows)||{}}const j=t.unref(d),G=[],R=[];j==null||j.forEach(Se=>{G.push(Se.dataIndex),R.push(Se.title)});const Q=O.map(Se=>Ae.pick(Se,G)),K=Ve.utils.book_new(),fe=Ve.utils.aoa_to_sheet([R]),ue=Ve.utils.sheet_add_json(fe,Q,{skipHeader:!0,origin:"A2"});Ve.utils.book_append_sheet(K,ue,"sheet"),Ve.writeFile(K,"表格数据.xlsx"),U.message.success({key:M,content:"导出成功"})},kr=(M,O=2)=>{const j=+M*100;return isNaN(j)||j<=0?0:j>=100?100:j.toFixed(O)};return ce(e,{resetRecord:z,refreshData:v,exportTableData:Zn}),{x:l,y:i,style:o,customRow:C,pagination:E,formatFn:V,contrastClass:Y,tableChange:T,summaryList:q,loading:N,onTouchHrefEvent:ne,handleHref:H,handleHrefTarget:de,useRowIndex:p,tableColumns:d,tableDataSource:m,useFilterOptions:Sr,useSetSelectedKeys:ee,onResetFilter:re,onSearchFilterOptions:Te,exportTableData:Zn,handleProgressText:kr}}}),Fs="",Ds="",rr={key:0,class:"table-tool"},sr=t.createTextVNode("导出数据"),cr=t.createTextVNode(" 搜索 "),dr=t.createTextVNode(" 重置 "),fr={key:0},mr={key:1,class:"action-list"},ur=["href","target","onClick"],hr={key:2,class:"progress-cell"};function gr(e,n,o,a,l,i){const r=t.resolveComponent("a-button"),s=t.resolveComponent("a-input"),d=t.resolveComponent("a-checkbox-group"),m=t.resolveComponent("a-table-summary-cell"),b=t.resolveComponent("a-table-summary-row"),h=t.resolveComponent("a-table-summary"),w=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",rr,[t.createVNode(r,{class:"export-button",onClick:e.exportTableData},{default:t.withCtx(()=>[sr]),_:1},8,["onClick"])])):t.createCommentVNode("",!0),t.createVNode(w,{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:c,selectedKeys:y,setSelectedKeys:k,confirm:S,clearFilters:x})=>[t.createElementVNode("div",{class:"ecan-table-filter",style:t.normalizeStyle({height:e.filterDropdownHeight})},[t.createVNode(s,{value:c.filterOptionsInputValue,"onUpdate:value":I=>c.filterOptionsInputValue=I,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),t.createVNode(d,{value:c.filterCheckboxGroupValue,"onUpdate:value":I=>c.filterCheckboxGroupValue=I,class:"filter-checkbox",options:e.useFilterOptions(c),onChange:I=>e.useSetSelectedKeys(k,c)},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:()=>S()},{default:t.withCtx(()=>[cr]),_:2},1032,["onClick"]),t.createVNode(r,{size:"small",style:{width:"90px"},onClick:t.withModifiers(I=>e.onResetFilter(x,c),["stop"])},{default:t.withCtx(()=>[dr]),_:2},1032,["onClick"])])],4)]),bodyCell:t.withCtx(({column:c,index:y,text:k,record:S})=>[c.dataIndex==="SEQ"?(t.openBlock(),t.createElementBlock("span",fr,t.toDisplayString(y+1),1)):c.dataIndex==="ACTION"?(t.openBlock(),t.createElementBlock("div",mr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.actionList,(x,I)=>(t.openBlock(),t.createElementBlock("div",{class:"action",key:I},[t.createElementVNode("a",{href:e.handleHref(x.href,S),target:e.handleHrefTarget(x.target),style:t.normalizeStyle({color:x.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:A=>e.onTouchHrefEvent(x.target,e.handleHref(x.href,S))},t.toDisplayString(x.title),13,ur)]))),128))])):c.format==="progress"?(t.openBlock(),t.createElementBlock("div",hr,[t.createElementVNode("div",{class:"progress",style:t.normalizeStyle({background:c.progressColor||"#1890ff",height:c.progressWidth||"18px",width:`${e.handleProgressText(k,c.progressTextDecimalPlaces)}%`})},null,4),t.createElementVNode("div",{class:"progress-text",style:t.normalizeStyle({color:e.handleProgressText(k)<100?c.progressTextColor||"#333":c.progressFinishedTextColor||"#fff"})},t.toDisplayString(e.handleProgressText(k,c.progressTextDecimalPlaces))+"% ",5)])):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass([e.contrastClass(k,c.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString(c.format!=null?e.formatFn(k,c.format):k),7))]),summary:t.withCtx(()=>[e.summaryList.length>0?(t.openBlock(),t.createBlock(h,{key:0},{default:t.withCtx(()=>[t.createVNode(b,null,{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaryList,(c,y)=>(t.openBlock(),t.createBlock(m,{key:y,index:y,style:t.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:c.cellAlign||"center",color:c.cellColor,borderBottomColor:e.borderColor})},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([e.contrastClass(c.total,c.format)]),style:t.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},t.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(c.total,c.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 Vn=Z(W(ir,[["render",gr],["__scopeId","data-v-5f774b48"]])),yo={...oe,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}"},bo=J(yo);xe.use([Pe.CanvasRenderer,Le.MapChart,Le.ScatterChart,ae.VisualMapComponent,ae.TooltipComponent,ae.GraphicComponent]);const yr=t.defineComponent({name:"EcanMap",components:{Echarts:Ne},props:{...bo},setup(e){const n=te(e,["backgroundImage"]),o=t.ref(),a=t.computed(()=>Be(e.geoBackgroundImage)),l=t.computed(()=>Be(e.backgroundImage)),i=t.computed(()=>e.geoBackgroundImage?{image:t.unref(o),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),r=t.computed(()=>{const b=e.symbolImage;return e.symbolImage?"image://"+Be(b):"circle"}),s=t.computed(()=>{const b=e.geoCenter;let h;return typeof b=="string"&&b!==""&&(h=b.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:t.unref(l)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:h,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:t.unref(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}]}}),d=t.ref(!1),m=async()=>{var h;const b=e.mapJson;if(b!=null&&b.path){const w=await Ie(((h=window==null?void 0:window.config)==null?void 0:h.uploadPath)+b.path);xe.registerMap("map",(w==null?void 0:w.data)||{})}d.value=!0};return t.watch(()=>e.mapJson,()=>{m()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:d,geoBackgroundImageRef:o,myGeoBackgroundImage:a}}}),$s="",br=["src"];function pr(e,n,o,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,br),[[t.vShow,!1]])],4)}const jn=Z(W(yr,[["render",pr],["__scopeId","data-v-1fb5cdee"]])),qn=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:Ln,EcanBorder:On,EcanButton:gn,EcanCheckbox:bn,EcanComboGraph:Bn,EcanCustomGraph:Mn,EcanDatePicker:fn,EcanIframe:Rn,EcanImage:Dn,EcanInput:cn,EcanLine:Tn,EcanList:an,EcanMap:jn,EcanModal:Oe,EcanPageConfig:Yo,EcanPie:An,EcanProportion:rn,EcanProviderConfig:Qo,EcanRangePicker:un,EcanScatter:In,EcanScrollText:en,EcanSelect:Cn,EcanTable:Vn,EcanTabs:Fn,EcanText:Xo,EcanTimeDisplay:on,EcanTreeSelect:kn,barComponentProps:Kt,barEvents:En,barProps:Qt,borderComponentProps:io,borderEvents:zn,borderProps:lo,buttonComponentProps:Dt,buttonEvents:hn,buttonProps:Ft,checkboxComponentProps:$t,checkboxEvents:yn,checkboxProps:Rt,comboGraphComponentProps:ao,comboGraphEvents:Nn,comboGraphProps:no,customGraphComponentProps:oo,customGraphProps:to,datePickerComponentProps:zt,datePickerEvents:dn,datePickerProps:Bt,iframeComponentProps:uo,iframeProps:mo,imageComponentProps:fo,imageProps:co,inputComponentProps:Nt,inputEvents:sn,inputProps:Mt,lineComponentProps:Yt,lineEvents:_n,lineProps:Jt,listComponentProps:Lt,listEvents:nn,listProps:Et,mapComponentProps:bo,mapProps:yo,modalComponentProps:Zt,modalEvents:xn,modalProps:Ht,pageConfig:bt,pageConfigComponentProps:pt,pieComponentProps:Wt,pieEvents:wn,pieProps:Ut,proportionComponentProps:It,proportionEvents:ln,proportionProps:vt,providerConfig:kt,providerConfigComponentProps:wt,rangePickerComponentProps:Pt,rangePickerEvents:mn,rangePickerProps:Ot,scatterComponentProps:eo,scatterEvents:vn,scatterProps:Xt,selectComponentProps:jt,selectEvents:pn,selectProps:Vt,tableComponentProps:go,tableEvents:$n,tableProps:ho,tabsComponentProps:so,tabsEvents:Pn,tabsProps:ro,textComponentProps:At,textEvents:Ko,textProps:xt,timeDisplayComponentProps:Tt,timeDisplayEvents:tn,timeDisplayProps:_t,treeSelectComponentProps:Gt,treeSelectEvents:Sn,treeSelectProps:qt},Symbol.toStringTag,{value:"Module"})),Cr={install:e=>{Object.keys(qn).forEach(n=>{const o=qn[n];o.install&&e.use(o)})}};g.EcanBar=Ln,g.EcanBorder=On,g.EcanButton=gn,g.EcanCheckbox=bn,g.EcanComboGraph=Bn,g.EcanCustomGraph=Mn,g.EcanDatePicker=fn,g.EcanIframe=Rn,g.EcanImage=Dn,g.EcanInput=cn,g.EcanLine=Tn,g.EcanList=an,g.EcanMap=jn,g.EcanModal=Oe,g.EcanPageConfig=Yo,g.EcanPie=An,g.EcanProportion=rn,g.EcanProviderConfig=Qo,g.EcanRangePicker=un,g.EcanScatter=In,g.EcanScrollText=en,g.EcanSelect=Cn,g.EcanTable=Vn,g.EcanTabs=Fn,g.EcanText=Xo,g.EcanTimeDisplay=on,g.EcanTreeSelect=kn,g.barComponentProps=Kt,g.barEvents=En,g.barProps=Qt,g.borderComponentProps=io,g.borderEvents=zn,g.borderProps=lo,g.buttonComponentProps=Dt,g.buttonEvents=hn,g.buttonProps=Ft,g.checkboxComponentProps=$t,g.checkboxEvents=yn,g.checkboxProps=Rt,g.comboGraphComponentProps=ao,g.comboGraphEvents=Nn,g.comboGraphProps=no,g.customGraphComponentProps=oo,g.customGraphProps=to,g.datePickerComponentProps=zt,g.datePickerEvents=dn,g.datePickerProps=Bt,g.default=Cr,g.iframeComponentProps=uo,g.iframeProps=mo,g.imageComponentProps=fo,g.imageProps=co,g.inputComponentProps=Nt,g.inputEvents=sn,g.inputProps=Mt,g.lineComponentProps=Yt,g.lineEvents=_n,g.lineProps=Jt,g.listComponentProps=Lt,g.listEvents=nn,g.listProps=Et,g.mapComponentProps=bo,g.mapProps=yo,g.modalComponentProps=Zt,g.modalEvents=xn,g.modalProps=Ht,g.pageConfig=bt,g.pageConfigComponentProps=pt,g.pieComponentProps=Wt,g.pieEvents=wn,g.pieProps=Ut,g.proportionComponentProps=It,g.proportionEvents=ln,g.proportionProps=vt,g.providerConfig=kt,g.providerConfigComponentProps=wt,g.rangePickerComponentProps=Pt,g.rangePickerEvents=mn,g.rangePickerProps=Ot,g.scatterComponentProps=eo,g.scatterEvents=vn,g.scatterProps=Xt,g.selectComponentProps=jt,g.selectEvents=pn,g.selectProps=Vt,g.tableComponentProps=go,g.tableEvents=$n,g.tableProps=ho,g.tabsComponentProps=so,g.tabsEvents=Pn,g.tabsProps=ro,g.textComponentProps=At,g.textEvents=Ko,g.textProps=xt,g.timeDisplayComponentProps=Tt,g.timeDisplayEvents=tn,g.timeDisplayProps=_t,g.treeSelectComponentProps=Gt,g.treeSelectEvents=Sn,g.treeSelectProps=qt,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
60
60
  //# sourceMappingURL=index.umd.js.map