051807
This commit is contained in:
parent
c86b90315d
commit
7e19186374
1
front/vite-project/dist/assets/HistoryDetail-BqyiR4Uc.css
vendored
Normal file
1
front/vite-project/dist/assets/HistoryDetail-BqyiR4Uc.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.history-app[data-v-18b3266c]{box-sizing:border-box;width:100%;max-width:1600px;margin:0 auto;padding:24px;overflow-x:auto}.history-header[data-v-18b3266c]{background:var(--bg-elevated);border:1px solid var(--border-color);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;padding:16px 24px;display:flex}.history-header h2[data-v-18b3266c]{color:var(--text-primary);margin:0;font-size:20px}.back-link[data-v-18b3266c]{color:var(--accent);cursor:pointer;white-space:nowrap;flex-shrink:0;font-size:14px;text-decoration:none;transition:color .2s}.back-link[data-v-18b3266c]:hover{color:#66b1ff}.rate-up[data-v-18b3266c]{color:var(--rate-up);font-weight:700}.rate-down[data-v-18b3266c]{color:var(--rate-down);font-weight:700}.rate-zero[data-v-18b3266c]{color:var(--text-muted)}@media (width<=768px){.history-app[data-v-18b3266c]{padding:12px}.history-header[data-v-18b3266c]{flex-direction:column;align-items:flex-start}.history-header h2[data-v-18b3266c]{word-break:break-all;font-size:16px}.back-link[data-v-18b3266c]{align-self:flex-end}}
|
||||
@ -1 +0,0 @@
|
||||
import{C as e,_ as t,b as n,d as r,h as i,i as a,l as o,m as s,n as c,p as l,r as u,t as d,u as f,v as p,w as m,x as h,y as g}from"./index-CmLn5x9L.js";import{t as _}from"./axios-6M3K5Uho.js";var v={class:`history-app`},y={class:`history-header`},b={class:`header-left`},x=`http://127.0.0.1:8000/api/lof/history`,S=d({__name:`HistoryDetail`,setup(d){let S=c(),C=u(),w=h(S.query.fundCode||``),T=h(S.query.fundName||``),E=h([]),D=h(!1);function O(){C.push(`/`)}async function k(){if(!w.value){a.error(`缺少基金代码参数`);return}D.value=!0;try{let e=await _.get(x,{params:{fund_code:w.value,fund_name:T.value}});e.data.code===200?(E.value=e.data.data,T.value=e.data.fundName||T.value):a.error(e.data.msg||`获取历史数据失败`)}catch{a.error(`请求失败:请确认 Python 后端已启动`)}finally{D.value=!1}}function A(e){if(e==null)return`-`;let t=parseFloat(e);return isNaN(t)?`-`:(t>0?`+`:``)+t+`%`}function j(e){if(e==null)return`-`;let t=parseFloat(e);return isNaN(t)?`-`:(t>0?`+`:``)+t.toFixed(3)+`%`}function M(e){if(e==null)return`-`;let t=parseFloat(e);return isNaN(t)?`-`:(t>0?`+`:``)+t.toFixed(2)}function N(e){let t=parseFloat(e)||0;return t>0?`rate-up`:t<0?`rate-down`:`rate-zero`}return s(()=>{k()}),(a,s)=>{let c=t(`el-table-column`),u=t(`el-table`),d=p(`loading`);return i(),r(`div`,v,[o(`div`,y,[o(`div`,b,[o(`h2`,null,m(T.value)+` (`+m(w.value)+`) 历史数据`,1)]),o(`a`,{class:`back-link`,onClick:O},`← 返回看板`)]),n((i(),f(u,{data:E.value,border:``,height:`calc(100vh - 200px)`,style:{width:`100%`}},{default:g(()=>[l(c,{prop:`date`,label:`价格日期`,align:`center`,"min-width":`110`}),l(c,{prop:`price`,label:`收盘价`,align:`center`,"min-width":`90`}),l(c,{prop:`navDate`,label:`净值日期`,align:`center`,"min-width":`110`}),l(c,{prop:`nav`,label:`净值`,align:`center`,"min-width":`90`}),l(c,{label:`溢价率`,align:`center`,"min-width":`100`},{default:g(({row:t})=>[o(`span`,{class:e(N(t.premiumRate))},m(A(t.premiumRate)),3)]),_:1}),l(c,{prop:`turnover`,label:`成交额(万元)`,align:`center`,"min-width":`120`}),l(c,{prop:`shareVolume`,label:`场内份额(万份)`,align:`center`,"min-width":`130`}),l(c,{label:`场内新增(万份)`,align:`center`,"min-width":`120`},{default:g(({row:t})=>[o(`span`,{class:e(N(t.changeAmount))},m(t.changeAmount==null?`-`:M(t.changeAmount)),3)]),_:1}),l(c,{label:`份额涨幅`,align:`center`,"min-width":`100`},{default:g(({row:t})=>[o(`span`,{class:e(N(t.changePct))},m(t.changePct==null?`-`:j(t.changePct)),3)]),_:1})]),_:1},8,[`data`])),[[d,D.value]])])}}},[[`__scopeId`,`data-v-d143755c`]]);export{S as default};
|
||||
1
front/vite-project/dist/assets/HistoryDetail-CoQ-EmmZ.js
vendored
Normal file
1
front/vite-project/dist/assets/HistoryDetail-CoQ-EmmZ.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
import{C as e,_ as t,b as n,d as r,h as i,i as a,l as o,m as s,n as c,p as l,r as u,t as d,u as f,v as p,w as m,x as h,y as g}from"./index-elGRMxOZ.js";import{t as _}from"./axios-AStdilPR.js";var v={class:`history-app`},y={class:`history-header`},b={class:`header-left`},x=`/api/lof/history`,S=d({__name:`HistoryDetail`,setup(d){let S=c(),C=u(),w=h(S.query.fundCode||``),T=h(S.query.fundName||``),E=h([]),D=h(!1);function O(){C.push(`/`)}async function k(){if(!w.value){a.error(`缺少基金代码参数`);return}D.value=!0;try{let e=await _.get(x,{params:{fund_code:w.value,fund_name:T.value}});e.data.code===200?(E.value=e.data.data,T.value=e.data.fundName||T.value):a.error(e.data.msg||`获取历史数据失败`)}catch{a.error(`请求失败:请确认 Python 后端已启动`)}finally{D.value=!1}}function A(e){if(e==null)return`-`;let t=parseFloat(e);return isNaN(t)?`-`:(t>0?`+`:``)+t+`%`}function j(e){if(e==null)return`-`;let t=parseFloat(e);return isNaN(t)?`-`:(t>0?`+`:``)+t.toFixed(3)+`%`}function M(e){if(e==null)return`-`;let t=parseFloat(e);return isNaN(t)?`-`:(t>0?`+`:``)+t.toFixed(2)}function N(e){let t=parseFloat(e)||0;return t>0?`rate-up`:t<0?`rate-down`:`rate-zero`}return s(()=>{k()}),(a,s)=>{let c=t(`el-table-column`),u=t(`el-table`),d=p(`loading`);return i(),r(`div`,v,[o(`div`,y,[o(`div`,b,[o(`h2`,null,m(T.value)+` (`+m(w.value)+`) 历史数据`,1)]),o(`a`,{class:`back-link`,onClick:O},`← 返回看板`)]),n((i(),f(u,{data:E.value,border:``,height:`calc(100vh - 200px)`,style:{width:`100%`}},{default:g(()=>[l(c,{prop:`date`,label:`价格日期`,align:`center`,"min-width":`110`}),l(c,{prop:`price`,label:`收盘价`,align:`center`,"min-width":`90`}),l(c,{prop:`navDate`,label:`净值日期`,align:`center`,"min-width":`110`}),l(c,{prop:`nav`,label:`净值`,align:`center`,"min-width":`90`}),l(c,{label:`溢价率`,align:`center`,"min-width":`100`},{default:g(({row:t})=>[o(`span`,{class:e(N(t.premiumRate))},m(A(t.premiumRate)),3)]),_:1}),l(c,{prop:`turnover`,label:`成交额(万元)`,align:`center`,"min-width":`120`}),l(c,{prop:`shareVolume`,label:`场内份额(万份)`,align:`center`,"min-width":`130`}),l(c,{label:`场内新增(万份)`,align:`center`,"min-width":`120`},{default:g(({row:t})=>[o(`span`,{class:e(N(t.changeAmount))},m(t.changeAmount==null?`-`:M(t.changeAmount)),3)]),_:1}),l(c,{label:`份额涨幅`,align:`center`,"min-width":`100`},{default:g(({row:t})=>[o(`span`,{class:e(N(t.changePct))},m(t.changePct==null?`-`:j(t.changePct)),3)]),_:1})]),_:1},8,[`data`])),[[d,D.value]])])}}},[[`__scopeId`,`data-v-18b3266c`]]);export{S as default};
|
||||
@ -1 +0,0 @@
|
||||
.history-app[data-v-d143755c]{box-sizing:border-box;width:100%;max-width:1600px;margin:0 auto;padding:24px;overflow-x:auto}.history-header[data-v-d143755c]{background:var(--bg-elevated);border:1px solid var(--border-color);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;padding:16px 24px;display:flex}.history-header h2[data-v-d143755c]{color:var(--text-primary);margin:0;font-size:20px}.back-link[data-v-d143755c]{color:var(--accent);cursor:pointer;white-space:nowrap;flex-shrink:0;font-size:14px;text-decoration:none;transition:color .2s}.back-link[data-v-d143755c]:hover{color:#66b1ff}.rate-up[data-v-d143755c]{color:var(--rate-up);font-weight:700}.rate-down[data-v-d143755c]{color:var(--rate-down);font-weight:700}.rate-zero[data-v-d143755c]{color:var(--text-muted)}@media (width<=768px){.history-app[data-v-d143755c]{padding:12px}.history-header[data-v-d143755c]{flex-direction:column;align-items:flex-start}.history-header h2[data-v-d143755c]{word-break:break-all;font-size:16px}.back-link[data-v-d143755c]{align-self:flex-end}}
|
||||
1
front/vite-project/dist/assets/RealTimePremium-BXlHw9_F.css
vendored
Normal file
1
front/vite-project/dist/assets/RealTimePremium-BXlHw9_F.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.lof-app[data-v-0da2059b]{box-sizing:border-box;width:100%;max-width:1600px;margin:0 auto;padding:24px;overflow-x:auto}.header[data-v-0da2059b]{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.title[data-v-0da2059b]{flex-direction:column;flex-shrink:0;gap:4px;display:flex}.update-time[data-v-0da2059b]{color:var(--text-muted);text-align:left;white-space:nowrap;font-size:13px}.tool-bar[data-v-0da2059b]{flex-shrink:0;gap:12px;display:flex}.filter-bar[data-v-0da2059b]{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;display:flex}.filter-input[data-v-0da2059b]{width:200px}.filter-input-sm[data-v-0da2059b]{width:160px}.filter-select[data-v-0da2059b]{width:140px}.rate-up[data-v-0da2059b]{color:var(--rate-up);font-weight:700}.rate-down[data-v-0da2059b]{color:var(--rate-down);font-weight:700}.rate-zero[data-v-0da2059b]{color:var(--text-muted)}.fund-code-link[data-v-0da2059b]{color:var(--accent);cursor:pointer;text-decoration:none}.fund-code-link[data-v-0da2059b]:hover{text-decoration:underline}@media (width<=768px){.lof-app[data-v-0da2059b]{padding:12px}.header[data-v-0da2059b]{flex-direction:column;align-items:flex-start}.tool-bar[data-v-0da2059b],.tool-bar .el-button[data-v-0da2059b]{width:100%}.filter-bar[data-v-0da2059b]{flex-direction:column;align-items:stretch}.filter-input[data-v-0da2059b],.filter-input-sm[data-v-0da2059b],.filter-select[data-v-0da2059b]{width:100%}.filter-checkbox[data-v-0da2059b]{justify-content:center;display:flex}.filter-radio[data-v-0da2059b]{width:100%;display:flex}.filter-radio .el-radio-button[data-v-0da2059b]{flex:1}.filter-radio .el-radio-button__inner[data-v-0da2059b]{justify-content:center;width:100%}.filter-reset-btn[data-v-0da2059b]{width:100%}.update-time[data-v-0da2059b]{white-space:normal}}
|
||||
@ -1 +0,0 @@
|
||||
.lof-app[data-v-f1e5d32a]{box-sizing:border-box;width:100%;max-width:1600px;margin:0 auto;padding:24px;overflow-x:auto}.header[data-v-f1e5d32a]{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.title[data-v-f1e5d32a]{flex-direction:column;flex-shrink:0;gap:4px;display:flex}.update-time[data-v-f1e5d32a]{color:var(--text-muted);text-align:left;white-space:nowrap;font-size:13px}.tool-bar[data-v-f1e5d32a]{flex-shrink:0;gap:12px;display:flex}.filter-bar[data-v-f1e5d32a]{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;display:flex}.filter-input[data-v-f1e5d32a]{width:200px}.filter-input-sm[data-v-f1e5d32a]{width:160px}.filter-select[data-v-f1e5d32a]{width:140px}.rate-up[data-v-f1e5d32a]{color:var(--rate-up);font-weight:700}.rate-down[data-v-f1e5d32a]{color:var(--rate-down);font-weight:700}.rate-zero[data-v-f1e5d32a]{color:var(--text-muted)}.fund-code-link[data-v-f1e5d32a]{color:var(--accent);cursor:pointer;text-decoration:none}.fund-code-link[data-v-f1e5d32a]:hover{text-decoration:underline}@media (width<=768px){.lof-app[data-v-f1e5d32a]{padding:12px}.header[data-v-f1e5d32a]{flex-direction:column;align-items:flex-start}.tool-bar[data-v-f1e5d32a],.tool-bar .el-button[data-v-f1e5d32a]{width:100%}.filter-bar[data-v-f1e5d32a]{flex-direction:column;align-items:stretch}.filter-input[data-v-f1e5d32a],.filter-input-sm[data-v-f1e5d32a],.filter-select[data-v-f1e5d32a]{width:100%}.filter-checkbox[data-v-f1e5d32a]{justify-content:center;display:flex}.filter-radio[data-v-f1e5d32a]{width:100%;display:flex}.filter-radio .el-radio-button[data-v-f1e5d32a]{flex:1}.filter-radio .el-radio-button__inner[data-v-f1e5d32a]{justify-content:center;width:100%}.filter-reset-btn[data-v-f1e5d32a]{width:100%}.update-time[data-v-f1e5d32a]{white-space:normal}}
|
||||
1
front/vite-project/dist/assets/RealTimePremium-CYpCubrD.js
vendored
Normal file
1
front/vite-project/dist/assets/RealTimePremium-CYpCubrD.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
front/vite-project/dist/index.html
vendored
2
front/vite-project/dist/index.html
vendored
@ -6,7 +6,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>LOF 基金监控</title>
|
||||
<script type="module" crossorigin src="/assets/index-CmLn5x9L.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-elGRMxOZ.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Ci_MFdXL.css">
|
||||
</head>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user