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 +++++++++++++++++++++++-----------------------
 src/views/wel/components/calendarBox.vue |    4 +++-
 src/views/wel/components/backlog.vue     |    6 +++---
 3 files changed, 29 insertions(+), 27 deletions(-)

diff --git a/src/views/wel/components/backlog.vue b/src/views/wel/components/backlog.vue
index f1664fa..03a90d9 100644
--- a/src/views/wel/components/backlog.vue
+++ b/src/views/wel/components/backlog.vue
@@ -96,16 +96,16 @@
   }
 };
 const getListMatter = async () => {
-  console.log('permission.value.o_and_m_p_jump', permission.value.o_and_m_p_jump);
+  // console.log('permission.value.o_and_m_p_jump', permission.value.o_and_m_p_jump);
 
   if (permission.value.o_and_m_p_jump === true) {
     const res = await getdaiban(0,userInfo.value.detail.areaCode);
     todos.value = res.data.data?.slice(0, 5);
-     console.log('2222',res.data.data);
+ 
   } else {
     const res = await getdaiban(1,userInfo.value.detail.areaCode);
     todos.value = res.data.data?.slice(0, 5);
-      console.log('111111',res.data.data);
+
   }
 
 };
diff --git a/src/views/wel/components/calendarBox.vue b/src/views/wel/components/calendarBox.vue
index e6106ca..5ea7bc5 100644
--- a/src/views/wel/components/calendarBox.vue
+++ b/src/views/wel/components/calendarBox.vue
@@ -28,6 +28,7 @@
 import { useRouter } from 'vue-router';
 import ev1 from '@/assets/images/workbench/ev1.png';
 import ev2 from '@/assets/images/workbench/ev2.png';
+import { ElMessage } from 'element-plus'
 const router = useRouter();
 const events = ref({});
 const params = ref({
@@ -53,7 +54,6 @@
   (newV, oldV) => {
     if (newV && oldV) {
       const newDate = dayjs(newV);
-      const oldDate = dayjs(oldV);
       params.value = {
         start_date: newDate.startOf('month').format('YYYY-MM-DD HH:mm:ss'),
         end_date: newDate.endOf('month').format('YYYY-MM-DD HH:mm:ss'),
@@ -88,6 +88,8 @@
         day: day,
       },
     });
+  }else{
+     ElMessage.warning('加急开发中...')
   }
 };
 onMounted(() => {
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