g-ui-web 1.2.15 → 1.2.17
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/lib/g-ui-web.js +3 -3
- package/lib/g-ui-web.js.gz +0 -0
- package/lib/g-ui-web.umd.cjs +2 -2
- package/package.json +1 -1
package/lib/g-ui-web.js
CHANGED
|
@@ -44320,7 +44320,7 @@ async function SPe(e, t) {
|
|
|
44320
44320
|
},
|
|
44321
44321
|
params: I4(e.params, e.ContentType),
|
|
44322
44322
|
data: I4(e.data, e.ContentType),
|
|
44323
|
-
timeout: e.timeout ||
|
|
44323
|
+
timeout: e.timeout || 6e5,
|
|
44324
44324
|
withCredentials: e.withCredentials || !1,
|
|
44325
44325
|
responseType: e.ResponseType ? e.ResponseType : "json"
|
|
44326
44326
|
}, a = await Za(r);
|
|
@@ -113400,7 +113400,7 @@ const bG = {
|
|
|
113400
113400
|
GSubMenu: D_t,
|
|
113401
113401
|
GMenu: I_t,
|
|
113402
113402
|
GMenuItem: P_t,
|
|
113403
|
-
|
|
113403
|
+
GMenuItemGroup: F_t
|
|
113404
113404
|
}, G_t = (e) => {
|
|
113405
113405
|
for (const t in bG)
|
|
113406
113406
|
e.component(t, bG[t]);
|
|
@@ -113424,7 +113424,6 @@ const txt = {
|
|
|
113424
113424
|
globalThis.gui = U_t;
|
|
113425
113425
|
export {
|
|
113426
113426
|
HT as DataSource,
|
|
113427
|
-
F_t as ElMenuItemGroup,
|
|
113428
113427
|
SQe as GBar,
|
|
113429
113428
|
dnt as GBarCompare,
|
|
113430
113429
|
lwt as GBarConv,
|
|
@@ -113461,6 +113460,7 @@ export {
|
|
|
113461
113460
|
ket as GMap,
|
|
113462
113461
|
I_t as GMenu,
|
|
113463
113462
|
P_t as GMenuItem,
|
|
113463
|
+
F_t as GMenuItemGroup,
|
|
113464
113464
|
tQe as GNodeAchievement,
|
|
113465
113465
|
cCt as GOption,
|
|
113466
113466
|
pCt as GOptionGroup,
|
package/lib/g-ui-web.js.gz
CHANGED
|
Binary file
|
package/lib/g-ui-web.umd.cjs
CHANGED
|
@@ -87,7 +87,7 @@ For more detail, please visit: ${a}
|
|
|
87
87
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[c6]=this[c6]={accessors:{}}).accessors,a=this.prototype;function i(l){const s=Lv(l);r[s]||(NIe(a,l),r[s]=!0)}return Xe.isArray(t)?t.forEach(i):i(t),this}}Ra.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Xe.reduceDescriptors(Ra.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),Xe.freezeMethods(Ra);function q2(e,t){const n=this||Rv,r=t||n,a=Ra.from(r.headers);let i=r.data;return Xe.forEach(e,function(s){i=s.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function d6(e){return!!(e&&e.__CANCEL__)}function Dh(e,t,n){xn.call(this,e??"canceled",xn.ERR_CANCELED,t,n),this.name="CanceledError"}Xe.inherits(Dh,xn,{__CANCEL__:!0});function u6(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new xn("Request failed with status code "+n.status,[xn.ERR_BAD_REQUEST,xn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function OIe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function IIe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,l;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=r[i];l||(l=d),n[a]=c,r[a]=d;let f=i,p=0;for(;f!==a;)p+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),d-l<t)return;const h=u&&d-u;return h?Math.round(p*1e3/h):void 0}}function BIe(e,t){let n=0,r=1e3/t,a,i;const l=(d,u=Date.now())=>{n=u,a=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const u=Date.now(),f=u-n;f>=r?l(d,u):(a=d,i||(i=setTimeout(()=>{i=null,l(a)},r-f)))},()=>a&&l(a)]}const vw=(e,t,n=3)=>{let r=0;const a=IIe(50,250);return BIe(i=>{const l=i.loaded,s=i.lengthComputable?i.total:void 0,c=l-r,d=a(c),u=l<=s;r=l;const f={loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s&&u?(s-l)/d:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},f6=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},p6=e=>(...t)=>Xe.asap(()=>e(...t)),RIe=Zo.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Zo.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Zo.origin),Zo.navigator&&/(msie|trident)/i.test(Zo.navigator.userAgent)):()=>!0,LIe=Zo.hasStandardBrowserEnv?{write(e,t,n,r,a,i){const l=[e+"="+encodeURIComponent(t)];Xe.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),Xe.isString(r)&&l.push("path="+r),Xe.isString(a)&&l.push("domain="+a),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function PIe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function VIe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function h6(e,t){return e&&!PIe(t)?VIe(e,t):t}const m6=e=>e instanceof Ra?{...e}:e;function Gu(e,t){t=t||{};const n={};function r(d,u,f,p){return Xe.isPlainObject(d)&&Xe.isPlainObject(u)?Xe.merge.call({caseless:p},d,u):Xe.isPlainObject(u)?Xe.merge({},u):Xe.isArray(u)?u.slice():u}function a(d,u,f,p){if(Xe.isUndefined(u)){if(!Xe.isUndefined(d))return r(void 0,d,f,p)}else return r(d,u,f,p)}function i(d,u){if(!Xe.isUndefined(u))return r(void 0,u)}function l(d,u){if(Xe.isUndefined(u)){if(!Xe.isUndefined(d))return r(void 0,d)}else return r(void 0,u)}function s(d,u,f){if(f in t)return r(d,u);if(f in e)return r(void 0,d)}const c={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(d,u,f)=>a(m6(d),m6(u),f,!0)};return Xe.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=c[u]||a,p=f(e[u],t[u],u);Xe.isUndefined(p)&&f!==s||(n[u]=p)}),n}const g6=e=>{const t=Gu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:l,auth:s}=t;t.headers=l=Ra.from(l),t.url=a6(h6(t.baseURL,t.url),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let c;if(Xe.isFormData(n)){if(Zo.hasStandardBrowserEnv||Zo.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((c=l.getContentType())!==!1){const[d,...u]=c?c.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...u].join("; "))}}if(Zo.hasStandardBrowserEnv&&(r&&Xe.isFunction(r)&&(r=r(t)),r||r!==!1&&RIe(t.url))){const d=a&&i&&LIe.read(i);d&&l.set(a,d)}return t},$Ie=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const a=g6(e);let i=a.data;const l=Ra.from(a.headers).normalize();let{responseType:s,onUploadProgress:c,onDownloadProgress:d}=a,u,f,p,h,m;function g(){h&&h(),m&&m(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function y(){if(!v)return;const b=Ra.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};u6(function(_){n(_),g()},function(_){r(_),g()},S),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new xn("Request aborted",xn.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new xn("Network Error",xn.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||l6;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new xn(w,S.clarifyTimeoutError?xn.ETIMEDOUT:xn.ECONNABORTED,e,v)),v=null},i===void 0&&l.setContentType(null),"setRequestHeader"in v&&Xe.forEach(l.toJSON(),function(w,S){v.setRequestHeader(S,w)}),Xe.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),s&&s!=="json"&&(v.responseType=a.responseType),d&&([p,m]=vw(d,!0),v.addEventListener("progress",p)),c&&v.upload&&([f,h]=vw(c),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(u=b=>{v&&(r(!b||b.type?new Dh(null,e,v):b),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const C=OIe(a.url);if(C&&Zo.protocols.indexOf(C)===-1){r(new xn("Unsupported protocol "+C+":",xn.ERR_BAD_REQUEST,e));return}v.send(i||null)})},FIe=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const i=function(d){if(!a){a=!0,s();const u=d instanceof Error?d:this.reason;r.abort(u instanceof xn?u:new Dh(u instanceof Error?u.message:u))}};let l=t&&setTimeout(()=>{l=null,i(new xn(`timeout ${t} of ms exceeded`,xn.ETIMEDOUT))},t);const s=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:c}=r;return c.unsubscribe=()=>Xe.asap(s),c}},zIe=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},HIe=async function*(e,t){for await(const n of GIe(e))yield*zIe(n,t)},GIe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},v6=(e,t,n,r)=>{const a=HIe(e,t);let i=0,l,s=c=>{l||(l=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await a.next();if(d){s(),c.close();return}let f=u.byteLength;if(n){let p=i+=f;n(p)}c.enqueue(new Uint8Array(u))}catch(d){throw s(d),d}},cancel(c){return s(c),a.return()}},{highWaterMark:2})},yw=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",y6=yw&&typeof ReadableStream=="function",WIe=yw&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),b6=(e,...t)=>{try{return!!e(...t)}catch{return!1}},UIe=y6&&b6(()=>{let e=!1;const t=new Request(Zo.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),C6=64*1024,X2=y6&&b6(()=>Xe.isReadableStream(new Response("").body)),bw={stream:X2&&(e=>e.body)};yw&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!bw[t]&&(bw[t]=Xe.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new xn(`Response type '${t}' is not supported`,xn.ERR_NOT_SUPPORT,r)})})})(new Response);const KIe=async e=>{if(e==null)return 0;if(Xe.isBlob(e))return e.size;if(Xe.isSpecCompliantForm(e))return(await new Request(Zo.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Xe.isArrayBufferView(e)||Xe.isArrayBuffer(e))return e.byteLength;if(Xe.isURLSearchParams(e)&&(e=e+""),Xe.isString(e))return(await WIe(e)).byteLength},jIe=async(e,t)=>{const n=Xe.toFiniteNumber(e.getContentLength());return n??KIe(t)},Z2={http:hIe,xhr:$Ie,fetch:yw&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:i,timeout:l,onDownloadProgress:s,onUploadProgress:c,responseType:d,headers:u,withCredentials:f="same-origin",fetchOptions:p}=g6(e);d=d?(d+"").toLowerCase():"text";let h=FIe([a,i&&i.toAbortSignal()],l),m;const g=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let v;try{if(c&&UIe&&n!=="get"&&n!=="head"&&(v=await jIe(u,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),x;if(Xe.isFormData(r)&&(x=S.headers.get("content-type"))&&u.setContentType(x),S.body){const[_,E]=f6(v,vw(p6(c)));r=v6(S.body,C6,_,E)}}Xe.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:y?f:void 0});let C=await fetch(m);const b=X2&&(d==="stream"||d==="response");if(X2&&(s||b&&g)){const S={};["status","statusText","headers"].forEach(k=>{S[k]=C[k]});const x=Xe.toFiniteNumber(C.headers.get("content-length")),[_,E]=s&&f6(x,vw(p6(s),!0))||[];C=new Response(v6(C.body,C6,_,()=>{E&&E(),g&&g()}),S)}d=d||"text";let w=await bw[Xe.findKey(bw,d)||"text"](C,e);return!b&&g&&g(),await new Promise((S,x)=>{u6(S,x,{data:w,headers:Ra.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:m})})}catch(y){throw g&&g(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new xn("Network Error",xn.ERR_NETWORK,e,m),{cause:y.cause||y}):xn.from(y,y&&y.code,e,m)}})};Xe.forEach(Z2,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const w6=e=>`- ${e}`,YIe=e=>Xe.isFunction(e)||e===null||e===!1,S6={getAdapter:e=>{e=Xe.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let i=0;i<t;i++){n=e[i];let l;if(r=n,!YIe(n)&&(r=Z2[(l=String(n)).toLowerCase()],r===void 0))throw new xn(`Unknown adapter '${l}'`);if(r)break;a[l||"#"+i]=r}if(!r){const i=Object.entries(a).map(([s,c])=>`adapter ${s} `+(c===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since :
|
|
88
88
|
`+i.map(w6).join(`
|
|
89
89
|
`):" "+w6(i[0]):"as no adapter specified";throw new xn("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Z2};function J2(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dh(null,e)}function x6(e){return J2(e),e.headers=Ra.from(e.headers),e.data=q2.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),S6.getAdapter(e.adapter||Rv.adapter)(e).then(function(r){return J2(e),r.data=q2.call(e,e.transformResponse,r),r.headers=Ra.from(r.headers),r},function(r){return d6(r)||(J2(e),r&&r.response&&(r.response.data=q2.call(e,e.transformResponse,r.response),r.response.headers=Ra.from(r.response.headers))),Promise.reject(r)})}const _6="1.7.8",Cw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cw[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const E6={};Cw.transitional=function(t,n,r){function a(i,l){return"[Axios v"+_6+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new xn(a(l," has been removed"+(n?" in "+n:"")),xn.ERR_DEPRECATED);return n&&!E6[l]&&(E6[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}},Cw.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function qIe(e,t,n){if(typeof e!="object")throw new xn("options must be an object",xn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],l=t[i];if(l){const s=e[i],c=s===void 0||l(s,i,e);if(c!==!0)throw new xn("option "+i+" must be "+c,xn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xn("Unknown option "+i,xn.ERR_BAD_OPTION)}}const ww={assertOptions:qIe,validators:Cw},us=ww.validators;class Wu{constructor(t){this.defaults=t,this.interceptors={request:new i6,response:new i6}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
90
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&ww.assertOptions(r,{silentJSONParsing:us.transitional(us.boolean),forcedJSONParsing:us.transitional(us.boolean),clarifyTimeoutError:us.transitional(us.boolean)},!1),a!=null&&(Xe.isFunction(a)?n.paramsSerializer={serialize:a}:ww.assertOptions(a,{encode:us.function,serialize:us.function},!0)),ww.assertOptions(n,{baseUrl:us.spelling("baseURL"),withXsrfToken:us.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&Xe.merge(i.common,i[n.method]);i&&Xe.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Ra.concat(l,i);const s=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let u,f=0,p;if(!c){const m=[x6.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,d),p=m.length,u=Promise.resolve(n);f<p;)u=u.then(m[f++],m[f++]);return u}p=s.length;let h=n;for(f=0;f<p;){const m=s[f++],g=s[f++];try{h=m(h)}catch(v){g.call(this,v);break}}try{u=x6.call(this,h)}catch(m){return Promise.reject(m)}for(f=0,p=d.length;f<p;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=Gu(this.defaults,t);const n=h6(t.baseURL,t.url);return a6(n,t.params,t.paramsSerializer)}}Xe.forEach(["delete","get","head","options"],function(t){Wu.prototype[t]=function(n,r){return this.request(Gu(r||{},{method:t,url:n,data:(r||{}).data}))}}),Xe.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,s){return this.request(Gu(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Wu.prototype[t]=n(),Wu.prototype[t+"Form"]=n(!0)});class Q2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new Dh(i,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Q2(function(a){t=a}),cancel:t}}}function XIe(e){return function(n){return e.apply(null,n)}}function ZIe(e){return Xe.isObject(e)&&e.isAxiosError===!0}const eD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eD).forEach(([e,t])=>{eD[t]=e});function k6(e){const t=new Wu(e),n=G5(Wu.prototype.request,t);return Xe.extend(n,Wu.prototype,t,{allOwnKeys:!0}),Xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return k6(Gu(e,a))},n}const io=k6(Rv);io.Axios=Wu,io.CanceledError=Dh,io.CancelToken=Q2,io.isCancel=d6,io.VERSION=_6,io.toFormData=mw,io.AxiosError=xn,io.Cancel=io.CanceledError,io.all=function(t){return Promise.all(t)},io.spread=XIe,io.isAxiosError=ZIe,io.mergeConfig=Gu,io.AxiosHeaders=Ra,io.formToJSON=e=>s6(Xe.isHTMLForm(e)?new FormData(e):e),io.getAdapter=S6.getAdapter,io.HttpStatusCode=eD,io.default=io;const JIe={400:{message:"错误请求",status:400},401:{message:"未授权",status:401},403:{message:"拒绝访问",status:403},404:{message:"请求错误,未找到该资源",status:404},405:{message:"请求方法未允许",status:405},408:{message:"请求超时",status:408},500:{message:"服务器端出错",status:500},501:{message:"网络未实现",status:501},502:{message:"网络错误",status:502},503:{message:"服务不可用",status:503},504:{message:"网络超时",status:504},505:{message:"http版本不支持该请求",status:505}};function QIe(e){return JIe[e]||{message:"网络连接错误"}}const T6=(e,t)=>{if(!e)return null;if(!t||!t.includes("multipart/form-data")){const n={};return Object.entries(e).forEach(([r,a])=>{a!=null&&(n[r]=a)}),n}else{const n=new FormData;return Object.entries(e).forEach(([r,a])=>{n.append(r,a)}),n}},D6=(()=>{let e=null,t=0;return{instance:e,count:t,show:a=>{t===0&&(e=L5.service({lock:!0,text:(a==null?void 0:a.text)??"拼命加载中...",background:(a==null?void 0:a.background)??"rgba(0, 0, 0, 0.7)"})),t++},hide:()=>{t--,e&&t<=0&&(e.close(),e=null)}}})(),eBe=e=>{D6.show(e)},tBe=()=>{D6.hide()},nBe={"Access-Control-Allow-Origin":"*","X-Requested-With":"XMLHttpRequest"};function rBe(e){return`${e.url}`}function oBe(e,t,n){e.data.code==200||e.status==200?n.callback&&n.callback(t.resultFilter?t.resultFilter(e.data):e.data):n.errorCallback&&n.errorCallback(e.data.errorMsg||"请求失败!",e.data.code||e.status)}function A6(e,t){const n=QIe(e.response.status);t.errorCallback&&t.errorCallback(n.message,n.status)}async function aBe(e,t){var n;e.isLoading&&eBe(e.loadingConfig);try{const r={url:rBe(e),method:e.method||"get",headers:{...nBe,"Content-Type":e.ContentType?e.ContentType:"application/json;charset=UTF-8",...e.headers},params:T6(e.params,e.ContentType),data:T6(e.data,e.ContentType),timeout:e.timeout||6e4,withCredentials:e.withCredentials||!1,responseType:e.ResponseType?e.ResponseType:"json"},a=await io(r);a.status==200?oBe(a,e,t):A6(a,t)}catch(r){r.message.indexOf("timeout")!=-1?xl.error("网络超时"):r.message=="Network Error"?xl.error("网络连接错误"):r&&(r!=null&&r.response)&&((n=r.response)!=null&&n.data)?xl.error(r.response.statusText):A6(r,t)}finally{tBe(),t.loadingSwitch&&t.loadingSwitch(!1),t.complete&&t.complete(e.url)}}function M6(e,t={}){const r={...{complete:i=>{},callback:i=>{},cancelCallback:i=>{},errorCallback:(i,l)=>{xl.error(i)}},...t},a={};return a.then=i=>(i&&(r.callback=l=>{i(l)}),a),a.catch=i=>(i&&(r.errorCallback=(l,s)=>{i(l,s)}),a),a.finally=i=>(i&&(r.complete=l=>{i(l)}),a),a.loadingSwitch=(i,l)=>(r.loadingSwitch=s=>{i[l]=s},a),a.lockSwitch=(i,l)=>(r.lock=()=>i[l],t.loadingSwitch=s=>{i[l]=s},a),setTimeout(()=>{r.lock&&r.lock()||(r.loadingSwitch&&r.loadingSwitch(!0),aBe(e,r))},1),a}const N6=e=>Array.isArray(e)?"数组":typeof e=="object"&&e!==null?"对象":typeof e=="string"?"字符串":"其他类型",iBe={getList(e){var n,r,a,i,l,s,c,d;const t=e!=null&&e.key?{[(n=An.state["gui-ajax-config"][e==null?void 0:e.key])==null?void 0:n.tokenName]:((r=An.state["gui-ajax-config"][e==null?void 0:e.key])==null?void 0:r.token)||"",sysCode:((a=An.state["gui-ajax-config"][e==null?void 0:e.key])==null?void 0:a.sysCode)||"",appType:((i=An.state["gui-ajax-config"][e==null?void 0:e.key])==null?void 0:i.appType)||"",...e.headers}:{[(l=An.state["gui-ajax-config"])==null?void 0:l.tokenName]:((s=An.state["gui-ajax-config"])==null?void 0:s.token)||"",sysCode:((c=An.state["gui-ajax-config"])==null?void 0:c.sysCode)||"",appType:((d=An.state["gui-ajax-config"])==null?void 0:d.appType)||"",...e.headers};if(N6(e)=="对象"){const u=!e.method||e.method.toLowerCase()=="get"||e.method.toLowerCase()=="GET"||e.method.toLowerCase()=="delete"||e.method.toLowerCase()=="DELETE";return M6({url:e.path,method:e.method,data:u?null:e.params,params:u?e.params:null,ContentType:e.ContentType,headers:t,isLoading:!1})}else if(N6(e)=="字符串")return M6({url:e,isLoading:!1})}},O6=async e=>{let t;const n=await iBe.getList(e);if(e.resPath){let r=e.resPath.split("/");t=Lue(n,r)}else t=(n==null?void 0:n.data)||n;return{resData:t,res:n}};var Pv={};function lBe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var sBe=function(e,t,n,r){t=t||"&",n=n||"=";var a={};if(typeof e!="string"||e.length===0)return a;var i=/\+/g;e=e.split(t);var l=1e3;r&&typeof r.maxKeys=="number"&&(l=r.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var c=0;c<s;++c){var d=e[c].replace(i,"%20"),u=d.indexOf(n),f,p,h,m;u>=0?(f=d.substr(0,u),p=d.substr(u+1)):(f=d,p=""),h=decodeURIComponent(f),m=decodeURIComponent(p),lBe(a,h)?Array.isArray(a[h])?a[h].push(m):a[h]=[a[h],m]:a[h]=m}return a},Vv=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},cBe=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(a){var i=encodeURIComponent(Vv(a))+n;return Array.isArray(e[a])?e[a].map(function(l){return i+encodeURIComponent(Vv(l))}).join(t):i+encodeURIComponent(Vv(e[a]))}).filter(Boolean).join(t):r?encodeURIComponent(Vv(r))+n+encodeURIComponent(Vv(e)):""};Pv.decode=Pv.parse=sBe,Pv.encode=Pv.stringify=cBe;const tD=["http://","https://",void 0];class Sw{constructor(t){Tb(this,"dsKey","DataSource");Tb(this,"data",o.reactive({}));Tb(this,"dataUrl");Tb(this,"events");if(this.events={},!t)throw console.error("dataUrl is undefined or null"),new Error("Invalid dataUrl");if(!(t!=null&&t.path)&&!["string","number"].includes(typeof t)&&!Array.isArray(t)||Array.isArray(t)&&!t.some(n=>n.path))this.loadStaticData(t);else if(Array.isArray(t)){if(!t.some(n=>n&&n.path))throw console.error("Array dataUrl must contain at least one object with a path property"),new Error("Invalid array dataUrl");this.dataUrl=t,this.load(this.dataUrl)}else if(typeof t=="object"&&t!==null&&t.path)this.dataUrl=t,[void 0,!0].includes(t==null?void 0:t.autoQuery)&&this.load(this.dataUrl);else throw console.error("Invalid dataUrl type. Expected object, array, string, or number."),new Error("Invalid dataUrl type")}loadStaticData(t){this.data=t,o.nextTick(()=>{this.trigger("load",this.data)})}async load(t){if(this.dataUrl=t,Array.isArray(t)){const n=t.map(async(r,a)=>await O6(r));await Promise.all(n).then(r=>{this.data=r.map((a,i)=>{const s=t[i].transformResponse;return s?s(a==null?void 0:a.resData,a==null?void 0:a.res):a==null?void 0:a.resData}),this.trigger("load",this.data)}).catch(r=>{this.data={},this.trigger("load",this.data)})}else{const n=await O6(t),r=t.transformResponse;this.data=r?r(n==null?void 0:n.resData,n==null?void 0:n.res):n==null?void 0:n.resData,this.trigger("load",this.data)}}reload(t){var n;if(nD(t)=="数组")if(!t.some(r=>r.params))this.dataUrl=t,this.load(this.dataUrl);else{const r=(n=this.dataUrl)==null?void 0:n.map((a,i)=>({...a,params:t[i]}));this.dataUrl=r,this.load(this.dataUrl)}else nD(t)=="对象"?t.path&&tD.some(r=>t.path.includes(r))?(this.dataUrl=t,this.load(this.dataUrl)):(this.dataUrl.params=t,this.load(this.dataUrl)):nD(t)=="字符串"&&(this.dataUrl=t,this.load(this.dataUrl))}on(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)}trigger(t,n){this.events[t]&&this.events[t].forEach(r=>{r(n)})}}const Ct=e=>{let t=null;if(typeof e=="string"&&tD.some(n=>e.includes(n))){const n=e.split("?");t=new Sw({path:n[0],params:n[1]?Pv.parse(n[1]):{}})}return(e==null?void 0:e.path)!=null&&(t=new Sw(e)),e!=null&&e.dsKey&&(t=e),!(e!=null&&e.path)&&!(e!=null&&e.dsKey)&&!(typeof e=="string"&&tD.some(n=>e.includes(n)))&&!["string","number"].includes(typeof e)&&(t=new Sw(e)),t},nD=e=>Array.isArray(e)?"数组":typeof e=="object"&&e!==null?"对象":typeof e=="string"?"字符串":"其他类型";var dBe={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};/*! *****************************************************************************
|
|
90
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Gu(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&ww.assertOptions(r,{silentJSONParsing:us.transitional(us.boolean),forcedJSONParsing:us.transitional(us.boolean),clarifyTimeoutError:us.transitional(us.boolean)},!1),a!=null&&(Xe.isFunction(a)?n.paramsSerializer={serialize:a}:ww.assertOptions(a,{encode:us.function,serialize:us.function},!0)),ww.assertOptions(n,{baseUrl:us.spelling("baseURL"),withXsrfToken:us.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&Xe.merge(i.common,i[n.method]);i&&Xe.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Ra.concat(l,i);const s=[];let c=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(c=c&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let u,f=0,p;if(!c){const m=[x6.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,d),p=m.length,u=Promise.resolve(n);f<p;)u=u.then(m[f++],m[f++]);return u}p=s.length;let h=n;for(f=0;f<p;){const m=s[f++],g=s[f++];try{h=m(h)}catch(v){g.call(this,v);break}}try{u=x6.call(this,h)}catch(m){return Promise.reject(m)}for(f=0,p=d.length;f<p;)u=u.then(d[f++],d[f++]);return u}getUri(t){t=Gu(this.defaults,t);const n=h6(t.baseURL,t.url);return a6(n,t.params,t.paramsSerializer)}}Xe.forEach(["delete","get","head","options"],function(t){Wu.prototype[t]=function(n,r){return this.request(Gu(r||{},{method:t,url:n,data:(r||{}).data}))}}),Xe.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,s){return this.request(Gu(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}Wu.prototype[t]=n(),Wu.prototype[t+"Form"]=n(!0)});class Q2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(a);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new Dh(i,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Q2(function(a){t=a}),cancel:t}}}function XIe(e){return function(n){return e.apply(null,n)}}function ZIe(e){return Xe.isObject(e)&&e.isAxiosError===!0}const eD={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(eD).forEach(([e,t])=>{eD[t]=e});function k6(e){const t=new Wu(e),n=G5(Wu.prototype.request,t);return Xe.extend(n,Wu.prototype,t,{allOwnKeys:!0}),Xe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return k6(Gu(e,a))},n}const io=k6(Rv);io.Axios=Wu,io.CanceledError=Dh,io.CancelToken=Q2,io.isCancel=d6,io.VERSION=_6,io.toFormData=mw,io.AxiosError=xn,io.Cancel=io.CanceledError,io.all=function(t){return Promise.all(t)},io.spread=XIe,io.isAxiosError=ZIe,io.mergeConfig=Gu,io.AxiosHeaders=Ra,io.formToJSON=e=>s6(Xe.isHTMLForm(e)?new FormData(e):e),io.getAdapter=S6.getAdapter,io.HttpStatusCode=eD,io.default=io;const JIe={400:{message:"错误请求",status:400},401:{message:"未授权",status:401},403:{message:"拒绝访问",status:403},404:{message:"请求错误,未找到该资源",status:404},405:{message:"请求方法未允许",status:405},408:{message:"请求超时",status:408},500:{message:"服务器端出错",status:500},501:{message:"网络未实现",status:501},502:{message:"网络错误",status:502},503:{message:"服务不可用",status:503},504:{message:"网络超时",status:504},505:{message:"http版本不支持该请求",status:505}};function QIe(e){return JIe[e]||{message:"网络连接错误"}}const T6=(e,t)=>{if(!e)return null;if(!t||!t.includes("multipart/form-data")){const n={};return Object.entries(e).forEach(([r,a])=>{a!=null&&(n[r]=a)}),n}else{const n=new FormData;return Object.entries(e).forEach(([r,a])=>{n.append(r,a)}),n}},D6=(()=>{let e=null,t=0;return{instance:e,count:t,show:a=>{t===0&&(e=L5.service({lock:!0,text:(a==null?void 0:a.text)??"拼命加载中...",background:(a==null?void 0:a.background)??"rgba(0, 0, 0, 0.7)"})),t++},hide:()=>{t--,e&&t<=0&&(e.close(),e=null)}}})(),eBe=e=>{D6.show(e)},tBe=()=>{D6.hide()},nBe={"Access-Control-Allow-Origin":"*","X-Requested-With":"XMLHttpRequest"};function rBe(e){return`${e.url}`}function oBe(e,t,n){e.data.code==200||e.status==200?n.callback&&n.callback(t.resultFilter?t.resultFilter(e.data):e.data):n.errorCallback&&n.errorCallback(e.data.errorMsg||"请求失败!",e.data.code||e.status)}function A6(e,t){const n=QIe(e.response.status);t.errorCallback&&t.errorCallback(n.message,n.status)}async function aBe(e,t){var n;e.isLoading&&eBe(e.loadingConfig);try{const r={url:rBe(e),method:e.method||"get",headers:{...nBe,"Content-Type":e.ContentType?e.ContentType:"application/json;charset=UTF-8",...e.headers},params:T6(e.params,e.ContentType),data:T6(e.data,e.ContentType),timeout:e.timeout||6e5,withCredentials:e.withCredentials||!1,responseType:e.ResponseType?e.ResponseType:"json"},a=await io(r);a.status==200?oBe(a,e,t):A6(a,t)}catch(r){r.message.indexOf("timeout")!=-1?xl.error("网络超时"):r.message=="Network Error"?xl.error("网络连接错误"):r&&(r!=null&&r.response)&&((n=r.response)!=null&&n.data)?xl.error(r.response.statusText):A6(r,t)}finally{tBe(),t.loadingSwitch&&t.loadingSwitch(!1),t.complete&&t.complete(e.url)}}function M6(e,t={}){const r={...{complete:i=>{},callback:i=>{},cancelCallback:i=>{},errorCallback:(i,l)=>{xl.error(i)}},...t},a={};return a.then=i=>(i&&(r.callback=l=>{i(l)}),a),a.catch=i=>(i&&(r.errorCallback=(l,s)=>{i(l,s)}),a),a.finally=i=>(i&&(r.complete=l=>{i(l)}),a),a.loadingSwitch=(i,l)=>(r.loadingSwitch=s=>{i[l]=s},a),a.lockSwitch=(i,l)=>(r.lock=()=>i[l],t.loadingSwitch=s=>{i[l]=s},a),setTimeout(()=>{r.lock&&r.lock()||(r.loadingSwitch&&r.loadingSwitch(!0),aBe(e,r))},1),a}const N6=e=>Array.isArray(e)?"数组":typeof e=="object"&&e!==null?"对象":typeof e=="string"?"字符串":"其他类型",iBe={getList(e){var n,r,a,i,l,s,c,d;const t=e!=null&&e.key?{[(n=An.state["gui-ajax-config"][e==null?void 0:e.key])==null?void 0:n.tokenName]:((r=An.state["gui-ajax-config"][e==null?void 0:e.key])==null?void 0:r.token)||"",sysCode:((a=An.state["gui-ajax-config"][e==null?void 0:e.key])==null?void 0:a.sysCode)||"",appType:((i=An.state["gui-ajax-config"][e==null?void 0:e.key])==null?void 0:i.appType)||"",...e.headers}:{[(l=An.state["gui-ajax-config"])==null?void 0:l.tokenName]:((s=An.state["gui-ajax-config"])==null?void 0:s.token)||"",sysCode:((c=An.state["gui-ajax-config"])==null?void 0:c.sysCode)||"",appType:((d=An.state["gui-ajax-config"])==null?void 0:d.appType)||"",...e.headers};if(N6(e)=="对象"){const u=!e.method||e.method.toLowerCase()=="get"||e.method.toLowerCase()=="GET"||e.method.toLowerCase()=="delete"||e.method.toLowerCase()=="DELETE";return M6({url:e.path,method:e.method,data:u?null:e.params,params:u?e.params:null,ContentType:e.ContentType,headers:t,isLoading:!1})}else if(N6(e)=="字符串")return M6({url:e,isLoading:!1})}},O6=async e=>{let t;const n=await iBe.getList(e);if(e.resPath){let r=e.resPath.split("/");t=Lue(n,r)}else t=(n==null?void 0:n.data)||n;return{resData:t,res:n}};var Pv={};function lBe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var sBe=function(e,t,n,r){t=t||"&",n=n||"=";var a={};if(typeof e!="string"||e.length===0)return a;var i=/\+/g;e=e.split(t);var l=1e3;r&&typeof r.maxKeys=="number"&&(l=r.maxKeys);var s=e.length;l>0&&s>l&&(s=l);for(var c=0;c<s;++c){var d=e[c].replace(i,"%20"),u=d.indexOf(n),f,p,h,m;u>=0?(f=d.substr(0,u),p=d.substr(u+1)):(f=d,p=""),h=decodeURIComponent(f),m=decodeURIComponent(p),lBe(a,h)?Array.isArray(a[h])?a[h].push(m):a[h]=[a[h],m]:a[h]=m}return a},Vv=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},cBe=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(a){var i=encodeURIComponent(Vv(a))+n;return Array.isArray(e[a])?e[a].map(function(l){return i+encodeURIComponent(Vv(l))}).join(t):i+encodeURIComponent(Vv(e[a]))}).filter(Boolean).join(t):r?encodeURIComponent(Vv(r))+n+encodeURIComponent(Vv(e)):""};Pv.decode=Pv.parse=sBe,Pv.encode=Pv.stringify=cBe;const tD=["http://","https://",void 0];class Sw{constructor(t){Tb(this,"dsKey","DataSource");Tb(this,"data",o.reactive({}));Tb(this,"dataUrl");Tb(this,"events");if(this.events={},!t)throw console.error("dataUrl is undefined or null"),new Error("Invalid dataUrl");if(!(t!=null&&t.path)&&!["string","number"].includes(typeof t)&&!Array.isArray(t)||Array.isArray(t)&&!t.some(n=>n.path))this.loadStaticData(t);else if(Array.isArray(t)){if(!t.some(n=>n&&n.path))throw console.error("Array dataUrl must contain at least one object with a path property"),new Error("Invalid array dataUrl");this.dataUrl=t,this.load(this.dataUrl)}else if(typeof t=="object"&&t!==null&&t.path)this.dataUrl=t,[void 0,!0].includes(t==null?void 0:t.autoQuery)&&this.load(this.dataUrl);else throw console.error("Invalid dataUrl type. Expected object, array, string, or number."),new Error("Invalid dataUrl type")}loadStaticData(t){this.data=t,o.nextTick(()=>{this.trigger("load",this.data)})}async load(t){if(this.dataUrl=t,Array.isArray(t)){const n=t.map(async(r,a)=>await O6(r));await Promise.all(n).then(r=>{this.data=r.map((a,i)=>{const s=t[i].transformResponse;return s?s(a==null?void 0:a.resData,a==null?void 0:a.res):a==null?void 0:a.resData}),this.trigger("load",this.data)}).catch(r=>{this.data={},this.trigger("load",this.data)})}else{const n=await O6(t),r=t.transformResponse;this.data=r?r(n==null?void 0:n.resData,n==null?void 0:n.res):n==null?void 0:n.resData,this.trigger("load",this.data)}}reload(t){var n;if(nD(t)=="数组")if(!t.some(r=>r.params))this.dataUrl=t,this.load(this.dataUrl);else{const r=(n=this.dataUrl)==null?void 0:n.map((a,i)=>({...a,params:t[i]}));this.dataUrl=r,this.load(this.dataUrl)}else nD(t)=="对象"?t.path&&tD.some(r=>t.path.includes(r))?(this.dataUrl=t,this.load(this.dataUrl)):(this.dataUrl.params=t,this.load(this.dataUrl)):nD(t)=="字符串"&&(this.dataUrl=t,this.load(this.dataUrl))}on(t,n){this.events[t]||(this.events[t]=[]),this.events[t].push(n)}trigger(t,n){this.events[t]&&this.events[t].forEach(r=>{r(n)})}}const Ct=e=>{let t=null;if(typeof e=="string"&&tD.some(n=>e.includes(n))){const n=e.split("?");t=new Sw({path:n[0],params:n[1]?Pv.parse(n[1]):{}})}return(e==null?void 0:e.path)!=null&&(t=new Sw(e)),e!=null&&e.dsKey&&(t=e),!(e!=null&&e.path)&&!(e!=null&&e.dsKey)&&!(typeof e=="string"&&tD.some(n=>e.includes(n)))&&!["string","number"].includes(typeof e)&&(t=new Sw(e)),t},nD=e=>Array.isArray(e)?"数组":typeof e=="object"&&e!==null?"对象":typeof e=="string"?"字符串":"其他类型";var dBe={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};/*! *****************************************************************************
|
|
91
91
|
Copyright (c) Microsoft Corporation.
|
|
92
92
|
|
|
93
93
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -174,4 +174,4 @@ ${y.value}${(t==null?void 0:t.unit)||""}`,fontWeight:"bold"}}:{disabled:!0,scale
|
|
|
174
174
|
${B.value}${(T==null?void 0:T.unit)||""}`},emphasis:{label:{show:!0,formatter:B=>`${B.name}
|
|
175
175
|
${B.value}${(T==null?void 0:T.unit)||""}`}},data:f.value.series[0].data}]};w.value=null,b.value=[],C.value=0,f.value=M,k.setOption(M,!0)}else{w.value=D.dataIndex,b.value=[D.dataIndex];const M=f.value.series[0].data;((A=M[D.dataIndex])==null?void 0:A.children)&&M[D.dataIndex].children.length>0?(f.value=D_(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:T.title,unit:T==null?void 0:T.unit},D.dataIndex,b.value),f.value.series&&f.value.series.length>1&&(b.value[1]=0),await o.nextTick(),f.value&&f.value.series&&f.value.series.forEach(O=>{O.label||(O.label={}),O.label.show=!0,O.label.formatter=I=>`${I.name}
|
|
176
176
|
${I.value}${(T==null?void 0:T.unit)||""}`,O.emphasis||(O.emphasis={}),O.emphasis.label||(O.emphasis.label={}),O.emphasis.label.show=!0,O.emphasis.label.formatter=I=>`${I.name}
|
|
177
|
-
${I.value}${(T==null?void 0:T.unit)||""}`}),k.setOption(f.value,!0),setTimeout(()=>{b.value.forEach((O,I)=>{I<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:I,dataIndex:O})})},100)):k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:D.dataIndex})}}}),k.on("finished",function(){w.value!==null&&setTimeout(()=>{b.value.forEach((D,A)=>{D!==void 0&&A<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:D})})},100)}))})},x=async()=>{const E={seriesIndex:C.value,dataIndex:w.value,levelIndexes:[...b.value]};if(s.value++,i.dbOptions.dataField=l.value,v.value=Ct(i.dbOptions.data),await y(v.value.data),await new Promise(k=>setTimeout(k,500)),u.value){const k=u.value.myChart;if(k.dispatchAction({type:"hideTip"}),k.off("click"),k.off("finished"),await S(),E.dataIndex!==null){w.value=E.dataIndex;const T=i.dbOptions.columns.find(D=>D.field===l.value);f.value=D_(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},E.dataIndex,E.levelIndexes),await o.nextTick(),k.setOption(f.value,!0),b.value=E.levelIndexes,C.value=E.seriesIndex,await new Promise(D=>setTimeout(D,200)),b.value.forEach((D,A)=>{D!==void 0&&A<f.value.series.length&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:D})})}}};o.onMounted(async()=>{await S()}),o.watch(()=>i.dbOptions.data,E=>{v.value=Ct(E);const k=["http://","https://",void 0];!E.path&&!E.dsKey&&!v.value.dataUrl&&!(typeof E=="string"&&k.some(T=>E.includes(T)))&&v.value.loadStaticData(E),(typeof E=="string"||E.path)&&v.value.reload(E.data)},{deep:!0}),o.watch(()=>i.dbOptions.dataFields,async E=>{if(!E)return;const k={seriesIndex:C.value,dataIndex:w.value,levelIndexes:[...b.value]};l.value=E[0],await o.nextTick(),u.value&&k.dataIndex!==null&&u.value.myChart.dispatchAction({type:"highlight",seriesIndex:k.seriesIndex,dataIndex:k.dataIndex})},{deep:!0,immediate:!0}),o.watch(()=>r["gui-theme"],async E=>{v.value=null,o.nextTick(async()=>{s.value++,v.value=Ct(i.dbOptions.data),y(v.value.data),v.value.on("load",k=>{y(k)})})},{deep:!0}),o.nextTick(async()=>{v.value=Ct(i.dbOptions.data),v.value.on("load",E=>{y(E)})}),t({props:i});const _=E=>{a("chart-click",E)};return(E,k)=>{var M,B;const T=o.resolveComponent("g-radio-button"),D=o.resolveComponent("g-radio-group"),A=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-pie-level",d.value])},[((B=(M=i.dbOptions)==null?void 0:M.dataFields)==null?void 0:B.length)>0?(o.openBlock(),o.createBlock(D,{key:0,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=O=>l.value=O),onChange:x},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.dbOptions.dataFields,O=>(o.openBlock(),o.createBlock(T,{label:O,value:O},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(A,o.mergeProps({options:f.value},E.$attrs,{ref_key:"pieChartRef",ref:u,isEmpty:c.value,description:e.description,onClick:_,key:o.unref(s)}),null,16,["options","isEmpty","description"]))],2)}}}),_oe=kt(nr(ibt,[["__scopeId","data-v-5e5e514d"]])),lbt={class:"g-calendar"},sbt={class:"g-calendar-header"},cbt={class:"switch-box"},dbt={class:"switch-box1"},ubt={class:"switch-box2"},fbt={key:0,class:"todoList"},pbt={class:"popover-inbox"},hbt=["onClick"],mbt={key:1,class:"el-calendar-year"},gbt={class:"inbox"},vbt={key:0,class:"todoListY"},ybt={class:"popover-inbox"},bbt=["onClick"],Eoe=kt(nr(o.defineComponent({__name:"index",props:{popWidth:{type:Number,default:200},isPop:{type:Boolean,default:!0},isDia:{type:Boolean,default:!1},isRadio:{type:Boolean,default:!0},dateType:{type:String,default:"month"},dbOptions:{type:Object,default:{}}},setup(e){const t=e,n=o.ref(bt().format("YYYY-MM")),r=o.ref(bt().format("YYYY")),a=o.ref({}),i=o.ref(),l=o.ref(new Date),s=o.ref(t.dateType),c=o.ref(""),d=o.ref(bt().format("YYYY-MM")),u=[{name:"1月",value:"01"},{name:"2月",value:"02"},{name:"3月",value:"03"},{name:"4月",value:"04"},{name:"5月",value:"05"},{name:"6月",value:"06"},{name:"7月",value:"07"},{name:"8月",value:"08"},{name:"9月",value:"09"},{name:"10月",value:"10"},{name:"11月",value:"11"},{name:"12月",value:"12"}],f=o.ref(null),p=o.ref(bt().format("YYYY-MM-DD")),h=o.ref([]),m=o.ref([]),g=o.ref(!1),v=o.ref([]),y=o.ref(""),C=A=>{t.dateType=A,s.value=A,l.value=new Date,b(A),h.value.forEach(M=>{M.showAll=!1}),m.value.forEach(M=>{M.showAll=!1})},b=A=>{A=="month"?n.value=bt().format("YYYY-MM"):(r.value=bt().format("YYYY"),c.value=bt().format("YYYY"))},w=A=>{l.value=A},S=A=>{c.value=A},x=()=>{f.value&&f.value.length>0?f.value.map(A=>{A.hide()}):f.value&&!Array.isArray(f.value)&&f.value.hide()},_=A=>{y.value="日期:"+A[t.dbOptions.dateField],v.value=A.todoList,g.value=!0},E=()=>{},k=A=>A.reduce((B,O)=>{const I=B.find(P=>P[t.dbOptions.dateField]===O[t.dbOptions.dateField]);return I?I.todoList.push(O):B.push({[t.dbOptions.dateField]:O[t.dbOptions.dateField],showAll:!1,todoList:[O]}),B},[]),T=async A=>{h.value=k(A),m.value=D(A)},D=A=>A.map(O=>(O.newDate=O[t.dbOptions.dateField].slice(0,-3),O)).reduce((O,I)=>{const P=O.find(L=>L[t.dbOptions.dateField]===I.newDate);return P?P.todoList.push(I):O.push({[t.dbOptions.dateField]:I.newDate,showAll:!1,todoList:[I]}),O},[]);return o.watch(()=>t.dbOptions.data,A=>{a.value=Ct(A);const M=["http://","https://",void 0];A&&(!A.path&&!A.dsKey&&!a.value.dataUrl&&!(typeof A=="string"&&M.some(B=>A.includes(B)))&&a.value.loadStaticData(A),(typeof A=="string"||A.path)&&a.value.reload(A.data))},{deep:!0}),o.nextTick(async()=>{a.value=Ct(t.dbOptions.data),a.value.on("load",A=>{T(A)})}),o.onMounted(()=>{o.nextTick(()=>{b(t.dateType)})}),(A,M)=>{const B=o.resolveComponent("g-date-picker"),O=o.resolveComponent("el-radio-button"),I=o.resolveComponent("el-radio-group"),P=o.resolveComponent("Close"),L=o.resolveComponent("el-icon"),R=o.resolveComponent("g-table-column"),$=o.resolveComponent("g-table"),F=o.resolveComponent("el-dialog");return o.openBlock(),o.createElementBlock("div",lbt,[o.createElementVNode("div",sbt,[o.createElementVNode("div",cbt,[s.value=="month"?(o.openBlock(),o.createBlock(B,{key:0,modelValue:n.value,"onUpdate:modelValue":M[0]||(M[0]=W=>n.value=W),style:{width:"120px"},type:"month",placeholder:"选择月份","value-format":"YYYY-MM",onChange:w},null,8,["modelValue"])):o.createCommentVNode("",!0),s.value=="year"?(o.openBlock(),o.createBlock(B,{key:1,modelValue:r.value,"onUpdate:modelValue":M[1]||(M[1]=W=>r.value=W),style:{width:"120px"},type:"year",placeholder:"选择年份","value-format":"YYYY",onChange:S},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",dbt,[o.renderSlot(A.$slots,"legend",{},void 0,!0)]),o.createElementVNode("div",ubt,[e.isRadio?(o.openBlock(),o.createBlock(I,{key:0,modelValue:s.value,"onUpdate:modelValue":M[2]||(M[2]=W=>s.value=W),onChange:C},{default:o.withCtx(()=>[o.createVNode(O,{label:"按月",value:"month"}),o.createVNode(O,{label:"按年",value:"year"})]),_:1},8,["modelValue"])):o.createCommentVNode("",!0)])]),s.value=="month"?(o.openBlock(),o.createBlock(o.unref(eF),{key:0,modelValue:l.value,"onUpdate:modelValue":M[3]||(M[3]=W=>l.value=W),ref_key:"calendar",ref:i},{"date-cell":o.withCtx(({data:W})=>[o.createElementVNode("span",{class:o.normalizeClass(p.value==W.day?"selectedStyle":"")},o.toDisplayString(W.day.split("-").slice(2).join("-")),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,H=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:H},[H[e.dbOptions.dateField]==W.day?(o.openBlock(),o.createElementBlock("div",fbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:2),q=>(o.openBlock(),o.createElementBlock("div",{class:"item",key:q,onClick:o.withModifiers(E,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(AC),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",pbt,[o.createVNode(L,{class:"icon",size:"16",onClick:o.withModifiers(x,["stop"])},{default:o.withCtx(()=>[o.createVNode(P)]),_:1}),o.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>2?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(q=>e.isDia?_(H):H.showAll=!H.showAll,["stop"])},o.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-2)),9,hbt)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue"])):o.createCommentVNode("",!0),s.value=="year"?(o.openBlock(),o.createElementBlock("div",mbt,[o.createElementVNode("div",gbt,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(u,W=>o.createElementVNode("div",{class:"item",key:W.value},[o.createElementVNode("span",{class:o.normalizeClass(d.value==`${c.value}-${W.value}`?"date selectedStyle":"date")},o.toDisplayString(W.name),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,H=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:H},[H[e.dbOptions.dateField]==`${c.value}-${W.value}`?(o.openBlock(),o.createElementBlock("div",vbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:5),q=>(o.openBlock(),o.createElementBlock("div",{class:"itemBox",key:q,onClick:o.withModifiers(E,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(AC),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",ybt,[o.createVNode(L,{class:"icon",size:"16",onClick:o.withModifiers(x,["stop"])},{default:o.withCtx(()=>[o.createVNode(P)]),_:1}),o.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>5?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(q=>e.isDia?_(H):H.showAll=!H.showAll,["stop"])},o.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-5)),9,bbt)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))])),64))])])):o.createCommentVNode("",!0),o.createVNode(F,{modelValue:g.value,"onUpdate:modelValue":M[4]||(M[4]=W=>g.value=W),title:y.value,border:"","align-center":!0},{default:o.withCtx(()=>[o.createVNode($,{data:v.value,width:"100%"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dbOptions.columns,W=>(o.openBlock(),o.createBlock(R,{align:"center",prop:W.field,label:W.title+(W.unit||"")},null,8,["prop","label"]))),256))]),_:1},8,["data"])]),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-f55f455f"]])),Cbt={class:"line-inbox"},wbt={class:"line-inbox-target"},Sbt=o.defineComponent({name:"GTargetDeviation"}),xbt=o.defineComponent({...Sbt,props:{type:{type:String,default:"primary"},size:{type:String,default:"sm"},min:{type:String,default:"-100"},max:{type:String,default:"100"},tooltip:{type:Array,default:null},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t}){o.useCssVars(C=>({a98fe928:h.value}));let n=An.state;const r=Ut();let a=o.ref(0);const i=e,l=o.ref(0),s=o.ref(0),c=o.ref(null),d=o.computed(()=>`line-inbox-max-${i.type}`),u=o.computed(()=>`line-inbox-min-${i.type}`),f=o.computed(()=>`line-inbox-max-progress-${i.type}`),p=o.computed(()=>`g-target-deviation-${i.size}`),h=o.computed(()=>r.name&&typeof r.name=="string"&&r.name.includes("white")?`var(--color-${i.type}-lights-4)`:`var(--color-${i.type}-lights-1)`),m=o.ref({data:0,title:"",unit:""}),g=o.ref({}),v=async C=>{y(C),a.value++},y=C=>{const b=i.dbOptions.columns&&i.dbOptions.dataField&&i.dbOptions.columns.length>0&&i.dbOptions.columns.find(w=>w.field===i.dbOptions.dataField);m.value.title=b.title,m.value.unit=b.unit,m.value.data=C[i.dbOptions.dataField],Number(C[i.dbOptions.dataField])>0?(s.value=Number(C[i.dbOptions.dataField])/Number(i.max)*100,l.value=0):(l.value=Math.abs(Number(C[i.dbOptions.dataField]))/Math.abs(Number(i.min))*100,s.value=0)};return o.watch(()=>i.dbOptions.data,C=>{g.value=Ct(C);const b=["http://","https://",void 0];!C.path&&!C.dsKey&&!g.value.dataUrl&&!(typeof C=="string"&&b.some(w=>C.includes(w)))&&g.value.loadStaticData(C),(typeof C=="string"||C.path)&&g.value.reload(C.data)},{deep:!0}),o.watch(()=>n["gui-theme"],async C=>{g.value=null,o.nextTick(async()=>{g.value=Ct(i.dbOptions.data),v(g.value.data),g.value.on("load",b=>{v(b)})})},{deep:!0}),o.nextTick(async()=>{g.value=Ct(i.dbOptions.data),g.value.on("load",C=>{v(C)})}),t({props:i,targetDeviationRef:c}),(C,b)=>{const w=o.resolveComponent("g-target-s");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-target-deviation",p.value]),ref_key:"targetDeviationRef",ref:c},[o.createElementVNode("div",Cbt,[b[0]||(b[0]=o.createElementVNode("div",{class:"line-inbox-num"},"0",-1)),o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-min",u.value])},[o.createElementVNode("div",{class:"line-inbox-min-progress",style:o.normalizeStyle({width:l.value+"%"})},null,4)],2),b[1]||(b[1]=o.createElementVNode("div",{class:"line-inbox-segmentation"},[o.createElementVNode("div",{class:"top"}),o.createElementVNode("div",{class:"bottom"})],-1)),o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-max",d.value])},[o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-max-progress",f.value]),style:o.normalizeStyle({width:s.value+"%"})},null,6)],2),o.createElementVNode("div",wbt,[(o.openBlock(),o.createBlock(w,{key:o.unref(a),type:"default",placement:"left",size:e.size,tooltip:e.tooltip,"db-options":{dataField:"value",columns:[{title:m.value.title,field:"value",unit:m.value.unit}],data:{value:m.value.data}}},null,8,["size","tooltip","db-options"]))])])],2)}}}),koe=kt(nr(xbt,[["__scopeId","data-v-9bc90b2c"]])),_bt=Ut(),A_=document.documentElement,Ebt=e=>e||"",kbt=(e,t,n,r)=>({backgroundColor:_bt.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(A_).getPropertyValue("--ui-chart-colors")),tooltip:{show:!1},series:[{startAngle:180,endAngle:0,type:"gauge",radius:"100%",min:-100,max:100,center:["50%","60%"],title:{color:getComputedStyle(A_).getPropertyValue("--gui-text-color-regular"),offsetCenter:[0,"-110%"]},detail:{color:getComputedStyle(A_).getPropertyValue(`--gui-color-${r}`),fontSize:24,formatter:function(a){return a+Ebt(t)},offsetCenter:[0,"25%"]},splitNumber:2,axisTick:{show:!1,distance:5},splitLine:{distance:1,length:3,show:!1},pointer:{show:!0,length:"75%",width:3,offsetCenter:[0,-5],itemStyle:{color:getComputedStyle(A_).getPropertyValue(`--gui-color-${r}`)}},axisLine:{roundCap:!1,lineStyle:{color:[[.5,getComputedStyle(document.documentElement).getPropertyValue(n)],[1,getComputedStyle(document.documentElement).getPropertyValue(`--gui-color-${r}`)]]}},data:[{value:100,name:"SCORE"}]}]}),Toe=(e,t,n,r,a)=>{const i=o.ref({});return i.value=Hn({},kbt(t,n,r,a),e),{...o.toRefs(i.value)}},Tbt={class:"g-target-gauge"},Dbt=o.defineComponent({name:"GTargetGauge"}),Abt=o.defineComponent({...Dbt,props:{type:{type:String,default:"primary"},description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){const r=Ut();let a=An.state;const i=n,l=e,s=o.ref(),c=o.ref(!1);let d=o.ref(0),u=o.ref([]),f=l.options;const p=o.ref(null);let h=[],m={series:[{}]};const g=o.ref({}),v=()=>{h=[]},y=async b=>{if(v(),Ar(b)){c.value=!0;return}else c.value=!1;const w=Kc(l.dbOptions.axisField);u.value=b,u.value&&l.dbOptions&&(u.value.map(x=>{let _={name:w=="function"?l.dbOptions.axisField(x):x[l.dbOptions.axisField],value:x[l.dbOptions.dataField]};h.push(_)}),f?f.series?f.series[0].data?f.series[0].data=Hn({},l.options.series[0].data,h):f.series[0].data=h:f.series=[{data:h}]:m.series[0].data=h);const S=l.dbOptions.columns.find(x=>x.field===l.dbOptions.dataField);f?s.value=Toe(f,S.title,S==null?void 0:S.unit,r.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type):s.value=Toe(m,S.title,S==null?void 0:S.unit,r.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type)};o.watch(()=>l.dbOptions.data,b=>{g.value=Ct(b);const w=["http://","https://",void 0];!b.path&&!b.dsKey&&!g.value.dataUrl&&!(typeof b=="string"&&w.some(S=>b.includes(S)))&&g.value.loadStaticData(b),(typeof b=="string"||b.path)&&g.value.reload(b.data)},{deep:!0}),o.watch(()=>a["gui-theme"],async b=>{g.value=null,o.nextTick(async()=>{d++,g.value=Ct(l.dbOptions.data),y(g.value.data),g.value.on("load",w=>{y(w)})})},{deep:!0}),o.nextTick(async()=>{g.value=Ct(l.dbOptions.data),g.value.on("load",b=>{y(b)})}),t({props:l,targetGaugeRef:p});const C=b=>{i("chart-click",b)};return(b,w)=>{const S=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",Tbt,[(o.openBlock(),o.createBlock(S,o.mergeProps({options:s.value},b.$attrs,{ref_key:"targetGaugeRef",ref:p,isEmpty:c.value,description:e.description,onClick:C,key:o.unref(d)}),null,16,["options","isEmpty","description"]))])}}}),Doe=kt(nr(Abt,[["__scopeId","data-v-8416064f"]])),Mbt={key:0,class:"compo-picker-label-box"},Nbt={key:1,class:"compo-picker-label-box"},Obt={key:2,class:"compo-picker-label-box"},Ibt={key:3,class:"compo-picker-label-box"},Bbt=o.defineComponent({name:"GCompoPicker"}),Rbt=o.defineComponent({...Bbt,props:o.mergeModels({tabs:{type:Array,default:["table","line","bar","pie"]}},{modelValue:{default:"table",required:!1},modelModifiers:{}}),emits:o.mergeModels(["tab-change"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=o.useModel(e,"modelValue"),a=t,i=l=>{a("tab-change",l)};return(l,s)=>(o.openBlock(),o.createBlock(o.unref(e2),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=c=>r.value=c),class:"compo-picker-tabs",onTabChange:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.tabs,c=>(o.openBlock(),o.createBlock(o.unref(t2),{name:c},{label:o.withCtx(()=>[c=="table"?(o.openBlock(),o.createElementBlock("span",Mbt,s[1]||(s[1]=[o.createElementVNode("span",null,[o.createElementVNode("svg",{t:"1750060257709",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1056",width:"14",height:"14"},[o.createElementVNode("path",{d:"M921.746286 0.365714A73.142857 73.142857 0 0 1 987.428571 73.142857v877.714286l-0.365714 7.460571a73.142857 73.142857 0 0 1-65.316571 65.316572L914.285714 1024H109.714286l-7.533715-0.365714a73.142857 73.142857 0 0 1-65.243428-65.316572L36.571429 950.857143V292.571429a73.142857 73.142857 0 0 1 65.609142-72.777143L109.714286 219.428571h146.285714V73.142857a73.142857 73.142857 0 0 1 65.609143-72.777143L329.142857 0h585.142857l7.460572 0.365714zM80.457143 753.371429V950.857143c0 16.091429 13.165714 29.257143 29.257143 29.257143h152.576a72.411429 72.411429 0 0 1-5.924572-21.796572L256 950.857143v-197.485714H80.457143z m219.428571 0V950.857143c0 16.091429 13.165714 29.257143 29.257143 29.257143h197.485714v-226.742857H299.885714z m270.628572 0v226.742857H914.285714a29.257143 29.257143 0 0 0 29.257143-29.257143v-197.485714H570.514286zM80.457143 709.485714H256V533.942857H80.457143v175.542857z m219.428571 0h226.742857V533.942857H299.885714v175.542857z m270.628572 0h373.028571V533.942857H570.514286v175.542857zM109.714286 263.314286a29.257143 29.257143 0 0 0-28.672 23.332571L80.457143 292.571429v197.485714H256V263.314286H109.714286z m190.171428 226.742857h226.742857V263.314286H299.885714v226.742857z m270.628572 0h373.028571V292.571429a29.257143 29.257143 0 0 0-29.257143-29.257143H570.514286v226.742857zM329.142857 43.885714a29.257143 29.257143 0 0 0-29.257143 29.257143v146.285714H914.285714l7.460572 0.365715c7.753143 0.731429 14.994286 2.779429 21.796571 5.778285V73.142857a29.257143 29.257143 0 0 0-29.257143-29.257143H329.142857z","p-id":"1057"})])],-1),o.createElementVNode("span",{class:"compo-picker-label"},"表格",-1)]))):o.createCommentVNode("",!0),c=="line"?(o.openBlock(),o.createElementBlock("span",Nbt,s[2]||(s[2]=[o.createElementVNode("span",null,[o.createElementVNode("svg",{t:"1750060300665",class:"icon",viewBox:"0 0 1181 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1198",width:"16",height:"16"},[o.createElementVNode("path",{d:"M102.4 866.461538a55.138462 55.138462 0 0 0 55.138462 55.138462h1024v47.261538H157.538462A102.4 102.4 0 0 1 55.138462 866.461538V0h47.261538v866.461538z m866.461538-393.846153h-47.261538V371.712l-209.447385 209.526154a55.138462 55.138462 0 0 1-77.981538 0L520.349538 467.495385a7.876923 7.876923 0 0 0-11.106461 0L253.006769 723.731692l-33.398154-33.476923L475.766154 434.018462a55.138462 55.138462 0 0 1 77.981538 0l113.821539 113.742769a7.876923 7.876923 0 0 0 11.106461 0L887.729231 338.707692H787.692308v-47.261538h181.16923V472.615385z","p-id":"1199"})])],-1),o.createElementVNode("span",{class:"compo-picker-label"},"折线图",-1)]))):o.createCommentVNode("",!0),c=="bar"?(o.openBlock(),o.createElementBlock("span",Obt,s[3]||(s[3]=[o.createElementVNode("span",null,[o.createElementVNode("svg",{t:"1750060328075",class:"icon",viewBox:"0 0 1280 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1340",width:"18",height:"18"},[o.createElementVNode("path",{d:"M1250.133333 1008.213333H29.866667v-56.32h1220.266666v56.32z","p-id":"1341"}),o.createElementVNode("path",{d:"M508.842667 41.813333a93.866667 93.866667 0 0 1 84.224 93.44v563.2a93.866667 93.866667 0 0 1-93.866667 93.866667h-187.733333l-9.642667-0.512a93.866667 93.866667 0 0 1-84.224-93.354667v-563.2a93.866667 93.866667 0 0 1 93.866667-93.866666h187.733333l9.642667 0.426666z m-197.376 55.808a37.546667 37.546667 0 0 0-37.546667 37.546667v563.2c0 20.821333 16.810667 37.632 37.546667 37.632h187.733333a37.546667 37.546667 0 0 0 37.546667-37.546667v-563.2a37.546667 37.546667 0 0 0-37.546667-37.546666h-187.733333zM978.176 229.546667a93.866667 93.866667 0 0 1 84.224 93.44v375.466666l-0.426667 9.642667a93.866667 93.866667 0 0 1-93.44 84.224h-187.733333l-9.642667-0.512a93.952 93.952 0 0 1-83.797333-83.712l-0.426667-9.642667v-375.466666a93.866667 93.866667 0 0 1 93.866667-93.866667h187.733333l9.642667 0.426667z m-197.376 55.808a37.546667 37.546667 0 0 0-37.546667 37.546666v375.466667c0 20.821333 16.810667 37.632 37.546667 37.632h187.733333a37.546667 37.546667 0 0 0 37.546667-37.546667v-375.466666a37.546667 37.546667 0 0 0-37.546667-37.546667h-187.733333z","p-id":"1342"})])],-1),o.createElementVNode("span",{class:"compo-picker-label"},"柱状图",-1)]))):o.createCommentVNode("",!0),c=="pie"?(o.openBlock(),o.createElementBlock("span",Ibt,s[4]||(s[4]=[o.createElementVNode("span",null,[o.createElementVNode("svg",{t:"1750732190181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1071",width:"18",height:"18"},[o.createElementVNode("path",{d:"M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m-21.942857 44.397714A468.114286 468.114286 0 1 0 979.602286 533.942857H548.571429a58.514286 58.514286 0 0 1-58.514286-58.514286V44.397714zM533.942857 475.428571c0 8.045714 6.582857 14.628571 14.628572 14.628572h431.030857A468.114286 468.114286 0 0 0 533.942857 44.397714V475.428571z","p-id":"1072"})])],-1),o.createElementVNode("span",{class:"compo-picker-label"},"饼图",-1)]))):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),256))]),_:1},8,["modelValue"]))}}),Aoe=kt(Rbt),Lbt={class:"title"},Pbt={class:"tList"},Vbt={class:"field"},$bt={key:0,class:"unit"},Fbt={key:1,class:"trend"},zbt=o.defineComponent({name:"GDynamicTarget"}),Hbt=o.defineComponent({...zbt,props:{type:{type:String,default:"default"},size:{type:String,default:"sm"},title:{type:String,default:""},trends:{type:Array,default:[]},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t}){o.ref(Ut());const n=e,r=o.ref({});let a=o.ref([]);const i=async s=>{let c=[];for(let d=0;d<n.dbOptions.dataFields.length;d++){let u={text:s[n.dbOptions.dataFields[d]],unit:n.dbOptions.columns[d].unit||null,isTrend:n.trends.length==0?!1:n.trends[d]!=!1,trend:l(s[n.dbOptions.dataFields[d]],n.trends[d])};c.push(u)}a.value=c},l=(s,c)=>{if(c===!1||c===!0){let d=s.toString();return Number(d.replace(/%/,""))>=0?"up":"down"}return c};return o.watch(()=>n.dbOptions.data,s=>{r.value=Ct(s);const c=["http://","https://",void 0];s&&(!s.path&&!s.dsKey&&!r.value.dataUrl&&!(typeof s=="string"&&c.some(d=>s.includes(d)))&&r.value.loadStaticData(s),(typeof s=="string"||typeof s=="object")&&(s.path||s.data&&typeof s.data=="string")&&r.value.reload(s.data||s))},{deep:!0}),o.nextTick(async()=>{r.value=Ct(n.dbOptions.data),r.value.on("load",s=>{i(s)})}),t({props:n}),(s,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`g-dynamic-target g-dynamic-target-${n.type} g-dynamic-target-${n.size}`)},[o.createElementVNode("div",Lbt,o.toDisplayString(n.title),1),o.createElementVNode("div",Pbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),(d,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tItem",{"no-border":u===d.length-1}]),key:u},[o.createElementVNode("div",Vbt,o.toDisplayString(d.text),1),d.unit?(o.openBlock(),o.createElementBlock("div",$bt,o.toDisplayString(d.unit),1)):o.createCommentVNode("",!0),d.isTrend?(o.openBlock(),o.createElementBlock("div",Fbt,[o.createElementVNode("i",{class:o.normalizeClass(d.trend=="up"?"iconfont icon-icon_xiangshang":"iconfont icon-icon_xiangxia")},null,2)])):o.createCommentVNode("",!0),c[0]||(c[0]=o.createElementVNode("div",{class:"line"},null,-1))],2))),128))])],2))}}),Moe=kt(nr(Hbt,[["__scopeId","data-v-310a60aa"]])),Gbt=o.defineComponent({name:"GRow"}),Wbt=o.defineComponent({...Gbt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(l3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Noe=kt(Wbt),Ubt=o.defineComponent({name:"GCol"}),Kbt=o.defineComponent({...Ubt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(MF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Ooe=kt(Kbt),jbt=o.defineComponent({name:"GButton"}),Ybt=o.defineComponent({...jbt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(ao),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Ioe=kt(Ybt),qbt=o.defineComponent({name:"GInput"}),Xbt=o.defineComponent({...qbt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Ro),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Boe=kt(Xbt),Zbt=o.defineComponent({name:"GButtonGroup"}),Jbt=o.defineComponent({...Zbt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(mk),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Roe=kt(Jbt),Qbt=o.defineComponent({name:"GRadio"}),eCt=o.defineComponent({...Qbt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Sk),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Loe=kt(eCt),tCt=o.defineComponent({name:"GRadioButton"}),nCt=o.defineComponent({...tCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(wF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Poe=kt(nCt),rCt=o.defineComponent({name:"GRadioGroup"}),oCt=o.defineComponent({...rCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(CF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Voe=kt(oCt),aCt=o.defineComponent({name:"GCheckbox"}),iCt=o.defineComponent({...aCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Xa),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),$oe=kt(iCt),lCt=o.defineComponent({name:"GCheckboxGroup"}),sCt=o.defineComponent({...lCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(wk),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Foe=kt(sCt),cCt=o.defineComponent({name:"GCheckboxButton"}),dCt=o.defineComponent({...cCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(pF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),zoe=kt(dCt),uCt=o.defineComponent({name:"GDatePicker"}),fCt=o.defineComponent({...uCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(cz),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Hoe=kt(fCt),pCt=o.defineComponent({name:"GSelect"}),hCt=o.defineComponent({...pCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(sd),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Goe=kt(hCt),mCt=o.defineComponent({name:"GCascader"}),gCt=o.defineComponent({...mCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(TF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),Woe=kt(gCt),vCt=o.defineComponent({name:"GCascaderPanel"}),yCt=o.defineComponent({...vCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Tk),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),Uoe=kt(yCt),bCt=o.defineComponent({name:"GOption"}),CCt=o.defineComponent({...bCt,props:{value:{type:String||Number||Boolean||Object||void 0,default:{}},label:{type:String||Number,default:{}},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(cv),o.mergeProps({value:e.value,label:e.label,disabled:e.disabled},t.$attrs),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16,["value","label","disabled"]))}}),Koe=kt(CCt),wCt=o.defineComponent({name:"GOptionGroup"}),SCt=o.defineComponent({...wCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(t3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),joe=kt(SCt),xCt=o.defineComponent({name:"GForm"}),_Ct=o.defineComponent({...xCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref($z),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Yoe=kt(_Ct),ECt=o.defineComponent({name:"GFormItem"}),kCt=o.defineComponent({...ECt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Fz),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),qoe=kt(kCt),TCt=o.defineComponent({name:"GSwitch"}),DCt=o.defineComponent({...TCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(N3),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Xoe=kt(DCt),ACt=o.defineComponent({name:"GUpload"}),MCt=o.defineComponent({...ACt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(k5),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Zoe=kt(MCt),NCt=o.defineComponent({name:"GCard"}),OCt=o.defineComponent({...NCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(tF),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Joe=kt(OCt),ICt=o.defineComponent({name:"GCarousel"}),BCt=o.defineComponent({...ICt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(iF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Qoe=kt(BCt),RCt=o.defineComponent({name:"GCarouselItem"}),LCt=o.defineComponent({...RCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(lF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),eae=kt(LCt),PCt=o.defineComponent({name:"GPagination"}),VCt=o.defineComponent({...PCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(r3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),tae=kt(VCt),$Ct=o.defineComponent({name:"GProgress"}),FCt=o.defineComponent({...$Ct,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(pT),o.mergeProps(n.$attrs,{"stroke-linecap":"butt"}),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),nae=kt(FCt),zCt=o.defineComponent({name:"GTable"}),HCt=o.defineComponent({...zCt,props:{data:{type:Array},emptyText:{type:String,default:"暂无数据"},textSize:{type:String,default:"sm"}},setup(e,{expose:t}){o.useCssVars(s=>({"365bc4bb":i.value}));const n=e,r=o.ref(!1),a=o.useSlots();Ar(n.data)?r.value=!0:r.value=!1,o.watch(()=>n.data,s=>{if(Ar(s)){r.value=!0;return}else r.value=!1});const i=o.computed(()=>{if(n.textSize=="lg")return"18px";if(n.textSize=="md")return"16px";if(n.textSize=="sm")return"14px";if(n.textSize=="xs")return"12px"}),l=o.ref();return t({elTableRef:l}),(s,c)=>{const d=o.resolveComponent("el-empty");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.withDirectives(o.createVNode(o.unref(HT),o.mergeProps(s.$attrs,{ref_key:"elTableRef",ref:l,data:e.data,"header-cell-style":{color:"var(--ui-table-text-color)",backgroundColor:"var(--ui-table-fill-color)"}}),o.createSlots({_:2},[o.renderList(o.unref(a),(u,f)=>({name:f,fn:o.withCtx(p=>[o.renderSlot(s.$slots,f,o.normalizeProps(o.guardReactiveProps(p)),void 0,!0)])}))]),1040,["data"]),[[o.vShow,!r.value]]),r.value?o.renderSlot(s.$slots,"empty",{key:0,class:"empty"},()=>[o.createVNode(d,o.mergeProps(s.$attrs,{description:e.emptyText,image:o.unref(Ut)().name=="white-blue"?o.unref(Fl):o.unref(Ut)().name=="white-green"?o.unref(zl):o.unref(Ut)().name=="black-gold"?o.unref(Hl):"","image-size":200}),null,16,["description","image"])],!0):o.createCommentVNode("",!0)],64)}}}),rae=kt(nr(HCt,[["__scopeId","data-v-26c049e7"]])),GCt=o.defineComponent({name:"GTableColumn"}),WCt=o.defineComponent({...GCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(GT),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),oae=kt(WCt),UCt=o.defineComponent({name:"GTag"}),KCt=o.defineComponent({...UCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Au),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),aae=kt(KCt),jCt=o.defineComponent({name:"GCheckTag"}),YCt=o.defineComponent({...jCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(DF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),iae=kt(YCt),qCt=o.defineComponent({name:"GTree"}),XCt=o.defineComponent({...qCt,setup(e,{expose:t}){const n=o.useSlots(),r=o.ref(null);return t({ref:r}),(a,i)=>(o.openBlock(),o.createBlock(o.unref(Tv),o.mergeProps({ref_key:"treeRef",ref:r},a.$attrs),o.createSlots({_:2},[o.renderList(o.unref(n),(l,s)=>({name:s,fn:o.withCtx(c=>[o.renderSlot(a.$slots,s,o.normalizeProps(o.guardReactiveProps(c)))])}))]),1040))}}),lae=kt(XCt),ZCt=o.defineComponent({name:"GTreeSelect"}),JCt=o.defineComponent({...ZCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(l5),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),sae=kt(JCt),QCt=o.defineComponent({name:"GTabs"}),ewt=o.defineComponent({...QCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(e2),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),cae=kt(ewt),twt=o.defineComponent({name:"GTabPane"}),nwt=o.defineComponent({...twt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(t2),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),dae=kt(nwt),rwt=o.defineComponent({name:"GDialog"}),owt=o.defineComponent({...rwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(vz),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),uae=kt(owt),awt=o.defineComponent({name:"GTooltip"}),iwt=o.defineComponent({...awt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(To),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),fae=kt(iwt),lwt=o.defineComponent({name:"GWatermark"}),swt=o.defineComponent({...lwt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(D5),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),pae=kt(swt),cwt=o.defineComponent({name:"GPopover"}),dwt=o.defineComponent({...cwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(AC),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),hae=kt(dwt),uwt=o.defineComponent({name:"GDrawer"}),fwt=o.defineComponent({...uwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(bz),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),mae=kt(fwt),pwt=o.defineComponent({name:"GSubMenu"}),hwt=o.defineComponent({...pwt,setup(e){const t=o.useSlots(),n=o.computed(()=>Object.keys(t).filter(r=>r!=="title"));return(r,a)=>(o.openBlock(),o.createBlock(o.unref(Xz),o.normalizeProps(o.guardReactiveProps(r.$attrs)),o.createSlots({default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>o.renderSlot(r.$slots,i,{key:i})),128))]),_:2},[o.unref(t).title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"title")]),key:"0"}:void 0]),1040))}}),gae=kt(hwt),mwt=o.defineComponent({name:"GMenu"}),gwt=o.defineComponent({...mwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(jz),o.normalizeProps(o.guardReactiveProps(n.$attrs)),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t),(a,i)=>o.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),vae=kt(gwt),vwt=o.defineComponent({name:"GMenuItem"}),ywt=o.defineComponent({...vwt,setup(e){const t=o.useSlots(),n=o.computed(()=>Object.keys(t).filter(r=>r!=="title"));return(r,a)=>(o.openBlock(),o.createBlock(o.unref(Yz),o.normalizeProps(o.guardReactiveProps(r.$attrs)),o.createSlots({default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>o.renderSlot(r.$slots,i,{key:i})),128))]),_:2},[o.unref(t).title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"title")]),key:"0"}:void 0]),1040))}}),yae=kt(ywt),bwt=o.defineComponent({name:"GMenuItemGroup"}),Cwt=o.defineComponent({...bwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(qz),o.normalizeProps(o.guardReactiveProps(n.$attrs)),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t),(a,i)=>o.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),bae=kt(Cwt),wwt={class:"chart-container"},Cae=kt(nr({__name:"index",props:{dbOptions:{type:Object,required:!0,default:()=>({data:[],fieldMap:{fullCyclePlan:"fullCyclePlan",fullCycleDynamic:"fullCycleDynamic",plan:"plan",dynamic:"dynamic",offsetRatio:"offsetRatio"}})},fullCycleLabel:{type:String,default:"全周期"},actualLabel:{type:String,default:"累计至25年3月底已发生"}},setup(e){const t=e,n=o.ref(null);let r=null;const a=o.ref([]),i=o.ref({colorBlue:"",colorGreen:"",colorDeepGreen:"",colorRed:""});function l(u,f){const{data:p,fieldMap:h}=t.dbOptions,m=Math.floor(u.dataIndex),g=p[m],v=s(g,"plan"),y=s(g,"dynamic"),C=Math.min(v,y),b=Math.max(v,y),w=v>y,S=s(g,"offsetRatio"),x=f.coord([C,m*2])[0],_=f.coord([b,m*2])[0];let E=n.value.offsetHeight,k=Math.round(E/600*100)/100;const T=f.coord([0,m*2])[1]+60*k,D=T+10;let A="";const M=g.type==="revenue";let B=[];return w?(A=M?i.value.colorDeepGreen:i.value.colorRed,B=[{type:"line",shape:{x1:x,y1:T,x2:x,y2:D},style:{stroke:A,lineDash:[4,4]},z:10},{type:"line",shape:{x1:_,y1:T-50*k,x2:_,y2:D},style:{stroke:A,lineDash:[4,4]},z:10}]):(A=M?i.value.colorRed:i.value.colorDeepGreen,B=[{type:"line",shape:{x1:x,y1:T-50*k,x2:x,y2:D},style:{stroke:A,lineDash:[4,4]},z:10},{type:"line",shape:{x1:_,y1:T,x2:_,y2:D},style:{stroke:A,lineDash:[4,4]},z:10}]),{type:"group",z:10,children:[...B,{type:"polygon",shape:{points:[[x,D+6],[x,D-6],[_,D]]},style:{fill:A}},{type:"text",style:{text:`${S}%`,x:_+20,y:D-4,textAlign:"center",fill:A,font:"12px sans-serif"}}]}}const s=(u,f)=>{const{data:p,fieldMap:h}=t.dbOptions;return u[h[f]]},c=()=>{const{data:u,fieldMap:f}=t.dbOptions;if(!n.value||!(u!=null&&u.length)||!f)return;r?r.clear():r=QW(n.value);const p=u.map(v=>[`${v.name}(经营策划会)`,`${v.name}(动态版)`]).flat(),h=u.flatMap(v=>[s(v,"fullCyclePlan"),s(v,"fullCycleDynamic")]),m=u.flatMap(v=>[s(v,"plan"),s(v,"dynamic")]),g={legend:{show:!0,bottom:0,data:[t.fullCycleLabel,t.actualLabel]},grid:{left:140,right:30,top:20,bottom:50},tooltip:{trigger:"item",axisPointer:{type:"shadow"}},xAxis:{type:"value",axisLine:{show:!0}},yAxis:{type:"category",axisTick:{show:!1},axisLine:{show:!1},data:p,inverse:!0},series:[{name:t.fullCycleLabel,type:"bar",barWidth:12,barGap:"-100%",itemStyle:{color:i.value.colorGreen},data:h},{name:t.actualLabel,type:"bar",barWidth:12,itemStyle:{color:i.value.colorBlue},data:m},{name:"差值提示",type:"custom",itemStyle:{color:"purple"},z:10,tooltip:{show:!1},renderItem:l,data:u}]};r.setOption(g)};return(()=>{const u=document.documentElement;a.value=JSON.parse(getComputedStyle(u).getPropertyValue("--ui-chart-colors")),i.value.colorBlue=a.value[0],i.value.colorGreen=a.value[1],i.value.colorDeepGreen=getComputedStyle(u).getPropertyValue("--gui-color-success"),i.value.colorRed=getComputedStyle(u).getPropertyValue("--gui-color-danger")})(),o.onMounted(c),o.watch(()=>t.dbOptions,()=>c(),{deep:!0}),(u,f)=>(o.openBlock(),o.createElementBlock("div",wwt,[o.createElementVNode("div",{ref_key:"chartRef",ref:n,class:"chart"},null,512)]))}},[["__scopeId","data-v-68ef4da2"]])),Swt=An.state["gui-theme"]||"white-green";$2(Swt);const wae={GChart:xJ,GBarConv:Coe,GRankingList:_J,GRankingTable:EJ,GRankingCup:kJ,GRankingRb:TJ,GPieTable:boe,GReserve:DJ,GPlan:NJ,GNodeAchievement:OJ,GCashflow:RJ,GBar:PJ,GLine:$J,GBarLine:zJ,GPie:GJ,GRadar:KJ,GFunnel:qJ,GMap:JJ,GHeatmap:eQ,GTargetS:tQ,GTargetR:nQ,GTargetM:rQ,GBox:oQ,GBarCompare:iQ,GPieDistri:sQ,GTargetAchievement:cQ,GDatatable:goe,GTargetCurrent:voe,GTargetStruct:woe,GPieLevel:_oe,GCalendar:Eoe,GGauge:ZJ,GTargetDeviation:koe,GTargetGauge:Doe,GCompoPicker:Aoe,GDynamicTarget:Moe,GTargetCompleteRate:Cae,GButton:Ioe,GRow:Noe,GCol:Ooe,GInput:Boe,GButtonGroup:Roe,GRadio:Loe,GRadioButton:Poe,GRadioGroup:Voe,GCheckbox:$oe,GCheckboxGroup:Foe,GCheckboxButton:zoe,GDatePicker:Hoe,GSelect:Goe,GCascader:Woe,GCascaderPanel:Uoe,GOption:Koe,GOptionGroup:joe,GForm:Yoe,GFormItem:qoe,GSwitch:Xoe,GUpload:Zoe,GCard:Joe,GCarousel:Qoe,GCarouselItem:eae,GPagination:tae,GProgress:nae,GTable:rae,GTableColumn:oae,GTag:aae,GCheckTag:iae,GTree:lae,GTreeSelect:sae,GTabs:cae,GTabPane:dae,GDialog:uae,GTooltip:fae,GWatermark:pae,GPopover:hae,GDrawer:mae,GSubMenu:gae,GMenu:vae,GMenuItem:yae,ElMenuItemGroup:bae},xwt=e=>{for(const t in wae)e.component(t,wae[t])},YR=(e,t)=>{xwt(e),e.use(COe,{locale:dBe})};typeof window<"u"&&window.Vue&&YR(window.Vue),typeof window<"u"&&window.baseURL&&YR(window.baseURL);const _wt={install:YR},Sae={setTheme:$2,getTheme:H5,getThemeList:DOe,getThemeConfig:Ut,setAjaxConfig:Pue,getAjaxConfig:Vue,loading:F2};globalThis.gui=Sae,st.DataSource=Sw,st.ElMenuItemGroup=bae,st.GBar=PJ,st.GBarCompare=iQ,st.GBarConv=Coe,st.GBarLine=zJ,st.GBox=oQ,st.GButton=Ioe,st.GButtonGroup=Roe,st.GCalendar=Eoe,st.GCard=Joe,st.GCarousel=Qoe,st.GCarouselItem=eae,st.GCascader=Woe,st.GCascaderPanel=Uoe,st.GCashflow=RJ,st.GChart=xJ,st.GCheckTag=iae,st.GCheckbox=$oe,st.GCheckboxButton=zoe,st.GCheckboxGroup=Foe,st.GCol=Ooe,st.GCompoPicker=Aoe,st.GDatatable=goe,st.GDatePicker=Hoe,st.GDialog=uae,st.GDrawer=mae,st.GDynamicTarget=Moe,st.GForm=Yoe,st.GFormItem=qoe,st.GFunnel=qJ,st.GGauge=ZJ,st.GHeatmap=eQ,st.GInput=Boe,st.GLine=$J,st.GMap=JJ,st.GMenu=vae,st.GMenuItem=yae,st.GNodeAchievement=OJ,st.GOption=Koe,st.GOptionGroup=joe,st.GPagination=tae,st.GPie=GJ,st.GPieDistri=sQ,st.GPieLevel=_oe,st.GPieTable=boe,st.GPlan=NJ,st.GPopover=hae,st.GProgress=nae,st.GRadar=KJ,st.GRadio=Loe,st.GRadioButton=Poe,st.GRadioGroup=Voe,st.GRankingCup=kJ,st.GRankingList=_J,st.GRankingRb=TJ,st.GRankingTable=EJ,st.GReserve=DJ,st.GRow=Noe,st.GSelect=Goe,st.GSubMenu=gae,st.GSwitch=Xoe,st.GTabPane=dae,st.GTable=rae,st.GTableColumn=oae,st.GTabs=cae,st.GTag=aae,st.GTargetAchievement=cQ,st.GTargetCompleteRate=Cae,st.GTargetCurrent=voe,st.GTargetDeviation=koe,st.GTargetGauge=Doe,st.GTargetM=rQ,st.GTargetR=nQ,st.GTargetS=tQ,st.GTargetStruct=woe,st.GTooltip=fae,st.GTree=lae,st.GTreeSelect=sae,st.GUpload=Zoe,st.GWatermark=pae,st.Local=Su,st.Session=$ue,st.debounce=SE,st.default=_wt,st.formatNumber=Iue,st.gui=Sae,st.setTheme=$2,st.throttle=Nue,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
177
|
+
${I.value}${(T==null?void 0:T.unit)||""}`}),k.setOption(f.value,!0),setTimeout(()=>{b.value.forEach((O,I)=>{I<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:I,dataIndex:O})})},100)):k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:D.dataIndex})}}}),k.on("finished",function(){w.value!==null&&setTimeout(()=>{b.value.forEach((D,A)=>{D!==void 0&&A<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:D})})},100)}))})},x=async()=>{const E={seriesIndex:C.value,dataIndex:w.value,levelIndexes:[...b.value]};if(s.value++,i.dbOptions.dataField=l.value,v.value=Ct(i.dbOptions.data),await y(v.value.data),await new Promise(k=>setTimeout(k,500)),u.value){const k=u.value.myChart;if(k.dispatchAction({type:"hideTip"}),k.off("click"),k.off("finished"),await S(),E.dataIndex!==null){w.value=E.dataIndex;const T=i.dbOptions.columns.find(D=>D.field===l.value);f.value=D_(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},E.dataIndex,E.levelIndexes),await o.nextTick(),k.setOption(f.value,!0),b.value=E.levelIndexes,C.value=E.seriesIndex,await new Promise(D=>setTimeout(D,200)),b.value.forEach((D,A)=>{D!==void 0&&A<f.value.series.length&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:D})})}}};o.onMounted(async()=>{await S()}),o.watch(()=>i.dbOptions.data,E=>{v.value=Ct(E);const k=["http://","https://",void 0];!E.path&&!E.dsKey&&!v.value.dataUrl&&!(typeof E=="string"&&k.some(T=>E.includes(T)))&&v.value.loadStaticData(E),(typeof E=="string"||E.path)&&v.value.reload(E.data)},{deep:!0}),o.watch(()=>i.dbOptions.dataFields,async E=>{if(!E)return;const k={seriesIndex:C.value,dataIndex:w.value,levelIndexes:[...b.value]};l.value=E[0],await o.nextTick(),u.value&&k.dataIndex!==null&&u.value.myChart.dispatchAction({type:"highlight",seriesIndex:k.seriesIndex,dataIndex:k.dataIndex})},{deep:!0,immediate:!0}),o.watch(()=>r["gui-theme"],async E=>{v.value=null,o.nextTick(async()=>{s.value++,v.value=Ct(i.dbOptions.data),y(v.value.data),v.value.on("load",k=>{y(k)})})},{deep:!0}),o.nextTick(async()=>{v.value=Ct(i.dbOptions.data),v.value.on("load",E=>{y(E)})}),t({props:i});const _=E=>{a("chart-click",E)};return(E,k)=>{var M,B;const T=o.resolveComponent("g-radio-button"),D=o.resolveComponent("g-radio-group"),A=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-pie-level",d.value])},[((B=(M=i.dbOptions)==null?void 0:M.dataFields)==null?void 0:B.length)>0?(o.openBlock(),o.createBlock(D,{key:0,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=O=>l.value=O),onChange:x},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.dbOptions.dataFields,O=>(o.openBlock(),o.createBlock(T,{label:O,value:O},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(A,o.mergeProps({options:f.value},E.$attrs,{ref_key:"pieChartRef",ref:u,isEmpty:c.value,description:e.description,onClick:_,key:o.unref(s)}),null,16,["options","isEmpty","description"]))],2)}}}),_oe=kt(nr(ibt,[["__scopeId","data-v-5e5e514d"]])),lbt={class:"g-calendar"},sbt={class:"g-calendar-header"},cbt={class:"switch-box"},dbt={class:"switch-box1"},ubt={class:"switch-box2"},fbt={key:0,class:"todoList"},pbt={class:"popover-inbox"},hbt=["onClick"],mbt={key:1,class:"el-calendar-year"},gbt={class:"inbox"},vbt={key:0,class:"todoListY"},ybt={class:"popover-inbox"},bbt=["onClick"],Eoe=kt(nr(o.defineComponent({__name:"index",props:{popWidth:{type:Number,default:200},isPop:{type:Boolean,default:!0},isDia:{type:Boolean,default:!1},isRadio:{type:Boolean,default:!0},dateType:{type:String,default:"month"},dbOptions:{type:Object,default:{}}},setup(e){const t=e,n=o.ref(bt().format("YYYY-MM")),r=o.ref(bt().format("YYYY")),a=o.ref({}),i=o.ref(),l=o.ref(new Date),s=o.ref(t.dateType),c=o.ref(""),d=o.ref(bt().format("YYYY-MM")),u=[{name:"1月",value:"01"},{name:"2月",value:"02"},{name:"3月",value:"03"},{name:"4月",value:"04"},{name:"5月",value:"05"},{name:"6月",value:"06"},{name:"7月",value:"07"},{name:"8月",value:"08"},{name:"9月",value:"09"},{name:"10月",value:"10"},{name:"11月",value:"11"},{name:"12月",value:"12"}],f=o.ref(null),p=o.ref(bt().format("YYYY-MM-DD")),h=o.ref([]),m=o.ref([]),g=o.ref(!1),v=o.ref([]),y=o.ref(""),C=A=>{t.dateType=A,s.value=A,l.value=new Date,b(A),h.value.forEach(M=>{M.showAll=!1}),m.value.forEach(M=>{M.showAll=!1})},b=A=>{A=="month"?n.value=bt().format("YYYY-MM"):(r.value=bt().format("YYYY"),c.value=bt().format("YYYY"))},w=A=>{l.value=A},S=A=>{c.value=A},x=()=>{f.value&&f.value.length>0?f.value.map(A=>{A.hide()}):f.value&&!Array.isArray(f.value)&&f.value.hide()},_=A=>{y.value="日期:"+A[t.dbOptions.dateField],v.value=A.todoList,g.value=!0},E=()=>{},k=A=>A.reduce((B,O)=>{const I=B.find(P=>P[t.dbOptions.dateField]===O[t.dbOptions.dateField]);return I?I.todoList.push(O):B.push({[t.dbOptions.dateField]:O[t.dbOptions.dateField],showAll:!1,todoList:[O]}),B},[]),T=async A=>{h.value=k(A),m.value=D(A)},D=A=>A.map(O=>(O.newDate=O[t.dbOptions.dateField].slice(0,-3),O)).reduce((O,I)=>{const P=O.find(L=>L[t.dbOptions.dateField]===I.newDate);return P?P.todoList.push(I):O.push({[t.dbOptions.dateField]:I.newDate,showAll:!1,todoList:[I]}),O},[]);return o.watch(()=>t.dbOptions.data,A=>{a.value=Ct(A);const M=["http://","https://",void 0];A&&(!A.path&&!A.dsKey&&!a.value.dataUrl&&!(typeof A=="string"&&M.some(B=>A.includes(B)))&&a.value.loadStaticData(A),(typeof A=="string"||A.path)&&a.value.reload(A.data))},{deep:!0}),o.nextTick(async()=>{a.value=Ct(t.dbOptions.data),a.value.on("load",A=>{T(A)})}),o.onMounted(()=>{o.nextTick(()=>{b(t.dateType)})}),(A,M)=>{const B=o.resolveComponent("g-date-picker"),O=o.resolveComponent("el-radio-button"),I=o.resolveComponent("el-radio-group"),P=o.resolveComponent("Close"),L=o.resolveComponent("el-icon"),R=o.resolveComponent("g-table-column"),$=o.resolveComponent("g-table"),F=o.resolveComponent("el-dialog");return o.openBlock(),o.createElementBlock("div",lbt,[o.createElementVNode("div",sbt,[o.createElementVNode("div",cbt,[s.value=="month"?(o.openBlock(),o.createBlock(B,{key:0,modelValue:n.value,"onUpdate:modelValue":M[0]||(M[0]=W=>n.value=W),style:{width:"120px"},type:"month",placeholder:"选择月份","value-format":"YYYY-MM",onChange:w},null,8,["modelValue"])):o.createCommentVNode("",!0),s.value=="year"?(o.openBlock(),o.createBlock(B,{key:1,modelValue:r.value,"onUpdate:modelValue":M[1]||(M[1]=W=>r.value=W),style:{width:"120px"},type:"year",placeholder:"选择年份","value-format":"YYYY",onChange:S},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",dbt,[o.renderSlot(A.$slots,"legend",{},void 0,!0)]),o.createElementVNode("div",ubt,[e.isRadio?(o.openBlock(),o.createBlock(I,{key:0,modelValue:s.value,"onUpdate:modelValue":M[2]||(M[2]=W=>s.value=W),onChange:C},{default:o.withCtx(()=>[o.createVNode(O,{label:"按月",value:"month"}),o.createVNode(O,{label:"按年",value:"year"})]),_:1},8,["modelValue"])):o.createCommentVNode("",!0)])]),s.value=="month"?(o.openBlock(),o.createBlock(o.unref(eF),{key:0,modelValue:l.value,"onUpdate:modelValue":M[3]||(M[3]=W=>l.value=W),ref_key:"calendar",ref:i},{"date-cell":o.withCtx(({data:W})=>[o.createElementVNode("span",{class:o.normalizeClass(p.value==W.day?"selectedStyle":"")},o.toDisplayString(W.day.split("-").slice(2).join("-")),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.value,H=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:H},[H[e.dbOptions.dateField]==W.day?(o.openBlock(),o.createElementBlock("div",fbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:2),q=>(o.openBlock(),o.createElementBlock("div",{class:"item",key:q,onClick:o.withModifiers(E,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(AC),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",pbt,[o.createVNode(L,{class:"icon",size:"16",onClick:o.withModifiers(x,["stop"])},{default:o.withCtx(()=>[o.createVNode(P)]),_:1}),o.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>2?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(q=>e.isDia?_(H):H.showAll=!H.showAll,["stop"])},o.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-2)),9,hbt)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue"])):o.createCommentVNode("",!0),s.value=="year"?(o.openBlock(),o.createElementBlock("div",mbt,[o.createElementVNode("div",gbt,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(u,W=>o.createElementVNode("div",{class:"item",key:W.value},[o.createElementVNode("span",{class:o.normalizeClass(d.value==`${c.value}-${W.value}`?"date selectedStyle":"date")},o.toDisplayString(W.name),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(m.value,H=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:H},[H[e.dbOptions.dateField]==`${c.value}-${W.value}`?(o.openBlock(),o.createElementBlock("div",vbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:5),q=>(o.openBlock(),o.createElementBlock("div",{class:"itemBox",key:q,onClick:o.withModifiers(E,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(AC),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",ybt,[o.createVNode(L,{class:"icon",size:"16",onClick:o.withModifiers(x,["stop"])},{default:o.withCtx(()=>[o.createVNode(P)]),_:1}),o.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>5?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(q=>e.isDia?_(H):H.showAll=!H.showAll,["stop"])},o.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-5)),9,bbt)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))])),64))])])):o.createCommentVNode("",!0),o.createVNode(F,{modelValue:g.value,"onUpdate:modelValue":M[4]||(M[4]=W=>g.value=W),title:y.value,border:"","align-center":!0},{default:o.withCtx(()=>[o.createVNode($,{data:v.value,width:"100%"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dbOptions.columns,W=>(o.openBlock(),o.createBlock(R,{align:"center",prop:W.field,label:W.title+(W.unit||"")},null,8,["prop","label"]))),256))]),_:1},8,["data"])]),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-f55f455f"]])),Cbt={class:"line-inbox"},wbt={class:"line-inbox-target"},Sbt=o.defineComponent({name:"GTargetDeviation"}),xbt=o.defineComponent({...Sbt,props:{type:{type:String,default:"primary"},size:{type:String,default:"sm"},min:{type:String,default:"-100"},max:{type:String,default:"100"},tooltip:{type:Array,default:null},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t}){o.useCssVars(C=>({a98fe928:h.value}));let n=An.state;const r=Ut();let a=o.ref(0);const i=e,l=o.ref(0),s=o.ref(0),c=o.ref(null),d=o.computed(()=>`line-inbox-max-${i.type}`),u=o.computed(()=>`line-inbox-min-${i.type}`),f=o.computed(()=>`line-inbox-max-progress-${i.type}`),p=o.computed(()=>`g-target-deviation-${i.size}`),h=o.computed(()=>r.name&&typeof r.name=="string"&&r.name.includes("white")?`var(--color-${i.type}-lights-4)`:`var(--color-${i.type}-lights-1)`),m=o.ref({data:0,title:"",unit:""}),g=o.ref({}),v=async C=>{y(C),a.value++},y=C=>{const b=i.dbOptions.columns&&i.dbOptions.dataField&&i.dbOptions.columns.length>0&&i.dbOptions.columns.find(w=>w.field===i.dbOptions.dataField);m.value.title=b.title,m.value.unit=b.unit,m.value.data=C[i.dbOptions.dataField],Number(C[i.dbOptions.dataField])>0?(s.value=Number(C[i.dbOptions.dataField])/Number(i.max)*100,l.value=0):(l.value=Math.abs(Number(C[i.dbOptions.dataField]))/Math.abs(Number(i.min))*100,s.value=0)};return o.watch(()=>i.dbOptions.data,C=>{g.value=Ct(C);const b=["http://","https://",void 0];!C.path&&!C.dsKey&&!g.value.dataUrl&&!(typeof C=="string"&&b.some(w=>C.includes(w)))&&g.value.loadStaticData(C),(typeof C=="string"||C.path)&&g.value.reload(C.data)},{deep:!0}),o.watch(()=>n["gui-theme"],async C=>{g.value=null,o.nextTick(async()=>{g.value=Ct(i.dbOptions.data),v(g.value.data),g.value.on("load",b=>{v(b)})})},{deep:!0}),o.nextTick(async()=>{g.value=Ct(i.dbOptions.data),g.value.on("load",C=>{v(C)})}),t({props:i,targetDeviationRef:c}),(C,b)=>{const w=o.resolveComponent("g-target-s");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-target-deviation",p.value]),ref_key:"targetDeviationRef",ref:c},[o.createElementVNode("div",Cbt,[b[0]||(b[0]=o.createElementVNode("div",{class:"line-inbox-num"},"0",-1)),o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-min",u.value])},[o.createElementVNode("div",{class:"line-inbox-min-progress",style:o.normalizeStyle({width:l.value+"%"})},null,4)],2),b[1]||(b[1]=o.createElementVNode("div",{class:"line-inbox-segmentation"},[o.createElementVNode("div",{class:"top"}),o.createElementVNode("div",{class:"bottom"})],-1)),o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-max",d.value])},[o.createElementVNode("div",{class:o.normalizeClass(["line-inbox-max-progress",f.value]),style:o.normalizeStyle({width:s.value+"%"})},null,6)],2),o.createElementVNode("div",wbt,[(o.openBlock(),o.createBlock(w,{key:o.unref(a),type:"default",placement:"left",size:e.size,tooltip:e.tooltip,"db-options":{dataField:"value",columns:[{title:m.value.title,field:"value",unit:m.value.unit}],data:{value:m.value.data}}},null,8,["size","tooltip","db-options"]))])])],2)}}}),koe=kt(nr(xbt,[["__scopeId","data-v-9bc90b2c"]])),_bt=Ut(),A_=document.documentElement,Ebt=e=>e||"",kbt=(e,t,n,r)=>({backgroundColor:_bt.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(A_).getPropertyValue("--ui-chart-colors")),tooltip:{show:!1},series:[{startAngle:180,endAngle:0,type:"gauge",radius:"100%",min:-100,max:100,center:["50%","60%"],title:{color:getComputedStyle(A_).getPropertyValue("--gui-text-color-regular"),offsetCenter:[0,"-110%"]},detail:{color:getComputedStyle(A_).getPropertyValue(`--gui-color-${r}`),fontSize:24,formatter:function(a){return a+Ebt(t)},offsetCenter:[0,"25%"]},splitNumber:2,axisTick:{show:!1,distance:5},splitLine:{distance:1,length:3,show:!1},pointer:{show:!0,length:"75%",width:3,offsetCenter:[0,-5],itemStyle:{color:getComputedStyle(A_).getPropertyValue(`--gui-color-${r}`)}},axisLine:{roundCap:!1,lineStyle:{color:[[.5,getComputedStyle(document.documentElement).getPropertyValue(n)],[1,getComputedStyle(document.documentElement).getPropertyValue(`--gui-color-${r}`)]]}},data:[{value:100,name:"SCORE"}]}]}),Toe=(e,t,n,r,a)=>{const i=o.ref({});return i.value=Hn({},kbt(t,n,r,a),e),{...o.toRefs(i.value)}},Tbt={class:"g-target-gauge"},Dbt=o.defineComponent({name:"GTargetGauge"}),Abt=o.defineComponent({...Dbt,props:{type:{type:String,default:"primary"},description:{type:String,default:"暂无数据"},options:{type:Object,default:{}},dbOptions:{type:Object,default:{}}},setup(e,{expose:t,emit:n}){const r=Ut();let a=An.state;const i=n,l=e,s=o.ref(),c=o.ref(!1);let d=o.ref(0),u=o.ref([]),f=l.options;const p=o.ref(null);let h=[],m={series:[{}]};const g=o.ref({}),v=()=>{h=[]},y=async b=>{if(v(),Ar(b)){c.value=!0;return}else c.value=!1;const w=Kc(l.dbOptions.axisField);u.value=b,u.value&&l.dbOptions&&(u.value.map(x=>{let _={name:w=="function"?l.dbOptions.axisField(x):x[l.dbOptions.axisField],value:x[l.dbOptions.dataField]};h.push(_)}),f?f.series?f.series[0].data?f.series[0].data=Hn({},l.options.series[0].data,h):f.series[0].data=h:f.series=[{data:h}]:m.series[0].data=h);const S=l.dbOptions.columns.find(x=>x.field===l.dbOptions.dataField);f?s.value=Toe(f,S.title,S==null?void 0:S.unit,r.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type):s.value=Toe(m,S.title,S==null?void 0:S.unit,r.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type)};o.watch(()=>l.dbOptions.data,b=>{g.value=Ct(b);const w=["http://","https://",void 0];!b.path&&!b.dsKey&&!g.value.dataUrl&&!(typeof b=="string"&&w.some(S=>b.includes(S)))&&g.value.loadStaticData(b),(typeof b=="string"||b.path)&&g.value.reload(b.data)},{deep:!0}),o.watch(()=>a["gui-theme"],async b=>{g.value=null,o.nextTick(async()=>{d++,g.value=Ct(l.dbOptions.data),y(g.value.data),g.value.on("load",w=>{y(w)})})},{deep:!0}),o.nextTick(async()=>{g.value=Ct(l.dbOptions.data),g.value.on("load",b=>{y(b)})}),t({props:l,targetGaugeRef:p});const C=b=>{i("chart-click",b)};return(b,w)=>{const S=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",Tbt,[(o.openBlock(),o.createBlock(S,o.mergeProps({options:s.value},b.$attrs,{ref_key:"targetGaugeRef",ref:p,isEmpty:c.value,description:e.description,onClick:C,key:o.unref(d)}),null,16,["options","isEmpty","description"]))])}}}),Doe=kt(nr(Abt,[["__scopeId","data-v-8416064f"]])),Mbt={key:0,class:"compo-picker-label-box"},Nbt={key:1,class:"compo-picker-label-box"},Obt={key:2,class:"compo-picker-label-box"},Ibt={key:3,class:"compo-picker-label-box"},Bbt=o.defineComponent({name:"GCompoPicker"}),Rbt=o.defineComponent({...Bbt,props:o.mergeModels({tabs:{type:Array,default:["table","line","bar","pie"]}},{modelValue:{default:"table",required:!1},modelModifiers:{}}),emits:o.mergeModels(["tab-change"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=o.useModel(e,"modelValue"),a=t,i=l=>{a("tab-change",l)};return(l,s)=>(o.openBlock(),o.createBlock(o.unref(e2),{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=c=>r.value=c),class:"compo-picker-tabs",onTabChange:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.tabs,c=>(o.openBlock(),o.createBlock(o.unref(t2),{name:c},{label:o.withCtx(()=>[c=="table"?(o.openBlock(),o.createElementBlock("span",Mbt,s[1]||(s[1]=[o.createElementVNode("span",null,[o.createElementVNode("svg",{t:"1750060257709",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1056",width:"14",height:"14"},[o.createElementVNode("path",{d:"M921.746286 0.365714A73.142857 73.142857 0 0 1 987.428571 73.142857v877.714286l-0.365714 7.460571a73.142857 73.142857 0 0 1-65.316571 65.316572L914.285714 1024H109.714286l-7.533715-0.365714a73.142857 73.142857 0 0 1-65.243428-65.316572L36.571429 950.857143V292.571429a73.142857 73.142857 0 0 1 65.609142-72.777143L109.714286 219.428571h146.285714V73.142857a73.142857 73.142857 0 0 1 65.609143-72.777143L329.142857 0h585.142857l7.460572 0.365714zM80.457143 753.371429V950.857143c0 16.091429 13.165714 29.257143 29.257143 29.257143h152.576a72.411429 72.411429 0 0 1-5.924572-21.796572L256 950.857143v-197.485714H80.457143z m219.428571 0V950.857143c0 16.091429 13.165714 29.257143 29.257143 29.257143h197.485714v-226.742857H299.885714z m270.628572 0v226.742857H914.285714a29.257143 29.257143 0 0 0 29.257143-29.257143v-197.485714H570.514286zM80.457143 709.485714H256V533.942857H80.457143v175.542857z m219.428571 0h226.742857V533.942857H299.885714v175.542857z m270.628572 0h373.028571V533.942857H570.514286v175.542857zM109.714286 263.314286a29.257143 29.257143 0 0 0-28.672 23.332571L80.457143 292.571429v197.485714H256V263.314286H109.714286z m190.171428 226.742857h226.742857V263.314286H299.885714v226.742857z m270.628572 0h373.028571V292.571429a29.257143 29.257143 0 0 0-29.257143-29.257143H570.514286v226.742857zM329.142857 43.885714a29.257143 29.257143 0 0 0-29.257143 29.257143v146.285714H914.285714l7.460572 0.365715c7.753143 0.731429 14.994286 2.779429 21.796571 5.778285V73.142857a29.257143 29.257143 0 0 0-29.257143-29.257143H329.142857z","p-id":"1057"})])],-1),o.createElementVNode("span",{class:"compo-picker-label"},"表格",-1)]))):o.createCommentVNode("",!0),c=="line"?(o.openBlock(),o.createElementBlock("span",Nbt,s[2]||(s[2]=[o.createElementVNode("span",null,[o.createElementVNode("svg",{t:"1750060300665",class:"icon",viewBox:"0 0 1181 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1198",width:"16",height:"16"},[o.createElementVNode("path",{d:"M102.4 866.461538a55.138462 55.138462 0 0 0 55.138462 55.138462h1024v47.261538H157.538462A102.4 102.4 0 0 1 55.138462 866.461538V0h47.261538v866.461538z m866.461538-393.846153h-47.261538V371.712l-209.447385 209.526154a55.138462 55.138462 0 0 1-77.981538 0L520.349538 467.495385a7.876923 7.876923 0 0 0-11.106461 0L253.006769 723.731692l-33.398154-33.476923L475.766154 434.018462a55.138462 55.138462 0 0 1 77.981538 0l113.821539 113.742769a7.876923 7.876923 0 0 0 11.106461 0L887.729231 338.707692H787.692308v-47.261538h181.16923V472.615385z","p-id":"1199"})])],-1),o.createElementVNode("span",{class:"compo-picker-label"},"折线图",-1)]))):o.createCommentVNode("",!0),c=="bar"?(o.openBlock(),o.createElementBlock("span",Obt,s[3]||(s[3]=[o.createElementVNode("span",null,[o.createElementVNode("svg",{t:"1750060328075",class:"icon",viewBox:"0 0 1280 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1340",width:"18",height:"18"},[o.createElementVNode("path",{d:"M1250.133333 1008.213333H29.866667v-56.32h1220.266666v56.32z","p-id":"1341"}),o.createElementVNode("path",{d:"M508.842667 41.813333a93.866667 93.866667 0 0 1 84.224 93.44v563.2a93.866667 93.866667 0 0 1-93.866667 93.866667h-187.733333l-9.642667-0.512a93.866667 93.866667 0 0 1-84.224-93.354667v-563.2a93.866667 93.866667 0 0 1 93.866667-93.866666h187.733333l9.642667 0.426666z m-197.376 55.808a37.546667 37.546667 0 0 0-37.546667 37.546667v563.2c0 20.821333 16.810667 37.632 37.546667 37.632h187.733333a37.546667 37.546667 0 0 0 37.546667-37.546667v-563.2a37.546667 37.546667 0 0 0-37.546667-37.546666h-187.733333zM978.176 229.546667a93.866667 93.866667 0 0 1 84.224 93.44v375.466666l-0.426667 9.642667a93.866667 93.866667 0 0 1-93.44 84.224h-187.733333l-9.642667-0.512a93.952 93.952 0 0 1-83.797333-83.712l-0.426667-9.642667v-375.466666a93.866667 93.866667 0 0 1 93.866667-93.866667h187.733333l9.642667 0.426667z m-197.376 55.808a37.546667 37.546667 0 0 0-37.546667 37.546666v375.466667c0 20.821333 16.810667 37.632 37.546667 37.632h187.733333a37.546667 37.546667 0 0 0 37.546667-37.546667v-375.466666a37.546667 37.546667 0 0 0-37.546667-37.546667h-187.733333z","p-id":"1342"})])],-1),o.createElementVNode("span",{class:"compo-picker-label"},"柱状图",-1)]))):o.createCommentVNode("",!0),c=="pie"?(o.openBlock(),o.createElementBlock("span",Ibt,s[4]||(s[4]=[o.createElementVNode("span",null,[o.createElementVNode("svg",{t:"1750732190181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1071",width:"18",height:"18"},[o.createElementVNode("path",{d:"M512 0a512 512 0 1 1 0 1024A512 512 0 0 1 512 0z m-21.942857 44.397714A468.114286 468.114286 0 1 0 979.602286 533.942857H548.571429a58.514286 58.514286 0 0 1-58.514286-58.514286V44.397714zM533.942857 475.428571c0 8.045714 6.582857 14.628571 14.628572 14.628572h431.030857A468.114286 468.114286 0 0 0 533.942857 44.397714V475.428571z","p-id":"1072"})])],-1),o.createElementVNode("span",{class:"compo-picker-label"},"饼图",-1)]))):o.createCommentVNode("",!0)]),_:2},1032,["name"]))),256))]),_:1},8,["modelValue"]))}}),Aoe=kt(Rbt),Lbt={class:"title"},Pbt={class:"tList"},Vbt={class:"field"},$bt={key:0,class:"unit"},Fbt={key:1,class:"trend"},zbt=o.defineComponent({name:"GDynamicTarget"}),Hbt=o.defineComponent({...zbt,props:{type:{type:String,default:"default"},size:{type:String,default:"sm"},title:{type:String,default:""},trends:{type:Array,default:[]},dbOptions:{type:Object,default:()=>({})}},setup(e,{expose:t}){o.ref(Ut());const n=e,r=o.ref({});let a=o.ref([]);const i=async s=>{let c=[];for(let d=0;d<n.dbOptions.dataFields.length;d++){let u={text:s[n.dbOptions.dataFields[d]],unit:n.dbOptions.columns[d].unit||null,isTrend:n.trends.length==0?!1:n.trends[d]!=!1,trend:l(s[n.dbOptions.dataFields[d]],n.trends[d])};c.push(u)}a.value=c},l=(s,c)=>{if(c===!1||c===!0){let d=s.toString();return Number(d.replace(/%/,""))>=0?"up":"down"}return c};return o.watch(()=>n.dbOptions.data,s=>{r.value=Ct(s);const c=["http://","https://",void 0];s&&(!s.path&&!s.dsKey&&!r.value.dataUrl&&!(typeof s=="string"&&c.some(d=>s.includes(d)))&&r.value.loadStaticData(s),(typeof s=="string"||typeof s=="object")&&(s.path||s.data&&typeof s.data=="string")&&r.value.reload(s.data||s))},{deep:!0}),o.nextTick(async()=>{r.value=Ct(n.dbOptions.data),r.value.on("load",s=>{i(s)})}),t({props:n}),(s,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(`g-dynamic-target g-dynamic-target-${n.type} g-dynamic-target-${n.size}`)},[o.createElementVNode("div",Lbt,o.toDisplayString(n.title),1),o.createElementVNode("div",Pbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),(d,u)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tItem",{"no-border":u===d.length-1}]),key:u},[o.createElementVNode("div",Vbt,o.toDisplayString(d.text),1),d.unit?(o.openBlock(),o.createElementBlock("div",$bt,o.toDisplayString(d.unit),1)):o.createCommentVNode("",!0),d.isTrend?(o.openBlock(),o.createElementBlock("div",Fbt,[o.createElementVNode("i",{class:o.normalizeClass(d.trend=="up"?"iconfont icon-icon_xiangshang":"iconfont icon-icon_xiangxia")},null,2)])):o.createCommentVNode("",!0),c[0]||(c[0]=o.createElementVNode("div",{class:"line"},null,-1))],2))),128))])],2))}}),Moe=kt(nr(Hbt,[["__scopeId","data-v-310a60aa"]])),Gbt=o.defineComponent({name:"GRow"}),Wbt=o.defineComponent({...Gbt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(l3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Noe=kt(Wbt),Ubt=o.defineComponent({name:"GCol"}),Kbt=o.defineComponent({...Ubt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(MF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Ooe=kt(Kbt),jbt=o.defineComponent({name:"GButton"}),Ybt=o.defineComponent({...jbt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(ao),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Ioe=kt(Ybt),qbt=o.defineComponent({name:"GInput"}),Xbt=o.defineComponent({...qbt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Ro),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Boe=kt(Xbt),Zbt=o.defineComponent({name:"GButtonGroup"}),Jbt=o.defineComponent({...Zbt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(mk),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Roe=kt(Jbt),Qbt=o.defineComponent({name:"GRadio"}),eCt=o.defineComponent({...Qbt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Sk),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Loe=kt(eCt),tCt=o.defineComponent({name:"GRadioButton"}),nCt=o.defineComponent({...tCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(wF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Poe=kt(nCt),rCt=o.defineComponent({name:"GRadioGroup"}),oCt=o.defineComponent({...rCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(CF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Voe=kt(oCt),aCt=o.defineComponent({name:"GCheckbox"}),iCt=o.defineComponent({...aCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Xa),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),$oe=kt(iCt),lCt=o.defineComponent({name:"GCheckboxGroup"}),sCt=o.defineComponent({...lCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(wk),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Foe=kt(sCt),cCt=o.defineComponent({name:"GCheckboxButton"}),dCt=o.defineComponent({...cCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(pF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),zoe=kt(dCt),uCt=o.defineComponent({name:"GDatePicker"}),fCt=o.defineComponent({...uCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(cz),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Hoe=kt(fCt),pCt=o.defineComponent({name:"GSelect"}),hCt=o.defineComponent({...pCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(sd),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Goe=kt(hCt),mCt=o.defineComponent({name:"GCascader"}),gCt=o.defineComponent({...mCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(TF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),Woe=kt(gCt),vCt=o.defineComponent({name:"GCascaderPanel"}),yCt=o.defineComponent({...vCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Tk),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),Uoe=kt(yCt),bCt=o.defineComponent({name:"GOption"}),CCt=o.defineComponent({...bCt,props:{value:{type:String||Number||Boolean||Object||void 0,default:{}},label:{type:String||Number,default:{}},disabled:{type:Boolean,default:!1}},setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(cv),o.mergeProps({value:e.value,label:e.label,disabled:e.disabled},t.$attrs),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16,["value","label","disabled"]))}}),Koe=kt(CCt),wCt=o.defineComponent({name:"GOptionGroup"}),SCt=o.defineComponent({...wCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(t3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),joe=kt(SCt),xCt=o.defineComponent({name:"GForm"}),_Ct=o.defineComponent({...xCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref($z),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Yoe=kt(_Ct),ECt=o.defineComponent({name:"GFormItem"}),kCt=o.defineComponent({...ECt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Fz),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),qoe=kt(kCt),TCt=o.defineComponent({name:"GSwitch"}),DCt=o.defineComponent({...TCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(N3),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Xoe=kt(DCt),ACt=o.defineComponent({name:"GUpload"}),MCt=o.defineComponent({...ACt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(k5),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Zoe=kt(MCt),NCt=o.defineComponent({name:"GCard"}),OCt=o.defineComponent({...NCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(tF),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),Joe=kt(OCt),ICt=o.defineComponent({name:"GCarousel"}),BCt=o.defineComponent({...ICt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(iF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Qoe=kt(BCt),RCt=o.defineComponent({name:"GCarouselItem"}),LCt=o.defineComponent({...RCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(lF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),eae=kt(LCt),PCt=o.defineComponent({name:"GPagination"}),VCt=o.defineComponent({...PCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(r3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),tae=kt(VCt),$Ct=o.defineComponent({name:"GProgress"}),FCt=o.defineComponent({...$Ct,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(pT),o.mergeProps(n.$attrs,{"stroke-linecap":"butt"}),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),nae=kt(FCt),zCt=o.defineComponent({name:"GTable"}),HCt=o.defineComponent({...zCt,props:{data:{type:Array},emptyText:{type:String,default:"暂无数据"},textSize:{type:String,default:"sm"}},setup(e,{expose:t}){o.useCssVars(s=>({"365bc4bb":i.value}));const n=e,r=o.ref(!1),a=o.useSlots();Ar(n.data)?r.value=!0:r.value=!1,o.watch(()=>n.data,s=>{if(Ar(s)){r.value=!0;return}else r.value=!1});const i=o.computed(()=>{if(n.textSize=="lg")return"18px";if(n.textSize=="md")return"16px";if(n.textSize=="sm")return"14px";if(n.textSize=="xs")return"12px"}),l=o.ref();return t({elTableRef:l}),(s,c)=>{const d=o.resolveComponent("el-empty");return o.openBlock(),o.createElementBlock(o.Fragment,null,[o.withDirectives(o.createVNode(o.unref(HT),o.mergeProps(s.$attrs,{ref_key:"elTableRef",ref:l,data:e.data,"header-cell-style":{color:"var(--ui-table-text-color)",backgroundColor:"var(--ui-table-fill-color)"}}),o.createSlots({_:2},[o.renderList(o.unref(a),(u,f)=>({name:f,fn:o.withCtx(p=>[o.renderSlot(s.$slots,f,o.normalizeProps(o.guardReactiveProps(p)),void 0,!0)])}))]),1040,["data"]),[[o.vShow,!r.value]]),r.value?o.renderSlot(s.$slots,"empty",{key:0,class:"empty"},()=>[o.createVNode(d,o.mergeProps(s.$attrs,{description:e.emptyText,image:o.unref(Ut)().name=="white-blue"?o.unref(Fl):o.unref(Ut)().name=="white-green"?o.unref(zl):o.unref(Ut)().name=="black-gold"?o.unref(Hl):"","image-size":200}),null,16,["description","image"])],!0):o.createCommentVNode("",!0)],64)}}}),rae=kt(nr(HCt,[["__scopeId","data-v-26c049e7"]])),GCt=o.defineComponent({name:"GTableColumn"}),WCt=o.defineComponent({...GCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(GT),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),oae=kt(WCt),UCt=o.defineComponent({name:"GTag"}),KCt=o.defineComponent({...UCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Au),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),aae=kt(KCt),jCt=o.defineComponent({name:"GCheckTag"}),YCt=o.defineComponent({...jCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(DF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),iae=kt(YCt),qCt=o.defineComponent({name:"GTree"}),XCt=o.defineComponent({...qCt,setup(e,{expose:t}){const n=o.useSlots(),r=o.ref(null);return t({ref:r}),(a,i)=>(o.openBlock(),o.createBlock(o.unref(Tv),o.mergeProps({ref_key:"treeRef",ref:r},a.$attrs),o.createSlots({_:2},[o.renderList(o.unref(n),(l,s)=>({name:s,fn:o.withCtx(c=>[o.renderSlot(a.$slots,s,o.normalizeProps(o.guardReactiveProps(c)))])}))]),1040))}}),lae=kt(XCt),ZCt=o.defineComponent({name:"GTreeSelect"}),JCt=o.defineComponent({...ZCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(l5),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),sae=kt(JCt),QCt=o.defineComponent({name:"GTabs"}),ewt=o.defineComponent({...QCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(e2),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),cae=kt(ewt),twt=o.defineComponent({name:"GTabPane"}),nwt=o.defineComponent({...twt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(t2),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),dae=kt(nwt),rwt=o.defineComponent({name:"GDialog"}),owt=o.defineComponent({...rwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(vz),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),uae=kt(owt),awt=o.defineComponent({name:"GTooltip"}),iwt=o.defineComponent({...awt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(To),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),fae=kt(iwt),lwt=o.defineComponent({name:"GWatermark"}),swt=o.defineComponent({...lwt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(D5),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),pae=kt(swt),cwt=o.defineComponent({name:"GPopover"}),dwt=o.defineComponent({...cwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(AC),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),hae=kt(dwt),uwt=o.defineComponent({name:"GDrawer"}),fwt=o.defineComponent({...uwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(bz),o.normalizeProps(o.guardReactiveProps(n.$attrs)),o.createSlots({_:2},[o.renderList(o.unref(t),(a,i)=>({name:i,fn:o.withCtx(l=>[o.renderSlot(n.$slots,i,o.normalizeProps(o.guardReactiveProps(l)))])}))]),1040))}}),mae=kt(fwt),pwt=o.defineComponent({name:"GSubMenu"}),hwt=o.defineComponent({...pwt,setup(e){const t=o.useSlots(),n=o.computed(()=>Object.keys(t).filter(r=>r!=="title"));return(r,a)=>(o.openBlock(),o.createBlock(o.unref(Xz),o.normalizeProps(o.guardReactiveProps(r.$attrs)),o.createSlots({default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>o.renderSlot(r.$slots,i,{key:i})),128))]),_:2},[o.unref(t).title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"title")]),key:"0"}:void 0]),1040))}}),gae=kt(hwt),mwt=o.defineComponent({name:"GMenu"}),gwt=o.defineComponent({...mwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(jz),o.normalizeProps(o.guardReactiveProps(n.$attrs)),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t),(a,i)=>o.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),vae=kt(gwt),vwt=o.defineComponent({name:"GMenuItem"}),ywt=o.defineComponent({...vwt,setup(e){const t=o.useSlots(),n=o.computed(()=>Object.keys(t).filter(r=>r!=="title"));return(r,a)=>(o.openBlock(),o.createBlock(o.unref(Yz),o.normalizeProps(o.guardReactiveProps(r.$attrs)),o.createSlots({default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,i=>o.renderSlot(r.$slots,i,{key:i})),128))]),_:2},[o.unref(t).title?{name:"title",fn:o.withCtx(()=>[o.renderSlot(r.$slots,"title")]),key:"0"}:void 0]),1040))}}),yae=kt(ywt),bwt=o.defineComponent({name:"GMenuItemGroup"}),Cwt=o.defineComponent({...bwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(qz),o.normalizeProps(o.guardReactiveProps(n.$attrs)),{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(t),(a,i)=>o.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),bae=kt(Cwt),wwt={class:"chart-container"},Cae=kt(nr({__name:"index",props:{dbOptions:{type:Object,required:!0,default:()=>({data:[],fieldMap:{fullCyclePlan:"fullCyclePlan",fullCycleDynamic:"fullCycleDynamic",plan:"plan",dynamic:"dynamic",offsetRatio:"offsetRatio"}})},fullCycleLabel:{type:String,default:"全周期"},actualLabel:{type:String,default:"累计至25年3月底已发生"}},setup(e){const t=e,n=o.ref(null);let r=null;const a=o.ref([]),i=o.ref({colorBlue:"",colorGreen:"",colorDeepGreen:"",colorRed:""});function l(u,f){const{data:p,fieldMap:h}=t.dbOptions,m=Math.floor(u.dataIndex),g=p[m],v=s(g,"plan"),y=s(g,"dynamic"),C=Math.min(v,y),b=Math.max(v,y),w=v>y,S=s(g,"offsetRatio"),x=f.coord([C,m*2])[0],_=f.coord([b,m*2])[0];let E=n.value.offsetHeight,k=Math.round(E/600*100)/100;const T=f.coord([0,m*2])[1]+60*k,D=T+10;let A="";const M=g.type==="revenue";let B=[];return w?(A=M?i.value.colorDeepGreen:i.value.colorRed,B=[{type:"line",shape:{x1:x,y1:T,x2:x,y2:D},style:{stroke:A,lineDash:[4,4]},z:10},{type:"line",shape:{x1:_,y1:T-50*k,x2:_,y2:D},style:{stroke:A,lineDash:[4,4]},z:10}]):(A=M?i.value.colorRed:i.value.colorDeepGreen,B=[{type:"line",shape:{x1:x,y1:T-50*k,x2:x,y2:D},style:{stroke:A,lineDash:[4,4]},z:10},{type:"line",shape:{x1:_,y1:T,x2:_,y2:D},style:{stroke:A,lineDash:[4,4]},z:10}]),{type:"group",z:10,children:[...B,{type:"polygon",shape:{points:[[x,D+6],[x,D-6],[_,D]]},style:{fill:A}},{type:"text",style:{text:`${S}%`,x:_+20,y:D-4,textAlign:"center",fill:A,font:"12px sans-serif"}}]}}const s=(u,f)=>{const{data:p,fieldMap:h}=t.dbOptions;return u[h[f]]},c=()=>{const{data:u,fieldMap:f}=t.dbOptions;if(!n.value||!(u!=null&&u.length)||!f)return;r?r.clear():r=QW(n.value);const p=u.map(v=>[`${v.name}(经营策划会)`,`${v.name}(动态版)`]).flat(),h=u.flatMap(v=>[s(v,"fullCyclePlan"),s(v,"fullCycleDynamic")]),m=u.flatMap(v=>[s(v,"plan"),s(v,"dynamic")]),g={legend:{show:!0,bottom:0,data:[t.fullCycleLabel,t.actualLabel]},grid:{left:140,right:30,top:20,bottom:50},tooltip:{trigger:"item",axisPointer:{type:"shadow"}},xAxis:{type:"value",axisLine:{show:!0}},yAxis:{type:"category",axisTick:{show:!1},axisLine:{show:!1},data:p,inverse:!0},series:[{name:t.fullCycleLabel,type:"bar",barWidth:12,barGap:"-100%",itemStyle:{color:i.value.colorGreen},data:h},{name:t.actualLabel,type:"bar",barWidth:12,itemStyle:{color:i.value.colorBlue},data:m},{name:"差值提示",type:"custom",itemStyle:{color:"purple"},z:10,tooltip:{show:!1},renderItem:l,data:u}]};r.setOption(g)};return(()=>{const u=document.documentElement;a.value=JSON.parse(getComputedStyle(u).getPropertyValue("--ui-chart-colors")),i.value.colorBlue=a.value[0],i.value.colorGreen=a.value[1],i.value.colorDeepGreen=getComputedStyle(u).getPropertyValue("--gui-color-success"),i.value.colorRed=getComputedStyle(u).getPropertyValue("--gui-color-danger")})(),o.onMounted(c),o.watch(()=>t.dbOptions,()=>c(),{deep:!0}),(u,f)=>(o.openBlock(),o.createElementBlock("div",wwt,[o.createElementVNode("div",{ref_key:"chartRef",ref:n,class:"chart"},null,512)]))}},[["__scopeId","data-v-68ef4da2"]])),Swt=An.state["gui-theme"]||"white-green";$2(Swt);const wae={GChart:xJ,GBarConv:Coe,GRankingList:_J,GRankingTable:EJ,GRankingCup:kJ,GRankingRb:TJ,GPieTable:boe,GReserve:DJ,GPlan:NJ,GNodeAchievement:OJ,GCashflow:RJ,GBar:PJ,GLine:$J,GBarLine:zJ,GPie:GJ,GRadar:KJ,GFunnel:qJ,GMap:JJ,GHeatmap:eQ,GTargetS:tQ,GTargetR:nQ,GTargetM:rQ,GBox:oQ,GBarCompare:iQ,GPieDistri:sQ,GTargetAchievement:cQ,GDatatable:goe,GTargetCurrent:voe,GTargetStruct:woe,GPieLevel:_oe,GCalendar:Eoe,GGauge:ZJ,GTargetDeviation:koe,GTargetGauge:Doe,GCompoPicker:Aoe,GDynamicTarget:Moe,GTargetCompleteRate:Cae,GButton:Ioe,GRow:Noe,GCol:Ooe,GInput:Boe,GButtonGroup:Roe,GRadio:Loe,GRadioButton:Poe,GRadioGroup:Voe,GCheckbox:$oe,GCheckboxGroup:Foe,GCheckboxButton:zoe,GDatePicker:Hoe,GSelect:Goe,GCascader:Woe,GCascaderPanel:Uoe,GOption:Koe,GOptionGroup:joe,GForm:Yoe,GFormItem:qoe,GSwitch:Xoe,GUpload:Zoe,GCard:Joe,GCarousel:Qoe,GCarouselItem:eae,GPagination:tae,GProgress:nae,GTable:rae,GTableColumn:oae,GTag:aae,GCheckTag:iae,GTree:lae,GTreeSelect:sae,GTabs:cae,GTabPane:dae,GDialog:uae,GTooltip:fae,GWatermark:pae,GPopover:hae,GDrawer:mae,GSubMenu:gae,GMenu:vae,GMenuItem:yae,GMenuItemGroup:bae},xwt=e=>{for(const t in wae)e.component(t,wae[t])},YR=(e,t)=>{xwt(e),e.use(COe,{locale:dBe})};typeof window<"u"&&window.Vue&&YR(window.Vue),typeof window<"u"&&window.baseURL&&YR(window.baseURL);const _wt={install:YR},Sae={setTheme:$2,getTheme:H5,getThemeList:DOe,getThemeConfig:Ut,setAjaxConfig:Pue,getAjaxConfig:Vue,loading:F2};globalThis.gui=Sae,st.DataSource=Sw,st.GBar=PJ,st.GBarCompare=iQ,st.GBarConv=Coe,st.GBarLine=zJ,st.GBox=oQ,st.GButton=Ioe,st.GButtonGroup=Roe,st.GCalendar=Eoe,st.GCard=Joe,st.GCarousel=Qoe,st.GCarouselItem=eae,st.GCascader=Woe,st.GCascaderPanel=Uoe,st.GCashflow=RJ,st.GChart=xJ,st.GCheckTag=iae,st.GCheckbox=$oe,st.GCheckboxButton=zoe,st.GCheckboxGroup=Foe,st.GCol=Ooe,st.GCompoPicker=Aoe,st.GDatatable=goe,st.GDatePicker=Hoe,st.GDialog=uae,st.GDrawer=mae,st.GDynamicTarget=Moe,st.GForm=Yoe,st.GFormItem=qoe,st.GFunnel=qJ,st.GGauge=ZJ,st.GHeatmap=eQ,st.GInput=Boe,st.GLine=$J,st.GMap=JJ,st.GMenu=vae,st.GMenuItem=yae,st.GMenuItemGroup=bae,st.GNodeAchievement=OJ,st.GOption=Koe,st.GOptionGroup=joe,st.GPagination=tae,st.GPie=GJ,st.GPieDistri=sQ,st.GPieLevel=_oe,st.GPieTable=boe,st.GPlan=NJ,st.GPopover=hae,st.GProgress=nae,st.GRadar=KJ,st.GRadio=Loe,st.GRadioButton=Poe,st.GRadioGroup=Voe,st.GRankingCup=kJ,st.GRankingList=_J,st.GRankingRb=TJ,st.GRankingTable=EJ,st.GReserve=DJ,st.GRow=Noe,st.GSelect=Goe,st.GSubMenu=gae,st.GSwitch=Xoe,st.GTabPane=dae,st.GTable=rae,st.GTableColumn=oae,st.GTabs=cae,st.GTag=aae,st.GTargetAchievement=cQ,st.GTargetCompleteRate=Cae,st.GTargetCurrent=voe,st.GTargetDeviation=koe,st.GTargetGauge=Doe,st.GTargetM=rQ,st.GTargetR=nQ,st.GTargetS=tQ,st.GTargetStruct=woe,st.GTooltip=fae,st.GTree=lae,st.GTreeSelect=sae,st.GUpload=Zoe,st.GWatermark=pae,st.Local=Su,st.Session=$ue,st.debounce=SE,st.default=_wt,st.formatNumber=Iue,st.gui=Sae,st.setTheme=$2,st.throttle=Nue,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|