マイクロサービス変更に伴うapi修正

This commit is contained in:
simple321vip
2022-12-05 15:08:57 +08:00
parent 2943e360a7
commit ed431fe748
68 changed files with 70 additions and 71 deletions
+1
View File
@@ -0,0 +1 @@
import{c as z,s as D}from"./capital.3cf1291c.js";import{s as J}from"./strategy.09c1da2e.js";import{d as S,b as p,A as v,J as $,s as j,L as q,o as c,c as f,a as e,w as o,r as a,F as C,k,m as B,u as h,e as G,E,x as d}from"./index.17f6e9b3.js";const H={class:"demo-collapse"},K={style:{cursor:"pointer"}},T=S({setup(O){const A=J(),r=p(),b=v([]),_=p(),w=v([]);A.exchanges.forEach(s=>{w.push(s)});const i=p(0),m=v([]),g=p(["1"]),I=()=>{!r.value||D(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=()=>{z().then(s=>{m.length=0,s.data.ticks.forEach(l=>{m.push(l)})})};return $(_,(s,l)=>{b.length=0}),j(()=>{clearInterval(i.value),i.value=window.setInterval(N,3e3)}),q(()=>{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"),L=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",H,[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(L,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(()=>[G("span",K,[e(F,{size:25,onClick:l[2]||(l[2]=t=>I())},{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};