@@ -1,4 +1,4 @@
|
|||||||
import{D as U}from"./index.ca1e8891.js";//! moment.js
|
import{D as U}from"./index.89c8c085.js";//! moment.js
|
||||||
//! version : 2.29.4
|
//! version : 2.29.4
|
||||||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||||||
//! license : MIT
|
//! license : MIT
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1 +1 @@
|
|||||||
import{D as e}from"./index.ca1e8891.js";import{l as i}from"./index.350fa5f6.js";const t={"Content-Type":"application/json;charsetset=UTF-8"},l=r=>e({url:"/wiki/api/v1/reader/blogs",method:"GET",params:r,paramsSerializer:a=>i.stringify(a,{arrayFormat:"repeat"})}),p=()=>e({url:"/wiki/api/v1/reader/blog_type",method:"GET",headers:t}),n=r=>e({url:"/wiki/api/v1/reader/blog/"+r,method:"GET",headers:t}),u=()=>e({url:"/wiki/api/v1/reader/blogs/publish/all",method:"GET"}),g=r=>e({url:"/wiki/api/v1/reader/blogs/publish/"+r,method:"GET"});export{p as a,g as b,n as c,l as g,u as p};
|
import{D as e}from"./index.89c8c085.js";import{l as i}from"./index.35e25221.js";const t={"Content-Type":"application/json;charsetset=UTF-8"},l=r=>e({url:"/wiki/api/v1/reader/blogs",method:"GET",params:r,paramsSerializer:a=>i.stringify(a,{arrayFormat:"repeat"})}),p=()=>e({url:"/wiki/api/v1/reader/blog_type",method:"GET",headers:t}),n=r=>e({url:"/wiki/api/v1/reader/blog/"+r,method:"GET",headers:t}),u=()=>e({url:"/wiki/api/v1/reader/blogs/publish/all",method:"GET"}),g=r=>e({url:"/wiki/api/v1/reader/blogs/publish/"+r,method:"GET"});export{p as a,g as b,n as c,l as g,u as p};
|
||||||
@@ -1 +1 @@
|
|||||||
import{D as r}from"./index.ca1e8891.js";import{l as t}from"./index.350fa5f6.js";const m=o=>r({url:"/bookmark/api/v1/bookmark",method:"GET",params:o,paramsSerializer:a=>t.stringify(a,{arrayFormat:"repeat"})}),s=o=>r({url:"/bookmark/api/v1/bookmark/insert",method:"PUT",data:o}),b=o=>r({url:"/bookmark/api/v1/bookmark/update",method:"POST",data:o}),u=o=>r({url:"/bookmark/api/v1/bookmark/delete/"+o,method:"DELETE"}),n=()=>r({url:"/bookmark/api/v1/bookmark/count",method:"GET"});export{n as b,u as d,s as p,m as s,b as u};
|
import{D as r}from"./index.89c8c085.js";import{l as t}from"./index.35e25221.js";const m=o=>r({url:"/bookmark/api/v1/bookmark",method:"GET",params:o,paramsSerializer:a=>t.stringify(a,{arrayFormat:"repeat"})}),s=o=>r({url:"/bookmark/api/v1/bookmark/insert",method:"PUT",data:o}),b=o=>r({url:"/bookmark/api/v1/bookmark/update",method:"POST",data:o}),u=o=>r({url:"/bookmark/api/v1/bookmark/delete/"+o,method:"DELETE"}),n=()=>r({url:"/bookmark/api/v1/bookmark/count",method:"GET"});export{n as b,u as d,s as p,m as s,b as u};
|
||||||
BIN
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
|||||||
import{D as r}from"./index.ca1e8891.js";const a=()=>r({url:"/trader/api/v1/strategy_file",method:"GET"}),s=()=>r({url:"/trader/api/v1/strategy_file/load",method:"GET"}),o=t=>r({url:"/trader/api/v1/strategy_file/"+t,method:"PUT"}),i=t=>r({url:"/trader/api/v1/strategy_file/"+t,method:"PATCH"}),d=t=>r({url:"/trader/api/v1/strategy_file/"+t,method:"DELETE"}),g=()=>r({url:"/trader/api/v1/strategies",method:"GET"}),n=t=>r({url:"/trader/api/v1/strategy/"+t.strategy_name,method:"POST",data:t}),l=t=>r({url:"/trader/api/v1/strategy/init/"+t,method:"PUT"}),u=t=>r({url:"/trader/api/v1/strategy/"+t,method:"PUT"}),_=t=>r({url:"/trader/api/v1/strategy/"+t,method:"PATCH"}),y=t=>r({url:"/trader/api/v1/strategy/"+t,method:"DELETE"});export{s as a,g as b,n as c,_ as d,y as e,a as g,l as i,o as l,d as r,u as s,i as u};
|
import{D as r}from"./index.89c8c085.js";const a=()=>r({url:"/trader/api/v1/strategy_file",method:"GET"}),s=()=>r({url:"/trader/api/v1/strategy_file/load",method:"GET"}),o=t=>r({url:"/trader/api/v1/strategy_file/"+t,method:"PUT"}),i=t=>r({url:"/trader/api/v1/strategy_file/"+t,method:"PATCH"}),d=t=>r({url:"/trader/api/v1/strategy_file/"+t,method:"DELETE"}),g=()=>r({url:"/trader/api/v1/strategies",method:"GET"}),n=t=>r({url:"/trader/api/v1/strategy/"+t.strategy_name,method:"POST",data:t}),l=t=>r({url:"/trader/api/v1/strategy/init/"+t,method:"PUT"}),u=t=>r({url:"/trader/api/v1/strategy/"+t,method:"PUT"}),_=t=>r({url:"/trader/api/v1/strategy/"+t,method:"PATCH"}),y=t=>r({url:"/trader/api/v1/strategy/"+t,method:"DELETE"});export{s as a,g as b,n as c,_ as d,y as e,a as g,l as i,o as l,d as r,u as s,i as u};
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
BIN
Binary file not shown.
-1
@@ -1 +0,0 @@
|
|||||||
import{g as I,l as V,u as N,r as S}from"./cta_strategy.fa8d206a.js";import{d as T,c as $,b as R,f as _,h as e,w as s,u as t,a0 as P,V as W,a1 as M,e as i,o as n,a2 as g,a3 as u,B as m,a4 as r,I as c,i as h,g as U,$ as j,S as k}from"./index.ca1e8891.js";const q={class:"bookmark"},G=h("\u6DFB\u52A0\u7B56\u7565\u6A21\u677F"),H=h(" -> "),J=h(" \u4E0A\u4F20\u7B56\u7565\u6A21\u677F "),K=U("div",{class:"el-upload__tip text-red"}," \u4E00\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6 ",-1),L={key:0,style:{cursor:"pointer"}},O={key:0,style:{cursor:"pointer"}},Q={key:0,style:{cursor:"pointer"}},ee=T({setup(X){const p=$([]),d=R(),f=()=>{I().then(l=>{p.length=0,l.data.forEach((a,y)=>{p.push(a)})})},E=l=>{d.value.clearFiles();const a=l[0];a.uid=M(),d.value.handleStart(a)},v=()=>{d.value.submit(),f()},w=l=>{l.status=2,V(l.file_name).then(a=>{a.status==200&&(l.status=1),a.status==500&&(l.status=0)})},C=l=>{N(l.class_name).then(a=>{a.status==200&&(l.status=0),a.status==500&&(l.status=1)})},b=l=>{S(l.file_name).then(a=>{f()}).catch(a=>{j({message:k("p",null,[k("i",{style:"color: teal"},a)])})})};return f(),(l,a)=>{const y=i("InfoFilled"),B=i("SuccessFilled"),x=i("WarningFilled"),A=i("CirclePlusFilled"),D=i("RemoveFilled"),z=i("Delete");return n(),_("div",q,[e(t(P),{ref_key:"upload",ref:d,class:"upload-demo",action:"http://localhost:5000/trader/api/v1/strategy_file",limit:1,"on-exceed":E,"auto-upload":!1},{trigger:s(()=>[e(t(g),{type:"primary"},{default:s(()=>[G]),_:1})]),tip:s(()=>[K]),default:s(()=>[H,e(t(g),{class:"ml-3",type:"success",onClick:v},{default:s(()=>[J]),_:1})]),_:1},512),e(t(W),{ref:"multipleTableRef",data:t(p),style:{width:"100%"}},{default:s(()=>[e(t(u),{type:"selection",width:"55"}),e(t(u),{type:"index",label:"index",width:"80"}),e(t(u),{prop:"file_name",label:"\u7B56\u7565\u6587\u4EF6\u540D",width:"200"}),e(t(u),{prop:"class_name",label:"\u7B56\u7565\u7C7B\u540D",width:"200"}),e(t(u),{prop:"status",label:"\u72B6\u6001",width:"60"},{default:s(o=>[o.row.status==0?(n(),m(t(r),{key:0,size:20},{default:s(()=>[e(y)]),_:1})):c("",!0),o.row.status==1?(n(),m(t(r),{key:1,size:20,color:"green"},{default:s(()=>[e(B)]),_:1})):c("",!0),o.row.status==2?(n(),m(t(r),{key:2,size:20,color:"gold"},{default:s(()=>[e(x)]),_:1})):c("",!0)]),_:1}),e(t(u),{prop:"url",label:"\u52A0\u8F7D",width:"60"},{default:s(o=>[o.row.status==0?(n(),_("span",L,[e(t(r),{size:20,onClick:F=>w(o.row),color:"blue"},{default:s(()=>[e(A)]),_:2},1032,["onClick"])])):c("",!0)]),_:1}),e(t(u),{prop:"url",label:"\u5378\u8F7D",width:"60"},{default:s(o=>[o.row.status==1?(n(),_("span",O,[e(t(r),{size:20,onClick:F=>C(o.row),color:"red"},{default:s(()=>[e(D)]),_:2},1032,["onClick"])])):c("",!0)]),_:1}),e(t(u),{prop:"url",label:"\u5220\u9664",width:"60"},{default:s(o=>[o.row.status==0?(n(),_("span",Q,[e(t(r),{size:20,onClick:F=>b(o.row),color:"red"},{default:s(()=>[e(z)]),_:2},1032,["onClick"])])):c("",!0)]),_:1})]),_:1},8,["data"])])}}});export{ee as default};
|
|
||||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
|||||||
|
import{g as I,l as N,u as R,r as T}from"./cta_strategy.2b674a22.js";import{d as V,c as $,b as S,f as _,h as e,w as s,u as t,$ as P,U,a0 as W,e as i,o as n,a1 as g,a2 as u,B as m,a3 as r,I as c,i as h,g as M,Z,R as k}from"./index.89c8c085.js";const j={class:"bookmark"},q=h("\u6DFB\u52A0\u7B56\u7565\u6A21\u677F"),G=h(" -> "),H=h(" \u4E0A\u4F20\u7B56\u7565\u6A21\u677F "),J=M("div",{class:"el-upload__tip text-red"}," \u4E00\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u6587\u4EF6 ",-1),K={key:0,style:{cursor:"pointer"}},L={key:0,style:{cursor:"pointer"}},O={key:0,style:{cursor:"pointer"}},ee=V({setup(Q){const p=$([]),d=S(),f=()=>{I().then(l=>{p.length=0,l.data.forEach((a,y)=>{p.push(a)})})},E=l=>{d.value.clearFiles();const a=l[0];a.uid=W(),d.value.handleStart(a)},v=()=>{d.value.submit(),f()},w=l=>{l.status=2,N(l.file_name).then(a=>{a.status==200&&(l.status=1),a.status==500&&(l.status=0)})},C=l=>{R(l.class_name).then(a=>{a.status==200&&(l.status=0),a.status==500&&(l.status=1)})},b=l=>{T(l.file_name).then(a=>{f()}).catch(a=>{Z({message:k("p",null,[k("i",{style:"color: teal"},a)])})})};return f(),(l,a)=>{const y=i("InfoFilled"),B=i("SuccessFilled"),x=i("WarningFilled"),A=i("CirclePlusFilled"),D=i("RemoveFilled"),z=i("Delete");return n(),_("div",j,[e(t(P),{ref_key:"upload",ref:d,class:"upload-demo",action:"http://localhost:5000/trader/api/v1/strategy_file",limit:1,"on-exceed":E,"auto-upload":!1},{trigger:s(()=>[e(t(g),{type:"primary"},{default:s(()=>[q]),_:1})]),tip:s(()=>[J]),default:s(()=>[G,e(t(g),{class:"ml-3",type:"success",onClick:v},{default:s(()=>[H]),_:1})]),_:1},512),e(t(U),{ref:"multipleTableRef",data:t(p),style:{width:"100%"}},{default:s(()=>[e(t(u),{type:"selection",width:"55"}),e(t(u),{type:"index",label:"index",width:"80"}),e(t(u),{prop:"file_name",label:"\u7B56\u7565\u6587\u4EF6\u540D",width:"200"}),e(t(u),{prop:"class_name",label:"\u7B56\u7565\u7C7B\u540D",width:"200"}),e(t(u),{prop:"status",label:"\u72B6\u6001",width:"60"},{default:s(o=>[o.row.status==0?(n(),m(t(r),{key:0,size:20},{default:s(()=>[e(y)]),_:1})):c("",!0),o.row.status==1?(n(),m(t(r),{key:1,size:20,color:"green"},{default:s(()=>[e(B)]),_:1})):c("",!0),o.row.status==2?(n(),m(t(r),{key:2,size:20,color:"gold"},{default:s(()=>[e(x)]),_:1})):c("",!0)]),_:1}),e(t(u),{prop:"url",label:"\u52A0\u8F7D",width:"60"},{default:s(o=>[o.row.status==0?(n(),_("span",K,[e(t(r),{size:20,onClick:F=>w(o.row),color:"blue"},{default:s(()=>[e(A)]),_:2},1032,["onClick"])])):c("",!0)]),_:1}),e(t(u),{prop:"url",label:"\u5378\u8F7D",width:"60"},{default:s(o=>[o.row.status==1?(n(),_("span",L,[e(t(r),{size:20,onClick:F=>C(o.row),color:"red"},{default:s(()=>[e(D)]),_:2},1032,["onClick"])])):c("",!0)]),_:1}),e(t(u),{prop:"url",label:"\u5220\u9664",width:"60"},{default:s(o=>[o.row.status==0?(n(),_("span",O,[e(t(r),{size:20,onClick:F=>b(o.row),color:"red"},{default:s(()=>[e(z)]),_:2},1032,["onClick"])])):c("",!0)]),_:1})]),_:1},8,["data"])])}}});export{ee as default};
|
||||||
BIN
Binary file not shown.
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
import{g as x,a as $,p as j,b as q}from"./blogView.0384569e.js";import{d as A,c as h,f as r,h as e,w as l,u as a,F as y,x as k,g as i,r as C,e as u,o as _,B as T,z as w,i as m}from"./index.89c8c085.js";import"./index.35e25221.js";const G=i("span",null,"\u5206\u7C7B\u641C\u7D22",-1),H=i("span",{class:"text-gray-500"},"-",-1),J=m("\u641C\u7D22"),K=m("\u521B\u4F5C"),M=m("\u5168\u90E8\u91CD\u65B0\u53D1\u5E03"),O={class:"blog_list"},P=["onClick"],Q={style:{display:"flex","justify-content":"space-between","align-items":"center"}},R={style:{"font-size":"12px",height:"16px","line-height":"16px",overflow:"hidden","text-overflow":"ellipsis"}},W=m("\u91CD\u65B0\u53D1\u5E03 "),X={class:"page_style"},oe=A({setup(Y){const s=h({key_word:"",btId:"",start_day:"",end_day:"",page_number:1,page_size:20,total:1}),p=h([]),b=h([]),B=()=>{x(s).then(n=>{p.splice(0,p.length),n.data.forEach(t=>{p.push(t)})})},v=n=>{const{href:t}=C.resolve({path:"/view",query:{bid:n}});window.open(t,"_blank")},V=()=>{const{href:n}=C.resolve({path:"/write/"});window.open(n,"_blank")},E=()=>{j()},F=n=>{q(n)};return x({}).then(n=>{n.data.forEach(t=>{p.push(t)})}),$().then(n=>{b.push({btId:"",btName:"\u9009\u62E9\u5206\u7C7B"}),n.data.forEach(t=>{const f={btId:t.btId,btName:t.btName};b.push(f)})}),(n,t)=>{const f=u("el-input"),d=u("el-col"),D=u("el-option"),N=u("el-select"),g=u("el-form-item"),I=u("el-date-picker"),z=u("el-time-picker"),c=u("el-button"),U=u("el-form"),L=u("el-pagination");return _(),r(y,null,[e(U,{model:a(s),"label-width":"120px"},{default:l(()=>[e(g,{label:"\u5173\u952E\u5B57\u641C\u7D22"},{default:l(()=>[e(d,{span:7},{default:l(()=>[e(f,{modelValue:a(s).key_word,"onUpdate:modelValue":t[0]||(t[0]=o=>a(s).key_word=o)},null,8,["modelValue"])]),_:1}),e(d,{span:1}),e(d,{span:10},{default:l(()=>[G,e(N,{modelValue:a(s).btId,"onUpdate:modelValue":t[1]||(t[1]=o=>a(s).btId=o),placeholder:"\u9009\u62E9\u5206\u7C7B"},{default:l(()=>[(_(!0),r(y,null,k(a(b),o=>(_(),T(D,{key:o.btId,label:o.btName,value:o.btId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(g,{label:"\u521B\u4F5C\u65F6\u95F4"},{default:l(()=>[e(d,{span:7},{default:l(()=>[e(I,{modelValue:a(s).start_day,"onUpdate:modelValue":t[2]||(t[2]=o=>a(s).start_day=o),type:"date",placeholder:"\u5F00\u59CB\u65F6\u95F4",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{span:2,class:"text-center"},{default:l(()=>[H]),_:1}),e(d,{span:7},{default:l(()=>[e(z,{modelValue:a(s).end_day,"onUpdate:modelValue":t[3]||(t[3]=o=>a(s).end_day=o),placeholder:"\u7ED3\u675F\u65F6\u95F4",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{span:6,style:{"text-align":"center"}},{default:l(()=>[e(c,{type:"primary",onClick:B},{default:l(()=>[J]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),e(c,{onClick:V},{default:l(()=>[K]),_:1}),e(c,{onClick:E},{default:l(()=>[M]),_:1}),(_(!0),r(y,null,k(a(p),o=>(_(),r("div",O,[i("h3",{style:{cursor:"pointer",width:"min-content","white-space":"nowrap"},onClick:S=>v(o.bid)},w(o.title),9,P),i("div",Q,[i("p",R,w(o.content),1),e(c,{size:"small",type:"success",onClick:S=>F(o.bid)},{default:l(()=>[W]),_:2},1032,["onClick"])])]))),256)),i("div",X,[e(L,{small:"",background:"",layout:"prev, pager, next",total:50,class:"mt-4"})])],64)}}});export{oe as default};
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1 +1 @@
|
|||||||
import{d as s,B as a,w as n,a5 as c,$ as l,e as i,o as r,i as p}from"./index.ca1e8891.js";const _=p("Click to open the Message Box"),f=s({setup(m){const t=()=>{c.alert("This is a message","Title",{confirmButtonText:"OK",callback:e=>{l({type:"info",message:`action: ${e}`})}})};return(e,u)=>{const o=i("el-button");return r(),a(o,{text:"",onClick:t},{default:n(()=>[_]),_:1})}}});export{f as default};
|
import{d as s,B as a,w as n,a4 as c,Z as l,e as i,o as r,i as p}from"./index.89c8c085.js";const _=p("Click to open the Message Box"),f=s({setup(m){const t=()=>{c.alert("This is a message","Title",{confirmButtonText:"OK",callback:e=>{l({type:"info",message:`action: ${e}`})}})};return(e,u)=>{const o=i("el-button");return r(),a(o,{text:"",onClick:t},{default:n(()=>[_]),_:1})}}});export{f as default};
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
.category_card-box[data-v-2dc81d35]{display:flex;flex-wrap:wrap}.category_card__header[data-v-2dc81d35]{text-align:center;width:100px;line-height:100px;height:100px}.category_card__body[data-v-2dc81d35]{text-align:center}.onenote_card__header[data-v-2dc81d35]{width:120px}.onenote_card-box[data-v-2dc81d35]{display:flex;flex-direction:column}.onenote_item_card[data-v-2dc81d35]{display:flex;margin:10px}.onenote_category_card[data-v-2dc81d35]{display:flex;flex-direction:column;margin:20px;padding:20px}.category_icon[data-v-2dc81d35]{margin-bottom:50px}.category_theme[data-v-2dc81d35]{margin-right:30px}
|
||||||
@@ -1 +1 @@
|
|||||||
import{D as M,d as V,c as b,b as f,f as z,h as l,w as a,u as r,V as L,F as N,W as j,X as g,e as y,o as i,B as p,Y as m,I as h,Z as O,g as k}from"./index.ca1e8891.js";const U={"Content-Type":"application/json;charsetset=UTF-8"},X=w=>M({url:"/cloud/api/v1/file/list",method:"GET",params:{url:w},headers:U});const Y=k("label",null," _new folder",-1),$=k("label",null," _copy",-1),A=k("label",null," _rename",-1),G=k("label",null," _delete",-1),I=k("label",null," _delete",-1),Z=V({setup(w){const u=j(),R=b([]),n=b(new Set),C=b({isCtrl:!1,isShift:!1}),E=f(),x=f(),d=f(!0);f();const v=f(!1),F=(e,o,t,s)=>{n.has(e)||(x.value=e)},B=(e,o,t,s)=>{n.has(e)||(x.value=void 0)},D=(e,o,t)=>{C.isCtrl?n.has(e)?n.delete(e):n.add(e):(n.clear(),n.add(e))},S=(e,o,t)=>{var c;v.value=!0;let s=(c=u==null?void 0:u.proxy)==null?void 0:c.$refs.contextmenu;n.has(e)||(n.clear(),n.add(e)),t.preventDefault(),s.show({top:t.clientY,left:t.clientX}),window.onclick=()=>{s.hide(),v.value=!1}},_=()=>{},T=({row:e,rowIndex:o})=>{var t;if(n.has(e))return{background:"#B4C7E7"};if(((t=g(x.value))==null?void 0:t.name)==g(e).name)return{background:"#DAE3F3"}};return document.onkeydown=e=>{switch(e.key){case"Control":C.isCtrl=!0;break}},document.onkeyup=e=>{var o;switch(e.key){case"Control":C.isCtrl=!1;break;case"Escape":v.value?(((o=u==null?void 0:u.proxy)==null?void 0:o.$refs.contextmenu).hide(),v.value=!1):n.clear(),C.isCtrl=!0;break}},X("").then(e=>{e.data.forEach(o=>{const t={size:o.size,isDir:o.isDir,name:o.server_filename,path:o.path};R.push(t)})}),(e,o)=>{const t=y("el-table-column"),s=y("FolderOpened"),c=y("el-icon");return i(),z(N,null,[l(r(L),{data:r(R),onCellMouseEnter:F,onCellMouseLeave:B,"row-style":T,onRowContextmenu:S,onRowClick:D,ref_key:"multipleTableRef",ref:E},{default:a(()=>[l(t,{prop:"name",width:"200px"}),l(t,{prop:"isDir",width:"130px"}),l(t,{prop:"size",width:"130px"}),l(t,{prop:"path",width:"130px"})]),_:1},8,["data"]),l(r(O),{"auto-ajust-placement":"",ref:"contextmenu"},{default:a(()=>[d.value?(i(),p(r(m),{key:0,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),Y]),_:1})):h("",!0),d.value?(i(),p(r(m),{key:1,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),$]),_:1})):h("",!0),d.value?(i(),p(r(m),{key:2,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),A]),_:1})):h("",!0),d.value?(i(),p(r(m),{key:3,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),G]),_:1})):h("",!0),d.value?(i(),p(r(m),{key:4,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),I]),_:1})):h("",!0)]),_:1},512)],64)}}});export{Z as default};
|
import{D as M,d as V,c as b,b as f,f as z,h as l,w as a,u as r,U as L,F as N,V as U,W as g,e as y,o as i,B as p,X as m,I as h,Y as j,g as k}from"./index.89c8c085.js";const O={"Content-Type":"application/json;charsetset=UTF-8"},X=w=>M({url:"/cloud/api/v1/file/list",method:"GET",params:{url:w},headers:O});const Y=k("label",null," _new folder",-1),$=k("label",null," _copy",-1),A=k("label",null," _rename",-1),G=k("label",null," _delete",-1),I=k("label",null," _delete",-1),q=V({setup(w){const u=U(),R=b([]),n=b(new Set),C=b({isCtrl:!1,isShift:!1}),E=f(),x=f(),d=f(!0);f();const v=f(!1),F=(e,o,t,s)=>{n.has(e)||(x.value=e)},B=(e,o,t,s)=>{n.has(e)||(x.value=void 0)},D=(e,o,t)=>{C.isCtrl?n.has(e)?n.delete(e):n.add(e):(n.clear(),n.add(e))},S=(e,o,t)=>{var c;v.value=!0;let s=(c=u==null?void 0:u.proxy)==null?void 0:c.$refs.contextmenu;n.has(e)||(n.clear(),n.add(e)),t.preventDefault(),s.show({top:t.clientY,left:t.clientX}),window.onclick=()=>{s.hide(),v.value=!1}},_=()=>{},T=({row:e,rowIndex:o})=>{var t;if(n.has(e))return{background:"#B4C7E7"};if(((t=g(x.value))==null?void 0:t.name)==g(e).name)return{background:"#DAE3F3"}};return document.onkeydown=e=>{switch(e.key){case"Control":C.isCtrl=!0;break}},document.onkeyup=e=>{var o;switch(e.key){case"Control":C.isCtrl=!1;break;case"Escape":v.value?(((o=u==null?void 0:u.proxy)==null?void 0:o.$refs.contextmenu).hide(),v.value=!1):n.clear(),C.isCtrl=!0;break}},X("").then(e=>{e.data.forEach(o=>{const t={size:o.size,isDir:o.isDir,name:o.server_filename,path:o.path};R.push(t)})}),(e,o)=>{const t=y("el-table-column"),s=y("FolderOpened"),c=y("el-icon");return i(),z(N,null,[l(r(L),{data:r(R),onCellMouseEnter:F,onCellMouseLeave:B,"row-style":T,onRowContextmenu:S,onRowClick:D,ref_key:"multipleTableRef",ref:E},{default:a(()=>[l(t,{prop:"name",width:"200px"}),l(t,{prop:"isDir",width:"130px"}),l(t,{prop:"size",width:"130px"}),l(t,{prop:"path",width:"130px"})]),_:1},8,["data"]),l(r(j),{"auto-ajust-placement":"",ref:"contextmenu"},{default:a(()=>[d.value?(i(),p(r(m),{key:0,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),Y]),_:1})):h("",!0),d.value?(i(),p(r(m),{key:1,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),$]),_:1})):h("",!0),d.value?(i(),p(r(m),{key:2,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),A]),_:1})):h("",!0),d.value?(i(),p(r(m),{key:3,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),G]),_:1})):h("",!0),d.value?(i(),p(r(m),{key:4,onClick:_},{default:a(()=>[l(c,{class:"contextmenu-icon"},{default:a(()=>[l(s)]),_:1}),I]),_:1})):h("",!0)]),_:1},512)],64)}}});export{q as default};
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1 +1 @@
|
|||||||
import{v as q,D as T,_ as J,d as K,c as g,b as m,l as Q,f as i,H as X,B as Y,w as a,I as L,h as l,u as o,F as S,e as n,G as Z,o as u,g as r,z as c,x as ee,i as E,p as te,j as le,m as oe}from"./index.ca1e8891.js";import{t as v}from"./date.86e91942.js";import{s as ae}from"./settings.5938f8d1.js";import"./number.46c8fb59.js";const ne=q.create(),se=()=>ne({url:"https://holidays-jp.github.io/api/v1/2023/date.json",method:"GET"}),de={"Content-Type":"application/json;charsetset=UTF-8"},ue=_=>T({url:"/calendar/api/v1/event",method:"PUT",data:_}),ie=()=>T({url:"/calendar/api/v1/event",method:"GET",headers:de});const U=_=>(te("data-v-c6866494"),_=_(),le(),_),ce={key:0,class:"date-cell-holiday"},re=["onClick"],_e=U(()=>r("br",null,null,-1)),pe={key:1,class:"date-cell"},me=["onClick"],ve=["onClick"],fe={key:2,class:"date-cell-event"},he=U(()=>r("span",null,"\u5F85\u529E\u4E8B\u9879",-1)),be={class:"dialog-footer"},ge=E("Cancel"),ke=E(" Confirm "),ye=K({setup(_){const f=ae(),k=g({}),y=g([]),x=g({}),d=g({event_date:"",title:"",event_info:""}),D=m(new Date),p=m(!1),h="140px",w=m(!1),B=m(!0),F=m([]),$=["email","messageBox","\u624B\u673A\u77ED\u4FE1","\u5FAE\u4FE1\u901A\u77E5"],C=s=>{d.event_date=v(s),p.value=!0},N=async()=>{await ue(d).then(()=>{}),p.value=!1,O("refresh")},O=s=>{s==="refresh"&&(f.settings.isLoading=!0,f.settings.isRouterAlive=!1,oe(()=>{f.settings.isRouterAlive=!0,f.settings.isLoading=!1}))};return Q(async()=>{await se().then(s=>{Object.keys(s.data).forEach(t=>{k[t]=s.data[t]})}),await ie().then(s=>{y.length=0,s.data.forEach(t=>{y.push(t),x[t.event_date]=t.title})}),w.value=!0,B.value=!1}),(s,t)=>{const G=n("el-calendar"),V=n("el-table-column"),R=n("el-table"),b=n("el-form-item"),A=n("el-input"),z=n("el-checkbox"),H=n("el-checkbox-group"),M=n("el-form"),j=n("el-button"),P=n("el-dialog"),W=Z("loading");return u(),i(S,null,[w.value?X((u(),Y(G,{key:0,modelValue:D.value,"onUpdate:modelValue":t[0]||(t[0]=e=>D.value=e),"element-loading-text":"\u4E3B\u4EBA\uFF0C\u522B\u7740\u6025\u6211\u5728\u52AA\u529B\u52A0\u8F7D\u4E2D^_^"},{dateCell:a(({data:e})=>[Object.keys(o(k)).includes(o(v)(e.date))?(u(),i("div",ce,[r("span",{style:{color:"red"},onClick:I=>C(e.date)},c(e.date.getDate()),9,re),_e,r("span",null,c(o(k)[o(v)(e.date)]),1)])):(u(),i("div",pe,[e.date.getDay()==0||e.date.getDay()==6?(u(),i("span",{key:0,style:{color:"red"},onClick:I=>C(e.date)},c(e.date.getDate()),9,me)):(u(),i("span",{key:1,onClick:I=>C(e.date)},c(e.date.getDate()),9,ve))])),Object.keys(o(x)).includes(o(v)(e.date))?(u(),i("div",fe,[r("span",null,c(o(x)[o(v)(e.date)]),1)])):L("",!0)]),_:1},8,["modelValue"])),[[W,B.value]]):L("",!0),he,l(R,{data:o(y)},{default:a(()=>[l(V,{property:"event_date",label:"Date",width:"150"}),l(V,{property:"title",label:"title",width:"200"}),l(V,{property:"event_info",label:"eventInfo"})]),_:1},8,["data"]),l(P,{modelValue:p.value,"onUpdate:modelValue":t[5]||(t[5]=e=>p.value=e),title:"\u5F85\u529E\u4E8B\u9879"},{footer:a(()=>[r("span",be,[l(j,{onClick:t[4]||(t[4]=e=>p.value=!1)},{default:a(()=>[ge]),_:1}),l(j,{type:"primary",onClick:N},{default:a(()=>[ke]),_:1})])]),default:a(()=>[l(M,{model:o(d)},{default:a(()=>[l(b,{label:"\u65E5\u671F","label-width":h},{default:a(()=>[r("span",null,c(o(d).event_date),1)]),_:1}),l(b,{label:"title","label-width":h},{default:a(()=>[l(A,{modelValue:o(d).title,"onUpdate:modelValue":t[1]||(t[1]=e=>o(d).title=e),autocomplete:"off"},null,8,["modelValue"])]),_:1}),l(b,{label:"eventInfo","label-width":h},{default:a(()=>[l(A,{modelValue:o(d).event_info,"onUpdate:modelValue":t[2]||(t[2]=e=>o(d).event_info=e),autocomplete:"off",type:"textarea"},null,8,["modelValue"])]),_:1}),l(b,{label:"alert","label-width":h},{default:a(()=>[l(H,{modelValue:F.value,"onUpdate:modelValue":t[3]||(t[3]=e=>F.value=e),min:0,max:2},{default:a(()=>[(u(),i(S,null,ee($,e=>l(z,{key:e,label:e},{default:a(()=>[E(c(e),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});var De=J(ye,[["__scopeId","data-v-c6866494"]]);export{De as default};
|
import{v as q,D as T,_ as J,d as K,c as g,b as m,l as Q,f as i,H as X,B as Y,w as a,I as L,h as l,u as o,F as S,e as n,G as Z,o as u,g as r,z as c,x as ee,i as E,p as te,j as le,m as oe}from"./index.89c8c085.js";import{t as v}from"./date.86e91942.js";import{s as ae}from"./settings.3d3ee3ea.js";import"./number.46c8fb59.js";const ne=q.create(),se=()=>ne({url:"https://holidays-jp.github.io/api/v1/2023/date.json",method:"GET"}),de={"Content-Type":"application/json;charsetset=UTF-8"},ue=_=>T({url:"/calendar/api/v1/event",method:"PUT",data:_}),ie=()=>T({url:"/calendar/api/v1/event",method:"GET",headers:de});const U=_=>(te("data-v-c6866494"),_=_(),le(),_),ce={key:0,class:"date-cell-holiday"},re=["onClick"],_e=U(()=>r("br",null,null,-1)),pe={key:1,class:"date-cell"},me=["onClick"],ve=["onClick"],fe={key:2,class:"date-cell-event"},he=U(()=>r("span",null,"\u5F85\u529E\u4E8B\u9879",-1)),be={class:"dialog-footer"},ge=E("Cancel"),ke=E(" Confirm "),ye=K({setup(_){const f=ae(),k=g({}),y=g([]),x=g({}),d=g({event_date:"",title:"",event_info:""}),D=m(new Date),p=m(!1),h="140px",w=m(!1),B=m(!0),F=m([]),$=["email","messageBox","\u624B\u673A\u77ED\u4FE1","\u5FAE\u4FE1\u901A\u77E5"],C=s=>{d.event_date=v(s),p.value=!0},N=async()=>{await ue(d).then(()=>{}),p.value=!1,O("refresh")},O=s=>{s==="refresh"&&(f.settings.isLoading=!0,f.settings.isRouterAlive=!1,oe(()=>{f.settings.isRouterAlive=!0,f.settings.isLoading=!1}))};return Q(async()=>{await se().then(s=>{Object.keys(s.data).forEach(t=>{k[t]=s.data[t]})}),await ie().then(s=>{y.length=0,s.data.forEach(t=>{y.push(t),x[t.event_date]=t.title})}),w.value=!0,B.value=!1}),(s,t)=>{const G=n("el-calendar"),V=n("el-table-column"),R=n("el-table"),b=n("el-form-item"),A=n("el-input"),z=n("el-checkbox"),H=n("el-checkbox-group"),M=n("el-form"),j=n("el-button"),P=n("el-dialog"),W=Z("loading");return u(),i(S,null,[w.value?X((u(),Y(G,{key:0,modelValue:D.value,"onUpdate:modelValue":t[0]||(t[0]=e=>D.value=e),"element-loading-text":"\u4E3B\u4EBA\uFF0C\u522B\u7740\u6025\u6211\u5728\u52AA\u529B\u52A0\u8F7D\u4E2D^_^"},{dateCell:a(({data:e})=>[Object.keys(o(k)).includes(o(v)(e.date))?(u(),i("div",ce,[r("span",{style:{color:"red"},onClick:I=>C(e.date)},c(e.date.getDate()),9,re),_e,r("span",null,c(o(k)[o(v)(e.date)]),1)])):(u(),i("div",pe,[e.date.getDay()==0||e.date.getDay()==6?(u(),i("span",{key:0,style:{color:"red"},onClick:I=>C(e.date)},c(e.date.getDate()),9,me)):(u(),i("span",{key:1,onClick:I=>C(e.date)},c(e.date.getDate()),9,ve))])),Object.keys(o(x)).includes(o(v)(e.date))?(u(),i("div",fe,[r("span",null,c(o(x)[o(v)(e.date)]),1)])):L("",!0)]),_:1},8,["modelValue"])),[[W,B.value]]):L("",!0),he,l(R,{data:o(y)},{default:a(()=>[l(V,{property:"event_date",label:"Date",width:"150"}),l(V,{property:"title",label:"title",width:"200"}),l(V,{property:"event_info",label:"eventInfo"})]),_:1},8,["data"]),l(P,{modelValue:p.value,"onUpdate:modelValue":t[5]||(t[5]=e=>p.value=e),title:"\u5F85\u529E\u4E8B\u9879"},{footer:a(()=>[r("span",be,[l(j,{onClick:t[4]||(t[4]=e=>p.value=!1)},{default:a(()=>[ge]),_:1}),l(j,{type:"primary",onClick:N},{default:a(()=>[ke]),_:1})])]),default:a(()=>[l(M,{model:o(d)},{default:a(()=>[l(b,{label:"\u65E5\u671F","label-width":h},{default:a(()=>[r("span",null,c(o(d).event_date),1)]),_:1}),l(b,{label:"title","label-width":h},{default:a(()=>[l(A,{modelValue:o(d).title,"onUpdate:modelValue":t[1]||(t[1]=e=>o(d).title=e),autocomplete:"off"},null,8,["modelValue"])]),_:1}),l(b,{label:"eventInfo","label-width":h},{default:a(()=>[l(A,{modelValue:o(d).event_info,"onUpdate:modelValue":t[2]||(t[2]=e=>o(d).event_info=e),autocomplete:"off",type:"textarea"},null,8,["modelValue"])]),_:1}),l(b,{label:"alert","label-width":h},{default:a(()=>[l(H,{modelValue:F.value,"onUpdate:modelValue":t[3]||(t[3]=e=>F.value=e),min:0,max:2},{default:a(()=>[(u(),i(S,null,ee($,e=>l(z,{key:e,label:e},{default:a(()=>[E(c(e),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}});var De=J(ye,[["__scopeId","data-v-c6866494"]]);export{De as default};
|
||||||
Vendored
BIN
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
import{d as $,c as h,f as r,h as e,w as l,u as a,F as y,x,g as i,r as k,e as u,o as _,B as j,z as C,i as m,O as q}from"./index.ca1e8891.js";import{g as w,a as A,p as O,b as T}from"./blogView.e85d3c9d.js";import"./index.350fa5f6.js";const G=i("span",null,"\u5206\u7C7B\u641C\u7D22",-1),H=i("span",{class:"text-gray-500"},"-",-1),J=m("\u641C\u7D22"),K=m("\u521B\u4F5C"),M=m("\u5168\u90E8\u91CD\u65B0\u53D1\u5E03"),P={class:"blog_list"},Q=["onClick"],R={style:{display:"flex","justify-content":"space-between","align-items":"center"}},W={style:{"font-size":"12px",height:"16px","line-height":"16px",overflow:"hidden","text-overflow":"ellipsis"}},X=m("\u91CD\u65B0\u53D1\u5E03 "),Y={class:"page_style"},le=$({setup(Z){const s=h({key_word:"",btId:"",start_day:"",end_day:"",page_number:1,page_size:20,total:1}),p=h([]),b=h([]),B=()=>{w(s).then(n=>{p.splice(0,p.length),n.data.forEach(t=>{p.push(t)})})},v=n=>{q.set("bid",n);const{href:t}=k.resolve({path:"/view",query:{bid:n}});window.open(t,"_blank")},V=()=>{const{href:n}=k.resolve({path:"/write/"});window.open(n,"_blank")},E=()=>{O()},F=n=>{T(n)};return w({}).then(n=>{n.data.forEach(t=>{p.push(t)})}),A().then(n=>{b.push({btId:"",btName:"\u9009\u62E9\u5206\u7C7B"}),n.data.forEach(t=>{const f={btId:t.btId,btName:t.btName};b.push(f)})}),(n,t)=>{const f=u("el-input"),d=u("el-col"),D=u("el-option"),N=u("el-select"),g=u("el-form-item"),I=u("el-date-picker"),z=u("el-time-picker"),c=u("el-button"),U=u("el-form"),L=u("el-pagination");return _(),r(y,null,[e(U,{model:a(s),"label-width":"120px"},{default:l(()=>[e(g,{label:"\u5173\u952E\u5B57\u641C\u7D22"},{default:l(()=>[e(d,{span:7},{default:l(()=>[e(f,{modelValue:a(s).key_word,"onUpdate:modelValue":t[0]||(t[0]=o=>a(s).key_word=o)},null,8,["modelValue"])]),_:1}),e(d,{span:1}),e(d,{span:10},{default:l(()=>[G,e(N,{modelValue:a(s).btId,"onUpdate:modelValue":t[1]||(t[1]=o=>a(s).btId=o),placeholder:"\u9009\u62E9\u5206\u7C7B"},{default:l(()=>[(_(!0),r(y,null,x(a(b),o=>(_(),j(D,{key:o.btId,label:o.btName,value:o.btId},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(g,{label:"\u521B\u4F5C\u65F6\u95F4"},{default:l(()=>[e(d,{span:7},{default:l(()=>[e(I,{modelValue:a(s).start_day,"onUpdate:modelValue":t[2]||(t[2]=o=>a(s).start_day=o),type:"date",placeholder:"\u5F00\u59CB\u65F6\u95F4",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{span:2,class:"text-center"},{default:l(()=>[H]),_:1}),e(d,{span:7},{default:l(()=>[e(z,{modelValue:a(s).end_day,"onUpdate:modelValue":t[3]||(t[3]=o=>a(s).end_day=o),placeholder:"\u7ED3\u675F\u65F6\u95F4",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),e(d,{span:6,style:{"text-align":"center"}},{default:l(()=>[e(c,{type:"primary",onClick:B},{default:l(()=>[J]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),e(c,{onClick:V},{default:l(()=>[K]),_:1}),e(c,{onClick:E},{default:l(()=>[M]),_:1}),(_(!0),r(y,null,x(a(p),o=>(_(),r("div",P,[i("h3",{style:{cursor:"pointer",width:"min-content","white-space":"nowrap"},onClick:S=>v(o.bid)},C(o.title),9,Q),i("div",R,[i("p",W,C(o.content),1),e(c,{size:"small",type:"success",onClick:S=>F(o.bid)},{default:l(()=>[X]),_:2},1032,["onClick"])])]))),256)),i("div",Y,[e(L,{small:"",background:"",layout:"prev, pager, next",total:50,class:"mt-4"})])],64)}}});export{le as default};
|
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1 +1 @@
|
|||||||
import{d as q,c as z,b as m,l as P,q as W,$ as p,S as o,f as C,g as D,h as e,w as n,u as d,F as B,e as s,o as b,x as A,B as E,Y as X,Z as G,W as H}from"./index.ca1e8891.js";import{s as J,g as K,a as O,c as Q}from"./strategy.6c4d2f6b.js";import{t as T}from"./number.46c8fb59.js";const ee={class:"demo-collapse"},le={style:{cursor:"pointer"}},te=D("label",null," concel subscribe",-1),ue=q({setup(oe){const g=H(),_=J(),w=z([]),v=m(),y=m(),x=m(0),k=m(["1"]),f=m(""),I=()=>{!v.value||O(v.value).then(l=>{p({message:o("p",null,[o("i",{style:"color: green"},"\u884C\u60C5\u8BA2\u9605\u6210\u529F")])}),_.select_subscribe_vt_symbols(),h()}).catch(l=>{p({message:o("p",null,[o("i",{style:"color: red"},"\u884C\u60C5\u8BA2\u9605\u5931\u8D25")])})})},M=()=>{!f.value||Q(f.value).then(l=>{p({message:o("p",null,[o("i",{style:"color: green"},"\u53D6\u6D88\u8BA2\u9605\u6210\u529F")])}),h()}).catch(l=>{p({message:o("p",null,[o("i",{style:"color: red"},"\u53D6\u6D88\u8BA2\u9605\u5931\u8D25")])})})},S=(l,t)=>{let a=(l.last_price-l.open_price)/l.open_price;return T(a)},N=(l,t,a,i)=>{f.value=l.symbol+"."+l.exchange,console.log(f.value)},U=(l,t,a,i)=>{},L=(l,t,a)=>{var r;let i=(r=g==null?void 0:g.proxy)==null?void 0:r.$refs.contextmenu;a.preventDefault(),i.show({top:a.clientY,left:a.clientX}),window.onclick=()=>{i.hide()}},h=()=>(K().then(l=>{w.length=0,l.data.ticks.forEach(t=>{w.push(t)})}),h);return P(()=>{clearInterval(x.value),x.value=window.setInterval(h(),3e3)}),W(()=>{window.clearInterval(x.value)}),_.select_subscribe_vt_symbols().catch(l=>{p({message:o("p",null,[o("i",{style:"color: teal"},"\u8BFB\u53D6vt_symbols\u5931\u8D25")])})}),_.select_vt_symbols().catch(l=>{p({message:o("p",null,[o("i",{style:"color: teal"},"\u8BFB\u53D6vt_symbols\u5931\u8D25")])})}),_.select_exchanges().catch(l=>{p({message:o("p",null,[o("i",{style:"color: teal"},"\u8BFB\u53D6exchanges\u5931\u8D25")])})}),(l,t)=>{const a=s("el-option"),i=s("el-select"),r=s("el-col"),R=s("ZoomIn"),V=s("el-icon"),Z=s("el-row"),F=s("el-collapse-item"),u=s("el-table-column"),$=s("el-table"),Y=s("el-collapse"),j=s("CircleClose");return b(),C(B,null,[D("div",ee,[e(Y,{modelValue:k.value,"onUpdate:modelValue":t[3]||(t[3]=c=>k.value=c)},{default:n(()=>[e(F,{title:"\u8BA2\u9605\u884C\u60C5",name:"2"},{default:n(()=>[e(Z,null,{default:n(()=>[e(r,{span:4},{default:n(()=>[e(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=c=>y.value=c),placeholder:"select a exchange"},{default:n(()=>[(b(!0),C(B,null,A(d(_).strategy.exchanges,c=>(b(),E(a,{value:c},null,8,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),e(r,{span:1}),e(r,{span:4},{default:n(()=>[e(i,{modelValue:v.value,"onUpdate:modelValue":t[1]||(t[1]=c=>v.value=c),placeholder:"select a vt_symbol"},{default:n(()=>[(b(!0),C(B,null,A(d(_).strategy.vt_symbols.get(y.value),c=>(b(),E(a,{value:c},null,8,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),e(r,{span:1}),e(r,{span:4},{default:n(()=>[D("span",le,[e(V,{size:25,onClick:t[2]||(t[2]=c=>I())},{default:n(()=>[e(R)]),_:1})])]),_:1})]),_:1})]),_:1}),e(F,{title:"\u8BA2\u9605\u4E00\u89C8",name:"1"},{default:n(()=>[e($,{onRowContextmenu:L,onCellMouseEnter:N,onCellMouseLeave:U,data:d(w),style:{width:"100%"}},{default:n(()=>[e(u,{fixed:"",prop:"symbol",label:"symbol",width:"80"}),e(u,{prop:"exchange",label:"exchange",width:"100"}),e(u,{prop:"name",label:"Name",width:"120"}),e(u,{prop:"last_price",label:"last_price",width:"120"}),e(u,{prop:"volume",label:"volume",width:"100"}),e(u,{prop:"open_price",label:"open_price",width:"120"}),e(u,{prop:"high_price",label:"high_price",width:"120"}),e(u,{prop:"low_price",label:"low_price",width:"100"}),e(u,{prop:"differ",label:"differ",width:"70"}),e(u,{prop:"differ_percent",label:"differ_per",formatter:S,width:"120"})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue"])]),e(d(G),{"auto-ajust-placement":"",ref:"contextmenu"},{default:n(()=>[e(d(X),{onClick:M},{default:n(()=>[e(V,{class:"contextmenu-icon"},{default:n(()=>[e(j)]),_:1}),te]),_:1})]),_:1},512)],64)}}});export{ue as default};
|
import{d as j,c as q,b as m,l as z,q as P,Z as p,R as o,f as C,g as D,h as e,w as n,u as d,F as B,e as s,o as b,x as A,B as E,X as G,Y as H,V as J}from"./index.89c8c085.js";import{s as K,g as O,a as Q,c as T}from"./strategy.ca620cdb.js";import{t as W}from"./number.46c8fb59.js";const ee={class:"demo-collapse"},le={style:{cursor:"pointer"}},te=D("label",null," concel subscribe",-1),ue=j({setup(oe){const g=J(),_=K(),w=q([]),v=m(),y=m(),x=m(0),k=m(["1"]),f=m(""),I=()=>{!v.value||Q(v.value).then(l=>{p({message:o("p",null,[o("i",{style:"color: green"},"\u884C\u60C5\u8BA2\u9605\u6210\u529F")])}),_.select_subscribe_vt_symbols(),h()}).catch(l=>{p({message:o("p",null,[o("i",{style:"color: red"},"\u884C\u60C5\u8BA2\u9605\u5931\u8D25")])})})},M=()=>{!f.value||T(f.value).then(l=>{p({message:o("p",null,[o("i",{style:"color: green"},"\u53D6\u6D88\u8BA2\u9605\u6210\u529F")])}),h()}).catch(l=>{p({message:o("p",null,[o("i",{style:"color: red"},"\u53D6\u6D88\u8BA2\u9605\u5931\u8D25")])})})},N=(l,t)=>{let a=(l.last_price-l.open_price)/l.open_price;return W(a)},R=(l,t,a,i)=>{f.value=l.symbol+"."+l.exchange,console.log(f.value)},S=(l,t,a,i)=>{},U=(l,t,a)=>{var r;let i=(r=g==null?void 0:g.proxy)==null?void 0:r.$refs.contextmenu;a.preventDefault(),i.show({top:a.clientY,left:a.clientX}),window.onclick=()=>{i.hide()}},h=()=>(O().then(l=>{w.length=0,l.data.ticks.forEach(t=>{w.push(t)})}),h);return z(()=>{clearInterval(x.value),x.value=window.setInterval(h(),3e3)}),P(()=>{window.clearInterval(x.value)}),_.select_subscribe_vt_symbols().catch(l=>{p({message:o("p",null,[o("i",{style:"color: teal"},"\u8BFB\u53D6vt_symbols\u5931\u8D25")])})}),_.select_vt_symbols().catch(l=>{p({message:o("p",null,[o("i",{style:"color: teal"},"\u8BFB\u53D6vt_symbols\u5931\u8D25")])})}),_.select_exchanges().catch(l=>{p({message:o("p",null,[o("i",{style:"color: teal"},"\u8BFB\u53D6exchanges\u5931\u8D25")])})}),(l,t)=>{const a=s("el-option"),i=s("el-select"),r=s("el-col"),L=s("ZoomIn"),V=s("el-icon"),Z=s("el-row"),F=s("el-collapse-item"),u=s("el-table-column"),X=s("el-table"),Y=s("el-collapse"),$=s("CircleClose");return b(),C(B,null,[D("div",ee,[e(Y,{modelValue:k.value,"onUpdate:modelValue":t[3]||(t[3]=c=>k.value=c)},{default:n(()=>[e(F,{title:"\u8BA2\u9605\u884C\u60C5",name:"2"},{default:n(()=>[e(Z,null,{default:n(()=>[e(r,{span:4},{default:n(()=>[e(i,{modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=c=>y.value=c),placeholder:"select a exchange"},{default:n(()=>[(b(!0),C(B,null,A(d(_).strategy.exchanges,c=>(b(),E(a,{value:c},null,8,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),e(r,{span:1}),e(r,{span:4},{default:n(()=>[e(i,{modelValue:v.value,"onUpdate:modelValue":t[1]||(t[1]=c=>v.value=c),placeholder:"select a vt_symbol"},{default:n(()=>[(b(!0),C(B,null,A(d(_).strategy.vt_symbols.get(y.value),c=>(b(),E(a,{value:c},null,8,["value"]))),256))]),_:1},8,["modelValue"])]),_:1}),e(r,{span:1}),e(r,{span:4},{default:n(()=>[D("span",le,[e(V,{size:25,onClick:t[2]||(t[2]=c=>I())},{default:n(()=>[e(L)]),_:1})])]),_:1})]),_:1})]),_:1}),e(F,{title:"\u8BA2\u9605\u4E00\u89C8",name:"1"},{default:n(()=>[e(X,{onRowContextmenu:U,onCellMouseEnter:R,onCellMouseLeave:S,data:d(w),style:{width:"100%"}},{default:n(()=>[e(u,{fixed:"",prop:"symbol",label:"symbol",width:"80"}),e(u,{prop:"exchange",label:"exchange",width:"100"}),e(u,{prop:"name",label:"Name",width:"120"}),e(u,{prop:"last_price",label:"last_price",width:"120"}),e(u,{prop:"volume",label:"volume",width:"100"}),e(u,{prop:"open_price",label:"open_price",width:"120"}),e(u,{prop:"high_price",label:"high_price",width:"120"}),e(u,{prop:"low_price",label:"low_price",width:"100"}),e(u,{prop:"differ",label:"differ",width:"70"}),e(u,{prop:"differ_percent",label:"differ_per",formatter:N,width:"120"})]),_:1},8,["data"])]),_:1})]),_:1},8,["modelValue"])]),e(d(H),{"auto-ajust-placement":"",ref:"contextmenu"},{default:n(()=>[e(d(G),{onClick:M},{default:n(()=>[e(V,{class:"contextmenu-icon"},{default:n(()=>[e($)]),_:1}),te]),_:1})]),_:1},512)],64)}}});export{ue as default};
|
||||||
Vendored
BIN
Binary file not shown.
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
.input_prex[data-v-900d970e]{width:2px;height:35px}.input_edit[data-v-900d970e],.input_show[data-v-900d970e]{margin-left:5px}.page_tab[data-v-900d970e]{display:flex;align-items:center;width:90px;height:35px;padding-left:15px}.page_title[data-v-900d970e]{font-size:14px;font-family:Meiryo,Courier,monospace}.section_show[data-v-09a30288]{width:90px}.section_tab[data-v-09a30288]{display:flex;align-items:center;width:90px;height:35px;padding-left:15px}.page_title[data-v-09a30288]{font-size:14px;font-family:Meiryo,Courier,monospace}.nav_before[data-v-2a86777c]{background-color:#fff;width:5px;height:40px}.nav_button[data-v-2a86777c]{border-radius:0;width:50px;height:40px}.one_note[data-v-7d25d508]{display:flex;align-items:stretch}.section_tabs[data-v-7d25d508],.page_tabs[data-v-7d25d508]{display:flex;flex-direction:column;justify-content:space-between;width:90px}.nav_tabs[data-v-7d25d508]{display:flex;flex-direction:column;width:55px;padding:0}.common_box[data-v-7d25d508]{background-color:#fff;border-right-width:1px;border-right-style:solid;border-right-color:#faebd7}.plus_button[data-v-7d25d508]{border-top:1px solid antiquewhite;border-bottom:1px solid antiquewhite;border-left:0px solid antiquewhite;border-right:0px solid antiquewhite;border-radius:0}
|
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1,4 +1,4 @@
|
|||||||
import{h as im,c as gL}from"./blog.4b923d59.js";import{_ as Yd,d as Zd,k as yL,b as Xn,l as mL,m as _L,q as SL,o as Ea,f as qn,g as It,p as Xd,j as qd,v as Kd,c as xL,F as lw,x as uw,y as bL,z as Ra,u as ip,A as wL,e as Xr,h as Zt,w as pe,i as eo,B as nm,n as om,C as TL}from"./index.ca1e8891.js";import{f as CL}from"./date.86e91942.js";import{b as AL}from"./bookmark.000ff4a9.js";import"./number.46c8fb59.js";import"./index.350fa5f6.js";var ML="/assets/dashboard.70e55b71.png";/*! *****************************************************************************
|
import{h as im,c as gL}from"./blog.241a2523.js";import{_ as Yd,d as Zd,k as yL,b as Xn,l as mL,m as _L,q as SL,o as Ea,f as qn,g as It,p as Xd,j as qd,v as Kd,c as xL,F as lw,x as uw,y as bL,z as Ra,u as ip,A as wL,e as Xr,h as Zt,w as pe,i as eo,B as nm,n as om,C as TL}from"./index.89c8c085.js";import{f as CL}from"./date.86e91942.js";import{b as AL}from"./bookmark.88786631.js";import"./number.46c8fb59.js";import"./index.35e25221.js";var ML="/assets/dashboard.70e55b71.png";/*! *****************************************************************************
|
||||||
Copyright (c) Microsoft Corporation.
|
Copyright (c) Microsoft Corporation.
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
Vendored
BIN
Binary file not shown.
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
@@ -1 +1 @@
|
|||||||
import{_ as e,f as o,o as _}from"./index.ca1e8891.js";const a={},n={class:"dialog-footer"};function r(c,s){return _(),o("span",n," \u5F53\u4F60\u770B\u5230\u4E86\uFF0C\u8FD9\u4E2A\u9875\u9762\uFF0C\u8FD9\u8868\u793A\u4E86\uFF0C\u4F60\u901A\u8FC7\u767E\u5EA6\u626B\u63CF\u767B\u9646\u4E86\u6211\u7684\u79D8\u5BC6\u57FA\u5730\uFF0C\u4F46\u662F\u5F88\u9057\u61BE\u7684\u544A\u8BC9\u4F60\uFF0C\u6211\u4EEC\u5C06\u4EE5\u975E\u6CD5\u767B\u5F55\u7684\u65B9\u5F0F\u5904\u7406\u4F60\u7684\u8BF7\u6C42\uFF0C88 ")}var d=e(a,[["render",r]]);export{d as default};
|
import{_ as e,f as o,o as _}from"./index.89c8c085.js";const a={},n={class:"dialog-footer"};function r(c,s){return _(),o("span",n," \u5F53\u4F60\u770B\u5230\u4E86\uFF0C\u8FD9\u4E2A\u9875\u9762\uFF0C\u8FD9\u8868\u793A\u4E86\uFF0C\u4F60\u901A\u8FC7\u767E\u5EA6\u626B\u63CF\u767B\u9646\u4E86\u6211\u7684\u79D8\u5BC6\u57FA\u5730\uFF0C\u4F46\u662F\u5F88\u9057\u61BE\u7684\u544A\u8BC9\u4F60\uFF0C\u6211\u4EEC\u5C06\u4EE5\u975E\u6CD5\u767B\u5F55\u7684\u65B9\u5F0F\u5904\u7406\u4F60\u7684\u8BF7\u6C42\uFF0C88 ")}var d=e(a,[["render",r]]);export{d as default};
|
||||||
@@ -1 +1 @@
|
|||||||
.section-main{height:100%;padding:14px}.headerAvatar[data-v-db52df48]{display:flex;justify-content:center;align-items:center;margin-right:8px}.file[data-v-db52df48]{width:80px;height:80px;position:relative}.right-box[data-v-c76ebeb4]{padding-top:16px;display:flex;justify-content:flex-end;align-items:center}.right-box img[data-v-c76ebeb4]{vertical-align:middle;border:1px solid #ccc;border-radius:6px}.header-avatar[data-v-c76ebeb4]{display:flex;justify-content:center;align-items:center}.side_Style[data-v-9bec03b6]{width:100px}.side-main[data-v-9bec03b6]{width:200px}.gva-menu-item[data-v-9bec03b6]{color:#fff}.el-menu-item.is-active[data-v-9bec03b6]{color:var(--400e7370);background:var(--400e7370)}.el-header[data-v-82d0b598]{border-bottom-style:solid;border-bottom-width:.5px;border-bottom-color:#9797974d}.el-main[data-v-82d0b598]{padding:16px;overflow:hidden}.el-aside[data-v-82d0b598]{margin-left:-10px;background:#191a23}.el-footer[data-v-82d0b598]{margin-top:20px;display:flex;justify-content:space-around}
|
.section-main{height:100%;padding:14px}.headerAvatar[data-v-db52df48]{display:flex;justify-content:center;align-items:center;margin-right:8px}.file[data-v-db52df48]{width:80px;height:80px;position:relative}.right-box[data-v-c76ebeb4]{padding-top:16px;display:flex;justify-content:flex-end;align-items:center}.right-box img[data-v-c76ebeb4]{vertical-align:middle;border:1px solid #ccc;border-radius:6px}.header-avatar[data-v-c76ebeb4]{display:flex;justify-content:center;align-items:center}.side_Style[data-v-9bec03b6]{width:100px}.side-main[data-v-9bec03b6]{width:200px}.gva-menu-item[data-v-9bec03b6]{color:#fff}.el-menu-item.is-active[data-v-9bec03b6]{color:var(--400e7370);background:var(--400e7370)}.el-header[data-v-4dcee88b]{border-bottom-style:solid;border-bottom-width:.5px;border-bottom-color:#9797974d}.el-main[data-v-4dcee88b]{padding:16px;overflow:hidden;height:100%}.el-aside[data-v-4dcee88b]{margin-left:-10px;background:#191a23;position:fixed}.el-footer[data-v-4dcee88b]{margin-top:20px;display:flex;justify-content:space-around}.homeWrap[data-v-4dcee88b]{position:absolute;top:0;height:100%;width:100%}
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
import{E as n}from"./style.f887caa2.js";import{d as u,b as l,B as i,u as r,P as m,a6 as p,o as d}from"./index.ca1e8891.js";import{c}from"./blogView.e85d3c9d.js";import"./index.350fa5f6.js";const k=u({setup(f){let e=l("");const s=p().query;return(()=>{c(s.bid).then(t=>{e.value=t.data.content})})(),(t,o)=>(d(),i(r(n),{modelValue:r(e),"onUpdate:modelValue":o[0]||(o[0]=a=>m(e)?e.value=a:e=a),previewOnly:""},null,8,["modelValue"]))}});export{k as default};
|
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
import{E as u}from"./style.be4dc9a9.js";import{d as i,b as s,f as m,g as d,z as p,u as a,h as c,O as f,F as g,a5 as V,o as B}from"./index.89c8c085.js";import{c as _}from"./blogView.0384569e.js";import"./index.35e25221.js";const F=i({setup(v){let e=s(""),o=s("");const n=V().query;return(()=>{_(n.bid).then(t=>{e.value=t.data.content,o.value=t.data.title})})(),(t,l)=>(B(),m(g,null,[d("h2",null,p(a(o)),1),c(a(u),{modelValue:a(e),"onUpdate:modelValue":l[0]||(l[0]=r=>f(e)?e.value=r:e=r),previewOnly:""},null,8,["modelValue"])],64))}});export{F as default};
|
||||||
@@ -1 +1 @@
|
|||||||
import{d as f,c as b,f as V,h as e,w as l,u as o,F as C,i as m,g as B,a6 as E,e as r,o as F,bU as k,s as h,a as A,r as U}from"./index.ca1e8891.js";const g=m(" \u8A72\u5F53\u30B7\u30B9\u30C6\u30E0\u306E\u3054\u5229\u7528\u306F\u30B7\u30B9\u30C6\u30E0\u7BA1\u7406\u8005\u306B\u8A31\u53EF\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002"),w=B("br",null,null,-1),x=m(" \u8A31\u53EF\u304C\u306A\u3051\u308C\u3070\u3001\u30E6\u30FC\u30B6\u30FC\u60C5\u5831\u3092\u767B\u9332\u3057\u3066\u3082\u3001\u30B7\u30B9\u30C6\u30E0\u306E\u3054\u5229\u7528\u306F\u3067\u304D\u307E\u305B\u3093\u306E\u3067\u3001\u3054\u6CE8\u610F\u304F\u3060\u3055\u3044\u3002 "),v=m("Register"),y=m("Cancel"),R=f({setup(I){const d=E().query,u=b({phone_number:"",code:"",tenant_id:d.tenantId,account:d.account,token:d.token}),i=()=>{k(u).then(_=>{if(_.status==200){const t={id:d.tenantId,account:d.account};h(d.token),A(t);const{href:a}=U.resolve({path:"/"});window.open(a,"_self")}})};return(_,t)=>{const a=r("el-input"),s=r("el-form-item"),c=r("el-button"),p=r("el-form");return F(),V(C,null,[g,w,x,e(p,{model:o(u),"label-width":"120px"},{default:l(()=>[e(s,{label:"phone_number"},{default:l(()=>[e(a,{modelValue:o(u).phone_number,"onUpdate:modelValue":t[0]||(t[0]=n=>o(u).phone_number=n)},null,8,["modelValue"])]),_:1}),e(s,{label:"auth_code"},{default:l(()=>[e(a,{modelValue:o(u).code,"onUpdate:modelValue":t[1]||(t[1]=n=>o(u).code=n)},null,8,["modelValue"])]),_:1}),e(s,{label:"tenantId"},{default:l(()=>[e(a,{modelValue:o(u).tenant_id,"onUpdate:modelValue":t[2]||(t[2]=n=>o(u).tenant_id=n),disabled:!0},null,8,["modelValue"])]),_:1}),e(s,{label:"account"},{default:l(()=>[e(a,{modelValue:o(u).account,"onUpdate:modelValue":t[3]||(t[3]=n=>o(u).account=n),disabled:!0},null,8,["modelValue"])]),_:1}),e(s,{label:"token"},{default:l(()=>[e(a,{modelValue:o(u).token,"onUpdate:modelValue":t[4]||(t[4]=n=>o(u).token=n),disabled:!0},null,8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(c,{type:"primary",onClick:i},{default:l(()=>[v]),_:1}),e(c,null,{default:l(()=>[y]),_:1})]),_:1})]),_:1},8,["model"])],64)}}});export{R as default};
|
import{d as f,c as V,f as b,h as e,w as l,u as o,F as C,i as m,g as B,a5 as E,e as r,o as F,bV as k,s as h,a as A,r as g}from"./index.89c8c085.js";const w=m(" \u8A72\u5F53\u30B7\u30B9\u30C6\u30E0\u306E\u3054\u5229\u7528\u306F\u30B7\u30B9\u30C6\u30E0\u7BA1\u7406\u8005\u306B\u8A31\u53EF\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002"),x=B("br",null,null,-1),U=m(" \u8A31\u53EF\u304C\u306A\u3051\u308C\u3070\u3001\u30E6\u30FC\u30B6\u30FC\u60C5\u5831\u3092\u767B\u9332\u3057\u3066\u3082\u3001\u30B7\u30B9\u30C6\u30E0\u306E\u3054\u5229\u7528\u306F\u3067\u304D\u307E\u305B\u3093\u306E\u3067\u3001\u3054\u6CE8\u610F\u304F\u3060\u3055\u3044\u3002 "),v=m("Register"),y=m("Cancel"),R=f({setup(I){const d=E().query,u=V({phone_number:"",code:"",tenant_id:d.tenantId,account:d.account,token:d.token}),i=()=>{k(u).then(_=>{if(_.status==200){const t={id:d.tenantId,account:d.account};h(d.token),A(t);const{href:a}=g.resolve({path:"/"});window.open(a,"_self")}})};return(_,t)=>{const a=r("el-input"),s=r("el-form-item"),c=r("el-button"),p=r("el-form");return F(),b(C,null,[w,x,U,e(p,{model:o(u),"label-width":"120px"},{default:l(()=>[e(s,{label:"phone_number"},{default:l(()=>[e(a,{modelValue:o(u).phone_number,"onUpdate:modelValue":t[0]||(t[0]=n=>o(u).phone_number=n)},null,8,["modelValue"])]),_:1}),e(s,{label:"auth_code"},{default:l(()=>[e(a,{modelValue:o(u).code,"onUpdate:modelValue":t[1]||(t[1]=n=>o(u).code=n)},null,8,["modelValue"])]),_:1}),e(s,{label:"tenantId"},{default:l(()=>[e(a,{modelValue:o(u).tenant_id,"onUpdate:modelValue":t[2]||(t[2]=n=>o(u).tenant_id=n),disabled:!0},null,8,["modelValue"])]),_:1}),e(s,{label:"account"},{default:l(()=>[e(a,{modelValue:o(u).account,"onUpdate:modelValue":t[3]||(t[3]=n=>o(u).account=n),disabled:!0},null,8,["modelValue"])]),_:1}),e(s,{label:"token"},{default:l(()=>[e(a,{modelValue:o(u).token,"onUpdate:modelValue":t[4]||(t[4]=n=>o(u).token=n),disabled:!0},null,8,["modelValue"])]),_:1}),e(s,null,{default:l(()=>[e(c,{type:"primary",onClick:i},{default:l(()=>[v]),_:1}),e(c,null,{default:l(()=>[y]),_:1})]),_:1})]),_:1},8,["model"])],64)}}});export{R as default};
|
||||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
@@ -1 +1 @@
|
|||||||
import{N as n,b as l,J as s}from"./index.ca1e8891.js";const d=n("settings",()=>{const e=l({sideMode:"#191a23",isMobile:!1,isRouterAlive:!0,isLoading:!1}),i=s(()=>e.value.sideMode),o=s(()=>e.value.isMobile),t=s(()=>e.value.isRouterAlive),a=s(()=>e.value.isLoading);return{settings:e,sideMode:i,isMobile:o,isRouterAlive:t,isLoading:a}});export{d as s};
|
import{N as n,b as l,J as s}from"./index.89c8c085.js";const d=n("settings",()=>{const e=l({sideMode:"#191a23",isMobile:!1,isRouterAlive:!0,isLoading:!1}),i=s(()=>e.value.sideMode),o=s(()=>e.value.isMobile),t=s(()=>e.value.isRouterAlive),a=s(()=>e.value.isLoading);return{settings:e,sideMode:i,isMobile:o,isRouterAlive:t,isLoading:a}});export{d as s};
|
||||||
@@ -1 +1 @@
|
|||||||
import{_ as e,f as r,o as c}from"./index.ca1e8891.js";const o={},s={class:"yuliu"};function t(_,a){return c(),r("div",s," \u8FD9\u4E2A\u4EBA\u5F88\u61D2\uFF0C\u4EC0\u4E48\u4E5F\u6CA1\u5199 ")}var f=e(o,[["render",t]]);export{f as default};
|
import{_ as e,f as r,o as c}from"./index.89c8c085.js";const o={},s={class:"yuliu"};function t(_,a){return c(),r("div",s," \u8FD9\u4E2A\u4EBA\u5F88\u61D2\uFF0C\u4EC0\u4E48\u4E5F\u6CA1\u5199 ")}var f=e(o,[["render",t]]);export{f as default};
|
||||||
Vendored
BIN
Binary file not shown.
@@ -1 +1 @@
|
|||||||
import{D as e,N as c,c as a}from"./index.ca1e8891.js";const v=()=>e({url:"/trader/api/v1/accounts",method:"GET"}),d=s=>e({url:"/trader/api/v1/tick/"+s,method:"GET"}),y=()=>e({url:"/trader/api/v1/ticks",method:"GET"}),h=s=>e({url:"/trader/api/v1/order",method:"POST",data:s}),g=s=>e({url:"/trader/api/v1/subscribe/"+s,method:"GET"}),o=()=>e({url:"/trader/api/v1/subscribe/vt_symbols",method:"GET"}),p=s=>e({url:"/trader/api/v1/subscribe/"+s,method:"DELETE"}),n=()=>e({url:"/trader/api/v1/vt_symbols",method:"GET"}),b=()=>e({url:"/trader/api/v1/exchanges",method:"GET"}),E=c("strategy",()=>{const s=a({class_names:[],vt_symbols:new Map,subscribe_vt_symbols:[],exchanges:[]});return{strategy:s,select_exchanges:async()=>{s.exchanges.length==0&&b().then(t=>{s.exchanges=t.data.exchanges})},select_vt_symbols:async()=>{s.vt_symbols.size==0&&n().then(t=>{Object.keys(t.data.vt_symbols).forEach(r=>{s.vt_symbols.set(r,t.data.vt_symbols[r])})})},select_subscribe_vt_symbols:async()=>{s.subscribe_vt_symbols.length==0&&o().then(t=>{s.subscribe_vt_symbols=t.data.subscribe_vt_symbols})}}});export{g as a,v as b,p as c,d,h as e,y as g,E as s};
|
import{D as e,N as c,c as a}from"./index.89c8c085.js";const v=()=>e({url:"/trader/api/v1/accounts",method:"GET"}),d=s=>e({url:"/trader/api/v1/tick/"+s,method:"GET"}),y=()=>e({url:"/trader/api/v1/ticks",method:"GET"}),h=s=>e({url:"/trader/api/v1/order",method:"POST",data:s}),g=s=>e({url:"/trader/api/v1/subscribe/"+s,method:"GET"}),o=()=>e({url:"/trader/api/v1/subscribe/vt_symbols",method:"GET"}),p=s=>e({url:"/trader/api/v1/subscribe/"+s,method:"DELETE"}),n=()=>e({url:"/trader/api/v1/vt_symbols",method:"GET"}),b=()=>e({url:"/trader/api/v1/exchanges",method:"GET"}),E=c("strategy",()=>{const s=a({class_names:[],vt_symbols:new Map,subscribe_vt_symbols:[],exchanges:[]});return{strategy:s,select_exchanges:async()=>{s.exchanges.length==0&&b().then(t=>{s.exchanges=t.data.exchanges})},select_vt_symbols:async()=>{s.vt_symbols.size==0&&n().then(t=>{Object.keys(t.data.vt_symbols).forEach(r=>{s.vt_symbols.set(r,t.data.vt_symbols[r])})})},select_subscribe_vt_symbols:async()=>{s.subscribe_vt_symbols.length==0&&o().then(t=>{s.subscribe_vt_symbols=t.data.subscribe_vt_symbols})}}});export{g as a,v as b,p as c,d,h as e,y as g,E as s};
|
||||||
Vendored
BIN
Binary file not shown.
File diff suppressed because one or more lines are too long
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
+2
-2
@@ -5,8 +5,8 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>violin-home-manage</title>
|
<title>violin-home</title>
|
||||||
<script type="module" crossorigin src="/assets/index.ca1e8891.js"></script>
|
<script type="module" crossorigin src="/assets/index.89c8c085.js"></script>
|
||||||
<link rel="stylesheet" href="/assets/index.35a0e576.css">
|
<link rel="stylesheet" href="/assets/index.35a0e576.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>violin-home-manage</title>
|
<title>violin-home</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -25,6 +25,20 @@ export default [
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
url: '/wiki/api/v1/reader/blog/string',
|
||||||
|
method: 'get',
|
||||||
|
response: () => {
|
||||||
|
return {
|
||||||
|
bid: "1",
|
||||||
|
btId: "2",
|
||||||
|
btName: "3",
|
||||||
|
title: "1.2 java neicun",
|
||||||
|
blog_prex: "5",
|
||||||
|
content: "关键字volatile是java虚拟机提供的最轻量级的同步机制。\n当一个变量被定义为volatile时,它具备两种特性。\n第一种是**可见性**。\n即每次get时,强制刷新。\n一个误解区,字节码就是原子操作,这是不对的,一个字节码指令在解释执行时,如果是编译执行,一条字节码会有可能被转化为若干个本地机器指令。此处,用-XX:+PrintAssembly参数输出反汇编来分析。\n\n第二种是,**有序性**。\n即,禁止指令重排序(Instruction Recorder)优化。\n被volatile修饰的变量,赋值后会多执行一个\"lock addl\"操作,这个操作相当于一个memory barrier(内存屏障),指令重拍时,不能把后面的指令排序到内存屏障前面去,只有一个处理器访问时,不需要内存屏障。\naddl 是一个空操作,(把ESP寄存器的值 + 0),这个操作相当于把缓存中的变量做了一次store和write操作。\nlock iddl指令把修改同步到内存时,意味着所有的之前的操作都已完成,便形成了指令重排序无法穿越内存屏障的效果。\n针对于long和double的类型变量,不通虚拟机是有着不同的实现,此处不做描述。\n",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
url: '/wiki/api/v1/reader/blog_type',
|
url: '/wiki/api/v1/reader/blog_type',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
+4
-4
@@ -7,14 +7,14 @@ export default [
|
|||||||
response: () => {
|
response: () => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
date: '2023-01-09',
|
event_date: '2023-01-09',
|
||||||
title: '春游',
|
title: '春游',
|
||||||
eventInfo: '春节不觉晓,处处闻啼鸟,夜来风雨声,花落知多少',
|
event_info: '春节不觉晓,处处闻啼鸟,夜来风雨声,花落知多少',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
date: '2023-01-30',
|
event_date: '2023-01-30',
|
||||||
title: '月底发工资',
|
title: '月底发工资',
|
||||||
eventInfo: '发了工资少一半,还了信用卡再少一半,试问如何攒下钱,只有两个字:做梦',
|
event_info: '发了工资少一半,还了信用卡再少一半,试问如何攒下钱,只有两个字:做梦',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+70
-16
@@ -2,27 +2,81 @@ import { MockMethod } from 'vite-plugin-mock'
|
|||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
url: '/onenote/api/v1/one_note',
|
url: '/onenote/api/v1/category',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
response: () => {
|
response: () => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
section_id: 'x111',
|
category_id: '4444',
|
||||||
section_name: 'A',
|
category_color: ' #B0E0E6',
|
||||||
page_list: [
|
category_icon: 'Document',
|
||||||
{
|
category_theme: 'WIKI'
|
||||||
page_id: 'y111',
|
},
|
||||||
section_id: 'x111',
|
{
|
||||||
page_name: 'B',
|
category_id: '4444',
|
||||||
},
|
category_color: ' #B0E0E6',
|
||||||
{
|
category_icon: 'Collection',
|
||||||
page_id: 'y222',
|
category_theme: 'Collection'
|
||||||
section_id: 'x111',
|
},
|
||||||
page_name: 'C',
|
{
|
||||||
},
|
category_id: '4444',
|
||||||
]
|
category_color: ' #B0E0E6',
|
||||||
}
|
category_icon: 'Files',
|
||||||
|
category_theme: 'Files'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
category_id: '4444',
|
||||||
|
category_color: ' #B0E0E6',
|
||||||
|
category_icon: 'Phone',
|
||||||
|
category_theme: 'Phone'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/onenote/api/v1/4444/items/',
|
||||||
|
method: 'get',
|
||||||
|
response: () => {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
item_id: '00001',
|
||||||
|
item_name: '中国联通',
|
||||||
|
item_value: '13332247026'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
item_id: '00002',
|
||||||
|
item_name: '中国联通副号',
|
||||||
|
item_value: '13333333333'
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/onenote/api/v1/category',
|
||||||
|
method: 'put',
|
||||||
|
response: () => {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/onenote/api/v1/item',
|
||||||
|
method: 'put',
|
||||||
|
response: () => {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/onenote/api/v1/item',
|
||||||
|
method: 'post',
|
||||||
|
response: () => {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
url: '/onenote/api/v1/item',
|
||||||
|
method: 'delete',
|
||||||
|
response: () => {
|
||||||
|
return {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
] as MockMethod[]
|
] as MockMethod[]
|
||||||
+37
-30
@@ -1,42 +1,49 @@
|
|||||||
import { service } from '../utils/request'
|
import { service } from '../utils/request'
|
||||||
|
|
||||||
const get_notes = (params: Object) => {
|
const get_categorys = () => {
|
||||||
return service({
|
return service({
|
||||||
url: '/onenote/api/v1/one_note',
|
url: '/onenote/api/v1/category',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
params: params
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const update_page = (params: Object) => {
|
const put_category = (data: Object) => {
|
||||||
return service({
|
return service({
|
||||||
url: '/onenote/api/v1/one_note/update_page',
|
url: '/onenote/api/v1/category',
|
||||||
method: 'POST',
|
|
||||||
data: params
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const update_section = (params: Object) => {
|
|
||||||
return service({
|
|
||||||
url: '/onenote/api/v1/one_note/update_section',
|
|
||||||
method: 'POST',
|
|
||||||
data: params
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const insert_section = () => {
|
|
||||||
return service({
|
|
||||||
url: '/onenote/api/v1/one_note/insert_section',
|
|
||||||
method: 'PUT'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const insert_page = (params: Object) => {
|
|
||||||
return service({
|
|
||||||
url: '/onenote/one_note/insert_page',
|
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
data: params
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export { get_notes, update_page, update_section, insert_section, insert_page }
|
const get_items = (category_id: string) => {
|
||||||
|
return service({
|
||||||
|
url: '/onenote/api/v1/' + category_id + '/items/',
|
||||||
|
method: 'GET',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const put_item = (data: Object) => {
|
||||||
|
return service({
|
||||||
|
url: '/onenote/api/v1/item',
|
||||||
|
method: 'PUT',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const post_item = (data: Object) => {
|
||||||
|
return service({
|
||||||
|
url: '/onenote/api/v1/item',
|
||||||
|
method: 'post',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const delete_item = (data: Object) => {
|
||||||
|
return service({
|
||||||
|
url: '/onenote/api/v1/item',
|
||||||
|
method: 'delete',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export { get_categorys, get_items, put_category, put_item, post_item, delete_item }
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="homeWrap">
|
||||||
<el-container>
|
<el-container class="main_container">
|
||||||
<el-aside width="180px">
|
<el-aside width="180px">
|
||||||
<SideBar></SideBar>
|
<SideBar></SideBar>
|
||||||
</el-aside>
|
</el-aside>
|
||||||
<el-container>
|
<el-container style="margin-left: 180px;">
|
||||||
<el-header>
|
<el-header>
|
||||||
<NavBar></NavBar>
|
<NavBar></NavBar>
|
||||||
</el-header>
|
</el-header>
|
||||||
@@ -83,11 +83,13 @@ iniPage()
|
|||||||
.el-main {
|
.el-main {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-aside {
|
.el-aside {
|
||||||
margin-left: -10px;
|
margin-left: -10px;
|
||||||
background: #191a23;
|
background: #191a23;
|
||||||
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.el-footer {
|
.el-footer {
|
||||||
@@ -95,4 +97,15 @@ iniPage()
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main_container {
|
||||||
|
/* height: 100%; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.homeWrap {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
+10
-4
@@ -4,10 +4,11 @@ import { getToken, getTenant } from './utils/auth'
|
|||||||
import { Tenant } from './entity/index'
|
import { Tenant } from './entity/index'
|
||||||
import { tenantStore } from './store/modules/tenant'
|
import { tenantStore } from './store/modules/tenant'
|
||||||
|
|
||||||
const whiteList = ['/login', '/register', '/sorryPage']
|
const whiteList = ['/login', '/register', '/sorryPage', '/BlogViewer']
|
||||||
let url = window.location.href
|
let url = window.location.href
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
|
console.log(to.path)
|
||||||
|
|
||||||
const token = getToken()
|
const token = getToken()
|
||||||
|
|
||||||
@@ -20,13 +21,16 @@ router.beforeEach((to, from, next) => {
|
|||||||
const tenant = <Tenant>(JSON.parse(getTenant() as string))
|
const tenant = <Tenant>(JSON.parse(getTenant() as string))
|
||||||
if (url.search("write") != -1) {
|
if (url.search("write") != -1) {
|
||||||
next('/BlogEditer')
|
next('/BlogEditer')
|
||||||
} else if (url.search("view") != -1) {
|
}
|
||||||
let bid = Cookies.get('bid')
|
if (url.search("view") != -1) {
|
||||||
|
let arr = url.split('?')
|
||||||
|
let bid = arr[1].split('=')[1]
|
||||||
router.push({
|
router.push({
|
||||||
path: '/BlogViewer',
|
path: '/BlogViewer',
|
||||||
query: { bid: bid }
|
query: { bid: bid }
|
||||||
})
|
})
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
router.push({
|
router.push({
|
||||||
path: '/home',
|
path: '/home',
|
||||||
query: tenant
|
query: tenant
|
||||||
@@ -75,6 +79,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
window.open(href, '_self');
|
window.open(href, '_self');
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (url.search("sorryPage") != -1) {
|
if (url.search("sorryPage") != -1) {
|
||||||
router.push({
|
router.push({
|
||||||
path: '/sorryPage',
|
path: '/sorryPage',
|
||||||
@@ -86,4 +91,5 @@ router.beforeEach((to, from, next) => {
|
|||||||
next('/login')
|
next('/login')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -34,8 +34,8 @@
|
|||||||
<h3 style="cursor: pointer; width: min-content;white-space:nowrap" @click="openBlog(item.bid)">{{ item.title }}</h3>
|
<h3 style="cursor: pointer; width: min-content;white-space:nowrap" @click="openBlog(item.bid)">{{ item.title }}</h3>
|
||||||
<div style="display: flex; justify-content: space-between; align-items: center">
|
<div style="display: flex; justify-content: space-between; align-items: center">
|
||||||
<p style="font-size: 12px; height: 16px;line-height: 16px;overflow: hidden;text-overflow: ellipsis;">{{
|
<p style="font-size: 12px; height: 16px;line-height: 16px;overflow: hidden;text-overflow: ellipsis;">{{
|
||||||
item.content
|
item.content
|
||||||
}}</p>
|
}}</p>
|
||||||
<el-button size="small" type="success" @click="publishbyBid(item.bid)">重新发布
|
<el-button size="small" type="success" @click="publishbyBid(item.bid)">重新发布
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -91,8 +91,6 @@ const onSubmit = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const openBlog = (bid: string) => {
|
const openBlog = (bid: string) => {
|
||||||
|
|
||||||
Cookies.set('bid', bid)
|
|
||||||
const { href } = router.resolve({
|
const { href } = router.resolve({
|
||||||
path: '/view',
|
path: '/view',
|
||||||
query: {
|
query: {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<h2>{{ title }}</h2>
|
||||||
<md-editor v-model="text" previewOnly />
|
<md-editor v-model="text" previewOnly />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -9,16 +10,19 @@ import { ref } from 'vue';
|
|||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { getBlog } from '../../api/blogView'
|
import { getBlog } from '../../api/blogView'
|
||||||
let text = ref<string>('')
|
let text = ref<string>('')
|
||||||
|
let title = ref<string>('')
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const params = route.query
|
const params = route.query
|
||||||
|
|
||||||
const init = () => {
|
const init = () => {
|
||||||
getBlog(params.bid as string).then(response => {
|
getBlog(params.bid as string).then(response => {
|
||||||
text.value = response.data.content
|
text.value = response.data.content
|
||||||
|
title.value = response.data.title
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
init()
|
init()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div
|
|
||||||
class="nav_tab"
|
|
||||||
style="display: flex;"
|
|
||||||
@mouseover.native="onOver"
|
|
||||||
@mouseleave.native="onLeave"
|
|
||||||
>
|
|
||||||
<div class="nav_before" :style="nav_back_color"></div>
|
|
||||||
<el-button :id="'input_edit' + row_key" class="nav_button">{{ nav_name }}</el-button>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
|
||||||
import { ref, watch } from 'vue';
|
|
||||||
|
|
||||||
|
|
||||||
type Props = {
|
|
||||||
row_key: number,
|
|
||||||
checked: boolean,
|
|
||||||
nav_name: string
|
|
||||||
}
|
|
||||||
const props = defineProps<Props>()
|
|
||||||
let nav_back_color = ref("blueviolet")
|
|
||||||
watch(props, (newValue, oldValue) => {
|
|
||||||
if (props.checked) {
|
|
||||||
nav_back_color.value = "background-color: blueviolet;"
|
|
||||||
} else {
|
|
||||||
nav_back_color.value = "background-color: white;"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if (props.checked) {
|
|
||||||
nav_back_color.value = "background-color: blueviolet;"
|
|
||||||
}
|
|
||||||
|
|
||||||
const onOver = (e: any) => {
|
|
||||||
if (props.checked)
|
|
||||||
return
|
|
||||||
nav_back_color.value = "background-color: #FDF5E6;"
|
|
||||||
}
|
|
||||||
const onLeave = () => {
|
|
||||||
if (props.checked)
|
|
||||||
return
|
|
||||||
nav_back_color.value = "background-color: white;"
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.nav_before {
|
|
||||||
background-color: white;
|
|
||||||
width: 5px;
|
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
.nav_button {
|
|
||||||
border-radius: 0px;
|
|
||||||
width: 50px;
|
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,101 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div
|
|
||||||
class="page_tab"
|
|
||||||
@mouseover.native="onOver"
|
|
||||||
@mouseleave.native="onLeave"
|
|
||||||
@dblclick="editPage(row_key)"
|
|
||||||
:style="back_color"
|
|
||||||
>
|
|
||||||
<div class="input_prex" :style="prex_back_color"></div>
|
|
||||||
<el-input
|
|
||||||
:id="'input_edit' + row_key"
|
|
||||||
class="input_edit"
|
|
||||||
v-show="is_edit"
|
|
||||||
v-model="page_data.page_name"
|
|
||||||
@blur="savePage"
|
|
||||||
@keyup.enter="doNothing"
|
|
||||||
></el-input>
|
|
||||||
<div :id="'input_show' + row_key" class="input_show" v-show="!is_edit">{{ page_data.page_name }}</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
|
||||||
import { reactive, ref, watch } from 'vue'
|
|
||||||
import { update_page } from '../../api/onenote'
|
|
||||||
|
|
||||||
type Props = {
|
|
||||||
row_key: string,
|
|
||||||
checked: boolean,
|
|
||||||
page_data: any
|
|
||||||
}
|
|
||||||
const props = defineProps<Props>()
|
|
||||||
|
|
||||||
let back_color = ref("aliceblue")
|
|
||||||
let prex_back_color = ref("aliceblue")
|
|
||||||
let is_edit = ref(false)
|
|
||||||
|
|
||||||
watch(props, (newValue, oldValue) => {
|
|
||||||
if (props.checked) {
|
|
||||||
back_color.value = "background-color: #d0d0d0;"
|
|
||||||
prex_back_color.value = "background-color: blueviolet;"
|
|
||||||
} else {
|
|
||||||
back_color.value = "background-color: white;"
|
|
||||||
prex_back_color.value = "background-color: white;"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if (props.checked) {
|
|
||||||
back_color.value = "background-color: #d0d0d0;"
|
|
||||||
prex_back_color.value = "background-color: blueviolet;"
|
|
||||||
}
|
|
||||||
const editPage = (row_key: string) => {
|
|
||||||
is_edit.value = !is_edit.value
|
|
||||||
const inputt: any = document.getElementById("input_edit" + row_key)
|
|
||||||
setTimeout(() => inputt.focus())
|
|
||||||
}
|
|
||||||
const savePage = () => {
|
|
||||||
is_edit.value = !is_edit.value
|
|
||||||
const params = {
|
|
||||||
page_id: props.page_data.page_id,
|
|
||||||
page_name: props.page_data.page_name
|
|
||||||
}
|
|
||||||
update_page(params).then(response => {
|
|
||||||
|
|
||||||
})
|
|
||||||
onLeave()
|
|
||||||
}
|
|
||||||
const doNothing = (e: KeyboardEvent) => {
|
|
||||||
(e.target as HTMLInputElement).blur()
|
|
||||||
}
|
|
||||||
const onOver = (e: any) => {
|
|
||||||
if (props.checked)
|
|
||||||
return
|
|
||||||
is_edit.value ? "" : back_color.value = "background-color: #FDF5E6;"
|
|
||||||
}
|
|
||||||
const onLeave = () => {
|
|
||||||
if (props.checked)
|
|
||||||
return
|
|
||||||
is_edit.value ? "" : back_color.value = "background-color: white;"
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.input_prex {
|
|
||||||
width: 2px;
|
|
||||||
height: 35px;
|
|
||||||
}
|
|
||||||
.input_edit,
|
|
||||||
.input_show {
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
.page_tab {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
width: 90px;
|
|
||||||
height: 35px;
|
|
||||||
padding-left: 15px;
|
|
||||||
}
|
|
||||||
.page_title {
|
|
||||||
font-size: 14px;
|
|
||||||
font-family: "Meiryo", Courier, monospace;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -1,90 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div
|
|
||||||
class="section_tab"
|
|
||||||
@mouseover.native="onOver"
|
|
||||||
@mouseleave.native="onLeave"
|
|
||||||
@dblclick="editSection(row_key)"
|
|
||||||
:style="back_color"
|
|
||||||
>
|
|
||||||
<el-input
|
|
||||||
:id="'section_edit' + row_key"
|
|
||||||
v-show="is_edit"
|
|
||||||
v-model="section_data.section_name"
|
|
||||||
@blur="saveSection"
|
|
||||||
@keyup.enter="doNothing"
|
|
||||||
></el-input>
|
|
||||||
<div :id="'section_show' + row_key" v-show="!is_edit">{{ section_data.section_name }}</div>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
|
||||||
import { reactive, ref, watch } from 'vue'
|
|
||||||
import { update_section } from '../../api/onenote'
|
|
||||||
|
|
||||||
type Props = {
|
|
||||||
row_key: string,
|
|
||||||
checked: boolean,
|
|
||||||
section_data: any
|
|
||||||
}
|
|
||||||
const props = defineProps<Props>()
|
|
||||||
|
|
||||||
let back_color = ref("aliceblue")
|
|
||||||
let is_edit = ref(false)
|
|
||||||
|
|
||||||
watch(props, (newValue, oldValue) => {
|
|
||||||
if (props.checked) {
|
|
||||||
back_color.value = "background-color: #d0d0d0;"
|
|
||||||
} else {
|
|
||||||
back_color.value = "background-color: white;"
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if (props.checked) {
|
|
||||||
back_color.value = "background-color: #d0d0d0;"
|
|
||||||
}
|
|
||||||
const editSection = (row_key: string) => {
|
|
||||||
is_edit.value = !is_edit.value
|
|
||||||
const inputt: any = document.getElementById("section_edit" + row_key)
|
|
||||||
setTimeout(() => inputt.focus())
|
|
||||||
}
|
|
||||||
const saveSection = () => {
|
|
||||||
is_edit.value = !is_edit.value
|
|
||||||
const params = {
|
|
||||||
section_id: props.section_data.section_id,
|
|
||||||
section_name: props.section_data.section_name
|
|
||||||
}
|
|
||||||
update_section(params).then(response => {
|
|
||||||
|
|
||||||
})
|
|
||||||
onLeave()
|
|
||||||
}
|
|
||||||
const doNothing = (e: KeyboardEvent) => {
|
|
||||||
(e.target as HTMLInputElement).blur()
|
|
||||||
}
|
|
||||||
const onOver = (e: any) => {
|
|
||||||
if (props.checked)
|
|
||||||
return
|
|
||||||
is_edit.value ? "" : back_color.value = "background-color: #FDF5E6;"
|
|
||||||
}
|
|
||||||
const onLeave = () => {
|
|
||||||
if (props.checked)
|
|
||||||
return
|
|
||||||
is_edit.value ? "" : back_color.value = "background-color: white;"
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.section_show {
|
|
||||||
width: 90px;
|
|
||||||
}
|
|
||||||
.section_tab {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
width: 90px;
|
|
||||||
height: 35px;
|
|
||||||
padding-left: 15px;
|
|
||||||
}
|
|
||||||
.page_title {
|
|
||||||
font-size: 14px;
|
|
||||||
font-family: "Meiryo", Courier, monospace;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
+280
-117
@@ -1,153 +1,316 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="one_note">
|
|
||||||
<div class="nav_tabs common_box">
|
|
||||||
<NavTab :row_key="index" :checked="nav == index ? true : false" :nav_name="item" @click="onclickNav(index)"
|
|
||||||
v-for="(item, index) in nav_list"></NavTab>
|
|
||||||
</div>
|
|
||||||
<div class="section_tabs common_box">
|
|
||||||
<div>
|
|
||||||
<SectionTab :row_key="item.section_id + ''" @click="onclickSection(item.section_id, index)"
|
|
||||||
:checked="item.section_id === section.section_id ? true : false" :section_data="item"
|
|
||||||
v-for="(item, index) in data_sections"></SectionTab>
|
|
||||||
</div>
|
|
||||||
<el-button class="plus_button" @click="addSection">+</el-button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="page_tabs common_box">
|
<div class="category_card-box" v-show="isshowCategorys">
|
||||||
<div>
|
<el-card v-for="(card, key) in categoryCards" shadow="hover" @click="showCategory(card)"
|
||||||
<PageTab :row_key="item.page_id + ''" v-show="item.section_id == section.section_id ? true : false"
|
class="onenote_category_card">
|
||||||
@click="onclickPage(item.page_id)" :checked="item.page_id === page ? true : false" :page_data="item"
|
<template #header>
|
||||||
v-for="(item, index) in current_page_list"></PageTab>
|
<div class="category_card__header">
|
||||||
</div>
|
<el-icon :size="40">
|
||||||
|
<component :is="card.category_icon" :style="{ color: card.category_color }" />
|
||||||
|
</el-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
<el-button class="plus_button" @click="addPage">+</el-button>
|
</template>
|
||||||
</div>
|
<template #default>
|
||||||
<div></div>
|
<div class="category_card__body">
|
||||||
|
{{ card.category_theme }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-card>
|
||||||
|
<el-card shadow="hover" @click="categoryDrawer = true" class="onenote_category_card">
|
||||||
|
<template #header>
|
||||||
|
<div class="category_card__header">
|
||||||
|
<el-icon :size="40">
|
||||||
|
<component is="Management" :style="{ color: '#5cdbd3' }" />
|
||||||
|
</el-icon>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
<template #default>
|
||||||
|
<div class="category_card__body">
|
||||||
|
管理
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="onenote_card-box" v-show="isShowCard">
|
||||||
|
<el-page-header @back="onBack">
|
||||||
|
<template #content>
|
||||||
|
<div class="flex items-center">
|
||||||
|
<span class="category_theme"> {{ current_category.category_theme }} </span>
|
||||||
|
<el-button size="default" :icon="Plus" round @click="onAddItem"></el-button>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-page-header>
|
||||||
|
<el-card v-for="(item, key) in itemCards" shadow="hover" class="onenote_item_card" @dblclick="oNEditItem(item)">
|
||||||
|
<template #header>
|
||||||
|
<div class="onenote_card__header">
|
||||||
|
{{ item.item_name }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #default>
|
||||||
|
<div class="onenote_card__body">
|
||||||
|
{{ item.item_value }}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</el-card>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<el-drawer v-model="categoryDrawer" title="I am the title" :with-header="false">
|
||||||
|
|
||||||
|
<span>Pick a icon!</span>
|
||||||
|
<el-alert title="you can pick a icon on the website!" type="success" />
|
||||||
|
<el-link type="success" @click="to_element_ui_icon">{{ element_ui_icon }}</el-link>
|
||||||
|
<el-input v-model="category_form.category_icon" class="category_icon" size="large" placeholder="">
|
||||||
|
<template #prepend>el-icon:</template>
|
||||||
|
</el-input>
|
||||||
|
|
||||||
|
<span>Pick a color!</span>
|
||||||
|
<el-alert title="you can pick a icon on the website!" type="success" />
|
||||||
|
<el-link type="success" @click="to_cainiao_color">{{ cainiao_color }}</el-link>
|
||||||
|
<el-input v-model="category_form.category_color" class="category_icon" size="large" placeholder="">
|
||||||
|
<template #prepend>color:</template>
|
||||||
|
</el-input>
|
||||||
|
|
||||||
|
<span>Pick a theme!</span>
|
||||||
|
<el-input v-model="category_form.category_theme" class="category_icon" size="large" placeholder="">
|
||||||
|
<template #prepend>theme:</template>
|
||||||
|
</el-input>
|
||||||
|
|
||||||
|
<el-button size="large" :icon="Check" round @click="addCategory">确认</el-button>
|
||||||
|
</el-drawer>
|
||||||
|
|
||||||
|
<el-drawer v-model="itemDrawer" title="I am the title" :with-header="false">
|
||||||
|
<el-input v-model="item_form.item_name" class="category_icon" size="large" placeholder="">
|
||||||
|
<template #prepend>name:</template>
|
||||||
|
</el-input>
|
||||||
|
|
||||||
|
<el-input v-model="item_form.item_value" class="category_icon" size="large" type="textarea" :rows="10">
|
||||||
|
<template #prepend>text:</template>
|
||||||
|
</el-input>
|
||||||
|
|
||||||
|
<el-button v-if="isEditItemMode == true" size="large" :icon="Check" round @click="deleteItem">删除</el-button>
|
||||||
|
<el-button v-if="isEditItemMode == false" size="large" :icon="Check" round
|
||||||
|
@click="itemDrawer = false">取消</el-button>
|
||||||
|
<el-button v-if="isEditItemMode == false" size="large" :icon="Check" round @click="addItem">确认</el-button>
|
||||||
|
<el-button v-if="isEditItemMode == true" size="large" :icon="Check" round @click="editItem">确认</el-button>
|
||||||
|
</el-drawer>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import PageTab from './PageTab.vue'
|
import { reactive, ref } from 'vue'
|
||||||
import SectionTab from './SectionTab.vue'
|
import { Check, Plus } from '@element-plus/icons-vue'
|
||||||
import NavTab from './NavTab.vue'
|
import { get_categorys, get_items, put_category, put_item, delete_item, post_item } from '@/api/onenote'
|
||||||
import { get_notes, insert_section, insert_page } from '../../api/onenote'
|
|
||||||
import { reactive, ref } from 'vue';
|
|
||||||
// type 定義
|
// -- IMPORT --
|
||||||
type Section = {
|
|
||||||
section_id: string,
|
// -- INTERFACE OR TYPE DEFINITION --
|
||||||
section_name: string,
|
type CategoryCard = {
|
||||||
page_list: Page[]
|
category_id: string,
|
||||||
|
category_color: string,
|
||||||
|
category_icon: string,
|
||||||
|
category_theme: string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Page = {
|
type CategoryItem = {
|
||||||
page_id: string,
|
item_id: string,
|
||||||
section_id: string,
|
item_name: string,
|
||||||
page_name: string
|
item_value: string,
|
||||||
|
category_id: string
|
||||||
}
|
}
|
||||||
// 変数定義
|
|
||||||
let nav = ref(0)
|
|
||||||
let page = ref("")
|
|
||||||
let section = reactive<Section>(<Section>{})
|
|
||||||
const data_sections = reactive<Section[]>([])
|
|
||||||
const current_page_list = reactive<Page[]>([])
|
|
||||||
const nav_list = reactive<any>(["图书馆", "检索", "历史"])
|
|
||||||
// API 呼び出す
|
|
||||||
get_notes({}).then(response => {
|
|
||||||
response.data.forEach((item: any) => {
|
|
||||||
const section: Section = {
|
|
||||||
section_id: item.section_id,
|
|
||||||
section_name: item.section_name,
|
|
||||||
page_list: []
|
|
||||||
}
|
|
||||||
item.page_list.forEach((pageItem: any) => {
|
|
||||||
const page: Page = {
|
|
||||||
page_id: pageItem.page_id,
|
|
||||||
section_id: pageItem.section_id,
|
|
||||||
page_name: pageItem.page_name
|
|
||||||
}
|
|
||||||
section.page_list.push(page)
|
|
||||||
});
|
|
||||||
data_sections.push(section)
|
|
||||||
});
|
|
||||||
}).then(() => {
|
|
||||||
Object.assign(current_page_list, data_sections[0].page_list)
|
|
||||||
});
|
|
||||||
|
|
||||||
// アクション
|
// -- REACTIVE OBJECT --
|
||||||
const onclickNav = (index: number) => {
|
const itemCards = reactive<CategoryItem[]>([])
|
||||||
nav.value = index
|
const categoryCards = reactive<CategoryCard[]>([])
|
||||||
|
|
||||||
|
// -- REF OBJECT --
|
||||||
|
let element_ui_icon = "https://element-plus.gitee.io/zh-CN/component/icon.html"
|
||||||
|
let cainiao_color = "https://www.runoob.com/html/html-colornames.html"
|
||||||
|
const categoryDrawer = ref(false)
|
||||||
|
const itemDrawer = ref(false)
|
||||||
|
let isEditItemMode = ref(false)
|
||||||
|
let isShowCard = ref(false)
|
||||||
|
let isshowCategorys = ref(true)
|
||||||
|
let current_category = ref<CategoryCard>({
|
||||||
|
category_id: '',
|
||||||
|
category_color: '',
|
||||||
|
category_icon: '',
|
||||||
|
category_theme: ''
|
||||||
|
})
|
||||||
|
let item_form = ref<CategoryItem>({
|
||||||
|
item_id: '',
|
||||||
|
item_name: '',
|
||||||
|
item_value: '',
|
||||||
|
category_id: ''
|
||||||
|
})
|
||||||
|
let category_form = ref<CategoryCard>({
|
||||||
|
category_id: '',
|
||||||
|
category_color: '',
|
||||||
|
category_icon: '',
|
||||||
|
category_theme: 'Sample'
|
||||||
|
})
|
||||||
|
|
||||||
|
// -- EVENT DEFINITION
|
||||||
|
const onBack = () => {
|
||||||
|
isshowCategorys.value = true
|
||||||
|
isShowCard.value = false
|
||||||
}
|
}
|
||||||
const onclickPage = (index: string) => {
|
|
||||||
page.value = index
|
const onAddItem = () => {
|
||||||
|
clearItemForm()
|
||||||
|
isEditItemMode.value = false
|
||||||
|
itemDrawer.value = true
|
||||||
}
|
}
|
||||||
const onclickSection = (section_id: string, index: number) => {
|
|
||||||
section.section_id = section_id
|
const oNEditItem = (item: CategoryItem) => {
|
||||||
Object.assign(current_page_list, data_sections[index].page_list)
|
itemDrawer.value = true
|
||||||
|
isEditItemMode.value = true
|
||||||
|
item_form.value.item_id = item.item_id
|
||||||
|
item_form.value.item_name = item.item_name
|
||||||
|
item_form.value.item_value = item.item_value
|
||||||
}
|
}
|
||||||
const addSection = () => {
|
|
||||||
insert_section().then(response => {
|
const showCategory = (card: CategoryCard) => {
|
||||||
const data = response.data
|
get_items(card.category_id).then((response) => {
|
||||||
const section: Section = {
|
itemCards.length = 0
|
||||||
section_id: data.section_id + '',
|
response.data.forEach((item: CategoryItem) => {
|
||||||
section_name: data.section_name,
|
itemCards.push(item)
|
||||||
page_list: data.page_list
|
})
|
||||||
}
|
current_category.value.category_id = card.category_id
|
||||||
data_sections.push(section)
|
current_category.value.category_icon = card.category_icon
|
||||||
}).then(() => {
|
current_category.value.category_color = card.category_color
|
||||||
let index = data_sections.length - 1
|
current_category.value.category_theme = card.category_theme
|
||||||
onclickSection(data_sections[index].section_id, index)
|
isshowCategorys.value = false
|
||||||
|
isShowCard.value = true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const addPage = () => {
|
|
||||||
const params = {
|
const addCategory = () => {
|
||||||
section_id: section.section_id
|
put_category(category_form.value).then(resp => {
|
||||||
}
|
categoryCards.push({
|
||||||
insert_page(params).then(response => {
|
category_id: resp.data.category_id,
|
||||||
const data = response.data
|
category_color: category_form.value.category_color,
|
||||||
const page: Page = {
|
category_icon: category_form.value.category_icon,
|
||||||
page_id: data.page_id,
|
category_theme: category_form.value.category_theme
|
||||||
section_id: data.section_id,
|
})
|
||||||
page_name: data.page_name
|
categoryDrawer.value = false
|
||||||
}
|
clearCategoryForm()
|
||||||
current_page_list.push(page)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const addItem = () => {
|
||||||
|
put_item(item_form.value).then(resp => {
|
||||||
|
itemCards.push({
|
||||||
|
item_id: resp.data.item_id,
|
||||||
|
item_name: item_form.value.item_name,
|
||||||
|
item_value: item_form.value.item_value,
|
||||||
|
category_id: current_category.value.category_id
|
||||||
|
})
|
||||||
|
itemDrawer.value = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const editItem = () => {
|
||||||
|
post_item(item_form.value).then((resp) => {
|
||||||
|
let index = itemCards.findIndex((record) => record.item_id == item_form.value.item_id)
|
||||||
|
itemCards[index].item_name = item_form.value.item_name
|
||||||
|
itemCards[index].item_value = item_form.value.item_value
|
||||||
|
itemDrawer.value = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const deleteItem = () => {
|
||||||
|
delete_item(item_form.value.item_id).then(resp => {
|
||||||
|
let index = itemCards.findIndex((record) => record.item_id == item_form.value.item_id)
|
||||||
|
itemCards.splice(index, 1)
|
||||||
|
itemDrawer.value = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
const clearItemForm = () => {
|
||||||
|
item_form.value.item_id = ''
|
||||||
|
item_form.value.item_name = ''
|
||||||
|
item_form.value.item_value = ''
|
||||||
|
item_form.value.category_id = current_category.value.category_id
|
||||||
|
}
|
||||||
|
|
||||||
|
const clearCategoryForm = () => {
|
||||||
|
category_form.value.category_color = ''
|
||||||
|
category_form.value.category_id = ''
|
||||||
|
category_form.value.category_icon = ''
|
||||||
|
category_form.value.category_theme = ''
|
||||||
|
}
|
||||||
|
|
||||||
|
const to_element_ui_icon = () => {
|
||||||
|
window.open(element_ui_icon, '_blank')
|
||||||
|
}
|
||||||
|
|
||||||
|
const to_cainiao_color = () => {
|
||||||
|
window.open(cainiao_color, '_blank')
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* AUTO INVOKE FUNCTION
|
||||||
|
*/
|
||||||
|
get_categorys().then((resp) => {
|
||||||
|
resp.data.forEach((record: CategoryCard) => {
|
||||||
|
categoryCards.push(record)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
clearItemForm()
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.one_note {
|
.category_card-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: stretch;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section_tabs,
|
.category_card__header {
|
||||||
.page_tabs {
|
text-align: center;
|
||||||
|
width: 100px;
|
||||||
|
line-height: 100px;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.category_card__body {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.onenote_card__header {
|
||||||
|
width: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
.onenote_card__body {} */
|
||||||
|
|
||||||
|
.onenote_card-box {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
|
||||||
width: 90px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav_tabs {
|
.onenote_item_card {
|
||||||
|
display: flex;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.onenote_category_card {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 55px;
|
margin: 20px;
|
||||||
padding: 0px;
|
padding: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.common_box {
|
.category_icon {
|
||||||
background-color: white;
|
margin-bottom: 50px;
|
||||||
|
|
||||||
border-right-width: 1px;
|
|
||||||
border-right-style: solid;
|
|
||||||
border-right-color: antiquewhite;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.plus_button {
|
.category_theme {
|
||||||
border-top: 1px solid antiquewhite;
|
margin-right: 30px;
|
||||||
border-bottom: 1px solid antiquewhite;
|
|
||||||
border-left: 0px solid antiquewhite;
|
|
||||||
border-right: 0px solid antiquewhite;
|
|
||||||
border-radius: 0px;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user