From 9cc3dcf053277cbc59ef2228c94dc23d5728781c Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期二, 08 七月 2025 18:19:45 +0800
Subject: [PATCH] 测试完成

---
 src/views/index.vue |   63 +++++++++++++++++--------------
 1 files changed, 34 insertions(+), 29 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 9b1f7fc..352aa61 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -128,14 +128,14 @@
                   type="index"
                 ></el-table-column>
                 <el-table-column
-                  prop="skuName"
+                  prop="deptname"
                   width="88"
                   class-name="name"
                 ></el-table-column>
 
-                <el-table-column prop="count" class-name="count">
+                <el-table-column prop="rc" class-name="rc">
                   <template slot-scope="scope">
-                    {{ scope.row.count }}娆�
+                    {{ scope.row.rc }}娆�
                   </template>
                 </el-table-column>
               </el-table>
@@ -308,7 +308,7 @@
       mypPieCharts: null,
       lastWidth: window.innerWidth,
       lastHeight: window.innerHeight,
-      radio1: "鍛�",
+      radio1: "鏈�",
       ticketStatistics: {},
       DischargeData: {
         rs: "",
@@ -396,25 +396,35 @@
     },
     // top鎺掕
     async getSkuTop() {
-      // const res = await getSkuTop(10, this.endatd, this.statd);
-      // this.SkuTop = res.data;
-      this.SkuTop = [
-        { amount: 0, count: 123, skuId: "0", skuName: "蹇冭偤绉�" },
-        { amount: 0, count: 122, skuId: "0", skuName: "鑲捐剰绉�" },
-        { amount: 0, count: 112, skuId: "0", skuName: "娉屽翱绉�" },
-        { amount: 0, count: 111, skuId: "0", skuName: "鐢风" },
-        { amount: 0, count: 102, skuId: "0", skuName: "濡囦骇绉�" },
-        { amount: 0, count: 98, skuId: "0", skuName: "澶栫" },
-        { amount: 0, count: 89, skuId: "0", skuName: "鎬ヨ瘖" },
-        { amount: 0, count: 88, skuId: "0", skuName: "鍣ㄦ绉�" },
-        { amount: 0, count: 87, skuId: "0", skuName: "楠ㄧ" },
-        { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�" },
-        { amount: 0, count: 89, skuId: "0", skuName: "鎬ヨ瘖" },
-        { amount: 0, count: 88, skuId: "0", skuName: "鍣ㄦ绉�" },
-        { amount: 0, count: 87, skuId: "0", skuName: "楠ㄧ" },
-        { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�1" },
-        { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�2" },
-      ];
+       let Rankingdata = {
+        startDate: this.endatd,
+        endDate: this.statd,
+        cy: 1,
+      };
+      await getDeptRanking(Rankingdata).then((res) => {
+        if (res.code == 200) {
+          this.SkuTop=res.rows.sort((a, b) => b.rc - a.rc);
+          console.log(this.SkuTop,'this.SkuTop');
+        }
+      });
+
+      // this.SkuTop = [
+      //   { amount: 0, count: 123, skuId: "0", skuName: "蹇冭偤绉�" },
+      //   { amount: 0, count: 122, skuId: "0", skuName: "鑲捐剰绉�" },
+      //   { amount: 0, count: 112, skuId: "0", skuName: "娉屽翱绉�" },
+      //   { amount: 0, count: 111, skuId: "0", skuName: "鐢风" },
+      //   { amount: 0, count: 102, skuId: "0", skuName: "濡囦骇绉�" },
+      //   { amount: 0, count: 98, skuId: "0", skuName: "澶栫" },
+      //   { amount: 0, count: 89, skuId: "0", skuName: "鎬ヨ瘖" },
+      //   { amount: 0, count: 88, skuId: "0", skuName: "鍣ㄦ绉�" },
+      //   { amount: 0, count: 87, skuId: "0", skuName: "楠ㄧ" },
+      //   { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�" },
+      //   { amount: 0, count: 89, skuId: "0", skuName: "鎬ヨ瘖" },
+      //   { amount: 0, count: 88, skuId: "0", skuName: "鍣ㄦ绉�" },
+      //   { amount: 0, count: 87, skuId: "0", skuName: "楠ㄧ" },
+      //   { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�1" },
+      //   { amount: 0, count: 67, skuId: "0", skuName: "鏀惧皠绉�2" },
+      // ];
     },
     // 鑾峰彇澶撮儴鏁版嵁
     getTopdata() {
@@ -443,12 +453,7 @@
     },
     // 鑾峰彇灏辫瘖鏁伴噺
     getranking() {
-      let Rankingdata = {
-        startDate: this.endatd,
-        endDate: this.statd,
-        cy: 1,
-      };
-      getDeptRanking(Rankingdata).then((res) => {});
+
     },
     // 鑾峰彇涓儴绾挎煴鍥炬暟鎹�
     getgraphdata() {

--
Gitblit v1.9.3