修改侧边栏显示和重构部分逻辑代码

This commit is contained in:
xlmessage 2025-02-13 17:38:25 +08:00
parent e4b6441426
commit a59059b8ee
7 changed files with 13 additions and 26 deletions

@ -1,3 +1,7 @@
![1739434163442](images/README/1739434163442.png)
![1739434039385](images/README/1739434039385.png)
## 项目依赖安装 ## 项目依赖安装
```sh ```sh
@ -18,8 +22,11 @@ npm run build
## 说明 ## 说明
node版本20.13.1 node 版本20.13.1
vue版本3.5.13 vue 版本3.5.13
项目无法运行,检查版本。 安装之前,先检查版本。
要想运行出来,还得依赖后端代码。后端代码上传到了 wance_data 仓库的 wance 分支。数据接口逻辑在 src/akshare_data/router.py 文件中。接口在 apifox 里面也有相应的说明。仅供参考。
后端代码的 python 版本选择 3.11.x 版本,不然有些库无法正常安装使用。

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 KiB

@ -1,2 +0,0 @@
// @ts-ignore
// export const vscode= window.acquireVsCodeApi();

@ -1,2 +0,0 @@
// @ts-ignore
// export const vscode= window.acquireVsCodeApi();

@ -66,15 +66,6 @@ const headerData = ref([
'月K', '月K',
'季K', '季K',
'年K', '年K',
// '1',
// '3',
// '5',
// '15',
// '30',
// '1',
// '2',
// '3',
// '4',
]) ])
// //
let routerList = [ let routerList = [
@ -116,7 +107,6 @@ function handleClick(index) {
<div v-else> <div v-else>
<svg t="1739345471358" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7366" width="16" height="16"><path d="M85.333333 128h853.333334v768H85.333333V128z m85.333334 85.333333v597.333334h682.666666V384h-341.333333V213.333333H170.666667z" p-id="7367" fill="#ffffff"></path></svg> <svg t="1739345471358" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7366" width="16" height="16"><path d="M85.333333 128h853.333334v768H85.333333V128z m85.333334 85.333333v597.333334h682.666666V384h-341.333333V213.333333H170.666667z" p-id="7367" fill="#ffffff"></path></svg>
</div> </div>
<!-- <svg t="1737685184492" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1032" width="16" height="16"><path d="M831.085714 896h-612.571428V437.028571l-118.857143-118.857142 201.142857-201.142858 10.057143 10.057143c113.371429 113.371429 298.057143 113.371429 412.342857 0l10.057143-10.057143L950.857143 334.628571l-118.857143 118.857143V896z m-585.142857-27.428571h557.714286V441.6l106.971428-106.971429L732.342857 155.428571C610.742857 266.971429 423.314286 266.971429 301.714286 155.428571L138.057143 318.171429l106.971428 106.971428V868.571429z" fill="#2c2c2c" p-id="1033"></path></svg> -->
</span> </span>
<template #dropdown> <template #dropdown>
<el-dropdown-menu> <el-dropdown-menu>
@ -157,7 +147,6 @@ function handleClick(index) {
<div v-else> <div v-else>
<svg t="1737685184492" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1032" width="16" height="16"><path d="M831.085714 896h-612.571428V437.028571l-118.857143-118.857142 201.142857-201.142858 10.057143 10.057143c113.371429 113.371429 298.057143 113.371429 412.342857 0l10.057143-10.057143L950.857143 334.628571l-118.857143 118.857143V896z m-585.142857-27.428571h557.714286V441.6l106.971428-106.971429L732.342857 155.428571C610.742857 266.971429 423.314286 266.971429 301.714286 155.428571L138.057143 318.171429l106.971428 106.971428V868.571429z" fill="#ffffff" p-id="1033"></path></svg> <svg t="1737685184492" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1032" width="16" height="16"><path d="M831.085714 896h-612.571428V437.028571l-118.857143-118.857142 201.142857-201.142858 10.057143 10.057143c113.371429 113.371429 298.057143 113.371429 412.342857 0l10.057143-10.057143L950.857143 334.628571l-118.857143 118.857143V896z m-585.142857-27.428571h557.714286V441.6l106.971428-106.971429L732.342857 155.428571C610.742857 266.971429 423.314286 266.971429 301.714286 155.428571L138.057143 318.171429l106.971428 106.971428V868.571429z" fill="#ffffff" p-id="1033"></path></svg>
</div> </div>
<!-- <svg t="1737685184492" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1032" width="16" height="16"><path d="M831.085714 896h-612.571428V437.028571l-118.857143-118.857142 201.142857-201.142858 10.057143 10.057143c113.371429 113.371429 298.057143 113.371429 412.342857 0l10.057143-10.057143L950.857143 334.628571l-118.857143 118.857143V896z m-585.142857-27.428571h557.714286V441.6l106.971428-106.971429L732.342857 155.428571C610.742857 266.971429 423.314286 266.971429 301.714286 155.428571L138.057143 318.171429l106.971428 106.971428V868.571429z" fill="#2c2c2c" p-id="1033"></path></svg> -->
</span> </span>
<template #dropdown> <template #dropdown>
<el-dropdown-menu> <el-dropdown-menu>
@ -198,16 +187,13 @@ function handleClick(index) {
<style scoped> <style scoped>
.content { .content {
/* width: 100vw; */
height: 100vh; height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
box-sizing: border-box; box-sizing: border-box;
} }
.timelist { .timelist {
/* background-color: white; */
background-color: var(--my-common-bgc-2) !important; background-color: var(--my-common-bgc-2) !important;
/* color: #414040; */
color: var(--my-common-fc-1); color: var(--my-common-fc-1);
font-size: 13px; font-size: 13px;
display: flex; display: flex;
@ -224,7 +210,6 @@ function handleClick(index) {
} }
.timelist > li:nth-child(6){ .timelist > li:nth-child(6){
margin-left: auto; margin-left: auto;
/* margin-right: 10px; */
} }
.active { .active {

@ -614,7 +614,6 @@ const showkline = (content: any) => {
<div class="all"> <div class="all">
<div class="showchange" @click="handleTitleClick">全部</div> <div class="showchange" @click="handleTitleClick">全部</div>
<div plain @click="dialogVisible = true"> <div plain @click="dialogVisible = true">
<!-- <el-icon><Plus /></el-icon> -->
<el-icon><Operation /></el-icon> <el-icon><Operation /></el-icon>
</div> </div>
@ -903,6 +902,7 @@ const showkline = (content: any) => {
background-color: var(--my-common-bgc-2); background-color: var(--my-common-bgc-2);
position: relative; position: relative;
border-right: 1px solid var(--my-light-br-1); border-right: 1px solid var(--my-light-br-1);
border-left: 1px solid var(--my-light-br-1);
} }
.shape{ .shape{
@ -1053,6 +1053,7 @@ iframe{
:deep(.el-collapse-item__header){ :deep(.el-collapse-item__header){
background-color: var(--my-common-bgc-2) !important; background-color: var(--my-common-bgc-2) !important;
color: var(--my-common-bgc-1); color: var(--my-common-bgc-1);
padding-left: 12px;
} }
.stock1 { .stock1 {
@ -1063,7 +1064,6 @@ iframe{
cursor: pointer; cursor: pointer;
} }
.stock2 { .stock2 {
/* border: 1px solid red; */
flex: 1; flex: 1;
display: flex; display: flex;
justify-content: left; justify-content: left;
@ -1087,7 +1087,6 @@ iframe{
border-radius: 4px; border-radius: 4px;
width: 50px; width: 50px;
text-align: center; text-align: center;
/* padding: 2px; */
} }
.downcolor { .downcolor {
color: rgb(80, 165, 72); color: rgb(80, 165, 72);
@ -1114,7 +1113,7 @@ iframe{
:deep(.demo-collapse) { :deep(.demo-collapse) {
padding-left: 12px; padding-left: 0;
} }
.fixed { .fixed {