2 lines
24 KiB
JavaScript
2 lines
24 KiB
JavaScript
import{s as $e,u as Be,r as u,o as Fe,w as Te,a as w,b as r,c as v,d as l,F as L,e as N,n as I,t as S,f as s,g as o,h,i as se,R as Se,j as Ee,E as Me,k as le,l as re,m as He,p as ce,q as Le,v as _,x as Ne,y as pe,z as qe,A as De,B as Ke,C as Pe,D as Ue,G as ae,H as Ie,I as fe,J as he}from"./index-BO9WyeNZ.js";import{u as Re,a as m}from"./usethemestore-BOyyPoG1.js";import{_ as ge}from"./_plugin-vue_export-helper-DlAUqK2U.js";const je={class:"content"},Ae={class:"timelist"},Ge=["onClick"],Je={class:"item"},Ye={class:"el-dropdown-link"},Oe={key:0},Qe={key:1},We={class:"item"},Xe={class:"el-dropdown-link"},Ze={key:0},et={key:1},tt={class:"view"},lt={__name:"HomeView",props:{message:{type:String,default:""}},setup(me){const R=Re(),{theme:E,style:q}=$e(R),D=Be();let b=u(0);const oe=me,K=()=>{E.value=!0,document.documentElement.style.setProperty("--my-common-bgc-2","#fff"),document.documentElement.style.setProperty("--my-light-br-1","#e7ebf3"),document.documentElement.style.setProperty("--my-common-bgc-1","#1F1F1F"),document.documentElement.style.setProperty("--my-common-fc-1","#1F1F1F")},z=()=>{E.value=!1,document.documentElement.style.setProperty("--my-common-bgc-2","#1F1F1F"),document.documentElement.style.setProperty("--my-light-br-1","#ffffff"),document.documentElement.style.setProperty("--my-common-bgc-1","#fff"),document.documentElement.style.setProperty("--my-common-fc-1","#fff")},Y=()=>{q.value="vertical",D.push({path:"/thenew/hour-line",params:{type:"vertical"}})},ne=()=>{q.value="grid",D.push({path:"/thenew/hour-line2",params:{type:"grid"}})};Fe(()=>{Te(()=>oe.message,(B,c)=>{b.value=b.value+1,D.push("/thenew/hour-line"),j.value=0})});const V=u(["日K","周K","月K","季K","年K"]);let ie=["hour-line","day-line","week-line","month-line","year-line"];const j=u(0);function $(B){j.value=B,D.push(`/thenew/${ie[B]}`)}return(B,c)=>{const F=w("el-tooltip"),P=w("el-dropdown-item"),O=w("el-dropdown-menu"),Q=w("el-dropdown");return r(),v("div",je,[l("ul",Ae,[(r(!0),v(L,null,N(V.value,(W,g)=>(r(),v("li",{class:I(["item",{active:j.value===g}]),key:W,onClick:k=>$(g)},S(W),11,Ge))),128)),l("li",Je,[s(Q,{"hide-on-click":!1},{dropdown:o(()=>[s(O,null,{default:o(()=>[s(P,null,{default:o(()=>[l("div",{onClick:Y},[s(F,{class:"box-item",effect:"light",content:"垂直",placement:"left"},{default:o(()=>c[2]||(c[2]=[l("svg",{t:"1739337693471",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6034",width:"16",height:"16"},[l("path",{d:"M85.333333 213.333333h853.333334v597.333334H85.333333V213.333333z m85.333334 85.333334v85.333333h682.666666V298.666667H170.666667z m682.666666 170.666666H170.666667v85.333334h682.666666v-85.333334z m0 170.666667H170.666667v85.333333h682.666666v-85.333333z","p-id":"6035",fill:"#2c2c2c"})],-1)])),_:1})])]),_:1}),s(P,null,{default:o(()=>[l("div",{onClick:ne},[s(F,{class:"box-item",effect:"light",content:"网格",placement:"left"},{default:o(()=>c[3]||(c[3]=[l("svg",{t:"1739339260343",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7012",width:"14",height:"14"},[l("path",{d:"M85.333333 128h853.333334v768H85.333333V128z m85.333334 170.666667v213.333333h298.666666V298.666667H170.666667z m384 0v213.333333h298.666666V298.666667h-298.666666z m298.666666 298.666666h-298.666666v213.333334h298.666666v-213.333334z m-384 213.333334v-213.333334H170.666667v213.333334h298.666666z","p-id":"7013",fill:"#2c2c2c"})],-1)])),_:1})])]),_:1})]),_:1})]),default:o(()=>[l("span",Ye,[h(E)?(r(),v("div",Oe,c[0]||(c[0]=[l("svg",{t:"1739345471358",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7366",width:"16",height:"16"},[l("path",{d:"M85.333333 128h853.333334v768H85.333333V128z m85.333334 85.333333v597.333334h682.666666V384h-341.333333V213.333333H170.666667z","p-id":"7367",fill:"#2c2c2c"})],-1)]))):(r(),v("div",Qe,c[1]||(c[1]=[l("svg",{t:"1739345471358",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7366",width:"16",height:"16"},[l("path",{d:"M85.333333 128h853.333334v768H85.333333V128z m85.333334 85.333333v597.333334h682.666666V384h-341.333333V213.333333H170.666667z","p-id":"7367",fill:"#ffffff"})],-1)])))])]),_:1})]),l("li",We,[s(Q,{"hide-on-click":!1},{dropdown:o(()=>[s(O,null,{default:o(()=>[s(P,null,{default:o(()=>[l("div",{onClick:K},[s(F,{class:"box-item",effect:"light",content:"Light",placement:"left"},{default:o(()=>c[6]||(c[6]=[l("svg",{t:"1737685432082",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3218",width:"16",height:"16"},[l("path",{d:"M504.832 144h24.08c6.608 0 11.952 4.48 11.952 9.984v80.208c0 5.504-5.344 9.984-11.952 9.984h-24.08c-6.608 0-11.968-4.48-11.968-9.984V153.984c0-5.52 5.36-9.984 11.968-9.984z m10.304 541.92c96.432 0 174.608-78.176 174.608-174.608 0-96.448-78.176-174.624-174.608-174.624S340.528 414.88 340.528 511.312c0 96.432 78.176 174.608 174.608 174.608z m0 48c-122.944 0-222.608-99.68-222.608-222.608 0-122.944 99.664-222.624 222.608-222.624s222.608 99.68 222.608 222.624c0 122.928-99.68 222.608-222.608 222.608z m-10.24-355.792a9.52 9.52 0 0 1 10.24 9.488v247.2a9.696 9.696 0 0 1-10.448 9.648 133.584 133.584 0 0 1 0.208-266.336z m263.184-135.056l17.024 17.024c4.672 4.672 5.28 11.632 1.376 15.536L729.6 332.512c-3.904 3.904-10.864 3.296-15.52-1.376l-17.04-17.024c-4.672-4.672-5.28-11.632-1.376-15.552l56.88-56.864c3.904-3.92 10.864-3.296 15.52 1.376z m110.528 261.76v24.08c0 6.608-4.48 11.952-9.984 11.952h-80.208c-5.504 0-9.984-5.344-9.984-11.952v-24.08c0-6.608 4.48-11.968 9.984-11.968h80.208c5.52 0 9.984 5.36 9.984 11.968z m-93.504 257.68l-17.024 17.024c-4.672 4.672-11.632 5.28-15.536 1.376l-56.88-56.864c-3.904-3.92-3.296-10.88 1.376-15.536l17.024-17.04c4.672-4.672 11.632-5.28 15.536-1.376l56.88 56.88c3.92 3.904 3.296 10.88-1.376 15.536z m-256.192 116.096h-24.08c-6.608 0-11.968-4.48-11.968-9.984v-80.208c0-5.504 5.36-9.984 11.968-9.984h24.08c6.608 0 11.952 4.48 11.952 9.984v80.208c0 5.52-5.344 9.984-11.952 9.984z m-268.528-100.448l-14.272-14.272a10.016 10.016 0 0 1 0-14.16l56.88-56.88a10.016 10.016 0 0 1 14.16 0l14.272 14.272a10.016 10.016 0 0 1 0 14.176l-56.864 56.864a10.016 10.016 0 0 1-14.176 0zM144 528.912v-24.08c0-6.608 4.48-11.968 9.984-11.968h80.208c5.504 0 9.984 5.36 9.984 11.968v24.08c0 6.608-4.48 11.952-9.984 11.952H153.984c-5.52 0-9.984-5.344-9.984-11.952z m104.64-268.8l17.024-17.04c4.672-4.672 11.632-5.28 15.536-1.376l56.88 56.864c3.904 3.92 3.296 10.88-1.376 15.552l-17.04 17.024c-4.672 4.672-11.616 5.28-15.52 1.376l-56.88-56.88c-3.92-3.904-3.296-10.88 1.36-15.52z",fill:"#2c2c2c","p-id":"3219"})],-1)])),_:1})])]),_:1}),s(P,null,{default:o(()=>[l("div",{onClick:z},[s(F,{class:"box-item",effect:"light",content:"Dark",placement:"left"},{default:o(()=>c[7]||(c[7]=[l("svg",{t:"1737685471806",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3524",width:"16",height:"16"},[l("path",{d:"M504.832 144h24.08c6.608 0 11.952 4.48 11.952 9.984v80.208c0 5.504-5.344 9.984-11.952 9.984h-24.08c-6.608 0-11.968-4.48-11.968-9.984V153.984c0-5.52 5.36-9.984 11.968-9.984z m263.248 99.072l17.024 17.024c4.672 4.672 5.28 11.632 1.376 15.536L729.6 332.512c-3.904 3.904-10.864 3.296-15.52-1.376l-17.04-17.024c-4.672-4.672-5.28-11.632-1.376-15.552l56.88-56.864c3.904-3.92 10.864-3.296 15.52 1.376z m110.528 261.76v24.08c0 6.608-4.48 11.952-9.984 11.952h-80.208c-5.504 0-9.984-5.344-9.984-11.952v-24.08c0-6.608 4.48-11.968 9.984-11.968h80.208c5.52 0 9.984 5.36 9.984 11.968z m-93.504 257.68l-17.024 17.024c-4.672 4.672-11.632 5.28-15.536 1.376l-56.88-56.864c-3.904-3.92-3.296-10.88 1.376-15.536l17.024-17.04c4.672-4.672 11.632-5.28 15.536-1.376l56.88 56.88c3.92 3.904 3.296 10.88-1.376 15.536z m-256.192 116.096h-24.08c-6.608 0-11.968-4.48-11.968-9.984v-80.208c0-5.504 5.36-9.984 11.968-9.984h24.08c6.608 0 11.952 4.48 11.952 9.984v80.208c0 5.52-5.344 9.984-11.952 9.984z m-268.528-100.448l-14.272-14.272a10.016 10.016 0 0 1 0-14.16l56.88-56.88a10.016 10.016 0 0 1 14.16 0l14.272 14.272a10.016 10.016 0 0 1 0 14.176l-56.864 56.864a10.016 10.016 0 0 1-14.176 0zM144 528.912v-24.08c0-6.608 4.48-11.968 9.984-11.968h80.208c5.504 0 9.984 5.36 9.984 11.968v24.08c0 6.608-4.48 11.952-9.984 11.952H153.984c-5.52 0-9.984-5.344-9.984-11.952z m104.64-268.8l17.024-17.04c4.672-4.672 11.632-5.28 15.536-1.376l56.88 56.864c3.904 3.92 3.296 10.88-1.376 15.552l-17.04 17.024c-4.672 4.672-11.616 5.28-15.52 1.376l-56.88-56.88c-3.92-3.904-3.296-10.88 1.36-15.52zM515.12 685.92c96.432 0 174.608-78.176 174.608-174.608 0-96.448-78.176-174.624-174.608-174.624S340.528 414.88 340.528 511.312c0 96.432 78.176 174.608 174.608 174.608z m0 48c-122.944 0-222.608-99.68-222.608-222.608 0-122.944 99.664-222.624 222.608-222.624s222.608 99.68 222.608 222.624c0 122.928-99.68 222.608-222.608 222.608zM478.288 427.52a82.8 82.8 0 0 0-1.68 16.64c0 43.936 34.32 79.552 76.64 79.552a74.624 74.624 0 0 0 48.544-17.984c4.544-3.872 14.72-2.4 15.392 3.184 0.592 4.848 0.896 9.792 0.896 14.8 0 64.224-50.144 116.272-112 116.272s-112-52.048-112-116.272c0-48.064 28.096-89.312 68.176-107.024 6.976-3.088 17.312 4.576 16.032 10.832z",fill:"#2c2c2c","p-id":"3525"})],-1)])),_:1})])]),_:1})]),_:1})]),default:o(()=>[l("span",Xe,[h(E)?(r(),v("div",Ze,c[4]||(c[4]=[l("svg",{t:"1737685184492",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1032",width:"16",height:"16"},[l("path",{d:"M831.085714 896h-612.571428V437.028571l-118.857143-118.857142 201.142857-201.142858 10.057143 10.057143c113.371429 113.371429 298.057143 113.371429 412.342857 0l10.057143-10.057143L950.857143 334.628571l-118.857143 118.857143V896z m-585.142857-27.428571h557.714286V441.6l106.971428-106.971429L732.342857 155.428571C610.742857 266.971429 423.314286 266.971429 301.714286 155.428571L138.057143 318.171429l106.971428 106.971428V868.571429z",fill:"#2c2c2c","p-id":"1033"})],-1)]))):(r(),v("div",et,c[5]||(c[5]=[l("svg",{t:"1737685184492",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1032",width:"16",height:"16"},[l("path",{d:"M831.085714 896h-612.571428V437.028571l-118.857143-118.857142 201.142857-201.142858 10.057143 10.057143c113.371429 113.371429 298.057143 113.371429 412.342857 0l10.057143-10.057143L950.857143 334.628571l-118.857143 118.857143V896z m-585.142857-27.428571h557.714286V441.6l106.971428-106.971429L732.342857 155.428571C610.742857 266.971429 423.314286 266.971429 301.714286 155.428571L138.057143 318.171429l106.971428 106.971428V868.571429z",fill:"#ffffff","p-id":"1033"})],-1)])))])]),_:1})])]),l("div",tt,[(r(),se(h(Se),{key:h(b)}))])])}}},at=ge(lt,[["__scopeId","data-v-0d3f4bd5"]]),st={class:"container"},ot={class:"box"},nt={class:"all"},it={class:"onedialog"},dt={class:"oneconleft"},ut={class:"onestocks"},rt={class:"one-items"},ct=["onClick"],pt=["onClick"],mt=["onClick"],vt={class:"stock2"},ft=["onUpdate:modelValue","onFocus","onBlur","onClick","readonly"],ht={class:"oneadd"},gt={class:"addtext"},yt={class:"dialog-footer"},_t={class:"oneconcenter"},wt={class:"onetable"},kt={class:"oneconright"},xt={class:"add"},zt={class:"listedit"},Ct={style:{"text-align":"right",margin:"0"}},bt={style:{"text-align":"right",margin:"0"}},Vt={class:"dialog-footer"},$t=["onClick"],Bt=["title"],Ft=["title"],Tt=["onClick"],St=["title"],Et={class:"shape"},Mt=Ee({__name:"TheNewView",setup(me){const R=u("");u(null),m({url:"http://127.0.0.1:8012/akshare/userstrategy",method:"get"}).then(async t=>{const e=Me.service({lock:!0,text:"Loading",background:"rgba(255, 255, 255, 0.7)"});let d=t.data,i=[];for(let f=0;f<d.length;f++){const y=d[f];let C={pageNo:y.strategy_request.pageNo,pageSize:y.strategy_request.pageSize,year:y.strategy_request.year,indexType:y.strategy_request.indexType,thsIndexCode:y.strategy_request.thsIndexCode};i.push(m.post("https://wance.cqxqg.tech/api/v1/strategy/getStockPageList",C,{headers:{"Content-Type":"application/json"}}).then(G=>{console.log(G.data.data.list);let x=G.data.data.list,J=[];for(let p=0;p<x.length;p++){let n=Number(x[p].pctChg)>0,ue=parseFloat((Number(x[p].pctChg)/100).toFixed(2));J.push({code:x[p].stockCode,name:x[p].stockName,market:x[p].industryName,newprice:Number(x[p].psPercentage),amplitudetype:n,amplitude:ue,type:y.strategy_request.indexType})}B.value.push({id:"100096",label:y.strategy_request.strategy_name,value:y.strategy_request.strategy_name,state:!0,info:J,inputClass:"fixed",fixchange:!1});let a={id:100096,strategy_name:y.strategy_request.strategy_name,message:B.value,info:J};return m.post("http://127.0.0.1:8012/akshare/newuserstrategy",a)}))}await Promise.all(i),m.get("http://127.0.0.1:8012/akshare/newget").then(f=>{console.log(f.data),f.data.code==200&&(e.close(),le.success("数据获取成功"),$.value=f.data.data,de.value=f.data.data)})}).catch(t=>{console.log(t)});const E=u(["0"]),q=u(!0),D=async()=>{q.value=!q.value},b=u(!1),oe=t=>{ce.confirm("当前操作会关闭对话框?",{confirmButtonText:"确认",cancelButtonText:"取消"}).then(()=>{t()}).catch(()=>{})};let K=u([]),z=u([{id:"1",label:"港股",value:"港股",state:!0,info:[]},{id:"2",label:"美股",value:"美股",state:!0,info:[]},{id:"3",label:"沪深",value:"沪深",state:!0,info:[]}]);m({url:"http://127.0.0.1:8012/akshare/ganggudata",method:"get"}).then(t=>{z.value[0].info=t.data,K.value.push(t.data)}),m({url:"http://127.0.0.1:8012/akshare/meigudata",method:"get"}).then(t=>{z.value[1].info=t.data,K.value.push(t.data)}),m({url:"http://127.0.0.1:8012/akshare/hushendata",method:"get"}).then(t=>{z.value[2].info=t.data,K.value.push(t.data)});const Y=t=>{t.state=!t.state};let ne=re(()=>z.value.filter(t=>t.state));const V=u(""),ie=re(()=>K.value.flat().filter(e=>!V.value||e.code.toLowerCase().includes(V.value.toLowerCase())||e.name.includes(V.value))),j=(t,e)=>{var f;console.log(t,e),(f=T.value)==null||f.info.push(e);let d=B.value[t]||"",i={id:100096,strategy_name:U.value,message:[d],info:te.value};m.post("http://127.0.0.1:8012/akshare/newupdata",i)},$=u([]),B=u([]),c=u([]);let F=u("");const P=async(t,e)=>{t.fixchange=!0,F.value=t.strategy_name,await he(),t.fixchange||he(()=>{const d=c.value[e];d&&d.focus()})},O=(t,e)=>{ce.confirm("当前操作会删除分组,是否继续?",{confirmButtonText:"确认",cancelButtonText:"取消"}).then(()=>{$.value.splice(e,1),console.log(t.strategy_name);let d={strategy_name:t.strategy_name};m.post("http://127.0.0.1:8012/akshare/newdel",d)}).catch(()=>{console.log("这是取消操作按钮信息")})},Q=(t,e)=>{},W=(t,e)=>{var d;console.log(t),t.fixchange=!1,F.value!=t.strategy_name&&m({method:"get",url:"http://127.0.0.1:8012/akshare/newmodify",params:{strategy_name:F.value,new_strategy_name:(d=c.value[e])==null?void 0:d.value}}).then(i=>{})};let g=u(!1),k=u("");const ye=async()=>{if(!/^[^\s]{1,10}$/.test(k.value)){ce.alert("分组名称不能为空或超过10个字符","提示",{confirmButtonText:"确定"});return}let e={id:100096,strategy_name:k.value,message:[],info:[]},d=[];d.push(m.post("http://127.0.0.1:8012/akshare/newadd",e).then(i=>{console.log(i.data),i.data.code===200&&(le.success("新建分组成功"),$.value.push({label:k.value,value:k.value,inputClass:"fixed",fixchange:!1,state:!0,info:[]}),k.value="",g.value=!1),i.data.code===204&&le.error("该分组已存在")})),await Promise.all(d),m.get("http://127.0.0.1:8012/akshare/newget").then(i=>{i.data.code==200&&(le.success("数据获取成功"),$.value=i.data.data,de.value=i.data.data)})},X=u(!1),Z=u(!1);let ee=u([]);const _e=t=>{ee.value=t},we=()=>{ee.value.forEach(t=>{var d,i;const e=(d=T.value)==null?void 0:d.info.findIndex(f=>f.code===t.code&&f.name===t.name&&f.market===t.market);e!==void 0&&e!==-1&&((i=T.value)==null||i.info.splice(e,1))}),ee.value=[]},ke=()=>{we(),X.value=!1;let t={id:100096,strategy_name:U.value,message:[{id:"100096",label:U.value,value:U.value,state:!0,info:te.value,inputClass:"fixed",fixchange:!1}],info:te.value};m.post("http://127.0.0.1:8012/akshare/newupdata",t)},xe=()=>{if(T.value){T.value.info=[];let t={id:100096,strategy_name:U.value,message:[],info:[]};m.post("http://127.0.0.1:8012/akshare/newupdata",t)}else console.warn("stocktypes 数组为空");Z.value=!1},ze=t=>{ee.value=t};let T=u(null),de=u(null);z.value.length>0?T.value=z.value[0]:console.warn("stocktypes 数组为空,无法赋值给 stocklog");let U=u("港股");const ve=t=>{T.value=t,de.value=t,U.value=t.strategy_name};let te=re(()=>{var t;return((t=T.value)==null?void 0:t.info)||[]}),A=u();const Ce=t=>{A.value=t},be=t=>{R.value=t.code,A.value=="港股"?m({url:"http://127.0.0.1:8012/akshare/ganggudataK",method:"get",params:{symbol:t.code,start_date:"2023-01-01",end_date:M()}}).then(e=>{console.log("数据传输成功")}):A.value=="美股"?m({url:"http://127.0.0.1:8012/akshare/meigudataK",method:"get",params:{symbol:t.code,start_date:"2023-01-01",end_date:M()}}).then(e=>{console.log("数据传输成功")}):A.value=="沪深"&&m({url:"http://127.0.0.1:8012/akshare/hushendataK",method:"get",params:{symbol:t.code,start_date:"2023-01-01",end_date:M()}}).then(e=>{console.log("数据传输成功")})},M=()=>{const t=new Date,e=t.getFullYear(),d=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`${e}-${d}-${i}`},H=t=>{m({url:"http://127.0.0.1:8012/akshare/stock",method:"get",params:{symbol:"sz"+t.code,start_date:"2023-01-01",end_date:M()}}).then(e=>{console.log("数据传输成功")}).catch(e=>{console.error(e)})},Ve=t=>{R.value=t.code,console.log(t),t.type=="hs300"&&H(t),t.type=="zz500"&&H(t),t.type=="sse"&&H(t),t.type=="szse"&&H(t),t.type=="zz1000"&&H(t),t.type=="gz2000"&&H(t),t.type=="other"&&H(t),t.type=="ganggu"&&m({url:"http://127.0.0.1:8012/akshare/ganggudataK",method:"get",params:{symbol:t.code,start_date:"2023-01-01",end_date:M()}}).then(e=>{console.log("数据传输成功")}),t.type=="meigu"&&m({url:"http://127.0.0.1:8012/akshare/meigudataK",method:"get",params:{symbol:t.code,start_date:"2023-01-01",end_date:M()}}).then(e=>{console.log("数据传输成功")}),t.type=="hushen"&&m({url:"http://127.0.0.1:8012/akshare/hushendataK",method:"get",params:{symbol:t.code,start_date:"2023-01-01",end_date:M()}}).then(e=>{console.log("数据传输成功")})};return(t,e)=>{const d=w("el-icon"),i=w("el-button"),f=w("el-input"),y=w("el-dialog"),C=w("el-table-column"),G=w("el-popover"),x=w("el-collapse-item"),J=w("el-collapse");return r(),v("div",st,[l("div",ot,[e[37]||(e[37]=l("div",{class:"head"},[l("div",{class:"item"},"名称"),l("div",{class:"item"},"最新价"),l("div",{class:"item"},"涨跌幅")],-1)),l("div",nt,[l("div",{class:"showchange",onClick:D},"全部"),l("div",{plain:"",onClick:e[0]||(e[0]=a=>b.value=!0)},[s(d,null,{default:o(()=>[s(h(Le))]),_:1})]),s(y,{modelValue:b.value,"onUpdate:modelValue":e[14]||(e[14]=a=>b.value=a),modal:!1,mask:!1,title:"分组管理","before-close":oe,width:"1000"},{footer:o(()=>[l("div",Vt,[s(i,{type:"primary",onClick:e[13]||(e[13]=a=>b.value=!1)},{default:o(()=>e[35]||(e[35]=[_("关闭")])),_:1})])]),default:o(()=>[e[36]||(e[36]=l("hr",null,null,-1)),l("div",it,[l("div",dt,[e[21]||(e[21]=l("div",{class:"onecontitle"},"自选分组",-1)),l("div",ut,[e[16]||(e[16]=l("div",{class:"one-item-name"},"全部",-1)),l("div",rt,[(r(!0),v(L,null,N(h(z),a=>(r(),v("div",{class:"one-item",key:a.value},[l("div",{class:"stock1",onClick:p=>ve(a)},S(a.value),9,ct),a.state?(r(),v("div",{key:0,onClick:p=>Y(a)},[s(d,null,{default:o(()=>[s(h(Ne))]),_:1})],8,pt)):pe("",!0),a.state?pe("",!0):(r(),v("div",{key:1,onClick:p=>Y(a)},[s(d,null,{default:o(()=>[s(h(qe))]),_:1})],8,mt))]))),128)),(r(!0),v(L,null,N($.value,(a,p)=>(r(),v("div",{key:p,class:"one-item"},[l("div",vt,[De(l("input",{class:I({fixed:!a.fixchange,isfixed:a.fixchange}),type:"text","onUpdate:modelValue":n=>a.strategy_name=n,onFocus:n=>Q(a,p),onBlur:n=>W(a,p),onClick:n=>ve(a),ref_for:!0,ref:n=>c.value[p]=n,readonly:!a.fixchange},null,42,ft),[[Ke,a.strategy_name]])]),l("div",null,[s(d,null,{default:o(()=>[s(h(Pe),{onClick:n=>P(a,p)},null,8,["onClick"])]),_:2},1024),s(d,null,{default:o(()=>[s(h(Ue),{onClick:n=>O(a,p)},null,8,["onClick"])]),_:2},1024)])]))),128))])]),l("div",ht,[s(i,{type:"primary",size:"small",onClick:e[1]||(e[1]=a=>ae(g)?g.value=!0:g=!0)},{default:o(()=>[s(d,null,{default:o(()=>[s(h(Ie))]),_:1}),e[17]||(e[17]=_("添加分组 "))]),_:1}),s(y,{modelValue:h(g),"onUpdate:modelValue":e[5]||(e[5]=a=>ae(g)?g.value=a:g=a),title:"添加分组",width:"300"},{footer:o(()=>[l("div",yt,[s(i,{type:"primary",onClick:e[3]||(e[3]=a=>ye())},{default:o(()=>e[19]||(e[19]=[_("确认")])),_:1}),s(i,{onClick:e[4]||(e[4]=a=>ae(g)?g.value=!1:g=!1)},{default:o(()=>e[20]||(e[20]=[_("取消")])),_:1})])]),default:o(()=>[l("div",gt,[e[18]||(e[18]=l("div",null,"请输入自选股分组名称",-1)),s(f,{modelValue:h(k),"onUpdate:modelValue":e[2]||(e[2]=a=>ae(k)?k.value=a:k=a),placeholder:"最多10个字"},null,8,["modelValue"])])]),_:1},8,["modelValue"])])]),l("div",_t,[e[22]||(e[22]=l("div",{class:"onecontitle"},"股票列表详情",-1)),l("div",wt,[s(h(fe),{border:"",data:h(te),style:{width:"100%","font-size":"12px",height:"350px"},onSelectAll:ze,onSelect:_e},{default:o(()=>[s(C,{type:"selection"}),s(C,{property:"code",label:"代码"}),s(C,{property:"name",label:"名称"}),s(C,{property:"type",label:"市场"})]),_:1},8,["data"])])]),l("div",kt,[e[34]||(e[34]=l("div",{class:"onecontitle"},"加入股票",-1)),l("div",xt,[s(f,{modelValue:V.value,"onUpdate:modelValue":e[6]||(e[6]=a=>V.value=a),size:"small",placeholder:"代码/名称"},null,8,["modelValue"]),V.value?(r(),se(h(fe),{key:0,data:ie.value,style:{width:"100%",height:"160px","font-size":"12px"}},{default:o(()=>[s(C,{label:"代码",prop:"code"}),s(C,{label:"名称",prop:"name"}),s(C,null,{header:o(()=>e[23]||(e[23]=[_(" 操作 ")])),default:o(a=>[s(i,{size:"small",onClick:p=>j(a.$index,a.row)},{default:o(()=>e[24]||(e[24]=[_(" 加入 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])):pe("",!0)]),l("div",zt,[e[33]||(e[33]=l("div",null,"列表操作",-1)),l("div",null,[s(G,{visible:X.value,placement:"top",width:160},{reference:o(()=>[s(i,{type:"primary",plain:"",size:"small",onClick:e[9]||(e[9]=a=>X.value=!0)},{default:o(()=>e[27]||(e[27]=[_("删除")])),_:1})]),default:o(()=>[e[28]||(e[28]=l("p",null,"是否删除已选中?",-1)),l("div",Ct,[s(i,{size:"small",text:"",onClick:e[7]||(e[7]=a=>X.value=!1)},{default:o(()=>e[25]||(e[25]=[_("否")])),_:1}),s(i,{size:"small",type:"primary",onClick:e[8]||(e[8]=a=>ke())},{default:o(()=>e[26]||(e[26]=[_("是")])),_:1})])]),_:1},8,["visible"])]),l("div",null,[s(G,{visible:Z.value,placement:"top",width:160},{reference:o(()=>[s(i,{type:"primary",plain:"",size:"small",onClick:e[12]||(e[12]=a=>Z.value=!0)},{default:o(()=>e[31]||(e[31]=[_("清空")])),_:1})]),default:o(()=>[e[32]||(e[32]=l("p",null,"是否全部清空?",-1)),l("div",bt,[s(i,{size:"small",text:"",onClick:e[10]||(e[10]=a=>Z.value=!1)},{default:o(()=>e[29]||(e[29]=[_("否")])),_:1}),s(i,{size:"small",type:"primary",onClick:e[11]||(e[11]=a=>xe())},{default:o(()=>e[30]||(e[30]=[_("是")])),_:1})])]),_:1},8,["visible"])])])])])]),_:1},8,["modelValue"])]),l("div",{class:"demo-collapse",style:He({display:q.value?"block":"none"})},[s(J,{modelValue:E.value,"onUpdate:modelValue":e[15]||(e[15]=a=>E.value=a),accordion:"",onChange:Ce},{default:o(()=>[(r(!0),v(L,null,N(h(ne),(a,p)=>(r(),se(x,{title:a.value,name:a.label,key:a.label},{default:o(()=>[(r(!0),v(L,null,N(a.info,n=>(r(),v("div",{class:"stock",key:n.name,onClick:ue=>be(n)},[l("div",{class:"stockname",title:n.name},S(n.name),9,Bt),l("div",{class:I({upcolor:n.amplitudetype,downcolor:!n.amplitudetype}),title:h(A)},S(n.newprice),11,Ft),l("div",{class:I({stockchangeup:n.amplitudetype,stockchangedown:!n.amplitudetype})},S(n.amplitudetype?"+"+n.amplitude:n.amplitude),3)],8,$t))),128))]),_:2},1032,["title","name"]))),128)),(r(!0),v(L,null,N($.value,(a,p)=>(r(),se(x,{title:a.strategy_name,name:a.strategy_name,key:a.label},{default:o(()=>[(r(!0),v(L,null,N(a.info,n=>(r(),v("div",{class:"stock",key:n.name,onClick:ue=>Ve(n)},[l("div",{class:"stockname",title:n.name},S(n.name),9,St),l("div",{class:I({upcolor:n.amplitudetype,downcolor:!n.amplitudetype})},S(n.newprice),3),l("div",{class:I({stockchangeup:n.amplitudetype,stockchangedown:!n.amplitudetype})},S(n.amplitudetype?"+"+n.amplitude:n.amplitude),3)],8,Tt))),128))]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])],4)]),l("div",Et,[s(at,{message:R.value},null,8,["message"])])])}}}),qt=ge(Mt,[["__scopeId","data-v-afa4aec4"]]);export{qt as default};
|