g-ui-web 1.2.9 → 1.2.11
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 +7 -5
- package/lib/g-ui-web.js.gz +0 -0
- package/lib/g-ui-web.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/package.json +1 -1
package/lib/g-ui-web.js
CHANGED
|
@@ -117370,9 +117370,11 @@ ${N.value}${(A == null ? void 0 : A.unit) || ""}`;
|
|
|
117370
117370
|
default: () => ({
|
|
117371
117371
|
data: [],
|
|
117372
117372
|
fieldMap: {
|
|
117373
|
-
|
|
117373
|
+
fullCyclePlan: "fullCyclePlan",
|
|
117374
|
+
fullCycleDynamic: "fullCycleDynamic",
|
|
117374
117375
|
plan: "plan",
|
|
117375
|
-
dynamic: "dynamic"
|
|
117376
|
+
dynamic: "dynamic",
|
|
117377
|
+
offsetRatio: "offsetRatio"
|
|
117376
117378
|
}
|
|
117377
117379
|
})
|
|
117378
117380
|
},
|
|
@@ -117395,7 +117397,7 @@ ${N.value}${(A == null ? void 0 : A.unit) || ""}`;
|
|
|
117395
117397
|
colorRed: ""
|
|
117396
117398
|
});
|
|
117397
117399
|
function i(c, d) {
|
|
117398
|
-
const { data: f, fieldMap: p } = t.dbOptions, h = Math.floor(c.dataIndex), v = f[h], g = s(v, "plan"), m = s(v, "dynamic"), _ = Math.min(g, m), b = Math.max(g, m), w = g > m, C =
|
|
117400
|
+
const { data: f, fieldMap: p } = t.dbOptions, h = Math.floor(c.dataIndex), v = f[h], g = s(v, "plan"), m = s(v, "dynamic"), _ = Math.min(g, m), b = Math.max(g, m), w = g > m, C = s(v, "offsetRatio"), x = d.coord([_, h * 2])[0], S = d.coord([b, h * 2])[0];
|
|
117399
117401
|
let E = r.value.offsetHeight, T = Math.round(E / 600 * 100) / 100;
|
|
117400
117402
|
const A = d.coord([0, h * 2])[1] + 60 * T, M = A + 10;
|
|
117401
117403
|
let k = "";
|
|
@@ -117498,7 +117500,7 @@ ${N.value}${(A == null ? void 0 : A.unit) || ""}`;
|
|
|
117498
117500
|
const { data: c, fieldMap: d } = t.dbOptions;
|
|
117499
117501
|
if (!r.value || !(c != null && c.length) || !d) return;
|
|
117500
117502
|
n ? n.clear() : n = nQ(r.value);
|
|
117501
|
-
const f = c.map((g) => [`${g.name}(经营策划会)`, `${g.name}(动态版)`]).flat(), p = c.flatMap((g) => [s(g, "
|
|
117503
|
+
const f = c.map((g) => [`${g.name}(经营策划会)`, `${g.name}(动态版)`]).flat(), p = c.flatMap((g) => [s(g, "fullCyclePlan"), s(g, "fullCycleDynamic")]), h = c.flatMap((g) => [s(g, "plan"), s(g, "dynamic")]), v = {
|
|
117502
117504
|
legend: {
|
|
117503
117505
|
show: !0,
|
|
117504
117506
|
bottom: 0,
|
|
@@ -117579,7 +117581,7 @@ ${N.value}${(A == null ? void 0 : A.unit) || ""}`;
|
|
|
117579
117581
|
}, null, 512)
|
|
117580
117582
|
]));
|
|
117581
117583
|
}
|
|
117582
|
-
}, rAt = /* @__PURE__ */ Hn(tAt, [["__scopeId", "data-v-
|
|
117584
|
+
}, rAt = /* @__PURE__ */ Hn(tAt, [["__scopeId", "data-v-68ef4da2"]]), nAt = Jt(rAt), aAt = cn.state["gui-theme"] || "white-green";
|
|
117583
117585
|
Oq(aAt);
|
|
117584
117586
|
const SW = {
|
|
117585
117587
|
GChart: wit,
|
package/lib/g-ui-web.js.gz
CHANGED
|
Binary file
|
package/lib/g-ui-web.umd.cjs
CHANGED
|
@@ -174,4 +174,4 @@ ${y.value}${(t==null?void 0:t.unit)||""}`,fontWeight:"bold"}}:{disabled:!0,scale
|
|
|
174
174
|
${V.value}${(T==null?void 0:T.unit)||""}`},emphasis:{label:{show:!0,formatter:V=>`${V.name}
|
|
175
175
|
${V.value}${(T==null?void 0:T.unit)||""}`}},data:f.value.series[0].data}]};w.value=null,b.value=[],_.value=0,f.value=D,k.setOption(D,!0)}else{w.value=M.dataIndex,b.value=[M.dataIndex];const D=f.value.series[0].data;((A=D[M.dataIndex])==null?void 0:A.children)&&D[M.dataIndex].children.length>0?(f.value=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:T.title,unit:T==null?void 0:T.unit},M.dataIndex,b.value),f.value.series&&f.value.series.length>1&&(b.value[1]=0),await r.nextTick(),f.value&&f.value.series&&f.value.series.forEach(B=>{B.label||(B.label={}),B.label.show=!0,B.label.formatter=O=>`${O.name}
|
|
176
176
|
${O.value}${(T==null?void 0:T.unit)||""}`,B.emphasis||(B.emphasis={}),B.emphasis.label||(B.emphasis.label={}),B.emphasis.label.show=!0,B.emphasis.label.formatter=O=>`${O.name}
|
|
177
|
-
${O.value}${(T==null?void 0:T.unit)||""}`}),k.setOption(f.value,!0),setTimeout(()=>{b.value.forEach((B,O)=>{O<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:O,dataIndex:B})})},100)):k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:M.dataIndex})}}}),k.on("finished",function(){w.value!==null&&setTimeout(()=>{b.value.forEach((M,A)=>{M!==void 0&&A<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:M})})},100)}))})},x=async()=>{const E={seriesIndex:_.value,dataIndex:w.value,levelIndexes:[...b.value]};if(s.value++,i.dbOptions.dataField=l.value,v.value=_t(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 C(),E.dataIndex!==null){w.value=E.dataIndex;const T=i.dbOptions.columns.find(M=>M.field===l.value);f.value=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},E.dataIndex,E.levelIndexes),await r.nextTick(),k.setOption(f.value,!0),b.value=E.levelIndexes,_.value=E.seriesIndex,await new Promise(M=>setTimeout(M,200)),b.value.forEach((M,A)=>{M!==void 0&&A<f.value.series.length&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:M})})}}};r.onMounted(async()=>{await C()}),r.watch(()=>i.dbOptions.data,E=>{v.value=_t(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}),r.watch(()=>i.dbOptions.dataFields,async E=>{if(!E)return;const k={seriesIndex:_.value,dataIndex:w.value,levelIndexes:[...b.value]};l.value=E[0],await r.nextTick(),u.value&&k.dataIndex!==null&&u.value.myChart.dispatchAction({type:"highlight",seriesIndex:k.seriesIndex,dataIndex:k.dataIndex})},{deep:!0,immediate:!0}),r.watch(()=>o["gui-theme"],async E=>{v.value=null,r.nextTick(async()=>{s.value++,v.value=_t(i.dbOptions.data),y(v.value.data),v.value.on("load",k=>{y(k)})})},{deep:!0}),r.nextTick(async()=>{v.value=_t(i.dbOptions.data),v.value.on("load",E=>{y(E)})}),t({props:i});const S=E=>{a("chart-click",E)};return(E,k)=>{var D,V;const T=r.resolveComponent("g-radio-button"),M=r.resolveComponent("g-radio-group"),A=r.resolveComponent("g-chart");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["g-pie-level",d.value])},[((V=(D=i.dbOptions)==null?void 0:D.dataFields)==null?void 0:V.length)>0?(r.openBlock(),r.createBlock(M,{key:0,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=B=>l.value=B),onChange:x},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.dbOptions.dataFields,B=>(r.openBlock(),r.createBlock(T,{label:B,value:B},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(A,r.mergeProps({options:f.value},E.$attrs,{ref_key:"pieChartRef",ref:u,isEmpty:c.value,description:e.description,onClick:S,key:r.unref(s)}),null,16,["options","isEmpty","description"]))],2)}}}),Uoe=kt(nr(w3t,[["__scopeId","data-v-5e5e514d"]])),C3t={class:"g-calendar"},x3t={class:"g-calendar-header"},S3t={class:"switch-box"},E3t={class:"switch-box1"},k3t={class:"switch-box2"},T3t={key:0,class:"todoList"},M3t={class:"popover-inbox"},A3t=["onClick"],D3t={key:1,class:"el-calendar-year"},N3t={class:"inbox"},B3t={key:0,class:"todoListY"},O3t={class:"popover-inbox"},V3t=["onClick"],Koe=kt(nr(r.defineComponent({__name:"index",props:{popWidth:{type:Number,default:200},isPop:{type:Boolean,default:!0},isDia:{type:Boolean,default:!1},isRadio:{type:Boolean,default:!0},dateType:{type:String,default:"month"},dbOptions:{type:Object,default:{}}},setup(e){const t=e,n=r.ref(bt().format("YYYY-MM")),o=r.ref(bt().format("YYYY")),a=r.ref({}),i=r.ref(),l=r.ref(new Date),s=r.ref(t.dateType),c=r.ref(""),d=r.ref(bt().format("YYYY-MM")),u=[{name:"1月",value:"01"},{name:"2月",value:"02"},{name:"3月",value:"03"},{name:"4月",value:"04"},{name:"5月",value:"05"},{name:"6月",value:"06"},{name:"7月",value:"07"},{name:"8月",value:"08"},{name:"9月",value:"09"},{name:"10月",value:"10"},{name:"11月",value:"11"},{name:"12月",value:"12"}],f=r.ref(null),p=r.ref(bt().format("YYYY-MM-DD")),h=r.ref([]),m=r.ref([]),g=r.ref(!1),v=r.ref([]),y=r.ref(""),_=A=>{t.dateType=A,s.value=A,l.value=new Date,b(A),h.value.forEach(D=>{D.showAll=!1}),m.value.forEach(D=>{D.showAll=!1})},b=A=>{A=="month"?n.value=bt().format("YYYY-MM"):(o.value=bt().format("YYYY"),c.value=bt().format("YYYY"))},w=A=>{l.value=A},C=A=>{c.value=A},x=()=>{f.value&&f.value.length>0?f.value.map(A=>{A.hide()}):f.value&&!Array.isArray(f.value)&&f.value.hide()},S=A=>{y.value="日期:"+A[t.dbOptions.dateField],v.value=A.todoList,g.value=!0},E=()=>{},k=A=>A.reduce((V,B)=>{const O=V.find(L=>L[t.dbOptions.dateField]===B[t.dbOptions.dateField]);return O?O.todoList.push(B):V.push({[t.dbOptions.dateField]:B[t.dbOptions.dateField],showAll:!1,todoList:[B]}),V},[]),T=async A=>{h.value=k(A),m.value=M(A)},M=A=>A.map(B=>(B.newDate=B[t.dbOptions.dateField].slice(0,-3),B)).reduce((B,O)=>{const L=B.find(R=>R[t.dbOptions.dateField]===O.newDate);return L?L.todoList.push(O):B.push({[t.dbOptions.dateField]:O.newDate,showAll:!1,todoList:[O]}),B},[]);return r.watch(()=>t.dbOptions.data,A=>{a.value=_t(A);const D=["http://","https://",void 0];A&&(!A.path&&!A.dsKey&&!a.value.dataUrl&&!(typeof A=="string"&&D.some(V=>A.includes(V)))&&a.value.loadStaticData(A),(typeof A=="string"||A.path)&&a.value.reload(A.data))},{deep:!0}),r.nextTick(async()=>{a.value=_t(t.dbOptions.data),a.value.on("load",A=>{T(A)})}),r.onMounted(()=>{r.nextTick(()=>{b(t.dateType)})}),(A,D)=>{const V=r.resolveComponent("g-date-picker"),B=r.resolveComponent("el-radio-button"),O=r.resolveComponent("el-radio-group"),L=r.resolveComponent("Close"),R=r.resolveComponent("el-icon"),I=r.resolveComponent("g-table-column"),$=r.resolveComponent("g-table"),z=r.resolveComponent("el-dialog");return r.openBlock(),r.createElementBlock("div",C3t,[r.createElementVNode("div",x3t,[r.createElementVNode("div",S3t,[s.value=="month"?(r.openBlock(),r.createBlock(V,{key:0,modelValue:n.value,"onUpdate:modelValue":D[0]||(D[0]=W=>n.value=W),style:{width:"120px"},type:"month",placeholder:"选择月份","value-format":"YYYY-MM",onChange:w},null,8,["modelValue"])):r.createCommentVNode("",!0),s.value=="year"?(r.openBlock(),r.createBlock(V,{key:1,modelValue:o.value,"onUpdate:modelValue":D[1]||(D[1]=W=>o.value=W),style:{width:"120px"},type:"year",placeholder:"选择年份","value-format":"YYYY",onChange:C},null,8,["modelValue"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",E3t,[r.renderSlot(A.$slots,"legend",{},void 0,!0)]),r.createElementVNode("div",k3t,[e.isRadio?(r.openBlock(),r.createBlock(O,{key:0,modelValue:s.value,"onUpdate:modelValue":D[2]||(D[2]=W=>s.value=W),onChange:_},{default:r.withCtx(()=>[r.createVNode(B,{label:"按月",value:"month"}),r.createVNode(B,{label:"按年",value:"year"})]),_:1},8,["modelValue"])):r.createCommentVNode("",!0)])]),s.value=="month"?(r.openBlock(),r.createBlock(r.unref(wI),{key:0,modelValue:l.value,"onUpdate:modelValue":D[3]||(D[3]=W=>l.value=W),ref_key:"calendar",ref:i},{"date-cell":r.withCtx(({data:W})=>[r.createElementVNode("span",{class:r.normalizeClass(p.value==W.day?"selectedStyle":"")},r.toDisplayString(W.day.split("-").slice(2).join("-")),3),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,H=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:H},[H[e.dbOptions.dateField]==W.day?(r.openBlock(),r.createElementBlock("div",T3t,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:2),q=>(r.openBlock(),r.createElementBlock("div",{class:"item",key:q,onClick:r.withModifiers(E,["stop"])},[e.isPop?(r.openBlock(),r.createBlock(r.unref(O2),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:r.withCtx(()=>[r.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",M3t,[r.createVNode(R,{class:"icon",size:"16",onClick:r.withModifiers(x,["stop"])},{default:r.withCtx(()=>[r.createVNode(L)]),_:1}),r.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):r.createCommentVNode("",!0),e.isPop?r.createCommentVNode("",!0):r.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>2?(r.openBlock(),r.createElementBlock("div",{key:0,class:"more",onClick:r.withModifiers(q=>e.isDia?S(H):H.showAll=!H.showAll,["stop"])},r.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-2)),9,A3t)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue"])):r.createCommentVNode("",!0),s.value=="year"?(r.openBlock(),r.createElementBlock("div",D3t,[r.createElementVNode("div",N3t,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(u,W=>r.createElementVNode("div",{class:"item",key:W.value},[r.createElementVNode("span",{class:r.normalizeClass(d.value==`${c.value}-${W.value}`?"date selectedStyle":"date")},r.toDisplayString(W.name),3),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.value,H=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:H},[H[e.dbOptions.dateField]==`${c.value}-${W.value}`?(r.openBlock(),r.createElementBlock("div",B3t,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:5),q=>(r.openBlock(),r.createElementBlock("div",{class:"itemBox",key:q,onClick:r.withModifiers(E,["stop"])},[e.isPop?(r.openBlock(),r.createBlock(r.unref(O2),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:r.withCtx(()=>[r.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",O3t,[r.createVNode(R,{class:"icon",size:"16",onClick:r.withModifiers(x,["stop"])},{default:r.withCtx(()=>[r.createVNode(L)]),_:1}),r.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):r.createCommentVNode("",!0),e.isPop?r.createCommentVNode("",!0):r.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>5?(r.openBlock(),r.createElementBlock("div",{key:0,class:"more",onClick:r.withModifiers(q=>e.isDia?S(H):H.showAll=!H.showAll,["stop"])},r.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-5)),9,V3t)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],64))),128))])),64))])])):r.createCommentVNode("",!0),r.createVNode(z,{modelValue:g.value,"onUpdate:modelValue":D[4]||(D[4]=W=>g.value=W),title:y.value,border:"","align-center":!0},{default:r.withCtx(()=>[r.createVNode($,{data:v.value,width:"100%"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.dbOptions.columns,W=>(r.openBlock(),r.createBlock(I,{align:"center",prop:W.field,label:W.title+(W.unit||"")},null,8,["prop","label"]))),256))]),_:1},8,["data"])]),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-f55f455f"]])),I3t={class:"line-inbox"},R3t={class:"line-inbox-target"},L3t=r.defineComponent({name:"GTargetDeviation"}),P3t=r.defineComponent({...L3t,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}){r.useCssVars(_=>({a98fe928:h.value}));let n=An.state;const o=Ut();let a=r.ref(0);const i=e,l=r.ref(0),s=r.ref(0),c=r.ref(null),d=r.computed(()=>`line-inbox-max-${i.type}`),u=r.computed(()=>`line-inbox-min-${i.type}`),f=r.computed(()=>`line-inbox-max-progress-${i.type}`),p=r.computed(()=>`g-target-deviation-${i.size}`),h=r.computed(()=>o.name&&typeof o.name=="string"&&o.name.includes("white")?`var(--color-${i.type}-lights-4)`:`var(--color-${i.type}-lights-1)`),m=r.ref({data:0,title:"",unit:""}),g=r.ref({}),v=async _=>{y(_),a.value++},y=_=>{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=_[i.dbOptions.dataField],Number(_[i.dbOptions.dataField])>0?(s.value=Number(_[i.dbOptions.dataField])/Number(i.max)*100,l.value=0):(l.value=Math.abs(Number(_[i.dbOptions.dataField]))/Math.abs(Number(i.min))*100,s.value=0)};return r.watch(()=>i.dbOptions.data,_=>{g.value=_t(_);const b=["http://","https://",void 0];!_.path&&!_.dsKey&&!g.value.dataUrl&&!(typeof _=="string"&&b.some(w=>_.includes(w)))&&g.value.loadStaticData(_),(typeof _=="string"||_.path)&&g.value.reload(_.data)},{deep:!0}),r.watch(()=>n["gui-theme"],async _=>{g.value=null,r.nextTick(async()=>{g.value=_t(i.dbOptions.data),v(g.value.data),g.value.on("load",b=>{v(b)})})},{deep:!0}),r.nextTick(async()=>{g.value=_t(i.dbOptions.data),g.value.on("load",_=>{v(_)})}),t({props:i,targetDeviationRef:c}),(_,b)=>{const w=r.resolveComponent("g-target-s");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["g-target-deviation",p.value]),ref_key:"targetDeviationRef",ref:c},[r.createElementVNode("div",I3t,[b[0]||(b[0]=r.createElementVNode("div",{class:"line-inbox-num"},"0",-1)),r.createElementVNode("div",{class:r.normalizeClass(["line-inbox-min",u.value])},[r.createElementVNode("div",{class:"line-inbox-min-progress",style:r.normalizeStyle({width:l.value+"%"})},null,4)],2),b[1]||(b[1]=r.createElementVNode("div",{class:"line-inbox-segmentation"},[r.createElementVNode("div",{class:"top"}),r.createElementVNode("div",{class:"bottom"})],-1)),r.createElementVNode("div",{class:r.normalizeClass(["line-inbox-max",d.value])},[r.createElementVNode("div",{class:r.normalizeClass(["line-inbox-max-progress",f.value]),style:r.normalizeStyle({width:s.value+"%"})},null,6)],2),r.createElementVNode("div",R3t,[(r.openBlock(),r.createBlock(w,{key:r.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)}}}),joe=kt(nr(P3t,[["__scopeId","data-v-9bc90b2c"]])),$3t=Ut(),B4=document.documentElement,z3t=e=>e||"",F3t=(e,t,n,o)=>({backgroundColor:$3t.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(B4).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(B4).getPropertyValue("--gui-text-color-regular"),offsetCenter:[0,"-110%"]},detail:{color:getComputedStyle(B4).getPropertyValue(`--gui-color-${o}`),fontSize:24,formatter:function(a){return a+z3t(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(B4).getPropertyValue(`--gui-color-${o}`)}},axisLine:{roundCap:!1,lineStyle:{color:[[.5,getComputedStyle(document.documentElement).getPropertyValue(n)],[1,getComputedStyle(document.documentElement).getPropertyValue(`--gui-color-${o}`)]]}},data:[{value:100,name:"SCORE"}]}]}),Yoe=(e,t,n,o,a)=>{const i=r.ref({});return i.value=Hn({},F3t(t,n,o,a),e),{...r.toRefs(i.value)}},H3t={class:"g-target-gauge"},G3t=r.defineComponent({name:"GTargetGauge"}),W3t=r.defineComponent({...G3t,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 o=Ut();let a=An.state;const i=n,l=e,s=r.ref(),c=r.ref(!1);let d=r.ref(0),u=r.ref([]),f=l.options;const p=r.ref(null);let h=[],m={series:[{}]};const g=r.ref({}),v=()=>{h=[]},y=async b=>{if(v(),Ar(b)){c.value=!0;return}else c.value=!1;const w=qc(l.dbOptions.axisField);u.value=b,u.value&&l.dbOptions&&(u.value.map(x=>{let S={name:w=="function"?l.dbOptions.axisField(x):x[l.dbOptions.axisField],value:x[l.dbOptions.dataField]};h.push(S)}),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 C=l.dbOptions.columns.find(x=>x.field===l.dbOptions.dataField);f?s.value=Yoe(f,C.title,C==null?void 0:C.unit,o.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type):s.value=Yoe(m,C.title,C==null?void 0:C.unit,o.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type)};r.watch(()=>l.dbOptions.data,b=>{g.value=_t(b);const w=["http://","https://",void 0];!b.path&&!b.dsKey&&!g.value.dataUrl&&!(typeof b=="string"&&w.some(C=>b.includes(C)))&&g.value.loadStaticData(b),(typeof b=="string"||b.path)&&g.value.reload(b.data)},{deep:!0}),r.watch(()=>a["gui-theme"],async b=>{g.value=null,r.nextTick(async()=>{d++,g.value=_t(l.dbOptions.data),y(g.value.data),g.value.on("load",w=>{y(w)})})},{deep:!0}),r.nextTick(async()=>{g.value=_t(l.dbOptions.data),g.value.on("load",b=>{y(b)})}),t({props:l,targetGaugeRef:p});const _=b=>{i("chart-click",b)};return(b,w)=>{const C=r.resolveComponent("g-chart");return r.openBlock(),r.createElementBlock("div",H3t,[(r.openBlock(),r.createBlock(C,r.mergeProps({options:s.value},b.$attrs,{ref_key:"targetGaugeRef",ref:p,isEmpty:c.value,description:e.description,onClick:_,key:r.unref(d)}),null,16,["options","isEmpty","description"]))])}}}),qoe=kt(nr(W3t,[["__scopeId","data-v-8416064f"]])),U3t={key:0,class:"compo-picker-label-box"},K3t={key:1,class:"compo-picker-label-box"},j3t={key:2,class:"compo-picker-label-box"},Y3t={key:3,class:"compo-picker-label-box"},q3t=r.defineComponent({name:"GCompoPicker"}),X3t=r.defineComponent({...q3t,props:r.mergeModels({tabs:{type:Array,default:["table","line","bar","pie"]}},{modelValue:{default:"table",required:!1},modelModifiers:{}}),emits:r.mergeModels(["tab-change"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=r.useModel(e,"modelValue"),a=t,i=l=>{a("tab-change",l)};return(l,s)=>(r.openBlock(),r.createBlock(r.unref(i6),{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=c=>o.value=c),class:"compo-picker-tabs",onTabChange:i},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,c=>(r.openBlock(),r.createBlock(r.unref(l6),{name:c},{label:r.withCtx(()=>[c=="table"?(r.openBlock(),r.createElementBlock("span",U3t,s[1]||(s[1]=[r.createElementVNode("span",null,[r.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"},[r.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),r.createElementVNode("span",{class:"compo-picker-label"},"表格",-1)]))):r.createCommentVNode("",!0),c=="line"?(r.openBlock(),r.createElementBlock("span",K3t,s[2]||(s[2]=[r.createElementVNode("span",null,[r.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"},[r.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),r.createElementVNode("span",{class:"compo-picker-label"},"折线图",-1)]))):r.createCommentVNode("",!0),c=="bar"?(r.openBlock(),r.createElementBlock("span",j3t,s[3]||(s[3]=[r.createElementVNode("span",null,[r.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"},[r.createElementVNode("path",{d:"M1250.133333 1008.213333H29.866667v-56.32h1220.266666v56.32z","p-id":"1341"}),r.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),r.createElementVNode("span",{class:"compo-picker-label"},"柱状图",-1)]))):r.createCommentVNode("",!0),c=="pie"?(r.openBlock(),r.createElementBlock("span",Y3t,s[4]||(s[4]=[r.createElementVNode("span",null,[r.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"},[r.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),r.createElementVNode("span",{class:"compo-picker-label"},"饼图",-1)]))):r.createCommentVNode("",!0)]),_:2},1032,["name"]))),256))]),_:1},8,["modelValue"]))}}),Xoe=kt(X3t),Z3t={class:"title"},J3t={class:"tList"},Q3t={class:"field"},e6t={key:0,class:"unit"},t6t={key:1,class:"trend"},n6t=r.defineComponent({name:"GDynamicTarget"}),r6t=r.defineComponent({...n6t,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}){r.ref(Ut());const n=e,o=r.ref({});let a=r.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 r.watch(()=>n.dbOptions.data,s=>{o.value=_t(s);const c=["http://","https://",void 0];s&&(!s.path&&!s.dsKey&&!o.value.dataUrl&&!(typeof s=="string"&&c.some(d=>s.includes(d)))&&o.value.loadStaticData(s),(typeof s=="string"||typeof s=="object")&&(s.path||s.data&&typeof s.data=="string")&&o.value.reload(s.data||s))},{deep:!0}),r.nextTick(async()=>{o.value=_t(n.dbOptions.data),o.value.on("load",s=>{i(s)})}),t({props:n}),(s,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`g-dynamic-target g-dynamic-target-${n.type} g-dynamic-target-${n.size}`)},[r.createElementVNode("div",Z3t,r.toDisplayString(n.title),1),r.createElementVNode("div",J3t,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),(d,u)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["tItem",{"no-border":u===d.length-1}]),key:u},[r.createElementVNode("div",Q3t,r.toDisplayString(d.text),1),d.unit?(r.openBlock(),r.createElementBlock("div",e6t,r.toDisplayString(d.unit),1)):r.createCommentVNode("",!0),d.isTrend?(r.openBlock(),r.createElementBlock("div",t6t,[r.createElementVNode("i",{class:r.normalizeClass(d.trend=="up"?"iconfont icon-icon_xiangshang":"iconfont icon-icon_xiangxia")},null,2)])):r.createCommentVNode("",!0),c[0]||(c[0]=r.createElementVNode("div",{class:"line"},null,-1))],2))),128))])],2))}}),Zoe=kt(nr(r6t,[["__scopeId","data-v-310a60aa"]])),o6t=r.defineComponent({name:"GRow"}),a6t=r.defineComponent({...o6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(M9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Joe=kt(a6t),i6t=r.defineComponent({name:"GCol"}),l6t=r.defineComponent({...i6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(ZI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Qoe=kt(l6t),s6t=r.defineComponent({name:"GButton"}),c6t=r.defineComponent({...s6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(ao),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),eae=kt(c6t),d6t=r.defineComponent({name:"GInput"}),u6t=r.defineComponent({...d6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(Io),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),tae=kt(u6t),f6t=r.defineComponent({name:"GButtonGroup"}),p6t=r.defineComponent({...f6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(wS),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),nae=kt(p6t),h6t=r.defineComponent({name:"GRadio"}),m6t=r.defineComponent({...h6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(MS),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),rae=kt(m6t),g6t=r.defineComponent({name:"GRadioButton"}),v6t=r.defineComponent({...g6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(HI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),oae=kt(v6t),y6t=r.defineComponent({name:"GRadioGroup"}),b6t=r.defineComponent({...y6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(FI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),aae=kt(b6t),_6t=r.defineComponent({name:"GCheckbox"}),w6t=r.defineComponent({..._6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(Xa),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),iae=kt(w6t),C6t=r.defineComponent({name:"GCheckboxGroup"}),x6t=r.defineComponent({...C6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(TS),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),lae=kt(x6t),S6t=r.defineComponent({name:"GCheckboxButton"}),E6t=r.defineComponent({...S6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(VI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),sae=kt(E6t),k6t=r.defineComponent({name:"GDatePicker"}),T6t=r.defineComponent({...k6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(DR),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),cae=kt(T6t),M6t=r.defineComponent({name:"GSelect"}),A6t=r.defineComponent({...M6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(sd),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),dae=kt(A6t),D6t=r.defineComponent({name:"GCascader"}),N6t=r.defineComponent({...D6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(YI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),null,16))}}),uae=kt(N6t),B6t=r.defineComponent({name:"GCascaderPanel"}),O6t=r.defineComponent({...B6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(OS),r.normalizeProps(r.guardReactiveProps(t.$attrs)),null,16))}}),fae=kt(O6t),V6t=r.defineComponent({name:"GOption"}),I6t=r.defineComponent({...V6t,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)=>(r.openBlock(),r.createBlock(r.unref(u0),r.mergeProps({value:e.value,label:e.label,disabled:e.disabled},t.$attrs),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16,["value","label","disabled"]))}}),pae=kt(I6t),R6t=r.defineComponent({name:"GOptionGroup"}),L6t=r.defineComponent({...R6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(C9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),hae=kt(L6t),P6t=r.defineComponent({name:"GForm"}),$6t=r.defineComponent({...P6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(i9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),mae=kt($6t),z6t=r.defineComponent({name:"GFormItem"}),F6t=r.defineComponent({...z6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(l9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),gae=kt(F6t),H6t=r.defineComponent({name:"GSwitch"}),G6t=r.defineComponent({...H6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(J9),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),vae=kt(G6t),W6t=r.defineComponent({name:"GUpload"}),U6t=r.defineComponent({...W6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(jP),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),yae=kt(U6t),K6t=r.defineComponent({name:"GCard"}),j6t=r.defineComponent({...K6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(CI),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),bae=kt(j6t),Y6t=r.defineComponent({name:"GCarousel"}),q6t=r.defineComponent({...Y6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(TI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),_ae=kt(q6t),X6t=r.defineComponent({name:"GCarouselItem"}),Z6t=r.defineComponent({...X6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(MI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),wae=kt(Z6t),J6t=r.defineComponent({name:"GPagination"}),Q6t=r.defineComponent({...J6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(S9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Cae=kt(Q6t),eEt=r.defineComponent({name:"GProgress"}),tEt=r.defineComponent({...eEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(b3),r.mergeProps(n.$attrs,{"stroke-linecap":"butt"}),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),xae=kt(tEt),nEt=r.defineComponent({name:"GTable"}),rEt=r.defineComponent({...nEt,props:{data:{type:Array},emptyText:{type:String,default:"暂无数据"},textSize:{type:String,default:"sm"}},setup(e,{expose:t}){r.useCssVars(s=>({"365bc4bb":i.value}));const n=e,o=r.ref(!1),a=r.useSlots();Ar(n.data)?o.value=!0:o.value=!1,r.watch(()=>n.data,s=>{if(Ar(s)){o.value=!0;return}else o.value=!1});const i=r.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=r.ref();return t({elTableRef:l}),(s,c)=>{const d=r.resolveComponent("el-empty");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.withDirectives(r.createVNode(r.unref(Y3),r.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)"}}),r.createSlots({_:2},[r.renderList(r.unref(a),(u,f)=>({name:f,fn:r.withCtx(p=>[r.renderSlot(s.$slots,f,r.normalizeProps(r.guardReactiveProps(p)),void 0,!0)])}))]),1040,["data"]),[[r.vShow,!o.value]]),o.value?r.renderSlot(s.$slots,"empty",{key:0,class:"empty"},()=>[r.createVNode(d,r.mergeProps(s.$attrs,{description:e.emptyText,image:r.unref(Ut)().name=="white-blue"?r.unref(Fl):r.unref(Ut)().name=="white-green"?r.unref(Hl):r.unref(Ut)().name=="black-gold"?r.unref(Gl):"","image-size":200}),null,16,["description","image"])],!0):r.createCommentVNode("",!0)],64)}}}),Sae=kt(nr(rEt,[["__scopeId","data-v-26c049e7"]])),oEt=r.defineComponent({name:"GTableColumn"}),aEt=r.defineComponent({...oEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(q3),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Eae=kt(aEt),iEt=r.defineComponent({name:"GTag"}),lEt=r.defineComponent({...iEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(Au),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),kae=kt(lEt),sEt=r.defineComponent({name:"GCheckTag"}),cEt=r.defineComponent({...sEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(qI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Tae=kt(cEt),dEt=r.defineComponent({name:"GTree"}),uEt=r.defineComponent({...dEt,setup(e,{expose:t}){const n=r.useSlots(),o=r.ref(null);return t({ref:o}),(a,i)=>(r.openBlock(),r.createBlock(r.unref(A0),r.mergeProps({ref_key:"treeRef",ref:o},a.$attrs),r.createSlots({_:2},[r.renderList(r.unref(n),(l,s)=>({name:s,fn:r.withCtx(c=>[r.renderSlot(a.$slots,s,r.normalizeProps(r.guardReactiveProps(c)))])}))]),1040))}}),Mae=kt(uEt),fEt=r.defineComponent({name:"GTreeSelect"}),pEt=r.defineComponent({...fEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(MP),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Aae=kt(pEt),hEt=r.defineComponent({name:"GTabs"}),mEt=r.defineComponent({...hEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(i6),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Dae=kt(mEt),gEt=r.defineComponent({name:"GTabPane"}),vEt=r.defineComponent({...gEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(l6),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Nae=kt(vEt),yEt=r.defineComponent({name:"GDialog"}),bEt=r.defineComponent({...yEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(PR),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Bae=kt(bEt),_Et=r.defineComponent({name:"GTooltip"}),wEt=r.defineComponent({..._Et,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(To),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Oae=kt(wEt),CEt=r.defineComponent({name:"GWatermark"}),xEt=r.defineComponent({...CEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(qP),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Vae=kt(xEt),SEt=r.defineComponent({name:"GPopover"}),EEt=r.defineComponent({...SEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(O2),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Iae=kt(EEt),kEt=r.defineComponent({name:"GDrawer"}),TEt=r.defineComponent({...kEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(zR),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Rae=kt(TEt),MEt=r.defineComponent({name:"GSubMenu"}),AEt=r.defineComponent({...MEt,setup(e){const t=r.useSlots(),n=r.computed(()=>Object.keys(t).filter(o=>o!=="title"));return(o,a)=>(r.openBlock(),r.createBlock(r.unref(v9),r.normalizeProps(r.guardReactiveProps(o.$attrs)),r.createSlots({default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,i=>r.renderSlot(o.$slots,i,{key:i})),128))]),_:2},[r.unref(t).title?{name:"title",fn:r.withCtx(()=>[r.renderSlot(o.$slots,"title")]),key:"0"}:void 0]),1040))}}),Lae=kt(AEt),DEt=r.defineComponent({name:"GMenu"}),NEt=r.defineComponent({...DEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(h9),r.normalizeProps(r.guardReactiveProps(n.$attrs)),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t),(a,i)=>r.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),Pae=kt(NEt),BEt=r.defineComponent({name:"GMenuItem"}),OEt=r.defineComponent({...BEt,setup(e){const t=r.useSlots(),n=r.computed(()=>Object.keys(t).filter(o=>o!=="title"));return(o,a)=>(r.openBlock(),r.createBlock(r.unref(m9),r.normalizeProps(r.guardReactiveProps(o.$attrs)),r.createSlots({default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,i=>r.renderSlot(o.$slots,i,{key:i})),128))]),_:2},[r.unref(t).title?{name:"title",fn:r.withCtx(()=>[r.renderSlot(o.$slots,"title")]),key:"0"}:void 0]),1040))}}),$ae=kt(OEt),VEt=r.defineComponent({name:"GMenuItemGroup"}),IEt=r.defineComponent({...VEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(g9),r.normalizeProps(r.guardReactiveProps(n.$attrs)),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t),(a,i)=>r.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),zae=kt(IEt),REt={class:"chart-container"},Fae=kt(nr({__name:"index",props:{dbOptions:{type:Object,required:!0,default:()=>({data:[],fieldMap:{fullCycle:"fullCycle",plan:"plan",dynamic:"dynamic"}})},fullCycleLabel:{type:String,default:"全周期"},actualLabel:{type:String,default:"累计至25年3月底已发生"}},setup(e){const t=e,n=r.ref(null);let o=null;const a=r.ref([]),i=r.ref({colorBlue:"",colorGreen:"",colorDeepGreen:"",colorRed:""});function l(u,f){const{data:p,fieldMap:h}=t.dbOptions,m=Math.floor(u.dataIndex),g=p[m],v=s(g,"plan"),y=s(g,"dynamic"),_=Math.min(v,y),b=Math.max(v,y),w=v>y,C=v===0?0:((v-y)/v*100).toFixed(1),x=f.coord([_,m*2])[0],S=f.coord([b,m*2])[0];let E=n.value.offsetHeight,k=Math.round(E/600*100)/100;const T=f.coord([0,m*2])[1]+60*k,M=T+10;let A="";const D=g.type==="revenue";let V=[];return w?(A=D?i.value.colorDeepGreen:i.value.colorRed,V=[{type:"line",shape:{x1:x,y1:T,x2:x,y2:M},style:{stroke:A,lineDash:[4,4]},z:10},{type:"line",shape:{x1:S,y1:T-50*k,x2:S,y2:M},style:{stroke:A,lineDash:[4,4]},z:10}]):(A=D?i.value.colorRed:i.value.colorDeepGreen,V=[{type:"line",shape:{x1:x,y1:T-50*k,x2:x,y2:M},style:{stroke:A,lineDash:[4,4]},z:10},{type:"line",shape:{x1:S,y1:T,x2:S,y2:M},style:{stroke:A,lineDash:[4,4]},z:10}]),{type:"group",z:10,children:[...V,{type:"polygon",shape:{points:[[x,M+6],[x,M-6],[S,M]]},style:{fill:A}},{type:"text",style:{text:`${C}%`,x:S+20,y:M-4,textAlign:"center",fill:A,font:"12px sans-serif"}}]}}const s=(u,f)=>{const{data:p,fieldMap:h}=t.dbOptions;return u[h[f]]},c=()=>{const{data:u,fieldMap:f}=t.dbOptions;if(!n.value||!(u!=null&&u.length)||!f)return;o?o.clear():o=_W(n.value);const p=u.map(v=>[`${v.name}(经营策划会)`,`${v.name}(动态版)`]).flat(),h=u.flatMap(v=>[s(v,"fullCycle"),s(v,"fullCycle")]),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}]};o.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")})(),r.onMounted(c),r.watch(()=>t.dbOptions,()=>c(),{deep:!0}),(u,f)=>(r.openBlock(),r.createElementBlock("div",REt,[r.createElementVNode("div",{ref_key:"chartRef",ref:n,class:"chart"},null,512)]))}},[["__scopeId","data-v-a687503c"]])),LEt=An.state["gui-theme"]||"white-green";U6(LEt);const Hae={GChart:WJ,GBarConv:Foe,GRankingList:UJ,GRankingTable:KJ,GRankingCup:jJ,GRankingRb:YJ,GPieTable:zoe,GReserve:qJ,GPlan:JJ,GNodeAchievement:QJ,GCashflow:nQ,GBar:oQ,GLine:iQ,GBarLine:sQ,GPie:dQ,GRadar:pQ,GFunnel:gQ,GMap:bQ,GHeatmap:wQ,GTargetS:CQ,GTargetR:xQ,GTargetM:SQ,GBox:EQ,GBarCompare:TQ,GPieDistri:AQ,GTargetAchievement:DQ,GDatatable:Loe,GTargetCurrent:Poe,GTargetStruct:Hoe,GPieLevel:Uoe,GCalendar:Koe,GGauge:yQ,GTargetDeviation:joe,GTargetGauge:qoe,GCompoPicker:Xoe,GDynamicTarget:Zoe,GTargetCompleteRate:Fae,GButton:eae,GRow:Joe,GCol:Qoe,GInput:tae,GButtonGroup:nae,GRadio:rae,GRadioButton:oae,GRadioGroup:aae,GCheckbox:iae,GCheckboxGroup:lae,GCheckboxButton:sae,GDatePicker:cae,GSelect:dae,GCascader:uae,GCascaderPanel:fae,GOption:pae,GOptionGroup:hae,GForm:mae,GFormItem:gae,GSwitch:vae,GUpload:yae,GCard:bae,GCarousel:_ae,GCarouselItem:wae,GPagination:Cae,GProgress:xae,GTable:Sae,GTableColumn:Eae,GTag:kae,GCheckTag:Tae,GTree:Mae,GTreeSelect:Aae,GTabs:Dae,GTabPane:Nae,GDialog:Bae,GTooltip:Oae,GWatermark:Vae,GPopover:Iae,GDrawer:Rae,GSubMenu:Lae,GMenu:Pae,GMenuItem:$ae,ElMenuItemGroup:zae},PEt=e=>{for(const t in Hae)e.component(t,Hae[t])},$Et=e=>{for(const[t,n]of Object.entries(x_e))e.component(t,n)},eN=(e,t)=>{PEt(e),e.use(LRe,{locale:TLe}),$Et(e)};typeof window<"u"&&window.Vue&&eN(window.Vue),typeof window<"u"&&window.baseURL&&eN(window.baseURL);const zEt={install:eN},Gae={setTheme:U6,getTheme:c7,getThemeList:URe,getThemeConfig:Ut,setAjaxConfig:ofe,getAjaxConfig:afe,loading:K6};globalThis.gui=Gae,st.DataSource=kb,st.ElMenuItemGroup=zae,st.GBar=oQ,st.GBarCompare=TQ,st.GBarConv=Foe,st.GBarLine=sQ,st.GBox=EQ,st.GButton=eae,st.GButtonGroup=nae,st.GCalendar=Koe,st.GCard=bae,st.GCarousel=_ae,st.GCarouselItem=wae,st.GCascader=uae,st.GCascaderPanel=fae,st.GCashflow=nQ,st.GChart=WJ,st.GCheckTag=Tae,st.GCheckbox=iae,st.GCheckboxButton=sae,st.GCheckboxGroup=lae,st.GCol=Qoe,st.GCompoPicker=Xoe,st.GDatatable=Loe,st.GDatePicker=cae,st.GDialog=Bae,st.GDrawer=Rae,st.GDynamicTarget=Zoe,st.GForm=mae,st.GFormItem=gae,st.GFunnel=gQ,st.GGauge=yQ,st.GHeatmap=wQ,st.GInput=tae,st.GLine=iQ,st.GMap=bQ,st.GMenu=Pae,st.GMenuItem=$ae,st.GNodeAchievement=QJ,st.GOption=pae,st.GOptionGroup=hae,st.GPagination=Cae,st.GPie=dQ,st.GPieDistri=AQ,st.GPieLevel=Uoe,st.GPieTable=zoe,st.GPlan=JJ,st.GPopover=Iae,st.GProgress=xae,st.GRadar=pQ,st.GRadio=rae,st.GRadioButton=oae,st.GRadioGroup=aae,st.GRankingCup=jJ,st.GRankingList=UJ,st.GRankingRb=YJ,st.GRankingTable=KJ,st.GReserve=qJ,st.GRow=Joe,st.GSelect=dae,st.GSubMenu=Lae,st.GSwitch=vae,st.GTabPane=Nae,st.GTable=Sae,st.GTableColumn=Eae,st.GTabs=Dae,st.GTag=kae,st.GTargetAchievement=DQ,st.GTargetCompleteRate=Fae,st.GTargetCurrent=Poe,st.GTargetDeviation=joe,st.GTargetGauge=qoe,st.GTargetM=SQ,st.GTargetR=xQ,st.GTargetS=CQ,st.GTargetStruct=Hoe,st.GTooltip=Oae,st.GTree=Mae,st.GTreeSelect=Aae,st.GUpload=yae,st.GWatermark=Vae,st.Local=Cu,st.Session=ife,st.debounce=kx,st.default=zEt,st.formatNumber=efe,st.gui=Gae,st.setTheme=U6,st.throttle=Jue,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
177
|
+
${O.value}${(T==null?void 0:T.unit)||""}`}),k.setOption(f.value,!0),setTimeout(()=>{b.value.forEach((B,O)=>{O<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:O,dataIndex:B})})},100)):k.dispatchAction({type:"highlight",seriesIndex:0,dataIndex:M.dataIndex})}}}),k.on("finished",function(){w.value!==null&&setTimeout(()=>{b.value.forEach((M,A)=>{M!==void 0&&A<f.value.series.length-1&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:M})})},100)}))})},x=async()=>{const E={seriesIndex:_.value,dataIndex:w.value,levelIndexes:[...b.value]};if(s.value++,i.dbOptions.dataField=l.value,v.value=_t(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 C(),E.dataIndex!==null){w.value=E.dataIndex;const T=i.dbOptions.columns.find(M=>M.field===l.value);f.value=N4(f.value,{type:i.type,size:i.size,isMarkLine:i.isMarkLine,title:"",unit:T==null?void 0:T.unit},E.dataIndex,E.levelIndexes),await r.nextTick(),k.setOption(f.value,!0),b.value=E.levelIndexes,_.value=E.seriesIndex,await new Promise(M=>setTimeout(M,200)),b.value.forEach((M,A)=>{M!==void 0&&A<f.value.series.length&&k.dispatchAction({type:"highlight",seriesIndex:A,dataIndex:M})})}}};r.onMounted(async()=>{await C()}),r.watch(()=>i.dbOptions.data,E=>{v.value=_t(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}),r.watch(()=>i.dbOptions.dataFields,async E=>{if(!E)return;const k={seriesIndex:_.value,dataIndex:w.value,levelIndexes:[...b.value]};l.value=E[0],await r.nextTick(),u.value&&k.dataIndex!==null&&u.value.myChart.dispatchAction({type:"highlight",seriesIndex:k.seriesIndex,dataIndex:k.dataIndex})},{deep:!0,immediate:!0}),r.watch(()=>o["gui-theme"],async E=>{v.value=null,r.nextTick(async()=>{s.value++,v.value=_t(i.dbOptions.data),y(v.value.data),v.value.on("load",k=>{y(k)})})},{deep:!0}),r.nextTick(async()=>{v.value=_t(i.dbOptions.data),v.value.on("load",E=>{y(E)})}),t({props:i});const S=E=>{a("chart-click",E)};return(E,k)=>{var D,V;const T=r.resolveComponent("g-radio-button"),M=r.resolveComponent("g-radio-group"),A=r.resolveComponent("g-chart");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["g-pie-level",d.value])},[((V=(D=i.dbOptions)==null?void 0:D.dataFields)==null?void 0:V.length)>0?(r.openBlock(),r.createBlock(M,{key:0,modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=B=>l.value=B),onChange:x},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.dbOptions.dataFields,B=>(r.openBlock(),r.createBlock(T,{label:B,value:B},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])):r.createCommentVNode("",!0),(r.openBlock(),r.createBlock(A,r.mergeProps({options:f.value},E.$attrs,{ref_key:"pieChartRef",ref:u,isEmpty:c.value,description:e.description,onClick:S,key:r.unref(s)}),null,16,["options","isEmpty","description"]))],2)}}}),Uoe=kt(nr(w3t,[["__scopeId","data-v-5e5e514d"]])),C3t={class:"g-calendar"},x3t={class:"g-calendar-header"},S3t={class:"switch-box"},E3t={class:"switch-box1"},k3t={class:"switch-box2"},T3t={key:0,class:"todoList"},M3t={class:"popover-inbox"},A3t=["onClick"],D3t={key:1,class:"el-calendar-year"},N3t={class:"inbox"},B3t={key:0,class:"todoListY"},O3t={class:"popover-inbox"},V3t=["onClick"],Koe=kt(nr(r.defineComponent({__name:"index",props:{popWidth:{type:Number,default:200},isPop:{type:Boolean,default:!0},isDia:{type:Boolean,default:!1},isRadio:{type:Boolean,default:!0},dateType:{type:String,default:"month"},dbOptions:{type:Object,default:{}}},setup(e){const t=e,n=r.ref(bt().format("YYYY-MM")),o=r.ref(bt().format("YYYY")),a=r.ref({}),i=r.ref(),l=r.ref(new Date),s=r.ref(t.dateType),c=r.ref(""),d=r.ref(bt().format("YYYY-MM")),u=[{name:"1月",value:"01"},{name:"2月",value:"02"},{name:"3月",value:"03"},{name:"4月",value:"04"},{name:"5月",value:"05"},{name:"6月",value:"06"},{name:"7月",value:"07"},{name:"8月",value:"08"},{name:"9月",value:"09"},{name:"10月",value:"10"},{name:"11月",value:"11"},{name:"12月",value:"12"}],f=r.ref(null),p=r.ref(bt().format("YYYY-MM-DD")),h=r.ref([]),m=r.ref([]),g=r.ref(!1),v=r.ref([]),y=r.ref(""),_=A=>{t.dateType=A,s.value=A,l.value=new Date,b(A),h.value.forEach(D=>{D.showAll=!1}),m.value.forEach(D=>{D.showAll=!1})},b=A=>{A=="month"?n.value=bt().format("YYYY-MM"):(o.value=bt().format("YYYY"),c.value=bt().format("YYYY"))},w=A=>{l.value=A},C=A=>{c.value=A},x=()=>{f.value&&f.value.length>0?f.value.map(A=>{A.hide()}):f.value&&!Array.isArray(f.value)&&f.value.hide()},S=A=>{y.value="日期:"+A[t.dbOptions.dateField],v.value=A.todoList,g.value=!0},E=()=>{},k=A=>A.reduce((V,B)=>{const O=V.find(L=>L[t.dbOptions.dateField]===B[t.dbOptions.dateField]);return O?O.todoList.push(B):V.push({[t.dbOptions.dateField]:B[t.dbOptions.dateField],showAll:!1,todoList:[B]}),V},[]),T=async A=>{h.value=k(A),m.value=M(A)},M=A=>A.map(B=>(B.newDate=B[t.dbOptions.dateField].slice(0,-3),B)).reduce((B,O)=>{const L=B.find(R=>R[t.dbOptions.dateField]===O.newDate);return L?L.todoList.push(O):B.push({[t.dbOptions.dateField]:O.newDate,showAll:!1,todoList:[O]}),B},[]);return r.watch(()=>t.dbOptions.data,A=>{a.value=_t(A);const D=["http://","https://",void 0];A&&(!A.path&&!A.dsKey&&!a.value.dataUrl&&!(typeof A=="string"&&D.some(V=>A.includes(V)))&&a.value.loadStaticData(A),(typeof A=="string"||A.path)&&a.value.reload(A.data))},{deep:!0}),r.nextTick(async()=>{a.value=_t(t.dbOptions.data),a.value.on("load",A=>{T(A)})}),r.onMounted(()=>{r.nextTick(()=>{b(t.dateType)})}),(A,D)=>{const V=r.resolveComponent("g-date-picker"),B=r.resolveComponent("el-radio-button"),O=r.resolveComponent("el-radio-group"),L=r.resolveComponent("Close"),R=r.resolveComponent("el-icon"),I=r.resolveComponent("g-table-column"),$=r.resolveComponent("g-table"),z=r.resolveComponent("el-dialog");return r.openBlock(),r.createElementBlock("div",C3t,[r.createElementVNode("div",x3t,[r.createElementVNode("div",S3t,[s.value=="month"?(r.openBlock(),r.createBlock(V,{key:0,modelValue:n.value,"onUpdate:modelValue":D[0]||(D[0]=W=>n.value=W),style:{width:"120px"},type:"month",placeholder:"选择月份","value-format":"YYYY-MM",onChange:w},null,8,["modelValue"])):r.createCommentVNode("",!0),s.value=="year"?(r.openBlock(),r.createBlock(V,{key:1,modelValue:o.value,"onUpdate:modelValue":D[1]||(D[1]=W=>o.value=W),style:{width:"120px"},type:"year",placeholder:"选择年份","value-format":"YYYY",onChange:C},null,8,["modelValue"])):r.createCommentVNode("",!0)]),r.createElementVNode("div",E3t,[r.renderSlot(A.$slots,"legend",{},void 0,!0)]),r.createElementVNode("div",k3t,[e.isRadio?(r.openBlock(),r.createBlock(O,{key:0,modelValue:s.value,"onUpdate:modelValue":D[2]||(D[2]=W=>s.value=W),onChange:_},{default:r.withCtx(()=>[r.createVNode(B,{label:"按月",value:"month"}),r.createVNode(B,{label:"按年",value:"year"})]),_:1},8,["modelValue"])):r.createCommentVNode("",!0)])]),s.value=="month"?(r.openBlock(),r.createBlock(r.unref(wI),{key:0,modelValue:l.value,"onUpdate:modelValue":D[3]||(D[3]=W=>l.value=W),ref_key:"calendar",ref:i},{"date-cell":r.withCtx(({data:W})=>[r.createElementVNode("span",{class:r.normalizeClass(p.value==W.day?"selectedStyle":"")},r.toDisplayString(W.day.split("-").slice(2).join("-")),3),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,H=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:H},[H[e.dbOptions.dateField]==W.day?(r.openBlock(),r.createElementBlock("div",T3t,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:2),q=>(r.openBlock(),r.createElementBlock("div",{class:"item",key:q,onClick:r.withModifiers(E,["stop"])},[e.isPop?(r.openBlock(),r.createBlock(r.unref(O2),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:r.withCtx(()=>[r.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",M3t,[r.createVNode(R,{class:"icon",size:"16",onClick:r.withModifiers(x,["stop"])},{default:r.withCtx(()=>[r.createVNode(L)]),_:1}),r.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):r.createCommentVNode("",!0),e.isPop?r.createCommentVNode("",!0):r.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>2?(r.openBlock(),r.createElementBlock("div",{key:0,class:"more",onClick:r.withModifiers(q=>e.isDia?S(H):H.showAll=!H.showAll,["stop"])},r.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-2)),9,A3t)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],64))),128))]),_:3},8,["modelValue"])):r.createCommentVNode("",!0),s.value=="year"?(r.openBlock(),r.createElementBlock("div",D3t,[r.createElementVNode("div",N3t,[(r.openBlock(),r.createElementBlock(r.Fragment,null,r.renderList(u,W=>r.createElementVNode("div",{class:"item",key:W.value},[r.createElementVNode("span",{class:r.normalizeClass(d.value==`${c.value}-${W.value}`?"date selectedStyle":"date")},r.toDisplayString(W.name),3),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(m.value,H=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:H},[H[e.dbOptions.dateField]==`${c.value}-${W.value}`?(r.openBlock(),r.createElementBlock("div",B3t,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(H.todoList.slice(0,H.showAll?H.todoList.length:5),q=>(r.openBlock(),r.createElementBlock("div",{class:"itemBox",key:q,onClick:r.withModifiers(E,["stop"])},[e.isPop?(r.openBlock(),r.createBlock(r.unref(O2),{key:0,placement:"top",ref_for:!0,ref_key:"popRef",ref:f,width:e.popWidth,trigger:"click"},{reference:r.withCtx(()=>[r.renderSlot(A.$slots,"todo",{data:q},void 0,!0)]),default:r.withCtx(()=>[r.createElementVNode("div",O3t,[r.createVNode(R,{class:"icon",size:"16",onClick:r.withModifiers(x,["stop"])},{default:r.withCtx(()=>[r.createVNode(L)]),_:1}),r.renderSlot(A.$slots,"todo-dialog",{data:q},void 0,!0)])]),_:2},1032,["width"])):r.createCommentVNode("",!0),e.isPop?r.createCommentVNode("",!0):r.renderSlot(A.$slots,"todo",{key:1,data:q},void 0,!0)]))),128)),H.todoList.length>5?(r.openBlock(),r.createElementBlock("div",{key:0,class:"more",onClick:r.withModifiers(q=>e.isDia?S(H):H.showAll=!H.showAll,["stop"])},r.toDisplayString(H.showAll?"收起":"+"+(H.todoList.length-5)),9,V3t)):r.createCommentVNode("",!0)])):r.createCommentVNode("",!0)],64))),128))])),64))])])):r.createCommentVNode("",!0),r.createVNode(z,{modelValue:g.value,"onUpdate:modelValue":D[4]||(D[4]=W=>g.value=W),title:y.value,border:"","align-center":!0},{default:r.withCtx(()=>[r.createVNode($,{data:v.value,width:"100%"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.dbOptions.columns,W=>(r.openBlock(),r.createBlock(I,{align:"center",prop:W.field,label:W.title+(W.unit||"")},null,8,["prop","label"]))),256))]),_:1},8,["data"])]),_:1},8,["modelValue","title"])])}}}),[["__scopeId","data-v-f55f455f"]])),I3t={class:"line-inbox"},R3t={class:"line-inbox-target"},L3t=r.defineComponent({name:"GTargetDeviation"}),P3t=r.defineComponent({...L3t,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}){r.useCssVars(_=>({a98fe928:h.value}));let n=An.state;const o=Ut();let a=r.ref(0);const i=e,l=r.ref(0),s=r.ref(0),c=r.ref(null),d=r.computed(()=>`line-inbox-max-${i.type}`),u=r.computed(()=>`line-inbox-min-${i.type}`),f=r.computed(()=>`line-inbox-max-progress-${i.type}`),p=r.computed(()=>`g-target-deviation-${i.size}`),h=r.computed(()=>o.name&&typeof o.name=="string"&&o.name.includes("white")?`var(--color-${i.type}-lights-4)`:`var(--color-${i.type}-lights-1)`),m=r.ref({data:0,title:"",unit:""}),g=r.ref({}),v=async _=>{y(_),a.value++},y=_=>{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=_[i.dbOptions.dataField],Number(_[i.dbOptions.dataField])>0?(s.value=Number(_[i.dbOptions.dataField])/Number(i.max)*100,l.value=0):(l.value=Math.abs(Number(_[i.dbOptions.dataField]))/Math.abs(Number(i.min))*100,s.value=0)};return r.watch(()=>i.dbOptions.data,_=>{g.value=_t(_);const b=["http://","https://",void 0];!_.path&&!_.dsKey&&!g.value.dataUrl&&!(typeof _=="string"&&b.some(w=>_.includes(w)))&&g.value.loadStaticData(_),(typeof _=="string"||_.path)&&g.value.reload(_.data)},{deep:!0}),r.watch(()=>n["gui-theme"],async _=>{g.value=null,r.nextTick(async()=>{g.value=_t(i.dbOptions.data),v(g.value.data),g.value.on("load",b=>{v(b)})})},{deep:!0}),r.nextTick(async()=>{g.value=_t(i.dbOptions.data),g.value.on("load",_=>{v(_)})}),t({props:i,targetDeviationRef:c}),(_,b)=>{const w=r.resolveComponent("g-target-s");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["g-target-deviation",p.value]),ref_key:"targetDeviationRef",ref:c},[r.createElementVNode("div",I3t,[b[0]||(b[0]=r.createElementVNode("div",{class:"line-inbox-num"},"0",-1)),r.createElementVNode("div",{class:r.normalizeClass(["line-inbox-min",u.value])},[r.createElementVNode("div",{class:"line-inbox-min-progress",style:r.normalizeStyle({width:l.value+"%"})},null,4)],2),b[1]||(b[1]=r.createElementVNode("div",{class:"line-inbox-segmentation"},[r.createElementVNode("div",{class:"top"}),r.createElementVNode("div",{class:"bottom"})],-1)),r.createElementVNode("div",{class:r.normalizeClass(["line-inbox-max",d.value])},[r.createElementVNode("div",{class:r.normalizeClass(["line-inbox-max-progress",f.value]),style:r.normalizeStyle({width:s.value+"%"})},null,6)],2),r.createElementVNode("div",R3t,[(r.openBlock(),r.createBlock(w,{key:r.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)}}}),joe=kt(nr(P3t,[["__scopeId","data-v-9bc90b2c"]])),$3t=Ut(),B4=document.documentElement,z3t=e=>e||"",F3t=(e,t,n,o)=>({backgroundColor:$3t.chartOption.backgroundColor,color:JSON.parse(getComputedStyle(B4).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(B4).getPropertyValue("--gui-text-color-regular"),offsetCenter:[0,"-110%"]},detail:{color:getComputedStyle(B4).getPropertyValue(`--gui-color-${o}`),fontSize:24,formatter:function(a){return a+z3t(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(B4).getPropertyValue(`--gui-color-${o}`)}},axisLine:{roundCap:!1,lineStyle:{color:[[.5,getComputedStyle(document.documentElement).getPropertyValue(n)],[1,getComputedStyle(document.documentElement).getPropertyValue(`--gui-color-${o}`)]]}},data:[{value:100,name:"SCORE"}]}]}),Yoe=(e,t,n,o,a)=>{const i=r.ref({});return i.value=Hn({},F3t(t,n,o,a),e),{...r.toRefs(i.value)}},H3t={class:"g-target-gauge"},G3t=r.defineComponent({name:"GTargetGauge"}),W3t=r.defineComponent({...G3t,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 o=Ut();let a=An.state;const i=n,l=e,s=r.ref(),c=r.ref(!1);let d=r.ref(0),u=r.ref([]),f=l.options;const p=r.ref(null);let h=[],m={series:[{}]};const g=r.ref({}),v=()=>{h=[]},y=async b=>{if(v(),Ar(b)){c.value=!0;return}else c.value=!1;const w=qc(l.dbOptions.axisField);u.value=b,u.value&&l.dbOptions&&(u.value.map(x=>{let S={name:w=="function"?l.dbOptions.axisField(x):x[l.dbOptions.axisField],value:x[l.dbOptions.dataField]};h.push(S)}),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 C=l.dbOptions.columns.find(x=>x.field===l.dbOptions.dataField);f?s.value=Yoe(f,C.title,C==null?void 0:C.unit,o.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type):s.value=Yoe(m,C.title,C==null?void 0:C.unit,o.name.includes("white")?`--color-${l.type}-lights-4`:`--color-${l.type}-lights-1`,l.type)};r.watch(()=>l.dbOptions.data,b=>{g.value=_t(b);const w=["http://","https://",void 0];!b.path&&!b.dsKey&&!g.value.dataUrl&&!(typeof b=="string"&&w.some(C=>b.includes(C)))&&g.value.loadStaticData(b),(typeof b=="string"||b.path)&&g.value.reload(b.data)},{deep:!0}),r.watch(()=>a["gui-theme"],async b=>{g.value=null,r.nextTick(async()=>{d++,g.value=_t(l.dbOptions.data),y(g.value.data),g.value.on("load",w=>{y(w)})})},{deep:!0}),r.nextTick(async()=>{g.value=_t(l.dbOptions.data),g.value.on("load",b=>{y(b)})}),t({props:l,targetGaugeRef:p});const _=b=>{i("chart-click",b)};return(b,w)=>{const C=r.resolveComponent("g-chart");return r.openBlock(),r.createElementBlock("div",H3t,[(r.openBlock(),r.createBlock(C,r.mergeProps({options:s.value},b.$attrs,{ref_key:"targetGaugeRef",ref:p,isEmpty:c.value,description:e.description,onClick:_,key:r.unref(d)}),null,16,["options","isEmpty","description"]))])}}}),qoe=kt(nr(W3t,[["__scopeId","data-v-8416064f"]])),U3t={key:0,class:"compo-picker-label-box"},K3t={key:1,class:"compo-picker-label-box"},j3t={key:2,class:"compo-picker-label-box"},Y3t={key:3,class:"compo-picker-label-box"},q3t=r.defineComponent({name:"GCompoPicker"}),X3t=r.defineComponent({...q3t,props:r.mergeModels({tabs:{type:Array,default:["table","line","bar","pie"]}},{modelValue:{default:"table",required:!1},modelModifiers:{}}),emits:r.mergeModels(["tab-change"],["update:modelValue"]),setup(e,{emit:t}){const n=e,o=r.useModel(e,"modelValue"),a=t,i=l=>{a("tab-change",l)};return(l,s)=>(r.openBlock(),r.createBlock(r.unref(i6),{modelValue:o.value,"onUpdate:modelValue":s[0]||(s[0]=c=>o.value=c),class:"compo-picker-tabs",onTabChange:i},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.tabs,c=>(r.openBlock(),r.createBlock(r.unref(l6),{name:c},{label:r.withCtx(()=>[c=="table"?(r.openBlock(),r.createElementBlock("span",U3t,s[1]||(s[1]=[r.createElementVNode("span",null,[r.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"},[r.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),r.createElementVNode("span",{class:"compo-picker-label"},"表格",-1)]))):r.createCommentVNode("",!0),c=="line"?(r.openBlock(),r.createElementBlock("span",K3t,s[2]||(s[2]=[r.createElementVNode("span",null,[r.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"},[r.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),r.createElementVNode("span",{class:"compo-picker-label"},"折线图",-1)]))):r.createCommentVNode("",!0),c=="bar"?(r.openBlock(),r.createElementBlock("span",j3t,s[3]||(s[3]=[r.createElementVNode("span",null,[r.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"},[r.createElementVNode("path",{d:"M1250.133333 1008.213333H29.866667v-56.32h1220.266666v56.32z","p-id":"1341"}),r.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),r.createElementVNode("span",{class:"compo-picker-label"},"柱状图",-1)]))):r.createCommentVNode("",!0),c=="pie"?(r.openBlock(),r.createElementBlock("span",Y3t,s[4]||(s[4]=[r.createElementVNode("span",null,[r.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"},[r.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),r.createElementVNode("span",{class:"compo-picker-label"},"饼图",-1)]))):r.createCommentVNode("",!0)]),_:2},1032,["name"]))),256))]),_:1},8,["modelValue"]))}}),Xoe=kt(X3t),Z3t={class:"title"},J3t={class:"tList"},Q3t={class:"field"},e6t={key:0,class:"unit"},t6t={key:1,class:"trend"},n6t=r.defineComponent({name:"GDynamicTarget"}),r6t=r.defineComponent({...n6t,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}){r.ref(Ut());const n=e,o=r.ref({});let a=r.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 r.watch(()=>n.dbOptions.data,s=>{o.value=_t(s);const c=["http://","https://",void 0];s&&(!s.path&&!s.dsKey&&!o.value.dataUrl&&!(typeof s=="string"&&c.some(d=>s.includes(d)))&&o.value.loadStaticData(s),(typeof s=="string"||typeof s=="object")&&(s.path||s.data&&typeof s.data=="string")&&o.value.reload(s.data||s))},{deep:!0}),r.nextTick(async()=>{o.value=_t(n.dbOptions.data),o.value.on("load",s=>{i(s)})}),t({props:n}),(s,c)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`g-dynamic-target g-dynamic-target-${n.type} g-dynamic-target-${n.size}`)},[r.createElementVNode("div",Z3t,r.toDisplayString(n.title),1),r.createElementVNode("div",J3t,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(a),(d,u)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["tItem",{"no-border":u===d.length-1}]),key:u},[r.createElementVNode("div",Q3t,r.toDisplayString(d.text),1),d.unit?(r.openBlock(),r.createElementBlock("div",e6t,r.toDisplayString(d.unit),1)):r.createCommentVNode("",!0),d.isTrend?(r.openBlock(),r.createElementBlock("div",t6t,[r.createElementVNode("i",{class:r.normalizeClass(d.trend=="up"?"iconfont icon-icon_xiangshang":"iconfont icon-icon_xiangxia")},null,2)])):r.createCommentVNode("",!0),c[0]||(c[0]=r.createElementVNode("div",{class:"line"},null,-1))],2))),128))])],2))}}),Zoe=kt(nr(r6t,[["__scopeId","data-v-310a60aa"]])),o6t=r.defineComponent({name:"GRow"}),a6t=r.defineComponent({...o6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(M9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Joe=kt(a6t),i6t=r.defineComponent({name:"GCol"}),l6t=r.defineComponent({...i6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(ZI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Qoe=kt(l6t),s6t=r.defineComponent({name:"GButton"}),c6t=r.defineComponent({...s6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(ao),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),eae=kt(c6t),d6t=r.defineComponent({name:"GInput"}),u6t=r.defineComponent({...d6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(Io),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),tae=kt(u6t),f6t=r.defineComponent({name:"GButtonGroup"}),p6t=r.defineComponent({...f6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(wS),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),nae=kt(p6t),h6t=r.defineComponent({name:"GRadio"}),m6t=r.defineComponent({...h6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(MS),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),rae=kt(m6t),g6t=r.defineComponent({name:"GRadioButton"}),v6t=r.defineComponent({...g6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(HI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),oae=kt(v6t),y6t=r.defineComponent({name:"GRadioGroup"}),b6t=r.defineComponent({...y6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(FI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),aae=kt(b6t),_6t=r.defineComponent({name:"GCheckbox"}),w6t=r.defineComponent({..._6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(Xa),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),iae=kt(w6t),C6t=r.defineComponent({name:"GCheckboxGroup"}),x6t=r.defineComponent({...C6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(TS),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),lae=kt(x6t),S6t=r.defineComponent({name:"GCheckboxButton"}),E6t=r.defineComponent({...S6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(VI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),sae=kt(E6t),k6t=r.defineComponent({name:"GDatePicker"}),T6t=r.defineComponent({...k6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(DR),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),cae=kt(T6t),M6t=r.defineComponent({name:"GSelect"}),A6t=r.defineComponent({...M6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(sd),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),dae=kt(A6t),D6t=r.defineComponent({name:"GCascader"}),N6t=r.defineComponent({...D6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(YI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),null,16))}}),uae=kt(N6t),B6t=r.defineComponent({name:"GCascaderPanel"}),O6t=r.defineComponent({...B6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(OS),r.normalizeProps(r.guardReactiveProps(t.$attrs)),null,16))}}),fae=kt(O6t),V6t=r.defineComponent({name:"GOption"}),I6t=r.defineComponent({...V6t,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)=>(r.openBlock(),r.createBlock(r.unref(u0),r.mergeProps({value:e.value,label:e.label,disabled:e.disabled},t.$attrs),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16,["value","label","disabled"]))}}),pae=kt(I6t),R6t=r.defineComponent({name:"GOptionGroup"}),L6t=r.defineComponent({...R6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(C9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),hae=kt(L6t),P6t=r.defineComponent({name:"GForm"}),$6t=r.defineComponent({...P6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(i9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),mae=kt($6t),z6t=r.defineComponent({name:"GFormItem"}),F6t=r.defineComponent({...z6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(l9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),gae=kt(F6t),H6t=r.defineComponent({name:"GSwitch"}),G6t=r.defineComponent({...H6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(J9),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),vae=kt(G6t),W6t=r.defineComponent({name:"GUpload"}),U6t=r.defineComponent({...W6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(jP),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),yae=kt(U6t),K6t=r.defineComponent({name:"GCard"}),j6t=r.defineComponent({...K6t,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(CI),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),bae=kt(j6t),Y6t=r.defineComponent({name:"GCarousel"}),q6t=r.defineComponent({...Y6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(TI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),_ae=kt(q6t),X6t=r.defineComponent({name:"GCarouselItem"}),Z6t=r.defineComponent({...X6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(MI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),wae=kt(Z6t),J6t=r.defineComponent({name:"GPagination"}),Q6t=r.defineComponent({...J6t,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(S9),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Cae=kt(Q6t),eEt=r.defineComponent({name:"GProgress"}),tEt=r.defineComponent({...eEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(b3),r.mergeProps(n.$attrs,{"stroke-linecap":"butt"}),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),xae=kt(tEt),nEt=r.defineComponent({name:"GTable"}),rEt=r.defineComponent({...nEt,props:{data:{type:Array},emptyText:{type:String,default:"暂无数据"},textSize:{type:String,default:"sm"}},setup(e,{expose:t}){r.useCssVars(s=>({"365bc4bb":i.value}));const n=e,o=r.ref(!1),a=r.useSlots();Ar(n.data)?o.value=!0:o.value=!1,r.watch(()=>n.data,s=>{if(Ar(s)){o.value=!0;return}else o.value=!1});const i=r.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=r.ref();return t({elTableRef:l}),(s,c)=>{const d=r.resolveComponent("el-empty");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.withDirectives(r.createVNode(r.unref(Y3),r.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)"}}),r.createSlots({_:2},[r.renderList(r.unref(a),(u,f)=>({name:f,fn:r.withCtx(p=>[r.renderSlot(s.$slots,f,r.normalizeProps(r.guardReactiveProps(p)),void 0,!0)])}))]),1040,["data"]),[[r.vShow,!o.value]]),o.value?r.renderSlot(s.$slots,"empty",{key:0,class:"empty"},()=>[r.createVNode(d,r.mergeProps(s.$attrs,{description:e.emptyText,image:r.unref(Ut)().name=="white-blue"?r.unref(Fl):r.unref(Ut)().name=="white-green"?r.unref(Hl):r.unref(Ut)().name=="black-gold"?r.unref(Gl):"","image-size":200}),null,16,["description","image"])],!0):r.createCommentVNode("",!0)],64)}}}),Sae=kt(nr(rEt,[["__scopeId","data-v-26c049e7"]])),oEt=r.defineComponent({name:"GTableColumn"}),aEt=r.defineComponent({...oEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(q3),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Eae=kt(aEt),iEt=r.defineComponent({name:"GTag"}),lEt=r.defineComponent({...iEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(Au),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),kae=kt(lEt),sEt=r.defineComponent({name:"GCheckTag"}),cEt=r.defineComponent({...sEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(qI),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Tae=kt(cEt),dEt=r.defineComponent({name:"GTree"}),uEt=r.defineComponent({...dEt,setup(e,{expose:t}){const n=r.useSlots(),o=r.ref(null);return t({ref:o}),(a,i)=>(r.openBlock(),r.createBlock(r.unref(A0),r.mergeProps({ref_key:"treeRef",ref:o},a.$attrs),r.createSlots({_:2},[r.renderList(r.unref(n),(l,s)=>({name:s,fn:r.withCtx(c=>[r.renderSlot(a.$slots,s,r.normalizeProps(r.guardReactiveProps(c)))])}))]),1040))}}),Mae=kt(uEt),fEt=r.defineComponent({name:"GTreeSelect"}),pEt=r.defineComponent({...fEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(MP),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Aae=kt(pEt),hEt=r.defineComponent({name:"GTabs"}),mEt=r.defineComponent({...hEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(i6),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Dae=kt(mEt),gEt=r.defineComponent({name:"GTabPane"}),vEt=r.defineComponent({...gEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(l6),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Nae=kt(vEt),yEt=r.defineComponent({name:"GDialog"}),bEt=r.defineComponent({...yEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(PR),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Bae=kt(bEt),_Et=r.defineComponent({name:"GTooltip"}),wEt=r.defineComponent({..._Et,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(To),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Oae=kt(wEt),CEt=r.defineComponent({name:"GWatermark"}),xEt=r.defineComponent({...CEt,setup(e){return(t,n)=>(r.openBlock(),r.createBlock(r.unref(qP),r.normalizeProps(r.guardReactiveProps(t.$attrs)),{default:r.withCtx(()=>[r.renderSlot(t.$slots,"default")]),_:3},16))}}),Vae=kt(xEt),SEt=r.defineComponent({name:"GPopover"}),EEt=r.defineComponent({...SEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(O2),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Iae=kt(EEt),kEt=r.defineComponent({name:"GDrawer"}),TEt=r.defineComponent({...kEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(zR),r.normalizeProps(r.guardReactiveProps(n.$attrs)),r.createSlots({_:2},[r.renderList(r.unref(t),(a,i)=>({name:i,fn:r.withCtx(l=>[r.renderSlot(n.$slots,i,r.normalizeProps(r.guardReactiveProps(l)))])}))]),1040))}}),Rae=kt(TEt),MEt=r.defineComponent({name:"GSubMenu"}),AEt=r.defineComponent({...MEt,setup(e){const t=r.useSlots(),n=r.computed(()=>Object.keys(t).filter(o=>o!=="title"));return(o,a)=>(r.openBlock(),r.createBlock(r.unref(v9),r.normalizeProps(r.guardReactiveProps(o.$attrs)),r.createSlots({default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,i=>r.renderSlot(o.$slots,i,{key:i})),128))]),_:2},[r.unref(t).title?{name:"title",fn:r.withCtx(()=>[r.renderSlot(o.$slots,"title")]),key:"0"}:void 0]),1040))}}),Lae=kt(AEt),DEt=r.defineComponent({name:"GMenu"}),NEt=r.defineComponent({...DEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(h9),r.normalizeProps(r.guardReactiveProps(n.$attrs)),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t),(a,i)=>r.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),Pae=kt(NEt),BEt=r.defineComponent({name:"GMenuItem"}),OEt=r.defineComponent({...BEt,setup(e){const t=r.useSlots(),n=r.computed(()=>Object.keys(t).filter(o=>o!=="title"));return(o,a)=>(r.openBlock(),r.createBlock(r.unref(m9),r.normalizeProps(r.guardReactiveProps(o.$attrs)),r.createSlots({default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.value,i=>r.renderSlot(o.$slots,i,{key:i})),128))]),_:2},[r.unref(t).title?{name:"title",fn:r.withCtx(()=>[r.renderSlot(o.$slots,"title")]),key:"0"}:void 0]),1040))}}),$ae=kt(OEt),VEt=r.defineComponent({name:"GMenuItemGroup"}),IEt=r.defineComponent({...VEt,setup(e){const t=r.useSlots();return(n,o)=>(r.openBlock(),r.createBlock(r.unref(g9),r.normalizeProps(r.guardReactiveProps(n.$attrs)),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(t),(a,i)=>r.renderSlot(n.$slots,i,{key:i})),128))]),_:3},16))}}),zae=kt(IEt),REt={class:"chart-container"},Fae=kt(nr({__name:"index",props:{dbOptions:{type:Object,required:!0,default:()=>({data:[],fieldMap:{fullCyclePlan:"fullCyclePlan",fullCycleDynamic:"fullCycleDynamic",plan:"plan",dynamic:"dynamic",offsetRatio:"offsetRatio"}})},fullCycleLabel:{type:String,default:"全周期"},actualLabel:{type:String,default:"累计至25年3月底已发生"}},setup(e){const t=e,n=r.ref(null);let o=null;const a=r.ref([]),i=r.ref({colorBlue:"",colorGreen:"",colorDeepGreen:"",colorRed:""});function l(u,f){const{data:p,fieldMap:h}=t.dbOptions,m=Math.floor(u.dataIndex),g=p[m],v=s(g,"plan"),y=s(g,"dynamic"),_=Math.min(v,y),b=Math.max(v,y),w=v>y,C=s(g,"offsetRatio"),x=f.coord([_,m*2])[0],S=f.coord([b,m*2])[0];let E=n.value.offsetHeight,k=Math.round(E/600*100)/100;const T=f.coord([0,m*2])[1]+60*k,M=T+10;let A="";const D=g.type==="revenue";let V=[];return w?(A=D?i.value.colorDeepGreen:i.value.colorRed,V=[{type:"line",shape:{x1:x,y1:T,x2:x,y2:M},style:{stroke:A,lineDash:[4,4]},z:10},{type:"line",shape:{x1:S,y1:T-50*k,x2:S,y2:M},style:{stroke:A,lineDash:[4,4]},z:10}]):(A=D?i.value.colorRed:i.value.colorDeepGreen,V=[{type:"line",shape:{x1:x,y1:T-50*k,x2:x,y2:M},style:{stroke:A,lineDash:[4,4]},z:10},{type:"line",shape:{x1:S,y1:T,x2:S,y2:M},style:{stroke:A,lineDash:[4,4]},z:10}]),{type:"group",z:10,children:[...V,{type:"polygon",shape:{points:[[x,M+6],[x,M-6],[S,M]]},style:{fill:A}},{type:"text",style:{text:`${C}%`,x:S+20,y:M-4,textAlign:"center",fill:A,font:"12px sans-serif"}}]}}const s=(u,f)=>{const{data:p,fieldMap:h}=t.dbOptions;return u[h[f]]},c=()=>{const{data:u,fieldMap:f}=t.dbOptions;if(!n.value||!(u!=null&&u.length)||!f)return;o?o.clear():o=_W(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}]};o.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")})(),r.onMounted(c),r.watch(()=>t.dbOptions,()=>c(),{deep:!0}),(u,f)=>(r.openBlock(),r.createElementBlock("div",REt,[r.createElementVNode("div",{ref_key:"chartRef",ref:n,class:"chart"},null,512)]))}},[["__scopeId","data-v-68ef4da2"]])),LEt=An.state["gui-theme"]||"white-green";U6(LEt);const Hae={GChart:WJ,GBarConv:Foe,GRankingList:UJ,GRankingTable:KJ,GRankingCup:jJ,GRankingRb:YJ,GPieTable:zoe,GReserve:qJ,GPlan:JJ,GNodeAchievement:QJ,GCashflow:nQ,GBar:oQ,GLine:iQ,GBarLine:sQ,GPie:dQ,GRadar:pQ,GFunnel:gQ,GMap:bQ,GHeatmap:wQ,GTargetS:CQ,GTargetR:xQ,GTargetM:SQ,GBox:EQ,GBarCompare:TQ,GPieDistri:AQ,GTargetAchievement:DQ,GDatatable:Loe,GTargetCurrent:Poe,GTargetStruct:Hoe,GPieLevel:Uoe,GCalendar:Koe,GGauge:yQ,GTargetDeviation:joe,GTargetGauge:qoe,GCompoPicker:Xoe,GDynamicTarget:Zoe,GTargetCompleteRate:Fae,GButton:eae,GRow:Joe,GCol:Qoe,GInput:tae,GButtonGroup:nae,GRadio:rae,GRadioButton:oae,GRadioGroup:aae,GCheckbox:iae,GCheckboxGroup:lae,GCheckboxButton:sae,GDatePicker:cae,GSelect:dae,GCascader:uae,GCascaderPanel:fae,GOption:pae,GOptionGroup:hae,GForm:mae,GFormItem:gae,GSwitch:vae,GUpload:yae,GCard:bae,GCarousel:_ae,GCarouselItem:wae,GPagination:Cae,GProgress:xae,GTable:Sae,GTableColumn:Eae,GTag:kae,GCheckTag:Tae,GTree:Mae,GTreeSelect:Aae,GTabs:Dae,GTabPane:Nae,GDialog:Bae,GTooltip:Oae,GWatermark:Vae,GPopover:Iae,GDrawer:Rae,GSubMenu:Lae,GMenu:Pae,GMenuItem:$ae,ElMenuItemGroup:zae},PEt=e=>{for(const t in Hae)e.component(t,Hae[t])},$Et=e=>{for(const[t,n]of Object.entries(x_e))e.component(t,n)},eN=(e,t)=>{PEt(e),e.use(LRe,{locale:TLe}),$Et(e)};typeof window<"u"&&window.Vue&&eN(window.Vue),typeof window<"u"&&window.baseURL&&eN(window.baseURL);const zEt={install:eN},Gae={setTheme:U6,getTheme:c7,getThemeList:URe,getThemeConfig:Ut,setAjaxConfig:ofe,getAjaxConfig:afe,loading:K6};globalThis.gui=Gae,st.DataSource=kb,st.ElMenuItemGroup=zae,st.GBar=oQ,st.GBarCompare=TQ,st.GBarConv=Foe,st.GBarLine=sQ,st.GBox=EQ,st.GButton=eae,st.GButtonGroup=nae,st.GCalendar=Koe,st.GCard=bae,st.GCarousel=_ae,st.GCarouselItem=wae,st.GCascader=uae,st.GCascaderPanel=fae,st.GCashflow=nQ,st.GChart=WJ,st.GCheckTag=Tae,st.GCheckbox=iae,st.GCheckboxButton=sae,st.GCheckboxGroup=lae,st.GCol=Qoe,st.GCompoPicker=Xoe,st.GDatatable=Loe,st.GDatePicker=cae,st.GDialog=Bae,st.GDrawer=Rae,st.GDynamicTarget=Zoe,st.GForm=mae,st.GFormItem=gae,st.GFunnel=gQ,st.GGauge=yQ,st.GHeatmap=wQ,st.GInput=tae,st.GLine=iQ,st.GMap=bQ,st.GMenu=Pae,st.GMenuItem=$ae,st.GNodeAchievement=QJ,st.GOption=pae,st.GOptionGroup=hae,st.GPagination=Cae,st.GPie=dQ,st.GPieDistri=AQ,st.GPieLevel=Uoe,st.GPieTable=zoe,st.GPlan=JJ,st.GPopover=Iae,st.GProgress=xae,st.GRadar=pQ,st.GRadio=rae,st.GRadioButton=oae,st.GRadioGroup=aae,st.GRankingCup=jJ,st.GRankingList=UJ,st.GRankingRb=YJ,st.GRankingTable=KJ,st.GReserve=qJ,st.GRow=Joe,st.GSelect=dae,st.GSubMenu=Lae,st.GSwitch=vae,st.GTabPane=Nae,st.GTable=Sae,st.GTableColumn=Eae,st.GTabs=Dae,st.GTag=kae,st.GTargetAchievement=DQ,st.GTargetCompleteRate=Fae,st.GTargetCurrent=Poe,st.GTargetDeviation=joe,st.GTargetGauge=qoe,st.GTargetM=SQ,st.GTargetR=xQ,st.GTargetS=CQ,st.GTargetStruct=Hoe,st.GTooltip=Oae,st.GTree=Mae,st.GTreeSelect=Aae,st.GUpload=yae,st.GWatermark=Vae,st.Local=Cu,st.Session=ife,st.debounce=kx,st.default=zEt,st.formatNumber=efe,st.gui=Gae,st.setTheme=U6,st.throttle=Jue,Object.defineProperties(st,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|