From 55b6f20282a371f5876bb740d7cd841792ae0a0b Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 13 May 2025 10:17:39 +0800
Subject: [PATCH] feat:工作台去除冗余
---
src/views/wel/index.vue | 46 +++++++++++++++++++++++-----------------------
1 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue
index 624697b..19093e0 100644
--- a/src/views/wel/index.vue
+++ b/src/views/wel/index.vue
@@ -116,6 +116,7 @@
import flyImg2 from '@/assets/images/workbench/fy3.png';
import flyImg3 from '@/assets/images/workbench/fy4.png';
import statistics from './components/statistics.vue';
+import { ElMessage } from 'element-plus'
let checked = ref('CURRENT_YEAR');
let timeListStr = ['本周', '本月', '本年'];
let timeListEnum = ['CURRENT_WEEK', 'CURRENT_MONTH', 'CURRENT_YEAR'];
@@ -130,13 +131,15 @@
checked.value = item;
params.value.date_enum = item;
dateSelect.value = item;
- // console.log('日期选择', params.value.date_enum);
getTypeData();
getFlyList()
getFlyTimeList()
};
// 跳转
-const jumpshebei= ()=>{}
+const jumpshebei= ()=>{
+ ElMessage.warning('加急开发中...')
+}
+
const eventTypeList = ref([
{ name: '待审核', value: 0, img: overviewImg2, color: '#FF472F', status: '2', rate: 0 },
{ name: '待处理', value: 0, img: overviewImg3, color: '#FF7411', status: '0', rate: 0 },
@@ -189,7 +192,6 @@
const getFlyTimeList=()=>{
getFlyTime(params.value).then(res=>{
const resList = res?.data?.data || [];
- // console.log('飞行统计11',res.data.data);
lineCharts(resList)
})
}
@@ -199,7 +201,6 @@
const chartRef = ref(null);
let { chart: lineChart } = useEchartsResize(chartRef);
const initChart = val => {
- // 转换数据格式并计算总数
const totalNum = val.reduce((sum, item) => sum + item.num, 0);
const data = {
total: {
@@ -235,22 +236,23 @@
legend: {
show: false,
},
- title: {
- text: data.total.title,
- textStyle: {
- color: 'rgba(28, 31, 35, 0.80)',
- fontSize: '12px',
- fontWeight: 'normal',
- },
- subtext: data.total.figure,
- subtextStyle: {
- color: '#1C1F23',
- fontSize: '20px',
- fontWeight: '600',
- },
- top: '40%',
- left: '50%',
+ title: {
+ text: data.total.title,
+ textStyle: {
+ color: 'rgba(28, 31, 35, 0.80)',
+ fontSize: '12px',
+ fontWeight: 'normal',
},
+ subtext: data.total.figure,
+ subtextStyle: {
+ color: '#1C1F23',
+ fontSize: '20px',
+ fontWeight: '600',
+ },
+ top: '40%',
+ left: '53%',
+ textAlign: 'center', // 文本对齐
+ },
series: [
{
name: '',
@@ -365,7 +367,7 @@
},
},
yAxis: [
- // 只保留第一个y轴
+
{
type: 'log',
name: '单位:万套',
@@ -484,7 +486,7 @@
{
name: '任务成果',
type: 'line',
- yAxisIndex: 1, // 改为使用第一个y轴
+ yAxisIndex: 1,
smooth: true,
// symbol: 'circle',
// symbolSize: 8,
@@ -522,7 +524,6 @@
}
</style>
<style scoped lang="scss">
-// 开始
.workbench {
padding: 0px 20px 0 20px;
display: flex;
@@ -531,7 +532,6 @@
.workleft {
width: 68%;
margin-right: 10px;
- // 综合
.comprehensiveCon {
// height: 736px;
background: #ffffff;
--
Gitblit v1.9.3