@ecan-bi/indicator-library 1.1.35 → 1.1.36

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.35 */
1
+ /*! @ecan-bi/indicator-library@1.1.36 */
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,it,Te,ma,$ge,Uge,Cn,Gge,c9,Kge,d9,h9){var t9;"use strict";function u9(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 b2=u9(d9),y2=n=>(n.install=e=>{e.component(n.name,n)},n),li="$request",Io=((t9=window==null?void 0:window.config)==null?void 0:t9.indicatorURL)||"",ci="INDICATOR_TOKEN",v2="DATA_LIST",di="SELECTED_COMPONENT",Kn="GRAPHIC_CONFIG",$o="UPDATE_GRAPHIC_CONFIG",w2="SHOW_STYLE_CONFIG",C2="REFRESH_DATA",Af="CHARTS_OPTIONS",x2="TABLE_OPTIONS",f9=18,Ob="UPDATE_CHARTS_OPTIONS",Pb="UPDATE_TABLE_OPTIONS",rs="SOURCE_TYPE",Tf="CHANGE_CONDITION",_2="DATA_VIEW_COLUMNS",hi="RENDER_USED_COMPONENTS",kf="UPDATE_USED_COMPONENT",S2="UPDATE_COMPONENTS_CONFIG",A2="MAP_ATTRIBUTE_PROPS",T2="PAGE_CONFIG",Lb="IS_PIVOT_TABLE",k2="IS_IFRAME_MODE",Ib={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%"}},p9={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},M2=n=>p.defineAsyncComponent({loader:n,delay:200});function B2(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 g9(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 R2=()=>{},Fb=Object.assign,m9=Object.prototype.hasOwnProperty,Mf=(n,e)=>m9.call(n,e),ba=Array.isArray,Nd=n=>O2(n)==="[object Map]",Bf=n=>typeof n=="function",E2=n=>typeof n=="string",Rf=n=>typeof n=="symbol",Ef=n=>n!==null&&typeof n=="object",b9=Object.prototype.toString,O2=n=>b9.call(n),P2=n=>O2(n).slice(8,-1),Nb=n=>E2(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,y9=(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 L2;const Db=()=>L2||(L2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function I2(n,...e){console.warn(`[Vue warn] ${n}`,...e)}const Hd=n=>{const e=new Set(n);return e.w=0,e.n=0,e},F2=n=>(n.w&as)>0,N2=n=>(n.n&as)>0,Hb=new WeakMap;let zd=0,as=1,ei;const Xs=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),zb=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");let v9=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):D2(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];F2(s)&&!N2(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&&(D2(this),this.onStop&&this.onStop(),this.active=!1)}};function D2(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 H2=[];function z2(){H2.push(ss),ss=!1}function j2(){const n=H2.pop();ss=n===void 0||n}function $i(n,e,t){if(ss&&ei){let o=Hb.get(n);o||Hb.set(n,o=new Map);let i=o.get(t);i||o.set(t,i=Hd()),jb(i,process.env.NODE_ENV!=="production"?{effect:ei,target:n,type:e,key:t}:void 0)}}function jb(n,e){let t=!1;zd<=30?N2(n)||(n.n|=as,t=!F2(n)):t=!n.has(ei),t&&(n.add(ei),ei.deps.push(n),process.env.NODE_ENV!=="production"&&ei.onTrack&&ei.onTrack(Fb({effect:ei},e)))}function ls(n,e,t,o,i,r){const a=Hb.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)?Nb(t)&&s.push(a.get("length")):(s.push(a.get(Xs)),Nd(n)&&s.push(a.get(zb)));break;case"delete":ba(n)||(s.push(a.get(Xs)),Nd(n)&&s.push(a.get(zb)));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&&V2(o,e);for(const o of t)o.computed||V2(o,e)}function V2(n,e){(n!==ei||n.allowRecurse)&&(process.env.NODE_ENV!=="production"&&n.onTrigger&&n.onTrigger(Fb({effect:n},e)),n.scheduler?n.scheduler():n.run())}const w9=g9("__proto__,__v_isRef,__isVue"),W2=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(Rf)),$2=C9();function C9(){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){z2();const o=xn(this)[e].apply(this,t);return j2(),o}}),n}function x9(n){const e=xn(this);return $i(e,"has",n),e.hasOwnProperty(n)}let U2=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?I9:Q2:r?L9:J2).get(e))return e;const a=ba(e);if(!i){if(a&&Mf($2,t))return Reflect.get($2,t,o);if(t==="hasOwnProperty")return x9}const s=Reflect.get(e,t,o);return(Rf(t)?W2.has(t):w9(t))?s:(i||$i(e,"get",t),r?s:ds(s)?a&&Nb(t)?s:s.value:Ef(s)?i?t_(s):e_(s):s)}},_9=class extends U2{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&&(o_(o)||Df(o)||(r=xn(r),o=xn(o)),!ba(e)&&ds(r)&&!ds(o)))return r.value=o,!0;const a=ba(e)&&Nb(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)&&W2.has(t)||$i(e,"has",t),o}ownKeys(e){return $i(e,"iterate",ba(e)?"length":Xs),Reflect.ownKeys(e)}},S9=class extends U2{constructor(e=!1){super(!0,e)}set(e,t){return process.env.NODE_ENV!=="production"&&I2(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return process.env.NODE_ENV!=="production"&&I2(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}};const A9=new _9,T9=new S9,Vb=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?Vb:t?Wb: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 G2(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 K2(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"&&Z2(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 Y2(n){const e=xn(this),{has:t,get:o}=Of(e);let i=t.call(e,n);i?process.env.NODE_ENV!=="production"&&Z2(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 X2(){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?Vb:n?Wb: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?Vb:e?Wb:jd;return!e&&$i(r,"iterate",l?zb: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(`${y9(n)} operation ${t}failed: target is readonly.`,xn(this))}return n!=="delete"&&this}}function k9(){const n={get(i){return Pf(this,i)},get size(){return If(this)},has:Lf,add:G2,set:K2,delete:Y2,clear:X2,forEach:Ff(!1,!1)},e={get(i){return Pf(this,i,!1,!0)},get size(){return If(this)},has:Lf,add:G2,set:K2,delete:Y2,clear:X2,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[M9,B9,R9,E9]=k9();function q2(n,e){const t=e?n?E9:R9:n?B9:M9;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 O9={get:q2(!1,!1)},P9={get:q2(!0,!1)};function Z2(n,e,t){const o=xn(t);if(o!==t&&e.call(n,o)){const i=P2(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 J2=new WeakMap,L9=new WeakMap,Q2=new WeakMap,I9=new WeakMap;function e_(n){return Df(n)?n:n_(n,!1,A9,O9,J2)}function t_(n){return n_(n,!0,T9,P9,Q2)}function n_(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}}(P2(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 o_(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)?e_(n):n,Wb=n=>Ef(n)?t_(n):n;function i_(n){ss&&ei&&(n=xn(n),process.env.NODE_ENV!=="production"?jb(n.dep||(n.dep=Hd()),{target:n,type:"get",key:"value"}):jb(n.dep||(n.dep=Hd())))}function r_(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 F9(e,t)}(n,!1)}let F9=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 i_(this),this._value}set value(e){const t=this.__v_isShallow||o_(e)||Df(e);e=t?e:xn(e),Dd(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:jd(e),r_(this,e))}};function St(n){return ds(n)?n.value:n}let N9=class{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 v9(e,()=>{this._dirty||(this._dirty=!0,r_(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const e=xn(this);return i_(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}};const qs=[];function $b(n,...e){if(process.env.NODE_ENV==="production")return;z2();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)Ub(o,t,11,[n+e.join(""),t&&t.proxy,i.map(({vnode:r})=>`at <${p_(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 XP(n,e){if(n){if(typeof n=="string")return OS(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 OS(n,e)}}function OS(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 ZP(n){if(Array.isArray(n))return n}function PS(n){var e=RS(n),t=KP(e,2),o=t[0],i=t[1];return gy.setTwoToneColors({primaryColor:o,secondaryColor:i})}function JP(){var n=gy.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var QP=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function eL(n,e){return iL(n)||oL(n,e)||nL(n,e)||tL()}function tL(){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 nL(n,e){if(n){if(typeof n=="string")return LS(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 LS(n,e)}}function LS(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 oL(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 iL(n){if(Array.isArray(n))return n}function IS(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){my(n,i,t[i])})}return n}function my(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function rL(n,e){if(n==null)return{};var t=aL(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 aL(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}PS("#1890ff");var cc=function(e,t){var o,i=IS({},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=rL(i,QP),f=(o={anticon:!0},my(o,"anticon-".concat(a.name),!!a.name),my(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=RS(d),v=eL(y,2),w=v[0],C=v[1];return p.createVNode("span",IS({role:"img","aria-label":a.name},u,{onClick:h,class:f}),[p.createVNode(gy,{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=JP,cc.setTwoToneColor=PS;const Fo=cc;var sL={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 lL=sL;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){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 by=function(e,t){var o=FS({},e,t.attrs);return p.createVNode(Fo,FS({},o,{icon:lL}),null)};by.displayName="AppstoreAddOutlined",by.inheritAttrs=!1;const yy=by;var dL={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 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 vy=function(e,t){var o=NS({},e,t.attrs);return p.createVNode(Fo,NS({},o,{icon:hL}),null)};vy.displayName="CaretDownOutlined",vy.inheritAttrs=!1;const DS=vy;var fL={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 pL=fL;function HS(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=HS({},e,t.attrs);return p.createVNode(Fo,HS({},o,{icon:pL}),null)};wy.displayName="CaretRightOutlined",wy.inheritAttrs=!1;const zS=wy;var mL={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 bL=mL;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){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=jS({},e,t.attrs);return p.createVNode(Fo,jS({},o,{icon:bL}),null)};Cy.displayName="CloseOutlined",Cy.inheritAttrs=!1;const ih=Cy;var vL={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 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(Fo,VS({},o,{icon:wL}),null)};xy.displayName="CodeOutlined",xy.inheritAttrs=!1;const xL=xy;var _L={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 SL=_L;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){AL(n,i,t[i])})}return n}function AL(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(Fo,WS({},o,{icon:SL}),null)};_y.displayName="CopyOutlined",_y.inheritAttrs=!1;const TL=_y;var kL={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 ML=kL;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){BL(n,i,t[i])})}return n}function BL(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(Fo,$S({},o,{icon:ML}),null)};Sy.displayName="DeleteOutlined",Sy.inheritAttrs=!1;const Ay=Sy;var RL={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 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 Ty=function(e,t){var o=US({},e,t.attrs);return p.createVNode(Fo,US({},o,{icon:EL}),null)};Ty.displayName="DoubleRightOutlined",Ty.inheritAttrs=!1;const PL=Ty;var LL={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 IL=LL;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){FL(n,i,t[i])})}return n}function FL(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(Fo,GS({},o,{icon:IL}),null)};ky.displayName="InfoCircleOutlined",ky.inheritAttrs=!1;const NL=ky;var DL={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 HL=DL;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){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 My=function(e,t){var o=KS({},e,t.attrs);return p.createVNode(Fo,KS({},o,{icon:HL}),null)};My.displayName="LoadingOutlined",My.inheritAttrs=!1;const jL=My;var VL={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 WL=VL;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){$L(n,i,t[i])})}return n}function $L(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(Fo,YS({},o,{icon:WL}),null)};By.displayName="MenuOutlined",By.inheritAttrs=!1;const Ry=By;var UL={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 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 Ey=function(e,t){var o=XS({},e,t.attrs);return p.createVNode(Fo,XS({},o,{icon:GL}),null)};Ey.displayName="MinusCircleOutlined",Ey.inheritAttrs=!1;const YL=Ey;var XL={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 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 Oy=function(e,t){var o=qS({},e,t.attrs);return p.createVNode(Fo,qS({},o,{icon:qL}),null)};Oy.displayName="PlusCircleOutlined",Oy.inheritAttrs=!1;const JL=Oy;var QL={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 eI=QL;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){tI(n,i,t[i])})}return n}function tI(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(Fo,ZS({},o,{icon:eI}),null)};Py.displayName="PlusOutlined",Py.inheritAttrs=!1;const nI=Py;var oI={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 iI=oI;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){rI(n,i,t[i])})}return n}function rI(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(Fo,JS({},o,{icon:iI}),null)};Ly.displayName="QuestionCircleOutlined",Ly.inheritAttrs=!1;const aI=Ly;var sI={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 lI=sI;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){cI(n,i,t[i])})}return n}function cI(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(Fo,QS({},o,{icon:lI}),null)};Iy.displayName="ReloadOutlined",Iy.inheritAttrs=!1;const dI=Iy;var hI={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 uI=hI;function e3(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){fI(n,i,t[i])})}return n}function fI(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=e3({},e,t.attrs);return p.createVNode(Fo,e3({},o,{icon:uI}),null)};Fy.displayName="SettingOutlined",Fy.inheritAttrs=!1;const pI=Fy,gI=p.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:zS,CaretDownOutlined:DS,LoadingOutlined:jL,Draggable:ma,ATooltip:Te.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 x;const o=(x=window==null?void 0:window.config)==null?void 0:x.pageId,i=p.inject(li),r=p.unref(p.inject(ci)),a=p.inject("setItemDisabled",S=>!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,S=>{n.isSub&&(S==null||S.forEach(O=>{var B;O!=null&&O.isLeaf||(B=O.dataViewColumns)==null||B.forEach(R=>{R.show=!0,R.edit=!1,R.title&&(R.label=R.title)})}),s.value=S)},{deep:!0,immediate:!0});const f=()=>{var S;n.isSub||(S=p.unref(l))==null||S.removeEventListener("scroll",v)},g=async S=>{var R;if(p.unref(d))return;const O=n.graphicConfig?n.graphicConfig.dataSourceId:"";d.value=!0;const B={source:n.source,pageId:o,dataSourceId:O,indexName:h.value};S?(S.loading=!0,B.indexTypeGuid=S.indexTypeGuid,B.isLeaf=S.isLeaf):c&&(B.queryRequest={pageSize:c.pageSize,pageNum:c.currentPage});try{const L=await i.post(`${Io}/diagram/sourceList`,B,{headers:{Authentication:r,operateContext:"ygt"}}),{success:D,data:F={}}=L.data;if(D){const{rows:E=[],total:P=0}=F;E==null||E.forEach(T=>{var _;(S==null?void 0:S.isLeaf)==="1"||n.graphicConfig.dataSourceId?(_=T.dataViewColumns)==null||_.forEach(A=>{A.show=!0,A.edit=!1,A.title&&(A.label=A.title)}):T.show=!1}),S?(S.children=E,S.show=!0,E!=null&&E.length||(S.noData=!0)):(s.value=p.unref(s).concat(E),c.totalResult=+P,((R=p.unref(s))==null?void 0:R.length)>=P&&f())}S&&(S.loading=!1),d.value=!1}catch{S&&(S.loading=!1),d.value=!1}},b=async S=>{const O=s.value[S],{children:B=[]}=O;B!=null&&B.length?O.show=!O.show:!O.noData&&O.isLeaf?g(O):O.noData&&(O.show=!O.show)},m=(S,O)=>{e("onDragStart",S,O)},y=S=>{S.show=!S.show},v=S=>{S.target.scrollTop+S.target.clientHeight+20>=S.target.scrollHeight&&(c.currentPage++,g())},w=async()=>{await g(),p.nextTick(async()=>{p.unref(l).scrollHeight===p.unref(l).clientHeight&&c.totalResult>p.unref(s).length&&(c.currentPage++,w())})},C=async S=>{var O;f(),u.value=!0,c.currentPage=1,c.totalResult=0,s.value=[],h.value=S,await w(),u.value=!1,(O=p.unref(l))==null||O.addEventListener("scroll",v)};return p.onMounted(async()=>{var S;n.isSub||(w(),(S=p.unref(l))==null||S.addEventListener("scroll",v))}),p.onUnmounted(()=>{f()}),t({handleSearch:C}),{columnRef:l,sourceList:s,searchLoading:u,onToggleGroup:b,onToggleSource:y,setItemDisabled:a,onDragStart:m,mapDataSetScope:lS,mapScope:sS,getLoadType:cS,getUseType:dS,getSourceType:hS}}}),ime="",rme="",mI={key:0,class:"no-data"},bI={class:"column-item"},yI=["onClick"],vI={key:3,class:"item-name"},wI={key:0},CI={class:"column-item"},xI={key:0},_I={key:1},SI={key:2},AI={key:3},TI=["onClick"],kI={class:"column-child-item"},MI={class:"field"},BI={class:"column-child-item-name"};function RI(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",mI,"暂无数据")):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",bI,[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",vI,p.toDisplayString(g.indexTypeCode+"."+g.indexTypeName),1)):p.createCommentVNode("",!0)],8,yI)]),g.show?(p.openBlock(),p.createElementBlock("div",wI,[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",CI,[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",xI,"数据使用系统:"+p.toDisplayString(n.getUseType(g.useType)),1)):p.createCommentVNode("",!0),g.systemSource?(p.openBlock(),p.createElementBlock("div",_I,"制度出处:"+p.toDisplayString(g.systemSource),1)):p.createCommentVNode("",!0),g.dataTo?(p.openBlock(),p.createElementBlock("div",SI,"数据来源:"+p.toDisplayString(n.getSourceType(g.dataTo)),1)):p.createCommentVNode("",!0),g.meaning?(p.openBlock(),p.createElementBlock("div",AI,"指标含义:"+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,TI)]),_:2},1024)]),g.show?(p.openBlock(),p.createBlock(h,{key:0,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),onStart:b=>n.onDragStart(b,g)},{item:p.withCtx(({element:b})=>[p.createElementVNode("div",kI,[p.createElementVNode("span",MI," 【"+p.toDisplayString(b.scope==="FIELD"?n.mapDataSetScope(b.genericType):n.mapScope(b.scope))+"】 ",1),p.createElementVNode("span",BI,p.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):p.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const EI=Vt(gI,[["render",RI],["__scopeId","data-v-c758f876"]]),OI=p.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:zS,CaretDownOutlined:DS,IndSourceList:EI,AInputSearch:Te.InputSearch,ASpin:Te.Spin,APagination:Te.Pagination,Draggable:ma,ATooltip:Te.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(`${Io}/diagram/sourceList`,S,{headers:{Authentication:t,operateContext:"ygt"}});s.value=!1;const{success:B,data:R={}}=O.data;if(B){const{rows:L=[],total:D=0}=R;L==null||L.forEach(F=>{var E;F.show=!1,(E=F.dataViewColumns)==null||E.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)})}),a.value=L,c.totalResult=+D}}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=it.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 B in p.unref(y))if(Object.prototype.hasOwnProperty.call(p.unref(y),B)&&S.includes(B)){const R=p.unref(y)[B];Array.isArray(R)&&(O=O.concat(R))}return O}),w=(S=[])=>{let O=!1;if(p.unref(d)==="EDV_DATA_SET"){for(const B of p.unref(v))if(!S.find(L=>L.parentId===B.parentId)){O=!0;break}}else for(const B of p.unref(v))if(!S.find(L=>L.typeGuid===B.typeGuid)){O=!0;break}return O};return p.provide("setItemDisabled",w),{dataSourceList:a,dataSourceLoading:s,pagination:c,onToggleGroup:f,mapScope:sS,mapDataSetScope:lS,onSearch:g,onChange:b,source:d,onPaginationChange:m,searchText:h,setItemDisabled:w,onDragStart:(S,O)=>{const B=O.dataViewColumns[S.oldIndex];let R={};O.dataSetParams&&(R=O.dataSetParams),B&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...B,dataTo:O.dataTo,dataSetParams:R,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:hS,getLoadType:cS,getUseType:dS,graphicConfig:y,indSourceRef:l}}}),ame="",PI={class:"data-source-list"},LI={class:"columns"},II={class:"column-item"},FI={key:0},NI={key:1},DI={key:2},HI=["onClick"],zI={key:0},jI={class:"column-child-item"},VI={class:"column-child-item-name"};function WI(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",PI,[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",LI,[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",II,[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",FI,"数据使用系统:"+p.toDisplayString(n.getUseType(g.useType)),1)):p.createCommentVNode("",!0),g.systemSource?(p.openBlock(),p.createElementBlock("div",NI,"制度出处:"+p.toDisplayString(g.systemSource),1)):p.createCommentVNode("",!0),g.meaning?(p.openBlock(),p.createElementBlock("div",DI,"指标含义:"+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,HI)]),_:2},1024)]),g.show?(p.openBlock(),p.createElementBlock("div",zI,[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",jI,[p.createTextVNode(" 【"+p.toDisplayString(m.scope==="FIELD"?n.mapDataSetScope(m.genericType):n.mapScope(m.scope))+"】 ",1),p.createElementVNode("span",VI,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 $I=Vt(OI,[["render",WI],["__scopeId","data-v-0a17825c"]]),UI=p.defineComponent({name:"DataList",components:{DataSourceList:$I,DataViewList:mP},setup(){return{source:p.inject(rs)}}});function GI(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 KI=Object.freeze(Object.defineProperty({__proto__:null,default:Vt(UI,[["render",GI]])},Symbol.toStringTag,{value:"Module"})),t3={mounted(n){n.focus()}},YI=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:Te.Modal,AButton:Te.Button,ASelect:Te.Select,ASelectOption:Te.SelectOption,DeleteOutlined:Ay},setup(n,{expose:e}){var D;const t=(D=window==null?void 0:window.config)==null?void 0:D.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),P=[];return E.forEach(T=>{P.find(_=>_.name===T.name)||P.push(T)}),[{label:"组件值",name:"component-value"},...P]},b=async()=>{try{const F=await o.post(`${Io}/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:P=[]}=F.data;E&&(d.value=P==null?void 0:P.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:P,name:T}=n.item;p.unref(h)==="2"?E.sort={label:P,columnName:T,type:"CUSTOM",customOrderColumns:p.unref(d)}:p.unref(h)==="1"&&((A=p.unref(u))!=null&&A.length?E.sort=it.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 P;const{sort:E}=F;E?Array.isArray(E)?(h.value=((P=E[0])==null?void 0:P.type)==="CUSTOM"?"2":"1",p.unref(h)==="1"?u.value=it.cloneDeep(E):u.value=[]):(h.value=(E==null?void 0:E.type)==="CUSTOM"?"2":"1",p.unref(h)==="1"?u.value=[it.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,P;if(F){const T=(P=(E=n.item)==null?void 0:E.sort)==null?void 0:P.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 P;const F=((P=p.unref(a)[n.type])==null?void 0:P.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(P=>P.columnName===F);if(E){F==="component-value"?E.label="":E.componentId="";const P=n.sortList.find(T=>T.name===F);P&&(E.label=P.label,P.defaultCode?E.defaultCode=P.defaultCode:delete E.defaultCode)}}}}}),lme="",XI={class:"button-wrapper"},qI={class:"list-wrapper"},ZI={class:"button-wrapper"},JI={class:"sort-item"};function QI(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",XI,[p.createVNode(a,{primary:"",onClick:n.onAddSort},{default:p.withCtx(()=>[p.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),p.createElementVNode("div",qI,[(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",ZI,[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",JI,p.toDisplayString(g),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const eF=Vt(YI,[["render",QI],["__scopeId","data-v-3eb2d44e"]]),tF=p.defineComponent({name:"CustomGroupModal",directives:{focus:t3},components:{CloseOutlined:ih,AModal:Te.Modal,ASelect:Te.Select,ASelectOption:Te.SelectOption,AButton:Te.Button,AInput:Te.Input,ACheckbox:Te.Checkbox,ACollapse:Te.Collapse,ACollapsePanel:Te.CollapsePanel,ATag:Te.Tag,ACheckableTag:Te.CheckableTag},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},setup(n,{expose:e}){var I;const t=p.inject(li),o=(I=window==null?void 0:window.config)==null?void 0:I.pageId,i=p.unref(p.inject(ci));let r=!1;const a=p.computed(()=>`自定义分组-${n.item.label}`),s=p.ref(null),l=p.ref(null),c=p.ref([]),d=p.ref([]),h=p.computed(()=>{const N=p.unref(d).map(H=>H.title);return new Set(N)}),u=p.ref([]);p.watch(()=>p.unref(d).length,N=>{u.value=new Array(N).fill(!1)});const f=p.computed(()=>{let N=0;return p.unref(d).forEach(H=>{var W;(W=H.data)==null||W.forEach($=>{$.checked&&N++})}),N}),g=()=>{const N=p.unref(s);if(!N){Te.message.error("创建分组名不能空");return}p.unref(h).has(N)?Te.message.error("分组名已存在,请重新命名"):(p.unref(d).push({title:N,data:[]}),r=!0,s.value="")},b=()=>{var W,$;const N=p.unref(l);if(!N){Te.message.error("值名称不能空");return}let H=!0;if((W=p.unref(d))!=null&&W.length)for(const K of p.unref(d)){if(($=K==null?void 0:K.data)!=null&&$.length){for(const V of K.data)if(V.label===N){H=!1;break}}if(!H)break}H?(p.unref(d)[0].data.push({label:N,checked:!1}),r=!0,l.value=""):Te.message.error("名称已存在,请重新命名")},m=N=>{p.unref(d).splice(N,1),r=!0},y=p.ref(null),v=()=>{if(p.unref(f)===0){Te.message.error("当前移入分组已选个数为0");return}const N=p.unref(y);if(N==null){Te.message.error("请选择移入分组");return}if(!p.unref(d)[N]){Te.message.error("移入分组不存在,请重新选择");return}const H=[],W=p.unref(d).length;for(let $=0;$<W;$++){const K=p.unref(d)[$];p.unref(d)[$].data=K.data.filter(V=>(V.checked&&H.push({...V,checked:!1}),!V.checked))}p.unref(d)[N].data=[...H,...p.unref(d)[N].data],r=!0},w=N=>{p.unref(u)[N]=!0},C=N=>{p.unref(u)[N]=!1},x=(N,H)=>{const W=N.target.value;p.unref(h).has(W)&&Te.message.error("组名不能相同,请修改"),p.unref(d)[H].title=W,r=!0},S=p.inject(Kn),O=p.inject($o),B=p.computed(()=>p.unref(S).source),R=p.computed(()=>p.unref(S).dataViewId),L=p.ref(!1),D=()=>{var G,z;const N=p.unref(d);let H="";p.unref(L)&&(H=(G=N[0])==null?void 0:G.title);const W=N==null?void 0:N.length,$={};for(let j=1;j<W;j++){const U=N[j]||{},{title:Y,data:J}=U;$[Y]=(J==null?void 0:J.map(X=>X.label))||[]}const K=((z=p.unref(S)[n.type])==null?void 0:z.slice())||[],V=K[n.index];V.customGroup={groupInfoMap:$,otherGroupName:H},O({[n.type]:K})},F=p.ref(!1),E=()=>{F.value=!0},P=()=>{F.value=!1},T=()=>{P(),r&&D(),r=!1},_=()=>{r=!0},A=new Set,M=async()=>{const N=n.item.customGroup||{},H=N.otherGroupName,W=N.groupInfoMap;(H===""||H==null)&&(L.value=!1),p.unref(d)[0]={title:H||"未分组",data:[]};let $=1;for(const K in W)if(Object.prototype.hasOwnProperty.call(W,K)){const G=W[K].map(z=>(A.add(z),{label:z,checked:!1}));p.unref(d)[$]={title:K,data:G},$++}await k()},k=async()=>{var N;try{const H=await t.post(`${Io}/diagram/groupvalue`,{source:p.unref(B),dataViewId:p.unref(R),groupColumn:n.item.name,hrpIndexTypeGuid:n.item.typeGuid,pageId:o,pageFlag:!0,edvDataSetId:p.unref(S).edvDataSetId||""},{headers:{Authentication:i,operateContext:"ygt"}}),{success:W,data:$=[]}=H.data;if(W){const K=[];(N=$==null?void 0:$.slice(0,200))==null||N.forEach(V=>{A.has(V)||K.push({label:V,checked:!1})}),p.unref(d)[0].data=K}}catch(H){console.error(H)}};return p.watch(F,N=>{N&&M(),window.changeShowTable&&window.changeShowTable(!N)},{flush:"post"}),e({showModal:E}),{visible:F,title:a,activeKey:c,customGroupList:d,onCancel:T,useOtherGroup:L,selectCount:f,createGroupTitle:s,createValueTitle:l,onAddGroup:g,onDeleteGroup:m,onMoveInGroup:v,selectGroupIndex:y,onEditTitle:w,onTitleChange:x,onFinishEditTitle:C,onUseOtherGroup:_,onAddValue:b,customGroupEditTitleList:u}}}),cme="",dme="",nF={class:"custom-group-header"},oF={class:"move-and-create"},iF={class:"select-tip"},rF={class:"select-count"},aF={style:{display:"flex","align-items":"center"}},sF={class:"create-group"},lF={class:"create-group",style:{"margin-left":"40px"}},cF={class:"custom-group-content"},dF=["onClick"],hF={class:"extra"},uF={class:"custom-group-list"},fF={class:"text"};function pF(n,e,t,o,i,r){const a=p.resolveComponent("a-select-option"),s=p.resolveComponent("a-select"),l=p.resolveComponent("a-button"),c=p.resolveComponent("a-checkbox"),d=p.resolveComponent("a-input"),h=p.resolveComponent("a-tag"),u=p.resolveComponent("close-outlined"),f=p.resolveComponent("a-checkable-tag"),g=p.resolveComponent("a-collapse-panel"),b=p.resolveComponent("a-collapse"),m=p.resolveComponent("a-modal"),y=p.resolveDirective("focus");return p.openBlock(),p.createBlock(m,{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",nF,[p.createElementVNode("div",oF,[p.createElementVNode("div",null,[p.createElementVNode("span",iF,[p.createTextVNode(" 已选"),p.createElementVNode("span",rF,p.toDisplayString(n.selectCount),1),p.createTextVNode("个 ")]),p.createVNode(s,{value:n.selectGroupIndex,"onUpdate:value":e[0]||(e[0]=v=>n.selectGroupIndex=v),class:"select-group",placeholder:"请选择移入分组"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.customGroupList,(v,w)=>(p.openBlock(),p.createBlock(a,{key:w},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(v.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),p.createVNode(l,{onClick:n.onMoveInGroup},{default:p.withCtx(()=>[p.createTextVNode("移入分组")]),_:1},8,["onClick"])]),p.createVNode(c,{checked:n.useOtherGroup,"onUpdate:checked":e[1]||(e[1]=v=>n.useOtherGroup=v),onChange:n.onUseOtherGroup},{default:p.withCtx(()=>[p.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])]),p.createElementVNode("div",aF,[p.createElementVNode("div",sF,[p.createTextVNode(" 创建分组: "),p.createVNode(d,{class:"create-group-name",value:n.createGroupTitle,"onUpdate:value":e[2]||(e[2]=v=>n.createGroupTitle=v),placeholder:"请输入创建分组名",onPressEnter:n.onAddGroup},null,8,["value","onPressEnter"])]),p.createElementVNode("div",lF,[p.createTextVNode(" 新建值: "),p.createVNode(d,{class:"create-group-name",value:n.createValueTitle,"onUpdate:value":e[3]||(e[3]=v=>n.createValueTitle=v),placeholder:"请输入名称",onPressEnter:n.onAddValue},null,8,["value","onPressEnter"])])])]),p.createElementVNode("div",cF,[p.createVNode(b,{activeKey:n.activeKey,"onUpdate:activeKey":e[4]||(e[4]=v=>n.activeKey=v),ghost:""},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.customGroupList,(v,w)=>(p.openBlock(),p.createBlock(g,{key:w},{header:p.withCtx(()=>[n.customGroupEditTitleList[w]?p.withDirectives((p.openBlock(),p.createBlock(d,{key:1,class:"edit-title-input",value:v.title,size:"small",onChange:C=>n.onTitleChange(C,w),onBlur:C=>n.onFinishEditTitle(w),onPressEnter:C=>n.onFinishEditTitle(w)},null,8,["value","onChange","onBlur","onPressEnter"])),[[y]]):(p.openBlock(),p.createElementBlock("div",{key:0,onClick:p.withModifiers(C=>n.onEditTitle(w),["prevent","stop"])},p.toDisplayString(v.title),9,dF))]),extra:p.withCtx(()=>[p.createElementVNode("div",hF,[w===0&&n.useOtherGroup?(p.openBlock(),p.createBlock(h,{key:0,class:"tag",color:"blue"},{default:p.withCtx(()=>[p.createTextVNode(" 其他组 ")]),_:1})):p.createCommentVNode("",!0),w!==0?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(h,{class:"tag",color:"green"},{default:p.withCtx(()=>[p.createTextVNode(" 自定义组 ")]),_:1}),p.createVNode(u,{onClick:p.withModifiers(C=>n.onDeleteGroup(w),["prevent","stop"])},null,8,["onClick"])],64)):p.createCommentVNode("",!0)])]),default:p.withCtx(()=>[p.createElementVNode("div",uF,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(v.data,(C,x)=>(p.openBlock(),p.createBlock(f,{color:"red",checked:C.checked,"onUpdate:checked":S=>C.checked=S,class:"custom-group",key:x},{default:p.withCtx(()=>[p.createElementVNode("span",fF,p.toDisplayString(C.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const gF=Vt(tF,[["render",pF],["__scopeId","data-v-8e480e07"]]);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 mF=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ny={},bF={get exports(){return Ny},set exports(n){Ny=n}};(function(n,e){(function(t,o){n.exports=o()})(mF,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)}}})})(bF);const yF=Ny;Cn.extend(yF);const vF=p.defineComponent({name:"Condition",components:{CloseOutlined:ih,AppstoreAddOutlined:yy,ASelect:Te.Select,AInput:Te.Input,ADatePicker:Te.DatePicker,AButton:Te.Button,ADropdown:Te.Dropdown,AMenu:Te.Menu,AMenuItem:Te.MenuItem,APopover:Te.Popover,ATabs:Te.Tabs,ATabPane:Te.TabPane,ARadioGroup:Te.RadioGroup,ARadio:Te.Radio,AInputNumber:Te.InputNumber,ASelectOption:Te.SelectOption,MenuOutlined:Ry},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,re,ne,he,ue,me,Se,ke,Be,He,De,Ue,Ge,ze;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(_2),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:(re=n.data)==null?void 0:re.fieldType,rule:(ne=n.data)==null?void 0:ne.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:((He=n.data)==null?void 0:He.componentId)||"",useCurrentTime:!!((De=n.data)!=null&&De.useCurrentTime),keyValue:(Ue=n.data)==null?void 0:Ue.keyValue,modelKey:(Ge=n.data)==null?void 0:Ge.modelKey,prop:(ze=n.data)==null?void 0:ze.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([]),B=p.ref(!1),R=p.computed(()=>x.value.fieldType==="DATE"),L=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:D,deleteCondition:F,addCondition:E}=p.inject(Tf,{updateCondition:(de,ce,ge)=>{},deleteCondition:(de,ce)=>{},addCondition:(de,ce,ge)=>{}}),P=()=>{F(n.index,n.path)};p.watch(x,de=>{const ce=it.cloneDeep(de);de.fieldType==="DATE"&&de.dataType!=="component"&&de.fieldValue&&(ce.fieldValue=de.fieldValue.format(de.dateFormat)),D(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(L).find(rt=>rt.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"}]}),M=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(M)||(de={...de,position:"absolute",right:"11px",top:"9px"}),de}),I=p.ref([]),N=async()=>{var de;if(!(p.unref(I).length>0))try{const ce=await o.post(`${Io}/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)&&N()},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,rt,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=((rt=n.data)==null?void 0:rt.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)&&N();const{source:Me}=p.unref(t);Me==="EDV_DATA_SET"&&await o.get(`${Io}/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=ie(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]),ie(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)}},Y=p.computed(()=>{let de=!1;const{calcWays:ce=[]}=p.unref(x),ge=ce[0];return ge&&parseFloat(ge)!==0&&(de=!0),de}),J=(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"]),B.value=!1},X=()=>{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}`,B.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 ie(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 ae=(de,ce)=>ce.label.toLowerCase().indexOf(de.toLowerCase())>=0,Z=p.computed(()=>p.unref(R)||!["IN","NOT_IN"].includes(p.unref(x).rule));return{fieldOptions:L,ruleOptions:A,onFieldChange:T,condition:x,valueOptions:I,onRuleChange:H,onDataTypeChange:W,onFieldValueSelectChange:K,fieldValues:$,onDelete:P,isDateType:R,formatList:b,tabDateList:y,compareList:v,menuRule:w,dateBtnLabel:M,downIconStyle:k,popoverVisible:B,dateRadioStyle:g,showTime:f,controlList:c,keyNameOptions:d,dataTypeList:C,customTabData:m,isUseCurrentTime:s,currentTime:l,isShowCustomDataType:Z,handleMenuClick:V,changeTabInitDate:G,changeRadioValue:z,getFieldValue:j,blurCompare:U,okDatePickConfig:J,onChangeComponent:_,filterOption:ae,okCustomConfig:X,clickConditionMenu:({key:de})=>{E(n.path,n.index,de==="2"?"||":"&&")},dataSetfieldOptions:O,isConfigFlag:Y}}}),hme="",ume="",wF={class:"condition"},CF=["title"],xF={class:"rule"},_F={class:"data-type"},SF={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},AF={class:"popover-content-wrap"},TF={key:0,class:"use-current-time"},kF={class:"tabFilterRadio"},MF={key:0},BF={key:1},RF={style:{"margin-left":"10px"}},EF={style:{"margin-left":"10px"}},OF={style:{position:"absolute",bottom:"10px"}},PF={style:{display:"flex"}},LF={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function IF(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",wF,[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,(B,R)=>(p.openBlock(),p.createBlock(a,{key:R,value:B.value},{default:p.withCtx(()=>[p.createElementVNode("span",{title:B.label},p.toDisplayString(B.label),9,CF)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),p.createElementVNode("div",xF,[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",_F,[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,(B,R)=>(p.openBlock(),p.createBlock(a,{key:R,value:B.value},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(B.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])],512),[[p.vShow,n.isShowCustomDataType]]),n.isDateType?(p.openBlock(),p.createElementBlock("div",SF,[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]=B=>n.condition.fieldValue=B),"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]=B=>n.condition.fieldValue=B),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]=B=>n.condition.modelKey=B),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),p.createVNode(c,{class:"field-value",value:n.condition.prop,"onUpdate:value":e[3]||(e[3]=B=>n.condition.prop=B),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]=B=>n.condition.dateFormat=B),"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]=B=>n.condition.fieldValue=B),"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]=B=>n.condition.fieldValue=B)},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]=B=>n.condition.modelKey=B),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),p.createVNode(c,{class:"field-value",value:n.condition.prop,"onUpdate:value":e[8]||(e[8]=B=>n.condition.prop=B),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]=B=>{n.popoverVisible=!0})},null,8,["style"])):p.createCommentVNode("",!0),p.createVNode(v,{visible:n.popoverVisible,"onUpdate:visible":e[16]||(e[16]=B=>n.popoverVisible=B),trigger:"click",placement:"bottomRight"},{content:p.withCtx(()=>[p.createElementVNode("div",AF,[n.condition.dataType!=="component"?(p.openBlock(),p.createElementBlock("div",TF,[p.createVNode(h,{checked:n.isUseCurrentTime,"onUpdate:checked":e[10]||(e[10]=B=>n.isUseCurrentTime=B)},{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,(B,R)=>(p.openBlock(),p.createBlock(m,{key:R,tab:B.label},{default:p.withCtx(()=>[p.createElementVNode("div",kF,[p.createVNode(g,{value:B.radioValue,"onUpdate:value":L=>B.radioValue=L,onChange:L=>n.changeRadioValue(L,B)},{default:p.withCtx(()=>[n.showTime?(p.openBlock(),p.createElementBlock("div",MF,"相对当前时间:"+p.toDisplayString(B.value),1)):(p.openBlock(),p.createElementBlock("div",BF,"相对当前时间:"+p.toDisplayString(n.getFieldValue(R)),1)),p.createVNode(f,{style:p.normalizeStyle(n.dateRadioStyle),value:"1"},{default:p.withCtx(()=>[p.createVNode(u,{value:B.beforeNum,"onUpdate:value":L=>B.beforeNum=L,min:0,onBlur:L=>n.blurCompare(L,B,"-","1")},null,8,["value","onUpdate:value","onBlur"]),p.createElementVNode("span",RF,p.toDisplayString(B.beforeLabel),1)]),_:2},1032,["style"]),p.createVNode(f,{style:p.normalizeStyle(n.dateRadioStyle),value:"2"},{default:p.withCtx(()=>[p.createVNode(u,{value:B.afterNum,"onUpdate:value":L=>B.afterNum=L,min:0,onBlur:L=>n.blurCompare(L,B,"+","2")},null,8,["value","onUpdate:value","onBlur"]),p.createElementVNode("span",EF,p.toDisplayString(B.afterLabel),1)]),_:2},1032,["style"]),B.beforeText?(p.openBlock(),p.createBlock(f,{key:2,style:p.normalizeStyle(n.dateRadioStyle),value:"3"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(B.beforeText),1)]),_:2},1032,["style"])):p.createCommentVNode("",!0),B.afterText?(p.openBlock(),p.createBlock(f,{key:3,style:p.normalizeStyle(n.dateRadioStyle),value:"4"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(B.afterText),1)]),_:2},1032,["style"])):p.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),p.createElementVNode("div",OF,[p.createVNode(b,{style:{"margin-right":"12px"},onClick:e[11]||(e[11]=L=>n.popoverVisible=!1)},{default:p.withCtx(()=>[p.createTextVNode("取消")]),_:1}),p.createVNode(b,{onClick:L=>n.okDatePickConfig(B,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",PF,[p.createVNode(s,{value:n.customTabData.expression,"onUpdate:value":e[12]||(e[12]=B=>n.customTabData.expression=B),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]=B=>n.customTabData.unit=B),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]=B=>n.customTabData.around=B)},{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",LF,[p.createVNode(b,{style:{"margin-right":"12px"},onClick:e[15]||(e[15]=B=>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 FF=Vt(vF,[["render",IF],["__scopeId","data-v-5904964a"]]),NF=p.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:FF}}),fme="",DF={key:0,class:"condition-list"},HF={key:0,class:"condition-container"},zF={key:0,class:"condition-text"},jF={key:1,class:"condition-text"},VF={class:"conditions"};function WF(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",DF,[(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",HF,[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",VF,[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 $F=Vt(NF,[["render",WF],["__scopeId","data-v-553c1496"]]),UF=p.defineComponent({name:"TruncationList",props:{list:{type:Array,default:()=>[]}},components:{ASelect:Te.Select,AInput:Te.Input,AInputNumber:Te.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=it.cloneDeep(n.list):o.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:t,truncationList:o,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),pme="",n3=n=>(p.pushScopeId("data-v-f543c690"),n=n(),p.popScopeId(),n),GF={class:"truncations"},KF={class:"rule"},YF={class:"field-value"},XF={class:"field-value"},qF=n3(()=>p.createElementVNode("div",{class:"text"},"将其余项设为",-1)),ZF=n3(()=>p.createElementVNode("div",{class:"text"},"分组",-1)),JF=["onClick"];function QF(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",GF,[(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",KF,[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",YF,[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",XF,[qF,p.createVNode(l,{value:c.name,"onUpdate:value":h=>c.name=h,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),ZF]),p.createElementVNode("div",{class:"clear-truncation",onClick:h=>n.clearData(c)},"清空",8,JF)]))),128))])}const eN=Vt(UF,[["render",QF],["__scopeId","data-v-f543c690"]]),tN=p.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:$F,TruncationList:eN,AModal:Te.Modal,AButton:Te.Button,ATabs:Te.Tabs,ATabPane:Te.TabPane},setup(n,{expose:e}){var P;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,M,k;if(T){if(Array.isArray((_=n.item)==null?void 0:_.conditions)){const I=it.cloneDeep(((A=n.item)==null?void 0:A.conditions)||[]);g(I),d.value=I}Array.isArray((M=n.item)==null?void 0:M.truncations)?h.value=it.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 M=p.unref(d);const k=A.split("-");if(k!=null&&k.length)for(const N of k)if(M[N])M=(I=M[N])==null?void 0:I.conditions;else break;Array.isArray(M)&&M[_]&&(M[_]=T)},deleteCondition(T,_){var k,I,N;b=!0;let A=p.unref(d);const M=_.split("-");if(M!=null&&M.length){for(const H of M)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(M.length>0){const H=M.length-1,W=M[H],$=M.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=(N=K[G])==null?void 0:N.conditions;else break;if(V===A[0].join){if(Array.isArray(A[0].conditions)){const G=it.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 N,H;b=!0;let M=p.unref(d),k="";const I=T.split("-");if(I!=null&&I.length){for(const W of I)if(M[W])k=(N=M[W])==null?void 0:N.join,M=(H=M[W])==null?void 0:H.conditions;else break;if(k===A)M.splice(_+1,0,{keyValue:Yn()});else{const W=it.cloneDeep(M[_]);M[_]={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:M="",id:k="",type:I}=A;I==="ecanRangePicker"?T.push({value:`${k}-startTime`,label:`${M||k}-开始时间值`,keyName:`${M||k}-startTime`},{value:`${k}-endTime`,label:`${M||k}-结束时间值`,keyName:`${M||k}-endTime`}):T.push({value:k,label:`${M||k}`,keyName:`${M||k}`})}),T}),w=()=>{var N,H,W;const T=ps(((N=p.unref(i))==null?void 0:N.controlList)||[]),_=((H=p.unref(i)[n.type])==null?void 0:H.slice())||[],A=ps(it.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 M=ps(p.unref(d));for(const $ of M)if($.dataType==="component"&&$.fieldValue){const K=p.unref(v).find(V=>V.value===$.fieldValue);K&&($.fieldValue=K.keyName)}const k=A.filter($=>!M.find(K=>K.componentId===$.componentId)).filter($=>!T.find(K=>K.id===$.componentId)),I=M.filter($=>!A.find(K=>K.componentId===$.componentId));C(k,I),r({[n.type]:_,sqlConditions:iy({...p.unref(i),[n.type]:_},p.unref(a))})};function C(T,_){var M;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(N=>N.id===k.componentId);if(I){const{type:N,id:H,events:W=[]}=I,$=Xf(N);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:(M=p.unref(l))==null?void 0:M.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()},B=()=>{S()},R=p.inject(li),L=p.unref(p.inject(ci)),D=(P=window==null?void 0:window.config)==null?void 0:P.pageId,F=p.ref([]);p.provide(_2,F);const E=async T=>{var _;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(n.type))try{const{id:A,indexCode:M}=T,k=await R.post(`${Io}/diagram/hrpIndexWithComplex`,{pageId:D,dataSourceId:p.unref(s),indexGuid:A,indexCode:M},{headers:{Authentication:L,operateContext:"ygt"}}),{success:I,data:N=[]}=k.data;I&&((_=N==null?void 0:N.dataViewColumns)!=null&&_.length)&&(F.value=N.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:B,handleTitle:o,conditionList:d,truncationList:h,addCondition:m,onUpdatetruncation:y,activeKey:t,source:f}}}),gme="",nN={class:"header"},oN={class:"header"};function iN(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",nN,[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",oN,[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 rN=Vt(tN,[["render",iN],["__scopeId","data-v-498b4331"]]),aN=p.defineComponent({name:"ConfigName",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{AInput:Te.Input,AModal:Te.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="",sN=n=>(p.pushScopeId("data-v-de6a1755"),n=n(),p.popScopeId(),n),lN={class:"config-name"},cN=sN(()=>p.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function dN(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",lN,[cN,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 hN=Vt(aN,[["render",dN],["__scopeId","data-v-de6a1755"]]),uN=p.defineComponent({name:"SortByCpnt",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:Te.Select,AModal:Te.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=it.cloneDeep(v),l.value=it.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(B=>B.id===O)),w=p.unref(l).filter(O=>!d.includes(O)).filter(O=>!y.find(B=>B.id===O)),C=v.map(O=>({componentId:O,delete:!0})).concat(w.map(O=>({componentId:O,add:!0})));for(const O of C){const B=p.unref(r).find(R=>R.id===O.componentId);if(B){const{type:R,id:L,events:D=[]}=B,F=Xf(R);if(O.add)D.find(E=>{var P;return E.on===F&&E.target===((P=p.unref(a))==null?void 0:P.id)&&E.emit==="refreshData"})||s({id:L,events:[...D,{on:F,target:(S=p.unref(a))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(O.delete){const E=D.findIndex(P=>{var T;return P.on===F&&P.target===((T=p.unref(a))==null?void 0:T.id)&&P.emit==="refreshData"});E!==-1&&(D.splice(E,1),s({id:L,events:D}))}}}},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="",fN=n=>(p.pushScopeId("data-v-08af1ef8"),n=n(),p.popScopeId(),n),pN={class:"sort-by-cpnt"},gN=fN(()=>p.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function mN(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",pN,[gN,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 bN=Vt(uN,[["render",mN],["__scopeId","data-v-08af1ef8"]]),yN=p.defineComponent({name:"DimByCount",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:Te.Select,AModal:Te.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}}}),yme="",vN=n=>(p.pushScopeId("data-v-aa1c298e"),n=n(),p.popScopeId(),n),wN={class:"dim-by-count"},CN=vN(()=>p.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function xN(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",wN,[CN,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 _N=Vt(yN,[["render",xN],["__scopeId","data-v-aa1c298e"]]),Dy=(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:Dy(n,i.children)&&(t=Dy(n,i.children)))}return t},SN=p.defineComponent({name:"FormulaCalculation",props:{value:{type:String,default:""},item:{type:Object,default:()=>({})},mode:{type:String,default:"add"},type:{type:String,default:""}},components:{ARow:Te.Row,ACol:Te.Col,ATextarea:Te.Textarea,APopover:Te.Popover,AInputSearch:Te.InputSearch,ATree:Te.Tree,ARadioGroup:Te.RadioGroup,ARadioButton:Te.RadioButton,DoubleRightOutlined:PL},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 D;let L=p.unref(r).concat(p.unref(s)).concat(p.unref(l)).concat(p.unref(c));return n.type==="indexLibColumns"&&((D=p.unref(d))!=null&&D.length)&&(L=p.unref(c).concat(p.unref(d))),n.mode==="edit"?(L==null?void 0:L.filter(F=>{var E;return F.id!==((E=n.item)==null?void 0:E.id)}))||[]:L||[]}),u=p.computed(()=>a.value.filter(L=>!L.randomKey)),f=p.computed({get:()=>n.value||"",set:L=>{e("update:value",L),e("change",L)}}),g=p.ref("1"),b=p.ref(""),m=L=>{const D=document.getElementById("calTextArea");let F=f.value;if(document.selection){const E=document.selection.createRange();E.text=L}else if(typeof D.selectionStart=="number"&&typeof D.selectionEnd=="number"){const E=D.selectionStart,P=D.selectionEnd;let T=E;F=F.substring(0,E)+L+F.substring(P,F.length),T+=L.length,D.selectionStart=D.selectionEnd=T}else F+=L;f.value=F},y=["+","-","*","/","(",")"],v=(L,D)=>{let F="";switch(D){case"name":{F="${"+L+"}";break}case"function":{F=L+"()";break}default:F=L}m(F)},w=[],C=p.ref([]),x=p.ref(!0),S=p.ref([]),O=L=>{var D;for(const F of L)(D=F==null?void 0:F.children)!=null&&D.length?O(F.children):w.push({key:F.key,title:F.title})},B=async()=>{try{const L=await t.get(`${Io}/diagram/funcdescs`,{},{headers:{Authentication:o,operateContext:"ygt"}}),{success:D,data:F=[]}=L.data;D&&(F!=null&&F.length)&&(O(F),S.value=F)}catch(L){console.error(L)}},R=L=>{C.value=L,x.value=!1};return p.watch(b,L=>{const D=w.map(F=>F.title.indexOf(L)>-1?Dy(F.key,S.value):null).filter((F,E,P)=>F&&P.indexOf(F)===E);C.value=D,b.value=L,x.value=!0}),p.onMounted(()=>{B()}),{fieldList:h,varList:u,myValue:f,calculMethods:y,funcDescsData:S,searchFuncValue:b,expandedKeys:C,autoExpandParent:x,activeKey:g,selectedElem:v,onExpand:R}}}),vme="",wme="",o3=n=>(p.pushScopeId("data-v-ea364ea1"),n=n(),p.popScopeId(),n),AN={class:"formula-calculation"},TN={class:"field-area"},kN={style:{"text-align":"center",padding:"10px 0"}},MN=["onClick"],BN=["onClick"],RN={class:"cal_right_bottom"},EN={class:"cal_fu"},ON=["onClick"],PN={class:"function-wrap"},LN={class:"wrap-search"},IN={class:"tree-box"},FN=o3(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),NN=o3(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),DN={key:0},HN={style:{color:"#f50"}},zN={key:1},jN=["onClick"],VN={class:"cal_a"};function WN(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",AN,[p.createVNode(b,{style:{height:"100%"}},{default:p.withCtx(()=>[p.createVNode(l,{span:6},{default:p.withCtx(()=>[p.createElementVNode("div",TN,[p.createElementVNode("div",kN,[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,MN))),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,BN))),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",RN,[p.createElementVNode("ul",EN,[(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,ON))),128))]),p.createVNode(g,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:p.withCtx(()=>[p.createElementVNode("div",PN,[p.createElementVNode("div",LN,[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",IN,[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",DN,[p.createTextVNode(p.toDisplayString(m.substr(0,m.indexOf(n.searchFuncValue)))+" ",1),p.createElementVNode("span",HN,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,[FN,p.createElementVNode("span",null,p.toDisplayString(v),1)]),p.createElementVNode("div",null,[NN,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",VN,[p.createTextVNode(" 更多函数 "),p.createVNode(f,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const $N=Vt(SN,[["render",WN],["__scopeId","data-v-ea364ea1"]]),UN=p.defineComponent({name:"CalculationModal",components:{FormulaCalculation:$N,AForm:Te.Form,AModal:Te.Modal,AFormItem:Te.FormItem,AInput:Te.Input,ASelect:Te.Select,ASelectOption:Te.SelectOption,ATextarea:Te.Textarea,AInputNumber:Te.InputNumber,ATooltip:Te.Tooltip,QuestionCircleOutlined:aI},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 P=["leftAxisList","rightAxisList","queryColumnList","indicators"];let T=[];for(const _ of P)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,P=>{if(P)if(n.mode==="edit"){const{label:T,calcType:_,formula:A,builtInValueSource:M,builtInFormula:k,builtInCalcWay:I}=n.item;if(m.value={label:T,calcType:_,formula:A,builtInValueSource:M,builtInFormula:k,builtInCalcWay:I},k==="DATE_OFFSET"){const N=I.split("-");(N==null?void 0:N.length)===3&&(f.value={value:N[0],unit:N[1],around:N[2]})}}else n.mode==="add"&&(m.value=it.cloneDeep(h),f.value=it.cloneDeep(u));else m.value=it.cloneDeep(h),f.value=it.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!P)},{immediate:!0,deep:!0});let y=!1;const v=()=>{y=!0},w=P=>{const T=p.unref(a).find(_=>_.id===P);T&&(m.value.builtInCalcWay=T.keyName),y=!0},C=()=>{var M;const P=((M=p.unref(o)[n.type])==null?void 0:M.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"])&&P.forEach(I=>{I.show=!1}),P.push({...p.unref(m),...A,id:k,show:!0,name:T})}else n.mode==="edit"&&(P[n.index]={...P[n.index],...p.unref(m),...A,name:T});i({[n.type]:P})},x=()=>{b.value=!0},S=()=>{b.value=!1},O=async(P,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()}},B=p.computed(()=>{let P={label:[{required:!0,validator:O,trigger:"change"}]};return m.value.calcType==="BUILT_IN"&&(P={...P,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),P}),R=()=>{g.value.validate().then(()=>{y&&C(),y=!1,S()})},L=()=>{g.value.clearValidate(),S()},D=()=>{y=!0,p.unref(m).builtInCalcWay=""},F=p.computed(()=>{let P="";const T=p.unref(m).builtInCalcWay,_=p.unref(m).builtInValueSource;if(!_||!T)return P;switch(p.unref(m).builtInFormula){case"BUILT_IN_RANK":{T==="ASC"?P="【"+_+"】由小到大在所有值中的排名":P="【"+_+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{P=`所有【】的
66
66
  `,T==="ASC"?P=P+"【"+_+"】由小到大的组内的排名":P=P+"【"+_+"】由大到小的组内的排名";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}}P="将所有【"+_+"】"+A;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let A="";switch(P=`所有【】的
67
- `,T){case"SUM":{A="求和";break}case"AVG":{A="求平均值";break}case"MIN":{A="求最小值";break}case"MAX":{A="求最大值";break}}P=P+"将所有【"+_+"】"+A;break}}return P}),E=(P,T)=>T.keyName.toLowerCase().indexOf(P.toLowerCase())>=0;return e({showModal:x}),{visible:b,onCancel:L,labelCol:c,wrapperCol:d,formState:m,builtInValueSourceList:s,onOK:R,onChange:v,formRules:B,accessLogic:F,formRef:g,onChangeBuiltInFormula:D,componentList:a,onChangeComponent:w,filterOption:E,offsetConfig:f}}}),Cme="",xme="",GN={key:0,class:"accesstip"},KN={style:{display:"flex","align-items":"center"}};function YN(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",GN," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+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",KN,[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 XN=Vt(UN,[["render",YN],["__scopeId","data-v-7a7bcf24"]]),qN=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:yy,ASelect:Te.Select,ASelectOption:Te.SelectOption,AInput:Te.Input,APopover:Te.Popover,ATabs:Te.Tabs,ATabPane:Te.TabPane,AInputNumber:Te.InputNumber},setup(n,{emit:e}){const t=p.ref(!1),o=p.inject(hi),i=p.computed(()=>{var C;return(C=p.unref(o))==null?void 0:C.filter(x=>x.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.computed({get(){return n.item},set(C){e("update",C,n.index)}}),c=p.computed(()=>{var x;let C=null;if(((x=p.unref(l))==null?void 0:x.dataType)==="component"){const S=p.unref(i).find(O=>{var B;return O.id===((B=p.unref(l))==null?void 0:B.id)});S&&(C=S)}return C}),d=p.computed(()=>{var x;let C=!1;return((x=p.unref(l))==null?void 0:x.variableType)==="DATE"&&(C=!0),C}),h=p.computed(()=>{let C=!1;return p.unref(c)&&(C=Nt(p.unref(c).type,"range")),C}),u=p.computed(()=>{let C=!1;return p.unref(c)&&(Nt(p.unref(c).type,"range")?["startTime","endTime"].includes(p.unref(l).dateTypeValue)&&(C=!0):Nt(p.unref(c).type,"date")&&(C=!0)),C}),f=(C,x)=>{C&&(p.unref(l).keyName=x.keyName)},g=()=>{e("delete",n.index)},b=p.computed(()=>p.unref(d)?[{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.unref(l).id=null,p.unref(l).keyName="",p.unref(l).dateTypeValue=null,p.unref(l).variableValue=""},y=()=>{p.unref(l).format=null},v=(C,x)=>{var S;return(S=x==null?void 0:x.keyName)==null?void 0:S.toLowerCase().includes(C==null?void 0:C.toLowerCase())};return p.watch(u,C=>{C&&(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,typeOption:r,dataTypeOption:a,usedComponentList:i,formatOptions:b,rangeTypeOptions:s,isShowFormat:d,isDateRangeComponent:h,isShowDateOperate:u,popoverVisible:t,idFilterOption:v,onChangeComponent:f,onDelete:g,onChangeDataType:m,onChangeVariableType:y,changeTab:C=>{p.unref(l).activeOperateKey=C,C===1?p.unref(l).operateValue=0:C===2&&(p.unref(l).operateValue="rangeValue")}}}}),_me="",ZN={class:"variable-item"},JN={class:"popover-content-wrap"},QN={style:{display:"flex"}};function eD(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",ZN,[p.createVNode(a,{class:"field-name",value:n.variableData.variableName,"onUpdate:value":e[0]||(e[0]=m=>n.variableData.variableName=m),placeholder:"请输入变量名",disabled:!!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:"",style:{"max-width":"120px"},placeholder:"请选择变量类型",onChange:n.onChangeVariableType},null,8,["value","options","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",JN,[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",QN,[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 tD=Vt(qN,[["render",eD],["__scopeId","data-v-1e81fb5b"]]),Hy=(n={})=>n.globalCondition===!0||n.globalCondition==null&&!n.randomKey,rh=n=>(n||[]).map(e=>({...e,globalCondition:Hy(e)})),i3=(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},nD=(n,e)=>{const t=["leftAxisList","rightAxisList","indicators","specialIndicators"],o=[],i=new Map;for(const s of t)for(const l of(n==null?void 0:n[s])||[]){const c=Array.isArray(l==null?void 0:l.dataSetParams)?l.dataSetParams:[];if(c.length){const d=c.map(h=>h.name).filter(Boolean);o.push([...new Set(d)]);for(const h of c)h.name&&!i.has(h.name)&&i.set(h.name,h)}}if(!o.length)return[];let r=o[0];for(const s of o)r=r.filter(l=>s.includes(l));const a=(e||[]).filter(Hy);return r.map(s=>{const l=i.get(s),c=a.find(d=>d.variableName===s);return c||{...l,variableName:s,variableType:l==null?void 0:l.valueType,dataType:"",id:null,variableValue:(l==null?void 0:l.defaultValue)??null,dateTypeValue:null,format:l!=null&&l.valueFormat?l.valueFormat.toUpperCase():null,keyValue:`global-${s}`,globalCondition:!0,randomKey:null,disabled:!1}})},oD=p.defineComponent({name:"VariableGroup",components:{VariableItem:tD},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):nD(p.unref(e),h)}),a=h=>{var b;const u=it.cloneDeep(((b=p.unref(e))==null?void 0:b.variableList)||[]);let f;if(n.mode==="global")f=u.filter(m=>!Hy(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(it.cloneDeep(r.value))},{immediate:!0}),{variableList:r,onAddVariable:()=>{const h=it.cloneDeep(p.unref(r)),u={keyValue:Yn(),variableType:"TEXT",dataType:"",id:null,dateTypeValue:null,format:null,globalCondition:n.mode!=="indicator"};n.mode==="indicator"&&(u.label=n.indicatorLabel,u.randomKey=n.indicatorKey,u.disabled=p.unref(i)==="EDV_DATA_SET"),h.push(u),a(h)},onSyncVariable:()=>{var w;const{leftAxisList:h=[],rightAxisList:u=[],indicators:f=[],specialIndicators:g=[]}=p.unref(e)||{},b=it.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(B=>B.variableName===C&&x.randomKey!==B.randomKey),O=["label","randomKey","keyValue"];for(const B of S)for(const R in x)O.includes(R)||(B[R]=x[R])}}a(b)},onUpdateItem:(h,u)=>{if(u>=0){const f=it.cloneDeep(p.unref(r));f[u]=h,a(f)}},onDeleteItem:h=>{if(h>=0){const u=it.cloneDeep(p.unref(r));u.splice(h,1),a(u)}}}}}),Sme="",iD=(n=>(p.pushScopeId("data-v-b2de4b00"),n=n(),p.popScopeId(),n))(()=>p.createElementVNode("div",{class:"variable-group"},[p.createElementVNode("div",{class:"variable-group-header"})],-1)),rD={class:"variable-group-content"};function aD(n,e,t,o,i,r){const a=p.resolveComponent("variable-item");return p.openBlock(),p.createElementBlock(p.Fragment,null,[iD,p.createElementVNode("div",rD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.variableList,(s,l)=>(p.openBlock(),p.createBlock(a,{key:s.keyValue,item:s,index:Number(l),"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 r3=Vt(oD,[["render",aD],["__scopeId","data-v-b2de4b00"]]),sD=p.defineComponent({name:"VariableModal",components:{AModal:Te.Modal,VariableGroup:r3},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=i3(f,{label:u,randomKey:h},p.unref(a));if(!b.length)return;const m=rh(it.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 lD(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(sD,[["render",lD]]),dD=p.defineComponent({name:"DataConfigCard",directives:{focus:t3},components:{CalculationModal:XN,FilterModal:rN,CustomGroupModal:gF,VariableModal:cD,SettingOutlined:pI,DeleteOutlined:Ay,CopyOutlined:TL,InfoCircleOutlined:NL,CustomSortModal:eF,PlusOutlined:nI,ACard:Te.Card,ACheckbox:Te.Checkbox,AInput:Te.Input,ADropdown:Te.Dropdown,AMenu:Te.Menu,ASubMenu:Te.SubMenu,AMenuItem:Te.MenuItem,AMenuDivider:Te.MenuDivider,ASelect:Te.Select,APopover:Te.Popover,Draggable:ma,ConfigName:hN,SortByCpnt:bN,DimByCount:_N},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 lt=((Fe=p.unref(i)[ve])==null?void 0:Fe.slice())||[];(lt==null?void 0:lt.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 lt=((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"]))&&lt.forEach(yt=>{yt.show=!1}),y(lt,Fe),Fe.randomKey=Yn(),lt.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=i3(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]:lt,...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:lt}=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(lt,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 lt,Pt;const Re=(lt=be.target)==null?void 0:lt.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:lt}=be,Pt=Fe.id,bt=lt.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}))},B=p.computed(()=>p.unref(i)[n.type]||[]),R=p.ref([]);let L=!1;p.watch(()=>p.unref(B).length,be=>{R.value=new Array(be).fill(!1)},{flush:"post",immediate:!0});const D=be=>{var Re,Fe,lt;const ve=((Re=p.unref(i)[n.type])==null?void 0:Re.slice())||[];if((Fe=ve[be])!=null&&Fe.randomKey){const Pt=((lt=p.unref(i))==null?void 0:lt.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=()=>{L=!0},P=be=>{be.key==="Escape"&&(be.stopPropagation(),be.preventDefault())},T=(be,ve,Re)=>{var Fe,lt,Pt,bt;if(R.value[ve]=!1,L){const yt=(Fe=be.target)==null?void 0:Fe.value,tn=((lt=p.unref(i)[n.type])==null?void 0:lt.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})}L=!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=it.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:lt=[],indicators:Pt=[],specialIndicators:bt=[]}=p.unref(i)||{};return[...Re,...be,...Fe,...lt,...Pt,...bt]}),M=(be={},ve,Re="ASC")=>{var tn;const{label:Fe,name:lt,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:lt,type:"NORMAL",order:Re,defaultCode:bt},r({[n.type]:yt})},k=(be={},ve="ASC")=>{const Fe={ASC:"升序",DESC:"降序"}[ve],{sort:lt}=be,{label:Pt,order:bt}=lt||{};return Pt&&bt===ve?`${Fe}(${Pt})`:Fe},I=p.ref(),N=p.ref(),H=p.ref(),W=p.ref(),$=(be={},ve)=>{var Re;I.value=be,N.value=ve,(Re=p.unref(H))==null||Re.showModal(be)},K=be=>"排序"+(be!=null&&be.sort?"(已配置)":""),V=(be={},ve)=>{var Re;I.value=be,N.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"}],Y=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"},{name:"聚合",value:"GROUP"}],J=[{name:"是",value:1},{name:"否",value:0}],X=(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 lt of Re)lt.gaugeIndType===be&&(lt.gaugeIndType="");Re[ve].gaugeIndType=be,r({[n.type]:Re})},ie=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];for(const lt of Re)lt.budgetIndType===be&&(lt.budgetIndType="");Re[ve].budgetIndType=be,r({[n.type]:Re})},ae=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].aggregate=be,r({[n.type]:Re})},Z=(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]})`,re=be=>`指标类型(${{main:"主指标",target:"目标指标"}[be]||"无"})`,ne=be=>`指标类型(${{cuml:"累计指标",current:"当期指标"}[be]||"无"})`,he=(be="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数",GROUP:"聚合"}[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(),He=p.ref(),De=p.ref(),Ue=p.ref(),Ge=(be={},ve)=>{I.value=be,N.value=ve,p.unref(Be).showModal()},ze=(be={},ve)=>{I.value=be,N.value=ve,p.unref(He).showModal(be)},de=(be={},ve)=>{I.value=be,N.value=ve,p.unref(De).showModal(be)},ce=(be={},ve)=>{I.value=be,N.value=ve,p.unref(Ue).showModal(be,p.unref(Gt))},ge=p.ref(),Me=(be={},ve)=>{var Re;I.value=be,N.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,N.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 rt=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(rt)===Re.parentId)return;rt.value=Re.parentId}else{p.unref(i).selectFieldOptions=[],$e.value=[],rt.value="";return}const Fe=await qe.get(`${Io}/dataset/`+Re.parentId,{headers:{Authentication:we,operateContext:"ygt"}}),{success:lt,data:Pt=[]}=Fe.data;if(lt){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(`${Io}/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 lt=await qe.post(`${Io}/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}=lt.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),Te.message.success("复制成功")},Ve=p.computed(()=>n.type==="indicators"&&p.unref(o).type==="ecanTable"),nt=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)}),at=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:B,onDelete:D,onEdit:F,onCommitLabelChange:T,sortList:A,onSort:M,handleSortTitle:k,showCustomSortModal:$,customSortModalRef:H,currentItem:I,currentIndex:N,handleCustomSortTitle:K,handleCustomGroupTitle:G,customGroupModalRef:W,showCustomGroupModal:V,editLabelList:R,onLabelChange:E,handleInputKeyDown:P,aggregateList:Y,showHideList:z,indTypeList:j,budgetTypeList:U,distinctList:J,onAggregateChange:ae,onShowHideChange:X,onIndTypeChange:q,onBudgetTypeChange:ie,onDistinctChange:Z,onDateFormatChange:Q,onIndSortChange:te,handleAggregateTitle:he,handleDrillTableTitle:ee,handleIndTypeTitle:re,handleBudgetTypeTitle:ne,handleDistinctTitle:me,onShowCalculationModal:We,handleFilterTitle:Se,filterModalRef:Be,configNameRef:He,sortByCpntRef:De,dimByCountRef:Ue,showFilterModal:Ge,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:ze,dimensionType:gt,idxList:s,hasIndicatorVariables:ke,isShowSortByCpnt:nt,showSortByCpntModal:de,dataSelectIndicators:g,showDimByCountModal:ce,variableModalRef:ge,showVariableModal:Me,selectedComponent:o,lowerCaseIncludes:Nt,isShowCalcBtn:at,isIndexSet:Tt,compositeIndicator:u,handleIndSortTitle:ue,getIndexSetRawLabel:Ot}}}),Tme="",kme="",ms=n=>(p.pushScopeId("data-v-a8dbf89a"),n=n(),p.popScopeId(),n),hD={class:"title"},uD={class:"title-text"},fD={class:"field-wrap"},pD={class:"field-item"},gD=ms(()=>p.createElementVNode("div",{class:"item-label"},"名称:",-1)),mD={class:"field-item"},bD=ms(()=>p.createElementVNode("div",{class:"item-label"},"值:",-1)),yD={key:0,class:"field-item"},vD=ms(()=>p.createElementVNode("div",{class:"item-label"},"父节点:",-1)),wD={key:1,class:"field-item"},CD=ms(()=>p.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),xD={class:"title"},_D={class:"title-text"},SD=ms(()=>p.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),AD=ms(()=>p.createElementVNode("span",null,"添加计算指标",-1)),TD={class:"card-item-wrap"},kD={class:"card-item-inner"},MD=["onClick"],BD=["onClick"],RD=["onClick"],ED={style:{display:"flex","align-items":"center"}},OD=["title"],PD=ms(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),LD={style:{display:"flex","align-items":"center"}},ID=["title"],FD=ms(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function ND(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"),B=p.resolveComponent("filter-modal"),R=p.resolveComponent("config-name"),L=p.resolveComponent("sort-by-cpnt"),D=p.resolveComponent("dim-by-count"),F=p.resolveComponent("calculation-modal"),E=p.resolveComponent("variable-modal"),P=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",hD,[p.createElementVNode("div",uD,p.toDisplayString(n.title),1)])]),default:p.withCtx(()=>[p.createElementVNode("div",fD,[p.createElementVNode("div",pD,[gD,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",yD,[vD,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",wD,[CD,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",xD,[p.createElementVNode("div",_D,[p.createTextVNode(p.toDisplayString(n.title)+" ",1),n.type==="dimensionList"?(p.openBlock(),p.createBlock(d,{key:0,title:"提示",placement:"topLeft"},{content:p.withCtx(()=>[SD]),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"}),AD])):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",TD,[p.createVNode(s,{class:"card-item",checked:T.show,onChange:A=>n.onCheckboxChange(A,_)},{default:p.withCtx(()=>[p.createElementVNode("div",kD,[!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,MD)):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,BD)):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"])),[[P]]):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,RD)):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:M=>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:M=>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)),["classificationList","seriesList"].includes(n.type)?p.createCommentVNode("",!0):(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:M=>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)),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:M=>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:M=>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:M=>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:M=>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",ED,[p.createElementVNode("span",{class:"data-view-name",title:n.dataViewMap[T.name].name},[PD,p.createTextVNode(" "+p.toDisplayString(n.dataViewMap[T.name].name),1)],8,OD),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",LD,[p.createElementVNode("span",{class:"data-view-name",title:n.dataViewMap[T.name].code},[FD,p.createTextVNode(" "+p.toDisplayString(n.dataViewMap[T.name].code),1)],8,ID),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(B,{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(L,{index:n.currentIndex,type:n.type,ref:"sortByCpntRef"},null,8,["index","type"]),p.createVNode(D,{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 DD=Vt(dD,[["render",ND],["__scopeId","data-v-a8dbf89a"]]),HD={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"},specialIndicators:{title:"目标指标"}},zD=p.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:DD},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=it.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=HD,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}}}),Mme="",Bme="",jD={class:"data-group"};function VD(n,e,t,o,i,r){const a=p.resolveComponent("data-config-card");return p.openBlock(),p.createElementBlock("div",jD,[(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 WD=Vt(zD,[["render",VD],["__scopeId","data-v-b87dcb12"]]),$D=[{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"]}],a3=[{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])})),UD={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:""},...a3]}},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:""},...a3]}},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}}P=P+"将所有【"+_+"】"+A;break}}return P}),E=(P,T)=>T.keyName.toLowerCase().indexOf(P.toLowerCase())>=0;return e({showModal:x}),{visible:b,onCancel:L,labelCol:c,wrapperCol:d,formState:m,builtInValueSourceList:s,onOK:R,onChange:v,formRules:B,accessLogic:F,formRef:g,onChangeBuiltInFormula:D,componentList:a,onChangeComponent:w,filterOption:E,offsetConfig:f}}}),Cme="",xme="",GN={key:0,class:"accesstip"},KN={style:{display:"flex","align-items":"center"}};function YN(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",GN," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+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",KN,[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 XN=Vt(UN,[["render",YN],["__scopeId","data-v-7a7bcf24"]]),qN=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:yy,ASelect:Te.Select,ASelectOption:Te.SelectOption,AInput:Te.Input,APopover:Te.Popover,ATabs:Te.Tabs,ATabPane:Te.TabPane,AInputNumber:Te.InputNumber},setup(n,{emit:e}){const t=p.ref(!1),o=p.inject(hi),i=p.computed(()=>{var C;return(C=p.unref(o))==null?void 0:C.filter(x=>x.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.computed({get(){return n.item},set(C){e("update",C,n.index)}}),c=p.computed(()=>{var x;let C=null;if(((x=p.unref(l))==null?void 0:x.dataType)==="component"){const S=p.unref(i).find(O=>{var B;return O.id===((B=p.unref(l))==null?void 0:B.id)});S&&(C=S)}return C}),d=p.computed(()=>{var x;let C=!1;return((x=p.unref(l))==null?void 0:x.variableType)==="DATE"&&(C=!0),C}),h=p.computed(()=>{let C=!1;return p.unref(c)&&(C=Nt(p.unref(c).type,"range")),C}),u=p.computed(()=>{let C=!1;return p.unref(c)&&(Nt(p.unref(c).type,"range")?["startTime","endTime"].includes(p.unref(l).dateTypeValue)&&(C=!0):Nt(p.unref(c).type,"date")&&(C=!0)),C}),f=(C,x)=>{C&&(p.unref(l).keyName=x.keyName)},g=()=>{e("delete",n.index)},b=p.computed(()=>p.unref(d)?[{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"}]:[]),m=()=>{p.unref(l).id=null,p.unref(l).keyName="",p.unref(l).dateTypeValue=null,p.unref(l).variableValue=""},y=()=>{p.unref(l).format=null},v=(C,x)=>{var S;return(S=x==null?void 0:x.keyName)==null?void 0:S.toLowerCase().includes(C==null?void 0:C.toLowerCase())};return p.watch(u,C=>{C&&(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,typeOption:r,dataTypeOption:a,usedComponentList:i,formatOptions:b,rangeTypeOptions:s,isShowFormat:d,isDateRangeComponent:h,isShowDateOperate:u,popoverVisible:t,idFilterOption:v,onChangeComponent:f,onDelete:g,onChangeDataType:m,onChangeVariableType:y,changeTab:C=>{p.unref(l).activeOperateKey=C,C===1?p.unref(l).operateValue=0:C===2&&(p.unref(l).operateValue="rangeValue")}}}}),_me="",ZN={class:"variable-item"},JN={class:"popover-content-wrap"},QN={style:{display:"flex"}};function eD(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",ZN,[p.createVNode(a,{class:"field-name",value:n.variableData.variableName,"onUpdate:value":e[0]||(e[0]=m=>n.variableData.variableName=m),placeholder:"请输入变量名",disabled:!!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:"",style:{"max-width":"120px"},placeholder:"请选择变量类型",onChange:n.onChangeVariableType},null,8,["value","options","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",JN,[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",QN,[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 tD=Vt(qN,[["render",eD],["__scopeId","data-v-8b26f157"]]),Hy=(n={})=>n.globalCondition===!0||n.globalCondition==null&&!n.randomKey,rh=n=>(n||[]).map(e=>({...e,globalCondition:Hy(e)})),i3=(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},nD=(n,e)=>{const t=["leftAxisList","rightAxisList","indicators","specialIndicators"],o=[],i=new Map;for(const s of t)for(const l of(n==null?void 0:n[s])||[]){const c=Array.isArray(l==null?void 0:l.dataSetParams)?l.dataSetParams:[];if(c.length){const d=c.map(h=>h.name).filter(Boolean);o.push([...new Set(d)]);for(const h of c)h.name&&!i.has(h.name)&&i.set(h.name,h)}}if(!o.length)return[];let r=o[0];for(const s of o)r=r.filter(l=>s.includes(l));const a=(e||[]).filter(Hy);return r.map(s=>{const l=i.get(s),c=a.find(d=>d.variableName===s);return c||{...l,variableName:s,variableType:l==null?void 0:l.valueType,dataType:"",id:null,variableValue:(l==null?void 0:l.defaultValue)??null,dateTypeValue:null,format:l!=null&&l.valueFormat?l.valueFormat.toUpperCase():null,keyValue:`global-${s}`,globalCondition:!0,randomKey:null,disabled:!1}})},oD=p.defineComponent({name:"VariableGroup",components:{VariableItem:tD},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):nD(p.unref(e),h)}),a=h=>{var b;const u=it.cloneDeep(((b=p.unref(e))==null?void 0:b.variableList)||[]);let f;if(n.mode==="global")f=u.filter(m=>!Hy(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(it.cloneDeep(r.value))},{immediate:!0}),{variableList:r,onAddVariable:()=>{const h=it.cloneDeep(p.unref(r)),u={keyValue:Yn(),variableType:"TEXT",dataType:"",id:null,dateTypeValue:null,format:null,globalCondition:n.mode!=="indicator"};n.mode==="indicator"&&(u.label=n.indicatorLabel,u.randomKey=n.indicatorKey,u.disabled=p.unref(i)==="EDV_DATA_SET"),h.push(u),a(h)},onSyncVariable:()=>{var w;const{leftAxisList:h=[],rightAxisList:u=[],indicators:f=[],specialIndicators:g=[]}=p.unref(e)||{},b=it.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(B=>B.variableName===C&&x.randomKey!==B.randomKey),O=["label","randomKey","keyValue"];for(const B of S)for(const R in x)O.includes(R)||(B[R]=x[R])}}a(b)},onUpdateItem:(h,u)=>{if(u>=0){const f=it.cloneDeep(p.unref(r));f[u]=h,a(f)}},onDeleteItem:h=>{if(h>=0){const u=it.cloneDeep(p.unref(r));u.splice(h,1),a(u)}}}}}),Sme="",iD=(n=>(p.pushScopeId("data-v-b2de4b00"),n=n(),p.popScopeId(),n))(()=>p.createElementVNode("div",{class:"variable-group"},[p.createElementVNode("div",{class:"variable-group-header"})],-1)),rD={class:"variable-group-content"};function aD(n,e,t,o,i,r){const a=p.resolveComponent("variable-item");return p.openBlock(),p.createElementBlock(p.Fragment,null,[iD,p.createElementVNode("div",rD,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(n.variableList,(s,l)=>(p.openBlock(),p.createBlock(a,{key:s.keyValue,item:s,index:Number(l),"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 r3=Vt(oD,[["render",aD],["__scopeId","data-v-b2de4b00"]]),sD=p.defineComponent({name:"VariableModal",components:{AModal:Te.Modal,VariableGroup:r3},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=i3(f,{label:u,randomKey:h},p.unref(a));if(!b.length)return;const m=rh(it.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 lD(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(sD,[["render",lD]]),dD=p.defineComponent({name:"DataConfigCard",directives:{focus:t3},components:{CalculationModal:XN,FilterModal:rN,CustomGroupModal:gF,VariableModal:cD,SettingOutlined:pI,DeleteOutlined:Ay,CopyOutlined:TL,InfoCircleOutlined:NL,CustomSortModal:eF,PlusOutlined:nI,ACard:Te.Card,ACheckbox:Te.Checkbox,AInput:Te.Input,ADropdown:Te.Dropdown,AMenu:Te.Menu,ASubMenu:Te.SubMenu,AMenuItem:Te.MenuItem,AMenuDivider:Te.MenuDivider,ASelect:Te.Select,APopover:Te.Popover,Draggable:ma,ConfigName:hN,SortByCpnt:bN,DimByCount:_N},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 lt=((Fe=p.unref(i)[ve])==null?void 0:Fe.slice())||[];(lt==null?void 0:lt.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 lt=((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"]))&&lt.forEach(yt=>{yt.show=!1}),y(lt,Fe),Fe.randomKey=Yn(),lt.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=i3(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]:lt,...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:lt}=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(lt,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 lt,Pt;const Re=(lt=be.target)==null?void 0:lt.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:lt}=be,Pt=Fe.id,bt=lt.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}))},B=p.computed(()=>p.unref(i)[n.type]||[]),R=p.ref([]);let L=!1;p.watch(()=>p.unref(B).length,be=>{R.value=new Array(be).fill(!1)},{flush:"post",immediate:!0});const D=be=>{var Re,Fe,lt;const ve=((Re=p.unref(i)[n.type])==null?void 0:Re.slice())||[];if((Fe=ve[be])!=null&&Fe.randomKey){const Pt=((lt=p.unref(i))==null?void 0:lt.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=()=>{L=!0},P=be=>{be.key==="Escape"&&(be.stopPropagation(),be.preventDefault())},T=(be,ve,Re)=>{var Fe,lt,Pt,bt;if(R.value[ve]=!1,L){const yt=(Fe=be.target)==null?void 0:Fe.value,tn=((lt=p.unref(i)[n.type])==null?void 0:lt.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})}L=!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=it.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:lt=[],indicators:Pt=[],specialIndicators:bt=[]}=p.unref(i)||{};return[...Re,...be,...Fe,...lt,...Pt,...bt]}),M=(be={},ve,Re="ASC")=>{var tn;const{label:Fe,name:lt,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:lt,type:"NORMAL",order:Re,defaultCode:bt},r({[n.type]:yt})},k=(be={},ve="ASC")=>{const Fe={ASC:"升序",DESC:"降序"}[ve],{sort:lt}=be,{label:Pt,order:bt}=lt||{};return Pt&&bt===ve?`${Fe}(${Pt})`:Fe},I=p.ref(),N=p.ref(),H=p.ref(),W=p.ref(),$=(be={},ve)=>{var Re;I.value=be,N.value=ve,(Re=p.unref(H))==null||Re.showModal(be)},K=be=>"排序"+(be!=null&&be.sort?"(已配置)":""),V=(be={},ve)=>{var Re;I.value=be,N.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"}],Y=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"},{name:"聚合",value:"GROUP"}],J=[{name:"是",value:1},{name:"否",value:0}],X=(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 lt of Re)lt.gaugeIndType===be&&(lt.gaugeIndType="");Re[ve].gaugeIndType=be,r({[n.type]:Re})},ie=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];for(const lt of Re)lt.budgetIndType===be&&(lt.budgetIndType="");Re[ve].budgetIndType=be,r({[n.type]:Re})},ae=(be,ve)=>{var Fe;const Re=((Fe=p.unref(i)[n.type])==null?void 0:Fe.slice())||[];Re[ve].aggregate=be,r({[n.type]:Re})},Z=(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]})`,re=be=>`指标类型(${{main:"主指标",target:"目标指标"}[be]||"无"})`,ne=be=>`指标类型(${{cuml:"累计指标",current:"当期指标"}[be]||"无"})`,he=(be="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数",GROUP:"聚合"}[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(),He=p.ref(),De=p.ref(),Ue=p.ref(),Ge=(be={},ve)=>{I.value=be,N.value=ve,p.unref(Be).showModal()},ze=(be={},ve)=>{I.value=be,N.value=ve,p.unref(He).showModal(be)},de=(be={},ve)=>{I.value=be,N.value=ve,p.unref(De).showModal(be)},ce=(be={},ve)=>{I.value=be,N.value=ve,p.unref(Ue).showModal(be,p.unref(Gt))},ge=p.ref(),Me=(be={},ve)=>{var Re;I.value=be,N.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,N.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 rt=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(rt)===Re.parentId)return;rt.value=Re.parentId}else{p.unref(i).selectFieldOptions=[],$e.value=[],rt.value="";return}const Fe=await qe.get(`${Io}/dataset/`+Re.parentId,{headers:{Authentication:we,operateContext:"ygt"}}),{success:lt,data:Pt=[]}=Fe.data;if(lt){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(`${Io}/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 lt=await qe.post(`${Io}/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}=lt.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),Te.message.success("复制成功")},Ve=p.computed(()=>n.type==="indicators"&&p.unref(o).type==="ecanTable"),nt=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)}),at=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:B,onDelete:D,onEdit:F,onCommitLabelChange:T,sortList:A,onSort:M,handleSortTitle:k,showCustomSortModal:$,customSortModalRef:H,currentItem:I,currentIndex:N,handleCustomSortTitle:K,handleCustomGroupTitle:G,customGroupModalRef:W,showCustomGroupModal:V,editLabelList:R,onLabelChange:E,handleInputKeyDown:P,aggregateList:Y,showHideList:z,indTypeList:j,budgetTypeList:U,distinctList:J,onAggregateChange:ae,onShowHideChange:X,onIndTypeChange:q,onBudgetTypeChange:ie,onDistinctChange:Z,onDateFormatChange:Q,onIndSortChange:te,handleAggregateTitle:he,handleDrillTableTitle:ee,handleIndTypeTitle:re,handleBudgetTypeTitle:ne,handleDistinctTitle:me,onShowCalculationModal:We,handleFilterTitle:Se,filterModalRef:Be,configNameRef:He,sortByCpntRef:De,dimByCountRef:Ue,showFilterModal:Ge,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:ze,dimensionType:gt,idxList:s,hasIndicatorVariables:ke,isShowSortByCpnt:nt,showSortByCpntModal:de,dataSelectIndicators:g,showDimByCountModal:ce,variableModalRef:ge,showVariableModal:Me,selectedComponent:o,lowerCaseIncludes:Nt,isShowCalcBtn:at,isIndexSet:Tt,compositeIndicator:u,handleIndSortTitle:ue,getIndexSetRawLabel:Ot}}}),Tme="",kme="",ms=n=>(p.pushScopeId("data-v-a8dbf89a"),n=n(),p.popScopeId(),n),hD={class:"title"},uD={class:"title-text"},fD={class:"field-wrap"},pD={class:"field-item"},gD=ms(()=>p.createElementVNode("div",{class:"item-label"},"名称:",-1)),mD={class:"field-item"},bD=ms(()=>p.createElementVNode("div",{class:"item-label"},"值:",-1)),yD={key:0,class:"field-item"},vD=ms(()=>p.createElementVNode("div",{class:"item-label"},"父节点:",-1)),wD={key:1,class:"field-item"},CD=ms(()=>p.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),xD={class:"title"},_D={class:"title-text"},SD=ms(()=>p.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),AD=ms(()=>p.createElementVNode("span",null,"添加计算指标",-1)),TD={class:"card-item-wrap"},kD={class:"card-item-inner"},MD=["onClick"],BD=["onClick"],RD=["onClick"],ED={style:{display:"flex","align-items":"center"}},OD=["title"],PD=ms(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),LD={style:{display:"flex","align-items":"center"}},ID=["title"],FD=ms(()=>p.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function ND(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"),B=p.resolveComponent("filter-modal"),R=p.resolveComponent("config-name"),L=p.resolveComponent("sort-by-cpnt"),D=p.resolveComponent("dim-by-count"),F=p.resolveComponent("calculation-modal"),E=p.resolveComponent("variable-modal"),P=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",hD,[p.createElementVNode("div",uD,p.toDisplayString(n.title),1)])]),default:p.withCtx(()=>[p.createElementVNode("div",fD,[p.createElementVNode("div",pD,[gD,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",yD,[vD,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",wD,[CD,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",xD,[p.createElementVNode("div",_D,[p.createTextVNode(p.toDisplayString(n.title)+" ",1),n.type==="dimensionList"?(p.openBlock(),p.createBlock(d,{key:0,title:"提示",placement:"topLeft"},{content:p.withCtx(()=>[SD]),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"}),AD])):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",TD,[p.createVNode(s,{class:"card-item",checked:T.show,onChange:A=>n.onCheckboxChange(A,_)},{default:p.withCtx(()=>[p.createElementVNode("div",kD,[!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,MD)):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,BD)):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"])),[[P]]):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,RD)):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:M=>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:M=>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)),["classificationList","seriesList"].includes(n.type)?p.createCommentVNode("",!0):(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:M=>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)),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:M=>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:M=>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:M=>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:M=>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",ED,[p.createElementVNode("span",{class:"data-view-name",title:n.dataViewMap[T.name].name},[PD,p.createTextVNode(" "+p.toDisplayString(n.dataViewMap[T.name].name),1)],8,OD),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",LD,[p.createElementVNode("span",{class:"data-view-name",title:n.dataViewMap[T.name].code},[FD,p.createTextVNode(" "+p.toDisplayString(n.dataViewMap[T.name].code),1)],8,ID),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(B,{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(L,{index:n.currentIndex,type:n.type,ref:"sortByCpntRef"},null,8,["index","type"]),p.createVNode(D,{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 DD=Vt(dD,[["render",ND],["__scopeId","data-v-a8dbf89a"]]),HD={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"},specialIndicators:{title:"目标指标"}},zD=p.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:DD},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=it.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=HD,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}}}),Mme="",Bme="",jD={class:"data-group"};function VD(n,e,t,o,i,r){const a=p.resolveComponent("data-config-card");return p.openBlock(),p.createElementBlock("div",jD,[(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 WD=Vt(zD,[["render",VD],["__scopeId","data-v-b87dcb12"]]),$D=[{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"]}],a3=[{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])})),UD={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:""},...a3]}},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:""},...a3]}},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,