@ecan-bi/indicator-library 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/indicator-library@1.1.2 */
1
+ /*! @ecan-bi/indicator-library@1.1.4 */
2
2
  (function(fe,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):(fe=typeof globalThis<"u"?globalThis:fe||self,e(fe["@ecan-bi/indicator-library"]={},fe.Vue,fe.LodashEs,fe.AntDesignVue,fe.Draggable,fe.Dayjs,null,null,null,fe.MonacoEditor,null,fe.Echarts))})(this,function(fe,e,Z,j,Bt,me,Ay,Ey,Oy,ti,By,oi){var ei;"use strict";function ni(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 ai=ni(oi),ua=(t,o)=>{if(t.install=n=>{for(const a of[t,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))t[n]=a;return t},Be="$request",Se=((ei=window==null?void 0:window.config)==null?void 0:ei.indicatorURL)||"",Ve="INDICATOR_TOKEN",fa="DATA_LIST",Ie="SELECTED_COMPONENT",be="GRAPHIC_CONFIG",Ae="UPDATE_GRAPHIC_CONFIG",ma="SHOW_STYLE_CONFIG",ha="REFRESH_DATA",xo="CHARTS_OPTIONS",ba="TABLE_OPTIONS",li=18,Qo="UPDATE_CHARTS_OPTIONS",Jo="UPDATE_TABLE_OPTIONS",Qt="SOURCE_TYPE",_o="CHANGE_CONDITION",ya="DATA_VIEW_COLUMNS",ze="RENDER_USED_COMPONENTS",So="UPDATE_USED_COMPONENT",ga="UPDATE_COMPONENTS_CONFIG",Ca="MAP_ATTRIBUTE_PROPS",wa="PAGE_CONFIG",Zo="IS_PIVOT_TABLE",ka="IS_IFRAME_MODE",en={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%"}},ri={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},ii=e.defineComponent({name:"DataViewList",components:{ASpin:j.Spin,ATreeSelect:j.TreeSelect,Draggable:Bt},setup(){var N;const t=e.inject(Be),o=e.unref(e.inject(Ve)),n=e.inject(be),a=e.inject(Ae),l=e.computed(()=>{var w;return((w=e.unref(n))==null?void 0:w.dataViewId)||null}),r=e.ref(!1),s=e.ref([]),c=(N=window==null?void 0:window.config)==null?void 0:N.pageId,i=e.reactive({title:"已选",value:"YXJG",id:"YXJG",pId:"0",disabled:!0,selectable:!1,isLeaf:!0}),d=async()=>{var _,S;const w=l.value;r.value=!0;try{const{data:A}=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}});r.value=!1,A.success&&((_=s.value)==null||_.push(i),s.value=(S=s.value)==null?void 0:S.concat(p([A.data.rows[0]],"YXJG")))}catch{r.value=!1}},p=(w=[],_)=>{const S=[];return w.forEach(A=>{S.push({id:A.id,pId:_??A.parentId,value:A.id,title:A.name,isLeaf:A.leaf||!1,nature:A.nature,selectable:A.leaf||!1})}),S},u=async(w,_)=>{var D;let S=0;if(w){const{value:v}=w.dataRef;S=v}const{data:A}=await t.post(`${Se}/dataview/treetable`,{pageFlag:!0,pageId:c,parentId:S},{headers:{Authentication:o,operateContext:"ygt"}});A.success&&(s.value=(D=e.unref(s))==null?void 0:D.concat(p(A.data)),_&&e.unref(l)&&await d())},m=w=>{f(w),a({dataViewId:w,classificationList:[],seriesList:[],leftAxisList:[],rightAxisList:[],indicators:[],controlList:[]})},{setDataList:C}=e.inject(fa,{setDataList:w=>w}),g=e.ref(!1),b=e.ref([]),f=async w=>{if(w){b.value=[],g.value=!0;try{const _=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}}),{success:S,data:A={}}=_.data;if(g.value=!1,S){const{rows:D=[]}=A;D==null||D.forEach(v=>{var R;const T=((R=v==null?void 0:v.dataViewColumns)==null?void 0:R.map(I=>({...I,show:!0})))||[];b.value=[...e.unref(b),...T]}),C(e.unref(b))}}catch{g.value=!1}}},h=w=>({TEXT:"字符",NUMBER:"数字",DATE:"时间"})[w],y=(w,_)=>{const S=_[w.oldIndex];if(S){const A={...S,label:S.name,name:S.label};sessionStorage.setItem("indicator-list-item",JSON.stringify(A))}};return e.onMounted(async()=>{await u(void 0,!0),f(e.unref(l))}),{dataViewId:l,handleLoadData:u,treeSelectData:s,treeSelectLoading:r,dataViewList:b,dataViewLoading:g,onDataViewIdChange:m,mapGenericType:h,onDragStart:y}}}),Dy="",ne=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},si={class:"data-view-list"},ci={class:"columns"},di={class:"column-item"},pi={class:"column-item-name"};function ui(t,o,n,a,l,r){const s=e.resolveComponent("a-tree-select"),c=e.resolveComponent("a-spin"),i=e.resolveComponent("draggable");return e.openBlock(),e.createElementBlock("div",si,[e.createVNode(c,{"wrapper-class-name":"tree-spin",spinning:t.treeSelectLoading,tip:"视图加载中..."},{default:e.withCtx(()=>[e.createVNode(s,{value:t.dataViewId,style:{width:"100%"},placeholder:"请选择视图","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":t.treeSelectData,"load-data":t.handleLoadData,"tree-data-simple-mode":"",onChange:t.onDataViewIdChange},null,8,["value","tree-data","load-data","onChange"])]),_:1},8,["spinning"]),e.createElementVNode("div",ci,[e.createVNode(c,{spinning:t.dataViewLoading,tip:"数据加载中..."},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:t.dataViewList,"onUpdate:modelValue":o[0]||(o[0]=d=>t.dataViewList=d),group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,onStart:o[1]||(o[1]=d=>t.onDragStart(d,t.dataViewList))},{item:e.withCtx(({element:d})=>[e.createElementVNode("div",di,[e.createTextVNode(" 【"+e.toDisplayString(t.mapGenericType(d.genericType))+"】 ",1),e.createElementVNode("span",pi,e.toDisplayString(d.name),1)])]),_:1},8,["modelValue"])]),_:1},8,["spinning"])])])}const fi=ne(ii,[["render",ui],["__scopeId","data-v-4a66f7d2"]]);function De(t,o){mi(t)&&(t="100%");var n=hi(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 mi(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function hi(t){return typeof t=="string"&&t.indexOf("%")!==-1}function bi(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function To(t){return t<=1?"".concat(Number(t)*100,"%"):t}function tn(t){return t.length===1?"0"+t:String(t)}function yi(t,o,n){return{r:De(t,255)*255,g:De(o,255)*255,b:De(n,255)*255}}function on(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 gi(t,o,n){var a,l,r;if(t=De(t,360),o=De(o,100),n=De(n,100),o===0)l=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,c=2*n-s;a=on(c,s,t+1/3),l=on(c,s,t),r=on(c,s,t-1/3)}return{r:a*255,g:l*255,b:r*255}}function Ci(t,o,n){t=De(t,255),o=De(o,255),n=De(n,255);var a=Math.max(t,o,n),l=Math.min(t,o,n),r=0,s=a,c=a-l,i=a===0?0:c/a;if(a===l)r=0;else{switch(a){case t:r=(o-n)/c+(o<n?6:0);break;case o:r=(n-t)/c+2;break;case n:r=(t-o)/c+4;break}r/=6}return{h:r,s:i,v:s}}function wi(t,o,n){t=De(t,360)*6,o=De(o,100),n=De(n,100);var a=Math.floor(t),l=t-a,r=n*(1-o),s=n*(1-l*o),c=n*(1-(1-l)*o),i=a%6,d=[n,s,r,r,c,n][i],p=[c,n,n,s,r,r][i],u=[r,r,c,n,n,s][i];return{r:d*255,g:p*255,b:u*255}}function ki(t,o,n,a){var l=[tn(Math.round(t).toString(16)),tn(Math.round(o).toString(16)),tn(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 xa(t){return Le(t)/255}function Le(t){return parseInt(t,16)}var _a={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 Jt(t){var o={r:0,g:0,b:0},n=1,a=null,l=null,r=null,s=!1,c=!1;return typeof t=="string"&&(t=Si(t)),typeof t=="object"&&(et(t.r)&&et(t.g)&&et(t.b)?(o=yi(t.r,t.g,t.b),s=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):et(t.h)&&et(t.s)&&et(t.v)?(a=To(t.s),l=To(t.v),o=wi(t.h,a,l),s=!0,c="hsv"):et(t.h)&&et(t.s)&&et(t.l)&&(a=To(t.s),r=To(t.l),o=gi(t.h,a,r),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=bi(n),{ok:s,format:t.format||c,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var xi="[-\\+]?\\d+%?",_i="[-\\+]?\\d*\\.\\d+%?",st="(?:".concat(_i,")|(?:").concat(xi,")"),nn="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),an="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),Ge={CSS_UNIT:new RegExp(st),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+an),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+an),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+an),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 Si(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var o=!1;if(_a[t])t=_a[t],o=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ge.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ge.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ge.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Ge.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ge.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Ge.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ge.hex8.exec(t),n?{r:Le(n[1]),g:Le(n[2]),b:Le(n[3]),a:xa(n[4]),format:o?"name":"hex8"}:(n=Ge.hex6.exec(t),n?{r:Le(n[1]),g:Le(n[2]),b:Le(n[3]),format:o?"name":"hex"}:(n=Ge.hex4.exec(t),n?{r:Le(n[1]+n[1]),g:Le(n[2]+n[2]),b:Le(n[3]+n[3]),a:xa(n[4]+n[4]),format:o?"name":"hex8"}:(n=Ge.hex3.exec(t),n?{r:Le(n[1]+n[1]),g:Le(n[2]+n[2]),b:Le(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function et(t){return!!Ge.CSS_UNIT.exec(String(t))}var No=2,Sa=.16,Ti=.05,Ni=.05,Ai=.15,Ta=5,Na=4,Ei=[{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 Aa(t){var o=t.r,n=t.g,a=t.b,l=Ci(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function Ao(t){var o=t.r,n=t.g,a=t.b;return"#".concat(ki(o,n,a,!1))}function Oi(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 Ea(t,o,n){var a;return Math.round(t.h)>=60&&Math.round(t.h)<=240?a=n?Math.round(t.h)-No*o:Math.round(t.h)+No*o:a=n?Math.round(t.h)+No*o:Math.round(t.h)-No*o,a<0?a+=360:a>=360&&(a-=360),a}function Oa(t,o,n){if(t.h===0&&t.s===0)return t.s;var a;return n?a=t.s-Sa*o:o===Na?a=t.s+Sa:a=t.s+Ti*o,a>1&&(a=1),n&&o===Ta&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ba(t,o,n){var a;return n?a=t.v+Ni*o:a=t.v-Ai*o,a>1&&(a=1),Number(a.toFixed(2))}function ln(t){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Jt(t),l=Ta;l>0;l-=1){var r=Aa(a),s=Ao(Jt({h:Ea(r,l,!0),s:Oa(r,l,!0),v:Ba(r,l,!0)}));n.push(s)}n.push(Ao(a));for(var c=1;c<=Na;c+=1){var i=Aa(a),d=Ao(Jt({h:Ea(i,c),s:Oa(i,c),v:Ba(i,c)}));n.push(d)}return o.theme==="dark"?Ei.map(function(p){var u=p.index,m=p.opacity,C=Ao(Oi(Jt(o.backgroundColor||"#141414"),Jt(n[u]),m*100));return C}):n}var rn={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"},sn={},cn={};Object.keys(rn).forEach(function(t){sn[t]=ln(rn[t]),sn[t].primary=sn[t][5],cn[t]=ln(rn[t],{theme:"dark",backgroundColor:"#141414"}),cn[t].primary=cn[t][5]});var Va=[],Zt=[],Bi="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Vi(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function Li(t,o){if(o=o||{},t===void 0)throw new Error(Bi);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Va.indexOf(a);l===-1&&(l=Va.push(a)-1,Zt[l]={});var r;return Zt[l]!==void 0&&Zt[l][n]!==void 0?r=Zt[l][n]:(r=Zt[l][n]=Vi(),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 La(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){Fi(t,l,n[l])})}return t}function Fi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function $i(t,o){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(o))}function Ii(t,o){$i(t,"[@ant-design/icons-vue] ".concat(o))}function Fa(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function dn(t,o,n){return n?e.h(t.tag,La({key:o},n,t.attrs),(t.children||[]).map(function(a,l){return dn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))})):e.h(t.tag,La({key:o},t.attrs),(t.children||[]).map(function(a,l){return dn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))}))}function $a(t){return ln(t)[0]}function Ia(t){return t?Array.isArray(t)?t:[t]:[]}var Di=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -63,7 +63,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
63
63
  `;let f=p;if(C!=null&&C.length){for(const h of C){const y=Mt(h,{textData:u},{useNewline:!1,useSpace:!1});y&&(f=f.replace(h,y))}return`${b}{text|${f}}`}return p})(t.legendFormatter,{name:d})},xAxis:{type:t.isUseHorizontalAxis?"value":"category",data:t.isUseHorizontalAxis?null:dt(i),inverse:t.isUseHorizontalAxis?t.xAxisInverse:t.axisInverse,minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor,type:t.xAxisSplitLineType},interval:t.xAxisSplitLineInterval},splitArea:{show:t.xAxisSplitAreaShow},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,fontSize:t.xAxisLabelFontSize,formatter:d=>(typeof d!="string"||d[0]!=="0"||isNaN(+d)||(d=(+d).toString()),Pt(l,d))},axisLine:{show:t.xAxisLineShow,lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow},name:t.xAxisName,nameTextStyle:{fontSize:t.xAxisLabelFontSize,color:t.xAxisLabelColor,align:"left"},max:t.xAxisMaxValue||null},yAxis:{type:t.isUseHorizontalAxis?"category":"value",data:t.isUseHorizontalAxis?dt(r):null,inverse:t.isUseHorizontalAxis?t.axisInverse:t.yAxisInverse,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:t.yAxisSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{show:t.yAxisLabelShow,fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,rotate:t.yAxisLabelRotate,width:t.yAxisLabelWidth,overflow:t.yAxisLabelOverflow,formatter:d=>Pt(a,d)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:t.yAxisName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:"right"},max:t.yAxisMaxValue||null},series:dt(c)}},Zc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,c=gt(()=>r.map(d=>{let p={};return p=d&&typeof d=="object"?Object.assign(Object.assign({},d),{textStyle:{fontSize:n}}):{value:d,textStyle:{fontSize:n}},p})),i=gt(()=>{const d=[],p=s.length;for(let u=0;u<p;u++){const m={};t.shadowColor&&(m.shadowColor=t.shadowColor,m.shadowBlur=t.shadowBlur,m.shadowOffsetY=t.shadowOffsetY,m.shadowOffsetX=t.shadowOffsetX),d.push(Object.assign(Object.assign(Object.assign({type:"line"},s[u]),{symbolSize:t.symbolSize,smooth:t.smooth,areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},m)}),Qc(t)))}return d});return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:d=>{const p=d.length;let u="",m=t.tooltipFormatter;m===""&&(m="{marker} {a} {c}");for(let C=0;C<p;C++){const{marker:g,seriesName:b,name:f,value:h,data:y}=d[C]||{};C===0&&(u+=`${f}<br/>`),u+=Mt(m,{textData:Object.assign({marker:g,name:f,value:h,a:b,b:f,c:h},y)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n.value},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},xAxis:{name:t.xAxisName,type:"category",data:dt(c),minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,formatter:d=>Pt(l,d)},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",name:t.yAxisName,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{fontSize:n,color:t.yAxisLabelColor,formatter:d=>Pt(a,d)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{fontSize:n}},series:dt(i)}},ed=(t,o,n)=>{const{dataset:a=[]}=o;let{data:l=[]}=a[0]||{};if(Array.isArray(t.colors)){const s=t.isUseLabelColors,c=t.colors;l=l.map((i,d)=>Object.assign({label:s?{color:c[d]}:{}},i))}return{title:{text:t.titleText,subtext:t.titleSubtext,textStyle:{fontSize:t.titleFontSize,fontWeight:t.fontWeight,color:t.titleColor},left:t.textAlign||"center"},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:s=>{const{marker:c,seriesName:i,name:d,value:p,percent:u,data:m}=s||{};return Mt(t.tooltipFormatter,{textData:Object.assign({marker:c,name:d,value:p,percent:u,a:i,b:d,c:p,d:u},m)},{useNewline:!0,useSpace:!0})},textStyle:{color:t.tooltipTextStyleColor||"#333"},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n===18?n:t.labelFontSize}},series:[{data:l,type:"pie",radius:[t.innerRadius,t.outerRadius],center:[t.centerLeft,t.centerTop],roseType:t.roseType,avoidLabelOverlap:!1,minAngle:t.minAngle,label:{show:t.labelPosition!=="center"&&t.labelShow,color:t.labelColor,fontSize:n===18?n:t.labelFontSize,position:t.labelPosition,formatter:(r=t.labelFormatter,r.replace(/\\n/g,`
64
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},td=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=gt(()=>a.map(i=>{let d={};return d=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},d})),s=gt(()=>{const i=[],d=l.length,p=t.seriesTypes;for(let u=0;u<d;u++){const m=p[u],{type:C,axisIndex:g}=m||{};let b=Object.assign({type:C,yAxisIndex:g},l[u]);if(C==="line"){const f={};t.shadowColor&&(f.shadowColor=t.shadowColor,f.shadowBlur=t.shadowBlur,f.shadowOffsetY=t.shadowOffsetY,f.shadowOffsetX=t.shadowOffsetX),b=Object.assign(Object.assign({},b),{symbolSize:t.symbolSize,smooth:t.smooth,itemStyle:{color:t.colors[u]},areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},f)})}if(C==="bar"){const{gradientShow:f,gradientColors:h,gradientOffset:y}=t,N={};if(t.barBorderRadius){const w=t.barBorderRadius.split(",");if(w!=null&&w.length){const _=[];for(const S of w){const A=parseFloat(S);isNaN(A)||_.push(A)}N.borderRadius=_}}f&&(N.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:y,color:h[u]},{offset:1,color:h[u]}]}),b=Object.assign(Object.assign({},b),{barWidth:t.barWidth,itemStyle:N})}t.isShowMarkLine&&(b.markLine={data:[{type:t.markLineType}]}),i.push(b)}return i}),c=gt(()=>{const i=t.yAxis;return i==null?void 0:i.map((d,p)=>({type:"value",minInterval:t.yAxisMinInterval,splitLine:{show:p===0?t.yAxisLeftSplitLineShow:t.yAxisRightSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:p===0?t.yAxisLeftSplitLineType:t.yAxisRightSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{fontSize:n,show:t.yAxisLabelShow,color:t.yAxisLabelColor,formatter:u=>Pt(d.axisLabelFormatter,u)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:p===0?t.yAxisLeftName:t.yAxisRightName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:p===0?"right":"left"},max:t.yAxisMaxValue||null}))});return{legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n}},tooltip:{trigger:"axis",show:t.tooltipShow,formatter:i=>{const d=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const m=t.seriesTypes;for(let C=0;C<d;C++){const g=m[C],{tooltipFormatter:b}=g||{},{marker:f,seriesName:h,name:y,value:N,data:w}=i[C]||{};C===0&&(p+=`${y}<br/>`),p+=Mt(b||u,{textData:Object.assign({marker:f,name:y,value:N,seriesName:h,a:h,b:y,c:N},w)},{useNewline:!0,useSpace:!0}),p+="<br/>"}return p},textStyle:{color:t.tooltipTextStyleColor||"#333",fontSize:n},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},xAxis:{name:t.xAxisName,minInterval:t.xAxisMinInterval,type:"category",data:dt(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:dt(c),series:dt(s)}},od=(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 Jc(a,l,r);case"line":return Zc(a,l,r);case"pie":return ed(a,l,r);case"comboGraph":return td(a,l,r);default:return{}}})(t,o,n)),ft=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...ft(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},Ql=(t,o)=>{var b;const n=Z.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:c=[],rightAxisList:i=[],queryColumnList:d=[],indicators:p=[]}=t;Zl(n,o);const u=n,m=[...a,...l,...r,...s,...c,...i,...d,...p],C=[];for(const f of m){const h=ft((f==null?void 0:f.conditions)||[]);if(h!=null&&h.length){const y=h.filter(N=>er(N,o)?(N==null?void 0:N.dataType)==="component":!1).map(N=>{const w=er(N,o),_={};return N!=null&&N.dateFormat&&(_.format=N.dateFormat),{conditionKey:N.fieldName,conditionLabel:N.fieldName,conditionName:N.fieldName,conditionValueType:N.fieldType,id:w.id,keyName:N.fieldValue,rule:N.rule,notGlobal:!0,indexCode:N.indexCode,typeGuid:N.typeGuid,indexCodeNum:N.indexCodeNum,..._}});if(y!=null&&y.length)for(const N of y)C.find(w=>w.keyName===N.keyName)||C.push(N)}}const g=C.length;for(let f=0;f<g;f++){const h=C[f];if(h&&!((b=Object.keys(h))!=null&&b.length)||(h==null?void 0:h.conditionKey)==="parentCode")continue;const{id:y,keyName:N,prop:w,format:_,dataType:S="component",customValue:A}=h,D=Jl(h);Yn({sqlCondition:D,renderUsedComponents:o,id:y,dateFormat:_,prop:w,keyName:N,dataType:S,customValue:A}),u.push(D)}for(let f=u.length-1;f>=0;f--){const h=u[f];h.globalCondition||ft(u).find(N=>N.alias===h.alias&&N.globalCondition)&&u.splice(f,1)}return u},so=(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||""};Yn({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 Jl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:c="NONE",notGlobal:i=!1,indexCode:d,indexCodeNum:p,typeGuid:u,dataType:m="component"}=t;let C=n||o;return C&&s&&(C+=`-${s}`),{rule:c,label:a,fieldName:l,fieldValue:"",valueType:r,alias:C,globalCondition:!i,indexCode:d,indexCodeNum:p,typeGuid:u,dataType:m}}const nd=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function Zl(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)Zl(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:c="component",customValue:i}=n,d=Jl(n);Yn({sqlCondition:d,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:c,customValue:i});for(const p in d)n[p]=d[p];for(const p of nd)delete n[p]}}function Yn(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:c,customValue:i,operateValue:d,operateMode:p,operateType:u}=t,m=e.unref(n).find(N=>N.id===a),{value:C,format:g="YYYY-MM-DD",operate:b,type:f="",useCurrentTime:h}=m||{},y=l||g;if(pe(f,"date")){let N;if(h?N=me():N=me(C),b&&C){const{mode:w,type:_,value:S}=b;if(S)switch(_){case"add":N=N.add(S,w);break;case"minus":N=N.subtract(S,w);break}}if(d&&p&&u)switch(u){case"add":N=N.add(d,p);break;case"minus":N=N.subtract(d,p);break}o.fieldValue=(N==null?void 0:N.format(y))||"",o.dateFormat=y}else if(f==="ecanRangePicker"){const{interval:N,intervalUnit:w,startTime:_,endTime:S}=m||{};let A=r;if(!r){const v=s==null?void 0:s.split("-");v!=null&&v.length&&(A=v[v.length-1])}if(!A)return;let D=null;if(h&&(A==="startTime"?D=me().subtract(N,w):A==="endTime"&&(D=me())),m[A]&&(D=me(m[A])),b){const{type:v,value:T,mode:R}=b;switch(v){case"add":D=D&&D.add(T,R);break;case"minus":D=D&&D.subtract(T,R)}}if(d&&p&&u){if(d==="rangeValue"){if(_&&S){const v=me(S).diff(me(_),p)+1;switch(u){case"add":D=D&&D.add(v,p);break;case"minus":D=D&&D.subtract(v,p)}}}else if(!isNaN(+d))switch(u){case"add":D=D&&D.add(d,p);break;case"minus":D=D&&D.subtract(d,p)}}if(D&&(o.fieldValue=D==null?void 0:D.format(y)),A==="rangeValue"&&_&&S){const v=ad(y);v&&(o.fieldValue=me(S).diff(me(_),v)+1)}o.dateFormat=y}else{const N=C&&C.match(/\{(.+?)\}/g);N!=null&&N.length?o.fieldValue="":o.fieldValue=C}c===""&&(o.fieldValue=i||"")}const Fo=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 er(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 ad(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 ld(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=rd(a))}}return n}function rd(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 tr=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],or=t=>({0:"文本",1:"数值",2:"日期"})[t],nr=t=>{if(!t)return"";const o=t.split(","),n=[];for(const a of o)a==="0"?n.push("手工录入"):a==="1"?n.push("系统取数"):a==="2"&&n.push("运算加工");return n.join("、")},ar=t=>{if(!t)return"";const o=t.split(","),n=[];for(const a of o)switch(a){case"1":n.push("人力系统");break;case"2":n.push("绩效系统");break;case"3":n.push("预算系统");break;case"4":n.push("财务系统");break;case"5":n.push("成本系统");break;case"6":n.push("物流系统");break;case"7":n.push("固定资产系统");break;case"8":n.push("OA办公系统");break;case"9":n.push("电子档案系统");break;case"10":n.push("个人收入系统");break;case"11":n.push("奖金二次分配系统");break;case"12":n.push("财务管理系统");break;case"13":n.push("报销系统");break;case"14":n.push("科研管理系统");break;case"15":n.push("审计系统");break;case"16":n.push("分组器系统");break;case"17":n.push("消毒供应系统");break}return n.join("、")},lr=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",id=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:Ha,CaretDownOutlined:za,LoadingOutlined:Us,Draggable:Bt,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 _;const a=(_=window==null?void 0:window.config)==null?void 0:_.pageId,l=e.inject(Be),r=e.unref(e.inject(Ve)),s=e.inject("setItemDisabled",S=>!1),c=e.ref([]),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),m=e.ref(!1);e.watch(()=>t.data,S=>{t.isSub&&(S==null||S.forEach(A=>{var D;A!=null&&A.isLeaf||(D=A.dataViewColumns)==null||D.forEach(v=>{v.show=!0,v.edit=!1,v.title&&(v.label=v.title)})}),c.value=S)},{deep:!0,immediate:!0});const C=()=>{var S;t.isSub||(S=e.unref(i))==null||S.removeEventListener("scroll",y)},g=async S=>{var v;if(e.unref(p))return;const A=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const D={source:t.source,pageId:a,dataSourceId:A,indexName:u.value};S?(S.loading=!0,D.indexTypeGuid=S.indexTypeGuid,D.isLeaf=S.isLeaf):d&&(D.queryRequest={pageSize:d.pageSize,pageNum:d.currentPage});try{const T=await l.post(`${Se}/diagram/sourceList`,D,{headers:{Authentication:r,operateContext:"ygt"}}),{success:R,data:I={}}=T.data;if(R){const{rows:V=[],total:x=0}=I;V==null||V.forEach(O=>{var B;(S==null?void 0:S.isLeaf)==="1"||t.graphicConfig.dataSourceId?(B=O.dataViewColumns)==null||B.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)}):O.show=!1}),S?(S.children=V,S.show=!0,V!=null&&V.length||(S.noData=!0)):(c.value=e.unref(c).concat(V),d.totalResult=+x,((v=e.unref(c))==null?void 0:v.length)>=x&&C())}S&&(S.loading=!1),p.value=!1}catch{S&&(S.loading=!1),p.value=!1}},b=async S=>{const A=c.value[S],{children:D=[]}=A;D!=null&&D.length?A.show=!A.show:!A.noData&&A.isLeaf?g(A):A.noData&&(A.show=!A.show)},f=(S,A)=>{o("onDragStart",S,A)},h=S=>{S.show=!S.show},y=S=>{S.target.scrollTop+S.target.clientHeight+20>=S.target.scrollHeight&&(d.currentPage++,g())},N=async()=>{await g(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&d.totalResult>e.unref(c).length&&(d.currentPage++,N())})},w=async S=>{var A;C(),m.value=!0,d.currentPage=1,d.totalResult=0,c.value=[],u.value=S,await N(),m.value=!1,(A=e.unref(i))==null||A.addEventListener("scroll",y)};return e.onMounted(async()=>{var S;t.isSub||(N(),(S=e.unref(i))==null||S.addEventListener("scroll",y))}),e.onUnmounted(()=>{C()}),n({handleSearch:w}),{columnRef:i,sourceList:c,searchLoading:m,onToggleGroup:b,onToggleSource:h,setItemDisabled:s,onDragStart:f,mapDataSetScope:or,mapScope:tr,getLoadType:nr,getUseType:ar,getSourceType:lr}}}),vy="",sd={key:0,class:"no-data"},cd={class:"column-item"},dd=["onClick"],pd={key:3,class:"item-name"},ud={key:0},fd={class:"column-item"},md={key:0},hd={key:1},bd={key:2},yd={key:3},gd=["onClick"],Cd={class:"column-child-item"},wd={class:"field"},kd={class:"column-child-item-name"};function xd(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),c=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),d=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(m,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var C;return[!((C=t.sourceList)!=null&&C.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",sd,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:g.indexTypeGuid||g.id},[e.createElementVNode("div",cd,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:f=>t.onToggleGroup(b)},[g.loading?(e.openBlock(),e.createBlock(s,{key:0})):g.show?(e.openBlock(),e.createBlock(c,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),g.isLeaf?(e.openBlock(),e.createElementBlock("span",pd,e.toDisplayString(g.indexTypeCode+"."+g.indexTypeName),1)):e.createCommentVNode("",!0)],8,dd)]),g.show?(e.openBlock(),e.createElementBlock("div",ud,[e.createVNode(d,{data:g.children,isSub:!0,hasChildren:g.isLeaf==="0",graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onOnDragStart:t.onDragStart},null,8,["data","hasChildren","graphicConfig","onOnDragStart"])])):e.createCommentVNode("",!0)]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.sourceList,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:e.normalizeClass(t.setItemDisabled(g.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",fd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(g.loadType)),1),g.useType?(e.openBlock(),e.createElementBlock("div",md,"数据使用系统:"+e.toDisplayString(t.getUseType(g.useType)),1)):e.createCommentVNode("",!0),g.systemSource?(e.openBlock(),e.createElementBlock("div",hd,"制度出处:"+e.toDisplayString(g.systemSource),1)):e.createCommentVNode("",!0),g.dataTo?(e.openBlock(),e.createElementBlock("div",bd,"数据来源:"+e.toDisplayString(t.getSourceType(g.dataTo)),1)):e.createCommentVNode("",!0),g.meaning?(e.openBlock(),e.createElementBlock("div",yd,"指标含义:"+e.toDisplayString(g.meaning),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:b=>t.onToggleSource(g)},[g.show?(e.openBlock(),e.createBlock(c,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((g.indexCode?g.indexCode:"")+" "+g.name),1)],8,gd)]),_:2},1024)]),g.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:g.dataViewColumns,"onUpdate:modelValue":b=>g.dataViewColumns=b,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(g.dataViewColumns),onStart:b=>t.onDragStart(b,g)},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",Cd,[e.createElementVNode("span",wd," 【"+e.toDisplayString(b.scope==="FIELD"?t.mapDataSetScope(b.genericType):t.mapScope(b.scope))+"】 ",1),e.createElementVNode("span",kd,e.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const _d=ne(id,[["render",xd],["__scopeId","data-v-eb6815db"]]),Sd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:Ha,CaretDownOutlined:za,IndSourceList:_d,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Bt,ATooltip:j.Tooltip},setup(){var _;const t=(_=window==null?void 0:window.config)==null?void 0:_.pageId,o=e.inject(Be),n=e.unref(e.inject(Ve)),a=e.inject(Ie),l=e.computed(()=>{var S;return(S=e.unref(a))==null?void 0:S.graphicConfig}),r=e.computed(()=>{var S;return(S=e.unref(l))==null?void 0:S.dataSourceId}),s=e.ref([]),c=e.ref(!1),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Qt),u=e.ref(""),m=async()=>{if(e.unref(h).source==="INDICATOR_LIB")return;c.value=!0;const S={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:d.pageSize,pageNum:d.currentPage}};S.source==="EDV_DATA_SET"&&(S.edvDataSetName=S.indexName,delete S.indexName);try{const A=await o.post(`${Se}/diagram/sourceList`,S,{headers:{Authentication:n,operateContext:"ygt"}});c.value=!1;const{success:D,data:v={}}=A.data;if(D){const{rows:T=[],total:R=0}=v;T==null||T.forEach(I=>{var V;I.show=!1,(V=I.dataViewColumns)==null||V.forEach(x=>{x.show=!0,x.edit=!1,x.title&&(x.label=x.title)})}),s.value=T,d.totalResult=+R}}catch{c.value=!1}},C=S=>{s.value[S].show=!s.value[S].show},g=()=>{var S;d.currentPage=1,m(),e.unref(h).source==="INDICATOR_LIB"&&((S=e.unref(i))==null||S.handleSearch(e.unref(u)))},b=Z.debounce(()=>{d.currentPage=1,m()},200),f=(S,A)=>{d.pageSize=A,d.currentPage=S,m()};e.onMounted(()=>{m()});const h=e.inject(be),y=e.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let A=[];for(const D in e.unref(h))if(Object.prototype.hasOwnProperty.call(e.unref(h),D)&&S.includes(D)){const v=e.unref(h)[D];Array.isArray(v)&&(A=A.concat(v))}return A}),N=(S=[])=>{let A=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const D of e.unref(y))if(!S.find(T=>T.parentId===D.parentId)){A=!0;break}}else for(const D of e.unref(y))if(!S.find(T=>T.typeGuid===D.typeGuid)){A=!0;break}return A};return e.provide("setItemDisabled",N),{dataSourceList:s,dataSourceLoading:c,pagination:d,onToggleGroup:C,mapScope:tr,mapDataSetScope:or,onSearch:g,onChange:b,source:p,onPaginationChange:f,searchText:u,setItemDisabled:N,onDragStart:(S,A)=>{const D=A.dataViewColumns[S.oldIndex];let v={};A.dataSetParams&&(v=A.dataSetParams),D&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...D,dataTo:A.dataTo,dataSetParams:v,meaning:A.meaning,theFormula:A.theFormula,theUnit:A.theUnit})),A.dataTo==="1"&&(A!=null&&A.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(A.hrpIndexVariates)),A.dataTo==="2"&&(A!=null&&A.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(A.dataSetParams)))},getSourceType:lr,getLoadType:nr,getUseType:ar,graphicConfig:h,indSourceRef:i}}}),My="",Td={class:"data-source-list"},Nd={class:"columns"},Ad={class:"column-item"},Ed={key:0},Od={key:1},Bd={key:2},Vd=["onClick"],Ld={key:0},Fd={class:"column-child-item"},$d={class:"column-child-item-name"};function Id(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),c=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),d=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-spin"),C=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",Td,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=g=>t.searchText=g),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(c,{key:0,ref:"indSourceRef",data:t.dataSourceList,hasChildren:!0,isSub:!1,graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onSetItemDisabled:t.setItemDisabled,onOnDragStart:t.onDragStart},null,8,["data","graphicConfig","onSetItemDisabled","onOnDragStart"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Nd,[e.createVNode(m,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:e.normalizeClass(t.setItemDisabled(g.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",Ad,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(g.loadType)),1),g.useType?(e.openBlock(),e.createElementBlock("div",Ed,"数据使用系统:"+e.toDisplayString(t.getUseType(g.useType)),1)):e.createCommentVNode("",!0),g.systemSource?(e.openBlock(),e.createElementBlock("div",Od,"制度出处:"+e.toDisplayString(g.systemSource),1)):e.createCommentVNode("",!0),g.meaning?(e.openBlock(),e.createElementBlock("div",Bd,"指标含义:"+e.toDisplayString(g.meaning),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:f=>t.onToggleGroup(b)},[g.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(d,{key:1})),e.createTextVNode(" "+e.toDisplayString((g.indexCode?g.indexCode:"")+" "+g.name)+"【"+e.toDisplayString(t.getSourceType(g.dataTo))+"】 ",1)],8,Vd)]),_:2},1024)]),g.show?(e.openBlock(),e.createElementBlock("div",Ld,[e.createVNode(u,{modelValue:g.dataViewColumns,"onUpdate:modelValue":f=>g.dataViewColumns=f,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(g.dataViewColumns),onStart:f=>t.onDragStart(f,g)},{item:e.withCtx(({element:f})=>[e.createElementVNode("div",Fd,[e.createTextVNode(" 【"+e.toDisplayString(f.scope==="FIELD"?t.mapDataSetScope(f.genericType):t.mapScope(f.scope))+"】 ",1),e.createElementVNode("span",$d,e.toDisplayString(f.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(C,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=g=>t.pagination.pageSize=g),total:t.pagination.totalResult,"show-total":g=>`共 ${g} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=g=>t.pagination.currentPage=g),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const Dd=ne(Sd,[["render",Id],["__scopeId","data-v-0a17825c"]]),vd=e.defineComponent({name:"DataList",components:{DataSourceList:Dd,DataViewList:fi},setup(){return{source:e.inject(Qt)}}});function Md(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),c=e.resolveComponent("data-source-list");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.source==="SQL_VIEW"?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),t.source==="INDICATOR_LIB"||t.source==="EDV_DATA_SET"?(e.openBlock(),e.createBlock(c,{key:1})):e.createCommentVNode("",!0)],64)}const Pd=ne(vd,[["render",Md]]),rr={mounted(t){t.focus()}},jd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Bt,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:Xa},setup(t,{expose:o}){var v;const n=(v=window==null?void 0:window.config)==null?void 0:v.pageId,a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(be),s=e.inject(Ae),c=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),d=e.ref([]),p=e.ref("1"),u=e.ref([]),m=T=>{const R=t.sortList.filter(V=>!e.unref(u).find(x=>x.columnName===V.name)||T.columnName===V.name),I=[];return R.forEach((V,x)=>{I.includes(V.name)?V.name=`${V.name}_ecanrepeat_${x}`:I.push(V.name)}),R},C=async()=>{try{const T=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(c),dataViewId:e.unref(i),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:n,pageFlag:!0,edvDataSetId:e.unref(r).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:R,data:I=[]}=T.data;R&&(d.value=I==null?void 0:I.slice(0,200))}catch(T){console.error(T)}},g=()=>{var x,O;const T=((x=e.unref(r)[t.type])==null?void 0:x.slice())||[],R=T[t.index],{label:I,name:V}=t.item;e.unref(p)==="2"?R.sort={label:I,columnName:V,type:"CUSTOM",customOrderColumns:e.unref(d)}:e.unref(p)==="1"&&((O=e.unref(u))!=null&&O.length?R.sort=Z.cloneDeep(e.unref(u)):delete R.sort),s({[t.type]:T})};let b=!1;const f=()=>{b=!0},h=e.ref(!1),y=T=>{var I;const{sort:R}=T;R?Array.isArray(R)?(p.value=((I=R[0])==null?void 0:I.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=Z.cloneDeep(R):u.value=[]):(p.value=(R==null?void 0:R.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[Z.cloneDeep(R)]:u.value=[]):u.value=[],h.value=!0},N=()=>{h.value=!1},w=()=>{e.unref(p)==="2"?(b&&g(),b=!1):g(),N()};return o({showModal:y}),e.watch(h,T=>{var R,I;if(T){const V=(I=(R=t.item)==null?void 0:R.sort)==null?void 0:I.customOrderColumns;V==null?C():d.value=V}else d.value=[];window.changeShowTable&&window.changeShowTable(!T)},{flush:"post"}),{visible:h,customSortList:d,activeKey:p,combSortList:u,getSortOptions:m,onChange:f,onDeleteConfig:()=>{var I;const T=((I=e.unref(r)[t.type])==null?void 0:I.slice())||[],R=T[t.index];delete R.sort,s({[t.type]:T}),N()},onCancel:w,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:T=>{u.value.splice(T,1)},onColumnChange:T=>{const R=e.unref(u).find(I=>I.columnName===T);if(R){const I=t.sortList.find(V=>V.name===T);I&&(R.label=I.label,I.defaultCode?R.defaultCode=I.defaultCode:delete R.defaultCode)}}}}}),Py="",Rd={class:"button-wrapper"},Ud={class:"list-wrapper"},zd={class:"button-wrapper"},Gd={class:"sort-item"};function Hd(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-tabs"),C=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(C,{title:"排序配置",visible:t.visible,"destroy-on-close":"",width:"50%",onCancel:t.onCancel,bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null},{default:e.withCtx(()=>[e.createVNode(m,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=g=>t.activeKey=g)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Rd,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",Ud,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(g,b)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:b},[e.createVNode(c,{value:g.columnName,"onUpdate:value":f=>g.columnName=f,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(g),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(c,{value:g.order,"onUpdate:value":f=>g.order=f,style:{"margin-left":"10px",width:"100px"},placeholder:"升/降序"},{default:e.withCtx(()=>[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})]),_:2},1032,["value","onUpdate:value"]),e.createVNode(d,{style:{color:"red","margin-left":"10px"},onClick:f=>t.handleDeleteSort(b)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",zd,[e.createVNode(s,{danger:"",onClick:t.onDeleteConfig},{default:e.withCtx(()=>[e.createTextVNode(" 删除配置 ")]),_:1},8,["onClick"])]),e.createVNode(u,{modelValue:t.customSortList,"onUpdate:modelValue":o[0]||(o[0]=g=>t.customSortList=g),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:g})=>[e.createElementVNode("div",Gd,e.toDisplayString(g),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Wd=ne(jd,[["render",Hd],["__scopeId","data-v-6a468e35"]]),Yd=e.defineComponent({name:"CustomGroupModal",directives:{focus:rr},components:{CloseOutlined:to,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 L;const n=e.inject(Be),a=(L=window==null?void 0:window.config)==null?void 0:L.pageId,l=e.unref(e.inject(Ve));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),c=e.ref(null),i=e.ref(null),d=e.ref([]),p=e.ref([]),u=e.computed(()=>{const k=e.unref(p).map(F=>F.title);return new Set(k)}),m=e.ref([]);e.watch(()=>e.unref(p).length,k=>{m.value=new Array(k).fill(!1)});const C=e.computed(()=>{let k=0;return e.unref(p).forEach(F=>{var M;(M=F.data)==null||M.forEach(U=>{U.checked&&k++})}),k}),g=()=>{const k=e.unref(c);if(!k){j.message.error("创建分组名不能空");return}e.unref(u).has(k)?j.message.error("分组名已存在,请重新命名"):(e.unref(p).push({title:k,data:[]}),r=!0,c.value="")},b=()=>{var M,U;const k=e.unref(i);if(!k){j.message.error("值名称不能空");return}let F=!0;if((M=e.unref(p))!=null&&M.length)for(const G of e.unref(p)){if((U=G==null?void 0:G.data)!=null&&U.length){for(const Y of G.data)if(Y.label===k){F=!1;break}}if(!F)break}F?(e.unref(p)[0].data.push({label:k,checked:!1}),r=!0,i.value=""):j.message.error("名称已存在,请重新命名")},f=k=>{e.unref(p).splice(k,1),r=!0},h=e.ref(null),y=()=>{if(e.unref(C)===0){j.message.error("当前移入分组已选个数为0");return}const k=e.unref(h);if(k==null){j.message.error("请选择移入分组");return}if(!e.unref(p)[k]){j.message.error("移入分组不存在,请重新选择");return}const F=[],M=e.unref(p).length;for(let U=0;U<M;U++){const G=e.unref(p)[U];e.unref(p)[U].data=G.data.filter(Y=>(Y.checked&&F.push({...Y,checked:!1}),!Y.checked))}e.unref(p)[k].data=[...F,...e.unref(p)[k].data],r=!0},N=k=>{e.unref(m)[k]=!0},w=k=>{e.unref(m)[k]=!1},_=(k,F)=>{const M=k.target.value;e.unref(u).has(M)&&j.message.error("组名不能相同,请修改"),e.unref(p)[F].title=M,r=!0},S=e.inject(be),A=e.inject(Ae),D=e.computed(()=>e.unref(S).source),v=e.computed(()=>e.unref(S).dataViewId),T=e.ref(!1),R=()=>{var X,J;const k=e.unref(p);let F="";e.unref(T)&&(F=(X=k[0])==null?void 0:X.title);const M=k==null?void 0:k.length,U={};for(let oe=1;oe<M;oe++){const ae=k[oe]||{},{title:ye,data:ce}=ae;U[ye]=(ce==null?void 0:ce.map(ge=>ge.label))||[]}const G=((J=e.unref(S)[t.type])==null?void 0:J.slice())||[],Y=G[t.index];Y.customGroup={groupInfoMap:U,otherGroupName:F},A({[t.type]:G})},I=e.ref(!1),V=()=>{I.value=!0},x=()=>{I.value=!1},O=()=>{x(),r&&R(),r=!1},B=()=>{r=!0},P=new Set,$=async()=>{const k=t.item.customGroup||{},F=k.otherGroupName,M=k.groupInfoMap;(F===""||F==null)&&(T.value=!1),e.unref(p)[0]={title:F||"未分组",data:[]};let U=1;for(const G in M)if(Object.prototype.hasOwnProperty.call(M,G)){const X=M[G].map(J=>(P.add(J),{label:J,checked:!1}));e.unref(p)[U]={title:G,data:X},U++}await E()},E=async()=>{var k;try{const F=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(D),dataViewId:e.unref(v),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(S).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:M,data:U=[]}=F.data;if(M){const G=[];(k=U==null?void 0:U.slice(0,200))==null||k.forEach(Y=>{P.has(Y)||G.push({label:Y,checked:!1})}),e.unref(p)[0].data=G}}catch(F){console.error(F)}};return e.watch(I,k=>{k&&$(),window.changeShowTable&&window.changeShowTable(!k)},{flush:"post"}),o({showModal:V}),{visible:I,title:s,activeKey:d,customGroupList:p,onCancel:O,useOtherGroup:T,selectCount:C,createGroupTitle:c,createValueTitle:i,onAddGroup:g,onDeleteGroup:f,onMoveInGroup:y,selectGroupIndex:h,onEditTitle:N,onTitleChange:_,onFinishEditTitle:w,onUseOtherGroup:B,onAddValue:b,customGroupEditTitleList:m}}}),jy="",Ry="",qd={class:"custom-group-header"},Kd={class:"move-and-create"},Xd={class:"select-tip"},Qd={class:"select-count"},Jd={style:{display:"flex","align-items":"center"}},Zd={class:"create-group"},ep={class:"create-group",style:{"margin-left":"40px"}},tp={class:"custom-group-content"},op=["onClick"],np={class:"extra"},ap={class:"custom-group-list"},lp={class:"text"};function rp(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),d=e.resolveComponent("a-checkbox"),p=e.resolveComponent("a-input"),u=e.resolveComponent("a-tag"),m=e.resolveComponent("close-outlined"),C=e.resolveComponent("a-checkable-tag"),g=e.resolveComponent("a-collapse-panel"),b=e.resolveComponent("a-collapse"),f=e.resolveComponent("a-modal"),h=e.resolveDirective("focus");return e.openBlock(),e.createBlock(f,{title:t.title,visible:t.visible,"destroy-on-close":"",width:"50%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column"},footer:null,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",qd,[e.createElementVNode("div",Kd,[e.createElementVNode("div",null,[e.createElementVNode("span",Xd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Qd,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(c,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=y=>t.selectGroupIndex=y),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(y,N)=>(e.openBlock(),e.createBlock(s,{key:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createVNode(d,{checked:t.useOtherGroup,"onUpdate:checked":o[1]||(o[1]=y=>t.useOtherGroup=y),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])]),e.createElementVNode("div",Jd,[e.createElementVNode("div",Zd,[e.createTextVNode(" 创建分组: "),e.createVNode(p,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[2]||(o[2]=y=>t.createGroupTitle=y),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])]),e.createElementVNode("div",ep,[e.createTextVNode(" 新建值: "),e.createVNode(p,{class:"create-group-name",value:t.createValueTitle,"onUpdate:value":o[3]||(o[3]=y=>t.createValueTitle=y),placeholder:"请输入名称",onPressEnter:t.onAddValue},null,8,["value","onPressEnter"])])])]),e.createElementVNode("div",tp,[e.createVNode(b,{activeKey:t.activeKey,"onUpdate:activeKey":o[4]||(o[4]=y=>t.activeKey=y),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(y,N)=>(e.openBlock(),e.createBlock(g,{key:N},{header:e.withCtx(()=>[t.customGroupEditTitleList[N]?e.withDirectives((e.openBlock(),e.createBlock(p,{key:1,class:"edit-title-input",value:y.title,size:"small",onChange:w=>t.onTitleChange(w,N),onBlur:w=>t.onFinishEditTitle(N),onPressEnter:w=>t.onFinishEditTitle(N)},null,8,["value","onChange","onBlur","onPressEnter"])),[[h]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(w=>t.onEditTitle(N),["prevent","stop"])},e.toDisplayString(y.title),9,op))]),extra:e.withCtx(()=>[e.createElementVNode("div",np,[N===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),N!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(m,{onClick:e.withModifiers(w=>t.onDeleteGroup(N),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",ap,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.data,(w,_)=>(e.openBlock(),e.createBlock(C,{color:"red",checked:w.checked,"onUpdate:checked":S=>w.checked=S,class:"custom-group",key:_},{default:e.withCtx(()=>[e.createElementVNode("span",lp,e.toDisplayString(w.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const ip=ne(Yd,[["render",rp],["__scopeId","data-v-8e480e07"]]);let he=(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 sp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qn={},cp={get exports(){return qn},set exports(t){qn=t}};(function(t,o){(function(n,a){t.exports=a()})(sp,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var c=s.add;s.add=function(d,p){return d=Number(d),this.$utils().p(p)===a?this.add(3*d,n):c.bind(this)(d,p)};var i=s.startOf;s.startOf=function(d,p){var u=this.$utils(),m=!!u.u(p)||p;if(u.p(d)===a){var C=this.quarter()-1;return m?this.month(3*C).startOf(n).startOf("day"):this.month(3*C+2).endOf(n).endOf("day")}return i.bind(this)(d,p)}}})})(cp);const dp=qn;me.extend(dp);const pp=e.defineComponent({name:"Condition",components:{CloseOutlined:to,DownOutlined:$s,AppstoreAddOutlined:mn,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:Nn},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 Yt,qt,Re,Qe,ht,At,Je,lt,Ue,Et,rt,ko,Ko,Xo,Kt;const o=(Yt=window==null?void 0:window.config)==null?void 0:Yt.pageId,n=e.inject(be),a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ya),s=e.inject(ze),c=e.ref(!1),i=me(),d=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(te=>{const{keyName:ie="",id:se="",type:de}=te;de==="ecanRangePicker"?W.push({value:`${se}-startTime`,label:`${ie||se}-开始时间值`,keyName:`${ie||se}-startTime`,id:se},{value:`${se}-endTime`,label:`${ie||se}-结束时间值`,keyName:`${ie||se}-endTime`,id:se}):W.push({value:se,label:`${ie||se}`,keyName:`${ie||se}`,id:se})}),W}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(d)]),u=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.dataViewId}),m=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.source}),C=e.ref(!1),g={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},b=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],f=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),h=e.ref([{key:0,value:"",label:"年",type:"years",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"年前",afterLabel:"年后",beforeText:"年初",afterText:"年末"},{key:1,value:"",label:"季度",type:"quarters",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个季度前",afterLabel:"个季度后",beforeText:"季度初",afterText:"季度末"},{key:2,value:"",label:"月",type:"months",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个月前",afterLabel:"个月后",beforeText:"月初",afterText:"月末"},{key:3,value:"",label:"周",type:"weeks",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"周前",afterLabel:"周后",beforeText:"",afterText:""},{key:4,value:"",label:"天",type:"days",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"天前",afterLabel:"天后",beforeText:"今天",afterText:""}]),y=[{label:"年份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"季的季度",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"月的月份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"周的周",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"天的日期",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"}],N=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],w=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],_=e.ref({fieldName:(qt=t.data)==null?void 0:qt.fieldName,fieldType:(Re=t.data)==null?void 0:Re.fieldType,rule:(Qe=t.data)==null?void 0:Qe.rule,id:(ht=t.data)==null?void 0:ht.id,fieldValue:S(),label:(At=t.data)==null?void 0:At.label,targetSource:"",typeGuid:(Je=t.data)==null?void 0:Je.typeGuid,indexCode:(lt=t.data)==null?void 0:lt.indexCode,indexCodeNum:(Ue=t.data)==null?void 0:Ue.indexCodeNum,dataType:((Et=t.data)==null?void 0:Et.dataType)||"",componentId:((rt=t.data)==null?void 0:rt.componentId)||"",useCurrentTime:!!((ko=t.data)!=null&&ko.useCurrentTime),keyValue:(Ko=t.data)==null?void 0:Ko.keyValue,modelKey:(Xo=t.data)==null?void 0:Xo.modelKey,prop:(Kt=t.data)==null?void 0:Kt.prop});function S(){const{fieldType:W="",dataType:K="",fieldValue:te=""}=t.data;if(W==="DATE"&&K==="time")return te&&me(te);if(K==="component"){const ie=e.unref(d).find(se=>se.keyName===te);return ie?ie.value:te}else return te}const A=e.ref([]),D=e.ref(!1),v=e.computed(()=>_.value.fieldType==="DATE"),T=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let te=[];const ie=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],se=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")te=A.value;else if(ie.includes(W)){let de=[];for(const Te in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),Te)&&!se.includes(Te)){const Ze=e.unref(n)[Te];Array.isArray(Ze)&&(ie.includes(Te)?de=de.concat(Ze.filter(it=>it.show)):de=de.concat(Ze))}te=de}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(te=e.unref(r));return te.map(de=>({...de,label:de.label||de.title,value:de.name}))}),{updateCondition:R,deleteCondition:I,addCondition:V}=e.inject(_o,{updateCondition:(W,K,te)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,te)=>{}}),x=()=>{I(t.index,t.path)};e.watch(_,W=>{const K=Z.cloneDeep(W);W.fieldType==="DATE"&&W.dataType!=="component"&&W.fieldValue&&(K.fieldValue=W.fieldValue.format(W.dateFormat)),R(K,t.index,t.path)},{deep:!0}),e.watch(c,W=>{_.value.fieldValue="",_.value.useCurrentTime=W});const O=W=>{var z;const K=e.unref(T).find(H=>H.value===W)||{},{name:te,genericType:ie,id:se,edvDataSetId:de,label:Te,typeGuid:Ze,indexCode:it,indexCodeNum:Xt}=K;_.value={id:se,fieldName:te,fieldType:ie,label:Te,rule:"",fieldValue:ie==="DATE"?null:void 0,targetSource:"",typeGuid:Ze,indexCode:it,edvDataSetId:de,indexCodeNum:Xt,dataType:"",useCurrentTime:!1,keyValue:((z=e.unref(_))==null?void 0:z.keyValue)||he(),modelKey:"",prop:""}},B=W=>{const K=e.unref(d).find(te=>te.value===W)||{};e.unref(_).componentId=K.id||""},P=e.computed(()=>{const W=e.unref(_).fieldType;return W==="TEXT"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"包含",value:"LIKE"},{label:"不包含",value:"NOT_LIKE"},{label:"开头是",value:"LIKE%"},{label:"结尾是",value:"%LIKE"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"}]:W==="NUMBER"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:W==="DATE"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]}),$=e.computed(()=>{let W="";const K=e.unref(P).find(te=>te.value===e.unref(_).rule);return K&&(W=K.label),W}),E=e.computed(()=>{let W={fontSize:"12px"};return e.unref($)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),L=e.ref([]),k=async()=>{var W;if(!(e.unref(L).length>0))try{const K=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(m),dataViewId:e.unref(u),groupColumn:e.unref(_).fieldName,hrpIndexTypeGuid:e.unref(_).typeGuid,pageId:o,pageFlag:!0,edvDataSetId:e.unref(_).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:te,data:ie=[]}=K.data;te&&(L.value=(W=ie==null?void 0:ie.slice(0,200))==null?void 0:W.map(se=>({label:se,value:se})))}catch(K){console.error(K)}},F=W=>{e.unref(_).rule=W,e.unref(_).fieldValue=e.unref(_).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(W)&&k()},M=W=>{e.unref(_).dataType=W,e.unref(_).fieldValue="",e.unref(_).modelKey="",e.unref(_).prop=""},U=e.ref(),G=W=>{U.value=W,e.unref(_).fieldValue=(W==null?void 0:W.join(","))||""},Y=W=>{const{keyPath:K}=W;e.unref(_).rule=K[0],e.unref(_).dataType=K[1],e.unref(_).dateFormat=K[2],e.unref(_).fieldValue="",e.unref(_).modelKey="",e.unref(_).prop=""};e.onMounted(async()=>{var se,de,Te,Ze,it,Xt,z,H,q,Q;if(_.value.dataType=((se=t.data)==null?void 0:se.dataType)||"",_.value.componentId=((de=t.data)==null?void 0:de.componentId)||"",_.value.keyValue=(Te=t.data)==null?void 0:Te.keyValue,_.value.modelKey=(Ze=t.data)==null?void 0:Ze.modelKey,_.value.prop=(it=t.data)==null?void 0:it.prop,e.unref(_).fieldType==="DATE"){const{activeKey:le,dateCalcTypes:re=[]}=t.data||{};if(e.unref(_).dateFormat=(Xt=t.data)==null?void 0:Xt.dateFormat,e.unref(_).activeKey=le,e.unref(_).calcWays=((z=t.data)==null?void 0:z.calcWays)||[],e.unref(_).dateCalcTypes=re,e.unref(_).useCurrentTime&&e.unref(_).dataType!=="component"&&(c.value=!0),le===5){const ee=e.unref(_).calcWays[0];if(ee){const ue=ee.split("-");e.unref(f).expression=ue[0],e.unref(f).around=ue[1]}e.unref(f).unit=re[0]||"YEAR"}else{e.unref(_).radioValue=((H=t.data)==null?void 0:H.radioValue)||"";const ee=e.unref(h).find(ue=>{var Ce;return ue.key===((Ce=t.data)==null?void 0:Ce.activeKey)});ee&&ge(ee,t.data)}}else U.value=((Q=(q=t.data)==null?void 0:q.fieldValue)==null?void 0:Q.split(","))||[];const{fieldType:W,fieldName:K,rule:te}=_.value;W!=="DATE"&&K&&te&&["IN","NOT_IN"].includes(te)&&k();const{source:ie}=e.unref(n);ie==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(le=>{le.data.success&&(console.log(le.data),A.value=le.data.data.column.map(re=>({...re,genericType:re.columnCategory==="0"?"TEXT":re.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:le.data.data.id,name:re.columnName,label:re.columnName})))}).catch(le=>{console.error(le)})});const X=W=>{if(e.unref(_).activeKey===W){e.unref(h)[W].radioValue=e.unref(_).radioValue,e.unref(h)[e.unref(_).activeKey]&&(e.unref(h)[e.unref(_).activeKey].radioValue=e.unref(_).radioValue,e.unref(_).radioValue==="1"?e.unref(h)[W].beforeNum=e.unref(_).calcWays[0]:e.unref(_).radioValue==="2"&&(e.unref(h)[W].afterNum=e.unref(_).calcWays[0]));return}e.unref(h).forEach(K=>{K.beforeNum=0,K.afterNum=0,K.radioValue="1",K.value=""})},J=(W,K)=>{C.value=!0;const te=W.target.value,ie=K.type,se=e.unref(_).dateFormat,de=Math.abs(K.beforeNum),Te=K.afterNum;K.value=at(te,ie,se,de,Te)},oe=W=>{const K=e.unref(_).activeKey;if(W!==K)return;let te="";K===0?te="years":K===1?te="quarters":K===2?te="months":K===3?te="weeks":K===4&&(te="days");const ie=e.unref(_).dateFormat,se=e.unref(_).radioValue;let de=0,Te=0;return se==="1"?de=Math.abs(e.unref(_).calcWays[0]):se==="2"&&(Te=e.unref(_).calcWays[0]),at(se,te,ie,de,Te)},ae=(W,K,te,ie)=>{if(C.value=!0,K.radioValue===ie){const se=W.target.value;te==="+"?K.value=me().add(se,K.type).format(e.unref(_).dateFormat):K.value=me().subtract(se,K.type).format(e.unref(_).dateFormat)}},ye=(W,K)=>{e.unref(_).calcWays||(e.unref(_).calcWays=[]),e.unref(_).activeKey=K,e.unref(_).radioValue=W.radioValue,W.radioValue==="1"?e.unref(_).calcWays[0]="-"+W.beforeNum:W.radioValue==="2"?e.unref(_).calcWays[0]=W.afterNum:W.radioValue==="3"?K===4?e.unref(_).calcWays[0]="0":e.unref(_).calcWays[0]="BEGIN":W.radioValue==="4"&&(e.unref(_).calcWays[0]="END"),K===0?e.unref(_).dateCalcTypes=["YEAR"]:K===1?e.unref(_).dateCalcTypes=["QUARTER"]:K===2?e.unref(_).dateCalcTypes=["MONTH"]:K===3?e.unref(_).dateCalcTypes=["WEEK"]:K===4&&(e.unref(_).dateCalcTypes=["DAY"]),D.value=!1},ce=()=>{e.unref(_).activeKey=5,e.unref(_).dateCalcTypes=[e.unref(f).unit],e.unref(_).calcWays[0]=`${e.unref(f).expression}-${e.unref(f).around}`,D.value=!1};function ge(W,K){const{radioValue:te="",calcWays:ie=[]}=K;W.radioValue=te,ie!=null&&ie.length&&(te==="1"?W.beforeNum=Math.abs(ie[0]):te==="2"&&(W.afterNum=ie[0]))}function at(W,K,te,ie,se){if(W==="1")return me().subtract(ie,K).format(te);if(W==="2")return me().add(se,K).format(te);if(W==="3"){if(K==="years")return me().startOf("year").format(te);if(K==="quarters")return me().startOf("quarter").format(te);if(K==="months")return me().startOf("month").format(te);if(K==="days")return me().format(te)}else if(W==="4"){if(K==="years")return me().endOf("year").format(te);if(K==="quarters")return me().endOf("quarter").format(te);if(K==="months")return me().endOf("month").format(te)}return""}const Wt=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Nt=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(_).rule));return{fieldOptions:T,ruleOptions:P,onFieldChange:O,condition:_,valueOptions:L,onRuleChange:F,onDataTypeChange:M,onFieldValueSelectChange:G,fieldValues:U,onDelete:x,isDateType:v,formatList:b,tabDateList:h,compareList:y,menuRule:N,dateBtnLabel:$,downIconStyle:E,popoverVisible:D,dateRadioStyle:g,showTime:C,controlList:d,keyNameOptions:p,dataTypeList:w,customTabData:f,isUseCurrentTime:c,currentTime:i,isShowCustomDataType:Nt,handleMenuClick:Y,changeTabInitDate:X,changeRadioValue:J,getFieldValue:oe,blurCompare:ae,okDatePickConfig:ye,onChangeComponent:B,filterOption:Wt,okCustomConfig:ce,clickConditionMenu:({key:W})=>{V(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:A}}}),Uy="",zy="",up={class:"condition"},fp=["title"],mp={class:"rule"},hp={class:"data-type"},bp={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},yp={class:"popover-content-wrap"},gp={key:0,class:"use-current-time"},Cp={class:"tabFilterRadio"},wp={key:0},kp={key:1},xp={style:{"margin-left":"10px"}},_p={style:{"margin-left":"10px"}},Sp={style:{position:"absolute",bottom:"10px"}},Tp={style:{display:"flex"}},Np={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function Ap(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),d=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),m=e.resolveComponent("a-button"),C=e.resolveComponent("a-dropdown"),g=e.resolveComponent("a-date-picker"),b=e.resolveComponent("a-input"),f=e.resolveComponent("a-checkbox"),h=e.resolveComponent("a-input-number"),y=e.resolveComponent("a-radio"),N=e.resolveComponent("a-radio-group"),w=e.resolveComponent("a-tab-pane"),_=e.resolveComponent("a-tabs"),S=e.resolveComponent("appstore-add-outlined"),A=e.resolveComponent("a-popover"),D=e.resolveComponent("menu-outlined"),v=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",up,[e.createVNode(c,{class:"field-name",value:t.condition.fieldName,onChange:t.onFieldChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fieldOptions,(T,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:T.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.label},e.toDisplayString(T.label),9,fp)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",mp,[t.isDateType?(e.openBlock(),e.createBlock(C,{key:0,class:"dropdown",trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.handleMenuClick},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.ruleOptions,T=>(e.openBlock(),e.createBlock(d,{key:T.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value?"color: #1890FF;":"")},e.toDisplayString(T.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,R=>{var I;return e.openBlock(),e.createBlock(d,{key:R.value,disabled:R.value==="component"&&!((I=t.controlList)!=null&&I.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value&&t.condition.dataType===R.value?"color: #1890FF;":"")},e.toDisplayString(R.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,V=>(e.openBlock(),e.createBlock(i,{key:V.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value&&t.condition.dataType===R.value&&t.condition.dateFormat===V.value?"color: #1890FF;":"")},e.toDisplayString(V.label),5)]),_:2},1024))),128))]),_:2},1032,["disabled"])}),128))]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dateBtnLabel)+" ",1),e.createVNode(u,{style:e.normalizeStyle(t.downIconStyle)},null,8,["style"])]),_:1})]),_:1})):(e.openBlock(),e.createBlock(c,{key:1,style:{width:"100%"},value:t.condition.rule,options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]))]),e.withDirectives(e.createElementVNode("div",hp,[e.createVNode(c,{style:{width:"100%"},value:t.condition.dataType,onChange:t.onDataTypeChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataTypeList,(T,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])],512),[[e.vShow,(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType]]),t.isDateType?(e.openBlock(),e.createElementBlock("div",bp,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(g,{key:0,disabled:"",style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.currentTime,format:t.condition.dateFormat},null,8,["value","format"])):(e.openBlock(),e.createBlock(g,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=T=>t.condition.fieldValue=T),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(c,{key:1,"show-search":"",style:e.normalizeStyle({width:t.condition.fieldValue==="PARENT"?"":"calc(100% - 35px)",marginRight:"10px"}),value:t.condition.fieldValue,"onUpdate:value":o[1]||(o[1]=T=>t.condition.fieldValue=T),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["style","value","filter-option","options","onChange"])):e.createCommentVNode("",!0),t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(b,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[2]||(o[2]=T=>t.condition.modelKey=T),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=T=>t.condition.prop=T),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(A,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=T=>t.popoverVisible=T),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",yp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",gp,[e.createVNode(f,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=T=>t.isUseCurrentTime=T)},{default:e.withCtx(()=>[e.createTextVNode("使用当前时间")]),_:1},8,["checked"])])):e.createCommentVNode("",!0),e.createVNode(_,{defaultActiveKey:t.condition.activeKey,onChange:t.changeTabInitDate},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabDateList,(T,R)=>(e.openBlock(),e.createBlock(w,{key:R,tab:T.label},{default:e.withCtx(()=>[e.createElementVNode("div",Cp,[e.createVNode(N,{value:T.radioValue,"onUpdate:value":I=>T.radioValue=I,onChange:I=>t.changeRadioValue(I,T)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",wp,"相对当前时间:"+e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("div",kp,"相对当前时间:"+e.toDisplayString(t.getFieldValue(R)),1)),e.createVNode(y,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(h,{value:T.beforeNum,"onUpdate:value":I=>T.beforeNum=I,min:0,onBlur:I=>t.blurCompare(I,T,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",xp,e.toDisplayString(T.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(y,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(h,{value:T.afterNum,"onUpdate:value":I=>T.afterNum=I,min:0,onBlur:I=>t.blurCompare(I,T,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",_p,e.toDisplayString(T.afterLabel),1)]),_:2},1032,["style"]),T.beforeText?(e.openBlock(),e.createBlock(y,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),T.afterText?(e.openBlock(),e.createBlock(y,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",Sp,[e.createVNode(m,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=I=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{onClick:I=>t.okDatePickConfig(T,R)},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:2},1032,["onClick"])])])]),_:2},1032,["tab"]))),128)),(e.openBlock(),e.createBlock(w,{tab:"自定义",key:5},{default:e.withCtx(()=>[e.createElementVNode("div",Tp,[e.createVNode(c,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=T=>t.customTabData.expression=T),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(c,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=T=>t.customTabData.unit=T),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(s,{value:"QUARTER"},{default:e.withCtx(()=>[e.createTextVNode("季度")]),_:1}),e.createVNode(s,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(s,{value:"WEEK"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(s,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value"]),e.createVNode(c,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=T=>t.customTabData.around=T)},{default:e.withCtx(()=>[e.createVNode(s,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(s,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value"])]),e.createElementVNode("div",Np,[e.createVNode(m,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=T=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{onClick:t.okCustomConfig},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])])]),_:1}))]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[10]||(o[10]=T=>{t.popoverVisible=!0})},[e.createVNode(S)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(c,{key:1,class:"field-value",value:t.fieldValues,mode:"multiple",options:t.valueOptions,onChange:t.onFieldValueSelectChange},null,8,["value","options","onChange"])):(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType&&t.condition.dataType==="component"?(e.openBlock(),e.createBlock(c,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=T=>t.condition.fieldValue=T),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])):(e.openBlock(),e.createBlock(b,{key:3,class:"field-value",value:t.condition.fieldValue,"onUpdate:value":o[13]||(o[13]=T=>t.condition.fieldValue=T)},null,8,["value"])),!t.isDateType&&t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(b,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[14]||(o[14]=T=>t.condition.modelKey=T),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=T=>t.condition.prop=T),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(C,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(i,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(i,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(D,{class:"more-icon"})]),_:1}),e.createVNode(v,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Ep=ne(pp,[["render",Ap],["__scopeId","data-v-29a39def"]]),Op=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:Ep}}),Gy="",Bp={key:0,class:"condition-list"},Vp={key:0,class:"condition-container"},Lp={key:0,class:"condition-text"},Fp={key:1,class:"condition-text"},$p={class:"conditions"};function Ip(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),c=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Bp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",Vp,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Lp,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Fp,"且")):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+"-":""}${d}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(c,{class:"condition",key:i.keyValue||`${t.level}-${d}`,data:i,level:t.level,index:d,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const Dp=ne(Op,[["render",Ip],["__scopeId","data-v-553c1496"]]),vp=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=Z.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),Hy="",ir=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),Mp={class:"truncations"},Pp={class:"rule"},jp={class:"field-value"},Rp={class:"field-value"},Up=ir(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),zp=ir(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),Gp=["onClick"];function Hp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",Mp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Pp,[e.createVNode(s,{style:{width:"100%"},value:d.rule,"onUpdate:value":u=>d.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",jp,[e.createTextVNode(" N= "),e.createVNode(c,{value:d.num,"onUpdate:value":u=>d.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",Rp,[Up,e.createVNode(i,{value:d.name,"onUpdate:value":u=>d.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),zp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(d)},"清空",8,Gp)]))),128))])}const Wp=ne(vp,[["render",Hp],["__scopeId","data-v-f543c690"]]),Yp=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:Dp,TruncationList:Wp,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 O;return`添加过滤条件-${((O=t.item)==null?void 0:O.label)||""}`},l=e.inject(be),r=e.inject(Ae),s=e.inject(ze),c=e.computed(()=>{var O;return(O=e.unref(l))==null?void 0:O.dataSourceId}),i=e.inject(Ie),d=e.inject(So),p=e.ref([]),u=e.ref([]),m=e.ref(!1),C=e.inject(Qt),g=O=>{var B;for(const P of O)(B=P.conditions)!=null&&B.length?g(P.conditions):P.keyValue=he()};e.watch(m,O=>{var B,P,$,E;if(O){if(Array.isArray((B=t.item)==null?void 0:B.conditions)){const L=Z.cloneDeep(((P=t.item)==null?void 0:P.conditions)||[]);g(L),p.value=L}Array.isArray(($=t.item)==null?void 0:$.truncations)?u.value=Z.cloneDeep((E=t.item)==null?void 0:E.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!O)},{flush:"post"});let b=!1;const f=O=>{var B;b=!0,e.unref(p)==null||((B=e.unref(p))==null?void 0:B.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==O?p.value=[{join:O,conditions:[e.unref(p)[0],{keyValue:he()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===O&&p.value[0].conditions.push({keyValue:he()}))};e.provide(_o,{updateCondition(O,B,P){var L;b=!0;let $=e.unref(p);const E=P.split("-");if(E!=null&&E.length)for(const k of E)if($[k])$=(L=$[k])==null?void 0:L.conditions;else break;Array.isArray($)&&$[B]&&($[B]=O)},deleteCondition(O,B){var E,L,k;b=!0;let P=e.unref(p);const $=B.split("-");if($!=null&&$.length){for(const F of $)if(P[F])P=(E=P[F])==null?void 0:E.conditions;else break;if(Array.isArray(P)&&P[O])if(P.splice(O,1),P.length===1){if($.length>0){const F=$.length-1,M=$[F],U=$.slice(0,F);let G=e.unref(p),Y="";for(const X of U)if(G[X])Y=(L=G[X])==null?void 0:L.join,G=(k=G[X])==null?void 0:k.conditions;else break;if(Y===P[0].join){if(Array.isArray(P[0].conditions)){const X=Z.cloneDeep(P[0].conditions);G.splice(+M,1),G.splice(+M,0,...X)}}else G[M]=P[0]}}else P.length===0&&(p.value=[])}},addCondition(O,B,P){var k,F;b=!0;let $=e.unref(p),E="";const L=O.split("-");if(L!=null&&L.length){for(const M of L)if($[M])E=(k=$[M])==null?void 0:k.join,$=(F=$[M])==null?void 0:F.conditions;else break;if(E===P)$.splice(B+1,0,{keyValue:he()});else{const M=Z.cloneDeep($[B]);$[B]={join:P,conditions:[M,{keyValue:he()}]}}}}});const h=O=>{b=!0,u.value=O},y=e.computed(()=>{var B;const O=[];return(B=e.unref(s))==null||B.forEach(P=>{const{keyName:$="",id:E="",type:L}=P;L==="ecanRangePicker"?O.push({value:`${E}-startTime`,label:`${$||E}-开始时间值`,keyName:`${$||E}-startTime`},{value:`${E}-endTime`,label:`${$||E}-结束时间值`,keyName:`${$||E}-endTime`}):O.push({value:E,label:`${$||E}`,keyName:`${$||E}`})}),O}),N=()=>{var k,F,M;const O=ft(((k=e.unref(l))==null?void 0:k.controlList)||[]),B=((F=e.unref(l)[t.type])==null?void 0:F.slice())||[],P=ft(Z.cloneDeep(B[t.index].conditions));B[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((M=e.unref(u))!=null&&M.length)&&(B[t.index].truncations=e.unref(u));const $=ft(e.unref(p));for(const U of $)if(U.dataType==="component"&&U.fieldValue){const G=e.unref(y).find(Y=>Y.value===U.fieldValue);G&&(U.fieldValue=G.keyName)}const E=P.filter(U=>!$.find(G=>G.componentId===U.componentId)).filter(U=>!O.find(G=>G.id===U.componentId)),L=$.filter(U=>!P.find(G=>G.componentId===U.componentId));w(E,L),r({[t.type]:B,sqlConditions:Ql({...e.unref(l),[t.type]:B},e.unref(s))})};function w(O,B){var $;const P=O.map(E=>({...E,delete:!0})).concat(B.map(E=>({...E,add:!0})));for(const E of P){const L=e.unref(s).find(k=>k.id===E.componentId);if(L){const{type:k,id:F,events:M=[]}=L,U=Fo(k);if(E.add)M.find(G=>{var Y;return G.on===U&&G.target===((Y=e.unref(i))==null?void 0:Y.id)&&G.emit==="refreshData"})||d({id:F,events:[...M,{on:U,target:($=e.unref(i))==null?void 0:$.id,emit:"refreshData"}].reverse()});else if(E.delete){const G=M.findIndex(Y=>{var X;return Y.on===U&&Y.target===((X=e.unref(i))==null?void 0:X.id)&&Y.emit==="refreshData"});G!==-1&&(M.splice(G,1),d({id:F,events:M}))}}}}const _=()=>{m.value=!0},S=()=>{p.value=[],m.value=!1},A=()=>{b&&N(),b=!1,S()},D=()=>{S()},v=e.inject(Be),T=e.unref(e.inject(Ve)),R=(x=window==null?void 0:window.config)==null?void 0:x.pageId,I=e.ref([]);e.provide(ya,I);const V=async O=>{var B;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:P,indexCode:$}=O,E=await v.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:R,dataSourceId:e.unref(c),indexGuid:P,indexCode:$},{headers:{Authentication:T,operateContext:"ygt"}}),{success:L,data:k=[]}=E.data;L&&((B=k==null?void 0:k.dataViewColumns)!=null&&B.length)&&(I.value=k.dataViewColumns.map(F=>({...F,label:F.title||F.label})))}catch(P){console.error(P)}};return e.watch(()=>t.item,O=>{O&&m.value&&e.unref(C)!=="EDV_DATA_SET"&&V(O)}),o({showModal:_}),{visible:m,onOk:A,onCancel:D,handleTitle:a,conditionList:p,truncationList:u,addCondition:f,onUpdatetruncation:h,activeKey:n,source:C}}}),Wy="",qp={class:"header"},Kp={class:"header"};function Xp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),d=e.resolveComponent("truncation-list"),p=e.resolveComponent("a-tabs"),u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{title:t.handleTitle(),visible:t.visible,"destroy-on-close":"",width:"55%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[["classificationList","rowHeaderList","dimensionList"].includes(t.type)?(e.openBlock(),e.createBlock(p,{key:0,activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=m=>t.activeKey=m)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",qp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=m=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=m=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=m=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(c,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])]),_:1}),e.createVNode(i,{key:"2",tab:"截断配置"},{default:e.withCtx(()=>[e.createVNode(d,{list:t.truncationList,onUpdate:t.onUpdatetruncation},null,8,["list","onUpdate"])]),_:1})]),_:1},8,["activeKey"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Kp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[4]||(o[4]=m=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=m=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=m=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(c,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const Qp=ne(Yp,[["render",Xp],["__scopeId","data-v-38f115c6"]]),Jp=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(be),l=e.inject(Ae),r=e.ref(),s=p=>{const{showLabel:u="",label:m=""}=p;r.value=u||m||"",n.value=!0},c=()=>{n.value=!1},i=()=>{var u;const p=((u=e.unref(a)[t.type])==null?void 0:u.slice())||[];p[t.index].showLabel=r.value,l({[t.type]:p}),c()},d=()=>{c()};return o({showModal:s}),{visible:n,onOk:i,onCancel:d,fieldName:r}}}),Yy="",Zp=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),eu={class:"config-name"},tu=Zp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function ou(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{title:"配置展示名称",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",eu,[tu,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 nu=ne(Jp,[["render",ou],["__scopeId","data-v-de6a1755"]]),au=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(be),l=e.inject(Ae),r=e.inject(ze),s=e.inject(Ie),c=e.inject(So),i=e.ref(),d=e.computed(()=>{var h;return(h=e.unref(r))==null?void 0:h.filter(y=>y.keyName!=="")});let p=[];const u=h=>{const{sortCpnts:y=[]}=h;p=Z.cloneDeep(y),i.value=Z.cloneDeep(y),n.value=!0},m=()=>{n.value=!1},C=()=>{var _,S;const h=ft(((_=e.unref(a))==null?void 0:_.controlList)||[]),y=p.filter(A=>!e.unref(i).includes(A)).filter(A=>!h.find(D=>D.id===A)),N=e.unref(i).filter(A=>!p.includes(A)).filter(A=>!h.find(D=>D.id===A)),w=y.map(A=>({componentId:A,delete:!0})).concat(N.map(A=>({componentId:A,add:!0})));for(const A of w){const D=e.unref(r).find(v=>v.id===A.componentId);if(D){const{type:v,id:T,events:R=[]}=D,I=Fo(v);if(A.add)R.find(V=>{var x;return V.on===I&&V.target===((x=e.unref(s))==null?void 0:x.id)&&V.emit==="refreshData"})||c({id:T,events:[...R,{on:I,target:(S=e.unref(s))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(A.delete){const V=R.findIndex(x=>{var O;return x.on===I&&x.target===((O=e.unref(s))==null?void 0:O.id)&&x.emit==="refreshData"});V!==-1&&(R.splice(V,1),c({id:T,events:R}))}}}},g=()=>{var y;C();const h=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];h[t.index].sortCpnts=i.value,l({[t.type]:h}),m()},b=()=>{m()},f=(h,y)=>{var N;return(N=y==null?void 0:y.keyName)==null?void 0:N.toLowerCase().includes(h==null?void 0:h.toLowerCase())};return o({showModal:u}),{visible:n,onOk:g,onCancel:b,idFilterOption:f,fieldName:i,usedComponentList:d}}}),qy="",lu=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),ru={class:"sort-by-cpnt"},iu=lu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function su(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{title:"配置关联组件排序",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",ru,[iu,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 cu=ne(au,[["render",su],["__scopeId","data-v-08af1ef8"]]),du=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(be),l=e.inject(Ae),r=e.ref(),s=e.ref([]),c=(m,C)=>{const{dimByCount:g=""}=m;r.value=g,s.value=C.filter(b=>["DIM","BUILT_IN_DIM","FIELD"].includes(b.scope)).map(b=>({label:b.title||b.name,value:b.typeGuid})),n.value=!0},i=()=>{n.value=!1},d=()=>{var C;const m=((C=e.unref(a)[t.type])==null?void 0:C.slice())||[];m[t.index].dimByCount=r.value,l({[t.type]:m}),i()},p=()=>{i()},u=(m,C)=>{var g;return(g=C==null?void 0:C.label)==null?void 0:g.toLowerCase().includes(m==null?void 0:m.toLowerCase())};return o({showModal:c}),{visible:n,onOk:d,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),Ky="",pu=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),uu={class:"dim-by-count"},fu=pu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function mu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{title:"配置关联维度",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",uu,[fu,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 hu=ne(du,[["render",mu],["__scopeId","data-v-aa1c298e"]]),Kn=(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:Kn(t,l.children)&&(n=Kn(t,l.children)))}return n},bu=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:Bs},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Be),a=e.unref(e.inject(Ve)),l=e.inject(be),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),c=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),d=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>e.unref(l).indexLibColumns||[]),u=e.computed(()=>{var R;let T=e.unref(r).concat(e.unref(c)).concat(e.unref(i)).concat(e.unref(d));return(R=e.unref(p))!=null&&R.length&&(T=e.unref(d).concat(e.unref(p))),t.mode==="edit"?(T==null?void 0:T.filter(I=>{var V;return I.id!==((V=t.item)==null?void 0:V.id)}))||[]:T||[]}),m=e.computed(()=>s.value.filter(T=>!T.randomKey)),C=e.computed({get:()=>t.value||"",set:T=>{o("update:value",T),o("change",T)}}),g=e.ref("1"),b=e.ref(""),f=T=>{const R=document.getElementById("calTextArea");let I=C.value;if(document.selection){const V=document.selection.createRange();V.text=T}else if(typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"){const V=R.selectionStart,x=R.selectionEnd;let O=V;I=I.substring(0,V)+T+I.substring(x,I.length),O+=T.length,R.selectionStart=R.selectionEnd=O}else I+=T;C.value=I},h=["+","-","*","/","(",")"],y=(T,R)=>{let I="";switch(R){case"name":{I="${"+T+"}";break}case"function":{I=T+"()";break}default:I=T}f(I)},N=[],w=e.ref([]),_=e.ref(!0),S=e.ref([]),A=T=>{var R;for(const I of T)(R=I==null?void 0:I.children)!=null&&R.length?A(I.children):N.push({key:I.key,title:I.title})},D=async()=>{try{const T=await n.get(`${Se}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:R,data:I=[]}=T.data;R&&(I!=null&&I.length)&&(A(I),S.value=I)}catch(T){console.error(T)}},v=T=>{w.value=T,_.value=!1};return e.watch(b,T=>{const R=N.map(I=>I.title.indexOf(T)>-1?Kn(I.key,S.value):null).filter((I,V,x)=>I&&x.indexOf(I)===V);w.value=R,b.value=T,_.value=!0}),e.onMounted(()=>{D()}),{fieldList:u,varList:m,myValue:C,calculMethods:h,funcDescsData:S,searchFuncValue:b,expandedKeys:w,autoExpandParent:_,activeKey:g,selectedElem:y,onExpand:v}}}),Xy="",Qy="",sr=t=>(e.pushScopeId("data-v-4217a6cb"),t=t(),e.popScopeId(),t),yu={class:"formula-calculation"},gu={class:"field-area"},Cu={style:{"text-align":"center",padding:"10px 0"}},wu=["onClick"],ku=["onClick"],xu={class:"cal_right_bottom"},_u={class:"cal_fu"},Su=["onClick"],Tu={class:"function-wrap"},Nu={class:"wrap-search"},Au={class:"tree-box"},Eu=sr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),Ou=sr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),Bu={key:0},Vu={style:{color:"#f50"}},Lu={key:1},Fu=["onClick"],$u={class:"cal_a"};function Iu(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),c=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),d=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),m=e.resolveComponent("a-tree"),C=e.resolveComponent("double-right-outlined"),g=e.resolveComponent("a-popover"),b=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",yu,[e.createVNode(b,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",gu,[e.createElementVNode("div",Cu,[e.createVNode(c,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=f=>t.activeKey=f),size:"small"},{default:e.withCtx(()=>[e.createVNode(s,{value:"1"},{default:e.withCtx(()=>[e.createTextVNode("数值字段("+e.toDisplayString(t.fieldList.length)+")",1)]),_:1}),e.createVNode(s,{value:"2"},{default:e.withCtx(()=>[e.createTextVNode("全局变量("+e.toDisplayString(t.varList.length)+")",1)]),_:1})]),_:1},8,["value"])]),t.activeKey==="1"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fieldList,(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:h,onClick:y=>t.selectedElem(f.label,"name")},e.toDisplayString(f.label),9,wu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:h,onClick:y=>t.selectedElem(f.variableName,"name")},e.toDisplayString(f.variableName),9,ku))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(d,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=f=>t.myValue=f),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",xu,[e.createElementVNode("ul",_u,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(f,h)=>(e.openBlock(),e.createElementBlock("li",{onClick:y=>t.selectedElem(f,"symbol"),key:h},e.toDisplayString(f),9,Su))),128))]),e.createVNode(g,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",Tu,[e.createElementVNode("div",Nu,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=f=>t.searchFuncValue=f),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",Au,[e.createVNode(m,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:f,leaf:h,describe:y,exp:N})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[f.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",Bu,[e.createTextVNode(e.toDisplayString(f.substr(0,f.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",Vu,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(f.substr(f.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",Lu,e.toDisplayString(f),1)),h?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:w=>t.selectedElem(f,"function")},"插入",8,Fu)):e.createCommentVNode("",!0)]),_:2},[h?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[Eu,e.createElementVNode("span",null,e.toDisplayString(y),1)]),e.createElementVNode("div",null,[Ou,e.createElementVNode("span",null,e.toDisplayString(N),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",$u,[e.createTextVNode(" 更多函数 "),e.createVNode(C,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const Du=ne(bu,[["render",Iu],["__scopeId","data-v-4217a6cb"]]),vu=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:Du,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:ic},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},mode:{type:String,default:"add"}},setup(t,{expose:o}){const n=e.inject(ze),a=e.inject(be),l=e.inject(Ae),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),c=e.computed(()=>{const V=["leftAxisList","rightAxisList","queryColumnList","indicators"];let x=[];for(const O of V)Object.prototype.hasOwnProperty.call(e.unref(a),O)&&(x=x.concat(e.unref(a)[O]));return x}),i={span:4},d={span:18},p={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},u={value:0,unit:"YEAR",around:"before"},m=e.ref({}),C=e.ref(),g=e.ref(!1),b=e.ref();e.watch(g,V=>{if(V)if(t.mode==="edit"){const{label:x,calcType:O,formula:B,builtInValueSource:P,builtInFormula:$,builtInCalcWay:E}=t.item;if(b.value={label:x,calcType:O,formula:B,builtInValueSource:P,builtInFormula:$,builtInCalcWay:E},$==="DATE_OFFSET"){const L=E.split("-");(L==null?void 0:L.length)===3&&(m.value={value:L[0],unit:L[1],around:L[2]})}}else t.mode==="add"&&(b.value=Z.cloneDeep(p),m.value=Z.cloneDeep(u));else b.value=Z.cloneDeep(p),m.value=Z.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!V)},{immediate:!0,deep:!0});let f=!1;const h=()=>{f=!0},y=V=>{const x=e.unref(r).find(O=>O.id===V);x&&(b.value.builtInCalcWay=x.keyName),f=!0},N=()=>{var P;const V=((P=e.unref(a)[t.type])==null?void 0:P.slice())||[],{label:x,builtInFormula:O}=e.unref(b)||{},B={};if(O==="DATE_OFFSET"&&(B.builtInCalcWay=`${e.unref(m).value}-${e.unref(m).unit}-${e.unref(m).around}`),t.mode==="add"){const $=he();V.push({...e.unref(b),...B,id:$,show:!0,name:x})}else t.mode==="edit"&&(V[t.index]={...V[t.index],...e.unref(b),...B,name:x});l({[t.type]:V})},w=()=>{g.value=!0},_=()=>{g.value=!1},S=async(V,x)=>{if(x==="")return Promise.reject(new Error("请输入指标名"));{const O=e.unref(c).find(B=>B.label===x);return O?O.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},A=e.computed(()=>{let V={label:[{required:!0,validator:S,trigger:"change"}]};return b.value.calcType==="BUILT_IN"&&(V={...V,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),V}),D=()=>{C.value.validate().then(()=>{f&&N(),f=!1,_()})},v=()=>{C.value.clearValidate(),_()},T=()=>{f=!0,e.unref(b).builtInCalcWay=""},R=e.computed(()=>{let V="";const x=e.unref(b).builtInCalcWay,O=e.unref(b).builtInValueSource;if(!O||!x)return V;switch(e.unref(b).builtInFormula){case"BUILT_IN_RANK":{x==="ASC"?V="【"+O+"】由小到大在所有值中的排名":V="【"+O+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{V=`所有【】的
65
65
  `,x==="ASC"?V=V+"【"+O+"】由小到大的组内的排名":V=V+"【"+O+"】由大到小的组内的排名";break}case"BUILT_IN_ALL_VALUE":{let B="";switch(x){case"SUM":{B="求和";break}case"AVG":{B="求平均值";break}case"MIN":{B="求最小值";break}case"MAX":{B="求最大值";break}}V="将所有【"+O+"】"+B;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let B="";switch(V=`所有【】的
66
- `,x){case"SUM":{B="求和";break}case"AVG":{B="求平均值";break}case"MIN":{B="求最小值";break}case"MAX":{B="求最大值";break}}V=V+"将所有【"+O+"】"+B;break}}return V}),I=(V,x)=>x.keyName.toLowerCase().indexOf(V.toLowerCase())>=0;return o({showModal:w}),{visible:g,onCancel:v,labelCol:i,wrapperCol:d,formState:b,builtInValueSourceList:s,onOK:D,onChange:h,formRules:A,accessLogic:R,formRef:C,onChangeBuiltInFormula:T,componentList:r,onChangeComponent:y,filterOption:I,offsetConfig:m}}}),Jy="",Zy="",Mu={key:0,class:"accesstip"},Pu={style:{display:"flex","align-items":"center"}};function ju(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),p=e.resolveComponent("formula-calculation"),u=e.resolveComponent("a-textarea"),m=e.resolveComponent("a-input-number"),C=e.resolveComponent("question-circle-outlined"),g=e.resolveComponent("a-tooltip"),b=e.resolveComponent("a-form"),f=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(f,{title:`${t.mode==="add"?"新增":"编辑"}计算指标`,visible:t.visible,width:"50%",bodyStyle:{height:"55vh",overflow:"auto",display:"flex",flexDirection:"column"},closable:!1,onOk:t.onOK,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createVNode(b,{model:t.formState,rules:t.formRules,ref:"formRef"},{default:e.withCtx(()=>[e.createVNode(c,{label:"指标名","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"label"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.formState.label,"onUpdate:value":o[0]||(o[0]=h=>t.formState.label=h),onChange:t.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.withDirectives(e.createVNode(c,{label:"计算方式","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.calcType,"onUpdate:value":o[1]||(o[1]=h=>t.formState.calcType=h),onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"FORMULA"},{default:e.withCtx(()=>[e.createTextVNode("公式")]),_:1}),e.createVNode(i,{value:"BUILT_IN"},{default:e.withCtx(()=>[e.createTextVNode("内置公式")]),_:1}),e.createVNode(i,{value:"COMPONENT"},{default:e.withCtx(()=>[e.createTextVNode("固定值")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),[[e.vShow,t.type!=="indexLibColumns"]]),t.formState.calcType==="FORMULA"?(e.openBlock(),e.createBlock(p,{key:0,value:t.formState.formula,"onUpdate:value":o[2]||(o[2]=h=>t.formState.formula=h),item:t.item,mode:t.mode,onChange:t.onChange},null,8,["value","item","mode","onChange"])):e.createCommentVNode("",!0),t.formState.calcType==="BUILT_IN"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(c,{label:"内置公式","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInFormula"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInFormula,"onUpdate:value":o[3]||(o[3]=h=>t.formState.builtInFormula=h),onChange:t.onChangeBuiltInFormula},{default:e.withCtx(()=>[e.createVNode(i,{value:"BUILT_IN_ALL_VALUE"},{default:e.withCtx(()=>[e.createTextVNode("所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_ALL_VALUE_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK"},{default:e.withCtx(()=>[e.createTextVNode("排名")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内排名")]),_:1}),e.createVNode(i,{value:"FIRST_ROW_RATE"},{default:e.withCtx(()=>[e.createTextVNode("首行占比")]),_:1}),e.createVNode(i,{value:"DATE_OFFSET"},{default:e.withCtx(()=>[e.createTextVNode("日期偏移")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.createVNode(c,{label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInValueSource,"onUpdate:value":o[4]||(o[4]=h=>t.formState.builtInValueSource=h),onChange:t.onChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.builtInValueSourceList,(h,y)=>(e.openBlock(),e.createBlock(i,{key:y,value:h.label,disabled:t.mode==="edit"&&t.item.label===h.name},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:0,label:"取数原则","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInCalcWay,"onUpdate:value":o[5]||(o[5]=h=>t.formState.builtInCalcWay=h),onChange:t.onChange},{default:e.withCtx(()=>[["BUILT_IN_ALL_VALUE","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula||"")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{value:"SUM"},{default:e.withCtx(()=>[e.createTextVNode("求和")]),_:1}),e.createVNode(i,{value:"AVG"},{default:e.withCtx(()=>[e.createTextVNode("求平均")]),_:1}),e.createVNode(i,{value:"MAX"},{default:e.withCtx(()=>[e.createTextVNode("求最大值")]),_:1}),e.createVNode(i,{value:"MIN"},{default:e.withCtx(()=>[e.createTextVNode("求最小值")]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})],64))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"])),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:1,label:"取数逻辑","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[["BUILT_IN_RANK_IN_GROUPO","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula)&&t.formState.builtInValueSource?(e.openBlock(),e.createElementBlock("div",Mu," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+e.toDisplayString(t.formState.builtInValueSource),1)):e.createCommentVNode("",!0),e.createVNode(u,{value:t.accessLogic,rows:6,disabled:""},null,8,["value"])]),_:1},8,["label-col","wrapper-col"]))],64)):e.createCommentVNode("",!0),t.formState.calcType==="COMPONENT"?(e.openBlock(),e.createBlock(c,{key:2,label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{"show-search":"",value:t.formState.builtInValueSource,"onUpdate:value":o[6]||(o[6]=h=>t.formState.builtInValueSource=h),"filter-option":t.filterOption,options:t.componentList,fieldNames:{value:"id",label:"keyName"},onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0),t.formState.builtInFormula==="DATE_OFFSET"?(e.openBlock(),e.createBlock(c,{key:3,label:"偏移设置","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createElementVNode("div",Pu,[e.createVNode(m,{value:t.offsetConfig.value,"onUpdate:value":o[7]||(o[7]=h=>t.offsetConfig.value=h),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},null,8,["value","onChange"]),e.createVNode(d,{value:t.offsetConfig.unit,"onUpdate:value":o[8]||(o[8]=h=>t.offsetConfig.unit=h),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(d,{value:t.offsetConfig.around,"onUpdate:value":o[9]||(o[9]=h=>t.offsetConfig.around=h),style:{width:"120px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(i,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(g,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:e.withCtx(()=>[e.createVNode(C,{class:"icon",style:{color:"#40a9ff","font-size":"18px",cursor:"pointer","margin-left":"10px"}})]),_:1})])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])]),_:1},8,["title","visible","onOk","onCancel"])}const Ru=ne(vu,[["render",ju],["__scopeId","data-v-88aef761"]]),Uu=e.defineComponent({name:"DataConfigCard",directives:{focus:rr},components:{CalculationModal:Ru,FilterModal:Qp,CustomGroupModal:ip,SettingOutlined:hc,DeleteOutlined:Xa,CopyOutlined:_s,InfoCircleOutlined:Ms,CustomSortModal:Wd,PlusOutlined:nc,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:Bt,ConfigName:nu,SortByCpnt:cu,DimByCount:hu},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(be),a=e.inject(Ae),l=e.inject(ze),r=["leftAxisList","rightAxisList","indicators"],s=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],c=["CURRENT","LAST_CYCLE","LAST_YEAR","PERIOD_ON_PERIOD","YEAR_ON_YEAR","DW"],i=e.inject(Qt),d=e.ref(),p=e.computed({get(){var z;return((z=e.unref(n))==null?void 0:z.compositeIndicator)||!1},set(z){a({compositeIndicator:z})}}),u=(z={})=>{var Q;const{type:H}=t;if(e.unref(i)==="SQL_VIEW")return!0;e.unref(i)==="EDV_DATA_SET"&&a({edvDataSetId:z.parentId});let q=!1;if(z.scope==="FIELD"&&(q=!0,z.genericType==="0"&&r.includes(H)&&(q=!1)),["IDX","BUILT_IN_IDX"].includes(z.scope)?r.includes(H)&&(q=!0):["DIM","BUILT_IN_DIM"].includes(z.scope)&&s.includes(H)&&(q=!0),H==="dimensionList"){const le=((Q=e.unref(n)[H])==null?void 0:Q.slice())||[];(le==null?void 0:le.length)===1&&(q=!1)}return q},m=e.computed(()=>{var z;return pe((z=e.unref(de))==null?void 0:z.type,["indexPanel","dataSelect"])&&t.type==="indicators"}),C=(z="{}")=>{var H,q;try{const Q=JSON.parse(z);if(!u(Q))return;const le=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!pe(e.unref(de).type,["list","circulate","scatter"])||e.unref(m))&&le.forEach(ue=>{ue.show=!1}),b(le,Q),Q.randomKey=he(),le.push(Q);const{type:re}=t,ee={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(Q.scope)){const ue=((q=e.unref(n))==null?void 0:q.variableList)||[];let Ce=sessionStorage.getItem("indicator-variates");if(Q.scope==="FIELD"&&!r.includes(re)&&(Ce="[]"),Ce){const we=JSON.parse(Ce);if(we!=null&&we.length)for(const _e of we)ue.unshift({..._e,dataType:"",id:null,variableValue:e.unref(i)==="EDV_DATA_SET"?_e.defaultValue:null,dateTypeValue:null,format:_e.valueFormat&&_e.valueFormat.toUpperCase()||null,variableName:_e.name,variableType:_e.valueType,label:Q.label,randomKey:Q.randomKey,keyValue:he(),disabled:e.unref(i)==="EDV_DATA_SET"})}ee.variableList=ue,ee.variableConditions=so(ue,l)}a({[t.type]:le,...ee}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(Q){console.error(Q)}},g=(z="{}")=>{var H;try{const{cardItem:q,type:Q,index:le}=JSON.parse(z);if(!u(q)||Q===t.type)return;const re=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];b(re,q),re.push(q);const ee=e.unref(n)[Q].slice()||[];ee.splice(le,1),a({[t.type]:re,[Q]:ee})}catch(q){console.error(q)}};function b(z,H){const q=[];if(z.forEach(Q=>{Q.label.includes(H.label)&&q.push(Q.label.split(H.label)[1])}),q.length>=1){for(let Q=1;Q<=q.length;Q++)if(!q.includes(Q+"")){H.label=H.label+Q;break}}}const f=(z,H)=>{var le,re;const q=(le=z.target)==null?void 0:le.checked,Q=((re=e.unref(n)[t.type])==null?void 0:re.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!pe(e.unref(de).type,["list","circulate"])||e.unref(m))&&Q.forEach(ee=>{ee.show=!1}),Q[H].show=q,a({[t.type]:Q})},h=z=>{var q;const H=((q=e.unref(n)[t.type])==null?void 0:q.slice())||[];H.splice(z,1),a({[t.type]:H})},y=()=>{sessionStorage.setItem("indicator-card-item","")},N=z=>{const H=sessionStorage.getItem("indicator-list-item"),q=sessionStorage.getItem("indicator-card-item");H?C(H):q&&g(q)},w=z=>{var ue,Ce;const{newIndex:H,oldIndex:q,from:Q,to:le}=z,re=Q.id,ee=le.id;if(H>=0&&q>=0){if(re===ee){const we=((ue=e.unref(n)[t.type])==null?void 0:ue.slice())||[],_e=we.splice(q,1)[0];_e&&(we.splice(H,0,_e),a({[t.type]:we}))}else if(t.type===ee){const we=((Ce=e.unref(n)[ee])==null?void 0:Ce.slice())||[];if(we!=null&&we.length){const _e=we.splice(we.length-1,1)[0];_e&&(we.splice(H,0,_e),a({[t.type]:we}))}}}},_=(z,H)=>{const q=z.oldIndex,Q=H[q];Q&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:Q,type:t.type,index:q}))},S=e.computed(()=>e.unref(n)[t.type]||[]),A=e.ref([]);let D=!1;e.watch(()=>e.unref(S).length,z=>{A.value=new Array(z).fill(!1)},{flush:"post",immediate:!0});const v=z=>{var q,Q,le;const H=((q=e.unref(n)[t.type])==null?void 0:q.slice())||[];if((Q=H[z])!=null&&Q.randomKey){const re=((le=e.unref(n))==null?void 0:le.variableList)||[];for(let ee=re.length-1;ee>=0;ee--)re[ee].randomKey===H[z].randomKey&&re.splice(ee,1);a({variableConditions:so(re,l),variableList:re})}H.splice(z,1),a({[t.type]:H})},T=z=>{A.value[z]=!0},R=()=>{D=!0},I=(z,H,q)=>{var Q,le,re,ee;if(A.value[H]=!1,D){const ue=(Q=z.target)==null?void 0:Q.value,Ce=((le=e.unref(n)[t.type])==null?void 0:le.slice())||[],we=Ce.filter(ke=>{var Ne;return(Ne=ke==null?void 0:ke.formula)==null?void 0:Ne.includes(q)}).map(ke=>ke.id),_e=Ce.filter(ke=>{var Ne;return(Ne=ke==null?void 0:ke.builtInValueSource)==null?void 0:Ne.includes(q)}).map(ke=>ke.id);if(we!=null&&we.length)for(const ke of we){const Ne=Ce.find(Ot=>Ot.id===ke);Ne.formula=Ne.formula.replaceAll(q,ue)}if(_e!=null&&_e.length)for(const ke of _e){const Ne=Ce.find(Ot=>Ot.id===ke);Ne.builtInValueSource=Ne.builtInValueSource.replaceAll(q,ue)}if(Ce[H].label=ue,(re=Ce[H])!=null&&re.randomKey){const ke=((ee=e.unref(n))==null?void 0:ee.variableList)||[],Ne=ke.filter(Ot=>Ot.randomKey===Ce[H].randomKey);Ne!=null&&Ne.length&&Ne.forEach(Ot=>{Ot.label=ue}),a({variableConditions:so(ke,l),variableList:ke})}a({[t.type]:Ce})}D=!1},V="DEFAULT",x=e.computed(()=>{const z=[],{scope:H}=e.unref(d)||{},q=e.unref(n)[t.type]||[];if(H==="DIM"&&!e.unref(d).typeGuid.includes("_code")){const ee=Z.cloneDeep(e.unref(d));delete ee.show,delete ee.truncations,delete ee.conditions,ee.hrpIndexComplexid+="_code",ee.id+="_code",ee.typeGuid+="_code",ee.label=ee.name+"_编码",ee.name=ee.typeGuid,ee.defaultCode=ee.typeGuid,z.push(ee)}const{leftAxisList:Q=[],rightAxisList:le=[],indicators:re=[]}=e.unref(n)||{};return[...q,...z,...Q,...le,...re]}),O=(z={},H,q="ASC")=>{var Ce;const{label:Q,name:le,id:re,defaultCode:ee}=z,ue=((Ce=e.unref(n)[t.type])==null?void 0:Ce.slice())||[];re===V?delete ue[H].sort:ue[H].sort={label:Q,columnName:le,type:"NORMAL",order:q,defaultCode:ee},a({[t.type]:ue})},B=(z={},H="ASC")=>{const Q={ASC:"升序",DESC:"降序"}[H],{sort:le}=z,{label:re,order:ee}=le||{};return re&&ee===H?`${Q}(${re})`:Q},P=e.ref(),$=e.ref(),E=e.ref(),L=e.ref(),k=(z={},H)=>{var q;P.value=z,$.value=H,(q=e.unref(E))==null||q.showModal(z)},F=z=>"排序"+(z!=null&&z.sort?"(已配置)":""),M=(z={},H)=>{var q;P.value=z,$.value=H,(q=e.unref(L))==null||q.showModal()},U=z=>"自定义分组"+((z==null?void 0:z.customGroup)!=null?"(已配置)":""),G=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],Y=[{name:"是",value:1},{name:"否",value:0}],X=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].aggregate=z,a({[t.type]:q})},J=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].distinct=z,a({[t.type]:q})},oe=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].dateFormat=z,a({[t.type]:q})},ae=(z="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[z]})`,ye=z=>`是否去重(${{0:"否",1:"是"}[z]||"否"})`,ce=(z={})=>{var H;return"过滤"+(z!=null&&z.conditions&&((H=z==null?void 0:z.conditions)==null?void 0:H.length)>0?"(已配置)":"")},ge=e.ref(),at=e.ref(),Wt=e.ref(),Nt=e.ref(),wo=(z={},H)=>{P.value=z,$.value=H,e.unref(ge).showModal()},Yt=(z={},H)=>{P.value=z,$.value=H,e.unref(at).showModal(z)},qt=(z={},H)=>{P.value=z,$.value=H,e.unref(Wt).showModal(z)},Re=(z={},H)=>{P.value=z,$.value=H,e.unref(Nt).showModal(z,e.unref(K))},Qe=e.ref(),ht=e.ref("add"),At=(z,H,q)=>{var Q;ht.value=z,z==="edit"&&(P.value=H,$.value=q),(Q=e.unref(Qe))==null||Q.showModal()},Je=e.inject(Be),lt=e.unref(e.inject(Ve)),Ue=e.ref([]),Et=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var z;pe(e.unref(de).type,["scatter","valueline"])&&((z=e.unref(n))!=null&&z.indicators)&&(Ue.value=e.unref(n).indicators.map(H=>({label:H.label,value:H.label})))}),e.watch(()=>n.value.classificationList,()=>{ko()});const rt=e.ref(""),ko=async()=>{const{source:z}=e.unref(n);if(z!=="EDV_DATA_SET"||!pe(e.unref(de).type,"select"))return;const{classificationList:H=[]}=e.unref(n),q=H.find(ee=>ee.show);if(q!=null&&q.parentId){if(e.unref(rt)===q.parentId)return;rt.value=q.parentId}else{e.unref(n).selectFieldOptions=[],Ue.value=[],rt.value="";return}const Q=await Je.get(`${Se}/dataset/`+q.parentId,{headers:{Authentication:lt,operateContext:"ygt"}}),{success:le,data:re=[]}=Q.data;if(le){const ee=re.column.map(ue=>({label:ue.columnName,value:ue.columnName}));e.unref(n).selectFieldOptions=ee,Ue.value=ee}},Ko=async()=>{const{source:z}=e.unref(n);if(!pe(e.unref(de).type,["scatter","valueline"]))try{if(z==="EDV_DATA_SET")await ko();else{const H=await Je.post(`${Se}/diagram/dimFields`,{},{headers:{Authentication:lt,operateContext:"ygt"}}),{success:q,data:Q=[]}=H.data;q&&(e.unref(n).selectFieldOptions=Q||[],Ue.value=Q)}}catch(H){console.error(H)}},Xo=(z,H)=>{const q=e.unref(n)[t.type]||{};q[H]=z,a({[t.type]:q})},Kt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],W=e.ref({}),K=e.ref([]),te=async(z,H)=>{var Q;const{name:q}=H;if(!Kt.includes(t.type)&&z&&Ye(H,"indexCode")){const le=await Je.post(`${Se}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:H.id,indexCode:H.indexCode,pageId:(Q=window==null?void 0:window.config)==null?void 0:Q.pageId},{headers:{Authentication:lt,operateContext:"ygt"}}),{success:re,data:ee}=le.data;re&&ee&&(K.value=(ee==null?void 0:ee.dataViewColumns)||[],W.value[q]={name:ee.name,code:ee.indexCode})}},ie=z=>{d.value=z},se=z=>{const H=document.createElement("input");document.body.appendChild(H),H.setAttribute("value",z),H.select(),document.execCommand("copy"),document.body.removeChild(H),j.message.success("复制成功")},de=e.inject(Ie),Te=e.computed(()=>t.type==="indicators"&&e.unref(de).type==="ecanTable"),Ze=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type)),it=e.computed(()=>{var z,H;return pe((z=e.unref(de))==null?void 0:z.type,["table"])&&((H=e.unref(n))==null?void 0:H.isIndexSet)}),Xt=e.computed(()=>!Kt.includes(t.type)&&!e.unref(m)&&(!e.unref(it)||t.type!=="indicators"));return e.onMounted(()=>{t.type==="formFields"&&(e.unref(de).type==="ecanDataSelect"?Ue.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Ko())}),{onCheckboxChange:f,onDropEnd:h,onDragItemEnd:y,onDragItemAdd:N,onDragItemSort:w,onDragItemStart:_,cardItemList:S,onDelete:v,onEdit:T,onCommitLabelChange:I,sortList:x,onSort:O,handleSortTitle:B,showCustomSortModal:k,customSortModalRef:E,currentItem:P,currentIndex:$,handleCustomSortTitle:F,handleCustomGroupTitle:U,customGroupModalRef:L,showCustomGroupModal:M,editLabelList:A,onLabelChange:R,aggregateList:G,distinctList:Y,onAggregateChange:X,onDistinctChange:J,onDateFormatChange:oe,handleAggregateTitle:ae,handleDistinctTitle:ye,onShowCalculationModal:At,handleFilterTitle:ce,filterModalRef:ge,configNameRef:at,sortByCpntRef:Wt,dimByCountRef:Nt,showFilterModal:wo,calculationModalRef:Qe,calculationModalMode:ht,formatList:o,fieldOptions:Ue,fieldData:Et,onFieldChange:Xo,onVisibleChange:te,onClickSetting:ie,copyDataViewName:se,dataViewMap:W,isShowConfigName:Te,showConfigNameModal:Yt,dimensionType:Kt,isShowSortByCpnt:Ze,showSortByCpntModal:qt,dataSelectIndicators:m,showDimByCountModal:Re,selectedComponent:de,lowerCaseIncludes:pe,isShowCalcBtn:Xt,isIndexSet:it,indexSetList:c,compositeIndicator:p}}}),eg="",tg="",kt=t=>(e.pushScopeId("data-v-cc8c5d44"),t=t(),e.popScopeId(),t),zu={class:"title"},Gu={class:"title-text"},Hu={class:"field-wrap"},Wu={class:"field-item"},Yu=kt(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),qu={class:"field-item"},Ku=kt(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),Xu={key:0,class:"field-item"},Qu=kt(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),Ju={class:"title"},Zu={class:"title-text"},ef=kt(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),tf=kt(()=>e.createElementVNode("span",null,"添加计算指标",-1)),of={class:"card-item-wrap"},nf={class:"card-item-inner"},af=["onClick"],lf=["onClick"],rf=["onClick"],sf={style:{display:"flex","align-items":"center"}},cf=["title"],df=kt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),pf={style:{display:"flex","align-items":"center"}},uf=["title"],ff=kt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function mf(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-checkbox"),i=e.resolveComponent("a-card"),d=e.resolveComponent("info-circle-outlined"),p=e.resolveComponent("a-popover"),u=e.resolveComponent("plus-outlined"),m=e.resolveComponent("a-input"),C=e.resolveComponent("setting-outlined"),g=e.resolveComponent("a-menu-item"),b=e.resolveComponent("a-menu-divider"),f=e.resolveComponent("a-sub-menu"),h=e.resolveComponent("copy-outlined"),y=e.resolveComponent("a-menu"),N=e.resolveComponent("a-dropdown"),w=e.resolveComponent("delete-outlined"),_=e.resolveComponent("draggable"),S=e.resolveComponent("custom-sort-modal"),A=e.resolveComponent("custom-group-modal"),D=e.resolveComponent("filter-modal"),v=e.resolveComponent("config-name"),T=e.resolveComponent("sort-by-cpnt"),R=e.resolveComponent("dim-by-count"),I=e.resolveComponent("calculation-modal"),V=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",zu,[e.createElementVNode("div",Gu,e.toDisplayString(t.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Hu,[e.createElementVNode("div",Wu,[Yu,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",qu,[Ku,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",Xu,[Qu,e.createVNode(c,{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",Ju,[e.createElementVNode("div",Zu,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),t.type==="dimensionList"?(e.openBlock(),e.createBlock(p,{key:0,title:"提示",placement:"topLeft"},{content:e.withCtx(()=>[ef]),default:e.withCtx(()=>[e.createVNode(d,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):e.createCommentVNode("",!0)]),t.isShowCalcBtn?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-calculation",onClick:o[3]||(o[3]=e.withModifiers(x=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),tf])):t.isIndexSet?(e.openBlock(),e.createBlock(c,{key:1,checked:t.compositeIndicator,"onUpdate:checked":o[4]||(o[4]=x=>t.compositeIndicator=x)},{default:e.withCtx(()=>[e.createTextVNode("复合指标")]),_:1},8,["checked"])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.type+"-list"),style:{height:"100%",padding:"10px"}},[e.createVNode(_,{modelValue:t.cardItemList,"onUpdate:modelValue":o[5]||(o[5]=x=>t.cardItemList=x),class:"chart-column",id:t.type,disabled:t.type==="indexLibColumns",group:"cardItem","item-key":"index",onAdd:t.onDragItemAdd,onSort:t.onDragItemSort,onEnd:t.onDragItemEnd,onStart:o[6]||(o[6]=x=>t.onDragItemStart(x,t.cardItemList))},{item:e.withCtx(({element:x,index:O})=>[e.createElementVNode("div",of,[e.createVNode(c,{class:"card-item",checked:x.show,onChange:B=>t.onCheckboxChange(B,O)},{default:e.withCtx(()=>[e.createElementVNode("div",nf,[!t.editLabelList[O]&&x.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(B=>t.onEdit(O),["prevent","stop"])},e.toDisplayString(x.label),9,af)):e.createCommentVNode("",!0),!t.editLabelList[O]&&!x.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(B=>t.onEdit(O),["prevent","stop"])}," 请点击填入名字 ",8,lf)):e.createCommentVNode("",!0),t.editLabelList[O]?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,"default-value":x.label,size:"small",onBlur:B=>t.onCommitLabelChange(B,O,x.label),onPressEnter:B=>t.onCommitLabelChange(B,O,x.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[V]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(x.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(B=>t.onShowCalculationModal("edit",x,O),["prevent","stop"])}," fx ",8,rf)):e.createCommentVNode("",!0),t.type!=="indexLibColumns"?(e.openBlock(),e.createBlock(N,{key:4,trigger:["click"],onVisibleChange:B=>t.onVisibleChange(B,x)},{overlay:e.withCtx(()=>[e.createVNode(y,null,{default:e.withCtx(()=>[t.dimensionType.includes(t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(g,{onClick:B=>t.showCustomSortModal(x,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(x)),1)]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(g,{onClick:B=>t.showCustomGroupModal(x,O)},{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(f,{title:"日期格式化"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,B=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onDateFormatChange(B.value,O)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(x.dateFormat===B.value||!x.dateFormat&&B.value==="YYYY-MM-DD"?"color: #1890FF;":"")},e.toDisplayString(B.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(b)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(g,{onClick:B=>t.showFilterModal(x,O)},{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(f,{title:t.handleAggregateTitle(x.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,B=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onAggregateChange(B.value,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(b)],64)),t.isShowConfigName?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(g,{onClick:B=>t.showConfigNameModal(x,O)},{default:e.withCtx(()=>[e.createTextVNode(" 修改展示名称 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),t.isShowSortByCpnt?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(g,{onClick:B=>t.showSortByCpntModal(x,O)},{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(g,{onClick:B=>t.showDimByCountModal(x,O)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(f,{title:t.handleDistinctTitle(x.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,B=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onDistinctChange(B.value,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.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(g,{key:0,onClick:B=>t.copyDataViewName(t.dataViewMap[x.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",sf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[x.name].name},[df,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[x.name].name),1)],8,cf),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[x.name]?(e.openBlock(),e.createBlock(g,{key:1,onClick:B=>t.copyDataViewName(t.dataViewMap[x.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",pf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[x.name].code},[ff,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[x.name].code),1)],8,uf),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)],64))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(C,{class:"setting-icon",onClick:B=>t.onClickSetting(x)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"])):e.createCommentVNode("",!0),t.type!=="indexLibColumns"||x.calcType==="FORMULA"?(e.openBlock(),e.createBlock(w,{key:5,class:"delete-icon",onClick:e.withModifiers(B=>t.onDelete(O),["prevent"])},null,8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","disabled","onAdd","onSort","onEnd"])],2),e.createVNode(S,{item:t.currentItem,index:t.currentIndex,type:t.type,sortList:t.sortList,ref:"customSortModalRef"},null,8,["item","index","type","sortList"]),e.createVNode(A,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),e.createVNode(D,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"filterModalRef"},null,8,["item","index","type"]),e.createVNode(v,{index:t.currentIndex,type:t.type,ref:"configNameRef"},null,8,["index","type"]),e.createVNode(T,{index:t.currentIndex,type:t.type,ref:"sortByCpntRef"},null,8,["index","type"]),e.createVNode(R,{index:t.currentIndex,type:t.type,ref:"dimByCountRef"},null,8,["index","type"]),e.createVNode(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 hf=ne(Uu,[["render",mf],["__scopeId","data-v-cc8c5d44"]]),bf={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"}},yf=e.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:hf},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(Ae),c=()=>{var b,f;const i=Z.cloneDeep((b=e.unref(o))==null?void 0:b.graphicConfig),d={card:["rowHeaderList","indicators"],pie:["classificationList","indicators"],circulate:["classificationList","indicators"],bar:["classificationList","seriesList","leftAxisList"],line:["classificationList","seriesList","leftAxisList"],comboGraph:["classificationList","seriesList","leftAxisList","rightAxisList"],radar:["classificationList","seriesList","leftAxisList"],table:a.value?["rowHeaderList","indicators"]:[i.isIndexSet?"indexLibColumns":"queryColumnList","indicators"],text:["dimensionList","indicators"],proportion:["indicators"],select:["classificationList","formFields"],dataSelect:["classificationList","indicators","formFields"],checkbox:["classificationList","formFields"],radio:["classificationList","formFields"],list:["classificationList","indicators"],counter:["indicators"],scatter:["classificationList","indicators","formFields"],pivotTable:["queryColumnList","indicators"],valueLine:["classificationList","indicators","formFields"],indexPanel:["indicators"]},p="ecan";let u=e.unref(n);if(u.startsWith(p)){const h=p.length;u=((f=u.slice(h,h+1))==null?void 0:f.toLowerCase())+u.slice(h+1)}const m=d[u],C=bf,g=(m==null?void 0:m.length)||0;for(let h=0;h<g;h++){const y=m[h];if(!y)break;r.push({...C[y],type:y})}for(const h of t)Ye(i,h)&&!m.find(y=>y===h)?i[h]=[]:delete i[h];s(i)};return c(),e.watch(()=>n.value,()=>{r.length=0,c()}),{cardsMap:l,cards:r}}}),og="",ng="",gf={class:"data-group"};function Cf(t,o,n,a,l,r){const s=e.resolveComponent("data-config-card");return e.openBlock(),e.createElementBlock("div",gf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cards,c=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:c.type,class:"data-config-card",type:c.type},c),null,16,["type"]))),128))])}const wf=ne(yf,[["render",Cf],["__scopeId","data-v-62322ee7"]]),kf=[{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"]}],cr=[{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])})),xf={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:""},...cr]}},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:""},...cr]}},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值;
66
+ `,x){case"SUM":{B="求和";break}case"AVG":{B="求平均值";break}case"MIN":{B="求最小值";break}case"MAX":{B="求最大值";break}}V=V+"将所有【"+O+"】"+B;break}}return V}),I=(V,x)=>x.keyName.toLowerCase().indexOf(V.toLowerCase())>=0;return o({showModal:w}),{visible:g,onCancel:v,labelCol:i,wrapperCol:d,formState:b,builtInValueSourceList:s,onOK:D,onChange:h,formRules:A,accessLogic:R,formRef:C,onChangeBuiltInFormula:T,componentList:r,onChangeComponent:y,filterOption:I,offsetConfig:m}}}),Jy="",Zy="",Mu={key:0,class:"accesstip"},Pu={style:{display:"flex","align-items":"center"}};function ju(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),p=e.resolveComponent("formula-calculation"),u=e.resolveComponent("a-textarea"),m=e.resolveComponent("a-input-number"),C=e.resolveComponent("question-circle-outlined"),g=e.resolveComponent("a-tooltip"),b=e.resolveComponent("a-form"),f=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(f,{title:`${t.mode==="add"?"新增":"编辑"}计算指标`,visible:t.visible,width:"50%",bodyStyle:{height:"55vh",overflow:"auto",display:"flex",flexDirection:"column"},closable:!1,onOk:t.onOK,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createVNode(b,{model:t.formState,rules:t.formRules,ref:"formRef"},{default:e.withCtx(()=>[e.createVNode(c,{label:"指标名","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"label"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.formState.label,"onUpdate:value":o[0]||(o[0]=h=>t.formState.label=h),onChange:t.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.withDirectives(e.createVNode(c,{label:"计算方式","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.calcType,"onUpdate:value":o[1]||(o[1]=h=>t.formState.calcType=h),onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"FORMULA"},{default:e.withCtx(()=>[e.createTextVNode("公式")]),_:1}),e.createVNode(i,{value:"BUILT_IN"},{default:e.withCtx(()=>[e.createTextVNode("内置公式")]),_:1}),e.createVNode(i,{value:"COMPONENT"},{default:e.withCtx(()=>[e.createTextVNode("固定值")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),[[e.vShow,t.type!=="indexLibColumns"]]),t.formState.calcType==="FORMULA"?(e.openBlock(),e.createBlock(p,{key:0,value:t.formState.formula,"onUpdate:value":o[2]||(o[2]=h=>t.formState.formula=h),item:t.item,mode:t.mode,onChange:t.onChange},null,8,["value","item","mode","onChange"])):e.createCommentVNode("",!0),t.formState.calcType==="BUILT_IN"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(c,{label:"内置公式","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInFormula"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInFormula,"onUpdate:value":o[3]||(o[3]=h=>t.formState.builtInFormula=h),onChange:t.onChangeBuiltInFormula},{default:e.withCtx(()=>[e.createVNode(i,{value:"BUILT_IN_ALL_VALUE"},{default:e.withCtx(()=>[e.createTextVNode("所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_ALL_VALUE_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK"},{default:e.withCtx(()=>[e.createTextVNode("排名")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内排名")]),_:1}),e.createVNode(i,{value:"FIRST_ROW_RATE"},{default:e.withCtx(()=>[e.createTextVNode("首行占比")]),_:1}),e.createVNode(i,{value:"DATE_OFFSET"},{default:e.withCtx(()=>[e.createTextVNode("日期偏移")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.createVNode(c,{label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInValueSource,"onUpdate:value":o[4]||(o[4]=h=>t.formState.builtInValueSource=h),onChange:t.onChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.builtInValueSourceList,(h,y)=>(e.openBlock(),e.createBlock(i,{key:y,value:h.label,disabled:t.mode==="edit"&&t.item.label===h.name},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:0,label:"取数原则","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInCalcWay,"onUpdate:value":o[5]||(o[5]=h=>t.formState.builtInCalcWay=h),onChange:t.onChange},{default:e.withCtx(()=>[["BUILT_IN_ALL_VALUE","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula||"")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{value:"SUM"},{default:e.withCtx(()=>[e.createTextVNode("求和")]),_:1}),e.createVNode(i,{value:"AVG"},{default:e.withCtx(()=>[e.createTextVNode("求平均")]),_:1}),e.createVNode(i,{value:"MAX"},{default:e.withCtx(()=>[e.createTextVNode("求最大值")]),_:1}),e.createVNode(i,{value:"MIN"},{default:e.withCtx(()=>[e.createTextVNode("求最小值")]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})],64))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"])),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:1,label:"取数逻辑","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[["BUILT_IN_RANK_IN_GROUPO","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula)&&t.formState.builtInValueSource?(e.openBlock(),e.createElementBlock("div",Mu," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+e.toDisplayString(t.formState.builtInValueSource),1)):e.createCommentVNode("",!0),e.createVNode(u,{value:t.accessLogic,rows:6,disabled:""},null,8,["value"])]),_:1},8,["label-col","wrapper-col"]))],64)):e.createCommentVNode("",!0),t.formState.calcType==="COMPONENT"?(e.openBlock(),e.createBlock(c,{key:2,label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{"show-search":"",value:t.formState.builtInValueSource,"onUpdate:value":o[6]||(o[6]=h=>t.formState.builtInValueSource=h),"filter-option":t.filterOption,options:t.componentList,fieldNames:{value:"id",label:"keyName"},onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0),t.formState.builtInFormula==="DATE_OFFSET"?(e.openBlock(),e.createBlock(c,{key:3,label:"偏移设置","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createElementVNode("div",Pu,[e.createVNode(m,{value:t.offsetConfig.value,"onUpdate:value":o[7]||(o[7]=h=>t.offsetConfig.value=h),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},null,8,["value","onChange"]),e.createVNode(d,{value:t.offsetConfig.unit,"onUpdate:value":o[8]||(o[8]=h=>t.offsetConfig.unit=h),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(d,{value:t.offsetConfig.around,"onUpdate:value":o[9]||(o[9]=h=>t.offsetConfig.around=h),style:{width:"120px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(i,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(g,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:e.withCtx(()=>[e.createVNode(C,{class:"icon",style:{color:"#40a9ff","font-size":"18px",cursor:"pointer","margin-left":"10px"}})]),_:1})])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])]),_:1},8,["title","visible","onOk","onCancel"])}const Ru=ne(vu,[["render",ju],["__scopeId","data-v-88aef761"]]),Uu=e.defineComponent({name:"DataConfigCard",directives:{focus:rr},components:{CalculationModal:Ru,FilterModal:Qp,CustomGroupModal:ip,SettingOutlined:hc,DeleteOutlined:Xa,CopyOutlined:_s,InfoCircleOutlined:Ms,CustomSortModal:Wd,PlusOutlined:nc,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:Bt,ConfigName:nu,SortByCpnt:cu,DimByCount:hu},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(be),a=e.inject(Ae),l=e.inject(ze),r=["leftAxisList","rightAxisList","indicators"],s=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],c=["CURRENT","LAST_CYCLE","LAST_YEAR","PERIOD_ON_PERIOD","YEAR_ON_YEAR","DW"],i=e.inject(Qt),d=e.ref(),p=e.computed({get(){var z;return((z=e.unref(n))==null?void 0:z.compositeIndicator)||!1},set(z){a({compositeIndicator:z})}}),u=(z={})=>{var Q;const{type:H}=t;if(e.unref(i)==="SQL_VIEW")return!0;e.unref(i)==="EDV_DATA_SET"&&a({edvDataSetId:z.parentId});let q=!1;if(z.scope==="FIELD"&&(q=!0,z.genericType==="0"&&r.includes(H)&&(q=!1)),["IDX","BUILT_IN_IDX"].includes(z.scope)?r.includes(H)&&(q=!0):["DIM","BUILT_IN_DIM"].includes(z.scope)&&s.includes(H)&&(q=!0),H==="dimensionList"){const le=((Q=e.unref(n)[H])==null?void 0:Q.slice())||[];(le==null?void 0:le.length)===1&&(q=!1)}return q},m=e.computed(()=>{var z;return pe((z=e.unref(de))==null?void 0:z.type,["dataSelect"])&&t.type==="indicators"}),C=(z="{}")=>{var H,q;try{const Q=JSON.parse(z);if(!u(Q))return;const le=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!pe(e.unref(de).type,["list","circulate","scatter"])||e.unref(m))&&le.forEach(ue=>{ue.show=!1}),b(le,Q),Q.randomKey=he(),le.push(Q);const{type:re}=t,ee={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(Q.scope)){const ue=((q=e.unref(n))==null?void 0:q.variableList)||[];let Ce=sessionStorage.getItem("indicator-variates");if(Q.scope==="FIELD"&&!r.includes(re)&&(Ce="[]"),Ce){const we=JSON.parse(Ce);if(we!=null&&we.length)for(const _e of we)ue.unshift({..._e,dataType:"",id:null,variableValue:e.unref(i)==="EDV_DATA_SET"?_e.defaultValue:null,dateTypeValue:null,format:_e.valueFormat&&_e.valueFormat.toUpperCase()||null,variableName:_e.name,variableType:_e.valueType,label:Q.label,randomKey:Q.randomKey,keyValue:he(),disabled:e.unref(i)==="EDV_DATA_SET"})}ee.variableList=ue,ee.variableConditions=so(ue,l)}a({[t.type]:le,...ee}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(Q){console.error(Q)}},g=(z="{}")=>{var H;try{const{cardItem:q,type:Q,index:le}=JSON.parse(z);if(!u(q)||Q===t.type)return;const re=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];b(re,q),re.push(q);const ee=e.unref(n)[Q].slice()||[];ee.splice(le,1),a({[t.type]:re,[Q]:ee})}catch(q){console.error(q)}};function b(z,H){const q=[];if(z.forEach(Q=>{Q.label.includes(H.label)&&q.push(Q.label.split(H.label)[1])}),q.length>=1){for(let Q=1;Q<=q.length;Q++)if(!q.includes(Q+"")){H.label=H.label+Q;break}}}const f=(z,H)=>{var le,re;const q=(le=z.target)==null?void 0:le.checked,Q=((re=e.unref(n)[t.type])==null?void 0:re.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!pe(e.unref(de).type,["list","circulate"])||e.unref(m))&&Q.forEach(ee=>{ee.show=!1}),Q[H].show=q,a({[t.type]:Q})},h=z=>{var q;const H=((q=e.unref(n)[t.type])==null?void 0:q.slice())||[];H.splice(z,1),a({[t.type]:H})},y=()=>{sessionStorage.setItem("indicator-card-item","")},N=z=>{const H=sessionStorage.getItem("indicator-list-item"),q=sessionStorage.getItem("indicator-card-item");H?C(H):q&&g(q)},w=z=>{var ue,Ce;const{newIndex:H,oldIndex:q,from:Q,to:le}=z,re=Q.id,ee=le.id;if(H>=0&&q>=0){if(re===ee){const we=((ue=e.unref(n)[t.type])==null?void 0:ue.slice())||[],_e=we.splice(q,1)[0];_e&&(we.splice(H,0,_e),a({[t.type]:we}))}else if(t.type===ee){const we=((Ce=e.unref(n)[ee])==null?void 0:Ce.slice())||[];if(we!=null&&we.length){const _e=we.splice(we.length-1,1)[0];_e&&(we.splice(H,0,_e),a({[t.type]:we}))}}}},_=(z,H)=>{const q=z.oldIndex,Q=H[q];Q&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:Q,type:t.type,index:q}))},S=e.computed(()=>e.unref(n)[t.type]||[]),A=e.ref([]);let D=!1;e.watch(()=>e.unref(S).length,z=>{A.value=new Array(z).fill(!1)},{flush:"post",immediate:!0});const v=z=>{var q,Q,le;const H=((q=e.unref(n)[t.type])==null?void 0:q.slice())||[];if((Q=H[z])!=null&&Q.randomKey){const re=((le=e.unref(n))==null?void 0:le.variableList)||[];for(let ee=re.length-1;ee>=0;ee--)re[ee].randomKey===H[z].randomKey&&re.splice(ee,1);a({variableConditions:so(re,l),variableList:re})}H.splice(z,1),a({[t.type]:H})},T=z=>{A.value[z]=!0},R=()=>{D=!0},I=(z,H,q)=>{var Q,le,re,ee;if(A.value[H]=!1,D){const ue=(Q=z.target)==null?void 0:Q.value,Ce=((le=e.unref(n)[t.type])==null?void 0:le.slice())||[],we=Ce.filter(ke=>{var Ne;return(Ne=ke==null?void 0:ke.formula)==null?void 0:Ne.includes(q)}).map(ke=>ke.id),_e=Ce.filter(ke=>{var Ne;return(Ne=ke==null?void 0:ke.builtInValueSource)==null?void 0:Ne.includes(q)}).map(ke=>ke.id);if(we!=null&&we.length)for(const ke of we){const Ne=Ce.find(Ot=>Ot.id===ke);Ne.formula=Ne.formula.replaceAll(q,ue)}if(_e!=null&&_e.length)for(const ke of _e){const Ne=Ce.find(Ot=>Ot.id===ke);Ne.builtInValueSource=Ne.builtInValueSource.replaceAll(q,ue)}if(Ce[H].label=ue,(re=Ce[H])!=null&&re.randomKey){const ke=((ee=e.unref(n))==null?void 0:ee.variableList)||[],Ne=ke.filter(Ot=>Ot.randomKey===Ce[H].randomKey);Ne!=null&&Ne.length&&Ne.forEach(Ot=>{Ot.label=ue}),a({variableConditions:so(ke,l),variableList:ke})}a({[t.type]:Ce})}D=!1},V="DEFAULT",x=e.computed(()=>{const z=[],{scope:H}=e.unref(d)||{},q=e.unref(n)[t.type]||[];if(H==="DIM"&&!e.unref(d).typeGuid.includes("_code")){const ee=Z.cloneDeep(e.unref(d));delete ee.show,delete ee.truncations,delete ee.conditions,ee.hrpIndexComplexid+="_code",ee.id+="_code",ee.typeGuid+="_code",ee.label=ee.name+"_编码",ee.name=ee.typeGuid,ee.defaultCode=ee.typeGuid,z.push(ee)}const{leftAxisList:Q=[],rightAxisList:le=[],indicators:re=[]}=e.unref(n)||{};return[...q,...z,...Q,...le,...re]}),O=(z={},H,q="ASC")=>{var Ce;const{label:Q,name:le,id:re,defaultCode:ee}=z,ue=((Ce=e.unref(n)[t.type])==null?void 0:Ce.slice())||[];re===V?delete ue[H].sort:ue[H].sort={label:Q,columnName:le,type:"NORMAL",order:q,defaultCode:ee},a({[t.type]:ue})},B=(z={},H="ASC")=>{const Q={ASC:"升序",DESC:"降序"}[H],{sort:le}=z,{label:re,order:ee}=le||{};return re&&ee===H?`${Q}(${re})`:Q},P=e.ref(),$=e.ref(),E=e.ref(),L=e.ref(),k=(z={},H)=>{var q;P.value=z,$.value=H,(q=e.unref(E))==null||q.showModal(z)},F=z=>"排序"+(z!=null&&z.sort?"(已配置)":""),M=(z={},H)=>{var q;P.value=z,$.value=H,(q=e.unref(L))==null||q.showModal()},U=z=>"自定义分组"+((z==null?void 0:z.customGroup)!=null?"(已配置)":""),G=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],Y=[{name:"是",value:1},{name:"否",value:0}],X=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].aggregate=z,a({[t.type]:q})},J=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].distinct=z,a({[t.type]:q})},oe=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].dateFormat=z,a({[t.type]:q})},ae=(z="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[z]})`,ye=z=>`是否去重(${{0:"否",1:"是"}[z]||"否"})`,ce=(z={})=>{var H;return"过滤"+(z!=null&&z.conditions&&((H=z==null?void 0:z.conditions)==null?void 0:H.length)>0?"(已配置)":"")},ge=e.ref(),at=e.ref(),Wt=e.ref(),Nt=e.ref(),wo=(z={},H)=>{P.value=z,$.value=H,e.unref(ge).showModal()},Yt=(z={},H)=>{P.value=z,$.value=H,e.unref(at).showModal(z)},qt=(z={},H)=>{P.value=z,$.value=H,e.unref(Wt).showModal(z)},Re=(z={},H)=>{P.value=z,$.value=H,e.unref(Nt).showModal(z,e.unref(K))},Qe=e.ref(),ht=e.ref("add"),At=(z,H,q)=>{var Q;ht.value=z,z==="edit"&&(P.value=H,$.value=q),(Q=e.unref(Qe))==null||Q.showModal()},Je=e.inject(Be),lt=e.unref(e.inject(Ve)),Ue=e.ref([]),Et=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var z;pe(e.unref(de).type,["scatter","valueline"])&&((z=e.unref(n))!=null&&z.indicators)&&(Ue.value=e.unref(n).indicators.map(H=>({label:H.label,value:H.label})))}),e.watch(()=>n.value.classificationList,()=>{ko()});const rt=e.ref(""),ko=async()=>{const{source:z}=e.unref(n);if(z!=="EDV_DATA_SET"||!pe(e.unref(de).type,"select"))return;const{classificationList:H=[]}=e.unref(n),q=H.find(ee=>ee.show);if(q!=null&&q.parentId){if(e.unref(rt)===q.parentId)return;rt.value=q.parentId}else{e.unref(n).selectFieldOptions=[],Ue.value=[],rt.value="";return}const Q=await Je.get(`${Se}/dataset/`+q.parentId,{headers:{Authentication:lt,operateContext:"ygt"}}),{success:le,data:re=[]}=Q.data;if(le){const ee=re.column.map(ue=>({label:ue.columnName,value:ue.columnName}));e.unref(n).selectFieldOptions=ee,Ue.value=ee}},Ko=async()=>{const{source:z}=e.unref(n);if(!pe(e.unref(de).type,["scatter","valueline"]))try{if(z==="EDV_DATA_SET")await ko();else{const H=await Je.post(`${Se}/diagram/dimFields`,{},{headers:{Authentication:lt,operateContext:"ygt"}}),{success:q,data:Q=[]}=H.data;q&&(e.unref(n).selectFieldOptions=Q||[],Ue.value=Q)}}catch(H){console.error(H)}},Xo=(z,H)=>{const q=e.unref(n)[t.type]||{};q[H]=z,a({[t.type]:q})},Kt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],W=e.ref({}),K=e.ref([]),te=async(z,H)=>{var Q;const{name:q}=H;if(!Kt.includes(t.type)&&z&&Ye(H,"indexCode")){const le=await Je.post(`${Se}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:H.id,indexCode:H.indexCode,pageId:(Q=window==null?void 0:window.config)==null?void 0:Q.pageId},{headers:{Authentication:lt,operateContext:"ygt"}}),{success:re,data:ee}=le.data;re&&ee&&(K.value=(ee==null?void 0:ee.dataViewColumns)||[],W.value[q]={name:ee.name,code:ee.indexCode})}},ie=z=>{d.value=z},se=z=>{const H=document.createElement("input");document.body.appendChild(H),H.setAttribute("value",z),H.select(),document.execCommand("copy"),document.body.removeChild(H),j.message.success("复制成功")},de=e.inject(Ie),Te=e.computed(()=>t.type==="indicators"&&e.unref(de).type==="ecanTable"),Ze=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type)),it=e.computed(()=>{var z,H;return pe((z=e.unref(de))==null?void 0:z.type,["table"])&&((H=e.unref(n))==null?void 0:H.isIndexSet)}),Xt=e.computed(()=>!Kt.includes(t.type)&&!e.unref(m)&&(!e.unref(it)||t.type!=="indicators"));return e.onMounted(()=>{t.type==="formFields"&&(e.unref(de).type==="ecanDataSelect"?Ue.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Ko())}),{onCheckboxChange:f,onDropEnd:h,onDragItemEnd:y,onDragItemAdd:N,onDragItemSort:w,onDragItemStart:_,cardItemList:S,onDelete:v,onEdit:T,onCommitLabelChange:I,sortList:x,onSort:O,handleSortTitle:B,showCustomSortModal:k,customSortModalRef:E,currentItem:P,currentIndex:$,handleCustomSortTitle:F,handleCustomGroupTitle:U,customGroupModalRef:L,showCustomGroupModal:M,editLabelList:A,onLabelChange:R,aggregateList:G,distinctList:Y,onAggregateChange:X,onDistinctChange:J,onDateFormatChange:oe,handleAggregateTitle:ae,handleDistinctTitle:ye,onShowCalculationModal:At,handleFilterTitle:ce,filterModalRef:ge,configNameRef:at,sortByCpntRef:Wt,dimByCountRef:Nt,showFilterModal:wo,calculationModalRef:Qe,calculationModalMode:ht,formatList:o,fieldOptions:Ue,fieldData:Et,onFieldChange:Xo,onVisibleChange:te,onClickSetting:ie,copyDataViewName:se,dataViewMap:W,isShowConfigName:Te,showConfigNameModal:Yt,dimensionType:Kt,isShowSortByCpnt:Ze,showSortByCpntModal:qt,dataSelectIndicators:m,showDimByCountModal:Re,selectedComponent:de,lowerCaseIncludes:pe,isShowCalcBtn:Xt,isIndexSet:it,indexSetList:c,compositeIndicator:p}}}),eg="",tg="",kt=t=>(e.pushScopeId("data-v-c1c37a38"),t=t(),e.popScopeId(),t),zu={class:"title"},Gu={class:"title-text"},Hu={class:"field-wrap"},Wu={class:"field-item"},Yu=kt(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),qu={class:"field-item"},Ku=kt(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),Xu={key:0,class:"field-item"},Qu=kt(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),Ju={class:"title"},Zu={class:"title-text"},ef=kt(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),tf=kt(()=>e.createElementVNode("span",null,"添加计算指标",-1)),of={class:"card-item-wrap"},nf={class:"card-item-inner"},af=["onClick"],lf=["onClick"],rf=["onClick"],sf={style:{display:"flex","align-items":"center"}},cf=["title"],df=kt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),pf={style:{display:"flex","align-items":"center"}},uf=["title"],ff=kt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function mf(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-checkbox"),i=e.resolveComponent("a-card"),d=e.resolveComponent("info-circle-outlined"),p=e.resolveComponent("a-popover"),u=e.resolveComponent("plus-outlined"),m=e.resolveComponent("a-input"),C=e.resolveComponent("setting-outlined"),g=e.resolveComponent("a-menu-item"),b=e.resolveComponent("a-menu-divider"),f=e.resolveComponent("a-sub-menu"),h=e.resolveComponent("copy-outlined"),y=e.resolveComponent("a-menu"),N=e.resolveComponent("a-dropdown"),w=e.resolveComponent("delete-outlined"),_=e.resolveComponent("draggable"),S=e.resolveComponent("custom-sort-modal"),A=e.resolveComponent("custom-group-modal"),D=e.resolveComponent("filter-modal"),v=e.resolveComponent("config-name"),T=e.resolveComponent("sort-by-cpnt"),R=e.resolveComponent("dim-by-count"),I=e.resolveComponent("calculation-modal"),V=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",zu,[e.createElementVNode("div",Gu,e.toDisplayString(t.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Hu,[e.createElementVNode("div",Wu,[Yu,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",qu,[Ku,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",Xu,[Qu,e.createVNode(c,{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",Ju,[e.createElementVNode("div",Zu,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),t.type==="dimensionList"?(e.openBlock(),e.createBlock(p,{key:0,title:"提示",placement:"topLeft"},{content:e.withCtx(()=>[ef]),default:e.withCtx(()=>[e.createVNode(d,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):e.createCommentVNode("",!0)]),t.isShowCalcBtn?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-calculation",onClick:o[3]||(o[3]=e.withModifiers(x=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),tf])):t.isIndexSet?(e.openBlock(),e.createBlock(c,{key:1,checked:t.compositeIndicator,"onUpdate:checked":o[4]||(o[4]=x=>t.compositeIndicator=x)},{default:e.withCtx(()=>[e.createTextVNode("复合指标")]),_:1},8,["checked"])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.type+"-list"),style:{height:"100%",padding:"10px"}},[e.createVNode(_,{modelValue:t.cardItemList,"onUpdate:modelValue":o[5]||(o[5]=x=>t.cardItemList=x),class:"chart-column",id:t.type,disabled:t.type==="indexLibColumns",group:"cardItem","item-key":"index",onAdd:t.onDragItemAdd,onSort:t.onDragItemSort,onEnd:t.onDragItemEnd,onStart:o[6]||(o[6]=x=>t.onDragItemStart(x,t.cardItemList))},{item:e.withCtx(({element:x,index:O})=>[e.createElementVNode("div",of,[e.createVNode(c,{class:"card-item",checked:x.show,onChange:B=>t.onCheckboxChange(B,O)},{default:e.withCtx(()=>[e.createElementVNode("div",nf,[!t.editLabelList[O]&&x.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(B=>t.onEdit(O),["prevent","stop"])},e.toDisplayString(x.label),9,af)):e.createCommentVNode("",!0),!t.editLabelList[O]&&!x.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(B=>t.onEdit(O),["prevent","stop"])}," 请点击填入名字 ",8,lf)):e.createCommentVNode("",!0),t.editLabelList[O]?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,"default-value":x.label,size:"small",onBlur:B=>t.onCommitLabelChange(B,O,x.label),onPressEnter:B=>t.onCommitLabelChange(B,O,x.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[V]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(x.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(B=>t.onShowCalculationModal("edit",x,O),["prevent","stop"])}," fx ",8,rf)):e.createCommentVNode("",!0),t.type!=="indexLibColumns"?(e.openBlock(),e.createBlock(N,{key:4,trigger:["click"],onVisibleChange:B=>t.onVisibleChange(B,x)},{overlay:e.withCtx(()=>[e.createVNode(y,null,{default:e.withCtx(()=>[t.dimensionType.includes(t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(g,{onClick:B=>t.showCustomSortModal(x,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(x)),1)]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(g,{onClick:B=>t.showCustomGroupModal(x,O)},{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(f,{title:"日期格式化"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,B=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onDateFormatChange(B.value,O)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(x.dateFormat===B.value||!x.dateFormat&&B.value==="YYYY-MM-DD"?"color: #1890FF;":"")},e.toDisplayString(B.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(b)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(g,{onClick:B=>t.showFilterModal(x,O)},{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(f,{title:t.handleAggregateTitle(x.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,B=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onAggregateChange(B.value,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(b)],64)),t.isShowConfigName?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(g,{onClick:B=>t.showConfigNameModal(x,O)},{default:e.withCtx(()=>[e.createTextVNode(" 修改展示名称 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),t.isShowSortByCpnt?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(g,{onClick:B=>t.showSortByCpntModal(x,O)},{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(g,{onClick:B=>t.showDimByCountModal(x,O)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(f,{title:t.handleDistinctTitle(x.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,B=>(e.openBlock(),e.createBlock(g,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onDistinctChange(B.value,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.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(g,{key:0,onClick:B=>t.copyDataViewName(t.dataViewMap[x.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",sf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[x.name].name},[df,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[x.name].name),1)],8,cf),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[x.name]?(e.openBlock(),e.createBlock(g,{key:1,onClick:B=>t.copyDataViewName(t.dataViewMap[x.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",pf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[x.name].code},[ff,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[x.name].code),1)],8,uf),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)],64))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(C,{class:"setting-icon",onClick:B=>t.onClickSetting(x)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"])):e.createCommentVNode("",!0),t.type!=="indexLibColumns"||x.calcType==="FORMULA"?(e.openBlock(),e.createBlock(w,{key:5,class:"delete-icon",onClick:e.withModifiers(B=>t.onDelete(O),["prevent"])},null,8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","disabled","onAdd","onSort","onEnd"])],2),e.createVNode(S,{item:t.currentItem,index:t.currentIndex,type:t.type,sortList:t.sortList,ref:"customSortModalRef"},null,8,["item","index","type","sortList"]),e.createVNode(A,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),e.createVNode(D,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"filterModalRef"},null,8,["item","index","type"]),e.createVNode(v,{index:t.currentIndex,type:t.type,ref:"configNameRef"},null,8,["index","type"]),e.createVNode(T,{index:t.currentIndex,type:t.type,ref:"sortByCpntRef"},null,8,["index","type"]),e.createVNode(R,{index:t.currentIndex,type:t.type,ref:"dimByCountRef"},null,8,["index","type"]),e.createVNode(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 hf=ne(Uu,[["render",mf],["__scopeId","data-v-c1c37a38"]]),bf={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"}},yf=e.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:hf},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(Ae),c=()=>{var b,f;const i=Z.cloneDeep((b=e.unref(o))==null?void 0:b.graphicConfig),d={card:["rowHeaderList","indicators"],pie:["classificationList","indicators"],circulate:["classificationList","indicators"],bar:["classificationList","seriesList","leftAxisList"],line:["classificationList","seriesList","leftAxisList"],comboGraph:["classificationList","seriesList","leftAxisList","rightAxisList"],radar:["classificationList","seriesList","leftAxisList"],table:a.value?["rowHeaderList","indicators"]:[i.isIndexSet?"indexLibColumns":"queryColumnList","indicators"],text:["dimensionList","indicators"],proportion:["indicators"],select:["classificationList","formFields"],dataSelect:["classificationList","indicators","formFields"],checkbox:["classificationList","formFields"],radio:["classificationList","formFields"],list:["classificationList","indicators"],counter:["indicators"],scatter:["classificationList","indicators","formFields"],pivotTable:["queryColumnList","indicators"],valueLine:["classificationList","indicators","formFields"],indexPanel:["indicators"]},p="ecan";let u=e.unref(n);if(u.startsWith(p)){const h=p.length;u=((f=u.slice(h,h+1))==null?void 0:f.toLowerCase())+u.slice(h+1)}const m=d[u],C=bf,g=(m==null?void 0:m.length)||0;for(let h=0;h<g;h++){const y=m[h];if(!y)break;r.push({...C[y],type:y})}for(const h of t)Ye(i,h)&&!m.find(y=>y===h)?i[h]=[]:delete i[h];s(i)};return c(),e.watch(()=>n.value,()=>{r.length=0,c()}),{cardsMap:l,cards:r}}}),og="",ng="",gf={class:"data-group"};function Cf(t,o,n,a,l,r){const s=e.resolveComponent("data-config-card");return e.openBlock(),e.createElementBlock("div",gf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cards,c=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:c.type,class:"data-config-card",type:c.type},c),null,16,["type"]))),128))])}const wf=ne(yf,[["render",Cf],["__scopeId","data-v-62322ee7"]]),kf=[{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"]}],cr=[{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])})),xf={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:""},...cr]}},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:""},...cr]}},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:`【别名】是循环列表内部要循环的组件别名;
68
68
  【字段】是接口返回的数据字段;`,keyName:"别名",fieldName:"字段"}},itemWidth:{label:"宽度",component:"input-number",props:{suffix:"%",min:1,max:100}},startValue:{label:"开始值",component:"textarea"},endValue:{label:"结束值",component:"textarea"},colNum:{label:"列数量",component:"input-number"},digits:{label:"位数",component:"input-number",props:{min:0}},unitWidth:{label:"单位宽度",component:"input-number",props:{suffix:"px",min:10}},unitHeight:{label:"单位高度",component:"input-number",props:{suffix:"px",min:10}},counterBackgroundImage:{label:"背景图",component:"image-pick"},showEllipsis:{label:"超出省略号",component:"switch"},exceedConfig:{label:"内容超出时",component:"select",props:{options:[{label:"默认",value:""},{label:"换行",value:"wrap"},{label:"省略号",value:"ellipsis"}]}},xAxisMaxValue:{label:"最大值",component:"input-number",props:{min:0}},yAxisMaxValue:{label:"最大值",component:"input-number",props:{min:0}},scrollDirection:{label:"滚动方向",component:"radio-group",props:{options:[{label:"竖直",value:"vertical"},{label:"水平",value:"horizontal"}]}},hideTabs:{label:"隐藏标签",component:"switch"},jumpType:{label:"跳转类型",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"当前项目页面",value:"page"},{label:"外部链接页面",value:"link"}]}},jumpTime:{label:"定时",component:"input-number",updateMode:"page",onlyType:"page",props:{min:0,suffix:[{label:"时",value:"hours"},{label:"分",value:"minute"},{label:"秒",value:"seconds"}]}},jumpPage:{label:"项目页面",component:"page-pick",updateMode:"page",onlyType:"page",show:[{match:"jumpType",value:"page"}]},jumpLink:{label:"链接",component:"textarea",updateMode:"page",onlyType:"page",show:[{match:"jumpType",value:"link"}]},gridTopPx:{label:"上侧距离",component:"input-number",props:{suffix:"px",min:0}},gridBottomPx:{label:"下侧距离",component:"input-number",props:{suffix:"px",min:0}},gridLeftPx:{label:"左侧距离",component:"input-number",props:{suffix:"px",min:0}},gridRightPx:{label:"右侧距离",component:"input-number",props:{suffix:"px",min:0}},showAnimation:{label:"动画",component:"switch",style:"width: auto;",props:{tooltip:"文本组件的值会以动画的形式发生变化(只有值为数字类型的时候才生效)"}},showXAxisLineArrow:{label:"显示箭头",component:"switch"},showYAxisLineArrow:{label:"显示箭头",component:"switch"},xAxisLineInverse:{label:"倒序",component:"switch"},yAxisLineInverse:{label:"倒序",component:"switch"},xAxisMarkLineValue:{label:"x轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在x轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,
69
69
  max表示x轴刻度最大值,min表示x轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量,例如添加一根位于x轴正中间的标线可以这么写:({max} + {min}) / 2`}},yAxisMarkLineValue:{label:"y轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在y轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,