Explorar o código

首页score图fix

zhudie %!s(int64=2) %!d(string=hai) anos
pai
achega
c8df32f3a3

+ 0 - 4
src/views/cameras/overview/components/ShareCameraDetail.vue

@@ -207,10 +207,6 @@
 
   const handleConfirm = () => {
     if (!ruleFormRef.value) return;
-    // ruleFormRef.value.validate((valid) => {
-    //   if (!valid) {
-    //     return;
-    //   };
 
     ruleFormRef.value.validate((valid) => {
       if (!valid) {

+ 1 - 1
src/views/dashboard/home/components/Score.vue

@@ -8,7 +8,7 @@
         </el-radio-group>
       </div>
       <el-divider />
-      <div class="score-show">
+      <div v-if="scoreInfoList.length > 0" class="score-show">
         <VChart class="pic-show" :option="options" />
       </div>
     </div>

+ 1 - 7
src/views/dashboard/home/hooks/useScoreInfo.ts

@@ -8,13 +8,7 @@ import {
 } from '@/api/home/home-score.ts';
 
 export function useScoreInfo() {
-  const scoreInfoList = ref<ScoreType[]>([
-    {
-      date: '2024-05-06',
-      score: 99,
-      workshopList: ['ARJ21总装车间', 'C919部装车间', '维修交付中心'],
-    },
-  ]);
+  const scoreInfoList = ref<ScoreType[]>([]);
 
   const getDailyScoreList = () => {
     getDailyScore().then((res) => {