@ecan-bi/indicator-library 1.1.39 → 1.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/indicator-library@1.1.39 */
1
+ /*! @ecan-bi/indicator-library@1.1.40 */
2
2
  (function(wn,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("lodash-es"),require("ant-design-vue"),require("vuedraggable"),require("ant-design-vue/es/popover/style"),require("ant-design-vue/es/dropdown/style"),require("dayjs"),require("ant-design-vue/es/table/style"),require("monaco-editor"),require("ant-design-vue/es/collapse/style"),require("echarts"),require("axios"),require("ant-design-vue/es/input-number/style"),require("ant-design-vue/es/form/style")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","ant-design-vue","vuedraggable","ant-design-vue/es/popover/style","ant-design-vue/es/dropdown/style","dayjs","ant-design-vue/es/table/style","monaco-editor","ant-design-vue/es/collapse/style","echarts","axios","ant-design-vue/es/input-number/style","ant-design-vue/es/form/style"],p):(wn=typeof globalThis<"u"?globalThis:wn||self,p(wn["@ecan-bi/indicator-library"]={},wn.Vue,wn.LodashEs,wn.AntDesignVue,wn.Draggable,null,null,wn.Dayjs,null,wn.MonacoEditor,null,wn.Echarts,wn.Axios))})(this,function(wn,p,et,Ae,ma,nme,ome,Cn,ime,u9,rme,f9,p9){var i9;"use strict";function g9(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const y2=g9(f9),v2=n=>(n.install=e=>{e.component(n.name,n)},n),li="$request",Fo=((i9=window==null?void 0:window.config)==null?void 0:i9.indicatorURL)||"",ci="INDICATOR_TOKEN",w2="DATA_LIST",di="SELECTED_COMPONENT",Kn="GRAPHIC_CONFIG",$o="UPDATE_GRAPHIC_CONFIG",C2="SHOW_STYLE_CONFIG",x2="REFRESH_DATA",Af="CHARTS_OPTIONS",_2="TABLE_OPTIONS",m9=18,Pb="UPDATE_CHARTS_OPTIONS",Lb="UPDATE_TABLE_OPTIONS",rs="SOURCE_TYPE",Tf="CHANGE_CONDITION",S2="DATA_VIEW_COLUMNS",hi="RENDER_USED_COMPONENTS",kf="UPDATE_USED_COMPONENT",A2="UPDATE_COMPONENTS_CONFIG",T2="MAP_ATTRIBUTE_PROPS",k2="PAGE_CONFIG",Ib="IS_PIVOT_TABLE",M2="IS_IFRAME_MODE",Fb={bar:{name:"柱状图",type:"bar",width:"400px",height:"400px",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,stackColumns:[],labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,colorsType:"默认"},line:{name:"折线图",type:"line",width:"400px",height:"400px",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",legendCustomPosition:!1,legendTextStyleColor:"#333",legendTextStyleFontSize:"12px",legendTextItemGap:10,legendTopPadding:10,legendBottomPadding:10,legendLeftPadding:10,legendRightPadding:10,titleText:"",titleSubtext:"",symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisName:"",xAxisType:"category",xAxisShow:!0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisName:"",yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelShow:!0,yAxisLabelFormatter:"{value}",yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLineShow:!0,yAxisSplitAreaShow:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,xAxisMaxValue:null,yAxisMaxValue:null},pie:{name:"饼图",type:"pie",width:"400px",height:"400px",titleText:"",titleSubtext:"",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",backgroundColor:"",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",labelWidth:100,labelOverflow:"none",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",graphicConfig:{},legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},customGraph:{name:"自定义图表",type:"customGraph",width:"400px",height:"400px",option:{},optionCode:""},comboGraph:{name:"组合图表",type:"comboGraph",width:"400px",height:"400px",titleText:"",titleSubtext:"",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelShow:!0,seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"}},b9={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},B2=n=>p.defineAsyncComponent({loader:n,delay:200});function R2(n,e){var t={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&e.indexOf(o)<0&&(t[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(o=Object.getOwnPropertySymbols(n);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(n,o[i])&&(t[o[i]]=n[o[i]])}return t}function y9(n,e){const t=Object.create(null),o=n.split(",");for(let i=0;i<o.length;i++)t[o[i]]=!0;return i=>!!t[i]}const E2=()=>{},Nb=Object.assign,v9=Object.prototype.hasOwnProperty,Mf=(n,e)=>v9.call(n,e),ba=Array.isArray,Nd=n=>P2(n)==="[object Map]",Bf=n=>typeof n=="function",O2=n=>typeof n=="string",Rf=n=>typeof n=="symbol",Ef=n=>n!==null&&typeof n=="object",w9=Object.prototype.toString,P2=n=>w9.call(n),L2=n=>P2(n).slice(8,-1),Db=n=>O2(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,C9=(n=>{const e=Object.create(null);return t=>e[t]||(e[t]=n(t))})(n=>n.charAt(0).toUpperCase()+n.slice(1)),Dd=(n,e)=>!Object.is(n,e);let I2;const Hb=()=>I2||(I2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function F2(n,...e){console.warn(`[Vue warn] ${n}`,...e)}const Hd=n=>{const e=new Set(n);return e.w=0,e.n=0,e},N2=n=>(n.w&as)>0,D2=n=>(n.n&as)>0,zb=new WeakMap;let zd=0,as=1,ei;const Xs=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),jb=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");let x9=class{constructor(e,t=null,o){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(i,r){r&&r.active&&r.effects.push(i)}(this,o)}run(){if(!this.active)return this.fn();let e=ei,t=ss;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ei,ei=this,ss=!0,as=1<<++zd,zd<=30?(({deps:o})=>{if(o.length)for(let i=0;i<o.length;i++)o[i].w|=as})(this):H2(this),this.fn()}finally{zd<=30&&(o=>{const{deps:i}=o;if(i.length){let r=0;for(let a=0;a<i.length;a++){const s=i[a];N2(s)&&!D2(s)?s.delete(o):i[r++]=s,s.w&=~as,s.n&=~as}i.length=r}})(this),as=1<<--zd,ei=this.parent,ss=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ei===this?this.deferStop=!0:this.active&&(H2(this),this.onStop&&this.onStop(),this.active=!1)}};function H2(n){const{deps:e}=n;if(e.length){for(let t=0;t<e.length;t++)e[t].delete(n);e.length=0}}let ss=!0;const z2=[];function j2(){z2.push(ss),ss=!1}function V2(){const n=z2.pop();ss=n===void 0||n}function $i(n,e,t){if(ss&&ei){let o=zb.get(n);o||zb.set(n,o=new Map);let i=o.get(t);i||o.set(t,i=Hd()),Vb(i,process.env.NODE_ENV!=="production"?{effect:ei,target:n,type:e,key:t}:void 0)}}function Vb(n,e){let t=!1;zd<=30?D2(n)||(n.n|=as,t=!N2(n)):t=!n.has(ei),t&&(n.add(ei),ei.deps.push(n),process.env.NODE_ENV!=="production"&&ei.onTrack&&ei.onTrack(Nb({effect:ei},e)))}function ls(n,e,t,o,i,r){const a=zb.get(n);if(!a)return;let s=[];if(e==="clear")s=[...a.values()];else if(t==="length"&&ba(n)){const c=Number(o);a.forEach((d,h)=>{(h==="length"||!Rf(h)&&h>=c)&&s.push(d)})}else switch(t!==void 0&&s.push(a.get(t)),e){case"add":ba(n)?Db(t)&&s.push(a.get("length")):(s.push(a.get(Xs)),Nd(n)&&s.push(a.get(jb)));break;case"delete":ba(n)||(s.push(a.get(Xs)),Nd(n)&&s.push(a.get(jb)));break;case"set":Nd(n)&&s.push(a.get(Xs))}const l=process.env.NODE_ENV!=="production"?{target:n,type:e,key:t,newValue:o,oldValue:i,oldTarget:r}:void 0;if(s.length===1)s[0]&&(process.env.NODE_ENV!=="production"?tc(s[0],l):tc(s[0]));else{const c=[];for(const d of s)d&&c.push(...d);process.env.NODE_ENV!=="production"?tc(Hd(c),l):tc(Hd(c))}}function tc(n,e){const t=ba(n)?n:[...n];for(const o of t)o.computed&&W2(o,e);for(const o of t)o.computed||W2(o,e)}function W2(n,e){(n!==ei||n.allowRecurse)&&(process.env.NODE_ENV!=="production"&&n.onTrigger&&n.onTrigger(Nb({effect:n},e)),n.scheduler?n.scheduler():n.run())}const _9=y9("__proto__,__v_isRef,__isVue"),$2=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Rf)),U2=S9();function S9(){const n={};return["includes","indexOf","lastIndexOf"].forEach(e=>{n[e]=function(...t){const o=xn(this);for(let r=0,a=this.length;r<a;r++)$i(o,"get",r+"");const i=o[e](...t);return i===-1||i===!1?o[e](...t.map(xn)):i}}),["push","pop","shift","unshift","splice"].forEach(e=>{n[e]=function(...t){j2();const o=xn(this)[e].apply(this,t);return V2(),o}}),n}function A9(n){const e=xn(this);return $i(e,"has",n),e.hasOwnProperty(n)}let G2=class{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,o){const i=this._isReadonly,r=this._shallow;if(t==="__v_isReactive")return!i;if(t==="__v_isReadonly")return i;if(t==="__v_isShallow")return r;if(t==="__v_raw"&&o===(i?r?D9:e_:r?N9:Q2).get(e))return e;const a=ba(e);if(!i){if(a&&Mf(U2,t))return Reflect.get(U2,t,o);if(t==="hasOwnProperty")return A9}const s=Reflect.get(e,t,o);return(Rf(t)?$2.has(t):_9(t))?s:(i||$i(e,"get",t),r?s:ds(s)?a&&Db(t)?s:s.value:Ef(s)?i?n_(s):t_(s):s)}},T9=class extends G2{constructor(e=!1){super(!1,e)}set(e,t,o,i){let r=e[t];if(Df(r)&&ds(r)&&!ds(o))return!1;if(!this._shallow&&(i_(o)||Df(o)||(r=xn(r),o=xn(o)),!ba(e)&&ds(r)&&!ds(o)))return r.value=o,!0;const a=ba(e)&&Db(t)?Number(t)<e.length:Mf(e,t),s=Reflect.set(e,t,o,i);return e===xn(i)&&(a?Dd(o,r)&&ls(e,"set",t,o,r):ls(e,"add",t,o)),s}deleteProperty(e,t){const o=Mf(e,t),i=e[t],r=Reflect.deleteProperty(e,t);return r&&o&&ls(e,"delete",t,void 0,i),r}has(e,t){const o=Reflect.has(e,t);return Rf(t)&&$2.has(t)||$i(e,"has",t),o}ownKeys(e){return $i(e,"iterate",ba(e)?"length":Xs),Reflect.ownKeys(e)}},k9=class extends G2{constructor(e=!1){super(!0,e)}set(e,t){return process.env.NODE_ENV!=="production"&&F2(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return process.env.NODE_ENV!=="production"&&F2(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}};const M9=new T9,B9=new k9,Wb=n=>n,Of=n=>Reflect.getPrototypeOf(n);function Pf(n,e,t=!1,o=!1){const i=xn(n=n.__v_raw),r=xn(e);t||(Dd(e,r)&&$i(i,"get",e),$i(i,"get",r));const{has:a}=Of(i),s=o?Wb:t?$b:jd;return a.call(i,e)?s(n.get(e)):a.call(i,r)?s(n.get(r)):void(n!==i&&n.get(e))}function Lf(n,e=!1){const t=this.__v_raw,o=xn(t),i=xn(n);return e||(Dd(n,i)&&$i(o,"has",n),$i(o,"has",i)),n===i?t.has(n):t.has(n)||t.has(i)}function If(n,e=!1){return n=n.__v_raw,!e&&$i(xn(n),"iterate",Xs),Reflect.get(n,"size",n)}function K2(n){n=xn(n);const e=xn(this);return Of(e).has.call(e,n)||(e.add(n),ls(e,"add",n,n)),this}function Y2(n,e){e=xn(e);const t=xn(this),{has:o,get:i}=Of(t);let r=o.call(t,n);r?process.env.NODE_ENV!=="production"&&J2(t,o,n):(n=xn(n),r=o.call(t,n));const a=i.call(t,n);return t.set(n,e),r?Dd(e,a)&&ls(t,"set",n,e,a):ls(t,"add",n,e),this}function X2(n){const e=xn(this),{has:t,get:o}=Of(e);let i=t.call(e,n);i?process.env.NODE_ENV!=="production"&&J2(e,t,n):(n=xn(n),i=t.call(e,n));const r=o?o.call(e,n):void 0,a=e.delete(n);return i&&ls(e,"delete",n,void 0,r),a}function q2(){const n=xn(this),e=n.size!==0,t=process.env.NODE_ENV!=="production"?Nd(n)?new Map(n):new Set(n):void 0,o=n.clear();return e&&ls(n,"clear",void 0,void 0,t),o}function Ff(n,e){return function(t,o){const i=this,r=i.__v_raw,a=xn(r),s=e?Wb:n?$b:jd;return!n&&$i(a,"iterate",Xs),r.forEach((l,c)=>t.call(o,s(l),s(c),i))}}function Nf(n,e,t){return function(...o){const i=this.__v_raw,r=xn(i),a=Nd(r),s=n==="entries"||n===Symbol.iterator&&a,l=n==="keys"&&a,c=i[n](...o),d=t?Wb:e?$b:jd;return!e&&$i(r,"iterate",l?jb:Xs),{next(){const{value:h,done:u}=c.next();return u?{value:h,done:u}:{value:s?[d(h[0]),d(h[1])]:d(h),done:u}},[Symbol.iterator](){return this}}}}function cs(n){return function(...e){if(process.env.NODE_ENV!=="production"){const t=e[0]?`on key "${e[0]}" `:"";console.warn(`${C9(n)} operation ${t}failed: target is readonly.`,xn(this))}return n!=="delete"&&this}}function R9(){const n={get(i){return Pf(this,i)},get size(){return If(this)},has:Lf,add:K2,set:Y2,delete:X2,clear:q2,forEach:Ff(!1,!1)},e={get(i){return Pf(this,i,!1,!0)},get size(){return If(this)},has:Lf,add:K2,set:Y2,delete:X2,clear:q2,forEach:Ff(!1,!0)},t={get(i){return Pf(this,i,!0)},get size(){return If(this,!0)},has(i){return Lf.call(this,i,!0)},add:cs("add"),set:cs("set"),delete:cs("delete"),clear:cs("clear"),forEach:Ff(!0,!1)},o={get(i){return Pf(this,i,!0,!0)},get size(){return If(this,!0)},has(i){return Lf.call(this,i,!0)},add:cs("add"),set:cs("set"),delete:cs("delete"),clear:cs("clear"),forEach:Ff(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Nf(i,!1,!1),t[i]=Nf(i,!0,!1),e[i]=Nf(i,!1,!0),o[i]=Nf(i,!0,!0)}),[n,t,e,o]}const[E9,O9,P9,L9]=R9();function Z2(n,e){const t=e?n?L9:P9:n?O9:E9;return(o,i,r)=>i==="__v_isReactive"?!n:i==="__v_isReadonly"?n:i==="__v_raw"?o:Reflect.get(Mf(t,i)&&i in o?t:o,i,r)}const I9={get:Z2(!1,!1)},F9={get:Z2(!0,!1)};function J2(n,e,t){const o=xn(t);if(o!==t&&e.call(n,o)){const i=L2(n);console.warn(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Q2=new WeakMap,N9=new WeakMap,e_=new WeakMap,D9=new WeakMap;function t_(n){return Df(n)?n:o_(n,!1,M9,I9,Q2)}function n_(n){return o_(n,!0,B9,F9,e_)}function o_(n,e,t,o,i){if(!Ef(n))return process.env.NODE_ENV!=="production"&&console.warn(`value cannot be made reactive: ${String(n)}`),n;if(n.__v_raw&&(!e||!n.__v_isReactive))return n;const r=i.get(n);if(r)return r;const a=(s=n).__v_skip||!Object.isExtensible(s)?0:function(c){switch(c){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(L2(s));var s;if(a===0)return n;const l=new Proxy(n,a===2?o:t);return i.set(n,l),l}function Df(n){return!(!n||!n.__v_isReadonly)}function i_(n){return!(!n||!n.__v_isShallow)}function xn(n){const e=n&&n.__v_raw;return e?xn(e):n}const jd=n=>Ef(n)?t_(n):n,$b=n=>Ef(n)?n_(n):n;function r_(n){ss&&ei&&(n=xn(n),process.env.NODE_ENV!=="production"?Vb(n.dep||(n.dep=Hd()),{target:n,type:"get",key:"value"}):Vb(n.dep||(n.dep=Hd())))}function a_(n,e){const t=(n=xn(n)).dep;t&&(process.env.NODE_ENV!=="production"?tc(t,{target:n,type:"set",key:"value",newValue:e}):tc(t))}function ds(n){return!(!n||n.__v_isRef!==!0)}function jr(n){return function(e,t){return ds(e)?e:new H9(e,t)}(n,!1)}let H9=class{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:xn(e),this._value=t?e:jd(e)}get value(){return r_(this),this._value}set value(e){const t=this.__v_isShallow||i_(e)||Df(e);e=t?e:xn(e),Dd(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:jd(e),a_(this,e))}};function St(n){return ds(n)?n.value:n}class z9{constructor(e,t,o,i){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new x9(e,()=>{this._dirty||(this._dirty=!0,a_(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const e=xn(this);return r_(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}const qs=[];function Ub(n,...e){if(process.env.NODE_ENV==="production")return;j2();const t=qs.length?qs[qs.length-1].component:null,o=t&&t.appContext.config.warnHandler,i=function(){let r=qs[qs.length-1];if(!r)return[];const a=[];for(;r;){const s=a[0];s&&s.vnode===r?s.recurseCount++:a.push({vnode:r,recurseCount:0});const l=r.component&&r.component.parent;r=l&&l.vnode}return a}();if(o)Gb(o,t,11,[n+e.join(""),t&&t.proxy,i.map(({vnode:r})=>`at <${g_(t,r.type)}>`).join(`
3
3
  `),i]);else{const r=[`[Vue warn]: ${n}`,...e];i.length&&r.push(`
4
4
  `,...function(a){const s=[];return a.forEach((l,c)=>{s.push(...c===0?[]:[`
@@ -64,7 +64,7 @@
64
64
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JP(n,e){if(n){if(typeof n=="string")return PS(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return PS(n,e)}}function PS(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=n[t];return o}function QP(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var o=[],i=!0,r=!1,a,s;try{for(t=t.call(n);!(i=(a=t.next()).done)&&(o.push(a.value),!(e&&o.length===e));i=!0);}catch(l){r=!0,s=l}finally{try{!i&&t.return!=null&&t.return()}finally{if(r)throw s}}return o}}function eL(n){if(Array.isArray(n))return n}function LS(n){var e=ES(n),t=qP(e,2),o=t[0],i=t[1];return my.setTwoToneColors({primaryColor:o,secondaryColor:i})}function tL(){var n=my.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var nL=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function oL(n,e){return sL(n)||aL(n,e)||rL(n,e)||iL()}function iL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
65
65
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rL(n,e){if(n){if(typeof n=="string")return IS(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return IS(n,e)}}function IS(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=n[t];return o}function aL(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var o=[],i=!0,r=!1,a,s;try{for(t=t.call(n);!(i=(a=t.next()).done)&&(o.push(a.value),!(e&&o.length===e));i=!0);}catch(l){r=!0,s=l}finally{try{!i&&t.return!=null&&t.return()}finally{if(r)throw s}}return o}}function sL(n){if(Array.isArray(n))return n}function FS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){by(n,i,t[i])})}return n}function by(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function lL(n,e){if(n==null)return{};var t=cL(n,e),o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(n,o)&&(t[o]=n[o])}return t}function cL(n,e){if(n==null)return{};var t={},o=Object.keys(n),i,r;for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}LS("#1890ff");var cc=function(e,t){var o,i=FS({},e,t.attrs),r=i.class,a=i.icon,s=i.spin,l=i.rotate,c=i.tabindex,d=i.twoToneColor,h=i.onClick,u=lL(i,nL),f=(o={anticon:!0},by(o,"anticon-".concat(a.name),!!a.name),by(o,r,r),o),g=s===""||s||a.name==="loading"?"anticon-spin":"",b=c;b===void 0&&h&&(b=-1,u.tabindex=b);var m=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,y=ES(d),v=oL(y,2),w=v[0],C=v[1];return p.createVNode("span",FS({role:"img","aria-label":a.name},u,{onClick:h,class:f}),[p.createVNode(my,{class:g,icon:a,primaryColor:w,secondaryColor:C,style:m},null)])};cc.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},cc.displayName="AntdIcon",cc.inheritAttrs=!1,cc.getTwoToneColor=tL,cc.setTwoToneColor=LS;const Ro=cc;var dL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"appstore-add",theme:"outlined"};const hL=dL;function NS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){uL(n,i,t[i])})}return n}function uL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var yy=function(e,t){var o=NS({},e,t.attrs);return p.createVNode(Ro,NS({},o,{icon:hL}),null)};yy.displayName="AppstoreAddOutlined",yy.inheritAttrs=!1;const vy=yy;var fL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const pL=fL;function DS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){gL(n,i,t[i])})}return n}function gL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var wy=function(e,t){var o=DS({},e,t.attrs);return p.createVNode(Ro,DS({},o,{icon:pL}),null)};wy.displayName="CaretDownOutlined",wy.inheritAttrs=!1;const HS=wy;var mL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const bL=mL;function zS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){yL(n,i,t[i])})}return n}function yL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Cy=function(e,t){var o=zS({},e,t.attrs);return p.createVNode(Ro,zS({},o,{icon:bL}),null)};Cy.displayName="CaretRightOutlined",Cy.inheritAttrs=!1;const jS=Cy;var vL={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const wL=vL;function VS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){CL(n,i,t[i])})}return n}function CL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var xy=function(e,t){var o=VS({},e,t.attrs);return p.createVNode(Ro,VS({},o,{icon:wL}),null)};xy.displayName="CloseOutlined",xy.inheritAttrs=!1;const ih=xy;var xL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"};const _L=xL;function WS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){SL(n,i,t[i])})}return n}function SL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var _y=function(e,t){var o=WS({},e,t.attrs);return p.createVNode(Ro,WS({},o,{icon:_L}),null)};_y.displayName="CodeOutlined",_y.inheritAttrs=!1;const AL=_y;var TL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const kL=TL;function $S(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){ML(n,i,t[i])})}return n}function ML(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Sy=function(e,t){var o=$S({},e,t.attrs);return p.createVNode(Ro,$S({},o,{icon:kL}),null)};Sy.displayName="CopyOutlined",Sy.inheritAttrs=!1;const BL=Sy;var RL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const EL=RL;function US(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){OL(n,i,t[i])})}return n}function OL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ay=function(e,t){var o=US({},e,t.attrs);return p.createVNode(Ro,US({},o,{icon:EL}),null)};Ay.displayName="DeleteOutlined",Ay.inheritAttrs=!1;const Ty=Ay;var PL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const LL=PL;function GS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){IL(n,i,t[i])})}return n}function IL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ky=function(e,t){var o=GS({},e,t.attrs);return p.createVNode(Ro,GS({},o,{icon:LL}),null)};ky.displayName="DoubleRightOutlined",ky.inheritAttrs=!1;const FL=ky;var NL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const DL=NL;function KS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){HL(n,i,t[i])})}return n}function HL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var My=function(e,t){var o=KS({},e,t.attrs);return p.createVNode(Ro,KS({},o,{icon:DL}),null)};My.displayName="EditOutlined",My.inheritAttrs=!1;const zL=My;var jL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const VL=jL;function YS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){WL(n,i,t[i])})}return n}function WL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var By=function(e,t){var o=YS({},e,t.attrs);return p.createVNode(Ro,YS({},o,{icon:VL}),null)};By.displayName="InfoCircleOutlined",By.inheritAttrs=!1;const $L=By;var UL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const GL=UL;function XS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){KL(n,i,t[i])})}return n}function KL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ry=function(e,t){var o=XS({},e,t.attrs);return p.createVNode(Ro,XS({},o,{icon:GL}),null)};Ry.displayName="LoadingOutlined",Ry.inheritAttrs=!1;const YL=Ry;var XL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const qL=XL;function qS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){ZL(n,i,t[i])})}return n}function ZL(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ey=function(e,t){var o=qS({},e,t.attrs);return p.createVNode(Ro,qS({},o,{icon:qL}),null)};Ey.displayName="MenuOutlined",Ey.inheritAttrs=!1;const Oy=Ey;var JL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const QL=JL;function ZS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){eI(n,i,t[i])})}return n}function eI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Py=function(e,t){var o=ZS({},e,t.attrs);return p.createVNode(Ro,ZS({},o,{icon:QL}),null)};Py.displayName="MinusCircleOutlined",Py.inheritAttrs=!1;const tI=Py;var nI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"};const oI=nI;function JS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){iI(n,i,t[i])})}return n}function iI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ly=function(e,t){var o=JS({},e,t.attrs);return p.createVNode(Ro,JS({},o,{icon:oI}),null)};Ly.displayName="PlusCircleOutlined",Ly.inheritAttrs=!1;const rI=Ly;var aI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const sI=aI;function QS(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){lI(n,i,t[i])})}return n}function lI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Iy=function(e,t){var o=QS({},e,t.attrs);return p.createVNode(Ro,QS({},o,{icon:sI}),null)};Iy.displayName="PlusOutlined",Iy.inheritAttrs=!1;const e3=Iy;var cI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const dI=cI;function t3(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){hI(n,i,t[i])})}return n}function hI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Fy=function(e,t){var o=t3({},e,t.attrs);return p.createVNode(Ro,t3({},o,{icon:dI}),null)};Fy.displayName="QuestionCircleOutlined",Fy.inheritAttrs=!1;const uI=Fy;var fI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const pI=fI;function n3(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){gI(n,i,t[i])})}return n}function gI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ny=function(e,t){var o=n3({},e,t.attrs);return p.createVNode(Ro,n3({},o,{icon:pI}),null)};Ny.displayName="ReloadOutlined",Ny.inheritAttrs=!1;const mI=Ny;var bI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const yI=bI;function o3(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),o.forEach(function(i){vI(n,i,t[i])})}return n}function vI(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Dy=function(e,t){var o=o3({},e,t.attrs);return p.createVNode(Ro,o3({},o,{icon:yI}),null)};Dy.displayName="SettingOutlined",Dy.inheritAttrs=!1;const wI=Dy,CI=p.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:jS,CaretDownOutlined:HS,LoadingOutlined:YL,Draggable:ma,ATooltip:Ae.Tooltip},props:{data:{type:Array,default:()=>[]},source:{type:String,default:""},isSub:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},total:{type:Number,default:0},graphicConfig:{type:Object,default:()=>({})}},setup(n,{emit:e,expose:t}){var O;const o=(O=window==null?void 0:window.config)==null?void 0:O.pageId,i=p.inject(li),r=p.unref(p.inject(ci)),a=p.inject("setItemDisabled",M=>!1),s=p.ref([]),l=p.ref(),c=p.reactive({pageSize:20,currentPage:1,totalResult:0}),d=p.ref(!1),h=p.ref(""),u=p.ref(!1);p.watch(()=>n.data,M=>{n.isSub&&(M==null||M.forEach(R=>{var P;R!=null&&R.isLeaf||(P=R.dataViewColumns)==null||P.forEach(N=>{var F;N.show===void 0&&(N.show=!0),N.edit=!1,N.title&&(N.label=N.title),(F=N==null?void 0:N.extPropertyList)!=null&&F.length&&N.extPropertyList.forEach(E=>{E.show=!0,E.edit=!1})})}),s.value=M)},{deep:!0,immediate:!0});const f=()=>{var M;n.isSub||(M=p.unref(l))==null||M.removeEventListener("scroll",w)},g=async M=>{var N;if(p.unref(d))return;const R=n.graphicConfig?n.graphicConfig.dataSourceId:"";d.value=!0;const P={source:n.source,pageId:o,dataSourceId:R,indexName:h.value};M?(M.loading=!0,P.indexTypeGuid=M.indexTypeGuid,P.isLeaf=M.isLeaf):c&&(P.queryRequest={pageSize:c.pageSize,pageNum:c.currentPage});try{const F=await i.post(`${Fo}/diagram/sourceList`,P,{headers:{Authentication:r,operateContext:"ygt"}}),{success:E,data:L={}}=F.data;if(E){const{rows:T=[],total:_=0}=L;T==null||T.forEach(A=>{var B;(M==null?void 0:M.isLeaf)==="1"||n.graphicConfig.dataSourceId?(B=A.dataViewColumns)==null||B.forEach(k=>{var I,D;k.show=!((I=k==null?void 0:k.extPropertyList)!=null&&I.length),k.edit=!1,k.title&&(k.label=k.title),(D=k==null?void 0:k.extPropertyList)!=null&&D.length&&k.extPropertyList.forEach(H=>{H.show=!0,H.edit=!1})}):A.show=!1}),M?(M.children=T,M.show=!0,T!=null&&T.length||(M.noData=!0)):(s.value=p.unref(s).concat(T),c.totalResult=+_,((N=p.unref(s))==null?void 0:N.length)>=_&&f())}M&&(M.loading=!1),d.value=!1}catch{M&&(M.loading=!1),d.value=!1}},b=async M=>{const R=s.value[M],{children:P=[]}=R;P!=null&&P.length?R.show=!R.show:!R.noData&&R.isLeaf?g(R):R.noData&&(R.show=!R.show)},m=(M,R,P)=>{e("onDragStart",M,R,P)},y=(M,R,P)=>{e("onDragStart",M,R,P.extPropertyList[M.oldIndex])},v=M=>{M.show=!M.show},w=M=>{M.target.scrollTop+M.target.clientHeight+20>=M.target.scrollHeight&&(c.currentPage++,g())},C=async()=>{await g(),p.nextTick(async()=>{p.unref(l).scrollHeight===p.unref(l).clientHeight&&c.totalResult>p.unref(s).length&&(c.currentPage++,C())})},x=async M=>{var R;f(),u.value=!0,c.currentPage=1,c.totalResult=0,s.value=[],h.value=M,await C(),u.value=!1,(R=p.unref(l))==null||R.addEventListener("scroll",w)},S=M=>M.find(R=>{var P;return(P=R==null?void 0:R.extPropertyList)==null?void 0:P.length});return p.onMounted(async()=>{var M;n.isSub||(C(),(M=p.unref(l))==null||M.addEventListener("scroll",w))}),p.onUnmounted(()=>{f()}),t({handleSearch:x}),{columnRef:l,sourceList:s,searchLoading:u,onToggleGroup:b,onToggleSource:v,setItemDisabled:a,onDragStart:m,onDragExtStart:y,mapDataSetScope:cS,mapScope:lS,getLoadType:dS,getUseType:hS,getSourceType:uS,hasExtProp:S}}}),mme="",bme="",xI={key:0,class:"no-data"},_I={class:"column-item"},SI=["onClick"],AI={key:3,class:"item-name"},TI={key:0},kI={class:"column-item"},MI={key:0},BI={key:1},RI={key:2},EI={key:3},OI=["onClick"],PI=["onClick"],LI={class:"field"},II={class:"column-child-item-name"},FI={class:"column-child-item"},NI={class:"field"},DI={class:"column-child-item-name"};function HI(n,e,t,o,i,r){const a=p.resolveComponent("loading-outlined"),s=p.resolveComponent("caret-down-outlined"),l=p.resolveComponent("caret-right-outlined"),c=p.resolveComponent("ind-source-list",!0),d=p.resolveComponent("a-tooltip"),h=p.resolveComponent("draggable"),u=p.resolveComponent("a-spin");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["columns",n.isSub?"sub-columns":""]),ref:"columnRef"},[p.createVNode(u,{spinning:n.searchLoading,tip:"数据源加载中..."},{default:p.withCtx(()=>{var f;return[!((f=n.sourceList)!=null&&f.length)&&!n.searchLoading?(p.openBlock(),p.createElementBlock("div",xI,"暂无数据")):n.hasChildren?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:1},p.renderList(n.sourceList,(g,b)=>(p.openBlock(),p.createElementBlock("div",{key:g.indexTypeGuid||g.id},[p.createElementVNode("div",_I,[p.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>n.onToggleGroup(b)},[g.loading?(p.openBlock(),p.createBlock(a,{key:0})):g.show?(p.openBlock(),p.createBlock(s,{key:1})):(p.openBlock(),p.createBlock(l,{key:2})),g.isLeaf?(p.openBlock(),p.createElementBlock("span",AI,p.toDisplayString(g.indexTypeCode+"."+g.indexTypeName),1)):p.createCommentVNode("",!0)],8,SI)]),g.show?(p.openBlock(),p.createElementBlock("div",TI,[p.createVNode(c,{data:g.children,isSub:!0,hasChildren:g.isLeaf==="0",graphicConfig:n.graphicConfig,source:"INDICATOR_LIB",onOnDragStart:n.onDragStart},null,8,["data","hasChildren","graphicConfig","onOnDragStart"])])):p.createCommentVNode("",!0)]))),128)):(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:2},p.renderList(n.sourceList,g=>(p.openBlock(),p.createElementBlock("div",{key:g.id,class:p.normalizeClass(n.setItemDisabled(g.dataViewColumns)?"column-disabled":"")},[p.createElementVNode("div",kI,[p.createVNode(d,{overlayClassName:"ind-source-list-tooltip"},{title:p.withCtx(()=>[p.createElementVNode("div",null,"加载类型:"+p.toDisplayString(n.getLoadType(g.loadType)),1),g.useType?(p.openBlock(),p.createElementBlock("div",MI,"数据使用系统:"+p.toDisplayString(n.getUseType(g.useType)),1)):p.createCommentVNode("",!0),g.systemSource?(p.openBlock(),p.createElementBlock("div",BI,"制度出处:"+p.toDisplayString(g.systemSource),1)):p.createCommentVNode("",!0),g.dataTo?(p.openBlock(),p.createElementBlock("div",RI,"数据来源:"+p.toDisplayString(n.getSourceType(g.dataTo)),1)):p.createCommentVNode("",!0),g.meaning?(p.openBlock(),p.createElementBlock("div",EI,"指标含义:"+p.toDisplayString(g.meaning),1)):p.createCommentVNode("",!0)]),default:p.withCtx(()=>[p.createElementVNode("span",{style:{cursor:"pointer"},onClick:b=>n.onToggleSource(g)},[g.show?(p.openBlock(),p.createBlock(s,{key:0})):(p.openBlock(),p.createBlock(l,{key:1})),p.createTextVNode(" "+p.toDisplayString((g.indexCode?g.indexCode:"")+" "+g.name),1)],8,OI)]),_:2},1024)]),g.show?(p.openBlock(),p.createBlock(h,{key:0,style:p.normalizeStyle({marginLeft:n.hasExtProp(g.dataViewColumns)?"15px":""}),modelValue:g.dataViewColumns,"onUpdate:modelValue":b=>g.dataViewColumns=b,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:n.setItemDisabled(g.dataViewColumns),filter:".no-drag",preventOnFilter:!1,onStart:b=>n.onDragStart(b,g)},{item:p.withCtx(({element:b})=>{var m,y,v;return[p.createElementVNode("div",{class:p.normalizeClass({"no-drag":!!((m=b==null?void 0:b.extPropertyList)!=null&&m.length)})},[p.createElementVNode("div",{class:"column-child-item",onClick:w=>{var C;return(C=b==null?void 0:b.extPropertyList)!=null&&C.length?n.onToggleSource(b):""}},[n.hasExtProp(g.dataViewColumns)?(p.openBlock(),p.createElementBlock("div",{key:0,style:p.normalizeStyle({visibility:(y=b==null?void 0:b.extPropertyList)!=null&&y.length?"visible":"hidden"})},[b.show?(p.openBlock(),p.createBlock(s,{key:0})):(p.openBlock(),p.createBlock(l,{key:1}))],4)):p.createCommentVNode("",!0),p.createElementVNode("span",LI," 【"+p.toDisplayString(b.scope==="FIELD"?n.mapDataSetScope(b.genericType):n.mapScope(b.scope))+"】 ",1),p.createElementVNode("span",II,p.toDisplayString(b.label),1)],8,PI),(v=b==null?void 0:b.extPropertyList)!=null&&v.length&&b.show?(p.openBlock(),p.createBlock(h,{key:0,style:{"margin-left":"35px"},modelValue:b.extPropertyList,"onUpdate:modelValue":w=>b.extPropertyList=w,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"typeGuid",sort:!1,onStart:w=>n.onDragExtStart(w,g,b)},{item:p.withCtx(({element:w})=>[p.createElementVNode("div",FI,[p.createElementVNode("span",NI," 【"+p.toDisplayString(w.scope==="FIELD"?n.mapDataSetScope(w.genericType):n.mapScope(w.scope))+"】 ",1),p.createElementVNode("span",DI,p.toDisplayString(w.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","onStart"])):p.createCommentVNode("",!0)],2)]}),_:2},1032,["style","modelValue","onUpdate:modelValue","disabled","filter","onStart"])):p.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const zI=Vt(CI,[["render",HI],["__scopeId","data-v-ca01e6a9"]]),jI=p.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:jS,CaretDownOutlined:HS,IndSourceList:zI,AInputSearch:Ae.InputSearch,ASpin:Ae.Spin,APagination:Ae.Pagination,Draggable:ma,ATooltip:Ae.Tooltip},setup(){var x;const n=(x=window==null?void 0:window.config)==null?void 0:x.pageId,e=p.inject(li),t=p.unref(p.inject(ci)),o=p.inject(di),i=p.computed(()=>{var S;return(S=p.unref(o))==null?void 0:S.graphicConfig}),r=p.computed(()=>{var S;return(S=p.unref(i))==null?void 0:S.dataSourceId}),a=p.ref([]),s=p.ref(!1),l=p.ref(),c=p.reactive({pageSize:20,currentPage:1,totalResult:0}),d=p.inject(rs),h=p.ref(""),u=async()=>{if(p.unref(y).source==="INDICATOR_LIB")return;s.value=!0;const S={source:p.unref(d),indexName:p.unref(h),pageId:n,dataSourceId:p.unref(r),queryRequest:{pageSize:c.pageSize,pageNum:c.currentPage}};S.source==="EDV_DATA_SET"&&(S.edvDataSetName=S.indexName,delete S.indexName);try{const O=await e.post(`${Fo}/diagram/sourceList`,S,{headers:{Authentication:t,operateContext:"ygt"}});s.value=!1;const{success:M,data:R={}}=O.data;if(M){const{rows:P=[],total:N=0}=R;P==null||P.forEach(F=>{var E;F.show=!1,(E=F.dataViewColumns)==null||E.forEach(L=>{L.show=!0,L.edit=!1,L.title&&(L.label=L.title)})}),a.value=P,c.totalResult=+N}}catch{s.value=!1}},f=S=>{a.value[S].show=!a.value[S].show},g=()=>{var S;c.currentPage=1,u(),p.unref(y).source==="INDICATOR_LIB"&&((S=p.unref(l))==null||S.handleSearch(p.unref(h)))},b=et.debounce(()=>{c.currentPage=1,u()},200),m=(S,O)=>{c.pageSize=O,c.currentPage=S,u()};p.onMounted(()=>{u()});const y=p.inject(Kn),v=p.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let O=[];for(const M in p.unref(y))if(Object.prototype.hasOwnProperty.call(p.unref(y),M)&&S.includes(M)){const R=p.unref(y)[M];Array.isArray(R)&&(O=O.concat(R))}return O}),w=(S=[])=>{let O=!1;if(p.unref(d)==="EDV_DATA_SET"){for(const M of p.unref(v))if(!S.find(P=>P.parentId===M.parentId)){O=!0;break}}else for(const M of p.unref(v))if(!S.find(P=>M.isExtProperty||P.typeGuid===M.typeGuid)){O=!0;break}return O};return p.provide("setItemDisabled",w),{dataSourceList:a,dataSourceLoading:s,pagination:c,onToggleGroup:f,mapScope:lS,mapDataSetScope:cS,onSearch:g,onChange:b,source:d,onPaginationChange:m,searchText:h,setItemDisabled:w,onDragStart:(S,O,M)=>{const R=M||O.dataViewColumns[S.oldIndex];let P={};O.dataSetParams&&(P=O.dataSetParams),R&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...R,dataTo:O.dataTo,dataSetParams:P,meaning:O.meaning,theFormula:O.theFormula,theUnit:O.theUnit})),O.dataTo==="1"&&(O!=null&&O.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(O.hrpIndexVariates)),O.dataTo==="2"&&(O!=null&&O.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(O.dataSetParams)))},getSourceType:uS,getLoadType:dS,getUseType:hS,graphicConfig:y,indSourceRef:l}}}),yme="",VI={class:"data-source-list"},WI={class:"columns"},$I={class:"column-item"},UI={key:0},GI={key:1},KI={key:2},YI=["onClick"],XI={key:0},qI={class:"column-child-item"},ZI={class:"column-child-item-name"};function JI(n,e,t,o,i,r){const a=p.resolveComponent("a-input-search"),s=p.resolveComponent("ind-source-list"),l=p.resolveComponent("caret-down-outlined"),c=p.resolveComponent("caret-right-outlined"),d=p.resolveComponent("a-tooltip"),h=p.resolveComponent("draggable"),u=p.resolveComponent("a-spin"),f=p.resolveComponent("a-pagination");return p.openBlock(),p.createElementBlock("div",VI,[p.createVNode(a,{value:n.searchText,"onUpdate:value":e[0]||(e[0]=g=>n.searchText=g),placeholder:"请输入关键字",style:{width:"100%"},onChange:n.onChange,onSearch:n.onSearch},null,8,["value","onChange","onSearch"]),n.graphicConfig.source==="INDICATOR_LIB"?(p.openBlock(),p.createBlock(s,{key:0,ref:"indSourceRef",data:n.dataSourceList,hasChildren:!0,isSub:!1,graphicConfig:n.graphicConfig,source:"INDICATOR_LIB",onSetItemDisabled:n.setItemDisabled,onOnDragStart:n.onDragStart},null,8,["data","graphicConfig","onSetItemDisabled","onOnDragStart"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createElementVNode("div",WI,[p.createVNode(u,{spinning:n.dataSourceLoading,tip:"数据源加载中..."},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.dataSourceList,(g,b)=>(p.openBlock(),p.createElementBlock("div",{key:g.id,class:p.normalizeClass(n.setItemDisabled(g.dataViewColumns)?"column-disabled":"")},[p.createElementVNode("div",$I,[p.createVNode(d,null,{title:p.withCtx(()=>[p.createElementVNode("div",null,"加载类型:"+p.toDisplayString(n.getLoadType(g.loadType)),1),g.useType?(p.openBlock(),p.createElementBlock("div",UI,"数据使用系统:"+p.toDisplayString(n.getUseType(g.useType)),1)):p.createCommentVNode("",!0),g.systemSource?(p.openBlock(),p.createElementBlock("div",GI,"制度出处:"+p.toDisplayString(g.systemSource),1)):p.createCommentVNode("",!0),g.meaning?(p.openBlock(),p.createElementBlock("div",KI,"指标含义:"+p.toDisplayString(g.meaning),1)):p.createCommentVNode("",!0)]),default:p.withCtx(()=>[p.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>n.onToggleGroup(b)},[g.show?(p.openBlock(),p.createBlock(l,{key:0})):(p.openBlock(),p.createBlock(c,{key:1})),p.createTextVNode(" "+p.toDisplayString((g.indexCode?g.indexCode:"")+" "+g.name)+"【"+p.toDisplayString(n.getSourceType(g.dataTo))+"】 ",1)],8,YI)]),_:2},1024)]),g.show?(p.openBlock(),p.createElementBlock("div",XI,[p.createVNode(h,{modelValue:g.dataViewColumns,"onUpdate:modelValue":m=>g.dataViewColumns=m,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:n.setItemDisabled(g.dataViewColumns),onStart:m=>n.onDragStart(m,g)},{item:p.withCtx(({element:m})=>[p.createElementVNode("div",qI,[p.createTextVNode(" 【"+p.toDisplayString(m.scope==="FIELD"?n.mapDataSetScope(m.genericType):n.mapScope(m.scope))+"】 ",1),p.createElementVNode("span",ZI,p.toDisplayString(m.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):p.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),p.createVNode(f,{size:"small","show-quick-jumper":"",pageSize:n.pagination.pageSize,"onUpdate:pageSize":e[1]||(e[1]=g=>n.pagination.pageSize=g),total:n.pagination.totalResult,"show-total":g=>`共 ${g} 条`,current:n.pagination.currentPage,"onUpdate:current":e[2]||(e[2]=g=>n.pagination.currentPage=g),onChange:n.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const QI=Vt(jI,[["render",JI],["__scopeId","data-v-4eec5bb9"]]),eF=p.defineComponent({name:"DataList",components:{DataSourceList:QI,DataViewList:vP},setup(){return{source:p.inject(rs)}}});function tF(n,e,t,o,i,r){const a=p.resolveComponent("data-view-list"),s=p.resolveComponent("data-source-list");return p.openBlock(),p.createElementBlock(p.Fragment,null,[n.source==="SQL_VIEW"?(p.openBlock(),p.createBlock(a,{key:0})):p.createCommentVNode("",!0),n.source==="INDICATOR_LIB"||n.source==="EDV_DATA_SET"?(p.openBlock(),p.createBlock(s,{key:1})):p.createCommentVNode("",!0)],64)}const nF=Object.freeze(Object.defineProperty({__proto__:null,default:Vt(eF,[["render",tF]])},Symbol.toStringTag,{value:"Module"})),i3={mounted(n){n.focus()}},oF=p.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:ma,AModal:Ae.Modal,AButton:Ae.Button,ASelect:Ae.Select,ASelectOption:Ae.SelectOption,DeleteOutlined:Ty},setup(n,{expose:e}){var N;const t=(N=window==null?void 0:window.config)==null?void 0:N.pageId,o=p.inject(li),i=p.inject(hi),r=p.unref(p.inject(ci)),a=p.inject(Kn),s=p.inject($o),l=p.computed(()=>p.unref(a).source),c=p.computed(()=>p.unref(a).dataViewId),d=p.ref([]),h=p.ref("1"),u=p.ref([]),f=p.computed(()=>{var F;return(F=p.unref(i))==null?void 0:F.filter(E=>E.keyName)}),g=F=>{const E=n.sortList.filter(T=>!p.unref(u).find(_=>_.columnName===T.name)||F.columnName===T.name),L=[];return E.forEach(T=>{L.find(_=>_.name===T.name)||L.push(T)}),[{label:"组件值",name:"component-value"},...L]},b=async()=>{try{const F=await o.post(`${Fo}/diagram/groupvalue`,{source:p.unref(l),dataViewId:p.unref(c),groupColumn:n.item.name,hrpIndexTypeGuid:n.item.typeGuid,pageId:t,pageFlag:!0,edvDataSetId:p.unref(a).edvDataSetId||""},{headers:{Authentication:r,operateContext:"ygt"}}),{success:E,data:L=[]}=F.data;E&&(d.value=L==null?void 0:L.slice(0,200))}catch(F){console.error(F)}},m=()=>{var _,A;const F=((_=p.unref(a)[n.type])==null?void 0:_.slice())||[],E=F[n.index],{label:L,name:T}=n.item;p.unref(h)==="2"?E.sort={label:L,columnName:T,type:"CUSTOM",customOrderColumns:p.unref(d)}:p.unref(h)==="1"&&((A=p.unref(u))!=null&&A.length?E.sort=et.cloneDeep(p.unref(u)):delete E.sort),s({[n.type]:F})};let y=!1;const v=()=>{y=!0},w=p.ref(!1),C=F=>{var L;const{sort:E}=F;E?Array.isArray(E)?(h.value=((L=E[0])==null?void 0:L.type)==="CUSTOM"?"2":"1",p.unref(h)==="1"?u.value=et.cloneDeep(E):u.value=[]):(h.value=(E==null?void 0:E.type)==="CUSTOM"?"2":"1",p.unref(h)==="1"?u.value=[et.cloneDeep(E)]:u.value=[]):u.value=[],w.value=!0},x=()=>{w.value=!1},S=()=>{p.unref(h)==="2"?(y&&m(),y=!1):m(),x()};return e({showModal:C}),p.watch(w,F=>{var E,L;if(F){const T=(L=(E=n.item)==null?void 0:E.sort)==null?void 0:L.customOrderColumns;T==null?b():d.value=T}else d.value=[];window.changeShowTable&&window.changeShowTable(!F)},{flush:"post"}),{visible:w,customSortList:d,activeKey:h,combSortList:u,usedComponentList:f,getSortOptions:g,onChange:v,onDeleteConfig:()=>{var L;const F=((L=p.unref(a)[n.type])==null?void 0:L.slice())||[],E=F[n.index];delete E.sort,s({[n.type]:F}),x()},onCancel:S,onAddSort:()=>{p.unref(u).push({label:"",columnName:null,componentId:null,type:"COMBINATION",order:null})},handleDeleteSort:F=>{u.value.splice(F,1)},onColumnChange:F=>{const E=p.unref(u).find(L=>L.columnName===F);if(E){F==="component-value"?E.label="":E.componentId="";const L=n.sortList.find(T=>T.name===F);L&&(E.label=L.label,L.defaultCode?E.defaultCode=L.defaultCode:delete E.defaultCode)}}}}}),wme="",iF={class:"button-wrapper"},rF={class:"list-wrapper"},aF={class:"button-wrapper"},sF={class:"sort-item"};function lF(n,e,t,o,i,r){const a=p.resolveComponent("a-button"),s=p.resolveComponent("a-select"),l=p.resolveComponent("a-select-option"),c=p.resolveComponent("delete-outlined"),d=p.resolveComponent("a-tab-pane"),h=p.resolveComponent("draggable"),u=p.resolveComponent("a-tabs"),f=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(f,{title:"排序配置",visible:n.visible,"destroy-on-close":"",width:"50%",onCancel:n.onCancel,bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null},{default:p.withCtx(()=>[p.createVNode(u,{activeKey:n.activeKey,"onUpdate:activeKey":e[1]||(e[1]=g=>n.activeKey=g)},{default:p.withCtx(()=>[p.createVNode(d,{key:"1",tab:"组合排序"},{default:p.withCtx(()=>[p.createElementVNode("div",iF,[p.createVNode(a,{primary:"",onClick:n.onAddSort},{default:p.withCtx(()=>[p.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),p.createElementVNode("div",rF,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.combSortList,(g,b)=>(p.openBlock(),p.createElementBlock("div",{class:"sort-row",key:b},[p.createVNode(s,{value:g.columnName,"onUpdate:value":m=>g.columnName=m,style:{width:"200px"},placeholder:"维度/指标",options:n.getSortOptions(g),fieldNames:{label:"label",value:"name"},onChange:n.onColumnChange},{option:p.withCtx(({label:m,name:y})=>[p.createElementVNode("span",{style:p.normalizeStyle({color:y==="component-value"?"#1890ff":""})},p.toDisplayString(m),5)]),_:2},1032,["value","onUpdate:value","options","onChange"]),g.columnName==="component-value"?(p.openBlock(),p.createBlock(s,{key:0,value:g.componentId,"onUpdate:value":m=>g.componentId=m,style:{"margin-left":"10px","min-width":"200px"},placeholder:"选择组件",options:n.usedComponentList,fieldNames:{label:"keyName",value:"id"}},null,8,["value","onUpdate:value","options"])):p.createCommentVNode("",!0),p.createVNode(s,{value:g.order,"onUpdate:value":m=>g.order=m,style:{"margin-left":"10px",width:"100px"},placeholder:"升/降序"},{default:p.withCtx(()=>[p.createVNode(l,{value:"ASC"},{default:p.withCtx(()=>[p.createTextVNode("升序")]),_:1}),p.createVNode(l,{value:"DESC"},{default:p.withCtx(()=>[p.createTextVNode("降序")]),_:1})]),_:2},1032,["value","onUpdate:value"]),p.createVNode(c,{style:{color:"red","margin-left":"10px"},onClick:m=>n.handleDeleteSort(b)},null,8,["onClick"])]))),128))])]),_:1}),p.createVNode(d,{key:"2",tab:"自定义排序","force-render":""},{default:p.withCtx(()=>[p.createElementVNode("div",aF,[p.createVNode(a,{danger:"",onClick:n.onDeleteConfig},{default:p.withCtx(()=>[p.createTextVNode(" 删除配置 ")]),_:1},8,["onClick"])]),p.createVNode(h,{modelValue:n.customSortList,"onUpdate:modelValue":e[0]||(e[0]=g=>n.customSortList=g),class:"custom-sort-list","item-key":"id",put:!1,onChange:n.onChange},{item:p.withCtx(({element:g})=>[p.createElementVNode("div",sF,p.toDisplayString(g),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const cF=Vt(oF,[["render",lF],["__scopeId","data-v-3eb2d44e"]]),dF=p.defineComponent({name:"CustomGroupModal",directives:{focus:i3},components:{CloseOutlined:ih,PlusOutlined:e3,EditOutlined:zL,AModal:Ae.Modal,AButton:Ae.Button,AInput:Ae.Input,ACheckbox:Ae.Checkbox,ACollapse:Ae.Collapse,ACollapsePanel:Ae.CollapsePanel,ATag:Ae.Tag,ACheckableTag:Ae.CheckableTag,ADropdown:Ae.Dropdown,AMenu:Ae.Menu,ASubMenu:Ae.SubMenu,AMenuItem:Ae.MenuItem,APopover:Ae.Popover},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},setup(n,{expose:e}){var X;const t=p.inject(li),o=(X=window==null?void 0:window.config)==null?void 0:X.pageId,i=p.unref(p.inject(ci));let r=!1;const a=p.computed(()=>`自定义分组-${n.item.label}`),s=p.ref([]),l=p.ref([]),c=p.ref([]),d=p.ref([]),h=p.ref([]),u=p.computed(()=>{const Z=p.unref(l).map(Y=>Y.title);return new Set(Z)}),f=p.ref([]);p.watch(()=>p.unref(l).length,Z=>{f.value=new Array(Z).fill(!1),c.value=new Array(Z).fill(!1),d.value=new Array(Z).fill(""),h.value=new Array(Z).fill(null)});const g=p.computed(()=>{let Z=0;return p.unref(l).forEach(Y=>{var q;(q=Y.data)==null||q.forEach(ne=>{ne.checked&&Z++})}),Z}),b=()=>{const Z=p.unref(u);let Y=1;for(;Z.has(`分组${Y}`);)Y++;p.unref(l).push({title:`分组${Y}`,data:[]}),r=!0},m=Z=>{var ne,ie;const Y=p.unref(d)[Z];if(!Y){Ae.message.error("值名称不能空");return}let q=!0;if((ne=p.unref(l))!=null&&ne.length)for(const J of p.unref(l)){if((ie=J==null?void 0:J.data)!=null&&ie.length){for(const Q of J.data)if(Q.label===Y){q=!1;break}}if(!q)break}q?(p.unref(l)[Z].data.push({label:Y,checked:!1,isNew:!0}),S(Z),r=!0,p.unref(d)[Z]="",p.unref(c)[Z]=!1):Ae.message.error("名称已存在,请重新命名")},y=(Z,Y)=>{Z&&(p.unref(d)[Y]="",p.nextTick(()=>{var q;(q=p.unref(h)[Y])==null||q.focus()}))},v=(Z,Y)=>{var ie;const q=Z==null?void 0:Z.$el,ne=(q==null?void 0:q.tagName)==="INPUT"?q:((ie=q==null?void 0:q.querySelector)==null?void 0:ie.call(q,"input"))||Z;p.unref(h)[Y]=ne},w=(Z,Y)=>{p.unref(l)[Z].data.splice(Y,1),r=!0},C=Z=>{var ne;const Y=p.unref(l),q=Y[Z];(ne=q==null?void 0:q.data)!=null&&ne.length&&Y[0]&&(Y[0].data=[...q.data.map(ie=>({...ie,checked:!1})),...Y[0].data]),Y.splice(Z,1),r=!0},x=p.computed(()=>p.unref(l).map((Z,Y)=>p.unref(l).map((q,ne)=>({title:q.title,index:ne})).filter(q=>q.index!==Y))),S=Z=>{const Y=p.unref(s);Y.includes(String(Z))||Y.push(String(Z))},O=()=>{const Z=[],Y=p.unref(l),q=Y.length;for(let ne=0;ne<q;ne++)Y[ne].data=Y[ne].data.filter(ie=>(ie.checked&&Z.push({...ie,checked:!1}),!ie.checked));return Z},M=Z=>{if(p.unref(g)===0){Ae.message.error("当前移入分组已选个数为0");return}if(!p.unref(l)[Z]){Ae.message.error("移入分组不存在,请重新选择");return}const Y=O();p.unref(l)[Z].data=[...Y,...p.unref(l)[Z].data],S(Z),r=!0},R=Z=>{if(p.unref(g)===0){Ae.message.error("当前移入分组已选个数为0");return}const Y=Z.label;if(p.unref(u).has(Y)){Ae.message.error("分组名已存在,请重新命名");return}const q=O(),ne=p.unref(l).length;p.unref(l).push({title:Y,data:q}),S(ne),r=!0},P=Z=>{Z.checked||(Z.checked=!0)},N=Z=>{p.unref(f)[Z]=!0},F=Z=>{p.unref(f)[Z]=!1},E=(Z,Y)=>{const q=Z.target.value;p.unref(u).has(q)&&Ae.message.error("组名不能相同,请修改"),p.unref(l)[Y].title=q,r=!0},L=p.inject(Kn),T=p.inject($o),_=p.computed(()=>p.unref(L).source),A=p.computed(()=>p.unref(L).dataViewId),B=p.ref(!1),k=()=>{var Q,te;const Z=p.unref(l);let Y="";p.unref(B)&&(Y=(Q=Z[0])==null?void 0:Q.title);const q=Z==null?void 0:Z.length,ne={};for(let ee=1;ee<q;ee++){const ae=Z[ee]||{},{title:oe,data:he}=ae;ne[oe]=(he==null?void 0:he.map(ue=>ue.label))||[]}const ie=((te=p.unref(L)[n.type])==null?void 0:te.slice())||[],J=ie[n.index];J.customGroup={groupInfoMap:ne,otherGroupName:Y},T({[n.type]:ie})},I=p.ref(!1),D=()=>{I.value=!0},H=()=>{I.value=!1},W=()=>{H(),r&&k(),r=!1},$=()=>{r=!0},K=new Set,V=new Set;let G=!1;const z=async()=>{const Z=n.item.customGroup||{},Y=Z.otherGroupName,q=Z.groupInfoMap;(Y===""||Y==null)&&(B.value=!1),p.unref(l)[0]={title:Y||"未分组",data:[]};let ne=1;for(const ie in q)if(Object.prototype.hasOwnProperty.call(q,ie)){const Q=q[ie].map(te=>(K.add(te),{label:te,checked:!1}));p.unref(l)[ne]={title:ie,data:Q},ne++}await j(),U()},j=async()=>{var Z;try{const Y=await t.post(`${Fo}/diagram/groupvalue`,{source:p.unref(_),dataViewId:p.unref(A),groupColumn:n.item.name,hrpIndexTypeGuid:n.item.typeGuid,pageId:o,pageFlag:!0,edvDataSetId:p.unref(L).edvDataSetId||""},{headers:{Authentication:i,operateContext:"ygt"}}),{success:q,data:ne=[]}=Y.data;if(q){G=!0,ne==null||ne.forEach(J=>{V.add(J)});const ie=[];(Z=ne==null?void 0:ne.slice(0,200))==null||Z.forEach(J=>{K.has(J)||ie.push({label:J,checked:!1})}),p.unref(l)[0].data=ie}}catch(Y){console.error(Y)}},U=()=>{var Z;if(G)for(const Y of p.unref(l))(Z=Y.data)==null||Z.forEach(q=>{V.has(q.label)||(q.isNew=!0)})};return p.watch(I,Z=>{Z&&z(),window.changeShowTable&&window.changeShowTable(!Z)},{flush:"post"}),e({showModal:D}),{visible:I,title:a,activeKey:s,customGroupList:l,onCancel:W,useOtherGroup:B,selectCount:g,onAddGroup:b,onDeleteGroup:C,onMoveInGroup:M,onMergeToNewGroup:R,onEditTitle:N,onTitleChange:E,onFinishEditTitle:F,onUseOtherGroup:$,onAddValue:m,onNewValueVisibleChange:y,setNewValueInputRef:v,onDeleteValue:w,onTagContextMenu:P,newValueVisibleList:c,newValueTitleList:d,moveGroupListMap:x,customGroupEditTitleList:f}}}),Cme="",xme="",hF=n=>(p.pushScopeId("data-v-661fc221"),n=n(),p.popScopeId(),n),uF={class:"custom-group-header"},fF={class:"move-and-create"},pF={class:"header-actions"},gF={class:"select-tip"},mF={class:"select-count"},bF=hF(()=>p.createElementVNode("div",{class:"custom-group-tip"}," 在标签上按下鼠标右键可执行“移入分组”和“合并为新分组”的操作 ",-1)),yF={class:"custom-group-content"},vF={class:"group-header"},wF={key:0,class:"group-title"},CF={class:"new-value-popover"},xF={class:"extra"},_F={class:"custom-group-list"},SF={class:"text"};function AF(n,e,t,o,i,r){const a=p.resolveComponent("a-button"),s=p.resolveComponent("a-checkbox"),l=p.resolveComponent("a-input"),c=p.resolveComponent("edit-outlined"),d=p.resolveComponent("plus-outlined"),h=p.resolveComponent("a-popover"),u=p.resolveComponent("a-tag"),f=p.resolveComponent("close-outlined"),g=p.resolveComponent("a-checkable-tag"),b=p.resolveComponent("a-menu-item"),m=p.resolveComponent("a-sub-menu"),y=p.resolveComponent("a-menu"),v=p.resolveComponent("a-dropdown"),w=p.resolveComponent("a-collapse-panel"),C=p.resolveComponent("a-collapse"),x=p.resolveComponent("a-modal"),S=p.resolveDirective("focus");return p.openBlock(),p.createBlock(x,{title:n.title,visible:n.visible,"destroy-on-close":"",width:"50%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column"},footer:null,onCancel:n.onCancel},{default:p.withCtx(()=>[p.createElementVNode("div",uF,[p.createElementVNode("div",fF,[p.createElementVNode("div",pF,[p.createVNode(a,{class:"create-group-button",onClick:n.onAddGroup},{default:p.withCtx(()=>[p.createTextVNode("创建分组")]),_:1},8,["onClick"]),p.createVNode(s,{checked:n.useOtherGroup,"onUpdate:checked":e[0]||(e[0]=O=>n.useOtherGroup=O),onChange:n.onUseOtherGroup},{default:p.withCtx(()=>[p.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])]),p.createElementVNode("span",gF,[p.createTextVNode(" 已选"),p.createElementVNode("span",mF,p.toDisplayString(n.selectCount),1),p.createTextVNode("个 ")])]),bF]),p.createElementVNode("div",yF,[p.createVNode(C,{activeKey:n.activeKey,"onUpdate:activeKey":e[3]||(e[3]=O=>n.activeKey=O),ghost:""},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.customGroupList,(O,M)=>(p.openBlock(),p.createBlock(w,{key:M},{header:p.withCtx(()=>[p.createElementVNode("div",vF,[n.customGroupEditTitleList[M]?p.withDirectives((p.openBlock(),p.createBlock(l,{key:1,class:"edit-title-input",value:O.title,size:"small",onClick:e[1]||(e[1]=p.withModifiers(()=>{},["stop"])),onChange:R=>n.onTitleChange(R,M),onBlur:R=>n.onFinishEditTitle(M),onPressEnter:R=>n.onFinishEditTitle(M)},null,8,["value","onChange","onBlur","onPressEnter"])),[[S]]):(p.openBlock(),p.createElementBlock("div",wF,p.toDisplayString(O.title),1)),n.customGroupEditTitleList[M]?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(c,{key:2,class:"group-edit-icon",title:"编辑分组名",onClick:p.withModifiers(R=>n.onEditTitle(M),["stop"])},null,8,["onClick"])),p.createVNode(h,{visible:n.newValueVisibleList[M],"onUpdate:visible":R=>n.newValueVisibleList[M]=R,placement:"bottom",trigger:"click",onVisibleChange:R=>n.onNewValueVisibleChange(R,M)},{content:p.withCtx(()=>[p.createElementVNode("div",CF,[p.createVNode(l,{class:"new-value-input",ref_for:!0,ref:R=>n.setNewValueInputRef(R,M),value:n.newValueTitleList[M],"onUpdate:value":R=>n.newValueTitleList[M]=R,placeholder:"请输入值名称",onPressEnter:R=>n.onAddValue(M)},null,8,["value","onUpdate:value","onPressEnter"]),p.createVNode(a,{class:"new-value-confirm",type:"primary",size:"small",onClick:R=>n.onAddValue(M)},{default:p.withCtx(()=>[p.createTextVNode(" 确认 ")]),_:2},1032,["onClick"])])]),default:p.withCtx(()=>[p.createElementVNode("span",{class:"new-value-icon-wrap",onClick:e[2]||(e[2]=p.withModifiers(()=>{},["stop"]))},[p.createVNode(d,{class:"new-value-icon",title:"新建值"})])]),_:2},1032,["visible","onUpdate:visible","onVisibleChange"])])]),extra:p.withCtx(()=>[p.createElementVNode("div",xF,[M===0&&n.useOtherGroup?(p.openBlock(),p.createBlock(u,{key:0,class:"tag",color:"blue"},{default:p.withCtx(()=>[p.createTextVNode(" 其他组 ")]),_:1})):p.createCommentVNode("",!0),M!==0?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(u,{class:"tag",color:"green"},{default:p.withCtx(()=>[p.createTextVNode(" 自定义组 ")]),_:1}),p.createVNode(f,{onClick:p.withModifiers(R=>n.onDeleteGroup(M),["prevent","stop"])},null,8,["onClick"])],64)):p.createCommentVNode("",!0)])]),default:p.withCtx(()=>[p.createElementVNode("div",_F,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(O.data,(R,P)=>(p.openBlock(),p.createBlock(v,{key:P,trigger:["contextmenu"]},{overlay:p.withCtx(()=>[p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(m,{key:"move-group",title:"移入分组"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.moveGroupListMap[M],N=>(p.openBlock(),p.createBlock(b,{key:N.index,onClick:F=>n.onMoveInGroup(N.index)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(N.title),1)]),_:2},1032,["onClick"]))),128)),n.moveGroupListMap[M].length?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(b,{key:0,disabled:""},{default:p.withCtx(()=>[p.createTextVNode(" 暂无分组 ")]),_:1}))]),_:2},1024),p.createVNode(b,{key:"merge-new-group",onClick:N=>n.onMergeToNewGroup(R)},{default:p.withCtx(()=>[p.createTextVNode(" 合并为新分组 ")]),_:2},1032,["onClick"])]),_:2},1024)]),default:p.withCtx(()=>[p.createVNode(g,{color:"red",checked:R.checked,"onUpdate:checked":N=>R.checked=N,class:"custom-group",onContextmenu:N=>n.onTagContextMenu(R)},{default:p.withCtx(()=>[p.createElementVNode("span",SF,p.toDisplayString(R.label),1),R.isNew?(p.openBlock(),p.createBlock(f,{key:0,class:"tag-delete",onClick:p.withModifiers(N=>n.onDeleteValue(M,P),["stop"])},null,8,["onClick"])):p.createCommentVNode("",!0)]),_:2},1032,["checked","onUpdate:checked","onContextmenu"])]),_:2},1024))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const TF=Vt(dF,[["render",AF],["__scopeId","data-v-661fc221"]]);let Yn=(n=21)=>{let e="",t=crypto.getRandomValues(new Uint8Array(n));for(;n--;){let o=t[n]&63;o<36?e+=o.toString(36):o<62?e+=(o-26).toString(36).toUpperCase():o<63?e+="_":e+="-"}return e};var kF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Hy={},MF={get exports(){return Hy},set exports(n){Hy=n}};(function(n,e){(function(t,o){n.exports=o()})(kF,function(){var t="month",o="quarter";return function(i,r){var a=r.prototype;a.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=a.add;a.add=function(c,d){return c=Number(c),this.$utils().p(d)===o?this.add(3*c,t):s.bind(this)(c,d)};var l=a.startOf;a.startOf=function(c,d){var h=this.$utils(),u=!!h.u(d)||d;if(h.p(c)===o){var f=this.quarter()-1;return u?this.month(3*f).startOf(t).startOf("day"):this.month(3*f+2).endOf(t).endOf("day")}return l.bind(this)(c,d)}}})})(MF);const BF=Hy;Cn.extend(BF);const RF=p.defineComponent({name:"Condition",components:{CloseOutlined:ih,AppstoreAddOutlined:vy,ASelect:Ae.Select,AInput:Ae.Input,ADatePicker:Ae.DatePicker,AButton:Ae.Button,ADropdown:Ae.Dropdown,AMenu:Ae.Menu,AMenuItem:Ae.MenuItem,APopover:Ae.Popover,ATabs:Ae.Tabs,ATabPane:Ae.TabPane,ARadioGroup:Ae.RadioGroup,ARadio:Ae.Radio,AInputNumber:Ae.InputNumber,ASelectOption:Ae.SelectOption,MenuOutlined:Oy},props:{data:{type:Object,default:()=>({})},level:{type:Number,default:0},index:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},setup(n){var te,ee,ae,oe,he,ue,me,Se,ke,Be,ze,He,Ue,Ke,De;const e=(te=window==null?void 0:window.config)==null?void 0:te.pageId,t=p.inject(Kn),o=p.inject(li),i=p.unref(p.inject(ci)),r=p.inject(S2),a=p.inject(hi),s=p.ref(!1),l=Cn(),c=p.computed(()=>{var ce;const de=[];return(ce=p.unref(a))==null||ce.forEach(ge=>{const{keyName:Me="",id:Ie="",type:Ze}=ge;Ze==="ecanRangePicker"?de.push({value:`${Ie}-startTime`,label:`${Me||Ie}-开始时间值`,keyName:`${Me||Ie}-startTime`,id:Ie},{value:`${Ie}-endTime`,label:`${Me||Ie}-结束时间值`,keyName:`${Me||Ie}-endTime`,id:Ie}):de.push({value:Ie,label:`${Me||Ie}`,keyName:`${Me||Ie}`,id:Ie})}),de}),d=p.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...p.unref(c)]),h=p.computed(()=>{var de;return(de=p.unref(t))==null?void 0:de.dataViewId}),u=p.computed(()=>{var de;return(de=p.unref(t))==null?void 0:de.source}),f=p.ref(!1),g={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},b=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],m=p.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),y=p.ref([{key:0,value:"",label:"年",type:"years",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"年前",afterLabel:"年后",beforeText:"年初",afterText:"年末"},{key:1,value:"",label:"季度",type:"quarters",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个季度前",afterLabel:"个季度后",beforeText:"季度初",afterText:"季度末"},{key:2,value:"",label:"月",type:"months",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个月前",afterLabel:"个月后",beforeText:"月初",afterText:"月末"},{key:3,value:"",label:"周",type:"weeks",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"周前",afterLabel:"周后",beforeText:"",afterText:""},{key:4,value:"",label:"天",type:"days",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"天前",afterLabel:"天后",beforeText:"今天",afterText:""}]),v=[{label:"年份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"季的季度",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"月的月份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"周的周",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"天的日期",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"}],w=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],C=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],x=p.ref({fieldName:(ee=n.data)==null?void 0:ee.fieldName,fieldType:(ae=n.data)==null?void 0:ae.fieldType,rule:(oe=n.data)==null?void 0:oe.rule,id:(he=n.data)==null?void 0:he.id,fieldValue:S(),label:(ue=n.data)==null?void 0:ue.label,targetSource:"",typeGuid:(me=n.data)==null?void 0:me.typeGuid,indexCode:(Se=n.data)==null?void 0:Se.indexCode,indexCodeNum:(ke=n.data)==null?void 0:ke.indexCodeNum,dataType:((Be=n.data)==null?void 0:Be.dataType)||"",componentId:((ze=n.data)==null?void 0:ze.componentId)||"",useCurrentTime:!!((He=n.data)!=null&&He.useCurrentTime),keyValue:(Ue=n.data)==null?void 0:Ue.keyValue,modelKey:(Ke=n.data)==null?void 0:Ke.modelKey,prop:(De=n.data)==null?void 0:De.prop});function S(){const{fieldType:de="",dataType:ce="",fieldValue:ge=""}=n.data;if(de==="DATE"&&!ce)return ge&&Cn(ge);if(ce==="component"){const Me=p.unref(c).find(Ie=>Ie.keyName===ge);return Me?Me.value:ge}else return ge}const O=p.ref([]),M=p.ref(!1),R=p.computed(()=>x.value.fieldType==="DATE"),P=p.computed(()=>{const de=n.type,{source:ce}=p.unref(t);let ge=[];const Me=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],Ie=["controlList","sqlConditions","variableList","variableConditions"];if(ce==="EDV_DATA_SET")ge=O.value;else if(Me.includes(de)){let Ze=[];for(const We in p.unref(t))if(Object.prototype.hasOwnProperty.call(p.unref(t),We)&&!Ie.includes(We)){const qe=p.unref(t)[We];Array.isArray(qe)&&(Me.includes(We)?Ze=Ze.concat(qe.filter(we=>we.show)):Ze=Ze.concat(qe))}ge=Ze}else["leftAxisList","rightAxisList","indicators"].includes(de)&&(ge=p.unref(r));return ge.map(Ze=>({...Ze,label:Ze.label||Ze.title,value:Ze.name}))}),{updateCondition:N,deleteCondition:F,addCondition:E}=p.inject(Tf,{updateCondition:(de,ce,ge)=>{},deleteCondition:(de,ce)=>{},addCondition:(de,ce,ge)=>{}}),L=()=>{F(n.index,n.path)};p.watch(x,de=>{const ce=et.cloneDeep(de);de.fieldType==="DATE"&&de.dataType!=="component"&&de.fieldValue&&(ce.fieldValue=de.fieldValue.format(de.dateFormat)),N(ce,n.index,n.path)},{deep:!0}),p.watch(s,de=>{x.value.fieldValue="",x.value.useCurrentTime=de});const T=de=>{var Je;const ce=p.unref(P).find(at=>at.value===de)||{},{name:ge,genericType:Me,id:Ie,edvDataSetId:Ze,label:We,typeGuid:qe,indexCode:we,indexCodeNum:$e}=ce;x.value={id:Ie,fieldName:ge,fieldType:Me,label:We,rule:"",fieldValue:Me==="DATE"?null:void 0,targetSource:"",typeGuid:qe,indexCode:we,edvDataSetId:Ze,indexCodeNum:$e,dataType:"",useCurrentTime:!1,keyValue:((Je=p.unref(x))==null?void 0:Je.keyValue)||Yn(),modelKey:"",prop:""}},_=de=>{const ce=p.unref(c).find(ge=>ge.value===de)||{};p.unref(x).componentId=ce.id||""},A=p.computed(()=>{const de=p.unref(x).fieldType;return de==="TEXT"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"包含",value:"LIKE"},{label:"不包含",value:"NOT_LIKE"},{label:"开头是",value:"LIKE%"},{label:"结尾是",value:"%LIKE"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"}]:de==="NUMBER"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:de==="DATE"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]}),B=p.computed(()=>{let de="";const ce=p.unref(A).find(ge=>ge.value===p.unref(x).rule);return ce&&(de=ce.label),de}),k=p.computed(()=>{let de={fontSize:"12px"};return p.unref(B)||(de={...de,position:"absolute",right:"11px",top:"9px"}),de}),I=p.ref([]),D=async()=>{var de;if(!(p.unref(I).length>0))try{const ce=await o.post(`${Fo}/diagram/groupvalue`,{source:p.unref(u),dataViewId:p.unref(h),groupColumn:p.unref(x).fieldName,hrpIndexTypeGuid:p.unref(x).typeGuid,pageId:e,pageFlag:!0,edvDataSetId:p.unref(x).edvDataSetId||""},{headers:{Authentication:i,operateContext:"ygt"}}),{success:ge,data:Me=[]}=ce.data;ge&&(I.value=(de=Me==null?void 0:Me.slice(0,200))==null?void 0:de.map(Ie=>({label:Ie,value:Ie})))}catch(ce){console.error(ce)}},H=de=>{p.unref(x).rule=de,p.unref(x).fieldValue=p.unref(x).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(de)&&D()},W=de=>{p.unref(x).dataType=de,p.unref(x).fieldValue="",p.unref(x).modelKey="",p.unref(x).prop=""},$=p.ref(),K=de=>{$.value=de,p.unref(x).fieldValue=(de==null?void 0:de.join(","))||""},V=de=>{const{keyPath:ce}=de;p.unref(x).rule=ce[0],p.unref(x).dataType=ce[1],p.unref(x).dateFormat=ce[2],p.unref(x).fieldValue="",p.unref(x).modelKey="",p.unref(x).prop=""};p.onMounted(async()=>{var Ie,Ze,We,qe,we,$e,Je,at,dt,Ft;if(x.value.dataType=((Ie=n.data)==null?void 0:Ie.dataType)||"",x.value.componentId=((Ze=n.data)==null?void 0:Ze.componentId)||"",x.value.keyValue=(We=n.data)==null?void 0:We.keyValue,x.value.modelKey=(qe=n.data)==null?void 0:qe.modelKey,x.value.prop=(we=n.data)==null?void 0:we.prop,p.unref(x).fieldType==="DATE"){const{activeKey:It,dateCalcTypes:gt=[]}=n.data||{};if(p.unref(x).dateFormat=($e=n.data)==null?void 0:$e.dateFormat,p.unref(x).activeKey=It,p.unref(x).calcWays=((Je=n.data)==null?void 0:Je.calcWays)||[],p.unref(x).dateCalcTypes=gt,p.unref(x).useCurrentTime&&p.unref(x).dataType!=="component"&&(s.value=!0),It===5){const Rt=p.unref(x).calcWays[0];if(Rt){const Gt=Rt.split("-");p.unref(m).expression=Gt[0],p.unref(m).around=Gt[1]}p.unref(m).unit=gt[0]||"YEAR"}else{p.unref(x).radioValue=((at=n.data)==null?void 0:at.radioValue)||"";const Rt=p.unref(y).find(Gt=>{var At;return Gt.key===((At=n.data)==null?void 0:At.activeKey)});Rt&&q(Rt,n.data)}}else $.value=((Ft=(dt=n.data)==null?void 0:dt.fieldValue)==null?void 0:Ft.split(","))||[];const{fieldType:de,fieldName:ce,rule:ge}=x.value;de!=="DATE"&&ce&&ge&&["IN","NOT_IN"].includes(ge)&&D();const{source:Me}=p.unref(t);Me==="EDV_DATA_SET"&&await o.get(`${Fo}/dataset/`+p.unref(t).edvDataSetId||"",{headers:{Authentication:i,operateContext:"ygt"}}).then(It=>{It.data.success&&(O.value=It.data.data.column.map(gt=>({...gt,genericType:gt.columnCategory,edvDataSetId:It.data.data.id,name:gt.columnName,label:gt.columnName})))}).catch(It=>{console.error(It)})});const G=de=>{if(p.unref(x).activeKey===de){p.unref(y)[de].radioValue=p.unref(x).radioValue,p.unref(y)[p.unref(x).activeKey]&&(p.unref(y)[p.unref(x).activeKey].radioValue=p.unref(x).radioValue,p.unref(x).radioValue==="1"?p.unref(y)[de].beforeNum=p.unref(x).calcWays[0]:p.unref(x).radioValue==="2"&&(p.unref(y)[de].afterNum=p.unref(x).calcWays[0]));return}p.unref(y).forEach(ce=>{ce.beforeNum=0,ce.afterNum=0,ce.radioValue="1",ce.value=""})},z=(de,ce)=>{f.value=!0;const ge=de.target.value,Me=ce.type,Ie=p.unref(x).dateFormat,Ze=Math.abs(ce.beforeNum),We=ce.afterNum;ce.value=ne(ge,Me,Ie,Ze,We)},j=de=>{const ce=p.unref(x).activeKey;if(de!==ce)return;let ge="";ce===0?ge="years":ce===1?ge="quarters":ce===2?ge="months":ce===3?ge="weeks":ce===4&&(ge="days");const Me=p.unref(x).dateFormat,Ie=p.unref(x).radioValue;let Ze=0,We=0;return Ie==="1"?Ze=Math.abs(p.unref(x).calcWays[0]):Ie==="2"&&(We=p.unref(x).calcWays[0]),ne(Ie,ge,Me,Ze,We)},U=(de,ce,ge,Me)=>{if(f.value=!0,ce.radioValue===Me){const Ie=de.target.value;ge==="+"?ce.value=Cn().add(Ie,ce.type).format(p.unref(x).dateFormat):ce.value=Cn().subtract(Ie,ce.type).format(p.unref(x).dateFormat)}},X=p.computed(()=>{let de=!1;const{calcWays:ce=[]}=p.unref(x),ge=ce[0];return ge&&parseFloat(ge)!==0&&(de=!0),de}),Z=(de,ce)=>{p.unref(x).calcWays||(p.unref(x).calcWays=[]),p.unref(x).activeKey=ce,p.unref(x).radioValue=de.radioValue,de.radioValue==="1"?p.unref(x).calcWays[0]="-"+de.beforeNum:de.radioValue==="2"?p.unref(x).calcWays[0]=de.afterNum:de.radioValue==="3"?ce===4?p.unref(x).calcWays[0]="0":p.unref(x).calcWays[0]="BEGIN":de.radioValue==="4"&&(p.unref(x).calcWays[0]="END"),ce===0?p.unref(x).dateCalcTypes=["YEAR"]:ce===1?p.unref(x).dateCalcTypes=["QUARTER"]:ce===2?p.unref(x).dateCalcTypes=["MONTH"]:ce===3?p.unref(x).dateCalcTypes=["WEEK"]:ce===4&&(p.unref(x).dateCalcTypes=["DAY"]),M.value=!1},Y=()=>{p.unref(x).activeKey=5,p.unref(x).dateCalcTypes=[p.unref(m).unit],p.unref(x).calcWays[0]=`${p.unref(m).expression}-${p.unref(m).around}`,M.value=!1};function q(de,ce){const{radioValue:ge="",calcWays:Me=[]}=ce;de.radioValue=ge,Me!=null&&Me.length&&(ge==="1"?de.beforeNum=Math.abs(Me[0]):ge==="2"&&(de.afterNum=Me[0]))}function ne(de,ce,ge,Me,Ie){if(de==="1")return Cn().subtract(Me,ce).format(ge);if(de==="2")return Cn().add(Ie,ce).format(ge);if(de==="3"){if(ce==="years")return Cn().startOf("year").format(ge);if(ce==="quarters")return Cn().startOf("quarter").format(ge);if(ce==="months")return Cn().startOf("month").format(ge);if(ce==="days")return Cn().format(ge)}else if(de==="4"){if(ce==="years")return Cn().endOf("year").format(ge);if(ce==="quarters")return Cn().endOf("quarter").format(ge);if(ce==="months")return Cn().endOf("month").format(ge)}return""}const ie=(de,ce)=>ce.label.toLowerCase().indexOf(de.toLowerCase())>=0,J=p.computed(()=>p.unref(R)||!["IN","NOT_IN"].includes(p.unref(x).rule));return{fieldOptions:P,ruleOptions:A,onFieldChange:T,condition:x,valueOptions:I,onRuleChange:H,onDataTypeChange:W,onFieldValueSelectChange:K,fieldValues:$,onDelete:L,isDateType:R,formatList:b,tabDateList:y,compareList:v,menuRule:w,dateBtnLabel:B,downIconStyle:k,popoverVisible:M,dateRadioStyle:g,showTime:f,controlList:c,keyNameOptions:d,dataTypeList:C,customTabData:m,isUseCurrentTime:s,currentTime:l,isShowCustomDataType:J,handleMenuClick:V,changeTabInitDate:G,changeRadioValue:z,getFieldValue:j,blurCompare:U,okDatePickConfig:Z,onChangeComponent:_,filterOption:ie,okCustomConfig:Y,clickConditionMenu:({key:de})=>{E(n.path,n.index,de==="2"?"||":"&&")},dataSetfieldOptions:O,isConfigFlag:X}}}),_me="",Sme="",EF={class:"condition"},OF=["title"],PF={class:"rule"},LF={class:"data-type"},IF={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},FF={class:"popover-content-wrap"},NF={key:0,class:"use-current-time"},DF={class:"tabFilterRadio"},HF={key:0},zF={key:1},jF={style:{"margin-left":"10px"}},VF={style:{"margin-left":"10px"}},WF={style:{position:"absolute",bottom:"10px"}},$F={style:{display:"flex"}},UF={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function GF(n,e,t,o,i,r){const a=p.resolveComponent("a-select-option"),s=p.resolveComponent("a-select"),l=p.resolveComponent("a-date-picker"),c=p.resolveComponent("a-input"),d=p.resolveComponent("appstore-add-outlined"),h=p.resolveComponent("a-checkbox"),u=p.resolveComponent("a-input-number"),f=p.resolveComponent("a-radio"),g=p.resolveComponent("a-radio-group"),b=p.resolveComponent("a-button"),m=p.resolveComponent("a-tab-pane"),y=p.resolveComponent("a-tabs"),v=p.resolveComponent("a-popover"),w=p.resolveComponent("menu-outlined"),C=p.resolveComponent("a-menu-item"),x=p.resolveComponent("a-menu"),S=p.resolveComponent("a-dropdown"),O=p.resolveComponent("close-outlined");return p.openBlock(),p.createElementBlock("div",EF,[p.createVNode(s,{class:"field-name",value:n.condition.fieldName,onChange:n.onFieldChange},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.fieldOptions,(M,R)=>(p.openBlock(),p.createBlock(a,{key:R,value:M.value},{default:p.withCtx(()=>[p.createElementVNode("span",{title:M.label},p.toDisplayString(M.label),9,OF)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),p.createElementVNode("div",PF,[p.createVNode(s,{style:{width:"100%"},value:n.condition.rule,options:n.ruleOptions,onChange:n.onRuleChange},null,8,["value","options","onChange"])]),p.withDirectives(p.createElementVNode("div",LF,[p.createVNode(s,{style:{width:"100%"},value:n.condition.dataType,onChange:n.onDataTypeChange},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.dataTypeList,(M,R)=>(p.openBlock(),p.createBlock(a,{key:R,value:M.value},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(M.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])],512),[[p.vShow,n.isShowCustomDataType]]),n.isDateType?(p.openBlock(),p.createElementBlock("div",IF,[n.condition.dataType?(p.openBlock(),p.createBlock(s,{key:1,"show-search":"",style:p.normalizeStyle({width:n.condition.fieldValue==="PARENT"?"":"calc(100% - 130px)",marginRight:"10px"}),value:n.condition.fieldValue,"onUpdate:value":e[1]||(e[1]=M=>n.condition.fieldValue=M),"filter-option":n.filterOption,options:n.keyNameOptions,onChange:n.onChangeComponent},null,8,["style","value","filter-option","options","onChange"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[n.isUseCurrentTime?(p.openBlock(),p.createBlock(l,{key:0,disabled:"",style:{width:"calc(100% - 130px)","margin-right":"10px"},value:n.currentTime,format:n.condition.dateFormat},null,8,["value","format"])):(p.openBlock(),p.createBlock(l,{key:1,style:{width:"calc(100% - 130px)","margin-right":"10px"},value:n.condition.fieldValue,"onUpdate:value":e[0]||(e[0]=M=>n.condition.fieldValue=M),format:n.condition.dateFormat},null,8,["value","format"]))],64)),n.condition.fieldValue==="PARENT"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[p.createVNode(c,{class:"field-value",value:n.condition.modelKey,"onUpdate:value":e[2]||(e[2]=M=>n.condition.modelKey=M),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),p.createVNode(c,{class:"field-value",value:n.condition.prop,"onUpdate:value":e[3]||(e[3]=M=>n.condition.prop=M),placeholder:"属性名"},null,8,["value"])],64)):p.createCommentVNode("",!0),n.isDateType?(p.openBlock(),p.createBlock(s,{key:3,class:"field-value","show-search":"",style:{margin:"0",width:"130px"},placeholder:"日期格式化",value:n.condition.dateFormat,"onUpdate:value":e[4]||(e[4]=M=>n.condition.dateFormat=M),"filter-option":n.filterOption,options:n.formatList},null,8,["value","filter-option","options"])):p.createCommentVNode("",!0)])):["IN","NOT_IN"].includes(n.condition.rule||"")?(p.openBlock(),p.createBlock(s,{key:1,class:"field-value",value:n.fieldValues,mode:"multiple",options:n.valueOptions,onChange:n.onFieldValueSelectChange},null,8,["value","options","onChange"])):n.isShowCustomDataType&&n.condition.dataType==="component"?(p.openBlock(),p.createBlock(s,{key:2,class:"field-value","show-search":"",value:n.condition.fieldValue,"onUpdate:value":e[5]||(e[5]=M=>n.condition.fieldValue=M),"filter-option":n.filterOption,options:n.keyNameOptions,onChange:n.onChangeComponent},null,8,["value","filter-option","options","onChange"])):(p.openBlock(),p.createBlock(c,{key:3,class:"field-value",value:n.condition.fieldValue,"onUpdate:value":e[6]||(e[6]=M=>n.condition.fieldValue=M)},null,8,["value"])),!n.isDateType&&n.condition.fieldValue==="PARENT"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:4},[p.createVNode(c,{class:"field-value",value:n.condition.modelKey,"onUpdate:value":e[7]||(e[7]=M=>n.condition.modelKey=M),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),p.createVNode(c,{class:"field-value",value:n.condition.prop,"onUpdate:value":e[8]||(e[8]=M=>n.condition.prop=M),placeholder:"属性名"},null,8,["value"])],64)):p.createCommentVNode("",!0),n.isDateType?(p.openBlock(),p.createBlock(d,{key:5,class:"calendar-icon",style:p.normalizeStyle({color:n.isUseCurrentTime||n.isConfigFlag?"#1890ff":""}),onClick:e[9]||(e[9]=M=>{n.popoverVisible=!0})},null,8,["style"])):p.createCommentVNode("",!0),p.createVNode(v,{visible:n.popoverVisible,"onUpdate:visible":e[16]||(e[16]=M=>n.popoverVisible=M),trigger:"click",placement:"bottomRight"},{content:p.withCtx(()=>[p.createElementVNode("div",FF,[n.condition.dataType!=="component"?(p.openBlock(),p.createElementBlock("div",NF,[p.createVNode(h,{checked:n.isUseCurrentTime,"onUpdate:checked":e[10]||(e[10]=M=>n.isUseCurrentTime=M)},{default:p.withCtx(()=>[p.createTextVNode("使用当前时间")]),_:1},8,["checked"])])):p.createCommentVNode("",!0),p.createVNode(y,{defaultActiveKey:n.condition.activeKey,onChange:n.changeTabInitDate},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.tabDateList,(M,R)=>(p.openBlock(),p.createBlock(m,{key:R,tab:M.label},{default:p.withCtx(()=>[p.createElementVNode("div",DF,[p.createVNode(g,{value:M.radioValue,"onUpdate:value":P=>M.radioValue=P,onChange:P=>n.changeRadioValue(P,M)},{default:p.withCtx(()=>[n.showTime?(p.openBlock(),p.createElementBlock("div",HF,"相对当前时间:"+p.toDisplayString(M.value),1)):(p.openBlock(),p.createElementBlock("div",zF,"相对当前时间:"+p.toDisplayString(n.getFieldValue(R)),1)),p.createVNode(f,{style:p.normalizeStyle(n.dateRadioStyle),value:"1"},{default:p.withCtx(()=>[p.createVNode(u,{value:M.beforeNum,"onUpdate:value":P=>M.beforeNum=P,min:0,onBlur:P=>n.blurCompare(P,M,"-","1")},null,8,["value","onUpdate:value","onBlur"]),p.createElementVNode("span",jF,p.toDisplayString(M.beforeLabel),1)]),_:2},1032,["style"]),p.createVNode(f,{style:p.normalizeStyle(n.dateRadioStyle),value:"2"},{default:p.withCtx(()=>[p.createVNode(u,{value:M.afterNum,"onUpdate:value":P=>M.afterNum=P,min:0,onBlur:P=>n.blurCompare(P,M,"+","2")},null,8,["value","onUpdate:value","onBlur"]),p.createElementVNode("span",VF,p.toDisplayString(M.afterLabel),1)]),_:2},1032,["style"]),M.beforeText?(p.openBlock(),p.createBlock(f,{key:2,style:p.normalizeStyle(n.dateRadioStyle),value:"3"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(M.beforeText),1)]),_:2},1032,["style"])):p.createCommentVNode("",!0),M.afterText?(p.openBlock(),p.createBlock(f,{key:3,style:p.normalizeStyle(n.dateRadioStyle),value:"4"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(M.afterText),1)]),_:2},1032,["style"])):p.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),p.createElementVNode("div",WF,[p.createVNode(b,{style:{"margin-right":"12px"},onClick:e[11]||(e[11]=P=>n.popoverVisible=!1)},{default:p.withCtx(()=>[p.createTextVNode("取消")]),_:1}),p.createVNode(b,{onClick:P=>n.okDatePickConfig(M,R)},{default:p.withCtx(()=>[p.createTextVNode("确定")]),_:2},1032,["onClick"])])])]),_:2},1032,["tab"]))),128)),(p.openBlock(),p.createBlock(m,{tab:"自定义",key:5},{default:p.withCtx(()=>[p.createElementVNode("div",$F,[p.createVNode(s,{value:n.customTabData.expression,"onUpdate:value":e[12]||(e[12]=M=>n.customTabData.expression=M),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:p.withCtx(()=>[p.createVNode(a,{value:"rangeValue"},{default:p.withCtx(()=>[p.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),p.createVNode(s,{value:n.customTabData.unit,"onUpdate:value":e[13]||(e[13]=M=>n.customTabData.unit=M),style:{"margin-right":"10px"}},{default:p.withCtx(()=>[p.createVNode(a,{value:"YEAR"},{default:p.withCtx(()=>[p.createTextVNode("年")]),_:1}),p.createVNode(a,{value:"QUARTER"},{default:p.withCtx(()=>[p.createTextVNode("季度")]),_:1}),p.createVNode(a,{value:"MONTH"},{default:p.withCtx(()=>[p.createTextVNode("月")]),_:1}),p.createVNode(a,{value:"WEEK"},{default:p.withCtx(()=>[p.createTextVNode("周")]),_:1}),p.createVNode(a,{value:"DAY"},{default:p.withCtx(()=>[p.createTextVNode("天")]),_:1})]),_:1},8,["value"]),p.createVNode(s,{value:n.customTabData.around,"onUpdate:value":e[14]||(e[14]=M=>n.customTabData.around=M)},{default:p.withCtx(()=>[p.createVNode(a,{value:"before"},{default:p.withCtx(()=>[p.createTextVNode("前")]),_:1}),p.createVNode(a,{value:"after"},{default:p.withCtx(()=>[p.createTextVNode("后")]),_:1})]),_:1},8,["value"])]),p.createElementVNode("div",UF,[p.createVNode(b,{style:{"margin-right":"12px"},onClick:e[15]||(e[15]=M=>n.popoverVisible=!1)},{default:p.withCtx(()=>[p.createTextVNode("取消")]),_:1}),p.createVNode(b,{onClick:n.okCustomConfig},{default:p.withCtx(()=>[p.createTextVNode("确定")]),_:1},8,["onClick"])])]),_:1}))]),_:1},8,["defaultActiveKey","onChange"])])]),_:1},8,["visible"]),p.createVNode(S,{trigger:["click"]},{overlay:p.withCtx(()=>[p.createVNode(x,{onClick:n.clickConditionMenu},{default:p.withCtx(()=>[p.createVNode(C,{key:"1"},{default:p.withCtx(()=>[p.createTextVNode("添加且条件")]),_:1}),p.createVNode(C,{key:"2"},{default:p.withCtx(()=>[p.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createVNode(w,{class:"more-icon"})]),_:1}),p.createVNode(O,{class:"delete-icon",onClick:n.onDelete},null,8,["onClick"])])}const KF=Vt(RF,[["render",GF],["__scopeId","data-v-5904964a"]]),YF=p.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:KF}}),Ame="",XF={key:0,class:"condition-list"},qF={key:0,class:"condition-container"},ZF={key:0,class:"condition-text"},JF={key:1,class:"condition-text"},QF={class:"conditions"};function eN(n,e,t,o,i,r){const a=p.resolveComponent("condition-list",!0),s=p.resolveComponent("condition");return Array.isArray(n.list)?(p.openBlock(),p.createElementBlock("div",XF,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.list,(l,c)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:c},[l.join&&l.conditions&&Array.isArray(l.conditions)?(p.openBlock(),p.createElementBlock("div",qF,[l.conditions.length>1?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[l.join==="||"?(p.openBlock(),p.createElementBlock("div",ZF,"或")):p.createCommentVNode("",!0),l.join==="&&"?(p.openBlock(),p.createElementBlock("div",JF,"且")):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),p.createElementVNode("div",QF,[l.conditions.length>0?(p.openBlock(),p.createBlock(a,{key:0,level:n.level+1,path:`${n.path?n.path+"-":""}${c}`,list:l.conditions,type:n.type},null,8,["level","path","list","type"])):p.createCommentVNode("",!0)])])):(p.openBlock(),p.createBlock(s,{class:"condition",key:l.keyValue||`${n.level}-${c}`,data:l,level:n.level,index:c,path:n.path||"",type:n.type},null,8,["data","level","index","path","type"]))],64))),128))])):p.createCommentVNode("",!0)}const tN=Vt(YF,[["render",eN],["__scopeId","data-v-553c1496"]]),nN=p.defineComponent({name:"TruncationList",props:{list:{type:Array,default:()=>[]}},components:{ASelect:Ae.Select,AInput:Ae.Input,AInputNumber:Ae.InputNumber},setup(n,{emit:e}){const t=[{label:"前N个",value:"TOP"},{label:"后N个",value:"BOTTOM"}],o=p.ref([]);return p.watch(o,r=>{r!=null&&r.length&&e("update",r)},{deep:!0}),p.onMounted(()=>{var r;(r=n.list)!=null&&r.length?o.value=et.cloneDeep(n.list):o.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:t,truncationList:o,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),Tme="",r3=n=>(p.pushScopeId("data-v-f543c690"),n=n(),p.popScopeId(),n),oN={class:"truncations"},iN={class:"rule"},rN={class:"field-value"},aN={class:"field-value"},sN=r3(()=>p.createElementVNode("div",{class:"text"},"将其余项设为",-1)),lN=r3(()=>p.createElementVNode("div",{class:"text"},"分组",-1)),cN=["onClick"];function dN(n,e,t,o,i,r){const a=p.resolveComponent("a-select"),s=p.resolveComponent("a-input-number"),l=p.resolveComponent("a-input");return p.openBlock(),p.createElementBlock("div",oN,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.truncationList,(c,d)=>(p.openBlock(),p.createElementBlock("div",{class:"item",key:d},[p.createElementVNode("div",iN,[p.createVNode(a,{style:{width:"100%"},value:c.rule,"onUpdate:value":h=>c.rule=h,options:n.ruleOptions},null,8,["value","onUpdate:value","options"])]),p.createElementVNode("div",rN,[p.createTextVNode(" N= "),p.createVNode(s,{value:c.num,"onUpdate:value":h=>c.num=h,min:0},null,8,["value","onUpdate:value"])]),p.createElementVNode("div",aN,[sN,p.createVNode(l,{value:c.name,"onUpdate:value":h=>c.name=h,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),lN]),p.createElementVNode("div",{class:"clear-truncation",onClick:h=>n.clearData(c)},"清空",8,cN)]))),128))])}const hN=Vt(nN,[["render",dN],["__scopeId","data-v-f543c690"]]),uN=p.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:tN,TruncationList:hN,AModal:Ae.Modal,AButton:Ae.Button,ATabs:Ae.Tabs,ATabPane:Ae.TabPane},setup(n,{expose:e}){var L;const t=p.ref("1"),o=()=>{var T;return`添加过滤条件-${((T=n.item)==null?void 0:T.label)||""}`},i=p.inject(Kn),r=p.inject($o),a=p.inject(hi),s=p.computed(()=>{var T;return(T=p.unref(i))==null?void 0:T.dataSourceId}),l=p.inject(di),c=p.inject(kf),d=p.ref([]),h=p.ref([]),u=p.ref(!1),f=p.inject(rs),g=T=>{var _;for(const A of T)(_=A.conditions)!=null&&_.length?g(A.conditions):(A.keyValue=Yn(),A.dataType==="time"&&(A.dataType=""))};p.watch(u,T=>{var _,A,B,k;if(T){if(Array.isArray((_=n.item)==null?void 0:_.conditions)){const I=et.cloneDeep(((A=n.item)==null?void 0:A.conditions)||[]);g(I),d.value=I}Array.isArray((B=n.item)==null?void 0:B.truncations)?h.value=et.cloneDeep((k=n.item)==null?void 0:k.truncations)||[]:h.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!T)},{flush:"post"});let b=!1;const m=T=>{var _;b=!0,p.unref(d)==null||((_=p.unref(d))==null?void 0:_.length)===0?d.value=[{}]:p.unref(d)[0]!=null&&(p.unref(d)[0].conditions==null||p.unref(d)[0].join!==T?d.value=[{join:T,conditions:[p.unref(d)[0],{keyValue:Yn()}]}]:p.unref(d)[0].conditions.length>1&&p.unref(d)[0].join===T&&d.value[0].conditions.push({keyValue:Yn()}))};p.provide(Tf,{updateCondition(T,_,A){var I;b=!0;let B=p.unref(d);const k=A.split("-");if(k!=null&&k.length)for(const D of k)if(B[D])B=(I=B[D])==null?void 0:I.conditions;else break;Array.isArray(B)&&B[_]&&(B[_]=T)},deleteCondition(T,_){var k,I,D;b=!0;let A=p.unref(d);const B=_.split("-");if(B!=null&&B.length){for(const H of B)if(A[H])A=(k=A[H])==null?void 0:k.conditions;else break;if(Array.isArray(A)&&A[T])if(A.splice(T,1),A.length===1){if(B.length>0){const H=B.length-1,W=B[H],$=B.slice(0,H);let K=p.unref(d),V="";for(const G of $)if(K[G])V=(I=K[G])==null?void 0:I.join,K=(D=K[G])==null?void 0:D.conditions;else break;if(V===A[0].join){if(Array.isArray(A[0].conditions)){const G=et.cloneDeep(A[0].conditions);K.splice(+W,1),K.splice(+W,0,...G)}}else K[W]=A[0]}}else A.length===0&&(d.value=[])}},addCondition(T,_,A){var D,H;b=!0;let B=p.unref(d),k="";const I=T.split("-");if(I!=null&&I.length){for(const W of I)if(B[W])k=(D=B[W])==null?void 0:D.join,B=(H=B[W])==null?void 0:H.conditions;else break;if(k===A)B.splice(_+1,0,{keyValue:Yn()});else{const W=et.cloneDeep(B[_]);B[_]={join:A,conditions:[W,{keyValue:Yn()}]}}}}});const y=T=>{b=!0,h.value=T},v=p.computed(()=>{var _;const T=[];return(_=p.unref(a))==null||_.forEach(A=>{const{keyName:B="",id:k="",type:I}=A;I==="ecanRangePicker"?T.push({value:`${k}-startTime`,label:`${B||k}-开始时间值`,keyName:`${B||k}-startTime`},{value:`${k}-endTime`,label:`${B||k}-结束时间值`,keyName:`${B||k}-endTime`}):T.push({value:k,label:`${B||k}`,keyName:`${B||k}`})}),T}),w=()=>{var D,H,W;const T=ps(((D=p.unref(i))==null?void 0:D.controlList)||[]),_=((H=p.unref(i)[n.type])==null?void 0:H.slice())||[],A=ps(et.cloneDeep(_[n.index].conditions));_[n.index].conditions=p.unref(d),["classificationList","rowHeaderList","dimensionList"].includes(n.type)&&((W=p.unref(h))!=null&&W.length)&&(_[n.index].truncations=p.unref(h));const B=ps(p.unref(d));for(const $ of B)if($.dataType==="component"&&$.fieldValue){const K=p.unref(v).find(V=>V.value===$.fieldValue);K&&($.fieldValue=K.keyName)}const k=A.filter($=>!B.find(K=>K.componentId===$.componentId)).filter($=>!T.find(K=>K.id===$.componentId)),I=B.filter($=>!A.find(K=>K.componentId===$.componentId));C(k,I),r({[n.type]:_,sqlConditions:ry({...p.unref(i),[n.type]:_},p.unref(a))})};function C(T,_){var B;const A=T.map(k=>({...k,delete:!0})).concat(_.map(k=>({...k,add:!0})));for(const k of A){const I=p.unref(a).find(D=>D.id===k.componentId);if(I){const{type:D,id:H,events:W=[]}=I,$=Xf(D);if(k.add)W.find(K=>{var V;return K.on===$&&K.target===((V=p.unref(l))==null?void 0:V.id)&&K.emit==="refreshData"})||c({id:H,events:[...W,{on:$,target:(B=p.unref(l))==null?void 0:B.id,emit:"refreshData"}].reverse()});else if(k.delete){const K=W.findIndex(V=>{var G;return V.on===$&&V.target===((G=p.unref(l))==null?void 0:G.id)&&V.emit==="refreshData"});K!==-1&&(W.splice(K,1),c({id:H,events:W}))}}}}const x=()=>{u.value=!0},S=()=>{d.value=[],u.value=!1},O=()=>{b&&w(),b=!1,S()},M=()=>{S()},R=p.inject(li),P=p.unref(p.inject(ci)),N=(L=window==null?void 0:window.config)==null?void 0:L.pageId,F=p.ref([]);p.provide(S2,F);const E=async T=>{var _;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(n.type))try{const{id:A,indexCode:B}=T,k=await R.post(`${Fo}/diagram/hrpIndexWithComplex`,{pageId:N,dataSourceId:p.unref(s),indexGuid:A,indexCode:B},{headers:{Authentication:P,operateContext:"ygt"}}),{success:I,data:D=[]}=k.data;I&&((_=D==null?void 0:D.dataViewColumns)!=null&&_.length)&&(F.value=D.dataViewColumns.map(H=>({...H,label:H.title||H.label})))}catch(A){console.error(A)}};return p.watch(()=>n.item,T=>{T&&u.value&&p.unref(f)!=="EDV_DATA_SET"&&E(T)}),e({showModal:x}),{visible:u,onOk:O,onCancel:M,handleTitle:o,conditionList:d,truncationList:h,addCondition:m,onUpdatetruncation:y,activeKey:t,source:f}}}),kme="",fN={class:"header"},pN={class:"header"};function gN(n,e,t,o,i,r){const a=p.resolveComponent("a-button"),s=p.resolveComponent("condition-list"),l=p.resolveComponent("a-tab-pane"),c=p.resolveComponent("truncation-list"),d=p.resolveComponent("a-tabs"),h=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(h,{title:n.handleTitle(),visible:n.visible,"destroy-on-close":"",width:"60%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:n.onOk,onCancel:n.onCancel},{default:p.withCtx(()=>[["classificationList","rowHeaderList","dimensionList"].includes(n.type)?(p.openBlock(),p.createBlock(d,{key:0,activeKey:n.activeKey,"onUpdate:activeKey":e[3]||(e[3]=u=>n.activeKey=u)},{default:p.withCtx(()=>[p.createVNode(l,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:p.withCtx(()=>[p.createElementVNode("div",fN,[Array.isArray(n.conditionList)&&n.conditionList.length>0?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(a,{class:"add-and-condition",onClick:e[0]||(e[0]=u=>n.addCondition("&&"))},{default:p.withCtx(()=>[p.createTextVNode(" 添加且条件 ")]),_:1}),p.createVNode(a,{class:"add-or-condition",onClick:e[1]||(e[1]=u=>n.addCondition("||"))},{default:p.withCtx(()=>[p.createTextVNode(" 添加或条件 ")]),_:1})],64)):(p.openBlock(),p.createBlock(a,{key:1,onClick:e[2]||(e[2]=u=>n.addCondition())},{default:p.withCtx(()=>[p.createTextVNode(" 添加条件 ")]),_:1}))]),p.createVNode(s,{class:"condition-list",list:n.conditionList,level:0,type:n.type},null,8,["list","type"])]),_:1}),p.createVNode(l,{key:"2",tab:"截断配置"},{default:p.withCtx(()=>[p.createVNode(c,{list:n.truncationList,onUpdate:n.onUpdatetruncation},null,8,["list","onUpdate"])]),_:1})]),_:1},8,["activeKey"])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createElementVNode("div",pN,[Array.isArray(n.conditionList)&&n.conditionList.length>0?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(a,{class:"add-and-condition",onClick:e[4]||(e[4]=u=>n.addCondition("&&"))},{default:p.withCtx(()=>[p.createTextVNode(" 添加且条件 ")]),_:1}),p.createVNode(a,{class:"add-or-condition",onClick:e[5]||(e[5]=u=>n.addCondition("||"))},{default:p.withCtx(()=>[p.createTextVNode(" 添加或条件 ")]),_:1})],64)):(p.openBlock(),p.createBlock(a,{key:1,onClick:e[6]||(e[6]=u=>n.addCondition())},{default:p.withCtx(()=>[p.createTextVNode(" 添加条件 ")]),_:1}))]),p.createVNode(s,{class:"condition-list",list:n.conditionList,level:0,type:n.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const mN=Vt(uN,[["render",gN],["__scopeId","data-v-498b4331"]]),bN=p.defineComponent({name:"ConfigName",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{AInput:Ae.Input,AModal:Ae.Modal},setup(n,{expose:e}){const t=p.ref(!1),o=p.inject(Kn),i=p.inject($o),r=p.ref(),a=d=>{const{showLabel:h="",label:u=""}=d;r.value=h||u||"",t.value=!0},s=()=>{t.value=!1},l=()=>{var h;const d=((h=p.unref(o)[n.type])==null?void 0:h.slice())||[];d[n.index].showLabel=r.value,i({[n.type]:d}),s()},c=()=>{s()};return e({showModal:a}),{visible:t,onOk:l,onCancel:c,fieldName:r}}}),Mme="",yN=n=>(p.pushScopeId("data-v-de6a1755"),n=n(),p.popScopeId(),n),vN={class:"config-name"},wN=yN(()=>p.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function CN(n,e,t,o,i,r){const a=p.resolveComponent("a-input"),s=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(s,{title:"配置展示名称",visible:n.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:n.onOk,onCancel:n.onCancel},{default:p.withCtx(()=>[p.createElementVNode("div",vN,[wN,p.createVNode(a,{value:n.fieldName,"onUpdate:value":e[0]||(e[0]=l=>n.fieldName=l)},null,8,["value"])])]),_:1},8,["visible","onOk","onCancel"])}const xN=Vt(bN,[["render",CN],["__scopeId","data-v-de6a1755"]]),_N=p.defineComponent({name:"SortByCpnt",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:Ae.Select,AModal:Ae.Modal},setup(n,{expose:e}){const t=p.ref(!1),o=p.inject(Kn),i=p.inject($o),r=p.inject(hi),a=p.inject(di),s=p.inject(kf),l=p.ref(),c=p.computed(()=>{var y;return(y=p.unref(r))==null?void 0:y.filter(v=>v.keyName!=="")});let d=[];const h=y=>{const{sortCpnts:v=[]}=y;d=et.cloneDeep(v),l.value=et.cloneDeep(v),t.value=!0},u=()=>{t.value=!1},f=()=>{var x,S;const y=ps(((x=p.unref(o))==null?void 0:x.controlList)||[]),v=d.filter(O=>!p.unref(l).includes(O)).filter(O=>!y.find(M=>M.id===O)),w=p.unref(l).filter(O=>!d.includes(O)).filter(O=>!y.find(M=>M.id===O)),C=v.map(O=>({componentId:O,delete:!0})).concat(w.map(O=>({componentId:O,add:!0})));for(const O of C){const M=p.unref(r).find(R=>R.id===O.componentId);if(M){const{type:R,id:P,events:N=[]}=M,F=Xf(R);if(O.add)N.find(E=>{var L;return E.on===F&&E.target===((L=p.unref(a))==null?void 0:L.id)&&E.emit==="refreshData"})||s({id:P,events:[...N,{on:F,target:(S=p.unref(a))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(O.delete){const E=N.findIndex(L=>{var T;return L.on===F&&L.target===((T=p.unref(a))==null?void 0:T.id)&&L.emit==="refreshData"});E!==-1&&(N.splice(E,1),s({id:P,events:N}))}}}},g=()=>{var v;f();const y=((v=p.unref(o)[n.type])==null?void 0:v.slice())||[];y[n.index].sortCpnts=l.value,i({[n.type]:y}),u()},b=()=>{u()},m=(y,v)=>{var w;return(w=v==null?void 0:v.keyName)==null?void 0:w.toLowerCase().includes(y==null?void 0:y.toLowerCase())};return e({showModal:h}),{visible:t,onOk:g,onCancel:b,idFilterOption:m,fieldName:l,usedComponentList:c}}}),Bme="",SN=n=>(p.pushScopeId("data-v-08af1ef8"),n=n(),p.popScopeId(),n),AN={class:"sort-by-cpnt"},TN=SN(()=>p.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function kN(n,e,t,o,i,r){const a=p.resolveComponent("a-select"),s=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(s,{title:"配置关联组件排序",visible:n.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:n.onOk,onCancel:n.onCancel},{default:p.withCtx(()=>[p.createElementVNode("div",AN,[TN,p.createVNode(a,{class:"field-name",value:n.fieldName,"onUpdate:value":e[0]||(e[0]=l=>n.fieldName=l),mode:"multiple",style:{width:"100%"},options:n.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":n.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const MN=Vt(_N,[["render",kN],["__scopeId","data-v-08af1ef8"]]),BN=p.defineComponent({name:"DimByCount",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:Ae.Select,AModal:Ae.Modal},setup(n,{expose:e}){const t=p.ref(!1),o=p.inject(Kn),i=p.inject($o),r=p.ref(),a=p.ref([]),s=(u,f)=>{const{dimByCount:g=""}=u;r.value=g,a.value=f.filter(b=>["DIM","BUILT_IN_DIM","FIELD"].includes(b.scope)).map(b=>({label:b.title||b.name,value:b.typeGuid})),t.value=!0},l=()=>{t.value=!1},c=()=>{var f;const u=((f=p.unref(o)[n.type])==null?void 0:f.slice())||[];u[n.index].dimByCount=r.value,i({[n.type]:u}),l()},d=()=>{l()},h=(u,f)=>{var g;return(g=f==null?void 0:f.label)==null?void 0:g.toLowerCase().includes(u==null?void 0:u.toLowerCase())};return e({showModal:s}),{visible:t,onOk:c,onCancel:d,idFilterOption:h,fieldName:r,dimensionList:a}}}),Rme="",RN=n=>(p.pushScopeId("data-v-aa1c298e"),n=n(),p.popScopeId(),n),EN={class:"dim-by-count"},ON=RN(()=>p.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function PN(n,e,t,o,i,r){const a=p.resolveComponent("a-select"),s=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(s,{title:"配置关联维度",visible:n.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:n.onOk,onCancel:n.onCancel},{default:p.withCtx(()=>[p.createElementVNode("div",EN,[ON,p.createVNode(a,{class:"field-name",value:n.fieldName,"onUpdate:value":e[0]||(e[0]=l=>n.fieldName=l),style:{width:"100%"},options:n.dimensionList,"show-search":"","filter-option":n.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const LN=Vt(BN,[["render",PN],["__scopeId","data-v-aa1c298e"]]),zy=(n,e)=>{let t;for(let o=0;o<e.length;o++){const i=e[o];i.children&&(i.children.some(r=>r.key===n)?t=i.key:zy(n,i.children)&&(t=zy(n,i.children)))}return t},IN=p.defineComponent({name:"FormulaCalculation",props:{value:{type:String,default:""},item:{type:Object,default:()=>({})},mode:{type:String,default:"add"},type:{type:String,default:""}},components:{ARow:Ae.Row,ACol:Ae.Col,ATextarea:Ae.Textarea,APopover:Ae.Popover,AInputSearch:Ae.InputSearch,ATree:Ae.Tree,ARadioGroup:Ae.RadioGroup,ARadioButton:Ae.RadioButton,DoubleRightOutlined:FL},emits:["update:value","change"],setup(n,{emit:e}){const t=p.inject(li),o=p.unref(p.inject(ci)),i=p.inject(Kn),r=p.computed(()=>p.unref(i).leftAxisList||[]),a=p.computed(()=>p.unref(i).variableList||[]),s=p.computed(()=>p.unref(i).rightAxisList||[]),l=p.computed(()=>p.unref(i).indicators||[]),c=p.computed(()=>p.unref(i).queryColumnList||[]),d=p.computed(()=>p.unref(i).indexLibColumns||[]),h=p.computed(()=>{var N;let P=p.unref(r).concat(p.unref(s)).concat(p.unref(l)).concat(p.unref(c));return n.type==="indexLibColumns"&&((N=p.unref(d))!=null&&N.length)&&(P=p.unref(c).concat(p.unref(d))),n.mode==="edit"?(P==null?void 0:P.filter(F=>{var E;return F.id!==((E=n.item)==null?void 0:E.id)}))||[]:P||[]}),u=p.computed(()=>a.value.filter(P=>!P.randomKey)),f=p.computed({get:()=>n.value||"",set:P=>{e("update:value",P),e("change",P)}}),g=p.ref("1"),b=p.ref(""),m=P=>{const N=document.getElementById("calTextArea");let F=f.value;if(document.selection){const E=document.selection.createRange();E.text=P}else if(typeof N.selectionStart=="number"&&typeof N.selectionEnd=="number"){const E=N.selectionStart,L=N.selectionEnd;let T=E;F=F.substring(0,E)+P+F.substring(L,F.length),T+=P.length,N.selectionStart=N.selectionEnd=T}else F+=P;f.value=F},y=["+","-","*","/","(",")"],v=(P,N)=>{let F="";switch(N){case"name":{F="${"+P+"}";break}case"function":{F=P+"()";break}default:F=P}m(F)},w=[],C=p.ref([]),x=p.ref(!0),S=p.ref([]),O=P=>{var N;for(const F of P)(N=F==null?void 0:F.children)!=null&&N.length?O(F.children):w.push({key:F.key,title:F.title})},M=async()=>{try{const P=await t.get(`${Fo}/diagram/funcdescs`,{},{headers:{Authentication:o,operateContext:"ygt"}}),{success:N,data:F=[]}=P.data;N&&(F!=null&&F.length)&&(O(F),S.value=F)}catch(P){console.error(P)}},R=P=>{C.value=P,x.value=!1};return p.watch(b,P=>{const N=w.map(F=>F.title.indexOf(P)>-1?zy(F.key,S.value):null).filter((F,E,L)=>F&&L.indexOf(F)===E);C.value=N,b.value=P,x.value=!0}),p.onMounted(()=>{M()}),{fieldList:h,varList:u,myValue:f,calculMethods:y,funcDescsData:S,searchFuncValue:b,expandedKeys:C,autoExpandParent:x,activeKey:g,selectedElem:v,onExpand:R}}}),Eme="",Ome="",a3=n=>(p.pushScopeId("data-v-ea364ea1"),n=n(),p.popScopeId(),n),FN={class:"formula-calculation"},NN={class:"field-area"},DN={style:{"text-align":"center",padding:"10px 0"}},HN=["onClick"],zN=["onClick"],jN={class:"cal_right_bottom"},VN={class:"cal_fu"},WN=["onClick"],$N={class:"function-wrap"},UN={class:"wrap-search"},GN={class:"tree-box"},KN=a3(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),YN=a3(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),XN={key:0},qN={style:{color:"#f50"}},ZN={key:1},JN=["onClick"],QN={class:"cal_a"};function eD(n,e,t,o,i,r){const a=p.resolveComponent("a-radio-button"),s=p.resolveComponent("a-radio-group"),l=p.resolveComponent("a-col"),c=p.resolveComponent("a-textarea"),d=p.resolveComponent("a-input-search"),h=p.resolveComponent("a-tooltip"),u=p.resolveComponent("a-tree"),f=p.resolveComponent("double-right-outlined"),g=p.resolveComponent("a-popover"),b=p.resolveComponent("a-row");return p.openBlock(),p.createElementBlock("div",FN,[p.createVNode(b,{style:{height:"100%"}},{default:p.withCtx(()=>[p.createVNode(l,{span:6},{default:p.withCtx(()=>[p.createElementVNode("div",NN,[p.createElementVNode("div",DN,[p.createVNode(s,{value:n.activeKey,"onUpdate:value":e[0]||(e[0]=m=>n.activeKey=m),size:"small"},{default:p.withCtx(()=>[p.createVNode(a,{value:"1"},{default:p.withCtx(()=>[p.createTextVNode("数值字段("+p.toDisplayString(n.fieldList.length)+")",1)]),_:1}),p.createVNode(a,{value:"2"},{default:p.withCtx(()=>[p.createTextVNode("全局变量("+p.toDisplayString(n.varList.length)+")",1)]),_:1})]),_:1},8,["value"])]),n.activeKey==="1"?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:0},p.renderList(n.fieldList,(m,y)=>(p.openBlock(),p.createElementBlock("div",{class:"field",key:y,onClick:v=>n.selectedElem(m.label,"name")},p.toDisplayString(m.label),9,HN))),128)):p.createCommentVNode("",!0),n.activeKey==="2"?(p.openBlock(!0),p.createElementBlock(p.Fragment,{key:1},p.renderList(n.varList,(m,y)=>(p.openBlock(),p.createElementBlock("div",{class:"field",key:y,onClick:v=>n.selectedElem(m.variableName,"name")},p.toDisplayString(m.variableName),9,zN))),128)):p.createCommentVNode("",!0)])]),_:1}),p.createVNode(l,{span:18},{default:p.withCtx(()=>[p.createVNode(c,{class:"textarea",id:"calTextArea",value:n.myValue,"onUpdate:value":e[1]||(e[1]=m=>n.myValue=m),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),p.createElementVNode("div",jN,[p.createElementVNode("ul",VN,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.calculMethods,(m,y)=>(p.openBlock(),p.createElementBlock("li",{onClick:v=>n.selectedElem(m,"symbol"),key:y},p.toDisplayString(m),9,WN))),128))]),p.createVNode(g,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:p.withCtx(()=>[p.createElementVNode("div",$N,[p.createElementVNode("div",UN,[p.createVNode(d,{value:n.searchFuncValue,"onUpdate:value":e[2]||(e[2]=m=>n.searchFuncValue=m),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),p.createElementVNode("div",GN,[p.createVNode(u,{"expanded-keys":n.expandedKeys,"auto-expand-parent":n.autoExpandParent,"tree-data":n.funcDescsData,onExpand:n.onExpand},{title:p.withCtx(({title:m,leaf:y,describe:v,exp:w})=>[p.createVNode(h,{placement:"top"},p.createSlots({default:p.withCtx(()=>[m.indexOf(n.searchFuncValue)>-1?(p.openBlock(),p.createElementBlock("span",XN,[p.createTextVNode(p.toDisplayString(m.substr(0,m.indexOf(n.searchFuncValue)))+" ",1),p.createElementVNode("span",qN,p.toDisplayString(n.searchFuncValue),1),p.createTextVNode(" "+p.toDisplayString(m.substr(m.indexOf(n.searchFuncValue)+n.searchFuncValue.length)),1)])):(p.openBlock(),p.createElementBlock("span",ZN,p.toDisplayString(m),1)),y?(p.openBlock(),p.createElementBlock("span",{key:2,class:"insertsty",onClick:C=>n.selectedElem(m,"function")},"插入",8,JN)):p.createCommentVNode("",!0)]),_:2},[y?{name:"title",fn:p.withCtx(()=>[p.createElementVNode("div",null,[KN,p.createElementVNode("span",null,p.toDisplayString(v),1)]),p.createElementVNode("div",null,[YN,p.createElementVNode("span",null,p.toDisplayString(w),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:p.withCtx(()=>[p.createElementVNode("span",QN,[p.createTextVNode(" 更多函数 "),p.createVNode(f,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const tD=Vt(IN,[["render",eD],["__scopeId","data-v-ea364ea1"]]),nD=p.defineComponent({name:"CalculationModal",components:{FormulaCalculation:tD,AForm:Ae.Form,AModal:Ae.Modal,AFormItem:Ae.FormItem,AInput:Ae.Input,ASelect:Ae.Select,ASelectOption:Ae.SelectOption,ATextarea:Ae.Textarea,AInputNumber:Ae.InputNumber,ATooltip:Ae.Tooltip,QuestionCircleOutlined:uI},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},isIndexSet:{type:Boolean,default:!1},type:{type:String,default:""},mode:{type:String,default:"add"}},setup(n,{expose:e}){const t=p.inject(hi),o=p.inject(Kn),i=p.inject($o),r=p.inject(di),a=p.computed(()=>p.unref(t)),s=p.computed(()=>p.unref(o)[n.type]||[]),l=p.computed(()=>{const L=["leftAxisList","rightAxisList","queryColumnList","indicators"];let T=[];for(const _ of L)Object.prototype.hasOwnProperty.call(p.unref(o),_)&&(T=T.concat(p.unref(o)[_]));return T}),c={span:4},d={span:18},h={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},u={value:0,unit:"YEAR",around:"before"},f=p.ref({}),g=p.ref(),b=p.ref(!1),m=p.ref();p.watch(b,L=>{if(L)if(n.mode==="edit"){const{label:T,calcType:_,formula:A,builtInValueSource:B,builtInFormula:k,builtInCalcWay:I}=n.item;if(m.value={label:T,calcType:_,formula:A,builtInValueSource:B,builtInFormula:k,builtInCalcWay:I},k==="DATE_OFFSET"){const D=I.split("-");(D==null?void 0:D.length)===3&&(f.value={value:D[0],unit:D[1],around:D[2]})}}else n.mode==="add"&&(m.value=et.cloneDeep(h),f.value=et.cloneDeep(u));else m.value=et.cloneDeep(h),f.value=et.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!L)},{immediate:!0,deep:!0});let y=!1;const v=()=>{y=!0},w=L=>{const T=p.unref(a).find(_=>_.id===L);T&&(m.value.builtInCalcWay=T.keyName),y=!0},C=()=>{var B;const L=((B=p.unref(o)[n.type])==null?void 0:B.slice())||[],{label:T,builtInFormula:_}=p.unref(m)||{},A={};if(_==="DATE_OFFSET"&&(A.builtInCalcWay=`${p.unref(f).value}-${p.unref(f).unit}-${p.unref(f).around}`),n.mode==="add"){const k=Yn();Nt(p.unref(r).type,["indexPanel"])&&L.forEach(I=>{I.show=!1}),L.push({...p.unref(m),...A,id:k,show:!0,name:T})}else n.mode==="edit"&&(L[n.index]={...L[n.index],...p.unref(m),...A,name:T});i({[n.type]:L})},x=()=>{b.value=!0},S=()=>{b.value=!1},O=async(L,T)=>{if(T==="")return Promise.reject(new Error("请输入指标名"));{const _=p.unref(l).find(A=>A.label===T);return _?_.id===n.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},M=p.computed(()=>{let L={label:[{required:!0,validator:O,trigger:"change"}]};return m.value.calcType==="BUILT_IN"&&(L={...L,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),L}),R=()=>{g.value.validate().then(()=>{y&&C(),y=!1,S()})},P=()=>{g.value.clearValidate(),S()},N=()=>{y=!0,p.unref(m).builtInCalcWay=""},F=p.computed(()=>{let L="";const T=p.unref(m).builtInCalcWay,_=p.unref(m).builtInValueSource;if(!_||!T)return L;switch(p.unref(m).builtInFormula){case"BUILT_IN_RANK":{T==="ASC"?L="【"+_+"】由小到大在所有值中的排名":L="【"+_+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{L=`所有【】的
66
66
  `,T==="ASC"?L=L+"【"+_+"】由小到大的组内的排名":L=L+"【"+_+"】由大到小的组内的排名";break}case"BUILT_IN_ALL_VALUE":{let A="";switch(T){case"SUM":{A="求和";break}case"AVG":{A="求平均值";break}case"MIN":{A="求最小值";break}case"MAX":{A="求最大值";break}}L="将所有【"+_+"】"+A;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let A="";switch(L=`所有【】的
67
- `,T){case"SUM":{A="求和";break}case"AVG":{A="求平均值";break}case"MIN":{A="求最小值";break}case"MAX":{A="求最大值";break}}L=L+"将所有【"+_+"】"+A;break}}return L}),E=(L,T)=>T.keyName.toLowerCase().indexOf(L.toLowerCase())>=0;return e({showModal:x}),{visible:b,onCancel:P,labelCol:c,wrapperCol:d,formState:m,builtInValueSourceList:s,onOK:R,onChange:v,formRules:M,accessLogic:F,formRef:g,onChangeBuiltInFormula:N,componentList:a,onChangeComponent:w,filterOption:E,offsetConfig:f}}}),Pme="",Lme="",oD={key:0,class:"accesstip"},iD={style:{display:"flex","align-items":"center"}};function rD(n,e,t,o,i,r){const a=p.resolveComponent("a-input"),s=p.resolveComponent("a-form-item"),l=p.resolveComponent("a-select-option"),c=p.resolveComponent("a-select"),d=p.resolveComponent("formula-calculation"),h=p.resolveComponent("a-textarea"),u=p.resolveComponent("a-input-number"),f=p.resolveComponent("question-circle-outlined"),g=p.resolveComponent("a-tooltip"),b=p.resolveComponent("a-form"),m=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(m,{title:`${n.mode==="add"?"新增":"编辑"}计算指标`,visible:n.visible,width:"50%",bodyStyle:{height:"55vh",overflow:"auto",display:"flex",flexDirection:"column"},closable:!1,onOk:n.onOK,onCancel:n.onCancel},{default:p.withCtx(()=>[p.createVNode(b,{model:n.formState,rules:n.formRules,ref:"formRef"},{default:p.withCtx(()=>[p.createVNode(s,{label:"指标名","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"label"},{default:p.withCtx(()=>[p.createVNode(a,{value:n.formState.label,"onUpdate:value":e[0]||(e[0]=y=>n.formState.label=y),onChange:n.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),p.withDirectives(p.createVNode(s,{label:"计算方式","label-col":n.labelCol,"wrapper-col":n.wrapperCol},{default:p.withCtx(()=>[p.createVNode(c,{value:n.formState.calcType,"onUpdate:value":e[1]||(e[1]=y=>n.formState.calcType=y),onChange:n.onChange},{default:p.withCtx(()=>[p.createVNode(l,{value:"FORMULA"},{default:p.withCtx(()=>[p.createTextVNode("公式")]),_:1}),n.isIndexSet?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(l,{key:0,value:"BUILT_IN"},{default:p.withCtx(()=>[p.createTextVNode("内置公式")]),_:1})),n.isIndexSet?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(l,{key:1,value:"COMPONENT"},{default:p.withCtx(()=>[p.createTextVNode("固定值")]),_:1}))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),[[p.vShow,n.type!=="indexLibColumns"]]),n.formState.calcType==="FORMULA"?(p.openBlock(),p.createBlock(d,{key:0,value:n.formState.formula,"onUpdate:value":e[2]||(e[2]=y=>n.formState.formula=y),item:n.item,mode:n.mode,type:n.type,onChange:n.onChange},null,8,["value","item","mode","type","onChange"])):p.createCommentVNode("",!0),n.formState.calcType==="BUILT_IN"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(s,{label:"内置公式","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"builtInFormula"},{default:p.withCtx(()=>[p.createVNode(c,{value:n.formState.builtInFormula,"onUpdate:value":e[3]||(e[3]=y=>n.formState.builtInFormula=y),onChange:n.onChangeBuiltInFormula},{default:p.withCtx(()=>[p.createVNode(l,{value:"BUILT_IN_ALL_VALUE"},{default:p.withCtx(()=>[p.createTextVNode("所有值")]),_:1}),p.createVNode(l,{value:"BUILT_IN_ALL_VALUE_IN_GROUPO"},{default:p.withCtx(()=>[p.createTextVNode("组内所有值")]),_:1}),p.createVNode(l,{value:"BUILT_IN_RANK"},{default:p.withCtx(()=>[p.createTextVNode("排名")]),_:1}),p.createVNode(l,{value:"BUILT_IN_RANK_IN_GROUPO"},{default:p.withCtx(()=>[p.createTextVNode("组内排名")]),_:1}),p.createVNode(l,{value:"FIRST_ROW_RATE"},{default:p.withCtx(()=>[p.createTextVNode("首行占比")]),_:1}),p.createVNode(l,{value:"DATE_OFFSET"},{default:p.withCtx(()=>[p.createTextVNode("日期偏移")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),p.createVNode(s,{label:"数值来自","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"builtInValueSource"},{default:p.withCtx(()=>[p.createVNode(c,{value:n.formState.builtInValueSource,"onUpdate:value":e[4]||(e[4]=y=>n.formState.builtInValueSource=y),onChange:n.onChange},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.builtInValueSourceList,(y,v)=>(p.openBlock(),p.createBlock(l,{key:v,value:y.label,disabled:n.mode==="edit"&&n.item.label===y.name},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(y.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),["FIRST_ROW_RATE","DATE_OFFSET"].includes(n.formState.builtInFormula)?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(s,{key:0,label:"取数原则","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"builtInValueSource"},{default:p.withCtx(()=>[p.createVNode(c,{value:n.formState.builtInCalcWay,"onUpdate:value":e[5]||(e[5]=y=>n.formState.builtInCalcWay=y),onChange:n.onChange},{default:p.withCtx(()=>[["BUILT_IN_ALL_VALUE","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(n.formState.builtInFormula||"")?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(l,{value:"SUM"},{default:p.withCtx(()=>[p.createTextVNode("求和")]),_:1}),p.createVNode(l,{value:"AVG"},{default:p.withCtx(()=>[p.createTextVNode("求平均")]),_:1}),p.createVNode(l,{value:"MAX"},{default:p.withCtx(()=>[p.createTextVNode("求最大值")]),_:1}),p.createVNode(l,{value:"MIN"},{default:p.withCtx(()=>[p.createTextVNode("求最小值")]),_:1})],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(l,{value:"ASC"},{default:p.withCtx(()=>[p.createTextVNode("升序")]),_:1}),p.createVNode(l,{value:"DESC"},{default:p.withCtx(()=>[p.createTextVNode("降序")]),_:1})],64))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"])),["FIRST_ROW_RATE","DATE_OFFSET"].includes(n.formState.builtInFormula)?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(s,{key:1,label:"取数逻辑","label-col":n.labelCol,"wrapper-col":n.wrapperCol},{default:p.withCtx(()=>[["BUILT_IN_RANK_IN_GROUPO","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(n.formState.builtInFormula)&&n.formState.builtInValueSource?(p.openBlock(),p.createElementBlock("div",oD," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+p.toDisplayString(n.formState.builtInValueSource),1)):p.createCommentVNode("",!0),p.createVNode(h,{value:n.accessLogic,rows:6,disabled:""},null,8,["value"])]),_:1},8,["label-col","wrapper-col"]))],64)):p.createCommentVNode("",!0),n.formState.calcType==="COMPONENT"?(p.openBlock(),p.createBlock(s,{key:2,label:"数值来自","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"builtInValueSource"},{default:p.withCtx(()=>[p.createVNode(c,{"show-search":"",value:n.formState.builtInValueSource,"onUpdate:value":e[6]||(e[6]=y=>n.formState.builtInValueSource=y),"filter-option":n.filterOption,options:n.componentList,fieldNames:{value:"id",label:"keyName"},onChange:n.onChangeComponent},null,8,["value","filter-option","options","onChange"])]),_:1},8,["label-col","wrapper-col"])):p.createCommentVNode("",!0),n.formState.builtInFormula==="DATE_OFFSET"?(p.openBlock(),p.createBlock(s,{key:3,label:"偏移设置","label-col":n.labelCol,"wrapper-col":n.wrapperCol},{default:p.withCtx(()=>[p.createElementVNode("div",iD,[p.createVNode(u,{value:n.offsetConfig.value,"onUpdate:value":e[7]||(e[7]=y=>n.offsetConfig.value=y),style:{width:"120px","margin-right":"10px"},onChange:n.onChange},null,8,["value","onChange"]),p.createVNode(c,{value:n.offsetConfig.unit,"onUpdate:value":e[8]||(e[8]=y=>n.offsetConfig.unit=y),style:{width:"120px","margin-right":"10px"},onChange:n.onChange},{default:p.withCtx(()=>[p.createVNode(l,{value:"YEAR"},{default:p.withCtx(()=>[p.createTextVNode("年")]),_:1}),p.createVNode(l,{value:"MONTH"},{default:p.withCtx(()=>[p.createTextVNode("月")]),_:1}),p.createVNode(l,{value:"DAY"},{default:p.withCtx(()=>[p.createTextVNode("天")]),_:1})]),_:1},8,["value","onChange"]),p.createVNode(c,{value:n.offsetConfig.around,"onUpdate:value":e[9]||(e[9]=y=>n.offsetConfig.around=y),style:{width:"120px"},onChange:n.onChange},{default:p.withCtx(()=>[p.createVNode(l,{value:"before"},{default:p.withCtx(()=>[p.createTextVNode("前")]),_:1}),p.createVNode(l,{value:"after"},{default:p.withCtx(()=>[p.createTextVNode("后")]),_:1})]),_:1},8,["value","onChange"]),p.createVNode(g,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:p.withCtx(()=>[p.createVNode(f,{class:"icon",style:{color:"#40a9ff","font-size":"18px",cursor:"pointer","margin-left":"10px"}})]),_:1})])]),_:1},8,["label-col","wrapper-col"])):p.createCommentVNode("",!0)]),_:1},8,["model","rules"])]),_:1},8,["title","visible","onOk","onCancel"])}const aD=Vt(nD,[["render",rD],["__scopeId","data-v-7a7bcf24"]]),sD=p.defineComponent({name:"VariableCard",props:{item:{type:Object,default:()=>({})},index:{type:Number,require:!0},nameDisabled:{type:Boolean,default:!1},showDelete:{type:Boolean,default:void 0}},components:{CloseOutlined:ih,AppstoreAddOutlined:vy,ASelect:Ae.Select,ASelectOption:Ae.SelectOption,AInput:Ae.Input,APopover:Ae.Popover,ATabs:Ae.Tabs,ATabPane:Ae.TabPane,AInputNumber:Ae.InputNumber},setup(n,{emit:e}){const t=p.ref(!1),o=p.inject(hi),i=p.computed(()=>{var S;return(S=p.unref(o))==null?void 0:S.filter(O=>O.keyName!=="")}),r=[{label:"TEXT",value:"TEXT"},{label:"NUMBER",value:"NUMBER"},{label:"DATE",value:"DATE"}],a=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],s=[{label:"间隔值",value:"rangeValue"},{label:"开始时间",value:"startTime"},{label:"结束时间",value:"endTime"}],l=p.ref(et.cloneDeep(n.item));let c=!1;p.watch(()=>n.item,S=>{c=!0,l.value=et.cloneDeep(S),p.nextTick(()=>{c=!1})},{deep:!0,immediate:!0}),p.watch(l,S=>{c||e("update",et.cloneDeep(S),n.index)},{deep:!0});const d=p.computed(()=>{var S;return((S=p.unref(l))==null?void 0:S.isCustom)===!0}),h=p.computed(()=>{var O;let S=null;if(((O=p.unref(l))==null?void 0:O.dataType)==="component"){const M=p.unref(i).find(R=>{var P;return R.id===((P=p.unref(l))==null?void 0:P.id)});M&&(S=M)}return S}),u=p.computed(()=>{var O;let S=!1;return((O=p.unref(l))==null?void 0:O.variableType)==="DATE"&&(S=!0),S}),f=p.computed(()=>{let S=!1;return p.unref(h)&&(S=Nt(p.unref(h).type,"range")),S}),g=p.computed(()=>{let S=!1;return p.unref(h)&&(Nt(p.unref(h).type,"range")?["startTime","endTime"].includes(p.unref(l).dateTypeValue)&&(S=!0):Nt(p.unref(h).type,"date")&&(S=!0)),S}),b=(S,O)=>{S&&(p.unref(l).keyName=O.keyName)},m=()=>{e("delete",n.index)},y=p.computed(()=>p.unref(u)?[{label:"年",value:"YYYY"},{label:"月",value:"MM"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}]:[]),v=()=>{p.unref(l).id=null,p.unref(l).keyName="",p.unref(l).dateTypeValue=null,p.unref(l).variableValue=""},w=()=>{p.unref(l).format=null},C=(S,O)=>{var M;return(M=O==null?void 0:O.keyName)==null?void 0:M.toLowerCase().includes(S==null?void 0:S.toLowerCase())};return p.watch(g,S=>{S&&(p.unref(l).operateType||(p.unref(l).operateType="add"),p.unref(l).operateMode||(p.unref(l).operateMode="year"),p.unref(l).operateValue||(p.unref(l).operateValue=0),p.unref(l).activeOperateKey||(p.unref(l).activeOperateKey=1))},{immediate:!0}),{variableData:l,isCustom:d,typeOption:r,dataTypeOption:a,usedComponentList:i,formatOptions:y,rangeTypeOptions:s,isShowFormat:u,isDateRangeComponent:f,isShowDateOperate:g,popoverVisible:t,idFilterOption:C,onChangeComponent:b,onDelete:m,onChangeDataType:v,onChangeVariableType:w,changeTab:S=>{p.unref(l).activeOperateKey=S,S===1?p.unref(l).operateValue=0:S===2&&(p.unref(l).operateValue="rangeValue")}}}}),Ime="",lD={class:"variable-item"},cD={class:"popover-content-wrap"},dD={style:{display:"flex"}};function hD(n,e,t,o,i,r){var b;const a=p.resolveComponent("a-input"),s=p.resolveComponent("a-select"),l=p.resolveComponent("a-select-option"),c=p.resolveComponent("a-input-number"),d=p.resolveComponent("a-tab-pane"),h=p.resolveComponent("a-tabs"),u=p.resolveComponent("appstore-add-outlined"),f=p.resolveComponent("a-popover"),g=p.resolveComponent("close-outlined");return p.openBlock(),p.createElementBlock("div",lD,[p.createVNode(a,{class:"field-name",value:n.variableData.variableName,"onUpdate:value":e[0]||(e[0]=m=>n.variableData.variableName=m),placeholder:"请输入变量名",disabled:!n.isCustom&&(!!n.variableData.randomKey||n.nameDisabled)},null,8,["value","disabled"]),p.createVNode(s,{class:"field-name",value:n.variableData.variableType,"onUpdate:value":e[1]||(e[1]=m=>n.variableData.variableType=m),options:n.typeOption,disabled:!n.isCustom,style:{"max-width":"120px"},placeholder:"请选择变量类型",onChange:n.onChangeVariableType},null,8,["value","options","disabled","onChange"]),p.createVNode(s,{class:"field-name",value:n.variableData.dataType,"onUpdate:value":e[2]||(e[2]=m=>n.variableData.dataType=m),options:n.dataTypeOption,style:{"max-width":"120px"},onChange:n.onChangeDataType},null,8,["value","options","onChange"]),n.variableData.dataType==="component"?(p.openBlock(),p.createBlock(s,{key:0,class:"field-name",value:n.variableData.id,"onUpdate:value":e[3]||(e[3]=m=>n.variableData.id=m),options:n.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":n.idFilterOption,style:{"max-width":"180px"},placeholder:"请选择组件",onChange:n.onChangeComponent},null,8,["value","options","filter-option","onChange"])):(p.openBlock(),p.createBlock(a,{key:1,class:"field-name",style:{"max-width":"180px"},value:n.variableData.variableValue,"onUpdate:value":e[4]||(e[4]=m=>n.variableData.variableValue=m),placeholder:"请输入变量值"},null,8,["value"])),n.isDateRangeComponent?(p.openBlock(),p.createBlock(s,{key:2,class:"field-name",value:n.variableData.dateTypeValue,"onUpdate:value":e[5]||(e[5]=m=>n.variableData.dateTypeValue=m),options:n.rangeTypeOptions,placeholder:"请选择取值类型"},null,8,["value","options"])):p.createCommentVNode("",!0),(b=n.formatOptions)!=null&&b.length?(p.openBlock(),p.createBlock(s,{key:3,class:"field-name",value:n.variableData.format,"onUpdate:value":e[6]||(e[6]=m=>n.variableData.format=m),options:n.formatOptions,placeholder:"请选择值格式"},null,8,["value","options"])):p.createCommentVNode("",!0),n.isShowDateOperate?(p.openBlock(),p.createBlock(f,{key:4,visible:n.popoverVisible,"onUpdate:visible":e[14]||(e[14]=m=>n.popoverVisible=m),trigger:"click",placement:"bottomRight"},{content:p.withCtx(()=>[p.createElementVNode("div",cD,[p.createVNode(h,{defaultActiveKey:n.variableData.activeOperateKey,onChange:n.changeTab},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(d,{tab:"日期偏移",key:1},{default:p.withCtx(()=>[p.createVNode(c,{class:"field-name",min:"0",value:n.variableData.operateValue,"onUpdate:value":e[9]||(e[9]=m=>n.variableData.operateValue=m),style:{"max-width":"180px",flex:"auto"}},{addonBefore:p.withCtx(()=>[p.createVNode(s,{value:n.variableData.operateType,"onUpdate:value":e[7]||(e[7]=m=>n.variableData.operateType=m),style:{width:"60px"}},{default:p.withCtx(()=>[p.createVNode(l,{value:"add"},{default:p.withCtx(()=>[p.createTextVNode("加")]),_:1}),p.createVNode(l,{value:"minus"},{default:p.withCtx(()=>[p.createTextVNode("减")]),_:1})]),_:1},8,["value"])]),addonAfter:p.withCtx(()=>[p.createVNode(s,{value:n.variableData.operateMode,"onUpdate:value":e[8]||(e[8]=m=>n.variableData.operateMode=m),style:{width:"60px"}},{default:p.withCtx(()=>[p.createVNode(l,{value:"year"},{default:p.withCtx(()=>[p.createTextVNode("年")]),_:1}),p.createVNode(l,{value:"month"},{default:p.withCtx(()=>[p.createTextVNode("月")]),_:1}),p.createVNode(l,{value:"week"},{default:p.withCtx(()=>[p.createTextVNode("周")]),_:1}),p.createVNode(l,{value:"day"},{default:p.withCtx(()=>[p.createTextVNode("日")]),_:1}),p.createVNode(l,{value:"hour"},{default:p.withCtx(()=>[p.createTextVNode("时")]),_:1}),p.createVNode(l,{value:"minute"},{default:p.withCtx(()=>[p.createTextVNode("分")]),_:1})]),_:1},8,["value"])]),_:1},8,["value"])]),_:1})),n.isDateRangeComponent?(p.openBlock(),p.createBlock(d,{tab:"自定义",key:2},{default:p.withCtx(()=>[p.createElementVNode("div",dD,[p.createVNode(s,{value:n.variableData.operateValue,"onUpdate:value":e[10]||(e[10]=m=>n.variableData.operateValue=m),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:p.withCtx(()=>[p.createVNode(l,{value:"rangeValue"},{default:p.withCtx(()=>[p.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),p.createVNode(s,{value:n.variableData.operateMode,"onUpdate:value":e[11]||(e[11]=m=>n.variableData.operateMode=m),style:{"margin-right":"10px"}},{default:p.withCtx(()=>[p.createVNode(l,{value:"year"},{default:p.withCtx(()=>[p.createTextVNode("年")]),_:1}),p.createVNode(l,{value:"month"},{default:p.withCtx(()=>[p.createTextVNode("月")]),_:1}),p.createVNode(l,{value:"week"},{default:p.withCtx(()=>[p.createTextVNode("周")]),_:1}),p.createVNode(l,{value:"day"},{default:p.withCtx(()=>[p.createTextVNode("日")]),_:1}),p.createVNode(l,{value:"hour"},{default:p.withCtx(()=>[p.createTextVNode("时")]),_:1}),p.createVNode(l,{value:"minute"},{default:p.withCtx(()=>[p.createTextVNode("分")]),_:1})]),_:1},8,["value"]),p.createVNode(s,{value:n.variableData.operateType,"onUpdate:value":e[12]||(e[12]=m=>n.variableData.operateType=m)},{default:p.withCtx(()=>[p.createVNode(l,{value:"minus"},{default:p.withCtx(()=>[p.createTextVNode("前")]),_:1}),p.createVNode(l,{value:"add"},{default:p.withCtx(()=>[p.createTextVNode("后")]),_:1})]),_:1},8,["value"])])]),_:1})):p.createCommentVNode("",!0)]),_:1},8,["defaultActiveKey","onChange"])])]),default:p.withCtx(()=>[p.createElementVNode("div",{class:"calendar-wrap",onClick:e[13]||(e[13]=m=>{n.popoverVisible=!0})},[p.createVNode(u)])]),_:1},8,["visible"])):p.createCommentVNode("",!0),(n.showDelete===void 0?!n.variableData.randomKey:n.showDelete)?(p.openBlock(),p.createBlock(g,{key:5,class:"delete-icon",onClick:n.onDelete},null,8,["onClick"])):p.createCommentVNode("",!0)])}const uD=Vt(sD,[["render",hD],["__scopeId","data-v-2c5426ef"]]),ep=(n={})=>n.globalCondition===!0||n.globalCondition==null&&!n.randomKey,rh=n=>(n||[]).map(e=>({...e,globalCondition:ep(e)})),s3=(n,e,t)=>{const o=[];if(!Array.isArray(n)||!n.length)return o;for(const i of n)o.push({...i,dataType:"",id:null,variableValue:t==="EDV_DATA_SET"?i.defaultValue:null,dateTypeValue:null,format:i.valueFormat&&i.valueFormat.toUpperCase()||null,variableName:i.name,variableType:i.valueType,label:e.label,randomKey:e.randomKey,keyValue:Yn(),disabled:t==="EDV_DATA_SET",globalCondition:!1});return o},fD=(n,e)=>{const t=["leftAxisList","rightAxisList","indicators","specialIndicators"],o=[],i=new Map;for(const c of t)for(const d of(n==null?void 0:n[c])||[]){const h=Array.isArray(d==null?void 0:d.dataSetParams)?d.dataSetParams:[];if(h.length){const u=h.map(f=>f.name).filter(Boolean);o.push([...new Set(u)]);for(const f of h)f.name&&!i.has(f.name)&&i.set(f.name,f)}}if(!o.length)return(e||[]).filter(ep).map(c=>({...c,isCustom:!0}));let r=o[0];for(const c of o)r=r.filter(d=>c.includes(d));const a=(e||[]).filter(ep),s=r.map(c=>{const d=i.get(c),h=a.find(u=>u.variableName===c);return h||{...d,variableName:c,variableType:d==null?void 0:d.valueType,dataType:"",id:null,variableValue:(d==null?void 0:d.defaultValue)??null,dateTypeValue:null,format:d!=null&&d.valueFormat?d.valueFormat.toUpperCase():null,keyValue:`global-${c}`,globalCondition:!0,randomKey:null,disabled:!1}}),l=a.filter(c=>!s.some(d=>d.variableName===c.variableName)).map(c=>({...c,isCustom:!0}));return[...s,...l]},pD=p.defineComponent({name:"VariableGroup",components:{VariableItem:uD},props:{mode:{type:String,default:"global"},indicatorLabel:{type:String,default:""},indicatorKey:{type:String,default:""}},setup(n){const e=p.inject(Kn),t=p.inject($o),o=p.inject(hi),i=p.inject(rs),r=p.computed(()=>{var u;const h=((u=p.unref(e))==null?void 0:u.variableList)||[];return n.mode==="indicator"?h.filter(f=>f.randomKey===n.indicatorKey):fD(p.unref(e),h)}),a=h=>{var b;const u=et.cloneDeep(((b=p.unref(e))==null?void 0:b.variableList)||[]);let f;if(n.mode==="global")f=u.filter(m=>!ep(m)).concat(h);else{const m=new Map(h.map(y=>[y.keyValue,y]));f=u.map(y=>m.get(y.keyValue)||y);for(const y of h)u.some(v=>v.keyValue===y.keyValue)||f.push(y)}const g=rh(f);t({...p.unref(e),variableConditions:nl(g,o),variableList:g})};return p.watch(()=>n.mode==="global"?r.value.map(h=>h.variableName).join(","):"",()=>{n.mode==="global"&&a(et.cloneDeep(r.value))},{immediate:!0}),{variableList:r,source:i,onAddVariable:()=>{const h=et.cloneDeep(p.unref(r)),u=new Set(h.map(b=>b.variableName).filter(Boolean));let f=1;for(;u.has(`变量${f}`);)f++;const g={keyValue:Yn(),variableName:`变量${f}`,isCustom:!0,variableType:"TEXT",dataType:"",id:null,keyName:"",variableValue:null,dateTypeValue:null,format:null,globalCondition:n.mode!=="indicator",randomKey:null,disabled:!1};n.mode==="indicator"&&(g.label=n.indicatorLabel,g.randomKey=n.indicatorKey,g.disabled=p.unref(i)==="EDV_DATA_SET"),h.push(g),a(h)},onSyncVariable:()=>{var w;const{leftAxisList:h=[],rightAxisList:u=[],indicators:f=[],specialIndicators:g=[]}=p.unref(e)||{},b=et.cloneDeep(p.unref(r)),m=new Map,y=[],v=h.concat(u).concat(f).concat(g);for(const C of v)if((w=C.dataSetParams)!=null&&w.length)for(const x of C.dataSetParams)m.has(x.name)||(y.push(x.name),m.set(x.name,b.find(S=>S.variableName===x.name)));for(const C of y){const x=m.get(C);if(x){const S=b.filter(M=>M.variableName===C&&x.randomKey!==M.randomKey),O=["label","randomKey","keyValue"];for(const M of S)for(const R in x)O.includes(R)||(M[R]=x[R])}}a(b)},onUpdateItem:(h,u)=>{if(u>=0){const f=et.cloneDeep(p.unref(r));f[u]=h,a(f)}},onDeleteItem:h=>{if(h>=0){const u=et.cloneDeep(p.unref(r));u.splice(h,1),a(u)}}}}}),Fme="",gD={class:"variable-group"},mD={key:0,class:"variable-group-header"},bD={class:"variable-group-content"};function yD(n,e,t,o,i,r){const a=p.resolveComponent("a-button"),s=p.resolveComponent("variable-item");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",gD,[n.source!=="EDV_DATA_SET"?(p.openBlock(),p.createElementBlock("div",mD,[p.createVNode(a,{onClick:n.onAddVariable},{default:p.withCtx(()=>[p.createTextVNode("添加变量")]),_:1},8,["onClick"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",bD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.variableList,(l,c)=>(p.openBlock(),p.createBlock(s,{key:l.keyValue,item:l,index:Number(c),"show-delete":!1,"name-disabled":n.mode==="global",onUpdate:n.onUpdateItem,onDelete:n.onDeleteItem},null,8,["item","index","name-disabled","onUpdate","onDelete"]))),128))])],64)}const l3=Vt(pD,[["render",yD],["__scopeId","data-v-fa2b5f28"]]),vD=p.defineComponent({name:"VariableModal",components:{AModal:Ae.Modal,VariableGroup:l3},props:{item:{type:Object,default:()=>({})},type:{type:String,default:""}},setup(n,{expose:e}){const t=p.ref(!1),o=p.inject(Kn),i=p.inject($o),r=p.inject(hi),a=p.inject(rs),s=()=>{var y;const{randomKey:h,label:u,dataSetParams:f}=n.item||{};if(!h||!Array.isArray(f)||!f.length)return;const g=((y=p.unref(o))==null?void 0:y.variableList)||[];if(g.some(v=>v.randomKey===h))return;const b=s3(f,{label:u,randomKey:h},p.unref(a));if(!b.length)return;const m=rh(et.cloneDeep(g));m.unshift(...b),i({variableList:m,variableConditions:nl(m,r)})},l=()=>{t.value=!0},c=()=>{t.value=!1},d=()=>{c()};return p.watch(t,h=>{h&&s(),window.changeShowTable&&window.changeShowTable(!h)},{flush:"post"}),p.watch(()=>n.item,()=>{t.value&&s()}),e({showModal:l}),{visible:t,onCancel:d}}});function wD(n,e,t,o,i,r){var l;const a=p.resolveComponent("variable-group"),s=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(s,{title:`配置变量 - ${((l=n.item)==null?void 0:l.label)||""}`,visible:n.visible,"destroy-on-close":"",width:"70%",bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null,onCancel:n.onCancel},{default:p.withCtx(()=>{var c,d;return[p.createVNode(a,{mode:"indicator","indicator-label":((c=n.item)==null?void 0:c.label)||"","indicator-key":((d=n.item)==null?void 0:d.randomKey)||""},null,8,["indicator-label","indicator-key"])]}),_:1},8,["title","visible","onCancel"])}const CD=Vt(vD,[["render",wD]]),xD=p.defineComponent({name:"DataConfigCard",directives:{focus:i3},components:{CalculationModal:aD,FilterModal:mN,CustomGroupModal:TF,VariableModal:CD,SettingOutlined:wI,DeleteOutlined:Ty,CopyOutlined:BL,InfoCircleOutlined:$L,CustomSortModal:cF,PlusOutlined:e3,ACard:Ae.Card,ACheckbox:Ae.Checkbox,AInput:Ae.Input,ADropdown:Ae.Dropdown,AMenu:Ae.Menu,ASubMenu:Ae.SubMenu,AMenuItem:Ae.MenuItem,AMenuDivider:Ae.MenuDivider,ASelect:Ae.Select,APopover:Ae.Popover,Draggable:ma,ConfigName:xN,SortByCpnt:MN,DimByCount:LN},props:{title:{type:String,default:""},type:{type:String,default:""}},setup(n){const e=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"}],t=[{label:"升序",value:"ASC"},{label:"降序",value:"DESC"},{label:"无",value:""}],o=p.inject(di),i=p.inject(Kn),r=p.inject($o),a=p.inject(hi),s=["leftAxisList","rightAxisList","indicators","specialIndicators"],l=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],c={CURRENT:"本期值",LAST_CYCLE:"上期值",LAST_YEAR:"同比值",PERIOD_ON_PERIOD:"环比",YEAR_ON_YEAR:"同比",DW:"单位"},d=p.inject(rs),h=p.ref(),u=p.computed({get(){var be;return((be=p.unref(i))==null?void 0:be.compositeIndicator)||!1},set(be){r({compositeIndicator:be})}}),f=(be={})=>{var Fe;const{type:ve}=n;if(p.unref(d)==="SQL_VIEW")return!0;p.unref(d)==="EDV_DATA_SET"&&r({edvDataSetId:be.parentId});let Re=!1;if(be.scope==="FIELD"&&(Re=!0,(["0","2"].includes(be.genericType)&&s.includes(ve)||be.genericType==="1"&&l.includes(ve))&&(Re=!1)),["IDX","BUILT_IN_IDX"].includes(be.scope)?s.includes(ve)&&(Re=!0):["DIM","BUILT_IN_DIM"].includes(be.scope)&&l.includes(ve)&&(Re=!0),ve==="dimensionList"){const rt=((Fe=p.unref(i)[ve])==null?void 0:Fe.slice())||[];(rt==null?void 0:rt.length)===1&&(Re=!1)}return Re},g=p.computed(()=>{var be;return Nt((be=p.unref(o))==null?void 0:be.type,["dataSelect"])&&n.type==="indicators"}),b=(be="{}")=>{var ve,Re;try{const Fe=JSON.parse(be);if(!f(Fe))return;const rt=((ve=p.unref(i)[n.type])==null?void 0:ve.slice())||[];(n.type==="seriesList"||n.type==="specialIndicatorList"||n.type==="classificationList"&&!Nt(p.unref(o).type,["list","circulate","scatter"])||p.unref(g)||Nt(p.unref(o).type,["indexPanel"]))&&rt.forEach(yt=>{yt.show=!1}),y(rt,Fe),Fe.randomKey=Yn(),rt.push(Fe);const{type:Pt}=n,bt={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(Fe.scope)){let yt=((Re=p.unref(i))==null?void 0:Re.variableList)||[],tn=sessionStorage.getItem("indicator-variates");if(Fe.scope==="FIELD"&&!s.includes(Pt)&&(tn="[]"),tn){const rn=JSON.parse(tn);if(rn!=null&&rn.length){const le=s3(rn,Fe,p.unref(d));le!=null&&le.length&&yt.unshift(...le)}}yt=rh(yt),bt.variableList=yt,bt.variableConditions=nl(yt,a)}r({[n.type]:rt,...bt}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(Fe){console.error(Fe)}},m=(be="{}")=>{var ve;try{const{cardItem:Re,type:Fe,index:rt}=JSON.parse(be);if(!f(Re)||Fe===n.type)return;const Pt=((ve=p.unref(i)[n.type])==null?void 0:ve.slice())||[];y(Pt,Re),Pt.push(Re);const bt=p.unref(i)[Fe].slice()||[];bt.splice(rt,1),r({[n.type]:Pt,[Fe]:bt})}catch(Re){console.error(Re)}};function y(be,ve){const Re=[];if(be.forEach(Fe=>{Fe.label.includes(ve.label)&&Re.push(Fe.label.split(ve.label)[1])}),Re.length>=1){for(let Fe=1;Fe<=Re.length;Fe++)if(!Re.includes(Fe+"")){ve.label=ve.label+Fe;break}}}const v=(be,ve)=>{var rt,Pt;const Re=(rt=be.target)==null?void 0:rt.checked,Fe=((Pt=p.unref(i)[n.type])==null?void 0:Pt.slice())||[];(n.type==="seriesList"||n.type==="classificationList"&&!Nt(p.unref(o).type,["list","circulate"])||p.unref(g)||Nt(p.unref(o).type,["indexPanel"]))&&Fe.forEach(bt=>{bt.show=!1}),Fe[ve].show=Re,r({[n.type]:Fe})},w=be=>{var Re;const ve=((Re=p.unref(i)[n.type])==null?void 0:Re.slice())||[];ve.splice(be,1),r({[n.type]:ve})},C=()=>{sessionStorage.setItem("indicator-card-item","")},x=be=>{const ve=sessionStorage.getItem("indicator-list-item"),Re=sessionStorage.getItem("indicator-card-item");ve?b(ve):Re&&m(Re)},S=be=>{var yt,tn;const{newIndex:ve,oldIndex:Re,from:Fe,to:rt}=be,Pt=Fe.id,bt=rt.id;if(ve>=0&&Re>=0){if(Pt===bt){const rn=((yt=p.unref(i)[n.type])==null?void 0:yt.slice())||[],le=rn.splice(Re,1)[0];le&&(rn.splice(ve,0,le),r({[n.type]:rn}))}else if(n.type===bt){const rn=((tn=p.unref(i)[bt])==null?void 0:tn.slice())||[];if(rn!=null&&rn.length){const le=rn.splice(rn.length-1,1)[0];le&&(rn.splice(ve,0,le),r({[n.type]:rn}))}}}},O=(be,ve)=>{const Re=be.oldIndex,Fe=ve[Re];Fe&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:Fe,type:n.type,index:Re}))},M=p.computed(()=>p.unref(i)[n.type]||[]),R=p.ref([]);let P=!1;p.watch(()=>p.unref(M).length,be=>{R.value=new Array(be).fill(!1)},{flush:"post",immediate:!0});const N=be=>{var Re,Fe,rt;const ve=((Re=p.unref(i)[n.type])==null?void 0:Re.slice())||[];if((Fe=ve[be])!=null&&Fe.randomKey){const Pt=((rt=p.unref(i))==null?void 0:rt.variableList)||[];for(let yt=Pt.length-1;yt>=0;yt--)Pt[yt].randomKey===ve[be].randomKey&&Pt.splice(yt,1);const bt=rh(Pt);r({variableConditions:nl(bt,a),variableList:bt})}ve.splice(be,1),r({[n.type]:ve})},F=be=>{R.value[be]=!0},E=()=>{P=!0},L=be=>{be.key==="Escape"&&(be.stopPropagation(),be.preventDefault())},T=(be,ve,Re)=>{var Fe,rt,Pt,bt;if(R.value[ve]=!1,P){const yt=(Fe=be.target)==null?void 0:Fe.value,tn=((rt=p.unref(i)[n.type])==null?void 0:rt.slice())||[],rn=tn.filter(ye=>{var je;return(je=ye==null?void 0:ye.formula)==null?void 0:je.includes(Re)}).map(ye=>ye.id),le=tn.filter(ye=>{var je;return(je=ye==null?void 0:ye.builtInValueSource)==null?void 0:je.includes(Re)}).map(ye=>ye.id);if(rn!=null&&rn.length)for(const ye of rn){const je=tn.find(Xe=>Xe.id===ye);je.formula=je.formula.replaceAll(Re,yt)}if(le!=null&&le.length)for(const ye of le){const je=tn.find(Xe=>Xe.id===ye);je.builtInValueSource=je.builtInValueSource.replaceAll(Re,yt)}if(tn[ve].label=yt,(Pt=tn[ve])!=null&&Pt.randomKey){const ye=((bt=p.unref(i))==null?void 0:bt.variableList)||[],je=ye.filter(mt=>mt.randomKey===tn[ve].randomKey);je!=null&&je.length&&je.forEach(mt=>{mt.label=yt});const Xe=rh(ye);r({variableConditions:nl(Xe,a),variableList:Xe})}r({[n.type]:tn})}P=!1},_="DEFAULT",A=p.computed(()=>{const be=[],{scope:ve}=p.unref(h)||{},Re=p.unref(i)[n.type]||[];if(ve==="DIM"&&!p.unref(h).typeGuid.includes("_code")){const yt=et.cloneDeep(p.unref(h));delete yt.show,delete yt.truncations,delete yt.conditions,yt.hrpIndexComplexid+="_code",yt.id+="_code",yt.typeGuid+="_code",yt.label=yt.name+"_编码",yt.name=yt.typeGuid,yt.defaultCode=yt.typeGuid,be.push(yt)}const{leftAxisList:Fe=[],rightAxisList:rt=[],indicators:Pt=[],specialIndicators:bt=[]}=p.unref(i)||{};return[...Re,...be,...Fe,...rt,...Pt,...bt]}),B=(be={},ve,Re="ASC")=>{var tn;const{label:Fe,name:rt,id:Pt,defaultCode:bt}=be,yt=((tn=p.unref(i)[n.type])==null?void 0:tn.slice())||[];Pt===_?delete yt[ve].sort:yt[ve].sort={label:Fe,columnName:rt,type:"NORMAL",order:Re,defaultCode:bt},r({[n.type]:yt})},k=(be={},ve="ASC")=>{const Fe={ASC:"升序",DESC:"降序"}[ve],{sort:rt}=be,{label:Pt,order:bt}=rt||{};return Pt&&bt===ve?`${Fe}(${Pt})`:Fe},I=p.ref(),D=p.ref(),H=p.ref(),W=p.ref(),$=(be={},ve)=>{var Re;I.value=be,D.value=ve,(Re=p.unref(H))==null||Re.showModal(be)},K=be=>"排序"+(be!=null&&be.sort?"(已配置)":""),V=(be={},ve)=>{var Re;I.value=be,D.value=ve,(Re=p.unref(W))==null||Re.showModal()},G=be=>{var ve,Re;return"自定义分组"+(!(be!=null&&be.customGroup)||!Object.keys(((ve=be.customGroup)==null?void 0:ve.groupInfoMap)||{}).length&&!((Re=be.customGroup)!=null&&Re.otherGroupName)?"":"(已配置)")},z=[{name:"显示",value:"show"},{name:"隐藏",value:"hide"}],j=[{name:"主指标",value:"main"},{name:"目标指标",value:"target"}],U=[{name:"当期指标",value:"current"},{name:"累计指标",value:"cuml"}],X=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],Z=[{name:"是",value:1},{name:"否",value:0}],Y=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].showInDrillTable=be,r({[n.type]:Re})},q=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];for(const rt of Re)rt.gaugeIndType===be&&(rt.gaugeIndType="");Re[ve].gaugeIndType=be,r({[n.type]:Re})},ne=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];for(const rt of Re)rt.budgetIndType===be&&(rt.budgetIndType="");Re[ve].budgetIndType=be,r({[n.type]:Re})},ie=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];for(let rt=0;rt<Re.length;rt++)rt===ve?Re[ve].aggregate=be:n.type==="queryColumnList"&&(Re[rt].aggregate="");r({[n.type]:Re})},J=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].distinct=be,r({[n.type]:Re})},Q=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].dateFormat=be,r({[n.type]:Re})},te=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].sort=be,r({[n.type]:Re})},ee=(be="show")=>`在钻取的普通表中(${{show:"显示",hide:"隐藏"}[be]})`,ae=be=>`指标类型(${{main:"主指标",target:"目标指标"}[be]||"无"})`,oe=be=>`指标类型(${{cuml:"累计指标",current:"当期指标"}[be]||"无"})`,he=be=>`汇总方式${be?"("+{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[be]+")":""}`,ue=be=>{const ve={ASC:"升序",DESC:"降序"};return be?`排序(${ve[be]})`:"排序"},me=be=>`是否去重(${{0:"否",1:"是"}[be]||"否"})`,Se=(be={})=>{var ve;return"过滤"+(be!=null&&be.conditions&&((ve=be==null?void 0:be.conditions)==null?void 0:ve.length)>0?"(已配置)":"")},ke=(be={})=>{var ve;return be.randomKey&&Array.isArray(be.dataSetParams)&&be.dataSetParams.length?!0:!!(be.randomKey&&(((ve=p.unref(i))==null?void 0:ve.variableList)||[]).some(Re=>Re.randomKey===be.randomKey))},Be=p.ref(),ze=p.ref(),He=p.ref(),Ue=p.ref(),Ke=(be={},ve)=>{I.value=be,D.value=ve,p.unref(Be).showModal()},De=(be={},ve)=>{I.value=be,D.value=ve,p.unref(ze).showModal(be)},de=(be={},ve)=>{I.value=be,D.value=ve,p.unref(He).showModal(be)},ce=(be={},ve)=>{I.value=be,D.value=ve,p.unref(Ue).showModal(be,p.unref(Gt))},ge=p.ref(),Me=(be={},ve)=>{var Re;I.value=be,D.value=ve,(Re=p.unref(ge))==null||Re.showModal(be)},Ie=p.ref(),Ze=p.ref("add"),We=(be,ve,Re)=>{var Fe;Ze.value=be,be==="edit"&&(I.value=ve,D.value=Re),(Fe=p.unref(Ie))==null||Fe.showModal()},qe=p.inject(li),we=p.unref(p.inject(ci)),$e=p.ref([]),Je=p.computed(()=>p.unref(i)[n.type]||{});p.watch(i,()=>{var be;Nt(p.unref(o).type,["scatter","valueline"])&&((be=p.unref(i))!=null&&be.indicators)&&($e.value=p.unref(i).indicators.map(ve=>({label:ve.label,value:ve.label})))},{immediate:!0}),p.watch(()=>i.value.classificationList,()=>{dt()});const at=p.ref(""),dt=async()=>{const{source:be}=p.unref(i);if(be!=="EDV_DATA_SET"||!Nt(p.unref(o).type,"select"))return;const{classificationList:ve=[]}=p.unref(i),Re=ve.find(bt=>bt.show);if(Re!=null&&Re.parentId){if(p.unref(at)===Re.parentId)return;at.value=Re.parentId}else{p.unref(i).selectFieldOptions=[],$e.value=[],at.value="";return}const Fe=await qe.get(`${Fo}/dataset/`+Re.parentId,{headers:{Authentication:we,operateContext:"ygt"}}),{success:rt,data:Pt=[]}=Fe.data;if(rt){const bt=Pt.column.map(yt=>({label:yt.columnName,value:yt.columnName}));p.unref(i).selectFieldOptions=bt,$e.value=bt}},Ft=async()=>{const{source:be}=p.unref(i);if(!Nt(p.unref(o).type,["scatter","valueline"]))try{if(be==="EDV_DATA_SET")await dt();else{const ve=await qe.post(`${Fo}/diagram/dimFields`,{},{headers:{Authentication:we,operateContext:"ygt"}}),{success:Re,data:Fe=[]}=ve.data;Re&&(p.unref(i).selectFieldOptions=Fe||[],$e.value=Fe)}}catch(ve){console.error(ve)}},It=(be,ve)=>{const Re=p.unref(i)[n.type]||{};Re[ve]=be,r({[n.type]:Re})},gt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],Rt=p.ref({}),Gt=p.ref([]),At=async(be,ve)=>{var Fe;const{name:Re}=ve;if(!gt.includes(n.type)&&be&&ro(ve,"indexCode")){const rt=await qe.post(`${Fo}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:ve.id,indexCode:ve.indexCode,pageId:(Fe=window==null?void 0:window.config)==null?void 0:Fe.pageId},{headers:{Authentication:we,operateContext:"ygt"}}),{success:Pt,data:bt}=rt.data;Pt&&bt&&(Gt.value=(bt==null?void 0:bt.dataViewColumns)||[],Rt.value[Re]={name:bt.name,code:bt.indexCode})}},fe=be=>{h.value=be},_e=be=>{const ve=document.createElement("input");document.body.appendChild(ve),ve.setAttribute("value",be),ve.select(),document.execCommand("copy"),document.body.removeChild(ve),Ae.message.success("复制成功")},Ve=p.computed(()=>n.type==="indicators"&&p.unref(o).type==="ecanTable"),ot=p.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(n.type)),Tt=p.computed(()=>{var be,ve;return Nt((be=p.unref(o))==null?void 0:be.type,["table"])&&((ve=p.unref(i))==null?void 0:ve.isIndexSet)}),st=p.computed(()=>!gt.includes(n.type)&&!p.unref(g)),Ot=be=>be?c[be]:"--";return p.onMounted(()=>{n.type==="formFields"&&(p.unref(o).type==="ecanDataSelect"?$e.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Ft())}),{onCheckboxChange:v,onDropEnd:w,onDragItemEnd:C,onDragItemAdd:x,onDragItemSort:S,onDragItemStart:O,cardItemList:M,onDelete:N,onEdit:F,onCommitLabelChange:T,sortList:A,onSort:B,handleSortTitle:k,showCustomSortModal:$,customSortModalRef:H,currentItem:I,currentIndex:D,handleCustomSortTitle:K,handleCustomGroupTitle:G,customGroupModalRef:W,showCustomGroupModal:V,editLabelList:R,onLabelChange:E,handleInputKeyDown:L,aggregateList:X,showHideList:z,indTypeList:j,budgetTypeList:U,distinctList:Z,onAggregateChange:ie,onShowHideChange:Y,onIndTypeChange:q,onBudgetTypeChange:ne,onDistinctChange:J,onDateFormatChange:Q,onIndSortChange:te,handleAggregateTitle:he,handleDrillTableTitle:ee,handleIndTypeTitle:ae,handleBudgetTypeTitle:oe,handleDistinctTitle:me,onShowCalculationModal:We,handleFilterTitle:Se,filterModalRef:Be,configNameRef:ze,sortByCpntRef:He,dimByCountRef:Ue,showFilterModal:Ke,calculationModalRef:Ie,calculationModalMode:Ze,formatList:e,indSortList:t,fieldOptions:$e,fieldData:Je,onFieldChange:It,onVisibleChange:At,onClickSetting:fe,copyDataViewName:_e,dataViewMap:Rt,isShowConfigName:Ve,showConfigNameModal:De,dimensionType:gt,idxList:s,hasIndicatorVariables:ke,isShowSortByCpnt:ot,showSortByCpntModal:de,dataSelectIndicators:g,showDimByCountModal:ce,variableModalRef:ge,showVariableModal:Me,selectedComponent:o,lowerCaseIncludes:Nt,isShowCalcBtn:st,isIndexSet:Tt,compositeIndicator:u,handleIndSortTitle:ue,getIndexSetRawLabel:Ot}}}),Nme="",Dme="",ms=n=>(p.pushScopeId("data-v-ee26ac51"),n=n(),p.popScopeId(),n),_D={class:"title"},SD={class:"title-text"},AD={class:"field-wrap"},TD={class:"field-item"},kD=ms(()=>p.createElementVNode("div",{class:"item-label"},"名称:",-1)),MD={class:"field-item"},BD=ms(()=>p.createElementVNode("div",{class:"item-label"},"值:",-1)),RD={key:0,class:"field-item"},ED=ms(()=>p.createElementVNode("div",{class:"item-label"},"父节点:",-1)),OD={key:1,class:"field-item"},PD=ms(()=>p.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),LD={class:"title"},ID={class:"title-text"},FD=ms(()=>p.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),ND=ms(()=>p.createElementVNode("span",null,"添加计算指标",-1)),DD={class:"card-item-wrap"},HD={class:"card-item-inner"},zD=["onClick"],jD=["onClick"],VD=["onClick"],WD={style:{display:"flex","align-items":"center"}},$D=["title"],UD=ms(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),GD={style:{display:"flex","align-items":"center"}},KD=["title"],YD=ms(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function XD(n,e,t,o,i,r){const a=p.resolveComponent("a-select"),s=p.resolveComponent("a-checkbox"),l=p.resolveComponent("a-card"),c=p.resolveComponent("info-circle-outlined"),d=p.resolveComponent("a-popover"),h=p.resolveComponent("plus-outlined"),u=p.resolveComponent("a-input"),f=p.resolveComponent("setting-outlined"),g=p.resolveComponent("a-menu-item"),b=p.resolveComponent("a-menu-divider"),m=p.resolveComponent("a-sub-menu"),y=p.resolveComponent("copy-outlined"),v=p.resolveComponent("a-menu"),w=p.resolveComponent("a-dropdown"),C=p.resolveComponent("delete-outlined"),x=p.resolveComponent("draggable"),S=p.resolveComponent("custom-sort-modal"),O=p.resolveComponent("custom-group-modal"),M=p.resolveComponent("filter-modal"),R=p.resolveComponent("config-name"),P=p.resolveComponent("sort-by-cpnt"),N=p.resolveComponent("dim-by-count"),F=p.resolveComponent("calculation-modal"),E=p.resolveComponent("variable-modal"),L=p.resolveDirective("focus");return n.type==="formFields"?(p.openBlock(),p.createBlock(l,{key:0,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:p.withCtx(()=>[p.createElementVNode("div",_D,[p.createElementVNode("div",SD,p.toDisplayString(n.title),1)])]),default:p.withCtx(()=>[p.createElementVNode("div",AD,[p.createElementVNode("div",TD,[kD,p.createVNode(a,{style:{width:"70%"},class:"item-select",value:n.fieldData.labelField,options:n.fieldOptions,onChange:e[0]||(e[0]=T=>n.onFieldChange(T,"labelField"))},null,8,["value","options"])]),p.createElementVNode("div",MD,[BD,p.createVNode(a,{style:{width:"70%"},class:"item-select",value:n.fieldData.valueField,options:n.fieldOptions,mode:n.lowerCaseIncludes(n.selectedComponent.type,"valueline")?"multiple":void 0,onChange:e[1]||(e[1]=T=>n.onFieldChange(T,"valueField"))},null,8,["value","options","mode"])]),n.selectedComponent.type==="ecanTreeSelect"?(p.openBlock(),p.createElementBlock("div",RD,[ED,p.createVNode(a,{style:{width:"70%"},class:"item-select",value:n.fieldData.parentField,options:n.fieldOptions,onChange:e[2]||(e[2]=T=>n.onFieldChange(T,"parentField"))},null,8,["value","options"])])):p.createCommentVNode("",!0),n.selectedComponent.type==="ecanSelect"?(p.openBlock(),p.createElementBlock("div",OD,[PD,p.createVNode(s,{checked:n.fieldData.hasAllOption,"onUpdate:checked":e[3]||(e[3]=T=>n.fieldData.hasAllOption=T)},{default:p.withCtx(()=>[p.createTextVNode(" 显示【全部】选项 ")]),_:1},8,["checked"])])):p.createCommentVNode("",!0)])]),_:1},8,["head-style"])):(p.openBlock(),p.createBlock(l,{key:1,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:p.withCtx(()=>[p.createElementVNode("div",LD,[p.createElementVNode("div",ID,[p.createTextVNode(p.toDisplayString(n.title)+" ",1),n.type==="dimensionList"?(p.openBlock(),p.createBlock(d,{key:0,title:"提示",placement:"topLeft"},{content:p.withCtx(()=>[FD]),default:p.withCtx(()=>[p.createVNode(c,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):p.createCommentVNode("",!0)]),n.isShowCalcBtn?(p.openBlock(),p.createElementBlock("div",{key:0,class:"add-calculation",onClick:e[4]||(e[4]=p.withModifiers(T=>n.onShowCalculationModal("add"),["prevent","stop"]))},[p.createVNode(h,{class:"add-calculation-icon"}),ND])):p.createCommentVNode("",!0),n.isIndexSet&&n.type==="indicators"?(p.openBlock(),p.createBlock(s,{key:1,checked:n.compositeIndicator,"onUpdate:checked":e[5]||(e[5]=T=>n.compositeIndicator=T),style:{"margin-left":"15px"}},{default:p.withCtx(()=>[p.createTextVNode("合计")]),_:1},8,["checked"])):p.createCommentVNode("",!0)])]),default:p.withCtx(()=>[p.createElementVNode("div",{class:p.normalizeClass(n.type+"-list"),style:{height:"100%",padding:"10px"}},[p.createVNode(x,{modelValue:n.cardItemList,"onUpdate:modelValue":e[8]||(e[8]=T=>n.cardItemList=T),class:"chart-column",id:n.type,group:{name:"cardItem",pull:n.type!=="indexLibColumns",put:n.type!=="indexLibColumns"},"item-key":"index",onAdd:n.onDragItemAdd,onSort:n.onDragItemSort,onEnd:n.onDragItemEnd,onStart:e[9]||(e[9]=T=>n.onDragItemStart(T,n.cardItemList))},{item:p.withCtx(({element:T,index:_})=>[p.createElementVNode("div",DD,[p.createVNode(s,{class:"card-item",checked:T.show,onChange:A=>n.onCheckboxChange(A,_)},{default:p.withCtx(()=>[p.createElementVNode("div",HD,[!n.editLabelList[_]&&T.label?(p.openBlock(),p.createElementBlock("div",{key:0,class:"name",onClick:p.withModifiers(A=>n.onEdit(_),["prevent","stop"])},p.toDisplayString(T.label),9,zD)):p.createCommentVNode("",!0),!n.editLabelList[_]&&!T.label?(p.openBlock(),p.createElementBlock("div",{key:1,class:"name placeholder",onClick:p.withModifiers(A=>n.onEdit(_),["prevent","stop"])}," 请点击填入名字 ",8,jD)):p.createCommentVNode("",!0),n.editLabelList[_]?p.withDirectives((p.openBlock(),p.createBlock(u,{key:2,"default-value":T.label,size:"small",onPointerdown:e[6]||(e[6]=p.withModifiers(()=>{},["stop"])),onMousedown:e[7]||(e[7]=p.withModifiers(()=>{},["stop"])),onBlur:A=>n.onCommitLabelChange(A,_,T.label),onPressEnter:A=>n.onCommitLabelChange(A,_,T.label),onChange:n.onLabelChange,onKeydown:n.handleInputKeyDown},null,8,["default-value","onBlur","onPressEnter","onChange","onKeydown"])),[[L]]):p.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(T.calcType)?(p.openBlock(),p.createElementBlock("span",{key:3,class:"calculation-icon",onClick:p.withModifiers(A=>n.onShowCalculationModal("edit",T,_),["prevent","stop"])}," fx ",8,VD)):p.createCommentVNode("",!0),p.createVNode(d,{title:""},{content:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(n.getIndexSetRawLabel(T.calcType)),1)]),default:p.withCtx(()=>[n.type==="indexLibColumns"&&!["FORMULA","BUILT_IN","COMPONENT"].includes(T.calcType)?(p.openBlock(),p.createBlock(c,{key:0,class:"setting-icon"})):p.createCommentVNode("",!0)]),_:2},1024),n.type!=="indexLibColumns"?(p.openBlock(),p.createBlock(w,{key:4,trigger:["click"],onVisibleChange:A=>n.onVisibleChange(A,T)},{overlay:p.withCtx(()=>[p.createVNode(v,null,{default:p.withCtx(()=>[n.dimensionType.includes(n.type)?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(g,{onClick:A=>n.showCustomSortModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(n.handleCustomSortTitle(T)),1)]),_:2},1032,["onClick"]),p.createVNode(b),p.createVNode(g,{onClick:A=>n.showCustomGroupModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(n.handleCustomGroupTitle(T)),1)]),_:2},1032,["onClick"]),p.createVNode(b),T.genericType==="DATE"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(m,{title:"日期格式化"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.formatList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onDateFormatChange(A.value,_)},{default:p.withCtx(()=>[p.createElementVNode("span",{style:p.normalizeStyle(T.dateFormat===A.value||!T.dateFormat&&A.value==="YYYY-MM-DD"?"color: #1890FF;":"")},p.toDisplayString(A.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),p.createVNode(b)],64)):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),p.createVNode(g,{onClick:A=>n.showFilterModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(n.handleFilterTitle(T)),1)]),_:2},1032,["onClick"]),p.createVNode(b),n.dimensionType.includes(n.type)?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(m,{title:n.handleIndSortTitle(T.sort)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.indSortList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onIndSortChange(A.value,_)},{default:p.withCtx(()=>[p.createElementVNode("span",{style:p.normalizeStyle(T.sort&&T.sort===A.value?"color: #1890FF;":"")},p.toDisplayString(A.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),p.createVNode(b)],64)),["queryColumnList","leftAxisList","rightAxisList","indicators"].includes(n.type)?(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[p.createVNode(m,{title:n.handleAggregateTitle(T.aggregate)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.aggregateList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onAggregateChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),n.idxList.includes(n.type)&&n.hasIndicatorVariables(T)?(p.openBlock(),p.createElementBlock(p.Fragment,{key:3},[p.createVNode(g,{onClick:A=>n.showVariableModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(" 配置变量 ")]),_:2},1032,["onClick"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),n.isShowConfigName?(p.openBlock(),p.createElementBlock(p.Fragment,{key:4},[p.createVNode(g,{onClick:A=>n.showConfigNameModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(" 修改展示名称 ")]),_:2},1032,["onClick"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),n.isShowSortByCpnt?(p.openBlock(),p.createElementBlock(p.Fragment,{key:5},[p.createVNode(g,{onClick:A=>n.showSortByCpntModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),p.createVNode(m,{title:n.handleDrillTableTitle(T.showInDrillTable)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.showHideList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onShowHideChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),p.createVNode(b),n.selectedComponent.type==="ecanGauge"?(p.openBlock(),p.createBlock(m,{key:6,title:n.handleIndTypeTitle(T.gaugeIndType)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.indTypeList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onIndTypeChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"])):p.createCommentVNode("",!0),n.selectedComponent.type==="ecanBudget"&&n.type==="indicators"?(p.openBlock(),p.createBlock(m,{key:7,title:n.handleBudgetTypeTitle(T.budgetIndType)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.budgetTypeList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onBudgetTypeChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"])):p.createCommentVNode("",!0),p.createVNode(b),T.name==="the_count"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:8},[p.createVNode(g,{onClick:A=>n.showDimByCountModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),p.createVNode(b),p.createVNode(m,{title:n.handleDistinctTitle(T.distinct)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.distinctList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onDistinctChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),n.dimensionType.includes(n.type)?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:9},[n.dataViewMap[T.name]?(p.openBlock(),p.createBlock(g,{key:0,onClick:A=>n.copyDataViewName(n.dataViewMap[T.name].name)},{default:p.withCtx(()=>[p.createElementVNode("div",WD,[p.createElementVNode("span",{class:"data-view-name",title:n.dataViewMap[T.name].name},[UD,p.createTextVNode(" "+p.toDisplayString(n.dataViewMap[T.name].name),1)],8,$D),p.createVNode(y,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):p.createCommentVNode("",!0),n.dataViewMap[T.name]?(p.openBlock(),p.createBlock(g,{key:1,onClick:A=>n.copyDataViewName(n.dataViewMap[T.name].code)},{default:p.withCtx(()=>[p.createElementVNode("div",GD,[p.createElementVNode("span",{class:"data-view-name",title:n.dataViewMap[T.name].code},[YD,p.createTextVNode(" "+p.toDisplayString(n.dataViewMap[T.name].code),1)],8,KD),p.createVNode(y,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):p.createCommentVNode("",!0)],64))]),_:2},1024)]),default:p.withCtx(()=>[p.createVNode(f,{class:"setting-icon",onClick:A=>n.onClickSetting(T)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"])):p.createCommentVNode("",!0),n.type!=="indexLibColumns"||T.calcType==="FORMULA"?(p.openBlock(),p.createBlock(C,{key:5,class:"delete-icon",onClick:p.withModifiers(A=>n.onDelete(_),["prevent"])},null,8,["onClick"])):p.createCommentVNode("",!0)])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","group","onAdd","onSort","onEnd"])],2),p.createVNode(S,{item:n.currentItem,index:n.currentIndex,type:n.type,sortList:n.sortList,ref:"customSortModalRef"},null,8,["item","index","type","sortList"]),p.createVNode(O,{item:n.currentItem,index:n.currentIndex,type:n.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),p.createVNode(M,{item:n.currentItem,index:n.currentIndex,type:n.type,ref:"filterModalRef"},null,8,["item","index","type"]),p.createVNode(R,{index:n.currentIndex,type:n.type,ref:"configNameRef"},null,8,["index","type"]),p.createVNode(P,{index:n.currentIndex,type:n.type,ref:"sortByCpntRef"},null,8,["index","type"]),p.createVNode(N,{index:n.currentIndex,type:n.type,ref:"dimByCountRef"},null,8,["index","type"]),p.createVNode(F,{type:n.type,item:n.currentItem,index:n.currentIndex,mode:n.calculationModalMode,isIndexSet:n.isIndexSet,ref:"calculationModalRef"},null,8,["type","item","index","mode","isIndexSet"]),p.createVNode(E,{item:n.currentItem,type:n.type,ref:"variableModalRef"},null,8,["item","type"])]),_:1},8,["head-style"]))}const qD=Vt(xD,[["render",XD],["__scopeId","data-v-ee26ac51"]]),ZD={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"},specialIndicators:{title:"目标指标"}},JD=p.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:qD},setup(){const n=["classificationList","seriesList","leftAxisList","rightAxisList","indicators","rowHeaderList","queryColumnList"],e=p.inject(di),t=p.computed(()=>{var l;return(l=p.unref(e))==null?void 0:l.type}),o=p.computed(()=>{var l;return!!((l=p.unref(e))!=null&&l.isGroupTable)}),i=p.ref({}),r=p.reactive([]),a=p.inject($o),s=()=>{var b,m;const l=et.cloneDeep((b=p.unref(e))==null?void 0:b.graphicConfig),c={card:["rowHeaderList","indicators"],pie:["classificationList","indicators"],circulate:["classificationList","indicators"],bar:["classificationList","seriesList","leftAxisList"],line:["classificationList","seriesList","leftAxisList"],comboGraph:["classificationList","seriesList","leftAxisList","rightAxisList"],radar:["classificationList","seriesList","leftAxisList"],table:o.value?["rowHeaderList","indicators"]:[l.isIndexSet?"indexLibColumns":"queryColumnList","indicators"],text:["dimensionList","indicators"],proportion:["indicators"],select:["classificationList","formFields"],treeSelect:["classificationList","formFields"],dataSelect:["classificationList","indicators","formFields"],checkbox:["classificationList","formFields"],radio:["classificationList","formFields"],list:["classificationList","indicators"],counter:["indicators"],scatter:["classificationList","indicators","formFields"],pivotTable:["queryColumnList","indicators"],valueLine:["classificationList","indicators","formFields"],indexPanel:["indicators"],gauge:["indicators"],boxplot:["classificationList","indicators"],budget:["classificationList","indicators","specialIndicators"]},d="ecan";let h=p.unref(t);if(h.startsWith(d)){const y=d.length;h=((m=h.slice(y,y+1))==null?void 0:m.toLowerCase())+h.slice(y+1)}const u=c[h],f=ZD,g=(u==null?void 0:u.length)||0;for(let y=0;y<g;y++){const v=u[y];if(!v)break;r.push({...f[v],type:v})}for(const y of n)ro(l,y)&&!u.find(v=>v===y)?l[y]=[]:delete l[y];a(l)};return s(),p.watch(()=>t.value,()=>{r.length=0,s()}),{cardsMap:i,cards:r}}}),Hme="",zme="",QD={class:"data-group"};function eH(n,e,t,o,i,r){const a=p.resolveComponent("data-config-card");return p.openBlock(),p.createElementBlock("div",QD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.cards,s=>(p.openBlock(),p.createBlock(a,p.mergeProps({key:s.type,class:"data-config-card",type:s.type},s),null,16,["type"]))),128))])}const tH=Vt(JD,[["render",eH],["__scopeId","data-v-b87dcb12"]]),nH=[{title:"基本属性",props:["keyName","left","top","width","height","colors","textShadow","backgroundColor","backgroundImage","backgroundSize","theme","pageFontFamily","contextRequestUrl","graphicType"]},{title:"定时跳转",props:["jumpType","jumpTime","jumpPage","jumpLink"]},{title:"弹窗",onlyType:"modal",props:["position","fullModal","isShowCloseBtn","centered","destroyOnClose","closeBtnColor","borderRadius","borderWidth","borderColor","boxShadow"]},{title:"图片",props:["borderRadius","isAnimation","animationSource","isHoverStyle","imgUrl"]},{title:"链接",props:["linkPage","href","target","transParams"]},{title:"系列",props:["seriesTypes"]},{title:"折线图",onlyType:["line","comboGraph"],props:["areaStyleOpacity","areaGradientShow","areaGradientColor","smooth","lineStyleWidth","symbolSize","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]},{title:"散点图",onlyType:["scatter"],props:["symbolSize","symbolColor"]},{title:"雷达图",onlyType:["radar"],props:["areaStyleOpacity","lineStyleWidth","symbolSize","labelShow","axisNameColor"]},{title:"单选框",onlyType:["radio"],props:["value","optionType","tabFontSize","tabHorizontalPadding","tabBarGutter","tabFlexDirection","tabTextAlign","tabColor","activeTabColor","tabBackgroundImage","activeTabBackgroundImage"]},{title:"柱状图",onlyType:["bar","comboGraph"],props:["barWidth","barBorderRadius","isUseHorizontalAxis","axisInverse","isStack","stackColumns","labelShow","showBarBackground"]},{title:"饼图",onlyType:"pie",props:["centerTop","centerLeft","innerRadius","outerRadius","roseType","minAngle"]},{title:"布局",props:["gridTop","gridBottom","gridLeft","gridRight","gridContainLabel"]},{title:"标签边距",props:["gridTopPx","gridBottomPx","gridLeftPx","gridRightPx"]},{title:"标题",onlyType:["bar","combo-graph","line","pie","radar","scatter"],props:["titleText","titleFontSize","titleColor","fontWeight","textAlign"]},{title:"x轴",props:["xAxisLabelColor","xAxisLineStyleColor","xAxisLabelWidth","xAxisLabelOverflow","xAxisLabelRotate","xAxisTickShow","xAxisSplitLineShow","xAxisSplitLineType","xAxisSplitAreaShow","xAxisLineShow","isBoundaryGap","xAxisSplitLineInterval","xAxisSplitLineStyleColor","xAxisLabelFormatter","xAxisInverse","xAxisMinInterval","xAxisLabelInterval","xAxisLabelFontSize","xAxisName","xAxisMaxValue","showXAxisLineArrow","xAxisLineInverse"]},{title:"y轴",props:["yAxisLabelColor","yAxisLineStyleColor","yAxisLineAlwaysDisplay","yAxisLabelWidth","yAxisLabelOverflow","yAxisLabelRotate","yAxisTickShow","yAxisSplitLineShow","yAxisSplitLineType","yAxisLeftSplitLineShow","yAxisLeftSplitLineType","yAxisRightSplitLineShow","yAxisRightSplitLineType","yAxisSplitAreaShow","yAxisLabelShow","yAxisSplitLineStyleColor","yAxisLabelFormatter","yAxisInverse","yAxisMinInterval","yAxis","yAxisLabelFontSize","yAxisName","yAxisLeftName","yAxisRightName","yAxisMaxValue","showYAxisLineArrow","yAxisLineInverse"]},{title:"标签",enableProps:"labelShow",excludeType:"map",props:["labelFormatter","labelWidth","labelColor","isUseLabelColors","labelFontSize","labelPosition","labelOverflow"]},{title:"标签引导线",enableProps:"labelLineShow",props:["labelLineLength","labelLineLength2"]},{title:"图例",enableProps:"legendShow",props:["legendFormatter","legendWidth","legendHeight","legendTextWidth","legendTextStyleColor","legendFontSize","legendTop","legendLeft","legendOrient","legendType","legendItemGap","legendItemWidth","legendItemHeight","legendScroll"]},{title:"提示框",enableProps:"tooltipShow",props:["tooltipTrigger","tooltipFormatter","tooltipTextStyleColor","tooltipBackgroundColor","tooltipRequestData","tooltipPosition"]},{title:"渐变",enableProps:"gradientShow",showSwitch:!0,onlyType:["bar","proportion","border","comboGraph","text","radar"],props:["isTransparent","gradientColor","gradientColors","gradientOffset","gradientAngle"]},{title:"图表标线",enableProps:"isShowMarkLine",showSwitch:!0,onlyType:["line","bar","comboGraph","scatter"],props:["markLineType"]},{title:"图表标线",onlyType:["scatter"],props:["xAxisMarkLineValue","yAxisMarkLineValue"]},{title:"图表标域",onlyType:["scatter"],props:["axisMarkArea"]},{title:"默认范围值",enableProps:"defaultRangeValue",showSwitch:!0,onlyType:["bar","comboGraph"],props:["startValue","endValue"]},{title:"单位",enableProps:"unitShow",onlyType:["text"],props:["unitText","unitFontSize","unitFontWeight","unitColor","unitTop","unitLeft"]},{title:"目标值",enableProps:"targetShow",onlyType:["text"],props:["targetRule","targetValue","notExpectColor"]},{title:"时间",onlyType:["date","time","range"],props:["picker","optionFontSize","format","show","limitInterval","startTime","endTime","value","showTime","useCurrentTime","isAllowSpanYear","interval","intervalUnit","updateInterval","operate","limitStartTime","limitEndTime"]},{title:"选择器",onlyType:"select",props:["value","mode","multiple","treeCheckable","maxTagCount","autoClearSearchValue","isAllowClear","placeholder","valueType","optionFontSize"]},{title:"表格",onlyType:"table",props:["size","allOverflow","hoverRow","hoverColor","boderList","columnDropEnable","showTotalBool","totalName","expandAll"]},{title:"列表",onlyType:"list",props:["columns","sliceCount","itemWidth","itemHeight","itemColSpan","itemPadding","itemRowSpan","useTitle","isAutoScroll","scrollSpeed"]},{title:"小计",onlyType:"table",props:["subTotalName","subTotalColumn"]},{title:"序号列",onlyType:["table","list"],enableProps:"isUseSeq",props:["seqWidth","seqName","seqIcon","seqFontSize","seqIndexFormatter"]},{title:"序号图标",onlyType:["list"],enableProps:"seqIcon",props:["seqIconConfig","seqIconWidth","seqIconHeight","seqIconOffsetX","seqIconOffsetY"]},{title:"操作列",onlyType:"table",enableProps:"isUseAction",props:["actionList","actionColumnWidth"]},{title:"分页",enableProps:"paginationShow",props:["paginationPageSize","simple","pageSizeShow","showQuickJumper","paginationPosition","isPageBottom","isShowTotal","paginationColor","paginationBgColor","activePaginationColor","activePaginationBgColor"]},{title:"循环列表",onlyType:"circulate",props:["colNum","unitInterval","isAutoScroll","scrollSpeed","scrollDirection","keyFieldMap"]},{title:"计数器",onlyType:"counter",props:["digits","unitInterval","unitWidth","unitHeight","counterBackgroundImage"]},{title:"边框",onlyType:["border","circulate"],props:["mode","borderWidth","borderRadius","borderColor","useBorderModify","borderStyle","titleMode"]},{title:"标签页",onlyType:"tabs",props:["tabType","tabWidth","activeKey","tabFontSize","tabFontWeight","tabHorizontalPadding","tabBarGutter","tabOuterMargin","tabFlexDirection","tabAlignItems","tabJustifyContent","tabColor","activeTabColor","tabBackgroundImage","activeTabBackgroundImage","autoSwitch","autoSwitchInterval","hideTabs"]},{title:"进度条",onlyType:"proportion",props:["strokeWidth","strokeType","strokeLinecap","strokeColor","trailColor"]},{title:"地图数据",onlyType:"map",props:["mapJson","geoCenter"]},{title:"地图样式",onlyType:"map",props:["geoRoam","geoZoom","geoLabelColor","geoLabelShow","geoLabelFontSize","geoBackgroundImage","geoBackgroundImageRepeat","geoItemStyleAreaColor","geoItemStyleBorderColor","geoItemStyleBorderWidth","geoItemStyleShadowColor","geoItemStyleShadowOffsetX","geoItemStyleShadowOffsetY","geoItemStyleShadowBlur","symbolImage","symbolWidth","symbolHeight"]},{title:"悬停地图样式",onlyType:"map",props:["geoEmphasisDisabled","geoEmphasisLabelColor","geoEmphasisItemStyleAreaColor","geoEmphasisItemStyleBorderColor"]},{title:"按钮",onlyType:"button",props:["mode","danger","shape","tooltipTextStyleColor","borderColor","buttonBackgroundColor"]},{title:"输入框",onlyType:"input",props:["value","placeholder","optionFontSize"]},{title:"网页",onlyType:"iframe",props:["link","linkType"]}],c3=[{label:"思源黑体",value:'"SansSc"'},{label:"黑体",value:'"SimHei","STHeiti"'},{label:"楷体",value:'"KaiTi","STKaiti"'},{label:"宋体",value:'"SimSun","STSong"'},{label:"仿宋",value:'"FangSong","STFangsong"'}].map(n=>({value:n.value,label:p.createVNode("span",{style:{fontFamily:n.value}},[n.label])})),oH={keyName:{label:"控件别名",component:"input",props:{isKeyName:!0}},text:{label:"文本",component:"textarea"},title:{label:"标题",component:"input"},textShadow:{label:"阴影",component:"input"},width:[{label:"页面宽度",updateMode:"page",component:"input-number",onlyType:"page",props:{suffix:"px",disabled:!1}},{label:"弹窗宽度",onlyType:"modal",component:"input-number",props:{suffix:"px",max:1920,min:0}},{label:"宽度",component:"input-number",props:{suffix:"px",min:0}}],height:[{label:"页面高度",updateMode:"page",onlyType:"page",component:"input-number",props:{suffix:"px",disabled:!1}},{label:"弹窗高度",onlyType:"modal",component:"input-number",props:{suffix:"px",max:1080,min:10}},{label:"高度",component:"input-number",props:{suffix:"px",min:1}}],backgroundImage:[{label:"背景图",component:"image-pick",updateMode:"page",onlyType:"page"},{label:"背景图",component:"image-pick"}],backgroundSize:[{label:"背景尺寸",component:"radio-group",updateMode:"page",onlyType:"page",props:{options:[{label:"覆盖",value:"cover"},{label:"铺满",value:"100% 100%"}]}}],backgroundColor:[{label:"背景颜色",component:"color-pick",updateMode:"page",onlyType:"page"},{label:"背景颜色",component:"color-pick"}],contextRequestUrl:{label:"请求地址",component:"input",updateMode:"page"},theme:{label:"主题",component:"select",props:{options:[{label:"默认",value:"light"},{label:"暗蓝",value:"darkBlue"}]},updateMode:"page"},pageFontFamily:{label:"字体",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"无",value:""},...c3]}},value:[{label:"时间值",component:"time-pick",onlyType:"date"},{label:"默认值",component:"input",onlyType:"select"},{label:"默认值",component:"input",onlyType:"tabs"},{label:"默认值",component:"input",onlyType:"input"},{label:"默认值",component:"checkbox",onlyType:"checkbox"},{label:"默认值",component:"input",onlyType:"radio"}],placeholder:[{label:"占位文字",component:"input"}],imgUrl:{label:"图片",component:"image-pick",show:[{match:"isAnimation",value:!1}]},linkUrl:{label:"链接地址",component:"input"},linkMethod:{label:"打开方式",component:"radio-group",props:{options:[{label:"本窗口",value:"_self"},{label:"新窗口",value:"_blank"}]}},linkPage:{label:"链接项目页面",component:"page-pick"},fontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},variableFontSize:{label:"变量字号",component:"input-number",props:{suffix:"px",min:12,max:100}},percentageSide:{label:"涨跌幅图标",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"右",value:"right"}]}},left:{label:"x轴",component:"input-number",props:{suffix:"px"}},top:{label:"y轴",component:"input-number",props:{suffix:"px"}},textAlign:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},verticalAlign:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},justifyContent:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"flex-start"},{label:"中",value:"center"},{label:"右",value:"flex-end"}]}},alignItems:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"flex-start"},{label:"中",value:"center"},{label:"下",value:"flex-end"}]}},fontFamily:{label:"字体",component:"select",props:{options:[{label:"无",value:""},...c3]}},tabFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},headerFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontStyle:{label:"字体风格",component:"radio-group",props:{options:[{label:"正常",value:"normal"},{label:"倾斜",value:"italic"}],isTransformNumber:!0}},color:{label:"颜色",component:"color-pick"},colors:{label:"颜色",component:"color-group-pick"},centerLeft:{label:"水平位置",component:"input-number",props:{suffix:"%",min:0,max:100}},centerTop:{label:"垂直位置",component:"input-number",props:{suffix:"%",min:0,max:100}},lineHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0,step:.1}},innerRadius:{label:"内半径",component:"input-number",props:{suffix:"%",min:0,max:100}},outerRadius:{label:"外半径",component:"input-number",props:{suffix:"%",min:0,max:100}},titleText:{label:"标题",component:"input"},titleSubtext:{label:"副标题",component:"input"},tooltipTrigger:{label:"触发条件",component:"radio-group",props:{options:[{label:"图形",value:"item"},{label:"坐标轴",value:"axis"},{label:"无",value:"none"}]}},tooltipTextStyleColor:{label:"文字颜色",component:"color-pick"},tooltipFormatter:{label:"格式化",component:"textarea"},legendTextStyleColor:{label:"颜色",component:"color-pick"},legendTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},legendLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},legendOrient:{label:"布局",component:"radio-group",props:{options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]}},labelFormatter:{label:"格式化",component:"input"},labelColor:{label:"标签颜色",component:"color-pick"},isUseLabelColors:{label:"系列色",component:"switch"},labelFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},labelPosition:[{label:"位置",component:"radio-group",onlyType:"pie",props:{options:[{label:"外侧",value:"outside"},{label:"内侧",value:"inside"},{label:"中心",value:"center"}]}},{label:"位置",component:"select",onlyType:["bar","radar"],props:{options:[{label:"上",value:"top"},{label:"中",value:"inside"},{label:"下",value:"bottom"},{label:"右",value:"right"},{label:"左",value:"left"}]}}],labelLineLength:{label:"第一段",component:"input-number",props:{min:0}},labelLineLength2:{label:"第二段",component:"input-number",props:{min:0}},symbolSize:{label:"标记点尺寸",component:"input-number",props:{min:0}},symbolColor:{label:"标记点颜色",component:"color-pick"},symbolWidth:{label:"图标宽",component:"input-number",props:{min:0}},symbolHeight:{label:"图标高",component:"input-number",props:{min:0}},smooth:{label:"线条光滑",component:"switch"},lineStyleWidth:{label:"线条宽度",component:"input-number",props:{min:0}},picker:{label:"选择类型",component:"select",props:{options:[{label:"日期",value:"date"},{label:"年份",value:"year"},{label:"月份",value:"month"},{label:"星期",value:"week"},{label:"季度",value:"quarter"}]}},format:[{label:"格式化",onlyType:"text",component:"select",props:{options:[{label:"无",value:""},{label:"百分比",value:"percent"},{label:"涨跌幅",value:"percentage"},{label:"金额",value:"money"},{label:"千分位",value:"thousands"}]}},{label:"格式化",component:"input",onlyType:["date","range","time"]}],showTime:{label:"展示时间",component:"switch"},xAxisSplitLineShow:{label:"分割线",component:"switch"},xAxisSplitAreaShow:{label:"分隔区域",component:"switch"},xAxisLineShow:{label:"显示轴线",component:"switch"},isBoundaryGap:{label:"两边留白",component:"switch"},xAxisSplitLineInterval:{label:"分割线间隔",component:"input-number",props:{suffix:"",min:0}},xAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},xAxisLabelColor:{label:"名称颜色",component:"color-pick"},xAxisLineStyleColor:{label:"横边颜色",component:"color-pick"},xAxisTickShow:{label:"显示刻度",component:"switch"},yAxisTickShow:{label:"显示刻度",component:"switch"},xAxisLabelFormatter:{label:"格式化",component:"input"},yAxisSplitLineShow:{label:"分割线",component:"switch"},yAxisLeftSplitLineShow:{label:"分割线-左轴",component:"switch"},yAxisRightSplitLineShow:{label:"分割线-右轴",component:"switch"},yAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisLeftSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisRightSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},xAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisSplitAreaShow:{label:"分隔区域",component:"switch"},yAxisLabelShow:{label:"刻度标签",component:"switch"},yAxisLineAlwaysDisplay:{label:"显示轴线",component:"switch"},yAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},yAxisLabelColor:{label:"名称颜色",component:"color-pick"},yAxisLineStyleColor:{label:"竖边颜色",component:"color-pick"},yAxisLabelFormatter:{label:"格式化",component:"input"},roseType:{label:"玫瑰图",component:"radio-group",props:{options:[{label:"不展示",value:""},{label:"圆心角",value:"area"},{label:"半径",value:"radius"}]}},fullModal:{label:"全屏",component:"switch"},seqIconConfig:[{label:"图标索引",component:"icon-config",layout:"vertical",onlyType:"list"}],columns:[{label:"表格列",component:"form-collapse",onlyType:"table",props:{format:[{label:"名称",value:"title",type:"input"},{label:"索引",value:"dataIndex",type:"input"},{label:"宽度",value:"width",type:"input-number",props:{suffix:"%",min:0,max:100}},{label:"头部对齐",value:"headerCellAlign",type:"select",defaultValue:"center",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"单元格对齐",value:"cellAlign",type:"select",defaultValue:"center",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"格式化",value:"format",type:"select",defaultValue:"",props:{options:[{label:"无",value:""},{label:"金额",value:"money"},{label:"百分比",value:"percentage"},{label:"布尔值",value:"boolean"},{label:"对比",value:"contrast"},{label:"进度条",value:"progress"},{label:"保留小数",value:"decimals"},{label:"自定义",value:"custom"}]}},{label:"保留位数",value:"retentiondigit",type:"input-number",show:{match:"format",value:"decimals"},props:{min:0}},{label:"自定义格式化",value:"customFormatter",type:"input",defaultValue:"{value}",show:{match:"format",value:["custom","contrast"]}},{label:"涨幅颜色",value:"increaseColor",type:"color",defaultValue:"#ff512e",show:{match:"format",value:"contrast"}},{label:"跌幅颜色",value:"declineColor",type:"color",defaultValue:"#39cf93",show:{match:"format",value:"contrast"}},{label:"进度条颜色",value:"progressColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条文字颜色",value:"progressTextColor",type:"color",defaultValue:"#333",show:{match:"format",value:"progress"}},{label:"进度条完成文字颜色",value:"progressFinishedTextColor",type:"color",defaultValue:"#fff",show:{match:"format",value:"progress"}},{label:"进度条文字保留小数位",value:"progressTextDecimalPlaces",type:"input-number",defaultValue:"2",props:{min:0},show:{match:"format",value:"progress"}},{label:"进度条线宽度",value:"progressWidth",type:"input-number",defaultValue:"18",props:{suffix:"px",min:0},show:{match:"format",value:"progress"}},{label:"默认值",value:"defaultVal",type:"input",defaultValue:""},{label:"内容超出时",value:"overflow",type:"select",defaultValue:"wrap",props:{options:[{label:"换行",value:"wrap"},{label:"省略号",value:"ellipsis"}]}},{label:"排序",value:"sorter",type:"switch",typeValue:"checked"},{label:"小计",value:"isCalcTotal",type:"switch",typeValue:"checked"},{label:"过滤",value:"tableFilter",type:"switch",typeValue:"checked"},{label:"隐藏",value:"isHidden",type:"switch",typeValue:"checked"}]}},{label:"列索引",component:"form-group",layout:"vertical",onlyType:"list",props:{format:[{label:"索引",value:"key",type:"input"},{label:"标题",value:"title",type:"input"},{label:"宽度",value:"width",type:"input-number",props:{suffix:"%",min:1}},{label:"对齐",value:"align",type:"select",defaultValue:"left",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"内容对齐",value:"cellAlign",type:"select",defaultValue:"left",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"背景颜色",value:"cellColor",type:"color",defaultValue:""},{label:"字体大小",value:"fontSize",type:"input-number",props:{suffix:"px",min:12}},{label:"字体颜色",value:"color",type:"color",defaultValue:""},{label:"字体粗细",value:"fontWeight",type:"select",defaultValue:"normal",props:{options:[{label:"较细",value:"lighter"},{label:"正常",value:"normal"},{label:"较粗",value:"bold"}]}},{label:"标题字体颜色",value:"titleColor",type:"color",defaultValue:""},{label:"格式化",value:"format",type:"select",defaultValue:"",props:{options:[{label:"无",value:""},{label:"金额",value:"money"},{label:"百分比",value:"percentage"},{label:"对比",value:"contrast"},{label:"进度条",value:"progress"},{label:"自定义",value:"custom"}]}},{label:"进度条颜色",value:"progressColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条渐变色",value:"progressGradientColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条底色",value:"progressBaseColor",type:"color",defaultValue:"",show:{match:"format",value:"progress"}},{label:"进度条线宽度",value:"progressWidth",type:"input-number",defaultValue:"14",props:{suffix:"px",min:0},show:{match:"format",value:"progress"}},{label:"自定义格式化",value:"customFormatter",type:"input",defaultValue:"{value}",show:{match:"format",value:["custom"]}}]}}],bordered:{label:"边框",component:"switch"},size:[{label:"尺寸",onlyType:"table",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"中等",value:"middle"},{label:"小号",value:"small"}]}}],allOverflow:{label:"表内容超出",onlyType:"table",component:"radio-group",props:{options:[{label:"换行",value:"false"},{label:"省略号",value:"ellipsis"},{label:"省略号+title显示",value:"title"},{label:"省略号+tooltip显示",value:"tooltip"}]}},hoverRow:{onlyType:"table",label:"点击行高亮",component:"switch"},hoverColor:{onlyType:"table",label:"hover行颜色",component:"color-pick"},boderList:{label:"边框不显示",component:"select",onlyType:"table",props:{mode:"multiple",options:[{label:"表格上边框",value:"top"},{label:"表格下边框",value:"bottom"},{label:"表格左边框",value:"left"},{label:"表格右边框",value:"right"},{label:"表格内容边框",value:"middle"},{label:"列按钮边框",value:"button"}]}},columnDropEnable:{onlyType:"table",label:"列拖拽",component:"switch"},showTotalBool:{onlyType:"table",label:"显示汇总行",component:"switch"},totalName:{onlyType:"table",label:"汇总行名",component:"input"},expandAll:{onlyType:"table",label:"展开所有节点",component:"switch"},isUseSeq:{label:"使用序列",component:"switch"},centered:{label:"居中",component:"switch"},columnsFixedNum:{label:"左固定列数",component:"input-number",props:{min:0,step:1}},scrollX:{label:"滚动宽度",component:"input-number",props:{min:0,step:1}},variableColor:{label:"变量颜色",component:"color-pick"},mode:[{label:"类型",component:"select",onlyType:"border",props:{options:[{label:"无标题",value:"no-title"},{label:"上标题",value:"top-title"},{label:"左标题",value:"left-title"}]}},{label:"类型",component:"radio-group",onlyType:"tabs",props:{options:[{label:"线条",value:"line"},{label:"卡片",value:"card"}]}},{label:"类型",component:"select",onlyType:"button",props:{options:[{label:"默认",value:"default"},{label:"主要",value:"primary"},{label:"虚线",value:"dashed"},{label:"链接",value:"link"},{label:"文本",value:"text"}]}},{label:"模式",onlyType:"select",component:"radio-group",props:{options:[{label:"单选",value:""},{label:"多选",value:"multiple"}]}}],tabColor:{label:"字体颜色",component:"color-pick"},activeTabColor:{label:"激活颜色",component:"color-pick"},tabBackgroundImage:{label:"背景图",component:"image-pick"},activeTabBackgroundImage:{label:"激活背景图",component:"image-pick"},tabBarGutter:{label:"标签间隔",component:"input-number",props:{suffix:"px",min:0}},tabFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12}},simple:{label:"简单分页",component:"switch"},pageSizeShow:{label:"每页条数",component:"switch"},sliceCount:{label:"截取条数",component:"input-number",props:{min:1}},useRanking:{label:"使用排行",component:"switch"},headerBackgroundColor:{label:"表头背景",component:"color-pick"},cellBackgroundColor:{label:"单元格背景",component:"color-pick"},borderColor:{label:"边框颜色",component:"color-pick"},useBorderModify:{label:"边框(四角)",component:"switch"},useTitle:{label:"使用标题",component:"switch"},paginationPosition:{label:"位置",component:"select",props:{options:[{label:"上左",value:"topLeft"},{label:"上中",value:"topCenter"},{label:"上右",value:"topRight"},{label:"下左",value:"bottomLeft"},{label:"下中",value:"bottomCenter"},{label:"下右",value:"bottomRight"}]}},paginationPageSize:{label:"分页数",component:"input-number"},destroyOnClose:{label:"关闭销毁",component:"switch"},position:[{label:"位置",onlyType:"modal",component:"select",props:{options:[{label:"默认",value:"default"},{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}}],yAxis:{label:"系列",component:"form-group",layout:"vertical",props:{max:2,format:[{label:["左轴","右轴"],type:"input",value:"axisLabelFormatter",props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}}]}},seriesTypes:{label:"系列",component:"form-group",layout:"vertical",props:{format:[{label:"系列",type:"select",value:"type",useLabelIndex:!0,props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}},{label:"对应轴",type:"select",value:"axisIndex",props:{options:[{label:"左轴",value:0},{label:"右轴",value:1}]}},{label:"提示框格式化",type:"input",value:"tooltipFormatter"}]}},startTime:{label:"开始时间值",component:"time-pick"},endTime:{label:"结束时间值",component:"time-pick"},limitStartTime:{label:"限制开始时间",component:"time-pick"},limitEndTime:{label:"限制结束时间",component:"time-pick"},strokeColor:{label:"完成颜色",component:"color-pick"},trailColor:{label:"未完成颜色",component:"color-pick"},strokeType:{label:"类型",component:"radio-group",props:{options:[{label:"环形",value:"circle"},{label:"仪表盘",value:"dashboard"},{label:"直线",value:"line"}]}},strokeLinecap:{label:"进度条样式",component:"radio-group",props:{options:[{label:"圆形",value:"round"},{label:"方角",value:"square"}]}},strokeWidth:{label:"进度条宽度",component:"input-number",props:{min:1}},strokeTextWidth:{label:"文本宽度",component:"input-number",props:{suffix:"%",min:20}},geoBackgroundImage:{label:"填充背景",component:"image-pick"},geoItemStyleAreaColor:{label:"板块颜色",component:"color-pick"},geoItemStyleBorderColor:{label:"边框颜色",component:"color-pick"},geoEmphasisLabelColor:{label:"字体颜色",component:"color-pick"},geoEmphasisItemStyleAreaColor:{label:"板块颜色",component:"color-pick"},geoEmphasisItemStyleBorderColor:{label:"边框颜色",component:"color-pick"},symbolImage:{label:"坐标点图标",component:"image-pick"},mapJson:{label:"上传数据",component:"file-pick"},barWidth:{label:"宽度",component:"input-number",props:{suffix:"%",min:0}},columnCount:{label:"并行数",component:"input-number",props:{min:0}},itemHeight:{label:"高度",component:"input-number",props:{suffix:"px",min:0}},itemColSpan:{label:"边距",component:"input-number",props:{suffix:"px",min:0}},itemPadding:{label:"内填充",component:"input-number",props:{suffix:"px",min:0}},itemRowSpan:{label:"行距",component:"input-number",props:{suffix:"px",min:0}},geoLabelColor:{label:"标签颜色",component:"color-pick"},geoLabelFontSize:{label:"标签大小",component:"input-number",props:{min:12,max:100}},geoItemStyleShadowColor:{label:"阴影颜色",component:"color-pick"},geoItemStyleBorderWidth:{label:"边框宽度",component:"input-number"},geoItemStyleShadowBlur:{label:"阴影模糊",component:"input-number"},geoItemStyleShadowOffsetX:{label:"阴影水平偏移",component:"input-number"},geoItemStyleShadowOffsetY:{label:"阴影垂直偏移",component:"input-number"},geoZoom:{label:"缩放大小",component:"input-number"},geoRoam:{label:"手动缩放",component:"switch"},geoCenter:{label:"中心位置",component:"input"},geoBackgroundImageRepeat:{label:"背景图片",component:"select",props:{options:[{label:"重复",value:"repeat"},{label:"水平重复",value:"repeat-x"},{label:"垂直重复",value:"repeat-y"},{label:"不重复",value:"no-repeat"}]}},titleColor:{label:"字体颜色",component:"color-pick"},titleFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},headerFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},geoEmphasisDisabled:{label:"禁用",component:"switch"},gridTop:{label:"上侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridBottom:{label:"下侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridRight:{label:"右侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridContainLabel:{label:"包含刻度标签",component:"switch"},geoLabelShow:{label:"展示文字",component:"switch"},toolboxOrient:{label:"排版",component:"radio-group",props:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]}},toolboxItemSize:{label:"图标大小",component:"input-number"},toolboxItemGap:{label:"图标间距",component:"input-number"},toolboxLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},toolboxTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}},toolboxDownloadUrl:{label:"下载文件地址",component:"input"},toolboxInfoText:{label:"说明信息内容",component:"input"},shape:{label:"形状",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"角圆",value:"round"},{label:"圆形",value:"circle"}]}},danger:{label:"危险模式",component:"switch"},href:{label:"链接",component:"textarea",show:[{match:"linkPage",value:""}]},target:{label:"链接方式",component:"radio-group",props:{options:[{label:"当前窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"}]}},transParams:{label:"传递参数",component:"unit-config",layout:"vertical",props:{indexTip:`【参数名】是跳转链接上携带参数的key值;
67
+ `,T){case"SUM":{A="求和";break}case"AVG":{A="求平均值";break}case"MIN":{A="求最小值";break}case"MAX":{A="求最大值";break}}L=L+"将所有【"+_+"】"+A;break}}return L}),E=(L,T)=>T.keyName.toLowerCase().indexOf(L.toLowerCase())>=0;return e({showModal:x}),{visible:b,onCancel:P,labelCol:c,wrapperCol:d,formState:m,builtInValueSourceList:s,onOK:R,onChange:v,formRules:M,accessLogic:F,formRef:g,onChangeBuiltInFormula:N,componentList:a,onChangeComponent:w,filterOption:E,offsetConfig:f}}}),Pme="",Lme="",oD={key:0,class:"accesstip"},iD={style:{display:"flex","align-items":"center"}};function rD(n,e,t,o,i,r){const a=p.resolveComponent("a-input"),s=p.resolveComponent("a-form-item"),l=p.resolveComponent("a-select-option"),c=p.resolveComponent("a-select"),d=p.resolveComponent("formula-calculation"),h=p.resolveComponent("a-textarea"),u=p.resolveComponent("a-input-number"),f=p.resolveComponent("question-circle-outlined"),g=p.resolveComponent("a-tooltip"),b=p.resolveComponent("a-form"),m=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(m,{title:`${n.mode==="add"?"新增":"编辑"}计算指标`,visible:n.visible,width:"50%",bodyStyle:{height:"55vh",overflow:"auto",display:"flex",flexDirection:"column"},closable:!1,onOk:n.onOK,onCancel:n.onCancel},{default:p.withCtx(()=>[p.createVNode(b,{model:n.formState,rules:n.formRules,ref:"formRef"},{default:p.withCtx(()=>[p.createVNode(s,{label:"指标名","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"label"},{default:p.withCtx(()=>[p.createVNode(a,{value:n.formState.label,"onUpdate:value":e[0]||(e[0]=y=>n.formState.label=y),onChange:n.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),p.withDirectives(p.createVNode(s,{label:"计算方式","label-col":n.labelCol,"wrapper-col":n.wrapperCol},{default:p.withCtx(()=>[p.createVNode(c,{value:n.formState.calcType,"onUpdate:value":e[1]||(e[1]=y=>n.formState.calcType=y),onChange:n.onChange},{default:p.withCtx(()=>[p.createVNode(l,{value:"FORMULA"},{default:p.withCtx(()=>[p.createTextVNode("公式")]),_:1}),n.isIndexSet?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(l,{key:0,value:"BUILT_IN"},{default:p.withCtx(()=>[p.createTextVNode("内置公式")]),_:1})),n.isIndexSet?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(l,{key:1,value:"COMPONENT"},{default:p.withCtx(()=>[p.createTextVNode("固定值")]),_:1}))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),[[p.vShow,n.type!=="indexLibColumns"]]),n.formState.calcType==="FORMULA"?(p.openBlock(),p.createBlock(d,{key:0,value:n.formState.formula,"onUpdate:value":e[2]||(e[2]=y=>n.formState.formula=y),item:n.item,mode:n.mode,type:n.type,onChange:n.onChange},null,8,["value","item","mode","type","onChange"])):p.createCommentVNode("",!0),n.formState.calcType==="BUILT_IN"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(s,{label:"内置公式","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"builtInFormula"},{default:p.withCtx(()=>[p.createVNode(c,{value:n.formState.builtInFormula,"onUpdate:value":e[3]||(e[3]=y=>n.formState.builtInFormula=y),onChange:n.onChangeBuiltInFormula},{default:p.withCtx(()=>[p.createVNode(l,{value:"BUILT_IN_ALL_VALUE"},{default:p.withCtx(()=>[p.createTextVNode("所有值")]),_:1}),p.createVNode(l,{value:"BUILT_IN_ALL_VALUE_IN_GROUPO"},{default:p.withCtx(()=>[p.createTextVNode("组内所有值")]),_:1}),p.createVNode(l,{value:"BUILT_IN_RANK"},{default:p.withCtx(()=>[p.createTextVNode("排名")]),_:1}),p.createVNode(l,{value:"BUILT_IN_RANK_IN_GROUPO"},{default:p.withCtx(()=>[p.createTextVNode("组内排名")]),_:1}),p.createVNode(l,{value:"FIRST_ROW_RATE"},{default:p.withCtx(()=>[p.createTextVNode("首行占比")]),_:1}),p.createVNode(l,{value:"DATE_OFFSET"},{default:p.withCtx(()=>[p.createTextVNode("日期偏移")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),p.createVNode(s,{label:"数值来自","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"builtInValueSource"},{default:p.withCtx(()=>[p.createVNode(c,{value:n.formState.builtInValueSource,"onUpdate:value":e[4]||(e[4]=y=>n.formState.builtInValueSource=y),onChange:n.onChange},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.builtInValueSourceList,(y,v)=>(p.openBlock(),p.createBlock(l,{key:v,value:y.label,disabled:n.mode==="edit"&&n.item.label===y.name},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(y.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),["FIRST_ROW_RATE","DATE_OFFSET"].includes(n.formState.builtInFormula)?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(s,{key:0,label:"取数原则","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"builtInValueSource"},{default:p.withCtx(()=>[p.createVNode(c,{value:n.formState.builtInCalcWay,"onUpdate:value":e[5]||(e[5]=y=>n.formState.builtInCalcWay=y),onChange:n.onChange},{default:p.withCtx(()=>[["BUILT_IN_ALL_VALUE","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(n.formState.builtInFormula||"")?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(l,{value:"SUM"},{default:p.withCtx(()=>[p.createTextVNode("求和")]),_:1}),p.createVNode(l,{value:"AVG"},{default:p.withCtx(()=>[p.createTextVNode("求平均")]),_:1}),p.createVNode(l,{value:"MAX"},{default:p.withCtx(()=>[p.createTextVNode("求最大值")]),_:1}),p.createVNode(l,{value:"MIN"},{default:p.withCtx(()=>[p.createTextVNode("求最小值")]),_:1})],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(l,{value:"ASC"},{default:p.withCtx(()=>[p.createTextVNode("升序")]),_:1}),p.createVNode(l,{value:"DESC"},{default:p.withCtx(()=>[p.createTextVNode("降序")]),_:1})],64))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"])),["FIRST_ROW_RATE","DATE_OFFSET"].includes(n.formState.builtInFormula)?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(s,{key:1,label:"取数逻辑","label-col":n.labelCol,"wrapper-col":n.wrapperCol},{default:p.withCtx(()=>[["BUILT_IN_RANK_IN_GROUPO","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(n.formState.builtInFormula)&&n.formState.builtInValueSource?(p.openBlock(),p.createElementBlock("div",oD," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+p.toDisplayString(n.formState.builtInValueSource),1)):p.createCommentVNode("",!0),p.createVNode(h,{value:n.accessLogic,rows:6,disabled:""},null,8,["value"])]),_:1},8,["label-col","wrapper-col"]))],64)):p.createCommentVNode("",!0),n.formState.calcType==="COMPONENT"?(p.openBlock(),p.createBlock(s,{key:2,label:"数值来自","label-col":n.labelCol,"wrapper-col":n.wrapperCol,name:"builtInValueSource"},{default:p.withCtx(()=>[p.createVNode(c,{"show-search":"",value:n.formState.builtInValueSource,"onUpdate:value":e[6]||(e[6]=y=>n.formState.builtInValueSource=y),"filter-option":n.filterOption,options:n.componentList,fieldNames:{value:"id",label:"keyName"},onChange:n.onChangeComponent},null,8,["value","filter-option","options","onChange"])]),_:1},8,["label-col","wrapper-col"])):p.createCommentVNode("",!0),n.formState.builtInFormula==="DATE_OFFSET"?(p.openBlock(),p.createBlock(s,{key:3,label:"偏移设置","label-col":n.labelCol,"wrapper-col":n.wrapperCol},{default:p.withCtx(()=>[p.createElementVNode("div",iD,[p.createVNode(u,{value:n.offsetConfig.value,"onUpdate:value":e[7]||(e[7]=y=>n.offsetConfig.value=y),style:{width:"120px","margin-right":"10px"},onChange:n.onChange},null,8,["value","onChange"]),p.createVNode(c,{value:n.offsetConfig.unit,"onUpdate:value":e[8]||(e[8]=y=>n.offsetConfig.unit=y),style:{width:"120px","margin-right":"10px"},onChange:n.onChange},{default:p.withCtx(()=>[p.createVNode(l,{value:"YEAR"},{default:p.withCtx(()=>[p.createTextVNode("年")]),_:1}),p.createVNode(l,{value:"MONTH"},{default:p.withCtx(()=>[p.createTextVNode("月")]),_:1}),p.createVNode(l,{value:"DAY"},{default:p.withCtx(()=>[p.createTextVNode("天")]),_:1})]),_:1},8,["value","onChange"]),p.createVNode(c,{value:n.offsetConfig.around,"onUpdate:value":e[9]||(e[9]=y=>n.offsetConfig.around=y),style:{width:"120px"},onChange:n.onChange},{default:p.withCtx(()=>[p.createVNode(l,{value:"before"},{default:p.withCtx(()=>[p.createTextVNode("前")]),_:1}),p.createVNode(l,{value:"after"},{default:p.withCtx(()=>[p.createTextVNode("后")]),_:1})]),_:1},8,["value","onChange"]),p.createVNode(g,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:p.withCtx(()=>[p.createVNode(f,{class:"icon",style:{color:"#40a9ff","font-size":"18px",cursor:"pointer","margin-left":"10px"}})]),_:1})])]),_:1},8,["label-col","wrapper-col"])):p.createCommentVNode("",!0)]),_:1},8,["model","rules"])]),_:1},8,["title","visible","onOk","onCancel"])}const aD=Vt(nD,[["render",rD],["__scopeId","data-v-7a7bcf24"]]),sD=p.defineComponent({name:"VariableCard",props:{item:{type:Object,default:()=>({})},index:{type:Number,require:!0},nameDisabled:{type:Boolean,default:!1},showDelete:{type:Boolean,default:void 0}},components:{CloseOutlined:ih,AppstoreAddOutlined:vy,ASelect:Ae.Select,ASelectOption:Ae.SelectOption,AInput:Ae.Input,APopover:Ae.Popover,ATabs:Ae.Tabs,ATabPane:Ae.TabPane,AInputNumber:Ae.InputNumber},setup(n,{emit:e}){const t=p.ref(!1),o=p.inject(hi),i=p.computed(()=>{var S;return(S=p.unref(o))==null?void 0:S.filter(O=>O.keyName!=="")}),r=[{label:"TEXT",value:"TEXT"},{label:"NUMBER",value:"NUMBER"},{label:"DATE",value:"DATE"}],a=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],s=[{label:"间隔值",value:"rangeValue"},{label:"开始时间",value:"startTime"},{label:"结束时间",value:"endTime"}],l=p.ref(et.cloneDeep(n.item));let c=!1;p.watch(()=>n.item,S=>{c=!0,l.value=et.cloneDeep(S),p.nextTick(()=>{c=!1})},{deep:!0,immediate:!0}),p.watch(l,S=>{c||e("update",et.cloneDeep(S),n.index)},{deep:!0});const d=p.computed(()=>{var S;return((S=p.unref(l))==null?void 0:S.isCustom)===!0}),h=p.computed(()=>{var O;let S=null;if(((O=p.unref(l))==null?void 0:O.dataType)==="component"){const M=p.unref(i).find(R=>{var P;return R.id===((P=p.unref(l))==null?void 0:P.id)});M&&(S=M)}return S}),u=p.computed(()=>{var O;let S=!1;return((O=p.unref(l))==null?void 0:O.variableType)==="DATE"&&(S=!0),S}),f=p.computed(()=>{let S=!1;return p.unref(h)&&(S=Nt(p.unref(h).type,"range")),S}),g=p.computed(()=>{let S=!1;return p.unref(h)&&(Nt(p.unref(h).type,"range")?["startTime","endTime"].includes(p.unref(l).dateTypeValue)&&(S=!0):Nt(p.unref(h).type,"date")&&(S=!0)),S}),b=(S,O)=>{S&&(p.unref(l).keyName=O.keyName)},m=()=>{e("delete",n.index)},y=p.computed(()=>p.unref(u)?[{label:"年",value:"YYYY"},{label:"月",value:"MM"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}]:[]),v=()=>{p.unref(l).id=null,p.unref(l).keyName="",p.unref(l).dateTypeValue=null,p.unref(l).variableValue=""},w=()=>{p.unref(l).format=null},C=(S,O)=>{var M;return(M=O==null?void 0:O.keyName)==null?void 0:M.toLowerCase().includes(S==null?void 0:S.toLowerCase())};return p.watch(g,S=>{S&&(p.unref(l).operateType||(p.unref(l).operateType="add"),p.unref(l).operateMode||(p.unref(l).operateMode="year"),p.unref(l).operateValue||(p.unref(l).operateValue=0),p.unref(l).activeOperateKey||(p.unref(l).activeOperateKey=1))},{immediate:!0}),{variableData:l,isCustom:d,typeOption:r,dataTypeOption:a,usedComponentList:i,formatOptions:y,rangeTypeOptions:s,isShowFormat:u,isDateRangeComponent:f,isShowDateOperate:g,popoverVisible:t,idFilterOption:C,onChangeComponent:b,onDelete:m,onChangeDataType:v,onChangeVariableType:w,changeTab:S=>{p.unref(l).activeOperateKey=S,S===1?p.unref(l).operateValue=0:S===2&&(p.unref(l).operateValue="rangeValue")}}}}),Ime="",lD={class:"variable-item"},cD={class:"popover-content-wrap"},dD={style:{display:"flex"}};function hD(n,e,t,o,i,r){var b;const a=p.resolveComponent("a-input"),s=p.resolveComponent("a-select"),l=p.resolveComponent("a-select-option"),c=p.resolveComponent("a-input-number"),d=p.resolveComponent("a-tab-pane"),h=p.resolveComponent("a-tabs"),u=p.resolveComponent("appstore-add-outlined"),f=p.resolveComponent("a-popover"),g=p.resolveComponent("close-outlined");return p.openBlock(),p.createElementBlock("div",lD,[p.createVNode(a,{class:"field-name",value:n.variableData.variableName,"onUpdate:value":e[0]||(e[0]=m=>n.variableData.variableName=m),placeholder:"请输入变量名",disabled:!n.isCustom&&(!!n.variableData.randomKey||n.nameDisabled)},null,8,["value","disabled"]),p.createVNode(s,{class:"field-name",value:n.variableData.variableType,"onUpdate:value":e[1]||(e[1]=m=>n.variableData.variableType=m),options:n.typeOption,disabled:!n.isCustom,style:{"max-width":"120px"},placeholder:"请选择变量类型",onChange:n.onChangeVariableType},null,8,["value","options","disabled","onChange"]),p.createVNode(s,{class:"field-name",value:n.variableData.dataType,"onUpdate:value":e[2]||(e[2]=m=>n.variableData.dataType=m),options:n.dataTypeOption,style:{"max-width":"120px"},onChange:n.onChangeDataType},null,8,["value","options","onChange"]),n.variableData.dataType==="component"?(p.openBlock(),p.createBlock(s,{key:0,class:"field-name",value:n.variableData.id,"onUpdate:value":e[3]||(e[3]=m=>n.variableData.id=m),options:n.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":n.idFilterOption,style:{"max-width":"180px"},placeholder:"请选择组件",onChange:n.onChangeComponent},null,8,["value","options","filter-option","onChange"])):(p.openBlock(),p.createBlock(a,{key:1,class:"field-name",style:{"max-width":"180px"},value:n.variableData.variableValue,"onUpdate:value":e[4]||(e[4]=m=>n.variableData.variableValue=m),placeholder:"请输入变量值"},null,8,["value"])),n.isDateRangeComponent?(p.openBlock(),p.createBlock(s,{key:2,class:"field-name",value:n.variableData.dateTypeValue,"onUpdate:value":e[5]||(e[5]=m=>n.variableData.dateTypeValue=m),options:n.rangeTypeOptions,placeholder:"请选择取值类型"},null,8,["value","options"])):p.createCommentVNode("",!0),(b=n.formatOptions)!=null&&b.length?(p.openBlock(),p.createBlock(s,{key:3,class:"field-name",value:n.variableData.format,"onUpdate:value":e[6]||(e[6]=m=>n.variableData.format=m),options:n.formatOptions,placeholder:"请选择值格式"},null,8,["value","options"])):p.createCommentVNode("",!0),n.isShowDateOperate?(p.openBlock(),p.createBlock(f,{key:4,visible:n.popoverVisible,"onUpdate:visible":e[14]||(e[14]=m=>n.popoverVisible=m),trigger:"click",placement:"bottomRight"},{content:p.withCtx(()=>[p.createElementVNode("div",cD,[p.createVNode(h,{defaultActiveKey:n.variableData.activeOperateKey,onChange:n.changeTab},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(d,{tab:"日期偏移",key:1},{default:p.withCtx(()=>[p.createVNode(c,{class:"field-name",min:"0",value:n.variableData.operateValue,"onUpdate:value":e[9]||(e[9]=m=>n.variableData.operateValue=m),style:{"max-width":"180px",flex:"auto"}},{addonBefore:p.withCtx(()=>[p.createVNode(s,{value:n.variableData.operateType,"onUpdate:value":e[7]||(e[7]=m=>n.variableData.operateType=m),style:{width:"60px"}},{default:p.withCtx(()=>[p.createVNode(l,{value:"add"},{default:p.withCtx(()=>[p.createTextVNode("加")]),_:1}),p.createVNode(l,{value:"minus"},{default:p.withCtx(()=>[p.createTextVNode("减")]),_:1})]),_:1},8,["value"])]),addonAfter:p.withCtx(()=>[p.createVNode(s,{value:n.variableData.operateMode,"onUpdate:value":e[8]||(e[8]=m=>n.variableData.operateMode=m),style:{width:"60px"}},{default:p.withCtx(()=>[p.createVNode(l,{value:"year"},{default:p.withCtx(()=>[p.createTextVNode("年")]),_:1}),p.createVNode(l,{value:"month"},{default:p.withCtx(()=>[p.createTextVNode("月")]),_:1}),p.createVNode(l,{value:"week"},{default:p.withCtx(()=>[p.createTextVNode("周")]),_:1}),p.createVNode(l,{value:"day"},{default:p.withCtx(()=>[p.createTextVNode("日")]),_:1}),p.createVNode(l,{value:"hour"},{default:p.withCtx(()=>[p.createTextVNode("时")]),_:1}),p.createVNode(l,{value:"minute"},{default:p.withCtx(()=>[p.createTextVNode("分")]),_:1})]),_:1},8,["value"])]),_:1},8,["value"])]),_:1})),n.isDateRangeComponent?(p.openBlock(),p.createBlock(d,{tab:"自定义",key:2},{default:p.withCtx(()=>[p.createElementVNode("div",dD,[p.createVNode(s,{value:n.variableData.operateValue,"onUpdate:value":e[10]||(e[10]=m=>n.variableData.operateValue=m),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:p.withCtx(()=>[p.createVNode(l,{value:"rangeValue"},{default:p.withCtx(()=>[p.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),p.createVNode(s,{value:n.variableData.operateMode,"onUpdate:value":e[11]||(e[11]=m=>n.variableData.operateMode=m),style:{"margin-right":"10px"}},{default:p.withCtx(()=>[p.createVNode(l,{value:"year"},{default:p.withCtx(()=>[p.createTextVNode("年")]),_:1}),p.createVNode(l,{value:"month"},{default:p.withCtx(()=>[p.createTextVNode("月")]),_:1}),p.createVNode(l,{value:"week"},{default:p.withCtx(()=>[p.createTextVNode("周")]),_:1}),p.createVNode(l,{value:"day"},{default:p.withCtx(()=>[p.createTextVNode("日")]),_:1}),p.createVNode(l,{value:"hour"},{default:p.withCtx(()=>[p.createTextVNode("时")]),_:1}),p.createVNode(l,{value:"minute"},{default:p.withCtx(()=>[p.createTextVNode("分")]),_:1})]),_:1},8,["value"]),p.createVNode(s,{value:n.variableData.operateType,"onUpdate:value":e[12]||(e[12]=m=>n.variableData.operateType=m)},{default:p.withCtx(()=>[p.createVNode(l,{value:"minus"},{default:p.withCtx(()=>[p.createTextVNode("前")]),_:1}),p.createVNode(l,{value:"add"},{default:p.withCtx(()=>[p.createTextVNode("后")]),_:1})]),_:1},8,["value"])])]),_:1})):p.createCommentVNode("",!0)]),_:1},8,["defaultActiveKey","onChange"])])]),default:p.withCtx(()=>[p.createElementVNode("div",{class:"calendar-wrap",onClick:e[13]||(e[13]=m=>{n.popoverVisible=!0})},[p.createVNode(u)])]),_:1},8,["visible"])):p.createCommentVNode("",!0),(n.showDelete===void 0?!n.variableData.randomKey:n.showDelete)?(p.openBlock(),p.createBlock(g,{key:5,class:"delete-icon",onClick:n.onDelete},null,8,["onClick"])):p.createCommentVNode("",!0)])}const uD=Vt(sD,[["render",hD],["__scopeId","data-v-2c5426ef"]]),ep=(n={})=>n.globalCondition===!0||n.globalCondition==null&&!n.randomKey,rh=n=>(n||[]).map(e=>({...e,globalCondition:ep(e)})),s3=(n,e,t)=>{const o=[];if(!Array.isArray(n)||!n.length)return o;for(const i of n)o.push({...i,dataType:"",id:null,variableValue:t==="EDV_DATA_SET"?i.defaultValue:null,dateTypeValue:null,format:i.valueFormat&&i.valueFormat.toUpperCase()||null,variableName:i.name,variableType:i.valueType,label:e.label,randomKey:e.randomKey,keyValue:Yn(),disabled:t==="EDV_DATA_SET",globalCondition:!1});return o},fD=(n,e)=>{const t=["leftAxisList","rightAxisList","indicators","specialIndicators"],o=[],i=new Map;for(const c of t)for(const d of(n==null?void 0:n[c])||[]){const h=Array.isArray(d==null?void 0:d.dataSetParams)?d.dataSetParams:[];if(h.length){const u=h.map(f=>f.name).filter(Boolean);o.push([...new Set(u)]);for(const f of h)f.name&&!i.has(f.name)&&i.set(f.name,f)}}if(!o.length)return(e||[]).filter(ep).map(c=>({...c,isCustom:!0}));let r=o[0];for(const c of o)r=r.filter(d=>c.includes(d));const a=(e||[]).filter(ep),s=r.map(c=>{const d=i.get(c),h=a.find(u=>u.variableName===c);return h||{...d,variableName:c,variableType:d==null?void 0:d.valueType,dataType:"",id:null,variableValue:(d==null?void 0:d.defaultValue)??null,dateTypeValue:null,format:d!=null&&d.valueFormat?d.valueFormat.toUpperCase():null,keyValue:`global-${c}`,globalCondition:!0,randomKey:null,disabled:!1}}),l=a.filter(c=>!s.some(d=>d.variableName===c.variableName)).map(c=>({...c,isCustom:!0}));return[...s,...l]},pD=p.defineComponent({name:"VariableGroup",components:{VariableItem:uD},props:{mode:{type:String,default:"global"},indicatorLabel:{type:String,default:""},indicatorKey:{type:String,default:""}},setup(n){const e=p.inject(Kn),t=p.inject($o),o=p.inject(hi),i=p.inject(rs),r=p.computed(()=>{var u;const h=((u=p.unref(e))==null?void 0:u.variableList)||[];return n.mode==="indicator"?h.filter(f=>f.randomKey===n.indicatorKey):fD(p.unref(e),h)}),a=h=>{var b;const u=et.cloneDeep(((b=p.unref(e))==null?void 0:b.variableList)||[]);let f;if(n.mode==="global")f=u.filter(m=>!ep(m)).concat(h);else{const m=new Map(h.map(v=>[v.keyValue,v])),y=new Set(m.keys());f=u.filter(v=>v.randomKey!==n.indicatorKey||y.has(v.keyValue)).map(v=>m.get(v.keyValue)||v);for(const v of h)u.some(w=>w.keyValue===v.keyValue)||f.push(v)}const g=rh(f);t({...p.unref(e),variableConditions:nl(g,o),variableList:g})};return p.watch(()=>n.mode==="global"?r.value.map(h=>h.variableName).join(","):"",()=>{n.mode==="global"&&a(et.cloneDeep(r.value))},{immediate:!0}),{variableList:r,source:i,onAddVariable:()=>{const h=et.cloneDeep(p.unref(r)),u=new Set(h.map(b=>b.variableName).filter(Boolean));let f=1;for(;u.has(`变量${f}`);)f++;const g={keyValue:Yn(),variableName:`变量${f}`,isCustom:!0,variableType:"TEXT",dataType:"",id:null,keyName:"",variableValue:null,dateTypeValue:null,format:null,globalCondition:n.mode!=="indicator",randomKey:null,disabled:!1};n.mode==="indicator"&&(g.label=n.indicatorLabel,g.randomKey=n.indicatorKey,g.disabled=p.unref(i)==="EDV_DATA_SET"),h.push(g),a(h)},onSyncVariable:()=>{var w;const{leftAxisList:h=[],rightAxisList:u=[],indicators:f=[],specialIndicators:g=[]}=p.unref(e)||{},b=et.cloneDeep(p.unref(r)),m=new Map,y=[],v=h.concat(u).concat(f).concat(g);for(const C of v)if((w=C.dataSetParams)!=null&&w.length)for(const x of C.dataSetParams)m.has(x.name)||(y.push(x.name),m.set(x.name,b.find(S=>S.variableName===x.name)));for(const C of y){const x=m.get(C);if(x){const S=b.filter(M=>M.variableName===C&&x.randomKey!==M.randomKey),O=["label","randomKey","keyValue"];for(const M of S)for(const R in x)O.includes(R)||(M[R]=x[R])}}a(b)},onUpdateItem:(h,u)=>{if(u>=0){const f=et.cloneDeep(p.unref(r));f[u]=h,a(f)}},onDeleteItem:h=>{if(h>=0){const u=et.cloneDeep(p.unref(r));u.splice(h,1),a(u)}}}}}),Fme="",gD={class:"variable-group"},mD={key:0,class:"variable-group-header"},bD={class:"variable-group-content"};function yD(n,e,t,o,i,r){const a=p.resolveComponent("a-button"),s=p.resolveComponent("variable-item");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createElementVNode("div",gD,[n.source!=="EDV_DATA_SET"?(p.openBlock(),p.createElementBlock("div",mD,[p.createVNode(a,{onClick:n.onAddVariable},{default:p.withCtx(()=>[p.createTextVNode("添加变量")]),_:1},8,["onClick"])])):p.createCommentVNode("",!0)]),p.createElementVNode("div",bD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.variableList,(l,c)=>(p.openBlock(),p.createBlock(s,{key:l.keyValue,item:l,index:Number(c),"show-delete":l.isCustom===!0,"name-disabled":n.mode==="global",onUpdate:n.onUpdateItem,onDelete:n.onDeleteItem},null,8,["item","index","show-delete","name-disabled","onUpdate","onDelete"]))),128))])],64)}const l3=Vt(pD,[["render",yD],["__scopeId","data-v-f04c0f55"]]),vD=p.defineComponent({name:"VariableModal",components:{AModal:Ae.Modal,VariableGroup:l3},props:{item:{type:Object,default:()=>({})},type:{type:String,default:""}},setup(n,{expose:e}){const t=p.ref(!1),o=p.inject(Kn),i=p.inject($o),r=p.inject(hi),a=p.inject(rs),s=()=>{var y;const{randomKey:h,label:u,dataSetParams:f}=n.item||{};if(!h||!Array.isArray(f)||!f.length)return;const g=((y=p.unref(o))==null?void 0:y.variableList)||[];if(g.some(v=>v.randomKey===h))return;const b=s3(f,{label:u,randomKey:h},p.unref(a));if(!b.length)return;const m=rh(et.cloneDeep(g));m.unshift(...b),i({variableList:m,variableConditions:nl(m,r)})},l=()=>{t.value=!0},c=()=>{t.value=!1},d=()=>{c()};return p.watch(t,h=>{h&&s(),window.changeShowTable&&window.changeShowTable(!h)},{flush:"post"}),p.watch(()=>n.item,()=>{t.value&&s()}),e({showModal:l}),{visible:t,onCancel:d}}});function wD(n,e,t,o,i,r){var l;const a=p.resolveComponent("variable-group"),s=p.resolveComponent("a-modal");return p.openBlock(),p.createBlock(s,{title:`配置变量 - ${((l=n.item)==null?void 0:l.label)||""}`,visible:n.visible,"destroy-on-close":"",width:"70%",bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null,onCancel:n.onCancel},{default:p.withCtx(()=>{var c,d;return[p.createVNode(a,{mode:"indicator","indicator-label":((c=n.item)==null?void 0:c.label)||"","indicator-key":((d=n.item)==null?void 0:d.randomKey)||""},null,8,["indicator-label","indicator-key"])]}),_:1},8,["title","visible","onCancel"])}const CD=Vt(vD,[["render",wD]]),xD=p.defineComponent({name:"DataConfigCard",directives:{focus:i3},components:{CalculationModal:aD,FilterModal:mN,CustomGroupModal:TF,VariableModal:CD,SettingOutlined:wI,DeleteOutlined:Ty,CopyOutlined:BL,InfoCircleOutlined:$L,CustomSortModal:cF,PlusOutlined:e3,ACard:Ae.Card,ACheckbox:Ae.Checkbox,AInput:Ae.Input,ADropdown:Ae.Dropdown,AMenu:Ae.Menu,ASubMenu:Ae.SubMenu,AMenuItem:Ae.MenuItem,AMenuDivider:Ae.MenuDivider,ASelect:Ae.Select,APopover:Ae.Popover,Draggable:ma,ConfigName:xN,SortByCpnt:MN,DimByCount:LN},props:{title:{type:String,default:""},type:{type:String,default:""}},setup(n){const e=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"}],t=[{label:"升序",value:"ASC"},{label:"降序",value:"DESC"},{label:"无",value:""}],o=p.inject(di),i=p.inject(Kn),r=p.inject($o),a=p.inject(hi),s=["leftAxisList","rightAxisList","indicators","specialIndicators"],l=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],c={CURRENT:"本期值",LAST_CYCLE:"上期值",LAST_YEAR:"同比值",PERIOD_ON_PERIOD:"环比",YEAR_ON_YEAR:"同比",DW:"单位"},d=p.inject(rs),h=p.ref(),u=p.computed({get(){var be;return((be=p.unref(i))==null?void 0:be.compositeIndicator)||!1},set(be){r({compositeIndicator:be})}}),f=(be={})=>{var Fe;const{type:ve}=n;if(p.unref(d)==="SQL_VIEW")return!0;p.unref(d)==="EDV_DATA_SET"&&r({edvDataSetId:be.parentId});let Re=!1;if(be.scope==="FIELD"&&(Re=!0,(["0","2"].includes(be.genericType)&&s.includes(ve)||be.genericType==="1"&&l.includes(ve))&&(Re=!1)),["IDX","BUILT_IN_IDX"].includes(be.scope)?s.includes(ve)&&(Re=!0):["DIM","BUILT_IN_DIM"].includes(be.scope)&&l.includes(ve)&&(Re=!0),ve==="dimensionList"){const rt=((Fe=p.unref(i)[ve])==null?void 0:Fe.slice())||[];(rt==null?void 0:rt.length)===1&&(Re=!1)}return Re},g=p.computed(()=>{var be;return Nt((be=p.unref(o))==null?void 0:be.type,["dataSelect"])&&n.type==="indicators"}),b=(be="{}")=>{var ve,Re;try{const Fe=JSON.parse(be);if(!f(Fe))return;const rt=((ve=p.unref(i)[n.type])==null?void 0:ve.slice())||[];(n.type==="seriesList"||n.type==="specialIndicatorList"||n.type==="classificationList"&&!Nt(p.unref(o).type,["list","circulate","scatter"])||p.unref(g)||Nt(p.unref(o).type,["indexPanel"]))&&rt.forEach(yt=>{yt.show=!1}),y(rt,Fe),Fe.randomKey=Yn(),rt.push(Fe);const{type:Pt}=n,bt={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(Fe.scope)){let yt=((Re=p.unref(i))==null?void 0:Re.variableList)||[],tn=sessionStorage.getItem("indicator-variates");if(Fe.scope==="FIELD"&&!s.includes(Pt)&&(tn="[]"),tn){const rn=JSON.parse(tn);if(rn!=null&&rn.length){const le=s3(rn,Fe,p.unref(d));le!=null&&le.length&&yt.unshift(...le)}}yt=rh(yt),bt.variableList=yt,bt.variableConditions=nl(yt,a)}r({[n.type]:rt,...bt}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(Fe){console.error(Fe)}},m=(be="{}")=>{var ve;try{const{cardItem:Re,type:Fe,index:rt}=JSON.parse(be);if(!f(Re)||Fe===n.type)return;const Pt=((ve=p.unref(i)[n.type])==null?void 0:ve.slice())||[];y(Pt,Re),Pt.push(Re);const bt=p.unref(i)[Fe].slice()||[];bt.splice(rt,1),r({[n.type]:Pt,[Fe]:bt})}catch(Re){console.error(Re)}};function y(be,ve){const Re=[];if(be.forEach(Fe=>{Fe.label.includes(ve.label)&&Re.push(Fe.label.split(ve.label)[1])}),Re.length>=1){for(let Fe=1;Fe<=Re.length;Fe++)if(!Re.includes(Fe+"")){ve.label=ve.label+Fe;break}}}const v=(be,ve)=>{var rt,Pt;const Re=(rt=be.target)==null?void 0:rt.checked,Fe=((Pt=p.unref(i)[n.type])==null?void 0:Pt.slice())||[];(n.type==="seriesList"||n.type==="classificationList"&&!Nt(p.unref(o).type,["list","circulate"])||p.unref(g)||Nt(p.unref(o).type,["indexPanel"]))&&Fe.forEach(bt=>{bt.show=!1}),Fe[ve].show=Re,r({[n.type]:Fe})},w=be=>{var Re;const ve=((Re=p.unref(i)[n.type])==null?void 0:Re.slice())||[];ve.splice(be,1),r({[n.type]:ve})},C=()=>{sessionStorage.setItem("indicator-card-item","")},x=be=>{const ve=sessionStorage.getItem("indicator-list-item"),Re=sessionStorage.getItem("indicator-card-item");ve?b(ve):Re&&m(Re)},S=be=>{var yt,tn;const{newIndex:ve,oldIndex:Re,from:Fe,to:rt}=be,Pt=Fe.id,bt=rt.id;if(ve>=0&&Re>=0){if(Pt===bt){const rn=((yt=p.unref(i)[n.type])==null?void 0:yt.slice())||[],le=rn.splice(Re,1)[0];le&&(rn.splice(ve,0,le),r({[n.type]:rn}))}else if(n.type===bt){const rn=((tn=p.unref(i)[bt])==null?void 0:tn.slice())||[];if(rn!=null&&rn.length){const le=rn.splice(rn.length-1,1)[0];le&&(rn.splice(ve,0,le),r({[n.type]:rn}))}}}},O=(be,ve)=>{const Re=be.oldIndex,Fe=ve[Re];Fe&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:Fe,type:n.type,index:Re}))},M=p.computed(()=>p.unref(i)[n.type]||[]),R=p.ref([]);let P=!1;p.watch(()=>p.unref(M).length,be=>{R.value=new Array(be).fill(!1)},{flush:"post",immediate:!0});const N=be=>{var Re,Fe,rt;const ve=((Re=p.unref(i)[n.type])==null?void 0:Re.slice())||[];if((Fe=ve[be])!=null&&Fe.randomKey){const Pt=((rt=p.unref(i))==null?void 0:rt.variableList)||[];for(let yt=Pt.length-1;yt>=0;yt--)Pt[yt].randomKey===ve[be].randomKey&&Pt.splice(yt,1);const bt=rh(Pt);r({variableConditions:nl(bt,a),variableList:bt})}ve.splice(be,1),r({[n.type]:ve})},F=be=>{R.value[be]=!0},E=()=>{P=!0},L=be=>{be.key==="Escape"&&(be.stopPropagation(),be.preventDefault())},T=(be,ve,Re)=>{var Fe,rt,Pt,bt;if(R.value[ve]=!1,P){const yt=(Fe=be.target)==null?void 0:Fe.value,tn=((rt=p.unref(i)[n.type])==null?void 0:rt.slice())||[],rn=tn.filter(ye=>{var je;return(je=ye==null?void 0:ye.formula)==null?void 0:je.includes(Re)}).map(ye=>ye.id),le=tn.filter(ye=>{var je;return(je=ye==null?void 0:ye.builtInValueSource)==null?void 0:je.includes(Re)}).map(ye=>ye.id);if(rn!=null&&rn.length)for(const ye of rn){const je=tn.find(Xe=>Xe.id===ye);je.formula=je.formula.replaceAll(Re,yt)}if(le!=null&&le.length)for(const ye of le){const je=tn.find(Xe=>Xe.id===ye);je.builtInValueSource=je.builtInValueSource.replaceAll(Re,yt)}if(tn[ve].label=yt,(Pt=tn[ve])!=null&&Pt.randomKey){const ye=((bt=p.unref(i))==null?void 0:bt.variableList)||[],je=ye.filter(mt=>mt.randomKey===tn[ve].randomKey);je!=null&&je.length&&je.forEach(mt=>{mt.label=yt});const Xe=rh(ye);r({variableConditions:nl(Xe,a),variableList:Xe})}r({[n.type]:tn})}P=!1},_="DEFAULT",A=p.computed(()=>{const be=[],{scope:ve}=p.unref(h)||{},Re=p.unref(i)[n.type]||[];if(ve==="DIM"&&!p.unref(h).typeGuid.includes("_code")){const yt=et.cloneDeep(p.unref(h));delete yt.show,delete yt.truncations,delete yt.conditions,yt.hrpIndexComplexid+="_code",yt.id+="_code",yt.typeGuid+="_code",yt.label=yt.name+"_编码",yt.name=yt.typeGuid,yt.defaultCode=yt.typeGuid,be.push(yt)}const{leftAxisList:Fe=[],rightAxisList:rt=[],indicators:Pt=[],specialIndicators:bt=[]}=p.unref(i)||{};return[...Re,...be,...Fe,...rt,...Pt,...bt]}),B=(be={},ve,Re="ASC")=>{var tn;const{label:Fe,name:rt,id:Pt,defaultCode:bt}=be,yt=((tn=p.unref(i)[n.type])==null?void 0:tn.slice())||[];Pt===_?delete yt[ve].sort:yt[ve].sort={label:Fe,columnName:rt,type:"NORMAL",order:Re,defaultCode:bt},r({[n.type]:yt})},k=(be={},ve="ASC")=>{const Fe={ASC:"升序",DESC:"降序"}[ve],{sort:rt}=be,{label:Pt,order:bt}=rt||{};return Pt&&bt===ve?`${Fe}(${Pt})`:Fe},I=p.ref(),D=p.ref(),H=p.ref(),W=p.ref(),$=(be={},ve)=>{var Re;I.value=be,D.value=ve,(Re=p.unref(H))==null||Re.showModal(be)},K=be=>"排序"+(be!=null&&be.sort?"(已配置)":""),V=(be={},ve)=>{var Re;I.value=be,D.value=ve,(Re=p.unref(W))==null||Re.showModal()},G=be=>{var ve,Re;return"自定义分组"+(!(be!=null&&be.customGroup)||!Object.keys(((ve=be.customGroup)==null?void 0:ve.groupInfoMap)||{}).length&&!((Re=be.customGroup)!=null&&Re.otherGroupName)?"":"(已配置)")},z=[{name:"显示",value:"show"},{name:"隐藏",value:"hide"}],j=[{name:"主指标",value:"main"},{name:"目标指标",value:"target"}],U=[{name:"当期指标",value:"current"},{name:"累计指标",value:"cuml"}],X=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],Z=[{name:"是",value:1},{name:"否",value:0}],Y=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].showInDrillTable=be,r({[n.type]:Re})},q=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];for(const rt of Re)rt.gaugeIndType===be&&(rt.gaugeIndType="");Re[ve].gaugeIndType=be,r({[n.type]:Re})},ne=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];for(const rt of Re)rt.budgetIndType===be&&(rt.budgetIndType="");Re[ve].budgetIndType=be,r({[n.type]:Re})},ie=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];for(let rt=0;rt<Re.length;rt++)rt===ve?Re[ve].aggregate=be:n.type==="queryColumnList"&&(Re[rt].aggregate="");r({[n.type]:Re})},J=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].distinct=be,r({[n.type]:Re})},Q=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].dateFormat=be,r({[n.type]:Re})},te=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].sort=be,r({[n.type]:Re})},ee=(be="show")=>`在钻取的普通表中(${{show:"显示",hide:"隐藏"}[be]})`,ae=be=>`指标类型(${{main:"主指标",target:"目标指标"}[be]||"无"})`,oe=be=>`指标类型(${{cuml:"累计指标",current:"当期指标"}[be]||"无"})`,he=be=>`汇总方式${be?"("+{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[be]+")":""}`,ue=be=>{const ve={ASC:"升序",DESC:"降序"};return be?`排序(${ve[be]})`:"排序"},me=be=>`是否去重(${{0:"否",1:"是"}[be]||"否"})`,Se=(be={})=>{var ve;return"过滤"+(be!=null&&be.conditions&&((ve=be==null?void 0:be.conditions)==null?void 0:ve.length)>0?"(已配置)":"")},ke=(be={})=>{var ve;return be.randomKey&&Array.isArray(be.dataSetParams)&&be.dataSetParams.length?!0:!!(be.randomKey&&(((ve=p.unref(i))==null?void 0:ve.variableList)||[]).some(Re=>Re.randomKey===be.randomKey))},Be=p.ref(),ze=p.ref(),He=p.ref(),Ue=p.ref(),Ke=(be={},ve)=>{I.value=be,D.value=ve,p.unref(Be).showModal()},De=(be={},ve)=>{I.value=be,D.value=ve,p.unref(ze).showModal(be)},de=(be={},ve)=>{I.value=be,D.value=ve,p.unref(He).showModal(be)},ce=(be={},ve)=>{I.value=be,D.value=ve,p.unref(Ue).showModal(be,p.unref(Gt))},ge=p.ref(),Me=(be={},ve)=>{var Re;I.value=be,D.value=ve,(Re=p.unref(ge))==null||Re.showModal(be)},Ie=p.ref(),Ze=p.ref("add"),We=(be,ve,Re)=>{var Fe;Ze.value=be,be==="edit"&&(I.value=ve,D.value=Re),(Fe=p.unref(Ie))==null||Fe.showModal()},qe=p.inject(li),we=p.unref(p.inject(ci)),$e=p.ref([]),Je=p.computed(()=>p.unref(i)[n.type]||{});p.watch(i,()=>{var be;Nt(p.unref(o).type,["scatter","valueline"])&&((be=p.unref(i))!=null&&be.indicators)&&($e.value=p.unref(i).indicators.map(ve=>({label:ve.label,value:ve.label})))},{immediate:!0}),p.watch(()=>i.value.classificationList,()=>{dt()});const at=p.ref(""),dt=async()=>{const{source:be}=p.unref(i);if(be!=="EDV_DATA_SET"||!Nt(p.unref(o).type,"select"))return;const{classificationList:ve=[]}=p.unref(i),Re=ve.find(bt=>bt.show);if(Re!=null&&Re.parentId){if(p.unref(at)===Re.parentId)return;at.value=Re.parentId}else{p.unref(i).selectFieldOptions=[],$e.value=[],at.value="";return}const Fe=await qe.get(`${Fo}/dataset/`+Re.parentId,{headers:{Authentication:we,operateContext:"ygt"}}),{success:rt,data:Pt=[]}=Fe.data;if(rt){const bt=Pt.column.map(yt=>({label:yt.columnName,value:yt.columnName}));p.unref(i).selectFieldOptions=bt,$e.value=bt}},Ft=async()=>{const{source:be}=p.unref(i);if(!Nt(p.unref(o).type,["scatter","valueline"]))try{if(be==="EDV_DATA_SET")await dt();else{const ve=await qe.post(`${Fo}/diagram/dimFields`,{},{headers:{Authentication:we,operateContext:"ygt"}}),{success:Re,data:Fe=[]}=ve.data;Re&&(p.unref(i).selectFieldOptions=Fe||[],$e.value=Fe)}}catch(ve){console.error(ve)}},It=(be,ve)=>{const Re=p.unref(i)[n.type]||{};Re[ve]=be,r({[n.type]:Re})},gt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],Rt=p.ref({}),Gt=p.ref([]),At=async(be,ve)=>{var Fe;const{name:Re}=ve;if(!gt.includes(n.type)&&be&&ro(ve,"indexCode")){const rt=await qe.post(`${Fo}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:ve.id,indexCode:ve.indexCode,pageId:(Fe=window==null?void 0:window.config)==null?void 0:Fe.pageId},{headers:{Authentication:we,operateContext:"ygt"}}),{success:Pt,data:bt}=rt.data;Pt&&bt&&(Gt.value=(bt==null?void 0:bt.dataViewColumns)||[],Rt.value[Re]={name:bt.name,code:bt.indexCode})}},fe=be=>{h.value=be},_e=be=>{const ve=document.createElement("input");document.body.appendChild(ve),ve.setAttribute("value",be),ve.select(),document.execCommand("copy"),document.body.removeChild(ve),Ae.message.success("复制成功")},Ve=p.computed(()=>n.type==="indicators"&&p.unref(o).type==="ecanTable"),ot=p.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(n.type)),Tt=p.computed(()=>{var be,ve;return Nt((be=p.unref(o))==null?void 0:be.type,["table"])&&((ve=p.unref(i))==null?void 0:ve.isIndexSet)}),st=p.computed(()=>!gt.includes(n.type)&&!p.unref(g)),Ot=be=>be?c[be]:"--";return p.onMounted(()=>{n.type==="formFields"&&(p.unref(o).type==="ecanDataSelect"?$e.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Ft())}),{onCheckboxChange:v,onDropEnd:w,onDragItemEnd:C,onDragItemAdd:x,onDragItemSort:S,onDragItemStart:O,cardItemList:M,onDelete:N,onEdit:F,onCommitLabelChange:T,sortList:A,onSort:B,handleSortTitle:k,showCustomSortModal:$,customSortModalRef:H,currentItem:I,currentIndex:D,handleCustomSortTitle:K,handleCustomGroupTitle:G,customGroupModalRef:W,showCustomGroupModal:V,editLabelList:R,onLabelChange:E,handleInputKeyDown:L,aggregateList:X,showHideList:z,indTypeList:j,budgetTypeList:U,distinctList:Z,onAggregateChange:ie,onShowHideChange:Y,onIndTypeChange:q,onBudgetTypeChange:ne,onDistinctChange:J,onDateFormatChange:Q,onIndSortChange:te,handleAggregateTitle:he,handleDrillTableTitle:ee,handleIndTypeTitle:ae,handleBudgetTypeTitle:oe,handleDistinctTitle:me,onShowCalculationModal:We,handleFilterTitle:Se,filterModalRef:Be,configNameRef:ze,sortByCpntRef:He,dimByCountRef:Ue,showFilterModal:Ke,calculationModalRef:Ie,calculationModalMode:Ze,formatList:e,indSortList:t,fieldOptions:$e,fieldData:Je,onFieldChange:It,onVisibleChange:At,onClickSetting:fe,copyDataViewName:_e,dataViewMap:Rt,isShowConfigName:Ve,showConfigNameModal:De,dimensionType:gt,idxList:s,hasIndicatorVariables:ke,isShowSortByCpnt:ot,showSortByCpntModal:de,dataSelectIndicators:g,showDimByCountModal:ce,variableModalRef:ge,showVariableModal:Me,selectedComponent:o,lowerCaseIncludes:Nt,isShowCalcBtn:st,isIndexSet:Tt,compositeIndicator:u,handleIndSortTitle:ue,getIndexSetRawLabel:Ot}}}),Nme="",Dme="",ms=n=>(p.pushScopeId("data-v-ee26ac51"),n=n(),p.popScopeId(),n),_D={class:"title"},SD={class:"title-text"},AD={class:"field-wrap"},TD={class:"field-item"},kD=ms(()=>p.createElementVNode("div",{class:"item-label"},"名称:",-1)),MD={class:"field-item"},BD=ms(()=>p.createElementVNode("div",{class:"item-label"},"值:",-1)),RD={key:0,class:"field-item"},ED=ms(()=>p.createElementVNode("div",{class:"item-label"},"父节点:",-1)),OD={key:1,class:"field-item"},PD=ms(()=>p.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),LD={class:"title"},ID={class:"title-text"},FD=ms(()=>p.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),ND=ms(()=>p.createElementVNode("span",null,"添加计算指标",-1)),DD={class:"card-item-wrap"},HD={class:"card-item-inner"},zD=["onClick"],jD=["onClick"],VD=["onClick"],WD={style:{display:"flex","align-items":"center"}},$D=["title"],UD=ms(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),GD={style:{display:"flex","align-items":"center"}},KD=["title"],YD=ms(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function XD(n,e,t,o,i,r){const a=p.resolveComponent("a-select"),s=p.resolveComponent("a-checkbox"),l=p.resolveComponent("a-card"),c=p.resolveComponent("info-circle-outlined"),d=p.resolveComponent("a-popover"),h=p.resolveComponent("plus-outlined"),u=p.resolveComponent("a-input"),f=p.resolveComponent("setting-outlined"),g=p.resolveComponent("a-menu-item"),b=p.resolveComponent("a-menu-divider"),m=p.resolveComponent("a-sub-menu"),y=p.resolveComponent("copy-outlined"),v=p.resolveComponent("a-menu"),w=p.resolveComponent("a-dropdown"),C=p.resolveComponent("delete-outlined"),x=p.resolveComponent("draggable"),S=p.resolveComponent("custom-sort-modal"),O=p.resolveComponent("custom-group-modal"),M=p.resolveComponent("filter-modal"),R=p.resolveComponent("config-name"),P=p.resolveComponent("sort-by-cpnt"),N=p.resolveComponent("dim-by-count"),F=p.resolveComponent("calculation-modal"),E=p.resolveComponent("variable-modal"),L=p.resolveDirective("focus");return n.type==="formFields"?(p.openBlock(),p.createBlock(l,{key:0,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:p.withCtx(()=>[p.createElementVNode("div",_D,[p.createElementVNode("div",SD,p.toDisplayString(n.title),1)])]),default:p.withCtx(()=>[p.createElementVNode("div",AD,[p.createElementVNode("div",TD,[kD,p.createVNode(a,{style:{width:"70%"},class:"item-select",value:n.fieldData.labelField,options:n.fieldOptions,onChange:e[0]||(e[0]=T=>n.onFieldChange(T,"labelField"))},null,8,["value","options"])]),p.createElementVNode("div",MD,[BD,p.createVNode(a,{style:{width:"70%"},class:"item-select",value:n.fieldData.valueField,options:n.fieldOptions,mode:n.lowerCaseIncludes(n.selectedComponent.type,"valueline")?"multiple":void 0,onChange:e[1]||(e[1]=T=>n.onFieldChange(T,"valueField"))},null,8,["value","options","mode"])]),n.selectedComponent.type==="ecanTreeSelect"?(p.openBlock(),p.createElementBlock("div",RD,[ED,p.createVNode(a,{style:{width:"70%"},class:"item-select",value:n.fieldData.parentField,options:n.fieldOptions,onChange:e[2]||(e[2]=T=>n.onFieldChange(T,"parentField"))},null,8,["value","options"])])):p.createCommentVNode("",!0),n.selectedComponent.type==="ecanSelect"?(p.openBlock(),p.createElementBlock("div",OD,[PD,p.createVNode(s,{checked:n.fieldData.hasAllOption,"onUpdate:checked":e[3]||(e[3]=T=>n.fieldData.hasAllOption=T)},{default:p.withCtx(()=>[p.createTextVNode(" 显示【全部】选项 ")]),_:1},8,["checked"])])):p.createCommentVNode("",!0)])]),_:1},8,["head-style"])):(p.openBlock(),p.createBlock(l,{key:1,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:p.withCtx(()=>[p.createElementVNode("div",LD,[p.createElementVNode("div",ID,[p.createTextVNode(p.toDisplayString(n.title)+" ",1),n.type==="dimensionList"?(p.openBlock(),p.createBlock(d,{key:0,title:"提示",placement:"topLeft"},{content:p.withCtx(()=>[FD]),default:p.withCtx(()=>[p.createVNode(c,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):p.createCommentVNode("",!0)]),n.isShowCalcBtn?(p.openBlock(),p.createElementBlock("div",{key:0,class:"add-calculation",onClick:e[4]||(e[4]=p.withModifiers(T=>n.onShowCalculationModal("add"),["prevent","stop"]))},[p.createVNode(h,{class:"add-calculation-icon"}),ND])):p.createCommentVNode("",!0),n.isIndexSet&&n.type==="indicators"?(p.openBlock(),p.createBlock(s,{key:1,checked:n.compositeIndicator,"onUpdate:checked":e[5]||(e[5]=T=>n.compositeIndicator=T),style:{"margin-left":"15px"}},{default:p.withCtx(()=>[p.createTextVNode("合计")]),_:1},8,["checked"])):p.createCommentVNode("",!0)])]),default:p.withCtx(()=>[p.createElementVNode("div",{class:p.normalizeClass(n.type+"-list"),style:{height:"100%",padding:"10px"}},[p.createVNode(x,{modelValue:n.cardItemList,"onUpdate:modelValue":e[8]||(e[8]=T=>n.cardItemList=T),class:"chart-column",id:n.type,group:{name:"cardItem",pull:n.type!=="indexLibColumns",put:n.type!=="indexLibColumns"},"item-key":"index",onAdd:n.onDragItemAdd,onSort:n.onDragItemSort,onEnd:n.onDragItemEnd,onStart:e[9]||(e[9]=T=>n.onDragItemStart(T,n.cardItemList))},{item:p.withCtx(({element:T,index:_})=>[p.createElementVNode("div",DD,[p.createVNode(s,{class:"card-item",checked:T.show,onChange:A=>n.onCheckboxChange(A,_)},{default:p.withCtx(()=>[p.createElementVNode("div",HD,[!n.editLabelList[_]&&T.label?(p.openBlock(),p.createElementBlock("div",{key:0,class:"name",onClick:p.withModifiers(A=>n.onEdit(_),["prevent","stop"])},p.toDisplayString(T.label),9,zD)):p.createCommentVNode("",!0),!n.editLabelList[_]&&!T.label?(p.openBlock(),p.createElementBlock("div",{key:1,class:"name placeholder",onClick:p.withModifiers(A=>n.onEdit(_),["prevent","stop"])}," 请点击填入名字 ",8,jD)):p.createCommentVNode("",!0),n.editLabelList[_]?p.withDirectives((p.openBlock(),p.createBlock(u,{key:2,"default-value":T.label,size:"small",onPointerdown:e[6]||(e[6]=p.withModifiers(()=>{},["stop"])),onMousedown:e[7]||(e[7]=p.withModifiers(()=>{},["stop"])),onBlur:A=>n.onCommitLabelChange(A,_,T.label),onPressEnter:A=>n.onCommitLabelChange(A,_,T.label),onChange:n.onLabelChange,onKeydown:n.handleInputKeyDown},null,8,["default-value","onBlur","onPressEnter","onChange","onKeydown"])),[[L]]):p.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(T.calcType)?(p.openBlock(),p.createElementBlock("span",{key:3,class:"calculation-icon",onClick:p.withModifiers(A=>n.onShowCalculationModal("edit",T,_),["prevent","stop"])}," fx ",8,VD)):p.createCommentVNode("",!0),p.createVNode(d,{title:""},{content:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(n.getIndexSetRawLabel(T.calcType)),1)]),default:p.withCtx(()=>[n.type==="indexLibColumns"&&!["FORMULA","BUILT_IN","COMPONENT"].includes(T.calcType)?(p.openBlock(),p.createBlock(c,{key:0,class:"setting-icon"})):p.createCommentVNode("",!0)]),_:2},1024),n.type!=="indexLibColumns"?(p.openBlock(),p.createBlock(w,{key:4,trigger:["click"],onVisibleChange:A=>n.onVisibleChange(A,T)},{overlay:p.withCtx(()=>[p.createVNode(v,null,{default:p.withCtx(()=>[n.dimensionType.includes(n.type)?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(g,{onClick:A=>n.showCustomSortModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(n.handleCustomSortTitle(T)),1)]),_:2},1032,["onClick"]),p.createVNode(b),p.createVNode(g,{onClick:A=>n.showCustomGroupModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(n.handleCustomGroupTitle(T)),1)]),_:2},1032,["onClick"]),p.createVNode(b),T.genericType==="DATE"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createVNode(m,{title:"日期格式化"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.formatList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onDateFormatChange(A.value,_)},{default:p.withCtx(()=>[p.createElementVNode("span",{style:p.normalizeStyle(T.dateFormat===A.value||!T.dateFormat&&A.value==="YYYY-MM-DD"?"color: #1890FF;":"")},p.toDisplayString(A.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),p.createVNode(b)],64)):p.createCommentVNode("",!0)],64)):p.createCommentVNode("",!0),p.createVNode(g,{onClick:A=>n.showFilterModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(n.handleFilterTitle(T)),1)]),_:2},1032,["onClick"]),p.createVNode(b),n.dimensionType.includes(n.type)?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(m,{title:n.handleIndSortTitle(T.sort)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.indSortList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onIndSortChange(A.value,_)},{default:p.withCtx(()=>[p.createElementVNode("span",{style:p.normalizeStyle(T.sort&&T.sort===A.value?"color: #1890FF;":"")},p.toDisplayString(A.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),p.createVNode(b)],64)),["queryColumnList","leftAxisList","rightAxisList","indicators"].includes(n.type)?(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[p.createVNode(m,{title:n.handleAggregateTitle(T.aggregate)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.aggregateList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onAggregateChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),n.idxList.includes(n.type)&&n.hasIndicatorVariables(T)?(p.openBlock(),p.createElementBlock(p.Fragment,{key:3},[p.createVNode(g,{onClick:A=>n.showVariableModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(" 配置变量 ")]),_:2},1032,["onClick"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),n.isShowConfigName?(p.openBlock(),p.createElementBlock(p.Fragment,{key:4},[p.createVNode(g,{onClick:A=>n.showConfigNameModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(" 修改展示名称 ")]),_:2},1032,["onClick"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),n.isShowSortByCpnt?(p.openBlock(),p.createElementBlock(p.Fragment,{key:5},[p.createVNode(g,{onClick:A=>n.showSortByCpntModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),p.createVNode(m,{title:n.handleDrillTableTitle(T.showInDrillTable)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.showHideList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onShowHideChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),p.createVNode(b),n.selectedComponent.type==="ecanGauge"?(p.openBlock(),p.createBlock(m,{key:6,title:n.handleIndTypeTitle(T.gaugeIndType)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.indTypeList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onIndTypeChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"])):p.createCommentVNode("",!0),n.selectedComponent.type==="ecanBudget"&&n.type==="indicators"?(p.openBlock(),p.createBlock(m,{key:7,title:n.handleBudgetTypeTitle(T.budgetIndType)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.budgetTypeList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onBudgetTypeChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"])):p.createCommentVNode("",!0),p.createVNode(b),T.name==="the_count"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:8},[p.createVNode(g,{onClick:A=>n.showDimByCountModal(T,_)},{default:p.withCtx(()=>[p.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),p.createVNode(b),p.createVNode(m,{title:n.handleDistinctTitle(T.distinct)},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.distinctList,A=>(p.openBlock(),p.createBlock(g,{style:{"white-space":"nowrap"},key:A.value,onClick:B=>n.onDistinctChange(A.value,_)},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(A.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),p.createVNode(b)],64)):p.createCommentVNode("",!0),n.dimensionType.includes(n.type)?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:9},[n.dataViewMap[T.name]?(p.openBlock(),p.createBlock(g,{key:0,onClick:A=>n.copyDataViewName(n.dataViewMap[T.name].name)},{default:p.withCtx(()=>[p.createElementVNode("div",WD,[p.createElementVNode("span",{class:"data-view-name",title:n.dataViewMap[T.name].name},[UD,p.createTextVNode(" "+p.toDisplayString(n.dataViewMap[T.name].name),1)],8,$D),p.createVNode(y,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):p.createCommentVNode("",!0),n.dataViewMap[T.name]?(p.openBlock(),p.createBlock(g,{key:1,onClick:A=>n.copyDataViewName(n.dataViewMap[T.name].code)},{default:p.withCtx(()=>[p.createElementVNode("div",GD,[p.createElementVNode("span",{class:"data-view-name",title:n.dataViewMap[T.name].code},[YD,p.createTextVNode(" "+p.toDisplayString(n.dataViewMap[T.name].code),1)],8,KD),p.createVNode(y,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):p.createCommentVNode("",!0)],64))]),_:2},1024)]),default:p.withCtx(()=>[p.createVNode(f,{class:"setting-icon",onClick:A=>n.onClickSetting(T)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"])):p.createCommentVNode("",!0),n.type!=="indexLibColumns"||T.calcType==="FORMULA"?(p.openBlock(),p.createBlock(C,{key:5,class:"delete-icon",onClick:p.withModifiers(A=>n.onDelete(_),["prevent"])},null,8,["onClick"])):p.createCommentVNode("",!0)])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","group","onAdd","onSort","onEnd"])],2),p.createVNode(S,{item:n.currentItem,index:n.currentIndex,type:n.type,sortList:n.sortList,ref:"customSortModalRef"},null,8,["item","index","type","sortList"]),p.createVNode(O,{item:n.currentItem,index:n.currentIndex,type:n.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),p.createVNode(M,{item:n.currentItem,index:n.currentIndex,type:n.type,ref:"filterModalRef"},null,8,["item","index","type"]),p.createVNode(R,{index:n.currentIndex,type:n.type,ref:"configNameRef"},null,8,["index","type"]),p.createVNode(P,{index:n.currentIndex,type:n.type,ref:"sortByCpntRef"},null,8,["index","type"]),p.createVNode(N,{index:n.currentIndex,type:n.type,ref:"dimByCountRef"},null,8,["index","type"]),p.createVNode(F,{type:n.type,item:n.currentItem,index:n.currentIndex,mode:n.calculationModalMode,isIndexSet:n.isIndexSet,ref:"calculationModalRef"},null,8,["type","item","index","mode","isIndexSet"]),p.createVNode(E,{item:n.currentItem,type:n.type,ref:"variableModalRef"},null,8,["item","type"])]),_:1},8,["head-style"]))}const qD=Vt(xD,[["render",XD],["__scopeId","data-v-ee26ac51"]]),ZD={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"},specialIndicators:{title:"目标指标"}},JD=p.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:qD},setup(){const n=["classificationList","seriesList","leftAxisList","rightAxisList","indicators","rowHeaderList","queryColumnList"],e=p.inject(di),t=p.computed(()=>{var l;return(l=p.unref(e))==null?void 0:l.type}),o=p.computed(()=>{var l;return!!((l=p.unref(e))!=null&&l.isGroupTable)}),i=p.ref({}),r=p.reactive([]),a=p.inject($o),s=()=>{var b,m;const l=et.cloneDeep((b=p.unref(e))==null?void 0:b.graphicConfig),c={card:["rowHeaderList","indicators"],pie:["classificationList","indicators"],circulate:["classificationList","indicators"],bar:["classificationList","seriesList","leftAxisList"],line:["classificationList","seriesList","leftAxisList"],comboGraph:["classificationList","seriesList","leftAxisList","rightAxisList"],radar:["classificationList","seriesList","leftAxisList"],table:o.value?["rowHeaderList","indicators"]:[l.isIndexSet?"indexLibColumns":"queryColumnList","indicators"],text:["dimensionList","indicators"],proportion:["indicators"],select:["classificationList","formFields"],treeSelect:["classificationList","formFields"],dataSelect:["classificationList","indicators","formFields"],checkbox:["classificationList","formFields"],radio:["classificationList","formFields"],list:["classificationList","indicators"],counter:["indicators"],scatter:["classificationList","indicators","formFields"],pivotTable:["queryColumnList","indicators"],valueLine:["classificationList","indicators","formFields"],indexPanel:["indicators"],gauge:["indicators"],boxplot:["classificationList","indicators"],budget:["classificationList","indicators","specialIndicators"]},d="ecan";let h=p.unref(t);if(h.startsWith(d)){const y=d.length;h=((m=h.slice(y,y+1))==null?void 0:m.toLowerCase())+h.slice(y+1)}const u=c[h],f=ZD,g=(u==null?void 0:u.length)||0;for(let y=0;y<g;y++){const v=u[y];if(!v)break;r.push({...f[v],type:v})}for(const y of n)ro(l,y)&&!u.find(v=>v===y)?l[y]=[]:delete l[y];a(l)};return s(),p.watch(()=>t.value,()=>{r.length=0,s()}),{cardsMap:i,cards:r}}}),Hme="",zme="",QD={class:"data-group"};function eH(n,e,t,o,i,r){const a=p.resolveComponent("data-config-card");return p.openBlock(),p.createElementBlock("div",QD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.cards,s=>(p.openBlock(),p.createBlock(a,p.mergeProps({key:s.type,class:"data-config-card",type:s.type},s),null,16,["type"]))),128))])}const tH=Vt(JD,[["render",eH],["__scopeId","data-v-b87dcb12"]]),nH=[{title:"基本属性",props:["keyName","left","top","width","height","colors","textShadow","backgroundColor","backgroundImage","backgroundSize","theme","pageFontFamily","contextRequestUrl","graphicType"]},{title:"定时跳转",props:["jumpType","jumpTime","jumpPage","jumpLink"]},{title:"弹窗",onlyType:"modal",props:["position","fullModal","isShowCloseBtn","centered","destroyOnClose","closeBtnColor","borderRadius","borderWidth","borderColor","boxShadow"]},{title:"图片",props:["borderRadius","isAnimation","animationSource","isHoverStyle","imgUrl"]},{title:"链接",props:["linkPage","href","target","transParams"]},{title:"系列",props:["seriesTypes"]},{title:"折线图",onlyType:["line","comboGraph"],props:["areaStyleOpacity","areaGradientShow","areaGradientColor","smooth","lineStyleWidth","symbolSize","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]},{title:"散点图",onlyType:["scatter"],props:["symbolSize","symbolColor"]},{title:"雷达图",onlyType:["radar"],props:["areaStyleOpacity","lineStyleWidth","symbolSize","labelShow","axisNameColor"]},{title:"单选框",onlyType:["radio"],props:["value","optionType","tabFontSize","tabHorizontalPadding","tabBarGutter","tabFlexDirection","tabTextAlign","tabColor","activeTabColor","tabBackgroundImage","activeTabBackgroundImage"]},{title:"柱状图",onlyType:["bar","comboGraph"],props:["barWidth","barBorderRadius","isUseHorizontalAxis","axisInverse","isStack","stackColumns","labelShow","showBarBackground"]},{title:"饼图",onlyType:"pie",props:["centerTop","centerLeft","innerRadius","outerRadius","roseType","minAngle"]},{title:"布局",props:["gridTop","gridBottom","gridLeft","gridRight","gridContainLabel"]},{title:"标签边距",props:["gridTopPx","gridBottomPx","gridLeftPx","gridRightPx"]},{title:"标题",onlyType:["bar","combo-graph","line","pie","radar","scatter"],props:["titleText","titleFontSize","titleColor","fontWeight","textAlign"]},{title:"x轴",props:["xAxisLabelColor","xAxisLineStyleColor","xAxisLabelWidth","xAxisLabelOverflow","xAxisLabelRotate","xAxisTickShow","xAxisSplitLineShow","xAxisSplitLineType","xAxisSplitAreaShow","xAxisLineShow","isBoundaryGap","xAxisSplitLineInterval","xAxisSplitLineStyleColor","xAxisLabelFormatter","xAxisInverse","xAxisMinInterval","xAxisLabelInterval","xAxisLabelFontSize","xAxisName","xAxisMaxValue","showXAxisLineArrow","xAxisLineInverse"]},{title:"y轴",props:["yAxisLabelColor","yAxisLineStyleColor","yAxisLineAlwaysDisplay","yAxisLabelWidth","yAxisLabelOverflow","yAxisLabelRotate","yAxisTickShow","yAxisSplitLineShow","yAxisSplitLineType","yAxisLeftSplitLineShow","yAxisLeftSplitLineType","yAxisRightSplitLineShow","yAxisRightSplitLineType","yAxisSplitAreaShow","yAxisLabelShow","yAxisSplitLineStyleColor","yAxisLabelFormatter","yAxisInverse","yAxisMinInterval","yAxis","yAxisLabelFontSize","yAxisName","yAxisLeftName","yAxisRightName","yAxisMaxValue","showYAxisLineArrow","yAxisLineInverse"]},{title:"标签",enableProps:"labelShow",excludeType:"map",props:["labelFormatter","labelWidth","labelColor","isUseLabelColors","labelFontSize","labelPosition","labelOverflow"]},{title:"标签引导线",enableProps:"labelLineShow",props:["labelLineLength","labelLineLength2"]},{title:"图例",enableProps:"legendShow",props:["legendFormatter","legendWidth","legendHeight","legendTextWidth","legendTextStyleColor","legendFontSize","legendTop","legendLeft","legendOrient","legendType","legendItemGap","legendItemWidth","legendItemHeight","legendScroll"]},{title:"提示框",enableProps:"tooltipShow",props:["tooltipTrigger","tooltipFormatter","tooltipTextStyleColor","tooltipBackgroundColor","tooltipRequestData","tooltipPosition"]},{title:"渐变",enableProps:"gradientShow",showSwitch:!0,onlyType:["bar","proportion","border","comboGraph","text","radar"],props:["isTransparent","gradientColor","gradientColors","gradientOffset","gradientAngle"]},{title:"图表标线",enableProps:"isShowMarkLine",showSwitch:!0,onlyType:["line","bar","comboGraph","scatter"],props:["markLineType"]},{title:"图表标线",onlyType:["scatter"],props:["xAxisMarkLineValue","yAxisMarkLineValue"]},{title:"图表标域",onlyType:["scatter"],props:["axisMarkArea"]},{title:"默认范围值",enableProps:"defaultRangeValue",showSwitch:!0,onlyType:["bar","comboGraph"],props:["startValue","endValue"]},{title:"单位",enableProps:"unitShow",onlyType:["text"],props:["unitText","unitFontSize","unitFontWeight","unitColor","unitTop","unitLeft"]},{title:"目标值",enableProps:"targetShow",onlyType:["text"],props:["targetRule","targetValue","notExpectColor"]},{title:"时间",onlyType:["date","time","range"],props:["picker","optionFontSize","format","show","limitInterval","startTime","endTime","value","showTime","useCurrentTime","isAllowSpanYear","interval","intervalUnit","updateInterval","operate","limitStartTime","limitEndTime"]},{title:"选择器",onlyType:"select",props:["value","mode","multiple","treeCheckable","maxTagCount","autoClearSearchValue","isAllowClear","placeholder","valueType","optionFontSize"]},{title:"表格",onlyType:"table",props:["size","allOverflow","hoverRow","hoverColor","boderList","columnDropEnable","showTotalBool","totalName","expandAll"]},{title:"列表",onlyType:"list",props:["columns","sliceCount","itemWidth","itemHeight","itemColSpan","itemPadding","itemRowSpan","useTitle","isAutoScroll","scrollSpeed"]},{title:"小计",onlyType:"table",props:["subTotalName","subTotalColumn"]},{title:"序号列",onlyType:["table","list"],enableProps:"isUseSeq",props:["seqWidth","seqName","seqIcon","seqFontSize","seqIndexFormatter"]},{title:"序号图标",onlyType:["list"],enableProps:"seqIcon",props:["seqIconConfig","seqIconWidth","seqIconHeight","seqIconOffsetX","seqIconOffsetY"]},{title:"操作列",onlyType:"table",enableProps:"isUseAction",props:["actionList","actionColumnWidth"]},{title:"分页",enableProps:"paginationShow",props:["paginationPageSize","simple","pageSizeShow","showQuickJumper","paginationPosition","isPageBottom","isShowTotal","paginationColor","paginationBgColor","activePaginationColor","activePaginationBgColor"]},{title:"循环列表",onlyType:"circulate",props:["colNum","unitInterval","isAutoScroll","scrollSpeed","scrollDirection","keyFieldMap"]},{title:"计数器",onlyType:"counter",props:["digits","unitInterval","unitWidth","unitHeight","counterBackgroundImage"]},{title:"边框",onlyType:["border","circulate"],props:["mode","borderWidth","borderRadius","borderColor","useBorderModify","borderStyle","titleMode"]},{title:"标签页",onlyType:"tabs",props:["tabType","tabWidth","activeKey","tabFontSize","tabFontWeight","tabHorizontalPadding","tabBarGutter","tabOuterMargin","tabFlexDirection","tabAlignItems","tabJustifyContent","tabColor","activeTabColor","tabBackgroundImage","activeTabBackgroundImage","autoSwitch","autoSwitchInterval","hideTabs"]},{title:"进度条",onlyType:"proportion",props:["strokeWidth","strokeType","strokeLinecap","strokeColor","trailColor"]},{title:"地图数据",onlyType:"map",props:["mapJson","geoCenter"]},{title:"地图样式",onlyType:"map",props:["geoRoam","geoZoom","geoLabelColor","geoLabelShow","geoLabelFontSize","geoBackgroundImage","geoBackgroundImageRepeat","geoItemStyleAreaColor","geoItemStyleBorderColor","geoItemStyleBorderWidth","geoItemStyleShadowColor","geoItemStyleShadowOffsetX","geoItemStyleShadowOffsetY","geoItemStyleShadowBlur","symbolImage","symbolWidth","symbolHeight"]},{title:"悬停地图样式",onlyType:"map",props:["geoEmphasisDisabled","geoEmphasisLabelColor","geoEmphasisItemStyleAreaColor","geoEmphasisItemStyleBorderColor"]},{title:"按钮",onlyType:"button",props:["mode","danger","shape","tooltipTextStyleColor","borderColor","buttonBackgroundColor"]},{title:"输入框",onlyType:"input",props:["value","placeholder","optionFontSize"]},{title:"网页",onlyType:"iframe",props:["link","linkType"]}],c3=[{label:"思源黑体",value:'"SansSc"'},{label:"黑体",value:'"SimHei","STHeiti"'},{label:"楷体",value:'"KaiTi","STKaiti"'},{label:"宋体",value:'"SimSun","STSong"'},{label:"仿宋",value:'"FangSong","STFangsong"'}].map(n=>({value:n.value,label:p.createVNode("span",{style:{fontFamily:n.value}},[n.label])})),oH={keyName:{label:"控件别名",component:"input",props:{isKeyName:!0}},text:{label:"文本",component:"textarea"},title:{label:"标题",component:"input"},textShadow:{label:"阴影",component:"input"},width:[{label:"页面宽度",updateMode:"page",component:"input-number",onlyType:"page",props:{suffix:"px",disabled:!1}},{label:"弹窗宽度",onlyType:"modal",component:"input-number",props:{suffix:"px",max:1920,min:0}},{label:"宽度",component:"input-number",props:{suffix:"px",min:0}}],height:[{label:"页面高度",updateMode:"page",onlyType:"page",component:"input-number",props:{suffix:"px",disabled:!1}},{label:"弹窗高度",onlyType:"modal",component:"input-number",props:{suffix:"px",max:1080,min:10}},{label:"高度",component:"input-number",props:{suffix:"px",min:1}}],backgroundImage:[{label:"背景图",component:"image-pick",updateMode:"page",onlyType:"page"},{label:"背景图",component:"image-pick"}],backgroundSize:[{label:"背景尺寸",component:"radio-group",updateMode:"page",onlyType:"page",props:{options:[{label:"覆盖",value:"cover"},{label:"铺满",value:"100% 100%"}]}}],backgroundColor:[{label:"背景颜色",component:"color-pick",updateMode:"page",onlyType:"page"},{label:"背景颜色",component:"color-pick"}],contextRequestUrl:{label:"请求地址",component:"input",updateMode:"page"},theme:{label:"主题",component:"select",props:{options:[{label:"默认",value:"light"},{label:"暗蓝",value:"darkBlue"}]},updateMode:"page"},pageFontFamily:{label:"字体",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"无",value:""},...c3]}},value:[{label:"时间值",component:"time-pick",onlyType:"date"},{label:"默认值",component:"input",onlyType:"select"},{label:"默认值",component:"input",onlyType:"tabs"},{label:"默认值",component:"input",onlyType:"input"},{label:"默认值",component:"checkbox",onlyType:"checkbox"},{label:"默认值",component:"input",onlyType:"radio"}],placeholder:[{label:"占位文字",component:"input"}],imgUrl:{label:"图片",component:"image-pick",show:[{match:"isAnimation",value:!1}]},linkUrl:{label:"链接地址",component:"input"},linkMethod:{label:"打开方式",component:"radio-group",props:{options:[{label:"本窗口",value:"_self"},{label:"新窗口",value:"_blank"}]}},linkPage:{label:"链接项目页面",component:"page-pick"},fontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},variableFontSize:{label:"变量字号",component:"input-number",props:{suffix:"px",min:12,max:100}},percentageSide:{label:"涨跌幅图标",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"右",value:"right"}]}},left:{label:"x轴",component:"input-number",props:{suffix:"px"}},top:{label:"y轴",component:"input-number",props:{suffix:"px"}},textAlign:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},verticalAlign:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},justifyContent:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"flex-start"},{label:"中",value:"center"},{label:"右",value:"flex-end"}]}},alignItems:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"flex-start"},{label:"中",value:"center"},{label:"下",value:"flex-end"}]}},fontFamily:{label:"字体",component:"select",props:{options:[{label:"无",value:""},...c3]}},tabFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},headerFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontStyle:{label:"字体风格",component:"radio-group",props:{options:[{label:"正常",value:"normal"},{label:"倾斜",value:"italic"}],isTransformNumber:!0}},color:{label:"颜色",component:"color-pick"},colors:{label:"颜色",component:"color-group-pick"},centerLeft:{label:"水平位置",component:"input-number",props:{suffix:"%",min:0,max:100}},centerTop:{label:"垂直位置",component:"input-number",props:{suffix:"%",min:0,max:100}},lineHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0,step:.1}},innerRadius:{label:"内半径",component:"input-number",props:{suffix:"%",min:0,max:100}},outerRadius:{label:"外半径",component:"input-number",props:{suffix:"%",min:0,max:100}},titleText:{label:"标题",component:"input"},titleSubtext:{label:"副标题",component:"input"},tooltipTrigger:{label:"触发条件",component:"radio-group",props:{options:[{label:"图形",value:"item"},{label:"坐标轴",value:"axis"},{label:"无",value:"none"}]}},tooltipTextStyleColor:{label:"文字颜色",component:"color-pick"},tooltipFormatter:{label:"格式化",component:"textarea"},legendTextStyleColor:{label:"颜色",component:"color-pick"},legendTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},legendLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},legendOrient:{label:"布局",component:"radio-group",props:{options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]}},labelFormatter:{label:"格式化",component:"input"},labelColor:{label:"标签颜色",component:"color-pick"},isUseLabelColors:{label:"系列色",component:"switch"},labelFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},labelPosition:[{label:"位置",component:"radio-group",onlyType:"pie",props:{options:[{label:"外侧",value:"outside"},{label:"内侧",value:"inside"},{label:"中心",value:"center"}]}},{label:"位置",component:"select",onlyType:["bar","radar"],props:{options:[{label:"上",value:"top"},{label:"中",value:"inside"},{label:"下",value:"bottom"},{label:"右",value:"right"},{label:"左",value:"left"}]}}],labelLineLength:{label:"第一段",component:"input-number",props:{min:0}},labelLineLength2:{label:"第二段",component:"input-number",props:{min:0}},symbolSize:{label:"标记点尺寸",component:"input-number",props:{min:0}},symbolColor:{label:"标记点颜色",component:"color-pick"},symbolWidth:{label:"图标宽",component:"input-number",props:{min:0}},symbolHeight:{label:"图标高",component:"input-number",props:{min:0}},smooth:{label:"线条光滑",component:"switch"},lineStyleWidth:{label:"线条宽度",component:"input-number",props:{min:0}},picker:{label:"选择类型",component:"select",props:{options:[{label:"日期",value:"date"},{label:"年份",value:"year"},{label:"月份",value:"month"},{label:"星期",value:"week"},{label:"季度",value:"quarter"}]}},format:[{label:"格式化",onlyType:"text",component:"select",props:{options:[{label:"无",value:""},{label:"百分比",value:"percent"},{label:"涨跌幅",value:"percentage"},{label:"金额",value:"money"},{label:"千分位",value:"thousands"}]}},{label:"格式化",component:"input",onlyType:["date","range","time"]}],showTime:{label:"展示时间",component:"switch"},xAxisSplitLineShow:{label:"分割线",component:"switch"},xAxisSplitAreaShow:{label:"分隔区域",component:"switch"},xAxisLineShow:{label:"显示轴线",component:"switch"},isBoundaryGap:{label:"两边留白",component:"switch"},xAxisSplitLineInterval:{label:"分割线间隔",component:"input-number",props:{suffix:"",min:0}},xAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},xAxisLabelColor:{label:"名称颜色",component:"color-pick"},xAxisLineStyleColor:{label:"横边颜色",component:"color-pick"},xAxisTickShow:{label:"显示刻度",component:"switch"},yAxisTickShow:{label:"显示刻度",component:"switch"},xAxisLabelFormatter:{label:"格式化",component:"input"},yAxisSplitLineShow:{label:"分割线",component:"switch"},yAxisLeftSplitLineShow:{label:"分割线-左轴",component:"switch"},yAxisRightSplitLineShow:{label:"分割线-右轴",component:"switch"},yAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisLeftSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisRightSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},xAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisSplitAreaShow:{label:"分隔区域",component:"switch"},yAxisLabelShow:{label:"刻度标签",component:"switch"},yAxisLineAlwaysDisplay:{label:"显示轴线",component:"switch"},yAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},yAxisLabelColor:{label:"名称颜色",component:"color-pick"},yAxisLineStyleColor:{label:"竖边颜色",component:"color-pick"},yAxisLabelFormatter:{label:"格式化",component:"input"},roseType:{label:"玫瑰图",component:"radio-group",props:{options:[{label:"不展示",value:""},{label:"圆心角",value:"area"},{label:"半径",value:"radius"}]}},fullModal:{label:"全屏",component:"switch"},seqIconConfig:[{label:"图标索引",component:"icon-config",layout:"vertical",onlyType:"list"}],columns:[{label:"表格列",component:"form-collapse",onlyType:"table",props:{format:[{label:"名称",value:"title",type:"input"},{label:"索引",value:"dataIndex",type:"input"},{label:"宽度",value:"width",type:"input-number",props:{suffix:"%",min:0,max:100}},{label:"头部对齐",value:"headerCellAlign",type:"select",defaultValue:"center",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"单元格对齐",value:"cellAlign",type:"select",defaultValue:"center",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"格式化",value:"format",type:"select",defaultValue:"",props:{options:[{label:"无",value:""},{label:"金额",value:"money"},{label:"百分比",value:"percentage"},{label:"布尔值",value:"boolean"},{label:"对比",value:"contrast"},{label:"进度条",value:"progress"},{label:"保留小数",value:"decimals"},{label:"自定义",value:"custom"}]}},{label:"保留位数",value:"retentiondigit",type:"input-number",show:{match:"format",value:"decimals"},props:{min:0}},{label:"自定义格式化",value:"customFormatter",type:"input",defaultValue:"{value}",show:{match:"format",value:["custom","contrast"]}},{label:"涨幅颜色",value:"increaseColor",type:"color",defaultValue:"#ff512e",show:{match:"format",value:"contrast"}},{label:"跌幅颜色",value:"declineColor",type:"color",defaultValue:"#39cf93",show:{match:"format",value:"contrast"}},{label:"进度条颜色",value:"progressColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条文字颜色",value:"progressTextColor",type:"color",defaultValue:"#333",show:{match:"format",value:"progress"}},{label:"进度条完成文字颜色",value:"progressFinishedTextColor",type:"color",defaultValue:"#fff",show:{match:"format",value:"progress"}},{label:"进度条文字保留小数位",value:"progressTextDecimalPlaces",type:"input-number",defaultValue:"2",props:{min:0},show:{match:"format",value:"progress"}},{label:"进度条线宽度",value:"progressWidth",type:"input-number",defaultValue:"18",props:{suffix:"px",min:0},show:{match:"format",value:"progress"}},{label:"默认值",value:"defaultVal",type:"input",defaultValue:""},{label:"内容超出时",value:"overflow",type:"select",defaultValue:"wrap",props:{options:[{label:"换行",value:"wrap"},{label:"省略号",value:"ellipsis"}]}},{label:"排序",value:"sorter",type:"switch",typeValue:"checked"},{label:"小计",value:"isCalcTotal",type:"switch",typeValue:"checked"},{label:"过滤",value:"tableFilter",type:"switch",typeValue:"checked"},{label:"隐藏",value:"isHidden",type:"switch",typeValue:"checked"}]}},{label:"列索引",component:"form-group",layout:"vertical",onlyType:"list",props:{format:[{label:"索引",value:"key",type:"input"},{label:"标题",value:"title",type:"input"},{label:"宽度",value:"width",type:"input-number",props:{suffix:"%",min:1}},{label:"对齐",value:"align",type:"select",defaultValue:"left",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"内容对齐",value:"cellAlign",type:"select",defaultValue:"left",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"背景颜色",value:"cellColor",type:"color",defaultValue:""},{label:"字体大小",value:"fontSize",type:"input-number",props:{suffix:"px",min:12}},{label:"字体颜色",value:"color",type:"color",defaultValue:""},{label:"字体粗细",value:"fontWeight",type:"select",defaultValue:"normal",props:{options:[{label:"较细",value:"lighter"},{label:"正常",value:"normal"},{label:"较粗",value:"bold"}]}},{label:"标题字体颜色",value:"titleColor",type:"color",defaultValue:""},{label:"格式化",value:"format",type:"select",defaultValue:"",props:{options:[{label:"无",value:""},{label:"金额",value:"money"},{label:"百分比",value:"percentage"},{label:"对比",value:"contrast"},{label:"进度条",value:"progress"},{label:"自定义",value:"custom"}]}},{label:"进度条颜色",value:"progressColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条渐变色",value:"progressGradientColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条底色",value:"progressBaseColor",type:"color",defaultValue:"",show:{match:"format",value:"progress"}},{label:"进度条线宽度",value:"progressWidth",type:"input-number",defaultValue:"14",props:{suffix:"px",min:0},show:{match:"format",value:"progress"}},{label:"自定义格式化",value:"customFormatter",type:"input",defaultValue:"{value}",show:{match:"format",value:["custom"]}}]}}],bordered:{label:"边框",component:"switch"},size:[{label:"尺寸",onlyType:"table",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"中等",value:"middle"},{label:"小号",value:"small"}]}}],allOverflow:{label:"表内容超出",onlyType:"table",component:"radio-group",props:{options:[{label:"换行",value:"false"},{label:"省略号",value:"ellipsis"},{label:"省略号+title显示",value:"title"},{label:"省略号+tooltip显示",value:"tooltip"}]}},hoverRow:{onlyType:"table",label:"点击行高亮",component:"switch"},hoverColor:{onlyType:"table",label:"hover行颜色",component:"color-pick"},boderList:{label:"边框不显示",component:"select",onlyType:"table",props:{mode:"multiple",options:[{label:"表格上边框",value:"top"},{label:"表格下边框",value:"bottom"},{label:"表格左边框",value:"left"},{label:"表格右边框",value:"right"},{label:"表格内容边框",value:"middle"},{label:"列按钮边框",value:"button"}]}},columnDropEnable:{onlyType:"table",label:"列拖拽",component:"switch"},showTotalBool:{onlyType:"table",label:"显示汇总行",component:"switch"},totalName:{onlyType:"table",label:"汇总行名",component:"input"},expandAll:{onlyType:"table",label:"展开所有节点",component:"switch"},isUseSeq:{label:"使用序列",component:"switch"},centered:{label:"居中",component:"switch"},columnsFixedNum:{label:"左固定列数",component:"input-number",props:{min:0,step:1}},scrollX:{label:"滚动宽度",component:"input-number",props:{min:0,step:1}},variableColor:{label:"变量颜色",component:"color-pick"},mode:[{label:"类型",component:"select",onlyType:"border",props:{options:[{label:"无标题",value:"no-title"},{label:"上标题",value:"top-title"},{label:"左标题",value:"left-title"}]}},{label:"类型",component:"radio-group",onlyType:"tabs",props:{options:[{label:"线条",value:"line"},{label:"卡片",value:"card"}]}},{label:"类型",component:"select",onlyType:"button",props:{options:[{label:"默认",value:"default"},{label:"主要",value:"primary"},{label:"虚线",value:"dashed"},{label:"链接",value:"link"},{label:"文本",value:"text"}]}},{label:"模式",onlyType:"select",component:"radio-group",props:{options:[{label:"单选",value:""},{label:"多选",value:"multiple"}]}}],tabColor:{label:"字体颜色",component:"color-pick"},activeTabColor:{label:"激活颜色",component:"color-pick"},tabBackgroundImage:{label:"背景图",component:"image-pick"},activeTabBackgroundImage:{label:"激活背景图",component:"image-pick"},tabBarGutter:{label:"标签间隔",component:"input-number",props:{suffix:"px",min:0}},tabFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12}},simple:{label:"简单分页",component:"switch"},pageSizeShow:{label:"每页条数",component:"switch"},sliceCount:{label:"截取条数",component:"input-number",props:{min:1}},useRanking:{label:"使用排行",component:"switch"},headerBackgroundColor:{label:"表头背景",component:"color-pick"},cellBackgroundColor:{label:"单元格背景",component:"color-pick"},borderColor:{label:"边框颜色",component:"color-pick"},useBorderModify:{label:"边框(四角)",component:"switch"},useTitle:{label:"使用标题",component:"switch"},paginationPosition:{label:"位置",component:"select",props:{options:[{label:"上左",value:"topLeft"},{label:"上中",value:"topCenter"},{label:"上右",value:"topRight"},{label:"下左",value:"bottomLeft"},{label:"下中",value:"bottomCenter"},{label:"下右",value:"bottomRight"}]}},paginationPageSize:{label:"分页数",component:"input-number"},destroyOnClose:{label:"关闭销毁",component:"switch"},position:[{label:"位置",onlyType:"modal",component:"select",props:{options:[{label:"默认",value:"default"},{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}}],yAxis:{label:"系列",component:"form-group",layout:"vertical",props:{max:2,format:[{label:["左轴","右轴"],type:"input",value:"axisLabelFormatter",props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}}]}},seriesTypes:{label:"系列",component:"form-group",layout:"vertical",props:{format:[{label:"系列",type:"select",value:"type",useLabelIndex:!0,props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}},{label:"对应轴",type:"select",value:"axisIndex",props:{options:[{label:"左轴",value:0},{label:"右轴",value:1}]}},{label:"提示框格式化",type:"input",value:"tooltipFormatter"}]}},startTime:{label:"开始时间值",component:"time-pick"},endTime:{label:"结束时间值",component:"time-pick"},limitStartTime:{label:"限制开始时间",component:"time-pick"},limitEndTime:{label:"限制结束时间",component:"time-pick"},strokeColor:{label:"完成颜色",component:"color-pick"},trailColor:{label:"未完成颜色",component:"color-pick"},strokeType:{label:"类型",component:"radio-group",props:{options:[{label:"环形",value:"circle"},{label:"仪表盘",value:"dashboard"},{label:"直线",value:"line"}]}},strokeLinecap:{label:"进度条样式",component:"radio-group",props:{options:[{label:"圆形",value:"round"},{label:"方角",value:"square"}]}},strokeWidth:{label:"进度条宽度",component:"input-number",props:{min:1}},strokeTextWidth:{label:"文本宽度",component:"input-number",props:{suffix:"%",min:20}},geoBackgroundImage:{label:"填充背景",component:"image-pick"},geoItemStyleAreaColor:{label:"板块颜色",component:"color-pick"},geoItemStyleBorderColor:{label:"边框颜色",component:"color-pick"},geoEmphasisLabelColor:{label:"字体颜色",component:"color-pick"},geoEmphasisItemStyleAreaColor:{label:"板块颜色",component:"color-pick"},geoEmphasisItemStyleBorderColor:{label:"边框颜色",component:"color-pick"},symbolImage:{label:"坐标点图标",component:"image-pick"},mapJson:{label:"上传数据",component:"file-pick"},barWidth:{label:"宽度",component:"input-number",props:{suffix:"%",min:0}},columnCount:{label:"并行数",component:"input-number",props:{min:0}},itemHeight:{label:"高度",component:"input-number",props:{suffix:"px",min:0}},itemColSpan:{label:"边距",component:"input-number",props:{suffix:"px",min:0}},itemPadding:{label:"内填充",component:"input-number",props:{suffix:"px",min:0}},itemRowSpan:{label:"行距",component:"input-number",props:{suffix:"px",min:0}},geoLabelColor:{label:"标签颜色",component:"color-pick"},geoLabelFontSize:{label:"标签大小",component:"input-number",props:{min:12,max:100}},geoItemStyleShadowColor:{label:"阴影颜色",component:"color-pick"},geoItemStyleBorderWidth:{label:"边框宽度",component:"input-number"},geoItemStyleShadowBlur:{label:"阴影模糊",component:"input-number"},geoItemStyleShadowOffsetX:{label:"阴影水平偏移",component:"input-number"},geoItemStyleShadowOffsetY:{label:"阴影垂直偏移",component:"input-number"},geoZoom:{label:"缩放大小",component:"input-number"},geoRoam:{label:"手动缩放",component:"switch"},geoCenter:{label:"中心位置",component:"input"},geoBackgroundImageRepeat:{label:"背景图片",component:"select",props:{options:[{label:"重复",value:"repeat"},{label:"水平重复",value:"repeat-x"},{label:"垂直重复",value:"repeat-y"},{label:"不重复",value:"no-repeat"}]}},titleColor:{label:"字体颜色",component:"color-pick"},titleFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},headerFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},geoEmphasisDisabled:{label:"禁用",component:"switch"},gridTop:{label:"上侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridBottom:{label:"下侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridRight:{label:"右侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridContainLabel:{label:"包含刻度标签",component:"switch"},geoLabelShow:{label:"展示文字",component:"switch"},toolboxOrient:{label:"排版",component:"radio-group",props:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]}},toolboxItemSize:{label:"图标大小",component:"input-number"},toolboxItemGap:{label:"图标间距",component:"input-number"},toolboxLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},toolboxTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}},toolboxDownloadUrl:{label:"下载文件地址",component:"input"},toolboxInfoText:{label:"说明信息内容",component:"input"},shape:{label:"形状",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"角圆",value:"round"},{label:"圆形",value:"circle"}]}},danger:{label:"危险模式",component:"switch"},href:{label:"链接",component:"textarea",show:[{match:"linkPage",value:""}]},target:{label:"链接方式",component:"radio-group",props:{options:[{label:"当前窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"}]}},transParams:{label:"传递参数",component:"unit-config",layout:"vertical",props:{indexTip:`【参数名】是跳转链接上携带参数的key值;
68
68
  【参数值】是跳转链接上携带参数的value值。`,keyName:"参数名",fieldName:"参数值",layout:"vertical"}},borderWidth:{label:"边框宽度",component:"input-number",props:{suffix:"px"}},borderRadius:{label:"圆角",component:"input"},activeKey:{label:"激活标签页",component:"input-number"},isUseAction:{label:"使用操作列",component:"switch"},actionColumnWidth:{label:"操作列宽",component:"input-number"},actionList:{label:"操作列",component:"form-group",layout:"vertical",props:{format:[{label:"名称",value:"title",type:"input"},{label:"链接地址",value:"href",type:"input"},{label:"链接方式",value:"target",type:"select",props:{options:[{label:"本窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"}]}},{label:"颜色",value:"color",type:"color"}]}},barBorderRadius:{label:"圆角",component:"input"},isUseHorizontalAxis:{label:"横向排列",component:"switch"},axisInverse:{label:"倒叙排列",component:"switch"},xAxisInverse:{label:"图形反转",component:"switch"},yAxisInverse:{label:"图形反转",component:"switch"},decimalFormat:{label:"保留小数",component:"switch"},variableDefaultValue:{label:"变量默认值",component:"input"},strokeTextShow:{label:"显示文本",component:"switch"},areaStyleOpacity:{label:"面积透明度",component:"input-number",props:{step:.1,min:0,max:1}},areaGradientShow:{label:"面积渐变",component:"switch"},areaGradientColor:{label:"渐变颜色",component:"color-pick"},tabHorizontalPadding:{label:"内水平边距",component:"input-number",props:{suffix:"px",min:0}},xAxisLabelWidth:{label:"名称宽度",component:"input-number",props:{min:0}},xAxisLabelOverflow:{label:"名称溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},xAxisLabelRotate:{label:"名称旋转",component:"input-number"},yAxisLabelWidth:{label:"名称宽度",component:"input-number",props:{min:0}},yAxisLabelOverflow:{label:"名称溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},yAxisLabelRotate:{label:"名称旋转",component:"input-number"},isStack:{label:"是否堆叠",component:"switch",effectVal(n,e,t,o){const{leftAxisList:i=[]}=o,r=e?i.map(a=>a.label):[];t({stackColumns:r})}},stackColumns:{label:"堆叠列配置",component:"select",props:{mode:"multiple",options:n=>{const{leftAxisList:e=[]}=n;return e.map(t=>({label:t.label,value:t.label}))}},effect:{hide:{props:[{props:"isStack",value:!1,rule:"==="}]}}},clickHighlight:{label:"点击高亮",component:"switch"},labelShow:{label:"展示标签",component:"switch"},isReverse:{label:"是否反转",component:"switch"},link:{label:"链接",component:"textarea"},linkType:{onlyType:"iframe",label:"链接类型",component:"radio-group",props:{options:[{label:"网页",value:"web"},{label:"报表工程",value:"erd"}]}},maxTagCount:{label:"显示最大数",component:"input-number"},tabAlignItems:{label:"垂直位置",component:"radio-group",props:{options:[{label:"上",value:"flex-start"},{label:"中",value:"center"},{label:"下",value:"flex-end"}]}},tabJustifyContent:{label:"水平位置",component:"radio-group",props:{options:[{label:"左",value:"flex-start"},{label:"中",value:"center"},{label:"右",value:"flex-end"}]}},tabFlexDirection:{label:"布局",component:"radio-group",props:{options:[{label:"水平",value:"row"},{label:"垂直",value:"column"}]}},filterDropdownHeight:{label:"过滤面板高度",component:"input-number",props:{suffix:"px",min:0}},stripedShow:{label:"斑马线条纹",component:"switch"},useCurrentTime:{label:"使用当前时间",component:"switch"},interval:{label:"时间间隔",component:"input-number",props:{min:0}},intervalUnit:{label:"时间间隔单位",component:"select",props:{options:[{label:"年",value:"year"},{label:"月",value:"month"},{label:"周",value:"week"},{label:"日",value:"day"},{label:"时",value:"hour"},{label:"分",value:"minute"}]}},operate:{label:"操作",component:"input-number",props:{min:0,prefixValueKey:"type",prefix:[{label:"加",value:"add"},{label:"减",value:"minus"}],suffixValueKey:"mode",suffix:[{label:"年",value:"year"},{label:"月",value:"month"},{label:"周",value:"week"},{label:"日",value:"day"},{label:"时",value:"hour"},{label:"分",value:"minute"}]}},updateInterval:{label:"更新间隔",component:"input-number",props:{min:1,suffixValueKey:"mode",suffix:[{label:"秒",value:"second"},{label:"分",value:"minute"},{label:"时",value:"hour"},{label:"天",value:"day"}]}},xAxisMinInterval:{label:"最小间距",component:"input-number",props:{min:0}},yAxisMinInterval:{label:"最小间距",component:"input-number",props:{min:0}},minAngle:{label:"最小角度",component:"input-number",props:{min:0,max:360}},autoSwitch:{label:"自动切换",component:"switch"},autoSwitchInterval:{label:"切换间隔",component:"input-number",props:{min:0}},xAxisLabelInterval:{label:"标签间隔",component:"input-number",props:{min:-1}},isUseExport:{label:"导出数据",component:"switch"},autoClearSearchValue:{label:"选中清空搜索",component:"switch"},toolboxLocation:{label:"快速定位",component:"switch"},toolboxDownloadShow:{label:"使用数据下载",component:"switch"},toolboxDataZoomShow:{label:"使用放大",component:"switch"},toolboxInfoShow:{label:"使用说明信息",component:"switch"},multiple:{label:"多选模式",component:"switch"},treeCheckable:{label:"复选框模式",component:"switch"},selectFirstOption:{label:"选择首选项",component:"switch"},gradientColor:{label:"渐变颜色",component:"color-pick"},gradientOffset:{label:"渐变度",component:"slider"},legendItemGap:{label:"图例项间隔",component:"input-number",props:{min:1}},legendItemWidth:{label:"图例图形宽度",component:"input-number",props:{min:1}},legendItemHeight:{label:"图例图形高度",component:"input-number",props:{min:1}},showBarBackground:{label:"背景色",component:"switch"},gradientColors:{label:"颜色",onlyType:"bar",component:"color-group-pick"},increaseColor:{label:"涨幅颜色 ",component:"color-pick"},declineColor:{label:"跌幅颜色",component:"color-pick"},legendType:{label:"图例类型 ",component:"select",props:{options:[{label:"默认",value:""},{label:"圆形",value:"circle"},{label:"矩形",value:"rect"},{label:"圆角矩形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"菱形",value:"diamond"},{label:"箭头",value:"arrow"}]}},optionType:{label:"单选类型",component:"select",props:{options:[{label:"默认",value:"default"},{label:"框组",value:"button"}]}},minusSignShow:{label:"涨跌幅负号",component:"switch"},gradientAngle:{label:"渐变角度",component:"input-number",props:{suffix:"deg"}},stripedColor:{label:"条纹颜色",component:"color-pick"},axisNameColor:{label:"名称颜色",component:"color-pick"},shadowColor:{label:"阴影颜色",component:"color-pick"},shadowBlur:{label:"阴影模糊度",component:"input-number",props:{min:0}},shadowOffsetX:{label:"阴影偏移(X)",component:"input-number",props:{min:0}},shadowOffsetY:{label:"阴影偏移(Y)",component:"input-number",props:{min:0}},borderStyle:{label:"边框线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},unitText:{label:"文本",component:"input"},unitFontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},unitFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},unitColor:{label:"颜色",component:"color-pick"},unitTop:{label:"上侧距离",component:"input-number",props:{suffix:"%"}},unitLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%"}},legendFormatter:{label:"格式化",component:"textarea"},titleMode:{label:"标题背景",component:"select",props:{options:[{label:"类型一",value:"type-1"},{label:"类型二",value:"type-2"}]}},legendFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},valueType:{label:"传值类型",component:"select",props:{options:[{label:"值",value:"value"},{label:"名称",value:"label"}]}},isGroupTable:{label:"分组表格",component:"switch"},xAxisLabelFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},yAxisLabelFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},tooltipRequestData:{label:"配置请求",component:"tooltip-request"},tooltipBackgroundColor:{label:"背景颜色",component:"color-pick"},seqWidth:{label:"宽度",component:"input-number",props:{min:0,max:100,suffix:"%"}},isAllowClear:{label:"支持清除",component:"switch"},isSummaryFixed:{label:"固定小计行",component:"switch"},labelWidth:{label:"标签宽度",component:"input-number",props:{min:0}},labelOverflow:{label:"标签溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},isPageBottom:{label:"固定在底部",component:"switch"},optionFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},isShowTotal:{label:"显示总数",component:"switch"},graphicType:{label:"图表类型",component:"select",props:{options:[{label:"饼图",value:"ecanPie"},{label:"折线图",value:"ecanLine"},{label:"柱状图",value:"ecanBar"},{label:"散点图",value:"ecanScatter"},{label:"组合图表",value:"ecanComboGraph"},{label:"自定义图表",value:"ecanCustomGraph"},{label:"雷达图",value:"ecanRadar"}],graphic:!0}},isAllowSpanYear:{label:"允许跨年",component:"switch"},tabType:{label:"类型",component:"select",props:{options:[{label:"标签",value:"tabs"},{label:"下拉框",value:"select"}]}},targetRule:{label:"规则",component:"select",props:{options:[{label:"等于",value:"equal"},{label:"大于",value:"greater"},{label:"大于等于",value:"greater_equal"},{label:"小于",value:"less"},{label:"小于等于",value:"less_equal"}]}},targetValue:{label:"值",component:"input"},notExpectColor:{label:"颜色",component:"color-pick"},buttonBackgroundColor:{label:"背景色",component:"color-pick"},tabWidth:{label:"标签宽度",component:"input-number",props:{min:50,suffix:"px"}},headerFontColor:{label:"文字颜色",component:"color-pick"},cellFontColor:{label:"文字颜色",component:"color-pick"},isTransparent:{label:"透明色",component:"switch"},hideTableHeader:{label:"隐藏",component:"switch"},closeBtnColor:{label:"关闭按钮颜色",component:"color-pick"},paginationColor:{label:"页码颜色",component:"color-pick"},paginationBgColor:{label:"页码背景色",component:"color-pick"},activePaginationColor:{label:"当前页颜色",component:"color-pick"},activePaginationBgColor:{label:"当前页背景色",component:"color-pick"},hoverBackgroundColor:{label:"hover行颜色",component:"color-pick"},tooltipPosition:{label:"位置",component:"select",props:{options:[{label:"默认",value:""},{label:"左侧",value:"left"},{label:"右侧",value:"right"}]}},tabTextAlign:{label:"对齐方式",component:"radio-group",props:{options:[{label:"默认",value:""},{label:"居中",value:"center"}]}},seqName:{label:"名称",component:"input"},seqIcon:{label:"显示图标",component:"switch"},isShowCloseBtn:{label:"显示关闭按钮",component:"switch"},markLineType:{label:"标线类型",component:"select",props:{options:[{label:"平均值",value:"average"},{label:"最小值",value:"min"},{label:"最大值",value:"max"},{label:"中位数",value:"median"}]}},seqFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},isAutoScroll:{label:"循环滚动",component:"switch"},scrollSpeed:{label:"滚动速度",component:"input-number",props:{min:.1}},isHoverStyle:{label:"悬浮效果",component:"switch",show:[{match:"isAnimation",value:!1}]},isAnimation:{label:"JSON动画",component:"switch"},animationSource:{label:"资源文件",component:"zip-pick",style:"width: auto;",show:[{match:"isAnimation",value:!0}]},subTotalColumn:{label:"放置列",component:"select",props:{options:[],dynamics:!0}},subTotalName:{label:"名称",component:"input"},isSortByFront:{label:"是否前端排序",component:"switch"},legendWidth:{label:"区域宽度",component:"input-number"},legendHeight:{label:"区域高度",component:"input-number"},legendTextWidth:{label:"文字宽度",component:"input-number"},legendScroll:{label:"分页",component:"switch"},boxShadow:{label:"阴影",component:"textarea"},limitInterval:{label:"限制范围",component:"input-number",props:{min:0,suffixValueKey:"mode",suffix:[{label:"年",value:"year"},{label:"月",value:"month"},{label:"周",value:"week"},{label:"日",value:"day"},{label:"时",value:"hour"},{label:"分",value:"minute"}]}},xAxisName:{label:"坐标轴名称",component:"input"},yAxisName:{label:"坐标轴名称",component:"input"},yAxisLeftName:{label:"坐标轴名称-左轴",component:"input"},yAxisRightName:{label:"坐标轴名称-右轴",component:"input"},seqIconWidth:{label:"图标宽度",component:"input-number",props:{suffix:"px",min:0}},seqIconHeight:{label:"图标高度",component:"input-number",props:{suffix:"px",min:0}},seqIconOffsetX:{label:"横向偏移",component:"input-number",props:{suffix:"px"}},seqIconOffsetY:{label:"纵向偏移",component:"input-number",props:{suffix:"px"}},seqIndexFormatter:{label:"格式化",component:"textarea"},unitInterval:{label:"单位间隔",component:"input-number",props:{min:0}},keyFieldMap:{label:"数据配置",component:"unit-config",layout:"vertical",onlyType:"circulate",props:{indexTip:`【别名】是循环列表内部要循环的组件别名;
69
69
  【字段】是接口返回的数据字段;`,keyName:"别名",fieldName:"字段"}},itemWidth:{label:"宽度",component:"input-number",props:{suffix:"%",min:1,max:100}},startValue:{label:"开始值",component:"textarea"},endValue:{label:"结束值",component:"textarea"},colNum:{label:"列数量",component:"input-number"},digits:{label:"位数",component:"input-number",props:{min:0}},unitWidth:{label:"单位宽度",component:"input-number",props:{suffix:"px",min:10}},unitHeight:{label:"单位高度",component:"input-number",props:{suffix:"px",min:10}},counterBackgroundImage:{label:"背景图",component:"image-pick"},showEllipsis:{label:"超出省略号",component:"switch"},exceedConfig:{label:"内容超出时",component:"select",props:{options:[{label:"默认",value:""},{label:"换行",value:"wrap"},{label:"省略号",value:"ellipsis"}]}},xAxisMaxValue:{label:"最大值",component:"input-number",props:{min:0}},yAxisMaxValue:{label:"最大值",component:"input-number",props:{min:0}},scrollDirection:{label:"滚动方向",component:"radio-group",props:{options:[{label:"竖直",value:"vertical"},{label:"水平",value:"horizontal"}]}},hideTabs:{label:"隐藏标签",component:"switch"},jumpType:{label:"跳转类型",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"当前项目页面",value:"page"},{label:"外部链接页面",value:"link"}]}},jumpTime:{label:"定时",component:"input-number",updateMode:"page",onlyType:"page",props:{min:0,suffix:[{label:"时",value:"hours"},{label:"分",value:"minute"},{label:"秒",value:"seconds"}]}},jumpPage:{label:"项目页面",component:"page-pick",updateMode:"page",onlyType:"page",show:[{match:"jumpType",value:"page"}]},jumpLink:{label:"链接",component:"textarea",updateMode:"page",onlyType:"page",show:[{match:"jumpType",value:"link"}]},gridTopPx:{label:"上侧距离",component:"input-number",props:{suffix:"px",min:0}},gridBottomPx:{label:"下侧距离",component:"input-number",props:{suffix:"px",min:0}},gridLeftPx:{label:"左侧距离",component:"input-number",props:{suffix:"px",min:0}},gridRightPx:{label:"右侧距离",component:"input-number",props:{suffix:"px",min:0}},showAnimation:{label:"动画",component:"switch",style:"width: auto;",props:{tooltip:"文本组件的值会以动画的形式发生变化(只有值为数字类型的时候才生效)"}},showXAxisLineArrow:{label:"显示箭头",component:"switch"},showYAxisLineArrow:{label:"显示箭头",component:"switch"},xAxisLineInverse:{label:"倒序",component:"switch"},yAxisLineInverse:{label:"倒序",component:"switch"},xAxisMarkLineValue:{label:"x轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在x轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,
70
70
  max表示x轴刻度最大值,min表示x轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量,例如添加一根位于x轴正中间的标线可以这么写:({max} + {min}) / 2`}},yAxisMarkLineValue:{label:"y轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在y轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,