项目初始化

This commit is contained in:
2026-03-30 12:46:14 +08:00
parent 409bfdcd15
commit d05c87555e

View File

@@ -2,16 +2,7 @@
<div ref="noteCardRef" class="note-card"> <div ref="noteCardRef" class="note-card">
<div class="card-title"> <div class="card-title">
<span>便签信息</span> <span>便签信息</span>
<el-tooltip content="刷新" placement="top" :show-after="200"> <el-button class="card-title__more" link type="primary" @click="goMore">更多</el-button>
<el-button
class="card-title__refresh"
link
type="primary"
:icon="RefreshRight"
:loading="loading"
@click="getList"
/>
</el-tooltip>
</div> </div>
<div class="card-content"> <div class="card-content">
@@ -53,10 +44,12 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue'; import { computed, nextTick, onMounted, onUnmounted, ref } from 'vue';
import { useRouter } from 'vue-router';
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { RefreshRight } from '@element-plus/icons-vue';
import { NoteInfo, NoteInfoData, ChartDataItem, NoteChartData } from '@jeesite/biz/api/biz/myWorkbench'; import { NoteInfo, NoteInfoData, ChartDataItem, NoteChartData } from '@jeesite/biz/api/biz/myWorkbench';
const router = useRouter();
interface MetricCard { interface MetricCard {
key: string; key: string;
label: string; label: string;
@@ -136,6 +129,10 @@
} }
} }
function goMore() {
router.push('/biz/myNotes/list');
}
function buildChartData() { function buildChartData() {
const statusGroups = [ const statusGroups = [
{ label: '待开始', color: '#F97316', field: 'value01' }, { label: '待开始', color: '#F97316', field: 'value01' },
@@ -354,9 +351,9 @@
border-bottom: 1px solid rgb(226 232 240); border-bottom: 1px solid rgb(226 232 240);
background: transparent; background: transparent;
&__refresh { &__more {
padding: 0; padding: 0;
font-size: 16px; font-size: 13px;
} }
} }
@@ -504,7 +501,7 @@
color: rgb(203 213 225); color: rgb(203 213 225);
border-bottom-color: rgb(51 65 85); border-bottom-color: rgb(51 65 85);
&__refresh:deep(.el-icon) { &__more:deep(.el-button) {
color: rgb(147 197 253); color: rgb(147 197 253);
} }
} }