compile files to add

This commit is contained in:
simple321vip
2022-10-19 01:04:00 +08:00
parent 938ceae375
commit 4e49cb87a2
73 changed files with 308 additions and 319 deletions
+1
View File
@@ -0,0 +1 @@
import{c as j,s as z}from"./capital.0a05eb76.js";import{s as H}from"./strategy.a4cc9d20.js";import{d as L,b as p,H as v,O,C as Q,Q as S,o as c,c as f,a as e,w as o,r as a,F as C,j as k,k as B,u as h,e as $,E,D as d}from"./index.2956dc9f.js";const q={class:"demo-collapse"},G={style:{cursor:"pointer"}},T=L({setup(J){const I=H(),r=p(),b=v([]),_=p(),w=v([]);I.exchanges.forEach(s=>{w.push(s)});const i=p(0),m=v([]),g=p(["1"]),A=()=>{!r.value||z(r.value).then(s=>{E({message:d("p",null,[d("i",{style:"color: green"},"\u884C\u60C5\u8BA2\u9605\u6210\u529F")])})}).catch(s=>{E({message:d("p",null,[d("i",{style:"color: red"},"\u884C\u60C5\u8BA2\u9605\u5931\u8D25")])})})},N=()=>{j().then(s=>{m.length=0,s.data.ticks.forEach(l=>{m.push(l)})})};return O(_,(s,l)=>{b.length=0}),Q(()=>{clearInterval(i.value),i.value=window.setInterval(N,3e3)}),S(()=>{window.clearInterval(i.value)}),(s,l)=>{const x=a("el-option"),V=a("el-select"),u=a("el-col"),U=a("ZoomIn"),F=a("el-icon"),D=a("el-row"),y=a("el-collapse-item"),n=a("el-table-column"),M=a("el-table"),Z=a("el-collapse");return c(),f("div",q,[e(Z,{modelValue:g.value,"onUpdate:modelValue":l[3]||(l[3]=t=>g.value=t)},{default:o(()=>[e(y,{title:"\u8BA2\u9605\u884C\u60C5",name:"2"},{default:o(()=>[e(D,null,{default:o(()=>[e(u,{span:4},{default:o(()=>[e(V,{modelValue:_.value,"onUpdate:modelValue":l[0]||(l[0]=t=>_.value=t),placeholder:"select a exchange"},{default:o(()=>[(c(!0),f(C,null,k(h(w),t=>(c(),B(x,{value:t},null,8,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),e(u,{span:1}),e(u,{span:4},{default:o(()=>[e(V,{modelValue:r.value,"onUpdate:modelValue":l[1]||(l[1]=t=>r.value=t),placeholder:"select a vt_symbol"},{default:o(()=>[(c(!0),f(C,null,k(h(b),t=>(c(),B(x,{value:t},null,8,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),e(u,{span:1}),e(u,{span:4},{default:o(()=>[$("span",G,[e(F,{size:25,onClick:l[2]||(l[2]=t=>A())},{default:o(()=>[e(U)]),_:1})])]),_:1})]),_:1})]),_:1}),e(y,{title:"\u8BA2\u9605\u4E00\u89C8",name:"1"},{default:o(()=>[e(M,{data:h(m),style:{width:"100%"}},{default:o(()=>[e(n,{fixed:"",prop:"symbol",label:"symbol",width:"80"}),e(n,{fixed:"",prop:"exchange",label:"exchange",width:"100"}),e(n,{fixed:"",prop:"name",label:"Name",width:"120"}),e(n,{fixed:"",prop:"last_price",label:"last_price",width:"120"}),e(n,{fixed:"",prop:"volume",label:"volume",width:"100"}),e(n,{fixed:"",prop:"open_price",label:"open_price",width:"120"}),e(n,{fixed:"",prop:"high_price",label:"high_price",width:"120"}),e(n,{fixed:"",prop:"low_price",label:"low_price",width:"120"})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue"])])}}});export{T as default};