@ecan-bi/indicator-library 1.0.89 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/editor.worker-02df2e61.js +1 -1
- package/dist/assets/json.worker-867823a6.js +1 -1
- package/dist/assets/ts.worker-7254b425.js +1 -1
- package/dist/index.es.js +7 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/utils/util.d.ts +7 -0
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@1.0.
|
|
1
|
+
/*! @ecan-bi/indicator-library@1.0.90 */
|
|
2
2
|
(function(me,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("lodash-es"),require("ant-design-vue"),require("vuedraggable"),require("dayjs"),require("ant-design-vue/es/popover/style"),require("ant-design-vue/es/dropdown/style"),require("ant-design-vue/es/table/style"),require("monaco-editor"),require("ant-design-vue/es/collapse/style"),require("echarts")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","ant-design-vue","vuedraggable","dayjs","ant-design-vue/es/popover/style","ant-design-vue/es/dropdown/style","ant-design-vue/es/table/style","monaco-editor","ant-design-vue/es/collapse/style","echarts"],e):(me=typeof globalThis<"u"?globalThis:me||self,e(me["@ecan-bi/indicator-library"]={},me.Vue,me.LodashEs,me.AntDesignVue,me.Draggable,me.Dayjs,null,null,null,me.MonacoEditor,null,me.Echarts))})(this,function(me,e,J,j,Et,he,uy,fy,my,qr,hy,Kr){var Yr;"use strict";function Xr(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 Qr=Xr(Kr),ia=(t,o)=>{if(t.install=n=>{for(const a of[t,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))t[n]=a;return t},Ee="$request",Se=((Yr=window==null?void 0:window.config)==null?void 0:Yr.indicatorURL)||"",Be="INDICATOR_TOKEN",sa="DATA_LIST",Ie="SELECTED_COMPONENT",Ce="GRAPHIC_CONFIG",Ne="UPDATE_GRAPHIC_CONFIG",ca="SHOW_STYLE_CONFIG",da="REFRESH_DATA",Co="CHARTS_OPTIONS",pa="TABLE_OPTIONS",Jr=18,Yo="UPDATE_CHARTS_OPTIONS",qo="UPDATE_TABLE_OPTIONS",Wt="SOURCE_TYPE",wo="CHANGE_CONDITION",ua="DATA_VIEW_COLUMNS",Ue="RENDER_USED_COMPONENTS",ko="UPDATE_USED_COMPONENT",fa="MAP_ATTRIBUTE_PROPS",ma="PAGE_CONFIG",Ko={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%"}},Zr={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},ei=e.defineComponent({name:"DataViewList",components:{ASpin:j.Spin,ATreeSelect:j.TreeSelect,Draggable:Et},setup(){var S;const t=e.inject(Ee),o=e.unref(e.inject(Be)),n=e.inject(Ce),a=e.inject(Ne),l=e.computed(()=>{var C;return((C=e.unref(n))==null?void 0:C.dataViewId)||null}),r=e.ref(!1),s=e.ref([]),d=(S=window==null?void 0:window.config)==null?void 0:S.pageId,i=e.reactive({title:"已选",value:"YXJG",id:"YXJG",pId:"0",disabled:!0,selectable:!1,isLeaf:!0}),c=async()=>{var k,_;const C=l.value;r.value=!0;try{const{data:E}=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:C,pageId:d,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}});r.value=!1,E.success&&((k=s.value)==null||k.push(i),s.value=(_=s.value)==null?void 0:_.concat(p([E.data.rows[0]],"YXJG")))}catch{r.value=!1}},p=(C=[],k)=>{const _=[];return C.forEach(E=>{_.push({id:E.id,pId:k??E.parentId,value:E.id,title:E.name,isLeaf:E.leaf||!1,nature:E.nature,selectable:E.leaf||!1})}),_},u=async(C,k)=>{var O;let _=0;if(C){const{value:B}=C.dataRef;_=B}const{data:E}=await t.post(`${Se}/dataview/treetable`,{pageFlag:!0,pageId:d,parentId:_},{headers:{Authentication:o,operateContext:"ygt"}});E.success&&(s.value=(O=e.unref(s))==null?void 0:O.concat(p(E.data)),k&&e.unref(l)&&await c())},f=C=>{m(C),a({dataViewId:C,classificationList:[],seriesList:[],leftAxisList:[],rightAxisList:[],indicators:[],controlList:[]})},{setDataList:y}=e.inject(sa,{setDataList:C=>C}),h=e.ref(!1),b=e.ref([]),m=async C=>{if(C){b.value=[],h.value=!0;try{const k=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:C,pageId:d,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}}),{success:_,data:E={}}=k.data;if(h.value=!1,_){const{rows:O=[]}=E;O==null||O.forEach(B=>{var D;const L=((D=B==null?void 0:B.dataViewColumns)==null?void 0:D.map(I=>({...I,show:!0})))||[];b.value=[...e.unref(b),...L]}),y(e.unref(b))}}catch{h.value=!1}}},w=C=>({TEXT:"字符",NUMBER:"数字",DATE:"时间"})[C],g=(C,k)=>{const _=k[C.oldIndex];if(_){const E={..._,label:_.name,name:_.label};sessionStorage.setItem("indicator-list-item",JSON.stringify(E))}};return e.onMounted(async()=>{await u(void 0,!0),m(e.unref(l))}),{dataViewId:l,handleLoadData:u,treeSelectData:s,treeSelectLoading:r,dataViewList:b,dataViewLoading:h,onDataViewIdChange:f,mapGenericType:w,onDragStart:g}}}),ky="",oe=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},ti={class:"data-view-list"},oi={class:"columns"},ni={class:"column-item"},ai={class:"column-item-name"};function li(t,o,n,a,l,r){const s=e.resolveComponent("a-tree-select"),d=e.resolveComponent("a-spin"),i=e.resolveComponent("draggable");return e.openBlock(),e.createElementBlock("div",ti,[e.createVNode(d,{"wrapper-class-name":"tree-spin",spinning:t.treeSelectLoading,tip:"视图加载中..."},{default:e.withCtx(()=>[e.createVNode(s,{value:t.dataViewId,style:{width:"100%"},placeholder:"请选择视图","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":t.treeSelectData,"load-data":t.handleLoadData,"tree-data-simple-mode":"",onChange:t.onDataViewIdChange},null,8,["value","tree-data","load-data","onChange"])]),_:1},8,["spinning"]),e.createElementVNode("div",oi,[e.createVNode(d,{spinning:t.dataViewLoading,tip:"数据加载中..."},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:t.dataViewList,"onUpdate:modelValue":o[0]||(o[0]=c=>t.dataViewList=c),group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,onStart:o[1]||(o[1]=c=>t.onDragStart(c,t.dataViewList))},{item:e.withCtx(({element:c})=>[e.createElementVNode("div",ni,[e.createTextVNode(" 【"+e.toDisplayString(t.mapGenericType(c.genericType))+"】 ",1),e.createElementVNode("span",ai,e.toDisplayString(c.name),1)])]),_:1},8,["modelValue"])]),_:1},8,["spinning"])])])}const ri=oe(ei,[["render",li],["__scopeId","data-v-4a66f7d2"]]);function De(t,o){ii(t)&&(t="100%");var n=si(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 ii(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function si(t){return typeof t=="string"&&t.indexOf("%")!==-1}function ci(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function xo(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Xo(t){return t.length===1?"0"+t:String(t)}function di(t,o,n){return{r:De(t,255)*255,g:De(o,255)*255,b:De(n,255)*255}}function Qo(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 pi(t,o,n){var a,l,r;if(t=De(t,360),o=De(o,100),n=De(n,100),o===0)l=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,d=2*n-s;a=Qo(d,s,t+1/3),l=Qo(d,s,t),r=Qo(d,s,t-1/3)}return{r:a*255,g:l*255,b:r*255}}function ui(t,o,n){t=De(t,255),o=De(o,255),n=De(n,255);var a=Math.max(t,o,n),l=Math.min(t,o,n),r=0,s=a,d=a-l,i=a===0?0:d/a;if(a===l)r=0;else{switch(a){case t:r=(o-n)/d+(o<n?6:0);break;case o:r=(n-t)/d+2;break;case n:r=(t-o)/d+4;break}r/=6}return{h:r,s:i,v:s}}function fi(t,o,n){t=De(t,360)*6,o=De(o,100),n=De(n,100);var a=Math.floor(t),l=t-a,r=n*(1-o),s=n*(1-l*o),d=n*(1-(1-l)*o),i=a%6,c=[n,s,r,r,d,n][i],p=[d,n,n,s,r,r][i],u=[r,r,d,n,n,s][i];return{r:c*255,g:p*255,b:u*255}}function mi(t,o,n,a){var l=[Xo(Math.round(t).toString(16)),Xo(Math.round(o).toString(16)),Xo(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 ha(t){return Ve(t)/255}function Ve(t){return parseInt(t,16)}var ba={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 Yt(t){var o={r:0,g:0,b:0},n=1,a=null,l=null,r=null,s=!1,d=!1;return typeof t=="string"&&(t=yi(t)),typeof t=="object"&&(Qe(t.r)&&Qe(t.g)&&Qe(t.b)?(o=di(t.r,t.g,t.b),s=!0,d=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Qe(t.h)&&Qe(t.s)&&Qe(t.v)?(a=xo(t.s),l=xo(t.v),o=fi(t.h,a,l),s=!0,d="hsv"):Qe(t.h)&&Qe(t.s)&&Qe(t.l)&&(a=xo(t.s),r=xo(t.l),o=pi(t.h,a,r),s=!0,d="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=ci(n),{ok:s,format:t.format||d,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var hi="[-\\+]?\\d+%?",bi="[-\\+]?\\d*\\.\\d+%?",lt="(?:".concat(bi,")|(?:").concat(hi,")"),Jo="[\\s|\\(]+(".concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")\\s*\\)?"),Zo="[\\s|\\(]+(".concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")[,|\\s]+(").concat(lt,")\\s*\\)?"),ze={CSS_UNIT:new RegExp(lt),rgb:new RegExp("rgb"+Jo),rgba:new RegExp("rgba"+Zo),hsl:new RegExp("hsl"+Jo),hsla:new RegExp("hsla"+Zo),hsv:new RegExp("hsv"+Jo),hsva:new RegExp("hsva"+Zo),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 yi(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var o=!1;if(ba[t])t=ba[t],o=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ze.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=ze.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ze.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=ze.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ze.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=ze.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ze.hex8.exec(t),n?{r:Ve(n[1]),g:Ve(n[2]),b:Ve(n[3]),a:ha(n[4]),format:o?"name":"hex8"}:(n=ze.hex6.exec(t),n?{r:Ve(n[1]),g:Ve(n[2]),b:Ve(n[3]),format:o?"name":"hex"}:(n=ze.hex4.exec(t),n?{r:Ve(n[1]+n[1]),g:Ve(n[2]+n[2]),b:Ve(n[3]+n[3]),a:ha(n[4]+n[4]),format:o?"name":"hex8"}:(n=ze.hex3.exec(t),n?{r:Ve(n[1]+n[1]),g:Ve(n[2]+n[2]),b:Ve(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function Qe(t){return!!ze.CSS_UNIT.exec(String(t))}var _o=2,ya=.16,gi=.05,Ci=.05,wi=.15,ga=5,Ca=4,ki=[{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 wa(t){var o=t.r,n=t.g,a=t.b,l=ui(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function So(t){var o=t.r,n=t.g,a=t.b;return"#".concat(mi(o,n,a,!1))}function xi(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 ka(t,o,n){var a;return Math.round(t.h)>=60&&Math.round(t.h)<=240?a=n?Math.round(t.h)-_o*o:Math.round(t.h)+_o*o:a=n?Math.round(t.h)+_o*o:Math.round(t.h)-_o*o,a<0?a+=360:a>=360&&(a-=360),a}function xa(t,o,n){if(t.h===0&&t.s===0)return t.s;var a;return n?a=t.s-ya*o:o===Ca?a=t.s+ya:a=t.s+gi*o,a>1&&(a=1),n&&o===ga&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function _a(t,o,n){var a;return n?a=t.v+Ci*o:a=t.v-wi*o,a>1&&(a=1),Number(a.toFixed(2))}function en(t){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Yt(t),l=ga;l>0;l-=1){var r=wa(a),s=So(Yt({h:ka(r,l,!0),s:xa(r,l,!0),v:_a(r,l,!0)}));n.push(s)}n.push(So(a));for(var d=1;d<=Ca;d+=1){var i=wa(a),c=So(Yt({h:ka(i,d),s:xa(i,d),v:_a(i,d)}));n.push(c)}return o.theme==="dark"?ki.map(function(p){var u=p.index,f=p.opacity,y=So(xi(Yt(o.backgroundColor||"#141414"),Yt(n[u]),f*100));return y}):n}var tn={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"},on={},nn={};Object.keys(tn).forEach(function(t){on[t]=en(tn[t]),on[t].primary=on[t][5],nn[t]=en(tn[t],{theme:"dark",backgroundColor:"#141414"}),nn[t].primary=nn[t][5]});var Sa=[],qt=[],_i="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Si(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function Ni(t,o){if(o=o||{},t===void 0)throw new Error(_i);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Sa.indexOf(a);l===-1&&(l=Sa.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]=Si(),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 Na(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){Ti(t,l,n[l])})}return t}function Ti(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Ai(t,o){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(o))}function Oi(t,o){Ai(t,"[@ant-design/icons-vue] ".concat(o))}function Ta(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function an(t,o,n){return n?e.h(t.tag,Na({key:o},n,t.attrs),(t.children||[]).map(function(a,l){return an(a,"".concat(o,"-").concat(t.tag,"-").concat(l))})):e.h(t.tag,Na({key:o},t.attrs),(t.children||[]).map(function(a,l){return an(a,"".concat(o,"-").concat(t.tag,"-").concat(l))}))}function Aa(t){return en(t)[0]}function Oa(t){return t?Array.isArray(t)?t:[t]:[]}var Ei=`
|
|
3
3
|
.anticon {
|
|
4
4
|
display: inline-block;
|
|
@@ -61,7 +61,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
61
61
|
`],...function({vnode:p,recurseCount:u}){const f=u>0?`... (${u} recursive calls)`:"",y=!!p.component&&p.component.parent==null,h=` at <${kl(p.component,p.type,y)}`,b=">"+f;return p.props?[h,...uc(p.props),b]:[h+b]}(i))}),d}(l)),console.warn(...r)}(function(){const r=sl.pop();mt=r===void 0||r})()}function uc(t){const o=[],n=Object.keys(t);return n.slice(0,3).forEach(a=>{o.push(...fl(a,t[a]))}),n.length>3&&o.push(" ..."),o}function fl(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}`]:ul(o)?(o=fl(t,Lt(o.value),!0),n?o:[`${t}=Ref<`,o,">"]):To(o)?[`${t}=fn${o.name?`<${o.name}>`:""}`]:(o=Lt(o),n?o:[`${t}=`,o])}const ml={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 Vn(t,o,n,a){let l;try{l=a?t(...a):t()}catch(r){(function(s,d,i,c=!0){const p=d?d.vnode:null;if(d){let u=d.parent;const f=d.proxy,y=process.env.NODE_ENV!=="production"?ml[i]:i;for(;u;){const b=u.ec;if(b){for(let m=0;m<b.length;m++)if(b[m](s,f,y)===!1)return}u=u.parent}const h=d.appContext.config.errorHandler;if(h)return void Vn(h,null,10,[s,f,y])}(function(u,f,y,h=!0){if(process.env.NODE_ENV!=="production"){const m=ml[f];if(y&&(b=y,ht.push(b)),Bn("Unhandled error"+(m?` during execution of ${m}`:"")),y&&ht.pop(),h)throw u;console.error(u)}else console.error(u);var b})(s,i,p,c)})(r,o,n)}return l}let Ao=!1,Ln=!1;const Ge=[];let st=0;const vt=[];let He=null,ct=0;const fc=Promise.resolve();function mc(t){Ge.length&&Ge.includes(t,Ao&&t.allowRecurse?st+1:st)||(t.id==null?Ge.push(t):Ge.splice(function(o){let n=st+1,a=Ge.length;for(;n<a;){const l=n+a>>>1,r=Ge[l],s=Jt(r);s<o||s===o&&r.pre?n=l+1:a=l}return n}(t.id),0,t),hl())}function hl(){Ao||Ln||(Ln=!0,fc.then(bl))}const Jt=t=>t.id==null?1/0:t.id,hc=(t,o)=>{const n=Jt(t)-Jt(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function bl(t){Ln=!1,Ao=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),Ge.sort(hc);const o=process.env.NODE_ENV!=="production"?n=>yl(t,n):tl;try{for(st=0;st<Ge.length;st++){const n=Ge[st];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&o(n))continue;Vn(n,null,14)}}}finally{st=0,Ge.length=0,function(n){if(vt.length){const a=[...new Set(vt)];if(vt.length=0,He)return void He.push(...a);for(He=a,process.env.NODE_ENV!=="production"&&(n=n||new Map),He.sort((l,r)=>Jt(l)-Jt(r)),ct=0;ct<He.length;ct++)process.env.NODE_ENV!=="production"&&yl(n,He[ct])||He[ct]();He=null,ct=0}}(t),Ao=!1,(Ge.length||vt.length)&&bl(t)}}function yl(t,o){if(t.has(o)){const n=t.get(o);if(n>100){const a=o.ownerInstance,l=a&&wl(a.type);return Bn(`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 Zt=new Set;process.env.NODE_ENV!=="production"&&(En().__VUE_HMR_RUNTIME__={createRecord:vn(function(t,o){return Oo.has(t)?!1:(Oo.set(t,{initialDef:eo(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,eo(a.type).render=o),a.renderCache=[],a.update()}))}),reload:vn(function(t,o){const n=Oo.get(t);if(!n)return;o=eo(o),gl(n.initialDef,o);const a=[...n.instances];for(const r of a){const s=eo(r.type);Zt.has(s)||(s!==n.initialDef&&gl(s,o),Zt.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(Zt.add(s),r.ceReload(o.styles),Zt.delete(s)):r.parent?mc(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)Zt.delete(eo(r.type))},ol(l)?vt.push(...l):He&&He.includes(l,l.allowRecurse?ct+1:ct)||vt.push(l),hl();var l})});const Oo=new Map;function eo(t){return To(o=t)&&"__vccOpts"in o?t.__vccOpts:t;var o}function gl(t,o){On(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 $n;process.env.NODE_ENV;let Cl="__VUE_INSTANCE_SETTERS__";($n=En()[Cl])||($n=En()[Cl]=[]),$n.push(t=>t);const bc=/(?:^|[-_])(\w)/g,yc=t=>t.replace(bc,o=>o.toUpperCase()).replace(/[-_]/g,"");function wl(t,o=!0){return To(t)?t.displayName||t.name:t.name||o&&t.__name}function kl(t,o,n=!1){let a=wl(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?yc(a):n?"App":"Anonymous"}const bt=(t,o)=>function(n,a,l=!1){let r,s;const d=To(n);return d?(r=n,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:tl):(r=n.get,s=n.set),new pc(r,s,d||!s,l)}(t,0,!1);function gc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xl,_l={exports:{}};function Cc(){return xl||(xl=1,_l.exports=function(){var t=1e3,o=6e4,n=36e5,a="millisecond",l="second",r="minute",s="hour",d="day",i="week",c="month",p="quarter",u="year",f="date",y="Invalid Date",h=/^(\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,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var $=["th","st","nd","rd"],x=I%100;return"["+I+($[(x-20)%10]||$[x]||$[0])+"]"}},w=function(I,$,x){var V=String(I);return!V||V.length>=$?I:""+Array($+1-V.length).join(x)+I},g={s:w,z:function(I){var $=-I.utcOffset(),x=Math.abs($),V=Math.floor(x/60),T=x%60;return($<=0?"+":"-")+w(V,2,"0")+":"+w(T,2,"0")},m:function I($,x){if($.date()<x.date())return-I(x,$);var V=12*(x.year()-$.year())+(x.month()-$.month()),T=$.clone().add(V,c),P=x-T<0,R=$.clone().add(V+(P?-1:1),c);return+(-(V+(x-T)/(P?T-R:R-T))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:c,y:u,w:i,d,D:f,h:s,m:r,s:l,ms:a,Q:p}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},S="en",C={};C[S]=m;var k="$isDayjsObject",_=function(I){return I instanceof L||!(!I||!I[k])},E=function I($,x,V){var T;if(!$)return S;if(typeof $=="string"){var P=$.toLowerCase();C[P]&&(T=P),x&&(C[P]=x,T=P);var R=$.split("-");if(!T&&R.length>1)return I(R[0])}else{var N=$.name;C[N]=$,T=N}return!V&&T&&(S=T),T||!V&&S},O=function(I,$){if(_(I))return I.clone();var x=typeof $=="object"?$:{};return x.date=I,x.args=arguments,new L(x)},B=g;B.l=E,B.i=_,B.w=function(I,$){return O(I,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var L=function(){function I(x){this.$L=E(x.locale,null,!0),this.parse(x),this.$x=this.$x||x.x||{},this[k]=!0}var $=I.prototype;return $.parse=function(x){this.$d=function(V){var T=V.date,P=V.utc;if(T===null)return new Date(NaN);if(B.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var R=T.match(h);if(R){var N=R[2]-1||0,v=(R[7]||"0").substring(0,3);return P?new Date(Date.UTC(R[1],N,R[3]||1,R[4]||0,R[5]||0,R[6]||0,v)):new Date(R[1],N,R[3]||1,R[4]||0,R[5]||0,R[6]||0,v)}}return new Date(T)}(x),this.init()},$.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},$.$utils=function(){return B},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(x,V){var T=O(x);return this.startOf(V)<=T&&T<=this.endOf(V)},$.isAfter=function(x,V){return O(x)<this.startOf(V)},$.isBefore=function(x,V){return this.endOf(V)<O(x)},$.$g=function(x,V,T){return B.u(x)?this[V]:this.set(T,x)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(x,V){var T=this,P=!!B.u(V)||V,R=B.p(x),N=function(Q,Z){var ae=B.w(T.$u?Date.UTC(T.$y,Z,Q):new Date(T.$y,Z,Q),T);return P?ae:ae.endOf(d)},v=function(Q,Z){return B.w(T.toDate()[Q].apply(T.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(Z)),T)},A=this.$W,F=this.$M,M=this.$D,G="set"+(this.$u?"UTC":"");switch(R){case u:return P?N(1,0):N(31,11);case c:return P?N(1,F):N(0,F+1);case i:var W=this.$locale().weekStart||0,X=(A<W?A+7:A)-W;return N(P?M-X:M+(6-X),F);case d:case f:return v(G+"Hours",0);case s:return v(G+"Minutes",1);case r:return v(G+"Seconds",2);case l:return v(G+"Milliseconds",3);default:return this.clone()}},$.endOf=function(x){return this.startOf(x,!1)},$.$set=function(x,V){var T,P=B.p(x),R="set"+(this.$u?"UTC":""),N=(T={},T[d]=R+"Date",T[f]=R+"Date",T[c]=R+"Month",T[u]=R+"FullYear",T[s]=R+"Hours",T[r]=R+"Minutes",T[l]=R+"Seconds",T[a]=R+"Milliseconds",T)[P],v=P===d?this.$D+(V-this.$W):V;if(P===c||P===u){var A=this.clone().set(f,1);A.$d[N](v),A.init(),this.$d=A.set(f,Math.min(this.$D,A.daysInMonth())).$d}else N&&this.$d[N](v);return this.init(),this},$.set=function(x,V){return this.clone().$set(x,V)},$.get=function(x){return this[B.p(x)]()},$.add=function(x,V){var T,P=this;x=Number(x);var R=B.p(V),N=function(F){var M=O(P);return B.w(M.date(M.date()+Math.round(F*x)),P)};if(R===c)return this.set(c,this.$M+x);if(R===u)return this.set(u,this.$y+x);if(R===d)return N(1);if(R===i)return N(7);var v=(T={},T[r]=o,T[s]=n,T[l]=t,T)[R]||1,A=this.$d.getTime()+x*v;return B.w(A,this)},$.subtract=function(x,V){return this.add(-1*x,V)},$.format=function(x){var V=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var P=x||"YYYY-MM-DDTHH:mm:ssZ",R=B.z(this),N=this.$H,v=this.$m,A=this.$M,F=T.weekdays,M=T.months,G=T.meridiem,W=function(Z,ae,le,_e){return Z&&(Z[ae]||Z(V,P))||le[ae].slice(0,_e)},X=function(Z){return B.s(N%12||12,Z,"0")},Q=G||function(Z,ae,le){var _e=Z<12?"AM":"PM";return le?_e.toLowerCase():_e};return P.replace(b,function(Z,ae){return ae||function(le){switch(le){case"YY":return String(V.$y).slice(-2);case"YYYY":return B.s(V.$y,4,"0");case"M":return A+1;case"MM":return B.s(A+1,2,"0");case"MMM":return W(T.monthsShort,A,M,3);case"MMMM":return W(M,A);case"D":return V.$D;case"DD":return B.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return W(T.weekdaysMin,V.$W,F,2);case"ddd":return W(T.weekdaysShort,V.$W,F,3);case"dddd":return F[V.$W];case"H":return String(N);case"HH":return B.s(N,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return Q(N,v,!0);case"A":return Q(N,v,!1);case"m":return String(v);case"mm":return B.s(v,2,"0");case"s":return String(V.$s);case"ss":return B.s(V.$s,2,"0");case"SSS":return B.s(V.$ms,3,"0");case"Z":return R}return null}(Z)||R.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(x,V,T){var P,R=this,N=B.p(V),v=O(x),A=(v.utcOffset()-this.utcOffset())*o,F=this-v,M=function(){return B.m(R,v)};switch(N){case u:P=M()/12;break;case c:P=M();break;case p:P=M()/3;break;case i:P=(F-A)/6048e5;break;case d:P=(F-A)/864e5;break;case s:P=F/n;break;case r:P=F/o;break;case l:P=F/t;break;default:P=F}return T?P:B.a(P)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return C[this.$L]},$.locale=function(x,V){if(!x)return this.$L;var T=this.clone(),P=E(x,V,!0);return P&&(T.$L=P),T},$.clone=function(){return B.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},I}(),D=L.prototype;return O.prototype=D,[["$ms",a],["$s",l],["$m",r],["$H",s],["$W",d],["$M",c],["$y",u],["$D",f]].forEach(function(I){D[I[1]]=function($){return this.$g($,I[0],I[1])}}),O.extend=function(I,$){return I.$i||(I($,L,O),I.$i=!0),O},O.locale=E,O.isDayjs=_,O.unix=function(I){return O(1e3*I)},O.en=C[S],O.Ls=C,O.p={},O}()),_l.exports}var wc=gc(Cc()),Sl=typeof global=="object"&&global&&global.Object===Object&&global,kc=typeof self=="object"&&self&&self.Object===Object&&self,Je=Sl||kc||Function("return this")(),$t=Je.Symbol,Nl=Object.prototype,xc=Nl.hasOwnProperty,_c=Nl.toString,to=$t?$t.toStringTag:void 0,Sc=Object.prototype.toString,Tl=$t?$t.toStringTag:void 0;function Eo(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Tl&&Tl in Object(t)?function(o){var n=xc.call(o,to),a=o[to];try{o[to]=void 0;var l=!0}catch{}var r=_c.call(o);return l&&(n?o[to]=a:delete o[to]),r}(t):function(o){return Sc.call(o)}(t)}function Al(t){return t!=null&&typeof t=="object"}function Ol(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function Nc(t){if(!Ol(t))return!1;var o=Eo(t);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[object Proxy]"}var El,Fn=Je["__core-js_shared__"],Bl=(El=/[^.]+$/.exec(Fn&&Fn.keys&&Fn.keys.IE_PROTO||""))?"Symbol(src)_1."+El:"",Tc=Function.prototype.toString;function yt(t){if(t!=null){try{return Tc.call(t)}catch{}try{return t+""}catch{}}return""}var Ac=/^\[object .+?Constructor\]$/,Oc=Function.prototype,Ec=Object.prototype,Bc=Oc.toString,Vc=Ec.hasOwnProperty,Lc=RegExp("^"+Bc.call(Vc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vc(t){return!(!Ol(t)||(o=t,Bl&&Bl in o))&&(Nc(t)?Lc:Ac).test(yt(t));var o}function gt(t,o){var n=function(a,l){return a==null?void 0:a[l]}(t,o);return vc(n)?n:void 0}var In=gt(Je,"WeakMap");(function(){try{var t=gt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function Vl(t){return Al(t)&&Eo(t)=="[object Arguments]"}var Ll=Object.prototype,$c=Ll.hasOwnProperty,Fc=Ll.propertyIsEnumerable;Vl(function(){return arguments}());var vl=typeof me=="object"&&me&&!me.nodeType&&me,$l=vl&&typeof module=="object"&&module&&!module.nodeType&&module,Fl=$l&&$l.exports===vl?Je.Buffer:void 0;Fl&&Fl.isBuffer;var Il=typeof me=="object"&&me&&!me.nodeType&&me,oo=Il&&typeof module=="object"&&module&&!module.nodeType&&module,Dn=oo&&oo.exports===Il&&Sl.process,Ft=function(){try{var t=oo&&oo.require&&oo.require("util").types;return t||Dn&&Dn.binding&&Dn.binding("util")}catch{}}();Ft&&Ft.isTypedArray,gt(Object,"create");var Mn=gt(Je,"Map"),Pn=gt(Je,"DataView"),jn=gt(Je,"Promise"),Rn=gt(Je,"Set"),Dl="[object Map]",Ml="[object Promise]",Pl="[object Set]",jl="[object WeakMap]",Rl="[object DataView]",Ic=yt(Pn),Dc=yt(Mn),Mc=yt(jn),Pc=yt(Rn),jc=yt(In),It=Eo;(Pn&&It(new Pn(new ArrayBuffer(1)))!=Rl||Mn&&It(new Mn)!=Dl||jn&&It(jn.resolve())!=Ml||Rn&&It(new Rn)!=Pl||In&&It(new In)!=jl)&&(It=function(t){var o=Eo(t),n=o=="[object Object]"?t.constructor:void 0,a=n?yt(n):"";if(a)switch(a){case Ic:return Rl;case Dc:return Dl;case Mc:return Ml;case Pc:return Pl;case jc:return jl}return o}),Je.Uint8Array;var Ul=$t?$t.prototype:void 0;Ul&&Ul.valueOf,Ft&&Ft.isMap,Ft&&Ft.isSet;const zl=(t,o)=>{const n=Object.assign({dayjs:wc},o);let a="";const l=[];for(const d in n)a+=`${d},`,l.push(n[d]);a=a.replace(/,$/,"");const r=`function (${a}){return ${t}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...l)}catch{return t}return s},Dt=(t="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r=Object.assign({},o),s=(t||"").match(/\{(.+?)\}/g);if(s==null||s.length===0)return t;for(let d=0;d<s.length;d++){const i=s[d];let c=i.slice(1,-1).trim();const p=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,u=c.match(p);for(let f=0;f<u.length;f++){const y=u[f],h=r[y];h!=null&&typeof h!="function"&&(c=c.replace(y,h))}(/\(.*\)/g.test(c)||/[+/\\*]/g.test(c))&&(c=zl(c,n)),t=t.replace(i,c)}return a&&(t=t==null?void 0:t.replace(/\n|\\n/g,"<br/>")),l&&(t=t==null?void 0:t.replace(/\s{2,}?/g," ")),t=t.replace(/Qfw\((.*?)\)/,(d,i)=>o!=null&&o.Qfw?o==null?void 0:o.Qfw(i):i)},we=(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},We=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);function Rc(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 Uc=(t=[],o,n=!1)=>{let{name:a="name",types:l=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,d=t.length,i=l.length;if(d!==1||n)for(let u=0;u<d;u++){const f=t[u],y=f[a];r.add(y);for(let h=0;h<i;h++){const b=l[h],{label:m,value:w}=b,g=Object.assign(Object.assign({},f),{value:f[w]});if(s.has(m)){const S=s.get(m);S.push(g),s.set(m,S)}else s.set(m,[g])}}else{const u=[];for(let y=0;y<i;y++){const h=l[y],{label:b,value:m}=h,w=Object.assign(Object.assign({},t[0]),{value:t[0][m]});r.add(b),u.push(w)}const f=t[0][a]||"";s.set(f,u)}const c=Array.from(r),p=[];for(const[u,f]of s)p.push({name:u,data:f});return{dimensions:c,dataset:p}},zc=(t,o)=>{let{name:n="name",value:a="value",type:l="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),l=l==null?void 0:l.trim();const r=new Map,s=t.length;for(let c=0;c<s;c++){const p=t[c],u=p[n]||"",f=p[a]||"",y=p[l]||"";if(r.has(y)){const h=r.get(y);h.push(Object.assign({name:u,value:f},p)),r.set(y,h)}else r.set(y,[Object.assign({name:u,value:f},p)])}const d=[],i=[];for(const[c,p]of r)if(i.push({name:c,data:p}),p==null?void 0:p.length)if(d.length)for(const u of p)d.includes(u.name)||d.push(u.name);else d.push(...p.map(u=>u.name));return{dimensions:d,dataset:i}},Mt=(t,o)=>{var n;if(t==null)return o;const a=t.match(/\{.*\}/g);if(a==null||a.length===0)return o;const l=a.length;for(let r=0;r<l;r++){const s=a[r];if(s==null||s==="")break;let d=(n=s.slice(1,-1))===null||n===void 0?void 0:n.trim();d=d==null?void 0:d.replace(/value/g,o);try{let i=d;(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(i=zl(d)),t=t.replace(s,i)}catch{t=t.replace(s,d)}}return t};function Gc(t){return t.isShowMarkLine?{markLine:{data:[{type:t.markLineType}]}}:{}}const Hc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,d=bt(()=>{const{gradientShow:c,gradientColors:p,gradientOffset:u,barBorderRadius:f}=t,y=s,h=y.length,b=[];for(let m=0;m<h;m++){const w=Object.assign(Object.assign({},y[m]),{type:"bar",barWidth:t.barWidth,showBackground:t.showBarBackground}),{isStack:g,stackColumns:S}=t;if(g&&S.includes(y[m].name||!S)&&(w.stack="stack"),w.label={show:t.labelShow,fontSize:t.labelFontSize,position:t.labelPosition,color:t.labelColor,width:t.labelWidth,overflow:t.labelOverflow,formatter:C=>{let k="",_=t.labelFormatter;_===""&&(_="{c}");const{seriesName:E,name:O,value:B,data:L}=C||{};return k+=Dt(_,{textData:Object.assign({name:O,value:B,a:E,b:O,c:B||0},L)},{useNewline:!0,useSpace:!0}),k}},w.itemStyle={},c&&(w.itemStyle={color:{x:t.isUseHorizontalAxis?1:0,y:0,x2:0,y2:t.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:t.colors[m]},{offset:u,color:p[m]},{offset:1,color:p[m]}]}}),f){const C=f.split(",");if(C!=null&&C.length){const k=[];for(const _ of C){const E=parseFloat(_);isNaN(E)||k.push(E)}w.itemStyle.barBorderRadius=k}}t.isShowMarkLine&&(w.markLine={data:[{type:t.markLineType}]}),b.push(w)}return b}),i=bt(()=>r.map(c=>{let p={};return p=c&&typeof c=="object"?Object.assign(Object.assign({},c),{textStyle:{fontSize:n}}):{value:c,textStyle:{fontSize:n}},p}));return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:c=>{const p=c.length;let u="",f=t.tooltipFormatter;f===""&&(f="{marker} {a} {c}");for(let y=0;y<p;y++){const{marker:h,seriesName:b,name:m,value:w,data:g}=c[y]||{};if(y===0){let S=m;typeof m!="string"||m[0]!=="0"||isNaN(+m)||(S=(+m).toString()),u+=`${Mt(l,S)}<br/>`}u+=Dt(f,{textData:Object.assign({marker:h,name:m,value:w,Qfw:Rc,a:b,b:m,c:w||0},g)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},legend:{type:t.legendScroll?"scroll":"plain",width:t.legendWidth,height:t.legendHeight,show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{rich:{text:{width:t.legendTextWidth,color:t.legendTextStyleColor,fontSize:t.legendFontSize}}},itemHeight:t.legendItemHeight,itemWidth:t.legendItemWidth,itemGap:t.legendItemGap,data:s.map((c,p)=>({name:c.name,itemStyle:{color:t.colors[p]},icon:t.legendType})),formatter:c=>((p="",u)=>{var f;const y=p.match(/\{(.+?)\}/g),h=((f=p.split(`
|
|
62
62
|
`))===null||f===void 0?void 0:f.length)-1;let b="";if(h)for(let w=0;w<h;w++)b+=`
|
|
63
63
|
`;let m=p;if(y!=null&&y.length){for(const w of y){const g=Dt(w,{textData:u},{useNewline:!1,useSpace:!1});g&&(m=m.replace(w,g))}return`${b}{text|${m}}`}return p})(t.legendFormatter,{name:c})},xAxis:{type:t.isUseHorizontalAxis?"value":"category",data:t.isUseHorizontalAxis?null:it(i),inverse:t.isUseHorizontalAxis?t.xAxisInverse:t.axisInverse,minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor,type:t.xAxisSplitLineType},interval:t.xAxisSplitLineInterval},splitArea:{show:t.xAxisSplitAreaShow},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,fontSize:t.xAxisLabelFontSize,formatter:c=>(typeof c!="string"||c[0]!=="0"||isNaN(+c)||(c=(+c).toString()),Mt(l,c))},axisLine:{show:t.xAxisLineShow,lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow},name:t.xAxisName,nameTextStyle:{fontSize:t.xAxisLabelFontSize,color:t.xAxisLabelColor,align:"left"},max:t.xAxisMaxValue||null},yAxis:{type:t.isUseHorizontalAxis?"category":"value",data:t.isUseHorizontalAxis?it(r):null,inverse:t.isUseHorizontalAxis?t.axisInverse:t.yAxisInverse,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:t.yAxisSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{show:t.yAxisLabelShow,fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,rotate:t.yAxisLabelRotate,width:t.yAxisLabelWidth,overflow:t.yAxisLabelOverflow,formatter:c=>Mt(a,c)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:t.yAxisName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:"right"},max:t.yAxisMaxValue||null},series:it(d)}},Wc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,d=bt(()=>r.map(c=>{let p={};return p=c&&typeof c=="object"?Object.assign(Object.assign({},c),{textStyle:{fontSize:n}}):{value:c,textStyle:{fontSize:n}},p})),i=bt(()=>{const c=[],p=s.length;for(let u=0;u<p;u++){const f={};t.shadowColor&&(f.shadowColor=t.shadowColor,f.shadowBlur=t.shadowBlur,f.shadowOffsetY=t.shadowOffsetY,f.shadowOffsetX=t.shadowOffsetX),c.push(Object.assign(Object.assign(Object.assign({type:"line"},s[u]),{symbolSize:t.symbolSize,smooth:t.smooth,areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},f)}),Gc(t)))}return c});return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:c=>{const p=c.length;let u="",f=t.tooltipFormatter;f===""&&(f="{marker} {a} {c}");for(let y=0;y<p;y++){const{marker:h,seriesName:b,name:m,value:w,data:g}=c[y]||{};y===0&&(u+=`${m}<br/>`),u+=Dt(f,{textData:Object.assign({marker:h,name:m,value:w,a:b,b:m,c:w},g)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n.value},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},xAxis:{name:t.xAxisName,type:"category",data:it(d),minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,formatter:c=>Mt(l,c)},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",name:t.yAxisName,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{fontSize:n,color:t.yAxisLabelColor,formatter:c=>Mt(a,c)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{fontSize:n}},series:it(i)}},Yc=(t,o,n)=>{const{dataset:a=[]}=o;let{data:l=[]}=a[0]||{};if(Array.isArray(t.colors)){const s=t.isUseLabelColors,d=t.colors;l=l.map((i,c)=>Object.assign({label:s?{color:d[c]}:{}},i))}return{title:{text:t.titleText,subtext:t.titleSubtext,textStyle:{fontSize:t.titleFontSize,fontWeight:t.fontWeight,color:t.titleColor},left:t.textAlign||"center"},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:s=>{const{marker:d,seriesName:i,name:c,value:p,percent:u,data:f}=s||{};return Dt(t.tooltipFormatter,{textData:Object.assign({marker:d,name:c,value:p,percent:u,a:i,b:c,c:p,d:u},f)},{useNewline:!0,useSpace:!0})},textStyle:{color:t.tooltipTextStyleColor||"#333"},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n===18?n:t.labelFontSize}},series:[{data:l,type:"pie",radius:[t.innerRadius,t.outerRadius],center:[t.centerLeft,t.centerTop],roseType:t.roseType,avoidLabelOverlap:!1,minAngle:t.minAngle,label:{show:t.labelPosition!=="center"&&t.labelShow,color:t.labelColor,fontSize:n===18?n:t.labelFontSize,position:t.labelPosition,formatter:(r=t.labelFormatter,r.replace(/\\n/g,`
|
|
64
|
-
`))},labelLine:{show:t.labelLineShow,length:t.labelLineLength,length2:t.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]};var r},qc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=bt(()=>a.map(i=>{let c={};return c=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},c})),s=bt(()=>{const i=[],c=l.length,p=t.seriesTypes;for(let u=0;u<c;u++){const f=p[u],{type:y,axisIndex:h}=f||{};let b=Object.assign({type:y,yAxisIndex:h},l[u]);if(y==="line"){const m={};t.shadowColor&&(m.shadowColor=t.shadowColor,m.shadowBlur=t.shadowBlur,m.shadowOffsetY=t.shadowOffsetY,m.shadowOffsetX=t.shadowOffsetX),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},m)})}if(y==="bar"){const{gradientShow:m,gradientColors:w,gradientOffset:g}=t,S={};if(t.barBorderRadius){const C=t.barBorderRadius.split(",");if(C!=null&&C.length){const k=[];for(const _ of C){const E=parseFloat(_);isNaN(E)||k.push(E)}S.borderRadius=k}}m&&(S.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:g,color:w[u]},{offset:1,color:w[u]}]}),b=Object.assign(Object.assign({},b),{barWidth:t.barWidth,itemStyle:S})}t.isShowMarkLine&&(b.markLine={data:[{type:t.markLineType}]}),i.push(b)}return i}),d=bt(()=>{const i=t.yAxis;return i==null?void 0:i.map((c,p)=>({type:"value",minInterval:t.yAxisMinInterval,splitLine:{show:p===0?t.yAxisLeftSplitLineShow:t.yAxisRightSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:p===0?t.yAxisLeftSplitLineType:t.yAxisRightSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{fontSize:n,show:t.yAxisLabelShow,color:t.yAxisLabelColor,formatter:u=>Mt(c.axisLabelFormatter,u)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:p===0?t.yAxisLeftName:t.yAxisRightName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:p===0?"right":"left"},max:t.yAxisMaxValue||null}))});return{legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n}},tooltip:{trigger:"axis",show:t.tooltipShow,formatter:i=>{const c=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const f=t.seriesTypes;for(let y=0;y<c;y++){const h=f[y],{tooltipFormatter:b}=h||{},{marker:m,seriesName:w,name:g,value:S,data:C}=i[y]||{};y===0&&(p+=`${g}<br/>`),p+=Dt(b||u,{textData:Object.assign({marker:m,name:g,value:S,seriesName:w,a:w,b:g,c:S},C)},{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:it(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:it(d),series:it(s)}},Kc=(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 Hc(a,l,r);case"line":return Wc(a,l,r);case"pie":return Yc(a,l,r);case"comboGraph":return qc(a,l,r);default:return{}}})(t,o,n)),dt=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...dt(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},Gl=(t,o)=>{var b;const n=J.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:d=[],rightAxisList:i=[],queryColumnList:c=[],indicators:p=[]}=t;Wl(n,o);const u=n,f=[...a,...l,...r,...s,...d,...i,...c,...p],y=[];for(const m of f){const w=dt((m==null?void 0:m.conditions)||[]);if(w!=null&&w.length){const g=w.filter(S=>Yl(S,o)?(S==null?void 0:S.dataType)==="component":!1).map(S=>{const C=Yl(S,o),k={};return S!=null&&S.dateFormat&&(k.format=S.dateFormat),{conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:C.id,keyName:S.fieldValue,rule:S.rule,notGlobal:!0,indexCode:S.indexCode,typeGuid:S.typeGuid,indexCodeNum:S.indexCodeNum,...k}});if(g!=null&&g.length)for(const S of g)y.find(C=>C.keyName===S.keyName)||y.push(S)}}const h=y.length;for(let m=0;m<h;m++){const w=y[m];if(w&&!((b=Object.keys(w))!=null&&b.length)||(w==null?void 0:w.conditionKey)==="parentCode")continue;const{id:g,keyName:S,prop:C,format:k,dataType:_="component",customValue:E}=w,O=Hl(w);Un({sqlCondition:O,renderUsedComponents:o,id:g,dateFormat:k,prop:C,keyName:S,dataType:_,customValue:E}),u.push(O)}for(let m=u.length-1;m>=0;m--){const w=u[m];w.globalCondition||dt(u).find(S=>S.alias===w.alias&&S.globalCondition)&&u.splice(m,1)}return u},no=(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||""};Un({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 Hl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:d="NONE",notGlobal:i=!1,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f="component"}=t;let y=n||o;return y&&s&&(y+=`-${s}`),{rule:d,label:a,fieldName:l,fieldValue:"",valueType:r,alias:y,globalCondition:!i,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f}}const Xc=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function Wl(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)Wl(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:d="component",customValue:i}=n,c=Hl(n);Un({sqlCondition:c,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:d,customValue:i});for(const p in c)n[p]=c[p];for(const p of Xc)delete n[p]}}function Un(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:d,customValue:i,operateValue:c,operateMode:p,operateType:u}=t,f=n.find(S=>S.id===a),{value:y,format:h="YYYY-MM-DD",operate:b,type:m="",useCurrentTime:w}=f||{},g=l||h;if(we(m,"date")){let S;if(w?S=he():S=he(y),b&&y){const{mode:C,type:k,value:_}=b;if(_)switch(k){case"add":S=S.add(_,C);break;case"minus":S=S.subtract(_,C);break}}if(c&&p&&u)switch(u){case"add":S=S.add(c,p);break;case"minus":S=S.subtract(c,p);break}o.fieldValue=(S==null?void 0:S.format(g))||"",o.dateFormat=g}else if(m==="ecanRangePicker"){const{interval:S,intervalUnit:C,startTime:k,endTime:_}=f||{};let E=r;if(!r){const B=s==null?void 0:s.split("-");B!=null&&B.length&&(E=B[B.length-1])}if(!E)return;let O=null;if(w&&(E==="startTime"?O=he().subtract(S,C):E==="endTime"&&(O=he())),f[E]&&(O=he(f[E])),b){const{type:B,value:L,mode:D}=b;switch(B){case"add":O=O&&O.add(L,D);break;case"minus":O=O&&O.subtract(L,D)}}if(c&&p&&u){if(c==="rangeValue"){if(k&&_){const B=he(_).diff(he(k),p)+1;switch(u){case"add":O=O&&O.add(B,p);break;case"minus":O=O&&O.subtract(B,p)}}}else if(!isNaN(+c))switch(u){case"add":O=O&&O.add(c,p);break;case"minus":O=O&&O.subtract(c,p)}}if(O&&(o.fieldValue=O==null?void 0:O.format(g)),E==="rangeValue"&&k&&_){const B=Qc(g);B&&(o.fieldValue=he(_).diff(he(k),B)+1)}o.dateFormat=g}else{const S=y&&y.match(/\{(.+?)\}/g);S!=null&&S.length?o.fieldValue="":o.fieldValue=y}d===""&&(o.fieldValue=i||"")}const Bo=t=>{let o="";switch(t){case"ecanDatePicker":case"ecanRangePicker":o="dateChange";break;case"ecanTimeDisplay":o="timeChange";break;case"ecanSelect":case"ecanTreeSelect":o="selectChange";break;case"ecanTabs":o="tabChange";break;case"ecanInput":o="inputChange";break;case"ecanCheckbox":case"ecanRadio":o="checkboxChange";break;case"ecanText":o="valueChange";break;case"ecanImage":o="click";break}return o};function Yl(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 Qc(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 Jc(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=Zc(a))}}return n}function Zc(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3===0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),t.indexOf(".")>-1?l=o+"."+a:l=o,l}const ql=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],Kl=t=>({0:"文本",1:"数值",2:"日期"})[t],Xl=t=>t==="0"?"手工录入":t==="1"?"系统取数":t==="2"?"运算加工":"",Ql=t=>{let o="";switch(t){case"1":o="人力系统";break;case"2":o="绩效系统";break;case"3":o="预算系统";break;case"4":o="财务系统";break;case"5":o="成本系统";break;case"6":o="物流系统";break;case"7":o="固定资产系统";break;case"8":o="OA办公系统";break;case"9":o="电子档案系统";break;case"10":o="个人收入系统";break;case"11":o="奖金二次分配系统";break;case"12":o="财务管理系统";break;case"13":o="报销系统";break;case"14":o="科研管理系统";break;case"15":o="审计系统";break;case"16":o="分组器系统";break}return o},Jl=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",ed=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:Ma,CaretDownOutlined:Ia,LoadingOutlined:Fs,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 k;const a=(k=window==null?void 0:window.config)==null?void 0:k.pageId,l=e.inject(Ee),r=e.unref(e.inject(Be)),s=e.inject("setItemDisabled",_=>!1),d=e.ref([]),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),f=e.ref(!1);e.watch(()=>t.data,_=>{t.isSub&&(_==null||_.forEach(E=>{var O;E!=null&&E.isLeaf||(O=E.dataViewColumns)==null||O.forEach(B=>{B.show=!0,B.edit=!1,B.title&&(B.label=B.title)})}),d.value=_)},{deep:!0,immediate:!0});const y=()=>{var _;t.isSub||(_=e.unref(i))==null||_.removeEventListener("scroll",g)},h=async _=>{var B;if(e.unref(p))return;const E=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const O={source:t.source,pageId:a,dataSourceId:E,indexName:u.value};_?(_.loading=!0,O.indexTypeGuid=_.indexTypeGuid,O.isLeaf=_.isLeaf):c&&(O.queryRequest={pageSize:c.pageSize,pageNum:c.currentPage});try{const L=await l.post(`${Se}/diagram/sourceList`,O,{headers:{Authentication:r,operateContext:"ygt"}}),{success:D,data:I={}}=L.data;if(D){const{rows:$=[],total:x=0}=I;$==null||$.forEach(V=>{var T;(_==null?void 0:_.isLeaf)==="1"||t.graphicConfig.dataSourceId?(T=V.dataViewColumns)==null||T.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)}):V.show=!1}),_?(_.children=$,_.show=!0,$!=null&&$.length||(_.noData=!0)):(d.value=e.unref(d).concat($),c.totalResult=+x,((B=e.unref(d))==null?void 0:B.length)>=x&&y())}_&&(_.loading=!1),p.value=!1}catch{_&&(_.loading=!1),p.value=!1}},b=async _=>{const E=d.value[_],{children:O=[]}=E;O!=null&&O.length?E.show=!E.show:!E.noData&&E.isLeaf?h(E):E.noData&&(E.show=!E.show)},m=(_,E)=>{o("onDragStart",_,E)},w=_=>{_.show=!_.show},g=_=>{_.target.scrollTop+_.target.clientHeight+20>=_.target.scrollHeight&&(c.currentPage++,h())},S=async()=>{await h(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&c.totalResult>e.unref(d).length&&(c.currentPage++,S())})},C=async _=>{var E;y(),f.value=!0,c.currentPage=1,c.totalResult=0,d.value=[],u.value=_,await S(),f.value=!1,(E=e.unref(i))==null||E.addEventListener("scroll",g)};return e.onMounted(async()=>{var _;t.isSub||(S(),(_=e.unref(i))==null||_.addEventListener("scroll",g))}),e.onUnmounted(()=>{y()}),n({handleSearch:C}),{columnRef:i,sourceList:d,searchLoading:f,onToggleGroup:b,onToggleSource:w,setItemDisabled:s,onDragStart:m,mapDataSetScope:Kl,mapScope:ql,getLoadType:Xl,getUseType:Ql,getSourceType:Jl}}}),xy="",td={key:0,class:"no-data"},od={class:"column-item"},nd=["onClick"],ad={key:3,class:"item-name"},ld={key:0},rd={class:"column-item"},id={key:0},sd={key:1},cd={key:2},dd=["onClick"],pd={class:"column-child-item"},ud={class:"field"},fd={class:"column-child-item-name"};function md(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),d=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),c=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(f,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var y;return[!((y=t.sourceList)!=null&&y.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",td,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(h,b)=>(e.openBlock(),e.createElementBlock("div",{key:h.indexTypeGuid||h.id},[e.createElementVNode("div",od,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleGroup(b)},[h.loading?(e.openBlock(),e.createBlock(s,{key:0})):h.show?(e.openBlock(),e.createBlock(d,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),h.isLeaf?(e.openBlock(),e.createElementBlock("span",ad,e.toDisplayString(h.indexTypeCode+"."+h.indexTypeName),1)):e.createCommentVNode("",!0)],8,nd)]),h.show?(e.openBlock(),e.createElementBlock("div",ld,[e.createVNode(c,{data:h.children,isSub:!0,hasChildren:h.isLeaf==="0",source:"INDICATOR_LIB",onOnDragStart:t.onDragStart},null,8,["data","hasChildren","onOnDragStart"])])):e.createCommentVNode("",!0)]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.sourceList,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:e.normalizeClass(t.setItemDisabled(h.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",rd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(h.loadType)),1),h.useType?(e.openBlock(),e.createElementBlock("div",id,"数据使用系统:"+e.toDisplayString(t.getUseType(h.useType)),1)):e.createCommentVNode("",!0),h.systemSource?(e.openBlock(),e.createElementBlock("div",sd,"制度出处:"+e.toDisplayString(h.systemSource),1)):e.createCommentVNode("",!0),h.dataTo?(e.openBlock(),e.createElementBlock("div",cd,"数据来源:"+e.toDisplayString(t.getSourceType(h.dataTo)),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:b=>t.onToggleSource(h)},[h.show?(e.openBlock(),e.createBlock(d,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((h.indexCode?h.indexCode:"")+" "+h.name),1)],8,dd)]),_:2},1024)]),h.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:h.dataViewColumns,"onUpdate:modelValue":b=>h.dataViewColumns=b,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(h.dataViewColumns),onStart:b=>t.onDragStart(b,h)},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",pd,[e.createElementVNode("span",ud," 【"+e.toDisplayString(b.scope==="FIELD"?t.mapDataSetScope(b.genericType):t.mapScope(b.scope))+"】 ",1),e.createElementVNode("span",fd,e.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const hd=oe(ed,[["render",md],["__scopeId","data-v-e2cb0767"]]),bd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:Ma,CaretDownOutlined:Ia,IndSourceList:hd,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Et,ATooltip:j.Tooltip},setup(){var k;const t=(k=window==null?void 0:window.config)==null?void 0:k.pageId,o=e.inject(Ee),n=e.unref(e.inject(Be)),a=e.inject(Ie),l=e.computed(()=>{var _;return(_=e.unref(a))==null?void 0:_.graphicConfig}),r=e.computed(()=>{var _;return(_=e.unref(l))==null?void 0:_.dataSourceId}),s=e.ref([]),d=e.ref(!1),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Wt),u=e.ref(""),f=async()=>{if(e.unref(w).source==="INDICATOR_LIB")return;d.value=!0;const _={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:c.pageSize,pageNum:c.currentPage}};_.source==="EDV_DATA_SET"&&(_.edvDataSetName=_.indexName,delete _.indexName);try{const E=await o.post(`${Se}/diagram/sourceList`,_,{headers:{Authentication:n,operateContext:"ygt"}});d.value=!1;const{success:O,data:B={}}=E.data;if(O){const{rows:L=[],total:D=0}=B;L==null||L.forEach(I=>{var $;I.show=!1,($=I.dataViewColumns)==null||$.forEach(x=>{x.show=!0,x.edit=!1,x.title&&(x.label=x.title)})}),s.value=L,c.totalResult=+D}}catch{d.value=!1}},y=_=>{s.value[_].show=!s.value[_].show},h=()=>{var _;c.currentPage=1,f(),e.unref(w).source==="INDICATOR_LIB"&&((_=e.unref(i))==null||_.handleSearch(e.unref(u)))},b=J.debounce(()=>{c.currentPage=1,f()},200),m=(_,E)=>{c.pageSize=E,c.currentPage=_,f()};e.onMounted(()=>{f()});const w=e.inject(Ce),g=e.computed(()=>{const _=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let E=[];for(const O in e.unref(w))if(Object.prototype.hasOwnProperty.call(e.unref(w),O)&&_.includes(O)){const B=e.unref(w)[O];Array.isArray(B)&&(E=E.concat(B))}return E}),S=(_=[])=>{let E=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const O of e.unref(g))if(!_.find(L=>L.parentId===O.parentId)){E=!0;break}}else for(const O of e.unref(g))if(!_.find(L=>L.typeGuid===O.typeGuid)){E=!0;break}return E};return e.provide("setItemDisabled",S),{dataSourceList:s,dataSourceLoading:d,pagination:c,onToggleGroup:y,mapScope:ql,mapDataSetScope:Kl,onSearch:h,onChange:b,source:p,onPaginationChange:m,searchText:u,setItemDisabled:S,onDragStart:(_,E)=>{const O=E.dataViewColumns[_.oldIndex];let B={};E.dataSetParams&&(B=E.dataSetParams),O&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...O,dataTo:E.dataTo,dataSetParams:B})),E.dataTo==="1"&&(E!=null&&E.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(E.hrpIndexVariates)),E.dataTo==="2"&&(E!=null&&E.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(E.dataSetParams)))},getSourceType:Jl,getLoadType:Xl,getUseType:Ql,graphicConfig:w,indSourceRef:i}}}),_y="",yd={class:"data-source-list"},gd={class:"columns"},Cd={class:"column-item"},wd={key:0},kd={key:1},xd=["onClick"],_d={key:0},Sd={class:"column-child-item"},Nd={class:"column-child-item-name"};function Td(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),d=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),c=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin"),y=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",yd,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=h=>t.searchText=h),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(d,{key:0,ref:"indSourceRef",data:t.dataSourceList,hasChildren:!t.graphicConfig.dataSourceId,isSub:!1,graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onSetItemDisabled:t.setItemDisabled,onOnDragStart:t.onDragStart},null,8,["data","hasChildren","graphicConfig","onSetItemDisabled","onOnDragStart"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",gd,[e.createVNode(f,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(h,b)=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:e.normalizeClass(t.setItemDisabled(h.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",Cd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(h.loadType)),1),h.useType?(e.openBlock(),e.createElementBlock("div",wd,"数据使用系统:"+e.toDisplayString(t.getUseType(h.useType)),1)):e.createCommentVNode("",!0),h.systemSource?(e.openBlock(),e.createElementBlock("div",kd,"制度出处:"+e.toDisplayString(h.systemSource),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleGroup(b)},[h.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(c,{key:1})),e.createTextVNode(" "+e.toDisplayString((h.indexCode?h.indexCode:"")+" "+h.name)+"【"+e.toDisplayString(t.getSourceType(h.dataTo))+"】 ",1)],8,xd)]),_:2},1024)]),h.show?(e.openBlock(),e.createElementBlock("div",_d,[e.createVNode(u,{modelValue:h.dataViewColumns,"onUpdate:modelValue":m=>h.dataViewColumns=m,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(h.dataViewColumns),onStart:m=>t.onDragStart(m,h)},{item:e.withCtx(({element:m})=>[e.createElementVNode("div",Sd,[e.createTextVNode(" 【"+e.toDisplayString(m.scope==="FIELD"?t.mapDataSetScope(m.genericType):t.mapScope(m.scope))+"】 ",1),e.createElementVNode("span",Nd,e.toDisplayString(m.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(y,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=h=>t.pagination.pageSize=h),total:t.pagination.totalResult,"show-total":h=>`共 ${h} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=h=>t.pagination.currentPage=h),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const Ad=oe(bd,[["render",Td],["__scopeId","data-v-cac5fe5f"]]),Od=e.defineComponent({name:"DataList",components:{DataSourceList:Ad,DataViewList:ri},setup(){return{source:e.inject(Wt)}}});function Ed(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),d=e.resolveComponent("data-source-list");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.source==="SQL_VIEW"?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),t.source==="INDICATOR_LIB"||t.source==="EDV_DATA_SET"?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)],64)}const Bd=oe(Od,[["render",Ed]]),Zl={mounted(t){t.focus()}},Vd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Et,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:za},setup(t,{expose:o}){var B;const n=(B=window==null?void 0:window.config)==null?void 0:B.pageId,a=e.inject(Ee),l=e.unref(e.inject(Be)),r=e.inject(Ce),s=e.inject(Ne),d=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),c=e.ref([]),p=e.ref("1"),u=e.ref([]),f=L=>{const D=t.sortList.filter($=>!e.unref(u).find(x=>x.columnName===$.name)||L.columnName===$.name),I=[];return D.forEach(($,x)=>{I.includes($.name)?$.name=`${$.name}_ecanrepeat_${x}`:I.push($.name)}),D},y=async()=>{try{const L=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(d),dataViewId:e.unref(i),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:n,pageFlag:!0,edvDataSetId:e.unref(r).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:D,data:I=[]}=L.data;D&&(c.value=I==null?void 0:I.slice(0,200))}catch(L){console.error(L)}},h=()=>{var x,V;const L=((x=e.unref(r)[t.type])==null?void 0:x.slice())||[],D=L[t.index],{label:I,name:$}=t.item;e.unref(p)==="2"?D.sort={label:I,columnName:$,type:"CUSTOM",customOrderColumns:e.unref(c)}:e.unref(p)==="1"&&((V=e.unref(u))!=null&&V.length?D.sort=J.cloneDeep(e.unref(u)):delete D.sort),s({[t.type]:L})};let b=!1;const m=()=>{b=!0},w=e.ref(!1),g=L=>{var I;const{sort:D}=L;D?Array.isArray(D)?(p.value=((I=D[0])==null?void 0:I.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=J.cloneDeep(D):u.value=[]):(p.value=(D==null?void 0:D.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[J.cloneDeep(D)]:u.value=[]):u.value=[],w.value=!0},S=()=>{w.value=!1},C=()=>{e.unref(p)==="2"?(b&&h(),b=!1):h(),S()};return o({showModal:g}),e.watch(w,L=>{var D,I;if(L){const $=(I=(D=t.item)==null?void 0:D.sort)==null?void 0:I.customOrderColumns;$==null?y():c.value=$}else c.value=[];window.changeShowTable&&window.changeShowTable(!L)},{flush:"post"}),{visible:w,customSortList:c,activeKey:p,combSortList:u,getSortOptions:f,onChange:m,onDeleteConfig:()=>{var I;const L=((I=e.unref(r)[t.type])==null?void 0:I.slice())||[],D=L[t.index];delete D.sort,s({[t.type]:L}),S()},onCancel:C,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:L=>{u.value.splice(L,1)},onColumnChange:L=>{const D=e.unref(u).find(I=>I.columnName===L);if(D){const I=t.sortList.find($=>$.name===L);I&&(D.label=I.label,I.defaultCode?D.defaultCode=I.defaultCode:delete D.defaultCode)}}}}}),Sy="",Ld={class:"button-wrapper"},vd={class:"list-wrapper"},$d={class:"button-wrapper"},Fd={class:"sort-item"};function Id(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-tabs"),y=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(y,{title:"排序配置",visible:t.visible,"destroy-on-close":"",width:"50%",onCancel:t.onCancel,bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null},{default:e.withCtx(()=>[e.createVNode(f,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=h=>t.activeKey=h)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Ld,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",vd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(h,b)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:b},[e.createVNode(d,{value:h.columnName,"onUpdate:value":m=>h.columnName=m,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(h),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(d,{value:h.order,"onUpdate:value":m=>h.order=m,style:{"margin-left":"10px",width:"100px"},placeholder:"升/降序"},{default:e.withCtx(()=>[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})]),_:2},1032,["value","onUpdate:value"]),e.createVNode(c,{style:{color:"red","margin-left":"10px"},onClick:m=>t.handleDeleteSort(b)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",$d,[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]=h=>t.customSortList=h),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:h})=>[e.createElementVNode("div",Fd,e.toDisplayString(h),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Dd=oe(Vd,[["render",Id],["__scopeId","data-v-6a468e35"]]),Md=e.defineComponent({name:"CustomGroupModal",directives:{focus:Zl},components:{CloseOutlined:Xt,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 R;const n=e.inject(Ee),a=(R=window==null?void 0:window.config)==null?void 0:R.pageId,l=e.unref(e.inject(Be));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),d=e.ref(null),i=e.ref([]),c=e.ref([]),p=e.computed(()=>{const N=e.unref(c).map(v=>v.title);return new Set(N)}),u=e.ref([]);e.watch(()=>e.unref(c).length,N=>{u.value=new Array(N).fill(!1)});const f=e.computed(()=>{let N=0;return e.unref(c).forEach(v=>{var A;(A=v.data)==null||A.forEach(F=>{F.checked&&N++})}),N}),y=()=>{const N=e.unref(d);if(!N){j.message.error("创建分组名不能空");return}e.unref(p).has(N)?j.message.error("分组名已存在,请重新命名"):(e.unref(c).push({title:N,data:[]}),r=!0)},h=N=>{e.unref(c).splice(N,1),r=!0},b=e.ref(null),m=()=>{if(e.unref(f)===0){j.message.error("当前移入分组已选个数为0");return}const N=e.unref(b);if(N==null){j.message.error("请选择移入分组");return}if(!e.unref(c)[N]){j.message.error("移入分组不存在,请重新选择");return}const v=[],A=e.unref(c).length;for(let F=0;F<A;F++){const M=e.unref(c)[F];e.unref(c)[F].data=M.data.filter(G=>(G.checked&&v.push({...G,checked:!1}),!G.checked))}e.unref(c)[N].data=[...v,...e.unref(c)[N].data],r=!0},w=N=>{e.unref(u)[N]=!0},g=N=>{e.unref(u)[N]=!1},S=(N,v)=>{const A=N.target.value;e.unref(p).has(A)&&j.message.error("组名不能相同,请修改"),e.unref(c)[v].title=A,r=!0},C=e.inject(Ce),k=e.inject(Ne),_=e.computed(()=>e.unref(C).source),E=e.computed(()=>e.unref(C).dataViewId),O=e.ref(!1),B=()=>{var W,X;const N=e.unref(c);let v="";e.unref(O)&&(v=(W=N[0])==null?void 0:W.title);const A=N==null?void 0:N.length,F={};for(let Q=1;Q<A;Q++){const Z=N[Q]||{},{title:ae,data:le}=Z;F[ae]=(le==null?void 0:le.map(_e=>_e.label))||[]}const M=((X=e.unref(C)[t.type])==null?void 0:X.slice())||[],G=M[t.index];G.customGroup={groupInfoMap:F,otherGroupName:v},k({[t.type]:M})},L=e.ref(!1),D=()=>{L.value=!0},I=()=>{L.value=!1},$=()=>{I(),r&&B(),r=!1},x=()=>{r=!0},V=new Set,T=async()=>{const N=t.item.customGroup||{},v=N.otherGroupName,A=N.groupInfoMap;(v===""||v==null)&&(O.value=!1),e.unref(c)[0]={title:v||"未分组",data:[]};let F=1;for(const M in A)if(Object.prototype.hasOwnProperty.call(A,M)){const W=A[M].map(X=>(V.add(X),{label:X,checked:!1}));e.unref(c)[F]={title:M,data:W},F++}await P()},P=async()=>{var N;try{const v=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(_),dataViewId:e.unref(E),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(C).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:A,data:F=[]}=v.data;if(A){const M=[];(N=F==null?void 0:F.slice(0,200))==null||N.forEach(G=>{V.has(G)||M.push({label:G,checked:!1})}),e.unref(c)[0].data=M}}catch(v){console.error(v)}};return e.watch(L,N=>{N&&T(),window.changeShowTable&&window.changeShowTable(!N)},{flush:"post"}),o({showModal:D}),{visible:L,title:s,activeKey:i,customGroupList:c,onCancel:$,useOtherGroup:O,selectCount:f,createGroupTitle:d,onAddGroup:y,onDeleteGroup:h,onMoveInGroup:m,selectGroupIndex:b,onEditTitle:w,onTitleChange:S,onFinishEditTitle:g,onUseOtherGroup:x,customGroupEditTitleList:u}}}),Ny="",Ty="",Pd={class:"custom-group-header"},jd={class:"move-and-create"},Rd={class:"select-tip"},Ud={class:"select-count"},zd={class:"create-group"},Gd={class:"custom-group-content"},Hd=["onClick"],Wd={class:"extra"},Yd={class:"custom-group-list"},qd={class:"text"};function Kd(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),c=e.resolveComponent("a-input"),p=e.resolveComponent("a-checkbox"),u=e.resolveComponent("a-tag"),f=e.resolveComponent("close-outlined"),y=e.resolveComponent("a-checkable-tag"),h=e.resolveComponent("a-collapse-panel"),b=e.resolveComponent("a-collapse"),m=e.resolveComponent("a-modal"),w=e.resolveDirective("focus");return e.openBlock(),e.createBlock(m,{title:t.title,visible:t.visible,"destroy-on-close":"",width:"50%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column"},footer:null,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Pd,[e.createElementVNode("div",jd,[e.createElementVNode("div",null,[e.createElementVNode("span",Rd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Ud,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(d,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=g=>t.selectGroupIndex=g),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,S)=>(e.openBlock(),e.createBlock(s,{key:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createElementVNode("div",zd,[e.createTextVNode(" 创建分组: "),e.createVNode(c,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[1]||(o[1]=g=>t.createGroupTitle=g),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])])]),e.createElementVNode("div",null,[e.createVNode(p,{checked:t.useOtherGroup,"onUpdate:checked":o[2]||(o[2]=g=>t.useOtherGroup=g),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])])]),e.createElementVNode("div",Gd,[e.createVNode(b,{activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=g=>t.activeKey=g),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,S)=>(e.openBlock(),e.createBlock(h,{key:S},{header:e.withCtx(()=>[t.customGroupEditTitleList[S]?e.withDirectives((e.openBlock(),e.createBlock(c,{key:1,class:"edit-title-input",value:g.title,size:"small",onChange:C=>t.onTitleChange(C,S),onBlur:C=>t.onFinishEditTitle(S),onPressEnter:C=>t.onFinishEditTitle(S)},null,8,["value","onChange","onBlur","onPressEnter"])),[[w]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(C=>t.onEditTitle(S),["prevent","stop"])},e.toDisplayString(g.title),9,Hd))]),extra:e.withCtx(()=>[e.createElementVNode("div",Wd,[S===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),S!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(f,{onClick:e.withModifiers(C=>t.onDeleteGroup(S),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Yd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.data,(C,k)=>(e.openBlock(),e.createBlock(y,{color:"red",checked:C.checked,"onUpdate:checked":_=>C.checked=_,class:"custom-group",key:k},{default:e.withCtx(()=>[e.createElementVNode("span",qd,e.toDisplayString(C.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const Xd=oe(Md,[["render",Kd],["__scopeId","data-v-a0733a80"]]);let ge=(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 Qd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zn={},Jd={get exports(){return zn},set exports(t){zn=t}};(function(t,o){(function(n,a){t.exports=a()})(Qd,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var d=s.add;s.add=function(c,p){return c=Number(c),this.$utils().p(p)===a?this.add(3*c,n):d.bind(this)(c,p)};var i=s.startOf;s.startOf=function(c,p){var u=this.$utils(),f=!!u.u(p)||p;if(u.p(c)===a){var y=this.quarter()-1;return f?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return i.bind(this)(c,p)}}})})(Jd);const Zd=zn;he.extend(Zd);const ep=e.defineComponent({name:"Condition",components:{CloseOutlined:Xt,DownOutlined:As,AppstoreAddOutlined:cn,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:kn},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 Ht,Nt,$e,tt,ot,nt,Fe,Tt,at,ft,At,Wo,bo,yo,go;const o=(Ht=window==null?void 0:window.config)==null?void 0:Ht.pageId,n=e.inject(Ce),a=e.inject(Ee),l=e.unref(e.inject(Be)),r=e.inject(ua),s=e.inject(Ue),d=e.ref(!1),i=he(),c=e.computed(()=>{var q;const H=[];return(q=e.unref(s))==null||q.forEach(ee=>{const{keyName:ne="",id:re="",type:ue}=ee;ue==="ecanRangePicker"?H.push({value:`${re}-startTime`,label:`${ne||re}-开始时间值`,keyName:`${ne||re}-startTime`,id:re},{value:`${re}-endTime`,label:`${ne||re}-结束时间值`,keyName:`${ne||re}-endTime`,id:re}):H.push({value:re,label:`${ne||re}`,keyName:`${ne||re}`,id:re})}),H}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(c)]),u=e.computed(()=>{var H;return(H=e.unref(n))==null?void 0:H.dataViewId}),f=e.computed(()=>{var H;return(H=e.unref(n))==null?void 0:H.source}),y=e.ref(!1),h={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},b=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],m=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),w=e.ref([{key:0,value:"",label:"年",type:"years",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"年前",afterLabel:"年后",beforeText:"年初",afterText:"年末"},{key:1,value:"",label:"季度",type:"quarters",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个季度前",afterLabel:"个季度后",beforeText:"季度初",afterText:"季度末"},{key:2,value:"",label:"月",type:"months",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个月前",afterLabel:"个月后",beforeText:"月初",afterText:"月末"},{key:3,value:"",label:"周",type:"weeks",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"周前",afterLabel:"周后",beforeText:"",afterText:""},{key:4,value:"",label:"天",type:"days",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"天前",afterLabel:"天后",beforeText:"今天",afterText:""}]),g=[{label:"年份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"季的季度",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"月的月份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"周的周",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"天的日期",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"}],S=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],C=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],k=e.ref({fieldName:(Nt=t.data)==null?void 0:Nt.fieldName,fieldType:($e=t.data)==null?void 0:$e.fieldType,rule:(tt=t.data)==null?void 0:tt.rule,id:(ot=t.data)==null?void 0:ot.id,fieldValue:_(),label:(nt=t.data)==null?void 0:nt.label,targetSource:"",typeGuid:(Fe=t.data)==null?void 0:Fe.typeGuid,indexCode:(Tt=t.data)==null?void 0:Tt.indexCode,indexCodeNum:(at=t.data)==null?void 0:at.indexCodeNum,dataType:((ft=t.data)==null?void 0:ft.dataType)||"",componentId:((At=t.data)==null?void 0:At.componentId)||"",useCurrentTime:!!((Wo=t.data)!=null&&Wo.useCurrentTime),keyValue:(bo=t.data)==null?void 0:bo.keyValue,modelKey:(yo=t.data)==null?void 0:yo.modelKey,prop:(go=t.data)==null?void 0:go.prop});function _(){const{fieldType:H="",dataType:q="",fieldValue:ee=""}=t.data;if(H==="DATE"&&q==="time")return ee&&he(ee);if(q==="component"){const ne=e.unref(c).find(re=>re.keyName===ee);return ne?ne.value:ee}else return ee}const E=e.ref([]),O=e.ref(!1),B=e.computed(()=>k.value.fieldType==="DATE"),L=e.computed(()=>{const H=t.type,{source:q}=e.unref(n);let ee=[];const ne=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],re=["controlList","sqlConditions","variableList","variableConditions"];if(q==="EDV_DATA_SET")ee=E.value;else if(ne.includes(H)){let ue=[];for(const U in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),U)&&!re.includes(U)){const z=e.unref(n)[U];Array.isArray(z)&&(ne.includes(U)?ue=ue.concat(z.filter(Y=>Y.show)):ue=ue.concat(z))}ee=ue}else["leftAxisList","rightAxisList","indicators"].includes(H)&&(ee=e.unref(r));return ee.map(ue=>({...ue,label:ue.label||ue.title,value:ue.name}))}),{updateCondition:D,deleteCondition:I,addCondition:$}=e.inject(wo,{updateCondition:(H,q,ee)=>{},deleteCondition:(H,q)=>{},addCondition:(H,q,ee)=>{}}),x=()=>{I(t.index,t.path)};e.watch(k,H=>{const q=J.cloneDeep(H);H.fieldType==="DATE"&&H.dataType!=="component"&&H.fieldValue&&(q.fieldValue=H.fieldValue.format(H.dateFormat)),D(q,t.index,t.path)},{deep:!0}),e.watch(d,H=>{k.value.fieldValue="",k.value.useCurrentTime=H});const V=H=>{var ie;const q=e.unref(L).find(se=>se.value===H)||{},{name:ee,genericType:ne,id:re,edvDataSetId:ue,label:U,typeGuid:z,indexCode:Y,indexCodeNum:K}=q;k.value={id:re,fieldName:ee,fieldType:ne,label:U,rule:"",fieldValue:ne==="DATE"?null:void 0,targetSource:"",typeGuid:z,indexCode:Y,edvDataSetId:ue,indexCodeNum:K,dataType:"",useCurrentTime:!1,keyValue:((ie=e.unref(k))==null?void 0:ie.keyValue)||ge(),modelKey:"",prop:""}},T=H=>{const q=e.unref(c).find(ee=>ee.value===H)||{};e.unref(k).componentId=q.id||""},P=e.computed(()=>{const H=e.unref(k).fieldType;return H==="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"}]:H==="NUMBER"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:H==="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"}]}),R=e.computed(()=>{let H="";const q=e.unref(P).find(ee=>ee.value===e.unref(k).rule);return q&&(H=q.label),H}),N=e.computed(()=>{let H={fontSize:"12px"};return e.unref(R)||(H={...H,position:"absolute",right:"11px",top:"9px"}),H}),v=e.ref([]),A=async()=>{var H;if(!(e.unref(v).length>0))try{const q=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(f),dataViewId:e.unref(u),groupColumn:e.unref(k).fieldName,hrpIndexTypeGuid:e.unref(k).typeGuid,pageId:o,pageFlag:!0,edvDataSetId:e.unref(k).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:ee,data:ne=[]}=q.data;ee&&(v.value=(H=ne==null?void 0:ne.slice(0,200))==null?void 0:H.map(re=>({label:re,value:re})))}catch(q){console.error(q)}},F=H=>{e.unref(k).rule=H,e.unref(k).fieldValue=e.unref(k).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(H)&&A()},M=H=>{e.unref(k).dataType=H,e.unref(k).fieldValue="",e.unref(k).modelKey="",e.unref(k).prop=""},G=e.ref(),W=H=>{G.value=H,e.unref(k).fieldValue=(H==null?void 0:H.join(","))||""},X=H=>{const{keyPath:q}=H;e.unref(k).rule=q[0],e.unref(k).dataType=q[1],e.unref(k).dateFormat=q[2],e.unref(k).fieldValue="",e.unref(k).modelKey="",e.unref(k).prop=""};e.onMounted(async()=>{var re,ue,U,z,Y,K,ie,se,te,be;if(k.value.dataType=((re=t.data)==null?void 0:re.dataType)||"",k.value.componentId=((ue=t.data)==null?void 0:ue.componentId)||"",k.value.keyValue=(U=t.data)==null?void 0:U.keyValue,k.value.modelKey=(z=t.data)==null?void 0:z.modelKey,k.value.prop=(Y=t.data)==null?void 0:Y.prop,e.unref(k).fieldType==="DATE"){const{activeKey:de,dateCalcTypes:ce=[]}=t.data||{};if(e.unref(k).dateFormat=(K=t.data)==null?void 0:K.dateFormat,e.unref(k).activeKey=de,e.unref(k).calcWays=((ie=t.data)==null?void 0:ie.calcWays)||[],e.unref(k).dateCalcTypes=ce,e.unref(k).useCurrentTime&&e.unref(k).dataType!=="component"&&(d.value=!0),de===5){const ye=e.unref(k).calcWays[0];if(ye){const fe=ye.split("-");e.unref(m).expression=fe[0],e.unref(m).around=fe[1]}e.unref(m).unit=ce[0]||"YEAR"}else{e.unref(k).radioValue=((se=t.data)==null?void 0:se.radioValue)||"";const ye=e.unref(w).find(fe=>{var ke;return fe.key===((ke=t.data)==null?void 0:ke.activeKey)});ye&&Xe(ye,t.data)}}else G.value=((be=(te=t.data)==null?void 0:te.fieldValue)==null?void 0:be.split(","))||[];const{fieldType:H,fieldName:q,rule:ee}=k.value;H!=="DATE"&&q&&ee&&["IN","NOT_IN"].includes(ee)&&A();const{source:ne}=e.unref(n);ne==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(de=>{de.data.success&&(console.log(de.data),E.value=de.data.data.column.map(ce=>({...ce,genericType:ce.columnCategory==="0"?"TEXT":ce.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:de.data.data.id,name:ce.columnName,label:ce.columnName})))}).catch(de=>{console.error(de)})});const Q=H=>{if(e.unref(k).activeKey===H){e.unref(w)[H].radioValue=e.unref(k).radioValue,e.unref(w)[e.unref(k).activeKey]&&(e.unref(w)[e.unref(k).activeKey].radioValue=e.unref(k).radioValue,e.unref(k).radioValue==="1"?e.unref(w)[H].beforeNum=e.unref(k).calcWays[0]:e.unref(k).radioValue==="2"&&(e.unref(w)[H].afterNum=e.unref(k).calcWays[0]));return}e.unref(w).forEach(q=>{q.beforeNum=0,q.afterNum=0,q.radioValue="1",q.value=""})},Z=(H,q)=>{y.value=!0;const ee=H.target.value,ne=q.type,re=e.unref(k).dateFormat,ue=Math.abs(q.beforeNum),U=q.afterNum;q.value=pe(ee,ne,re,ue,U)},ae=H=>{const q=e.unref(k).activeKey;if(H!==q)return;let ee="";q===0?ee="years":q===1?ee="quarters":q===2?ee="months":q===3?ee="weeks":q===4&&(ee="days");const ne=e.unref(k).dateFormat,re=e.unref(k).radioValue;let ue=0,U=0;return re==="1"?ue=Math.abs(e.unref(k).calcWays[0]):re==="2"&&(U=e.unref(k).calcWays[0]),pe(re,ee,ne,ue,U)},le=(H,q,ee,ne)=>{if(y.value=!0,q.radioValue===ne){const re=H.target.value;ee==="+"?q.value=he().add(re,q.type).format(e.unref(k).dateFormat):q.value=he().subtract(re,q.type).format(e.unref(k).dateFormat)}},_e=(H,q)=>{e.unref(k).calcWays||(e.unref(k).calcWays=[]),e.unref(k).activeKey=q,e.unref(k).radioValue=H.radioValue,H.radioValue==="1"?e.unref(k).calcWays[0]="-"+H.beforeNum:H.radioValue==="2"?e.unref(k).calcWays[0]=H.afterNum:H.radioValue==="3"?q===4?e.unref(k).calcWays[0]="0":e.unref(k).calcWays[0]="BEGIN":H.radioValue==="4"&&(e.unref(k).calcWays[0]="END"),q===0?e.unref(k).dateCalcTypes=["YEAR"]:q===1?e.unref(k).dateCalcTypes=["QUARTER"]:q===2?e.unref(k).dateCalcTypes=["MONTH"]:q===3?e.unref(k).dateCalcTypes=["WEEK"]:q===4&&(e.unref(k).dateCalcTypes=["DAY"]),O.value=!1},St=()=>{e.unref(k).activeKey=5,e.unref(k).dateCalcTypes=[e.unref(m).unit],e.unref(k).calcWays[0]=`${e.unref(m).expression}-${e.unref(m).around}`,O.value=!1};function Xe(H,q){const{radioValue:ee="",calcWays:ne=[]}=q;H.radioValue=ee,ne!=null&&ne.length&&(ee==="1"?H.beforeNum=Math.abs(ne[0]):ee==="2"&&(H.afterNum=ne[0]))}function pe(H,q,ee,ne,re){if(H==="1")return he().subtract(ne,q).format(ee);if(H==="2")return he().add(re,q).format(ee);if(H==="3"){if(q==="years")return he().startOf("year").format(ee);if(q==="quarters")return he().startOf("quarter").format(ee);if(q==="months")return he().startOf("month").format(ee);if(q==="days")return he().format(ee)}else if(H==="4"){if(q==="years")return he().endOf("year").format(ee);if(q==="quarters")return he().endOf("quarter").format(ee);if(q==="months")return he().endOf("month").format(ee)}return""}const Oe=(H,q)=>q.label.toLowerCase().indexOf(H.toLowerCase())>=0,ut=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(k).rule));return{fieldOptions:L,ruleOptions:P,onFieldChange:V,condition:k,valueOptions:v,onRuleChange:F,onDataTypeChange:M,onFieldValueSelectChange:W,fieldValues:G,onDelete:x,isDateType:B,formatList:b,tabDateList:w,compareList:g,menuRule:S,dateBtnLabel:R,downIconStyle:N,popoverVisible:O,dateRadioStyle:h,showTime:y,controlList:c,keyNameOptions:p,dataTypeList:C,customTabData:m,isUseCurrentTime:d,currentTime:i,isShowCustomDataType:ut,handleMenuClick:X,changeTabInitDate:Q,changeRadioValue:Z,getFieldValue:ae,blurCompare:le,okDatePickConfig:_e,onChangeComponent:T,filterOption:Oe,okCustomConfig:St,clickConditionMenu:({key:H})=>{$(t.path,t.index,H==="2"?"||":"&&")},dataSetfieldOptions:E}}}),Ay="",Oy="",tp={class:"condition"},op=["title"],np={class:"rule"},ap={class:"data-type"},lp={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},rp={class:"popover-content-wrap"},ip={key:0,class:"use-current-time"},sp={class:"tabFilterRadio"},cp={key:0},dp={key:1},pp={style:{"margin-left":"10px"}},up={style:{"margin-left":"10px"}},fp={style:{position:"absolute",bottom:"10px"}},mp={style:{display:"flex"}},hp={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function bp(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),c=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),f=e.resolveComponent("a-button"),y=e.resolveComponent("a-dropdown"),h=e.resolveComponent("a-date-picker"),b=e.resolveComponent("a-input"),m=e.resolveComponent("a-checkbox"),w=e.resolveComponent("a-input-number"),g=e.resolveComponent("a-radio"),S=e.resolveComponent("a-radio-group"),C=e.resolveComponent("a-tab-pane"),k=e.resolveComponent("a-tabs"),_=e.resolveComponent("appstore-add-outlined"),E=e.resolveComponent("a-popover"),O=e.resolveComponent("menu-outlined"),B=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",tp,[e.createVNode(d,{class:"field-name",value:t.condition.fieldName,onChange:t.onFieldChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fieldOptions,(L,D)=>(e.openBlock(),e.createBlock(s,{key:D,value:L.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:L.label},e.toDisplayString(L.label),9,op)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",np,[t.isDateType?(e.openBlock(),e.createBlock(y,{key:0,class:"dropdown",trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.handleMenuClick},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.ruleOptions,L=>(e.openBlock(),e.createBlock(c,{key:L.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===L.value?"color: #1890FF;":"")},e.toDisplayString(L.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,D=>{var I;return e.openBlock(),e.createBlock(c,{key:D.value,disabled:D.value==="component"&&!((I=t.controlList)!=null&&I.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===L.value&&t.condition.dataType===D.value?"color: #1890FF;":"")},e.toDisplayString(D.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,$=>(e.openBlock(),e.createBlock(i,{key:$.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===L.value&&t.condition.dataType===D.value&&t.condition.dateFormat===$.value?"color: #1890FF;":"")},e.toDisplayString($.label),5)]),_:2},1024))),128))]),_:2},1032,["disabled"])}),128))]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dateBtnLabel)+" ",1),e.createVNode(u,{style:e.normalizeStyle(t.downIconStyle)},null,8,["style"])]),_:1})]),_:1})):(e.openBlock(),e.createBlock(d,{key:1,style:{width:"100%"},value:t.condition.rule,options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]))]),e.withDirectives(e.createElementVNode("div",ap,[e.createVNode(d,{style:{width:"100%"},value:t.condition.dataType,onChange:t.onDataTypeChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataTypeList,(L,D)=>(e.openBlock(),e.createBlock(s,{key:D,value:L.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.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",lp,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(h,{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(h,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=L=>t.condition.fieldValue=L),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(d,{key:1,"show-search":"",style:e.normalizeStyle({width:t.condition.fieldValue==="PARENT"?"":"calc(100% - 35px)",marginRight:"10px"}),value:t.condition.fieldValue,"onUpdate:value":o[1]||(o[1]=L=>t.condition.fieldValue=L),"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]=L=>t.condition.modelKey=L),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=L=>t.condition.prop=L),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(E,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=L=>t.popoverVisible=L),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",rp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",ip,[e.createVNode(m,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=L=>t.isUseCurrentTime=L)},{default:e.withCtx(()=>[e.createTextVNode("使用当前时间")]),_:1},8,["checked"])])):e.createCommentVNode("",!0),e.createVNode(k,{defaultActiveKey:t.condition.activeKey,onChange:t.changeTabInitDate},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabDateList,(L,D)=>(e.openBlock(),e.createBlock(C,{key:D,tab:L.label},{default:e.withCtx(()=>[e.createElementVNode("div",sp,[e.createVNode(S,{value:L.radioValue,"onUpdate:value":I=>L.radioValue=I,onChange:I=>t.changeRadioValue(I,L)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",cp,"相对当前时间:"+e.toDisplayString(L.value),1)):(e.openBlock(),e.createElementBlock("div",dp,"相对当前时间:"+e.toDisplayString(t.getFieldValue(D)),1)),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(w,{value:L.beforeNum,"onUpdate:value":I=>L.beforeNum=I,min:0,onBlur:I=>t.blurCompare(I,L,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",pp,e.toDisplayString(L.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(w,{value:L.afterNum,"onUpdate:value":I=>L.afterNum=I,min:0,onBlur:I=>t.blurCompare(I,L,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",up,e.toDisplayString(L.afterLabel),1)]),_:2},1032,["style"]),L.beforeText?(e.openBlock(),e.createBlock(g,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),L.afterText?(e.openBlock(),e.createBlock(g,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",fp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=I=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:I=>t.okDatePickConfig(L,D)},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:2},1032,["onClick"])])])]),_:2},1032,["tab"]))),128)),(e.openBlock(),e.createBlock(C,{tab:"自定义",key:5},{default:e.withCtx(()=>[e.createElementVNode("div",mp,[e.createVNode(d,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=L=>t.customTabData.expression=L),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=L=>t.customTabData.unit=L),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(s,{value:"QUARTER"},{default:e.withCtx(()=>[e.createTextVNode("季度")]),_:1}),e.createVNode(s,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(s,{value:"WEEK"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(s,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=L=>t.customTabData.around=L)},{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",hp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=L=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:t.okCustomConfig},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])])]),_:1}))]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[10]||(o[10]=L=>{t.popoverVisible=!0})},[e.createVNode(_)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(d,{key:1,class:"field-value",value:t.fieldValues,mode:"multiple",options:t.valueOptions,onChange:t.onFieldValueSelectChange},null,8,["value","options","onChange"])):(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType&&t.condition.dataType==="component"?(e.openBlock(),e.createBlock(d,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=L=>t.condition.fieldValue=L),"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]=L=>t.condition.fieldValue=L)},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]=L=>t.condition.modelKey=L),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=L=>t.condition.prop=L),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(y,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(i,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(i,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(O,{class:"more-icon"})]),_:1}),e.createVNode(B,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const yp=oe(ep,[["render",bp],["__scopeId","data-v-29a39def"]]),gp=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:yp}}),Ey="",Cp={key:0,class:"condition-list"},wp={key:0,class:"condition-container"},kp={key:0,class:"condition-text"},xp={key:1,class:"condition-text"},_p={class:"conditions"};function Sp(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),d=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Cp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",wp,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",kp,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",xp,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",_p,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${c}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(d,{class:"condition",key:i.keyValue||`${t.level}-${c}`,data:i,level:t.level,index:c,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const Np=oe(gp,[["render",Sp],["__scopeId","data-v-553c1496"]]),Tp=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=J.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),By="",er=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),Ap={class:"truncations"},Op={class:"rule"},Ep={class:"field-value"},Bp={class:"field-value"},Vp=er(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Lp=er(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),vp=["onClick"];function $p(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",Ap,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Op,[e.createVNode(s,{style:{width:"100%"},value:c.rule,"onUpdate:value":u=>c.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",Ep,[e.createTextVNode(" N= "),e.createVNode(d,{value:c.num,"onUpdate:value":u=>c.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",Bp,[Vp,e.createVNode(i,{value:c.name,"onUpdate:value":u=>c.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),Lp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(c)},"清空",8,vp)]))),128))])}const Fp=oe(Tp,[["render",$p],["__scopeId","data-v-f543c690"]]),Ip=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:Np,TruncationList:Fp,AModal:j.Modal,AButton:j.Button,ATabs:j.Tabs,ATabPane:j.TabPane},setup(t,{expose:o}){var x;const n=e.ref("1"),a=()=>{var V;return`添加过滤条件-${((V=t.item)==null?void 0:V.label)||""}`},l=e.inject(Ce),r=e.inject(Ne),s=e.inject(Ue),d=e.computed(()=>{var V;return(V=e.unref(l))==null?void 0:V.dataSourceId}),i=e.inject(Ie),c=e.inject(ko),p=e.ref([]),u=e.ref([]),f=e.ref(!1),y=e.inject(Wt),h=V=>{var T;for(const P of V)(T=P.conditions)!=null&&T.length?h(P.conditions):P.keyValue=ge()};e.watch(f,V=>{var T,P,R,N;if(V){if(Array.isArray((T=t.item)==null?void 0:T.conditions)){const v=J.cloneDeep(((P=t.item)==null?void 0:P.conditions)||[]);h(v),p.value=v}Array.isArray((R=t.item)==null?void 0:R.truncations)?u.value=J.cloneDeep((N=t.item)==null?void 0:N.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!V)},{flush:"post"});let b=!1;const m=V=>{var T;b=!0,e.unref(p)==null||((T=e.unref(p))==null?void 0:T.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==V?p.value=[{join:V,conditions:[e.unref(p)[0],{keyValue:ge()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===V&&p.value[0].conditions.push({keyValue:ge()}))};e.provide(wo,{updateCondition(V,T,P){var v;b=!0;let R=e.unref(p);const N=P.split("-");if(N!=null&&N.length)for(const A of N)if(R[A])R=(v=R[A])==null?void 0:v.conditions;else break;Array.isArray(R)&&R[T]&&(R[T]=V)},deleteCondition(V,T){var N,v,A;b=!0;let P=e.unref(p);const R=T.split("-");if(R!=null&&R.length){for(const F of R)if(P[F])P=(N=P[F])==null?void 0:N.conditions;else break;if(Array.isArray(P)&&P[V])if(P.splice(V,1),P.length===1){if(R.length>0){const F=R.length-1,M=R[F],G=R.slice(0,F);let W=e.unref(p),X="";for(const Q of G)if(W[Q])X=(v=W[Q])==null?void 0:v.join,W=(A=W[Q])==null?void 0:A.conditions;else break;if(X===P[0].join){if(Array.isArray(P[0].conditions)){const Q=J.cloneDeep(P[0].conditions);W.splice(+M,1),W.splice(+M,0,...Q)}}else W[M]=P[0]}}else P.length===0&&(p.value=[])}},addCondition(V,T,P){var A,F;b=!0;let R=e.unref(p),N="";const v=V.split("-");if(v!=null&&v.length){for(const M of v)if(R[M])N=(A=R[M])==null?void 0:A.join,R=(F=R[M])==null?void 0:F.conditions;else break;if(N===P)R.splice(T+1,0,{keyValue:ge()});else{const M=J.cloneDeep(R[T]);R[T]={join:P,conditions:[M,{keyValue:ge()}]}}}}});const w=V=>{b=!0,u.value=V},g=e.computed(()=>{var T;const V=[];return(T=e.unref(s))==null||T.forEach(P=>{const{keyName:R="",id:N="",type:v}=P;v==="ecanRangePicker"?V.push({value:`${N}-startTime`,label:`${R||N}-开始时间值`,keyName:`${R||N}-startTime`},{value:`${N}-endTime`,label:`${R||N}-结束时间值`,keyName:`${R||N}-endTime`}):V.push({value:N,label:`${R||N}`,keyName:`${R||N}`})}),V}),S=()=>{var A,F,M;const V=dt(((A=e.unref(l))==null?void 0:A.controlList)||[]),T=((F=e.unref(l)[t.type])==null?void 0:F.slice())||[],P=dt(J.cloneDeep(T[t.index].conditions));T[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((M=e.unref(u))!=null&&M.length)&&(T[t.index].truncations=e.unref(u));const R=dt(e.unref(p));for(const G of R)if(G.dataType==="component"&&G.fieldValue){const W=e.unref(g).find(X=>X.value===G.fieldValue);W&&(G.fieldValue=W.keyName)}const N=P.filter(G=>!R.find(W=>W.componentId===G.componentId)).filter(G=>!V.find(W=>W.id===G.componentId)),v=R.filter(G=>!P.find(W=>W.componentId===G.componentId));C(N,v),r({[t.type]:T,sqlConditions:Gl({...e.unref(l),[t.type]:T},e.unref(s))})};function C(V,T){var R;const P=V.map(N=>({...N,delete:!0})).concat(T.map(N=>({...N,add:!0})));for(const N of P){const v=e.unref(s).find(A=>A.id===N.componentId);if(v){const{type:A,id:F,events:M=[]}=v,G=Bo(A);if(N.add)M.find(W=>{var X;return W.on===G&&W.target===((X=e.unref(i))==null?void 0:X.id)&&W.emit==="refreshData"})||c({id:F,events:[...M,{on:G,target:(R=e.unref(i))==null?void 0:R.id,emit:"refreshData"}].reverse()});else if(N.delete){const W=M.findIndex(X=>{var Q;return X.on===G&&X.target===((Q=e.unref(i))==null?void 0:Q.id)&&X.emit==="refreshData"});W!==-1&&(M.splice(W,1),c({id:F,events:M}))}}}}const k=()=>{f.value=!0},_=()=>{p.value=[],f.value=!1},E=()=>{b&&S(),b=!1,_()},O=()=>{_()},B=e.inject(Ee),L=e.unref(e.inject(Be)),D=(x=window==null?void 0:window.config)==null?void 0:x.pageId,I=e.ref([]);e.provide(ua,I);const $=async V=>{var T;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:P,indexCode:R}=V,N=await B.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:D,dataSourceId:e.unref(d),indexGuid:P,indexCode:R},{headers:{Authentication:L,operateContext:"ygt"}}),{success:v,data:A=[]}=N.data;v&&((T=A==null?void 0:A.dataViewColumns)!=null&&T.length)&&(I.value=A.dataViewColumns.map(F=>({...F,label:F.title||F.label})))}catch(P){console.error(P)}};return e.watch(()=>t.item,V=>{V&&f.value&&e.unref(y)!=="EDV_DATA_SET"&&$(V)}),o({showModal:k}),{visible:f,onOk:E,onCancel:O,handleTitle:a,conditionList:p,truncationList:u,addCondition:m,onUpdatetruncation:w,activeKey:n,source:y}}}),Vy="",Dp={class:"header"},Mp={class:"header"};function Pp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),c=e.resolveComponent("truncation-list"),p=e.resolveComponent("a-tabs"),u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{title:t.handleTitle(),visible:t.visible,"destroy-on-close":"",width:"55%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[["classificationList","rowHeaderList","dimensionList"].includes(t.type)?(e.openBlock(),e.createBlock(p,{key:0,activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=f=>t.activeKey=f)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",Dp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])]),_:1}),e.createVNode(i,{key:"2",tab:"截断配置"},{default:e.withCtx(()=>[e.createVNode(c,{list:t.truncationList,onUpdate:t.onUpdatetruncation},null,8,["list","onUpdate"])]),_:1})]),_:1},8,["activeKey"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Mp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[4]||(o[4]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const jp=oe(Ip,[["render",Pp],["__scopeId","data-v-38f115c6"]]),Rp=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(Ce),l=e.inject(Ne),r=e.ref(),s=p=>{const{showLabel:u="",label:f=""}=p;r.value=u||f||"",n.value=!0},d=()=>{n.value=!1},i=()=>{var u;const p=((u=e.unref(a)[t.type])==null?void 0:u.slice())||[];p[t.index].showLabel=r.value,l({[t.type]:p}),d()},c=()=>{d()};return o({showModal:s}),{visible:n,onOk:i,onCancel:c,fieldName:r}}}),Ly="",Up=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),zp={class:"config-name"},Gp=Up(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function Hp(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置展示名称",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",zp,[Gp,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 Wp=oe(Rp,[["render",Hp],["__scopeId","data-v-de6a1755"]]),Yp=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(Ce),l=e.inject(Ne),r=e.inject(Ue),s=e.inject(Ie),d=e.inject(ko),i=e.ref(),c=e.computed(()=>{var w;return(w=e.unref(r))==null?void 0:w.filter(g=>g.keyName!=="")});let p=[];const u=w=>{const{sortCpnts:g=[]}=w;p=J.cloneDeep(g),i.value=J.cloneDeep(g),n.value=!0},f=()=>{n.value=!1},y=()=>{var k,_;const w=dt(((k=e.unref(a))==null?void 0:k.controlList)||[]),g=p.filter(E=>!e.unref(i).includes(E)).filter(E=>!w.find(O=>O.id===E)),S=e.unref(i).filter(E=>!p.includes(E)).filter(E=>!w.find(O=>O.id===E)),C=g.map(E=>({componentId:E,delete:!0})).concat(S.map(E=>({componentId:E,add:!0})));for(const E of C){const O=e.unref(r).find(B=>B.id===E.componentId);if(O){const{type:B,id:L,events:D=[]}=O,I=Bo(B);if(E.add)D.find($=>{var x;return $.on===I&&$.target===((x=e.unref(s))==null?void 0:x.id)&&$.emit==="refreshData"})||d({id:L,events:[...D,{on:I,target:(_=e.unref(s))==null?void 0:_.id,emit:"refreshData"}].reverse()});else if(E.delete){const $=D.findIndex(x=>{var V;return x.on===I&&x.target===((V=e.unref(s))==null?void 0:V.id)&&x.emit==="refreshData"});$!==-1&&(D.splice($,1),d({id:L,events:D}))}}}},h=()=>{var g;y();const w=((g=e.unref(a)[t.type])==null?void 0:g.slice())||[];w[t.index].sortCpnts=i.value,l({[t.type]:w}),f()},b=()=>{f()},m=(w,g)=>{var S;return(S=g==null?void 0:g.keyName)==null?void 0:S.toLowerCase().includes(w==null?void 0:w.toLowerCase())};return o({showModal:u}),{visible:n,onOk:h,onCancel:b,idFilterOption:m,fieldName:i,usedComponentList:c}}}),vy="",qp=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),Kp={class:"sort-by-cpnt"},Xp=qp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function Qp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联组件排序",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Kp,[Xp,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 Jp=oe(Yp,[["render",Qp],["__scopeId","data-v-08af1ef8"]]),Zp=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(Ce),l=e.inject(Ne),r=e.ref(),s=e.ref([]),d=(f,y)=>{const{dimByCount:h=""}=f;r.value=h,s.value=y.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},c=()=>{var y;const f=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];f[t.index].dimByCount=r.value,l({[t.type]:f}),i()},p=()=>{i()},u=(f,y)=>{var h;return(h=y==null?void 0:y.label)==null?void 0:h.toLowerCase().includes(f==null?void 0:f.toLowerCase())};return o({showModal:d}),{visible:n,onOk:c,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),$y="",eu=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),tu={class:"dim-by-count"},ou=eu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function nu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联维度",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",tu,[ou,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 au=oe(Zp,[["render",nu],["__scopeId","data-v-aa1c298e"]]),Gn=(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:Gn(t,l.children)&&(n=Gn(t,l.children)))}return n},lu=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:_s},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Ee),a=e.unref(e.inject(Be)),l=e.inject(Ce),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),d=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),c=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>{const B=e.unref(r).concat(e.unref(d)).concat(e.unref(i)).concat(e.unref(c));return t.mode==="edit"?(B==null?void 0:B.filter(L=>{var D;return L.id!==((D=t.item)==null?void 0:D.id)}))||[]:B||[]}),u=e.computed(()=>s.value.filter(B=>!B.randomKey)),f=e.computed({get:()=>t.value||"",set:B=>{o("update:value",B),o("change",B)}}),y=e.ref("1"),h=e.ref(""),b=B=>{const L=document.getElementById("calTextArea");let D=f.value;if(document.selection){const I=document.selection.createRange();I.text=B}else if(typeof L.selectionStart=="number"&&typeof L.selectionEnd=="number"){const I=L.selectionStart,$=L.selectionEnd;let x=I;D=D.substring(0,I)+B+D.substring($,D.length),x+=B.length,L.selectionStart=L.selectionEnd=x}else D+=B;f.value=D},m=["+","-","*","/","(",")"],w=(B,L)=>{let D="";switch(L){case"name":{D="${"+B+"}";break}case"function":{D=B+"()";break}default:D=B}b(D)},g=[],S=e.ref([]),C=e.ref(!0),k=e.ref([]),_=B=>{var L;for(const D of B)(L=D==null?void 0:D.children)!=null&&L.length?_(D.children):g.push({key:D.key,title:D.title})},E=async()=>{try{const B=await n.get(`${Se}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:L,data:D=[]}=B.data;L&&(D!=null&&D.length)&&(_(D),k.value=D)}catch(B){console.error(B)}},O=B=>{S.value=B,C.value=!1};return e.watch(h,B=>{const L=g.map(D=>D.title.indexOf(B)>-1?Gn(D.key,k.value):null).filter((D,I,$)=>D&&$.indexOf(D)===I);S.value=L,h.value=B,C.value=!0}),e.onMounted(()=>{E()}),{fieldList:p,varList:u,myValue:f,calculMethods:m,funcDescsData:k,searchFuncValue:h,expandedKeys:S,autoExpandParent:C,activeKey:y,selectedElem:w,onExpand:O}}}),Fy="",Iy="",tr=t=>(e.pushScopeId("data-v-69040cfb"),t=t(),e.popScopeId(),t),ru={class:"formula-calculation"},iu={class:"field-area"},su={style:{"text-align":"center",padding:"10px 0"}},cu=["onClick"],du=["onClick"],pu={class:"cal_right_bottom"},uu={class:"cal_fu"},fu=["onClick"],mu={class:"function-wrap"},hu={class:"wrap-search"},bu={class:"tree-box"},yu=tr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),gu=tr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),Cu={key:0},wu={style:{color:"#f50"}},ku={key:1},xu=["onClick"],_u={class:"cal_a"};function Su(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),d=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),c=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),f=e.resolveComponent("a-tree"),y=e.resolveComponent("double-right-outlined"),h=e.resolveComponent("a-popover"),b=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",ru,[e.createVNode(b,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",iu,[e.createElementVNode("div",su,[e.createVNode(d,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=m=>t.activeKey=m),size:"small"},{default:e.withCtx(()=>[e.createVNode(s,{value:"1"},{default:e.withCtx(()=>[e.createTextVNode("数值字段("+e.toDisplayString(t.fieldList.length)+")",1)]),_:1}),e.createVNode(s,{value:"2"},{default:e.withCtx(()=>[e.createTextVNode("全局变量("+e.toDisplayString(t.varList.length)+")",1)]),_:1})]),_:1},8,["value"])]),t.activeKey==="1"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fieldList,(m,w)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:w,onClick:g=>t.selectedElem(m.label,"name")},e.toDisplayString(m.label),9,cu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(m,w)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:w,onClick:g=>t.selectedElem(m.variableName,"name")},e.toDisplayString(m.variableName),9,du))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(c,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=m=>t.myValue=m),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",pu,[e.createElementVNode("ul",uu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(m,w)=>(e.openBlock(),e.createElementBlock("li",{onClick:g=>t.selectedElem(m,"symbol"),key:w},e.toDisplayString(m),9,fu))),128))]),e.createVNode(h,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",mu,[e.createElementVNode("div",hu,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=m=>t.searchFuncValue=m),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",bu,[e.createVNode(f,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:m,leaf:w,describe:g,exp:S})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[m.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",Cu,[e.createTextVNode(e.toDisplayString(m.substr(0,m.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",wu,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(m.substr(m.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",ku,e.toDisplayString(m),1)),w?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:C=>t.selectedElem(m,"function")},"插入",8,xu)):e.createCommentVNode("",!0)]),_:2},[w?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[yu,e.createElementVNode("span",null,e.toDisplayString(g),1)]),e.createElementVNode("div",null,[gu,e.createElementVNode("span",null,e.toDisplayString(S),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",_u,[e.createTextVNode(" 更多函数 "),e.createVNode(y,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const Nu=oe(lu,[["render",Su],["__scopeId","data-v-69040cfb"]]),Tu=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:Nu,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:ec},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},mode:{type:String,default:"add"}},setup(t,{expose:o}){const n=e.inject(Ue),a=e.inject(Ce),l=e.inject(Ne),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),d=e.computed(()=>{const $=["leftAxisList","rightAxisList","queryColumnList","indicators"];let x=[];for(const V of $)Object.prototype.hasOwnProperty.call(e.unref(a),V)&&(x=x.concat(e.unref(a)[V]));return x}),i={span:4},c={span:18},p={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},u={value:0,unit:"YEAR",around:"before"},f=e.ref({}),y=e.ref(),h=e.ref(!1),b=e.ref();e.watch(h,$=>{if($)if(t.mode==="edit"){const{label:x,calcType:V,formula:T,builtInValueSource:P,builtInFormula:R,builtInCalcWay:N}=t.item;if(b.value={label:x,calcType:V,formula:T,builtInValueSource:P,builtInFormula:R,builtInCalcWay:N},R==="DATE_OFFSET"){const v=N.split("-");(v==null?void 0:v.length)===3&&(f.value={value:v[0],unit:v[1],around:v[2]})}}else t.mode==="add"&&(b.value=J.cloneDeep(p),f.value=J.cloneDeep(u));else b.value=J.cloneDeep(p),f.value=J.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!$)},{immediate:!0,deep:!0});let m=!1;const w=()=>{m=!0},g=$=>{const x=e.unref(r).find(V=>V.id===$);x&&(b.value.builtInCalcWay=x.keyName),m=!0},S=()=>{var P;const $=((P=e.unref(a)[t.type])==null?void 0:P.slice())||[],{label:x,builtInFormula:V}=e.unref(b)||{},T={};if(V==="DATE_OFFSET"&&(T.builtInCalcWay=`${e.unref(f).value}-${e.unref(f).unit}-${e.unref(f).around}`),t.mode==="add"){const R=ge();$.push({...e.unref(b),...T,id:R,show:!0,name:x})}else t.mode==="edit"&&($[t.index]={...$[t.index],...e.unref(b),...T,name:x});l({[t.type]:$})},C=()=>{h.value=!0},k=()=>{h.value=!1},_=async($,x)=>{if(x==="")return Promise.reject(new Error("请输入指标名"));{const V=e.unref(d).find(T=>T.label===x);return V?V.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},E=e.computed(()=>{let $={label:[{required:!0,validator:_,trigger:"change"}]};return b.value.calcType==="BUILT_IN"&&($={...$,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),$}),O=()=>{y.value.validate().then(()=>{m&&S(),m=!1,k()})},B=()=>{y.value.clearValidate(),k()},L=()=>{m=!0,e.unref(b).builtInCalcWay=""},D=e.computed(()=>{let $="";const x=e.unref(b).builtInCalcWay,V=e.unref(b).builtInValueSource;if(!V||!x)return $;switch(e.unref(b).builtInFormula){case"BUILT_IN_RANK":{x==="ASC"?$="【"+V+"】由小到大在所有值中的排名":$="【"+V+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{$=`所有【】的
|
|
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},qc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=bt(()=>a.map(i=>{let c={};return c=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},c})),s=bt(()=>{const i=[],c=l.length,p=t.seriesTypes;for(let u=0;u<c;u++){const f=p[u],{type:y,axisIndex:h}=f||{};let b=Object.assign({type:y,yAxisIndex:h},l[u]);if(y==="line"){const m={};t.shadowColor&&(m.shadowColor=t.shadowColor,m.shadowBlur=t.shadowBlur,m.shadowOffsetY=t.shadowOffsetY,m.shadowOffsetX=t.shadowOffsetX),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},m)})}if(y==="bar"){const{gradientShow:m,gradientColors:w,gradientOffset:g}=t,S={};if(t.barBorderRadius){const C=t.barBorderRadius.split(",");if(C!=null&&C.length){const k=[];for(const _ of C){const E=parseFloat(_);isNaN(E)||k.push(E)}S.borderRadius=k}}m&&(S.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:g,color:w[u]},{offset:1,color:w[u]}]}),b=Object.assign(Object.assign({},b),{barWidth:t.barWidth,itemStyle:S})}t.isShowMarkLine&&(b.markLine={data:[{type:t.markLineType}]}),i.push(b)}return i}),d=bt(()=>{const i=t.yAxis;return i==null?void 0:i.map((c,p)=>({type:"value",minInterval:t.yAxisMinInterval,splitLine:{show:p===0?t.yAxisLeftSplitLineShow:t.yAxisRightSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:p===0?t.yAxisLeftSplitLineType:t.yAxisRightSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{fontSize:n,show:t.yAxisLabelShow,color:t.yAxisLabelColor,formatter:u=>Mt(c.axisLabelFormatter,u)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:p===0?t.yAxisLeftName:t.yAxisRightName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:p===0?"right":"left"},max:t.yAxisMaxValue||null}))});return{legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n}},tooltip:{trigger:"axis",show:t.tooltipShow,formatter:i=>{const c=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const f=t.seriesTypes;for(let y=0;y<c;y++){const h=f[y],{tooltipFormatter:b}=h||{},{marker:m,seriesName:w,name:g,value:S,data:C}=i[y]||{};y===0&&(p+=`${g}<br/>`),p+=Dt(b||u,{textData:Object.assign({marker:m,name:g,value:S,seriesName:w,a:w,b:g,c:S},C)},{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:it(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:it(d),series:it(s)}},Kc=(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 Hc(a,l,r);case"line":return Wc(a,l,r);case"pie":return Yc(a,l,r);case"comboGraph":return qc(a,l,r);default:return{}}})(t,o,n)),dt=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...dt(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},Gl=(t,o)=>{var b;const n=J.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:d=[],rightAxisList:i=[],queryColumnList:c=[],indicators:p=[]}=t;Wl(n,o);const u=n,f=[...a,...l,...r,...s,...d,...i,...c,...p],y=[];for(const m of f){const w=dt((m==null?void 0:m.conditions)||[]);if(w!=null&&w.length){const g=w.filter(S=>Yl(S,o)?(S==null?void 0:S.dataType)==="component":!1).map(S=>{const C=Yl(S,o),k={};return S!=null&&S.dateFormat&&(k.format=S.dateFormat),{conditionKey:S.fieldName,conditionLabel:S.fieldName,conditionName:S.fieldName,conditionValueType:S.fieldType,id:C.id,keyName:S.fieldValue,rule:S.rule,notGlobal:!0,indexCode:S.indexCode,typeGuid:S.typeGuid,indexCodeNum:S.indexCodeNum,...k}});if(g!=null&&g.length)for(const S of g)y.find(C=>C.keyName===S.keyName)||y.push(S)}}const h=y.length;for(let m=0;m<h;m++){const w=y[m];if(w&&!((b=Object.keys(w))!=null&&b.length)||(w==null?void 0:w.conditionKey)==="parentCode")continue;const{id:g,keyName:S,prop:C,format:k,dataType:_="component",customValue:E}=w,O=Hl(w);Un({sqlCondition:O,renderUsedComponents:o,id:g,dateFormat:k,prop:C,keyName:S,dataType:_,customValue:E}),u.push(O)}for(let m=u.length-1;m>=0;m--){const w=u[m];w.globalCondition||dt(u).find(S=>S.alias===w.alias&&S.globalCondition)&&u.splice(m,1)}return u},no=(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||""};Un({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 Hl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:d="NONE",notGlobal:i=!1,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f="component"}=t;let y=n||o;return y&&s&&(y+=`-${s}`),{rule:d,label:a,fieldName:l,fieldValue:"",valueType:r,alias:y,globalCondition:!i,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f}}const Xc=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function Wl(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)Wl(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:d="component",customValue:i}=n,c=Hl(n);Un({sqlCondition:c,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:d,customValue:i});for(const p in c)n[p]=c[p];for(const p of Xc)delete n[p]}}function Un(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:d,customValue:i,operateValue:c,operateMode:p,operateType:u}=t,f=n.find(S=>S.id===a),{value:y,format:h="YYYY-MM-DD",operate:b,type:m="",useCurrentTime:w}=f||{},g=l||h;if(we(m,"date")){let S;if(w?S=he():S=he(y),b&&y){const{mode:C,type:k,value:_}=b;if(_)switch(k){case"add":S=S.add(_,C);break;case"minus":S=S.subtract(_,C);break}}if(c&&p&&u)switch(u){case"add":S=S.add(c,p);break;case"minus":S=S.subtract(c,p);break}o.fieldValue=(S==null?void 0:S.format(g))||"",o.dateFormat=g}else if(m==="ecanRangePicker"){const{interval:S,intervalUnit:C,startTime:k,endTime:_}=f||{};let E=r;if(!r){const B=s==null?void 0:s.split("-");B!=null&&B.length&&(E=B[B.length-1])}if(!E)return;let O=null;if(w&&(E==="startTime"?O=he().subtract(S,C):E==="endTime"&&(O=he())),f[E]&&(O=he(f[E])),b){const{type:B,value:L,mode:D}=b;switch(B){case"add":O=O&&O.add(L,D);break;case"minus":O=O&&O.subtract(L,D)}}if(c&&p&&u){if(c==="rangeValue"){if(k&&_){const B=he(_).diff(he(k),p)+1;switch(u){case"add":O=O&&O.add(B,p);break;case"minus":O=O&&O.subtract(B,p)}}}else if(!isNaN(+c))switch(u){case"add":O=O&&O.add(c,p);break;case"minus":O=O&&O.subtract(c,p)}}if(O&&(o.fieldValue=O==null?void 0:O.format(g)),E==="rangeValue"&&k&&_){const B=Qc(g);B&&(o.fieldValue=he(_).diff(he(k),B)+1)}o.dateFormat=g}else{const S=y&&y.match(/\{(.+?)\}/g);S!=null&&S.length?o.fieldValue="":o.fieldValue=y}d===""&&(o.fieldValue=i||"")}const Bo=t=>{let o="";switch(t){case"ecanDatePicker":case"ecanRangePicker":o="dateChange";break;case"ecanTimeDisplay":o="timeChange";break;case"ecanSelect":case"ecanTreeSelect":o="selectChange";break;case"ecanTabs":o="tabChange";break;case"ecanInput":o="inputChange";break;case"ecanCheckbox":case"ecanRadio":o="checkboxChange";break;case"ecanText":o="valueChange";break;case"ecanImage":o="click";break}return o};function Yl(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 Qc(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 Jc(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=Zc(a))}}return n}function Zc(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3===0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),t.indexOf(".")>-1?l=o+"."+a:l=o,l}const ql=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],Kl=t=>({0:"文本",1:"数值",2:"日期"})[t],Xl=t=>t==="0"?"手工录入":t==="1"?"系统取数":t==="2"?"运算加工":"",Ql=t=>{let o="";switch(t){case"1":o="人力系统";break;case"2":o="绩效系统";break;case"3":o="预算系统";break;case"4":o="财务系统";break;case"5":o="成本系统";break;case"6":o="物流系统";break;case"7":o="固定资产系统";break;case"8":o="OA办公系统";break;case"9":o="电子档案系统";break;case"10":o="个人收入系统";break;case"11":o="奖金二次分配系统";break;case"12":o="财务管理系统";break;case"13":o="报销系统";break;case"14":o="科研管理系统";break;case"15":o="审计系统";break;case"16":o="分组器系统";break}return o},Jl=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",ed=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:Ma,CaretDownOutlined:Ia,LoadingOutlined:Fs,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 k;const a=(k=window==null?void 0:window.config)==null?void 0:k.pageId,l=e.inject(Ee),r=e.unref(e.inject(Be)),s=e.inject("setItemDisabled",_=>!1),d=e.ref([]),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),f=e.ref(!1);e.watch(()=>t.data,_=>{t.isSub&&(_==null||_.forEach(E=>{var O;E!=null&&E.isLeaf||(O=E.dataViewColumns)==null||O.forEach(B=>{B.show=!0,B.edit=!1,B.title&&(B.label=B.title)})}),d.value=_)},{deep:!0,immediate:!0});const y=()=>{var _;t.isSub||(_=e.unref(i))==null||_.removeEventListener("scroll",g)},h=async _=>{var B;if(e.unref(p))return;const E=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const O={source:t.source,pageId:a,dataSourceId:E,indexName:u.value};_?(_.loading=!0,O.indexTypeGuid=_.indexTypeGuid,O.isLeaf=_.isLeaf):c&&(O.queryRequest={pageSize:c.pageSize,pageNum:c.currentPage});try{const L=await l.post(`${Se}/diagram/sourceList`,O,{headers:{Authentication:r,operateContext:"ygt"}}),{success:D,data:I={}}=L.data;if(D){const{rows:$=[],total:x=0}=I;$==null||$.forEach(V=>{var T;(_==null?void 0:_.isLeaf)==="1"||t.graphicConfig.dataSourceId?(T=V.dataViewColumns)==null||T.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)}):V.show=!1}),_?(_.children=$,_.show=!0,$!=null&&$.length||(_.noData=!0)):(d.value=e.unref(d).concat($),c.totalResult=+x,((B=e.unref(d))==null?void 0:B.length)>=x&&y())}_&&(_.loading=!1),p.value=!1}catch{_&&(_.loading=!1),p.value=!1}},b=async _=>{const E=d.value[_],{children:O=[]}=E;O!=null&&O.length?E.show=!E.show:!E.noData&&E.isLeaf?h(E):E.noData&&(E.show=!E.show)},m=(_,E)=>{o("onDragStart",_,E)},w=_=>{_.show=!_.show},g=_=>{_.target.scrollTop+_.target.clientHeight+20>=_.target.scrollHeight&&(c.currentPage++,h())},S=async()=>{await h(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&c.totalResult>e.unref(d).length&&(c.currentPage++,S())})},C=async _=>{var E;y(),f.value=!0,c.currentPage=1,c.totalResult=0,d.value=[],u.value=_,await S(),f.value=!1,(E=e.unref(i))==null||E.addEventListener("scroll",g)};return e.onMounted(async()=>{var _;t.isSub||(S(),(_=e.unref(i))==null||_.addEventListener("scroll",g))}),e.onUnmounted(()=>{y()}),n({handleSearch:C}),{columnRef:i,sourceList:d,searchLoading:f,onToggleGroup:b,onToggleSource:w,setItemDisabled:s,onDragStart:m,mapDataSetScope:Kl,mapScope:ql,getLoadType:Xl,getUseType:Ql,getSourceType:Jl}}}),xy="",td={key:0,class:"no-data"},od={class:"column-item"},nd=["onClick"],ad={key:3,class:"item-name"},ld={key:0},rd={class:"column-item"},id={key:0},sd={key:1},cd={key:2},dd=["onClick"],pd={class:"column-child-item"},ud={class:"field"},fd={class:"column-child-item-name"};function md(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),d=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),c=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(f,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var y;return[!((y=t.sourceList)!=null&&y.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",td,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(h,b)=>(e.openBlock(),e.createElementBlock("div",{key:h.indexTypeGuid||h.id},[e.createElementVNode("div",od,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleGroup(b)},[h.loading?(e.openBlock(),e.createBlock(s,{key:0})):h.show?(e.openBlock(),e.createBlock(d,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),h.isLeaf?(e.openBlock(),e.createElementBlock("span",ad,e.toDisplayString(h.indexTypeCode+"."+h.indexTypeName),1)):e.createCommentVNode("",!0)],8,nd)]),h.show?(e.openBlock(),e.createElementBlock("div",ld,[e.createVNode(c,{data:h.children,isSub:!0,hasChildren:h.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,h=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:e.normalizeClass(t.setItemDisabled(h.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",rd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(h.loadType)),1),h.useType?(e.openBlock(),e.createElementBlock("div",id,"数据使用系统:"+e.toDisplayString(t.getUseType(h.useType)),1)):e.createCommentVNode("",!0),h.systemSource?(e.openBlock(),e.createElementBlock("div",sd,"制度出处:"+e.toDisplayString(h.systemSource),1)):e.createCommentVNode("",!0),h.dataTo?(e.openBlock(),e.createElementBlock("div",cd,"数据来源:"+e.toDisplayString(t.getSourceType(h.dataTo)),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:b=>t.onToggleSource(h)},[h.show?(e.openBlock(),e.createBlock(d,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((h.indexCode?h.indexCode:"")+" "+h.name),1)],8,dd)]),_:2},1024)]),h.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:h.dataViewColumns,"onUpdate:modelValue":b=>h.dataViewColumns=b,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(h.dataViewColumns),onStart:b=>t.onDragStart(b,h)},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",pd,[e.createElementVNode("span",ud," 【"+e.toDisplayString(b.scope==="FIELD"?t.mapDataSetScope(b.genericType):t.mapScope(b.scope))+"】 ",1),e.createElementVNode("span",fd,e.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const hd=oe(ed,[["render",md],["__scopeId","data-v-ab51ed18"]]),bd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:Ma,CaretDownOutlined:Ia,IndSourceList:hd,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Et,ATooltip:j.Tooltip},setup(){var k;const t=(k=window==null?void 0:window.config)==null?void 0:k.pageId,o=e.inject(Ee),n=e.unref(e.inject(Be)),a=e.inject(Ie),l=e.computed(()=>{var _;return(_=e.unref(a))==null?void 0:_.graphicConfig}),r=e.computed(()=>{var _;return(_=e.unref(l))==null?void 0:_.dataSourceId}),s=e.ref([]),d=e.ref(!1),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Wt),u=e.ref(""),f=async()=>{if(e.unref(w).source==="INDICATOR_LIB")return;d.value=!0;const _={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:c.pageSize,pageNum:c.currentPage}};_.source==="EDV_DATA_SET"&&(_.edvDataSetName=_.indexName,delete _.indexName);try{const E=await o.post(`${Se}/diagram/sourceList`,_,{headers:{Authentication:n,operateContext:"ygt"}});d.value=!1;const{success:O,data:B={}}=E.data;if(O){const{rows:L=[],total:D=0}=B;L==null||L.forEach(I=>{var $;I.show=!1,($=I.dataViewColumns)==null||$.forEach(x=>{x.show=!0,x.edit=!1,x.title&&(x.label=x.title)})}),s.value=L,c.totalResult=+D}}catch{d.value=!1}},y=_=>{s.value[_].show=!s.value[_].show},h=()=>{var _;c.currentPage=1,f(),e.unref(w).source==="INDICATOR_LIB"&&((_=e.unref(i))==null||_.handleSearch(e.unref(u)))},b=J.debounce(()=>{c.currentPage=1,f()},200),m=(_,E)=>{c.pageSize=E,c.currentPage=_,f()};e.onMounted(()=>{f()});const w=e.inject(Ce),g=e.computed(()=>{const _=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let E=[];for(const O in e.unref(w))if(Object.prototype.hasOwnProperty.call(e.unref(w),O)&&_.includes(O)){const B=e.unref(w)[O];Array.isArray(B)&&(E=E.concat(B))}return E}),S=(_=[])=>{let E=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const O of e.unref(g))if(!_.find(L=>L.parentId===O.parentId)){E=!0;break}}else for(const O of e.unref(g))if(!_.find(L=>L.typeGuid===O.typeGuid)){E=!0;break}return E};return e.provide("setItemDisabled",S),{dataSourceList:s,dataSourceLoading:d,pagination:c,onToggleGroup:y,mapScope:ql,mapDataSetScope:Kl,onSearch:h,onChange:b,source:p,onPaginationChange:m,searchText:u,setItemDisabled:S,onDragStart:(_,E)=>{const O=E.dataViewColumns[_.oldIndex];let B={};E.dataSetParams&&(B=E.dataSetParams),O&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...O,dataTo:E.dataTo,dataSetParams:B})),E.dataTo==="1"&&(E!=null&&E.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(E.hrpIndexVariates)),E.dataTo==="2"&&(E!=null&&E.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(E.dataSetParams)))},getSourceType:Jl,getLoadType:Xl,getUseType:Ql,graphicConfig:w,indSourceRef:i}}}),_y="",yd={class:"data-source-list"},gd={class:"columns"},Cd={class:"column-item"},wd={key:0},kd={key:1},xd=["onClick"],_d={key:0},Sd={class:"column-child-item"},Nd={class:"column-child-item-name"};function Td(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),d=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),c=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin"),y=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",yd,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=h=>t.searchText=h),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(d,{key:0,ref:"indSourceRef",data:t.dataSourceList,hasChildren:!0,isSub:!1,graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onSetItemDisabled:t.setItemDisabled,onOnDragStart:t.onDragStart},null,8,["data","graphicConfig","onSetItemDisabled","onOnDragStart"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",gd,[e.createVNode(f,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(h,b)=>(e.openBlock(),e.createElementBlock("div",{key:h.id,class:e.normalizeClass(t.setItemDisabled(h.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",Cd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(h.loadType)),1),h.useType?(e.openBlock(),e.createElementBlock("div",wd,"数据使用系统:"+e.toDisplayString(t.getUseType(h.useType)),1)):e.createCommentVNode("",!0),h.systemSource?(e.openBlock(),e.createElementBlock("div",kd,"制度出处:"+e.toDisplayString(h.systemSource),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleGroup(b)},[h.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(c,{key:1})),e.createTextVNode(" "+e.toDisplayString((h.indexCode?h.indexCode:"")+" "+h.name)+"【"+e.toDisplayString(t.getSourceType(h.dataTo))+"】 ",1)],8,xd)]),_:2},1024)]),h.show?(e.openBlock(),e.createElementBlock("div",_d,[e.createVNode(u,{modelValue:h.dataViewColumns,"onUpdate:modelValue":m=>h.dataViewColumns=m,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(h.dataViewColumns),onStart:m=>t.onDragStart(m,h)},{item:e.withCtx(({element:m})=>[e.createElementVNode("div",Sd,[e.createTextVNode(" 【"+e.toDisplayString(m.scope==="FIELD"?t.mapDataSetScope(m.genericType):t.mapScope(m.scope))+"】 ",1),e.createElementVNode("span",Nd,e.toDisplayString(m.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(y,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=h=>t.pagination.pageSize=h),total:t.pagination.totalResult,"show-total":h=>`共 ${h} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=h=>t.pagination.currentPage=h),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const Ad=oe(bd,[["render",Td],["__scopeId","data-v-b9ee6c24"]]),Od=e.defineComponent({name:"DataList",components:{DataSourceList:Ad,DataViewList:ri},setup(){return{source:e.inject(Wt)}}});function Ed(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),d=e.resolveComponent("data-source-list");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.source==="SQL_VIEW"?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),t.source==="INDICATOR_LIB"||t.source==="EDV_DATA_SET"?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)],64)}const Bd=oe(Od,[["render",Ed]]),Zl={mounted(t){t.focus()}},Vd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Et,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:za},setup(t,{expose:o}){var B;const n=(B=window==null?void 0:window.config)==null?void 0:B.pageId,a=e.inject(Ee),l=e.unref(e.inject(Be)),r=e.inject(Ce),s=e.inject(Ne),d=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),c=e.ref([]),p=e.ref("1"),u=e.ref([]),f=L=>{const D=t.sortList.filter($=>!e.unref(u).find(x=>x.columnName===$.name)||L.columnName===$.name),I=[];return D.forEach(($,x)=>{I.includes($.name)?$.name=`${$.name}_ecanrepeat_${x}`:I.push($.name)}),D},y=async()=>{try{const L=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(d),dataViewId:e.unref(i),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:n,pageFlag:!0,edvDataSetId:e.unref(r).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:D,data:I=[]}=L.data;D&&(c.value=I==null?void 0:I.slice(0,200))}catch(L){console.error(L)}},h=()=>{var x,V;const L=((x=e.unref(r)[t.type])==null?void 0:x.slice())||[],D=L[t.index],{label:I,name:$}=t.item;e.unref(p)==="2"?D.sort={label:I,columnName:$,type:"CUSTOM",customOrderColumns:e.unref(c)}:e.unref(p)==="1"&&((V=e.unref(u))!=null&&V.length?D.sort=J.cloneDeep(e.unref(u)):delete D.sort),s({[t.type]:L})};let b=!1;const m=()=>{b=!0},w=e.ref(!1),g=L=>{var I;const{sort:D}=L;D?Array.isArray(D)?(p.value=((I=D[0])==null?void 0:I.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=J.cloneDeep(D):u.value=[]):(p.value=(D==null?void 0:D.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[J.cloneDeep(D)]:u.value=[]):u.value=[],w.value=!0},S=()=>{w.value=!1},C=()=>{e.unref(p)==="2"?(b&&h(),b=!1):h(),S()};return o({showModal:g}),e.watch(w,L=>{var D,I;if(L){const $=(I=(D=t.item)==null?void 0:D.sort)==null?void 0:I.customOrderColumns;$==null?y():c.value=$}else c.value=[];window.changeShowTable&&window.changeShowTable(!L)},{flush:"post"}),{visible:w,customSortList:c,activeKey:p,combSortList:u,getSortOptions:f,onChange:m,onDeleteConfig:()=>{var I;const L=((I=e.unref(r)[t.type])==null?void 0:I.slice())||[],D=L[t.index];delete D.sort,s({[t.type]:L}),S()},onCancel:C,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:L=>{u.value.splice(L,1)},onColumnChange:L=>{const D=e.unref(u).find(I=>I.columnName===L);if(D){const I=t.sortList.find($=>$.name===L);I&&(D.label=I.label,I.defaultCode?D.defaultCode=I.defaultCode:delete D.defaultCode)}}}}}),Sy="",Ld={class:"button-wrapper"},vd={class:"list-wrapper"},$d={class:"button-wrapper"},Fd={class:"sort-item"};function Id(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-tabs"),y=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(y,{title:"排序配置",visible:t.visible,"destroy-on-close":"",width:"50%",onCancel:t.onCancel,bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null},{default:e.withCtx(()=>[e.createVNode(f,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=h=>t.activeKey=h)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Ld,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",vd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(h,b)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:b},[e.createVNode(d,{value:h.columnName,"onUpdate:value":m=>h.columnName=m,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(h),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(d,{value:h.order,"onUpdate:value":m=>h.order=m,style:{"margin-left":"10px",width:"100px"},placeholder:"升/降序"},{default:e.withCtx(()=>[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})]),_:2},1032,["value","onUpdate:value"]),e.createVNode(c,{style:{color:"red","margin-left":"10px"},onClick:m=>t.handleDeleteSort(b)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",$d,[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]=h=>t.customSortList=h),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:h})=>[e.createElementVNode("div",Fd,e.toDisplayString(h),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Dd=oe(Vd,[["render",Id],["__scopeId","data-v-6a468e35"]]),Md=e.defineComponent({name:"CustomGroupModal",directives:{focus:Zl},components:{CloseOutlined:Xt,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 R;const n=e.inject(Ee),a=(R=window==null?void 0:window.config)==null?void 0:R.pageId,l=e.unref(e.inject(Be));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),d=e.ref(null),i=e.ref([]),c=e.ref([]),p=e.computed(()=>{const N=e.unref(c).map(v=>v.title);return new Set(N)}),u=e.ref([]);e.watch(()=>e.unref(c).length,N=>{u.value=new Array(N).fill(!1)});const f=e.computed(()=>{let N=0;return e.unref(c).forEach(v=>{var A;(A=v.data)==null||A.forEach(F=>{F.checked&&N++})}),N}),y=()=>{const N=e.unref(d);if(!N){j.message.error("创建分组名不能空");return}e.unref(p).has(N)?j.message.error("分组名已存在,请重新命名"):(e.unref(c).push({title:N,data:[]}),r=!0)},h=N=>{e.unref(c).splice(N,1),r=!0},b=e.ref(null),m=()=>{if(e.unref(f)===0){j.message.error("当前移入分组已选个数为0");return}const N=e.unref(b);if(N==null){j.message.error("请选择移入分组");return}if(!e.unref(c)[N]){j.message.error("移入分组不存在,请重新选择");return}const v=[],A=e.unref(c).length;for(let F=0;F<A;F++){const M=e.unref(c)[F];e.unref(c)[F].data=M.data.filter(G=>(G.checked&&v.push({...G,checked:!1}),!G.checked))}e.unref(c)[N].data=[...v,...e.unref(c)[N].data],r=!0},w=N=>{e.unref(u)[N]=!0},g=N=>{e.unref(u)[N]=!1},S=(N,v)=>{const A=N.target.value;e.unref(p).has(A)&&j.message.error("组名不能相同,请修改"),e.unref(c)[v].title=A,r=!0},C=e.inject(Ce),k=e.inject(Ne),_=e.computed(()=>e.unref(C).source),E=e.computed(()=>e.unref(C).dataViewId),O=e.ref(!1),B=()=>{var W,X;const N=e.unref(c);let v="";e.unref(O)&&(v=(W=N[0])==null?void 0:W.title);const A=N==null?void 0:N.length,F={};for(let Q=1;Q<A;Q++){const Z=N[Q]||{},{title:ae,data:le}=Z;F[ae]=(le==null?void 0:le.map(_e=>_e.label))||[]}const M=((X=e.unref(C)[t.type])==null?void 0:X.slice())||[],G=M[t.index];G.customGroup={groupInfoMap:F,otherGroupName:v},k({[t.type]:M})},L=e.ref(!1),D=()=>{L.value=!0},I=()=>{L.value=!1},$=()=>{I(),r&&B(),r=!1},x=()=>{r=!0},V=new Set,T=async()=>{const N=t.item.customGroup||{},v=N.otherGroupName,A=N.groupInfoMap;(v===""||v==null)&&(O.value=!1),e.unref(c)[0]={title:v||"未分组",data:[]};let F=1;for(const M in A)if(Object.prototype.hasOwnProperty.call(A,M)){const W=A[M].map(X=>(V.add(X),{label:X,checked:!1}));e.unref(c)[F]={title:M,data:W},F++}await P()},P=async()=>{var N;try{const v=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(_),dataViewId:e.unref(E),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(C).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:A,data:F=[]}=v.data;if(A){const M=[];(N=F==null?void 0:F.slice(0,200))==null||N.forEach(G=>{V.has(G)||M.push({label:G,checked:!1})}),e.unref(c)[0].data=M}}catch(v){console.error(v)}};return e.watch(L,N=>{N&&T(),window.changeShowTable&&window.changeShowTable(!N)},{flush:"post"}),o({showModal:D}),{visible:L,title:s,activeKey:i,customGroupList:c,onCancel:$,useOtherGroup:O,selectCount:f,createGroupTitle:d,onAddGroup:y,onDeleteGroup:h,onMoveInGroup:m,selectGroupIndex:b,onEditTitle:w,onTitleChange:S,onFinishEditTitle:g,onUseOtherGroup:x,customGroupEditTitleList:u}}}),Ny="",Ty="",Pd={class:"custom-group-header"},jd={class:"move-and-create"},Rd={class:"select-tip"},Ud={class:"select-count"},zd={class:"create-group"},Gd={class:"custom-group-content"},Hd=["onClick"],Wd={class:"extra"},Yd={class:"custom-group-list"},qd={class:"text"};function Kd(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),c=e.resolveComponent("a-input"),p=e.resolveComponent("a-checkbox"),u=e.resolveComponent("a-tag"),f=e.resolveComponent("close-outlined"),y=e.resolveComponent("a-checkable-tag"),h=e.resolveComponent("a-collapse-panel"),b=e.resolveComponent("a-collapse"),m=e.resolveComponent("a-modal"),w=e.resolveDirective("focus");return e.openBlock(),e.createBlock(m,{title:t.title,visible:t.visible,"destroy-on-close":"",width:"50%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column"},footer:null,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Pd,[e.createElementVNode("div",jd,[e.createElementVNode("div",null,[e.createElementVNode("span",Rd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Ud,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(d,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=g=>t.selectGroupIndex=g),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,S)=>(e.openBlock(),e.createBlock(s,{key:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createElementVNode("div",zd,[e.createTextVNode(" 创建分组: "),e.createVNode(c,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[1]||(o[1]=g=>t.createGroupTitle=g),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])])]),e.createElementVNode("div",null,[e.createVNode(p,{checked:t.useOtherGroup,"onUpdate:checked":o[2]||(o[2]=g=>t.useOtherGroup=g),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])])]),e.createElementVNode("div",Gd,[e.createVNode(b,{activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=g=>t.activeKey=g),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,S)=>(e.openBlock(),e.createBlock(h,{key:S},{header:e.withCtx(()=>[t.customGroupEditTitleList[S]?e.withDirectives((e.openBlock(),e.createBlock(c,{key:1,class:"edit-title-input",value:g.title,size:"small",onChange:C=>t.onTitleChange(C,S),onBlur:C=>t.onFinishEditTitle(S),onPressEnter:C=>t.onFinishEditTitle(S)},null,8,["value","onChange","onBlur","onPressEnter"])),[[w]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(C=>t.onEditTitle(S),["prevent","stop"])},e.toDisplayString(g.title),9,Hd))]),extra:e.withCtx(()=>[e.createElementVNode("div",Wd,[S===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),S!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(f,{onClick:e.withModifiers(C=>t.onDeleteGroup(S),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Yd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.data,(C,k)=>(e.openBlock(),e.createBlock(y,{color:"red",checked:C.checked,"onUpdate:checked":_=>C.checked=_,class:"custom-group",key:k},{default:e.withCtx(()=>[e.createElementVNode("span",qd,e.toDisplayString(C.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const Xd=oe(Md,[["render",Kd],["__scopeId","data-v-a0733a80"]]);let ge=(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 Qd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zn={},Jd={get exports(){return zn},set exports(t){zn=t}};(function(t,o){(function(n,a){t.exports=a()})(Qd,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var d=s.add;s.add=function(c,p){return c=Number(c),this.$utils().p(p)===a?this.add(3*c,n):d.bind(this)(c,p)};var i=s.startOf;s.startOf=function(c,p){var u=this.$utils(),f=!!u.u(p)||p;if(u.p(c)===a){var y=this.quarter()-1;return f?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return i.bind(this)(c,p)}}})})(Jd);const Zd=zn;he.extend(Zd);const ep=e.defineComponent({name:"Condition",components:{CloseOutlined:Xt,DownOutlined:As,AppstoreAddOutlined:cn,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:kn},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 Ht,Nt,$e,tt,ot,nt,Fe,Tt,at,ft,At,Wo,bo,yo,go;const o=(Ht=window==null?void 0:window.config)==null?void 0:Ht.pageId,n=e.inject(Ce),a=e.inject(Ee),l=e.unref(e.inject(Be)),r=e.inject(ua),s=e.inject(Ue),d=e.ref(!1),i=he(),c=e.computed(()=>{var q;const H=[];return(q=e.unref(s))==null||q.forEach(ee=>{const{keyName:ne="",id:re="",type:ue}=ee;ue==="ecanRangePicker"?H.push({value:`${re}-startTime`,label:`${ne||re}-开始时间值`,keyName:`${ne||re}-startTime`,id:re},{value:`${re}-endTime`,label:`${ne||re}-结束时间值`,keyName:`${ne||re}-endTime`,id:re}):H.push({value:re,label:`${ne||re}`,keyName:`${ne||re}`,id:re})}),H}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(c)]),u=e.computed(()=>{var H;return(H=e.unref(n))==null?void 0:H.dataViewId}),f=e.computed(()=>{var H;return(H=e.unref(n))==null?void 0:H.source}),y=e.ref(!1),h={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},b=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],m=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),w=e.ref([{key:0,value:"",label:"年",type:"years",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"年前",afterLabel:"年后",beforeText:"年初",afterText:"年末"},{key:1,value:"",label:"季度",type:"quarters",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个季度前",afterLabel:"个季度后",beforeText:"季度初",afterText:"季度末"},{key:2,value:"",label:"月",type:"months",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个月前",afterLabel:"个月后",beforeText:"月初",afterText:"月末"},{key:3,value:"",label:"周",type:"weeks",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"周前",afterLabel:"周后",beforeText:"",afterText:""},{key:4,value:"",label:"天",type:"days",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"天前",afterLabel:"天后",beforeText:"今天",afterText:""}]),g=[{label:"年份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"季的季度",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"月的月份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"周的周",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"天的日期",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"}],S=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],C=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],k=e.ref({fieldName:(Nt=t.data)==null?void 0:Nt.fieldName,fieldType:($e=t.data)==null?void 0:$e.fieldType,rule:(tt=t.data)==null?void 0:tt.rule,id:(ot=t.data)==null?void 0:ot.id,fieldValue:_(),label:(nt=t.data)==null?void 0:nt.label,targetSource:"",typeGuid:(Fe=t.data)==null?void 0:Fe.typeGuid,indexCode:(Tt=t.data)==null?void 0:Tt.indexCode,indexCodeNum:(at=t.data)==null?void 0:at.indexCodeNum,dataType:((ft=t.data)==null?void 0:ft.dataType)||"",componentId:((At=t.data)==null?void 0:At.componentId)||"",useCurrentTime:!!((Wo=t.data)!=null&&Wo.useCurrentTime),keyValue:(bo=t.data)==null?void 0:bo.keyValue,modelKey:(yo=t.data)==null?void 0:yo.modelKey,prop:(go=t.data)==null?void 0:go.prop});function _(){const{fieldType:H="",dataType:q="",fieldValue:ee=""}=t.data;if(H==="DATE"&&q==="time")return ee&&he(ee);if(q==="component"){const ne=e.unref(c).find(re=>re.keyName===ee);return ne?ne.value:ee}else return ee}const E=e.ref([]),O=e.ref(!1),B=e.computed(()=>k.value.fieldType==="DATE"),L=e.computed(()=>{const H=t.type,{source:q}=e.unref(n);let ee=[];const ne=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],re=["controlList","sqlConditions","variableList","variableConditions"];if(q==="EDV_DATA_SET")ee=E.value;else if(ne.includes(H)){let ue=[];for(const U in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),U)&&!re.includes(U)){const z=e.unref(n)[U];Array.isArray(z)&&(ne.includes(U)?ue=ue.concat(z.filter(Y=>Y.show)):ue=ue.concat(z))}ee=ue}else["leftAxisList","rightAxisList","indicators"].includes(H)&&(ee=e.unref(r));return ee.map(ue=>({...ue,label:ue.label||ue.title,value:ue.name}))}),{updateCondition:D,deleteCondition:I,addCondition:$}=e.inject(wo,{updateCondition:(H,q,ee)=>{},deleteCondition:(H,q)=>{},addCondition:(H,q,ee)=>{}}),x=()=>{I(t.index,t.path)};e.watch(k,H=>{const q=J.cloneDeep(H);H.fieldType==="DATE"&&H.dataType!=="component"&&H.fieldValue&&(q.fieldValue=H.fieldValue.format(H.dateFormat)),D(q,t.index,t.path)},{deep:!0}),e.watch(d,H=>{k.value.fieldValue="",k.value.useCurrentTime=H});const V=H=>{var ie;const q=e.unref(L).find(se=>se.value===H)||{},{name:ee,genericType:ne,id:re,edvDataSetId:ue,label:U,typeGuid:z,indexCode:Y,indexCodeNum:K}=q;k.value={id:re,fieldName:ee,fieldType:ne,label:U,rule:"",fieldValue:ne==="DATE"?null:void 0,targetSource:"",typeGuid:z,indexCode:Y,edvDataSetId:ue,indexCodeNum:K,dataType:"",useCurrentTime:!1,keyValue:((ie=e.unref(k))==null?void 0:ie.keyValue)||ge(),modelKey:"",prop:""}},T=H=>{const q=e.unref(c).find(ee=>ee.value===H)||{};e.unref(k).componentId=q.id||""},P=e.computed(()=>{const H=e.unref(k).fieldType;return H==="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"}]:H==="NUMBER"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:H==="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"}]}),R=e.computed(()=>{let H="";const q=e.unref(P).find(ee=>ee.value===e.unref(k).rule);return q&&(H=q.label),H}),N=e.computed(()=>{let H={fontSize:"12px"};return e.unref(R)||(H={...H,position:"absolute",right:"11px",top:"9px"}),H}),v=e.ref([]),A=async()=>{var H;if(!(e.unref(v).length>0))try{const q=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(f),dataViewId:e.unref(u),groupColumn:e.unref(k).fieldName,hrpIndexTypeGuid:e.unref(k).typeGuid,pageId:o,pageFlag:!0,edvDataSetId:e.unref(k).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:ee,data:ne=[]}=q.data;ee&&(v.value=(H=ne==null?void 0:ne.slice(0,200))==null?void 0:H.map(re=>({label:re,value:re})))}catch(q){console.error(q)}},F=H=>{e.unref(k).rule=H,e.unref(k).fieldValue=e.unref(k).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(H)&&A()},M=H=>{e.unref(k).dataType=H,e.unref(k).fieldValue="",e.unref(k).modelKey="",e.unref(k).prop=""},G=e.ref(),W=H=>{G.value=H,e.unref(k).fieldValue=(H==null?void 0:H.join(","))||""},X=H=>{const{keyPath:q}=H;e.unref(k).rule=q[0],e.unref(k).dataType=q[1],e.unref(k).dateFormat=q[2],e.unref(k).fieldValue="",e.unref(k).modelKey="",e.unref(k).prop=""};e.onMounted(async()=>{var re,ue,U,z,Y,K,ie,se,te,be;if(k.value.dataType=((re=t.data)==null?void 0:re.dataType)||"",k.value.componentId=((ue=t.data)==null?void 0:ue.componentId)||"",k.value.keyValue=(U=t.data)==null?void 0:U.keyValue,k.value.modelKey=(z=t.data)==null?void 0:z.modelKey,k.value.prop=(Y=t.data)==null?void 0:Y.prop,e.unref(k).fieldType==="DATE"){const{activeKey:de,dateCalcTypes:ce=[]}=t.data||{};if(e.unref(k).dateFormat=(K=t.data)==null?void 0:K.dateFormat,e.unref(k).activeKey=de,e.unref(k).calcWays=((ie=t.data)==null?void 0:ie.calcWays)||[],e.unref(k).dateCalcTypes=ce,e.unref(k).useCurrentTime&&e.unref(k).dataType!=="component"&&(d.value=!0),de===5){const ye=e.unref(k).calcWays[0];if(ye){const fe=ye.split("-");e.unref(m).expression=fe[0],e.unref(m).around=fe[1]}e.unref(m).unit=ce[0]||"YEAR"}else{e.unref(k).radioValue=((se=t.data)==null?void 0:se.radioValue)||"";const ye=e.unref(w).find(fe=>{var ke;return fe.key===((ke=t.data)==null?void 0:ke.activeKey)});ye&&Xe(ye,t.data)}}else G.value=((be=(te=t.data)==null?void 0:te.fieldValue)==null?void 0:be.split(","))||[];const{fieldType:H,fieldName:q,rule:ee}=k.value;H!=="DATE"&&q&&ee&&["IN","NOT_IN"].includes(ee)&&A();const{source:ne}=e.unref(n);ne==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(de=>{de.data.success&&(console.log(de.data),E.value=de.data.data.column.map(ce=>({...ce,genericType:ce.columnCategory==="0"?"TEXT":ce.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:de.data.data.id,name:ce.columnName,label:ce.columnName})))}).catch(de=>{console.error(de)})});const Q=H=>{if(e.unref(k).activeKey===H){e.unref(w)[H].radioValue=e.unref(k).radioValue,e.unref(w)[e.unref(k).activeKey]&&(e.unref(w)[e.unref(k).activeKey].radioValue=e.unref(k).radioValue,e.unref(k).radioValue==="1"?e.unref(w)[H].beforeNum=e.unref(k).calcWays[0]:e.unref(k).radioValue==="2"&&(e.unref(w)[H].afterNum=e.unref(k).calcWays[0]));return}e.unref(w).forEach(q=>{q.beforeNum=0,q.afterNum=0,q.radioValue="1",q.value=""})},Z=(H,q)=>{y.value=!0;const ee=H.target.value,ne=q.type,re=e.unref(k).dateFormat,ue=Math.abs(q.beforeNum),U=q.afterNum;q.value=pe(ee,ne,re,ue,U)},ae=H=>{const q=e.unref(k).activeKey;if(H!==q)return;let ee="";q===0?ee="years":q===1?ee="quarters":q===2?ee="months":q===3?ee="weeks":q===4&&(ee="days");const ne=e.unref(k).dateFormat,re=e.unref(k).radioValue;let ue=0,U=0;return re==="1"?ue=Math.abs(e.unref(k).calcWays[0]):re==="2"&&(U=e.unref(k).calcWays[0]),pe(re,ee,ne,ue,U)},le=(H,q,ee,ne)=>{if(y.value=!0,q.radioValue===ne){const re=H.target.value;ee==="+"?q.value=he().add(re,q.type).format(e.unref(k).dateFormat):q.value=he().subtract(re,q.type).format(e.unref(k).dateFormat)}},_e=(H,q)=>{e.unref(k).calcWays||(e.unref(k).calcWays=[]),e.unref(k).activeKey=q,e.unref(k).radioValue=H.radioValue,H.radioValue==="1"?e.unref(k).calcWays[0]="-"+H.beforeNum:H.radioValue==="2"?e.unref(k).calcWays[0]=H.afterNum:H.radioValue==="3"?q===4?e.unref(k).calcWays[0]="0":e.unref(k).calcWays[0]="BEGIN":H.radioValue==="4"&&(e.unref(k).calcWays[0]="END"),q===0?e.unref(k).dateCalcTypes=["YEAR"]:q===1?e.unref(k).dateCalcTypes=["QUARTER"]:q===2?e.unref(k).dateCalcTypes=["MONTH"]:q===3?e.unref(k).dateCalcTypes=["WEEK"]:q===4&&(e.unref(k).dateCalcTypes=["DAY"]),O.value=!1},St=()=>{e.unref(k).activeKey=5,e.unref(k).dateCalcTypes=[e.unref(m).unit],e.unref(k).calcWays[0]=`${e.unref(m).expression}-${e.unref(m).around}`,O.value=!1};function Xe(H,q){const{radioValue:ee="",calcWays:ne=[]}=q;H.radioValue=ee,ne!=null&&ne.length&&(ee==="1"?H.beforeNum=Math.abs(ne[0]):ee==="2"&&(H.afterNum=ne[0]))}function pe(H,q,ee,ne,re){if(H==="1")return he().subtract(ne,q).format(ee);if(H==="2")return he().add(re,q).format(ee);if(H==="3"){if(q==="years")return he().startOf("year").format(ee);if(q==="quarters")return he().startOf("quarter").format(ee);if(q==="months")return he().startOf("month").format(ee);if(q==="days")return he().format(ee)}else if(H==="4"){if(q==="years")return he().endOf("year").format(ee);if(q==="quarters")return he().endOf("quarter").format(ee);if(q==="months")return he().endOf("month").format(ee)}return""}const Oe=(H,q)=>q.label.toLowerCase().indexOf(H.toLowerCase())>=0,ut=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(k).rule));return{fieldOptions:L,ruleOptions:P,onFieldChange:V,condition:k,valueOptions:v,onRuleChange:F,onDataTypeChange:M,onFieldValueSelectChange:W,fieldValues:G,onDelete:x,isDateType:B,formatList:b,tabDateList:w,compareList:g,menuRule:S,dateBtnLabel:R,downIconStyle:N,popoverVisible:O,dateRadioStyle:h,showTime:y,controlList:c,keyNameOptions:p,dataTypeList:C,customTabData:m,isUseCurrentTime:d,currentTime:i,isShowCustomDataType:ut,handleMenuClick:X,changeTabInitDate:Q,changeRadioValue:Z,getFieldValue:ae,blurCompare:le,okDatePickConfig:_e,onChangeComponent:T,filterOption:Oe,okCustomConfig:St,clickConditionMenu:({key:H})=>{$(t.path,t.index,H==="2"?"||":"&&")},dataSetfieldOptions:E}}}),Ay="",Oy="",tp={class:"condition"},op=["title"],np={class:"rule"},ap={class:"data-type"},lp={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},rp={class:"popover-content-wrap"},ip={key:0,class:"use-current-time"},sp={class:"tabFilterRadio"},cp={key:0},dp={key:1},pp={style:{"margin-left":"10px"}},up={style:{"margin-left":"10px"}},fp={style:{position:"absolute",bottom:"10px"}},mp={style:{display:"flex"}},hp={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function bp(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),c=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),f=e.resolveComponent("a-button"),y=e.resolveComponent("a-dropdown"),h=e.resolveComponent("a-date-picker"),b=e.resolveComponent("a-input"),m=e.resolveComponent("a-checkbox"),w=e.resolveComponent("a-input-number"),g=e.resolveComponent("a-radio"),S=e.resolveComponent("a-radio-group"),C=e.resolveComponent("a-tab-pane"),k=e.resolveComponent("a-tabs"),_=e.resolveComponent("appstore-add-outlined"),E=e.resolveComponent("a-popover"),O=e.resolveComponent("menu-outlined"),B=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",tp,[e.createVNode(d,{class:"field-name",value:t.condition.fieldName,onChange:t.onFieldChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fieldOptions,(L,D)=>(e.openBlock(),e.createBlock(s,{key:D,value:L.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:L.label},e.toDisplayString(L.label),9,op)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",np,[t.isDateType?(e.openBlock(),e.createBlock(y,{key:0,class:"dropdown",trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.handleMenuClick},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.ruleOptions,L=>(e.openBlock(),e.createBlock(c,{key:L.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===L.value?"color: #1890FF;":"")},e.toDisplayString(L.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,D=>{var I;return e.openBlock(),e.createBlock(c,{key:D.value,disabled:D.value==="component"&&!((I=t.controlList)!=null&&I.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===L.value&&t.condition.dataType===D.value?"color: #1890FF;":"")},e.toDisplayString(D.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,$=>(e.openBlock(),e.createBlock(i,{key:$.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===L.value&&t.condition.dataType===D.value&&t.condition.dateFormat===$.value?"color: #1890FF;":"")},e.toDisplayString($.label),5)]),_:2},1024))),128))]),_:2},1032,["disabled"])}),128))]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dateBtnLabel)+" ",1),e.createVNode(u,{style:e.normalizeStyle(t.downIconStyle)},null,8,["style"])]),_:1})]),_:1})):(e.openBlock(),e.createBlock(d,{key:1,style:{width:"100%"},value:t.condition.rule,options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]))]),e.withDirectives(e.createElementVNode("div",ap,[e.createVNode(d,{style:{width:"100%"},value:t.condition.dataType,onChange:t.onDataTypeChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataTypeList,(L,D)=>(e.openBlock(),e.createBlock(s,{key:D,value:L.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.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",lp,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(h,{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(h,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=L=>t.condition.fieldValue=L),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(d,{key:1,"show-search":"",style:e.normalizeStyle({width:t.condition.fieldValue==="PARENT"?"":"calc(100% - 35px)",marginRight:"10px"}),value:t.condition.fieldValue,"onUpdate:value":o[1]||(o[1]=L=>t.condition.fieldValue=L),"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]=L=>t.condition.modelKey=L),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=L=>t.condition.prop=L),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(E,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=L=>t.popoverVisible=L),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",rp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",ip,[e.createVNode(m,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=L=>t.isUseCurrentTime=L)},{default:e.withCtx(()=>[e.createTextVNode("使用当前时间")]),_:1},8,["checked"])])):e.createCommentVNode("",!0),e.createVNode(k,{defaultActiveKey:t.condition.activeKey,onChange:t.changeTabInitDate},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabDateList,(L,D)=>(e.openBlock(),e.createBlock(C,{key:D,tab:L.label},{default:e.withCtx(()=>[e.createElementVNode("div",sp,[e.createVNode(S,{value:L.radioValue,"onUpdate:value":I=>L.radioValue=I,onChange:I=>t.changeRadioValue(I,L)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",cp,"相对当前时间:"+e.toDisplayString(L.value),1)):(e.openBlock(),e.createElementBlock("div",dp,"相对当前时间:"+e.toDisplayString(t.getFieldValue(D)),1)),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(w,{value:L.beforeNum,"onUpdate:value":I=>L.beforeNum=I,min:0,onBlur:I=>t.blurCompare(I,L,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",pp,e.toDisplayString(L.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(w,{value:L.afterNum,"onUpdate:value":I=>L.afterNum=I,min:0,onBlur:I=>t.blurCompare(I,L,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",up,e.toDisplayString(L.afterLabel),1)]),_:2},1032,["style"]),L.beforeText?(e.openBlock(),e.createBlock(g,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),L.afterText?(e.openBlock(),e.createBlock(g,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",fp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=I=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:I=>t.okDatePickConfig(L,D)},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:2},1032,["onClick"])])])]),_:2},1032,["tab"]))),128)),(e.openBlock(),e.createBlock(C,{tab:"自定义",key:5},{default:e.withCtx(()=>[e.createElementVNode("div",mp,[e.createVNode(d,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=L=>t.customTabData.expression=L),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=L=>t.customTabData.unit=L),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(s,{value:"QUARTER"},{default:e.withCtx(()=>[e.createTextVNode("季度")]),_:1}),e.createVNode(s,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(s,{value:"WEEK"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(s,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=L=>t.customTabData.around=L)},{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",hp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=L=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:t.okCustomConfig},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])])]),_:1}))]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[10]||(o[10]=L=>{t.popoverVisible=!0})},[e.createVNode(_)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(d,{key:1,class:"field-value",value:t.fieldValues,mode:"multiple",options:t.valueOptions,onChange:t.onFieldValueSelectChange},null,8,["value","options","onChange"])):(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType&&t.condition.dataType==="component"?(e.openBlock(),e.createBlock(d,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=L=>t.condition.fieldValue=L),"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]=L=>t.condition.fieldValue=L)},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]=L=>t.condition.modelKey=L),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=L=>t.condition.prop=L),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(y,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(i,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(i,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(O,{class:"more-icon"})]),_:1}),e.createVNode(B,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const yp=oe(ep,[["render",bp],["__scopeId","data-v-29a39def"]]),gp=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:yp}}),Ey="",Cp={key:0,class:"condition-list"},wp={key:0,class:"condition-container"},kp={key:0,class:"condition-text"},xp={key:1,class:"condition-text"},_p={class:"conditions"};function Sp(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),d=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Cp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",wp,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",kp,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",xp,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",_p,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${c}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(d,{class:"condition",key:i.keyValue||`${t.level}-${c}`,data:i,level:t.level,index:c,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const Np=oe(gp,[["render",Sp],["__scopeId","data-v-553c1496"]]),Tp=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=J.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),By="",er=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),Ap={class:"truncations"},Op={class:"rule"},Ep={class:"field-value"},Bp={class:"field-value"},Vp=er(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Lp=er(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),vp=["onClick"];function $p(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",Ap,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Op,[e.createVNode(s,{style:{width:"100%"},value:c.rule,"onUpdate:value":u=>c.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",Ep,[e.createTextVNode(" N= "),e.createVNode(d,{value:c.num,"onUpdate:value":u=>c.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",Bp,[Vp,e.createVNode(i,{value:c.name,"onUpdate:value":u=>c.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),Lp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(c)},"清空",8,vp)]))),128))])}const Fp=oe(Tp,[["render",$p],["__scopeId","data-v-f543c690"]]),Ip=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:Np,TruncationList:Fp,AModal:j.Modal,AButton:j.Button,ATabs:j.Tabs,ATabPane:j.TabPane},setup(t,{expose:o}){var x;const n=e.ref("1"),a=()=>{var V;return`添加过滤条件-${((V=t.item)==null?void 0:V.label)||""}`},l=e.inject(Ce),r=e.inject(Ne),s=e.inject(Ue),d=e.computed(()=>{var V;return(V=e.unref(l))==null?void 0:V.dataSourceId}),i=e.inject(Ie),c=e.inject(ko),p=e.ref([]),u=e.ref([]),f=e.ref(!1),y=e.inject(Wt),h=V=>{var T;for(const P of V)(T=P.conditions)!=null&&T.length?h(P.conditions):P.keyValue=ge()};e.watch(f,V=>{var T,P,R,N;if(V){if(Array.isArray((T=t.item)==null?void 0:T.conditions)){const v=J.cloneDeep(((P=t.item)==null?void 0:P.conditions)||[]);h(v),p.value=v}Array.isArray((R=t.item)==null?void 0:R.truncations)?u.value=J.cloneDeep((N=t.item)==null?void 0:N.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!V)},{flush:"post"});let b=!1;const m=V=>{var T;b=!0,e.unref(p)==null||((T=e.unref(p))==null?void 0:T.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==V?p.value=[{join:V,conditions:[e.unref(p)[0],{keyValue:ge()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===V&&p.value[0].conditions.push({keyValue:ge()}))};e.provide(wo,{updateCondition(V,T,P){var v;b=!0;let R=e.unref(p);const N=P.split("-");if(N!=null&&N.length)for(const A of N)if(R[A])R=(v=R[A])==null?void 0:v.conditions;else break;Array.isArray(R)&&R[T]&&(R[T]=V)},deleteCondition(V,T){var N,v,A;b=!0;let P=e.unref(p);const R=T.split("-");if(R!=null&&R.length){for(const F of R)if(P[F])P=(N=P[F])==null?void 0:N.conditions;else break;if(Array.isArray(P)&&P[V])if(P.splice(V,1),P.length===1){if(R.length>0){const F=R.length-1,M=R[F],G=R.slice(0,F);let W=e.unref(p),X="";for(const Q of G)if(W[Q])X=(v=W[Q])==null?void 0:v.join,W=(A=W[Q])==null?void 0:A.conditions;else break;if(X===P[0].join){if(Array.isArray(P[0].conditions)){const Q=J.cloneDeep(P[0].conditions);W.splice(+M,1),W.splice(+M,0,...Q)}}else W[M]=P[0]}}else P.length===0&&(p.value=[])}},addCondition(V,T,P){var A,F;b=!0;let R=e.unref(p),N="";const v=V.split("-");if(v!=null&&v.length){for(const M of v)if(R[M])N=(A=R[M])==null?void 0:A.join,R=(F=R[M])==null?void 0:F.conditions;else break;if(N===P)R.splice(T+1,0,{keyValue:ge()});else{const M=J.cloneDeep(R[T]);R[T]={join:P,conditions:[M,{keyValue:ge()}]}}}}});const w=V=>{b=!0,u.value=V},g=e.computed(()=>{var T;const V=[];return(T=e.unref(s))==null||T.forEach(P=>{const{keyName:R="",id:N="",type:v}=P;v==="ecanRangePicker"?V.push({value:`${N}-startTime`,label:`${R||N}-开始时间值`,keyName:`${R||N}-startTime`},{value:`${N}-endTime`,label:`${R||N}-结束时间值`,keyName:`${R||N}-endTime`}):V.push({value:N,label:`${R||N}`,keyName:`${R||N}`})}),V}),S=()=>{var A,F,M;const V=dt(((A=e.unref(l))==null?void 0:A.controlList)||[]),T=((F=e.unref(l)[t.type])==null?void 0:F.slice())||[],P=dt(J.cloneDeep(T[t.index].conditions));T[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((M=e.unref(u))!=null&&M.length)&&(T[t.index].truncations=e.unref(u));const R=dt(e.unref(p));for(const G of R)if(G.dataType==="component"&&G.fieldValue){const W=e.unref(g).find(X=>X.value===G.fieldValue);W&&(G.fieldValue=W.keyName)}const N=P.filter(G=>!R.find(W=>W.componentId===G.componentId)).filter(G=>!V.find(W=>W.id===G.componentId)),v=R.filter(G=>!P.find(W=>W.componentId===G.componentId));C(N,v),r({[t.type]:T,sqlConditions:Gl({...e.unref(l),[t.type]:T},e.unref(s))})};function C(V,T){var R;const P=V.map(N=>({...N,delete:!0})).concat(T.map(N=>({...N,add:!0})));for(const N of P){const v=e.unref(s).find(A=>A.id===N.componentId);if(v){const{type:A,id:F,events:M=[]}=v,G=Bo(A);if(N.add)M.find(W=>{var X;return W.on===G&&W.target===((X=e.unref(i))==null?void 0:X.id)&&W.emit==="refreshData"})||c({id:F,events:[...M,{on:G,target:(R=e.unref(i))==null?void 0:R.id,emit:"refreshData"}].reverse()});else if(N.delete){const W=M.findIndex(X=>{var Q;return X.on===G&&X.target===((Q=e.unref(i))==null?void 0:Q.id)&&X.emit==="refreshData"});W!==-1&&(M.splice(W,1),c({id:F,events:M}))}}}}const k=()=>{f.value=!0},_=()=>{p.value=[],f.value=!1},E=()=>{b&&S(),b=!1,_()},O=()=>{_()},B=e.inject(Ee),L=e.unref(e.inject(Be)),D=(x=window==null?void 0:window.config)==null?void 0:x.pageId,I=e.ref([]);e.provide(ua,I);const $=async V=>{var T;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:P,indexCode:R}=V,N=await B.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:D,dataSourceId:e.unref(d),indexGuid:P,indexCode:R},{headers:{Authentication:L,operateContext:"ygt"}}),{success:v,data:A=[]}=N.data;v&&((T=A==null?void 0:A.dataViewColumns)!=null&&T.length)&&(I.value=A.dataViewColumns.map(F=>({...F,label:F.title||F.label})))}catch(P){console.error(P)}};return e.watch(()=>t.item,V=>{V&&f.value&&e.unref(y)!=="EDV_DATA_SET"&&$(V)}),o({showModal:k}),{visible:f,onOk:E,onCancel:O,handleTitle:a,conditionList:p,truncationList:u,addCondition:m,onUpdatetruncation:w,activeKey:n,source:y}}}),Vy="",Dp={class:"header"},Mp={class:"header"};function Pp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),c=e.resolveComponent("truncation-list"),p=e.resolveComponent("a-tabs"),u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{title:t.handleTitle(),visible:t.visible,"destroy-on-close":"",width:"55%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[["classificationList","rowHeaderList","dimensionList"].includes(t.type)?(e.openBlock(),e.createBlock(p,{key:0,activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=f=>t.activeKey=f)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",Dp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])]),_:1}),e.createVNode(i,{key:"2",tab:"截断配置"},{default:e.withCtx(()=>[e.createVNode(c,{list:t.truncationList,onUpdate:t.onUpdatetruncation},null,8,["list","onUpdate"])]),_:1})]),_:1},8,["activeKey"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Mp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[4]||(o[4]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const jp=oe(Ip,[["render",Pp],["__scopeId","data-v-38f115c6"]]),Rp=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(Ce),l=e.inject(Ne),r=e.ref(),s=p=>{const{showLabel:u="",label:f=""}=p;r.value=u||f||"",n.value=!0},d=()=>{n.value=!1},i=()=>{var u;const p=((u=e.unref(a)[t.type])==null?void 0:u.slice())||[];p[t.index].showLabel=r.value,l({[t.type]:p}),d()},c=()=>{d()};return o({showModal:s}),{visible:n,onOk:i,onCancel:c,fieldName:r}}}),Ly="",Up=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),zp={class:"config-name"},Gp=Up(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function Hp(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置展示名称",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",zp,[Gp,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 Wp=oe(Rp,[["render",Hp],["__scopeId","data-v-de6a1755"]]),Yp=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(Ce),l=e.inject(Ne),r=e.inject(Ue),s=e.inject(Ie),d=e.inject(ko),i=e.ref(),c=e.computed(()=>{var w;return(w=e.unref(r))==null?void 0:w.filter(g=>g.keyName!=="")});let p=[];const u=w=>{const{sortCpnts:g=[]}=w;p=J.cloneDeep(g),i.value=J.cloneDeep(g),n.value=!0},f=()=>{n.value=!1},y=()=>{var k,_;const w=dt(((k=e.unref(a))==null?void 0:k.controlList)||[]),g=p.filter(E=>!e.unref(i).includes(E)).filter(E=>!w.find(O=>O.id===E)),S=e.unref(i).filter(E=>!p.includes(E)).filter(E=>!w.find(O=>O.id===E)),C=g.map(E=>({componentId:E,delete:!0})).concat(S.map(E=>({componentId:E,add:!0})));for(const E of C){const O=e.unref(r).find(B=>B.id===E.componentId);if(O){const{type:B,id:L,events:D=[]}=O,I=Bo(B);if(E.add)D.find($=>{var x;return $.on===I&&$.target===((x=e.unref(s))==null?void 0:x.id)&&$.emit==="refreshData"})||d({id:L,events:[...D,{on:I,target:(_=e.unref(s))==null?void 0:_.id,emit:"refreshData"}].reverse()});else if(E.delete){const $=D.findIndex(x=>{var V;return x.on===I&&x.target===((V=e.unref(s))==null?void 0:V.id)&&x.emit==="refreshData"});$!==-1&&(D.splice($,1),d({id:L,events:D}))}}}},h=()=>{var g;y();const w=((g=e.unref(a)[t.type])==null?void 0:g.slice())||[];w[t.index].sortCpnts=i.value,l({[t.type]:w}),f()},b=()=>{f()},m=(w,g)=>{var S;return(S=g==null?void 0:g.keyName)==null?void 0:S.toLowerCase().includes(w==null?void 0:w.toLowerCase())};return o({showModal:u}),{visible:n,onOk:h,onCancel:b,idFilterOption:m,fieldName:i,usedComponentList:c}}}),vy="",qp=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),Kp={class:"sort-by-cpnt"},Xp=qp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function Qp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联组件排序",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Kp,[Xp,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 Jp=oe(Yp,[["render",Qp],["__scopeId","data-v-08af1ef8"]]),Zp=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(Ce),l=e.inject(Ne),r=e.ref(),s=e.ref([]),d=(f,y)=>{const{dimByCount:h=""}=f;r.value=h,s.value=y.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},c=()=>{var y;const f=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];f[t.index].dimByCount=r.value,l({[t.type]:f}),i()},p=()=>{i()},u=(f,y)=>{var h;return(h=y==null?void 0:y.label)==null?void 0:h.toLowerCase().includes(f==null?void 0:f.toLowerCase())};return o({showModal:d}),{visible:n,onOk:c,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),$y="",eu=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),tu={class:"dim-by-count"},ou=eu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function nu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联维度",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",tu,[ou,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 au=oe(Zp,[["render",nu],["__scopeId","data-v-aa1c298e"]]),Gn=(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:Gn(t,l.children)&&(n=Gn(t,l.children)))}return n},lu=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:_s},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Ee),a=e.unref(e.inject(Be)),l=e.inject(Ce),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),d=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),c=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>{const B=e.unref(r).concat(e.unref(d)).concat(e.unref(i)).concat(e.unref(c));return t.mode==="edit"?(B==null?void 0:B.filter(L=>{var D;return L.id!==((D=t.item)==null?void 0:D.id)}))||[]:B||[]}),u=e.computed(()=>s.value.filter(B=>!B.randomKey)),f=e.computed({get:()=>t.value||"",set:B=>{o("update:value",B),o("change",B)}}),y=e.ref("1"),h=e.ref(""),b=B=>{const L=document.getElementById("calTextArea");let D=f.value;if(document.selection){const I=document.selection.createRange();I.text=B}else if(typeof L.selectionStart=="number"&&typeof L.selectionEnd=="number"){const I=L.selectionStart,$=L.selectionEnd;let x=I;D=D.substring(0,I)+B+D.substring($,D.length),x+=B.length,L.selectionStart=L.selectionEnd=x}else D+=B;f.value=D},m=["+","-","*","/","(",")"],w=(B,L)=>{let D="";switch(L){case"name":{D="${"+B+"}";break}case"function":{D=B+"()";break}default:D=B}b(D)},g=[],S=e.ref([]),C=e.ref(!0),k=e.ref([]),_=B=>{var L;for(const D of B)(L=D==null?void 0:D.children)!=null&&L.length?_(D.children):g.push({key:D.key,title:D.title})},E=async()=>{try{const B=await n.get(`${Se}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:L,data:D=[]}=B.data;L&&(D!=null&&D.length)&&(_(D),k.value=D)}catch(B){console.error(B)}},O=B=>{S.value=B,C.value=!1};return e.watch(h,B=>{const L=g.map(D=>D.title.indexOf(B)>-1?Gn(D.key,k.value):null).filter((D,I,$)=>D&&$.indexOf(D)===I);S.value=L,h.value=B,C.value=!0}),e.onMounted(()=>{E()}),{fieldList:p,varList:u,myValue:f,calculMethods:m,funcDescsData:k,searchFuncValue:h,expandedKeys:S,autoExpandParent:C,activeKey:y,selectedElem:w,onExpand:O}}}),Fy="",Iy="",tr=t=>(e.pushScopeId("data-v-69040cfb"),t=t(),e.popScopeId(),t),ru={class:"formula-calculation"},iu={class:"field-area"},su={style:{"text-align":"center",padding:"10px 0"}},cu=["onClick"],du=["onClick"],pu={class:"cal_right_bottom"},uu={class:"cal_fu"},fu=["onClick"],mu={class:"function-wrap"},hu={class:"wrap-search"},bu={class:"tree-box"},yu=tr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),gu=tr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),Cu={key:0},wu={style:{color:"#f50"}},ku={key:1},xu=["onClick"],_u={class:"cal_a"};function Su(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),d=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),c=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),f=e.resolveComponent("a-tree"),y=e.resolveComponent("double-right-outlined"),h=e.resolveComponent("a-popover"),b=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",ru,[e.createVNode(b,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",iu,[e.createElementVNode("div",su,[e.createVNode(d,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=m=>t.activeKey=m),size:"small"},{default:e.withCtx(()=>[e.createVNode(s,{value:"1"},{default:e.withCtx(()=>[e.createTextVNode("数值字段("+e.toDisplayString(t.fieldList.length)+")",1)]),_:1}),e.createVNode(s,{value:"2"},{default:e.withCtx(()=>[e.createTextVNode("全局变量("+e.toDisplayString(t.varList.length)+")",1)]),_:1})]),_:1},8,["value"])]),t.activeKey==="1"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fieldList,(m,w)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:w,onClick:g=>t.selectedElem(m.label,"name")},e.toDisplayString(m.label),9,cu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(m,w)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:w,onClick:g=>t.selectedElem(m.variableName,"name")},e.toDisplayString(m.variableName),9,du))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(c,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=m=>t.myValue=m),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",pu,[e.createElementVNode("ul",uu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(m,w)=>(e.openBlock(),e.createElementBlock("li",{onClick:g=>t.selectedElem(m,"symbol"),key:w},e.toDisplayString(m),9,fu))),128))]),e.createVNode(h,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",mu,[e.createElementVNode("div",hu,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=m=>t.searchFuncValue=m),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",bu,[e.createVNode(f,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:m,leaf:w,describe:g,exp:S})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[m.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",Cu,[e.createTextVNode(e.toDisplayString(m.substr(0,m.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",wu,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(m.substr(m.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",ku,e.toDisplayString(m),1)),w?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:C=>t.selectedElem(m,"function")},"插入",8,xu)):e.createCommentVNode("",!0)]),_:2},[w?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[yu,e.createElementVNode("span",null,e.toDisplayString(g),1)]),e.createElementVNode("div",null,[gu,e.createElementVNode("span",null,e.toDisplayString(S),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",_u,[e.createTextVNode(" 更多函数 "),e.createVNode(y,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const Nu=oe(lu,[["render",Su],["__scopeId","data-v-69040cfb"]]),Tu=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:Nu,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:ec},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},mode:{type:String,default:"add"}},setup(t,{expose:o}){const n=e.inject(Ue),a=e.inject(Ce),l=e.inject(Ne),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),d=e.computed(()=>{const $=["leftAxisList","rightAxisList","queryColumnList","indicators"];let x=[];for(const V of $)Object.prototype.hasOwnProperty.call(e.unref(a),V)&&(x=x.concat(e.unref(a)[V]));return x}),i={span:4},c={span:18},p={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},u={value:0,unit:"YEAR",around:"before"},f=e.ref({}),y=e.ref(),h=e.ref(!1),b=e.ref();e.watch(h,$=>{if($)if(t.mode==="edit"){const{label:x,calcType:V,formula:T,builtInValueSource:P,builtInFormula:R,builtInCalcWay:N}=t.item;if(b.value={label:x,calcType:V,formula:T,builtInValueSource:P,builtInFormula:R,builtInCalcWay:N},R==="DATE_OFFSET"){const v=N.split("-");(v==null?void 0:v.length)===3&&(f.value={value:v[0],unit:v[1],around:v[2]})}}else t.mode==="add"&&(b.value=J.cloneDeep(p),f.value=J.cloneDeep(u));else b.value=J.cloneDeep(p),f.value=J.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!$)},{immediate:!0,deep:!0});let m=!1;const w=()=>{m=!0},g=$=>{const x=e.unref(r).find(V=>V.id===$);x&&(b.value.builtInCalcWay=x.keyName),m=!0},S=()=>{var P;const $=((P=e.unref(a)[t.type])==null?void 0:P.slice())||[],{label:x,builtInFormula:V}=e.unref(b)||{},T={};if(V==="DATE_OFFSET"&&(T.builtInCalcWay=`${e.unref(f).value}-${e.unref(f).unit}-${e.unref(f).around}`),t.mode==="add"){const R=ge();$.push({...e.unref(b),...T,id:R,show:!0,name:x})}else t.mode==="edit"&&($[t.index]={...$[t.index],...e.unref(b),...T,name:x});l({[t.type]:$})},C=()=>{h.value=!0},k=()=>{h.value=!1},_=async($,x)=>{if(x==="")return Promise.reject(new Error("请输入指标名"));{const V=e.unref(d).find(T=>T.label===x);return V?V.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},E=e.computed(()=>{let $={label:[{required:!0,validator:_,trigger:"change"}]};return b.value.calcType==="BUILT_IN"&&($={...$,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),$}),O=()=>{y.value.validate().then(()=>{m&&S(),m=!1,k()})},B=()=>{y.value.clearValidate(),k()},L=()=>{m=!0,e.unref(b).builtInCalcWay=""},D=e.computed(()=>{let $="";const x=e.unref(b).builtInCalcWay,V=e.unref(b).builtInValueSource;if(!V||!x)return $;switch(e.unref(b).builtInFormula){case"BUILT_IN_RANK":{x==="ASC"?$="【"+V+"】由小到大在所有值中的排名":$="【"+V+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{$=`所有【】的
|
|
65
65
|
`,x==="ASC"?$=$+"【"+V+"】由小到大的组内的排名":$=$+"【"+V+"】由大到小的组内的排名";break}case"BUILT_IN_ALL_VALUE":{let T="";switch(x){case"SUM":{T="求和";break}case"AVG":{T="求平均值";break}case"MIN":{T="求最小值";break}case"MAX":{T="求最大值";break}}$="将所有【"+V+"】"+T;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let T="";switch($=`所有【】的
|
|
66
66
|
`,x){case"SUM":{T="求和";break}case"AVG":{T="求平均值";break}case"MIN":{T="求最小值";break}case"MAX":{T="求最大值";break}}$=$+"将所有【"+V+"】"+T;break}}return $}),I=($,x)=>x.keyName.toLowerCase().indexOf($.toLowerCase())>=0;return o({showModal:C}),{visible:h,onCancel:B,labelCol:i,wrapperCol:c,formState:b,builtInValueSourceList:s,onOK:O,onChange:w,formRules:E,accessLogic:D,formRef:y,onChangeBuiltInFormula:L,componentList:r,onChangeComponent:g,filterOption:I,offsetConfig:f}}}),Dy="",My="",Au={key:0,class:"accesstip"},Ou={style:{display:"flex","align-items":"center"}};function Eu(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),p=e.resolveComponent("formula-calculation"),u=e.resolveComponent("a-textarea"),f=e.resolveComponent("a-input-number"),y=e.resolveComponent("question-circle-outlined"),h=e.resolveComponent("a-tooltip"),b=e.resolveComponent("a-form"),m=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(m,{title:`${t.mode==="add"?"新增":"编辑"}计算指标`,visible:t.visible,width:"50%",bodyStyle:{height:"55vh",overflow:"auto",display:"flex",flexDirection:"column"},closable:!1,onOk:t.onOK,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createVNode(b,{model:t.formState,rules:t.formRules,ref:"formRef"},{default:e.withCtx(()=>[e.createVNode(d,{label:"指标名","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"label"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.formState.label,"onUpdate:value":o[0]||(o[0]=w=>t.formState.label=w),onChange:t.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.createVNode(d,{label:"计算方式","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.calcType,"onUpdate:value":o[1]||(o[1]=w=>t.formState.calcType=w),onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"FORMULA"},{default:e.withCtx(()=>[e.createTextVNode("公式")]),_:1}),e.createVNode(i,{value:"BUILT_IN"},{default:e.withCtx(()=>[e.createTextVNode("内置公式")]),_:1}),e.createVNode(i,{value:"COMPONENT"},{default:e.withCtx(()=>[e.createTextVNode("固定值")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),t.formState.calcType==="FORMULA"?(e.openBlock(),e.createBlock(p,{key:0,value:t.formState.formula,"onUpdate:value":o[2]||(o[2]=w=>t.formState.formula=w),item:t.item,mode:t.mode,onChange:t.onChange},null,8,["value","item","mode","onChange"])):e.createCommentVNode("",!0),t.formState.calcType==="BUILT_IN"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(d,{label:"内置公式","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInFormula"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInFormula,"onUpdate:value":o[3]||(o[3]=w=>t.formState.builtInFormula=w),onChange:t.onChangeBuiltInFormula},{default:e.withCtx(()=>[e.createVNode(i,{value:"BUILT_IN_ALL_VALUE"},{default:e.withCtx(()=>[e.createTextVNode("所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_ALL_VALUE_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK"},{default:e.withCtx(()=>[e.createTextVNode("排名")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内排名")]),_:1}),e.createVNode(i,{value:"FIRST_ROW_RATE"},{default:e.withCtx(()=>[e.createTextVNode("首行占比")]),_:1}),e.createVNode(i,{value:"DATE_OFFSET"},{default:e.withCtx(()=>[e.createTextVNode("日期偏移")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.createVNode(d,{label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInValueSource,"onUpdate:value":o[4]||(o[4]=w=>t.formState.builtInValueSource=w),onChange:t.onChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.builtInValueSourceList,(w,g)=>(e.openBlock(),e.createBlock(i,{key:g,value:w.label,disabled:t.mode==="edit"&&t.item.label===w.name},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,label:"取数原则","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInCalcWay,"onUpdate:value":o[5]||(o[5]=w=>t.formState.builtInCalcWay=w),onChange:t.onChange},{default:e.withCtx(()=>[["BUILT_IN_ALL_VALUE","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula||"")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{value:"SUM"},{default:e.withCtx(()=>[e.createTextVNode("求和")]),_:1}),e.createVNode(i,{value:"AVG"},{default:e.withCtx(()=>[e.createTextVNode("求平均")]),_:1}),e.createVNode(i,{value:"MAX"},{default:e.withCtx(()=>[e.createTextVNode("求最大值")]),_:1}),e.createVNode(i,{value:"MIN"},{default:e.withCtx(()=>[e.createTextVNode("求最小值")]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})],64))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"])),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:1,label:"取数逻辑","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[["BUILT_IN_RANK_IN_GROUPO","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula)&&t.formState.builtInValueSource?(e.openBlock(),e.createElementBlock("div",Au," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+e.toDisplayString(t.formState.builtInValueSource),1)):e.createCommentVNode("",!0),e.createVNode(u,{value:t.accessLogic,rows:6,disabled:""},null,8,["value"])]),_:1},8,["label-col","wrapper-col"]))],64)):e.createCommentVNode("",!0),t.formState.calcType==="COMPONENT"?(e.openBlock(),e.createBlock(d,{key:2,label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{"show-search":"",value:t.formState.builtInValueSource,"onUpdate:value":o[6]||(o[6]=w=>t.formState.builtInValueSource=w),"filter-option":t.filterOption,options:t.componentList,fieldNames:{value:"id",label:"keyName"},onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0),t.formState.builtInFormula==="DATE_OFFSET"?(e.openBlock(),e.createBlock(d,{key:3,label:"偏移设置","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createElementVNode("div",Ou,[e.createVNode(f,{value:t.offsetConfig.value,"onUpdate:value":o[7]||(o[7]=w=>t.offsetConfig.value=w),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},null,8,["value","onChange"]),e.createVNode(c,{value:t.offsetConfig.unit,"onUpdate:value":o[8]||(o[8]=w=>t.offsetConfig.unit=w),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(c,{value:t.offsetConfig.around,"onUpdate:value":o[9]||(o[9]=w=>t.offsetConfig.around=w),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(h,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:e.withCtx(()=>[e.createVNode(y,{class:"icon",style:{color:"#40a9ff","font-size":"18px",cursor:"pointer","margin-left":"10px"}})]),_:1})])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])]),_:1},8,["title","visible","onOk","onCancel"])}const Bu=oe(Tu,[["render",Eu],["__scopeId","data-v-33575cd9"]]),Vu=e.defineComponent({name:"DataConfigCard",directives:{focus:Zl},components:{CalculationModal:Bu,FilterModal:jp,CustomGroupModal:Xd,SettingOutlined:sc,DeleteOutlined:za,CopyOutlined:bs,InfoCircleOutlined:Vs,CustomSortModal:Dd,PlusOutlined:Xs,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:Wp,SortByCpnt:Jp,DimByCount:au},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(Ce),a=e.inject(Ne),l=e.inject(Ue),r=["leftAxisList","rightAxisList","indicators"],s=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],d=e.inject(Wt),i=e.ref(),c=(U={})=>{var K;const{type:z}=t;if(e.unref(d)==="SQL_VIEW")return!0;e.unref(d)==="EDV_DATA_SET"&&a({edvDataSetId:U.parentId});let Y=!1;if(U.scope==="FIELD"&&(Y=!0,U.genericType==="0"&&r.includes(z)&&(Y=!1)),["IDX","BUILT_IN_IDX"].includes(U.scope)?r.includes(z)&&(Y=!0):["DIM","BUILT_IN_DIM"].includes(U.scope)&&s.includes(z)&&(Y=!0),z==="dimensionList"){const ie=((K=e.unref(n)[z])==null?void 0:K.slice())||[];(ie==null?void 0:ie.length)===1&&(Y=!1)}return Y},p=e.computed(()=>e.unref(ne).type==="ecanDataSelect"&&t.type==="indicators"),u=(U="{}")=>{var z,Y;try{const K=JSON.parse(U);if(!c(K))return;const ie=((z=e.unref(n)[t.type])==null?void 0:z.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!we(e.unref(ne).type,["list","circulate","scatter"])||e.unref(p))&&ie.forEach(be=>{be.show=!1}),y(ie,K),K.randomKey=ge(),ie.push(K);const{type:se}=t,te={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(K.scope)){const be=((Y=e.unref(n))==null?void 0:Y.variableList)||[];let de=sessionStorage.getItem("indicator-variates");if(K.scope==="FIELD"&&!r.includes(se)&&(de="[]"),de){const ce=JSON.parse(de);if(ce!=null&&ce.length)for(const ye of ce)be.unshift({...ye,dataType:"",id:null,variableValue:e.unref(d)==="EDV_DATA_SET"?ye.defaultValue:null,dateTypeValue:null,format:ye.valueFormat&&ye.valueFormat.toUpperCase()||null,variableName:ye.name,variableType:ye.valueType,label:K.label,randomKey:K.randomKey,keyValue:ge(),disabled:e.unref(d)==="EDV_DATA_SET"})}te.variableList=be,te.variableConditions=no(be,l)}a({[t.type]:ie,...te}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(K){console.error(K)}},f=(U="{}")=>{var z;try{const{cardItem:Y,type:K,index:ie}=JSON.parse(U);if(!c(Y)||K===t.type)return;const se=((z=e.unref(n)[t.type])==null?void 0:z.slice())||[];y(se,Y),se.push(Y);const te=e.unref(n)[K].slice()||[];te.splice(ie,1),a({[t.type]:se,[K]:te})}catch(Y){console.error(Y)}};function y(U,z){const Y=[];if(U.forEach(K=>{K.label.includes(z.label)&&Y.push(K.label.split(z.label)[1])}),Y.length>=1){for(let K=1;K<=Y.length;K++)if(!Y.includes(K+"")){z.label=z.label+K;break}}}const h=(U,z)=>{var ie,se;const Y=(ie=U.target)==null?void 0:ie.checked,K=((se=e.unref(n)[t.type])==null?void 0:se.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!we(e.unref(ne).type,["list","circulate"])||e.unref(p))&&K.forEach(te=>{te.show=!1}),K[z].show=Y,a({[t.type]:K})},b=U=>{var Y;const z=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];z.splice(U,1),a({[t.type]:z})},m=()=>{sessionStorage.setItem("indicator-card-item","")},w=U=>{const z=sessionStorage.getItem("indicator-list-item"),Y=sessionStorage.getItem("indicator-card-item");z?u(z):Y&&f(Y)},g=U=>{var be,de;const{newIndex:z,oldIndex:Y,from:K,to:ie}=U,se=K.id,te=ie.id;if(z>=0&&Y>=0){if(se===te){const ce=((be=e.unref(n)[t.type])==null?void 0:be.slice())||[],ye=ce.splice(Y,1)[0];ye&&(ce.splice(z,0,ye),a({[t.type]:ce}))}else if(t.type===te){const ce=((de=e.unref(n)[te])==null?void 0:de.slice())||[];if(ce!=null&&ce.length){const ye=ce.splice(ce.length-1,1)[0];ye&&(ce.splice(z,0,ye),a({[t.type]:ce}))}}}},S=(U,z)=>{const Y=U.oldIndex,K=z[Y];K&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:K,type:t.type,index:Y}))},C=e.computed(()=>e.unref(n)[t.type]||[]),k=e.ref([]);let _=!1;e.watch(()=>e.unref(C).length,U=>{k.value=new Array(U).fill(!1)},{flush:"post",immediate:!0});const E=U=>{var Y,K,ie;const z=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];if((K=z[U])!=null&&K.randomKey){const se=((ie=e.unref(n))==null?void 0:ie.variableList)||[];for(let te=se.length-1;te>=0;te--)se[te].randomKey===z[U].randomKey&&se.splice(te,1);a({variableConditions:no(se,l),variableList:se})}z.splice(U,1),a({[t.type]:z})},O=U=>{k.value[U]=!0},B=()=>{_=!0},L=(U,z,Y)=>{var K,ie,se,te;if(k.value[z]=!1,_){const be=(K=U.target)==null?void 0:K.value,de=((ie=e.unref(n)[t.type])==null?void 0:ie.slice())||[],ce=de.filter(fe=>{var ke;return(ke=fe==null?void 0:fe.formula)==null?void 0:ke.includes(Y)}).map(fe=>fe.id),ye=de.filter(fe=>{var ke;return(ke=fe==null?void 0:fe.builtInValueSource)==null?void 0:ke.includes(Y)}).map(fe=>fe.id);if(ce!=null&&ce.length)for(const fe of ce){const ke=de.find(Ot=>Ot.id===fe);ke.formula=ke.formula.replaceAll(Y,be)}if(ye!=null&&ye.length)for(const fe of ye){const ke=de.find(Ot=>Ot.id===fe);ke.builtInValueSource=ke.builtInValueSource.replaceAll(Y,be)}if(de[z].label=be,(se=de[z])!=null&&se.randomKey){const fe=((te=e.unref(n))==null?void 0:te.variableList)||[],ke=fe.filter(Ot=>Ot.randomKey===de[z].randomKey);ke!=null&&ke.length&&ke.forEach(Ot=>{Ot.label=be}),a({variableConditions:no(fe,l),variableList:fe})}a({[t.type]:de})}_=!1},D="DEFAULT",I=e.computed(()=>{const U=[],{scope:z}=e.unref(i)||{},Y=e.unref(n)[t.type]||[];if(z==="DIM"&&!e.unref(i).typeGuid.includes("_code")){const te=J.cloneDeep(e.unref(i));delete te.show,delete te.truncations,delete te.conditions,te.hrpIndexComplexid+="_code",te.id+="_code",te.typeGuid+="_code",te.label=te.name+"_编码",te.name=te.typeGuid,te.defaultCode=te.typeGuid,U.push(te)}const{leftAxisList:K=[],rightAxisList:ie=[],indicators:se=[]}=e.unref(n)||{};return[...Y,...U,...K,...ie,...se]}),$=(U={},z,Y="ASC")=>{var de;const{label:K,name:ie,id:se,defaultCode:te}=U,be=((de=e.unref(n)[t.type])==null?void 0:de.slice())||[];se===D?delete be[z].sort:be[z].sort={label:K,columnName:ie,type:"NORMAL",order:Y,defaultCode:te},a({[t.type]:be})},x=(U={},z="ASC")=>{const K={ASC:"升序",DESC:"降序"}[z],{sort:ie}=U,{label:se,order:te}=ie||{};return se&&te===z?`${K}(${se})`:K},V=e.ref(),T=e.ref(),P=e.ref(),R=e.ref(),N=(U={},z)=>{var Y;V.value=U,T.value=z,(Y=e.unref(P))==null||Y.showModal(U)},v=U=>"排序"+(U!=null&&U.sort?"(已配置)":""),A=(U={},z)=>{var Y;V.value=U,T.value=z,(Y=e.unref(R))==null||Y.showModal()},F=U=>"自定义分组"+((U==null?void 0:U.customGroup)!=null?"(已配置)":""),M=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],G=[{name:"是",value:1},{name:"否",value:0}],W=(U,z)=>{var K;const Y=((K=e.unref(n)[t.type])==null?void 0:K.slice())||[];Y[z].aggregate=U,a({[t.type]:Y})},X=(U,z)=>{var K;const Y=((K=e.unref(n)[t.type])==null?void 0:K.slice())||[];Y[z].distinct=U,a({[t.type]:Y})},Q=(U,z)=>{var K;const Y=((K=e.unref(n)[t.type])==null?void 0:K.slice())||[];Y[z].dateFormat=U,a({[t.type]:Y})},Z=(U="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[U]})`,ae=U=>`是否去重(${{0:"否",1:"是"}[U]||"否"})`,le=(U={})=>{var z;return"过滤"+(U!=null&&U.conditions&&((z=U==null?void 0:U.conditions)==null?void 0:z.length)>0?"(已配置)":"")},_e=e.ref(),St=e.ref(),Xe=e.ref(),pe=e.ref(),Oe=(U={},z)=>{V.value=U,T.value=z,e.unref(_e).showModal()},ut=(U={},z)=>{V.value=U,T.value=z,e.unref(St).showModal(U)},ho=(U={},z)=>{V.value=U,T.value=z,e.unref(Xe).showModal(U)},Ht=(U={},z)=>{V.value=U,T.value=z,e.unref(pe).showModal(U,e.unref(go))},Nt=e.ref(),$e=e.ref("add"),tt=(U,z,Y)=>{var K;$e.value=U,U==="edit"&&(V.value=z,T.value=Y),(K=e.unref(Nt))==null||K.showModal()},ot=e.inject(Ee),nt=e.unref(e.inject(Be)),Fe=e.ref([]),Tt=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var U;we(e.unref(ne).type,["scatter","valueline"])&&((U=e.unref(n))!=null&&U.indicators)&&(Fe.value=e.unref(n).indicators.map(z=>({label:z.label,value:z.label})))}),e.watch(()=>n.value.classificationList,()=>{ft()});const at=e.ref(""),ft=async()=>{const{source:U}=e.unref(n);if(U!=="EDV_DATA_SET"||!we(e.unref(ne).type,"select"))return;const{classificationList:z=[]}=e.unref(n),Y=z.find(te=>te.show);if(Y!=null&&Y.parentId){if(e.unref(at)===Y.parentId)return;at.value=Y.parentId}else{e.unref(n).selectFieldOptions=[],Fe.value=[],at.value="";return}const K=await ot.get(`${Se}/dataset/`+Y.parentId,{headers:{Authentication:nt,operateContext:"ygt"}}),{success:ie,data:se=[]}=K.data;if(ie){const te=se.column.map(be=>({label:be.columnName,value:be.columnName}));e.unref(n).selectFieldOptions=te,Fe.value=te}},At=async()=>{const{source:U}=e.unref(n);if(!we(e.unref(ne).type,["scatter","valueline"]))try{if(U==="EDV_DATA_SET")await ft();else{const z=await ot.post(`${Se}/diagram/dimFields`,{},{headers:{Authentication:nt,operateContext:"ygt"}}),{success:Y,data:K=[]}=z.data;Y&&(e.unref(n).selectFieldOptions=K||[],Fe.value=K)}}catch(z){console.error(z)}},Wo=(U,z)=>{const Y=e.unref(n)[t.type]||{};Y[z]=U,a({[t.type]:Y})},bo=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],yo=e.ref({}),go=e.ref([]),H=async(U,z)=>{var K;const{name:Y}=z;if(!bo.includes(t.type)&&U&&We(z,"indexCode")){const ie=await ot.post(`${Se}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:z.id,indexCode:z.indexCode,pageId:(K=window==null?void 0:window.config)==null?void 0:K.pageId},{headers:{Authentication:nt,operateContext:"ygt"}}),{success:se,data:te}=ie.data;se&&te&&(go.value=(te==null?void 0:te.dataViewColumns)||[],yo.value[Y]={name:te.name,code:te.indexCode})}},q=U=>{i.value=U},ee=U=>{const z=document.createElement("input");document.body.appendChild(z),z.setAttribute("value",U),z.select(),document.execCommand("copy"),document.body.removeChild(z),j.message.success("复制成功")},ne=e.inject(Ie),re=e.computed(()=>t.type==="indicators"&&e.unref(ne).type==="ecanTable"),ue=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type));return e.onMounted(()=>{t.type==="formFields"&&(e.unref(ne).type==="ecanDataSelect"?Fe.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:At())}),{onCheckboxChange:h,onDropEnd:b,onDragItemEnd:m,onDragItemAdd:w,onDragItemSort:g,onDragItemStart:S,cardItemList:C,onDelete:E,onEdit:O,onCommitLabelChange:L,sortList:I,onSort:$,handleSortTitle:x,showCustomSortModal:N,customSortModalRef:P,currentItem:V,currentIndex:T,handleCustomSortTitle:v,handleCustomGroupTitle:F,customGroupModalRef:R,showCustomGroupModal:A,editLabelList:k,onLabelChange:B,aggregateList:M,distinctList:G,onAggregateChange:W,onDistinctChange:X,onDateFormatChange:Q,handleAggregateTitle:Z,handleDistinctTitle:ae,onShowCalculationModal:tt,handleFilterTitle:le,filterModalRef:_e,configNameRef:St,sortByCpntRef:Xe,dimByCountRef:pe,showFilterModal:Oe,calculationModalRef:Nt,calculationModalMode:$e,formatList:o,fieldOptions:Fe,fieldData:Tt,onFieldChange:Wo,onVisibleChange:H,onClickSetting:q,copyDataViewName:ee,dataViewMap:yo,isShowConfigName:re,showConfigNameModal:ut,dimensionType:bo,isShowSortByCpnt:ue,showSortByCpntModal:ho,dataSelectIndicators:p,showDimByCountModal:Ht,selectedComponent:ne,lowerCaseIncludes:we}}}),Py="",jy="",Ct=t=>(e.pushScopeId("data-v-73e39b35"),t=t(),e.popScopeId(),t),Lu={class:"title"},vu={class:"title-text"},$u={class:"field-wrap"},Fu={class:"field-item"},Iu=Ct(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),Du={class:"field-item"},Mu=Ct(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),Pu={key:0,class:"field-item"},ju=Ct(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),Ru={class:"title"},Uu={class:"title-text"},zu=Ct(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),Gu=Ct(()=>e.createElementVNode("span",null,"添加计算指标",-1)),Hu={class:"card-item-wrap"},Wu={class:"card-item-inner"},Yu=["onClick"],qu=["onClick"],Ku=["onClick"],Xu={style:{display:"flex","align-items":"center"}},Qu=["title"],Ju=Ct(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),Zu={style:{display:"flex","align-items":"center"}},ef=["title"],tf=Ct(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function of(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-checkbox"),i=e.resolveComponent("a-card"),c=e.resolveComponent("info-circle-outlined"),p=e.resolveComponent("a-popover"),u=e.resolveComponent("plus-outlined"),f=e.resolveComponent("a-input"),y=e.resolveComponent("setting-outlined"),h=e.resolveComponent("a-menu-item"),b=e.resolveComponent("a-menu-divider"),m=e.resolveComponent("a-sub-menu"),w=e.resolveComponent("copy-outlined"),g=e.resolveComponent("a-menu"),S=e.resolveComponent("a-dropdown"),C=e.resolveComponent("delete-outlined"),k=e.resolveComponent("draggable"),_=e.resolveComponent("custom-sort-modal"),E=e.resolveComponent("custom-group-modal"),O=e.resolveComponent("filter-modal"),B=e.resolveComponent("config-name"),L=e.resolveComponent("sort-by-cpnt"),D=e.resolveComponent("dim-by-count"),I=e.resolveComponent("calculation-modal"),$=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",Lu,[e.createElementVNode("div",vu,e.toDisplayString(t.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",$u,[e.createElementVNode("div",Fu,[Iu,e.createVNode(s,{style:{width:"70%"},class:"item-select",value:t.fieldData.labelField,options:t.fieldOptions,onChange:o[0]||(o[0]=x=>t.onFieldChange(x,"labelField"))},null,8,["value","options"])]),e.createElementVNode("div",Du,[Mu,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]=x=>t.onFieldChange(x,"valueField"))},null,8,["value","options","mode"])]),t.selectedComponent.type==="ecanSelect"?(e.openBlock(),e.createElementBlock("div",Pu,[ju,e.createVNode(d,{checked:t.fieldData.hasAllOption,"onUpdate:checked":o[2]||(o[2]=x=>t.fieldData.hasAllOption=x)},{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",Ru,[e.createElementVNode("div",Uu,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),t.type==="dimensionList"?(e.openBlock(),e.createBlock(p,{key:0,title:"提示",placement:"topLeft"},{content:e.withCtx(()=>[zu]),default:e.withCtx(()=>[e.createVNode(c,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):e.createCommentVNode("",!0)]),!t.dimensionType.includes(t.type)&&!t.dataSelectIndicators?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-calculation",onClick:o[3]||(o[3]=e.withModifiers(x=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),Gu])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.type+"-list"),style:{height:"100%",padding:"10px"}},[e.createVNode(k,{modelValue:t.cardItemList,"onUpdate:modelValue":o[4]||(o[4]=x=>t.cardItemList=x),class:"chart-column",id:t.type,group:"cardItem","item-key":"index",onAdd:t.onDragItemAdd,onSort:t.onDragItemSort,onEnd:t.onDragItemEnd,onStart:o[5]||(o[5]=x=>t.onDragItemStart(x,t.cardItemList))},{item:e.withCtx(({element:x,index:V})=>[e.createElementVNode("div",Hu,[e.createVNode(d,{class:"card-item",checked:x.show,onChange:T=>t.onCheckboxChange(T,V)},{default:e.withCtx(()=>[e.createElementVNode("div",Wu,[!t.editLabelList[V]&&x.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(T=>t.onEdit(V),["prevent","stop"])},e.toDisplayString(x.label),9,Yu)):e.createCommentVNode("",!0),!t.editLabelList[V]&&!x.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(T=>t.onEdit(V),["prevent","stop"])}," 请点击填入名字 ",8,qu)):e.createCommentVNode("",!0),t.editLabelList[V]?e.withDirectives((e.openBlock(),e.createBlock(f,{key:2,"default-value":x.label,size:"small",onBlur:T=>t.onCommitLabelChange(T,V,x.label),onPressEnter:T=>t.onCommitLabelChange(T,V,x.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[$]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(x.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(T=>t.onShowCalculationModal("edit",x,V),["prevent","stop"])}," fx ",8,Ku)):e.createCommentVNode("",!0),e.createVNode(S,{trigger:["click"],onVisibleChange:T=>t.onVisibleChange(T,x)},{overlay:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[t.dimensionType.includes(t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(h,{onClick:T=>t.showCustomSortModal(x,V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(x)),1)]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(h,{onClick:T=>t.showCustomGroupModal(x,V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomGroupTitle(x)),1)]),_:2},1032,["onClick"]),e.createVNode(b),x.genericType==="DATE"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(m,{title:"日期格式化"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,T=>(e.openBlock(),e.createBlock(h,{style:{"white-space":"nowrap"},key:T.value,onClick:P=>t.onDateFormatChange(T.value,V)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(x.dateFormat===T.value||!x.dateFormat&&T.value==="YYYY-MM"?"color: #1890FF;":"")},e.toDisplayString(T.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(b)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(h,{onClick:T=>t.showFilterModal(x,V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleFilterTitle(x)),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(m,{title:t.handleAggregateTitle(x.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,T=>(e.openBlock(),e.createBlock(h,{style:{"white-space":"nowrap"},key:T.value,onClick:P=>t.onAggregateChange(T.value,V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.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(h,{onClick:T=>t.showConfigNameModal(x,V)},{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(h,{onClick:T=>t.showSortByCpntModal(x,V)},{default:e.withCtx(()=>[e.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),x.name==="the_count"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(h,{onClick:T=>t.showDimByCountModal(x,V)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(m,{title:t.handleDistinctTitle(x.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,T=>(e.openBlock(),e.createBlock(h,{style:{"white-space":"nowrap"},key:T.value,onClick:P=>t.onDistinctChange(T.value,V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.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[x.name]?(e.openBlock(),e.createBlock(h,{key:0,onClick:T=>t.copyDataViewName(t.dataViewMap[x.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",Xu,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[x.name].name},[Ju,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[x.name].name),1)],8,Qu),e.createVNode(w,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[x.name]?(e.openBlock(),e.createBlock(h,{key:1,onClick:T=>t.copyDataViewName(t.dataViewMap[x.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",Zu,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[x.name].code},[tf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[x.name].code),1)],8,ef),e.createVNode(w,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)],64))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(y,{class:"setting-icon",onClick:T=>t.onClickSetting(x)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"]),e.createVNode(C,{class:"delete-icon",onClick:e.withModifiers(T=>t.onDelete(V),["prevent"])},null,8,["onClick"])])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","onAdd","onSort","onEnd"])],2),e.createVNode(_,{item:t.currentItem,index:t.currentIndex,type:t.type,sortList:t.sortList,ref:"customSortModalRef"},null,8,["item","index","type","sortList"]),e.createVNode(E,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),e.createVNode(O,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"filterModalRef"},null,8,["item","index","type"]),e.createVNode(B,{index:t.currentIndex,type:t.type,ref:"configNameRef"},null,8,["index","type"]),e.createVNode(L,{index:t.currentIndex,type:t.type,ref:"sortByCpntRef"},null,8,["index","type"]),e.createVNode(D,{index:t.currentIndex,type:t.type,ref:"dimByCountRef"},null,8,["index","type"]),e.createVNode(I,{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 nf=oe(Vu,[["render",of],["__scopeId","data-v-73e39b35"]]),af={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"}},lf=e.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:nf},setup(){const t=["classificationList","seriesList","leftAxisList","rightAxisList","indicators","rowHeaderList","queryColumnList"],o=e.inject(Ie),n=e.computed(()=>{var i;return(i=e.unref(o))==null?void 0:i.type}),a=e.computed(()=>{var i;return!!((i=e.unref(o))!=null&&i.isGroupTable)}),l=e.ref({}),r=e.reactive([]),s=e.inject(Ne),d=()=>{var b,m;const i=J.cloneDeep((b=e.unref(o))==null?void 0:b.graphicConfig),c={card:["rowHeaderList","indicators"],pie:["classificationList","indicators"],circulate:["classificationList","indicators"],bar:["classificationList","seriesList","leftAxisList"],line:["classificationList","seriesList","leftAxisList"],comboGraph:["classificationList","seriesList","leftAxisList","rightAxisList"],radar:["classificationList","seriesList","leftAxisList"],table:a.value?["rowHeaderList","indicators"]:["queryColumnList","indicators"],text:["dimensionList","indicators"],proportion:["indicators"],select:["classificationList","formFields"],dataSelect:["classificationList","indicators","formFields"],checkbox:["classificationList","formFields"],radio:["classificationList","formFields"],list:["classificationList","indicators"],counter:["indicators"],scatter:["classificationList","indicators","formFields"],pivotTable:["queryColumnList","indicators"],valueLine:["classificationList","indicators","formFields"]},p="ecan";let u=e.unref(n);if(u.startsWith(p)){const w=p.length;u=((m=u.slice(w,w+1))==null?void 0:m.toLowerCase())+u.slice(w+1)}const f=c[u],y=af,h=(f==null?void 0:f.length)||0;for(let w=0;w<h;w++){const g=f[w];if(!g)break;r.push({...y[g],type:g})}for(const w of t)We(i,w)&&!f.find(g=>g===w)?i[w]=[]:delete i[w];s(i)};return d(),e.watch(()=>n.value,()=>{r.length=0,d()}),{cardsMap:l,cards:r}}}),Ry="",Uy="",rf={class:"data-group"};function sf(t,o,n,a,l,r){const s=e.resolveComponent("data-config-card");return e.openBlock(),e.createElementBlock("div",rf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cards,d=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:d.type,class:"data-config-card",type:d.type},d),null,16,["type"]))),128))])}const cf=oe(lf,[["render",sf],["__scopeId","data-v-0436e5bb"]]),df=[{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"]}],or=[{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])})),pf={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:""},...or]}},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:""},...or]}},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:`【别名】是循环列表内部要循环的组件别名;
|