@ecan-bi/indicator-library 1.0.91 → 1.0.92
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/assets/editor.worker-02df2e61.js +1 -1
- package/dist/assets/json.worker-867823a6.js +1 -1
- package/dist/assets/ts.worker-7254b425.js +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@1.0.
|
|
1
|
+
/*! @ecan-bi/indicator-library@1.0.92 */
|
|
2
2
|
(function(me,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("lodash-es"),require("ant-design-vue"),require("vuedraggable"),require("dayjs"),require("ant-design-vue/es/popover/style"),require("ant-design-vue/es/dropdown/style"),require("ant-design-vue/es/table/style"),require("monaco-editor"),require("ant-design-vue/es/collapse/style"),require("echarts")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","ant-design-vue","vuedraggable","dayjs","ant-design-vue/es/popover/style","ant-design-vue/es/dropdown/style","ant-design-vue/es/table/style","monaco-editor","ant-design-vue/es/collapse/style","echarts"],e):(me=typeof globalThis<"u"?globalThis:me||self,e(me["@ecan-bi/indicator-library"]={},me.Vue,me.LodashEs,me.AntDesignVue,me.Draggable,me.Dayjs,null,null,null,me.MonacoEditor,null,me.Echarts))})(this,function(me,e,Z,R,Bt,he,fy,my,hy,Xr,by,Qr){var Kr;"use strict";function Jr(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const Zr=Jr(Qr),sa=(t,o)=>{if(t.install=n=>{for(const a of[t,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))t[n]=a;return t},Ee="$request",Se=((Kr=window==null?void 0:window.config)==null?void 0:Kr.indicatorURL)||"",Be="INDICATOR_TOKEN",ca="DATA_LIST",Ie="SELECTED_COMPONENT",ke="GRAPHIC_CONFIG",Ne="UPDATE_GRAPHIC_CONFIG",da="SHOW_STYLE_CONFIG",pa="REFRESH_DATA",Co="CHARTS_OPTIONS",ua="TABLE_OPTIONS",ei=18,Yo="UPDATE_CHARTS_OPTIONS",qo="UPDATE_TABLE_OPTIONS",Yt="SOURCE_TYPE",wo="CHANGE_CONDITION",fa="DATA_VIEW_COLUMNS",Ue="RENDER_USED_COMPONENTS",ko="UPDATE_USED_COMPONENT",ma="MAP_ATTRIBUTE_PROPS",ha="PAGE_CONFIG",Ko="IS_PIVOT_TABLE",ba="IS_IFRAME_MODE",Xo={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%"}},ti={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},oi=e.defineComponent({name:"DataViewList",components:{ASpin:R.Spin,ATreeSelect:R.TreeSelect,Draggable:Bt},setup(){var T;const t=e.inject(Ee),o=e.unref(e.inject(Be)),n=e.inject(ke),a=e.inject(Ne),l=e.computed(()=>{var w;return((w=e.unref(n))==null?void 0:w.dataViewId)||null}),r=e.ref(!1),s=e.ref([]),d=(T=window==null?void 0:window.config)==null?void 0:T.pageId,i=e.reactive({title:"已选",value:"YXJG",id:"YXJG",pId:"0",disabled:!0,selectable:!1,isLeaf:!0}),c=async()=>{var x,S;const w=l.value;r.value=!0;try{const{data:N}=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:d,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}});r.value=!1,N.success&&((x=s.value)==null||x.push(i),s.value=(S=s.value)==null?void 0:S.concat(p([N.data.rows[0]],"YXJG")))}catch{r.value=!1}},p=(w=[],x)=>{const S=[];return w.forEach(N=>{S.push({id:N.id,pId:x??N.parentId,value:N.id,title:N.name,isLeaf:N.leaf||!1,nature:N.nature,selectable:N.leaf||!1})}),S},u=async(w,x)=>{var $;let S=0;if(w){const{value:A}=w.dataRef;S=A}const{data:N}=await t.post(`${Se}/dataview/treetable`,{pageFlag:!0,pageId:d,parentId:S},{headers:{Authentication:o,operateContext:"ygt"}});N.success&&(s.value=($=e.unref(s))==null?void 0:$.concat(p(N.data)),x&&e.unref(l)&&await c())},f=w=>{m(w),a({dataViewId:w,classificationList:[],seriesList:[],leftAxisList:[],rightAxisList:[],indicators:[],controlList:[]})},{setDataList:y}=e.inject(ca,{setDataList:w=>w}),b=e.ref(!1),h=e.ref([]),m=async w=>{if(w){h.value=[],b.value=!0;try{const x=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:d,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}}),{success:S,data:N={}}=x.data;if(b.value=!1,S){const{rows:$=[]}=N;$==null||$.forEach(A=>{var j;const B=((j=A==null?void 0:A.dataViewColumns)==null?void 0:j.map(P=>({...P,show:!0})))||[];h.value=[...e.unref(h),...B]}),y(e.unref(h))}}catch{b.value=!1}}},C=w=>({TEXT:"字符",NUMBER:"数字",DATE:"时间"})[w],g=(w,x)=>{const S=x[w.oldIndex];if(S){const N={...S,label:S.name,name:S.label};sessionStorage.setItem("indicator-list-item",JSON.stringify(N))}};return e.onMounted(async()=>{await u(void 0,!0),m(e.unref(l))}),{dataViewId:l,handleLoadData:u,treeSelectData:s,treeSelectLoading:r,dataViewList:h,dataViewLoading:b,onDataViewIdChange:f,mapGenericType:C,onDragStart:g}}}),xy="",ne=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},ni={class:"data-view-list"},ai={class:"columns"},li={class:"column-item"},ri={class:"column-item-name"};function ii(t,o,n,a,l,r){const s=e.resolveComponent("a-tree-select"),d=e.resolveComponent("a-spin"),i=e.resolveComponent("draggable");return e.openBlock(),e.createElementBlock("div",ni,[e.createVNode(d,{"wrapper-class-name":"tree-spin",spinning:t.treeSelectLoading,tip:"视图加载中..."},{default:e.withCtx(()=>[e.createVNode(s,{value:t.dataViewId,style:{width:"100%"},placeholder:"请选择视图","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":t.treeSelectData,"load-data":t.handleLoadData,"tree-data-simple-mode":"",onChange:t.onDataViewIdChange},null,8,["value","tree-data","load-data","onChange"])]),_:1},8,["spinning"]),e.createElementVNode("div",ai,[e.createVNode(d,{spinning:t.dataViewLoading,tip:"数据加载中..."},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:t.dataViewList,"onUpdate:modelValue":o[0]||(o[0]=c=>t.dataViewList=c),group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,onStart:o[1]||(o[1]=c=>t.onDragStart(c,t.dataViewList))},{item:e.withCtx(({element:c})=>[e.createElementVNode("div",li,[e.createTextVNode(" 【"+e.toDisplayString(t.mapGenericType(c.genericType))+"】 ",1),e.createElementVNode("span",ri,e.toDisplayString(c.name),1)])]),_:1},8,["modelValue"])]),_:1},8,["spinning"])])])}const si=ne(oi,[["render",ii],["__scopeId","data-v-4a66f7d2"]]);function De(t,o){ci(t)&&(t="100%");var n=di(t);return t=o===360?t:Math.min(o,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*o),10)/100),Math.abs(t-o)<1e-6?1:(o===360?t=(t<0?t%o+o:t%o)/parseFloat(String(o)):t=t%o/parseFloat(String(o)),t)}function ci(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function di(t){return typeof t=="string"&&t.indexOf("%")!==-1}function pi(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function xo(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Qo(t){return t.length===1?"0"+t:String(t)}function ui(t,o,n){return{r:De(t,255)*255,g:De(o,255)*255,b:De(n,255)*255}}function Jo(t,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(o-t)*(6*n):n<1/2?o:n<2/3?t+(o-t)*(2/3-n)*6:t}function fi(t,o,n){var a,l,r;if(t=De(t,360),o=De(o,100),n=De(n,100),o===0)l=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,d=2*n-s;a=Jo(d,s,t+1/3),l=Jo(d,s,t),r=Jo(d,s,t-1/3)}return{r:a*255,g:l*255,b:r*255}}function mi(t,o,n){t=De(t,255),o=De(o,255),n=De(n,255);var a=Math.max(t,o,n),l=Math.min(t,o,n),r=0,s=a,d=a-l,i=a===0?0:d/a;if(a===l)r=0;else{switch(a){case t:r=(o-n)/d+(o<n?6:0);break;case o:r=(n-t)/d+2;break;case n:r=(t-o)/d+4;break}r/=6}return{h:r,s:i,v:s}}function hi(t,o,n){t=De(t,360)*6,o=De(o,100),n=De(n,100);var a=Math.floor(t),l=t-a,r=n*(1-o),s=n*(1-l*o),d=n*(1-(1-l)*o),i=a%6,c=[n,s,r,r,d,n][i],p=[d,n,n,s,r,r][i],u=[r,r,d,n,n,s][i];return{r:c*255,g:p*255,b:u*255}}function bi(t,o,n,a){var l=[Qo(Math.round(t).toString(16)),Qo(Math.round(o).toString(16)),Qo(Math.round(n).toString(16))];return a&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function ya(t){return Ve(t)/255}function Ve(t){return parseInt(t,16)}var ga={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function qt(t){var o={r:0,g:0,b:0},n=1,a=null,l=null,r=null,s=!1,d=!1;return typeof t=="string"&&(t=Ci(t)),typeof t=="object"&&(Je(t.r)&&Je(t.g)&&Je(t.b)?(o=ui(t.r,t.g,t.b),s=!0,d=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Je(t.h)&&Je(t.s)&&Je(t.v)?(a=xo(t.s),l=xo(t.v),o=hi(t.h,a,l),s=!0,d="hsv"):Je(t.h)&&Je(t.s)&&Je(t.l)&&(a=xo(t.s),r=xo(t.l),o=fi(t.h,a,r),s=!0,d="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=pi(n),{ok:s,format:t.format||d,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var yi="[-\\+]?\\d+%?",gi="[-\\+]?\\d*\\.\\d+%?",rt="(?:".concat(gi,")|(?:").concat(yi,")"),Zo="[\\s|\\(]+(".concat(rt,")[,|\\s]+(").concat(rt,")[,|\\s]+(").concat(rt,")\\s*\\)?"),en="[\\s|\\(]+(".concat(rt,")[,|\\s]+(").concat(rt,")[,|\\s]+(").concat(rt,")[,|\\s]+(").concat(rt,")\\s*\\)?"),ze={CSS_UNIT:new RegExp(rt),rgb:new RegExp("rgb"+Zo),rgba:new RegExp("rgba"+en),hsl:new RegExp("hsl"+Zo),hsla:new RegExp("hsla"+en),hsv:new RegExp("hsv"+Zo),hsva:new RegExp("hsva"+en),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ci(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var o=!1;if(ga[t])t=ga[t],o=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ze.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=ze.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ze.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=ze.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ze.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=ze.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ze.hex8.exec(t),n?{r:Ve(n[1]),g:Ve(n[2]),b:Ve(n[3]),a:ya(n[4]),format:o?"name":"hex8"}:(n=ze.hex6.exec(t),n?{r:Ve(n[1]),g:Ve(n[2]),b:Ve(n[3]),format:o?"name":"hex"}:(n=ze.hex4.exec(t),n?{r:Ve(n[1]+n[1]),g:Ve(n[2]+n[2]),b:Ve(n[3]+n[3]),a:ya(n[4]+n[4]),format:o?"name":"hex8"}:(n=ze.hex3.exec(t),n?{r:Ve(n[1]+n[1]),g:Ve(n[2]+n[2]),b:Ve(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function Je(t){return!!ze.CSS_UNIT.exec(String(t))}var _o=2,Ca=.16,wi=.05,ki=.05,xi=.15,wa=5,ka=4,_i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function xa(t){var o=t.r,n=t.g,a=t.b,l=mi(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function So(t){var o=t.r,n=t.g,a=t.b;return"#".concat(bi(o,n,a,!1))}function Si(t,o,n){var a=n/100,l={r:(o.r-t.r)*a+t.r,g:(o.g-t.g)*a+t.g,b:(o.b-t.b)*a+t.b};return l}function _a(t,o,n){var a;return Math.round(t.h)>=60&&Math.round(t.h)<=240?a=n?Math.round(t.h)-_o*o:Math.round(t.h)+_o*o:a=n?Math.round(t.h)+_o*o:Math.round(t.h)-_o*o,a<0?a+=360:a>=360&&(a-=360),a}function Sa(t,o,n){if(t.h===0&&t.s===0)return t.s;var a;return n?a=t.s-Ca*o:o===ka?a=t.s+Ca:a=t.s+wi*o,a>1&&(a=1),n&&o===wa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ta(t,o,n){var a;return n?a=t.v+ki*o:a=t.v-xi*o,a>1&&(a=1),Number(a.toFixed(2))}function tn(t){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=qt(t),l=wa;l>0;l-=1){var r=xa(a),s=So(qt({h:_a(r,l,!0),s:Sa(r,l,!0),v:Ta(r,l,!0)}));n.push(s)}n.push(So(a));for(var d=1;d<=ka;d+=1){var i=xa(a),c=So(qt({h:_a(i,d),s:Sa(i,d),v:Ta(i,d)}));n.push(c)}return o.theme==="dark"?_i.map(function(p){var u=p.index,f=p.opacity,y=So(Si(qt(o.backgroundColor||"#141414"),qt(n[u]),f*100));return y}):n}var on={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},nn={},an={};Object.keys(on).forEach(function(t){nn[t]=tn(on[t]),nn[t].primary=nn[t][5],an[t]=tn(on[t],{theme:"dark",backgroundColor:"#141414"}),an[t].primary=an[t][5]});var Na=[],Kt=[],Ti="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Ni(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function Ai(t,o){if(o=o||{},t===void 0)throw new Error(Ti);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Na.indexOf(a);l===-1&&(l=Na.push(a)-1,Kt[l]={});var r;return Kt[l]!==void 0&&Kt[l][n]!==void 0?r=Kt[l][n]:(r=Kt[l][n]=Ni(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),t.charCodeAt(0)===65279&&(t=t.substr(1,t.length)),r.styleSheet?r.styleSheet.cssText+=t:r.textContent+=t,r}function Aa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Oi(t,l,n[l])})}return t}function Oi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Ei(t,o){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(o))}function Bi(t,o){Ei(t,"[@ant-design/icons-vue] ".concat(o))}function Oa(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function ln(t,o,n){return n?e.h(t.tag,Aa({key:o},n,t.attrs),(t.children||[]).map(function(a,l){return ln(a,"".concat(o,"-").concat(t.tag,"-").concat(l))})):e.h(t.tag,Aa({key:o},t.attrs),(t.children||[]).map(function(a,l){return ln(a,"".concat(o,"-").concat(t.tag,"-").concat(l))}))}function Ea(t){return tn(t)[0]}function Ba(t){return t?Array.isArray(t)?t:[t]:[]}var Vi=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
@@ -61,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
61
61
|
`],...function({vnode:p,recurseCount:u}){const f=u>0?`... (${u} recursive calls)`:"",y=!!p.component&&p.component.parent==null,b=` at <${_l(p.component,p.type,y)}`,h=">"+f;return p.props?[b,...mc(p.props),h]:[b+h]}(i))}),d}(l)),console.warn(...r)}(function(){const r=dl.pop();ht=r===void 0||r})()}function mc(t){const o=[],n=Object.keys(t);return n.slice(0,3).forEach(a=>{o.push(...hl(a,t[a]))}),n.length>3&&o.push(" ..."),o}function hl(t,o,n){return typeof o=="string"?(o=JSON.stringify(o),n?o:[`${t}=${o}`]):typeof o=="number"||typeof o=="boolean"||o==null?n?o:[`${t}=${o}`]:ml(o)?(o=hl(t,vt(o.value),!0),n?o:[`${t}=Ref<`,o,">"]):No(o)?[`${t}=fn${o.name?`<${o.name}>`:""}`]:(o=vt(o),n?o:[`${t}=`,o])}const bl={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Ln(t,o,n,a){let l;try{l=a?t(...a):t()}catch(r){(function(s,d,i,c=!0){const p=d?d.vnode:null;if(d){let u=d.parent;const f=d.proxy,y=process.env.NODE_ENV!=="production"?bl[i]:i;for(;u;){const h=u.ec;if(h){for(let m=0;m<h.length;m++)if(h[m](s,f,y)===!1)return}u=u.parent}const b=d.appContext.config.errorHandler;if(b)return void Ln(b,null,10,[s,f,y])}(function(u,f,y,b=!0){if(process.env.NODE_ENV!=="production"){const m=bl[f];if(y&&(h=y,bt.push(h)),Vn("Unhandled error"+(m?` during execution of ${m}`:"")),y&&bt.pop(),b)throw u;console.error(u)}else console.error(u);var h})(s,i,p,c)})(r,o,n)}return l}let Ao=!1,vn=!1;const Ge=[];let ct=0;const Ft=[];let We=null,dt=0;const hc=Promise.resolve();function bc(t){Ge.length&&Ge.includes(t,Ao&&t.allowRecurse?ct+1:ct)||(t.id==null?Ge.push(t):Ge.splice(function(o){let n=ct+1,a=Ge.length;for(;n<a;){const l=n+a>>>1,r=Ge[l],s=Zt(r);s<o||s===o&&r.pre?n=l+1:a=l}return n}(t.id),0,t),yl())}function yl(){Ao||vn||(vn=!0,hc.then(gl))}const Zt=t=>t.id==null?1/0:t.id,yc=(t,o)=>{const n=Zt(t)-Zt(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function gl(t){vn=!1,Ao=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),Ge.sort(yc);const o=process.env.NODE_ENV!=="production"?n=>Cl(t,n):nl;try{for(ct=0;ct<Ge.length;ct++){const n=Ge[ct];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&o(n))continue;Ln(n,null,14)}}}finally{ct=0,Ge.length=0,function(n){if(Ft.length){const a=[...new Set(Ft)];if(Ft.length=0,We)return void We.push(...a);for(We=a,process.env.NODE_ENV!=="production"&&(n=n||new Map),We.sort((l,r)=>Zt(l)-Zt(r)),dt=0;dt<We.length;dt++)process.env.NODE_ENV!=="production"&&Cl(n,We[dt])||We[dt]();We=null,dt=0}}(t),Ao=!1,(Ge.length||Ft.length)&&gl(t)}}function Cl(t,o){if(t.has(o)){const n=t.get(o);if(n>100){const a=o.ownerInstance,l=a&&xl(a.type);return Vn(`Maximum recursive updates exceeded${l?` in component <${l}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}t.set(o,n+1)}else t.set(o,1)}const eo=new Set;process.env.NODE_ENV!=="production"&&(Bn().__VUE_HMR_RUNTIME__={createRecord:Fn(function(t,o){return Oo.has(t)?!1:(Oo.set(t,{initialDef:to(o),instances:new Set}),!0)}),rerender:Fn(function(t,o){const n=Oo.get(t);n&&(n.initialDef.render=o,[...n.instances].forEach(a=>{o&&(a.render=o,to(a.type).render=o),a.renderCache=[],a.update()}))}),reload:Fn(function(t,o){const n=Oo.get(t);if(!n)return;o=to(o),wl(n.initialDef,o);const a=[...n.instances];for(const r of a){const s=to(r.type);eo.has(s)||(s!==n.initialDef&&wl(s,o),eo.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(eo.add(s),r.ceReload(o.styles),eo.delete(s)):r.parent?bc(r.parent.update):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}l=()=>{for(const r of a)eo.delete(to(r.type))},al(l)?Ft.push(...l):We&&We.includes(l,l.allowRecurse?dt+1:dt)||Ft.push(l),yl();var l})});const Oo=new Map;function to(t){return No(o=t)&&"__vccOpts"in o?t.__vccOpts:t;var o}function wl(t,o){En(t,o);for(const n in t)n==="__file"||n in o||delete t[n]}function Fn(t){return(o,n)=>{try{return t(o,n)}catch(a){console.error(a),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let $n;process.env.NODE_ENV;let kl="__VUE_INSTANCE_SETTERS__";($n=Bn()[kl])||($n=Bn()[kl]=[]),$n.push(t=>t);const gc=/(?:^|[-_])(\w)/g,Cc=t=>t.replace(gc,o=>o.toUpperCase()).replace(/[-_]/g,"");function xl(t,o=!0){return No(t)?t.displayName||t.name:t.name||o&&t.__name}function _l(t,o,n=!1){let a=xl(o);if(!a&&o.__file){const l=o.__file.match(/([^/\\]+)\.\w+$/);l&&(a=l[1])}if(!a&&t&&t.parent){const l=r=>{for(const s in r)if(r[s]===o)return s};a=l(t.components||t.parent.type.components)||l(t.appContext.components)}return a?Cc(a):n?"App":"Anonymous"}const yt=(t,o)=>function(n,a,l=!1){let r,s;const d=No(n);return d?(r=n,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:nl):(r=n.get,s=n.set),new fc(r,s,d||!s,l)}(t,0,!1);function wc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Sl,Tl={exports:{}};function kc(){return Sl||(Sl=1,Tl.exports=function(){var t=1e3,o=6e4,n=36e5,a="millisecond",l="second",r="minute",s="hour",d="day",i="week",c="month",p="quarter",u="year",f="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var F=["th","st","nd","rd"],k=P%100;return"["+P+(F[(k-20)%10]||F[k]||F[0])+"]"}},C=function(P,F,k){var E=String(P);return!E||E.length>=F?P:""+Array(F+1-E.length).join(k)+P},g={s:C,z:function(P){var F=-P.utcOffset(),k=Math.abs(F),E=Math.floor(k/60),O=k%60;return(F<=0?"+":"-")+C(E,2,"0")+":"+C(O,2,"0")},m:function P(F,k){if(F.date()<k.date())return-P(k,F);var E=12*(k.year()-F.year())+(k.month()-F.month()),O=F.clone().add(E,c),v=k-O<0,M=F.clone().add(E+(v?-1:1),c);return+(-(E+(k-O)/(v?O-M:M-O))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:c,y:u,w:i,d,D:f,h:s,m:r,s:l,ms:a,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},T="en",w={};w[T]=m;var x="$isDayjsObject",S=function(P){return P instanceof B||!(!P||!P[x])},N=function P(F,k,E){var O;if(!F)return T;if(typeof F=="string"){var v=F.toLowerCase();w[v]&&(O=v),k&&(w[v]=k,O=v);var M=F.split("-");if(!O&&M.length>1)return P(M[0])}else{var _=F.name;w[_]=F,O=_}return!E&&O&&(T=O),O||!E&&T},$=function(P,F){if(S(P))return P.clone();var k=typeof F=="object"?F:{};return k.date=P,k.args=arguments,new B(k)},A=g;A.l=N,A.i=S,A.w=function(P,F){return $(P,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var B=function(){function P(k){this.$L=N(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[x]=!0}var F=P.prototype;return F.parse=function(k){this.$d=function(E){var O=E.date,v=E.utc;if(O===null)return new Date(NaN);if(A.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var M=O.match(b);if(M){var _=M[2]-1||0,V=(M[7]||"0").substring(0,3);return v?new Date(Date.UTC(M[1],_,M[3]||1,M[4]||0,M[5]||0,M[6]||0,V)):new Date(M[1],_,M[3]||1,M[4]||0,M[5]||0,M[6]||0,V)}}return new Date(O)}(k),this.init()},F.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},F.$utils=function(){return A},F.isValid=function(){return this.$d.toString()!==y},F.isSame=function(k,E){var O=$(k);return this.startOf(E)<=O&&O<=this.endOf(E)},F.isAfter=function(k,E){return $(k)<this.startOf(E)},F.isBefore=function(k,E){return this.endOf(E)<$(k)},F.$g=function(k,E,O){return A.u(k)?this[E]:this.set(O,k)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(k,E){var O=this,v=!!A.u(E)||E,M=A.p(k),_=function(Q,J){var oe=A.w(O.$u?Date.UTC(O.$y,J,Q):new Date(O.$y,J,Q),O);return v?oe:oe.endOf(d)},V=function(Q,J){return A.w(O.toDate()[Q].apply(O.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(J)),O)},D=this.$W,L=this.$M,I=this.$D,U="set"+(this.$u?"UTC":"");switch(M){case u:return v?_(1,0):_(31,11);case c:return v?_(1,L):_(0,L+1);case i:var H=this.$locale().weekStart||0,q=(D<H?D+7:D)-H;return _(v?I-q:I+(6-q),L);case d:case f:return V(U+"Hours",0);case s:return V(U+"Minutes",1);case r:return V(U+"Seconds",2);case l:return V(U+"Milliseconds",3);default:return this.clone()}},F.endOf=function(k){return this.startOf(k,!1)},F.$set=function(k,E){var O,v=A.p(k),M="set"+(this.$u?"UTC":""),_=(O={},O[d]=M+"Date",O[f]=M+"Date",O[c]=M+"Month",O[u]=M+"FullYear",O[s]=M+"Hours",O[r]=M+"Minutes",O[l]=M+"Seconds",O[a]=M+"Milliseconds",O)[v],V=v===d?this.$D+(E-this.$W):E;if(v===c||v===u){var D=this.clone().set(f,1);D.$d[_](V),D.init(),this.$d=D.set(f,Math.min(this.$D,D.daysInMonth())).$d}else _&&this.$d[_](V);return this.init(),this},F.set=function(k,E){return this.clone().$set(k,E)},F.get=function(k){return this[A.p(k)]()},F.add=function(k,E){var O,v=this;k=Number(k);var M=A.p(E),_=function(L){var I=$(v);return A.w(I.date(I.date()+Math.round(L*k)),v)};if(M===c)return this.set(c,this.$M+k);if(M===u)return this.set(u,this.$y+k);if(M===d)return _(1);if(M===i)return _(7);var V=(O={},O[r]=o,O[s]=n,O[l]=t,O)[M]||1,D=this.$d.getTime()+k*V;return A.w(D,this)},F.subtract=function(k,E){return this.add(-1*k,E)},F.format=function(k){var E=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var v=k||"YYYY-MM-DDTHH:mm:ssZ",M=A.z(this),_=this.$H,V=this.$m,D=this.$M,L=O.weekdays,I=O.months,U=O.meridiem,H=function(J,oe,ae,re){return J&&(J[oe]||J(E,v))||ae[oe].slice(0,re)},q=function(J){return A.s(_%12||12,J,"0")},Q=U||function(J,oe,ae){var re=J<12?"AM":"PM";return ae?re.toLowerCase():re};return v.replace(h,function(J,oe){return oe||function(ae){switch(ae){case"YY":return String(E.$y).slice(-2);case"YYYY":return A.s(E.$y,4,"0");case"M":return D+1;case"MM":return A.s(D+1,2,"0");case"MMM":return H(O.monthsShort,D,I,3);case"MMMM":return H(I,D);case"D":return E.$D;case"DD":return A.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return H(O.weekdaysMin,E.$W,L,2);case"ddd":return H(O.weekdaysShort,E.$W,L,3);case"dddd":return L[E.$W];case"H":return String(_);case"HH":return A.s(_,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return Q(_,V,!0);case"A":return Q(_,V,!1);case"m":return String(V);case"mm":return A.s(V,2,"0");case"s":return String(E.$s);case"ss":return A.s(E.$s,2,"0");case"SSS":return A.s(E.$ms,3,"0");case"Z":return M}return null}(J)||M.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(k,E,O){var v,M=this,_=A.p(E),V=$(k),D=(V.utcOffset()-this.utcOffset())*o,L=this-V,I=function(){return A.m(M,V)};switch(_){case u:v=I()/12;break;case c:v=I();break;case p:v=I()/3;break;case i:v=(L-D)/6048e5;break;case d:v=(L-D)/864e5;break;case s:v=L/n;break;case r:v=L/o;break;case l:v=L/t;break;default:v=L}return O?v:A.a(v)},F.daysInMonth=function(){return this.endOf(c).$D},F.$locale=function(){return w[this.$L]},F.locale=function(k,E){if(!k)return this.$L;var O=this.clone(),v=N(k,E,!0);return v&&(O.$L=v),O},F.clone=function(){return A.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},P}(),j=B.prototype;return $.prototype=j,[["$ms",a],["$s",l],["$m",r],["$H",s],["$W",d],["$M",c],["$y",u],["$D",f]].forEach(function(P){j[P[1]]=function(F){return this.$g(F,P[0],P[1])}}),$.extend=function(P,F){return P.$i||(P(F,B,$),P.$i=!0),$},$.locale=N,$.isDayjs=S,$.unix=function(P){return $(1e3*P)},$.en=w[T],$.Ls=w,$.p={},$}()),Tl.exports}var xc=wc(kc()),Nl=typeof global=="object"&&global&&global.Object===Object&&global,_c=typeof self=="object"&&self&&self.Object===Object&&self,Ze=Nl||_c||Function("return this")(),$t=Ze.Symbol,Al=Object.prototype,Sc=Al.hasOwnProperty,Tc=Al.toString,oo=$t?$t.toStringTag:void 0,Nc=Object.prototype.toString,Ol=$t?$t.toStringTag:void 0;function Eo(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Ol&&Ol in Object(t)?function(o){var n=Sc.call(o,oo),a=o[oo];try{o[oo]=void 0;var l=!0}catch{}var r=Tc.call(o);return l&&(n?o[oo]=a:delete o[oo]),r}(t):function(o){return Nc.call(o)}(t)}function El(t){return t!=null&&typeof t=="object"}function Bl(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function Ac(t){if(!Bl(t))return!1;var o=Eo(t);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[object Proxy]"}var Vl,In=Ze["__core-js_shared__"],Ll=(Vl=/[^.]+$/.exec(In&&In.keys&&In.keys.IE_PROTO||""))?"Symbol(src)_1."+Vl:"",Oc=Function.prototype.toString;function gt(t){if(t!=null){try{return Oc.call(t)}catch{}try{return t+""}catch{}}return""}var Ec=/^\[object .+?Constructor\]$/,Bc=Function.prototype,Vc=Object.prototype,Lc=Bc.toString,vc=Vc.hasOwnProperty,Fc=RegExp("^"+Lc.call(vc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $c(t){return!(!Bl(t)||(o=t,Ll&&Ll in o))&&(Ac(t)?Fc:Ec).test(gt(t));var o}function Ct(t,o){var n=function(a,l){return a==null?void 0:a[l]}(t,o);return $c(n)?n:void 0}var Dn=Ct(Ze,"WeakMap");(function(){try{var t=Ct(Object,"defineProperty");return t({},"",{}),t}catch{}})();function vl(t){return El(t)&&Eo(t)=="[object Arguments]"}var Fl=Object.prototype,Ic=Fl.hasOwnProperty,Dc=Fl.propertyIsEnumerable;vl(function(){return arguments}());var $l=typeof me=="object"&&me&&!me.nodeType&&me,Il=$l&&typeof module=="object"&&module&&!module.nodeType&&module,Dl=Il&&Il.exports===$l?Ze.Buffer:void 0;Dl&&Dl.isBuffer;var Ml=typeof me=="object"&&me&&!me.nodeType&&me,no=Ml&&typeof module=="object"&&module&&!module.nodeType&&module,Mn=no&&no.exports===Ml&&Nl.process,It=function(){try{var t=no&&no.require&&no.require("util").types;return t||Mn&&Mn.binding&&Mn.binding("util")}catch{}}();It&&It.isTypedArray,Ct(Object,"create");var Pn=Ct(Ze,"Map"),jn=Ct(Ze,"DataView"),Rn=Ct(Ze,"Promise"),Un=Ct(Ze,"Set"),Pl="[object Map]",jl="[object Promise]",Rl="[object Set]",Ul="[object WeakMap]",zl="[object DataView]",Mc=gt(jn),Pc=gt(Pn),jc=gt(Rn),Rc=gt(Un),Uc=gt(Dn),Dt=Eo;(jn&&Dt(new jn(new ArrayBuffer(1)))!=zl||Pn&&Dt(new Pn)!=Pl||Rn&&Dt(Rn.resolve())!=jl||Un&&Dt(new Un)!=Rl||Dn&&Dt(new Dn)!=Ul)&&(Dt=function(t){var o=Eo(t),n=o=="[object Object]"?t.constructor:void 0,a=n?gt(n):"";if(a)switch(a){case Mc:return zl;case Pc:return Pl;case jc:return jl;case Rc:return Rl;case Uc:return Ul}return o}),Ze.Uint8Array;var Gl=$t?$t.prototype:void 0;Gl&&Gl.valueOf,It&&It.isMap,It&&It.isSet;const Hl=(t,o)=>{const n=Object.assign({dayjs:xc},o);let a="";const l=[];for(const d in n)a+=`${d},`,l.push(n[d]);a=a.replace(/,$/,"");const r=`function (${a}){return ${t}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...l)}catch{return t}return s},Mt=(t="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r=Object.assign({},o),s=(t||"").match(/\{(.+?)\}/g);if(s==null||s.length===0)return t;for(let d=0;d<s.length;d++){const i=s[d];let c=i.slice(1,-1).trim();const p=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=c.match(p);for(let f=0;f<u.length;f++){const y=u[f],b=r[y];b!=null&&typeof b!="function"&&(c=c.replace(y,b))}(/\(.*\)/g.test(c)||/[+/\\*]/g.test(c))&&(c=Hl(c,n)),t=t.replace(i,c)}return a&&(t=t==null?void 0:t.replace(/\n|\\n/g,"<br/>")),l&&(t=t==null?void 0:t.replace(/\s{2,}?/g," ")),t=t.replace(/Qfw\((.*?)\)/,(d,i)=>o!=null&&o.Qfw?o==null?void 0:o.Qfw(i):i)},be=(t,o)=>{if(typeof t=="string"&&typeof o=="string")return t.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof t=="string"&&Array.isArray(o)){const n=o.length;for(let a=0;a<n;a++){const l=o[a];if(typeof l=="string"&&t.toLocaleLowerCase().includes(l.toLocaleLowerCase()))return!0}}return!1},Ye=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);function zc(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3==0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),l=t.indexOf(".")>-1?o+"."+a:o,l}const Gc=(t=[],o,n=!1)=>{let{name:a="name",types:l=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,d=t.length,i=l.length;if(d!==1||n)for(let u=0;u<d;u++){const f=t[u],y=f[a];r.add(y);for(let b=0;b<i;b++){const h=l[b],{label:m,value:C}=h,g=Object.assign(Object.assign({},f),{value:f[C]});if(s.has(m)){const T=s.get(m);T.push(g),s.set(m,T)}else s.set(m,[g])}}else{const u=[];for(let y=0;y<i;y++){const b=l[y],{label:h,value:m}=b,C=Object.assign(Object.assign({},t[0]),{value:t[0][m]});r.add(h),u.push(C)}const f=t[0][a]||"";s.set(f,u)}const c=Array.from(r),p=[];for(const[u,f]of s)p.push({name:u,data:f});return{dimensions:c,dataset:p}},Hc=(t,o)=>{let{name:n="name",value:a="value",type:l="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),l=l==null?void 0:l.trim();const r=new Map,s=t.length;for(let c=0;c<s;c++){const p=t[c],u=p[n]||"",f=p[a]||"",y=p[l]||"";if(r.has(y)){const b=r.get(y);b.push(Object.assign({name:u,value:f},p)),r.set(y,b)}else r.set(y,[Object.assign({name:u,value:f},p)])}const d=[],i=[];for(const[c,p]of r)if(i.push({name:c,data:p}),p==null?void 0:p.length)if(d.length)for(const u of p)d.includes(u.name)||d.push(u.name);else d.push(...p.map(u=>u.name));return{dimensions:d,dataset:i}},Pt=(t,o)=>{var n;if(t==null)return o;const a=t.match(/\{.*\}/g);if(a==null||a.length===0)return o;const l=a.length;for(let r=0;r<l;r++){const s=a[r];if(s==null||s==="")break;let d=(n=s.slice(1,-1))===null||n===void 0?void 0:n.trim();d=d==null?void 0:d.replace(/value/g,o);try{let i=d;(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(i=Hl(d)),t=t.replace(s,i)}catch{t=t.replace(s,d)}}return t};function Wc(t){return t.isShowMarkLine?{markLine:{data:[{type:t.markLineType}]}}:{}}const Yc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,d=yt(()=>{const{gradientShow:c,gradientColors:p,gradientOffset:u,barBorderRadius:f}=t,y=s,b=y.length,h=[];for(let m=0;m<b;m++){const C=Object.assign(Object.assign({},y[m]),{type:"bar",barWidth:t.barWidth,showBackground:t.showBarBackground}),{isStack:g,stackColumns:T}=t;if(g&&T.includes(y[m].name||!T)&&(C.stack="stack"),C.label={show:t.labelShow,fontSize:t.labelFontSize,position:t.labelPosition,color:t.labelColor,width:t.labelWidth,overflow:t.labelOverflow,formatter:w=>{let x="",S=t.labelFormatter;S===""&&(S="{c}");const{seriesName:N,name:$,value:A,data:B}=w||{};return x+=Mt(S,{textData:Object.assign({name:$,value:A,a:N,b:$,c:A||0},B)},{useNewline:!0,useSpace:!0}),x}},C.itemStyle={},c&&(C.itemStyle={color:{x:t.isUseHorizontalAxis?1:0,y:0,x2:0,y2:t.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:t.colors[m]},{offset:u,color:p[m]},{offset:1,color:p[m]}]}}),f){const w=f.split(",");if(w!=null&&w.length){const x=[];for(const S of w){const N=parseFloat(S);isNaN(N)||x.push(N)}C.itemStyle.barBorderRadius=x}}t.isShowMarkLine&&(C.markLine={data:[{type:t.markLineType}]}),h.push(C)}return h}),i=yt(()=>r.map(c=>{let p={};return p=c&&typeof c=="object"?Object.assign(Object.assign({},c),{textStyle:{fontSize:n}}):{value:c,textStyle:{fontSize:n}},p}));return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:c=>{const p=c.length;let u="",f=t.tooltipFormatter;f===""&&(f="{marker} {a} {c}");for(let y=0;y<p;y++){const{marker:b,seriesName:h,name:m,value:C,data:g}=c[y]||{};if(y===0){let T=m;typeof m!="string"||m[0]!=="0"||isNaN(+m)||(T=(+m).toString()),u+=`${Pt(l,T)}<br/>`}u+=Mt(f,{textData:Object.assign({marker:b,name:m,value:C,Qfw:zc,a:h,b:m,c:C||0},g)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},legend:{type:t.legendScroll?"scroll":"plain",width:t.legendWidth,height:t.legendHeight,show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{rich:{text:{width:t.legendTextWidth,color:t.legendTextStyleColor,fontSize:t.legendFontSize}}},itemHeight:t.legendItemHeight,itemWidth:t.legendItemWidth,itemGap:t.legendItemGap,data:s.map((c,p)=>({name:c.name,itemStyle:{color:t.colors[p]},icon:t.legendType})),formatter:c=>((p="",u)=>{var f;const y=p.match(/\{(.+?)\}/g),b=((f=p.split(`
|
|
62
62
|
`))===null||f===void 0?void 0:f.length)-1;let h="";if(b)for(let C=0;C<b;C++)h+=`
|
|
63
63
|
`;let m=p;if(y!=null&&y.length){for(const C of y){const g=Mt(C,{textData:u},{useNewline:!1,useSpace:!1});g&&(m=m.replace(C,g))}return`${h}{text|${m}}`}return p})(t.legendFormatter,{name:c})},xAxis:{type:t.isUseHorizontalAxis?"value":"category",data:t.isUseHorizontalAxis?null:st(i),inverse:t.isUseHorizontalAxis?t.xAxisInverse:t.axisInverse,minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor,type:t.xAxisSplitLineType},interval:t.xAxisSplitLineInterval},splitArea:{show:t.xAxisSplitAreaShow},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,fontSize:t.xAxisLabelFontSize,formatter:c=>(typeof c!="string"||c[0]!=="0"||isNaN(+c)||(c=(+c).toString()),Pt(l,c))},axisLine:{show:t.xAxisLineShow,lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow},name:t.xAxisName,nameTextStyle:{fontSize:t.xAxisLabelFontSize,color:t.xAxisLabelColor,align:"left"},max:t.xAxisMaxValue||null},yAxis:{type:t.isUseHorizontalAxis?"category":"value",data:t.isUseHorizontalAxis?st(r):null,inverse:t.isUseHorizontalAxis?t.axisInverse:t.yAxisInverse,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:t.yAxisSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{show:t.yAxisLabelShow,fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,rotate:t.yAxisLabelRotate,width:t.yAxisLabelWidth,overflow:t.yAxisLabelOverflow,formatter:c=>Pt(a,c)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:t.yAxisName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:"right"},max:t.yAxisMaxValue||null},series:st(d)}},qc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,d=yt(()=>r.map(c=>{let p={};return p=c&&typeof c=="object"?Object.assign(Object.assign({},c),{textStyle:{fontSize:n}}):{value:c,textStyle:{fontSize:n}},p})),i=yt(()=>{const c=[],p=s.length;for(let u=0;u<p;u++){const f={};t.shadowColor&&(f.shadowColor=t.shadowColor,f.shadowBlur=t.shadowBlur,f.shadowOffsetY=t.shadowOffsetY,f.shadowOffsetX=t.shadowOffsetX),c.push(Object.assign(Object.assign(Object.assign({type:"line"},s[u]),{symbolSize:t.symbolSize,smooth:t.smooth,areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},f)}),Wc(t)))}return c});return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:c=>{const p=c.length;let u="",f=t.tooltipFormatter;f===""&&(f="{marker} {a} {c}");for(let y=0;y<p;y++){const{marker:b,seriesName:h,name:m,value:C,data:g}=c[y]||{};y===0&&(u+=`${m}<br/>`),u+=Mt(f,{textData:Object.assign({marker:b,name:m,value:C,a:h,b:m,c:C},g)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n.value},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},xAxis:{name:t.xAxisName,type:"category",data:st(d),minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,formatter:c=>Pt(l,c)},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",name:t.yAxisName,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{fontSize:n,color:t.yAxisLabelColor,formatter:c=>Pt(a,c)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{fontSize:n}},series:st(i)}},Kc=(t,o,n)=>{const{dataset:a=[]}=o;let{data:l=[]}=a[0]||{};if(Array.isArray(t.colors)){const s=t.isUseLabelColors,d=t.colors;l=l.map((i,c)=>Object.assign({label:s?{color:d[c]}:{}},i))}return{title:{text:t.titleText,subtext:t.titleSubtext,textStyle:{fontSize:t.titleFontSize,fontWeight:t.fontWeight,color:t.titleColor},left:t.textAlign||"center"},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:s=>{const{marker:d,seriesName:i,name:c,value:p,percent:u,data:f}=s||{};return Mt(t.tooltipFormatter,{textData:Object.assign({marker:d,name:c,value:p,percent:u,a:i,b:c,c:p,d:u},f)},{useNewline:!0,useSpace:!0})},textStyle:{color:t.tooltipTextStyleColor||"#333"},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n===18?n:t.labelFontSize}},series:[{data:l,type:"pie",radius:[t.innerRadius,t.outerRadius],center:[t.centerLeft,t.centerTop],roseType:t.roseType,avoidLabelOverlap:!1,minAngle:t.minAngle,label:{show:t.labelPosition!=="center"&&t.labelShow,color:t.labelColor,fontSize:n===18?n:t.labelFontSize,position:t.labelPosition,formatter:(r=t.labelFormatter,r.replace(/\\n/g,`
|
|
64
|
-
`))},labelLine:{show:t.labelLineShow,length:t.labelLineLength,length2:t.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]};var r},Xc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=yt(()=>a.map(i=>{let c={};return c=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},c})),s=yt(()=>{const i=[],c=l.length,p=t.seriesTypes;for(let u=0;u<c;u++){const f=p[u],{type:y,axisIndex:b}=f||{};let h=Object.assign({type:y,yAxisIndex:b},l[u]);if(y==="line"){const m={};t.shadowColor&&(m.shadowColor=t.shadowColor,m.shadowBlur=t.shadowBlur,m.shadowOffsetY=t.shadowOffsetY,m.shadowOffsetX=t.shadowOffsetX),h=Object.assign(Object.assign({},h),{symbolSize:t.symbolSize,smooth:t.smooth,itemStyle:{color:t.colors[u]},areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},m)})}if(y==="bar"){const{gradientShow:m,gradientColors:C,gradientOffset:g}=t,T={};if(t.barBorderRadius){const w=t.barBorderRadius.split(",");if(w!=null&&w.length){const x=[];for(const S of w){const N=parseFloat(S);isNaN(N)||x.push(N)}T.borderRadius=x}}m&&(T.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:g,color:C[u]},{offset:1,color:C[u]}]}),h=Object.assign(Object.assign({},h),{barWidth:t.barWidth,itemStyle:T})}t.isShowMarkLine&&(h.markLine={data:[{type:t.markLineType}]}),i.push(h)}return i}),d=yt(()=>{const i=t.yAxis;return i==null?void 0:i.map((c,p)=>({type:"value",minInterval:t.yAxisMinInterval,splitLine:{show:p===0?t.yAxisLeftSplitLineShow:t.yAxisRightSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:p===0?t.yAxisLeftSplitLineType:t.yAxisRightSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{fontSize:n,show:t.yAxisLabelShow,color:t.yAxisLabelColor,formatter:u=>Pt(c.axisLabelFormatter,u)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:p===0?t.yAxisLeftName:t.yAxisRightName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:p===0?"right":"left"},max:t.yAxisMaxValue||null}))});return{legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n}},tooltip:{trigger:"axis",show:t.tooltipShow,formatter:i=>{const c=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const f=t.seriesTypes;for(let y=0;y<c;y++){const b=f[y],{tooltipFormatter:h}=b||{},{marker:m,seriesName:C,name:g,value:T,data:w}=i[y]||{};y===0&&(p+=`${g}<br/>`),p+=Mt(h||u,{textData:Object.assign({marker:m,name:g,value:T,seriesName:C,a:C,b:g,c:T},w)},{useNewline:!0,useSpace:!0}),p+="<br/>"}return p},textStyle:{color:t.tooltipTextStyleColor||"#333",fontSize:n},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},xAxis:{name:t.xAxisName,minInterval:t.xAxisMinInterval,type:"category",data:st(r),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:st(d),series:st(s)}},Qc=(t,o,n=12)=>Object.assign(Object.assign({},(a=>({title:{text:a.titleText,subtext:a.titleSubtext,textStyle:{fontSize:a.titleFontSize,fontWeight:a.fontWeight,color:a.titleColor},left:a.textAlign||"center"},grid:{top:a.gridTop,bottom:a.gridBottom,left:a.gridLeft,right:a.gridRight,containLabel:a.gridContainLabel},color:a.colors}))(t)),((a,l,r)=>{switch(a.type){case"bar":return Yc(a,l,r);case"line":return qc(a,l,r);case"pie":return Kc(a,l,r);case"comboGraph":return Xc(a,l,r);default:return{}}})(t,o,n)),pt=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...pt(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},Wl=(t,o)=>{var h;const n=Z.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:d=[],rightAxisList:i=[],queryColumnList:c=[],indicators:p=[]}=t;ql(n,o);const u=n,f=[...a,...l,...r,...s,...d,...i,...c,...p],y=[];for(const m of f){const C=pt((m==null?void 0:m.conditions)||[]);if(C!=null&&C.length){const g=C.filter(T=>Kl(T,o)?(T==null?void 0:T.dataType)==="component":!1).map(T=>{const w=Kl(T,o),x={};return T!=null&&T.dateFormat&&(x.format=T.dateFormat),{conditionKey:T.fieldName,conditionLabel:T.fieldName,conditionName:T.fieldName,conditionValueType:T.fieldType,id:w.id,keyName:T.fieldValue,rule:T.rule,notGlobal:!0,indexCode:T.indexCode,typeGuid:T.typeGuid,indexCodeNum:T.indexCodeNum,...x}});if(g!=null&&g.length)for(const T of g)y.find(w=>w.keyName===T.keyName)||y.push(T)}}const b=y.length;for(let m=0;m<b;m++){const C=y[m];if(C&&!((h=Object.keys(C))!=null&&h.length)||(C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:g,keyName:T,prop:w,format:x,dataType:S="component",customValue:N}=C,$=Yl(C);zn({sqlCondition:$,renderUsedComponents:o,id:g,dateFormat:x,prop:w,keyName:T,dataType:S,customValue:N}),u.push($)}for(let m=u.length-1;m>=0;m--){const C=u[m];C.globalCondition||pt(u).find(T=>T.alias===C.alias&&T.globalCondition)&&u.splice(m,1)}return u},ao=(t,o)=>{const n=[];if(t!=null&&t.length){for(const a of t)if(a.variableName){const l={variateName:a.variableName,globalCondition:!1,valueType:a.variableType,alias:a.keyName||""};zn({sqlCondition:l,renderUsedComponents:o,id:a.id,dateFormat:a.format,prop:a.dateTypeValue,keyName:a.keyName,dataType:a.dataType,customValue:a.variableValue,operateType:a.operateType,operateMode:a.operateMode,operateValue:a.operateValue}),a.format&&(l.dateFormat=a.format),a.label&&(l.label=a.label),n.push(l)}}return n};function Yl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:d="NONE",notGlobal:i=!1,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f="component"}=t;let y=n||o;return y&&s&&(y+=`-${s}`),{rule:d,label:a,fieldName:l,fieldValue:"",valueType:r,alias:y,globalCondition:!i,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f}}const Jc=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function ql(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)ql(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:d="component",customValue:i}=n,c=Yl(n);zn({sqlCondition:c,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:d,customValue:i});for(const p in c)n[p]=c[p];for(const p of Jc)delete n[p]}}function zn(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:d,customValue:i,operateValue:c,operateMode:p,operateType:u}=t,f=n.find(T=>T.id===a),{value:y,format:b="YYYY-MM-DD",operate:h,type:m="",useCurrentTime:C}=f||{},g=l||b;if(be(m,"date")){let T;if(C?T=he():T=he(y),h&&y){const{mode:w,type:x,value:S}=h;if(S)switch(x){case"add":T=T.add(S,w);break;case"minus":T=T.subtract(S,w);break}}if(c&&p&&u)switch(u){case"add":T=T.add(c,p);break;case"minus":T=T.subtract(c,p);break}o.fieldValue=(T==null?void 0:T.format(g))||"",o.dateFormat=g}else if(m==="ecanRangePicker"){const{interval:T,intervalUnit:w,startTime:x,endTime:S}=f||{};let N=r;if(!r){const A=s==null?void 0:s.split("-");A!=null&&A.length&&(N=A[A.length-1])}if(!N)return;let $=null;if(C&&(N==="startTime"?$=he().subtract(T,w):N==="endTime"&&($=he())),f[N]&&($=he(f[N])),h){const{type:A,value:B,mode:j}=h;switch(A){case"add":$=$&&$.add(B,j);break;case"minus":$=$&&$.subtract(B,j)}}if(c&&p&&u){if(c==="rangeValue"){if(x&&S){const A=he(S).diff(he(x),p)+1;switch(u){case"add":$=$&&$.add(A,p);break;case"minus":$=$&&$.subtract(A,p)}}}else if(!isNaN(+c))switch(u){case"add":$=$&&$.add(c,p);break;case"minus":$=$&&$.subtract(c,p)}}if($&&(o.fieldValue=$==null?void 0:$.format(g)),N==="rangeValue"&&x&&S){const A=Zc(g);A&&(o.fieldValue=he(S).diff(he(x),A)+1)}o.dateFormat=g}else{const T=y&&y.match(/\{(.+?)\}/g);T!=null&&T.length?o.fieldValue="":o.fieldValue=y}d===""&&(o.fieldValue=i||"")}const Bo=t=>{let o="";switch(t){case"ecanDatePicker":case"ecanRangePicker":o="dateChange";break;case"ecanTimeDisplay":o="timeChange";break;case"ecanSelect":case"ecanTreeSelect":o="selectChange";break;case"ecanTabs":o="tabChange";break;case"ecanInput":o="inputChange";break;case"ecanCheckbox":case"ecanRadio":o="checkboxChange";break;case"ecanText":o="valueChange";break;case"ecanImage":o="click";break}return o};function Kl(t,o){var n;if(t.componentId)return o.find(a=>a.id===t.componentId);if(t.dataType==="component")if(t.fieldType==="DATE"){const a=(n=t.fieldValue)==null?void 0:n.split("-");return a!=null&&a.length?a[0]:null}else return o.find(a=>a.keyName===t.fieldValue);else return null}function Zc(t){const o=t.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}function ed(t,o){let n=t[o.label];if((n||n===0)&&n!==""&&o.dataFormat&&o.dataFormat.length!==0){if(o.dataFormat.includes("#.00")&&(typeof n!="number"&&(n=n.replace(/,/g,"")),Number(n)||Number(n)===0)){const a=o.retentiondigit?o.retentiondigit-0:o.retentiondigit;n=Number(n).toFixed(a)}if(o.dataFormat.includes("#,000")){const a=n.toString();a.includes(",")||(n=td(a))}}return n}function td(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3===0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),t.indexOf(".")>-1?l=o+"."+a:l=o,l}const Xl=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],Ql=t=>({0:"文本",1:"数值",2:"日期"})[t],Jl=t=>t==="0"?"手工录入":t==="1"?"系统取数":t==="2"?"运算加工":"",Zl=t=>{let o="";switch(t){case"1":o="人力系统";break;case"2":o="绩效系统";break;case"3":o="预算系统";break;case"4":o="财务系统";break;case"5":o="成本系统";break;case"6":o="物流系统";break;case"7":o="固定资产系统";break;case"8":o="OA办公系统";break;case"9":o="电子档案系统";break;case"10":o="个人收入系统";break;case"11":o="奖金二次分配系统";break;case"12":o="财务管理系统";break;case"13":o="报销系统";break;case"14":o="科研管理系统";break;case"15":o="审计系统";break;case"16":o="分组器系统";break}return o},er=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",od=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:ja,CaretDownOutlined:Ma,LoadingOutlined:Ds,Draggable:Bt,ATooltip:R.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(t,{emit:o,expose:n}){var x;const a=(x=window==null?void 0:window.config)==null?void 0:x.pageId,l=e.inject(Ee),r=e.unref(e.inject(Be)),s=e.inject("setItemDisabled",S=>!1),d=e.ref([]),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),f=e.ref(!1);e.watch(()=>t.data,S=>{t.isSub&&(S==null||S.forEach(N=>{var $;N!=null&&N.isLeaf||($=N.dataViewColumns)==null||$.forEach(A=>{A.show=!0,A.edit=!1,A.title&&(A.label=A.title)})}),d.value=S)},{deep:!0,immediate:!0});const y=()=>{var S;t.isSub||(S=e.unref(i))==null||S.removeEventListener("scroll",g)},b=async S=>{var A;if(e.unref(p))return;const N=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const $={source:t.source,pageId:a,dataSourceId:N,indexName:u.value};S?(S.loading=!0,$.indexTypeGuid=S.indexTypeGuid,$.isLeaf=S.isLeaf):c&&($.queryRequest={pageSize:c.pageSize,pageNum:c.currentPage});try{const B=await l.post(`${Se}/diagram/sourceList`,$,{headers:{Authentication:r,operateContext:"ygt"}}),{success:j,data:P={}}=B.data;if(j){const{rows:F=[],total:k=0}=P;F==null||F.forEach(E=>{var O;(S==null?void 0:S.isLeaf)==="1"||t.graphicConfig.dataSourceId?(O=E.dataViewColumns)==null||O.forEach(v=>{v.show=!0,v.edit=!1,v.title&&(v.label=v.title)}):E.show=!1}),S?(S.children=F,S.show=!0,F!=null&&F.length||(S.noData=!0)):(d.value=e.unref(d).concat(F),c.totalResult=+k,((A=e.unref(d))==null?void 0:A.length)>=k&&y())}S&&(S.loading=!1),p.value=!1}catch{S&&(S.loading=!1),p.value=!1}},h=async S=>{const N=d.value[S],{children:$=[]}=N;$!=null&&$.length?N.show=!N.show:!N.noData&&N.isLeaf?b(N):N.noData&&(N.show=!N.show)},m=(S,N)=>{o("onDragStart",S,N)},C=S=>{S.show=!S.show},g=S=>{S.target.scrollTop+S.target.clientHeight+20>=S.target.scrollHeight&&(c.currentPage++,b())},T=async()=>{await b(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&c.totalResult>e.unref(d).length&&(c.currentPage++,T())})},w=async S=>{var N;y(),f.value=!0,c.currentPage=1,c.totalResult=0,d.value=[],u.value=S,await T(),f.value=!1,(N=e.unref(i))==null||N.addEventListener("scroll",g)};return e.onMounted(async()=>{var S;t.isSub||(T(),(S=e.unref(i))==null||S.addEventListener("scroll",g))}),e.onUnmounted(()=>{y()}),n({handleSearch:w}),{columnRef:i,sourceList:d,searchLoading:f,onToggleGroup:h,onToggleSource:C,setItemDisabled:s,onDragStart:m,mapDataSetScope:Ql,mapScope:Xl,getLoadType:Jl,getUseType:Zl,getSourceType:er}}}),_y="",nd={key:0,class:"no-data"},ad={class:"column-item"},ld=["onClick"],rd={key:3,class:"item-name"},id={key:0},sd={class:"column-item"},cd={key:0},dd={key:1},pd={key:2},ud=["onClick"],fd={class:"column-child-item"},md={class:"field"},hd={class:"column-child-item-name"};function bd(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),d=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),c=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(f,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var y;return[!((y=t.sourceList)!=null&&y.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",nd,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(b,h)=>(e.openBlock(),e.createElementBlock("div",{key:b.indexTypeGuid||b.id},[e.createElementVNode("div",ad,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleGroup(h)},[b.loading?(e.openBlock(),e.createBlock(s,{key:0})):b.show?(e.openBlock(),e.createBlock(d,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),b.isLeaf?(e.openBlock(),e.createElementBlock("span",rd,e.toDisplayString(b.indexTypeCode+"."+b.indexTypeName),1)):e.createCommentVNode("",!0)],8,ld)]),b.show?(e.openBlock(),e.createElementBlock("div",id,[e.createVNode(c,{data:b.children,isSub:!0,hasChildren:b.isLeaf==="0",graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onOnDragStart:t.onDragStart},null,8,["data","hasChildren","graphicConfig","onOnDragStart"])])):e.createCommentVNode("",!0)]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.sourceList,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:e.normalizeClass(t.setItemDisabled(b.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",sd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(b.loadType)),1),b.useType?(e.openBlock(),e.createElementBlock("div",cd,"数据使用系统:"+e.toDisplayString(t.getUseType(b.useType)),1)):e.createCommentVNode("",!0),b.systemSource?(e.openBlock(),e.createElementBlock("div",dd,"制度出处:"+e.toDisplayString(b.systemSource),1)):e.createCommentVNode("",!0),b.dataTo?(e.openBlock(),e.createElementBlock("div",pd,"数据来源:"+e.toDisplayString(t.getSourceType(b.dataTo)),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:h=>t.onToggleSource(b)},[b.show?(e.openBlock(),e.createBlock(d,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((b.indexCode?b.indexCode:"")+" "+b.name),1)],8,ud)]),_:2},1024)]),b.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:b.dataViewColumns,"onUpdate:modelValue":h=>b.dataViewColumns=h,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(b.dataViewColumns),onStart:h=>t.onDragStart(h,b)},{item:e.withCtx(({element:h})=>[e.createElementVNode("div",fd,[e.createElementVNode("span",md," 【"+e.toDisplayString(h.scope==="FIELD"?t.mapDataSetScope(h.genericType):t.mapScope(h.scope))+"】 ",1),e.createElementVNode("span",hd,e.toDisplayString(h.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const yd=ne(od,[["render",bd],["__scopeId","data-v-ab51ed18"]]),gd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:ja,CaretDownOutlined:Ma,IndSourceList:yd,AInputSearch:R.InputSearch,ASpin:R.Spin,APagination:R.Pagination,Draggable:Bt,ATooltip:R.Tooltip},setup(){var x;const t=(x=window==null?void 0:window.config)==null?void 0:x.pageId,o=e.inject(Ee),n=e.unref(e.inject(Be)),a=e.inject(Ie),l=e.computed(()=>{var S;return(S=e.unref(a))==null?void 0:S.graphicConfig}),r=e.computed(()=>{var S;return(S=e.unref(l))==null?void 0:S.dataSourceId}),s=e.ref([]),d=e.ref(!1),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Yt),u=e.ref(""),f=async()=>{if(e.unref(C).source==="INDICATOR_LIB")return;d.value=!0;const S={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:c.pageSize,pageNum:c.currentPage}};S.source==="EDV_DATA_SET"&&(S.edvDataSetName=S.indexName,delete S.indexName);try{const N=await o.post(`${Se}/diagram/sourceList`,S,{headers:{Authentication:n,operateContext:"ygt"}});d.value=!1;const{success:$,data:A={}}=N.data;if($){const{rows:B=[],total:j=0}=A;B==null||B.forEach(P=>{var F;P.show=!1,(F=P.dataViewColumns)==null||F.forEach(k=>{k.show=!0,k.edit=!1,k.title&&(k.label=k.title)})}),s.value=B,c.totalResult=+j}}catch{d.value=!1}},y=S=>{s.value[S].show=!s.value[S].show},b=()=>{var S;c.currentPage=1,f(),e.unref(C).source==="INDICATOR_LIB"&&((S=e.unref(i))==null||S.handleSearch(e.unref(u)))},h=Z.debounce(()=>{c.currentPage=1,f()},200),m=(S,N)=>{c.pageSize=N,c.currentPage=S,f()};e.onMounted(()=>{f()});const C=e.inject(ke),g=e.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let N=[];for(const $ in e.unref(C))if(Object.prototype.hasOwnProperty.call(e.unref(C),$)&&S.includes($)){const A=e.unref(C)[$];Array.isArray(A)&&(N=N.concat(A))}return N}),T=(S=[])=>{let N=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const $ of e.unref(g))if(!S.find(B=>B.parentId===$.parentId)){N=!0;break}}else for(const $ of e.unref(g))if(!S.find(B=>B.typeGuid===$.typeGuid)){N=!0;break}return N};return e.provide("setItemDisabled",T),{dataSourceList:s,dataSourceLoading:d,pagination:c,onToggleGroup:y,mapScope:Xl,mapDataSetScope:Ql,onSearch:b,onChange:h,source:p,onPaginationChange:m,searchText:u,setItemDisabled:T,onDragStart:(S,N)=>{const $=N.dataViewColumns[S.oldIndex];let A={};N.dataSetParams&&(A=N.dataSetParams),$&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...$,dataTo:N.dataTo,dataSetParams:A})),N.dataTo==="1"&&(N!=null&&N.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(N.hrpIndexVariates)),N.dataTo==="2"&&(N!=null&&N.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(N.dataSetParams)))},getSourceType:er,getLoadType:Jl,getUseType:Zl,graphicConfig:C,indSourceRef:i}}}),Sy="",Cd={class:"data-source-list"},wd={class:"columns"},kd={class:"column-item"},xd={key:0},_d={key:1},Sd=["onClick"],Td={key:0},Nd={class:"column-child-item"},Ad={class:"column-child-item-name"};function Od(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),d=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),c=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin"),y=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",Cd,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=b=>t.searchText=b),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(d,{key:0,ref:"indSourceRef",data:t.dataSourceList,hasChildren:!0,isSub:!1,graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onSetItemDisabled:t.setItemDisabled,onOnDragStart:t.onDragStart},null,8,["data","graphicConfig","onSetItemDisabled","onOnDragStart"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",wd,[e.createVNode(f,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(b,h)=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:e.normalizeClass(t.setItemDisabled(b.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",kd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(b.loadType)),1),b.useType?(e.openBlock(),e.createElementBlock("div",xd,"数据使用系统:"+e.toDisplayString(t.getUseType(b.useType)),1)):e.createCommentVNode("",!0),b.systemSource?(e.openBlock(),e.createElementBlock("div",_d,"制度出处:"+e.toDisplayString(b.systemSource),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleGroup(h)},[b.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(c,{key:1})),e.createTextVNode(" "+e.toDisplayString((b.indexCode?b.indexCode:"")+" "+b.name)+"【"+e.toDisplayString(t.getSourceType(b.dataTo))+"】 ",1)],8,Sd)]),_:2},1024)]),b.show?(e.openBlock(),e.createElementBlock("div",Td,[e.createVNode(u,{modelValue:b.dataViewColumns,"onUpdate:modelValue":m=>b.dataViewColumns=m,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(b.dataViewColumns),onStart:m=>t.onDragStart(m,b)},{item:e.withCtx(({element:m})=>[e.createElementVNode("div",Nd,[e.createTextVNode(" 【"+e.toDisplayString(m.scope==="FIELD"?t.mapDataSetScope(m.genericType):t.mapScope(m.scope))+"】 ",1),e.createElementVNode("span",Ad,e.toDisplayString(m.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(y,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=b=>t.pagination.pageSize=b),total:t.pagination.totalResult,"show-total":b=>`共 ${b} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=b=>t.pagination.currentPage=b),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const Ed=ne(gd,[["render",Od],["__scopeId","data-v-b9ee6c24"]]),Bd=e.defineComponent({name:"DataList",components:{DataSourceList:Ed,DataViewList:si},setup(){return{source:e.inject(Yt)}}});function Vd(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),d=e.resolveComponent("data-source-list");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.source==="SQL_VIEW"?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),t.source==="INDICATOR_LIB"||t.source==="EDV_DATA_SET"?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)],64)}const Ld=ne(Bd,[["render",Vd]]),tr={mounted(t){t.focus()}},vd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Bt,AModal:R.Modal,AButton:R.Button,ASelect:R.Select,ASelectOption:R.SelectOption,DeleteOutlined:Ha},setup(t,{expose:o}){var A;const n=(A=window==null?void 0:window.config)==null?void 0:A.pageId,a=e.inject(Ee),l=e.unref(e.inject(Be)),r=e.inject(ke),s=e.inject(Ne),d=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),c=e.ref([]),p=e.ref("1"),u=e.ref([]),f=B=>{const j=t.sortList.filter(F=>!e.unref(u).find(k=>k.columnName===F.name)||B.columnName===F.name),P=[];return j.forEach((F,k)=>{P.includes(F.name)?F.name=`${F.name}_ecanrepeat_${k}`:P.push(F.name)}),j},y=async()=>{try{const B=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(d),dataViewId:e.unref(i),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:n,pageFlag:!0,edvDataSetId:e.unref(r).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:j,data:P=[]}=B.data;j&&(c.value=P==null?void 0:P.slice(0,200))}catch(B){console.error(B)}},b=()=>{var k,E;const B=((k=e.unref(r)[t.type])==null?void 0:k.slice())||[],j=B[t.index],{label:P,name:F}=t.item;e.unref(p)==="2"?j.sort={label:P,columnName:F,type:"CUSTOM",customOrderColumns:e.unref(c)}:e.unref(p)==="1"&&((E=e.unref(u))!=null&&E.length?j.sort=Z.cloneDeep(e.unref(u)):delete j.sort),s({[t.type]:B})};let h=!1;const m=()=>{h=!0},C=e.ref(!1),g=B=>{var P;const{sort:j}=B;j?Array.isArray(j)?(p.value=((P=j[0])==null?void 0:P.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=Z.cloneDeep(j):u.value=[]):(p.value=(j==null?void 0:j.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[Z.cloneDeep(j)]:u.value=[]):u.value=[],C.value=!0},T=()=>{C.value=!1},w=()=>{e.unref(p)==="2"?(h&&b(),h=!1):b(),T()};return o({showModal:g}),e.watch(C,B=>{var j,P;if(B){const F=(P=(j=t.item)==null?void 0:j.sort)==null?void 0:P.customOrderColumns;F==null?y():c.value=F}else c.value=[];window.changeShowTable&&window.changeShowTable(!B)},{flush:"post"}),{visible:C,customSortList:c,activeKey:p,combSortList:u,getSortOptions:f,onChange:m,onDeleteConfig:()=>{var P;const B=((P=e.unref(r)[t.type])==null?void 0:P.slice())||[],j=B[t.index];delete j.sort,s({[t.type]:B}),T()},onCancel:w,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:B=>{u.value.splice(B,1)},onColumnChange:B=>{const j=e.unref(u).find(P=>P.columnName===B);if(j){const P=t.sortList.find(F=>F.name===B);P&&(j.label=P.label,P.defaultCode?j.defaultCode=P.defaultCode:delete j.defaultCode)}}}}}),Ty="",Fd={class:"button-wrapper"},$d={class:"list-wrapper"},Id={class:"button-wrapper"},Dd={class:"sort-item"};function Md(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-tabs"),y=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(y,{title:"排序配置",visible:t.visible,"destroy-on-close":"",width:"50%",onCancel:t.onCancel,bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null},{default:e.withCtx(()=>[e.createVNode(f,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=b=>t.activeKey=b)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Fd,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",$d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(b,h)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:h},[e.createVNode(d,{value:b.columnName,"onUpdate:value":m=>b.columnName=m,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(b),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(d,{value:b.order,"onUpdate:value":m=>b.order=m,style:{"margin-left":"10px",width:"100px"},placeholder:"升/降序"},{default:e.withCtx(()=>[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})]),_:2},1032,["value","onUpdate:value"]),e.createVNode(c,{style:{color:"red","margin-left":"10px"},onClick:m=>t.handleDeleteSort(h)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[e.createVNode(s,{danger:"",onClick:t.onDeleteConfig},{default:e.withCtx(()=>[e.createTextVNode(" 删除配置 ")]),_:1},8,["onClick"])]),e.createVNode(u,{modelValue:t.customSortList,"onUpdate:modelValue":o[0]||(o[0]=b=>t.customSortList=b),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",Dd,e.toDisplayString(b),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Pd=ne(vd,[["render",Md],["__scopeId","data-v-6a468e35"]]),jd=e.defineComponent({name:"CustomGroupModal",directives:{focus:tr},components:{CloseOutlined:Qt,AModal:R.Modal,ASelect:R.Select,ASelectOption:R.SelectOption,AButton:R.Button,AInput:R.Input,ACheckbox:R.Checkbox,ACollapse:R.Collapse,ACollapsePanel:R.CollapsePanel,ATag:R.Tag,ACheckableTag:R.CheckableTag},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},setup(t,{expose:o}){var M;const n=e.inject(Ee),a=(M=window==null?void 0:window.config)==null?void 0:M.pageId,l=e.unref(e.inject(Be));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),d=e.ref(null),i=e.ref([]),c=e.ref([]),p=e.computed(()=>{const _=e.unref(c).map(V=>V.title);return new Set(_)}),u=e.ref([]);e.watch(()=>e.unref(c).length,_=>{u.value=new Array(_).fill(!1)});const f=e.computed(()=>{let _=0;return e.unref(c).forEach(V=>{var D;(D=V.data)==null||D.forEach(L=>{L.checked&&_++})}),_}),y=()=>{const _=e.unref(d);if(!_){R.message.error("创建分组名不能空");return}e.unref(p).has(_)?R.message.error("分组名已存在,请重新命名"):(e.unref(c).push({title:_,data:[]}),r=!0)},b=_=>{e.unref(c).splice(_,1),r=!0},h=e.ref(null),m=()=>{if(e.unref(f)===0){R.message.error("当前移入分组已选个数为0");return}const _=e.unref(h);if(_==null){R.message.error("请选择移入分组");return}if(!e.unref(c)[_]){R.message.error("移入分组不存在,请重新选择");return}const V=[],D=e.unref(c).length;for(let L=0;L<D;L++){const I=e.unref(c)[L];e.unref(c)[L].data=I.data.filter(U=>(U.checked&&V.push({...U,checked:!1}),!U.checked))}e.unref(c)[_].data=[...V,...e.unref(c)[_].data],r=!0},C=_=>{e.unref(u)[_]=!0},g=_=>{e.unref(u)[_]=!1},T=(_,V)=>{const D=_.target.value;e.unref(p).has(D)&&R.message.error("组名不能相同,请修改"),e.unref(c)[V].title=D,r=!0},w=e.inject(ke),x=e.inject(Ne),S=e.computed(()=>e.unref(w).source),N=e.computed(()=>e.unref(w).dataViewId),$=e.ref(!1),A=()=>{var H,q;const _=e.unref(c);let V="";e.unref($)&&(V=(H=_[0])==null?void 0:H.title);const D=_==null?void 0:_.length,L={};for(let Q=1;Q<D;Q++){const J=_[Q]||{},{title:oe,data:ae}=J;L[oe]=(ae==null?void 0:ae.map(re=>re.label))||[]}const I=((q=e.unref(w)[t.type])==null?void 0:q.slice())||[],U=I[t.index];U.customGroup={groupInfoMap:L,otherGroupName:V},x({[t.type]:I})},B=e.ref(!1),j=()=>{B.value=!0},P=()=>{B.value=!1},F=()=>{P(),r&&A(),r=!1},k=()=>{r=!0},E=new Set,O=async()=>{const _=t.item.customGroup||{},V=_.otherGroupName,D=_.groupInfoMap;(V===""||V==null)&&($.value=!1),e.unref(c)[0]={title:V||"未分组",data:[]};let L=1;for(const I in D)if(Object.prototype.hasOwnProperty.call(D,I)){const H=D[I].map(q=>(E.add(q),{label:q,checked:!1}));e.unref(c)[L]={title:I,data:H},L++}await v()},v=async()=>{var _;try{const V=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(S),dataViewId:e.unref(N),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(w).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:D,data:L=[]}=V.data;if(D){const I=[];(_=L==null?void 0:L.slice(0,200))==null||_.forEach(U=>{E.has(U)||I.push({label:U,checked:!1})}),e.unref(c)[0].data=I}}catch(V){console.error(V)}};return e.watch(B,_=>{_&&O(),window.changeShowTable&&window.changeShowTable(!_)},{flush:"post"}),o({showModal:j}),{visible:B,title:s,activeKey:i,customGroupList:c,onCancel:F,useOtherGroup:$,selectCount:f,createGroupTitle:d,onAddGroup:y,onDeleteGroup:b,onMoveInGroup:m,selectGroupIndex:h,onEditTitle:C,onTitleChange:T,onFinishEditTitle:g,onUseOtherGroup:k,customGroupEditTitleList:u}}}),Ny="",Ay="",Rd={class:"custom-group-header"},Ud={class:"move-and-create"},zd={class:"select-tip"},Gd={class:"select-count"},Hd={class:"create-group"},Wd={class:"custom-group-content"},Yd=["onClick"],qd={class:"extra"},Kd={class:"custom-group-list"},Xd={class:"text"};function Qd(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),c=e.resolveComponent("a-input"),p=e.resolveComponent("a-checkbox"),u=e.resolveComponent("a-tag"),f=e.resolveComponent("close-outlined"),y=e.resolveComponent("a-checkable-tag"),b=e.resolveComponent("a-collapse-panel"),h=e.resolveComponent("a-collapse"),m=e.resolveComponent("a-modal"),C=e.resolveDirective("focus");return e.openBlock(),e.createBlock(m,{title:t.title,visible:t.visible,"destroy-on-close":"",width:"50%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column"},footer:null,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Rd,[e.createElementVNode("div",Ud,[e.createElementVNode("div",null,[e.createElementVNode("span",zd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Gd,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(d,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=g=>t.selectGroupIndex=g),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,T)=>(e.openBlock(),e.createBlock(s,{key:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createElementVNode("div",Hd,[e.createTextVNode(" 创建分组: "),e.createVNode(c,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[1]||(o[1]=g=>t.createGroupTitle=g),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])])]),e.createElementVNode("div",null,[e.createVNode(p,{checked:t.useOtherGroup,"onUpdate:checked":o[2]||(o[2]=g=>t.useOtherGroup=g),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])])]),e.createElementVNode("div",Wd,[e.createVNode(h,{activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=g=>t.activeKey=g),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,T)=>(e.openBlock(),e.createBlock(b,{key:T},{header:e.withCtx(()=>[t.customGroupEditTitleList[T]?e.withDirectives((e.openBlock(),e.createBlock(c,{key:1,class:"edit-title-input",value:g.title,size:"small",onChange:w=>t.onTitleChange(w,T),onBlur:w=>t.onFinishEditTitle(T),onPressEnter:w=>t.onFinishEditTitle(T)},null,8,["value","onChange","onBlur","onPressEnter"])),[[C]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(w=>t.onEditTitle(T),["prevent","stop"])},e.toDisplayString(g.title),9,Yd))]),extra:e.withCtx(()=>[e.createElementVNode("div",qd,[T===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),T!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(f,{onClick:e.withModifiers(w=>t.onDeleteGroup(T),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Kd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.data,(w,x)=>(e.openBlock(),e.createBlock(y,{color:"red",checked:w.checked,"onUpdate:checked":S=>w.checked=S,class:"custom-group",key:x},{default:e.withCtx(()=>[e.createElementVNode("span",Xd,e.toDisplayString(w.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const Jd=ne(jd,[["render",Qd],["__scopeId","data-v-a0733a80"]]);let we=(t=21)=>{let o="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let a=n[t]&63;a<36?o+=a.toString(36):a<62?o+=(a-26).toString(36).toUpperCase():a<63?o+="_":o+="-"}return o};var Zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gn={},ep={get exports(){return Gn},set exports(t){Gn=t}};(function(t,o){(function(n,a){t.exports=a()})(Zd,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var d=s.add;s.add=function(c,p){return c=Number(c),this.$utils().p(p)===a?this.add(3*c,n):d.bind(this)(c,p)};var i=s.startOf;s.startOf=function(c,p){var u=this.$utils(),f=!!u.u(p)||p;if(u.p(c)===a){var y=this.quarter()-1;return f?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return i.bind(this)(c,p)}}})})(ep);const tp=Gn;he.extend(tp);const op=e.defineComponent({name:"Condition",components:{CloseOutlined:Qt,DownOutlined:Es,AppstoreAddOutlined:dn,ASelect:R.Select,AInput:R.Input,ADatePicker:R.DatePicker,AButton:R.Button,ADropdown:R.Dropdown,AMenu:R.Menu,AMenuItem:R.MenuItem,ASubMenu:R.SubMenu,APopover:R.Popover,ATabs:R.Tabs,ATabPane:R.TabPane,ARadioGroup:R.RadioGroup,ARadio:R.Radio,AInputNumber:R.InputNumber,ASelectOption:R.SelectOption,MenuOutlined:xn},props:{data:{type:Object,default:()=>({})},level:{type:Number,default:0},index:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},setup(t){var Wt,Nt,Fe,ot,nt,at,$e,At,lt,mt,Ot,Wo,bo,yo,go;const o=(Wt=window==null?void 0:window.config)==null?void 0:Wt.pageId,n=e.inject(ke),a=e.inject(Ee),l=e.unref(e.inject(Be)),r=e.inject(fa),s=e.inject(Ue),d=e.ref(!1),i=he(),c=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(ee=>{const{keyName:le="",id:ie="",type:ue}=ee;ue==="ecanRangePicker"?W.push({value:`${ie}-startTime`,label:`${le||ie}-开始时间值`,keyName:`${le||ie}-startTime`,id:ie},{value:`${ie}-endTime`,label:`${le||ie}-结束时间值`,keyName:`${le||ie}-endTime`,id:ie}):W.push({value:ie,label:`${le||ie}`,keyName:`${le||ie}`,id:ie})}),W}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(c)]),u=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.dataViewId}),f=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.source}),y=e.ref(!1),b={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},h=[{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=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),C=e.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:""}]),g=[{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"}],T=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],w=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],x=e.ref({fieldName:(Nt=t.data)==null?void 0:Nt.fieldName,fieldType:(Fe=t.data)==null?void 0:Fe.fieldType,rule:(ot=t.data)==null?void 0:ot.rule,id:(nt=t.data)==null?void 0:nt.id,fieldValue:S(),label:(at=t.data)==null?void 0:at.label,targetSource:"",typeGuid:($e=t.data)==null?void 0:$e.typeGuid,indexCode:(At=t.data)==null?void 0:At.indexCode,indexCodeNum:(lt=t.data)==null?void 0:lt.indexCodeNum,dataType:((mt=t.data)==null?void 0:mt.dataType)||"",componentId:((Ot=t.data)==null?void 0:Ot.componentId)||"",useCurrentTime:!!((Wo=t.data)!=null&&Wo.useCurrentTime),keyValue:(bo=t.data)==null?void 0:bo.keyValue,modelKey:(yo=t.data)==null?void 0:yo.modelKey,prop:(go=t.data)==null?void 0:go.prop});function S(){const{fieldType:W="",dataType:K="",fieldValue:ee=""}=t.data;if(W==="DATE"&&K==="time")return ee&&he(ee);if(K==="component"){const le=e.unref(c).find(ie=>ie.keyName===ee);return le?le.value:ee}else return ee}const N=e.ref([]),$=e.ref(!1),A=e.computed(()=>x.value.fieldType==="DATE"),B=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let ee=[];const le=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],ie=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")ee=N.value;else if(le.includes(W)){let ue=[];for(const z in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),z)&&!ie.includes(z)){const G=e.unref(n)[z];Array.isArray(G)&&(le.includes(z)?ue=ue.concat(G.filter(Y=>Y.show)):ue=ue.concat(G))}ee=ue}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(ee=e.unref(r));return ee.map(ue=>({...ue,label:ue.label||ue.title,value:ue.name}))}),{updateCondition:j,deleteCondition:P,addCondition:F}=e.inject(wo,{updateCondition:(W,K,ee)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,ee)=>{}}),k=()=>{P(t.index,t.path)};e.watch(x,W=>{const K=Z.cloneDeep(W);W.fieldType==="DATE"&&W.dataType!=="component"&&W.fieldValue&&(K.fieldValue=W.fieldValue.format(W.dateFormat)),j(K,t.index,t.path)},{deep:!0}),e.watch(d,W=>{x.value.fieldValue="",x.value.useCurrentTime=W});const E=W=>{var se;const K=e.unref(B).find(ce=>ce.value===W)||{},{name:ee,genericType:le,id:ie,edvDataSetId:ue,label:z,typeGuid:G,indexCode:Y,indexCodeNum:X}=K;x.value={id:ie,fieldName:ee,fieldType:le,label:z,rule:"",fieldValue:le==="DATE"?null:void 0,targetSource:"",typeGuid:G,indexCode:Y,edvDataSetId:ue,indexCodeNum:X,dataType:"",useCurrentTime:!1,keyValue:((se=e.unref(x))==null?void 0:se.keyValue)||we(),modelKey:"",prop:""}},O=W=>{const K=e.unref(c).find(ee=>ee.value===W)||{};e.unref(x).componentId=K.id||""},v=e.computed(()=>{const W=e.unref(x).fieldType;return W==="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"}]:W==="NUMBER"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:W==="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=e.computed(()=>{let W="";const K=e.unref(v).find(ee=>ee.value===e.unref(x).rule);return K&&(W=K.label),W}),_=e.computed(()=>{let W={fontSize:"12px"};return e.unref(M)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),V=e.ref([]),D=async()=>{var W;if(!(e.unref(V).length>0))try{const K=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(f),dataViewId:e.unref(u),groupColumn:e.unref(x).fieldName,hrpIndexTypeGuid:e.unref(x).typeGuid,pageId:o,pageFlag:!0,edvDataSetId:e.unref(x).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:ee,data:le=[]}=K.data;ee&&(V.value=(W=le==null?void 0:le.slice(0,200))==null?void 0:W.map(ie=>({label:ie,value:ie})))}catch(K){console.error(K)}},L=W=>{e.unref(x).rule=W,e.unref(x).fieldValue=e.unref(x).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(W)&&D()},I=W=>{e.unref(x).dataType=W,e.unref(x).fieldValue="",e.unref(x).modelKey="",e.unref(x).prop=""},U=e.ref(),H=W=>{U.value=W,e.unref(x).fieldValue=(W==null?void 0:W.join(","))||""},q=W=>{const{keyPath:K}=W;e.unref(x).rule=K[0],e.unref(x).dataType=K[1],e.unref(x).dateFormat=K[2],e.unref(x).fieldValue="",e.unref(x).modelKey="",e.unref(x).prop=""};e.onMounted(async()=>{var ie,ue,z,G,Y,X,se,ce,te,ge;if(x.value.dataType=((ie=t.data)==null?void 0:ie.dataType)||"",x.value.componentId=((ue=t.data)==null?void 0:ue.componentId)||"",x.value.keyValue=(z=t.data)==null?void 0:z.keyValue,x.value.modelKey=(G=t.data)==null?void 0:G.modelKey,x.value.prop=(Y=t.data)==null?void 0:Y.prop,e.unref(x).fieldType==="DATE"){const{activeKey:pe,dateCalcTypes:de=[]}=t.data||{};if(e.unref(x).dateFormat=(X=t.data)==null?void 0:X.dateFormat,e.unref(x).activeKey=pe,e.unref(x).calcWays=((se=t.data)==null?void 0:se.calcWays)||[],e.unref(x).dateCalcTypes=de,e.unref(x).useCurrentTime&&e.unref(x).dataType!=="component"&&(d.value=!0),pe===5){const Ce=e.unref(x).calcWays[0];if(Ce){const fe=Ce.split("-");e.unref(m).expression=fe[0],e.unref(m).around=fe[1]}e.unref(m).unit=de[0]||"YEAR"}else{e.unref(x).radioValue=((ce=t.data)==null?void 0:ce.radioValue)||"";const Ce=e.unref(C).find(fe=>{var xe;return fe.key===((xe=t.data)==null?void 0:xe.activeKey)});Ce&&ft(Ce,t.data)}}else U.value=((ge=(te=t.data)==null?void 0:te.fieldValue)==null?void 0:ge.split(","))||[];const{fieldType:W,fieldName:K,rule:ee}=x.value;W!=="DATE"&&K&&ee&&["IN","NOT_IN"].includes(ee)&&D();const{source:le}=e.unref(n);le==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(pe=>{pe.data.success&&(console.log(pe.data),N.value=pe.data.data.column.map(de=>({...de,genericType:de.columnCategory==="0"?"TEXT":de.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:pe.data.data.id,name:de.columnName,label:de.columnName})))}).catch(pe=>{console.error(pe)})});const Q=W=>{if(e.unref(x).activeKey===W){e.unref(C)[W].radioValue=e.unref(x).radioValue,e.unref(C)[e.unref(x).activeKey]&&(e.unref(C)[e.unref(x).activeKey].radioValue=e.unref(x).radioValue,e.unref(x).radioValue==="1"?e.unref(C)[W].beforeNum=e.unref(x).calcWays[0]:e.unref(x).radioValue==="2"&&(e.unref(C)[W].afterNum=e.unref(x).calcWays[0]));return}e.unref(C).forEach(K=>{K.beforeNum=0,K.afterNum=0,K.radioValue="1",K.value=""})},J=(W,K)=>{y.value=!0;const ee=W.target.value,le=K.type,ie=e.unref(x).dateFormat,ue=Math.abs(K.beforeNum),z=K.afterNum;K.value=Qe(ee,le,ie,ue,z)},oe=W=>{const K=e.unref(x).activeKey;if(W!==K)return;let ee="";K===0?ee="years":K===1?ee="quarters":K===2?ee="months":K===3?ee="weeks":K===4&&(ee="days");const le=e.unref(x).dateFormat,ie=e.unref(x).radioValue;let ue=0,z=0;return ie==="1"?ue=Math.abs(e.unref(x).calcWays[0]):ie==="2"&&(z=e.unref(x).calcWays[0]),Qe(ie,ee,le,ue,z)},ae=(W,K,ee,le)=>{if(y.value=!0,K.radioValue===le){const ie=W.target.value;ee==="+"?K.value=he().add(ie,K.type).format(e.unref(x).dateFormat):K.value=he().subtract(ie,K.type).format(e.unref(x).dateFormat)}},re=(W,K)=>{e.unref(x).calcWays||(e.unref(x).calcWays=[]),e.unref(x).activeKey=K,e.unref(x).radioValue=W.radioValue,W.radioValue==="1"?e.unref(x).calcWays[0]="-"+W.beforeNum:W.radioValue==="2"?e.unref(x).calcWays[0]=W.afterNum:W.radioValue==="3"?K===4?e.unref(x).calcWays[0]="0":e.unref(x).calcWays[0]="BEGIN":W.radioValue==="4"&&(e.unref(x).calcWays[0]="END"),K===0?e.unref(x).dateCalcTypes=["YEAR"]:K===1?e.unref(x).dateCalcTypes=["QUARTER"]:K===2?e.unref(x).dateCalcTypes=["MONTH"]:K===3?e.unref(x).dateCalcTypes=["WEEK"]:K===4&&(e.unref(x).dateCalcTypes=["DAY"]),$.value=!1},He=()=>{e.unref(x).activeKey=5,e.unref(x).dateCalcTypes=[e.unref(m).unit],e.unref(x).calcWays[0]=`${e.unref(m).expression}-${e.unref(m).around}`,$.value=!1};function ft(W,K){const{radioValue:ee="",calcWays:le=[]}=K;W.radioValue=ee,le!=null&&le.length&&(ee==="1"?W.beforeNum=Math.abs(le[0]):ee==="2"&&(W.afterNum=le[0]))}function Qe(W,K,ee,le,ie){if(W==="1")return he().subtract(le,K).format(ee);if(W==="2")return he().add(ie,K).format(ee);if(W==="3"){if(K==="years")return he().startOf("year").format(ee);if(K==="quarters")return he().startOf("quarter").format(ee);if(K==="months")return he().startOf("month").format(ee);if(K==="days")return he().format(ee)}else if(W==="4"){if(K==="years")return he().endOf("year").format(ee);if(K==="quarters")return he().endOf("quarter").format(ee);if(K==="months")return he().endOf("month").format(ee)}return""}const ye=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Te=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(x).rule));return{fieldOptions:B,ruleOptions:v,onFieldChange:E,condition:x,valueOptions:V,onRuleChange:L,onDataTypeChange:I,onFieldValueSelectChange:H,fieldValues:U,onDelete:k,isDateType:A,formatList:h,tabDateList:C,compareList:g,menuRule:T,dateBtnLabel:M,downIconStyle:_,popoverVisible:$,dateRadioStyle:b,showTime:y,controlList:c,keyNameOptions:p,dataTypeList:w,customTabData:m,isUseCurrentTime:d,currentTime:i,isShowCustomDataType:Te,handleMenuClick:q,changeTabInitDate:Q,changeRadioValue:J,getFieldValue:oe,blurCompare:ae,okDatePickConfig:re,onChangeComponent:O,filterOption:ye,okCustomConfig:He,clickConditionMenu:({key:W})=>{F(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:N}}}),Oy="",Ey="",np={class:"condition"},ap=["title"],lp={class:"rule"},rp={class:"data-type"},ip={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},sp={class:"popover-content-wrap"},cp={key:0,class:"use-current-time"},dp={class:"tabFilterRadio"},pp={key:0},up={key:1},fp={style:{"margin-left":"10px"}},mp={style:{"margin-left":"10px"}},hp={style:{position:"absolute",bottom:"10px"}},bp={style:{display:"flex"}},yp={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function gp(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),c=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),f=e.resolveComponent("a-button"),y=e.resolveComponent("a-dropdown"),b=e.resolveComponent("a-date-picker"),h=e.resolveComponent("a-input"),m=e.resolveComponent("a-checkbox"),C=e.resolveComponent("a-input-number"),g=e.resolveComponent("a-radio"),T=e.resolveComponent("a-radio-group"),w=e.resolveComponent("a-tab-pane"),x=e.resolveComponent("a-tabs"),S=e.resolveComponent("appstore-add-outlined"),N=e.resolveComponent("a-popover"),$=e.resolveComponent("menu-outlined"),A=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",np,[e.createVNode(d,{class:"field-name",value:t.condition.fieldName,onChange:t.onFieldChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fieldOptions,(B,j)=>(e.openBlock(),e.createBlock(s,{key:j,value:B.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:B.label},e.toDisplayString(B.label),9,ap)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",lp,[t.isDateType?(e.openBlock(),e.createBlock(y,{key:0,class:"dropdown",trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.handleMenuClick},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.ruleOptions,B=>(e.openBlock(),e.createBlock(c,{key:B.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===B.value?"color: #1890FF;":"")},e.toDisplayString(B.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,j=>{var P;return e.openBlock(),e.createBlock(c,{key:j.value,disabled:j.value==="component"&&!((P=t.controlList)!=null&&P.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===B.value&&t.condition.dataType===j.value?"color: #1890FF;":"")},e.toDisplayString(j.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,F=>(e.openBlock(),e.createBlock(i,{key:F.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===B.value&&t.condition.dataType===j.value&&t.condition.dateFormat===F.value?"color: #1890FF;":"")},e.toDisplayString(F.label),5)]),_:2},1024))),128))]),_:2},1032,["disabled"])}),128))]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dateBtnLabel)+" ",1),e.createVNode(u,{style:e.normalizeStyle(t.downIconStyle)},null,8,["style"])]),_:1})]),_:1})):(e.openBlock(),e.createBlock(d,{key:1,style:{width:"100%"},value:t.condition.rule,options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]))]),e.withDirectives(e.createElementVNode("div",rp,[e.createVNode(d,{style:{width:"100%"},value:t.condition.dataType,onChange:t.onDataTypeChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataTypeList,(B,j)=>(e.openBlock(),e.createBlock(s,{key:j,value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])],512),[[e.vShow,(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType]]),t.isDateType?(e.openBlock(),e.createElementBlock("div",ip,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(b,{key:0,disabled:"",style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.currentTime,format:t.condition.dateFormat},null,8,["value","format"])):(e.openBlock(),e.createBlock(b,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=B=>t.condition.fieldValue=B),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(d,{key:1,"show-search":"",style:e.normalizeStyle({width:t.condition.fieldValue==="PARENT"?"":"calc(100% - 35px)",marginRight:"10px"}),value:t.condition.fieldValue,"onUpdate:value":o[1]||(o[1]=B=>t.condition.fieldValue=B),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["style","value","filter-option","options","onChange"])):e.createCommentVNode("",!0),t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(h,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[2]||(o[2]=B=>t.condition.modelKey=B),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(h,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=B=>t.condition.prop=B),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(N,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=B=>t.popoverVisible=B),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",sp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",cp,[e.createVNode(m,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=B=>t.isUseCurrentTime=B)},{default:e.withCtx(()=>[e.createTextVNode("使用当前时间")]),_:1},8,["checked"])])):e.createCommentVNode("",!0),e.createVNode(x,{defaultActiveKey:t.condition.activeKey,onChange:t.changeTabInitDate},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabDateList,(B,j)=>(e.openBlock(),e.createBlock(w,{key:j,tab:B.label},{default:e.withCtx(()=>[e.createElementVNode("div",dp,[e.createVNode(T,{value:B.radioValue,"onUpdate:value":P=>B.radioValue=P,onChange:P=>t.changeRadioValue(P,B)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",pp,"相对当前时间:"+e.toDisplayString(B.value),1)):(e.openBlock(),e.createElementBlock("div",up,"相对当前时间:"+e.toDisplayString(t.getFieldValue(j)),1)),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(C,{value:B.beforeNum,"onUpdate:value":P=>B.beforeNum=P,min:0,onBlur:P=>t.blurCompare(P,B,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",fp,e.toDisplayString(B.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(C,{value:B.afterNum,"onUpdate:value":P=>B.afterNum=P,min:0,onBlur:P=>t.blurCompare(P,B,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",mp,e.toDisplayString(B.afterLabel),1)]),_:2},1032,["style"]),B.beforeText?(e.openBlock(),e.createBlock(g,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),B.afterText?(e.openBlock(),e.createBlock(g,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",hp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=P=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:P=>t.okDatePickConfig(B,j)},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:2},1032,["onClick"])])])]),_:2},1032,["tab"]))),128)),(e.openBlock(),e.createBlock(w,{tab:"自定义",key:5},{default:e.withCtx(()=>[e.createElementVNode("div",bp,[e.createVNode(d,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=B=>t.customTabData.expression=B),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=B=>t.customTabData.unit=B),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(s,{value:"QUARTER"},{default:e.withCtx(()=>[e.createTextVNode("季度")]),_:1}),e.createVNode(s,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(s,{value:"WEEK"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(s,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=B=>t.customTabData.around=B)},{default:e.withCtx(()=>[e.createVNode(s,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(s,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value"])]),e.createElementVNode("div",yp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=B=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:t.okCustomConfig},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])])]),_:1}))]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[10]||(o[10]=B=>{t.popoverVisible=!0})},[e.createVNode(S)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(d,{key:1,class:"field-value",value:t.fieldValues,mode:"multiple",options:t.valueOptions,onChange:t.onFieldValueSelectChange},null,8,["value","options","onChange"])):(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType&&t.condition.dataType==="component"?(e.openBlock(),e.createBlock(d,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=B=>t.condition.fieldValue=B),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])):(e.openBlock(),e.createBlock(h,{key:3,class:"field-value",value:t.condition.fieldValue,"onUpdate:value":o[13]||(o[13]=B=>t.condition.fieldValue=B)},null,8,["value"])),!t.isDateType&&t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(h,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[14]||(o[14]=B=>t.condition.modelKey=B),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(h,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=B=>t.condition.prop=B),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(y,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(i,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(i,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode($,{class:"more-icon"})]),_:1}),e.createVNode(A,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Cp=ne(op,[["render",gp],["__scopeId","data-v-29a39def"]]),wp=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:Cp}}),By="",kp={key:0,class:"condition-list"},xp={key:0,class:"condition-container"},_p={key:0,class:"condition-text"},Sp={key:1,class:"condition-text"},Tp={class:"conditions"};function Np(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),d=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",kp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",xp,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",_p,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Sp,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Tp,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${c}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(d,{class:"condition",key:i.keyValue||`${t.level}-${c}`,data:i,level:t.level,index:c,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const Ap=ne(wp,[["render",Np],["__scopeId","data-v-553c1496"]]),Op=e.defineComponent({name:"TruncationList",props:{list:{type:Array,default:()=>[]}},components:{ASelect:R.Select,AInput:R.Input,AInputNumber:R.InputNumber},setup(t,{emit:o}){const n=[{label:"前N个",value:"TOP"},{label:"后N个",value:"BOTTOM"}],a=e.ref([]);return e.watch(a,r=>{r!=null&&r.length&&o("update",r)},{deep:!0}),e.onMounted(()=>{var r;(r=t.list)!=null&&r.length?a.value=Z.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),Vy="",or=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),Ep={class:"truncations"},Bp={class:"rule"},Vp={class:"field-value"},Lp={class:"field-value"},vp=or(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Fp=or(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),$p=["onClick"];function Ip(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",Ep,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Bp,[e.createVNode(s,{style:{width:"100%"},value:c.rule,"onUpdate:value":u=>c.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",Vp,[e.createTextVNode(" N= "),e.createVNode(d,{value:c.num,"onUpdate:value":u=>c.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",Lp,[vp,e.createVNode(i,{value:c.name,"onUpdate:value":u=>c.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),Fp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(c)},"清空",8,$p)]))),128))])}const Dp=ne(Op,[["render",Ip],["__scopeId","data-v-f543c690"]]),Mp=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:Ap,TruncationList:Dp,AModal:R.Modal,AButton:R.Button,ATabs:R.Tabs,ATabPane:R.TabPane},setup(t,{expose:o}){var k;const n=e.ref("1"),a=()=>{var E;return`添加过滤条件-${((E=t.item)==null?void 0:E.label)||""}`},l=e.inject(ke),r=e.inject(Ne),s=e.inject(Ue),d=e.computed(()=>{var E;return(E=e.unref(l))==null?void 0:E.dataSourceId}),i=e.inject(Ie),c=e.inject(ko),p=e.ref([]),u=e.ref([]),f=e.ref(!1),y=e.inject(Yt),b=E=>{var O;for(const v of E)(O=v.conditions)!=null&&O.length?b(v.conditions):v.keyValue=we()};e.watch(f,E=>{var O,v,M,_;if(E){if(Array.isArray((O=t.item)==null?void 0:O.conditions)){const V=Z.cloneDeep(((v=t.item)==null?void 0:v.conditions)||[]);b(V),p.value=V}Array.isArray((M=t.item)==null?void 0:M.truncations)?u.value=Z.cloneDeep((_=t.item)==null?void 0:_.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!E)},{flush:"post"});let h=!1;const m=E=>{var O;h=!0,e.unref(p)==null||((O=e.unref(p))==null?void 0:O.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==E?p.value=[{join:E,conditions:[e.unref(p)[0],{keyValue:we()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===E&&p.value[0].conditions.push({keyValue:we()}))};e.provide(wo,{updateCondition(E,O,v){var V;h=!0;let M=e.unref(p);const _=v.split("-");if(_!=null&&_.length)for(const D of _)if(M[D])M=(V=M[D])==null?void 0:V.conditions;else break;Array.isArray(M)&&M[O]&&(M[O]=E)},deleteCondition(E,O){var _,V,D;h=!0;let v=e.unref(p);const M=O.split("-");if(M!=null&&M.length){for(const L of M)if(v[L])v=(_=v[L])==null?void 0:_.conditions;else break;if(Array.isArray(v)&&v[E])if(v.splice(E,1),v.length===1){if(M.length>0){const L=M.length-1,I=M[L],U=M.slice(0,L);let H=e.unref(p),q="";for(const Q of U)if(H[Q])q=(V=H[Q])==null?void 0:V.join,H=(D=H[Q])==null?void 0:D.conditions;else break;if(q===v[0].join){if(Array.isArray(v[0].conditions)){const Q=Z.cloneDeep(v[0].conditions);H.splice(+I,1),H.splice(+I,0,...Q)}}else H[I]=v[0]}}else v.length===0&&(p.value=[])}},addCondition(E,O,v){var D,L;h=!0;let M=e.unref(p),_="";const V=E.split("-");if(V!=null&&V.length){for(const I of V)if(M[I])_=(D=M[I])==null?void 0:D.join,M=(L=M[I])==null?void 0:L.conditions;else break;if(_===v)M.splice(O+1,0,{keyValue:we()});else{const I=Z.cloneDeep(M[O]);M[O]={join:v,conditions:[I,{keyValue:we()}]}}}}});const C=E=>{h=!0,u.value=E},g=e.computed(()=>{var O;const E=[];return(O=e.unref(s))==null||O.forEach(v=>{const{keyName:M="",id:_="",type:V}=v;V==="ecanRangePicker"?E.push({value:`${_}-startTime`,label:`${M||_}-开始时间值`,keyName:`${M||_}-startTime`},{value:`${_}-endTime`,label:`${M||_}-结束时间值`,keyName:`${M||_}-endTime`}):E.push({value:_,label:`${M||_}`,keyName:`${M||_}`})}),E}),T=()=>{var D,L,I;const E=pt(((D=e.unref(l))==null?void 0:D.controlList)||[]),O=((L=e.unref(l)[t.type])==null?void 0:L.slice())||[],v=pt(Z.cloneDeep(O[t.index].conditions));O[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((I=e.unref(u))!=null&&I.length)&&(O[t.index].truncations=e.unref(u));const M=pt(e.unref(p));for(const U of M)if(U.dataType==="component"&&U.fieldValue){const H=e.unref(g).find(q=>q.value===U.fieldValue);H&&(U.fieldValue=H.keyName)}const _=v.filter(U=>!M.find(H=>H.componentId===U.componentId)).filter(U=>!E.find(H=>H.id===U.componentId)),V=M.filter(U=>!v.find(H=>H.componentId===U.componentId));w(_,V),r({[t.type]:O,sqlConditions:Wl({...e.unref(l),[t.type]:O},e.unref(s))})};function w(E,O){var M;const v=E.map(_=>({..._,delete:!0})).concat(O.map(_=>({..._,add:!0})));for(const _ of v){const V=e.unref(s).find(D=>D.id===_.componentId);if(V){const{type:D,id:L,events:I=[]}=V,U=Bo(D);if(_.add)I.find(H=>{var q;return H.on===U&&H.target===((q=e.unref(i))==null?void 0:q.id)&&H.emit==="refreshData"})||c({id:L,events:[...I,{on:U,target:(M=e.unref(i))==null?void 0:M.id,emit:"refreshData"}].reverse()});else if(_.delete){const H=I.findIndex(q=>{var Q;return q.on===U&&q.target===((Q=e.unref(i))==null?void 0:Q.id)&&q.emit==="refreshData"});H!==-1&&(I.splice(H,1),c({id:L,events:I}))}}}}const x=()=>{f.value=!0},S=()=>{p.value=[],f.value=!1},N=()=>{h&&T(),h=!1,S()},$=()=>{S()},A=e.inject(Ee),B=e.unref(e.inject(Be)),j=(k=window==null?void 0:window.config)==null?void 0:k.pageId,P=e.ref([]);e.provide(fa,P);const F=async E=>{var O;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:v,indexCode:M}=E,_=await A.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:j,dataSourceId:e.unref(d),indexGuid:v,indexCode:M},{headers:{Authentication:B,operateContext:"ygt"}}),{success:V,data:D=[]}=_.data;V&&((O=D==null?void 0:D.dataViewColumns)!=null&&O.length)&&(P.value=D.dataViewColumns.map(L=>({...L,label:L.title||L.label})))}catch(v){console.error(v)}};return e.watch(()=>t.item,E=>{E&&f.value&&e.unref(y)!=="EDV_DATA_SET"&&F(E)}),o({showModal:x}),{visible:f,onOk:N,onCancel:$,handleTitle:a,conditionList:p,truncationList:u,addCondition:m,onUpdatetruncation:C,activeKey:n,source:y}}}),Ly="",Pp={class:"header"},jp={class:"header"};function Rp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),c=e.resolveComponent("truncation-list"),p=e.resolveComponent("a-tabs"),u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{title:t.handleTitle(),visible:t.visible,"destroy-on-close":"",width:"55%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[["classificationList","rowHeaderList","dimensionList"].includes(t.type)?(e.openBlock(),e.createBlock(p,{key:0,activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=f=>t.activeKey=f)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",Pp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])]),_:1}),e.createVNode(i,{key:"2",tab:"截断配置"},{default:e.withCtx(()=>[e.createVNode(c,{list:t.truncationList,onUpdate:t.onUpdatetruncation},null,8,["list","onUpdate"])]),_:1})]),_:1},8,["activeKey"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",jp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[4]||(o[4]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const Up=ne(Mp,[["render",Rp],["__scopeId","data-v-38f115c6"]]),zp=e.defineComponent({name:"ConfigName",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{AInput:R.Input,AModal:R.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ke),l=e.inject(Ne),r=e.ref(),s=p=>{const{showLabel:u="",label:f=""}=p;r.value=u||f||"",n.value=!0},d=()=>{n.value=!1},i=()=>{var u;const p=((u=e.unref(a)[t.type])==null?void 0:u.slice())||[];p[t.index].showLabel=r.value,l({[t.type]:p}),d()},c=()=>{d()};return o({showModal:s}),{visible:n,onOk:i,onCancel:c,fieldName:r}}}),vy="",Gp=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),Hp={class:"config-name"},Wp=Gp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function Yp(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置展示名称",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Hp,[Wp,e.createVNode(s,{value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i)},null,8,["value"])])]),_:1},8,["visible","onOk","onCancel"])}const qp=ne(zp,[["render",Yp],["__scopeId","data-v-de6a1755"]]),Kp=e.defineComponent({name:"SortByCpnt",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:R.Select,AModal:R.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ke),l=e.inject(Ne),r=e.inject(Ue),s=e.inject(Ie),d=e.inject(ko),i=e.ref(),c=e.computed(()=>{var C;return(C=e.unref(r))==null?void 0:C.filter(g=>g.keyName!=="")});let p=[];const u=C=>{const{sortCpnts:g=[]}=C;p=Z.cloneDeep(g),i.value=Z.cloneDeep(g),n.value=!0},f=()=>{n.value=!1},y=()=>{var x,S;const C=pt(((x=e.unref(a))==null?void 0:x.controlList)||[]),g=p.filter(N=>!e.unref(i).includes(N)).filter(N=>!C.find($=>$.id===N)),T=e.unref(i).filter(N=>!p.includes(N)).filter(N=>!C.find($=>$.id===N)),w=g.map(N=>({componentId:N,delete:!0})).concat(T.map(N=>({componentId:N,add:!0})));for(const N of w){const $=e.unref(r).find(A=>A.id===N.componentId);if($){const{type:A,id:B,events:j=[]}=$,P=Bo(A);if(N.add)j.find(F=>{var k;return F.on===P&&F.target===((k=e.unref(s))==null?void 0:k.id)&&F.emit==="refreshData"})||d({id:B,events:[...j,{on:P,target:(S=e.unref(s))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(N.delete){const F=j.findIndex(k=>{var E;return k.on===P&&k.target===((E=e.unref(s))==null?void 0:E.id)&&k.emit==="refreshData"});F!==-1&&(j.splice(F,1),d({id:B,events:j}))}}}},b=()=>{var g;y();const C=((g=e.unref(a)[t.type])==null?void 0:g.slice())||[];C[t.index].sortCpnts=i.value,l({[t.type]:C}),f()},h=()=>{f()},m=(C,g)=>{var T;return(T=g==null?void 0:g.keyName)==null?void 0:T.toLowerCase().includes(C==null?void 0:C.toLowerCase())};return o({showModal:u}),{visible:n,onOk:b,onCancel:h,idFilterOption:m,fieldName:i,usedComponentList:c}}}),Fy="",Xp=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),Qp={class:"sort-by-cpnt"},Jp=Xp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function Zp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联组件排序",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Qp,[Jp,e.createVNode(s,{class:"field-name",value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i),mode:"multiple",style:{width:"100%"},options:t.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":t.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const eu=ne(Kp,[["render",Zp],["__scopeId","data-v-08af1ef8"]]),tu=e.defineComponent({name:"DimByCount",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:R.Select,AModal:R.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ke),l=e.inject(Ne),r=e.ref(),s=e.ref([]),d=(f,y)=>{const{dimByCount:b=""}=f;r.value=b,s.value=y.filter(h=>["DIM","BUILT_IN_DIM","FIELD"].includes(h.scope)).map(h=>({label:h.title||h.name,value:h.typeGuid})),n.value=!0},i=()=>{n.value=!1},c=()=>{var y;const f=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];f[t.index].dimByCount=r.value,l({[t.type]:f}),i()},p=()=>{i()},u=(f,y)=>{var b;return(b=y==null?void 0:y.label)==null?void 0:b.toLowerCase().includes(f==null?void 0:f.toLowerCase())};return o({showModal:d}),{visible:n,onOk:c,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),$y="",ou=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),nu={class:"dim-by-count"},au=ou(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function lu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联维度",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",nu,[au,e.createVNode(s,{class:"field-name",value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i),style:{width:"100%"},options:t.dimensionList,"show-search":"","filter-option":t.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const ru=ne(tu,[["render",lu],["__scopeId","data-v-aa1c298e"]]),Hn=(t,o)=>{let n;for(let a=0;a<o.length;a++){const l=o[a];l.children&&(l.children.some(r=>r.key===t)?n=l.key:Hn(t,l.children)&&(n=Hn(t,l.children)))}return n},iu=e.defineComponent({name:"FormulaCalculation",props:{value:{type:String,default:""},item:{type:Object,default:()=>({})},mode:{type:String,default:"add"}},components:{ARow:R.Row,ACol:R.Col,ATextarea:R.Textarea,APopover:R.Popover,AInputSearch:R.InputSearch,ATree:R.Tree,ARadioGroup:R.RadioGroup,ARadioButton:R.RadioButton,DoubleRightOutlined:Ts},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Ee),a=e.unref(e.inject(Be)),l=e.inject(ke),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),d=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),c=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>{const A=e.unref(r).concat(e.unref(d)).concat(e.unref(i)).concat(e.unref(c));return t.mode==="edit"?(A==null?void 0:A.filter(B=>{var j;return B.id!==((j=t.item)==null?void 0:j.id)}))||[]:A||[]}),u=e.computed(()=>s.value.filter(A=>!A.randomKey)),f=e.computed({get:()=>t.value||"",set:A=>{o("update:value",A),o("change",A)}}),y=e.ref("1"),b=e.ref(""),h=A=>{const B=document.getElementById("calTextArea");let j=f.value;if(document.selection){const P=document.selection.createRange();P.text=A}else if(typeof B.selectionStart=="number"&&typeof B.selectionEnd=="number"){const P=B.selectionStart,F=B.selectionEnd;let k=P;j=j.substring(0,P)+A+j.substring(F,j.length),k+=A.length,B.selectionStart=B.selectionEnd=k}else j+=A;f.value=j},m=["+","-","*","/","(",")"],C=(A,B)=>{let j="";switch(B){case"name":{j="${"+A+"}";break}case"function":{j=A+"()";break}default:j=A}h(j)},g=[],T=e.ref([]),w=e.ref(!0),x=e.ref([]),S=A=>{var B;for(const j of A)(B=j==null?void 0:j.children)!=null&&B.length?S(j.children):g.push({key:j.key,title:j.title})},N=async()=>{try{const A=await n.get(`${Se}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:B,data:j=[]}=A.data;B&&(j!=null&&j.length)&&(S(j),x.value=j)}catch(A){console.error(A)}},$=A=>{T.value=A,w.value=!1};return e.watch(b,A=>{const B=g.map(j=>j.title.indexOf(A)>-1?Hn(j.key,x.value):null).filter((j,P,F)=>j&&F.indexOf(j)===P);T.value=B,b.value=A,w.value=!0}),e.onMounted(()=>{N()}),{fieldList:p,varList:u,myValue:f,calculMethods:m,funcDescsData:x,searchFuncValue:b,expandedKeys:T,autoExpandParent:w,activeKey:y,selectedElem:C,onExpand:$}}}),Iy="",Dy="",nr=t=>(e.pushScopeId("data-v-69040cfb"),t=t(),e.popScopeId(),t),su={class:"formula-calculation"},cu={class:"field-area"},du={style:{"text-align":"center",padding:"10px 0"}},pu=["onClick"],uu=["onClick"],fu={class:"cal_right_bottom"},mu={class:"cal_fu"},hu=["onClick"],bu={class:"function-wrap"},yu={class:"wrap-search"},gu={class:"tree-box"},Cu=nr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),wu=nr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),ku={key:0},xu={style:{color:"#f50"}},_u={key:1},Su=["onClick"],Tu={class:"cal_a"};function Nu(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),d=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),c=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),f=e.resolveComponent("a-tree"),y=e.resolveComponent("double-right-outlined"),b=e.resolveComponent("a-popover"),h=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",su,[e.createVNode(h,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",cu,[e.createElementVNode("div",du,[e.createVNode(d,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=m=>t.activeKey=m),size:"small"},{default:e.withCtx(()=>[e.createVNode(s,{value:"1"},{default:e.withCtx(()=>[e.createTextVNode("数值字段("+e.toDisplayString(t.fieldList.length)+")",1)]),_:1}),e.createVNode(s,{value:"2"},{default:e.withCtx(()=>[e.createTextVNode("全局变量("+e.toDisplayString(t.varList.length)+")",1)]),_:1})]),_:1},8,["value"])]),t.activeKey==="1"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fieldList,(m,C)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:C,onClick:g=>t.selectedElem(m.label,"name")},e.toDisplayString(m.label),9,pu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(m,C)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:C,onClick:g=>t.selectedElem(m.variableName,"name")},e.toDisplayString(m.variableName),9,uu))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(c,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=m=>t.myValue=m),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",fu,[e.createElementVNode("ul",mu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(m,C)=>(e.openBlock(),e.createElementBlock("li",{onClick:g=>t.selectedElem(m,"symbol"),key:C},e.toDisplayString(m),9,hu))),128))]),e.createVNode(b,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",bu,[e.createElementVNode("div",yu,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=m=>t.searchFuncValue=m),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",gu,[e.createVNode(f,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:m,leaf:C,describe:g,exp:T})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[m.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",ku,[e.createTextVNode(e.toDisplayString(m.substr(0,m.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",xu,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(m.substr(m.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",_u,e.toDisplayString(m),1)),C?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:w=>t.selectedElem(m,"function")},"插入",8,Su)):e.createCommentVNode("",!0)]),_:2},[C?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[Cu,e.createElementVNode("span",null,e.toDisplayString(g),1)]),e.createElementVNode("div",null,[wu,e.createElementVNode("span",null,e.toDisplayString(T),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",Tu,[e.createTextVNode(" 更多函数 "),e.createVNode(y,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const Au=ne(iu,[["render",Nu],["__scopeId","data-v-69040cfb"]]),Ou=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:Au,AForm:R.Form,AModal:R.Modal,AFormItem:R.FormItem,AInput:R.Input,ASelect:R.Select,ASelectOption:R.SelectOption,ATextarea:R.Textarea,AInputNumber:R.InputNumber,ATooltip:R.Tooltip,QuestionCircleOutlined:oc},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},mode:{type:String,default:"add"}},setup(t,{expose:o}){const n=e.inject(Ue),a=e.inject(ke),l=e.inject(Ne),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),d=e.computed(()=>{const F=["leftAxisList","rightAxisList","queryColumnList","indicators"];let k=[];for(const E of F)Object.prototype.hasOwnProperty.call(e.unref(a),E)&&(k=k.concat(e.unref(a)[E]));return k}),i={span:4},c={span:18},p={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},u={value:0,unit:"YEAR",around:"before"},f=e.ref({}),y=e.ref(),b=e.ref(!1),h=e.ref();e.watch(b,F=>{if(F)if(t.mode==="edit"){const{label:k,calcType:E,formula:O,builtInValueSource:v,builtInFormula:M,builtInCalcWay:_}=t.item;if(h.value={label:k,calcType:E,formula:O,builtInValueSource:v,builtInFormula:M,builtInCalcWay:_},M==="DATE_OFFSET"){const V=_.split("-");(V==null?void 0:V.length)===3&&(f.value={value:V[0],unit:V[1],around:V[2]})}}else t.mode==="add"&&(h.value=Z.cloneDeep(p),f.value=Z.cloneDeep(u));else h.value=Z.cloneDeep(p),f.value=Z.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!F)},{immediate:!0,deep:!0});let m=!1;const C=()=>{m=!0},g=F=>{const k=e.unref(r).find(E=>E.id===F);k&&(h.value.builtInCalcWay=k.keyName),m=!0},T=()=>{var v;const F=((v=e.unref(a)[t.type])==null?void 0:v.slice())||[],{label:k,builtInFormula:E}=e.unref(h)||{},O={};if(E==="DATE_OFFSET"&&(O.builtInCalcWay=`${e.unref(f).value}-${e.unref(f).unit}-${e.unref(f).around}`),t.mode==="add"){const M=we();F.push({...e.unref(h),...O,id:M,show:!0,name:k})}else t.mode==="edit"&&(F[t.index]={...F[t.index],...e.unref(h),...O,name:k});l({[t.type]:F})},w=()=>{b.value=!0},x=()=>{b.value=!1},S=async(F,k)=>{if(k==="")return Promise.reject(new Error("请输入指标名"));{const E=e.unref(d).find(O=>O.label===k);return E?E.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},N=e.computed(()=>{let F={label:[{required:!0,validator:S,trigger:"change"}]};return h.value.calcType==="BUILT_IN"&&(F={...F,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),F}),$=()=>{y.value.validate().then(()=>{m&&T(),m=!1,x()})},A=()=>{y.value.clearValidate(),x()},B=()=>{m=!0,e.unref(h).builtInCalcWay=""},j=e.computed(()=>{let F="";const k=e.unref(h).builtInCalcWay,E=e.unref(h).builtInValueSource;if(!E||!k)return F;switch(e.unref(h).builtInFormula){case"BUILT_IN_RANK":{k==="ASC"?F="【"+E+"】由小到大在所有值中的排名":F="【"+E+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{F=`所有【】的
|
|
64
|
+
`))},labelLine:{show:t.labelLineShow,length:t.labelLineLength,length2:t.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]};var r},Xc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=yt(()=>a.map(i=>{let c={};return c=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},c})),s=yt(()=>{const i=[],c=l.length,p=t.seriesTypes;for(let u=0;u<c;u++){const f=p[u],{type:y,axisIndex:b}=f||{};let h=Object.assign({type:y,yAxisIndex:b},l[u]);if(y==="line"){const m={};t.shadowColor&&(m.shadowColor=t.shadowColor,m.shadowBlur=t.shadowBlur,m.shadowOffsetY=t.shadowOffsetY,m.shadowOffsetX=t.shadowOffsetX),h=Object.assign(Object.assign({},h),{symbolSize:t.symbolSize,smooth:t.smooth,itemStyle:{color:t.colors[u]},areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},m)})}if(y==="bar"){const{gradientShow:m,gradientColors:C,gradientOffset:g}=t,T={};if(t.barBorderRadius){const w=t.barBorderRadius.split(",");if(w!=null&&w.length){const x=[];for(const S of w){const N=parseFloat(S);isNaN(N)||x.push(N)}T.borderRadius=x}}m&&(T.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:g,color:C[u]},{offset:1,color:C[u]}]}),h=Object.assign(Object.assign({},h),{barWidth:t.barWidth,itemStyle:T})}t.isShowMarkLine&&(h.markLine={data:[{type:t.markLineType}]}),i.push(h)}return i}),d=yt(()=>{const i=t.yAxis;return i==null?void 0:i.map((c,p)=>({type:"value",minInterval:t.yAxisMinInterval,splitLine:{show:p===0?t.yAxisLeftSplitLineShow:t.yAxisRightSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:p===0?t.yAxisLeftSplitLineType:t.yAxisRightSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{fontSize:n,show:t.yAxisLabelShow,color:t.yAxisLabelColor,formatter:u=>Pt(c.axisLabelFormatter,u)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:p===0?t.yAxisLeftName:t.yAxisRightName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:p===0?"right":"left"},max:t.yAxisMaxValue||null}))});return{legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n}},tooltip:{trigger:"axis",show:t.tooltipShow,formatter:i=>{const c=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const f=t.seriesTypes;for(let y=0;y<c;y++){const b=f[y],{tooltipFormatter:h}=b||{},{marker:m,seriesName:C,name:g,value:T,data:w}=i[y]||{};y===0&&(p+=`${g}<br/>`),p+=Mt(h||u,{textData:Object.assign({marker:m,name:g,value:T,seriesName:C,a:C,b:g,c:T},w)},{useNewline:!0,useSpace:!0}),p+="<br/>"}return p},textStyle:{color:t.tooltipTextStyleColor||"#333",fontSize:n},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},xAxis:{name:t.xAxisName,minInterval:t.xAxisMinInterval,type:"category",data:st(r),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:st(d),series:st(s)}},Qc=(t,o,n=12)=>Object.assign(Object.assign({},(a=>({title:{text:a.titleText,subtext:a.titleSubtext,textStyle:{fontSize:a.titleFontSize,fontWeight:a.fontWeight,color:a.titleColor},left:a.textAlign||"center"},grid:{top:a.gridTop,bottom:a.gridBottom,left:a.gridLeft,right:a.gridRight,containLabel:a.gridContainLabel},color:a.colors}))(t)),((a,l,r)=>{switch(a.type){case"bar":return Yc(a,l,r);case"line":return qc(a,l,r);case"pie":return Kc(a,l,r);case"comboGraph":return Xc(a,l,r);default:return{}}})(t,o,n)),pt=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...pt(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},Wl=(t,o)=>{var h;const n=Z.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:d=[],rightAxisList:i=[],queryColumnList:c=[],indicators:p=[]}=t;ql(n,o);const u=n,f=[...a,...l,...r,...s,...d,...i,...c,...p],y=[];for(const m of f){const C=pt((m==null?void 0:m.conditions)||[]);if(C!=null&&C.length){const g=C.filter(T=>Kl(T,o)?(T==null?void 0:T.dataType)==="component":!1).map(T=>{const w=Kl(T,o),x={};return T!=null&&T.dateFormat&&(x.format=T.dateFormat),{conditionKey:T.fieldName,conditionLabel:T.fieldName,conditionName:T.fieldName,conditionValueType:T.fieldType,id:w.id,keyName:T.fieldValue,rule:T.rule,notGlobal:!0,indexCode:T.indexCode,typeGuid:T.typeGuid,indexCodeNum:T.indexCodeNum,...x}});if(g!=null&&g.length)for(const T of g)y.find(w=>w.keyName===T.keyName)||y.push(T)}}const b=y.length;for(let m=0;m<b;m++){const C=y[m];if(C&&!((h=Object.keys(C))!=null&&h.length)||(C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:g,keyName:T,prop:w,format:x,dataType:S="component",customValue:N}=C,$=Yl(C);zn({sqlCondition:$,renderUsedComponents:o,id:g,dateFormat:x,prop:w,keyName:T,dataType:S,customValue:N}),u.push($)}for(let m=u.length-1;m>=0;m--){const C=u[m];C.globalCondition||pt(u).find(T=>T.alias===C.alias&&T.globalCondition)&&u.splice(m,1)}return u},ao=(t,o)=>{const n=[];if(t!=null&&t.length){for(const a of t)if(a.variableName){const l={variateName:a.variableName,globalCondition:!1,valueType:a.variableType,alias:a.keyName||""};zn({sqlCondition:l,renderUsedComponents:o,id:a.id,dateFormat:a.format,prop:a.dateTypeValue,keyName:a.keyName,dataType:a.dataType,customValue:a.variableValue,operateType:a.operateType,operateMode:a.operateMode,operateValue:a.operateValue}),a.format&&(l.dateFormat=a.format),a.label&&(l.label=a.label),n.push(l)}}return n};function Yl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:d="NONE",notGlobal:i=!1,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f="component"}=t;let y=n||o;return y&&s&&(y+=`-${s}`),{rule:d,label:a,fieldName:l,fieldValue:"",valueType:r,alias:y,globalCondition:!i,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f}}const Jc=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function ql(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)ql(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:d="component",customValue:i}=n,c=Yl(n);zn({sqlCondition:c,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:d,customValue:i});for(const p in c)n[p]=c[p];for(const p of Jc)delete n[p]}}function zn(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:d,customValue:i,operateValue:c,operateMode:p,operateType:u}=t,f=e.unref(n).find(T=>T.id===a),{value:y,format:b="YYYY-MM-DD",operate:h,type:m="",useCurrentTime:C}=f||{},g=l||b;if(be(m,"date")){let T;if(C?T=he():T=he(y),h&&y){const{mode:w,type:x,value:S}=h;if(S)switch(x){case"add":T=T.add(S,w);break;case"minus":T=T.subtract(S,w);break}}if(c&&p&&u)switch(u){case"add":T=T.add(c,p);break;case"minus":T=T.subtract(c,p);break}o.fieldValue=(T==null?void 0:T.format(g))||"",o.dateFormat=g}else if(m==="ecanRangePicker"){const{interval:T,intervalUnit:w,startTime:x,endTime:S}=f||{};let N=r;if(!r){const A=s==null?void 0:s.split("-");A!=null&&A.length&&(N=A[A.length-1])}if(!N)return;let $=null;if(C&&(N==="startTime"?$=he().subtract(T,w):N==="endTime"&&($=he())),f[N]&&($=he(f[N])),h){const{type:A,value:B,mode:j}=h;switch(A){case"add":$=$&&$.add(B,j);break;case"minus":$=$&&$.subtract(B,j)}}if(c&&p&&u){if(c==="rangeValue"){if(x&&S){const A=he(S).diff(he(x),p)+1;switch(u){case"add":$=$&&$.add(A,p);break;case"minus":$=$&&$.subtract(A,p)}}}else if(!isNaN(+c))switch(u){case"add":$=$&&$.add(c,p);break;case"minus":$=$&&$.subtract(c,p)}}if($&&(o.fieldValue=$==null?void 0:$.format(g)),N==="rangeValue"&&x&&S){const A=Zc(g);A&&(o.fieldValue=he(S).diff(he(x),A)+1)}o.dateFormat=g}else{const T=y&&y.match(/\{(.+?)\}/g);T!=null&&T.length?o.fieldValue="":o.fieldValue=y}d===""&&(o.fieldValue=i||"")}const Bo=t=>{let o="";switch(t){case"ecanDatePicker":case"ecanRangePicker":o="dateChange";break;case"ecanTimeDisplay":o="timeChange";break;case"ecanSelect":case"ecanTreeSelect":o="selectChange";break;case"ecanTabs":o="tabChange";break;case"ecanInput":o="inputChange";break;case"ecanCheckbox":case"ecanRadio":o="checkboxChange";break;case"ecanText":o="valueChange";break;case"ecanImage":o="click";break}return o};function Kl(t,o){var n;if(t.componentId)return o.find(a=>a.id===t.componentId);if(t.dataType==="component")if(t.fieldType==="DATE"){const a=(n=t.fieldValue)==null?void 0:n.split("-");return a!=null&&a.length?a[0]:null}else return o.find(a=>a.keyName===t.fieldValue);else return null}function Zc(t){const o=t.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}function ed(t,o){let n=t[o.label];if((n||n===0)&&n!==""&&o.dataFormat&&o.dataFormat.length!==0){if(o.dataFormat.includes("#.00")&&(typeof n!="number"&&(n=n.replace(/,/g,"")),Number(n)||Number(n)===0)){const a=o.retentiondigit?o.retentiondigit-0:o.retentiondigit;n=Number(n).toFixed(a)}if(o.dataFormat.includes("#,000")){const a=n.toString();a.includes(",")||(n=td(a))}}return n}function td(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3===0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),t.indexOf(".")>-1?l=o+"."+a:l=o,l}const Xl=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],Ql=t=>({0:"文本",1:"数值",2:"日期"})[t],Jl=t=>t==="0"?"手工录入":t==="1"?"系统取数":t==="2"?"运算加工":"",Zl=t=>{let o="";switch(t){case"1":o="人力系统";break;case"2":o="绩效系统";break;case"3":o="预算系统";break;case"4":o="财务系统";break;case"5":o="成本系统";break;case"6":o="物流系统";break;case"7":o="固定资产系统";break;case"8":o="OA办公系统";break;case"9":o="电子档案系统";break;case"10":o="个人收入系统";break;case"11":o="奖金二次分配系统";break;case"12":o="财务管理系统";break;case"13":o="报销系统";break;case"14":o="科研管理系统";break;case"15":o="审计系统";break;case"16":o="分组器系统";break}return o},er=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",od=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:ja,CaretDownOutlined:Ma,LoadingOutlined:Ds,Draggable:Bt,ATooltip:R.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(t,{emit:o,expose:n}){var x;const a=(x=window==null?void 0:window.config)==null?void 0:x.pageId,l=e.inject(Ee),r=e.unref(e.inject(Be)),s=e.inject("setItemDisabled",S=>!1),d=e.ref([]),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),f=e.ref(!1);e.watch(()=>t.data,S=>{t.isSub&&(S==null||S.forEach(N=>{var $;N!=null&&N.isLeaf||($=N.dataViewColumns)==null||$.forEach(A=>{A.show=!0,A.edit=!1,A.title&&(A.label=A.title)})}),d.value=S)},{deep:!0,immediate:!0});const y=()=>{var S;t.isSub||(S=e.unref(i))==null||S.removeEventListener("scroll",g)},b=async S=>{var A;if(e.unref(p))return;const N=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const $={source:t.source,pageId:a,dataSourceId:N,indexName:u.value};S?(S.loading=!0,$.indexTypeGuid=S.indexTypeGuid,$.isLeaf=S.isLeaf):c&&($.queryRequest={pageSize:c.pageSize,pageNum:c.currentPage});try{const B=await l.post(`${Se}/diagram/sourceList`,$,{headers:{Authentication:r,operateContext:"ygt"}}),{success:j,data:P={}}=B.data;if(j){const{rows:F=[],total:k=0}=P;F==null||F.forEach(E=>{var O;(S==null?void 0:S.isLeaf)==="1"||t.graphicConfig.dataSourceId?(O=E.dataViewColumns)==null||O.forEach(v=>{v.show=!0,v.edit=!1,v.title&&(v.label=v.title)}):E.show=!1}),S?(S.children=F,S.show=!0,F!=null&&F.length||(S.noData=!0)):(d.value=e.unref(d).concat(F),c.totalResult=+k,((A=e.unref(d))==null?void 0:A.length)>=k&&y())}S&&(S.loading=!1),p.value=!1}catch{S&&(S.loading=!1),p.value=!1}},h=async S=>{const N=d.value[S],{children:$=[]}=N;$!=null&&$.length?N.show=!N.show:!N.noData&&N.isLeaf?b(N):N.noData&&(N.show=!N.show)},m=(S,N)=>{o("onDragStart",S,N)},C=S=>{S.show=!S.show},g=S=>{S.target.scrollTop+S.target.clientHeight+20>=S.target.scrollHeight&&(c.currentPage++,b())},T=async()=>{await b(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&c.totalResult>e.unref(d).length&&(c.currentPage++,T())})},w=async S=>{var N;y(),f.value=!0,c.currentPage=1,c.totalResult=0,d.value=[],u.value=S,await T(),f.value=!1,(N=e.unref(i))==null||N.addEventListener("scroll",g)};return e.onMounted(async()=>{var S;t.isSub||(T(),(S=e.unref(i))==null||S.addEventListener("scroll",g))}),e.onUnmounted(()=>{y()}),n({handleSearch:w}),{columnRef:i,sourceList:d,searchLoading:f,onToggleGroup:h,onToggleSource:C,setItemDisabled:s,onDragStart:m,mapDataSetScope:Ql,mapScope:Xl,getLoadType:Jl,getUseType:Zl,getSourceType:er}}}),_y="",nd={key:0,class:"no-data"},ad={class:"column-item"},ld=["onClick"],rd={key:3,class:"item-name"},id={key:0},sd={class:"column-item"},cd={key:0},dd={key:1},pd={key:2},ud=["onClick"],fd={class:"column-child-item"},md={class:"field"},hd={class:"column-child-item-name"};function bd(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),d=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),c=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(f,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var y;return[!((y=t.sourceList)!=null&&y.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",nd,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(b,h)=>(e.openBlock(),e.createElementBlock("div",{key:b.indexTypeGuid||b.id},[e.createElementVNode("div",ad,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleGroup(h)},[b.loading?(e.openBlock(),e.createBlock(s,{key:0})):b.show?(e.openBlock(),e.createBlock(d,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),b.isLeaf?(e.openBlock(),e.createElementBlock("span",rd,e.toDisplayString(b.indexTypeCode+"."+b.indexTypeName),1)):e.createCommentVNode("",!0)],8,ld)]),b.show?(e.openBlock(),e.createElementBlock("div",id,[e.createVNode(c,{data:b.children,isSub:!0,hasChildren:b.isLeaf==="0",graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onOnDragStart:t.onDragStart},null,8,["data","hasChildren","graphicConfig","onOnDragStart"])])):e.createCommentVNode("",!0)]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.sourceList,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:e.normalizeClass(t.setItemDisabled(b.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",sd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(b.loadType)),1),b.useType?(e.openBlock(),e.createElementBlock("div",cd,"数据使用系统:"+e.toDisplayString(t.getUseType(b.useType)),1)):e.createCommentVNode("",!0),b.systemSource?(e.openBlock(),e.createElementBlock("div",dd,"制度出处:"+e.toDisplayString(b.systemSource),1)):e.createCommentVNode("",!0),b.dataTo?(e.openBlock(),e.createElementBlock("div",pd,"数据来源:"+e.toDisplayString(t.getSourceType(b.dataTo)),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:h=>t.onToggleSource(b)},[b.show?(e.openBlock(),e.createBlock(d,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((b.indexCode?b.indexCode:"")+" "+b.name),1)],8,ud)]),_:2},1024)]),b.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:b.dataViewColumns,"onUpdate:modelValue":h=>b.dataViewColumns=h,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(b.dataViewColumns),onStart:h=>t.onDragStart(h,b)},{item:e.withCtx(({element:h})=>[e.createElementVNode("div",fd,[e.createElementVNode("span",md," 【"+e.toDisplayString(h.scope==="FIELD"?t.mapDataSetScope(h.genericType):t.mapScope(h.scope))+"】 ",1),e.createElementVNode("span",hd,e.toDisplayString(h.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const yd=ne(od,[["render",bd],["__scopeId","data-v-ab51ed18"]]),gd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:ja,CaretDownOutlined:Ma,IndSourceList:yd,AInputSearch:R.InputSearch,ASpin:R.Spin,APagination:R.Pagination,Draggable:Bt,ATooltip:R.Tooltip},setup(){var x;const t=(x=window==null?void 0:window.config)==null?void 0:x.pageId,o=e.inject(Ee),n=e.unref(e.inject(Be)),a=e.inject(Ie),l=e.computed(()=>{var S;return(S=e.unref(a))==null?void 0:S.graphicConfig}),r=e.computed(()=>{var S;return(S=e.unref(l))==null?void 0:S.dataSourceId}),s=e.ref([]),d=e.ref(!1),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Yt),u=e.ref(""),f=async()=>{if(e.unref(C).source==="INDICATOR_LIB")return;d.value=!0;const S={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:c.pageSize,pageNum:c.currentPage}};S.source==="EDV_DATA_SET"&&(S.edvDataSetName=S.indexName,delete S.indexName);try{const N=await o.post(`${Se}/diagram/sourceList`,S,{headers:{Authentication:n,operateContext:"ygt"}});d.value=!1;const{success:$,data:A={}}=N.data;if($){const{rows:B=[],total:j=0}=A;B==null||B.forEach(P=>{var F;P.show=!1,(F=P.dataViewColumns)==null||F.forEach(k=>{k.show=!0,k.edit=!1,k.title&&(k.label=k.title)})}),s.value=B,c.totalResult=+j}}catch{d.value=!1}},y=S=>{s.value[S].show=!s.value[S].show},b=()=>{var S;c.currentPage=1,f(),e.unref(C).source==="INDICATOR_LIB"&&((S=e.unref(i))==null||S.handleSearch(e.unref(u)))},h=Z.debounce(()=>{c.currentPage=1,f()},200),m=(S,N)=>{c.pageSize=N,c.currentPage=S,f()};e.onMounted(()=>{f()});const C=e.inject(ke),g=e.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let N=[];for(const $ in e.unref(C))if(Object.prototype.hasOwnProperty.call(e.unref(C),$)&&S.includes($)){const A=e.unref(C)[$];Array.isArray(A)&&(N=N.concat(A))}return N}),T=(S=[])=>{let N=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const $ of e.unref(g))if(!S.find(B=>B.parentId===$.parentId)){N=!0;break}}else for(const $ of e.unref(g))if(!S.find(B=>B.typeGuid===$.typeGuid)){N=!0;break}return N};return e.provide("setItemDisabled",T),{dataSourceList:s,dataSourceLoading:d,pagination:c,onToggleGroup:y,mapScope:Xl,mapDataSetScope:Ql,onSearch:b,onChange:h,source:p,onPaginationChange:m,searchText:u,setItemDisabled:T,onDragStart:(S,N)=>{const $=N.dataViewColumns[S.oldIndex];let A={};N.dataSetParams&&(A=N.dataSetParams),$&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...$,dataTo:N.dataTo,dataSetParams:A})),N.dataTo==="1"&&(N!=null&&N.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(N.hrpIndexVariates)),N.dataTo==="2"&&(N!=null&&N.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(N.dataSetParams)))},getSourceType:er,getLoadType:Jl,getUseType:Zl,graphicConfig:C,indSourceRef:i}}}),Sy="",Cd={class:"data-source-list"},wd={class:"columns"},kd={class:"column-item"},xd={key:0},_d={key:1},Sd=["onClick"],Td={key:0},Nd={class:"column-child-item"},Ad={class:"column-child-item-name"};function Od(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),d=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),c=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin"),y=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",Cd,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=b=>t.searchText=b),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(d,{key:0,ref:"indSourceRef",data:t.dataSourceList,hasChildren:!0,isSub:!1,graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onSetItemDisabled:t.setItemDisabled,onOnDragStart:t.onDragStart},null,8,["data","graphicConfig","onSetItemDisabled","onOnDragStart"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",wd,[e.createVNode(f,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(b,h)=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:e.normalizeClass(t.setItemDisabled(b.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",kd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(b.loadType)),1),b.useType?(e.openBlock(),e.createElementBlock("div",xd,"数据使用系统:"+e.toDisplayString(t.getUseType(b.useType)),1)):e.createCommentVNode("",!0),b.systemSource?(e.openBlock(),e.createElementBlock("div",_d,"制度出处:"+e.toDisplayString(b.systemSource),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleGroup(h)},[b.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(c,{key:1})),e.createTextVNode(" "+e.toDisplayString((b.indexCode?b.indexCode:"")+" "+b.name)+"【"+e.toDisplayString(t.getSourceType(b.dataTo))+"】 ",1)],8,Sd)]),_:2},1024)]),b.show?(e.openBlock(),e.createElementBlock("div",Td,[e.createVNode(u,{modelValue:b.dataViewColumns,"onUpdate:modelValue":m=>b.dataViewColumns=m,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(b.dataViewColumns),onStart:m=>t.onDragStart(m,b)},{item:e.withCtx(({element:m})=>[e.createElementVNode("div",Nd,[e.createTextVNode(" 【"+e.toDisplayString(m.scope==="FIELD"?t.mapDataSetScope(m.genericType):t.mapScope(m.scope))+"】 ",1),e.createElementVNode("span",Ad,e.toDisplayString(m.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(y,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=b=>t.pagination.pageSize=b),total:t.pagination.totalResult,"show-total":b=>`共 ${b} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=b=>t.pagination.currentPage=b),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const Ed=ne(gd,[["render",Od],["__scopeId","data-v-b9ee6c24"]]),Bd=e.defineComponent({name:"DataList",components:{DataSourceList:Ed,DataViewList:si},setup(){return{source:e.inject(Yt)}}});function Vd(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),d=e.resolveComponent("data-source-list");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.source==="SQL_VIEW"?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),t.source==="INDICATOR_LIB"||t.source==="EDV_DATA_SET"?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)],64)}const Ld=ne(Bd,[["render",Vd]]),tr={mounted(t){t.focus()}},vd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Bt,AModal:R.Modal,AButton:R.Button,ASelect:R.Select,ASelectOption:R.SelectOption,DeleteOutlined:Ha},setup(t,{expose:o}){var A;const n=(A=window==null?void 0:window.config)==null?void 0:A.pageId,a=e.inject(Ee),l=e.unref(e.inject(Be)),r=e.inject(ke),s=e.inject(Ne),d=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),c=e.ref([]),p=e.ref("1"),u=e.ref([]),f=B=>{const j=t.sortList.filter(F=>!e.unref(u).find(k=>k.columnName===F.name)||B.columnName===F.name),P=[];return j.forEach((F,k)=>{P.includes(F.name)?F.name=`${F.name}_ecanrepeat_${k}`:P.push(F.name)}),j},y=async()=>{try{const B=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(d),dataViewId:e.unref(i),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:n,pageFlag:!0,edvDataSetId:e.unref(r).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:j,data:P=[]}=B.data;j&&(c.value=P==null?void 0:P.slice(0,200))}catch(B){console.error(B)}},b=()=>{var k,E;const B=((k=e.unref(r)[t.type])==null?void 0:k.slice())||[],j=B[t.index],{label:P,name:F}=t.item;e.unref(p)==="2"?j.sort={label:P,columnName:F,type:"CUSTOM",customOrderColumns:e.unref(c)}:e.unref(p)==="1"&&((E=e.unref(u))!=null&&E.length?j.sort=Z.cloneDeep(e.unref(u)):delete j.sort),s({[t.type]:B})};let h=!1;const m=()=>{h=!0},C=e.ref(!1),g=B=>{var P;const{sort:j}=B;j?Array.isArray(j)?(p.value=((P=j[0])==null?void 0:P.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=Z.cloneDeep(j):u.value=[]):(p.value=(j==null?void 0:j.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[Z.cloneDeep(j)]:u.value=[]):u.value=[],C.value=!0},T=()=>{C.value=!1},w=()=>{e.unref(p)==="2"?(h&&b(),h=!1):b(),T()};return o({showModal:g}),e.watch(C,B=>{var j,P;if(B){const F=(P=(j=t.item)==null?void 0:j.sort)==null?void 0:P.customOrderColumns;F==null?y():c.value=F}else c.value=[];window.changeShowTable&&window.changeShowTable(!B)},{flush:"post"}),{visible:C,customSortList:c,activeKey:p,combSortList:u,getSortOptions:f,onChange:m,onDeleteConfig:()=>{var P;const B=((P=e.unref(r)[t.type])==null?void 0:P.slice())||[],j=B[t.index];delete j.sort,s({[t.type]:B}),T()},onCancel:w,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:B=>{u.value.splice(B,1)},onColumnChange:B=>{const j=e.unref(u).find(P=>P.columnName===B);if(j){const P=t.sortList.find(F=>F.name===B);P&&(j.label=P.label,P.defaultCode?j.defaultCode=P.defaultCode:delete j.defaultCode)}}}}}),Ty="",Fd={class:"button-wrapper"},$d={class:"list-wrapper"},Id={class:"button-wrapper"},Dd={class:"sort-item"};function Md(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-tabs"),y=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(y,{title:"排序配置",visible:t.visible,"destroy-on-close":"",width:"50%",onCancel:t.onCancel,bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null},{default:e.withCtx(()=>[e.createVNode(f,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=b=>t.activeKey=b)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Fd,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",$d,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(b,h)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:h},[e.createVNode(d,{value:b.columnName,"onUpdate:value":m=>b.columnName=m,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(b),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(d,{value:b.order,"onUpdate:value":m=>b.order=m,style:{"margin-left":"10px",width:"100px"},placeholder:"升/降序"},{default:e.withCtx(()=>[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})]),_:2},1032,["value","onUpdate:value"]),e.createVNode(c,{style:{color:"red","margin-left":"10px"},onClick:m=>t.handleDeleteSort(h)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[e.createVNode(s,{danger:"",onClick:t.onDeleteConfig},{default:e.withCtx(()=>[e.createTextVNode(" 删除配置 ")]),_:1},8,["onClick"])]),e.createVNode(u,{modelValue:t.customSortList,"onUpdate:modelValue":o[0]||(o[0]=b=>t.customSortList=b),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",Dd,e.toDisplayString(b),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Pd=ne(vd,[["render",Md],["__scopeId","data-v-6a468e35"]]),jd=e.defineComponent({name:"CustomGroupModal",directives:{focus:tr},components:{CloseOutlined:Qt,AModal:R.Modal,ASelect:R.Select,ASelectOption:R.SelectOption,AButton:R.Button,AInput:R.Input,ACheckbox:R.Checkbox,ACollapse:R.Collapse,ACollapsePanel:R.CollapsePanel,ATag:R.Tag,ACheckableTag:R.CheckableTag},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},setup(t,{expose:o}){var M;const n=e.inject(Ee),a=(M=window==null?void 0:window.config)==null?void 0:M.pageId,l=e.unref(e.inject(Be));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),d=e.ref(null),i=e.ref([]),c=e.ref([]),p=e.computed(()=>{const _=e.unref(c).map(V=>V.title);return new Set(_)}),u=e.ref([]);e.watch(()=>e.unref(c).length,_=>{u.value=new Array(_).fill(!1)});const f=e.computed(()=>{let _=0;return e.unref(c).forEach(V=>{var D;(D=V.data)==null||D.forEach(L=>{L.checked&&_++})}),_}),y=()=>{const _=e.unref(d);if(!_){R.message.error("创建分组名不能空");return}e.unref(p).has(_)?R.message.error("分组名已存在,请重新命名"):(e.unref(c).push({title:_,data:[]}),r=!0)},b=_=>{e.unref(c).splice(_,1),r=!0},h=e.ref(null),m=()=>{if(e.unref(f)===0){R.message.error("当前移入分组已选个数为0");return}const _=e.unref(h);if(_==null){R.message.error("请选择移入分组");return}if(!e.unref(c)[_]){R.message.error("移入分组不存在,请重新选择");return}const V=[],D=e.unref(c).length;for(let L=0;L<D;L++){const I=e.unref(c)[L];e.unref(c)[L].data=I.data.filter(U=>(U.checked&&V.push({...U,checked:!1}),!U.checked))}e.unref(c)[_].data=[...V,...e.unref(c)[_].data],r=!0},C=_=>{e.unref(u)[_]=!0},g=_=>{e.unref(u)[_]=!1},T=(_,V)=>{const D=_.target.value;e.unref(p).has(D)&&R.message.error("组名不能相同,请修改"),e.unref(c)[V].title=D,r=!0},w=e.inject(ke),x=e.inject(Ne),S=e.computed(()=>e.unref(w).source),N=e.computed(()=>e.unref(w).dataViewId),$=e.ref(!1),A=()=>{var H,q;const _=e.unref(c);let V="";e.unref($)&&(V=(H=_[0])==null?void 0:H.title);const D=_==null?void 0:_.length,L={};for(let Q=1;Q<D;Q++){const J=_[Q]||{},{title:oe,data:ae}=J;L[oe]=(ae==null?void 0:ae.map(re=>re.label))||[]}const I=((q=e.unref(w)[t.type])==null?void 0:q.slice())||[],U=I[t.index];U.customGroup={groupInfoMap:L,otherGroupName:V},x({[t.type]:I})},B=e.ref(!1),j=()=>{B.value=!0},P=()=>{B.value=!1},F=()=>{P(),r&&A(),r=!1},k=()=>{r=!0},E=new Set,O=async()=>{const _=t.item.customGroup||{},V=_.otherGroupName,D=_.groupInfoMap;(V===""||V==null)&&($.value=!1),e.unref(c)[0]={title:V||"未分组",data:[]};let L=1;for(const I in D)if(Object.prototype.hasOwnProperty.call(D,I)){const H=D[I].map(q=>(E.add(q),{label:q,checked:!1}));e.unref(c)[L]={title:I,data:H},L++}await v()},v=async()=>{var _;try{const V=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(S),dataViewId:e.unref(N),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(w).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:D,data:L=[]}=V.data;if(D){const I=[];(_=L==null?void 0:L.slice(0,200))==null||_.forEach(U=>{E.has(U)||I.push({label:U,checked:!1})}),e.unref(c)[0].data=I}}catch(V){console.error(V)}};return e.watch(B,_=>{_&&O(),window.changeShowTable&&window.changeShowTable(!_)},{flush:"post"}),o({showModal:j}),{visible:B,title:s,activeKey:i,customGroupList:c,onCancel:F,useOtherGroup:$,selectCount:f,createGroupTitle:d,onAddGroup:y,onDeleteGroup:b,onMoveInGroup:m,selectGroupIndex:h,onEditTitle:C,onTitleChange:T,onFinishEditTitle:g,onUseOtherGroup:k,customGroupEditTitleList:u}}}),Ny="",Ay="",Rd={class:"custom-group-header"},Ud={class:"move-and-create"},zd={class:"select-tip"},Gd={class:"select-count"},Hd={class:"create-group"},Wd={class:"custom-group-content"},Yd=["onClick"],qd={class:"extra"},Kd={class:"custom-group-list"},Xd={class:"text"};function Qd(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),c=e.resolveComponent("a-input"),p=e.resolveComponent("a-checkbox"),u=e.resolveComponent("a-tag"),f=e.resolveComponent("close-outlined"),y=e.resolveComponent("a-checkable-tag"),b=e.resolveComponent("a-collapse-panel"),h=e.resolveComponent("a-collapse"),m=e.resolveComponent("a-modal"),C=e.resolveDirective("focus");return e.openBlock(),e.createBlock(m,{title:t.title,visible:t.visible,"destroy-on-close":"",width:"50%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column"},footer:null,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Rd,[e.createElementVNode("div",Ud,[e.createElementVNode("div",null,[e.createElementVNode("span",zd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Gd,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(d,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=g=>t.selectGroupIndex=g),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,T)=>(e.openBlock(),e.createBlock(s,{key:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createElementVNode("div",Hd,[e.createTextVNode(" 创建分组: "),e.createVNode(c,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[1]||(o[1]=g=>t.createGroupTitle=g),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])])]),e.createElementVNode("div",null,[e.createVNode(p,{checked:t.useOtherGroup,"onUpdate:checked":o[2]||(o[2]=g=>t.useOtherGroup=g),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])])]),e.createElementVNode("div",Wd,[e.createVNode(h,{activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=g=>t.activeKey=g),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,T)=>(e.openBlock(),e.createBlock(b,{key:T},{header:e.withCtx(()=>[t.customGroupEditTitleList[T]?e.withDirectives((e.openBlock(),e.createBlock(c,{key:1,class:"edit-title-input",value:g.title,size:"small",onChange:w=>t.onTitleChange(w,T),onBlur:w=>t.onFinishEditTitle(T),onPressEnter:w=>t.onFinishEditTitle(T)},null,8,["value","onChange","onBlur","onPressEnter"])),[[C]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(w=>t.onEditTitle(T),["prevent","stop"])},e.toDisplayString(g.title),9,Yd))]),extra:e.withCtx(()=>[e.createElementVNode("div",qd,[T===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),T!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(f,{onClick:e.withModifiers(w=>t.onDeleteGroup(T),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Kd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.data,(w,x)=>(e.openBlock(),e.createBlock(y,{color:"red",checked:w.checked,"onUpdate:checked":S=>w.checked=S,class:"custom-group",key:x},{default:e.withCtx(()=>[e.createElementVNode("span",Xd,e.toDisplayString(w.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const Jd=ne(jd,[["render",Qd],["__scopeId","data-v-a0733a80"]]);let we=(t=21)=>{let o="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let a=n[t]&63;a<36?o+=a.toString(36):a<62?o+=(a-26).toString(36).toUpperCase():a<63?o+="_":o+="-"}return o};var Zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gn={},ep={get exports(){return Gn},set exports(t){Gn=t}};(function(t,o){(function(n,a){t.exports=a()})(Zd,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var d=s.add;s.add=function(c,p){return c=Number(c),this.$utils().p(p)===a?this.add(3*c,n):d.bind(this)(c,p)};var i=s.startOf;s.startOf=function(c,p){var u=this.$utils(),f=!!u.u(p)||p;if(u.p(c)===a){var y=this.quarter()-1;return f?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return i.bind(this)(c,p)}}})})(ep);const tp=Gn;he.extend(tp);const op=e.defineComponent({name:"Condition",components:{CloseOutlined:Qt,DownOutlined:Es,AppstoreAddOutlined:dn,ASelect:R.Select,AInput:R.Input,ADatePicker:R.DatePicker,AButton:R.Button,ADropdown:R.Dropdown,AMenu:R.Menu,AMenuItem:R.MenuItem,ASubMenu:R.SubMenu,APopover:R.Popover,ATabs:R.Tabs,ATabPane:R.TabPane,ARadioGroup:R.RadioGroup,ARadio:R.Radio,AInputNumber:R.InputNumber,ASelectOption:R.SelectOption,MenuOutlined:xn},props:{data:{type:Object,default:()=>({})},level:{type:Number,default:0},index:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},setup(t){var Wt,Nt,Fe,ot,nt,at,$e,At,lt,mt,Ot,Wo,bo,yo,go;const o=(Wt=window==null?void 0:window.config)==null?void 0:Wt.pageId,n=e.inject(ke),a=e.inject(Ee),l=e.unref(e.inject(Be)),r=e.inject(fa),s=e.inject(Ue),d=e.ref(!1),i=he(),c=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(ee=>{const{keyName:le="",id:ie="",type:ue}=ee;ue==="ecanRangePicker"?W.push({value:`${ie}-startTime`,label:`${le||ie}-开始时间值`,keyName:`${le||ie}-startTime`,id:ie},{value:`${ie}-endTime`,label:`${le||ie}-结束时间值`,keyName:`${le||ie}-endTime`,id:ie}):W.push({value:ie,label:`${le||ie}`,keyName:`${le||ie}`,id:ie})}),W}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(c)]),u=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.dataViewId}),f=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.source}),y=e.ref(!1),b={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},h=[{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=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),C=e.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:""}]),g=[{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"}],T=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],w=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],x=e.ref({fieldName:(Nt=t.data)==null?void 0:Nt.fieldName,fieldType:(Fe=t.data)==null?void 0:Fe.fieldType,rule:(ot=t.data)==null?void 0:ot.rule,id:(nt=t.data)==null?void 0:nt.id,fieldValue:S(),label:(at=t.data)==null?void 0:at.label,targetSource:"",typeGuid:($e=t.data)==null?void 0:$e.typeGuid,indexCode:(At=t.data)==null?void 0:At.indexCode,indexCodeNum:(lt=t.data)==null?void 0:lt.indexCodeNum,dataType:((mt=t.data)==null?void 0:mt.dataType)||"",componentId:((Ot=t.data)==null?void 0:Ot.componentId)||"",useCurrentTime:!!((Wo=t.data)!=null&&Wo.useCurrentTime),keyValue:(bo=t.data)==null?void 0:bo.keyValue,modelKey:(yo=t.data)==null?void 0:yo.modelKey,prop:(go=t.data)==null?void 0:go.prop});function S(){const{fieldType:W="",dataType:K="",fieldValue:ee=""}=t.data;if(W==="DATE"&&K==="time")return ee&&he(ee);if(K==="component"){const le=e.unref(c).find(ie=>ie.keyName===ee);return le?le.value:ee}else return ee}const N=e.ref([]),$=e.ref(!1),A=e.computed(()=>x.value.fieldType==="DATE"),B=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let ee=[];const le=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],ie=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")ee=N.value;else if(le.includes(W)){let ue=[];for(const z in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),z)&&!ie.includes(z)){const G=e.unref(n)[z];Array.isArray(G)&&(le.includes(z)?ue=ue.concat(G.filter(Y=>Y.show)):ue=ue.concat(G))}ee=ue}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(ee=e.unref(r));return ee.map(ue=>({...ue,label:ue.label||ue.title,value:ue.name}))}),{updateCondition:j,deleteCondition:P,addCondition:F}=e.inject(wo,{updateCondition:(W,K,ee)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,ee)=>{}}),k=()=>{P(t.index,t.path)};e.watch(x,W=>{const K=Z.cloneDeep(W);W.fieldType==="DATE"&&W.dataType!=="component"&&W.fieldValue&&(K.fieldValue=W.fieldValue.format(W.dateFormat)),j(K,t.index,t.path)},{deep:!0}),e.watch(d,W=>{x.value.fieldValue="",x.value.useCurrentTime=W});const E=W=>{var se;const K=e.unref(B).find(ce=>ce.value===W)||{},{name:ee,genericType:le,id:ie,edvDataSetId:ue,label:z,typeGuid:G,indexCode:Y,indexCodeNum:X}=K;x.value={id:ie,fieldName:ee,fieldType:le,label:z,rule:"",fieldValue:le==="DATE"?null:void 0,targetSource:"",typeGuid:G,indexCode:Y,edvDataSetId:ue,indexCodeNum:X,dataType:"",useCurrentTime:!1,keyValue:((se=e.unref(x))==null?void 0:se.keyValue)||we(),modelKey:"",prop:""}},O=W=>{const K=e.unref(c).find(ee=>ee.value===W)||{};e.unref(x).componentId=K.id||""},v=e.computed(()=>{const W=e.unref(x).fieldType;return W==="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"}]:W==="NUMBER"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:W==="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=e.computed(()=>{let W="";const K=e.unref(v).find(ee=>ee.value===e.unref(x).rule);return K&&(W=K.label),W}),_=e.computed(()=>{let W={fontSize:"12px"};return e.unref(M)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),V=e.ref([]),D=async()=>{var W;if(!(e.unref(V).length>0))try{const K=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(f),dataViewId:e.unref(u),groupColumn:e.unref(x).fieldName,hrpIndexTypeGuid:e.unref(x).typeGuid,pageId:o,pageFlag:!0,edvDataSetId:e.unref(x).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:ee,data:le=[]}=K.data;ee&&(V.value=(W=le==null?void 0:le.slice(0,200))==null?void 0:W.map(ie=>({label:ie,value:ie})))}catch(K){console.error(K)}},L=W=>{e.unref(x).rule=W,e.unref(x).fieldValue=e.unref(x).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(W)&&D()},I=W=>{e.unref(x).dataType=W,e.unref(x).fieldValue="",e.unref(x).modelKey="",e.unref(x).prop=""},U=e.ref(),H=W=>{U.value=W,e.unref(x).fieldValue=(W==null?void 0:W.join(","))||""},q=W=>{const{keyPath:K}=W;e.unref(x).rule=K[0],e.unref(x).dataType=K[1],e.unref(x).dateFormat=K[2],e.unref(x).fieldValue="",e.unref(x).modelKey="",e.unref(x).prop=""};e.onMounted(async()=>{var ie,ue,z,G,Y,X,se,ce,te,ge;if(x.value.dataType=((ie=t.data)==null?void 0:ie.dataType)||"",x.value.componentId=((ue=t.data)==null?void 0:ue.componentId)||"",x.value.keyValue=(z=t.data)==null?void 0:z.keyValue,x.value.modelKey=(G=t.data)==null?void 0:G.modelKey,x.value.prop=(Y=t.data)==null?void 0:Y.prop,e.unref(x).fieldType==="DATE"){const{activeKey:pe,dateCalcTypes:de=[]}=t.data||{};if(e.unref(x).dateFormat=(X=t.data)==null?void 0:X.dateFormat,e.unref(x).activeKey=pe,e.unref(x).calcWays=((se=t.data)==null?void 0:se.calcWays)||[],e.unref(x).dateCalcTypes=de,e.unref(x).useCurrentTime&&e.unref(x).dataType!=="component"&&(d.value=!0),pe===5){const Ce=e.unref(x).calcWays[0];if(Ce){const fe=Ce.split("-");e.unref(m).expression=fe[0],e.unref(m).around=fe[1]}e.unref(m).unit=de[0]||"YEAR"}else{e.unref(x).radioValue=((ce=t.data)==null?void 0:ce.radioValue)||"";const Ce=e.unref(C).find(fe=>{var xe;return fe.key===((xe=t.data)==null?void 0:xe.activeKey)});Ce&&ft(Ce,t.data)}}else U.value=((ge=(te=t.data)==null?void 0:te.fieldValue)==null?void 0:ge.split(","))||[];const{fieldType:W,fieldName:K,rule:ee}=x.value;W!=="DATE"&&K&&ee&&["IN","NOT_IN"].includes(ee)&&D();const{source:le}=e.unref(n);le==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(pe=>{pe.data.success&&(console.log(pe.data),N.value=pe.data.data.column.map(de=>({...de,genericType:de.columnCategory==="0"?"TEXT":de.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:pe.data.data.id,name:de.columnName,label:de.columnName})))}).catch(pe=>{console.error(pe)})});const Q=W=>{if(e.unref(x).activeKey===W){e.unref(C)[W].radioValue=e.unref(x).radioValue,e.unref(C)[e.unref(x).activeKey]&&(e.unref(C)[e.unref(x).activeKey].radioValue=e.unref(x).radioValue,e.unref(x).radioValue==="1"?e.unref(C)[W].beforeNum=e.unref(x).calcWays[0]:e.unref(x).radioValue==="2"&&(e.unref(C)[W].afterNum=e.unref(x).calcWays[0]));return}e.unref(C).forEach(K=>{K.beforeNum=0,K.afterNum=0,K.radioValue="1",K.value=""})},J=(W,K)=>{y.value=!0;const ee=W.target.value,le=K.type,ie=e.unref(x).dateFormat,ue=Math.abs(K.beforeNum),z=K.afterNum;K.value=Qe(ee,le,ie,ue,z)},oe=W=>{const K=e.unref(x).activeKey;if(W!==K)return;let ee="";K===0?ee="years":K===1?ee="quarters":K===2?ee="months":K===3?ee="weeks":K===4&&(ee="days");const le=e.unref(x).dateFormat,ie=e.unref(x).radioValue;let ue=0,z=0;return ie==="1"?ue=Math.abs(e.unref(x).calcWays[0]):ie==="2"&&(z=e.unref(x).calcWays[0]),Qe(ie,ee,le,ue,z)},ae=(W,K,ee,le)=>{if(y.value=!0,K.radioValue===le){const ie=W.target.value;ee==="+"?K.value=he().add(ie,K.type).format(e.unref(x).dateFormat):K.value=he().subtract(ie,K.type).format(e.unref(x).dateFormat)}},re=(W,K)=>{e.unref(x).calcWays||(e.unref(x).calcWays=[]),e.unref(x).activeKey=K,e.unref(x).radioValue=W.radioValue,W.radioValue==="1"?e.unref(x).calcWays[0]="-"+W.beforeNum:W.radioValue==="2"?e.unref(x).calcWays[0]=W.afterNum:W.radioValue==="3"?K===4?e.unref(x).calcWays[0]="0":e.unref(x).calcWays[0]="BEGIN":W.radioValue==="4"&&(e.unref(x).calcWays[0]="END"),K===0?e.unref(x).dateCalcTypes=["YEAR"]:K===1?e.unref(x).dateCalcTypes=["QUARTER"]:K===2?e.unref(x).dateCalcTypes=["MONTH"]:K===3?e.unref(x).dateCalcTypes=["WEEK"]:K===4&&(e.unref(x).dateCalcTypes=["DAY"]),$.value=!1},He=()=>{e.unref(x).activeKey=5,e.unref(x).dateCalcTypes=[e.unref(m).unit],e.unref(x).calcWays[0]=`${e.unref(m).expression}-${e.unref(m).around}`,$.value=!1};function ft(W,K){const{radioValue:ee="",calcWays:le=[]}=K;W.radioValue=ee,le!=null&&le.length&&(ee==="1"?W.beforeNum=Math.abs(le[0]):ee==="2"&&(W.afterNum=le[0]))}function Qe(W,K,ee,le,ie){if(W==="1")return he().subtract(le,K).format(ee);if(W==="2")return he().add(ie,K).format(ee);if(W==="3"){if(K==="years")return he().startOf("year").format(ee);if(K==="quarters")return he().startOf("quarter").format(ee);if(K==="months")return he().startOf("month").format(ee);if(K==="days")return he().format(ee)}else if(W==="4"){if(K==="years")return he().endOf("year").format(ee);if(K==="quarters")return he().endOf("quarter").format(ee);if(K==="months")return he().endOf("month").format(ee)}return""}const ye=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Te=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(x).rule));return{fieldOptions:B,ruleOptions:v,onFieldChange:E,condition:x,valueOptions:V,onRuleChange:L,onDataTypeChange:I,onFieldValueSelectChange:H,fieldValues:U,onDelete:k,isDateType:A,formatList:h,tabDateList:C,compareList:g,menuRule:T,dateBtnLabel:M,downIconStyle:_,popoverVisible:$,dateRadioStyle:b,showTime:y,controlList:c,keyNameOptions:p,dataTypeList:w,customTabData:m,isUseCurrentTime:d,currentTime:i,isShowCustomDataType:Te,handleMenuClick:q,changeTabInitDate:Q,changeRadioValue:J,getFieldValue:oe,blurCompare:ae,okDatePickConfig:re,onChangeComponent:O,filterOption:ye,okCustomConfig:He,clickConditionMenu:({key:W})=>{F(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:N}}}),Oy="",Ey="",np={class:"condition"},ap=["title"],lp={class:"rule"},rp={class:"data-type"},ip={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},sp={class:"popover-content-wrap"},cp={key:0,class:"use-current-time"},dp={class:"tabFilterRadio"},pp={key:0},up={key:1},fp={style:{"margin-left":"10px"}},mp={style:{"margin-left":"10px"}},hp={style:{position:"absolute",bottom:"10px"}},bp={style:{display:"flex"}},yp={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function gp(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),c=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),f=e.resolveComponent("a-button"),y=e.resolveComponent("a-dropdown"),b=e.resolveComponent("a-date-picker"),h=e.resolveComponent("a-input"),m=e.resolveComponent("a-checkbox"),C=e.resolveComponent("a-input-number"),g=e.resolveComponent("a-radio"),T=e.resolveComponent("a-radio-group"),w=e.resolveComponent("a-tab-pane"),x=e.resolveComponent("a-tabs"),S=e.resolveComponent("appstore-add-outlined"),N=e.resolveComponent("a-popover"),$=e.resolveComponent("menu-outlined"),A=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",np,[e.createVNode(d,{class:"field-name",value:t.condition.fieldName,onChange:t.onFieldChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fieldOptions,(B,j)=>(e.openBlock(),e.createBlock(s,{key:j,value:B.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:B.label},e.toDisplayString(B.label),9,ap)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",lp,[t.isDateType?(e.openBlock(),e.createBlock(y,{key:0,class:"dropdown",trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.handleMenuClick},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.ruleOptions,B=>(e.openBlock(),e.createBlock(c,{key:B.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===B.value?"color: #1890FF;":"")},e.toDisplayString(B.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,j=>{var P;return e.openBlock(),e.createBlock(c,{key:j.value,disabled:j.value==="component"&&!((P=t.controlList)!=null&&P.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===B.value&&t.condition.dataType===j.value?"color: #1890FF;":"")},e.toDisplayString(j.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,F=>(e.openBlock(),e.createBlock(i,{key:F.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===B.value&&t.condition.dataType===j.value&&t.condition.dateFormat===F.value?"color: #1890FF;":"")},e.toDisplayString(F.label),5)]),_:2},1024))),128))]),_:2},1032,["disabled"])}),128))]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dateBtnLabel)+" ",1),e.createVNode(u,{style:e.normalizeStyle(t.downIconStyle)},null,8,["style"])]),_:1})]),_:1})):(e.openBlock(),e.createBlock(d,{key:1,style:{width:"100%"},value:t.condition.rule,options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]))]),e.withDirectives(e.createElementVNode("div",rp,[e.createVNode(d,{style:{width:"100%"},value:t.condition.dataType,onChange:t.onDataTypeChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataTypeList,(B,j)=>(e.openBlock(),e.createBlock(s,{key:j,value:B.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])],512),[[e.vShow,(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType]]),t.isDateType?(e.openBlock(),e.createElementBlock("div",ip,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(b,{key:0,disabled:"",style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.currentTime,format:t.condition.dateFormat},null,8,["value","format"])):(e.openBlock(),e.createBlock(b,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=B=>t.condition.fieldValue=B),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(d,{key:1,"show-search":"",style:e.normalizeStyle({width:t.condition.fieldValue==="PARENT"?"":"calc(100% - 35px)",marginRight:"10px"}),value:t.condition.fieldValue,"onUpdate:value":o[1]||(o[1]=B=>t.condition.fieldValue=B),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["style","value","filter-option","options","onChange"])):e.createCommentVNode("",!0),t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(h,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[2]||(o[2]=B=>t.condition.modelKey=B),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(h,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=B=>t.condition.prop=B),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(N,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=B=>t.popoverVisible=B),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",sp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",cp,[e.createVNode(m,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=B=>t.isUseCurrentTime=B)},{default:e.withCtx(()=>[e.createTextVNode("使用当前时间")]),_:1},8,["checked"])])):e.createCommentVNode("",!0),e.createVNode(x,{defaultActiveKey:t.condition.activeKey,onChange:t.changeTabInitDate},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabDateList,(B,j)=>(e.openBlock(),e.createBlock(w,{key:j,tab:B.label},{default:e.withCtx(()=>[e.createElementVNode("div",dp,[e.createVNode(T,{value:B.radioValue,"onUpdate:value":P=>B.radioValue=P,onChange:P=>t.changeRadioValue(P,B)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",pp,"相对当前时间:"+e.toDisplayString(B.value),1)):(e.openBlock(),e.createElementBlock("div",up,"相对当前时间:"+e.toDisplayString(t.getFieldValue(j)),1)),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(C,{value:B.beforeNum,"onUpdate:value":P=>B.beforeNum=P,min:0,onBlur:P=>t.blurCompare(P,B,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",fp,e.toDisplayString(B.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(C,{value:B.afterNum,"onUpdate:value":P=>B.afterNum=P,min:0,onBlur:P=>t.blurCompare(P,B,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",mp,e.toDisplayString(B.afterLabel),1)]),_:2},1032,["style"]),B.beforeText?(e.openBlock(),e.createBlock(g,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),B.afterText?(e.openBlock(),e.createBlock(g,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",hp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=P=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:P=>t.okDatePickConfig(B,j)},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:2},1032,["onClick"])])])]),_:2},1032,["tab"]))),128)),(e.openBlock(),e.createBlock(w,{tab:"自定义",key:5},{default:e.withCtx(()=>[e.createElementVNode("div",bp,[e.createVNode(d,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=B=>t.customTabData.expression=B),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=B=>t.customTabData.unit=B),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(s,{value:"QUARTER"},{default:e.withCtx(()=>[e.createTextVNode("季度")]),_:1}),e.createVNode(s,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(s,{value:"WEEK"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(s,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=B=>t.customTabData.around=B)},{default:e.withCtx(()=>[e.createVNode(s,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(s,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value"])]),e.createElementVNode("div",yp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=B=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:t.okCustomConfig},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])])]),_:1}))]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[10]||(o[10]=B=>{t.popoverVisible=!0})},[e.createVNode(S)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(d,{key:1,class:"field-value",value:t.fieldValues,mode:"multiple",options:t.valueOptions,onChange:t.onFieldValueSelectChange},null,8,["value","options","onChange"])):(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType&&t.condition.dataType==="component"?(e.openBlock(),e.createBlock(d,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=B=>t.condition.fieldValue=B),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])):(e.openBlock(),e.createBlock(h,{key:3,class:"field-value",value:t.condition.fieldValue,"onUpdate:value":o[13]||(o[13]=B=>t.condition.fieldValue=B)},null,8,["value"])),!t.isDateType&&t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(h,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[14]||(o[14]=B=>t.condition.modelKey=B),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(h,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=B=>t.condition.prop=B),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(y,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(i,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(i,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode($,{class:"more-icon"})]),_:1}),e.createVNode(A,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Cp=ne(op,[["render",gp],["__scopeId","data-v-29a39def"]]),wp=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:Cp}}),By="",kp={key:0,class:"condition-list"},xp={key:0,class:"condition-container"},_p={key:0,class:"condition-text"},Sp={key:1,class:"condition-text"},Tp={class:"conditions"};function Np(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),d=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",kp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",xp,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",_p,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Sp,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Tp,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${c}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(d,{class:"condition",key:i.keyValue||`${t.level}-${c}`,data:i,level:t.level,index:c,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const Ap=ne(wp,[["render",Np],["__scopeId","data-v-553c1496"]]),Op=e.defineComponent({name:"TruncationList",props:{list:{type:Array,default:()=>[]}},components:{ASelect:R.Select,AInput:R.Input,AInputNumber:R.InputNumber},setup(t,{emit:o}){const n=[{label:"前N个",value:"TOP"},{label:"后N个",value:"BOTTOM"}],a=e.ref([]);return e.watch(a,r=>{r!=null&&r.length&&o("update",r)},{deep:!0}),e.onMounted(()=>{var r;(r=t.list)!=null&&r.length?a.value=Z.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),Vy="",or=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),Ep={class:"truncations"},Bp={class:"rule"},Vp={class:"field-value"},Lp={class:"field-value"},vp=or(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Fp=or(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),$p=["onClick"];function Ip(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",Ep,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Bp,[e.createVNode(s,{style:{width:"100%"},value:c.rule,"onUpdate:value":u=>c.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",Vp,[e.createTextVNode(" N= "),e.createVNode(d,{value:c.num,"onUpdate:value":u=>c.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",Lp,[vp,e.createVNode(i,{value:c.name,"onUpdate:value":u=>c.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),Fp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(c)},"清空",8,$p)]))),128))])}const Dp=ne(Op,[["render",Ip],["__scopeId","data-v-f543c690"]]),Mp=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:Ap,TruncationList:Dp,AModal:R.Modal,AButton:R.Button,ATabs:R.Tabs,ATabPane:R.TabPane},setup(t,{expose:o}){var k;const n=e.ref("1"),a=()=>{var E;return`添加过滤条件-${((E=t.item)==null?void 0:E.label)||""}`},l=e.inject(ke),r=e.inject(Ne),s=e.inject(Ue),d=e.computed(()=>{var E;return(E=e.unref(l))==null?void 0:E.dataSourceId}),i=e.inject(Ie),c=e.inject(ko),p=e.ref([]),u=e.ref([]),f=e.ref(!1),y=e.inject(Yt),b=E=>{var O;for(const v of E)(O=v.conditions)!=null&&O.length?b(v.conditions):v.keyValue=we()};e.watch(f,E=>{var O,v,M,_;if(E){if(Array.isArray((O=t.item)==null?void 0:O.conditions)){const V=Z.cloneDeep(((v=t.item)==null?void 0:v.conditions)||[]);b(V),p.value=V}Array.isArray((M=t.item)==null?void 0:M.truncations)?u.value=Z.cloneDeep((_=t.item)==null?void 0:_.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!E)},{flush:"post"});let h=!1;const m=E=>{var O;h=!0,e.unref(p)==null||((O=e.unref(p))==null?void 0:O.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==E?p.value=[{join:E,conditions:[e.unref(p)[0],{keyValue:we()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===E&&p.value[0].conditions.push({keyValue:we()}))};e.provide(wo,{updateCondition(E,O,v){var V;h=!0;let M=e.unref(p);const _=v.split("-");if(_!=null&&_.length)for(const D of _)if(M[D])M=(V=M[D])==null?void 0:V.conditions;else break;Array.isArray(M)&&M[O]&&(M[O]=E)},deleteCondition(E,O){var _,V,D;h=!0;let v=e.unref(p);const M=O.split("-");if(M!=null&&M.length){for(const L of M)if(v[L])v=(_=v[L])==null?void 0:_.conditions;else break;if(Array.isArray(v)&&v[E])if(v.splice(E,1),v.length===1){if(M.length>0){const L=M.length-1,I=M[L],U=M.slice(0,L);let H=e.unref(p),q="";for(const Q of U)if(H[Q])q=(V=H[Q])==null?void 0:V.join,H=(D=H[Q])==null?void 0:D.conditions;else break;if(q===v[0].join){if(Array.isArray(v[0].conditions)){const Q=Z.cloneDeep(v[0].conditions);H.splice(+I,1),H.splice(+I,0,...Q)}}else H[I]=v[0]}}else v.length===0&&(p.value=[])}},addCondition(E,O,v){var D,L;h=!0;let M=e.unref(p),_="";const V=E.split("-");if(V!=null&&V.length){for(const I of V)if(M[I])_=(D=M[I])==null?void 0:D.join,M=(L=M[I])==null?void 0:L.conditions;else break;if(_===v)M.splice(O+1,0,{keyValue:we()});else{const I=Z.cloneDeep(M[O]);M[O]={join:v,conditions:[I,{keyValue:we()}]}}}}});const C=E=>{h=!0,u.value=E},g=e.computed(()=>{var O;const E=[];return(O=e.unref(s))==null||O.forEach(v=>{const{keyName:M="",id:_="",type:V}=v;V==="ecanRangePicker"?E.push({value:`${_}-startTime`,label:`${M||_}-开始时间值`,keyName:`${M||_}-startTime`},{value:`${_}-endTime`,label:`${M||_}-结束时间值`,keyName:`${M||_}-endTime`}):E.push({value:_,label:`${M||_}`,keyName:`${M||_}`})}),E}),T=()=>{var D,L,I;const E=pt(((D=e.unref(l))==null?void 0:D.controlList)||[]),O=((L=e.unref(l)[t.type])==null?void 0:L.slice())||[],v=pt(Z.cloneDeep(O[t.index].conditions));O[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((I=e.unref(u))!=null&&I.length)&&(O[t.index].truncations=e.unref(u));const M=pt(e.unref(p));for(const U of M)if(U.dataType==="component"&&U.fieldValue){const H=e.unref(g).find(q=>q.value===U.fieldValue);H&&(U.fieldValue=H.keyName)}const _=v.filter(U=>!M.find(H=>H.componentId===U.componentId)).filter(U=>!E.find(H=>H.id===U.componentId)),V=M.filter(U=>!v.find(H=>H.componentId===U.componentId));w(_,V),r({[t.type]:O,sqlConditions:Wl({...e.unref(l),[t.type]:O},e.unref(s))})};function w(E,O){var M;const v=E.map(_=>({..._,delete:!0})).concat(O.map(_=>({..._,add:!0})));for(const _ of v){const V=e.unref(s).find(D=>D.id===_.componentId);if(V){const{type:D,id:L,events:I=[]}=V,U=Bo(D);if(_.add)I.find(H=>{var q;return H.on===U&&H.target===((q=e.unref(i))==null?void 0:q.id)&&H.emit==="refreshData"})||c({id:L,events:[...I,{on:U,target:(M=e.unref(i))==null?void 0:M.id,emit:"refreshData"}].reverse()});else if(_.delete){const H=I.findIndex(q=>{var Q;return q.on===U&&q.target===((Q=e.unref(i))==null?void 0:Q.id)&&q.emit==="refreshData"});H!==-1&&(I.splice(H,1),c({id:L,events:I}))}}}}const x=()=>{f.value=!0},S=()=>{p.value=[],f.value=!1},N=()=>{h&&T(),h=!1,S()},$=()=>{S()},A=e.inject(Ee),B=e.unref(e.inject(Be)),j=(k=window==null?void 0:window.config)==null?void 0:k.pageId,P=e.ref([]);e.provide(fa,P);const F=async E=>{var O;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:v,indexCode:M}=E,_=await A.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:j,dataSourceId:e.unref(d),indexGuid:v,indexCode:M},{headers:{Authentication:B,operateContext:"ygt"}}),{success:V,data:D=[]}=_.data;V&&((O=D==null?void 0:D.dataViewColumns)!=null&&O.length)&&(P.value=D.dataViewColumns.map(L=>({...L,label:L.title||L.label})))}catch(v){console.error(v)}};return e.watch(()=>t.item,E=>{E&&f.value&&e.unref(y)!=="EDV_DATA_SET"&&F(E)}),o({showModal:x}),{visible:f,onOk:N,onCancel:$,handleTitle:a,conditionList:p,truncationList:u,addCondition:m,onUpdatetruncation:C,activeKey:n,source:y}}}),Ly="",Pp={class:"header"},jp={class:"header"};function Rp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),c=e.resolveComponent("truncation-list"),p=e.resolveComponent("a-tabs"),u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{title:t.handleTitle(),visible:t.visible,"destroy-on-close":"",width:"55%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[["classificationList","rowHeaderList","dimensionList"].includes(t.type)?(e.openBlock(),e.createBlock(p,{key:0,activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=f=>t.activeKey=f)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",Pp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])]),_:1}),e.createVNode(i,{key:"2",tab:"截断配置"},{default:e.withCtx(()=>[e.createVNode(c,{list:t.truncationList,onUpdate:t.onUpdatetruncation},null,8,["list","onUpdate"])]),_:1})]),_:1},8,["activeKey"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",jp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[4]||(o[4]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const Up=ne(Mp,[["render",Rp],["__scopeId","data-v-38f115c6"]]),zp=e.defineComponent({name:"ConfigName",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{AInput:R.Input,AModal:R.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ke),l=e.inject(Ne),r=e.ref(),s=p=>{const{showLabel:u="",label:f=""}=p;r.value=u||f||"",n.value=!0},d=()=>{n.value=!1},i=()=>{var u;const p=((u=e.unref(a)[t.type])==null?void 0:u.slice())||[];p[t.index].showLabel=r.value,l({[t.type]:p}),d()},c=()=>{d()};return o({showModal:s}),{visible:n,onOk:i,onCancel:c,fieldName:r}}}),vy="",Gp=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),Hp={class:"config-name"},Wp=Gp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function Yp(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置展示名称",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Hp,[Wp,e.createVNode(s,{value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i)},null,8,["value"])])]),_:1},8,["visible","onOk","onCancel"])}const qp=ne(zp,[["render",Yp],["__scopeId","data-v-de6a1755"]]),Kp=e.defineComponent({name:"SortByCpnt",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:R.Select,AModal:R.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ke),l=e.inject(Ne),r=e.inject(Ue),s=e.inject(Ie),d=e.inject(ko),i=e.ref(),c=e.computed(()=>{var C;return(C=e.unref(r))==null?void 0:C.filter(g=>g.keyName!=="")});let p=[];const u=C=>{const{sortCpnts:g=[]}=C;p=Z.cloneDeep(g),i.value=Z.cloneDeep(g),n.value=!0},f=()=>{n.value=!1},y=()=>{var x,S;const C=pt(((x=e.unref(a))==null?void 0:x.controlList)||[]),g=p.filter(N=>!e.unref(i).includes(N)).filter(N=>!C.find($=>$.id===N)),T=e.unref(i).filter(N=>!p.includes(N)).filter(N=>!C.find($=>$.id===N)),w=g.map(N=>({componentId:N,delete:!0})).concat(T.map(N=>({componentId:N,add:!0})));for(const N of w){const $=e.unref(r).find(A=>A.id===N.componentId);if($){const{type:A,id:B,events:j=[]}=$,P=Bo(A);if(N.add)j.find(F=>{var k;return F.on===P&&F.target===((k=e.unref(s))==null?void 0:k.id)&&F.emit==="refreshData"})||d({id:B,events:[...j,{on:P,target:(S=e.unref(s))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(N.delete){const F=j.findIndex(k=>{var E;return k.on===P&&k.target===((E=e.unref(s))==null?void 0:E.id)&&k.emit==="refreshData"});F!==-1&&(j.splice(F,1),d({id:B,events:j}))}}}},b=()=>{var g;y();const C=((g=e.unref(a)[t.type])==null?void 0:g.slice())||[];C[t.index].sortCpnts=i.value,l({[t.type]:C}),f()},h=()=>{f()},m=(C,g)=>{var T;return(T=g==null?void 0:g.keyName)==null?void 0:T.toLowerCase().includes(C==null?void 0:C.toLowerCase())};return o({showModal:u}),{visible:n,onOk:b,onCancel:h,idFilterOption:m,fieldName:i,usedComponentList:c}}}),Fy="",Xp=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),Qp={class:"sort-by-cpnt"},Jp=Xp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function Zp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联组件排序",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Qp,[Jp,e.createVNode(s,{class:"field-name",value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i),mode:"multiple",style:{width:"100%"},options:t.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":t.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const eu=ne(Kp,[["render",Zp],["__scopeId","data-v-08af1ef8"]]),tu=e.defineComponent({name:"DimByCount",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:R.Select,AModal:R.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ke),l=e.inject(Ne),r=e.ref(),s=e.ref([]),d=(f,y)=>{const{dimByCount:b=""}=f;r.value=b,s.value=y.filter(h=>["DIM","BUILT_IN_DIM","FIELD"].includes(h.scope)).map(h=>({label:h.title||h.name,value:h.typeGuid})),n.value=!0},i=()=>{n.value=!1},c=()=>{var y;const f=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];f[t.index].dimByCount=r.value,l({[t.type]:f}),i()},p=()=>{i()},u=(f,y)=>{var b;return(b=y==null?void 0:y.label)==null?void 0:b.toLowerCase().includes(f==null?void 0:f.toLowerCase())};return o({showModal:d}),{visible:n,onOk:c,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),$y="",ou=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),nu={class:"dim-by-count"},au=ou(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function lu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联维度",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",nu,[au,e.createVNode(s,{class:"field-name",value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i),style:{width:"100%"},options:t.dimensionList,"show-search":"","filter-option":t.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const ru=ne(tu,[["render",lu],["__scopeId","data-v-aa1c298e"]]),Hn=(t,o)=>{let n;for(let a=0;a<o.length;a++){const l=o[a];l.children&&(l.children.some(r=>r.key===t)?n=l.key:Hn(t,l.children)&&(n=Hn(t,l.children)))}return n},iu=e.defineComponent({name:"FormulaCalculation",props:{value:{type:String,default:""},item:{type:Object,default:()=>({})},mode:{type:String,default:"add"}},components:{ARow:R.Row,ACol:R.Col,ATextarea:R.Textarea,APopover:R.Popover,AInputSearch:R.InputSearch,ATree:R.Tree,ARadioGroup:R.RadioGroup,ARadioButton:R.RadioButton,DoubleRightOutlined:Ts},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Ee),a=e.unref(e.inject(Be)),l=e.inject(ke),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),d=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),c=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>{const A=e.unref(r).concat(e.unref(d)).concat(e.unref(i)).concat(e.unref(c));return t.mode==="edit"?(A==null?void 0:A.filter(B=>{var j;return B.id!==((j=t.item)==null?void 0:j.id)}))||[]:A||[]}),u=e.computed(()=>s.value.filter(A=>!A.randomKey)),f=e.computed({get:()=>t.value||"",set:A=>{o("update:value",A),o("change",A)}}),y=e.ref("1"),b=e.ref(""),h=A=>{const B=document.getElementById("calTextArea");let j=f.value;if(document.selection){const P=document.selection.createRange();P.text=A}else if(typeof B.selectionStart=="number"&&typeof B.selectionEnd=="number"){const P=B.selectionStart,F=B.selectionEnd;let k=P;j=j.substring(0,P)+A+j.substring(F,j.length),k+=A.length,B.selectionStart=B.selectionEnd=k}else j+=A;f.value=j},m=["+","-","*","/","(",")"],C=(A,B)=>{let j="";switch(B){case"name":{j="${"+A+"}";break}case"function":{j=A+"()";break}default:j=A}h(j)},g=[],T=e.ref([]),w=e.ref(!0),x=e.ref([]),S=A=>{var B;for(const j of A)(B=j==null?void 0:j.children)!=null&&B.length?S(j.children):g.push({key:j.key,title:j.title})},N=async()=>{try{const A=await n.get(`${Se}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:B,data:j=[]}=A.data;B&&(j!=null&&j.length)&&(S(j),x.value=j)}catch(A){console.error(A)}},$=A=>{T.value=A,w.value=!1};return e.watch(b,A=>{const B=g.map(j=>j.title.indexOf(A)>-1?Hn(j.key,x.value):null).filter((j,P,F)=>j&&F.indexOf(j)===P);T.value=B,b.value=A,w.value=!0}),e.onMounted(()=>{N()}),{fieldList:p,varList:u,myValue:f,calculMethods:m,funcDescsData:x,searchFuncValue:b,expandedKeys:T,autoExpandParent:w,activeKey:y,selectedElem:C,onExpand:$}}}),Iy="",Dy="",nr=t=>(e.pushScopeId("data-v-69040cfb"),t=t(),e.popScopeId(),t),su={class:"formula-calculation"},cu={class:"field-area"},du={style:{"text-align":"center",padding:"10px 0"}},pu=["onClick"],uu=["onClick"],fu={class:"cal_right_bottom"},mu={class:"cal_fu"},hu=["onClick"],bu={class:"function-wrap"},yu={class:"wrap-search"},gu={class:"tree-box"},Cu=nr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),wu=nr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),ku={key:0},xu={style:{color:"#f50"}},_u={key:1},Su=["onClick"],Tu={class:"cal_a"};function Nu(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),d=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),c=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),f=e.resolveComponent("a-tree"),y=e.resolveComponent("double-right-outlined"),b=e.resolveComponent("a-popover"),h=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",su,[e.createVNode(h,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",cu,[e.createElementVNode("div",du,[e.createVNode(d,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=m=>t.activeKey=m),size:"small"},{default:e.withCtx(()=>[e.createVNode(s,{value:"1"},{default:e.withCtx(()=>[e.createTextVNode("数值字段("+e.toDisplayString(t.fieldList.length)+")",1)]),_:1}),e.createVNode(s,{value:"2"},{default:e.withCtx(()=>[e.createTextVNode("全局变量("+e.toDisplayString(t.varList.length)+")",1)]),_:1})]),_:1},8,["value"])]),t.activeKey==="1"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fieldList,(m,C)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:C,onClick:g=>t.selectedElem(m.label,"name")},e.toDisplayString(m.label),9,pu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(m,C)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:C,onClick:g=>t.selectedElem(m.variableName,"name")},e.toDisplayString(m.variableName),9,uu))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(c,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=m=>t.myValue=m),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",fu,[e.createElementVNode("ul",mu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(m,C)=>(e.openBlock(),e.createElementBlock("li",{onClick:g=>t.selectedElem(m,"symbol"),key:C},e.toDisplayString(m),9,hu))),128))]),e.createVNode(b,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",bu,[e.createElementVNode("div",yu,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=m=>t.searchFuncValue=m),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",gu,[e.createVNode(f,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:m,leaf:C,describe:g,exp:T})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[m.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",ku,[e.createTextVNode(e.toDisplayString(m.substr(0,m.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",xu,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(m.substr(m.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",_u,e.toDisplayString(m),1)),C?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:w=>t.selectedElem(m,"function")},"插入",8,Su)):e.createCommentVNode("",!0)]),_:2},[C?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[Cu,e.createElementVNode("span",null,e.toDisplayString(g),1)]),e.createElementVNode("div",null,[wu,e.createElementVNode("span",null,e.toDisplayString(T),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",Tu,[e.createTextVNode(" 更多函数 "),e.createVNode(y,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const Au=ne(iu,[["render",Nu],["__scopeId","data-v-69040cfb"]]),Ou=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:Au,AForm:R.Form,AModal:R.Modal,AFormItem:R.FormItem,AInput:R.Input,ASelect:R.Select,ASelectOption:R.SelectOption,ATextarea:R.Textarea,AInputNumber:R.InputNumber,ATooltip:R.Tooltip,QuestionCircleOutlined:oc},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},mode:{type:String,default:"add"}},setup(t,{expose:o}){const n=e.inject(Ue),a=e.inject(ke),l=e.inject(Ne),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),d=e.computed(()=>{const F=["leftAxisList","rightAxisList","queryColumnList","indicators"];let k=[];for(const E of F)Object.prototype.hasOwnProperty.call(e.unref(a),E)&&(k=k.concat(e.unref(a)[E]));return k}),i={span:4},c={span:18},p={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},u={value:0,unit:"YEAR",around:"before"},f=e.ref({}),y=e.ref(),b=e.ref(!1),h=e.ref();e.watch(b,F=>{if(F)if(t.mode==="edit"){const{label:k,calcType:E,formula:O,builtInValueSource:v,builtInFormula:M,builtInCalcWay:_}=t.item;if(h.value={label:k,calcType:E,formula:O,builtInValueSource:v,builtInFormula:M,builtInCalcWay:_},M==="DATE_OFFSET"){const V=_.split("-");(V==null?void 0:V.length)===3&&(f.value={value:V[0],unit:V[1],around:V[2]})}}else t.mode==="add"&&(h.value=Z.cloneDeep(p),f.value=Z.cloneDeep(u));else h.value=Z.cloneDeep(p),f.value=Z.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!F)},{immediate:!0,deep:!0});let m=!1;const C=()=>{m=!0},g=F=>{const k=e.unref(r).find(E=>E.id===F);k&&(h.value.builtInCalcWay=k.keyName),m=!0},T=()=>{var v;const F=((v=e.unref(a)[t.type])==null?void 0:v.slice())||[],{label:k,builtInFormula:E}=e.unref(h)||{},O={};if(E==="DATE_OFFSET"&&(O.builtInCalcWay=`${e.unref(f).value}-${e.unref(f).unit}-${e.unref(f).around}`),t.mode==="add"){const M=we();F.push({...e.unref(h),...O,id:M,show:!0,name:k})}else t.mode==="edit"&&(F[t.index]={...F[t.index],...e.unref(h),...O,name:k});l({[t.type]:F})},w=()=>{b.value=!0},x=()=>{b.value=!1},S=async(F,k)=>{if(k==="")return Promise.reject(new Error("请输入指标名"));{const E=e.unref(d).find(O=>O.label===k);return E?E.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},N=e.computed(()=>{let F={label:[{required:!0,validator:S,trigger:"change"}]};return h.value.calcType==="BUILT_IN"&&(F={...F,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),F}),$=()=>{y.value.validate().then(()=>{m&&T(),m=!1,x()})},A=()=>{y.value.clearValidate(),x()},B=()=>{m=!0,e.unref(h).builtInCalcWay=""},j=e.computed(()=>{let F="";const k=e.unref(h).builtInCalcWay,E=e.unref(h).builtInValueSource;if(!E||!k)return F;switch(e.unref(h).builtInFormula){case"BUILT_IN_RANK":{k==="ASC"?F="【"+E+"】由小到大在所有值中的排名":F="【"+E+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{F=`所有【】的
|
|
65
65
|
`,k==="ASC"?F=F+"【"+E+"】由小到大的组内的排名":F=F+"【"+E+"】由大到小的组内的排名";break}case"BUILT_IN_ALL_VALUE":{let O="";switch(k){case"SUM":{O="求和";break}case"AVG":{O="求平均值";break}case"MIN":{O="求最小值";break}case"MAX":{O="求最大值";break}}F="将所有【"+E+"】"+O;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let O="";switch(F=`所有【】的
|
|
66
66
|
`,k){case"SUM":{O="求和";break}case"AVG":{O="求平均值";break}case"MIN":{O="求最小值";break}case"MAX":{O="求最大值";break}}F=F+"将所有【"+E+"】"+O;break}}return F}),P=(F,k)=>k.keyName.toLowerCase().indexOf(F.toLowerCase())>=0;return o({showModal:w}),{visible:b,onCancel:A,labelCol:i,wrapperCol:c,formState:h,builtInValueSourceList:s,onOK:$,onChange:C,formRules:N,accessLogic:j,formRef:y,onChangeBuiltInFormula:B,componentList:r,onChangeComponent:g,filterOption:P,offsetConfig:f}}}),My="",Py="",Eu={key:0,class:"accesstip"},Bu={style:{display:"flex","align-items":"center"}};function Vu(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),p=e.resolveComponent("formula-calculation"),u=e.resolveComponent("a-textarea"),f=e.resolveComponent("a-input-number"),y=e.resolveComponent("question-circle-outlined"),b=e.resolveComponent("a-tooltip"),h=e.resolveComponent("a-form"),m=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(m,{title:`${t.mode==="add"?"新增":"编辑"}计算指标`,visible:t.visible,width:"50%",bodyStyle:{height:"55vh",overflow:"auto",display:"flex",flexDirection:"column"},closable:!1,onOk:t.onOK,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createVNode(h,{model:t.formState,rules:t.formRules,ref:"formRef"},{default:e.withCtx(()=>[e.createVNode(d,{label:"指标名","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"label"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.formState.label,"onUpdate:value":o[0]||(o[0]=C=>t.formState.label=C),onChange:t.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.createVNode(d,{label:"计算方式","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.calcType,"onUpdate:value":o[1]||(o[1]=C=>t.formState.calcType=C),onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"FORMULA"},{default:e.withCtx(()=>[e.createTextVNode("公式")]),_:1}),e.createVNode(i,{value:"BUILT_IN"},{default:e.withCtx(()=>[e.createTextVNode("内置公式")]),_:1}),e.createVNode(i,{value:"COMPONENT"},{default:e.withCtx(()=>[e.createTextVNode("固定值")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),t.formState.calcType==="FORMULA"?(e.openBlock(),e.createBlock(p,{key:0,value:t.formState.formula,"onUpdate:value":o[2]||(o[2]=C=>t.formState.formula=C),item:t.item,mode:t.mode,onChange:t.onChange},null,8,["value","item","mode","onChange"])):e.createCommentVNode("",!0),t.formState.calcType==="BUILT_IN"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(d,{label:"内置公式","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInFormula"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInFormula,"onUpdate:value":o[3]||(o[3]=C=>t.formState.builtInFormula=C),onChange:t.onChangeBuiltInFormula},{default:e.withCtx(()=>[e.createVNode(i,{value:"BUILT_IN_ALL_VALUE"},{default:e.withCtx(()=>[e.createTextVNode("所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_ALL_VALUE_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK"},{default:e.withCtx(()=>[e.createTextVNode("排名")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内排名")]),_:1}),e.createVNode(i,{value:"FIRST_ROW_RATE"},{default:e.withCtx(()=>[e.createTextVNode("首行占比")]),_:1}),e.createVNode(i,{value:"DATE_OFFSET"},{default:e.withCtx(()=>[e.createTextVNode("日期偏移")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.createVNode(d,{label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInValueSource,"onUpdate:value":o[4]||(o[4]=C=>t.formState.builtInValueSource=C),onChange:t.onChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.builtInValueSourceList,(C,g)=>(e.openBlock(),e.createBlock(i,{key:g,value:C.label,disabled:t.mode==="edit"&&t.item.label===C.name},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,label:"取数原则","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInCalcWay,"onUpdate:value":o[5]||(o[5]=C=>t.formState.builtInCalcWay=C),onChange:t.onChange},{default:e.withCtx(()=>[["BUILT_IN_ALL_VALUE","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula||"")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{value:"SUM"},{default:e.withCtx(()=>[e.createTextVNode("求和")]),_:1}),e.createVNode(i,{value:"AVG"},{default:e.withCtx(()=>[e.createTextVNode("求平均")]),_:1}),e.createVNode(i,{value:"MAX"},{default:e.withCtx(()=>[e.createTextVNode("求最大值")]),_:1}),e.createVNode(i,{value:"MIN"},{default:e.withCtx(()=>[e.createTextVNode("求最小值")]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})],64))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"])),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:1,label:"取数逻辑","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[["BUILT_IN_RANK_IN_GROUPO","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula)&&t.formState.builtInValueSource?(e.openBlock(),e.createElementBlock("div",Eu," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+e.toDisplayString(t.formState.builtInValueSource),1)):e.createCommentVNode("",!0),e.createVNode(u,{value:t.accessLogic,rows:6,disabled:""},null,8,["value"])]),_:1},8,["label-col","wrapper-col"]))],64)):e.createCommentVNode("",!0),t.formState.calcType==="COMPONENT"?(e.openBlock(),e.createBlock(d,{key:2,label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{"show-search":"",value:t.formState.builtInValueSource,"onUpdate:value":o[6]||(o[6]=C=>t.formState.builtInValueSource=C),"filter-option":t.filterOption,options:t.componentList,fieldNames:{value:"id",label:"keyName"},onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0),t.formState.builtInFormula==="DATE_OFFSET"?(e.openBlock(),e.createBlock(d,{key:3,label:"偏移设置","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createElementVNode("div",Bu,[e.createVNode(f,{value:t.offsetConfig.value,"onUpdate:value":o[7]||(o[7]=C=>t.offsetConfig.value=C),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},null,8,["value","onChange"]),e.createVNode(c,{value:t.offsetConfig.unit,"onUpdate:value":o[8]||(o[8]=C=>t.offsetConfig.unit=C),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(c,{value:t.offsetConfig.around,"onUpdate:value":o[9]||(o[9]=C=>t.offsetConfig.around=C),style:{width:"120px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(i,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(b,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:e.withCtx(()=>[e.createVNode(y,{class:"icon",style:{color:"#40a9ff","font-size":"18px",cursor:"pointer","margin-left":"10px"}})]),_:1})])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])]),_:1},8,["title","visible","onOk","onCancel"])}const Lu=ne(Ou,[["render",Vu],["__scopeId","data-v-33575cd9"]]),vu=e.defineComponent({name:"DataConfigCard",directives:{focus:tr},components:{CalculationModal:Lu,FilterModal:Up,CustomGroupModal:Jd,SettingOutlined:dc,DeleteOutlined:Ha,CopyOutlined:gs,InfoCircleOutlined:vs,CustomSortModal:Pd,PlusOutlined:Js,ACard:R.Card,ACheckbox:R.Checkbox,AInput:R.Input,ADropdown:R.Dropdown,AMenu:R.Menu,ASubMenu:R.SubMenu,AMenuItem:R.MenuItem,AMenuDivider:R.MenuDivider,ASelect:R.Select,APopover:R.Popover,Draggable:Bt,ConfigName:qp,SortByCpnt:eu,DimByCount:ru},props:{title:{type:String,default:""},type:{type:String,default:""}},setup(t){const o=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"}],n=e.inject(ke),a=e.inject(Ne),l=e.inject(Ue),r=["leftAxisList","rightAxisList","indicators"],s=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],d=e.inject(Yt),i=e.ref(),c=(z={})=>{var X;const{type:G}=t;if(e.unref(d)==="SQL_VIEW")return!0;e.unref(d)==="EDV_DATA_SET"&&a({edvDataSetId:z.parentId});let Y=!1;if(z.scope==="FIELD"&&(Y=!0,z.genericType==="0"&&r.includes(G)&&(Y=!1)),["IDX","BUILT_IN_IDX"].includes(z.scope)?r.includes(G)&&(Y=!0):["DIM","BUILT_IN_DIM"].includes(z.scope)&&s.includes(G)&&(Y=!0),G==="dimensionList"){const se=((X=e.unref(n)[G])==null?void 0:X.slice())||[];(se==null?void 0:se.length)===1&&(Y=!1)}return Y},p=e.computed(()=>e.unref(le).type==="ecanDataSelect"&&t.type==="indicators"),u=(z="{}")=>{var G,Y;try{const X=JSON.parse(z);if(!c(X))return;const se=((G=e.unref(n)[t.type])==null?void 0:G.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!be(e.unref(le).type,["list","circulate","scatter"])||e.unref(p))&&se.forEach(ge=>{ge.show=!1}),y(se,X),X.randomKey=we(),se.push(X);const{type:ce}=t,te={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(X.scope)){const ge=((Y=e.unref(n))==null?void 0:Y.variableList)||[];let pe=sessionStorage.getItem("indicator-variates");if(X.scope==="FIELD"&&!r.includes(ce)&&(pe="[]"),pe){const de=JSON.parse(pe);if(de!=null&&de.length)for(const Ce of de)ge.unshift({...Ce,dataType:"",id:null,variableValue:e.unref(d)==="EDV_DATA_SET"?Ce.defaultValue:null,dateTypeValue:null,format:Ce.valueFormat&&Ce.valueFormat.toUpperCase()||null,variableName:Ce.name,variableType:Ce.valueType,label:X.label,randomKey:X.randomKey,keyValue:we(),disabled:e.unref(d)==="EDV_DATA_SET"})}te.variableList=ge,te.variableConditions=ao(ge,l)}a({[t.type]:se,...te}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(X){console.error(X)}},f=(z="{}")=>{var G;try{const{cardItem:Y,type:X,index:se}=JSON.parse(z);if(!c(Y)||X===t.type)return;const ce=((G=e.unref(n)[t.type])==null?void 0:G.slice())||[];y(ce,Y),ce.push(Y);const te=e.unref(n)[X].slice()||[];te.splice(se,1),a({[t.type]:ce,[X]:te})}catch(Y){console.error(Y)}};function y(z,G){const Y=[];if(z.forEach(X=>{X.label.includes(G.label)&&Y.push(X.label.split(G.label)[1])}),Y.length>=1){for(let X=1;X<=Y.length;X++)if(!Y.includes(X+"")){G.label=G.label+X;break}}}const b=(z,G)=>{var se,ce;const Y=(se=z.target)==null?void 0:se.checked,X=((ce=e.unref(n)[t.type])==null?void 0:ce.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!be(e.unref(le).type,["list","circulate"])||e.unref(p))&&X.forEach(te=>{te.show=!1}),X[G].show=Y,a({[t.type]:X})},h=z=>{var Y;const G=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];G.splice(z,1),a({[t.type]:G})},m=()=>{sessionStorage.setItem("indicator-card-item","")},C=z=>{const G=sessionStorage.getItem("indicator-list-item"),Y=sessionStorage.getItem("indicator-card-item");G?u(G):Y&&f(Y)},g=z=>{var ge,pe;const{newIndex:G,oldIndex:Y,from:X,to:se}=z,ce=X.id,te=se.id;if(G>=0&&Y>=0){if(ce===te){const de=((ge=e.unref(n)[t.type])==null?void 0:ge.slice())||[],Ce=de.splice(Y,1)[0];Ce&&(de.splice(G,0,Ce),a({[t.type]:de}))}else if(t.type===te){const de=((pe=e.unref(n)[te])==null?void 0:pe.slice())||[];if(de!=null&&de.length){const Ce=de.splice(de.length-1,1)[0];Ce&&(de.splice(G,0,Ce),a({[t.type]:de}))}}}},T=(z,G)=>{const Y=z.oldIndex,X=G[Y];X&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:X,type:t.type,index:Y}))},w=e.computed(()=>e.unref(n)[t.type]||[]),x=e.ref([]);let S=!1;e.watch(()=>e.unref(w).length,z=>{x.value=new Array(z).fill(!1)},{flush:"post",immediate:!0});const N=z=>{var Y,X,se;const G=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];if((X=G[z])!=null&&X.randomKey){const ce=((se=e.unref(n))==null?void 0:se.variableList)||[];for(let te=ce.length-1;te>=0;te--)ce[te].randomKey===G[z].randomKey&&ce.splice(te,1);a({variableConditions:ao(ce,l),variableList:ce})}G.splice(z,1),a({[t.type]:G})},$=z=>{x.value[z]=!0},A=()=>{S=!0},B=(z,G,Y)=>{var X,se,ce,te;if(x.value[G]=!1,S){const ge=(X=z.target)==null?void 0:X.value,pe=((se=e.unref(n)[t.type])==null?void 0:se.slice())||[],de=pe.filter(fe=>{var xe;return(xe=fe==null?void 0:fe.formula)==null?void 0:xe.includes(Y)}).map(fe=>fe.id),Ce=pe.filter(fe=>{var xe;return(xe=fe==null?void 0:fe.builtInValueSource)==null?void 0:xe.includes(Y)}).map(fe=>fe.id);if(de!=null&&de.length)for(const fe of de){const xe=pe.find(Et=>Et.id===fe);xe.formula=xe.formula.replaceAll(Y,ge)}if(Ce!=null&&Ce.length)for(const fe of Ce){const xe=pe.find(Et=>Et.id===fe);xe.builtInValueSource=xe.builtInValueSource.replaceAll(Y,ge)}if(pe[G].label=ge,(ce=pe[G])!=null&&ce.randomKey){const fe=((te=e.unref(n))==null?void 0:te.variableList)||[],xe=fe.filter(Et=>Et.randomKey===pe[G].randomKey);xe!=null&&xe.length&&xe.forEach(Et=>{Et.label=ge}),a({variableConditions:ao(fe,l),variableList:fe})}a({[t.type]:pe})}S=!1},j="DEFAULT",P=e.computed(()=>{const z=[],{scope:G}=e.unref(i)||{},Y=e.unref(n)[t.type]||[];if(G==="DIM"&&!e.unref(i).typeGuid.includes("_code")){const te=Z.cloneDeep(e.unref(i));delete te.show,delete te.truncations,delete te.conditions,te.hrpIndexComplexid+="_code",te.id+="_code",te.typeGuid+="_code",te.label=te.name+"_编码",te.name=te.typeGuid,te.defaultCode=te.typeGuid,z.push(te)}const{leftAxisList:X=[],rightAxisList:se=[],indicators:ce=[]}=e.unref(n)||{};return[...Y,...z,...X,...se,...ce]}),F=(z={},G,Y="ASC")=>{var pe;const{label:X,name:se,id:ce,defaultCode:te}=z,ge=((pe=e.unref(n)[t.type])==null?void 0:pe.slice())||[];ce===j?delete ge[G].sort:ge[G].sort={label:X,columnName:se,type:"NORMAL",order:Y,defaultCode:te},a({[t.type]:ge})},k=(z={},G="ASC")=>{const X={ASC:"升序",DESC:"降序"}[G],{sort:se}=z,{label:ce,order:te}=se||{};return ce&&te===G?`${X}(${ce})`:X},E=e.ref(),O=e.ref(),v=e.ref(),M=e.ref(),_=(z={},G)=>{var Y;E.value=z,O.value=G,(Y=e.unref(v))==null||Y.showModal(z)},V=z=>"排序"+(z!=null&&z.sort?"(已配置)":""),D=(z={},G)=>{var Y;E.value=z,O.value=G,(Y=e.unref(M))==null||Y.showModal()},L=z=>"自定义分组"+((z==null?void 0:z.customGroup)!=null?"(已配置)":""),I=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],U=[{name:"是",value:1},{name:"否",value:0}],H=(z,G)=>{var X;const Y=((X=e.unref(n)[t.type])==null?void 0:X.slice())||[];Y[G].aggregate=z,a({[t.type]:Y})},q=(z,G)=>{var X;const Y=((X=e.unref(n)[t.type])==null?void 0:X.slice())||[];Y[G].distinct=z,a({[t.type]:Y})},Q=(z,G)=>{var X;const Y=((X=e.unref(n)[t.type])==null?void 0:X.slice())||[];Y[G].dateFormat=z,a({[t.type]:Y})},J=(z="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[z]})`,oe=z=>`是否去重(${{0:"否",1:"是"}[z]||"否"})`,ae=(z={})=>{var G;return"过滤"+(z!=null&&z.conditions&&((G=z==null?void 0:z.conditions)==null?void 0:G.length)>0?"(已配置)":"")},re=e.ref(),He=e.ref(),ft=e.ref(),Qe=e.ref(),ye=(z={},G)=>{E.value=z,O.value=G,e.unref(re).showModal()},Te=(z={},G)=>{E.value=z,O.value=G,e.unref(He).showModal(z)},Tt=(z={},G)=>{E.value=z,O.value=G,e.unref(ft).showModal(z)},Wt=(z={},G)=>{E.value=z,O.value=G,e.unref(Qe).showModal(z,e.unref(go))},Nt=e.ref(),Fe=e.ref("add"),ot=(z,G,Y)=>{var X;Fe.value=z,z==="edit"&&(E.value=G,O.value=Y),(X=e.unref(Nt))==null||X.showModal()},nt=e.inject(Ee),at=e.unref(e.inject(Be)),$e=e.ref([]),At=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var z;be(e.unref(le).type,["scatter","valueline"])&&((z=e.unref(n))!=null&&z.indicators)&&($e.value=e.unref(n).indicators.map(G=>({label:G.label,value:G.label})))}),e.watch(()=>n.value.classificationList,()=>{mt()});const lt=e.ref(""),mt=async()=>{const{source:z}=e.unref(n);if(z!=="EDV_DATA_SET"||!be(e.unref(le).type,"select"))return;const{classificationList:G=[]}=e.unref(n),Y=G.find(te=>te.show);if(Y!=null&&Y.parentId){if(e.unref(lt)===Y.parentId)return;lt.value=Y.parentId}else{e.unref(n).selectFieldOptions=[],$e.value=[],lt.value="";return}const X=await nt.get(`${Se}/dataset/`+Y.parentId,{headers:{Authentication:at,operateContext:"ygt"}}),{success:se,data:ce=[]}=X.data;if(se){const te=ce.column.map(ge=>({label:ge.columnName,value:ge.columnName}));e.unref(n).selectFieldOptions=te,$e.value=te}},Ot=async()=>{const{source:z}=e.unref(n);if(!be(e.unref(le).type,["scatter","valueline"]))try{if(z==="EDV_DATA_SET")await mt();else{const G=await nt.post(`${Se}/diagram/dimFields`,{},{headers:{Authentication:at,operateContext:"ygt"}}),{success:Y,data:X=[]}=G.data;Y&&(e.unref(n).selectFieldOptions=X||[],$e.value=X)}}catch(G){console.error(G)}},Wo=(z,G)=>{const Y=e.unref(n)[t.type]||{};Y[G]=z,a({[t.type]:Y})},bo=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],yo=e.ref({}),go=e.ref([]),W=async(z,G)=>{var X;const{name:Y}=G;if(!bo.includes(t.type)&&z&&Ye(G,"indexCode")){const se=await nt.post(`${Se}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:G.id,indexCode:G.indexCode,pageId:(X=window==null?void 0:window.config)==null?void 0:X.pageId},{headers:{Authentication:at,operateContext:"ygt"}}),{success:ce,data:te}=se.data;ce&&te&&(go.value=(te==null?void 0:te.dataViewColumns)||[],yo.value[Y]={name:te.name,code:te.indexCode})}},K=z=>{i.value=z},ee=z=>{const G=document.createElement("input");document.body.appendChild(G),G.setAttribute("value",z),G.select(),document.execCommand("copy"),document.body.removeChild(G),R.message.success("复制成功")},le=e.inject(Ie),ie=e.computed(()=>t.type==="indicators"&&e.unref(le).type==="ecanTable"),ue=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type));return e.onMounted(()=>{t.type==="formFields"&&(e.unref(le).type==="ecanDataSelect"?$e.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Ot())}),{onCheckboxChange:b,onDropEnd:h,onDragItemEnd:m,onDragItemAdd:C,onDragItemSort:g,onDragItemStart:T,cardItemList:w,onDelete:N,onEdit:$,onCommitLabelChange:B,sortList:P,onSort:F,handleSortTitle:k,showCustomSortModal:_,customSortModalRef:v,currentItem:E,currentIndex:O,handleCustomSortTitle:V,handleCustomGroupTitle:L,customGroupModalRef:M,showCustomGroupModal:D,editLabelList:x,onLabelChange:A,aggregateList:I,distinctList:U,onAggregateChange:H,onDistinctChange:q,onDateFormatChange:Q,handleAggregateTitle:J,handleDistinctTitle:oe,onShowCalculationModal:ot,handleFilterTitle:ae,filterModalRef:re,configNameRef:He,sortByCpntRef:ft,dimByCountRef:Qe,showFilterModal:ye,calculationModalRef:Nt,calculationModalMode:Fe,formatList:o,fieldOptions:$e,fieldData:At,onFieldChange:Wo,onVisibleChange:W,onClickSetting:K,copyDataViewName:ee,dataViewMap:yo,isShowConfigName:ie,showConfigNameModal:Te,dimensionType:bo,isShowSortByCpnt:ue,showSortByCpntModal:Tt,dataSelectIndicators:p,showDimByCountModal:Wt,selectedComponent:le,lowerCaseIncludes:be}}}),jy="",Ry="",wt=t=>(e.pushScopeId("data-v-73e39b35"),t=t(),e.popScopeId(),t),Fu={class:"title"},$u={class:"title-text"},Iu={class:"field-wrap"},Du={class:"field-item"},Mu=wt(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),Pu={class:"field-item"},ju=wt(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),Ru={key:0,class:"field-item"},Uu=wt(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),zu={class:"title"},Gu={class:"title-text"},Hu=wt(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),Wu=wt(()=>e.createElementVNode("span",null,"添加计算指标",-1)),Yu={class:"card-item-wrap"},qu={class:"card-item-inner"},Ku=["onClick"],Xu=["onClick"],Qu=["onClick"],Ju={style:{display:"flex","align-items":"center"}},Zu=["title"],ef=wt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),tf={style:{display:"flex","align-items":"center"}},of=["title"],nf=wt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function af(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-checkbox"),i=e.resolveComponent("a-card"),c=e.resolveComponent("info-circle-outlined"),p=e.resolveComponent("a-popover"),u=e.resolveComponent("plus-outlined"),f=e.resolveComponent("a-input"),y=e.resolveComponent("setting-outlined"),b=e.resolveComponent("a-menu-item"),h=e.resolveComponent("a-menu-divider"),m=e.resolveComponent("a-sub-menu"),C=e.resolveComponent("copy-outlined"),g=e.resolveComponent("a-menu"),T=e.resolveComponent("a-dropdown"),w=e.resolveComponent("delete-outlined"),x=e.resolveComponent("draggable"),S=e.resolveComponent("custom-sort-modal"),N=e.resolveComponent("custom-group-modal"),$=e.resolveComponent("filter-modal"),A=e.resolveComponent("config-name"),B=e.resolveComponent("sort-by-cpnt"),j=e.resolveComponent("dim-by-count"),P=e.resolveComponent("calculation-modal"),F=e.resolveDirective("focus");return t.type==="formFields"?(e.openBlock(),e.createBlock(i,{key:0,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:e.withCtx(()=>[e.createElementVNode("div",Fu,[e.createElementVNode("div",$u,e.toDisplayString(t.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Iu,[e.createElementVNode("div",Du,[Mu,e.createVNode(s,{style:{width:"70%"},class:"item-select",value:t.fieldData.labelField,options:t.fieldOptions,onChange:o[0]||(o[0]=k=>t.onFieldChange(k,"labelField"))},null,8,["value","options"])]),e.createElementVNode("div",Pu,[ju,e.createVNode(s,{style:{width:"70%"},class:"item-select",value:t.fieldData.valueField,options:t.fieldOptions,mode:t.lowerCaseIncludes(t.selectedComponent.type,"valueline")?"multiple":void 0,onChange:o[1]||(o[1]=k=>t.onFieldChange(k,"valueField"))},null,8,["value","options","mode"])]),t.selectedComponent.type==="ecanSelect"?(e.openBlock(),e.createElementBlock("div",Ru,[Uu,e.createVNode(d,{checked:t.fieldData.hasAllOption,"onUpdate:checked":o[2]||(o[2]=k=>t.fieldData.hasAllOption=k)},{default:e.withCtx(()=>[e.createTextVNode(" 显示【全部】选项 ")]),_:1},8,["checked"])])):e.createCommentVNode("",!0)])]),_:1},8,["head-style"])):(e.openBlock(),e.createBlock(i,{key:1,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:e.withCtx(()=>[e.createElementVNode("div",zu,[e.createElementVNode("div",Gu,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),t.type==="dimensionList"?(e.openBlock(),e.createBlock(p,{key:0,title:"提示",placement:"topLeft"},{content:e.withCtx(()=>[Hu]),default:e.withCtx(()=>[e.createVNode(c,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):e.createCommentVNode("",!0)]),!t.dimensionType.includes(t.type)&&!t.dataSelectIndicators?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-calculation",onClick:o[3]||(o[3]=e.withModifiers(k=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),Wu])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.type+"-list"),style:{height:"100%",padding:"10px"}},[e.createVNode(x,{modelValue:t.cardItemList,"onUpdate:modelValue":o[4]||(o[4]=k=>t.cardItemList=k),class:"chart-column",id:t.type,group:"cardItem","item-key":"index",onAdd:t.onDragItemAdd,onSort:t.onDragItemSort,onEnd:t.onDragItemEnd,onStart:o[5]||(o[5]=k=>t.onDragItemStart(k,t.cardItemList))},{item:e.withCtx(({element:k,index:E})=>[e.createElementVNode("div",Yu,[e.createVNode(d,{class:"card-item",checked:k.show,onChange:O=>t.onCheckboxChange(O,E)},{default:e.withCtx(()=>[e.createElementVNode("div",qu,[!t.editLabelList[E]&&k.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(O=>t.onEdit(E),["prevent","stop"])},e.toDisplayString(k.label),9,Ku)):e.createCommentVNode("",!0),!t.editLabelList[E]&&!k.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(O=>t.onEdit(E),["prevent","stop"])}," 请点击填入名字 ",8,Xu)):e.createCommentVNode("",!0),t.editLabelList[E]?e.withDirectives((e.openBlock(),e.createBlock(f,{key:2,"default-value":k.label,size:"small",onBlur:O=>t.onCommitLabelChange(O,E,k.label),onPressEnter:O=>t.onCommitLabelChange(O,E,k.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[F]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(k.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(O=>t.onShowCalculationModal("edit",k,E),["prevent","stop"])}," fx ",8,Qu)):e.createCommentVNode("",!0),e.createVNode(T,{trigger:["click"],onVisibleChange:O=>t.onVisibleChange(O,k)},{overlay:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[t.dimensionType.includes(t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(b,{onClick:O=>t.showCustomSortModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(h),e.createVNode(b,{onClick:O=>t.showCustomGroupModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomGroupTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(h),k.genericType==="DATE"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(m,{title:"日期格式化"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,O=>(e.openBlock(),e.createBlock(b,{style:{"white-space":"nowrap"},key:O.value,onClick:v=>t.onDateFormatChange(O.value,E)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(k.dateFormat===O.value||!k.dateFormat&&O.value==="YYYY-MM"?"color: #1890FF;":"")},e.toDisplayString(O.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(h)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(b,{onClick:O=>t.showFilterModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleFilterTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(h),["classificationList","seriesList"].includes(t.type)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(m,{title:t.handleAggregateTitle(k.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,O=>(e.openBlock(),e.createBlock(b,{style:{"white-space":"nowrap"},key:O.value,onClick:v=>t.onAggregateChange(O.value,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(h)],64)),t.isShowConfigName?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(b,{onClick:O=>t.showConfigNameModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(" 修改展示名称 ")]),_:2},1032,["onClick"]),e.createVNode(h)],64)):e.createCommentVNode("",!0),t.isShowSortByCpnt?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(b,{onClick:O=>t.showSortByCpntModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),e.createVNode(h)],64)):e.createCommentVNode("",!0),k.name==="the_count"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(b,{onClick:O=>t.showDimByCountModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(h),e.createVNode(m,{title:t.handleDistinctTitle(k.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,O=>(e.openBlock(),e.createBlock(b,{style:{"white-space":"nowrap"},key:O.value,onClick:v=>t.onDistinctChange(O.value,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(h)],64)):e.createCommentVNode("",!0),t.dimensionType.includes(t.type)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[t.dataViewMap[k.name]?(e.openBlock(),e.createBlock(b,{key:0,onClick:O=>t.copyDataViewName(t.dataViewMap[k.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",Ju,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[k.name].name},[ef,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[k.name].name),1)],8,Zu),e.createVNode(C,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[k.name]?(e.openBlock(),e.createBlock(b,{key:1,onClick:O=>t.copyDataViewName(t.dataViewMap[k.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",tf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[k.name].code},[nf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[k.name].code),1)],8,of),e.createVNode(C,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)],64))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(y,{class:"setting-icon",onClick:O=>t.onClickSetting(k)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"]),e.createVNode(w,{class:"delete-icon",onClick:e.withModifiers(O=>t.onDelete(E),["prevent"])},null,8,["onClick"])])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","onAdd","onSort","onEnd"])],2),e.createVNode(S,{item:t.currentItem,index:t.currentIndex,type:t.type,sortList:t.sortList,ref:"customSortModalRef"},null,8,["item","index","type","sortList"]),e.createVNode(N,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),e.createVNode($,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"filterModalRef"},null,8,["item","index","type"]),e.createVNode(A,{index:t.currentIndex,type:t.type,ref:"configNameRef"},null,8,["index","type"]),e.createVNode(B,{index:t.currentIndex,type:t.type,ref:"sortByCpntRef"},null,8,["index","type"]),e.createVNode(j,{index:t.currentIndex,type:t.type,ref:"dimByCountRef"},null,8,["index","type"]),e.createVNode(P,{type:t.type,item:t.currentItem,index:t.currentIndex,mode:t.calculationModalMode,ref:"calculationModalRef"},null,8,["type","item","index","mode"])]),_:1},8,["head-style"]))}const lf=ne(vu,[["render",af],["__scopeId","data-v-73e39b35"]]),rf={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"}},sf=e.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:lf},setup(){const t=["classificationList","seriesList","leftAxisList","rightAxisList","indicators","rowHeaderList","queryColumnList"],o=e.inject(Ie),n=e.computed(()=>{var i;return(i=e.unref(o))==null?void 0:i.type}),a=e.computed(()=>{var i;return!!((i=e.unref(o))!=null&&i.isGroupTable)}),l=e.ref({}),r=e.reactive([]),s=e.inject(Ne),d=()=>{var h,m;const i=Z.cloneDeep((h=e.unref(o))==null?void 0:h.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:a.value?["rowHeaderList","indicators"]:["queryColumnList","indicators"],text:["dimensionList","indicators"],proportion:["indicators"],select:["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"]},p="ecan";let u=e.unref(n);if(u.startsWith(p)){const C=p.length;u=((m=u.slice(C,C+1))==null?void 0:m.toLowerCase())+u.slice(C+1)}const f=c[u],y=rf,b=(f==null?void 0:f.length)||0;for(let C=0;C<b;C++){const g=f[C];if(!g)break;r.push({...y[g],type:g})}for(const C of t)Ye(i,C)&&!f.find(g=>g===C)?i[C]=[]:delete i[C];s(i)};return d(),e.watch(()=>n.value,()=>{r.length=0,d()}),{cardsMap:l,cards:r}}}),Uy="",zy="",cf={class:"data-group"};function df(t,o,n,a,l,r){const s=e.resolveComponent("data-config-card");return e.openBlock(),e.createElementBlock("div",cf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cards,d=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:d.type,class:"data-config-card",type:d.type},d),null,16,["type"]))),128))])}const pf=ne(sf,[["render",df],["__scopeId","data-v-0436e5bb"]]),uf=[{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"]}],ar=[{label:"思源黑体",value:'"SansSc"'},{label:"黑体",value:'"SimHei","STHeiti"'},{label:"楷体",value:'"KaiTi","STKaiti"'},{label:"宋体",value:'"SimSun","STSong"'},{label:"仿宋",value:'"FangSong","STFangsong"'}].map(t=>({value:t.value,label:e.createVNode("span",{style:{fontFamily:t.value}},[t.label])})),ff={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:""},...ar]}},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:""},...ar]}},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
67
|
【参数值】是跳转链接上携带参数的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(t,o,n,a){const{leftAxisList:l=[]}=a,r=o?l.map(s=>s.label):[];n({stackColumns:r})}},stackColumns:{label:"堆叠列配置",component:"select",props:{mode:"multiple",options:t=>{const{leftAxisList:o=[]}=t;return o.map(n=>({label:n.label,value:n.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:`【别名】是循环列表内部要循环的组件别名;
|