This commit is contained in:
神仙都没用 2024-03-27 20:47:45 +08:00
parent 9bed5f3183
commit 2a1da170de
8 changed files with 32 additions and 23 deletions

View File

@ -23,10 +23,9 @@ const chartOption = reactive({
left: "center", left: "center",
data: ["手机", "相机", "耳机", "音箱", "手表"] data: ["手机", "相机", "耳机", "音箱", "手表"]
}, },
color: ["#3AA1FF", "#36CBCB", "#F2637B", "#975FE5", "#FBD437"],
series: [ series: [
{ {
name: "访问来源", name: "销售额类别占比",
type: "pie", type: "pie",
radius: ["50%", "60%"], radius: ["50%", "60%"],
center: ["50%", "40%"], center: ["50%", "40%"],

View File

@ -16,7 +16,10 @@
<span>周同比</span> <span>周同比</span>
<div class="fall"> <div class="fall">
<i class="el-icon-bottom-right"></i> <el-icon>
<bottom-right />
</el-icon>
<span>-4%</span> <span>-4%</span>
</div> </div>
</li> </li>
@ -25,7 +28,10 @@
<span>日同比</span> <span>日同比</span>
<div class="rise"> <div class="rise">
<i class="el-icon-top-right"></i> <el-icon>
<top-right />
</el-icon>
<span>+7%</span> <span>+7%</span>
</div> </div>
</li> </li>
@ -37,6 +43,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { ref } from "vue"; import { ref } from "vue";
import { BottomRight, TopRight } from "@element-plus/icons-vue";
const value = ref(0); const value = ref(0);

View File

@ -2,7 +2,7 @@
<div class="count-paid"> <div class="count-paid">
<div class="card"> <div class="card">
<div class="card__header"> <div class="card__header">
<span class="label">付笔数</span> <span class="label">笔数</span>
<span class="value">6560</span> <span class="value">6560</span>
</div> </div>

View File

@ -12,7 +12,10 @@
<span>周同比</span> <span>周同比</span>
<div class="fall"> <div class="fall">
<i class="el-icon-bottom-right"></i> <el-icon>
<bottom-right />
</el-icon>
<span>-6%</span> <span>-6%</span>
</div> </div>
</li> </li>
@ -21,7 +24,10 @@
<span>日同比</span> <span>日同比</span>
<div class="rise"> <div class="rise">
<i class="el-icon-top-right"></i> <el-icon>
<top-right />
</el-icon>
<span>+12%</span> <span>+12%</span>
</div> </div>
</li> </li>
@ -36,7 +42,9 @@
</div> </div>
</template> </template>
<script lang="ts" setup></script> <script lang="ts" setup>
import { BottomRight, TopRight } from "@element-plus/icons-vue";
</script>
<style lang="scss" scoped> <style lang="scss" scoped>
.count-sales { .count-sales {

View File

@ -25,12 +25,16 @@ import * as echarts from "echarts";
const chartOption = reactive({ const chartOption = reactive({
grid: { grid: {
left: 0, left: 0,
top: 0, top: 1,
right: 0, right: 0,
bottom: 0 bottom: 1
}, },
xAxis: { xAxis: {
type: "category", type: "category",
boundaryGap: false,
axisLine: {
show: false
},
data: [ data: [
"00:00", "00:00",
"2:00", "2:00",
@ -44,8 +48,7 @@ const chartOption = reactive({
"18:00", "18:00",
"20:00", "20:00",
"22:00" "22:00"
], ]
boundaryGap: false
}, },
yAxis: { yAxis: {
type: "value", type: "value",
@ -64,7 +67,6 @@ const chartOption = reactive({
}, },
series: [ series: [
{ {
name: "总访问量",
type: "line", type: "line",
smooth: true, smooth: true,
showSymbol: false, showSymbol: false,

View File

@ -42,10 +42,8 @@
</el-row> </el-row>
<div class="hot-search__table"> <div class="hot-search__table">
<cl-crud ref="Crud" padding="0"> <cl-crud ref="Crud">
<cl-row> <cl-table ref="Table" :border="false" />
<cl-table ref="Table" :border="false" />
</cl-row>
</cl-crud> </cl-crud>
</div> </div>
</div> </div>
@ -261,10 +259,7 @@ function chartOption() {
} }
&__table { &__table {
padding: 10px;
margin: 0 10px; margin: 0 10px;
border-radius: 6px;
background-color: var(--el-bg-color);
} }
} }
</style> </style>

View File

@ -62,9 +62,6 @@ const chartOption = reactive<any>({
show: true, show: true,
status: "shadow", status: "shadow",
z: -1, z: -1,
shadowStyle: {
color: "#E6F7FF"
},
type: "shadow" type: "shadow"
}, },
extraCssText: "width:120px; white-space:pre-wrap" extraCssText: "width:120px; white-space:pre-wrap"

View File

@ -75,6 +75,7 @@ import HotSearch from "./components/hot-search.vue";
font-size: 12px; font-size: 12px;
letter-spacing: 0.5px; letter-spacing: 0.5px;
color: #000; color: #000;
line-height: 1;
&__header { &__header {
display: flex; display: flex;