@ecan-bi/indicator-library 1.0.98 → 1.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/indicator-library@1.0.98 */
1
+ /*! @ecan-bi/indicator-library@1.0.99 */
2
2
  (function(he,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):(he=typeof globalThis<"u"?globalThis:he||self,e(he["@ecan-bi/indicator-library"]={},he.Vue,he.LodashEs,he.AntDesignVue,he.Draggable,he.Dayjs,null,null,null,he.MonacoEditor,null,he.Echarts))})(this,function(he,e,ee,j,Et,be,Ty,Ny,Ay,Zr,Ey,ei){var Jr;"use strict";function ti(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 oi=ti(ei),da=(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},Be="$request",Se=((Jr=window==null?void 0:window.config)==null?void 0:Jr.indicatorURL)||"",Ve="INDICATOR_TOKEN",pa="DATA_LIST",ve="SELECTED_COMPONENT",ge="GRAPHIC_CONFIG",Ae="UPDATE_GRAPHIC_CONFIG",ua="SHOW_STYLE_CONFIG",fa="REFRESH_DATA",wo="CHARTS_OPTIONS",ma="TABLE_OPTIONS",ni=18,Ko="UPDATE_CHARTS_OPTIONS",Xo="UPDATE_TABLE_OPTIONS",Kt="SOURCE_TYPE",ko="CHANGE_CONDITION",ha="DATA_VIEW_COLUMNS",ze="RENDER_USED_COMPONENTS",xo="UPDATE_USED_COMPONENT",ba="UPDATE_COMPONENTS_CONFIG",ya="MAP_ATTRIBUTE_PROPS",ga="PAGE_CONFIG",Qo="IS_PIVOT_TABLE",Ca="IS_IFRAME_MODE",Jo={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%"}},ai={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},li=e.defineComponent({name:"DataViewList",components:{ASpin:j.Spin,ATreeSelect:j.TreeSelect,Draggable:Et},setup(){var N;const t=e.inject(Be),o=e.unref(e.inject(Ve)),n=e.inject(ge),a=e.inject(Ae),l=e.computed(()=>{var w;return((w=e.unref(n))==null?void 0:w.dataViewId)||null}),r=e.ref(!1),s=e.ref([]),c=(N=window==null?void 0:window.config)==null?void 0:N.pageId,i=e.reactive({title:"已选",value:"YXJG",id:"YXJG",pId:"0",disabled:!0,selectable:!1,isLeaf:!0}),d=async()=>{var x,S;const w=l.value;r.value=!0;try{const{data:A}=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}});r.value=!1,A.success&&((x=s.value)==null||x.push(i),s.value=(S=s.value)==null?void 0:S.concat(p([A.data.rows[0]],"YXJG")))}catch{r.value=!1}},p=(w=[],x)=>{const S=[];return w.forEach(A=>{S.push({id:A.id,pId:x??A.parentId,value:A.id,title:A.name,isLeaf:A.leaf||!1,nature:A.nature,selectable:A.leaf||!1})}),S},u=async(w,x)=>{var v;let S=0;if(w){const{value:D}=w.dataRef;S=D}const{data:A}=await t.post(`${Se}/dataview/treetable`,{pageFlag:!0,pageId:c,parentId:S},{headers:{Authentication:o,operateContext:"ygt"}});A.success&&(s.value=(v=e.unref(s))==null?void 0:v.concat(p(A.data)),x&&e.unref(l)&&await d())},m=w=>{f(w),a({dataViewId:w,classificationList:[],seriesList:[],leftAxisList:[],rightAxisList:[],indicators:[],controlList:[]})},{setDataList:C}=e.inject(pa,{setDataList:w=>w}),g=e.ref(!1),b=e.ref([]),f=async w=>{if(w){b.value=[],g.value=!0;try{const x=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}}),{success:S,data:A={}}=x.data;if(g.value=!1,S){const{rows:v=[]}=A;v==null||v.forEach(D=>{var R;const T=((R=D==null?void 0:D.dataViewColumns)==null?void 0:R.map($=>({...$,show:!0})))||[];b.value=[...e.unref(b),...T]}),C(e.unref(b))}}catch{g.value=!1}}},h=w=>({TEXT:"字符",NUMBER:"数字",DATE:"时间"})[w],y=(w,x)=>{const S=x[w.oldIndex];if(S){const A={...S,label:S.name,name:S.label};sessionStorage.setItem("indicator-list-item",JSON.stringify(A))}};return e.onMounted(async()=>{await u(void 0,!0),f(e.unref(l))}),{dataViewId:l,handleLoadData:u,treeSelectData:s,treeSelectLoading:r,dataViewList:b,dataViewLoading:g,onDataViewIdChange:m,mapGenericType:h,onDragStart:y}}}),$y="",ae=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},ri={class:"data-view-list"},ii={class:"columns"},si={class:"column-item"},ci={class:"column-item-name"};function di(t,o,n,a,l,r){const s=e.resolveComponent("a-tree-select"),c=e.resolveComponent("a-spin"),i=e.resolveComponent("draggable");return e.openBlock(),e.createElementBlock("div",ri,[e.createVNode(c,{"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",ii,[e.createVNode(c,{spinning:t.dataViewLoading,tip:"数据加载中..."},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:t.dataViewList,"onUpdate:modelValue":o[0]||(o[0]=d=>t.dataViewList=d),group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,onStart:o[1]||(o[1]=d=>t.onDragStart(d,t.dataViewList))},{item:e.withCtx(({element:d})=>[e.createElementVNode("div",si,[e.createTextVNode(" 【"+e.toDisplayString(t.mapGenericType(d.genericType))+"】 ",1),e.createElementVNode("span",ci,e.toDisplayString(d.name),1)])]),_:1},8,["modelValue"])]),_:1},8,["spinning"])])])}const pi=ae(li,[["render",di],["__scopeId","data-v-4a66f7d2"]]);function De(t,o){ui(t)&&(t="100%");var n=fi(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 ui(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function fi(t){return typeof t=="string"&&t.indexOf("%")!==-1}function mi(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function _o(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Zo(t){return t.length===1?"0"+t:String(t)}function hi(t,o,n){return{r:De(t,255)*255,g:De(o,255)*255,b:De(n,255)*255}}function en(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 bi(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,c=2*n-s;a=en(c,s,t+1/3),l=en(c,s,t),r=en(c,s,t-1/3)}return{r:a*255,g:l*255,b:r*255}}function yi(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,c=a-l,i=a===0?0:c/a;if(a===l)r=0;else{switch(a){case t:r=(o-n)/c+(o<n?6:0);break;case o:r=(n-t)/c+2;break;case n:r=(t-o)/c+4;break}r/=6}return{h:r,s:i,v:s}}function gi(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),c=n*(1-(1-l)*o),i=a%6,d=[n,s,r,r,c,n][i],p=[c,n,n,s,r,r][i],u=[r,r,c,n,n,s][i];return{r:d*255,g:p*255,b:u*255}}function Ci(t,o,n,a){var l=[Zo(Math.round(t).toString(16)),Zo(Math.round(o).toString(16)),Zo(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 wa(t){return Le(t)/255}function Le(t){return parseInt(t,16)}var ka={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 Xt(t){var o={r:0,g:0,b:0},n=1,a=null,l=null,r=null,s=!1,c=!1;return typeof t=="string"&&(t=xi(t)),typeof t=="object"&&(et(t.r)&&et(t.g)&&et(t.b)?(o=hi(t.r,t.g,t.b),s=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):et(t.h)&&et(t.s)&&et(t.v)?(a=_o(t.s),l=_o(t.v),o=gi(t.h,a,l),s=!0,c="hsv"):et(t.h)&&et(t.s)&&et(t.l)&&(a=_o(t.s),r=_o(t.l),o=bi(t.h,a,r),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=mi(n),{ok:s,format:t.format||c,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 wi="[-\\+]?\\d+%?",ki="[-\\+]?\\d*\\.\\d+%?",it="(?:".concat(ki,")|(?:").concat(wi,")"),tn="[\\s|\\(]+(".concat(it,")[,|\\s]+(").concat(it,")[,|\\s]+(").concat(it,")\\s*\\)?"),on="[\\s|\\(]+(".concat(it,")[,|\\s]+(").concat(it,")[,|\\s]+(").concat(it,")[,|\\s]+(").concat(it,")\\s*\\)?"),Ge={CSS_UNIT:new RegExp(it),rgb:new RegExp("rgb"+tn),rgba:new RegExp("rgba"+on),hsl:new RegExp("hsl"+tn),hsla:new RegExp("hsla"+on),hsv:new RegExp("hsv"+tn),hsva:new RegExp("hsva"+on),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 xi(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var o=!1;if(ka[t])t=ka[t],o=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ge.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ge.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ge.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Ge.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ge.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Ge.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ge.hex8.exec(t),n?{r:Le(n[1]),g:Le(n[2]),b:Le(n[3]),a:wa(n[4]),format:o?"name":"hex8"}:(n=Ge.hex6.exec(t),n?{r:Le(n[1]),g:Le(n[2]),b:Le(n[3]),format:o?"name":"hex"}:(n=Ge.hex4.exec(t),n?{r:Le(n[1]+n[1]),g:Le(n[2]+n[2]),b:Le(n[3]+n[3]),a:wa(n[4]+n[4]),format:o?"name":"hex8"}:(n=Ge.hex3.exec(t),n?{r:Le(n[1]+n[1]),g:Le(n[2]+n[2]),b:Le(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function et(t){return!!Ge.CSS_UNIT.exec(String(t))}var So=2,xa=.16,_i=.05,Si=.05,Ti=.15,_a=5,Sa=4,Ni=[{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 Ta(t){var o=t.r,n=t.g,a=t.b,l=yi(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function To(t){var o=t.r,n=t.g,a=t.b;return"#".concat(Ci(o,n,a,!1))}function Ai(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 Na(t,o,n){var a;return Math.round(t.h)>=60&&Math.round(t.h)<=240?a=n?Math.round(t.h)-So*o:Math.round(t.h)+So*o:a=n?Math.round(t.h)+So*o:Math.round(t.h)-So*o,a<0?a+=360:a>=360&&(a-=360),a}function Aa(t,o,n){if(t.h===0&&t.s===0)return t.s;var a;return n?a=t.s-xa*o:o===Sa?a=t.s+xa:a=t.s+_i*o,a>1&&(a=1),n&&o===_a&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ea(t,o,n){var a;return n?a=t.v+Si*o:a=t.v-Ti*o,a>1&&(a=1),Number(a.toFixed(2))}function nn(t){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Xt(t),l=_a;l>0;l-=1){var r=Ta(a),s=To(Xt({h:Na(r,l,!0),s:Aa(r,l,!0),v:Ea(r,l,!0)}));n.push(s)}n.push(To(a));for(var c=1;c<=Sa;c+=1){var i=Ta(a),d=To(Xt({h:Na(i,c),s:Aa(i,c),v:Ea(i,c)}));n.push(d)}return o.theme==="dark"?Ni.map(function(p){var u=p.index,m=p.opacity,C=To(Ai(Xt(o.backgroundColor||"#141414"),Xt(n[u]),m*100));return C}):n}var an={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"},ln={},rn={};Object.keys(an).forEach(function(t){ln[t]=nn(an[t]),ln[t].primary=ln[t][5],rn[t]=nn(an[t],{theme:"dark",backgroundColor:"#141414"}),rn[t].primary=rn[t][5]});var Oa=[],Qt=[],Ei="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Oi(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function Bi(t,o){if(o=o||{},t===void 0)throw new Error(Ei);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Oa.indexOf(a);l===-1&&(l=Oa.push(a)-1,Qt[l]={});var r;return Qt[l]!==void 0&&Qt[l][n]!==void 0?r=Qt[l][n]:(r=Qt[l][n]=Oi(),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 Ba(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){Vi(t,l,n[l])})}return t}function Vi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Li(t,o){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(o))}function Fi(t,o){Li(t,"[@ant-design/icons-vue] ".concat(o))}function Va(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function sn(t,o,n){return n?e.h(t.tag,Ba({key:o},n,t.attrs),(t.children||[]).map(function(a,l){return sn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))})):e.h(t.tag,Ba({key:o},t.attrs),(t.children||[]).map(function(a,l){return sn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))}))}function La(t){return nn(t)[0]}function Fa(t){return t?Array.isArray(t)?t:[t]:[]}var $i=`
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 m=u>0?`... (${u} recursive calls)`:"",C=!!p.component&&p.component.parent==null,g=` at <${Nl(p.component,p.type,C)}`,b=">"+m;return p.props?[g,...yc(p.props),b]:[g+b]}(i))}),c}(l)),console.warn(...r)}(function(){const r=fl.pop();ht=r===void 0||r})()}function yc(t){const o=[],n=Object.keys(t);return n.slice(0,3).forEach(a=>{o.push(...gl(a,t[a]))}),n.length>3&&o.push(" ..."),o}function gl(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}`]:yl(o)?(o=gl(t,Vt(o.value),!0),n?o:[`${t}=Ref<`,o,">"]):Ao(o)?[`${t}=fn${o.name?`<${o.name}>`:""}`]:(o=Vt(o),n?o:[`${t}=`,o])}const Cl={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 $n(t,o,n,a){let l;try{l=a?t(...a):t()}catch(r){(function(s,c,i,d=!0){const p=c?c.vnode:null;if(c){let u=c.parent;const m=c.proxy,C=process.env.NODE_ENV!=="production"?Cl[i]:i;for(;u;){const b=u.ec;if(b){for(let f=0;f<b.length;f++)if(b[f](s,m,C)===!1)return}u=u.parent}const g=c.appContext.config.errorHandler;if(g)return void $n(g,null,10,[s,m,C])}(function(u,m,C,g=!0){if(process.env.NODE_ENV!=="production"){const f=Cl[m];if(C&&(b=C,bt.push(b)),Fn("Unhandled error"+(f?` during execution of ${f}`:"")),C&&bt.pop(),g)throw u;console.error(u)}else console.error(u);var b})(s,i,p,d)})(r,o,n)}return l}let Eo=!1,In=!1;const He=[];let dt=0;const Lt=[];let We=null,pt=0;const gc=Promise.resolve();function Cc(t){He.length&&He.includes(t,Eo&&t.allowRecurse?dt+1:dt)||(t.id==null?He.push(t):He.splice(function(o){let n=dt+1,a=He.length;for(;n<a;){const l=n+a>>>1,r=He[l],s=to(r);s<o||s===o&&r.pre?n=l+1:a=l}return n}(t.id),0,t),wl())}function wl(){Eo||In||(In=!0,gc.then(kl))}const to=t=>t.id==null?1/0:t.id,wc=(t,o)=>{const n=to(t)-to(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function kl(t){In=!1,Eo=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),He.sort(wc);const o=process.env.NODE_ENV!=="production"?n=>xl(t,n):rl;try{for(dt=0;dt<He.length;dt++){const n=He[dt];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&o(n))continue;$n(n,null,14)}}}finally{dt=0,He.length=0,function(n){if(Lt.length){const a=[...new Set(Lt)];if(Lt.length=0,We)return void We.push(...a);for(We=a,process.env.NODE_ENV!=="production"&&(n=n||new Map),We.sort((l,r)=>to(l)-to(r)),pt=0;pt<We.length;pt++)process.env.NODE_ENV!=="production"&&xl(n,We[pt])||We[pt]();We=null,pt=0}}(t),Eo=!1,(He.length||Lt.length)&&kl(t)}}function xl(t,o){if(t.has(o)){const n=t.get(o);if(n>100){const a=o.ownerInstance,l=a&&Tl(a.type);return Fn(`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 oo=new Set;process.env.NODE_ENV!=="production"&&(Ln().__VUE_HMR_RUNTIME__={createRecord:vn(function(t,o){return Oo.has(t)?!1:(Oo.set(t,{initialDef:no(o),instances:new Set}),!0)}),rerender:vn(function(t,o){const n=Oo.get(t);n&&(n.initialDef.render=o,[...n.instances].forEach(a=>{o&&(a.render=o,no(a.type).render=o),a.renderCache=[],a.update()}))}),reload:vn(function(t,o){const n=Oo.get(t);if(!n)return;o=no(o),_l(n.initialDef,o);const a=[...n.instances];for(const r of a){const s=no(r.type);oo.has(s)||(s!==n.initialDef&&_l(s,o),oo.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(oo.add(s),r.ceReload(o.styles),oo.delete(s)):r.parent?Cc(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)oo.delete(no(r.type))},il(l)?Lt.push(...l):We&&We.includes(l,l.allowRecurse?pt+1:pt)||Lt.push(l),wl();var l})});const Oo=new Map;function no(t){return Ao(o=t)&&"__vccOpts"in o?t.__vccOpts:t;var o}function _l(t,o){Vn(t,o);for(const n in t)n==="__file"||n in o||delete t[n]}function vn(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 Dn;process.env.NODE_ENV;let Sl="__VUE_INSTANCE_SETTERS__";(Dn=Ln()[Sl])||(Dn=Ln()[Sl]=[]),Dn.push(t=>t);const kc=/(?:^|[-_])(\w)/g,xc=t=>t.replace(kc,o=>o.toUpperCase()).replace(/[-_]/g,"");function Tl(t,o=!0){return Ao(t)?t.displayName||t.name:t.name||o&&t.__name}function Nl(t,o,n=!1){let a=Tl(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?xc(a):n?"App":"Anonymous"}const yt=(t,o)=>function(n,a,l=!1){let r,s;const c=Ao(n);return c?(r=n,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:rl):(r=n.get,s=n.set),new bc(r,s,c||!s,l)}(t,0,!1);function _c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Al,El={exports:{}};function Sc(){return Al||(Al=1,El.exports=function(){var t=1e3,o=6e4,n=36e5,a="millisecond",l="second",r="minute",s="hour",c="day",i="week",d="month",p="quarter",u="year",m="date",C="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,f={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($){var F=["th","st","nd","rd"],_=$%100;return"["+$+(F[(_-20)%10]||F[_]||F[0])+"]"}},h=function($,F,_){var B=String($);return!B||B.length>=F?$:""+Array(F+1-B.length).join(_)+$},y={s:h,z:function($){var F=-$.utcOffset(),_=Math.abs(F),B=Math.floor(_/60),E=_%60;return(F<=0?"+":"-")+h(B,2,"0")+":"+h(E,2,"0")},m:function $(F,_){if(F.date()<_.date())return-$(_,F);var B=12*(_.year()-F.year())+(_.month()-F.month()),E=F.clone().add(B,d),P=_-E<0,I=F.clone().add(B+(P?-1:1),d);return+(-(B+(_-E)/(P?E-I:I-E))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:u,w:i,d:c,D:m,h:s,m:r,s:l,ms:a,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},N="en",w={};w[N]=f;var x="$isDayjsObject",S=function($){return $ instanceof T||!(!$||!$[x])},A=function $(F,_,B){var E;if(!F)return N;if(typeof F=="string"){var P=F.toLowerCase();w[P]&&(E=P),_&&(w[P]=_,E=P);var I=F.split("-");if(!E&&I.length>1)return $(I[0])}else{var O=F.name;w[O]=F,E=O}return!B&&E&&(N=E),E||!B&&N},v=function($,F){if(S($))return $.clone();var _=typeof F=="object"?F:{};return _.date=$,_.args=arguments,new T(_)},D=y;D.l=A,D.i=S,D.w=function($,F){return v($,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var T=function(){function $(_){this.$L=A(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[x]=!0}var F=$.prototype;return F.parse=function(_){this.$d=function(B){var E=B.date,P=B.utc;if(E===null)return new Date(NaN);if(D.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var I=E.match(g);if(I){var O=I[2]-1||0,V=(I[7]||"0").substring(0,3);return P?new Date(Date.UTC(I[1],O,I[3]||1,I[4]||0,I[5]||0,I[6]||0,V)):new Date(I[1],O,I[3]||1,I[4]||0,I[5]||0,I[6]||0,V)}}return new Date(E)}(_),this.init()},F.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},F.$utils=function(){return D},F.isValid=function(){return this.$d.toString()!==C},F.isSame=function(_,B){var E=v(_);return this.startOf(B)<=E&&E<=this.endOf(B)},F.isAfter=function(_,B){return v(_)<this.startOf(B)},F.isBefore=function(_,B){return this.endOf(B)<v(_)},F.$g=function(_,B,E){return D.u(_)?this[B]:this.set(E,_)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(_,B){var E=this,P=!!D.u(B)||B,I=D.p(_),O=function(X,J){var oe=D.w(E.$u?Date.UTC(E.$y,J,X):new Date(E.$y,J,X),E);return P?oe:oe.endOf(c)},V=function(X,J){return D.w(E.toDate()[X].apply(E.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(J)),E)},k=this.$W,L=this.$M,M=this.$D,U="set"+(this.$u?"UTC":"");switch(I){case u:return P?O(1,0):O(31,11);case d:return P?O(1,L):O(0,L+1);case i:var z=this.$locale().weekStart||0,q=(k<z?k+7:k)-z;return O(P?M-q:M+(6-q),L);case c:case m: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(_){return this.startOf(_,!1)},F.$set=function(_,B){var E,P=D.p(_),I="set"+(this.$u?"UTC":""),O=(E={},E[c]=I+"Date",E[m]=I+"Date",E[d]=I+"Month",E[u]=I+"FullYear",E[s]=I+"Hours",E[r]=I+"Minutes",E[l]=I+"Seconds",E[a]=I+"Milliseconds",E)[P],V=P===c?this.$D+(B-this.$W):B;if(P===d||P===u){var k=this.clone().set(m,1);k.$d[O](V),k.init(),this.$d=k.set(m,Math.min(this.$D,k.daysInMonth())).$d}else O&&this.$d[O](V);return this.init(),this},F.set=function(_,B){return this.clone().$set(_,B)},F.get=function(_){return this[D.p(_)]()},F.add=function(_,B){var E,P=this;_=Number(_);var I=D.p(B),O=function(L){var M=v(P);return D.w(M.date(M.date()+Math.round(L*_)),P)};if(I===d)return this.set(d,this.$M+_);if(I===u)return this.set(u,this.$y+_);if(I===c)return O(1);if(I===i)return O(7);var V=(E={},E[r]=o,E[s]=n,E[l]=t,E)[I]||1,k=this.$d.getTime()+_*V;return D.w(k,this)},F.subtract=function(_,B){return this.add(-1*_,B)},F.format=function(_){var B=this,E=this.$locale();if(!this.isValid())return E.invalidDate||C;var P=_||"YYYY-MM-DDTHH:mm:ssZ",I=D.z(this),O=this.$H,V=this.$m,k=this.$M,L=E.weekdays,M=E.months,U=E.meridiem,z=function(J,oe,le,Ce){return J&&(J[oe]||J(B,P))||le[oe].slice(0,Ce)},q=function(J){return D.s(O%12||12,J,"0")},X=U||function(J,oe,le){var Ce=J<12?"AM":"PM";return le?Ce.toLowerCase():Ce};return P.replace(b,function(J,oe){return oe||function(le){switch(le){case"YY":return String(B.$y).slice(-2);case"YYYY":return D.s(B.$y,4,"0");case"M":return k+1;case"MM":return D.s(k+1,2,"0");case"MMM":return z(E.monthsShort,k,M,3);case"MMMM":return z(M,k);case"D":return B.$D;case"DD":return D.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return z(E.weekdaysMin,B.$W,L,2);case"ddd":return z(E.weekdaysShort,B.$W,L,3);case"dddd":return L[B.$W];case"H":return String(O);case"HH":return D.s(O,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return X(O,V,!0);case"A":return X(O,V,!1);case"m":return String(V);case"mm":return D.s(V,2,"0");case"s":return String(B.$s);case"ss":return D.s(B.$s,2,"0");case"SSS":return D.s(B.$ms,3,"0");case"Z":return I}return null}(J)||I.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(_,B,E){var P,I=this,O=D.p(B),V=v(_),k=(V.utcOffset()-this.utcOffset())*o,L=this-V,M=function(){return D.m(I,V)};switch(O){case u:P=M()/12;break;case d:P=M();break;case p:P=M()/3;break;case i:P=(L-k)/6048e5;break;case c:P=(L-k)/864e5;break;case s:P=L/n;break;case r:P=L/o;break;case l:P=L/t;break;default:P=L}return E?P:D.a(P)},F.daysInMonth=function(){return this.endOf(d).$D},F.$locale=function(){return w[this.$L]},F.locale=function(_,B){if(!_)return this.$L;var E=this.clone(),P=A(_,B,!0);return P&&(E.$L=P),E},F.clone=function(){return D.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()},$}(),R=T.prototype;return v.prototype=R,[["$ms",a],["$s",l],["$m",r],["$H",s],["$W",c],["$M",d],["$y",u],["$D",m]].forEach(function($){R[$[1]]=function(F){return this.$g(F,$[0],$[1])}}),v.extend=function($,F){return $.$i||($(F,T,v),$.$i=!0),v},v.locale=A,v.isDayjs=S,v.unix=function($){return v(1e3*$)},v.en=w[N],v.Ls=w,v.p={},v}()),El.exports}var Tc=_c(Sc()),Ol=typeof global=="object"&&global&&global.Object===Object&&global,Nc=typeof self=="object"&&self&&self.Object===Object&&self,tt=Ol||Nc||Function("return this")(),Ft=tt.Symbol,Bl=Object.prototype,Ac=Bl.hasOwnProperty,Ec=Bl.toString,ao=Ft?Ft.toStringTag:void 0,Oc=Object.prototype.toString,Vl=Ft?Ft.toStringTag:void 0;function Bo(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Vl&&Vl in Object(t)?function(o){var n=Ac.call(o,ao),a=o[ao];try{o[ao]=void 0;var l=!0}catch{}var r=Ec.call(o);return l&&(n?o[ao]=a:delete o[ao]),r}(t):function(o){return Oc.call(o)}(t)}function Ll(t){return t!=null&&typeof t=="object"}function Fl(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function Bc(t){if(!Fl(t))return!1;var o=Bo(t);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[object Proxy]"}var $l,Mn=tt["__core-js_shared__"],Il=($l=/[^.]+$/.exec(Mn&&Mn.keys&&Mn.keys.IE_PROTO||""))?"Symbol(src)_1."+$l:"",Vc=Function.prototype.toString;function gt(t){if(t!=null){try{return Vc.call(t)}catch{}try{return t+""}catch{}}return""}var Lc=/^\[object .+?Constructor\]$/,Fc=Function.prototype,$c=Object.prototype,Ic=Fc.toString,vc=$c.hasOwnProperty,Dc=RegExp("^"+Ic.call(vc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mc(t){return!(!Fl(t)||(o=t,Il&&Il in o))&&(Bc(t)?Dc:Lc).test(gt(t));var o}function Ct(t,o){var n=function(a,l){return a==null?void 0:a[l]}(t,o);return Mc(n)?n:void 0}var Pn=Ct(tt,"WeakMap");(function(){try{var t=Ct(Object,"defineProperty");return t({},"",{}),t}catch{}})();function vl(t){return Ll(t)&&Bo(t)=="[object Arguments]"}var Dl=Object.prototype,Pc=Dl.hasOwnProperty,jc=Dl.propertyIsEnumerable;vl(function(){return arguments}());var Ml=typeof he=="object"&&he&&!he.nodeType&&he,Pl=Ml&&typeof module=="object"&&module&&!module.nodeType&&module,jl=Pl&&Pl.exports===Ml?tt.Buffer:void 0;jl&&jl.isBuffer;var Rl=typeof he=="object"&&he&&!he.nodeType&&he,lo=Rl&&typeof module=="object"&&module&&!module.nodeType&&module,jn=lo&&lo.exports===Rl&&Ol.process,$t=function(){try{var t=lo&&lo.require&&lo.require("util").types;return t||jn&&jn.binding&&jn.binding("util")}catch{}}();$t&&$t.isTypedArray,Ct(Object,"create");var Rn=Ct(tt,"Map"),Un=Ct(tt,"DataView"),zn=Ct(tt,"Promise"),Gn=Ct(tt,"Set"),Ul="[object Map]",zl="[object Promise]",Gl="[object Set]",Hl="[object WeakMap]",Wl="[object DataView]",Rc=gt(Un),Uc=gt(Rn),zc=gt(zn),Gc=gt(Gn),Hc=gt(Pn),It=Bo;(Un&&It(new Un(new ArrayBuffer(1)))!=Wl||Rn&&It(new Rn)!=Ul||zn&&It(zn.resolve())!=zl||Gn&&It(new Gn)!=Gl||Pn&&It(new Pn)!=Hl)&&(It=function(t){var o=Bo(t),n=o=="[object Object]"?t.constructor:void 0,a=n?gt(n):"";if(a)switch(a){case Rc:return Wl;case Uc:return Ul;case zc:return zl;case Gc:return Gl;case Hc:return Hl}return o}),tt.Uint8Array;var Yl=Ft?Ft.prototype:void 0;Yl&&Yl.valueOf,$t&&$t.isMap,$t&&$t.isSet;const ql=(t,o)=>{const n=Object.assign({dayjs:Tc},o);let a="";const l=[];for(const c in n)a+=`${c},`,l.push(n[c]);a=a.replace(/,$/,"");const r=`function (${a}){return ${t}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...l)}catch{return t}return s},vt=(t="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r=window.config||{},s=Object.assign(Object.assign({},r),o),c=(t||"").match(/\{(.+?)\}/g);if(c==null||c.length===0)return t;for(let i=0;i<c.length;i++){const d=c[i];let p=d.slice(1,-1).trim();const u=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,m=p.match(u);for(let C=0;C<m.length;C++){const g=m[C],b=s[g];b!=null&&typeof b!="function"&&(p=p.replace(g,b))}(/\(.*\)/g.test(p)||/[+/\\*]/g.test(p))&&(p=ql(p,n)),t=t.replace(d,p)}return a&&(t=t==null?void 0:t.replace(/\n|\\n/g,"<br/>")),l&&(t=t==null?void 0:t.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),t=t.replace(/Qfw\((.*?)\)/,(i,d)=>o!=null&&o.Qfw?o==null?void 0:o.Qfw(d):d)},ue=(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 Wc(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 Yc=(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,c=t.length,i=l.length;if(c!==1||n)for(let u=0;u<c;u++){const m=t[u],C=m[a];r.add(C);for(let g=0;g<i;g++){const b=l[g],{label:f,value:h}=b,y=Object.assign(Object.assign({},m),{value:m[h]});if(s.has(f)){const N=s.get(f);N.push(y),s.set(f,N)}else s.set(f,[y])}}else{const u=[];for(let C=0;C<i;C++){const g=l[C],{label:b,value:f}=g,h=Object.assign(Object.assign({},t[0]),{value:t[0][f]});r.add(b),u.push(h)}const m=t[0][a]||"";s.set(m,u)}const d=Array.from(r),p=[];for(const[u,m]of s)p.push({name:u,data:m});return{dimensions:d,dataset:p}},qc=(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 d=0;d<s;d++){const p=t[d],u=p[n]||"",m=p[a]||"",C=p[l]||"";if(r.has(C)){const g=r.get(C);g.push(Object.assign({name:u,value:m},p)),r.set(C,g)}else r.set(C,[Object.assign({name:u,value:m},p)])}const c=[],i=[];for(const[d,p]of r)if(i.push({name:d,data:p}),p==null?void 0:p.length)if(c.length)for(const u of p)c.includes(u.name)||c.push(u.name);else c.push(...p.map(u=>u.name));return{dimensions:c,dataset:i}},Dt=(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 c=(n=s.slice(1,-1))===null||n===void 0?void 0:n.trim();c=c==null?void 0:c.replace(/value/g,o);try{let i=c;(/\(.*\)/g.test(c)||/[+/\\*]/g.test(c))&&(i=ql(c)),t=t.replace(s,i)}catch{t=t.replace(s,c)}}return t};function Kc(t){return t.isShowMarkLine?{markLine:{data:[{type:t.markLineType}]}}:{}}const Xc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,c=yt(()=>{const{gradientShow:d,gradientColors:p,gradientOffset:u,barBorderRadius:m}=t,C=s,g=C.length,b=[];for(let f=0;f<g;f++){const h=Object.assign(Object.assign({},C[f]),{type:"bar",barWidth:t.barWidth,showBackground:t.showBarBackground}),{isStack:y,stackColumns:N}=t;if(y&&N.includes(C[f].name||!N)&&(h.stack="stack"),h.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:A,name:v,value:D,data:T}=w||{};return x+=vt(S,{textData:Object.assign({name:v,value:D,a:A,b:v,c:D||0},T)},{useNewline:!0,useSpace:!0}),x}},h.itemStyle={},d&&(h.itemStyle={color:{x:t.isUseHorizontalAxis?1:0,y:0,x2:0,y2:t.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:t.colors[f]},{offset:u,color:p[f]},{offset:1,color:p[f]}]}}),m){const w=m.split(",");if(w!=null&&w.length){const x=[];for(const S of w){const A=parseFloat(S);isNaN(A)||x.push(A)}h.itemStyle.barBorderRadius=x}}t.isShowMarkLine&&(h.markLine={data:[{type:t.markLineType}]}),b.push(h)}return b}),i=yt(()=>r.map(d=>{let p={};return p=d&&typeof d=="object"?Object.assign(Object.assign({},d),{textStyle:{fontSize:n}}):{value:d,textStyle:{fontSize:n}},p}));return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:d=>{const p=d.length;let u="",m=t.tooltipFormatter;m===""&&(m="{marker} {a} {c}");for(let C=0;C<p;C++){const{marker:g,seriesName:b,name:f,value:h,data:y}=d[C]||{};if(C===0){let N=f;typeof f!="string"||f[0]!=="0"||isNaN(+f)||(N=(+f).toString()),u+=`${Dt(l,N)}<br/>`}u+=vt(m,{textData:Object.assign({marker:g,name:f,value:h,Qfw:Wc,a:b,b:f,c:h||0},y)},{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((d,p)=>({name:d.name,itemStyle:{color:t.colors[p]},icon:t.legendType})),formatter:d=>((p="",u)=>{var m;const C=p.match(/\{(.+?)\}/g),g=((m=p.split(`
62
62
  `))===null||m===void 0?void 0:m.length)-1;let b="";if(g)for(let h=0;h<g;h++)b+=`
63
63
  `;let f=p;if(C!=null&&C.length){for(const h of C){const y=vt(h,{textData:u},{useNewline:!1,useSpace:!1});y&&(f=f.replace(h,y))}return`${b}{text|${f}}`}return p})(t.legendFormatter,{name:d})},xAxis:{type:t.isUseHorizontalAxis?"value":"category",data:t.isUseHorizontalAxis?null:ct(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:d=>(typeof d!="string"||d[0]!=="0"||isNaN(+d)||(d=(+d).toString()),Dt(l,d))},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?ct(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:d=>Dt(a,d)},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:ct(c)}},Qc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,c=yt(()=>r.map(d=>{let p={};return p=d&&typeof d=="object"?Object.assign(Object.assign({},d),{textStyle:{fontSize:n}}):{value:d,textStyle:{fontSize:n}},p})),i=yt(()=>{const d=[],p=s.length;for(let u=0;u<p;u++){const m={};t.shadowColor&&(m.shadowColor=t.shadowColor,m.shadowBlur=t.shadowBlur,m.shadowOffsetY=t.shadowOffsetY,m.shadowOffsetX=t.shadowOffsetX),d.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},m)}),Kc(t)))}return d});return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:d=>{const p=d.length;let u="",m=t.tooltipFormatter;m===""&&(m="{marker} {a} {c}");for(let C=0;C<p;C++){const{marker:g,seriesName:b,name:f,value:h,data:y}=d[C]||{};C===0&&(u+=`${f}<br/>`),u+=vt(m,{textData:Object.assign({marker:g,name:f,value:h,a:b,b:f,c:h},y)},{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:ct(c),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:d=>Dt(l,d)},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:d=>Dt(a,d)},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:ct(i)}},Jc=(t,o,n)=>{const{dataset:a=[]}=o;let{data:l=[]}=a[0]||{};if(Array.isArray(t.colors)){const s=t.isUseLabelColors,c=t.colors;l=l.map((i,d)=>Object.assign({label:s?{color:c[d]}:{}},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:c,seriesName:i,name:d,value:p,percent:u,data:m}=s||{};return vt(t.tooltipFormatter,{textData:Object.assign({marker:c,name:d,value:p,percent:u,a:i,b:d,c:p,d:u},m)},{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},Zc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=yt(()=>a.map(i=>{let d={};return d=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},d})),s=yt(()=>{const i=[],d=l.length,p=t.seriesTypes;for(let u=0;u<d;u++){const m=p[u],{type:C,axisIndex:g}=m||{};let b=Object.assign({type:C,yAxisIndex:g},l[u]);if(C==="line"){const f={};t.shadowColor&&(f.shadowColor=t.shadowColor,f.shadowBlur=t.shadowBlur,f.shadowOffsetY=t.shadowOffsetY,f.shadowOffsetX=t.shadowOffsetX),b=Object.assign(Object.assign({},b),{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},f)})}if(C==="bar"){const{gradientShow:f,gradientColors:h,gradientOffset:y}=t,N={};if(t.barBorderRadius){const w=t.barBorderRadius.split(",");if(w!=null&&w.length){const x=[];for(const S of w){const A=parseFloat(S);isNaN(A)||x.push(A)}N.borderRadius=x}}f&&(N.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:y,color:h[u]},{offset:1,color:h[u]}]}),b=Object.assign(Object.assign({},b),{barWidth:t.barWidth,itemStyle:N})}t.isShowMarkLine&&(b.markLine={data:[{type:t.markLineType}]}),i.push(b)}return i}),c=yt(()=>{const i=t.yAxis;return i==null?void 0:i.map((d,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=>Dt(d.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 d=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const m=t.seriesTypes;for(let C=0;C<d;C++){const g=m[C],{tooltipFormatter:b}=g||{},{marker:f,seriesName:h,name:y,value:N,data:w}=i[C]||{};C===0&&(p+=`${y}<br/>`),p+=vt(b||u,{textData:Object.assign({marker:f,name:y,value:N,seriesName:h,a:h,b:y,c:N},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:ct(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:ct(c),series:ct(s)}},ed=(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 Xc(a,l,r);case"line":return Qc(a,l,r);case"pie":return Jc(a,l,r);case"comboGraph":return Zc(a,l,r);default:return{}}})(t,o,n)),ut=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...ut(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},Kl=(t,o)=>{var b;const n=ee.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:c=[],rightAxisList:i=[],queryColumnList:d=[],indicators:p=[]}=t;Ql(n,o);const u=n,m=[...a,...l,...r,...s,...c,...i,...d,...p],C=[];for(const f of m){const h=ut((f==null?void 0:f.conditions)||[]);if(h!=null&&h.length){const y=h.filter(N=>Jl(N,o)?(N==null?void 0:N.dataType)==="component":!1).map(N=>{const w=Jl(N,o),x={};return N!=null&&N.dateFormat&&(x.format=N.dateFormat),{conditionKey:N.fieldName,conditionLabel:N.fieldName,conditionName:N.fieldName,conditionValueType:N.fieldType,id:w.id,keyName:N.fieldValue,rule:N.rule,notGlobal:!0,indexCode:N.indexCode,typeGuid:N.typeGuid,indexCodeNum:N.indexCodeNum,...x}});if(y!=null&&y.length)for(const N of y)C.find(w=>w.keyName===N.keyName)||C.push(N)}}const g=C.length;for(let f=0;f<g;f++){const h=C[f];if(h&&!((b=Object.keys(h))!=null&&b.length)||(h==null?void 0:h.conditionKey)==="parentCode")continue;const{id:y,keyName:N,prop:w,format:x,dataType:S="component",customValue:A}=h,v=Xl(h);Hn({sqlCondition:v,renderUsedComponents:o,id:y,dateFormat:x,prop:w,keyName:N,dataType:S,customValue:A}),u.push(v)}for(let f=u.length-1;f>=0;f--){const h=u[f];h.globalCondition||ut(u).find(N=>N.alias===h.alias&&N.globalCondition)&&u.splice(f,1)}return u},ro=(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||""};Hn({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 Xl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:c="NONE",notGlobal:i=!1,indexCode:d,indexCodeNum:p,typeGuid:u,dataType:m="component"}=t;let C=n||o;return C&&s&&(C+=`-${s}`),{rule:c,label:a,fieldName:l,fieldValue:"",valueType:r,alias:C,globalCondition:!i,indexCode:d,indexCodeNum:p,typeGuid:u,dataType:m}}const td=["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:c="component",customValue:i}=n,d=Xl(n);Hn({sqlCondition:d,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:c,customValue:i});for(const p in d)n[p]=d[p];for(const p of td)delete n[p]}}function Hn(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:c,customValue:i,operateValue:d,operateMode:p,operateType:u}=t,m=e.unref(n).find(N=>N.id===a),{value:C,format:g="YYYY-MM-DD",operate:b,type:f="",useCurrentTime:h}=m||{},y=l||g;if(ue(f,"date")){let N;if(h?N=be():N=be(C),b&&C){const{mode:w,type:x,value:S}=b;if(S)switch(x){case"add":N=N.add(S,w);break;case"minus":N=N.subtract(S,w);break}}if(d&&p&&u)switch(u){case"add":N=N.add(d,p);break;case"minus":N=N.subtract(d,p);break}o.fieldValue=(N==null?void 0:N.format(y))||"",o.dateFormat=y}else if(f==="ecanRangePicker"){const{interval:N,intervalUnit:w,startTime:x,endTime:S}=m||{};let A=r;if(!r){const D=s==null?void 0:s.split("-");D!=null&&D.length&&(A=D[D.length-1])}if(!A)return;let v=null;if(h&&(A==="startTime"?v=be().subtract(N,w):A==="endTime"&&(v=be())),m[A]&&(v=be(m[A])),b){const{type:D,value:T,mode:R}=b;switch(D){case"add":v=v&&v.add(T,R);break;case"minus":v=v&&v.subtract(T,R)}}if(d&&p&&u){if(d==="rangeValue"){if(x&&S){const D=be(S).diff(be(x),p)+1;switch(u){case"add":v=v&&v.add(D,p);break;case"minus":v=v&&v.subtract(D,p)}}}else if(!isNaN(+d))switch(u){case"add":v=v&&v.add(d,p);break;case"minus":v=v&&v.subtract(d,p)}}if(v&&(o.fieldValue=v==null?void 0:v.format(y)),A==="rangeValue"&&x&&S){const D=od(y);D&&(o.fieldValue=be(S).diff(be(x),D)+1)}o.dateFormat=y}else{const N=C&&C.match(/\{(.+?)\}/g);N!=null&&N.length?o.fieldValue="":o.fieldValue=C}c===""&&(o.fieldValue=i||"")}const Vo=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 Jl(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 od(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 nd(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=ad(a))}}return n}function ad(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 Zl=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],er=t=>({0:"文本",1:"数值",2:"日期"})[t],tr=t=>{if(!t)return"";const o=t.split(","),n=[];for(const a of o)a==="0"?n.push("手工录入"):a==="1"?n.push("系统取数"):a==="2"&&n.push("运算加工");return n.join("、")},or=t=>{if(!t)return"";const o=t.split(","),n=[];for(const a of o)switch(a){case"1":n.push("人力系统");break;case"2":n.push("绩效系统");break;case"3":n.push("预算系统");break;case"4":n.push("财务系统");break;case"5":n.push("成本系统");break;case"6":n.push("物流系统");break;case"7":n.push("固定资产系统");break;case"8":n.push("OA办公系统");break;case"9":n.push("电子档案系统");break;case"10":n.push("个人收入系统");break;case"11":n.push("奖金二次分配系统");break;case"12":n.push("财务管理系统");break;case"13":n.push("报销系统");break;case"14":n.push("科研管理系统");break;case"15":n.push("审计系统");break;case"16":n.push("分组器系统");break;case"17":n.push("消毒供应系统");break}return n.join("、")},nr=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",ld=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:za,CaretDownOutlined:Ra,LoadingOutlined:js,Draggable:Et,ATooltip:j.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(Be),r=e.unref(e.inject(Ve)),s=e.inject("setItemDisabled",S=>!1),c=e.ref([]),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),m=e.ref(!1);e.watch(()=>t.data,S=>{t.isSub&&(S==null||S.forEach(A=>{var v;A!=null&&A.isLeaf||(v=A.dataViewColumns)==null||v.forEach(D=>{D.show=!0,D.edit=!1,D.title&&(D.label=D.title)})}),c.value=S)},{deep:!0,immediate:!0});const C=()=>{var S;t.isSub||(S=e.unref(i))==null||S.removeEventListener("scroll",y)},g=async S=>{var D;if(e.unref(p))return;const A=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const v={source:t.source,pageId:a,dataSourceId:A,indexName:u.value};S?(S.loading=!0,v.indexTypeGuid=S.indexTypeGuid,v.isLeaf=S.isLeaf):d&&(v.queryRequest={pageSize:d.pageSize,pageNum:d.currentPage});try{const T=await l.post(`${Se}/diagram/sourceList`,v,{headers:{Authentication:r,operateContext:"ygt"}}),{success:R,data:$={}}=T.data;if(R){const{rows:F=[],total:_=0}=$;F==null||F.forEach(B=>{var E;(S==null?void 0:S.isLeaf)==="1"||t.graphicConfig.dataSourceId?(E=B.dataViewColumns)==null||E.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)}):B.show=!1}),S?(S.children=F,S.show=!0,F!=null&&F.length||(S.noData=!0)):(c.value=e.unref(c).concat(F),d.totalResult=+_,((D=e.unref(c))==null?void 0:D.length)>=_&&C())}S&&(S.loading=!1),p.value=!1}catch{S&&(S.loading=!1),p.value=!1}},b=async S=>{const A=c.value[S],{children:v=[]}=A;v!=null&&v.length?A.show=!A.show:!A.noData&&A.isLeaf?g(A):A.noData&&(A.show=!A.show)},f=(S,A)=>{o("onDragStart",S,A)},h=S=>{S.show=!S.show},y=S=>{S.target.scrollTop+S.target.clientHeight+20>=S.target.scrollHeight&&(d.currentPage++,g())},N=async()=>{await g(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&d.totalResult>e.unref(c).length&&(d.currentPage++,N())})},w=async S=>{var A;C(),m.value=!0,d.currentPage=1,d.totalResult=0,c.value=[],u.value=S,await N(),m.value=!1,(A=e.unref(i))==null||A.addEventListener("scroll",y)};return e.onMounted(async()=>{var S;t.isSub||(N(),(S=e.unref(i))==null||S.addEventListener("scroll",y))}),e.onUnmounted(()=>{C()}),n({handleSearch:w}),{columnRef:i,sourceList:c,searchLoading:m,onToggleGroup:b,onToggleSource:h,setItemDisabled:s,onDragStart:f,mapDataSetScope:er,mapScope:Zl,getLoadType:tr,getUseType:or,getSourceType:nr}}}),Iy="",rd={key:0,class:"no-data"},id={class:"column-item"},sd=["onClick"],cd={key:3,class:"item-name"},dd={key:0},pd={class:"column-item"},ud={key:0},fd={key:1},md={key:2},hd={key:3},bd=["onClick"],yd={class:"column-child-item"},gd={class:"field"},Cd={class:"column-child-item-name"};function wd(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),c=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),d=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(m,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var C;return[!((C=t.sourceList)!=null&&C.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",rd,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:g.indexTypeGuid||g.id},[e.createElementVNode("div",id,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:f=>t.onToggleGroup(b)},[g.loading?(e.openBlock(),e.createBlock(s,{key:0})):g.show?(e.openBlock(),e.createBlock(c,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),g.isLeaf?(e.openBlock(),e.createElementBlock("span",cd,e.toDisplayString(g.indexTypeCode+"."+g.indexTypeName),1)):e.createCommentVNode("",!0)],8,sd)]),g.show?(e.openBlock(),e.createElementBlock("div",dd,[e.createVNode(d,{data:g.children,isSub:!0,hasChildren:g.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,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:e.normalizeClass(t.setItemDisabled(g.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",pd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(g.loadType)),1),g.useType?(e.openBlock(),e.createElementBlock("div",ud,"数据使用系统:"+e.toDisplayString(t.getUseType(g.useType)),1)):e.createCommentVNode("",!0),g.systemSource?(e.openBlock(),e.createElementBlock("div",fd,"制度出处:"+e.toDisplayString(g.systemSource),1)):e.createCommentVNode("",!0),g.dataTo?(e.openBlock(),e.createElementBlock("div",md,"数据来源:"+e.toDisplayString(t.getSourceType(g.dataTo)),1)):e.createCommentVNode("",!0),g.meaning?(e.openBlock(),e.createElementBlock("div",hd,"指标1含义:"+e.toDisplayString(g.meaning),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:b=>t.onToggleSource(g)},[g.show?(e.openBlock(),e.createBlock(c,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((g.indexCode?g.indexCode:"")+" "+g.name),1)],8,bd)]),_:2},1024)]),g.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:g.dataViewColumns,"onUpdate:modelValue":b=>g.dataViewColumns=b,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(g.dataViewColumns),onStart:b=>t.onDragStart(b,g)},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",yd,[e.createElementVNode("span",gd," 【"+e.toDisplayString(b.scope==="FIELD"?t.mapDataSetScope(b.genericType):t.mapScope(b.scope))+"】 ",1),e.createElementVNode("span",Cd,e.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const kd=ae(ld,[["render",wd],["__scopeId","data-v-8e4325d2"]]),xd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:za,CaretDownOutlined:Ra,IndSourceList:kd,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Et,ATooltip:j.Tooltip},setup(){var x;const t=(x=window==null?void 0:window.config)==null?void 0:x.pageId,o=e.inject(Be),n=e.unref(e.inject(Ve)),a=e.inject(ve),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([]),c=e.ref(!1),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Kt),u=e.ref(""),m=async()=>{if(e.unref(h).source==="INDICATOR_LIB")return;c.value=!0;const S={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:d.pageSize,pageNum:d.currentPage}};S.source==="EDV_DATA_SET"&&(S.edvDataSetName=S.indexName,delete S.indexName);try{const A=await o.post(`${Se}/diagram/sourceList`,S,{headers:{Authentication:n,operateContext:"ygt"}});c.value=!1;const{success:v,data:D={}}=A.data;if(v){const{rows:T=[],total:R=0}=D;T==null||T.forEach($=>{var F;$.show=!1,(F=$.dataViewColumns)==null||F.forEach(_=>{_.show=!0,_.edit=!1,_.title&&(_.label=_.title)})}),s.value=T,d.totalResult=+R}}catch{c.value=!1}},C=S=>{s.value[S].show=!s.value[S].show},g=()=>{var S;d.currentPage=1,m(),e.unref(h).source==="INDICATOR_LIB"&&((S=e.unref(i))==null||S.handleSearch(e.unref(u)))},b=ee.debounce(()=>{d.currentPage=1,m()},200),f=(S,A)=>{d.pageSize=A,d.currentPage=S,m()};e.onMounted(()=>{m()});const h=e.inject(ge),y=e.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let A=[];for(const v in e.unref(h))if(Object.prototype.hasOwnProperty.call(e.unref(h),v)&&S.includes(v)){const D=e.unref(h)[v];Array.isArray(D)&&(A=A.concat(D))}return A}),N=(S=[])=>{let A=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const v of e.unref(y))if(!S.find(T=>T.parentId===v.parentId)){A=!0;break}}else for(const v of e.unref(y))if(!S.find(T=>T.typeGuid===v.typeGuid)){A=!0;break}return A};return e.provide("setItemDisabled",N),{dataSourceList:s,dataSourceLoading:c,pagination:d,onToggleGroup:C,mapScope:Zl,mapDataSetScope:er,onSearch:g,onChange:b,source:p,onPaginationChange:f,searchText:u,setItemDisabled:N,onDragStart:(S,A)=>{const v=A.dataViewColumns[S.oldIndex];let D={};A.dataSetParams&&(D=A.dataSetParams),v&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...v,dataTo:A.dataTo,dataSetParams:D})),A.dataTo==="1"&&(A!=null&&A.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(A.hrpIndexVariates)),A.dataTo==="2"&&(A!=null&&A.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(A.dataSetParams)))},getSourceType:nr,getLoadType:tr,getUseType:or,graphicConfig:h,indSourceRef:i}}}),vy="",_d={class:"data-source-list"},Sd={class:"columns"},Td={class:"column-item"},Nd={key:0},Ad={key:1},Ed={key:2},Od=["onClick"],Bd={key:0},Vd={class:"column-child-item"},Ld={class:"column-child-item-name"};function Fd(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),c=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),d=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-spin"),C=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",_d,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=g=>t.searchText=g),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(c,{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",Sd,[e.createVNode(m,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:e.normalizeClass(t.setItemDisabled(g.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",Td,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(g.loadType)),1),g.useType?(e.openBlock(),e.createElementBlock("div",Nd,"数据使用系统:"+e.toDisplayString(t.getUseType(g.useType)),1)):e.createCommentVNode("",!0),g.systemSource?(e.openBlock(),e.createElementBlock("div",Ad,"制度出处:"+e.toDisplayString(g.systemSource),1)):e.createCommentVNode("",!0),g.meaning?(e.openBlock(),e.createElementBlock("div",Ed,"指标含义:"+e.toDisplayString(g.meaning),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:f=>t.onToggleGroup(b)},[g.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(d,{key:1})),e.createTextVNode(" "+e.toDisplayString((g.indexCode?g.indexCode:"")+" "+g.name)+"【"+e.toDisplayString(t.getSourceType(g.dataTo))+"】 ",1)],8,Od)]),_:2},1024)]),g.show?(e.openBlock(),e.createElementBlock("div",Bd,[e.createVNode(u,{modelValue:g.dataViewColumns,"onUpdate:modelValue":f=>g.dataViewColumns=f,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(g.dataViewColumns),onStart:f=>t.onDragStart(f,g)},{item:e.withCtx(({element:f})=>[e.createElementVNode("div",Vd,[e.createTextVNode(" 【"+e.toDisplayString(f.scope==="FIELD"?t.mapDataSetScope(f.genericType):t.mapScope(f.scope))+"】 ",1),e.createElementVNode("span",Ld,e.toDisplayString(f.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(C,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=g=>t.pagination.pageSize=g),total:t.pagination.totalResult,"show-total":g=>`共 ${g} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=g=>t.pagination.currentPage=g),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const $d=ae(xd,[["render",Fd],["__scopeId","data-v-ab1aca5f"]]),Id=e.defineComponent({name:"DataList",components:{DataSourceList:$d,DataViewList:pi},setup(){return{source:e.inject(Kt)}}});function vd(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),c=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(c,{key:1})):e.createCommentVNode("",!0)],64)}const Dd=ae(Id,[["render",vd]]),ar={mounted(t){t.focus()}},Md=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Et,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:qa},setup(t,{expose:o}){var D;const n=(D=window==null?void 0:window.config)==null?void 0:D.pageId,a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ge),s=e.inject(Ae),c=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),d=e.ref([]),p=e.ref("1"),u=e.ref([]),m=T=>{const R=t.sortList.filter(F=>!e.unref(u).find(_=>_.columnName===F.name)||T.columnName===F.name),$=[];return R.forEach((F,_)=>{$.includes(F.name)?F.name=`${F.name}_ecanrepeat_${_}`:$.push(F.name)}),R},C=async()=>{try{const T=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(c),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:R,data:$=[]}=T.data;R&&(d.value=$==null?void 0:$.slice(0,200))}catch(T){console.error(T)}},g=()=>{var _,B;const T=((_=e.unref(r)[t.type])==null?void 0:_.slice())||[],R=T[t.index],{label:$,name:F}=t.item;e.unref(p)==="2"?R.sort={label:$,columnName:F,type:"CUSTOM",customOrderColumns:e.unref(d)}:e.unref(p)==="1"&&((B=e.unref(u))!=null&&B.length?R.sort=ee.cloneDeep(e.unref(u)):delete R.sort),s({[t.type]:T})};let b=!1;const f=()=>{b=!0},h=e.ref(!1),y=T=>{var $;const{sort:R}=T;R?Array.isArray(R)?(p.value=(($=R[0])==null?void 0:$.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=ee.cloneDeep(R):u.value=[]):(p.value=(R==null?void 0:R.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[ee.cloneDeep(R)]:u.value=[]):u.value=[],h.value=!0},N=()=>{h.value=!1},w=()=>{e.unref(p)==="2"?(b&&g(),b=!1):g(),N()};return o({showModal:y}),e.watch(h,T=>{var R,$;if(T){const F=($=(R=t.item)==null?void 0:R.sort)==null?void 0:$.customOrderColumns;F==null?C():d.value=F}else d.value=[];window.changeShowTable&&window.changeShowTable(!T)},{flush:"post"}),{visible:h,customSortList:d,activeKey:p,combSortList:u,getSortOptions:m,onChange:f,onDeleteConfig:()=>{var $;const T=(($=e.unref(r)[t.type])==null?void 0:$.slice())||[],R=T[t.index];delete R.sort,s({[t.type]:T}),N()},onCancel:w,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:T=>{u.value.splice(T,1)},onColumnChange:T=>{const R=e.unref(u).find($=>$.columnName===T);if(R){const $=t.sortList.find(F=>F.name===T);$&&(R.label=$.label,$.defaultCode?R.defaultCode=$.defaultCode:delete R.defaultCode)}}}}}),Dy="",Pd={class:"button-wrapper"},jd={class:"list-wrapper"},Rd={class:"button-wrapper"},Ud={class:"sort-item"};function zd(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-tabs"),C=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(C,{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(m,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=g=>t.activeKey=g)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Pd,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",jd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:b},[e.createVNode(c,{value:g.columnName,"onUpdate:value":f=>g.columnName=f,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(g),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(c,{value:g.order,"onUpdate:value":f=>g.order=f,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(d,{style:{color:"red","margin-left":"10px"},onClick:f=>t.handleDeleteSort(b)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",Rd,[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]=g=>t.customSortList=g),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:g})=>[e.createElementVNode("div",Ud,e.toDisplayString(g),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Gd=ae(Md,[["render",zd],["__scopeId","data-v-6a468e35"]]),Hd=e.defineComponent({name:"CustomGroupModal",directives:{focus:ar},components:{CloseOutlined:Zt,AModal:j.Modal,ASelect:j.Select,ASelectOption:j.SelectOption,AButton:j.Button,AInput:j.Input,ACheckbox:j.Checkbox,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel,ATag:j.Tag,ACheckableTag:j.CheckableTag},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},setup(t,{expose:o}){var V;const n=e.inject(Be),a=(V=window==null?void 0:window.config)==null?void 0:V.pageId,l=e.unref(e.inject(Ve));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),c=e.ref(null),i=e.ref(null),d=e.ref([]),p=e.ref([]),u=e.computed(()=>{const k=e.unref(p).map(L=>L.title);return new Set(k)}),m=e.ref([]);e.watch(()=>e.unref(p).length,k=>{m.value=new Array(k).fill(!1)});const C=e.computed(()=>{let k=0;return e.unref(p).forEach(L=>{var M;(M=L.data)==null||M.forEach(U=>{U.checked&&k++})}),k}),g=()=>{const k=e.unref(c);if(!k){j.message.error("创建分组名不能空");return}e.unref(u).has(k)?j.message.error("分组名已存在,请重新命名"):(e.unref(p).push({title:k,data:[]}),r=!0,c.value="")},b=()=>{var M,U;const k=e.unref(i);if(!k){j.message.error("值名称不能空");return}let L=!0;if((M=e.unref(p))!=null&&M.length)for(const z of e.unref(p)){if((U=z==null?void 0:z.data)!=null&&U.length){for(const q of z.data)if(q.label===k){L=!1;break}}if(!L)break}L?(e.unref(p)[0].data.push({label:k,checked:!1}),r=!0,i.value=""):j.message.error("名称已存在,请重新命名")},f=k=>{e.unref(p).splice(k,1),r=!0},h=e.ref(null),y=()=>{if(e.unref(C)===0){j.message.error("当前移入分组已选个数为0");return}const k=e.unref(h);if(k==null){j.message.error("请选择移入分组");return}if(!e.unref(p)[k]){j.message.error("移入分组不存在,请重新选择");return}const L=[],M=e.unref(p).length;for(let U=0;U<M;U++){const z=e.unref(p)[U];e.unref(p)[U].data=z.data.filter(q=>(q.checked&&L.push({...q,checked:!1}),!q.checked))}e.unref(p)[k].data=[...L,...e.unref(p)[k].data],r=!0},N=k=>{e.unref(m)[k]=!0},w=k=>{e.unref(m)[k]=!1},x=(k,L)=>{const M=k.target.value;e.unref(u).has(M)&&j.message.error("组名不能相同,请修改"),e.unref(p)[L].title=M,r=!0},S=e.inject(ge),A=e.inject(Ae),v=e.computed(()=>e.unref(S).source),D=e.computed(()=>e.unref(S).dataViewId),T=e.ref(!1),R=()=>{var X,J;const k=e.unref(p);let L="";e.unref(T)&&(L=(X=k[0])==null?void 0:X.title);const M=k==null?void 0:k.length,U={};for(let oe=1;oe<M;oe++){const le=k[oe]||{},{title:Ce,data:ie}=le;U[Ce]=(ie==null?void 0:ie.map(we=>we.label))||[]}const z=((J=e.unref(S)[t.type])==null?void 0:J.slice())||[],q=z[t.index];q.customGroup={groupInfoMap:U,otherGroupName:L},A({[t.type]:z})},$=e.ref(!1),F=()=>{$.value=!0},_=()=>{$.value=!1},B=()=>{_(),r&&R(),r=!1},E=()=>{r=!0},P=new Set,I=async()=>{const k=t.item.customGroup||{},L=k.otherGroupName,M=k.groupInfoMap;(L===""||L==null)&&(T.value=!1),e.unref(p)[0]={title:L||"未分组",data:[]};let U=1;for(const z in M)if(Object.prototype.hasOwnProperty.call(M,z)){const X=M[z].map(J=>(P.add(J),{label:J,checked:!1}));e.unref(p)[U]={title:z,data:X},U++}await O()},O=async()=>{var k;try{const L=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(v),dataViewId:e.unref(D),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(S).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:M,data:U=[]}=L.data;if(M){const z=[];(k=U==null?void 0:U.slice(0,200))==null||k.forEach(q=>{P.has(q)||z.push({label:q,checked:!1})}),e.unref(p)[0].data=z}}catch(L){console.error(L)}};return e.watch($,k=>{k&&I(),window.changeShowTable&&window.changeShowTable(!k)},{flush:"post"}),o({showModal:F}),{visible:$,title:s,activeKey:d,customGroupList:p,onCancel:B,useOtherGroup:T,selectCount:C,createGroupTitle:c,createValueTitle:i,onAddGroup:g,onDeleteGroup:f,onMoveInGroup:y,selectGroupIndex:h,onEditTitle:N,onTitleChange:x,onFinishEditTitle:w,onUseOtherGroup:E,onAddValue:b,customGroupEditTitleList:m}}}),My="",Py="",Wd={class:"custom-group-header"},Yd={class:"move-and-create"},qd={class:"select-tip"},Kd={class:"select-count"},Xd={style:{display:"flex","align-items":"center"}},Qd={class:"create-group"},Jd={class:"create-group",style:{"margin-left":"40px"}},Zd={class:"custom-group-content"},ep=["onClick"],tp={class:"extra"},op={class:"custom-group-list"},np={class:"text"};function ap(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),d=e.resolveComponent("a-checkbox"),p=e.resolveComponent("a-input"),u=e.resolveComponent("a-tag"),m=e.resolveComponent("close-outlined"),C=e.resolveComponent("a-checkable-tag"),g=e.resolveComponent("a-collapse-panel"),b=e.resolveComponent("a-collapse"),f=e.resolveComponent("a-modal"),h=e.resolveDirective("focus");return e.openBlock(),e.createBlock(f,{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",Wd,[e.createElementVNode("div",Yd,[e.createElementVNode("div",null,[e.createElementVNode("span",qd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Kd,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(c,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=y=>t.selectGroupIndex=y),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(y,N)=>(e.openBlock(),e.createBlock(s,{key:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createVNode(d,{checked:t.useOtherGroup,"onUpdate:checked":o[1]||(o[1]=y=>t.useOtherGroup=y),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])]),e.createElementVNode("div",Xd,[e.createElementVNode("div",Qd,[e.createTextVNode(" 创建分组: "),e.createVNode(p,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[2]||(o[2]=y=>t.createGroupTitle=y),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])]),e.createElementVNode("div",Jd,[e.createTextVNode(" 新建值: "),e.createVNode(p,{class:"create-group-name",value:t.createValueTitle,"onUpdate:value":o[3]||(o[3]=y=>t.createValueTitle=y),placeholder:"请输入名称",onPressEnter:t.onAddValue},null,8,["value","onPressEnter"])])])]),e.createElementVNode("div",Zd,[e.createVNode(b,{activeKey:t.activeKey,"onUpdate:activeKey":o[4]||(o[4]=y=>t.activeKey=y),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(y,N)=>(e.openBlock(),e.createBlock(g,{key:N},{header:e.withCtx(()=>[t.customGroupEditTitleList[N]?e.withDirectives((e.openBlock(),e.createBlock(p,{key:1,class:"edit-title-input",value:y.title,size:"small",onChange:w=>t.onTitleChange(w,N),onBlur:w=>t.onFinishEditTitle(N),onPressEnter:w=>t.onFinishEditTitle(N)},null,8,["value","onChange","onBlur","onPressEnter"])),[[h]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(w=>t.onEditTitle(N),["prevent","stop"])},e.toDisplayString(y.title),9,ep))]),extra:e.withCtx(()=>[e.createElementVNode("div",tp,[N===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),N!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(m,{onClick:e.withModifiers(w=>t.onDeleteGroup(N),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",op,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.data,(w,x)=>(e.openBlock(),e.createBlock(C,{color:"red",checked:w.checked,"onUpdate:checked":S=>w.checked=S,class:"custom-group",key:x},{default:e.withCtx(()=>[e.createElementVNode("span",np,e.toDisplayString(w.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const lp=ae(Hd,[["render",ap],["__scopeId","data-v-8e480e07"]]);let ye=(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 rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wn={},ip={get exports(){return Wn},set exports(t){Wn=t}};(function(t,o){(function(n,a){t.exports=a()})(rp,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var c=s.add;s.add=function(d,p){return d=Number(d),this.$utils().p(p)===a?this.add(3*d,n):c.bind(this)(d,p)};var i=s.startOf;s.startOf=function(d,p){var u=this.$utils(),m=!!u.u(p)||p;if(u.p(d)===a){var C=this.quarter()-1;return m?this.month(3*C).startOf(n).startOf("day"):this.month(3*C+2).endOf(n).endOf("day")}return i.bind(this)(d,p)}}})})(ip);const sp=Wn;be.extend(sp);const cp=e.defineComponent({name:"Condition",components:{CloseOutlined:Zt,DownOutlined:Ls,AppstoreAddOutlined:un,ASelect:j.Select,AInput:j.Input,ADatePicker:j.DatePicker,AButton:j.Button,ADropdown:j.Dropdown,AMenu:j.Menu,AMenuItem:j.MenuItem,ASubMenu:j.SubMenu,APopover:j.Popover,ATabs:j.Tabs,ATabPane:j.TabPane,ARadioGroup:j.RadioGroup,ARadio:j.Radio,AInputNumber:j.InputNumber,ASelectOption:j.SelectOption,MenuOutlined:Sn},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,Yt,Ie,Qe,Tt,lt,Je,Ue,Nt,rt,mt,Yo,qo,qt,Co;const o=(Wt=window==null?void 0:window.config)==null?void 0:Wt.pageId,n=e.inject(ge),a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ha),s=e.inject(ze),c=e.ref(!1),i=be(),d=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(te=>{const{keyName:re="",id:ne="",type:fe}=te;fe==="ecanRangePicker"?W.push({value:`${ne}-startTime`,label:`${re||ne}-开始时间值`,keyName:`${re||ne}-startTime`,id:ne},{value:`${ne}-endTime`,label:`${re||ne}-结束时间值`,keyName:`${re||ne}-endTime`,id:ne}):W.push({value:ne,label:`${re||ne}`,keyName:`${re||ne}`,id:ne})}),W}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(d)]),u=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.dataViewId}),m=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.source}),C=e.ref(!1),g={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},b=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],f=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),h=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:""}]),y=[{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"}],N=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],w=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],x=e.ref({fieldName:(Yt=t.data)==null?void 0:Yt.fieldName,fieldType:(Ie=t.data)==null?void 0:Ie.fieldType,rule:(Qe=t.data)==null?void 0:Qe.rule,id:(Tt=t.data)==null?void 0:Tt.id,fieldValue:S(),label:(lt=t.data)==null?void 0:lt.label,targetSource:"",typeGuid:(Je=t.data)==null?void 0:Je.typeGuid,indexCode:(Ue=t.data)==null?void 0:Ue.indexCode,indexCodeNum:(Nt=t.data)==null?void 0:Nt.indexCodeNum,dataType:((rt=t.data)==null?void 0:rt.dataType)||"",componentId:((mt=t.data)==null?void 0:mt.componentId)||"",useCurrentTime:!!((Yo=t.data)!=null&&Yo.useCurrentTime),keyValue:(qo=t.data)==null?void 0:qo.keyValue,modelKey:(qt=t.data)==null?void 0:qt.modelKey,prop:(Co=t.data)==null?void 0:Co.prop});function S(){const{fieldType:W="",dataType:K="",fieldValue:te=""}=t.data;if(W==="DATE"&&K==="time")return te&&be(te);if(K==="component"){const re=e.unref(d).find(ne=>ne.keyName===te);return re?re.value:te}else return te}const A=e.ref([]),v=e.ref(!1),D=e.computed(()=>x.value.fieldType==="DATE"),T=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let te=[];const re=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],ne=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")te=A.value;else if(re.includes(W)){let fe=[];for(const Te in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),Te)&&!ne.includes(Te)){const Ze=e.unref(n)[Te];Array.isArray(Ze)&&(re.includes(Te)?fe=fe.concat(Ze.filter(G=>G.show)):fe=fe.concat(Ze))}te=fe}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(te=e.unref(r));return te.map(fe=>({...fe,label:fe.label||fe.title,value:fe.name}))}),{updateCondition:R,deleteCondition:$,addCondition:F}=e.inject(ko,{updateCondition:(W,K,te)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,te)=>{}}),_=()=>{$(t.index,t.path)};e.watch(x,W=>{const K=ee.cloneDeep(W);W.fieldType==="DATE"&&W.dataType!=="component"&&W.fieldValue&&(K.fieldValue=W.fieldValue.format(W.dateFormat)),R(K,t.index,t.path)},{deep:!0}),e.watch(c,W=>{x.value.fieldValue="",x.value.useCurrentTime=W});const B=W=>{var Y;const K=e.unref(T).find(Q=>Q.value===W)||{},{name:te,genericType:re,id:ne,edvDataSetId:fe,label:Te,typeGuid:Ze,indexCode:G,indexCodeNum:H}=K;x.value={id:ne,fieldName:te,fieldType:re,label:Te,rule:"",fieldValue:re==="DATE"?null:void 0,targetSource:"",typeGuid:Ze,indexCode:G,edvDataSetId:fe,indexCodeNum:H,dataType:"",useCurrentTime:!1,keyValue:((Y=e.unref(x))==null?void 0:Y.keyValue)||ye(),modelKey:"",prop:""}},E=W=>{const K=e.unref(d).find(te=>te.value===W)||{};e.unref(x).componentId=K.id||""},P=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"}]}),I=e.computed(()=>{let W="";const K=e.unref(P).find(te=>te.value===e.unref(x).rule);return K&&(W=K.label),W}),O=e.computed(()=>{let W={fontSize:"12px"};return e.unref(I)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),V=e.ref([]),k=async()=>{var W;if(!(e.unref(V).length>0))try{const K=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(m),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:te,data:re=[]}=K.data;te&&(V.value=(W=re==null?void 0:re.slice(0,200))==null?void 0:W.map(ne=>({label:ne,value:ne})))}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)&&k()},M=W=>{e.unref(x).dataType=W,e.unref(x).fieldValue="",e.unref(x).modelKey="",e.unref(x).prop=""},U=e.ref(),z=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 ne,fe,Te,Ze,G,H,Y,Q,se,ce;if(x.value.dataType=((ne=t.data)==null?void 0:ne.dataType)||"",x.value.componentId=((fe=t.data)==null?void 0:fe.componentId)||"",x.value.keyValue=(Te=t.data)==null?void 0:Te.keyValue,x.value.modelKey=(Ze=t.data)==null?void 0:Ze.modelKey,x.value.prop=(G=t.data)==null?void 0:G.prop,e.unref(x).fieldType==="DATE"){const{activeKey:Z,dateCalcTypes:de=[]}=t.data||{};if(e.unref(x).dateFormat=(H=t.data)==null?void 0:H.dateFormat,e.unref(x).activeKey=Z,e.unref(x).calcWays=((Y=t.data)==null?void 0:Y.calcWays)||[],e.unref(x).dateCalcTypes=de,e.unref(x).useCurrentTime&&e.unref(x).dataType!=="component"&&(c.value=!0),Z===5){const me=e.unref(x).calcWays[0];if(me){const pe=me.split("-");e.unref(f).expression=pe[0],e.unref(f).around=pe[1]}e.unref(f).unit=de[0]||"YEAR"}else{e.unref(x).radioValue=((Q=t.data)==null?void 0:Q.radioValue)||"";const me=e.unref(h).find(pe=>{var ke;return pe.key===((ke=t.data)==null?void 0:ke.activeKey)});me&&we(me,t.data)}}else U.value=((ce=(se=t.data)==null?void 0:se.fieldValue)==null?void 0:ce.split(","))||[];const{fieldType:W,fieldName:K,rule:te}=x.value;W!=="DATE"&&K&&te&&["IN","NOT_IN"].includes(te)&&k();const{source:re}=e.unref(n);re==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(Z=>{Z.data.success&&(console.log(Z.data),A.value=Z.data.data.column.map(de=>({...de,genericType:de.columnCategory==="0"?"TEXT":de.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:Z.data.data.id,name:de.columnName,label:de.columnName})))}).catch(Z=>{console.error(Z)})});const X=W=>{if(e.unref(x).activeKey===W){e.unref(h)[W].radioValue=e.unref(x).radioValue,e.unref(h)[e.unref(x).activeKey]&&(e.unref(h)[e.unref(x).activeKey].radioValue=e.unref(x).radioValue,e.unref(x).radioValue==="1"?e.unref(h)[W].beforeNum=e.unref(x).calcWays[0]:e.unref(x).radioValue==="2"&&(e.unref(h)[W].afterNum=e.unref(x).calcWays[0]));return}e.unref(h).forEach(K=>{K.beforeNum=0,K.afterNum=0,K.radioValue="1",K.value=""})},J=(W,K)=>{C.value=!0;const te=W.target.value,re=K.type,ne=e.unref(x).dateFormat,fe=Math.abs(K.beforeNum),Te=K.afterNum;K.value=at(te,re,ne,fe,Te)},oe=W=>{const K=e.unref(x).activeKey;if(W!==K)return;let te="";K===0?te="years":K===1?te="quarters":K===2?te="months":K===3?te="weeks":K===4&&(te="days");const re=e.unref(x).dateFormat,ne=e.unref(x).radioValue;let fe=0,Te=0;return ne==="1"?fe=Math.abs(e.unref(x).calcWays[0]):ne==="2"&&(Te=e.unref(x).calcWays[0]),at(ne,te,re,fe,Te)},le=(W,K,te,re)=>{if(C.value=!0,K.radioValue===re){const ne=W.target.value;te==="+"?K.value=be().add(ne,K.type).format(e.unref(x).dateFormat):K.value=be().subtract(ne,K.type).format(e.unref(x).dateFormat)}},Ce=(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"]),v.value=!1},ie=()=>{e.unref(x).activeKey=5,e.unref(x).dateCalcTypes=[e.unref(f).unit],e.unref(x).calcWays[0]=`${e.unref(f).expression}-${e.unref(f).around}`,v.value=!1};function we(W,K){const{radioValue:te="",calcWays:re=[]}=K;W.radioValue=te,re!=null&&re.length&&(te==="1"?W.beforeNum=Math.abs(re[0]):te==="2"&&(W.afterNum=re[0]))}function at(W,K,te,re,ne){if(W==="1")return be().subtract(re,K).format(te);if(W==="2")return be().add(ne,K).format(te);if(W==="3"){if(K==="years")return be().startOf("year").format(te);if(K==="quarters")return be().startOf("quarter").format(te);if(K==="months")return be().startOf("month").format(te);if(K==="days")return be().format(te)}else if(W==="4"){if(K==="years")return be().endOf("year").format(te);if(K==="quarters")return be().endOf("quarter").format(te);if(K==="months")return be().endOf("month").format(te)}return""}const Gt=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Ht=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(x).rule));return{fieldOptions:T,ruleOptions:P,onFieldChange:B,condition:x,valueOptions:V,onRuleChange:L,onDataTypeChange:M,onFieldValueSelectChange:z,fieldValues:U,onDelete:_,isDateType:D,formatList:b,tabDateList:h,compareList:y,menuRule:N,dateBtnLabel:I,downIconStyle:O,popoverVisible:v,dateRadioStyle:g,showTime:C,controlList:d,keyNameOptions:p,dataTypeList:w,customTabData:f,isUseCurrentTime:c,currentTime:i,isShowCustomDataType:Ht,handleMenuClick:q,changeTabInitDate:X,changeRadioValue:J,getFieldValue:oe,blurCompare:le,okDatePickConfig:Ce,onChangeComponent:E,filterOption:Gt,okCustomConfig:ie,clickConditionMenu:({key:W})=>{F(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:A}}}),jy="",Ry="",dp={class:"condition"},pp=["title"],up={class:"rule"},fp={class:"data-type"},mp={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},hp={class:"popover-content-wrap"},bp={key:0,class:"use-current-time"},yp={class:"tabFilterRadio"},gp={key:0},Cp={key:1},wp={style:{"margin-left":"10px"}},kp={style:{"margin-left":"10px"}},xp={style:{position:"absolute",bottom:"10px"}},_p={style:{display:"flex"}},Sp={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function Tp(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),d=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),m=e.resolveComponent("a-button"),C=e.resolveComponent("a-dropdown"),g=e.resolveComponent("a-date-picker"),b=e.resolveComponent("a-input"),f=e.resolveComponent("a-checkbox"),h=e.resolveComponent("a-input-number"),y=e.resolveComponent("a-radio"),N=e.resolveComponent("a-radio-group"),w=e.resolveComponent("a-tab-pane"),x=e.resolveComponent("a-tabs"),S=e.resolveComponent("appstore-add-outlined"),A=e.resolveComponent("a-popover"),v=e.resolveComponent("menu-outlined"),D=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",dp,[e.createVNode(c,{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,(T,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:T.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.label},e.toDisplayString(T.label),9,pp)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",up,[t.isDateType?(e.openBlock(),e.createBlock(C,{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,T=>(e.openBlock(),e.createBlock(d,{key:T.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value?"color: #1890FF;":"")},e.toDisplayString(T.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,R=>{var $;return e.openBlock(),e.createBlock(d,{key:R.value,disabled:R.value==="component"&&!(($=t.controlList)!=null&&$.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value&&t.condition.dataType===R.value?"color: #1890FF;":"")},e.toDisplayString(R.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===T.value&&t.condition.dataType===R.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(m,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(c,{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",fp,[e.createVNode(c,{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,(T,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.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",mp,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(g,{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(g,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=T=>t.condition.fieldValue=T),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(c,{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]=T=>t.condition.fieldValue=T),"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(b,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[2]||(o[2]=T=>t.condition.modelKey=T),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=T=>t.condition.prop=T),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(A,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=T=>t.popoverVisible=T),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",hp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",bp,[e.createVNode(f,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=T=>t.isUseCurrentTime=T)},{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,(T,R)=>(e.openBlock(),e.createBlock(w,{key:R,tab:T.label},{default:e.withCtx(()=>[e.createElementVNode("div",yp,[e.createVNode(N,{value:T.radioValue,"onUpdate:value":$=>T.radioValue=$,onChange:$=>t.changeRadioValue($,T)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",gp,"相对当前时间:"+e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("div",Cp,"相对当前时间:"+e.toDisplayString(t.getFieldValue(R)),1)),e.createVNode(y,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(h,{value:T.beforeNum,"onUpdate:value":$=>T.beforeNum=$,min:0,onBlur:$=>t.blurCompare($,T,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",wp,e.toDisplayString(T.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(y,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(h,{value:T.afterNum,"onUpdate:value":$=>T.afterNum=$,min:0,onBlur:$=>t.blurCompare($,T,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",kp,e.toDisplayString(T.afterLabel),1)]),_:2},1032,["style"]),T.beforeText?(e.openBlock(),e.createBlock(y,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),T.afterText?(e.openBlock(),e.createBlock(y,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",xp,[e.createVNode(m,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=$=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{onClick:$=>t.okDatePickConfig(T,R)},{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",_p,[e.createVNode(c,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=T=>t.customTabData.expression=T),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(c,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=T=>t.customTabData.unit=T),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(c,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=T=>t.customTabData.around=T)},{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",Sp,[e.createVNode(m,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=T=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{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]=T=>{t.popoverVisible=!0})},[e.createVNode(S)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(c,{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(c,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=T=>t.condition.fieldValue=T),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])):(e.openBlock(),e.createBlock(b,{key:3,class:"field-value",value:t.condition.fieldValue,"onUpdate:value":o[13]||(o[13]=T=>t.condition.fieldValue=T)},null,8,["value"])),!t.isDateType&&t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(b,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[14]||(o[14]=T=>t.condition.modelKey=T),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=T=>t.condition.prop=T),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(C,{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(v,{class:"more-icon"})]),_:1}),e.createVNode(D,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Np=ae(cp,[["render",Tp],["__scopeId","data-v-29a39def"]]),Ap=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:Np}}),Uy="",Ep={key:0,class:"condition-list"},Op={key:0,class:"condition-container"},Bp={key:0,class:"condition-text"},Vp={key:1,class:"condition-text"},Lp={class:"conditions"};function Fp(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),c=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Ep,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",Op,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Bp,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Vp,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Lp,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${d}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(c,{class:"condition",key:i.keyValue||`${t.level}-${d}`,data:i,level:t.level,index:d,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const $p=ae(Ap,[["render",Fp],["__scopeId","data-v-553c1496"]]),Ip=e.defineComponent({name:"TruncationList",props:{list:{type:Array,default:()=>[]}},components:{ASelect:j.Select,AInput:j.Input,AInputNumber:j.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=ee.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),zy="",lr=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),vp={class:"truncations"},Dp={class:"rule"},Mp={class:"field-value"},Pp={class:"field-value"},jp=lr(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Rp=lr(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),Up=["onClick"];function zp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",vp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Dp,[e.createVNode(s,{style:{width:"100%"},value:d.rule,"onUpdate:value":u=>d.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",Mp,[e.createTextVNode(" N= "),e.createVNode(c,{value:d.num,"onUpdate:value":u=>d.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",Pp,[jp,e.createVNode(i,{value:d.name,"onUpdate:value":u=>d.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),Rp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(d)},"清空",8,Up)]))),128))])}const Gp=ae(Ip,[["render",zp],["__scopeId","data-v-f543c690"]]),Hp=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:$p,TruncationList:Gp,AModal:j.Modal,AButton:j.Button,ATabs:j.Tabs,ATabPane:j.TabPane},setup(t,{expose:o}){var _;const n=e.ref("1"),a=()=>{var B;return`添加过滤条件-${((B=t.item)==null?void 0:B.label)||""}`},l=e.inject(ge),r=e.inject(Ae),s=e.inject(ze),c=e.computed(()=>{var B;return(B=e.unref(l))==null?void 0:B.dataSourceId}),i=e.inject(ve),d=e.inject(xo),p=e.ref([]),u=e.ref([]),m=e.ref(!1),C=e.inject(Kt),g=B=>{var E;for(const P of B)(E=P.conditions)!=null&&E.length?g(P.conditions):P.keyValue=ye()};e.watch(m,B=>{var E,P,I,O;if(B){if(Array.isArray((E=t.item)==null?void 0:E.conditions)){const V=ee.cloneDeep(((P=t.item)==null?void 0:P.conditions)||[]);g(V),p.value=V}Array.isArray((I=t.item)==null?void 0:I.truncations)?u.value=ee.cloneDeep((O=t.item)==null?void 0:O.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!B)},{flush:"post"});let b=!1;const f=B=>{var E;b=!0,e.unref(p)==null||((E=e.unref(p))==null?void 0:E.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==B?p.value=[{join:B,conditions:[e.unref(p)[0],{keyValue:ye()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===B&&p.value[0].conditions.push({keyValue:ye()}))};e.provide(ko,{updateCondition(B,E,P){var V;b=!0;let I=e.unref(p);const O=P.split("-");if(O!=null&&O.length)for(const k of O)if(I[k])I=(V=I[k])==null?void 0:V.conditions;else break;Array.isArray(I)&&I[E]&&(I[E]=B)},deleteCondition(B,E){var O,V,k;b=!0;let P=e.unref(p);const I=E.split("-");if(I!=null&&I.length){for(const L of I)if(P[L])P=(O=P[L])==null?void 0:O.conditions;else break;if(Array.isArray(P)&&P[B])if(P.splice(B,1),P.length===1){if(I.length>0){const L=I.length-1,M=I[L],U=I.slice(0,L);let z=e.unref(p),q="";for(const X of U)if(z[X])q=(V=z[X])==null?void 0:V.join,z=(k=z[X])==null?void 0:k.conditions;else break;if(q===P[0].join){if(Array.isArray(P[0].conditions)){const X=ee.cloneDeep(P[0].conditions);z.splice(+M,1),z.splice(+M,0,...X)}}else z[M]=P[0]}}else P.length===0&&(p.value=[])}},addCondition(B,E,P){var k,L;b=!0;let I=e.unref(p),O="";const V=B.split("-");if(V!=null&&V.length){for(const M of V)if(I[M])O=(k=I[M])==null?void 0:k.join,I=(L=I[M])==null?void 0:L.conditions;else break;if(O===P)I.splice(E+1,0,{keyValue:ye()});else{const M=ee.cloneDeep(I[E]);I[E]={join:P,conditions:[M,{keyValue:ye()}]}}}}});const h=B=>{b=!0,u.value=B},y=e.computed(()=>{var E;const B=[];return(E=e.unref(s))==null||E.forEach(P=>{const{keyName:I="",id:O="",type:V}=P;V==="ecanRangePicker"?B.push({value:`${O}-startTime`,label:`${I||O}-开始时间值`,keyName:`${I||O}-startTime`},{value:`${O}-endTime`,label:`${I||O}-结束时间值`,keyName:`${I||O}-endTime`}):B.push({value:O,label:`${I||O}`,keyName:`${I||O}`})}),B}),N=()=>{var k,L,M;const B=ut(((k=e.unref(l))==null?void 0:k.controlList)||[]),E=((L=e.unref(l)[t.type])==null?void 0:L.slice())||[],P=ut(ee.cloneDeep(E[t.index].conditions));E[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((M=e.unref(u))!=null&&M.length)&&(E[t.index].truncations=e.unref(u));const I=ut(e.unref(p));for(const U of I)if(U.dataType==="component"&&U.fieldValue){const z=e.unref(y).find(q=>q.value===U.fieldValue);z&&(U.fieldValue=z.keyName)}const O=P.filter(U=>!I.find(z=>z.componentId===U.componentId)).filter(U=>!B.find(z=>z.id===U.componentId)),V=I.filter(U=>!P.find(z=>z.componentId===U.componentId));w(O,V),r({[t.type]:E,sqlConditions:Kl({...e.unref(l),[t.type]:E},e.unref(s))})};function w(B,E){var I;const P=B.map(O=>({...O,delete:!0})).concat(E.map(O=>({...O,add:!0})));for(const O of P){const V=e.unref(s).find(k=>k.id===O.componentId);if(V){const{type:k,id:L,events:M=[]}=V,U=Vo(k);if(O.add)M.find(z=>{var q;return z.on===U&&z.target===((q=e.unref(i))==null?void 0:q.id)&&z.emit==="refreshData"})||d({id:L,events:[...M,{on:U,target:(I=e.unref(i))==null?void 0:I.id,emit:"refreshData"}].reverse()});else if(O.delete){const z=M.findIndex(q=>{var X;return q.on===U&&q.target===((X=e.unref(i))==null?void 0:X.id)&&q.emit==="refreshData"});z!==-1&&(M.splice(z,1),d({id:L,events:M}))}}}}const x=()=>{m.value=!0},S=()=>{p.value=[],m.value=!1},A=()=>{b&&N(),b=!1,S()},v=()=>{S()},D=e.inject(Be),T=e.unref(e.inject(Ve)),R=(_=window==null?void 0:window.config)==null?void 0:_.pageId,$=e.ref([]);e.provide(ha,$);const F=async B=>{var E;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:P,indexCode:I}=B,O=await D.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:R,dataSourceId:e.unref(c),indexGuid:P,indexCode:I},{headers:{Authentication:T,operateContext:"ygt"}}),{success:V,data:k=[]}=O.data;V&&((E=k==null?void 0:k.dataViewColumns)!=null&&E.length)&&($.value=k.dataViewColumns.map(L=>({...L,label:L.title||L.label})))}catch(P){console.error(P)}};return e.watch(()=>t.item,B=>{B&&m.value&&e.unref(C)!=="EDV_DATA_SET"&&F(B)}),o({showModal:x}),{visible:m,onOk:A,onCancel:v,handleTitle:a,conditionList:p,truncationList:u,addCondition:f,onUpdatetruncation:h,activeKey:n,source:C}}}),Gy="",Wp={class:"header"},Yp={class:"header"};function qp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),d=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]=m=>t.activeKey=m)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",Wp,[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]=m=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=m=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=m=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(c,{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(d,{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",Yp,[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]=m=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=m=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=m=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(c,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const Kp=ae(Hp,[["render",qp],["__scopeId","data-v-38f115c6"]]),Xp=e.defineComponent({name:"ConfigName",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{AInput:j.Input,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.ref(),s=p=>{const{showLabel:u="",label:m=""}=p;r.value=u||m||"",n.value=!0},c=()=>{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}),c()},d=()=>{c()};return o({showModal:s}),{visible:n,onOk:i,onCancel:d,fieldName:r}}}),Hy="",Qp=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),Jp={class:"config-name"},Zp=Qp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function eu(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{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",Jp,[Zp,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 tu=ae(Xp,[["render",eu],["__scopeId","data-v-de6a1755"]]),ou=e.defineComponent({name:"SortByCpnt",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:j.Select,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.inject(ze),s=e.inject(ve),c=e.inject(xo),i=e.ref(),d=e.computed(()=>{var h;return(h=e.unref(r))==null?void 0:h.filter(y=>y.keyName!=="")});let p=[];const u=h=>{const{sortCpnts:y=[]}=h;p=ee.cloneDeep(y),i.value=ee.cloneDeep(y),n.value=!0},m=()=>{n.value=!1},C=()=>{var x,S;const h=ut(((x=e.unref(a))==null?void 0:x.controlList)||[]),y=p.filter(A=>!e.unref(i).includes(A)).filter(A=>!h.find(v=>v.id===A)),N=e.unref(i).filter(A=>!p.includes(A)).filter(A=>!h.find(v=>v.id===A)),w=y.map(A=>({componentId:A,delete:!0})).concat(N.map(A=>({componentId:A,add:!0})));for(const A of w){const v=e.unref(r).find(D=>D.id===A.componentId);if(v){const{type:D,id:T,events:R=[]}=v,$=Vo(D);if(A.add)R.find(F=>{var _;return F.on===$&&F.target===((_=e.unref(s))==null?void 0:_.id)&&F.emit==="refreshData"})||c({id:T,events:[...R,{on:$,target:(S=e.unref(s))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(A.delete){const F=R.findIndex(_=>{var B;return _.on===$&&_.target===((B=e.unref(s))==null?void 0:B.id)&&_.emit==="refreshData"});F!==-1&&(R.splice(F,1),c({id:T,events:R}))}}}},g=()=>{var y;C();const h=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];h[t.index].sortCpnts=i.value,l({[t.type]:h}),m()},b=()=>{m()},f=(h,y)=>{var N;return(N=y==null?void 0:y.keyName)==null?void 0:N.toLowerCase().includes(h==null?void 0:h.toLowerCase())};return o({showModal:u}),{visible:n,onOk:g,onCancel:b,idFilterOption:f,fieldName:i,usedComponentList:d}}}),Wy="",nu=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),au={class:"sort-by-cpnt"},lu=nu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function ru(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{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",au,[lu,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 iu=ae(ou,[["render",ru],["__scopeId","data-v-08af1ef8"]]),su=e.defineComponent({name:"DimByCount",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:j.Select,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.ref(),s=e.ref([]),c=(m,C)=>{const{dimByCount:g=""}=m;r.value=g,s.value=C.filter(b=>["DIM","BUILT_IN_DIM","FIELD"].includes(b.scope)).map(b=>({label:b.title||b.name,value:b.typeGuid})),n.value=!0},i=()=>{n.value=!1},d=()=>{var C;const m=((C=e.unref(a)[t.type])==null?void 0:C.slice())||[];m[t.index].dimByCount=r.value,l({[t.type]:m}),i()},p=()=>{i()},u=(m,C)=>{var g;return(g=C==null?void 0:C.label)==null?void 0:g.toLowerCase().includes(m==null?void 0:m.toLowerCase())};return o({showModal:c}),{visible:n,onOk:d,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),Yy="",cu=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),du={class:"dim-by-count"},pu=cu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function uu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{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",du,[pu,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 fu=ae(su,[["render",uu],["__scopeId","data-v-aa1c298e"]]),Yn=(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:Yn(t,l.children)&&(n=Yn(t,l.children)))}return n},mu=e.defineComponent({name:"FormulaCalculation",props:{value:{type:String,default:""},item:{type:Object,default:()=>({})},mode:{type:String,default:"add"}},components:{ARow:j.Row,ACol:j.Col,ATextarea:j.Textarea,APopover:j.Popover,AInputSearch:j.InputSearch,ATree:j.Tree,ARadioGroup:j.RadioGroup,ARadioButton:j.RadioButton,DoubleRightOutlined:Es},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Be),a=e.unref(e.inject(Ve)),l=e.inject(ge),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),c=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),d=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>e.unref(l).indexLibColumns||[]),u=e.computed(()=>{const T=e.unref(r).concat(e.unref(c)).concat(e.unref(i)).concat(e.unref(d)).concat(e.unref(p));return t.mode==="edit"?(T==null?void 0:T.filter(R=>{var $;return R.id!==(($=t.item)==null?void 0:$.id)}))||[]:T||[]}),m=e.computed(()=>s.value.filter(T=>!T.randomKey)),C=e.computed({get:()=>t.value||"",set:T=>{o("update:value",T),o("change",T)}}),g=e.ref("1"),b=e.ref(""),f=T=>{const R=document.getElementById("calTextArea");let $=C.value;if(document.selection){const F=document.selection.createRange();F.text=T}else if(typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"){const F=R.selectionStart,_=R.selectionEnd;let B=F;$=$.substring(0,F)+T+$.substring(_,$.length),B+=T.length,R.selectionStart=R.selectionEnd=B}else $+=T;C.value=$},h=["+","-","*","/","(",")"],y=(T,R)=>{let $="";switch(R){case"name":{$="${"+T+"}";break}case"function":{$=T+"()";break}default:$=T}f($)},N=[],w=e.ref([]),x=e.ref(!0),S=e.ref([]),A=T=>{var R;for(const $ of T)(R=$==null?void 0:$.children)!=null&&R.length?A($.children):N.push({key:$.key,title:$.title})},v=async()=>{try{const T=await n.get(`${Se}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:R,data:$=[]}=T.data;R&&($!=null&&$.length)&&(A($),S.value=$)}catch(T){console.error(T)}},D=T=>{w.value=T,x.value=!1};return e.watch(b,T=>{const R=N.map($=>$.title.indexOf(T)>-1?Yn($.key,S.value):null).filter(($,F,_)=>$&&_.indexOf($)===F);w.value=R,b.value=T,x.value=!0}),e.onMounted(()=>{v()}),{fieldList:u,varList:m,myValue:C,calculMethods:h,funcDescsData:S,searchFuncValue:b,expandedKeys:w,autoExpandParent:x,activeKey:g,selectedElem:y,onExpand:D}}}),qy="",Ky="",rr=t=>(e.pushScopeId("data-v-24fb6451"),t=t(),e.popScopeId(),t),hu={class:"formula-calculation"},bu={class:"field-area"},yu={style:{"text-align":"center",padding:"10px 0"}},gu=["onClick"],Cu=["onClick"],wu={class:"cal_right_bottom"},ku={class:"cal_fu"},xu=["onClick"],_u={class:"function-wrap"},Su={class:"wrap-search"},Tu={class:"tree-box"},Nu=rr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),Au=rr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),Eu={key:0},Ou={style:{color:"#f50"}},Bu={key:1},Vu=["onClick"],Lu={class:"cal_a"};function Fu(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),c=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),d=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),m=e.resolveComponent("a-tree"),C=e.resolveComponent("double-right-outlined"),g=e.resolveComponent("a-popover"),b=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",hu,[e.createVNode(b,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",bu,[e.createElementVNode("div",yu,[e.createVNode(c,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=f=>t.activeKey=f),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,(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:h,onClick:y=>t.selectedElem(f.label,"name")},e.toDisplayString(f.label),9,gu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:h,onClick:y=>t.selectedElem(f.variableName,"name")},e.toDisplayString(f.variableName),9,Cu))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(d,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=f=>t.myValue=f),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",wu,[e.createElementVNode("ul",ku,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(f,h)=>(e.openBlock(),e.createElementBlock("li",{onClick:y=>t.selectedElem(f,"symbol"),key:h},e.toDisplayString(f),9,xu))),128))]),e.createVNode(g,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",_u,[e.createElementVNode("div",Su,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=f=>t.searchFuncValue=f),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",Tu,[e.createVNode(m,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:f,leaf:h,describe:y,exp:N})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[f.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",Eu,[e.createTextVNode(e.toDisplayString(f.substr(0,f.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",Ou,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(f.substr(f.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",Bu,e.toDisplayString(f),1)),h?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:w=>t.selectedElem(f,"function")},"插入",8,Vu)):e.createCommentVNode("",!0)]),_:2},[h?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[Nu,e.createElementVNode("span",null,e.toDisplayString(y),1)]),e.createElementVNode("div",null,[Au,e.createElementVNode("span",null,e.toDisplayString(N),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",Lu,[e.createTextVNode(" 更多函数 "),e.createVNode(C,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const $u=ae(mu,[["render",Fu],["__scopeId","data-v-24fb6451"]]),Iu=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:$u,AForm:j.Form,AModal:j.Modal,AFormItem:j.FormItem,AInput:j.Input,ASelect:j.Select,ASelectOption:j.SelectOption,ATextarea:j.Textarea,AInputNumber:j.InputNumber,ATooltip:j.Tooltip,QuestionCircleOutlined:lc},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(ze),a=e.inject(ge),l=e.inject(Ae),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),c=e.computed(()=>{const F=["leftAxisList","rightAxisList","queryColumnList","indicators"];let _=[];for(const B of F)Object.prototype.hasOwnProperty.call(e.unref(a),B)&&(_=_.concat(e.unref(a)[B]));return _}),i={span:4},d={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"},m=e.ref({}),C=e.ref(),g=e.ref(!1),b=e.ref();e.watch(g,F=>{if(F)if(t.mode==="edit"){const{label:_,calcType:B,formula:E,builtInValueSource:P,builtInFormula:I,builtInCalcWay:O}=t.item;if(b.value={label:_,calcType:B,formula:E,builtInValueSource:P,builtInFormula:I,builtInCalcWay:O},I==="DATE_OFFSET"){const V=O.split("-");(V==null?void 0:V.length)===3&&(m.value={value:V[0],unit:V[1],around:V[2]})}}else t.mode==="add"&&(b.value=ee.cloneDeep(p),m.value=ee.cloneDeep(u));else b.value=ee.cloneDeep(p),m.value=ee.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!F)},{immediate:!0,deep:!0});let f=!1;const h=()=>{f=!0},y=F=>{const _=e.unref(r).find(B=>B.id===F);_&&(b.value.builtInCalcWay=_.keyName),f=!0},N=()=>{var P;const F=((P=e.unref(a)[t.type])==null?void 0:P.slice())||[],{label:_,builtInFormula:B}=e.unref(b)||{},E={};if(B==="DATE_OFFSET"&&(E.builtInCalcWay=`${e.unref(m).value}-${e.unref(m).unit}-${e.unref(m).around}`),t.mode==="add"){const I=ye();F.push({...e.unref(b),...E,id:I,show:!0,name:_})}else t.mode==="edit"&&(F[t.index]={...F[t.index],...e.unref(b),...E,name:_});l({[t.type]:F})},w=()=>{g.value=!0},x=()=>{g.value=!1},S=async(F,_)=>{if(_==="")return Promise.reject(new Error("请输入指标名"));{const B=e.unref(c).find(E=>E.label===_);return B?B.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},A=e.computed(()=>{let F={label:[{required:!0,validator:S,trigger:"change"}]};return b.value.calcType==="BUILT_IN"&&(F={...F,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),F}),v=()=>{C.value.validate().then(()=>{f&&N(),f=!1,x()})},D=()=>{C.value.clearValidate(),x()},T=()=>{f=!0,e.unref(b).builtInCalcWay=""},R=e.computed(()=>{let F="";const _=e.unref(b).builtInCalcWay,B=e.unref(b).builtInValueSource;if(!B||!_)return F;switch(e.unref(b).builtInFormula){case"BUILT_IN_RANK":{_==="ASC"?F="【"+B+"】由小到大在所有值中的排名":F="【"+B+"】由大到小在所有值中的排名";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},Zc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=yt(()=>a.map(i=>{let d={};return d=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},d})),s=yt(()=>{const i=[],d=l.length,p=t.seriesTypes;for(let u=0;u<d;u++){const m=p[u],{type:C,axisIndex:g}=m||{};let b=Object.assign({type:C,yAxisIndex:g},l[u]);if(C==="line"){const f={};t.shadowColor&&(f.shadowColor=t.shadowColor,f.shadowBlur=t.shadowBlur,f.shadowOffsetY=t.shadowOffsetY,f.shadowOffsetX=t.shadowOffsetX),b=Object.assign(Object.assign({},b),{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},f)})}if(C==="bar"){const{gradientShow:f,gradientColors:h,gradientOffset:y}=t,N={};if(t.barBorderRadius){const w=t.barBorderRadius.split(",");if(w!=null&&w.length){const x=[];for(const S of w){const A=parseFloat(S);isNaN(A)||x.push(A)}N.borderRadius=x}}f&&(N.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:y,color:h[u]},{offset:1,color:h[u]}]}),b=Object.assign(Object.assign({},b),{barWidth:t.barWidth,itemStyle:N})}t.isShowMarkLine&&(b.markLine={data:[{type:t.markLineType}]}),i.push(b)}return i}),c=yt(()=>{const i=t.yAxis;return i==null?void 0:i.map((d,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=>Dt(d.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 d=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const m=t.seriesTypes;for(let C=0;C<d;C++){const g=m[C],{tooltipFormatter:b}=g||{},{marker:f,seriesName:h,name:y,value:N,data:w}=i[C]||{};C===0&&(p+=`${y}<br/>`),p+=vt(b||u,{textData:Object.assign({marker:f,name:y,value:N,seriesName:h,a:h,b:y,c:N},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:ct(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:ct(c),series:ct(s)}},ed=(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 Xc(a,l,r);case"line":return Qc(a,l,r);case"pie":return Jc(a,l,r);case"comboGraph":return Zc(a,l,r);default:return{}}})(t,o,n)),ut=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...ut(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},Kl=(t,o)=>{var b;const n=ee.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:c=[],rightAxisList:i=[],queryColumnList:d=[],indicators:p=[]}=t;Ql(n,o);const u=n,m=[...a,...l,...r,...s,...c,...i,...d,...p],C=[];for(const f of m){const h=ut((f==null?void 0:f.conditions)||[]);if(h!=null&&h.length){const y=h.filter(N=>Jl(N,o)?(N==null?void 0:N.dataType)==="component":!1).map(N=>{const w=Jl(N,o),x={};return N!=null&&N.dateFormat&&(x.format=N.dateFormat),{conditionKey:N.fieldName,conditionLabel:N.fieldName,conditionName:N.fieldName,conditionValueType:N.fieldType,id:w.id,keyName:N.fieldValue,rule:N.rule,notGlobal:!0,indexCode:N.indexCode,typeGuid:N.typeGuid,indexCodeNum:N.indexCodeNum,...x}});if(y!=null&&y.length)for(const N of y)C.find(w=>w.keyName===N.keyName)||C.push(N)}}const g=C.length;for(let f=0;f<g;f++){const h=C[f];if(h&&!((b=Object.keys(h))!=null&&b.length)||(h==null?void 0:h.conditionKey)==="parentCode")continue;const{id:y,keyName:N,prop:w,format:x,dataType:S="component",customValue:A}=h,v=Xl(h);Hn({sqlCondition:v,renderUsedComponents:o,id:y,dateFormat:x,prop:w,keyName:N,dataType:S,customValue:A}),u.push(v)}for(let f=u.length-1;f>=0;f--){const h=u[f];h.globalCondition||ut(u).find(N=>N.alias===h.alias&&N.globalCondition)&&u.splice(f,1)}return u},ro=(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||""};Hn({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 Xl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:c="NONE",notGlobal:i=!1,indexCode:d,indexCodeNum:p,typeGuid:u,dataType:m="component"}=t;let C=n||o;return C&&s&&(C+=`-${s}`),{rule:c,label:a,fieldName:l,fieldValue:"",valueType:r,alias:C,globalCondition:!i,indexCode:d,indexCodeNum:p,typeGuid:u,dataType:m}}const td=["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:c="component",customValue:i}=n,d=Xl(n);Hn({sqlCondition:d,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:c,customValue:i});for(const p in d)n[p]=d[p];for(const p of td)delete n[p]}}function Hn(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:c,customValue:i,operateValue:d,operateMode:p,operateType:u}=t,m=e.unref(n).find(N=>N.id===a),{value:C,format:g="YYYY-MM-DD",operate:b,type:f="",useCurrentTime:h}=m||{},y=l||g;if(ue(f,"date")){let N;if(h?N=be():N=be(C),b&&C){const{mode:w,type:x,value:S}=b;if(S)switch(x){case"add":N=N.add(S,w);break;case"minus":N=N.subtract(S,w);break}}if(d&&p&&u)switch(u){case"add":N=N.add(d,p);break;case"minus":N=N.subtract(d,p);break}o.fieldValue=(N==null?void 0:N.format(y))||"",o.dateFormat=y}else if(f==="ecanRangePicker"){const{interval:N,intervalUnit:w,startTime:x,endTime:S}=m||{};let A=r;if(!r){const D=s==null?void 0:s.split("-");D!=null&&D.length&&(A=D[D.length-1])}if(!A)return;let v=null;if(h&&(A==="startTime"?v=be().subtract(N,w):A==="endTime"&&(v=be())),m[A]&&(v=be(m[A])),b){const{type:D,value:T,mode:R}=b;switch(D){case"add":v=v&&v.add(T,R);break;case"minus":v=v&&v.subtract(T,R)}}if(d&&p&&u){if(d==="rangeValue"){if(x&&S){const D=be(S).diff(be(x),p)+1;switch(u){case"add":v=v&&v.add(D,p);break;case"minus":v=v&&v.subtract(D,p)}}}else if(!isNaN(+d))switch(u){case"add":v=v&&v.add(d,p);break;case"minus":v=v&&v.subtract(d,p)}}if(v&&(o.fieldValue=v==null?void 0:v.format(y)),A==="rangeValue"&&x&&S){const D=od(y);D&&(o.fieldValue=be(S).diff(be(x),D)+1)}o.dateFormat=y}else{const N=C&&C.match(/\{(.+?)\}/g);N!=null&&N.length?o.fieldValue="":o.fieldValue=C}c===""&&(o.fieldValue=i||"")}const Vo=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 Jl(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 od(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 nd(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=ad(a))}}return n}function ad(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 Zl=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],er=t=>({0:"文本",1:"数值",2:"日期"})[t],tr=t=>{if(!t)return"";const o=t.split(","),n=[];for(const a of o)a==="0"?n.push("手工录入"):a==="1"?n.push("系统取数"):a==="2"&&n.push("运算加工");return n.join("、")},or=t=>{if(!t)return"";const o=t.split(","),n=[];for(const a of o)switch(a){case"1":n.push("人力系统");break;case"2":n.push("绩效系统");break;case"3":n.push("预算系统");break;case"4":n.push("财务系统");break;case"5":n.push("成本系统");break;case"6":n.push("物流系统");break;case"7":n.push("固定资产系统");break;case"8":n.push("OA办公系统");break;case"9":n.push("电子档案系统");break;case"10":n.push("个人收入系统");break;case"11":n.push("奖金二次分配系统");break;case"12":n.push("财务管理系统");break;case"13":n.push("报销系统");break;case"14":n.push("科研管理系统");break;case"15":n.push("审计系统");break;case"16":n.push("分组器系统");break;case"17":n.push("消毒供应系统");break}return n.join("、")},nr=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",ld=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:za,CaretDownOutlined:Ra,LoadingOutlined:js,Draggable:Et,ATooltip:j.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(Be),r=e.unref(e.inject(Ve)),s=e.inject("setItemDisabled",S=>!1),c=e.ref([]),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),m=e.ref(!1);e.watch(()=>t.data,S=>{t.isSub&&(S==null||S.forEach(A=>{var v;A!=null&&A.isLeaf||(v=A.dataViewColumns)==null||v.forEach(D=>{D.show=!0,D.edit=!1,D.title&&(D.label=D.title)})}),c.value=S)},{deep:!0,immediate:!0});const C=()=>{var S;t.isSub||(S=e.unref(i))==null||S.removeEventListener("scroll",y)},g=async S=>{var D;if(e.unref(p))return;const A=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const v={source:t.source,pageId:a,dataSourceId:A,indexName:u.value};S?(S.loading=!0,v.indexTypeGuid=S.indexTypeGuid,v.isLeaf=S.isLeaf):d&&(v.queryRequest={pageSize:d.pageSize,pageNum:d.currentPage});try{const T=await l.post(`${Se}/diagram/sourceList`,v,{headers:{Authentication:r,operateContext:"ygt"}}),{success:R,data:$={}}=T.data;if(R){const{rows:F=[],total:_=0}=$;F==null||F.forEach(B=>{var E;(S==null?void 0:S.isLeaf)==="1"||t.graphicConfig.dataSourceId?(E=B.dataViewColumns)==null||E.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)}):B.show=!1}),S?(S.children=F,S.show=!0,F!=null&&F.length||(S.noData=!0)):(c.value=e.unref(c).concat(F),d.totalResult=+_,((D=e.unref(c))==null?void 0:D.length)>=_&&C())}S&&(S.loading=!1),p.value=!1}catch{S&&(S.loading=!1),p.value=!1}},b=async S=>{const A=c.value[S],{children:v=[]}=A;v!=null&&v.length?A.show=!A.show:!A.noData&&A.isLeaf?g(A):A.noData&&(A.show=!A.show)},f=(S,A)=>{o("onDragStart",S,A)},h=S=>{S.show=!S.show},y=S=>{S.target.scrollTop+S.target.clientHeight+20>=S.target.scrollHeight&&(d.currentPage++,g())},N=async()=>{await g(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&d.totalResult>e.unref(c).length&&(d.currentPage++,N())})},w=async S=>{var A;C(),m.value=!0,d.currentPage=1,d.totalResult=0,c.value=[],u.value=S,await N(),m.value=!1,(A=e.unref(i))==null||A.addEventListener("scroll",y)};return e.onMounted(async()=>{var S;t.isSub||(N(),(S=e.unref(i))==null||S.addEventListener("scroll",y))}),e.onUnmounted(()=>{C()}),n({handleSearch:w}),{columnRef:i,sourceList:c,searchLoading:m,onToggleGroup:b,onToggleSource:h,setItemDisabled:s,onDragStart:f,mapDataSetScope:er,mapScope:Zl,getLoadType:tr,getUseType:or,getSourceType:nr}}}),Iy="",rd={key:0,class:"no-data"},id={class:"column-item"},sd=["onClick"],cd={key:3,class:"item-name"},dd={key:0},pd={class:"column-item"},ud={key:0},fd={key:1},md={key:2},hd={key:3},bd=["onClick"],yd={class:"column-child-item"},gd={class:"field"},Cd={class:"column-child-item-name"};function wd(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),c=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),d=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(m,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var C;return[!((C=t.sourceList)!=null&&C.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",rd,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:g.indexTypeGuid||g.id},[e.createElementVNode("div",id,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:f=>t.onToggleGroup(b)},[g.loading?(e.openBlock(),e.createBlock(s,{key:0})):g.show?(e.openBlock(),e.createBlock(c,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),g.isLeaf?(e.openBlock(),e.createElementBlock("span",cd,e.toDisplayString(g.indexTypeCode+"."+g.indexTypeName),1)):e.createCommentVNode("",!0)],8,sd)]),g.show?(e.openBlock(),e.createElementBlock("div",dd,[e.createVNode(d,{data:g.children,isSub:!0,hasChildren:g.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,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:e.normalizeClass(t.setItemDisabled(g.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",pd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(g.loadType)),1),g.useType?(e.openBlock(),e.createElementBlock("div",ud,"数据使用系统:"+e.toDisplayString(t.getUseType(g.useType)),1)):e.createCommentVNode("",!0),g.systemSource?(e.openBlock(),e.createElementBlock("div",fd,"制度出处:"+e.toDisplayString(g.systemSource),1)):e.createCommentVNode("",!0),g.dataTo?(e.openBlock(),e.createElementBlock("div",md,"数据来源:"+e.toDisplayString(t.getSourceType(g.dataTo)),1)):e.createCommentVNode("",!0),g.meaning?(e.openBlock(),e.createElementBlock("div",hd,"指标含义:"+e.toDisplayString(g.meaning),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:b=>t.onToggleSource(g)},[g.show?(e.openBlock(),e.createBlock(c,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((g.indexCode?g.indexCode:"")+" "+g.name),1)],8,bd)]),_:2},1024)]),g.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:g.dataViewColumns,"onUpdate:modelValue":b=>g.dataViewColumns=b,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(g.dataViewColumns),onStart:b=>t.onDragStart(b,g)},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",yd,[e.createElementVNode("span",gd," 【"+e.toDisplayString(b.scope==="FIELD"?t.mapDataSetScope(b.genericType):t.mapScope(b.scope))+"】 ",1),e.createElementVNode("span",Cd,e.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const kd=ae(ld,[["render",wd],["__scopeId","data-v-eb6815db"]]),xd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:za,CaretDownOutlined:Ra,IndSourceList:kd,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Et,ATooltip:j.Tooltip},setup(){var x;const t=(x=window==null?void 0:window.config)==null?void 0:x.pageId,o=e.inject(Be),n=e.unref(e.inject(Ve)),a=e.inject(ve),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([]),c=e.ref(!1),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Kt),u=e.ref(""),m=async()=>{if(e.unref(h).source==="INDICATOR_LIB")return;c.value=!0;const S={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:d.pageSize,pageNum:d.currentPage}};S.source==="EDV_DATA_SET"&&(S.edvDataSetName=S.indexName,delete S.indexName);try{const A=await o.post(`${Se}/diagram/sourceList`,S,{headers:{Authentication:n,operateContext:"ygt"}});c.value=!1;const{success:v,data:D={}}=A.data;if(v){const{rows:T=[],total:R=0}=D;T==null||T.forEach($=>{var F;$.show=!1,(F=$.dataViewColumns)==null||F.forEach(_=>{_.show=!0,_.edit=!1,_.title&&(_.label=_.title)})}),s.value=T,d.totalResult=+R}}catch{c.value=!1}},C=S=>{s.value[S].show=!s.value[S].show},g=()=>{var S;d.currentPage=1,m(),e.unref(h).source==="INDICATOR_LIB"&&((S=e.unref(i))==null||S.handleSearch(e.unref(u)))},b=ee.debounce(()=>{d.currentPage=1,m()},200),f=(S,A)=>{d.pageSize=A,d.currentPage=S,m()};e.onMounted(()=>{m()});const h=e.inject(ge),y=e.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let A=[];for(const v in e.unref(h))if(Object.prototype.hasOwnProperty.call(e.unref(h),v)&&S.includes(v)){const D=e.unref(h)[v];Array.isArray(D)&&(A=A.concat(D))}return A}),N=(S=[])=>{let A=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const v of e.unref(y))if(!S.find(T=>T.parentId===v.parentId)){A=!0;break}}else for(const v of e.unref(y))if(!S.find(T=>T.typeGuid===v.typeGuid)){A=!0;break}return A};return e.provide("setItemDisabled",N),{dataSourceList:s,dataSourceLoading:c,pagination:d,onToggleGroup:C,mapScope:Zl,mapDataSetScope:er,onSearch:g,onChange:b,source:p,onPaginationChange:f,searchText:u,setItemDisabled:N,onDragStart:(S,A)=>{const v=A.dataViewColumns[S.oldIndex];let D={};A.dataSetParams&&(D=A.dataSetParams),v&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...v,dataTo:A.dataTo,dataSetParams:D})),A.dataTo==="1"&&(A!=null&&A.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(A.hrpIndexVariates)),A.dataTo==="2"&&(A!=null&&A.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(A.dataSetParams)))},getSourceType:nr,getLoadType:tr,getUseType:or,graphicConfig:h,indSourceRef:i}}}),vy="",_d={class:"data-source-list"},Sd={class:"columns"},Td={class:"column-item"},Nd={key:0},Ad={key:1},Ed={key:2},Od=["onClick"],Bd={key:0},Vd={class:"column-child-item"},Ld={class:"column-child-item-name"};function Fd(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),c=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),d=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-spin"),C=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",_d,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=g=>t.searchText=g),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(c,{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",Sd,[e.createVNode(m,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:e.normalizeClass(t.setItemDisabled(g.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",Td,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(g.loadType)),1),g.useType?(e.openBlock(),e.createElementBlock("div",Nd,"数据使用系统:"+e.toDisplayString(t.getUseType(g.useType)),1)):e.createCommentVNode("",!0),g.systemSource?(e.openBlock(),e.createElementBlock("div",Ad,"制度出处:"+e.toDisplayString(g.systemSource),1)):e.createCommentVNode("",!0),g.meaning?(e.openBlock(),e.createElementBlock("div",Ed,"指标含义:"+e.toDisplayString(g.meaning),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:f=>t.onToggleGroup(b)},[g.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(d,{key:1})),e.createTextVNode(" "+e.toDisplayString((g.indexCode?g.indexCode:"")+" "+g.name)+"【"+e.toDisplayString(t.getSourceType(g.dataTo))+"】 ",1)],8,Od)]),_:2},1024)]),g.show?(e.openBlock(),e.createElementBlock("div",Bd,[e.createVNode(u,{modelValue:g.dataViewColumns,"onUpdate:modelValue":f=>g.dataViewColumns=f,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(g.dataViewColumns),onStart:f=>t.onDragStart(f,g)},{item:e.withCtx(({element:f})=>[e.createElementVNode("div",Vd,[e.createTextVNode(" 【"+e.toDisplayString(f.scope==="FIELD"?t.mapDataSetScope(f.genericType):t.mapScope(f.scope))+"】 ",1),e.createElementVNode("span",Ld,e.toDisplayString(f.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(C,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=g=>t.pagination.pageSize=g),total:t.pagination.totalResult,"show-total":g=>`共 ${g} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=g=>t.pagination.currentPage=g),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const $d=ae(xd,[["render",Fd],["__scopeId","data-v-ab1aca5f"]]),Id=e.defineComponent({name:"DataList",components:{DataSourceList:$d,DataViewList:pi},setup(){return{source:e.inject(Kt)}}});function vd(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),c=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(c,{key:1})):e.createCommentVNode("",!0)],64)}const Dd=ae(Id,[["render",vd]]),ar={mounted(t){t.focus()}},Md=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Et,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:qa},setup(t,{expose:o}){var D;const n=(D=window==null?void 0:window.config)==null?void 0:D.pageId,a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ge),s=e.inject(Ae),c=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),d=e.ref([]),p=e.ref("1"),u=e.ref([]),m=T=>{const R=t.sortList.filter(F=>!e.unref(u).find(_=>_.columnName===F.name)||T.columnName===F.name),$=[];return R.forEach((F,_)=>{$.includes(F.name)?F.name=`${F.name}_ecanrepeat_${_}`:$.push(F.name)}),R},C=async()=>{try{const T=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(c),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:R,data:$=[]}=T.data;R&&(d.value=$==null?void 0:$.slice(0,200))}catch(T){console.error(T)}},g=()=>{var _,B;const T=((_=e.unref(r)[t.type])==null?void 0:_.slice())||[],R=T[t.index],{label:$,name:F}=t.item;e.unref(p)==="2"?R.sort={label:$,columnName:F,type:"CUSTOM",customOrderColumns:e.unref(d)}:e.unref(p)==="1"&&((B=e.unref(u))!=null&&B.length?R.sort=ee.cloneDeep(e.unref(u)):delete R.sort),s({[t.type]:T})};let b=!1;const f=()=>{b=!0},h=e.ref(!1),y=T=>{var $;const{sort:R}=T;R?Array.isArray(R)?(p.value=(($=R[0])==null?void 0:$.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=ee.cloneDeep(R):u.value=[]):(p.value=(R==null?void 0:R.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[ee.cloneDeep(R)]:u.value=[]):u.value=[],h.value=!0},N=()=>{h.value=!1},w=()=>{e.unref(p)==="2"?(b&&g(),b=!1):g(),N()};return o({showModal:y}),e.watch(h,T=>{var R,$;if(T){const F=($=(R=t.item)==null?void 0:R.sort)==null?void 0:$.customOrderColumns;F==null?C():d.value=F}else d.value=[];window.changeShowTable&&window.changeShowTable(!T)},{flush:"post"}),{visible:h,customSortList:d,activeKey:p,combSortList:u,getSortOptions:m,onChange:f,onDeleteConfig:()=>{var $;const T=(($=e.unref(r)[t.type])==null?void 0:$.slice())||[],R=T[t.index];delete R.sort,s({[t.type]:T}),N()},onCancel:w,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:T=>{u.value.splice(T,1)},onColumnChange:T=>{const R=e.unref(u).find($=>$.columnName===T);if(R){const $=t.sortList.find(F=>F.name===T);$&&(R.label=$.label,$.defaultCode?R.defaultCode=$.defaultCode:delete R.defaultCode)}}}}}),Dy="",Pd={class:"button-wrapper"},jd={class:"list-wrapper"},Rd={class:"button-wrapper"},Ud={class:"sort-item"};function zd(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-tabs"),C=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(C,{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(m,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=g=>t.activeKey=g)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Pd,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",jd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:b},[e.createVNode(c,{value:g.columnName,"onUpdate:value":f=>g.columnName=f,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(g),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(c,{value:g.order,"onUpdate:value":f=>g.order=f,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(d,{style:{color:"red","margin-left":"10px"},onClick:f=>t.handleDeleteSort(b)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",Rd,[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]=g=>t.customSortList=g),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:g})=>[e.createElementVNode("div",Ud,e.toDisplayString(g),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Gd=ae(Md,[["render",zd],["__scopeId","data-v-6a468e35"]]),Hd=e.defineComponent({name:"CustomGroupModal",directives:{focus:ar},components:{CloseOutlined:Zt,AModal:j.Modal,ASelect:j.Select,ASelectOption:j.SelectOption,AButton:j.Button,AInput:j.Input,ACheckbox:j.Checkbox,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel,ATag:j.Tag,ACheckableTag:j.CheckableTag},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},setup(t,{expose:o}){var V;const n=e.inject(Be),a=(V=window==null?void 0:window.config)==null?void 0:V.pageId,l=e.unref(e.inject(Ve));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),c=e.ref(null),i=e.ref(null),d=e.ref([]),p=e.ref([]),u=e.computed(()=>{const k=e.unref(p).map(L=>L.title);return new Set(k)}),m=e.ref([]);e.watch(()=>e.unref(p).length,k=>{m.value=new Array(k).fill(!1)});const C=e.computed(()=>{let k=0;return e.unref(p).forEach(L=>{var M;(M=L.data)==null||M.forEach(U=>{U.checked&&k++})}),k}),g=()=>{const k=e.unref(c);if(!k){j.message.error("创建分组名不能空");return}e.unref(u).has(k)?j.message.error("分组名已存在,请重新命名"):(e.unref(p).push({title:k,data:[]}),r=!0,c.value="")},b=()=>{var M,U;const k=e.unref(i);if(!k){j.message.error("值名称不能空");return}let L=!0;if((M=e.unref(p))!=null&&M.length)for(const z of e.unref(p)){if((U=z==null?void 0:z.data)!=null&&U.length){for(const q of z.data)if(q.label===k){L=!1;break}}if(!L)break}L?(e.unref(p)[0].data.push({label:k,checked:!1}),r=!0,i.value=""):j.message.error("名称已存在,请重新命名")},f=k=>{e.unref(p).splice(k,1),r=!0},h=e.ref(null),y=()=>{if(e.unref(C)===0){j.message.error("当前移入分组已选个数为0");return}const k=e.unref(h);if(k==null){j.message.error("请选择移入分组");return}if(!e.unref(p)[k]){j.message.error("移入分组不存在,请重新选择");return}const L=[],M=e.unref(p).length;for(let U=0;U<M;U++){const z=e.unref(p)[U];e.unref(p)[U].data=z.data.filter(q=>(q.checked&&L.push({...q,checked:!1}),!q.checked))}e.unref(p)[k].data=[...L,...e.unref(p)[k].data],r=!0},N=k=>{e.unref(m)[k]=!0},w=k=>{e.unref(m)[k]=!1},x=(k,L)=>{const M=k.target.value;e.unref(u).has(M)&&j.message.error("组名不能相同,请修改"),e.unref(p)[L].title=M,r=!0},S=e.inject(ge),A=e.inject(Ae),v=e.computed(()=>e.unref(S).source),D=e.computed(()=>e.unref(S).dataViewId),T=e.ref(!1),R=()=>{var X,J;const k=e.unref(p);let L="";e.unref(T)&&(L=(X=k[0])==null?void 0:X.title);const M=k==null?void 0:k.length,U={};for(let oe=1;oe<M;oe++){const le=k[oe]||{},{title:Ce,data:ie}=le;U[Ce]=(ie==null?void 0:ie.map(we=>we.label))||[]}const z=((J=e.unref(S)[t.type])==null?void 0:J.slice())||[],q=z[t.index];q.customGroup={groupInfoMap:U,otherGroupName:L},A({[t.type]:z})},$=e.ref(!1),F=()=>{$.value=!0},_=()=>{$.value=!1},B=()=>{_(),r&&R(),r=!1},E=()=>{r=!0},P=new Set,I=async()=>{const k=t.item.customGroup||{},L=k.otherGroupName,M=k.groupInfoMap;(L===""||L==null)&&(T.value=!1),e.unref(p)[0]={title:L||"未分组",data:[]};let U=1;for(const z in M)if(Object.prototype.hasOwnProperty.call(M,z)){const X=M[z].map(J=>(P.add(J),{label:J,checked:!1}));e.unref(p)[U]={title:z,data:X},U++}await O()},O=async()=>{var k;try{const L=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(v),dataViewId:e.unref(D),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(S).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:M,data:U=[]}=L.data;if(M){const z=[];(k=U==null?void 0:U.slice(0,200))==null||k.forEach(q=>{P.has(q)||z.push({label:q,checked:!1})}),e.unref(p)[0].data=z}}catch(L){console.error(L)}};return e.watch($,k=>{k&&I(),window.changeShowTable&&window.changeShowTable(!k)},{flush:"post"}),o({showModal:F}),{visible:$,title:s,activeKey:d,customGroupList:p,onCancel:B,useOtherGroup:T,selectCount:C,createGroupTitle:c,createValueTitle:i,onAddGroup:g,onDeleteGroup:f,onMoveInGroup:y,selectGroupIndex:h,onEditTitle:N,onTitleChange:x,onFinishEditTitle:w,onUseOtherGroup:E,onAddValue:b,customGroupEditTitleList:m}}}),My="",Py="",Wd={class:"custom-group-header"},Yd={class:"move-and-create"},qd={class:"select-tip"},Kd={class:"select-count"},Xd={style:{display:"flex","align-items":"center"}},Qd={class:"create-group"},Jd={class:"create-group",style:{"margin-left":"40px"}},Zd={class:"custom-group-content"},ep=["onClick"],tp={class:"extra"},op={class:"custom-group-list"},np={class:"text"};function ap(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),d=e.resolveComponent("a-checkbox"),p=e.resolveComponent("a-input"),u=e.resolveComponent("a-tag"),m=e.resolveComponent("close-outlined"),C=e.resolveComponent("a-checkable-tag"),g=e.resolveComponent("a-collapse-panel"),b=e.resolveComponent("a-collapse"),f=e.resolveComponent("a-modal"),h=e.resolveDirective("focus");return e.openBlock(),e.createBlock(f,{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",Wd,[e.createElementVNode("div",Yd,[e.createElementVNode("div",null,[e.createElementVNode("span",qd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Kd,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(c,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=y=>t.selectGroupIndex=y),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(y,N)=>(e.openBlock(),e.createBlock(s,{key:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createVNode(d,{checked:t.useOtherGroup,"onUpdate:checked":o[1]||(o[1]=y=>t.useOtherGroup=y),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])]),e.createElementVNode("div",Xd,[e.createElementVNode("div",Qd,[e.createTextVNode(" 创建分组: "),e.createVNode(p,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[2]||(o[2]=y=>t.createGroupTitle=y),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])]),e.createElementVNode("div",Jd,[e.createTextVNode(" 新建值: "),e.createVNode(p,{class:"create-group-name",value:t.createValueTitle,"onUpdate:value":o[3]||(o[3]=y=>t.createValueTitle=y),placeholder:"请输入名称",onPressEnter:t.onAddValue},null,8,["value","onPressEnter"])])])]),e.createElementVNode("div",Zd,[e.createVNode(b,{activeKey:t.activeKey,"onUpdate:activeKey":o[4]||(o[4]=y=>t.activeKey=y),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(y,N)=>(e.openBlock(),e.createBlock(g,{key:N},{header:e.withCtx(()=>[t.customGroupEditTitleList[N]?e.withDirectives((e.openBlock(),e.createBlock(p,{key:1,class:"edit-title-input",value:y.title,size:"small",onChange:w=>t.onTitleChange(w,N),onBlur:w=>t.onFinishEditTitle(N),onPressEnter:w=>t.onFinishEditTitle(N)},null,8,["value","onChange","onBlur","onPressEnter"])),[[h]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(w=>t.onEditTitle(N),["prevent","stop"])},e.toDisplayString(y.title),9,ep))]),extra:e.withCtx(()=>[e.createElementVNode("div",tp,[N===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),N!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(m,{onClick:e.withModifiers(w=>t.onDeleteGroup(N),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",op,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.data,(w,x)=>(e.openBlock(),e.createBlock(C,{color:"red",checked:w.checked,"onUpdate:checked":S=>w.checked=S,class:"custom-group",key:x},{default:e.withCtx(()=>[e.createElementVNode("span",np,e.toDisplayString(w.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const lp=ae(Hd,[["render",ap],["__scopeId","data-v-8e480e07"]]);let ye=(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 rp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wn={},ip={get exports(){return Wn},set exports(t){Wn=t}};(function(t,o){(function(n,a){t.exports=a()})(rp,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var c=s.add;s.add=function(d,p){return d=Number(d),this.$utils().p(p)===a?this.add(3*d,n):c.bind(this)(d,p)};var i=s.startOf;s.startOf=function(d,p){var u=this.$utils(),m=!!u.u(p)||p;if(u.p(d)===a){var C=this.quarter()-1;return m?this.month(3*C).startOf(n).startOf("day"):this.month(3*C+2).endOf(n).endOf("day")}return i.bind(this)(d,p)}}})})(ip);const sp=Wn;be.extend(sp);const cp=e.defineComponent({name:"Condition",components:{CloseOutlined:Zt,DownOutlined:Ls,AppstoreAddOutlined:un,ASelect:j.Select,AInput:j.Input,ADatePicker:j.DatePicker,AButton:j.Button,ADropdown:j.Dropdown,AMenu:j.Menu,AMenuItem:j.MenuItem,ASubMenu:j.SubMenu,APopover:j.Popover,ATabs:j.Tabs,ATabPane:j.TabPane,ARadioGroup:j.RadioGroup,ARadio:j.Radio,AInputNumber:j.InputNumber,ASelectOption:j.SelectOption,MenuOutlined:Sn},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,Yt,Ie,Qe,Tt,lt,Je,Ue,Nt,rt,mt,Yo,qo,qt,Co;const o=(Wt=window==null?void 0:window.config)==null?void 0:Wt.pageId,n=e.inject(ge),a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ha),s=e.inject(ze),c=e.ref(!1),i=be(),d=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(te=>{const{keyName:re="",id:ne="",type:fe}=te;fe==="ecanRangePicker"?W.push({value:`${ne}-startTime`,label:`${re||ne}-开始时间值`,keyName:`${re||ne}-startTime`,id:ne},{value:`${ne}-endTime`,label:`${re||ne}-结束时间值`,keyName:`${re||ne}-endTime`,id:ne}):W.push({value:ne,label:`${re||ne}`,keyName:`${re||ne}`,id:ne})}),W}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(d)]),u=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.dataViewId}),m=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.source}),C=e.ref(!1),g={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},b=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],f=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),h=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:""}]),y=[{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"}],N=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],w=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],x=e.ref({fieldName:(Yt=t.data)==null?void 0:Yt.fieldName,fieldType:(Ie=t.data)==null?void 0:Ie.fieldType,rule:(Qe=t.data)==null?void 0:Qe.rule,id:(Tt=t.data)==null?void 0:Tt.id,fieldValue:S(),label:(lt=t.data)==null?void 0:lt.label,targetSource:"",typeGuid:(Je=t.data)==null?void 0:Je.typeGuid,indexCode:(Ue=t.data)==null?void 0:Ue.indexCode,indexCodeNum:(Nt=t.data)==null?void 0:Nt.indexCodeNum,dataType:((rt=t.data)==null?void 0:rt.dataType)||"",componentId:((mt=t.data)==null?void 0:mt.componentId)||"",useCurrentTime:!!((Yo=t.data)!=null&&Yo.useCurrentTime),keyValue:(qo=t.data)==null?void 0:qo.keyValue,modelKey:(qt=t.data)==null?void 0:qt.modelKey,prop:(Co=t.data)==null?void 0:Co.prop});function S(){const{fieldType:W="",dataType:K="",fieldValue:te=""}=t.data;if(W==="DATE"&&K==="time")return te&&be(te);if(K==="component"){const re=e.unref(d).find(ne=>ne.keyName===te);return re?re.value:te}else return te}const A=e.ref([]),v=e.ref(!1),D=e.computed(()=>x.value.fieldType==="DATE"),T=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let te=[];const re=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],ne=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")te=A.value;else if(re.includes(W)){let fe=[];for(const Te in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),Te)&&!ne.includes(Te)){const Ze=e.unref(n)[Te];Array.isArray(Ze)&&(re.includes(Te)?fe=fe.concat(Ze.filter(G=>G.show)):fe=fe.concat(Ze))}te=fe}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(te=e.unref(r));return te.map(fe=>({...fe,label:fe.label||fe.title,value:fe.name}))}),{updateCondition:R,deleteCondition:$,addCondition:F}=e.inject(ko,{updateCondition:(W,K,te)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,te)=>{}}),_=()=>{$(t.index,t.path)};e.watch(x,W=>{const K=ee.cloneDeep(W);W.fieldType==="DATE"&&W.dataType!=="component"&&W.fieldValue&&(K.fieldValue=W.fieldValue.format(W.dateFormat)),R(K,t.index,t.path)},{deep:!0}),e.watch(c,W=>{x.value.fieldValue="",x.value.useCurrentTime=W});const B=W=>{var Y;const K=e.unref(T).find(Q=>Q.value===W)||{},{name:te,genericType:re,id:ne,edvDataSetId:fe,label:Te,typeGuid:Ze,indexCode:G,indexCodeNum:H}=K;x.value={id:ne,fieldName:te,fieldType:re,label:Te,rule:"",fieldValue:re==="DATE"?null:void 0,targetSource:"",typeGuid:Ze,indexCode:G,edvDataSetId:fe,indexCodeNum:H,dataType:"",useCurrentTime:!1,keyValue:((Y=e.unref(x))==null?void 0:Y.keyValue)||ye(),modelKey:"",prop:""}},E=W=>{const K=e.unref(d).find(te=>te.value===W)||{};e.unref(x).componentId=K.id||""},P=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"}]}),I=e.computed(()=>{let W="";const K=e.unref(P).find(te=>te.value===e.unref(x).rule);return K&&(W=K.label),W}),O=e.computed(()=>{let W={fontSize:"12px"};return e.unref(I)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),V=e.ref([]),k=async()=>{var W;if(!(e.unref(V).length>0))try{const K=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(m),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:te,data:re=[]}=K.data;te&&(V.value=(W=re==null?void 0:re.slice(0,200))==null?void 0:W.map(ne=>({label:ne,value:ne})))}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)&&k()},M=W=>{e.unref(x).dataType=W,e.unref(x).fieldValue="",e.unref(x).modelKey="",e.unref(x).prop=""},U=e.ref(),z=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 ne,fe,Te,Ze,G,H,Y,Q,se,ce;if(x.value.dataType=((ne=t.data)==null?void 0:ne.dataType)||"",x.value.componentId=((fe=t.data)==null?void 0:fe.componentId)||"",x.value.keyValue=(Te=t.data)==null?void 0:Te.keyValue,x.value.modelKey=(Ze=t.data)==null?void 0:Ze.modelKey,x.value.prop=(G=t.data)==null?void 0:G.prop,e.unref(x).fieldType==="DATE"){const{activeKey:Z,dateCalcTypes:de=[]}=t.data||{};if(e.unref(x).dateFormat=(H=t.data)==null?void 0:H.dateFormat,e.unref(x).activeKey=Z,e.unref(x).calcWays=((Y=t.data)==null?void 0:Y.calcWays)||[],e.unref(x).dateCalcTypes=de,e.unref(x).useCurrentTime&&e.unref(x).dataType!=="component"&&(c.value=!0),Z===5){const me=e.unref(x).calcWays[0];if(me){const pe=me.split("-");e.unref(f).expression=pe[0],e.unref(f).around=pe[1]}e.unref(f).unit=de[0]||"YEAR"}else{e.unref(x).radioValue=((Q=t.data)==null?void 0:Q.radioValue)||"";const me=e.unref(h).find(pe=>{var ke;return pe.key===((ke=t.data)==null?void 0:ke.activeKey)});me&&we(me,t.data)}}else U.value=((ce=(se=t.data)==null?void 0:se.fieldValue)==null?void 0:ce.split(","))||[];const{fieldType:W,fieldName:K,rule:te}=x.value;W!=="DATE"&&K&&te&&["IN","NOT_IN"].includes(te)&&k();const{source:re}=e.unref(n);re==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(Z=>{Z.data.success&&(console.log(Z.data),A.value=Z.data.data.column.map(de=>({...de,genericType:de.columnCategory==="0"?"TEXT":de.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:Z.data.data.id,name:de.columnName,label:de.columnName})))}).catch(Z=>{console.error(Z)})});const X=W=>{if(e.unref(x).activeKey===W){e.unref(h)[W].radioValue=e.unref(x).radioValue,e.unref(h)[e.unref(x).activeKey]&&(e.unref(h)[e.unref(x).activeKey].radioValue=e.unref(x).radioValue,e.unref(x).radioValue==="1"?e.unref(h)[W].beforeNum=e.unref(x).calcWays[0]:e.unref(x).radioValue==="2"&&(e.unref(h)[W].afterNum=e.unref(x).calcWays[0]));return}e.unref(h).forEach(K=>{K.beforeNum=0,K.afterNum=0,K.radioValue="1",K.value=""})},J=(W,K)=>{C.value=!0;const te=W.target.value,re=K.type,ne=e.unref(x).dateFormat,fe=Math.abs(K.beforeNum),Te=K.afterNum;K.value=at(te,re,ne,fe,Te)},oe=W=>{const K=e.unref(x).activeKey;if(W!==K)return;let te="";K===0?te="years":K===1?te="quarters":K===2?te="months":K===3?te="weeks":K===4&&(te="days");const re=e.unref(x).dateFormat,ne=e.unref(x).radioValue;let fe=0,Te=0;return ne==="1"?fe=Math.abs(e.unref(x).calcWays[0]):ne==="2"&&(Te=e.unref(x).calcWays[0]),at(ne,te,re,fe,Te)},le=(W,K,te,re)=>{if(C.value=!0,K.radioValue===re){const ne=W.target.value;te==="+"?K.value=be().add(ne,K.type).format(e.unref(x).dateFormat):K.value=be().subtract(ne,K.type).format(e.unref(x).dateFormat)}},Ce=(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"]),v.value=!1},ie=()=>{e.unref(x).activeKey=5,e.unref(x).dateCalcTypes=[e.unref(f).unit],e.unref(x).calcWays[0]=`${e.unref(f).expression}-${e.unref(f).around}`,v.value=!1};function we(W,K){const{radioValue:te="",calcWays:re=[]}=K;W.radioValue=te,re!=null&&re.length&&(te==="1"?W.beforeNum=Math.abs(re[0]):te==="2"&&(W.afterNum=re[0]))}function at(W,K,te,re,ne){if(W==="1")return be().subtract(re,K).format(te);if(W==="2")return be().add(ne,K).format(te);if(W==="3"){if(K==="years")return be().startOf("year").format(te);if(K==="quarters")return be().startOf("quarter").format(te);if(K==="months")return be().startOf("month").format(te);if(K==="days")return be().format(te)}else if(W==="4"){if(K==="years")return be().endOf("year").format(te);if(K==="quarters")return be().endOf("quarter").format(te);if(K==="months")return be().endOf("month").format(te)}return""}const Gt=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Ht=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(x).rule));return{fieldOptions:T,ruleOptions:P,onFieldChange:B,condition:x,valueOptions:V,onRuleChange:L,onDataTypeChange:M,onFieldValueSelectChange:z,fieldValues:U,onDelete:_,isDateType:D,formatList:b,tabDateList:h,compareList:y,menuRule:N,dateBtnLabel:I,downIconStyle:O,popoverVisible:v,dateRadioStyle:g,showTime:C,controlList:d,keyNameOptions:p,dataTypeList:w,customTabData:f,isUseCurrentTime:c,currentTime:i,isShowCustomDataType:Ht,handleMenuClick:q,changeTabInitDate:X,changeRadioValue:J,getFieldValue:oe,blurCompare:le,okDatePickConfig:Ce,onChangeComponent:E,filterOption:Gt,okCustomConfig:ie,clickConditionMenu:({key:W})=>{F(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:A}}}),jy="",Ry="",dp={class:"condition"},pp=["title"],up={class:"rule"},fp={class:"data-type"},mp={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},hp={class:"popover-content-wrap"},bp={key:0,class:"use-current-time"},yp={class:"tabFilterRadio"},gp={key:0},Cp={key:1},wp={style:{"margin-left":"10px"}},kp={style:{"margin-left":"10px"}},xp={style:{position:"absolute",bottom:"10px"}},_p={style:{display:"flex"}},Sp={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function Tp(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),d=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),m=e.resolveComponent("a-button"),C=e.resolveComponent("a-dropdown"),g=e.resolveComponent("a-date-picker"),b=e.resolveComponent("a-input"),f=e.resolveComponent("a-checkbox"),h=e.resolveComponent("a-input-number"),y=e.resolveComponent("a-radio"),N=e.resolveComponent("a-radio-group"),w=e.resolveComponent("a-tab-pane"),x=e.resolveComponent("a-tabs"),S=e.resolveComponent("appstore-add-outlined"),A=e.resolveComponent("a-popover"),v=e.resolveComponent("menu-outlined"),D=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",dp,[e.createVNode(c,{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,(T,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:T.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.label},e.toDisplayString(T.label),9,pp)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",up,[t.isDateType?(e.openBlock(),e.createBlock(C,{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,T=>(e.openBlock(),e.createBlock(d,{key:T.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value?"color: #1890FF;":"")},e.toDisplayString(T.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,R=>{var $;return e.openBlock(),e.createBlock(d,{key:R.value,disabled:R.value==="component"&&!(($=t.controlList)!=null&&$.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value&&t.condition.dataType===R.value?"color: #1890FF;":"")},e.toDisplayString(R.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===T.value&&t.condition.dataType===R.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(m,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(c,{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",fp,[e.createVNode(c,{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,(T,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.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",mp,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(g,{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(g,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=T=>t.condition.fieldValue=T),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(c,{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]=T=>t.condition.fieldValue=T),"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(b,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[2]||(o[2]=T=>t.condition.modelKey=T),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=T=>t.condition.prop=T),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(A,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=T=>t.popoverVisible=T),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",hp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",bp,[e.createVNode(f,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=T=>t.isUseCurrentTime=T)},{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,(T,R)=>(e.openBlock(),e.createBlock(w,{key:R,tab:T.label},{default:e.withCtx(()=>[e.createElementVNode("div",yp,[e.createVNode(N,{value:T.radioValue,"onUpdate:value":$=>T.radioValue=$,onChange:$=>t.changeRadioValue($,T)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",gp,"相对当前时间:"+e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("div",Cp,"相对当前时间:"+e.toDisplayString(t.getFieldValue(R)),1)),e.createVNode(y,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(h,{value:T.beforeNum,"onUpdate:value":$=>T.beforeNum=$,min:0,onBlur:$=>t.blurCompare($,T,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",wp,e.toDisplayString(T.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(y,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(h,{value:T.afterNum,"onUpdate:value":$=>T.afterNum=$,min:0,onBlur:$=>t.blurCompare($,T,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",kp,e.toDisplayString(T.afterLabel),1)]),_:2},1032,["style"]),T.beforeText?(e.openBlock(),e.createBlock(y,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),T.afterText?(e.openBlock(),e.createBlock(y,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",xp,[e.createVNode(m,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=$=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{onClick:$=>t.okDatePickConfig(T,R)},{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",_p,[e.createVNode(c,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=T=>t.customTabData.expression=T),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(c,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=T=>t.customTabData.unit=T),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(c,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=T=>t.customTabData.around=T)},{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",Sp,[e.createVNode(m,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=T=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{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]=T=>{t.popoverVisible=!0})},[e.createVNode(S)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(c,{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(c,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=T=>t.condition.fieldValue=T),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])):(e.openBlock(),e.createBlock(b,{key:3,class:"field-value",value:t.condition.fieldValue,"onUpdate:value":o[13]||(o[13]=T=>t.condition.fieldValue=T)},null,8,["value"])),!t.isDateType&&t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(b,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[14]||(o[14]=T=>t.condition.modelKey=T),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=T=>t.condition.prop=T),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(C,{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(v,{class:"more-icon"})]),_:1}),e.createVNode(D,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Np=ae(cp,[["render",Tp],["__scopeId","data-v-29a39def"]]),Ap=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:Np}}),Uy="",Ep={key:0,class:"condition-list"},Op={key:0,class:"condition-container"},Bp={key:0,class:"condition-text"},Vp={key:1,class:"condition-text"},Lp={class:"conditions"};function Fp(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),c=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Ep,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",Op,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Bp,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Vp,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Lp,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${d}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(c,{class:"condition",key:i.keyValue||`${t.level}-${d}`,data:i,level:t.level,index:d,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const $p=ae(Ap,[["render",Fp],["__scopeId","data-v-553c1496"]]),Ip=e.defineComponent({name:"TruncationList",props:{list:{type:Array,default:()=>[]}},components:{ASelect:j.Select,AInput:j.Input,AInputNumber:j.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=ee.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),zy="",lr=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),vp={class:"truncations"},Dp={class:"rule"},Mp={class:"field-value"},Pp={class:"field-value"},jp=lr(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Rp=lr(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),Up=["onClick"];function zp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",vp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Dp,[e.createVNode(s,{style:{width:"100%"},value:d.rule,"onUpdate:value":u=>d.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",Mp,[e.createTextVNode(" N= "),e.createVNode(c,{value:d.num,"onUpdate:value":u=>d.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",Pp,[jp,e.createVNode(i,{value:d.name,"onUpdate:value":u=>d.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),Rp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(d)},"清空",8,Up)]))),128))])}const Gp=ae(Ip,[["render",zp],["__scopeId","data-v-f543c690"]]),Hp=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:$p,TruncationList:Gp,AModal:j.Modal,AButton:j.Button,ATabs:j.Tabs,ATabPane:j.TabPane},setup(t,{expose:o}){var _;const n=e.ref("1"),a=()=>{var B;return`添加过滤条件-${((B=t.item)==null?void 0:B.label)||""}`},l=e.inject(ge),r=e.inject(Ae),s=e.inject(ze),c=e.computed(()=>{var B;return(B=e.unref(l))==null?void 0:B.dataSourceId}),i=e.inject(ve),d=e.inject(xo),p=e.ref([]),u=e.ref([]),m=e.ref(!1),C=e.inject(Kt),g=B=>{var E;for(const P of B)(E=P.conditions)!=null&&E.length?g(P.conditions):P.keyValue=ye()};e.watch(m,B=>{var E,P,I,O;if(B){if(Array.isArray((E=t.item)==null?void 0:E.conditions)){const V=ee.cloneDeep(((P=t.item)==null?void 0:P.conditions)||[]);g(V),p.value=V}Array.isArray((I=t.item)==null?void 0:I.truncations)?u.value=ee.cloneDeep((O=t.item)==null?void 0:O.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!B)},{flush:"post"});let b=!1;const f=B=>{var E;b=!0,e.unref(p)==null||((E=e.unref(p))==null?void 0:E.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==B?p.value=[{join:B,conditions:[e.unref(p)[0],{keyValue:ye()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===B&&p.value[0].conditions.push({keyValue:ye()}))};e.provide(ko,{updateCondition(B,E,P){var V;b=!0;let I=e.unref(p);const O=P.split("-");if(O!=null&&O.length)for(const k of O)if(I[k])I=(V=I[k])==null?void 0:V.conditions;else break;Array.isArray(I)&&I[E]&&(I[E]=B)},deleteCondition(B,E){var O,V,k;b=!0;let P=e.unref(p);const I=E.split("-");if(I!=null&&I.length){for(const L of I)if(P[L])P=(O=P[L])==null?void 0:O.conditions;else break;if(Array.isArray(P)&&P[B])if(P.splice(B,1),P.length===1){if(I.length>0){const L=I.length-1,M=I[L],U=I.slice(0,L);let z=e.unref(p),q="";for(const X of U)if(z[X])q=(V=z[X])==null?void 0:V.join,z=(k=z[X])==null?void 0:k.conditions;else break;if(q===P[0].join){if(Array.isArray(P[0].conditions)){const X=ee.cloneDeep(P[0].conditions);z.splice(+M,1),z.splice(+M,0,...X)}}else z[M]=P[0]}}else P.length===0&&(p.value=[])}},addCondition(B,E,P){var k,L;b=!0;let I=e.unref(p),O="";const V=B.split("-");if(V!=null&&V.length){for(const M of V)if(I[M])O=(k=I[M])==null?void 0:k.join,I=(L=I[M])==null?void 0:L.conditions;else break;if(O===P)I.splice(E+1,0,{keyValue:ye()});else{const M=ee.cloneDeep(I[E]);I[E]={join:P,conditions:[M,{keyValue:ye()}]}}}}});const h=B=>{b=!0,u.value=B},y=e.computed(()=>{var E;const B=[];return(E=e.unref(s))==null||E.forEach(P=>{const{keyName:I="",id:O="",type:V}=P;V==="ecanRangePicker"?B.push({value:`${O}-startTime`,label:`${I||O}-开始时间值`,keyName:`${I||O}-startTime`},{value:`${O}-endTime`,label:`${I||O}-结束时间值`,keyName:`${I||O}-endTime`}):B.push({value:O,label:`${I||O}`,keyName:`${I||O}`})}),B}),N=()=>{var k,L,M;const B=ut(((k=e.unref(l))==null?void 0:k.controlList)||[]),E=((L=e.unref(l)[t.type])==null?void 0:L.slice())||[],P=ut(ee.cloneDeep(E[t.index].conditions));E[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((M=e.unref(u))!=null&&M.length)&&(E[t.index].truncations=e.unref(u));const I=ut(e.unref(p));for(const U of I)if(U.dataType==="component"&&U.fieldValue){const z=e.unref(y).find(q=>q.value===U.fieldValue);z&&(U.fieldValue=z.keyName)}const O=P.filter(U=>!I.find(z=>z.componentId===U.componentId)).filter(U=>!B.find(z=>z.id===U.componentId)),V=I.filter(U=>!P.find(z=>z.componentId===U.componentId));w(O,V),r({[t.type]:E,sqlConditions:Kl({...e.unref(l),[t.type]:E},e.unref(s))})};function w(B,E){var I;const P=B.map(O=>({...O,delete:!0})).concat(E.map(O=>({...O,add:!0})));for(const O of P){const V=e.unref(s).find(k=>k.id===O.componentId);if(V){const{type:k,id:L,events:M=[]}=V,U=Vo(k);if(O.add)M.find(z=>{var q;return z.on===U&&z.target===((q=e.unref(i))==null?void 0:q.id)&&z.emit==="refreshData"})||d({id:L,events:[...M,{on:U,target:(I=e.unref(i))==null?void 0:I.id,emit:"refreshData"}].reverse()});else if(O.delete){const z=M.findIndex(q=>{var X;return q.on===U&&q.target===((X=e.unref(i))==null?void 0:X.id)&&q.emit==="refreshData"});z!==-1&&(M.splice(z,1),d({id:L,events:M}))}}}}const x=()=>{m.value=!0},S=()=>{p.value=[],m.value=!1},A=()=>{b&&N(),b=!1,S()},v=()=>{S()},D=e.inject(Be),T=e.unref(e.inject(Ve)),R=(_=window==null?void 0:window.config)==null?void 0:_.pageId,$=e.ref([]);e.provide(ha,$);const F=async B=>{var E;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:P,indexCode:I}=B,O=await D.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:R,dataSourceId:e.unref(c),indexGuid:P,indexCode:I},{headers:{Authentication:T,operateContext:"ygt"}}),{success:V,data:k=[]}=O.data;V&&((E=k==null?void 0:k.dataViewColumns)!=null&&E.length)&&($.value=k.dataViewColumns.map(L=>({...L,label:L.title||L.label})))}catch(P){console.error(P)}};return e.watch(()=>t.item,B=>{B&&m.value&&e.unref(C)!=="EDV_DATA_SET"&&F(B)}),o({showModal:x}),{visible:m,onOk:A,onCancel:v,handleTitle:a,conditionList:p,truncationList:u,addCondition:f,onUpdatetruncation:h,activeKey:n,source:C}}}),Gy="",Wp={class:"header"},Yp={class:"header"};function qp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),d=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]=m=>t.activeKey=m)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",Wp,[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]=m=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=m=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=m=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(c,{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(d,{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",Yp,[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]=m=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=m=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=m=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(c,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const Kp=ae(Hp,[["render",qp],["__scopeId","data-v-38f115c6"]]),Xp=e.defineComponent({name:"ConfigName",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{AInput:j.Input,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.ref(),s=p=>{const{showLabel:u="",label:m=""}=p;r.value=u||m||"",n.value=!0},c=()=>{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}),c()},d=()=>{c()};return o({showModal:s}),{visible:n,onOk:i,onCancel:d,fieldName:r}}}),Hy="",Qp=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),Jp={class:"config-name"},Zp=Qp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function eu(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{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",Jp,[Zp,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 tu=ae(Xp,[["render",eu],["__scopeId","data-v-de6a1755"]]),ou=e.defineComponent({name:"SortByCpnt",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:j.Select,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.inject(ze),s=e.inject(ve),c=e.inject(xo),i=e.ref(),d=e.computed(()=>{var h;return(h=e.unref(r))==null?void 0:h.filter(y=>y.keyName!=="")});let p=[];const u=h=>{const{sortCpnts:y=[]}=h;p=ee.cloneDeep(y),i.value=ee.cloneDeep(y),n.value=!0},m=()=>{n.value=!1},C=()=>{var x,S;const h=ut(((x=e.unref(a))==null?void 0:x.controlList)||[]),y=p.filter(A=>!e.unref(i).includes(A)).filter(A=>!h.find(v=>v.id===A)),N=e.unref(i).filter(A=>!p.includes(A)).filter(A=>!h.find(v=>v.id===A)),w=y.map(A=>({componentId:A,delete:!0})).concat(N.map(A=>({componentId:A,add:!0})));for(const A of w){const v=e.unref(r).find(D=>D.id===A.componentId);if(v){const{type:D,id:T,events:R=[]}=v,$=Vo(D);if(A.add)R.find(F=>{var _;return F.on===$&&F.target===((_=e.unref(s))==null?void 0:_.id)&&F.emit==="refreshData"})||c({id:T,events:[...R,{on:$,target:(S=e.unref(s))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(A.delete){const F=R.findIndex(_=>{var B;return _.on===$&&_.target===((B=e.unref(s))==null?void 0:B.id)&&_.emit==="refreshData"});F!==-1&&(R.splice(F,1),c({id:T,events:R}))}}}},g=()=>{var y;C();const h=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];h[t.index].sortCpnts=i.value,l({[t.type]:h}),m()},b=()=>{m()},f=(h,y)=>{var N;return(N=y==null?void 0:y.keyName)==null?void 0:N.toLowerCase().includes(h==null?void 0:h.toLowerCase())};return o({showModal:u}),{visible:n,onOk:g,onCancel:b,idFilterOption:f,fieldName:i,usedComponentList:d}}}),Wy="",nu=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),au={class:"sort-by-cpnt"},lu=nu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function ru(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{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",au,[lu,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 iu=ae(ou,[["render",ru],["__scopeId","data-v-08af1ef8"]]),su=e.defineComponent({name:"DimByCount",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:j.Select,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.ref(),s=e.ref([]),c=(m,C)=>{const{dimByCount:g=""}=m;r.value=g,s.value=C.filter(b=>["DIM","BUILT_IN_DIM","FIELD"].includes(b.scope)).map(b=>({label:b.title||b.name,value:b.typeGuid})),n.value=!0},i=()=>{n.value=!1},d=()=>{var C;const m=((C=e.unref(a)[t.type])==null?void 0:C.slice())||[];m[t.index].dimByCount=r.value,l({[t.type]:m}),i()},p=()=>{i()},u=(m,C)=>{var g;return(g=C==null?void 0:C.label)==null?void 0:g.toLowerCase().includes(m==null?void 0:m.toLowerCase())};return o({showModal:c}),{visible:n,onOk:d,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),Yy="",cu=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),du={class:"dim-by-count"},pu=cu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function uu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{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",du,[pu,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 fu=ae(su,[["render",uu],["__scopeId","data-v-aa1c298e"]]),Yn=(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:Yn(t,l.children)&&(n=Yn(t,l.children)))}return n},mu=e.defineComponent({name:"FormulaCalculation",props:{value:{type:String,default:""},item:{type:Object,default:()=>({})},mode:{type:String,default:"add"}},components:{ARow:j.Row,ACol:j.Col,ATextarea:j.Textarea,APopover:j.Popover,AInputSearch:j.InputSearch,ATree:j.Tree,ARadioGroup:j.RadioGroup,ARadioButton:j.RadioButton,DoubleRightOutlined:Es},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Be),a=e.unref(e.inject(Ve)),l=e.inject(ge),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),c=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),d=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>e.unref(l).indexLibColumns||[]),u=e.computed(()=>{const T=e.unref(r).concat(e.unref(c)).concat(e.unref(i)).concat(e.unref(d)).concat(e.unref(p));return t.mode==="edit"?(T==null?void 0:T.filter(R=>{var $;return R.id!==(($=t.item)==null?void 0:$.id)}))||[]:T||[]}),m=e.computed(()=>s.value.filter(T=>!T.randomKey)),C=e.computed({get:()=>t.value||"",set:T=>{o("update:value",T),o("change",T)}}),g=e.ref("1"),b=e.ref(""),f=T=>{const R=document.getElementById("calTextArea");let $=C.value;if(document.selection){const F=document.selection.createRange();F.text=T}else if(typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"){const F=R.selectionStart,_=R.selectionEnd;let B=F;$=$.substring(0,F)+T+$.substring(_,$.length),B+=T.length,R.selectionStart=R.selectionEnd=B}else $+=T;C.value=$},h=["+","-","*","/","(",")"],y=(T,R)=>{let $="";switch(R){case"name":{$="${"+T+"}";break}case"function":{$=T+"()";break}default:$=T}f($)},N=[],w=e.ref([]),x=e.ref(!0),S=e.ref([]),A=T=>{var R;for(const $ of T)(R=$==null?void 0:$.children)!=null&&R.length?A($.children):N.push({key:$.key,title:$.title})},v=async()=>{try{const T=await n.get(`${Se}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:R,data:$=[]}=T.data;R&&($!=null&&$.length)&&(A($),S.value=$)}catch(T){console.error(T)}},D=T=>{w.value=T,x.value=!1};return e.watch(b,T=>{const R=N.map($=>$.title.indexOf(T)>-1?Yn($.key,S.value):null).filter(($,F,_)=>$&&_.indexOf($)===F);w.value=R,b.value=T,x.value=!0}),e.onMounted(()=>{v()}),{fieldList:u,varList:m,myValue:C,calculMethods:h,funcDescsData:S,searchFuncValue:b,expandedKeys:w,autoExpandParent:x,activeKey:g,selectedElem:y,onExpand:D}}}),qy="",Ky="",rr=t=>(e.pushScopeId("data-v-24fb6451"),t=t(),e.popScopeId(),t),hu={class:"formula-calculation"},bu={class:"field-area"},yu={style:{"text-align":"center",padding:"10px 0"}},gu=["onClick"],Cu=["onClick"],wu={class:"cal_right_bottom"},ku={class:"cal_fu"},xu=["onClick"],_u={class:"function-wrap"},Su={class:"wrap-search"},Tu={class:"tree-box"},Nu=rr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),Au=rr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),Eu={key:0},Ou={style:{color:"#f50"}},Bu={key:1},Vu=["onClick"],Lu={class:"cal_a"};function Fu(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),c=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),d=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),m=e.resolveComponent("a-tree"),C=e.resolveComponent("double-right-outlined"),g=e.resolveComponent("a-popover"),b=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",hu,[e.createVNode(b,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",bu,[e.createElementVNode("div",yu,[e.createVNode(c,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=f=>t.activeKey=f),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,(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:h,onClick:y=>t.selectedElem(f.label,"name")},e.toDisplayString(f.label),9,gu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:h,onClick:y=>t.selectedElem(f.variableName,"name")},e.toDisplayString(f.variableName),9,Cu))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(d,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=f=>t.myValue=f),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",wu,[e.createElementVNode("ul",ku,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(f,h)=>(e.openBlock(),e.createElementBlock("li",{onClick:y=>t.selectedElem(f,"symbol"),key:h},e.toDisplayString(f),9,xu))),128))]),e.createVNode(g,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",_u,[e.createElementVNode("div",Su,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=f=>t.searchFuncValue=f),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",Tu,[e.createVNode(m,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:f,leaf:h,describe:y,exp:N})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[f.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",Eu,[e.createTextVNode(e.toDisplayString(f.substr(0,f.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",Ou,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(f.substr(f.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",Bu,e.toDisplayString(f),1)),h?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:w=>t.selectedElem(f,"function")},"插入",8,Vu)):e.createCommentVNode("",!0)]),_:2},[h?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[Nu,e.createElementVNode("span",null,e.toDisplayString(y),1)]),e.createElementVNode("div",null,[Au,e.createElementVNode("span",null,e.toDisplayString(N),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",Lu,[e.createTextVNode(" 更多函数 "),e.createVNode(C,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const $u=ae(mu,[["render",Fu],["__scopeId","data-v-24fb6451"]]),Iu=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:$u,AForm:j.Form,AModal:j.Modal,AFormItem:j.FormItem,AInput:j.Input,ASelect:j.Select,ASelectOption:j.SelectOption,ATextarea:j.Textarea,AInputNumber:j.InputNumber,ATooltip:j.Tooltip,QuestionCircleOutlined:lc},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(ze),a=e.inject(ge),l=e.inject(Ae),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),c=e.computed(()=>{const F=["leftAxisList","rightAxisList","queryColumnList","indicators"];let _=[];for(const B of F)Object.prototype.hasOwnProperty.call(e.unref(a),B)&&(_=_.concat(e.unref(a)[B]));return _}),i={span:4},d={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"},m=e.ref({}),C=e.ref(),g=e.ref(!1),b=e.ref();e.watch(g,F=>{if(F)if(t.mode==="edit"){const{label:_,calcType:B,formula:E,builtInValueSource:P,builtInFormula:I,builtInCalcWay:O}=t.item;if(b.value={label:_,calcType:B,formula:E,builtInValueSource:P,builtInFormula:I,builtInCalcWay:O},I==="DATE_OFFSET"){const V=O.split("-");(V==null?void 0:V.length)===3&&(m.value={value:V[0],unit:V[1],around:V[2]})}}else t.mode==="add"&&(b.value=ee.cloneDeep(p),m.value=ee.cloneDeep(u));else b.value=ee.cloneDeep(p),m.value=ee.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!F)},{immediate:!0,deep:!0});let f=!1;const h=()=>{f=!0},y=F=>{const _=e.unref(r).find(B=>B.id===F);_&&(b.value.builtInCalcWay=_.keyName),f=!0},N=()=>{var P;const F=((P=e.unref(a)[t.type])==null?void 0:P.slice())||[],{label:_,builtInFormula:B}=e.unref(b)||{},E={};if(B==="DATE_OFFSET"&&(E.builtInCalcWay=`${e.unref(m).value}-${e.unref(m).unit}-${e.unref(m).around}`),t.mode==="add"){const I=ye();F.push({...e.unref(b),...E,id:I,show:!0,name:_})}else t.mode==="edit"&&(F[t.index]={...F[t.index],...e.unref(b),...E,name:_});l({[t.type]:F})},w=()=>{g.value=!0},x=()=>{g.value=!1},S=async(F,_)=>{if(_==="")return Promise.reject(new Error("请输入指标名"));{const B=e.unref(c).find(E=>E.label===_);return B?B.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},A=e.computed(()=>{let F={label:[{required:!0,validator:S,trigger:"change"}]};return b.value.calcType==="BUILT_IN"&&(F={...F,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),F}),v=()=>{C.value.validate().then(()=>{f&&N(),f=!1,x()})},D=()=>{C.value.clearValidate(),x()},T=()=>{f=!0,e.unref(b).builtInCalcWay=""},R=e.computed(()=>{let F="";const _=e.unref(b).builtInCalcWay,B=e.unref(b).builtInValueSource;if(!B||!_)return F;switch(e.unref(b).builtInFormula){case"BUILT_IN_RANK":{_==="ASC"?F="【"+B+"】由小到大在所有值中的排名":F="【"+B+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{F=`所有【】的
65
65
  `,_==="ASC"?F=F+"【"+B+"】由小到大的组内的排名":F=F+"【"+B+"】由大到小的组内的排名";break}case"BUILT_IN_ALL_VALUE":{let E="";switch(_){case"SUM":{E="求和";break}case"AVG":{E="求平均值";break}case"MIN":{E="求最小值";break}case"MAX":{E="求最大值";break}}F="将所有【"+B+"】"+E;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let E="";switch(F=`所有【】的
66
66
  `,_){case"SUM":{E="求和";break}case"AVG":{E="求平均值";break}case"MIN":{E="求最小值";break}case"MAX":{E="求最大值";break}}F=F+"将所有【"+B+"】"+E;break}}return F}),$=(F,_)=>_.keyName.toLowerCase().indexOf(F.toLowerCase())>=0;return o({showModal:w}),{visible:g,onCancel:D,labelCol:i,wrapperCol:d,formState:b,builtInValueSourceList:s,onOK:v,onChange:h,formRules:A,accessLogic:R,formRef:C,onChangeBuiltInFormula:T,componentList:r,onChangeComponent:y,filterOption:$,offsetConfig:m}}}),Xy="",Qy="",vu={key:0,class:"accesstip"},Du={style:{display:"flex","align-items":"center"}};function Mu(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),p=e.resolveComponent("formula-calculation"),u=e.resolveComponent("a-textarea"),m=e.resolveComponent("a-input-number"),C=e.resolveComponent("question-circle-outlined"),g=e.resolveComponent("a-tooltip"),b=e.resolveComponent("a-form"),f=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(f,{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(b,{model:t.formState,rules:t.formRules,ref:"formRef"},{default:e.withCtx(()=>[e.createVNode(c,{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]=h=>t.formState.label=h),onChange:t.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.withDirectives(e.createVNode(c,{label:"计算方式","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.calcType,"onUpdate:value":o[1]||(o[1]=h=>t.formState.calcType=h),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"]),[[e.vShow,t.type!=="indexLibColumns"]]),t.formState.calcType==="FORMULA"?(e.openBlock(),e.createBlock(p,{key:0,value:t.formState.formula,"onUpdate:value":o[2]||(o[2]=h=>t.formState.formula=h),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(c,{label:"内置公式","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInFormula"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInFormula,"onUpdate:value":o[3]||(o[3]=h=>t.formState.builtInFormula=h),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(c,{label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInValueSource,"onUpdate:value":o[4]||(o[4]=h=>t.formState.builtInValueSource=h),onChange:t.onChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.builtInValueSourceList,(h,y)=>(e.openBlock(),e.createBlock(i,{key:y,value:h.label,disabled:t.mode==="edit"&&t.item.label===h.name},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.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(c,{key:0,label:"取数原则","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInCalcWay,"onUpdate:value":o[5]||(o[5]=h=>t.formState.builtInCalcWay=h),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(c,{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",vu," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+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(c,{key:2,label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{"show-search":"",value:t.formState.builtInValueSource,"onUpdate:value":o[6]||(o[6]=h=>t.formState.builtInValueSource=h),"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(c,{key:3,label:"偏移设置","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createElementVNode("div",Du,[e.createVNode(m,{value:t.offsetConfig.value,"onUpdate:value":o[7]||(o[7]=h=>t.offsetConfig.value=h),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},null,8,["value","onChange"]),e.createVNode(d,{value:t.offsetConfig.unit,"onUpdate:value":o[8]||(o[8]=h=>t.offsetConfig.unit=h),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(d,{value:t.offsetConfig.around,"onUpdate:value":o[9]||(o[9]=h=>t.offsetConfig.around=h),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(g,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:e.withCtx(()=>[e.createVNode(C,{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 Pu=ae(Iu,[["render",Mu],["__scopeId","data-v-88aef761"]]),ju=e.defineComponent({name:"DataConfigCard",directives:{focus:ar},components:{CalculationModal:Pu,FilterModal:Kp,CustomGroupModal:lp,SettingOutlined:fc,DeleteOutlined:qa,CopyOutlined:ks,InfoCircleOutlined:vs,CustomSortModal:Gd,PlusOutlined:tc,ACard:j.Card,ACheckbox:j.Checkbox,AInput:j.Input,ADropdown:j.Dropdown,AMenu:j.Menu,ASubMenu:j.SubMenu,AMenuItem:j.MenuItem,AMenuDivider:j.MenuDivider,ASelect:j.Select,APopover:j.Popover,Draggable:Et,ConfigName:tu,SortByCpnt:iu,DimByCount:fu},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(ge),a=e.inject(Ae),l=e.inject(ze),r=["leftAxisList","rightAxisList","indicators"],s=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],c=["CURRENT","LAST_CYCLE","LAST_YEAR","PERIOD_ON_PERIOD","YEAR_ON_YEAR","DW"],i=e.inject(Kt),d=e.ref(),p=(G={})=>{var Q;const{type:H}=t;if(e.unref(i)==="SQL_VIEW")return!0;e.unref(i)==="EDV_DATA_SET"&&a({edvDataSetId:G.parentId});let Y=!1;if(G.scope==="FIELD"&&(Y=!0,G.genericType==="0"&&r.includes(H)&&(Y=!1)),["IDX","BUILT_IN_IDX"].includes(G.scope)?r.includes(H)&&(Y=!0):["DIM","BUILT_IN_DIM"].includes(G.scope)&&s.includes(H)&&(Y=!0),H==="dimensionList"){const se=((Q=e.unref(n)[H])==null?void 0:Q.slice())||[];(se==null?void 0:se.length)===1&&(Y=!1)}return Y},u=e.computed(()=>e.unref(ne).type==="ecanDataSelect"&&t.type==="indicators"),m=(G="{}")=>{var H,Y;try{const Q=JSON.parse(G);if(!p(Q))return;const se=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!ue(e.unref(ne).type,["list","circulate","scatter"])||e.unref(u))&&se.forEach(de=>{de.show=!1}),g(se,Q),Q.randomKey=ye(),se.push(Q);const{type:ce}=t,Z={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(Q.scope)){const de=((Y=e.unref(n))==null?void 0:Y.variableList)||[];let me=sessionStorage.getItem("indicator-variates");if(Q.scope==="FIELD"&&!r.includes(ce)&&(me="[]"),me){const pe=JSON.parse(me);if(pe!=null&&pe.length)for(const ke of pe)de.unshift({...ke,dataType:"",id:null,variableValue:e.unref(i)==="EDV_DATA_SET"?ke.defaultValue:null,dateTypeValue:null,format:ke.valueFormat&&ke.valueFormat.toUpperCase()||null,variableName:ke.name,variableType:ke.valueType,label:Q.label,randomKey:Q.randomKey,keyValue:ye(),disabled:e.unref(i)==="EDV_DATA_SET"})}Z.variableList=de,Z.variableConditions=ro(de,l)}a({[t.type]:se,...Z}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(Q){console.error(Q)}},C=(G="{}")=>{var H;try{const{cardItem:Y,type:Q,index:se}=JSON.parse(G);if(!p(Y)||Q===t.type)return;const ce=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];g(ce,Y),ce.push(Y);const Z=e.unref(n)[Q].slice()||[];Z.splice(se,1),a({[t.type]:ce,[Q]:Z})}catch(Y){console.error(Y)}};function g(G,H){const Y=[];if(G.forEach(Q=>{Q.label.includes(H.label)&&Y.push(Q.label.split(H.label)[1])}),Y.length>=1){for(let Q=1;Q<=Y.length;Q++)if(!Y.includes(Q+"")){H.label=H.label+Q;break}}}const b=(G,H)=>{var se,ce;const Y=(se=G.target)==null?void 0:se.checked,Q=((ce=e.unref(n)[t.type])==null?void 0:ce.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!ue(e.unref(ne).type,["list","circulate"])||e.unref(u))&&Q.forEach(Z=>{Z.show=!1}),Q[H].show=Y,a({[t.type]:Q})},f=G=>{var Y;const H=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];H.splice(G,1),a({[t.type]:H})},h=()=>{sessionStorage.setItem("indicator-card-item","")},y=G=>{const H=sessionStorage.getItem("indicator-list-item"),Y=sessionStorage.getItem("indicator-card-item");H?m(H):Y&&C(Y)},N=G=>{var de,me;const{newIndex:H,oldIndex:Y,from:Q,to:se}=G,ce=Q.id,Z=se.id;if(H>=0&&Y>=0){if(ce===Z){const pe=((de=e.unref(n)[t.type])==null?void 0:de.slice())||[],ke=pe.splice(Y,1)[0];ke&&(pe.splice(H,0,ke),a({[t.type]:pe}))}else if(t.type===Z){const pe=((me=e.unref(n)[Z])==null?void 0:me.slice())||[];if(pe!=null&&pe.length){const ke=pe.splice(pe.length-1,1)[0];ke&&(pe.splice(H,0,ke),a({[t.type]:pe}))}}}},w=(G,H)=>{const Y=G.oldIndex,Q=H[Y];Q&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:Q,type:t.type,index:Y}))},x=e.computed(()=>e.unref(n)[t.type]||[]),S=e.ref([]);let A=!1;e.watch(()=>e.unref(x).length,G=>{S.value=new Array(G).fill(!1)},{flush:"post",immediate:!0});const v=G=>{var Y,Q,se;const H=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];if((Q=H[G])!=null&&Q.randomKey){const ce=((se=e.unref(n))==null?void 0:se.variableList)||[];for(let Z=ce.length-1;Z>=0;Z--)ce[Z].randomKey===H[G].randomKey&&ce.splice(Z,1);a({variableConditions:ro(ce,l),variableList:ce})}H.splice(G,1),a({[t.type]:H})},D=G=>{S.value[G]=!0},T=()=>{A=!0},R=(G,H,Y)=>{var Q,se,ce,Z;if(S.value[H]=!1,A){const de=(Q=G.target)==null?void 0:Q.value,me=((se=e.unref(n)[t.type])==null?void 0:se.slice())||[],pe=me.filter(xe=>{var Ne;return(Ne=xe==null?void 0:xe.formula)==null?void 0:Ne.includes(Y)}).map(xe=>xe.id),ke=me.filter(xe=>{var Ne;return(Ne=xe==null?void 0:xe.builtInValueSource)==null?void 0:Ne.includes(Y)}).map(xe=>xe.id);if(pe!=null&&pe.length)for(const xe of pe){const Ne=me.find(At=>At.id===xe);Ne.formula=Ne.formula.replaceAll(Y,de)}if(ke!=null&&ke.length)for(const xe of ke){const Ne=me.find(At=>At.id===xe);Ne.builtInValueSource=Ne.builtInValueSource.replaceAll(Y,de)}if(me[H].label=de,(ce=me[H])!=null&&ce.randomKey){const xe=((Z=e.unref(n))==null?void 0:Z.variableList)||[],Ne=xe.filter(At=>At.randomKey===me[H].randomKey);Ne!=null&&Ne.length&&Ne.forEach(At=>{At.label=de}),a({variableConditions:ro(xe,l),variableList:xe})}a({[t.type]:me})}A=!1},$="DEFAULT",F=e.computed(()=>{const G=[],{scope:H}=e.unref(d)||{},Y=e.unref(n)[t.type]||[];if(H==="DIM"&&!e.unref(d).typeGuid.includes("_code")){const Z=ee.cloneDeep(e.unref(d));delete Z.show,delete Z.truncations,delete Z.conditions,Z.hrpIndexComplexid+="_code",Z.id+="_code",Z.typeGuid+="_code",Z.label=Z.name+"_编码",Z.name=Z.typeGuid,Z.defaultCode=Z.typeGuid,G.push(Z)}const{leftAxisList:Q=[],rightAxisList:se=[],indicators:ce=[]}=e.unref(n)||{};return[...Y,...G,...Q,...se,...ce]}),_=(G={},H,Y="ASC")=>{var me;const{label:Q,name:se,id:ce,defaultCode:Z}=G,de=((me=e.unref(n)[t.type])==null?void 0:me.slice())||[];ce===$?delete de[H].sort:de[H].sort={label:Q,columnName:se,type:"NORMAL",order:Y,defaultCode:Z},a({[t.type]:de})},B=(G={},H="ASC")=>{const Q={ASC:"升序",DESC:"降序"}[H],{sort:se}=G,{label:ce,order:Z}=se||{};return ce&&Z===H?`${Q}(${ce})`:Q},E=e.ref(),P=e.ref(),I=e.ref(),O=e.ref(),V=(G={},H)=>{var Y;E.value=G,P.value=H,(Y=e.unref(I))==null||Y.showModal(G)},k=G=>"排序"+(G!=null&&G.sort?"(已配置)":""),L=(G={},H)=>{var Y;E.value=G,P.value=H,(Y=e.unref(O))==null||Y.showModal()},M=G=>"自定义分组"+((G==null?void 0:G.customGroup)!=null?"(已配置)":""),U=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],z=[{name:"是",value:1},{name:"否",value:0}],q=(G,H)=>{var Q;const Y=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];Y[H].aggregate=G,a({[t.type]:Y})},X=(G,H)=>{var Q;const Y=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];Y[H].distinct=G,a({[t.type]:Y})},J=(G,H)=>{var Q;const Y=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];Y[H].dateFormat=G,a({[t.type]:Y})},oe=(G="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[G]})`,le=G=>`是否去重(${{0:"否",1:"是"}[G]||"否"})`,Ce=(G={})=>{var H;return"过滤"+(G!=null&&G.conditions&&((H=G==null?void 0:G.conditions)==null?void 0:H.length)>0?"(已配置)":"")},ie=e.ref(),we=e.ref(),at=e.ref(),Gt=e.ref(),Ht=(G={},H)=>{E.value=G,P.value=H,e.unref(ie).showModal()},go=(G={},H)=>{E.value=G,P.value=H,e.unref(we).showModal(G)},Wt=(G={},H)=>{E.value=G,P.value=H,e.unref(at).showModal(G)},Yt=(G={},H)=>{E.value=G,P.value=H,e.unref(Gt).showModal(G,e.unref(W))},Ie=e.ref(),Qe=e.ref("add"),Tt=(G,H,Y)=>{var Q;Qe.value=G,G==="edit"&&(E.value=H,P.value=Y),(Q=e.unref(Ie))==null||Q.showModal()},lt=e.inject(Be),Je=e.unref(e.inject(Ve)),Ue=e.ref([]),Nt=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var G;ue(e.unref(ne).type,["scatter","valueline"])&&((G=e.unref(n))!=null&&G.indicators)&&(Ue.value=e.unref(n).indicators.map(H=>({label:H.label,value:H.label})))}),e.watch(()=>n.value.classificationList,()=>{mt()});const rt=e.ref(""),mt=async()=>{const{source:G}=e.unref(n);if(G!=="EDV_DATA_SET"||!ue(e.unref(ne).type,"select"))return;const{classificationList:H=[]}=e.unref(n),Y=H.find(Z=>Z.show);if(Y!=null&&Y.parentId){if(e.unref(rt)===Y.parentId)return;rt.value=Y.parentId}else{e.unref(n).selectFieldOptions=[],Ue.value=[],rt.value="";return}const Q=await lt.get(`${Se}/dataset/`+Y.parentId,{headers:{Authentication:Je,operateContext:"ygt"}}),{success:se,data:ce=[]}=Q.data;if(se){const Z=ce.column.map(de=>({label:de.columnName,value:de.columnName}));e.unref(n).selectFieldOptions=Z,Ue.value=Z}},Yo=async()=>{const{source:G}=e.unref(n);if(!ue(e.unref(ne).type,["scatter","valueline"]))try{if(G==="EDV_DATA_SET")await mt();else{const H=await lt.post(`${Se}/diagram/dimFields`,{},{headers:{Authentication:Je,operateContext:"ygt"}}),{success:Y,data:Q=[]}=H.data;Y&&(e.unref(n).selectFieldOptions=Q||[],Ue.value=Q)}}catch(H){console.error(H)}},qo=(G,H)=>{const Y=e.unref(n)[t.type]||{};Y[H]=G,a({[t.type]:Y})},qt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],Co=e.ref({}),W=e.ref([]),K=async(G,H)=>{var Q;const{name:Y}=H;if(!qt.includes(t.type)&&G&&Ye(H,"indexCode")){const se=await lt.post(`${Se}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:H.id,indexCode:H.indexCode,pageId:(Q=window==null?void 0:window.config)==null?void 0:Q.pageId},{headers:{Authentication:Je,operateContext:"ygt"}}),{success:ce,data:Z}=se.data;ce&&Z&&(W.value=(Z==null?void 0:Z.dataViewColumns)||[],Co.value[Y]={name:Z.name,code:Z.indexCode})}},te=G=>{d.value=G},re=G=>{const H=document.createElement("input");document.body.appendChild(H),H.setAttribute("value",G),H.select(),document.execCommand("copy"),document.body.removeChild(H),j.message.success("复制成功")},ne=e.inject(ve),fe=e.computed(()=>t.type==="indicators"&&e.unref(ne).type==="ecanTable"),Te=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type)),Ze=e.computed(()=>{var H,Y;const G=ue((H=e.unref(ne))==null?void 0:H.type,["table"])&&((Y=e.unref(n))==null?void 0:Y.isIndexSet);return!qt.includes(t.type)&&!e.unref(u)&&(!G||t.type!=="indicators")});return e.onMounted(()=>{t.type==="formFields"&&(e.unref(ne).type==="ecanDataSelect"?Ue.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Yo())}),{onCheckboxChange:b,onDropEnd:f,onDragItemEnd:h,onDragItemAdd:y,onDragItemSort:N,onDragItemStart:w,cardItemList:x,onDelete:v,onEdit:D,onCommitLabelChange:R,sortList:F,onSort:_,handleSortTitle:B,showCustomSortModal:V,customSortModalRef:I,currentItem:E,currentIndex:P,handleCustomSortTitle:k,handleCustomGroupTitle:M,customGroupModalRef:O,showCustomGroupModal:L,editLabelList:S,onLabelChange:T,aggregateList:U,distinctList:z,onAggregateChange:q,onDistinctChange:X,onDateFormatChange:J,handleAggregateTitle:oe,handleDistinctTitle:le,onShowCalculationModal:Tt,handleFilterTitle:Ce,filterModalRef:ie,configNameRef:we,sortByCpntRef:at,dimByCountRef:Gt,showFilterModal:Ht,calculationModalRef:Ie,calculationModalMode:Qe,formatList:o,fieldOptions:Ue,fieldData:Nt,onFieldChange:qo,onVisibleChange:K,onClickSetting:te,copyDataViewName:re,dataViewMap:Co,isShowConfigName:fe,showConfigNameModal:go,dimensionType:qt,isShowSortByCpnt:Te,showSortByCpntModal:Wt,dataSelectIndicators:u,showDimByCountModal:Yt,selectedComponent:ne,lowerCaseIncludes:ue,isShowCalcBtn:Ze,indexSetList:c}}}),Jy="",Zy="",wt=t=>(e.pushScopeId("data-v-7ccd3d66"),t=t(),e.popScopeId(),t),Ru={class:"title"},Uu={class:"title-text"},zu={class:"field-wrap"},Gu={class:"field-item"},Hu=wt(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),Wu={class:"field-item"},Yu=wt(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),qu={key:0,class:"field-item"},Ku=wt(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),Xu={class:"title"},Qu={class:"title-text"},Ju=wt(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),Zu=wt(()=>e.createElementVNode("span",null,"添加计算指标",-1)),ef={class:"card-item-wrap"},tf={class:"card-item-inner"},of=["onClick"],nf=["onClick"],af=["onClick"],lf={style:{display:"flex","align-items":"center"}},rf=["title"],sf=wt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),cf={style:{display:"flex","align-items":"center"}},df=["title"],pf=wt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function uf(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-checkbox"),i=e.resolveComponent("a-card"),d=e.resolveComponent("info-circle-outlined"),p=e.resolveComponent("a-popover"),u=e.resolveComponent("plus-outlined"),m=e.resolveComponent("a-input"),C=e.resolveComponent("setting-outlined"),g=e.resolveComponent("a-menu-item"),b=e.resolveComponent("a-menu-divider"),f=e.resolveComponent("a-sub-menu"),h=e.resolveComponent("copy-outlined"),y=e.resolveComponent("a-menu"),N=e.resolveComponent("a-dropdown"),w=e.resolveComponent("delete-outlined"),x=e.resolveComponent("draggable"),S=e.resolveComponent("custom-sort-modal"),A=e.resolveComponent("custom-group-modal"),v=e.resolveComponent("filter-modal"),D=e.resolveComponent("config-name"),T=e.resolveComponent("sort-by-cpnt"),R=e.resolveComponent("dim-by-count"),$=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",Ru,[e.createElementVNode("div",Uu,e.toDisplayString(t.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",zu,[e.createElementVNode("div",Gu,[Hu,e.createVNode(s,{style:{width:"70%"},class:"item-select",value:t.fieldData.labelField,options:t.fieldOptions,onChange:o[0]||(o[0]=_=>t.onFieldChange(_,"labelField"))},null,8,["value","options"])]),e.createElementVNode("div",Wu,[Yu,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]=_=>t.onFieldChange(_,"valueField"))},null,8,["value","options","mode"])]),t.selectedComponent.type==="ecanSelect"?(e.openBlock(),e.createElementBlock("div",qu,[Ku,e.createVNode(c,{checked:t.fieldData.hasAllOption,"onUpdate:checked":o[2]||(o[2]=_=>t.fieldData.hasAllOption=_)},{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",Xu,[e.createElementVNode("div",Qu,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),t.type==="dimensionList"?(e.openBlock(),e.createBlock(p,{key:0,title:"提示",placement:"topLeft"},{content:e.withCtx(()=>[Ju]),default:e.withCtx(()=>[e.createVNode(d,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):e.createCommentVNode("",!0)]),t.isShowCalcBtn?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-calculation",onClick:o[3]||(o[3]=e.withModifiers(_=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),Zu])):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]=_=>t.cardItemList=_),class:"chart-column",id:t.type,disabled:t.type==="indexLibColumns",group:"cardItem","item-key":"index",onAdd:t.onDragItemAdd,onSort:t.onDragItemSort,onEnd:t.onDragItemEnd,onStart:o[5]||(o[5]=_=>t.onDragItemStart(_,t.cardItemList))},{item:e.withCtx(({element:_,index:B})=>[e.createElementVNode("div",ef,[e.createVNode(c,{class:"card-item",checked:_.show,onChange:E=>t.onCheckboxChange(E,B)},{default:e.withCtx(()=>[e.createElementVNode("div",tf,[!t.editLabelList[B]&&_.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(E=>t.onEdit(B),["prevent","stop"])},e.toDisplayString(_.label),9,of)):e.createCommentVNode("",!0),!t.editLabelList[B]&&!_.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(E=>t.onEdit(B),["prevent","stop"])}," 请点击填入名字 ",8,nf)):e.createCommentVNode("",!0),t.editLabelList[B]?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,"default-value":_.label,size:"small",onBlur:E=>t.onCommitLabelChange(E,B,_.label),onPressEnter:E=>t.onCommitLabelChange(E,B,_.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[F]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(_.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(E=>t.onShowCalculationModal("edit",_,B),["prevent","stop"])}," fx ",8,af)):e.createCommentVNode("",!0),t.type!=="indexLibColumns"?(e.openBlock(),e.createBlock(N,{key:4,trigger:["click"],onVisibleChange:E=>t.onVisibleChange(E,_)},{overlay:e.withCtx(()=>[e.createVNode(y,null,{default:e.withCtx(()=>[t.dimensionType.includes(t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(g,{onClick:E=>t.showCustomSortModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(_)),1)]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(g,{onClick:E=>t.showCustomGroupModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomGroupTitle(_)),1)]),_:2},1032,["onClick"]),e.createVNode(b),_.genericType==="DATE"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{title:"日期格式化"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,E=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:E.value,onClick:P=>t.onDateFormatChange(E.value,B)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(_.dateFormat===E.value||!_.dateFormat&&E.value==="YYYY-MM"?"color: #1890FF;":"")},e.toDisplayString(E.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(b)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(g,{onClick:E=>t.showFilterModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleFilterTitle(_)),1)]),_:2},1032,["onClick"]),e.createVNode(b),["classificationList","seriesList"].includes(t.type)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(f,{title:t.handleAggregateTitle(_.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,E=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:E.value,onClick:P=>t.onAggregateChange(E.value,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(b)],64)),t.isShowConfigName?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(g,{onClick:E=>t.showConfigNameModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(" 修改展示名称 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),t.isShowSortByCpnt?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(g,{onClick:E=>t.showSortByCpntModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),_.name==="the_count"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(g,{onClick:E=>t.showDimByCountModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(f,{title:t.handleDistinctTitle(_.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,E=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:E.value,onClick:P=>t.onDistinctChange(E.value,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),t.dimensionType.includes(t.type)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[t.dataViewMap[_.name]?(e.openBlock(),e.createBlock(g,{key:0,onClick:E=>t.copyDataViewName(t.dataViewMap[_.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",lf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[_.name].name},[sf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[_.name].name),1)],8,rf),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[_.name]?(e.openBlock(),e.createBlock(g,{key:1,onClick:E=>t.copyDataViewName(t.dataViewMap[_.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",cf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[_.name].code},[pf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[_.name].code),1)],8,df),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)],64))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(C,{class:"setting-icon",onClick:E=>t.onClickSetting(_)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"])):e.createCommentVNode("",!0),t.type!=="indexLibColumns"||_.calcType==="FORMULA"?(e.openBlock(),e.createBlock(w,{key:5,class:"delete-icon",onClick:e.withModifiers(E=>t.onDelete(B),["prevent"])},null,8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","disabled","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(A,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),e.createVNode(v,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"filterModalRef"},null,8,["item","index","type"]),e.createVNode(D,{index:t.currentIndex,type:t.type,ref:"configNameRef"},null,8,["index","type"]),e.createVNode(T,{index:t.currentIndex,type:t.type,ref:"sortByCpntRef"},null,8,["index","type"]),e.createVNode(R,{index:t.currentIndex,type:t.type,ref:"dimByCountRef"},null,8,["index","type"]),e.createVNode($,{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 ff=ae(ju,[["render",uf],["__scopeId","data-v-7ccd3d66"]]),mf={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"}},hf=e.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:ff},setup(){const t=["classificationList","seriesList","leftAxisList","rightAxisList","indicators","rowHeaderList","queryColumnList"],o=e.inject(ve),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(Ae),c=()=>{var b,f;const i=ee.cloneDeep((b=e.unref(o))==null?void 0:b.graphicConfig),d={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"]:[i.isIndexSet?"indexLibColumns":"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 h=p.length;u=((f=u.slice(h,h+1))==null?void 0:f.toLowerCase())+u.slice(h+1)}const m=d[u],C=mf,g=(m==null?void 0:m.length)||0;for(let h=0;h<g;h++){const y=m[h];if(!y)break;r.push({...C[y],type:y})}for(const h of t)Ye(i,h)&&!m.find(y=>y===h)?i[h]=[]:delete i[h];s(i)};return c(),e.watch(()=>n.value,()=>{r.length=0,c()}),{cardsMap:l,cards:r}}}),eg="",tg="",bf={class:"data-group"};function yf(t,o,n,a,l,r){const s=e.resolveComponent("data-config-card");return e.openBlock(),e.createElementBlock("div",bf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cards,c=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:c.type,class:"data-config-card",type:c.type},c),null,16,["type"]))),128))])}const gf=ae(hf,[["render",yf],["__scopeId","data-v-cb593972"]]),Cf=[{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"]}],ir=[{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])})),wf={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:""},...ir]}},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:""},...ir]}},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:`【别名】是循环列表内部要循环的组件别名;