st-comp 0.0.76 → 0.0.78
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/es/VarietySearch.cjs +2 -2
- package/es/VarietySearch.js +501 -482
- package/es/style.css +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-bdeb684f.js → index-d4fc9911.js} +51 -32
- package/lib/{python-c9833067.js → python-8e5e5290.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/config.js +38 -15
- package/packages/VarietySearch/index.vue +64 -25
package/lib/bundle.js
CHANGED
package/lib/bundle.umd.cjs
CHANGED
|
@@ -793,7 +793,7 @@ ${e.toString()}`}}class Ab{constructor(e=new cp,t=!1,n,r=Jze){var o;this._servic
|
|
|
793
793
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
794
794
|
*-----------------------------------------------------------------------------*/pje({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Promise.resolve().then(()=>T$e)});const bje=c.defineComponent({__name:"index",props:{defaultValue:{type:String,default:""},language:{type:String,default:"python"},theme:{type:String,default:"vs-dark"}},emits:["change"],setup(i,{expose:e,emit:t}){let n;const r=t,o=i,s=c.ref(null);return c.onMounted(()=>{n=vG.create(s.value,{value:o.defaultValue,language:o.language,theme:o.theme}),n.onDidChangeModelContent(a=>{r("change",n.getValue())})}),c.onUnmounted(()=>{n&&n.dispose()}),e({setValue:a=>{n.setValue(a)},getValue:()=>n.getValue()}),(a,l)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"editorContainer",ref:s,style:{width:"100%",height:"100%"}},null,512))}}),_je={install(i){i.component("st-monacoEditor",bje)}},$3t="",vje=c.defineComponent({__name:"index",props:{pageData:{type:Object,default:()=>({pageNum:1,pageSize:10})},total:{type:Number,default:0},pageSizes:{type:Array,default:()=>[10,20,30,50]},background:{type:Boolean,default:!0},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"}},emits:["update:pageData","change"],setup(i,{emit:e}){const t=e,n=i,r=c.computed({get(){return n.pageData.pageNum},set(a){t("update:pageData",{...n.pageData,pageNum:a})}}),o=c.computed({get(){return n.pageData.pageSize},set(a){t("update:pageData",{...n.pageData,pageSize:a})}}),s=()=>{t("change",n.pageData)};return(a,l)=>{const u=cge,d=ty;return c.openBlock(),c.createBlock(d,{locale:c.unref(mw)},{default:c.withCtx(()=>[c.withDirectives(c.createVNode(u,c.mergeProps({class:"st-pagination",currentPage:r.value,"onUpdate:currentPage":l[0]||(l[0]=h=>r.value=h),"page-size":o.value,"onUpdate:pageSize":l[1]||(l[1]=h=>o.value=h),total:i.total,background:i.background,"page-sizes":i.pageSizes,layout:i.layout},a.$attrs,{onSizeChange:s,onCurrentChange:s}),null,16,["currentPage","page-size","total","background","page-sizes","layout"]),[[c.vShow,i.total]])]),_:1},8,["locale"])}}}),U3t="",yje=lo(vje,[["__scopeId","data-v-61b7745b"]]),wje={install(i){i.component("st-pagination",yje)}},Cje=c.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},config:{type:Object,default:()=>({})},style:{type:Object,default:()=>[]}},setup(i){const{add:e,multiply:t,divide:n,round:r}=h0.stMath,o={colorList:["#FAF277","#FFC467","#FFA872","#FB962E","#FF772C","#FF577C","#F679D7","#9B4A9B","#9169D7","#9192D0","#655AC7","#4084DE","#0074DA","#0098DF","#00BBE9","#00D2DE","#73E2E6","#00CBB1","#00B488","#48D09A","#93D984","#C9EC7C","#D4E300","#E2BA2B","#A18300","#BC6F3F","#A84E12","#7C462E","#713532","#962B23"],legendColor:"#000",inactiveColor:"#ccc"},s={tooltipFormatter:null};let a,l;const u=i,d=c.ref(),h=c.computed(()=>({...o,...u.style})),m=c.computed(()=>({...s,...u.config}));c.watch(()=>[u.data,u.style],()=>{v()},{deep:!0}),c.onMounted(()=>{a=yl.init(d.value),v();let w=!0;l=new ResizeObserver(()=>{if(w){w=null;return}a.resize()}),l.observe(d.value)}),c.onUnmounted(()=>{a.dispose(),l.disconnect(),l=null});const v=()=>{const w=u.data.reduce((C,A)=>e(C,A.value),0);a.setOption({color:h.value.colorList,tooltip:{trigger:"item",confine:!0,formatter:m.value.tooltipFormatter},legend:{orient:"vertical",right:0,bottom:0,itemWidth:28,itemHeight:18,textStyle:{fontSize:12,color:h.value.legendColor},inactiveColor:h.value.inactiveColor,formatter:C=>{const A=u.data.find(T=>T.name===C);return`${C}
|
|
795
795
|
${A.label||A.value}(${typeof A.percent=="number"?A.percent:r(t(n(A.value,w),100))}%)`}},series:[{type:"pie",width:"150%",height:"150%",center:[`${100/3}%`,`${100/3}%`],radius:"50%",data:u.data.map(C=>({...C,itemStyle:{color:C.color}})),label:{show:!0,position:"inside",formatter:C=>{var T;const A=((T=C==null?void 0:C.data)==null?void 0:T.label)||C.value;return A===0?"":A},fontSize:14,color:"#000"},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]})};return(w,C)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"chartRef",ref:d,class:"chart"},null,512))}}),q3t="",Sje=lo(Cje,[["__scopeId","data-v-964eca86"]]),xje={install(i){i.component("st-pie",Sje)}},K3t="",G3t="",Y3t="",Z3t="",Q3t="",X3t="",J3t="",SG=c.defineComponent({__name:"index",props:{option:{type:Object,required:!0},scope:{type:Object,required:!0},showMargin:{type:Boolean,default:()=>!1}},setup(i){const e=i,t=c.computed(()=>{const{option:n,scope:r}=e;return typeof n.show=="function"?n.show(r.row,r.$index):n.show!==!1});return(n,r)=>{const o=i0,s=pge;return t.value?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[i.option.needCheck?(c.openBlock(),c.createBlock(s,{key:0,title:i.option.needCheck.title,onConfirm:r[0]||(r[0]=a=>i.option.onClick(i.scope.row,i.scope.$index))},{reference:c.withCtx(()=>[c.createVNode(o,{type:i.option.type,disabled:typeof i.option.disabled=="function"?i.option.disabled(i.scope.row,i.scope.$index):i.option.disabled,style:c.normalizeStyle({marginTop:i.showMargin?"10px":0})},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(typeof i.option.text=="function"?i.option.text(i.scope.row,i.scope.$index):i.option.text),1)]),_:1},8,["type","disabled","style"])]),_:1},8,["title"])):(c.openBlock(),c.createBlock(o,{key:1,type:i.option.type,disabled:typeof i.option.disabled=="function"?i.option.disabled(i.scope.row,i.scope.$index):i.option.disabled,style:c.normalizeStyle({marginTop:i.showMargin?"10px":0}),onClick:r[1]||(r[1]=a=>i.option.onClick(i.scope.row,i.scope.$index))},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(typeof i.option.text=="function"?i.option.text(i.scope.row,i.scope.$index):i.option.text),1)]),_:1},8,["type","disabled","style"]))],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[],64))}}}),Dje=c.defineComponent({__name:"index",props:{option:{type:Object,required:!0},scope:{type:Object,required:!0}},setup(i){return(e,t)=>(c.openBlock(),c.createElementBlock("div",{style:c.normalizeStyle(typeof i.option.style=="function"?i.option.style(i.scope.row[i.option.prop],i.scope.row):i.option.style)},c.toDisplayString(typeof i.option.formatter=="function"?i.option.formatter(i.scope.row[i.option.prop],i.scope.row):i.scope.row[i.option.prop]),5))}}),Nje=c.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},column:{type:Array,default:()=>[]},loading:{type:Boolean,default:()=>!1},emptyText:{type:String,default:()=>""}},emits:["sortChange"],setup(i,{emit:e}){const t=e,n=i,r=c.computed(()=>n.column.filter(a=>a.show!==!1)),o=a=>{t("sortChange",a)},s=(a,l)=>a.filter(u=>typeof u.show=="function"&&u.show(l.row,l.$index)===!1?!1:u.show!==!1);return(a,l)=>{const u=kr,d=Dge,h=Yme,m=Gme,v=ty,w=zpe;return c.openBlock(),c.createBlock(v,{locale:c.unref(mw)},{default:c.withCtx(()=>[c.withDirectives((c.openBlock(),c.createBlock(m,{data:i.data,"empty-text":i.emptyText,stripe:"",style:{width:"100%"},onSortChange:o},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(r.value,C=>(c.openBlock(),c.createBlock(h,{key:C.prop,prop:C.prop,label:C.label,sortable:C.sortable,width:C.width,"min-width":C.minWidth},c.createSlots({_:2},[C.type==="formatter"?{name:"default",fn:c.withCtx(A=>[c.createVNode(Dje,{option:C,scope:A},null,8,["option","scope"])]),key:"0"}:C.type==="slot"?{name:"default",fn:c.withCtx(A=>[c.renderSlot(a.$slots,C.slot,{row:A.row})]),key:"1"}:C.type==="btns"?{name:"default",fn:c.withCtx(A=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(C.btns,(T,I)=>(c.openBlock(),c.createElementBlock(c.Fragment,{key:`${T.text}-${I}`},[T.children?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[s(T.children,A).length?(c.openBlock(),c.createBlock(d,{key:0,placement:"bottom",trigger:"hover","popper-style":{minWidth:"0px",width:null}},{reference:c.withCtx(()=>[c.createVNode(u,{style:{marginLeft:"10px",verticalAlign:"-5px",cursor:"pointer"},size:"20"},{default:c.withCtx(()=>[c.createVNode(c.unref(Fv))]),_:1})]),default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s(T.children,A),(R,O)=>(c.openBlock(),c.createElementBlock("div",{key:`${R.text}-${O}`},[c.createVNode(SG,{option:R,scope:A,showMargin:O!==0},null,8,["option","scope","showMargin"])]))),128))]),_:2},1024)):c.createCommentVNode("",!0)],64)):(c.openBlock(),c.createBlock(SG,{key:1,option:T,scope:A},null,8,["option","scope"]))],64))),128))]),key:"2"}:void 0]),1032,["prop","label","sortable","width","min-width"]))),128))]),_:1},8,["data","empty-text"])),[[w,i.loading]])]),_:1},8,["locale"])}}}),Lje={install(i){i.component("st-table",Nje)}},Eje=c.defineComponent({__name:"index",props:{data:{type:Array,default:()=>[]},config:{type:Object,default:()=>({})}},setup(i,{expose:e}){const t={tooltipFormatter:null,visibleMin:300};let n,r;const o=i,s=c.ref(),a=c.computed(()=>({...t,...o.config}));c.watch(()=>[o.data],()=>{l()},{deep:!0}),c.onMounted(()=>{n=yl.init(s.value),l();let u=!0;r=new ResizeObserver(()=>{if(u){u=null;return}n.resize()}),r.observe(s.value)}),c.onUnmounted(()=>{n.dispose(),r.disconnect(),r=null});const l=()=>{n.setOption({tooltip:{confine:!0,formatter:a.value.tooltipFormatter},series:[{type:"treemap",width:"100%",height:"100%",visibleMin:a.value.visibleMin,breadcrumb:{show:!1},label:{show:!0,formatter:"{b}"},upperLabel:{show:!0,height:30},itemStyle:{borderColor:"#fff"},levels:[{itemStyle:{borderColor:"#777",borderWidth:0,gapWidth:0},upperLabel:{show:!1}},{itemStyle:{borderColor:"#000",borderWidth:2,gapWidth:1},upperLabel:{padding:[8,0,0,0],formatter:u=>`{title|${u.data.name} ${u.data.labelValue}} ${u.data.percent===null?"":`{${u.data.percent>=0?u.data.percent===0?"defaultPercent":"redPercent":"greenPercent"}|${u.data.percent}%}`}`,rich:{title:{color:"#fff",fontSize:14},defaultPercent:{color:"#fff",fontSize:14},redPercent:{color:"red",fontSize:14},greenPercent:{color:"green",fontSize:14}}}},{colorSaturation:[.35,.5],itemStyle:{borderWidth:0,gapWidth:1,borderColorSaturation:.6},label:{align:"center",verticalAlign:"middle",fontSize:20,formatter:u=>`${u.data.name}
|
|
796
|
-
${u.data.colorValue}`}}],data:o.data.map(u=>({...u,itemStyle:{color:u.color},children:u.children.map(d=>({...d,itemStyle:{color:d.color}}))}))}]},!0)};return e({reset:()=>{l()}}),(u,d)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"chartRef",ref:s,class:"chart"},null,512))}}),e4t="",kje=lo(Eje,[["__scopeId","data-v-ab677899"]]),Aje={install(i){i.component("st-treeMap",kje)}},t4t="",n4t="",i4t="",xG={varietyMarket:{show:!0,options:[{label:"ETF",value:2,memo:[]},{label:"A股",value:3,memo:[4,6,12]},{label:"期货",value:4,memo:[1,2,3,5,7,8,9,10]},{label:"港股",value:5,memo:[4,6]},{label:"外盘",value:6,memo:[1,2,3,5,7,8,9,10]},{label:"美股",value:7,memo:[4,6]},{label:"期权",value:8,memo:[11]}]},commonOption:{show:!0,options:[{label:"期货主连",value:1},{label:"期货主力",value:2},{label:"期货加权",value:3},{label:"常用股票指数",value:4},{label:"期货收益率指数",value:5},{label:"股票板块指数",value:6},{label:"次主力合约",value:7},{label:"期货次主连",value:8},{label:"期货板块收益率指数",value:9},{label:"期货板块加权指数",value:10},{label:"期权",value:11},{label:"板块价差指数",value:12}]},customTag:{show:!0,options:[]},factorScreen:{show:!0,cycleDefault:null,cycleOptions:[],cycleShow:!0,factorOptions:[]},commonIndicator:{show:!0,options:[{key:"marketCapital",label:"总市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,25],unit:["亿","亿"],text:"≤25亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[20,50],unit:["亿","亿"],text:"20亿~50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"floatMarketCapital",label:"流通市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,20],unit:["亿","亿"],text:"≤20亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[null,100],unit:["亿","亿"],text:"≤100亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"totalShares",label:"总股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,75],unit:["亿","亿"],text:"≤75亿"},{range:[10,75],unit:["亿","亿"],text:"10亿~75亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"freeFloatShares",label:"流通股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[null,5],unit:["千万","千万"],text:"≤5千万"},{range:[5,3],unit:["千万","亿"],text:"5千万~3亿"},{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[8,30],unit:["亿","亿"],text:"8亿~30亿"},{range:[30,null],unit:["亿","亿"],text:"≥30亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"turnoverRate",label:"换手率(实)",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"peTtm",label:"市盈率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[0,0],unit:[],text:"亏损"},{range:[0,null],unit:[],text:"≥0"},{range:[0,20],unit:[],text:"0~20"},{range:[20,40],unit:[],text:"20~40"},{range:[40,100],unit:[],text:"40~100"},{range:[100,null],unit:[],text:"≥100"}],defaultUnit:[],unitOptions:[]},{key:"eps",label:"每股净收益",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[null,0],unit:["元","元"],text:"≤0"},{range:[0,null],unit:["元","元"],text:"≥0"},{range:[.2,null],unit:["元","元"],text:"≥0.2元"},{range:[.5,null],unit:["元","元"],text:"≥0.5元"},{range:[1,null],unit:["元","元"],text:"≥1元"},{range:[2,null],unit:["元","元"],text:"≥2元"}],defaultUnit:["元","元"],unitOptions:["元"]},{key:"st",label:"是否ST",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},type:"custom"},{key:"pb",label:"市净率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[0,null],unit:[],text:"≥0"},{range:[0,1],unit:[],text:"0~1"},{range:[1,2],unit:[],text:"1~2"},{range:[0,3],unit:[],text:"0~3"},{range:[3,null],unit:[],text:"≥3"}],defaultUnit:[],unitOptions:[]},{key:"mnShr",label:"成交额",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[0,1],unit:["亿","亿"],text:"0~1亿"},{range:[0,5],unit:["亿","亿"],text:"0~5亿"},{range:[0,10],unit:["亿","亿"],text:"0~10亿"},{range:[10,null],unit:["亿","亿"],text:"≥10亿"},{range:[50,null],unit:["亿","亿"],text:"≥50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"roe",label:"净资产收益率roe",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},convenientOptions:[{range:[null,0],unit:["%","%"],text:"<0"},{range:[0,null],unit:["%","%"],text:">0"},{range:[10,null],unit:["%","%"],text:">10%"},{range:[15,null],unit:["%","%"],text:">15%"},{range:[20,null],unit:["%","%"],text:">20%"},{range:[30,null],unit:["%","%"],text:">30%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"tFeaturelncomes",label:"净利润",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12]},type:"custom"},{key:"expireDays",label:"过期天数",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["天","天"],unitOptions:["天"]},{key:"virtualRealDegree",label:"虚实度",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"yearProfitRate",label:"年化收益率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"impliedVolatility",label:"隐含波动率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"levelMultiplier",label:"杠杆率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"turnover",label:"成交额(期权)",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["万","万"],unitOptions:["万"]},{key:"volume",label:"成交量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"openInterest",label:"持仓量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"optionsCpType",label:"认沽认购",parent:{varietyMarketIds:[8],commonOptionIds:[11]},type:"custom"},{key:"optionGear",label:"期权档位",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]}]}},r4t="",o4t="",s4t="",a4t="",Tje=i=>(c.pushScopeId("data-v-a6a3b89f"),i=i(),c.popScopeId(),i),Mje={class:"factor-screen"},Ije={class:"form-row"},Rje={style:{display:"flex","align-items":"center",width:"100%",height:"24px"}},Oje=Tje(()=>c.createElementVNode("span",null,"~",-1)),Pje={class:"dialog-footer"},Fje=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:()=>{}}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(i){const e=i,t=c.useModel(i,"data"),n=c.ref(!1),r=c.ref(null),o=c.ref({factorScreen:[{cycle:e.config.cycleDefault??null,factor:null,score:[null,null]}]}),s=(v,w,C)=>{!w[0]&&w[0]!==0&&!w[1]&&w[1]!==0?C(new Error("至少填写一个分数")):C()},a=()=>{t.value.length>0?o.value.factorScreen=JSON.parse(JSON.stringify(t.value)):o.value.factorScreen=[{cycle:e.config.cycleDefault??null,factor:null,score:[null,null]}],n.value=!0},l=v=>{t.value.splice(v,1)},u=()=>{o.value.factorScreen.push({cycle:e.config.cycleDefault??null,factor:null,score:[null,null]})},d=v=>{o.value.factorScreen.splice(v,1)},h=()=>{r.value&&r.value.validate(v=>{v?(t.value=JSON.parse(JSON.stringify(o.value.factorScreen)),n.value=!1):console.error("因子筛选-弹窗: 表单校验未通过")})},m=v=>{const{cycle:w,factor:C,score:A}=v;let T="";return T+=` ${e.config.cycleOptions.find(({value:I})=>I===w).label}`,T+=` ${e.config.factorOptions.find(({value:I})=>I===C).label}`,T+=` ${A[0]||A[0]===0?`${A[0]}分`:"∞"}`,T+=" ~",T+=` ${A[1]||A[1]===0?`${A[1]}分`:"∞"}`,T};return(v,w)=>{const C=My,A=i0,T=dg,I=cg,R=Mhe,O=KI,V=kr,j=The,K=Iy;return c.openBlock(),c.createElementBlock("div",Mje,[t.value.length?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(t.value,(G,ne)=>(c.openBlock(),c.createBlock(C,{closable:"",type:"info",onClose:ce=>l(ne)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(m(G)),1)]),_:2},1032,["onClose"]))),256)):c.createCommentVNode("",!0),c.createVNode(A,{class:"screen-btn",type:"primary",plain:"",size:"small",icon:c.unref(Bv),onClick:a},{default:c.withCtx(()=>[c.createTextVNode("添加因子")]),_:1},8,["icon"]),c.createVNode(K,{modelValue:n.value,"onUpdate:modelValue":w[0]||(w[0]=G=>n.value=G),title:"因子筛选",width:"500","align-center":"","destroy-on-close":""},{footer:c.withCtx(()=>[c.createElementVNode("div",Pje,[c.createVNode(A,{type:"primary",onClick:h},{default:c.withCtx(()=>[c.createTextVNode("确定")]),_:1})])]),default:c.withCtx(()=>[c.createVNode(j,{ref_key:"dialogFormRef",ref:r,model:o.value},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.factorScreen,(G,ne)=>(c.openBlock(),c.createElementBlock("div",Ije,[i.config.cycleShow?(c.openBlock(),c.createBlock(R,{key:0,prop:"factorScreen."+ne+".cycle",rules:{required:!0,message:"周期不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createVNode(I,{modelValue:G.cycle,"onUpdate:modelValue":ce=>G.cycle=ce,placeholder:"选择周期",size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.config.cycleOptions,({label:ce,value:le})=>(c.openBlock(),c.createBlock(T,{label:ce,value:le,key:le},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):c.createCommentVNode("",!0),c.createVNode(R,{prop:"factorScreen."+ne+".factor",rules:{required:!0,message:"因子不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createVNode(I,{modelValue:G.factor,"onUpdate:modelValue":ce=>G.factor=ce,placeholder:"选择因子",filterable:"",size:"small","no-match-text":"无匹配数据"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.config.factorOptions,({label:ce,value:le})=>(c.openBlock(),c.createBlock(T,{label:ce,value:le,key:le},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),c.createVNode(R,{prop:"factorScreen."+ne+".score",rules:{validator:s,trigger:"blur"},style:{width:"200px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createElementVNode("div",Rje,[c.createVNode(O,{modelValue:G.score[0],"onUpdate:modelValue":ce=>G.score[0]=ce,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),Oje,c.createVNode(O,{modelValue:G.score[1],"onUpdate:modelValue":ce=>G.score[1]=ce,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1032,["prop","rules"]),c.createVNode(V,{onClick:ce=>d(ne)},{default:c.withCtx(()=>[c.createVNode(c.unref(Rv))]),_:2},1032,["onClick"])]))),256)),c.createVNode(A,{type:"primary",plain:"",size:"small",icon:c.unref(Bv),onClick:u},{default:c.withCtx(()=>[c.createTextVNode("添加因子")]),_:1},8,["icon"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-a6a3b89f"]]),u4t="",c4t="",d4t="",QE=i=>(c.pushScopeId("data-v-0a691a79"),i=i(),c.popScopeId(),i),Bje={key:0,class:"common-indicator"},zje={class:"indicator"},Vje=QE(()=>c.createElementVNode("div",{class:"title"},[c.createElementVNode("span",null,"常用指标: "),c.createElementVNode("span",null,"不限")],-1)),Hje={class:"options"},Wje=["onClick"],jje={class:"tags"},$je=["onClick"],Uje={key:0,class:"convenient-option-box"},qje={class:"out-box"},Kje=QE(()=>c.createElementVNode("span",null,"自定义: ",-1)),Gje={key:0},Yje={key:0},Zje={key:0},Qje={key:1},Xje={class:"tFeaturelncomes-option-box"},Jje={class:"tFeaturelncomes-out-box"},e$e=QE(()=>c.createElementVNode("span",null,"自定义: ",-1)),t$e={key:2},n$e={class:"dialog-footer"},i$e=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:()=>{}},varietyMarket:{type:Number,default:()=>null},commonOption:{type:Array,default:()=>[]}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(i){const e=i,t=c.useModel(i,"data"),n=c.computed(()=>{let v=[];return e.varietyMarket===null&&!e.commonOption.length?v=e.config.options:(v=e.config.options,e.varietyMarket&&(v=v.filter(({parent:w})=>w.varietyMarketIds.includes(e.varietyMarket))),e.commonOption.length&&(v=v.filter(({parent:w})=>{const{commonOptionIds:C}=w;return[...new Set([...C,...e.commonOption])].length!==[...C,...e.commonOption].length}))),v});c.watch(()=>n.value,()=>{t.value.length&&(t.value=t.value.filter(({key:v})=>n.value.find(w=>w.key===v)))});const r=c.ref(!1),o=c.ref({}),s=c.ref({}),a=v=>{o.value=v;const w={label:v.label,key:v.key,type:v.type};v.type===void 0?s.value={...w,range:[null,null],unit:v.defaultUnit.length?[...v.defaultUnit]:[null,null]}:v.key==="st"?s.value={...w,st:null}:v.key==="tFeaturelncomes"?s.value={...w,rule:1,withFewYears:null,yearsCount:null,netProfit:null}:v.key==="optionsCpType"&&(s.value={...w,optionsCpType:null}),r.value=!0},l=v=>{s.value.range=[...v.range],s.value.unit=[...v.unit]},u=v=>{switch(v){case"≤0":Object.assign(s.value,{rule:2,withFewYears:1,yearsCount:1,netProfit:0});break;case"≥0":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:0});break;case"五年内有四年以上盈利超过5千万":Object.assign(s.value,{rule:1,withFewYears:5,yearsCount:4,netProfit:.5});break;case"≥10亿":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:10});break;case"≥20亿":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:20});break}},d=()=>{if(s.value.type===void 0){const{label:w,range:C,unit:A}=s.value;if(["",null].includes(C[0])&&["",null].includes(C[1]))return O9.warning("格式错误: 请至少填写一个值");!["",null].includes(C[0])&&!["",null].includes(C[1])?s.value.tagText=`${w}: ${C[0]}${A[0]??""} ~ ${C[1]}${A[1]??""}`:["",null].includes(C[0])?s.value.tagText=`${w}: ≤${C[1]}${A[1]??""}`:s.value.tagText=`${w}: ≥${C[0]}${A[0]??""}`}else if(s.value.key==="st"){const{label:w,st:C}=s.value;if(C===null)return O9.warning("格式错误: 请至少选择一个值");s.value.tagText=`${w}: ${C?"是":"否"}`}else if(s.value.key==="tFeaturelncomes"){const{label:w,rule:C,withFewYears:A,yearsCount:T,netProfit:I}=s.value;if(["",null].includes(A)||["",null].includes(T)||["",null].includes(I))return O9.warning("格式错误: 请填写完整");s.value.tagText=`${w}: ${A}年内${T}年以上盈利${C===1?"超":"跌"}过${I}亿`}else if(s.value.key==="optionsCpType"){const{label:w,optionsCpType:C}=s.value;if(C===null)return O9.warning("格式错误: 请至少选择一个值");s.value.tagText=`${w}: ${C===1?"看涨":"看跌"}`}const v=t.value.findIndex(({key:w})=>w===s.value.key);v===-1?t.value.push(s.value):t.value.splice(v,1,s.value),r.value=!1},h=v=>{t.value.splice(v,1)},m=v=>{o.value=n.value.find(({key:w})=>w===v.key),s.value=v,r.value=!0};return(v,w)=>{const C=My,A=i0,T=dg,I=cg,R=g9,O=WI,V=jI,j=KI,K=Iy;return i.config.show&&n.value.length?(c.openBlock(),c.createElementBlock("div",Bje,[c.createElementVNode("div",zje,[Vje,c.createElementVNode("div",Hje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,G=>(c.openBlock(),c.createElementBlock("span",{key:G.key,onClick:ne=>a(G)},c.toDisplayString(G.label),9,Wje))),128))])]),c.createElementVNode("div",jje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.value,(G,ne)=>(c.openBlock(),c.createBlock(C,{closable:"",type:"info",onClose:ce=>h(ne)},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(G.tagText),1),c.createElementVNode("span",{class:"edit",onClick:ce=>m(G)},"编辑",8,$je)]),_:2},1032,["onClose"]))),256))]),c.createVNode(K,{modelValue:r.value,"onUpdate:modelValue":w[14]||(w[14]=G=>r.value=G),title:o.value.label,width:"600","align-center":"","destroy-on-close":""},{footer:c.withCtx(()=>[c.createElementVNode("div",n$e,[c.createVNode(A,{type:"primary",onClick:d},{default:c.withCtx(()=>[c.createTextVNode("确定")]),_:1})])]),default:c.withCtx(()=>[o.value.type===void 0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[o.value.convenientOptions.length?(c.openBlock(),c.createElementBlock("div",Uje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.convenientOptions,G=>(c.openBlock(),c.createBlock(A,{key:G.text,onClick:ne=>l(G)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(G.text),1)]),_:2},1032,["onClick"]))),128))])):c.createCommentVNode("",!0),c.createElementVNode("div",qje,[Kje,c.createVNode(R,{modelValue:s.value.range[0],"onUpdate:modelValue":w[1]||(w[1]=G=>s.value.range[0]=G),style:{flex:"1"}},c.createSlots({_:2},[o.value.unitOptions.length?{name:"append",fn:c.withCtx(()=>[o.value.unitOptions.length===1?(c.openBlock(),c.createElementBlock("span",Gje,c.toDisplayString(s.value.unit[0]),1)):(c.openBlock(),c.createBlock(I,{key:1,modelValue:s.value.unit[0],"onUpdate:modelValue":w[0]||(w[0]=G=>s.value.unit[0]=G),style:{width:"72px"}},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.unitOptions,G=>(c.openBlock(),c.createBlock(T,{label:G,value:G},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"]),c.createTextVNode(" ~ "),c.createVNode(R,{modelValue:s.value.range[1],"onUpdate:modelValue":w[3]||(w[3]=G=>s.value.range[1]=G),style:{flex:"1"}},c.createSlots({_:2},[o.value.unitOptions.length?{name:"append",fn:c.withCtx(()=>[o.value.unitOptions.length===1?(c.openBlock(),c.createElementBlock("span",Yje,c.toDisplayString(s.value.unit[1]),1)):(c.openBlock(),c.createBlock(I,{key:1,modelValue:s.value.unit[1],"onUpdate:modelValue":w[2]||(w[2]=G=>s.value.unit[1]=G),style:{width:"72px"}},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.unitOptions,G=>(c.openBlock(),c.createBlock(T,{label:G,value:G},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"])])],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[o.value.key==="st"?(c.openBlock(),c.createElementBlock("div",Zje,[c.createVNode(V,{modelValue:s.value.st,"onUpdate:modelValue":w[4]||(w[4]=G=>s.value.st=G)},{default:c.withCtx(()=>[c.createVNode(O,{label:1},{default:c.withCtx(()=>[c.createTextVNode("是")]),_:1}),c.createVNode(O,{label:0},{default:c.withCtx(()=>[c.createTextVNode("否")]),_:1})]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),o.value.key==="tFeaturelncomes"?(c.openBlock(),c.createElementBlock("div",Qje,[c.createElementVNode("div",Xje,[c.createVNode(A,{onClick:w[5]||(w[5]=G=>u("≤0"))},{default:c.withCtx(()=>[c.createTextVNode("≤0")]),_:1}),c.createVNode(A,{onClick:w[6]||(w[6]=G=>u("≥0"))},{default:c.withCtx(()=>[c.createTextVNode("≥0")]),_:1}),c.createVNode(A,{onClick:w[7]||(w[7]=G=>u("五年内有四年以上盈利超过5千万"))},{default:c.withCtx(()=>[c.createTextVNode("五年内有四年以上盈利超过5千万")]),_:1}),c.createVNode(A,{onClick:w[8]||(w[8]=G=>u("≥10亿"))},{default:c.withCtx(()=>[c.createTextVNode("≥10亿")]),_:1}),c.createVNode(A,{onClick:w[9]||(w[9]=G=>u("≥20亿"))},{default:c.withCtx(()=>[c.createTextVNode("≥20亿")]),_:1})]),c.createElementVNode("div",Jje,[e$e,c.createElementVNode("div",null,[c.createVNode(j,{modelValue:s.value.withFewYears,"onUpdate:modelValue":w[10]||(w[10]=G=>s.value.withFewYears=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 年内 "),c.createVNode(j,{modelValue:s.value.yearsCount,"onUpdate:modelValue":w[11]||(w[11]=G=>s.value.yearsCount=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 年以上盈利"+c.toDisplayString(s.value.rule===1?"超":"跌")+"过 ",1),c.createVNode(j,{modelValue:s.value.netProfit,"onUpdate:modelValue":w[12]||(w[12]=G=>s.value.netProfit=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 亿 ")])])])):c.createCommentVNode("",!0),o.value.key==="optionsCpType"?(c.openBlock(),c.createElementBlock("div",t$e,[c.createVNode(V,{modelValue:s.value.optionsCpType,"onUpdate:modelValue":w[13]||(w[13]=G=>s.value.optionsCpType=G)},{default:c.withCtx(()=>[c.createVNode(O,{label:1},{default:c.withCtx(()=>[c.createTextVNode("看涨")]),_:1}),c.createVNode(O,{label:2},{default:c.withCtx(()=>[c.createTextVNode("看跌")]),_:1})]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0)],64))]),_:1},8,["modelValue","title"])])):c.createCommentVNode("",!0)}}},[["__scopeId","data-v-0a691a79"]]),f4t="",Qb=i=>(c.pushScopeId("data-v-931c484e"),i=i(),c.popScopeId(),i),r$e={class:"variety-search"},o$e={key:0,class:"variety-search-row"},s$e={class:"title"},a$e=Qb(()=>c.createElementVNode("span",null,"品种市场: ",-1)),l$e={key:1,class:"variety-search-row"},u$e={class:"title"},c$e=Qb(()=>c.createElementVNode("span",null,"常用选项: ",-1)),d$e={key:2,class:"variety-search-row"},h$e={class:"title"},f$e=Qb(()=>c.createElementVNode("span",null,"自定标签: ",-1)),g$e={key:3,class:"variety-search-row"},m$e={class:"title"},p$e=Qb(()=>c.createElementVNode("span",null,"因子筛选: ",-1)),b$e=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:{}}},{searchData:{default:{varietyMarket:null,commonOption:[],customTag:[],factorScreen:[],commonIndicator:[]}},searchDataModifiers:{}}),emits:["update:searchData"],setup(i,{expose:e}){const t=i,n=c.useModel(i,"searchData"),r=c.computed(()=>{const d={};return Object.keys(xG).forEach(h=>{const m=xG[h],v=t.config[h]??{},w={...m,...v};d[h]=w}),d}),o=c.computed(()=>r.value.varietyMarket.options),s=c.computed(()=>{const{varietyMarket:d}=n.value;if(d){const h=o.value.find(({value:m})=>m===d).memo;return r.value.commonOption.options.filter(({value:m})=>h.includes(m))}else return r.value.commonOption.options});c.watch(()=>s.value,d=>{n.value.commonOption.length&&(n.value.commonOption=n.value.commonOption.filter(h=>d.find(({value:m})=>m===h)))});const a=c.computed(()=>r.value.customTag.options),l=d=>{["commonOption","customTag","factorScreen","commonIndicator"].includes(d)?n.value[d]=[]:n.value[d]=null};return e({formatData:d=>{const h={};d.varietyMarket&&(h.exchangeId=String(d.varietyMarket)),d.commonOption&&d.commonOption.length&&(h.optionId=d.commonOption.join(",")),d.customTag&&d.customTag.length&&(h.tagIds=d.customTag),d.factorScreen&&d.factorScreen.length&&(h.tbFeatureFactorScores=d.factorScreen.map(T=>({freqId:T.cycle,factorId:T.factor,startScore:T.score[0],endScore:T.score[1]})));const m=["expireDays","virtualRealDegree","yearProfitRate","impliedVolatility","levelMultiplier","turnover","volume","openInterest","optionsCpType","optionGear"],v=d.commonIndicator.reduce((T,I)=>{const{key:R,type:O,range:V,unit:j}=I;if(O===void 0&&!m.includes(R)){let[K,G]=V;if(!["",null].includes(K))switch(j[0]){case"亿":K=K*1e8;break;case"千万":K=K*1e7;break;default:K=K;break}if(!["",null].includes(G))switch(j[1]){case"亿":G=G*1e8;break;case"千万":G=G*1e7;break;default:G=G;break}T.push({column:I.key,start:K,end:G})}return T},[]);v.length&&(h.query=v);const w=d.commonIndicator.find(({key:T})=>T==="st");w&&(h.st=w.st);const C=d.commonIndicator.find(({key:T})=>T==="tFeaturelncomes");C&&(h.netProfitQueryDto={...C,netProfit:C.netProfit*1e8});const A={};return d.commonIndicator.forEach(T=>{const{key:I}=T;switch(I){case"expireDays":["",null].includes(T.range[0])||(A.minExpireDays=T.range[0]),["",null].includes(T.range[1])||(A.maxExpireDays=T.range[1]);break;case"virtualRealDegree":["",null].includes(T.range[0])||(A.minVirtualRealDegree=T.range[0]/100),["",null].includes(T.range[1])||(A.maxVirtualRealDegree=T.range[1]/100);break;case"yearProfitRate":["",null].includes(T.range[0])||(A.minYearProfitRate=T.range[0]/100),["",null].includes(T.range[1])||(A.maxYearProfitRate=T.range[1]/100);break;case"impliedVolatility":["",null].includes(T.range[0])||(A.minImpliedVolatility=T.range[0]/100),["",null].includes(T.range[1])||(A.maxImpliedVolatility=T.range[1]/100);break;case"levelMultiplier":["",null].includes(T.range[0])||(A.minLevelMultiplier=T.range[0]),["",null].includes(T.range[1])||(A.maxLevelMultiplier=T.range[1]);break;case"turnover":["",null].includes(T.range[0])||(A.minTurnover=T.range[0]*1e4),["",null].includes(T.range[1])||(A.maxTurnover=T.range[1]*1e4);break;case"volume":["",null].includes(T.range[0])||(A.minVolume=T.range[0]),["",null].includes(T.range[1])||(A.maxVolume=T.range[1]);break;case"openInterest":["",null].includes(T.range[0])||(A.minOpenInterest=T.range[0]),["",null].includes(T.range[1])||(A.maxOpenInterest=T.range[1]);break;case"optionsCpType":A.optionsCpType=T.optionsCpType;break;case"optionGear":["",null].includes(T.range[0])||(A.minOptionGear=T.range[0]),["",null].includes(T.range[1])||(A.maxOptionGear=T.range[1]);break}}),Object.keys(A).length&&(h.searchOptionDto=A),h}}),(d,h)=>{var A,T,I,R;const m=WI,v=jI,w=o0,C=tfe;return c.openBlock(),c.createElementBlock("div",r$e,[(A=r.value.varietyMarket)!=null&&A.show?(c.openBlock(),c.createElementBlock("div",o$e,[c.createElementVNode("div",s$e,[a$e,c.createElementVNode("span",{onClick:h[0]||(h[0]=O=>l("varietyMarket"))},"不限")]),c.createVNode(v,{modelValue:n.value.varietyMarket,"onUpdate:modelValue":h[1]||(h[1]=O=>n.value.varietyMarket=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(m,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(T=r.value.commonOption)!=null&&T.show&&s.value.length?(c.openBlock(),c.createElementBlock("div",l$e,[c.createElementVNode("div",u$e,[c$e,c.createElementVNode("span",{onClick:h[2]||(h[2]=O=>l("commonOption"))},"不限")]),c.createVNode(C,{modelValue:n.value.commonOption,"onUpdate:modelValue":h[3]||(h[3]=O=>n.value.commonOption=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(w,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(I=r.value.customTag)!=null&&I.show&&a.value.length?(c.openBlock(),c.createElementBlock("div",d$e,[c.createElementVNode("div",h$e,[f$e,c.createElementVNode("span",{onClick:h[4]||(h[4]=O=>l("customTag"))},"不限")]),c.createVNode(C,{modelValue:n.value.customTag,"onUpdate:modelValue":h[5]||(h[5]=O=>n.value.customTag=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(w,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(R=r.value.factorScreen)!=null&&R.show?(c.openBlock(),c.createElementBlock("div",g$e,[c.createElementVNode("div",m$e,[p$e,c.createElementVNode("span",{onClick:h[6]||(h[6]=O=>l("factorScreen"))},"不限")]),c.createVNode(Fje,{data:n.value.factorScreen,"onUpdate:data":h[7]||(h[7]=O=>n.value.factorScreen=O),config:r.value.factorScreen},null,8,["data","config"])])):c.createCommentVNode("",!0),c.createVNode(i$e,{data:n.value.commonIndicator,"onUpdate:data":h[8]||(h[8]=O=>n.value.commonIndicator=O),varietyMarket:n.value.varietyMarket,commonOption:n.value.commonOption,config:r.value.commonIndicator},null,8,["data","varietyMarket","commonOption","config"])])}}},[["__scopeId","data-v-931c484e"]]),_$e={install(i){i.component("st-varietySearch",b$e)}},m4t="",p4t="",b4t="",v$e={key:0,class:"footer-box"},y$e={__name:"index",props:c.mergeModels({tableData:{type:Array,default:[]},tableColumn:{type:Array,default:[]},tableLoading:{type:[String,null],default:null},config:{type:Object}},{tableActiveData:{default:()=>[]},tableActiveDataModifiers:{}}),emits:c.mergeModels(["touchBottom"],["update:tableActiveData"]),setup(i,{emit:e}){const t=e,n=i,r=c.computed(()=>({headerHeight:50,rowHeight:50,tableActiveNum:9,tableActiveKey:"id",pageUpDownEnabled:!0,...n.config})),o=c.ref(null),s=c.ref(0);let a=0,l=!1,u=null;const d=c.useModel(i,"tableActiveData"),h=c.computed(()=>d.value.map(T=>T[r.value.tableActiveKey])),m=({rowData:T,rowIndex:I})=>{const{tableActiveNum:R,tableActiveKey:O}=r.value;if(h.value.includes(T[O]))return;const V=Math.floor(I/R)*R,j=V+R;d.value=n.tableData.slice(V,j)},v=({code:T})=>{const{tableData:I}=n,{tableActiveNum:R,tableActiveKey:O,pageUpDownEnabled:V}=r.value;if(!I.length||!V)return;const j=I.findIndex(ce=>ce[O]===h.value.at(0)),K=I.findIndex(ce=>ce[O]===h.value.at(-1));let G=null,ne=null;switch(T){case"PageUp":if(j===0)return;G=j-R>0?j-R:0,ne=G+R-1,d.value=I.slice(G,ne+1),C(G,"PageUp");break;case"PageDown":if(K===I.length-1)return;G=j+R,ne=G+R-1,d.value=I.slice(G,ne+1),C(ne,"PageDown");break}},w=T=>{l||(a===T.scrollLeft&&T.yAxisScrollDir==="backward"&&(s.value=0),a=T.scrollLeft)},C=(T,I)=>{T!==null&&(clearTimeout(u),l=!0,I==="PageUp"?s.value=0:T>=n.tableData.length-1&&(s.value=30,t("touchBottom")),c.nextTick(()=>{o.value.scrollToRow(T),o.value.scrollToLeft(a),u=setTimeout(()=>{l=!1},500)}))},A=({rowData:T})=>{if(!d.value.length)return;let I="";const{tableActiveKey:R}=r.value;return T[R]===h.value[0]&&(I+=" virtual-table-active-start"),h.value.includes(T[R])&&(I+=" virtual-table-active-row"),T[R]===h.value[h.value.length-1]&&(I+=" virtual-table-active-end"),I};return c.onMounted(()=>{window.addEventListener("keydown",v)}),c.watch(()=>n.tableLoading,T=>{T||(s.value=0)}),c.onUnmounted(()=>{window.removeEventListener("keydown",v)}),(T,I)=>{const R=Oy,O=i0,V=qfe,j=Mpe,K=Ipe;return c.openBlock(),c.createBlock(K,null,{default:c.withCtx(({height:G,width:ne})=>[c.createVNode(j,{ref_key:"tableRef",ref:o,id:"virtualTable",fixed:"",data:i.tableData,columns:i.tableColumn,width:ne,height:G,"header-height":r.value.headerHeight,"row-height":r.value.rowHeight,"row-class":A,"row-event-handlers":{onClick:m},"footer-height":s.value,"scrollbar-always-on":"",onScroll:w,onEndReached:I[0]||(I[0]=ce=>C(i.tableData.length-1,"PageDown"))},{empty:c.withCtx(()=>[c.createVNode(R,{description:"暂无数据",style:{height:"100%"}})]),footer:c.withCtx(()=>[s.value?(c.openBlock(),c.createElementBlock("div",v$e,[i.tableLoading==="more"?(c.openBlock(),c.createBlock(V,{key:0},{default:c.withCtx(()=>[c.createVNode(O,{type:"primary",text:"",loading:""},{default:c.withCtx(()=>[c.createTextVNode("正在加载更多数据")]),_:1})]),_:1})):i.tableLoading==="all"?(c.openBlock(),c.createBlock(V,{key:1},{default:c.withCtx(()=>[c.createTextVNode(" 已无更多数据 ")]),_:1})):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),_:2},1032,["data","columns","width","height","header-height","row-height","row-event-handlers","footer-height"])]),_:1})}}},_4t="",w$e=lo(y$e,[["__scopeId","data-v-7e702a8a"]]),C$e={install(i){i.component("st-virtualTable",w$e)}},S$e={install(i){t5e.install(i),o5e.install(i),l5e.install(i),H_e.install(i),tve.install(i),uve.install(i),fve.install(i),_je.install(i),wje.install(i),xje.install(i),Lje.install(i),Aje.install(i),_$e.install(i),C$e.install(i)}};/*!-----------------------------------------------------------------------------
|
|
796
|
+
${u.data.colorValue}`}}],data:o.data.map(u=>({...u,itemStyle:{color:u.color},children:u.children.map(d=>({...d,itemStyle:{color:d.color}}))}))}]},!0)};return e({reset:()=>{l()}}),(u,d)=>(c.openBlock(),c.createElementBlock("div",{ref_key:"chartRef",ref:s,class:"chart"},null,512))}}),e4t="",kje=lo(Eje,[["__scopeId","data-v-ab677899"]]),Aje={install(i){i.component("st-treeMap",kje)}},t4t="",n4t="",i4t="",xG={varietyMarket:{show:!0,options:[{label:"ETF",value:2,memo:[]},{label:"A股",value:3,memo:[4,6,12,13,14,15]},{label:"期货",value:4,memo:[1,2,3,5,7,8,9,10]},{label:"港股",value:5,memo:[4,6,14]},{label:"外盘",value:6,memo:[1,2,3,5,7,8,9,10]},{label:"美股",value:7,memo:[4,6,14]},{label:"期权",value:8,memo:[11]}]},commonOption:{show:!0,options:[{label:"期货主连",value:1},{label:"期货主力",value:2},{label:"期货加权",value:3},{label:"常用股票指数",value:4},{label:"期货收益率指数",value:5},{label:"股票板块指数",value:6},{label:"次主力合约",value:7},{label:"期货次主连",value:8},{label:"期货板块收益率指数",value:9},{label:"期货板块加权指数",value:10},{label:"期权",value:11},{label:"板块价差指数",value:12},{label:"行业板块指数",value:13},{label:"个股",value:14},{label:"概念板块指数",value:15}]},customTag:{show:!0,options:[]},factorScreen:{show:!0,cycleDefault:null,cycleOptions:[],cycleShow:!0,factorOptions:[]},commonIndicator:{show:!0,options:[{key:"marketCapital",label:"总市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,25],unit:["亿","亿"],text:"≤25亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[20,50],unit:["亿","亿"],text:"20亿~50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"floatMarketCapital",label:"流通市值",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,20],unit:["亿","亿"],text:"≤20亿"},{range:[null,50],unit:["亿","亿"],text:"≤50亿"},{range:[null,100],unit:["亿","亿"],text:"≤100亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"},{range:[200,null],unit:["亿","亿"],text:"≥200亿"},{range:[500,null],unit:["亿","亿"],text:"≥500亿"},{range:[1e3,null],unit:["亿","亿"],text:"≥1000亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"totalShares",label:"总股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[null,75],unit:["亿","亿"],text:"≤75亿"},{range:[10,75],unit:["亿","亿"],text:"10亿~75亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"freeFloatShares",label:"流通股本",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,5],unit:["千万","千万"],text:"≤5千万"},{range:[5,3],unit:["千万","亿"],text:"5千万~3亿"},{range:[null,5],unit:["亿","亿"],text:"≤5亿"},{range:[null,10],unit:["亿","亿"],text:"≤10亿"},{range:[8,30],unit:["亿","亿"],text:"8亿~30亿"},{range:[30,null],unit:["亿","亿"],text:"≥30亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"turnoverRate",label:"换手率(实)",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"peTtm",label:"市盈率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,0],unit:[],text:"亏损"},{range:[0,null],unit:[],text:"≥0"},{range:[0,20],unit:[],text:"0~20"},{range:[20,40],unit:[],text:"20~40"},{range:[40,100],unit:[],text:"40~100"},{range:[100,null],unit:[],text:"≥100"}],defaultUnit:[],unitOptions:[]},{key:"eps",label:"每股净收益",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,0],unit:["元","元"],text:"≤0"},{range:[0,null],unit:["元","元"],text:"≥0"},{range:[.2,null],unit:["元","元"],text:"≥0.2元"},{range:[.5,null],unit:["元","元"],text:"≥0.5元"},{range:[1,null],unit:["元","元"],text:"≥1元"},{range:[2,null],unit:["元","元"],text:"≥2元"}],defaultUnit:["元","元"],unitOptions:["元"]},{key:"st",label:"是否ST",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},type:"custom"},{key:"pb",label:"市净率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,null],unit:[],text:"≥0"},{range:[0,1],unit:[],text:"0~1"},{range:[1,2],unit:[],text:"1~2"},{range:[0,3],unit:[],text:"0~3"},{range:[3,null],unit:[],text:"≥3"}],defaultUnit:[],unitOptions:[]},{key:"mnShr",label:"成交额",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[0,1],unit:["亿","亿"],text:"0~1亿"},{range:[0,5],unit:["亿","亿"],text:"0~5亿"},{range:[0,10],unit:["亿","亿"],text:"0~10亿"},{range:[10,null],unit:["亿","亿"],text:"≥10亿"},{range:[50,null],unit:["亿","亿"],text:"≥50亿"},{range:[100,null],unit:["亿","亿"],text:"≥100亿"}],defaultUnit:["亿","亿"],unitOptions:["元","千万","亿"]},{key:"roe",label:"净资产收益率roe",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,0],unit:["%","%"],text:"<0"},{range:[0,null],unit:["%","%"],text:">0"},{range:[10,null],unit:["%","%"],text:">10%"},{range:[15,null],unit:["%","%"],text:">15%"},{range:[20,null],unit:["%","%"],text:">20%"},{range:[30,null],unit:["%","%"],text:">30%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"tFeaturelncomes",label:"净利润",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},type:"custom"},{key:"dividendYield",label:"股息率",parent:{varietyMarketIds:[3,5,7],commonOptionIds:[4,6,12,13,14,15]},convenientOptions:[{range:[null,1],unit:["%","%"],text:"≤1%"},{range:[1,5],unit:["%","%"],text:"1%~5%"},{range:[5,10],unit:["%","%"],text:"5%~10%"},{range:[10,null],unit:["%","%"],text:"≥10%"}],defaultUnit:["%","%"],unitOptions:["%"]},{key:"expireDays",label:"过期天数",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["天","天"],unitOptions:["天"]},{key:"virtualRealDegree",label:"虚实度",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"yearProfitRate",label:"年化收益率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"impliedVolatility",label:"隐含波动率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["%","%"],unitOptions:["%"]},{key:"levelMultiplier",label:"杠杆率",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"turnover",label:"成交额(期权)",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:["万","万"],unitOptions:["万"]},{key:"volume",label:"成交量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"openInterest",label:"持仓量",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]},{key:"optionsCpType",label:"认沽认购",parent:{varietyMarketIds:[8],commonOptionIds:[11]},type:"custom"},{key:"optionGear",label:"期权档位",parent:{varietyMarketIds:[8],commonOptionIds:[11]},convenientOptions:[],defaultUnit:[],unitOptions:[]}]}},r4t="",o4t="",s4t="",a4t="",Tje=i=>(c.pushScopeId("data-v-a6a3b89f"),i=i(),c.popScopeId(),i),Mje={class:"factor-screen"},Ije={class:"form-row"},Rje={style:{display:"flex","align-items":"center",width:"100%",height:"24px"}},Oje=Tje(()=>c.createElementVNode("span",null,"~",-1)),Pje={class:"dialog-footer"},Fje=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:()=>{}}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(i){const e=i,t=c.useModel(i,"data"),n=c.ref(!1),r=c.ref(null),o=c.ref({factorScreen:[{cycle:e.config.cycleDefault??null,factor:null,score:[null,null]}]}),s=(v,w,C)=>{!w[0]&&w[0]!==0&&!w[1]&&w[1]!==0?C(new Error("至少填写一个分数")):C()},a=()=>{t.value.length>0?o.value.factorScreen=JSON.parse(JSON.stringify(t.value)):o.value.factorScreen=[{cycle:e.config.cycleDefault??null,factor:null,score:[null,null]}],n.value=!0},l=v=>{t.value.splice(v,1)},u=()=>{o.value.factorScreen.push({cycle:e.config.cycleDefault??null,factor:null,score:[null,null]})},d=v=>{o.value.factorScreen.splice(v,1)},h=()=>{r.value&&r.value.validate(v=>{v?(t.value=JSON.parse(JSON.stringify(o.value.factorScreen)),n.value=!1):console.error("因子筛选-弹窗: 表单校验未通过")})},m=v=>{const{cycle:w,factor:C,score:A}=v;let T="";return T+=` ${e.config.cycleOptions.find(({value:I})=>I===w).label}`,T+=` ${e.config.factorOptions.find(({value:I})=>I===C).label}`,T+=` ${A[0]||A[0]===0?`${A[0]}分`:"∞"}`,T+=" ~",T+=` ${A[1]||A[1]===0?`${A[1]}分`:"∞"}`,T};return(v,w)=>{const C=My,A=i0,T=dg,I=cg,R=Mhe,O=KI,V=kr,j=The,K=Iy;return c.openBlock(),c.createElementBlock("div",Mje,[t.value.length?(c.openBlock(!0),c.createElementBlock(c.Fragment,{key:0},c.renderList(t.value,(G,ne)=>(c.openBlock(),c.createBlock(C,{closable:"",type:"info",onClose:ce=>l(ne)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(m(G)),1)]),_:2},1032,["onClose"]))),256)):c.createCommentVNode("",!0),c.createVNode(A,{class:"screen-btn",type:"primary",plain:"",size:"small",icon:c.unref(Bv),onClick:a},{default:c.withCtx(()=>[c.createTextVNode("添加因子")]),_:1},8,["icon"]),c.createVNode(K,{modelValue:n.value,"onUpdate:modelValue":w[0]||(w[0]=G=>n.value=G),title:"因子筛选",width:"500","align-center":"","destroy-on-close":""},{footer:c.withCtx(()=>[c.createElementVNode("div",Pje,[c.createVNode(A,{type:"primary",onClick:h},{default:c.withCtx(()=>[c.createTextVNode("确定")]),_:1})])]),default:c.withCtx(()=>[c.createVNode(j,{ref_key:"dialogFormRef",ref:r,model:o.value},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.factorScreen,(G,ne)=>(c.openBlock(),c.createElementBlock("div",Ije,[i.config.cycleShow?(c.openBlock(),c.createBlock(R,{key:0,prop:"factorScreen."+ne+".cycle",rules:{required:!0,message:"周期不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createVNode(I,{modelValue:G.cycle,"onUpdate:modelValue":ce=>G.cycle=ce,placeholder:"选择周期",size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.config.cycleOptions,({label:ce,value:le})=>(c.openBlock(),c.createBlock(T,{label:ce,value:le,key:le},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):c.createCommentVNode("",!0),c.createVNode(R,{prop:"factorScreen."+ne+".factor",rules:{required:!0,message:"因子不能为空",trigger:"blur"},style:{width:"100px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createVNode(I,{modelValue:G.factor,"onUpdate:modelValue":ce=>G.factor=ce,placeholder:"选择因子",filterable:"",size:"small","no-match-text":"无匹配数据"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(i.config.factorOptions,({label:ce,value:le})=>(c.openBlock(),c.createBlock(T,{label:ce,value:le,key:le},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"]),c.createVNode(R,{prop:"factorScreen."+ne+".score",rules:{validator:s,trigger:"blur"},style:{width:"200px","margin-right":"10px"}},{default:c.withCtx(()=>[c.createElementVNode("div",Rje,[c.createVNode(O,{modelValue:G.score[0],"onUpdate:modelValue":ce=>G.score[0]=ce,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"]),Oje,c.createVNode(O,{modelValue:G.score[1],"onUpdate:modelValue":ce=>G.score[1]=ce,size:"small","controls-position":"right"},null,8,["modelValue","onUpdate:modelValue"])])]),_:2},1032,["prop","rules"]),c.createVNode(V,{onClick:ce=>d(ne)},{default:c.withCtx(()=>[c.createVNode(c.unref(Rv))]),_:2},1032,["onClick"])]))),256)),c.createVNode(A,{type:"primary",plain:"",size:"small",icon:c.unref(Bv),onClick:u},{default:c.withCtx(()=>[c.createTextVNode("添加因子")]),_:1},8,["icon"])]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}},[["__scopeId","data-v-a6a3b89f"]]),u4t="",c4t="",d4t="",QE=i=>(c.pushScopeId("data-v-0a691a79"),i=i(),c.popScopeId(),i),Bje={key:0,class:"common-indicator"},zje={class:"indicator"},Vje=QE(()=>c.createElementVNode("div",{class:"title"},[c.createElementVNode("span",null,"常用指标: "),c.createElementVNode("span",null,"不限")],-1)),Hje={class:"options"},Wje=["onClick"],jje={class:"tags"},$je=["onClick"],Uje={key:0,class:"convenient-option-box"},qje={class:"out-box"},Kje=QE(()=>c.createElementVNode("span",null,"自定义: ",-1)),Gje={key:0},Yje={key:0},Zje={key:0},Qje={key:1},Xje={class:"tFeaturelncomes-option-box"},Jje={class:"tFeaturelncomes-out-box"},e$e=QE(()=>c.createElementVNode("span",null,"自定义: ",-1)),t$e={key:2},n$e={class:"dialog-footer"},i$e=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:()=>{}},varietyMarket:{type:Number,default:()=>null},commonOption:{type:Array,default:()=>[]}},{data:{default:[]},dataModifiers:{}}),emits:["update:data"],setup(i){const e=i,t=c.useModel(i,"data"),n=c.computed(()=>{let v=[];return e.varietyMarket===null&&!e.commonOption.length?v=e.config.options:(v=e.config.options,e.varietyMarket&&(v=v.filter(({parent:w})=>w.varietyMarketIds.includes(e.varietyMarket))),e.commonOption.length&&(v=v.filter(({parent:w})=>{const{commonOptionIds:C}=w;return[...new Set([...C,...e.commonOption])].length!==[...C,...e.commonOption].length}))),v});c.watch(()=>n.value,()=>{t.value.length&&(t.value=t.value.filter(({key:v})=>n.value.find(w=>w.key===v)))});const r=c.ref(!1),o=c.ref({}),s=c.ref({}),a=v=>{o.value=v;const w={label:v.label,key:v.key,type:v.type};v.type===void 0?s.value={...w,range:[null,null],unit:v.defaultUnit.length?[...v.defaultUnit]:[null,null]}:v.key==="st"?s.value={...w,st:null}:v.key==="tFeaturelncomes"?s.value={...w,rule:1,withFewYears:null,yearsCount:null,netProfit:null}:v.key==="optionsCpType"&&(s.value={...w,optionsCpType:null}),r.value=!0},l=v=>{s.value.range=[...v.range],s.value.unit=[...v.unit]},u=v=>{switch(v){case"≤0":Object.assign(s.value,{rule:2,withFewYears:1,yearsCount:1,netProfit:0});break;case"≥0":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:0});break;case"五年内有四年以上盈利超过5千万":Object.assign(s.value,{rule:1,withFewYears:5,yearsCount:4,netProfit:.5});break;case"≥10亿":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:10});break;case"≥20亿":Object.assign(s.value,{rule:1,withFewYears:1,yearsCount:1,netProfit:20});break}},d=()=>{if(s.value.type===void 0){const{label:w,range:C,unit:A}=s.value;if(["",null].includes(C[0])&&["",null].includes(C[1]))return O9.warning("格式错误: 请至少填写一个值");!["",null].includes(C[0])&&!["",null].includes(C[1])?s.value.tagText=`${w}: ${C[0]}${A[0]??""} ~ ${C[1]}${A[1]??""}`:["",null].includes(C[0])?s.value.tagText=`${w}: ≤${C[1]}${A[1]??""}`:s.value.tagText=`${w}: ≥${C[0]}${A[0]??""}`}else if(s.value.key==="st"){const{label:w,st:C}=s.value;if(C===null)return O9.warning("格式错误: 请至少选择一个值");s.value.tagText=`${w}: ${C?"是":"否"}`}else if(s.value.key==="tFeaturelncomes"){const{label:w,rule:C,withFewYears:A,yearsCount:T,netProfit:I}=s.value;if(["",null].includes(A)||["",null].includes(T)||["",null].includes(I))return O9.warning("格式错误: 请填写完整");s.value.tagText=`${w}: ${A}年内${T}年以上盈利${C===1?"超":"跌"}过${I}亿`}else if(s.value.key==="optionsCpType"){const{label:w,optionsCpType:C}=s.value;if(C===null)return O9.warning("格式错误: 请至少选择一个值");s.value.tagText=`${w}: ${C===1?"看涨":"看跌"}`}const v=t.value.findIndex(({key:w})=>w===s.value.key);v===-1?t.value.push(s.value):t.value.splice(v,1,s.value),r.value=!1},h=v=>{t.value.splice(v,1)},m=v=>{o.value=n.value.find(({key:w})=>w===v.key),s.value=v,r.value=!0};return(v,w)=>{const C=My,A=i0,T=dg,I=cg,R=g9,O=WI,V=jI,j=KI,K=Iy;return i.config.show&&n.value.length?(c.openBlock(),c.createElementBlock("div",Bje,[c.createElementVNode("div",zje,[Vje,c.createElementVNode("div",Hje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(n.value,G=>(c.openBlock(),c.createElementBlock("span",{key:G.key,onClick:ne=>a(G)},c.toDisplayString(G.label),9,Wje))),128))])]),c.createElementVNode("div",jje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.value,(G,ne)=>(c.openBlock(),c.createBlock(C,{closable:"",type:"info",onClose:ce=>h(ne)},{default:c.withCtx(()=>[c.createElementVNode("span",null,c.toDisplayString(G.tagText),1),c.createElementVNode("span",{class:"edit",onClick:ce=>m(G)},"编辑",8,$je)]),_:2},1032,["onClose"]))),256))]),c.createVNode(K,{modelValue:r.value,"onUpdate:modelValue":w[14]||(w[14]=G=>r.value=G),title:o.value.label,width:"600","align-center":"","destroy-on-close":""},{footer:c.withCtx(()=>[c.createElementVNode("div",n$e,[c.createVNode(A,{type:"primary",onClick:d},{default:c.withCtx(()=>[c.createTextVNode("确定")]),_:1})])]),default:c.withCtx(()=>[o.value.type===void 0?(c.openBlock(),c.createElementBlock(c.Fragment,{key:0},[o.value.convenientOptions.length?(c.openBlock(),c.createElementBlock("div",Uje,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.convenientOptions,G=>(c.openBlock(),c.createBlock(A,{key:G.text,onClick:ne=>l(G)},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(G.text),1)]),_:2},1032,["onClick"]))),128))])):c.createCommentVNode("",!0),c.createElementVNode("div",qje,[Kje,c.createVNode(R,{modelValue:s.value.range[0],"onUpdate:modelValue":w[1]||(w[1]=G=>s.value.range[0]=G),style:{flex:"1"}},c.createSlots({_:2},[o.value.unitOptions.length?{name:"append",fn:c.withCtx(()=>[o.value.unitOptions.length===1?(c.openBlock(),c.createElementBlock("span",Gje,c.toDisplayString(s.value.unit[0]),1)):(c.openBlock(),c.createBlock(I,{key:1,modelValue:s.value.unit[0],"onUpdate:modelValue":w[0]||(w[0]=G=>s.value.unit[0]=G),style:{width:"72px"}},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.unitOptions,G=>(c.openBlock(),c.createBlock(T,{label:G,value:G},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"]),c.createTextVNode(" ~ "),c.createVNode(R,{modelValue:s.value.range[1],"onUpdate:modelValue":w[3]||(w[3]=G=>s.value.range[1]=G),style:{flex:"1"}},c.createSlots({_:2},[o.value.unitOptions.length?{name:"append",fn:c.withCtx(()=>[o.value.unitOptions.length===1?(c.openBlock(),c.createElementBlock("span",Yje,c.toDisplayString(s.value.unit[1]),1)):(c.openBlock(),c.createBlock(I,{key:1,modelValue:s.value.unit[1],"onUpdate:modelValue":w[2]||(w[2]=G=>s.value.unit[1]=G),style:{width:"72px"}},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value.unitOptions,G=>(c.openBlock(),c.createBlock(T,{label:G,value:G},null,8,["label","value"]))),256))]),_:1},8,["modelValue"]))]),key:"0"}:void 0]),1032,["modelValue"])])],64)):(c.openBlock(),c.createElementBlock(c.Fragment,{key:1},[o.value.key==="st"?(c.openBlock(),c.createElementBlock("div",Zje,[c.createVNode(V,{modelValue:s.value.st,"onUpdate:modelValue":w[4]||(w[4]=G=>s.value.st=G)},{default:c.withCtx(()=>[c.createVNode(O,{label:1},{default:c.withCtx(()=>[c.createTextVNode("是")]),_:1}),c.createVNode(O,{label:0},{default:c.withCtx(()=>[c.createTextVNode("否")]),_:1})]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),o.value.key==="tFeaturelncomes"?(c.openBlock(),c.createElementBlock("div",Qje,[c.createElementVNode("div",Xje,[c.createVNode(A,{onClick:w[5]||(w[5]=G=>u("≤0"))},{default:c.withCtx(()=>[c.createTextVNode("≤0")]),_:1}),c.createVNode(A,{onClick:w[6]||(w[6]=G=>u("≥0"))},{default:c.withCtx(()=>[c.createTextVNode("≥0")]),_:1}),c.createVNode(A,{onClick:w[7]||(w[7]=G=>u("五年内有四年以上盈利超过5千万"))},{default:c.withCtx(()=>[c.createTextVNode("五年内有四年以上盈利超过5千万")]),_:1}),c.createVNode(A,{onClick:w[8]||(w[8]=G=>u("≥10亿"))},{default:c.withCtx(()=>[c.createTextVNode("≥10亿")]),_:1}),c.createVNode(A,{onClick:w[9]||(w[9]=G=>u("≥20亿"))},{default:c.withCtx(()=>[c.createTextVNode("≥20亿")]),_:1})]),c.createElementVNode("div",Jje,[e$e,c.createElementVNode("div",null,[c.createVNode(j,{modelValue:s.value.withFewYears,"onUpdate:modelValue":w[10]||(w[10]=G=>s.value.withFewYears=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 年内 "),c.createVNode(j,{modelValue:s.value.yearsCount,"onUpdate:modelValue":w[11]||(w[11]=G=>s.value.yearsCount=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 年以上盈利"+c.toDisplayString(s.value.rule===1?"超":"跌")+"过 ",1),c.createVNode(j,{modelValue:s.value.netProfit,"onUpdate:modelValue":w[12]||(w[12]=G=>s.value.netProfit=G),"controls-position":"right"},null,8,["modelValue"]),c.createTextVNode(" 亿 ")])])])):c.createCommentVNode("",!0),o.value.key==="optionsCpType"?(c.openBlock(),c.createElementBlock("div",t$e,[c.createVNode(V,{modelValue:s.value.optionsCpType,"onUpdate:modelValue":w[13]||(w[13]=G=>s.value.optionsCpType=G)},{default:c.withCtx(()=>[c.createVNode(O,{label:1},{default:c.withCtx(()=>[c.createTextVNode("看涨")]),_:1}),c.createVNode(O,{label:2},{default:c.withCtx(()=>[c.createTextVNode("看跌")]),_:1})]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0)],64))]),_:1},8,["modelValue","title"])])):c.createCommentVNode("",!0)}}},[["__scopeId","data-v-0a691a79"]]),f4t="",Qb=i=>(c.pushScopeId("data-v-6e54eaf3"),i=i(),c.popScopeId(),i),r$e={class:"variety-search"},o$e={key:0,class:"variety-search-row"},s$e={class:"title"},a$e=Qb(()=>c.createElementVNode("span",null,"品种市场: ",-1)),l$e={key:1,class:"variety-search-row"},u$e={class:"title"},c$e=Qb(()=>c.createElementVNode("span",null,"常用选项: ",-1)),d$e={key:2,class:"variety-search-row"},h$e={class:"title"},f$e=Qb(()=>c.createElementVNode("span",null,"自定标签: ",-1)),g$e={key:3,class:"variety-search-row"},m$e={class:"title"},p$e=Qb(()=>c.createElementVNode("span",null,"因子筛选: ",-1)),b$e=lo({__name:"index",props:c.mergeModels({config:{type:Object,default:{}}},{searchData:{default:{varietyMarket:null,commonOption:[],customTag:[],factorScreen:[],commonIndicator:[]}},searchDataModifiers:{}}),emits:["update:searchData"],setup(i,{expose:e}){const t=i,n=c.useModel(i,"searchData"),r=c.computed(()=>{const d={};return Object.keys(xG).forEach(h=>{const m=xG[h],v=t.config[h]??{},w={...m,...v};d[h]=w}),d}),o=c.computed(()=>r.value.varietyMarket.options),s=c.computed(()=>{const{varietyMarket:d}=n.value;if(d){const h=o.value.find(({value:m})=>m===d).memo;return r.value.commonOption.options.filter(({value:m})=>h.includes(m))}else return r.value.commonOption.options});c.watch(()=>s.value,d=>{n.value.commonOption.length&&(n.value.commonOption=n.value.commonOption.filter(h=>d.find(({value:m})=>m===h)))});const a=c.computed(()=>r.value.customTag.options),l=d=>{["commonOption","customTag","factorScreen","commonIndicator"].includes(d)?n.value[d]=[]:n.value[d]=null};return e({formatData:d=>{const h={};d.varietyMarket&&(h.exchangeId=String(d.varietyMarket)),d.commonOption&&d.commonOption.length&&(h.optionId=d.commonOption.join(",")),d.customTag&&d.customTag.length&&(h.tagIds=d.customTag),d.factorScreen&&d.factorScreen.length&&(h.tbFeatureFactorScores=d.factorScreen.map(T=>({freqId:T.cycle,factorId:T.factor,startScore:T.score[0],endScore:T.score[1]})));const m=["expireDays","virtualRealDegree","yearProfitRate","impliedVolatility","levelMultiplier","turnover","volume","openInterest","optionsCpType","optionGear"],v=d.commonIndicator.reduce((T,I)=>{const{key:R,type:O,range:V,unit:j}=I;if(R==="dividendYield"){let[K,G]=V;["",null].includes(K)||(K=K/100),["",null].includes(G)||(G=G/100),T.push({column:I.key,start:K,end:G})}else if(O===void 0&&!m.includes(R)){let[K,G]=V;if(!["",null].includes(K))switch(j[0]){case"亿":K=K*1e8;break;case"千万":K=K*1e7;break;default:K=K;break}if(!["",null].includes(G))switch(j[1]){case"亿":G=G*1e8;break;case"千万":G=G*1e7;break;default:G=G;break}T.push({column:I.key,start:K,end:G})}return T},[]);v.length&&(h.query=v);const w=d.commonIndicator.find(({key:T})=>T==="st");w&&(h.st=w.st);const C=d.commonIndicator.find(({key:T})=>T==="tFeaturelncomes");C&&(h.netProfitQueryDto={...C,netProfit:C.netProfit*1e8});const A={};return d.commonIndicator.forEach(T=>{const{key:I}=T;switch(I){case"expireDays":["",null].includes(T.range[0])||(A.minExpireDays=T.range[0]),["",null].includes(T.range[1])||(A.maxExpireDays=T.range[1]);break;case"virtualRealDegree":["",null].includes(T.range[0])||(A.minVirtualRealDegree=T.range[0]/100),["",null].includes(T.range[1])||(A.maxVirtualRealDegree=T.range[1]/100);break;case"yearProfitRate":["",null].includes(T.range[0])||(A.minYearProfitRate=T.range[0]/100),["",null].includes(T.range[1])||(A.maxYearProfitRate=T.range[1]/100);break;case"impliedVolatility":["",null].includes(T.range[0])||(A.minImpliedVolatility=T.range[0]/100),["",null].includes(T.range[1])||(A.maxImpliedVolatility=T.range[1]/100);break;case"levelMultiplier":["",null].includes(T.range[0])||(A.minLevelMultiplier=T.range[0]),["",null].includes(T.range[1])||(A.maxLevelMultiplier=T.range[1]);break;case"turnover":["",null].includes(T.range[0])||(A.minTurnover=T.range[0]*1e4),["",null].includes(T.range[1])||(A.maxTurnover=T.range[1]*1e4);break;case"volume":["",null].includes(T.range[0])||(A.minVolume=T.range[0]),["",null].includes(T.range[1])||(A.maxVolume=T.range[1]);break;case"openInterest":["",null].includes(T.range[0])||(A.minOpenInterest=T.range[0]),["",null].includes(T.range[1])||(A.maxOpenInterest=T.range[1]);break;case"optionsCpType":A.optionsCpType=T.optionsCpType;break;case"optionGear":["",null].includes(T.range[0])||(A.minOptionGear=T.range[0]),["",null].includes(T.range[1])||(A.maxOptionGear=T.range[1]);break}}),Object.keys(A).length&&(h.searchOptionDto=A),h}}),(d,h)=>{var A,T,I,R;const m=WI,v=jI,w=o0,C=tfe;return c.openBlock(),c.createElementBlock("div",r$e,[(A=r.value.varietyMarket)!=null&&A.show?(c.openBlock(),c.createElementBlock("div",o$e,[c.createElementVNode("div",s$e,[a$e,c.createElementVNode("span",{onClick:h[0]||(h[0]=O=>l("varietyMarket"))},"不限")]),c.createVNode(v,{modelValue:n.value.varietyMarket,"onUpdate:modelValue":h[1]||(h[1]=O=>n.value.varietyMarket=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(o.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(m,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(T=r.value.commonOption)!=null&&T.show&&s.value.length?(c.openBlock(),c.createElementBlock("div",l$e,[c.createElementVNode("div",u$e,[c$e,c.createElementVNode("span",{onClick:h[2]||(h[2]=O=>l("commonOption"))},"不限")]),c.createVNode(C,{modelValue:n.value.commonOption,"onUpdate:modelValue":h[3]||(h[3]=O=>n.value.commonOption=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(w,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(I=r.value.customTag)!=null&&I.show&&a.value.length?(c.openBlock(),c.createElementBlock("div",d$e,[c.createElementVNode("div",h$e,[f$e,c.createElementVNode("span",{onClick:h[4]||(h[4]=O=>l("customTag"))},"不限")]),c.createVNode(C,{modelValue:n.value.customTag,"onUpdate:modelValue":h[5]||(h[5]=O=>n.value.customTag=O),size:"small"},{default:c.withCtx(()=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(a.value,({label:O,value:V})=>(c.openBlock(),c.createBlock(w,{label:V,key:V},{default:c.withCtx(()=>[c.createTextVNode(c.toDisplayString(O),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])])):c.createCommentVNode("",!0),(R=r.value.factorScreen)!=null&&R.show?(c.openBlock(),c.createElementBlock("div",g$e,[c.createElementVNode("div",m$e,[p$e,c.createElementVNode("span",{onClick:h[6]||(h[6]=O=>l("factorScreen"))},"不限")]),c.createVNode(Fje,{data:n.value.factorScreen,"onUpdate:data":h[7]||(h[7]=O=>n.value.factorScreen=O),config:r.value.factorScreen},null,8,["data","config"])])):c.createCommentVNode("",!0),c.createVNode(i$e,{data:n.value.commonIndicator,"onUpdate:data":h[8]||(h[8]=O=>n.value.commonIndicator=O),varietyMarket:n.value.varietyMarket,commonOption:n.value.commonOption,config:r.value.commonIndicator},null,8,["data","varietyMarket","commonOption","config"])])}}},[["__scopeId","data-v-6e54eaf3"]]),_$e={install(i){i.component("st-varietySearch",b$e)}},m4t="",p4t="",b4t="",v$e={key:0,class:"footer-box"},y$e={__name:"index",props:c.mergeModels({tableData:{type:Array,default:[]},tableColumn:{type:Array,default:[]},tableLoading:{type:[String,null],default:null},config:{type:Object}},{tableActiveData:{default:()=>[]},tableActiveDataModifiers:{}}),emits:c.mergeModels(["touchBottom"],["update:tableActiveData"]),setup(i,{emit:e}){const t=e,n=i,r=c.computed(()=>({headerHeight:50,rowHeight:50,tableActiveNum:9,tableActiveKey:"id",pageUpDownEnabled:!0,...n.config})),o=c.ref(null),s=c.ref(0);let a=0,l=!1,u=null;const d=c.useModel(i,"tableActiveData"),h=c.computed(()=>d.value.map(T=>T[r.value.tableActiveKey])),m=({rowData:T,rowIndex:I})=>{const{tableActiveNum:R,tableActiveKey:O}=r.value;if(h.value.includes(T[O]))return;const V=Math.floor(I/R)*R,j=V+R;d.value=n.tableData.slice(V,j)},v=({code:T})=>{const{tableData:I}=n,{tableActiveNum:R,tableActiveKey:O,pageUpDownEnabled:V}=r.value;if(!I.length||!V)return;const j=I.findIndex(ce=>ce[O]===h.value.at(0)),K=I.findIndex(ce=>ce[O]===h.value.at(-1));let G=null,ne=null;switch(T){case"PageUp":if(j===0)return;G=j-R>0?j-R:0,ne=G+R-1,d.value=I.slice(G,ne+1),C(G,"PageUp");break;case"PageDown":if(K===I.length-1)return;G=j+R,ne=G+R-1,d.value=I.slice(G,ne+1),C(ne,"PageDown");break}},w=T=>{l||(a===T.scrollLeft&&T.yAxisScrollDir==="backward"&&(s.value=0),a=T.scrollLeft)},C=(T,I)=>{T!==null&&(clearTimeout(u),l=!0,I==="PageUp"?s.value=0:T>=n.tableData.length-1&&(s.value=30,t("touchBottom")),c.nextTick(()=>{o.value.scrollToRow(T),o.value.scrollToLeft(a),u=setTimeout(()=>{l=!1},500)}))},A=({rowData:T})=>{if(!d.value.length)return;let I="";const{tableActiveKey:R}=r.value;return T[R]===h.value[0]&&(I+=" virtual-table-active-start"),h.value.includes(T[R])&&(I+=" virtual-table-active-row"),T[R]===h.value[h.value.length-1]&&(I+=" virtual-table-active-end"),I};return c.onMounted(()=>{window.addEventListener("keydown",v)}),c.watch(()=>n.tableLoading,T=>{T||(s.value=0)}),c.onUnmounted(()=>{window.removeEventListener("keydown",v)}),(T,I)=>{const R=Oy,O=i0,V=qfe,j=Mpe,K=Ipe;return c.openBlock(),c.createBlock(K,null,{default:c.withCtx(({height:G,width:ne})=>[c.createVNode(j,{ref_key:"tableRef",ref:o,id:"virtualTable",fixed:"",data:i.tableData,columns:i.tableColumn,width:ne,height:G,"header-height":r.value.headerHeight,"row-height":r.value.rowHeight,"row-class":A,"row-event-handlers":{onClick:m},"footer-height":s.value,"scrollbar-always-on":"",onScroll:w,onEndReached:I[0]||(I[0]=ce=>C(i.tableData.length-1,"PageDown"))},{empty:c.withCtx(()=>[c.createVNode(R,{description:"暂无数据",style:{height:"100%"}})]),footer:c.withCtx(()=>[s.value?(c.openBlock(),c.createElementBlock("div",v$e,[i.tableLoading==="more"?(c.openBlock(),c.createBlock(V,{key:0},{default:c.withCtx(()=>[c.createVNode(O,{type:"primary",text:"",loading:""},{default:c.withCtx(()=>[c.createTextVNode("正在加载更多数据")]),_:1})]),_:1})):i.tableLoading==="all"?(c.openBlock(),c.createBlock(V,{key:1},{default:c.withCtx(()=>[c.createTextVNode(" 已无更多数据 ")]),_:1})):c.createCommentVNode("",!0)])):c.createCommentVNode("",!0)]),_:2},1032,["data","columns","width","height","header-height","row-height","row-event-handlers","footer-height"])]),_:1})}}},_4t="",w$e=lo(y$e,[["__scopeId","data-v-7e702a8a"]]),C$e={install(i){i.component("st-virtualTable",w$e)}},S$e={install(i){t5e.install(i),o5e.install(i),l5e.install(i),H_e.install(i),tve.install(i),uve.install(i),fve.install(i),_je.install(i),wje.install(i),xje.install(i),Lje.install(i),Aje.install(i),_$e.install(i),C$e.install(i)}};/*!-----------------------------------------------------------------------------
|
|
797
797
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
798
798
|
* Version: 0.50.0(c321d0fbecb50ab8a5365fa1965476b0ae63fc87)
|
|
799
799
|
* Released under the MIT license
|
|
@@ -217280,7 +217280,7 @@ tft({
|
|
|
217280
217280
|
extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
|
|
217281
217281
|
aliases: ["Python", "py"],
|
|
217282
217282
|
firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
|
|
217283
|
-
loader: () => import("./python-
|
|
217283
|
+
loader: () => import("./python-8e5e5290.js")
|
|
217284
217284
|
});
|
|
217285
217285
|
const nft = /* @__PURE__ */ Ht({
|
|
217286
217286
|
__name: "index",
|
|
@@ -217913,11 +217913,11 @@ const OU = {
|
|
|
217913
217913
|
show: !0,
|
|
217914
217914
|
options: [
|
|
217915
217915
|
{ label: "ETF", value: 2, memo: [] },
|
|
217916
|
-
{ label: "A股", value: 3, memo: [4, 6, 12] },
|
|
217916
|
+
{ label: "A股", value: 3, memo: [4, 6, 12, 13, 14, 15] },
|
|
217917
217917
|
{ label: "期货", value: 4, memo: [1, 2, 3, 5, 7, 8, 9, 10] },
|
|
217918
|
-
{ label: "港股", value: 5, memo: [4, 6] },
|
|
217918
|
+
{ label: "港股", value: 5, memo: [4, 6, 14] },
|
|
217919
217919
|
{ label: "外盘", value: 6, memo: [1, 2, 3, 5, 7, 8, 9, 10] },
|
|
217920
|
-
{ label: "美股", value: 7, memo: [4, 6] },
|
|
217920
|
+
{ label: "美股", value: 7, memo: [4, 6, 14] },
|
|
217921
217921
|
{ label: "期权", value: 8, memo: [11] }
|
|
217922
217922
|
]
|
|
217923
217923
|
},
|
|
@@ -217936,7 +217936,10 @@ const OU = {
|
|
|
217936
217936
|
{ label: "期货板块收益率指数", value: 9 },
|
|
217937
217937
|
{ label: "期货板块加权指数", value: 10 },
|
|
217938
217938
|
{ label: "期权", value: 11 },
|
|
217939
|
-
{ label: "板块价差指数", value: 12 }
|
|
217939
|
+
{ label: "板块价差指数", value: 12 },
|
|
217940
|
+
{ label: "行业板块指数", value: 13 },
|
|
217941
|
+
{ label: "个股", value: 14 },
|
|
217942
|
+
{ label: "概念板块指数", value: 15 }
|
|
217940
217943
|
]
|
|
217941
217944
|
},
|
|
217942
217945
|
// 自定义标签
|
|
@@ -217962,7 +217965,7 @@ const OU = {
|
|
|
217962
217965
|
label: "总市值",
|
|
217963
217966
|
parent: {
|
|
217964
217967
|
varietyMarketIds: [3, 5, 7],
|
|
217965
|
-
commonOptionIds: [4, 6, 12]
|
|
217968
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
217966
217969
|
},
|
|
217967
217970
|
// 便捷选项
|
|
217968
217971
|
convenientOptions: [
|
|
@@ -217986,7 +217989,7 @@ const OU = {
|
|
|
217986
217989
|
label: "流通市值",
|
|
217987
217990
|
parent: {
|
|
217988
217991
|
varietyMarketIds: [3, 5, 7],
|
|
217989
|
-
commonOptionIds: [4, 6, 12]
|
|
217992
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
217990
217993
|
},
|
|
217991
217994
|
// 便捷选项
|
|
217992
217995
|
convenientOptions: [
|
|
@@ -218010,7 +218013,7 @@ const OU = {
|
|
|
218010
218013
|
label: "总股本",
|
|
218011
218014
|
parent: {
|
|
218012
218015
|
varietyMarketIds: [3, 5, 7],
|
|
218013
|
-
commonOptionIds: [4, 6, 12]
|
|
218016
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218014
218017
|
},
|
|
218015
218018
|
// 便捷选项
|
|
218016
218019
|
convenientOptions: [
|
|
@@ -218031,7 +218034,7 @@ const OU = {
|
|
|
218031
218034
|
label: "流通股本",
|
|
218032
218035
|
parent: {
|
|
218033
218036
|
varietyMarketIds: [3, 5, 7],
|
|
218034
|
-
commonOptionIds: [4, 6, 12]
|
|
218037
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218035
218038
|
},
|
|
218036
218039
|
// 便捷选项
|
|
218037
218040
|
convenientOptions: [
|
|
@@ -218053,7 +218056,7 @@ const OU = {
|
|
|
218053
218056
|
label: "换手率(实)",
|
|
218054
218057
|
parent: {
|
|
218055
218058
|
varietyMarketIds: [3, 5, 7],
|
|
218056
|
-
commonOptionIds: [4, 6, 12]
|
|
218059
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218057
218060
|
},
|
|
218058
218061
|
// 便捷选项
|
|
218059
218062
|
convenientOptions: [
|
|
@@ -218073,7 +218076,7 @@ const OU = {
|
|
|
218073
218076
|
label: "市盈率",
|
|
218074
218077
|
parent: {
|
|
218075
218078
|
varietyMarketIds: [3, 5, 7],
|
|
218076
|
-
commonOptionIds: [4, 6, 12]
|
|
218079
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218077
218080
|
},
|
|
218078
218081
|
// 便捷选项
|
|
218079
218082
|
convenientOptions: [
|
|
@@ -218095,7 +218098,7 @@ const OU = {
|
|
|
218095
218098
|
label: "每股净收益",
|
|
218096
218099
|
parent: {
|
|
218097
218100
|
varietyMarketIds: [3, 5, 7],
|
|
218098
|
-
commonOptionIds: [4, 6, 12]
|
|
218101
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218099
218102
|
},
|
|
218100
218103
|
// 便捷选项
|
|
218101
218104
|
convenientOptions: [
|
|
@@ -218117,7 +218120,7 @@ const OU = {
|
|
|
218117
218120
|
label: "是否ST",
|
|
218118
218121
|
parent: {
|
|
218119
218122
|
varietyMarketIds: [3, 5, 7],
|
|
218120
|
-
commonOptionIds: [4, 6, 12]
|
|
218123
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218121
218124
|
},
|
|
218122
218125
|
type: "custom"
|
|
218123
218126
|
},
|
|
@@ -218127,7 +218130,7 @@ const OU = {
|
|
|
218127
218130
|
label: "市净率",
|
|
218128
218131
|
parent: {
|
|
218129
218132
|
varietyMarketIds: [3, 5, 7],
|
|
218130
|
-
commonOptionIds: [4, 6, 12]
|
|
218133
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218131
218134
|
},
|
|
218132
218135
|
// 便捷选项
|
|
218133
218136
|
convenientOptions: [
|
|
@@ -218148,7 +218151,7 @@ const OU = {
|
|
|
218148
218151
|
label: "成交额",
|
|
218149
218152
|
parent: {
|
|
218150
218153
|
varietyMarketIds: [3, 5, 7],
|
|
218151
|
-
commonOptionIds: [4, 6, 12]
|
|
218154
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218152
218155
|
},
|
|
218153
218156
|
// 便捷选项
|
|
218154
218157
|
convenientOptions: [
|
|
@@ -218170,7 +218173,7 @@ const OU = {
|
|
|
218170
218173
|
label: "净资产收益率roe",
|
|
218171
218174
|
parent: {
|
|
218172
218175
|
varietyMarketIds: [3, 5, 7],
|
|
218173
|
-
commonOptionIds: [4, 6, 12]
|
|
218176
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218174
218177
|
},
|
|
218175
218178
|
// 便捷选项
|
|
218176
218179
|
convenientOptions: [
|
|
@@ -218192,10 +218195,30 @@ const OU = {
|
|
|
218192
218195
|
label: "净利润",
|
|
218193
218196
|
parent: {
|
|
218194
218197
|
varietyMarketIds: [3, 5, 7],
|
|
218195
|
-
commonOptionIds: [4, 6, 12]
|
|
218198
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218196
218199
|
},
|
|
218197
218200
|
type: "custom"
|
|
218198
218201
|
},
|
|
218202
|
+
// 股息率
|
|
218203
|
+
{
|
|
218204
|
+
key: "dividendYield",
|
|
218205
|
+
label: "股息率",
|
|
218206
|
+
parent: {
|
|
218207
|
+
varietyMarketIds: [3, 5, 7],
|
|
218208
|
+
commonOptionIds: [4, 6, 12, 13, 14, 15]
|
|
218209
|
+
},
|
|
218210
|
+
// 便捷选项
|
|
218211
|
+
convenientOptions: [
|
|
218212
|
+
{ range: [null, 1], unit: ["%", "%"], text: "≤1%" },
|
|
218213
|
+
{ range: [1, 5], unit: ["%", "%"], text: "1%~5%" },
|
|
218214
|
+
{ range: [5, 10], unit: ["%", "%"], text: "5%~10%" },
|
|
218215
|
+
{ range: [10, null], unit: ["%", "%"], text: "≥10%" }
|
|
218216
|
+
],
|
|
218217
|
+
// 默认选中单位
|
|
218218
|
+
defaultUnit: ["%", "%"],
|
|
218219
|
+
// 单位下拉框选项
|
|
218220
|
+
unitOptions: ["%"]
|
|
218221
|
+
},
|
|
218199
218222
|
// ----------期权-----------
|
|
218200
218223
|
// 过期天数
|
|
218201
218224
|
{
|
|
@@ -218907,7 +218930,7 @@ const rM = (i) => (HN("data-v-0a691a79"), i = i(), VN(), i), xft = {
|
|
|
218907
218930
|
};
|
|
218908
218931
|
}
|
|
218909
218932
|
}, $ft = /* @__PURE__ */ Gs(jft, [["__scopeId", "data-v-0a691a79"]]);
|
|
218910
|
-
const X_ = (i) => (HN("data-v-
|
|
218933
|
+
const X_ = (i) => (HN("data-v-6e54eaf3"), i = i(), VN(), i), Uft = { class: "variety-search" }, qft = {
|
|
218911
218934
|
key: 0,
|
|
218912
218935
|
class: "variety-search-row"
|
|
218913
218936
|
}, Kft = { class: "title" }, Gft = /* @__PURE__ */ X_(() => /* @__PURE__ */ Ct("span", null, "品种市场: ", -1)), Yft = {
|
|
@@ -218974,20 +218997,16 @@ const X_ = (i) => (HN("data-v-931c484e"), i = i(), VN(), i), Uft = { class: "var
|
|
|
218974
218997
|
startScore: T.score[0],
|
|
218975
218998
|
endScore: T.score[1]
|
|
218976
218999
|
})));
|
|
218977
|
-
const g = [
|
|
218978
|
-
"expireDays",
|
|
218979
|
-
"virtualRealDegree",
|
|
218980
|
-
"yearProfitRate",
|
|
218981
|
-
"impliedVolatility",
|
|
218982
|
-
"levelMultiplier",
|
|
218983
|
-
"turnover",
|
|
218984
|
-
"volume",
|
|
218985
|
-
"openInterest",
|
|
218986
|
-
"optionsCpType",
|
|
218987
|
-
"optionGear"
|
|
218988
|
-
], b = c.commonIndicator.reduce((T, k) => {
|
|
219000
|
+
const g = ["expireDays", "virtualRealDegree", "yearProfitRate", "impliedVolatility", "levelMultiplier", "turnover", "volume", "openInterest", "optionsCpType", "optionGear"], b = c.commonIndicator.reduce((T, k) => {
|
|
218989
219001
|
const { key: I, type: R, range: z, unit: W } = k;
|
|
218990
|
-
if (
|
|
219002
|
+
if (I === "dividendYield") {
|
|
219003
|
+
let [q, K] = z;
|
|
219004
|
+
["", null].includes(q) || (q = q / 100), ["", null].includes(K) || (K = K / 100), T.push({
|
|
219005
|
+
column: k.key,
|
|
219006
|
+
start: q,
|
|
219007
|
+
end: K
|
|
219008
|
+
});
|
|
219009
|
+
} else if (R === void 0 && !g.includes(I)) {
|
|
218991
219010
|
let [q, K] = z;
|
|
218992
219011
|
if (!["", null].includes(q))
|
|
218993
219012
|
switch (W[0]) {
|
|
@@ -219167,7 +219186,7 @@ const X_ = (i) => (HN("data-v-931c484e"), i = i(), VN(), i), Uft = { class: "var
|
|
|
219167
219186
|
]);
|
|
219168
219187
|
};
|
|
219169
219188
|
}
|
|
219170
|
-
}, s3t = /* @__PURE__ */ Gs(r3t, [["__scopeId", "data-v-
|
|
219189
|
+
}, s3t = /* @__PURE__ */ Gs(r3t, [["__scopeId", "data-v-6e54eaf3"]]), o3t = {
|
|
219171
219190
|
install(i) {
|
|
219172
219191
|
i.component("st-varietySearch", s3t);
|
|
219173
219192
|
}
|