Selaa lähdekoodia

fix(router): 修正比赛历史记录路由路径

- 将服务历史记录路径 /service/history 更新为比赛历史记录路径 /tournament/history
- 确保路由参数 tournamentId 和 playerId 正确传递到新路径
fugui 1 viikko sitten
vanhempi
commit
2b5dc109bd
2 muutettua tiedostoa jossa 22 lisäystä ja 17 poistoa
  1. 21 16
      src/views/index.vue
  2. 1 1
      src/views/system/business/products/index.vue

+ 21 - 16
src/views/index.vue

@@ -33,14 +33,14 @@
         <div class="card-header">充值金额</div>
         <div class="card-value">{{ rechargeAmount }}</div>
       </div>
-      <div class="stat-card" @click="navigateToStaticTop('qualificationIssued')">
+      <!--      <div class="stat-card" @click="navigateToStaticTop('qualificationIssued')">
         <div class="card-header">三湘杯参赛资格发放数</div>
         <div class="card-value">{{ qualificationIssued }}</div>
       </div>
       <div class="stat-card" @click="navigateToStaticTop('qualificationUsed')">
         <div class="card-header">三湘杯参赛资格核销数</div>
         <div class="card-value">{{ qualificationUsed }}</div>
-      </div>
+      </div>-->
     </div>
 
     <!-- 折线图区域 -->
@@ -132,7 +132,7 @@ const updateChart = (data: any) => {
       }
     },
     legend: {
-      data: ['充值数', '充值金额', '三湘杯参赛资格发放数', '三湘杯参赛资格核销数']
+      data: ['充值数', '充值金额' /*, '三湘杯参赛资格发放数', '三湘杯参赛资格核销数'*/]
     },
     grid: {
       left: '3%',
@@ -173,7 +173,7 @@ const updateChart = (data: any) => {
             }
             return Number(item);
           }) || []
-      },
+      } /*,
       {
         name: '三湘杯参赛资格发放数',
         type: 'line',
@@ -191,7 +191,7 @@ const updateChart = (data: any) => {
           focus: 'series'
         },
         data: data.selectCheckRecordSanXiangCountIds || []
-      }
+      }*/
     ]
   };
 
@@ -280,7 +280,7 @@ const navigateToStaticTop = (cardType: string) => {
   switch (cardType) {
     case 'match':
       proxy?.$router.push({
-        path: '/service/tournamentTop',
+        path: '/datas/tournamentTop',
         query: {
           cardType: cardType,
           timeFilter: timeFilter.value,
@@ -292,7 +292,7 @@ const navigateToStaticTop = (cardType: string) => {
     case 'rechargeCount':
     case 'rechargeAmount':
       proxy?.$router.push({
-        path: '/service/rechargeTop',
+        path: '/datas/rechargeTop',
         query: {
           cardType: cardType,
           timeFilter: timeFilter.value,
@@ -300,7 +300,7 @@ const navigateToStaticTop = (cardType: string) => {
           endTime: endTime.value
         }
       });
-      break;
+      break; /*
     case 'qualificationIssued':
       proxy?.$router.push({
         path: '/service/toolsTop',
@@ -311,8 +311,8 @@ const navigateToStaticTop = (cardType: string) => {
           endTime: endTime.value
         }
       });
-      break;
-    case 'qualificationUsed':
+      break;*/
+    /*    case 'qualificationUsed':
       proxy?.$router.push({
         path: '/service/checkRecord',
         query: {
@@ -322,7 +322,7 @@ const navigateToStaticTop = (cardType: string) => {
           endTime: endTime.value
         }
       });
-      break;
+      break;*/
     default:
       // 默认跳转到 tournamentTop 页面
       proxy?.$router.push({
@@ -389,23 +389,28 @@ const navigateToStaticTop = (cardType: string) => {
 }
 
 /* 为不同类型的统计数字设置不同颜色 */
-.stat-card:nth-child(1) .card-value { /* 比赛场次 */
+.stat-card:nth-child(1) .card-value {
+  /* 比赛场次 */
   color: #409eff; /* 蓝色 */
 }
 
-.stat-card:nth-child(2) .card-value { /* 充值数 */
+.stat-card:nth-child(2) .card-value {
+  /* 充值数 */
   color: #67c23a; /* 绿色 */
 }
 
-.stat-card:nth-child(3) .card-value { /* 充值金额 */
+.stat-card:nth-child(3) .card-value {
+  /* 充值金额 */
   color: #e6a23c; /* 橙色 */
 }
 
-.stat-card:nth-child(4) .card-value { /* 三湘杯参赛资格发放数 */
+.stat-card:nth-child(4) .card-value {
+  /* 三湘杯参赛资格发放数 */
   color: #f56c6c; /* 红色 */
 }
 
-.stat-card:nth-child(5) .card-value { /* 三湘杯参赛资格核销数 */
+.stat-card:nth-child(5) .card-value {
+  /* 三湘杯参赛资格核销数 */
   color: #909399; /* 灰色 */
 }
 

+ 1 - 1
src/views/system/business/products/index.vue

@@ -314,7 +314,7 @@ const loadItemOptions = async () => {
 
 const handleUploadFile = (fileType: string) => {
   proxy?.$router.push({
-    path: '/adv/mediaResource',
+    path: '/contents/adv/mediaResource',
     query: {
       bizType: 'charge_points', // 转为字符串以兼容 URL 参数
       fileType: fileType