g-ui-web 1.2.27 → 1.2.29

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 CHANGED
@@ -112422,7 +112422,7 @@ ${N.value}${(A == null ? void 0 : A.unit) || ""}`;
112422
112422
  key: 0,
112423
112423
  class: "more",
112424
112424
  onClick: Lt((ce) => e.isDia ? T(ne) : ne.showAll = !ne.showAll, ["stop"])
112425
- }, Me(ne.showAll ? "收起" : "+" + (ne.todoList.length - 5)), 9, Qwt)) : ie("", !0)
112425
+ }, Me(ne.showAll ? "收起" : "+" + (ne.todoList.length - 4)), 9, Qwt)) : ie("", !0)
112426
112426
  ])) : ie("", !0)
112427
112427
  ], 64))), 128))
112428
112428
  ])), 64))
@@ -112455,7 +112455,7 @@ ${N.value}${(A == null ? void 0 : A.unit) || ""}`;
112455
112455
  ]);
112456
112456
  };
112457
112457
  }
112458
- }), tSt = /* @__PURE__ */ Br(eSt, [["__scopeId", "data-v-ecf2d0c8"]]), nSt = Xt(tSt), rSt = { class: "line-inbox" }, aSt = { class: "line-inbox-target" }, oSt = J({
112458
+ }), tSt = /* @__PURE__ */ Br(eSt, [["__scopeId", "data-v-62cdef8d"]]), nSt = Xt(tSt), rSt = { class: "line-inbox" }, aSt = { class: "line-inbox-target" }, oSt = J({
112459
112459
  name: "GTargetDeviation"
112460
112460
  }), iSt = /* @__PURE__ */ J({
112461
112461
  ...oSt,
Binary file
@@ -174,4 +174,4 @@ ${y.value}${(t==null?void 0:t.unit)||""}`,fontWeight:"bold"}}:{disabled:!0,scale
174
174
  ${I.value}${(T==null?void 0:T.unit)||""}`},emphasis:{label:{show:!0,formatter:I=>`${I.name}
175
175
  ${I.value}${(T==null?void 0:T.unit)||""}`}},data:f.value.series[0].data}]};w.value=null,b.value=[],C.value=0,f.value=N,k.setOption(N,!0)}else{w.value=A.dataIndex,b.value=[A.dataIndex];const N=f.value.series[0].data;((D=N[A.dataIndex])==null?void 0:D.children)&&N[A.dataIndex].children.length>0?(f.value=A_(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:T.title,unit:T==null?void 0:T.unit},A.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(M=>{M.label||(M.label={}),M.label.show=!0,M.label.formatter=B=>`${B.name}
176
176
  ${B.value}${(T==null?void 0:T.unit)||""}`,M.emphasis||(M.emphasis={}),M.emphasis.label||(M.emphasis.label={}),M.emphasis.label.show=!0,M.emphasis.label.formatter=B=>`${B.name}
177
- ${B.value}${(T==null?void 0:T.unit)||""}`}),k.setOption(f.value,!0),setTimeout(()=>{b.value.forEach((M,B)=>{B<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:B,dataIndex:M})})},100)):k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:A.dataIndex})}}}),k.on("finished",function(){w.value!==null&&setTimeout(()=>{b.value.forEach((A,D)=>{A!==void 0&&D<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:D,dataIndex:A})})},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(A=>A.field===l.value);f.value=A_(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(A=>setTimeout(A,200)),b.value.forEach((A,D)=>{A!==void 0&&D<f.value.series.length&&k.dispatchAction({type:"highlight",seriesIndex:D,dataIndex:A})})}}};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 N,I;const T=o.resolveComponent("g-radio-button"),A=o.resolveComponent("g-radio-group"),D=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-pie-level",d.value])},[((I=(N=i.dbOptions)==null?void 0:N.dataFields)==null?void 0:I.length)>0?(o.openBlock(),o.createBlock(A,{key:0,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=M=>l.value=M),onChange:x},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.dbOptions.dataFields,M=>(o.openBlock(),o.createBlock(T,{label:M,value:M},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(D,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)}}}),Eoe=Et(Zn(_bt,[["__scopeId","data-v-5e5e514d"]])),Ebt={class:"g-calendar"},kbt={class:"g-calendar-header"},Tbt={class:"date-box"},Abt={key:0,class:"switch-box"},Dbt={key:0,class:"todoList"},Nbt={class:"popover-inbox"},Mbt=["onClick"],Obt={key:1,class:"el-calendar-year"},Ibt={class:"inbox"},Bbt={key:0,class:"todoListY"},Rbt={class:"popover-inbox"},Lbt=["onClick"],koe=Et(Zn(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:{}},monthValue:{type:String,default:()=>bt().format("YYYY-MM")},yearValue:{type:String,default:()=>bt().format("YYYY")}},emits:["update:monthValue","update:yearValue","changeMonth","changeYear"],setup(e,{emit:t}){const n=e,r=o.ref({}),a=o.ref(),i=o.ref(new Date(n.monthValue)),l=o.ref(n.dateType),s=o.ref(""),c=o.ref(n.monthValue),d=[{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"}],u=t,f=o.computed({get:()=>n.monthValue,set:I=>u("update:monthValue",I)}),p=o.computed({get:()=>n.yearValue,set:I=>u("update:yearValue",I)}),h=o.ref(null),m=o.ref(bt().format("YYYY-MM-DD")),g=o.ref([]),v=o.ref([]),y=o.ref(!1),C=o.ref([]),b=o.ref(""),w=I=>{n.dateType=I,l.value=I,i.value=new Date,S(I),g.value.forEach(M=>{M.showAll=!1}),v.value.forEach(M=>{M.showAll=!1})},S=I=>{I=="month"?f.value=n.monthValue:(p.value=n.yearValue,s.value=n.yearValue)},x=I=>{f.value=I,i.value=bt(I).toDate(),u("changeMonth",I)},_=I=>{p.value=I,s.value=I,u("changeYear",I)},E=()=>{h.value&&h.value.length>0?h.value.map(I=>{I.hide()}):h.value&&!Array.isArray(h.value)&&h.value.hide()},k=I=>{b.value="日期:"+I[n.dbOptions.dateField],C.value=I.todoList,y.value=!0},T=()=>{},A=I=>I.reduce((B,P)=>{const L=B.find(R=>R[n.dbOptions.dateField]===P[n.dbOptions.dateField]);return L?L.todoList.push(P):B.push({[n.dbOptions.dateField]:P[n.dbOptions.dateField],showAll:!1,todoList:[P]}),B},[]),D=async I=>{g.value=A(I),v.value=N(I)},N=I=>I.map(P=>(P.newDate=P[n.dbOptions.dateField].slice(0,-3),P)).reduce((P,L)=>{const R=P.find(V=>V[n.dbOptions.dateField]===L.newDate);return R?R.todoList.push(L):P.push({[n.dbOptions.dateField]:L.newDate,showAll:!1,todoList:[L]}),P},[]);return o.watch(()=>n.dbOptions.data,I=>{r.value=Ct(I);const M=["http://","https://",void 0];I&&(!I.path&&!I.dsKey&&!r.value.dataUrl&&!(typeof I=="string"&&M.some(B=>I.includes(B)))&&r.value.loadStaticData(I),(typeof I=="string"||I.path)&&r.value.reload(I.data))},{deep:!0}),o.watch(()=>n.dateType,I=>{l.value=I,S(n.dateType)},{deep:!0}),o.nextTick(async()=>{r.value=Ct(n.dbOptions.data),r.value.on("load",I=>{D(I)})}),o.onMounted(()=>{o.nextTick(()=>{S(n.dateType)})}),(I,M)=>{const B=o.resolveComponent("g-date-picker"),P=o.resolveComponent("el-radio-button"),L=o.resolveComponent("el-radio-group"),R=o.resolveComponent("Close"),V=o.resolveComponent("el-icon"),$=o.resolveComponent("g-table-column"),H=o.resolveComponent("g-table"),z=o.resolveComponent("el-dialog");return o.openBlock(),o.createElementBlock("div",Ebt,[o.createElementVNode("div",kbt,[o.createElementVNode("div",Tbt,[l.value=="month"?(o.openBlock(),o.createBlock(B,{key:0,modelValue:f.value,"onUpdate:modelValue":M[0]||(M[0]=U=>f.value=U),style:{width:"120px"},type:"month",placeholder:"选择月份","value-format":"YYYY-MM",onChange:x},null,8,["modelValue"])):o.createCommentVNode("",!0),l.value=="year"?(o.openBlock(),o.createBlock(B,{key:1,modelValue:p.value,"onUpdate:modelValue":M[1]||(M[1]=U=>p.value=U),style:{width:"120px"},type:"year",placeholder:"选择年份","value-format":"YYYY",onChange:_},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:o.normalizeClass(e.isRadio?"legend-box small-legend":"legend-box")},[o.renderSlot(I.$slots,"legend",{},void 0,!0)],2),e.isRadio?(o.openBlock(),o.createElementBlock("div",Abt,[o.createVNode(L,{modelValue:l.value,"onUpdate:modelValue":M[2]||(M[2]=U=>l.value=U),onChange:w},{default:o.withCtx(()=>[o.createVNode(P,{label:"按月",value:"month"}),o.createVNode(P,{label:"按年",value:"year"})]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0)]),l.value=="month"?(o.openBlock(),o.createBlock(o.unref(tF),{key:0,modelValue:i.value,"onUpdate:modelValue":M[3]||(M[3]=U=>i.value=U),ref_key:"calendar",ref:a},{"date-cell":o.withCtx(({data:U})=>[o.createElementVNode("span",{class:o.normalizeClass(m.value==U.day?"selectedStyle":"")},o.toDisplayString(U.day.split("-").slice(2).join("-")),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,Y=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:Y},[Y[e.dbOptions.dateField]==U.day?(o.openBlock(),o.createElementBlock("div",Dbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.todoList.slice(0,Y.showAll?Y.todoList.length:2),te=>(o.openBlock(),o.createElementBlock("div",{class:"item",key:te,onClick:o.withModifiers(T,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(DC),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:h,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(I.$slots,"todo",{data:te},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",Nbt,[o.createVNode(V,{class:"icon",size:"16",onClick:o.withModifiers(E,["stop"])},{default:o.withCtx(()=>[o.createVNode(R)]),_:1}),o.renderSlot(I.$slots,"todo-dialog",{data:te},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(I.$slots,"todo",{key:1,data:te},void 0,!0)]))),128)),Y.todoList.length>2?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(te=>e.isDia?k(Y):Y.showAll=!Y.showAll,["stop"])},o.toDisplayString(Y.showAll?"收起":"+"+(Y.todoList.length-2)),9,Mbt)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue"])):o.createCommentVNode("",!0),l.value=="year"?(o.openBlock(),o.createElementBlock("div",Obt,[o.createElementVNode("div",Ibt,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(d,U=>o.createElementVNode("div",{class:"item",key:U.value},[o.createElementVNode("span",{class:o.normalizeClass(c.value==`${s.value}-${U.value}`?"month-header selectedStyle":"month-header")},[o.createElementVNode("span",null,o.toDisplayString(U.name),1),o.renderSlot(I.$slots,"monthHeader",{data:U},void 0,!0)],2),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(v.value,Y=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:Y},[Y[e.dbOptions.dateField]==`${s.value}-${U.value}`?(o.openBlock(),o.createElementBlock("div",Bbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.todoList.slice(0,Y.showAll?Y.todoList.length:4),te=>(o.openBlock(),o.createElementBlock("div",{class:"itemBox",key:te,onClick:o.withModifiers(T,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(DC),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:h,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(I.$slots,"todo",{data:te},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",Rbt,[o.createVNode(V,{class:"icon",size:"16",onClick:o.withModifiers(E,["stop"])},{default:o.withCtx(()=>[o.createVNode(R)]),_:1}),o.renderSlot(I.$slots,"todo-dialog",{data:te},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(I.$slots,"todo",{key:1,data:te},void 0,!0)]))),128)),Y.todoList.length>4?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(te=>e.isDia?k(Y):Y.showAll=!Y.showAll,["stop"])},o.toDisplayString(Y.showAll?"收起":"+"+(Y.todoList.length-5)),9,Lbt)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))])),64))])])):o.createCommentVNode("",!0),o.createVNode(z,{modelValue:y.value,"onUpdate:modelValue":M[4]||(M[4]=U=>y.value=U),title:b.value,border:"","align-center":!0},{default:o.withCtx(()=>[o.createVNode(H,{data:C.value,width:"100%"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dbOptions.columns,U=>(o.openBlock(),o.createBlock($,{align:"center",prop:U.field,label:U.title+(U.unit||"")},null,8,["prop","label"]))),256))]),_:1},8,["data"])]),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-ecf2d0c8"]])),Vbt={class:"line-inbox"},Pbt={class:"line-inbox-target"},$bt=o.defineComponent({name:"GTargetDeviation"}),Fbt=o.defineComponent({...$bt,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=Dn.state;const r=Rt();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",Vbt,[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",Pbt,[(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)}}}),Toe=Et(Zn(Fbt,[["__scopeId","data-v-9bc90b2c"]])),zbt=Rt(),D_=document.documentElement,Hbt=e=>e||"",Gbt=(e,t,n,r)=>({backgroundColor:zbt.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(D_).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(D_).getPropertyValue("--gui-text-color-regular"),offsetCenter:[0,"-110%"]},detail:{color:getComputedStyle(D_).getPropertyValue(`--gui-color-${r}`),fontSize:24,formatter:function(a){return a+Hbt(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(D_).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"}]}]}),Aoe=(e,t,n,r,a)=>{const i=o.ref({});return i.value=Hn({},Gbt(t,n,r,a),e),{...o.toRefs(i.value)}},Wbt={class:"g-target-gauge"},Ubt=o.defineComponent({name:"GTargetGauge"}),Kbt=o.defineComponent({...Ubt,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=Rt();let a=Dn.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(),_r(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=Aoe(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=Aoe(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",Wbt,[(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=Et(Zn(Kbt,[["__scopeId","data-v-8416064f"]])),jbt={key:0,class:"compo-picker-label-box"},Ybt={key:1,class:"compo-picker-label-box"},qbt={key:2,class:"compo-picker-label-box"},Xbt={key:3,class:"compo-picker-label-box"},Zbt=o.defineComponent({name:"GCompoPicker"}),Jbt=o.defineComponent({...Zbt,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",jbt,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",Ybt,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",qbt,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",Xbt,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"]))}}),Noe=Et(Jbt),Qbt={class:"title"},eCt={class:"tList"},tCt={class:"field"},nCt={key:0,class:"unit"},rCt={key:1,class:"trend"},oCt=o.defineComponent({name:"GDynamicTarget"}),aCt=o.defineComponent({...oCt,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(Rt());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",Qbt,o.toDisplayString(n.title),1),o.createElementVNode("div",eCt,[(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",tCt,o.toDisplayString(d.text),1),d.unit?(o.openBlock(),o.createElementBlock("div",nCt,o.toDisplayString(d.unit),1)):o.createCommentVNode("",!0),d.isTrend?(o.openBlock(),o.createElementBlock("div",rCt,[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=Et(Zn(aCt,[["__scopeId","data-v-310a60aa"]])),iCt={class:"g-text-select"},lCt={class:"el-dropdown-link"},sCt={class:"g-text-select-title"},Ooe=Et(o.defineComponent({__name:"index",props:{width:{type:String,default:"auto"},height:{type:String,default:"auto"},value:{type:String,default:"请选择"}},setup(e){const t=o.useSlots(),n=o.ref(!1),r=a=>{n.value=a};return(a,i)=>{const l=o.resolveComponent("arrow-down"),s=o.resolveComponent("arrow-up"),c=o.resolveComponent("el-icon"),d=o.resolveComponent("el-tree"),u=o.resolveComponent("el-dropdown");return o.openBlock(),o.createElementBlock("div",iCt,[o.createVNode(u,{trigger:"click",placement:"bottom-start",onVisibleChange:r},{dropdown:o.withCtx(()=>[o.createVNode(d,o.mergeProps({class:"custom-tree",style:{width:e.width,padding:"5px",height:e.height},"highlight-current":!0},a.$attrs),o.createSlots({_:2},[o.renderList(o.unref(t),(f,p)=>({name:p,fn:o.withCtx(h=>[o.renderSlot(a.$slots,p,o.normalizeProps(o.guardReactiveProps(h)))])}))]),1040,["style"])]),default:o.withCtx(()=>[o.createElementVNode("span",lCt,[o.createElementVNode("span",sCt,o.toDisplayString(e.value),1),o.createVNode(c,{class:"el-icon--right"},{default:o.withCtx(()=>[n.value?(o.openBlock(),o.createBlock(s,{key:1})):(o.openBlock(),o.createBlock(l,{key:0}))]),_:1})])]),_:3})])}}})),cCt=o.defineComponent({name:"GRow"}),dCt=o.defineComponent({...cCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(s3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Ioe=Et(dCt),uCt=o.defineComponent({name:"GCol"}),fCt=o.defineComponent({...uCt,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))}}),Boe=Et(fCt),pCt=o.defineComponent({name:"GButton"}),hCt=o.defineComponent({...pCt,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))}}),Roe=Et(hCt),mCt=o.defineComponent({name:"GInput"}),gCt=o.defineComponent({...mCt,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))}}),Loe=Et(gCt),vCt=o.defineComponent({name:"GButtonGroup"}),yCt=o.defineComponent({...vCt,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))}}),Voe=Et(yCt),bCt=o.defineComponent({name:"GRadio"}),CCt=o.defineComponent({...bCt,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))}}),Poe=Et(CCt),wCt=o.defineComponent({name:"GRadioButton"}),SCt=o.defineComponent({...wCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(SF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),$oe=Et(SCt),xCt=o.defineComponent({name:"GRadioGroup"}),_Ct=o.defineComponent({...xCt,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))}}),Foe=Et(_Ct),ECt=o.defineComponent({name:"GCheckbox"}),kCt=o.defineComponent({...ECt,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))}}),zoe=Et(kCt),TCt=o.defineComponent({name:"GCheckboxGroup"}),ACt=o.defineComponent({...TCt,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))}}),Hoe=Et(ACt),DCt=o.defineComponent({name:"GCheckboxButton"}),NCt=o.defineComponent({...DCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(hF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Goe=Et(NCt),MCt=o.defineComponent({name:"GDatePicker"}),OCt=o.defineComponent({...MCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(dz),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Woe=Et(OCt),ICt=o.defineComponent({name:"GSelect"}),BCt=o.defineComponent({...ICt,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))}}),Uoe=Et(BCt),RCt=o.defineComponent({name:"GCascader"}),LCt=o.defineComponent({...RCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(AF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),Koe=Et(LCt),VCt=o.defineComponent({name:"GCascaderPanel"}),PCt=o.defineComponent({...VCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Tk),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),joe=Et(PCt),$Ct=o.defineComponent({name:"GOption"}),FCt=o.defineComponent({...$Ct,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"]))}}),Yoe=Et(FCt),zCt=o.defineComponent({name:"GOptionGroup"}),HCt=o.defineComponent({...zCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(n3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),qoe=Et(HCt),GCt=o.defineComponent({name:"GForm"}),WCt=o.defineComponent({...GCt,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))}}),Xoe=Et(WCt),UCt=o.defineComponent({name:"GFormItem"}),KCt=o.defineComponent({...UCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(zz),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Zoe=Et(KCt),jCt=o.defineComponent({name:"GSwitch"}),YCt=o.defineComponent({...jCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(O3),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=Et(YCt),qCt=o.defineComponent({name:"GUpload"}),XCt=o.defineComponent({...qCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(T5),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))}}),Qoe=Et(XCt),ZCt=o.defineComponent({name:"GCard"}),JCt=o.defineComponent({...ZCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(nF),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))}}),eae=Et(JCt),QCt=o.defineComponent({name:"GCarousel"}),ewt=o.defineComponent({...QCt,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))}}),tae=Et(ewt),twt=o.defineComponent({name:"GCarouselItem"}),nwt=o.defineComponent({...twt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(sF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),nae=Et(nwt),rwt=o.defineComponent({name:"GPagination"}),owt=o.defineComponent({...rwt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(o3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),rae=Et(owt),awt=o.defineComponent({name:"GProgress"}),iwt=o.defineComponent({...awt,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))}}),oae=Et(iwt),lwt=o.defineComponent({name:"GTable"}),swt=o.defineComponent({...lwt,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();_r(n.data)?r.value=!0:r.value=!1,o.watch(()=>n.data,s=>{if(_r(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(Rt)().name=="white-blue"?o.unref(el):o.unref(Rt)().name=="white-green"?o.unref(tl):o.unref(Rt)().name=="black-gold"?o.unref(nl):"","image-size":200}),null,16,["description","image"])],!0):o.createCommentVNode("",!0)],64)}}}),aae=Et(Zn(swt,[["__scopeId","data-v-26c049e7"]])),cwt=o.defineComponent({name:"GTableColumn"}),dwt=o.defineComponent({...cwt,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))}}),iae=Et(dwt),uwt=o.defineComponent({name:"GTag"}),fwt=o.defineComponent({...uwt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Du),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),lae=Et(fwt),pwt=o.defineComponent({name:"GCheckTag"}),hwt=o.defineComponent({...pwt,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))}}),sae=Et(hwt),mwt=o.defineComponent({name:"GTree"}),gwt=o.defineComponent({...mwt,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))}}),cae=Et(gwt),vwt=o.defineComponent({name:"GTreeSelect"}),ywt=o.defineComponent({...vwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(s5),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))}}),dae=Et(ywt),bwt=o.defineComponent({name:"GTabs"}),Cwt=o.defineComponent({...bwt,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))}}),uae=Et(Cwt),wwt=o.defineComponent({name:"GTabPane"}),Swt=o.defineComponent({...wwt,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))}}),fae=Et(Swt),xwt=o.defineComponent({name:"GDialog"}),_wt=o.defineComponent({...xwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(yz),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))}}),pae=Et(_wt),Ewt=o.defineComponent({name:"GTooltip"}),kwt=o.defineComponent({...Ewt,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))}}),hae=Et(kwt),Twt=o.defineComponent({name:"GWatermark"}),Awt=o.defineComponent({...Twt,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))}}),mae=Et(Awt),Dwt=o.defineComponent({name:"GPopover"}),Nwt=o.defineComponent({...Dwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(DC),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))}}),gae=Et(Nwt),Mwt=o.defineComponent({name:"GDrawer"}),Owt=o.defineComponent({...Mwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Cz),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))}}),vae=Et(Owt),Iwt=o.defineComponent({name:"GSubMenu"}),Bwt=o.defineComponent({...Iwt,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(Zz),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=Et(Bwt),Rwt=o.defineComponent({name:"GMenu"}),Lwt=o.defineComponent({...Rwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Yz),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=Et(Lwt),Vwt=o.defineComponent({name:"GMenuItem"}),Pwt=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(qz),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))}}),Cae=Et(Pwt),$wt=o.defineComponent({name:"GMenuItemGroup"}),Fwt=o.defineComponent({...$wt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Xz),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))}}),wae=Et(Fwt),zwt={class:"chart-container"},Sae=Et(Zn({__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}=t.dbOptions,h=Math.floor(u.dataIndex),m=p[h],g=s(m,"plan"),v=s(m,"dynamic"),y=s(m,"offsetRatio"),C=Math.min(g,v),b=Math.max(g,v),w=g>v,S=f.coord([C,h*2])[0],x=f.coord([b,h*2])[0],_=n.value.offsetHeight,E=p.length*2,k=_/E;function T(R){return R===1?.86:R===2?.88:R===3?.9:R===4?.96:R===5?1:.8}const A=T(p.length),D=f.coord([0,h*2])[1]+k*A,N=D+k*.15,I=m.type==="revenue",M=I?i.value.colorDeepGreen:i.value.colorRed,B=I?i.value.colorRed:i.value.colorDeepGreen,P=w?M:B;return{type:"group",z:10,children:[...w?[{type:"line",shape:{x1:S,y1:D,x2:S,y2:N},style:{stroke:P,lineDash:[4,4]},z:10},{type:"line",shape:{x1:x,y1:D-k*.8-10,x2:x,y2:N},style:{stroke:P,lineDash:[4,4]},z:10}]:[{type:"line",shape:{x1:S,y1:D-k*.8-10,x2:S,y2:N},style:{stroke:P,lineDash:[4,4]},z:10},{type:"line",shape:{x1:x,y1:D,x2:x,y2:N},style:{stroke:P,lineDash:[4,4]},z:10}],{type:"polygon",shape:{points:[[S,N+6],[S,N-6],[x,N]]},style:{fill:P}},{type:"text",style:{text:`${y}%`,x:x+20,y:N-4,textAlign:"center",fill:P,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=e9(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",zwt,[o.createElementVNode("div",{ref_key:"chartRef",ref:n,class:"chart"},null,512)]))}},[["__scopeId","data-v-8e22db05"]])),Hwt=Dn.state["gui-theme"]||"white-green";$2(Hwt);const xae={GChart:_J,GBarConv:woe,GRankingList:EJ,GRankingTable:kJ,GRankingCup:TJ,GRankingRb:AJ,GPieTable:Coe,GReserve:DJ,GPlan:OJ,GNodeAchievement:IJ,GCashflow:LJ,GBar:PJ,GLine:FJ,GBarLine:HJ,GPie:WJ,GRadar:jJ,GFunnel:XJ,GMap:QJ,GHeatmap:tQ,GTargetS:nQ,GTargetR:rQ,GTargetM:oQ,GBox:aQ,GBarCompare:lQ,GPieDistri:cQ,GTargetAchievement:dQ,GDatatable:voe,GMultipleDimensionTable:YR,GTargetCurrent:yoe,GTargetStruct:Soe,GPieLevel:Eoe,GCalendar:koe,GGauge:JJ,GTargetDeviation:Toe,GTargetGauge:Doe,GCompoPicker:Noe,GDynamicTarget:Moe,GTargetCompleteRate:Sae,GTextSelect:Ooe,GButton:Roe,GRow:Ioe,GCol:Boe,GInput:Loe,GButtonGroup:Voe,GRadio:Poe,GRadioButton:$oe,GRadioGroup:Foe,GCheckbox:zoe,GCheckboxGroup:Hoe,GCheckboxButton:Goe,GDatePicker:Woe,GSelect:Uoe,GCascader:Koe,GCascaderPanel:joe,GOption:Yoe,GOptionGroup:qoe,GForm:Xoe,GFormItem:Zoe,GSwitch:Joe,GUpload:Qoe,GCard:eae,GCarousel:tae,GCarouselItem:nae,GPagination:rae,GProgress:oae,GTable:aae,GTableColumn:iae,GTag:lae,GCheckTag:sae,GTree:cae,GTreeSelect:dae,GTabs:uae,GTabPane:fae,GDialog:pae,GTooltip:hae,GWatermark:mae,GPopover:gae,GDrawer:vae,GSubMenu:yae,GMenu:bae,GMenuItem:Cae,GMenuItemGroup:wae},Gwt=e=>{for(const t in xae)e.component(t,xae[t])},qR=(e,t)=>{Gwt(e),e.use(SOe,{locale:fBe})};typeof window<"u"&&window.Vue&&qR(window.Vue),typeof window<"u"&&window.baseURL&&qR(window.baseURL);const Wwt={install:qR},_ae={setTheme:$2,getTheme:G5,getThemeList:NOe,getThemeConfig:Rt,setAjaxConfig:$ue,getAjaxConfig:Fue,loading:F2};globalThis.gui=_ae,st.DataSource=Sw,st.GBar=PJ,st.GBarCompare=lQ,st.GBarConv=woe,st.GBarLine=HJ,st.GBox=aQ,st.GButton=Roe,st.GButtonGroup=Voe,st.GCalendar=koe,st.GCard=eae,st.GCarousel=tae,st.GCarouselItem=nae,st.GCascader=Koe,st.GCascaderPanel=joe,st.GCashflow=LJ,st.GChart=_J,st.GCheckTag=sae,st.GCheckbox=zoe,st.GCheckboxButton=Goe,st.GCheckboxGroup=Hoe,st.GCol=Boe,st.GCompoPicker=Noe,st.GDatatable=voe,st.GDatePicker=Woe,st.GDialog=pae,st.GDrawer=vae,st.GDynamicTarget=Moe,st.GForm=Xoe,st.GFormItem=Zoe,st.GFunnel=XJ,st.GGauge=JJ,st.GHeatmap=tQ,st.GInput=Loe,st.GLine=FJ,st.GMap=QJ,st.GMenu=bae,st.GMenuItem=Cae,st.GMenuItemGroup=wae,st.GMultipleDimensionTable=YR,st.GNodeAchievement=IJ,st.GOption=Yoe,st.GOptionGroup=qoe,st.GPagination=rae,st.GPie=WJ,st.GPieDistri=cQ,st.GPieLevel=Eoe,st.GPieTable=Coe,st.GPlan=OJ,st.GPopover=gae,st.GProgress=oae,st.GRadar=jJ,st.GRadio=Poe,st.GRadioButton=$oe,st.GRadioGroup=Foe,st.GRankingCup=TJ,st.GRankingList=EJ,st.GRankingRb=AJ,st.GRankingTable=kJ,st.GReserve=DJ,st.GRow=Ioe,st.GSelect=Uoe,st.GSubMenu=yae,st.GSwitch=Joe,st.GTabPane=fae,st.GTable=aae,st.GTableColumn=iae,st.GTabs=uae,st.GTag=lae,st.GTargetAchievement=dQ,st.GTargetCompleteRate=Sae,st.GTargetCurrent=yoe,st.GTargetDeviation=Toe,st.GTargetGauge=Doe,st.GTargetM=oQ,st.GTargetR=rQ,st.GTargetS=nQ,st.GTargetStruct=Soe,st.GTextSelect=Ooe,st.GTooltip=hae,st.GTree=cae,st.GTreeSelect=dae,st.GUpload=Qoe,st.GWatermark=mae,st.Local=Su,st.Session=zue,st.debounce=SE,st.default=Wwt,st.formatNumber=Rue,st.gui=_ae,st.setTheme=$2,st.throttle=Iue,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
177
+ ${B.value}${(T==null?void 0:T.unit)||""}`}),k.setOption(f.value,!0),setTimeout(()=>{b.value.forEach((M,B)=>{B<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:B,dataIndex:M})})},100)):k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:A.dataIndex})}}}),k.on("finished",function(){w.value!==null&&setTimeout(()=>{b.value.forEach((A,D)=>{A!==void 0&&D<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:D,dataIndex:A})})},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(A=>A.field===l.value);f.value=A_(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(A=>setTimeout(A,200)),b.value.forEach((A,D)=>{A!==void 0&&D<f.value.series.length&&k.dispatchAction({type:"highlight",seriesIndex:D,dataIndex:A})})}}};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 N,I;const T=o.resolveComponent("g-radio-button"),A=o.resolveComponent("g-radio-group"),D=o.resolveComponent("g-chart");return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["g-pie-level",d.value])},[((I=(N=i.dbOptions)==null?void 0:N.dataFields)==null?void 0:I.length)>0?(o.openBlock(),o.createBlock(A,{key:0,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=M=>l.value=M),onChange:x},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.dbOptions.dataFields,M=>(o.openBlock(),o.createBlock(T,{label:M,value:M},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])):o.createCommentVNode("",!0),(o.openBlock(),o.createBlock(D,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)}}}),Eoe=Et(Zn(_bt,[["__scopeId","data-v-5e5e514d"]])),Ebt={class:"g-calendar"},kbt={class:"g-calendar-header"},Tbt={class:"date-box"},Abt={key:0,class:"switch-box"},Dbt={key:0,class:"todoList"},Nbt={class:"popover-inbox"},Mbt=["onClick"],Obt={key:1,class:"el-calendar-year"},Ibt={class:"inbox"},Bbt={key:0,class:"todoListY"},Rbt={class:"popover-inbox"},Lbt=["onClick"],koe=Et(Zn(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:{}},monthValue:{type:String,default:()=>bt().format("YYYY-MM")},yearValue:{type:String,default:()=>bt().format("YYYY")}},emits:["update:monthValue","update:yearValue","changeMonth","changeYear"],setup(e,{emit:t}){const n=e,r=o.ref({}),a=o.ref(),i=o.ref(new Date(n.monthValue)),l=o.ref(n.dateType),s=o.ref(""),c=o.ref(n.monthValue),d=[{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"}],u=t,f=o.computed({get:()=>n.monthValue,set:I=>u("update:monthValue",I)}),p=o.computed({get:()=>n.yearValue,set:I=>u("update:yearValue",I)}),h=o.ref(null),m=o.ref(bt().format("YYYY-MM-DD")),g=o.ref([]),v=o.ref([]),y=o.ref(!1),C=o.ref([]),b=o.ref(""),w=I=>{n.dateType=I,l.value=I,i.value=new Date,S(I),g.value.forEach(M=>{M.showAll=!1}),v.value.forEach(M=>{M.showAll=!1})},S=I=>{I=="month"?f.value=n.monthValue:(p.value=n.yearValue,s.value=n.yearValue)},x=I=>{f.value=I,i.value=bt(I).toDate(),u("changeMonth",I)},_=I=>{p.value=I,s.value=I,u("changeYear",I)},E=()=>{h.value&&h.value.length>0?h.value.map(I=>{I.hide()}):h.value&&!Array.isArray(h.value)&&h.value.hide()},k=I=>{b.value="日期:"+I[n.dbOptions.dateField],C.value=I.todoList,y.value=!0},T=()=>{},A=I=>I.reduce((B,P)=>{const L=B.find(R=>R[n.dbOptions.dateField]===P[n.dbOptions.dateField]);return L?L.todoList.push(P):B.push({[n.dbOptions.dateField]:P[n.dbOptions.dateField],showAll:!1,todoList:[P]}),B},[]),D=async I=>{g.value=A(I),v.value=N(I)},N=I=>I.map(P=>(P.newDate=P[n.dbOptions.dateField].slice(0,-3),P)).reduce((P,L)=>{const R=P.find(V=>V[n.dbOptions.dateField]===L.newDate);return R?R.todoList.push(L):P.push({[n.dbOptions.dateField]:L.newDate,showAll:!1,todoList:[L]}),P},[]);return o.watch(()=>n.dbOptions.data,I=>{r.value=Ct(I);const M=["http://","https://",void 0];I&&(!I.path&&!I.dsKey&&!r.value.dataUrl&&!(typeof I=="string"&&M.some(B=>I.includes(B)))&&r.value.loadStaticData(I),(typeof I=="string"||I.path)&&r.value.reload(I.data))},{deep:!0}),o.watch(()=>n.dateType,I=>{l.value=I,S(n.dateType)},{deep:!0}),o.nextTick(async()=>{r.value=Ct(n.dbOptions.data),r.value.on("load",I=>{D(I)})}),o.onMounted(()=>{o.nextTick(()=>{S(n.dateType)})}),(I,M)=>{const B=o.resolveComponent("g-date-picker"),P=o.resolveComponent("el-radio-button"),L=o.resolveComponent("el-radio-group"),R=o.resolveComponent("Close"),V=o.resolveComponent("el-icon"),$=o.resolveComponent("g-table-column"),H=o.resolveComponent("g-table"),z=o.resolveComponent("el-dialog");return o.openBlock(),o.createElementBlock("div",Ebt,[o.createElementVNode("div",kbt,[o.createElementVNode("div",Tbt,[l.value=="month"?(o.openBlock(),o.createBlock(B,{key:0,modelValue:f.value,"onUpdate:modelValue":M[0]||(M[0]=U=>f.value=U),style:{width:"120px"},type:"month",placeholder:"选择月份","value-format":"YYYY-MM",onChange:x},null,8,["modelValue"])):o.createCommentVNode("",!0),l.value=="year"?(o.openBlock(),o.createBlock(B,{key:1,modelValue:p.value,"onUpdate:modelValue":M[1]||(M[1]=U=>p.value=U),style:{width:"120px"},type:"year",placeholder:"选择年份","value-format":"YYYY",onChange:_},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",{class:o.normalizeClass(e.isRadio?"legend-box small-legend":"legend-box")},[o.renderSlot(I.$slots,"legend",{},void 0,!0)],2),e.isRadio?(o.openBlock(),o.createElementBlock("div",Abt,[o.createVNode(L,{modelValue:l.value,"onUpdate:modelValue":M[2]||(M[2]=U=>l.value=U),onChange:w},{default:o.withCtx(()=>[o.createVNode(P,{label:"按月",value:"month"}),o.createVNode(P,{label:"按年",value:"year"})]),_:1},8,["modelValue"])])):o.createCommentVNode("",!0)]),l.value=="month"?(o.openBlock(),o.createBlock(o.unref(tF),{key:0,modelValue:i.value,"onUpdate:modelValue":M[3]||(M[3]=U=>i.value=U),ref_key:"calendar",ref:a},{"date-cell":o.withCtx(({data:U})=>[o.createElementVNode("span",{class:o.normalizeClass(m.value==U.day?"selectedStyle":"")},o.toDisplayString(U.day.split("-").slice(2).join("-")),3),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,Y=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:Y},[Y[e.dbOptions.dateField]==U.day?(o.openBlock(),o.createElementBlock("div",Dbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.todoList.slice(0,Y.showAll?Y.todoList.length:2),te=>(o.openBlock(),o.createElementBlock("div",{class:"item",key:te,onClick:o.withModifiers(T,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(DC),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:h,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(I.$slots,"todo",{data:te},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",Nbt,[o.createVNode(V,{class:"icon",size:"16",onClick:o.withModifiers(E,["stop"])},{default:o.withCtx(()=>[o.createVNode(R)]),_:1}),o.renderSlot(I.$slots,"todo-dialog",{data:te},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(I.$slots,"todo",{key:1,data:te},void 0,!0)]))),128)),Y.todoList.length>2?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(te=>e.isDia?k(Y):Y.showAll=!Y.showAll,["stop"])},o.toDisplayString(Y.showAll?"收起":"+"+(Y.todoList.length-2)),9,Mbt)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue"])):o.createCommentVNode("",!0),l.value=="year"?(o.openBlock(),o.createElementBlock("div",Obt,[o.createElementVNode("div",Ibt,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(d,U=>o.createElementVNode("div",{class:"item",key:U.value},[o.createElementVNode("span",{class:o.normalizeClass(c.value==`${s.value}-${U.value}`?"month-header selectedStyle":"month-header")},[o.createElementVNode("span",null,o.toDisplayString(U.name),1),o.renderSlot(I.$slots,"monthHeader",{data:U},void 0,!0)],2),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(v.value,Y=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:Y},[Y[e.dbOptions.dateField]==`${s.value}-${U.value}`?(o.openBlock(),o.createElementBlock("div",Bbt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Y.todoList.slice(0,Y.showAll?Y.todoList.length:4),te=>(o.openBlock(),o.createElementBlock("div",{class:"itemBox",key:te,onClick:o.withModifiers(T,["stop"])},[e.isPop?(o.openBlock(),o.createBlock(o.unref(DC),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:h,width:e.popWidth,trigger:"click"},{reference:o.withCtx(()=>[o.renderSlot(I.$slots,"todo",{data:te},void 0,!0)]),default:o.withCtx(()=>[o.createElementVNode("div",Rbt,[o.createVNode(V,{class:"icon",size:"16",onClick:o.withModifiers(E,["stop"])},{default:o.withCtx(()=>[o.createVNode(R)]),_:1}),o.renderSlot(I.$slots,"todo-dialog",{data:te},void 0,!0)])]),_:2},1032,["width"])):o.createCommentVNode("",!0),e.isPop?o.createCommentVNode("",!0):o.renderSlot(I.$slots,"todo",{key:1,data:te},void 0,!0)]))),128)),Y.todoList.length>4?(o.openBlock(),o.createElementBlock("div",{key:0,class:"more",onClick:o.withModifiers(te=>e.isDia?k(Y):Y.showAll=!Y.showAll,["stop"])},o.toDisplayString(Y.showAll?"收起":"+"+(Y.todoList.length-4)),9,Lbt)):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],64))),128))])),64))])])):o.createCommentVNode("",!0),o.createVNode(z,{modelValue:y.value,"onUpdate:modelValue":M[4]||(M[4]=U=>y.value=U),title:b.value,border:"","align-center":!0},{default:o.withCtx(()=>[o.createVNode(H,{data:C.value,width:"100%"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.dbOptions.columns,U=>(o.openBlock(),o.createBlock($,{align:"center",prop:U.field,label:U.title+(U.unit||"")},null,8,["prop","label"]))),256))]),_:1},8,["data"])]),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-62cdef8d"]])),Vbt={class:"line-inbox"},Pbt={class:"line-inbox-target"},$bt=o.defineComponent({name:"GTargetDeviation"}),Fbt=o.defineComponent({...$bt,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=Dn.state;const r=Rt();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",Vbt,[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",Pbt,[(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)}}}),Toe=Et(Zn(Fbt,[["__scopeId","data-v-9bc90b2c"]])),zbt=Rt(),D_=document.documentElement,Hbt=e=>e||"",Gbt=(e,t,n,r)=>({backgroundColor:zbt.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(D_).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(D_).getPropertyValue("--gui-text-color-regular"),offsetCenter:[0,"-110%"]},detail:{color:getComputedStyle(D_).getPropertyValue(`--gui-color-${r}`),fontSize:24,formatter:function(a){return a+Hbt(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(D_).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"}]}]}),Aoe=(e,t,n,r,a)=>{const i=o.ref({});return i.value=Hn({},Gbt(t,n,r,a),e),{...o.toRefs(i.value)}},Wbt={class:"g-target-gauge"},Ubt=o.defineComponent({name:"GTargetGauge"}),Kbt=o.defineComponent({...Ubt,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=Rt();let a=Dn.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(),_r(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=Aoe(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=Aoe(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",Wbt,[(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=Et(Zn(Kbt,[["__scopeId","data-v-8416064f"]])),jbt={key:0,class:"compo-picker-label-box"},Ybt={key:1,class:"compo-picker-label-box"},qbt={key:2,class:"compo-picker-label-box"},Xbt={key:3,class:"compo-picker-label-box"},Zbt=o.defineComponent({name:"GCompoPicker"}),Jbt=o.defineComponent({...Zbt,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",jbt,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",Ybt,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",qbt,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",Xbt,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"]))}}),Noe=Et(Jbt),Qbt={class:"title"},eCt={class:"tList"},tCt={class:"field"},nCt={key:0,class:"unit"},rCt={key:1,class:"trend"},oCt=o.defineComponent({name:"GDynamicTarget"}),aCt=o.defineComponent({...oCt,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(Rt());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",Qbt,o.toDisplayString(n.title),1),o.createElementVNode("div",eCt,[(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",tCt,o.toDisplayString(d.text),1),d.unit?(o.openBlock(),o.createElementBlock("div",nCt,o.toDisplayString(d.unit),1)):o.createCommentVNode("",!0),d.isTrend?(o.openBlock(),o.createElementBlock("div",rCt,[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=Et(Zn(aCt,[["__scopeId","data-v-310a60aa"]])),iCt={class:"g-text-select"},lCt={class:"el-dropdown-link"},sCt={class:"g-text-select-title"},Ooe=Et(o.defineComponent({__name:"index",props:{width:{type:String,default:"auto"},height:{type:String,default:"auto"},value:{type:String,default:"请选择"}},setup(e){const t=o.useSlots(),n=o.ref(!1),r=a=>{n.value=a};return(a,i)=>{const l=o.resolveComponent("arrow-down"),s=o.resolveComponent("arrow-up"),c=o.resolveComponent("el-icon"),d=o.resolveComponent("el-tree"),u=o.resolveComponent("el-dropdown");return o.openBlock(),o.createElementBlock("div",iCt,[o.createVNode(u,{trigger:"click",placement:"bottom-start",onVisibleChange:r},{dropdown:o.withCtx(()=>[o.createVNode(d,o.mergeProps({class:"custom-tree",style:{width:e.width,padding:"5px",height:e.height},"highlight-current":!0},a.$attrs),o.createSlots({_:2},[o.renderList(o.unref(t),(f,p)=>({name:p,fn:o.withCtx(h=>[o.renderSlot(a.$slots,p,o.normalizeProps(o.guardReactiveProps(h)))])}))]),1040,["style"])]),default:o.withCtx(()=>[o.createElementVNode("span",lCt,[o.createElementVNode("span",sCt,o.toDisplayString(e.value),1),o.createVNode(c,{class:"el-icon--right"},{default:o.withCtx(()=>[n.value?(o.openBlock(),o.createBlock(s,{key:1})):(o.openBlock(),o.createBlock(l,{key:0}))]),_:1})])]),_:3})])}}})),cCt=o.defineComponent({name:"GRow"}),dCt=o.defineComponent({...cCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(s3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Ioe=Et(dCt),uCt=o.defineComponent({name:"GCol"}),fCt=o.defineComponent({...uCt,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))}}),Boe=Et(fCt),pCt=o.defineComponent({name:"GButton"}),hCt=o.defineComponent({...pCt,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))}}),Roe=Et(hCt),mCt=o.defineComponent({name:"GInput"}),gCt=o.defineComponent({...mCt,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))}}),Loe=Et(gCt),vCt=o.defineComponent({name:"GButtonGroup"}),yCt=o.defineComponent({...vCt,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))}}),Voe=Et(yCt),bCt=o.defineComponent({name:"GRadio"}),CCt=o.defineComponent({...bCt,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))}}),Poe=Et(CCt),wCt=o.defineComponent({name:"GRadioButton"}),SCt=o.defineComponent({...wCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(SF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),$oe=Et(SCt),xCt=o.defineComponent({name:"GRadioGroup"}),_Ct=o.defineComponent({...xCt,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))}}),Foe=Et(_Ct),ECt=o.defineComponent({name:"GCheckbox"}),kCt=o.defineComponent({...ECt,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))}}),zoe=Et(kCt),TCt=o.defineComponent({name:"GCheckboxGroup"}),ACt=o.defineComponent({...TCt,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))}}),Hoe=Et(ACt),DCt=o.defineComponent({name:"GCheckboxButton"}),NCt=o.defineComponent({...DCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(hF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Goe=Et(NCt),MCt=o.defineComponent({name:"GDatePicker"}),OCt=o.defineComponent({...MCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(dz),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Woe=Et(OCt),ICt=o.defineComponent({name:"GSelect"}),BCt=o.defineComponent({...ICt,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))}}),Uoe=Et(BCt),RCt=o.defineComponent({name:"GCascader"}),LCt=o.defineComponent({...RCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(AF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),Koe=Et(LCt),VCt=o.defineComponent({name:"GCascaderPanel"}),PCt=o.defineComponent({...VCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Tk),o.normalizeProps(o.guardReactiveProps(t.$attrs)),null,16))}}),joe=Et(PCt),$Ct=o.defineComponent({name:"GOption"}),FCt=o.defineComponent({...$Ct,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"]))}}),Yoe=Et(FCt),zCt=o.defineComponent({name:"GOptionGroup"}),HCt=o.defineComponent({...zCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(n3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),qoe=Et(HCt),GCt=o.defineComponent({name:"GForm"}),WCt=o.defineComponent({...GCt,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))}}),Xoe=Et(WCt),UCt=o.defineComponent({name:"GFormItem"}),KCt=o.defineComponent({...UCt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(zz),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),Zoe=Et(KCt),jCt=o.defineComponent({name:"GSwitch"}),YCt=o.defineComponent({...jCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(O3),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=Et(YCt),qCt=o.defineComponent({name:"GUpload"}),XCt=o.defineComponent({...qCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(T5),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))}}),Qoe=Et(XCt),ZCt=o.defineComponent({name:"GCard"}),JCt=o.defineComponent({...ZCt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(nF),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))}}),eae=Et(JCt),QCt=o.defineComponent({name:"GCarousel"}),ewt=o.defineComponent({...QCt,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))}}),tae=Et(ewt),twt=o.defineComponent({name:"GCarouselItem"}),nwt=o.defineComponent({...twt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(sF),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),nae=Et(nwt),rwt=o.defineComponent({name:"GPagination"}),owt=o.defineComponent({...rwt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(o3),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),rae=Et(owt),awt=o.defineComponent({name:"GProgress"}),iwt=o.defineComponent({...awt,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))}}),oae=Et(iwt),lwt=o.defineComponent({name:"GTable"}),swt=o.defineComponent({...lwt,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();_r(n.data)?r.value=!0:r.value=!1,o.watch(()=>n.data,s=>{if(_r(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(Rt)().name=="white-blue"?o.unref(el):o.unref(Rt)().name=="white-green"?o.unref(tl):o.unref(Rt)().name=="black-gold"?o.unref(nl):"","image-size":200}),null,16,["description","image"])],!0):o.createCommentVNode("",!0)],64)}}}),aae=Et(Zn(swt,[["__scopeId","data-v-26c049e7"]])),cwt=o.defineComponent({name:"GTableColumn"}),dwt=o.defineComponent({...cwt,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))}}),iae=Et(dwt),uwt=o.defineComponent({name:"GTag"}),fwt=o.defineComponent({...uwt,setup(e){return(t,n)=>(o.openBlock(),o.createBlock(o.unref(Du),o.normalizeProps(o.guardReactiveProps(t.$attrs)),{default:o.withCtx(()=>[o.renderSlot(t.$slots,"default")]),_:3},16))}}),lae=Et(fwt),pwt=o.defineComponent({name:"GCheckTag"}),hwt=o.defineComponent({...pwt,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))}}),sae=Et(hwt),mwt=o.defineComponent({name:"GTree"}),gwt=o.defineComponent({...mwt,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))}}),cae=Et(gwt),vwt=o.defineComponent({name:"GTreeSelect"}),ywt=o.defineComponent({...vwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(s5),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))}}),dae=Et(ywt),bwt=o.defineComponent({name:"GTabs"}),Cwt=o.defineComponent({...bwt,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))}}),uae=Et(Cwt),wwt=o.defineComponent({name:"GTabPane"}),Swt=o.defineComponent({...wwt,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))}}),fae=Et(Swt),xwt=o.defineComponent({name:"GDialog"}),_wt=o.defineComponent({...xwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(yz),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))}}),pae=Et(_wt),Ewt=o.defineComponent({name:"GTooltip"}),kwt=o.defineComponent({...Ewt,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))}}),hae=Et(kwt),Twt=o.defineComponent({name:"GWatermark"}),Awt=o.defineComponent({...Twt,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))}}),mae=Et(Awt),Dwt=o.defineComponent({name:"GPopover"}),Nwt=o.defineComponent({...Dwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(DC),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))}}),gae=Et(Nwt),Mwt=o.defineComponent({name:"GDrawer"}),Owt=o.defineComponent({...Mwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Cz),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))}}),vae=Et(Owt),Iwt=o.defineComponent({name:"GSubMenu"}),Bwt=o.defineComponent({...Iwt,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(Zz),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=Et(Bwt),Rwt=o.defineComponent({name:"GMenu"}),Lwt=o.defineComponent({...Rwt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Yz),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=Et(Lwt),Vwt=o.defineComponent({name:"GMenuItem"}),Pwt=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(qz),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))}}),Cae=Et(Pwt),$wt=o.defineComponent({name:"GMenuItemGroup"}),Fwt=o.defineComponent({...$wt,setup(e){const t=o.useSlots();return(n,r)=>(o.openBlock(),o.createBlock(o.unref(Xz),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))}}),wae=Et(Fwt),zwt={class:"chart-container"},Sae=Et(Zn({__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}=t.dbOptions,h=Math.floor(u.dataIndex),m=p[h],g=s(m,"plan"),v=s(m,"dynamic"),y=s(m,"offsetRatio"),C=Math.min(g,v),b=Math.max(g,v),w=g>v,S=f.coord([C,h*2])[0],x=f.coord([b,h*2])[0],_=n.value.offsetHeight,E=p.length*2,k=_/E;function T(R){return R===1?.86:R===2?.88:R===3?.9:R===4?.96:R===5?1:.8}const A=T(p.length),D=f.coord([0,h*2])[1]+k*A,N=D+k*.15,I=m.type==="revenue",M=I?i.value.colorDeepGreen:i.value.colorRed,B=I?i.value.colorRed:i.value.colorDeepGreen,P=w?M:B;return{type:"group",z:10,children:[...w?[{type:"line",shape:{x1:S,y1:D,x2:S,y2:N},style:{stroke:P,lineDash:[4,4]},z:10},{type:"line",shape:{x1:x,y1:D-k*.8-10,x2:x,y2:N},style:{stroke:P,lineDash:[4,4]},z:10}]:[{type:"line",shape:{x1:S,y1:D-k*.8-10,x2:S,y2:N},style:{stroke:P,lineDash:[4,4]},z:10},{type:"line",shape:{x1:x,y1:D,x2:x,y2:N},style:{stroke:P,lineDash:[4,4]},z:10}],{type:"polygon",shape:{points:[[S,N+6],[S,N-6],[x,N]]},style:{fill:P}},{type:"text",style:{text:`${y}%`,x:x+20,y:N-4,textAlign:"center",fill:P,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=e9(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",zwt,[o.createElementVNode("div",{ref_key:"chartRef",ref:n,class:"chart"},null,512)]))}},[["__scopeId","data-v-8e22db05"]])),Hwt=Dn.state["gui-theme"]||"white-green";$2(Hwt);const xae={GChart:_J,GBarConv:woe,GRankingList:EJ,GRankingTable:kJ,GRankingCup:TJ,GRankingRb:AJ,GPieTable:Coe,GReserve:DJ,GPlan:OJ,GNodeAchievement:IJ,GCashflow:LJ,GBar:PJ,GLine:FJ,GBarLine:HJ,GPie:WJ,GRadar:jJ,GFunnel:XJ,GMap:QJ,GHeatmap:tQ,GTargetS:nQ,GTargetR:rQ,GTargetM:oQ,GBox:aQ,GBarCompare:lQ,GPieDistri:cQ,GTargetAchievement:dQ,GDatatable:voe,GMultipleDimensionTable:YR,GTargetCurrent:yoe,GTargetStruct:Soe,GPieLevel:Eoe,GCalendar:koe,GGauge:JJ,GTargetDeviation:Toe,GTargetGauge:Doe,GCompoPicker:Noe,GDynamicTarget:Moe,GTargetCompleteRate:Sae,GTextSelect:Ooe,GButton:Roe,GRow:Ioe,GCol:Boe,GInput:Loe,GButtonGroup:Voe,GRadio:Poe,GRadioButton:$oe,GRadioGroup:Foe,GCheckbox:zoe,GCheckboxGroup:Hoe,GCheckboxButton:Goe,GDatePicker:Woe,GSelect:Uoe,GCascader:Koe,GCascaderPanel:joe,GOption:Yoe,GOptionGroup:qoe,GForm:Xoe,GFormItem:Zoe,GSwitch:Joe,GUpload:Qoe,GCard:eae,GCarousel:tae,GCarouselItem:nae,GPagination:rae,GProgress:oae,GTable:aae,GTableColumn:iae,GTag:lae,GCheckTag:sae,GTree:cae,GTreeSelect:dae,GTabs:uae,GTabPane:fae,GDialog:pae,GTooltip:hae,GWatermark:mae,GPopover:gae,GDrawer:vae,GSubMenu:yae,GMenu:bae,GMenuItem:Cae,GMenuItemGroup:wae},Gwt=e=>{for(const t in xae)e.component(t,xae[t])},qR=(e,t)=>{Gwt(e),e.use(SOe,{locale:fBe})};typeof window<"u"&&window.Vue&&qR(window.Vue),typeof window<"u"&&window.baseURL&&qR(window.baseURL);const Wwt={install:qR},_ae={setTheme:$2,getTheme:G5,getThemeList:NOe,getThemeConfig:Rt,setAjaxConfig:$ue,getAjaxConfig:Fue,loading:F2};globalThis.gui=_ae,st.DataSource=Sw,st.GBar=PJ,st.GBarCompare=lQ,st.GBarConv=woe,st.GBarLine=HJ,st.GBox=aQ,st.GButton=Roe,st.GButtonGroup=Voe,st.GCalendar=koe,st.GCard=eae,st.GCarousel=tae,st.GCarouselItem=nae,st.GCascader=Koe,st.GCascaderPanel=joe,st.GCashflow=LJ,st.GChart=_J,st.GCheckTag=sae,st.GCheckbox=zoe,st.GCheckboxButton=Goe,st.GCheckboxGroup=Hoe,st.GCol=Boe,st.GCompoPicker=Noe,st.GDatatable=voe,st.GDatePicker=Woe,st.GDialog=pae,st.GDrawer=vae,st.GDynamicTarget=Moe,st.GForm=Xoe,st.GFormItem=Zoe,st.GFunnel=XJ,st.GGauge=JJ,st.GHeatmap=tQ,st.GInput=Loe,st.GLine=FJ,st.GMap=QJ,st.GMenu=bae,st.GMenuItem=Cae,st.GMenuItemGroup=wae,st.GMultipleDimensionTable=YR,st.GNodeAchievement=IJ,st.GOption=Yoe,st.GOptionGroup=qoe,st.GPagination=rae,st.GPie=WJ,st.GPieDistri=cQ,st.GPieLevel=Eoe,st.GPieTable=Coe,st.GPlan=OJ,st.GPopover=gae,st.GProgress=oae,st.GRadar=jJ,st.GRadio=Poe,st.GRadioButton=$oe,st.GRadioGroup=Foe,st.GRankingCup=TJ,st.GRankingList=EJ,st.GRankingRb=AJ,st.GRankingTable=kJ,st.GReserve=DJ,st.GRow=Ioe,st.GSelect=Uoe,st.GSubMenu=yae,st.GSwitch=Joe,st.GTabPane=fae,st.GTable=aae,st.GTableColumn=iae,st.GTabs=uae,st.GTag=lae,st.GTargetAchievement=dQ,st.GTargetCompleteRate=Sae,st.GTargetCurrent=yoe,st.GTargetDeviation=Toe,st.GTargetGauge=Doe,st.GTargetM=oQ,st.GTargetR=rQ,st.GTargetS=nQ,st.GTargetStruct=Soe,st.GTextSelect=Ooe,st.GTooltip=hae,st.GTree=cae,st.GTreeSelect=dae,st.GUpload=Qoe,st.GWatermark=mae,st.Local=Su,st.Session=zue,st.debounce=SE,st.default=Wwt,st.formatNumber=Rue,st.gui=_ae,st.setTheme=$2,st.throttle=Iue,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});