From 4352db77e69535ad829d7ad24efd2d66b4b97d09 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 30 九月 2025 11:53:22 +0800
Subject: [PATCH] 修改商店优惠劵页面

---
 manager/src/views/statistics/order.vue |  175 +++++++++++++++++++++++++++++-----------------------------
 1 files changed, 88 insertions(+), 87 deletions(-)

diff --git a/manager/src/views/statistics/order.vue b/manager/src/views/statistics/order.vue
index 9433b56..a931028 100644
--- a/manager/src/views/statistics/order.vue
+++ b/manager/src/views/statistics/order.vue
@@ -5,85 +5,85 @@
         <affixTime @selected="clickBreadcrumb" />
       </Card>
     </Affix>
-    <Card class="card">
-        <div class="chart-wrapper">
-          <div class="chart-header">
-            <h2>PV/UV 瓒嬪娍鍥�</h2>
-          </div>
-          <div ref="chartDom" class="chart-container"></div>
-        </div>
-    </Card>
-    <Card class="card">
-      <div class="my-chart-container">
-        <div class="chart-wrapper" style="height: 800px">
-          <div class="chart-header">
-            <h2>鍟嗗搧/瑙嗛娴忚閲忓畬鎾巼 瓒嬪娍鍥�</h2>
-          </div>
-          <div class="button-group-wrapper">
-            <!-- 绗竴缁勶細鍟嗗搧/瑙嗛锛堥潬宸︼級 -->
-            <ButtonGroup>
-              <Button
-                :type="currentType === 'goods' ? 'primary' : 'default'"
-                @click="handleTypeChange('goods')"
-              >
-                鍟嗗搧
-              </Button>
-              <Button
-                :type="currentType === 'video' ? 'primary' : 'default'"
-                @click="handleTypeChange('video')"
-              >
-                瑙嗛
-              </Button>
-            </ButtonGroup>
 
-            <!-- 绗簩缁勶細鍓�10/鍓�20/鍓�30锛堥潬鍙筹級 -->
-            <ButtonGroup>
-              <Button
-                :type="currentLimit === 10 ? 'success' : 'default'"
-                @click="handleLimitChange(10)"
-              >
-                鍓�10
-              </Button>
-              <Button
-                :type="currentLimit === 20 ? 'success' : 'default'"
-                @click="handleLimitChange(20)"
-              >
-                鍓�20
-              </Button>
-              <Button
-                :type="currentLimit === 30 ? 'success' : 'default'"
-                @click="handleLimitChange(30)"
-              >
-                鍓�30
-              </Button>
-            </ButtonGroup>
-          </div>
-          <div ref="viewPrintChartDom" class="view-chart-container"></div>
-        </div>
-      </div>
-    </Card>
-    <Card class="card">
-      <div class="my-chart-container">
-        <div class="chart-wrapper">
-          <div class="chart-header">
-            <h2>璁㈠崟澧為暱 瓒嬪娍鍥�</h2>
-          </div>
-          <div ref="orderCountChartDom" class="chart-container"></div>
-        </div>
-      </div>
-    </Card>
+<!--    <Card class="card">-->
+<!--        <div class="chart-wrapper">-->
+<!--          <div class="chart-header">-->
+<!--            <h2>PV/UV 瓒嬪娍鍥�</h2>-->
+<!--          </div>-->
+<!--          <div ref="chartDom" class="chart-container"></div>-->
+<!--        </div>-->
+<!--    </Card>-->
+<!--    <Card class="card">-->
+<!--      <div class="my-chart-container">-->
+<!--        <div class="chart-wrapper" style="height: 800px">-->
+<!--          <div class="chart-header">-->
+<!--            <h2>鍟嗗搧/瑙嗛娴忚閲忓畬鎾巼 瓒嬪娍鍥�</h2>-->
+<!--          </div>-->
+<!--          <div class="button-group-wrapper">-->
+<!--            &lt;!&ndash; 绗竴缁勶細鍟嗗搧/瑙嗛锛堥潬宸︼級 &ndash;&gt;-->
+<!--            <ButtonGroup>-->
+<!--              <Button-->
+<!--                :type="currentType === 'goods' ? 'primary' : 'default'"-->
+<!--                @click="handleTypeChange('goods')"-->
+<!--              >-->
+<!--                鍟嗗搧-->
+<!--              </Button>-->
+<!--              <Button-->
+<!--                :type="currentType === 'video' ? 'primary' : 'default'"-->
+<!--                @click="handleTypeChange('video')"-->
+<!--              >-->
+<!--                瑙嗛-->
+<!--              </Button>-->
+<!--            </ButtonGroup>-->
 
-    <Card class="card">
-      <div class="my-chart-container">
-        <div class="chart-wrapper">
-          <div class="chart-header">
-            <h2>娴忚鏁版嵁/璁㈠崟鏃堕棿娈� 瓒嬪娍鍥�</h2>
-          </div>
-          <div ref="orderTimePeriodChartDom" class="chart-container"></div>
-        </div>
-      </div>
+<!--            &lt;!&ndash; 绗簩缁勶細鍓�10/鍓�20/鍓�30锛堥潬鍙筹級 &ndash;&gt;-->
+<!--            <ButtonGroup>-->
+<!--              <Button-->
+<!--                :type="currentLimit === 10 ? 'success' : 'default'"-->
+<!--                @click="handleLimitChange(10)"-->
+<!--              >-->
+<!--                鍓�10-->
+<!--              </Button>-->
+<!--              <Button-->
+<!--                :type="currentLimit === 20 ? 'success' : 'default'"-->
+<!--                @click="handleLimitChange(20)"-->
+<!--              >-->
+<!--                鍓�20-->
+<!--              </Button>-->
+<!--              <Button-->
+<!--                :type="currentLimit === 30 ? 'success' : 'default'"-->
+<!--                @click="handleLimitChange(30)"-->
+<!--              >-->
+<!--                鍓�30-->
+<!--              </Button>-->
+<!--            </ButtonGroup>-->
+<!--          </div>-->
+<!--          <div ref="viewPrintChartDom" class="view-chart-container"></div>-->
+<!--        </div>-->
+<!--      </div>-->
+<!--    </Card>-->
+<!--    <Card class="card">-->
+<!--      <div class="my-chart-container">-->
+<!--        <div class="chart-wrapper">-->
+<!--          <div class="chart-header">-->
+<!--            <h2>璁㈠崟澧為暱 瓒嬪娍鍥�</h2>-->
+<!--          </div>-->
+<!--          <div ref="orderCountChartDom" class="chart-container"></div>-->
+<!--        </div>-->
+<!--      </div>-->
+<!--    </Card>-->
+<!--    <Card class="card">-->
+<!--      <div class="my-chart-container">-->
+<!--        <div class="chart-wrapper">-->
+<!--          <div class="chart-header">-->
+<!--            <h2>娴忚鏁版嵁/璁㈠崟鏃堕棿娈� 瓒嬪娍鍥�</h2>-->
+<!--          </div>-->
+<!--          <div ref="orderTimePeriodChartDom" class="chart-container"></div>-->
+<!--        </div>-->
+<!--      </div>-->
 
-    </Card>
+<!--    </Card>-->
 
 
     <Card class="card">
@@ -1026,8 +1026,8 @@
           formatter:tooltipFormatter
         },
         grid: {
-          left: '5%', // 瑙嗛绫诲瀷宸︾Щ锛岀粰瀹屾挱鐜囨爣绛剧暀绌洪棿
-          right: '10%',
+          left: '4%', // 瑙嗛绫诲瀷宸︾Щ锛岀粰瀹屾挱鐜囨爣绛剧暀绌洪棿
+          right: '12%',
           bottom: '0',
           top: '5%',
           containLabel: true
@@ -1310,15 +1310,16 @@
       this.refundParams.pageSize = 10
 
       //鏇存柊琛ㄦ牸
-      this.updateChartData(this.orderParams)
-      this.updateOrderCountChartDate(this.orderParams)
 
-      let form = {...this.orderParams};
-      form.currentType = this.currentType;
-      form.currentLimit = this.currentLimit;
-      this.updateViewAndCompletionRateData(form)
-
-      this.updateOrderTimePeriodData(this.orderParams)
+      // this.updateChartData(this.orderParams)
+      // this.updateOrderCountChartDate(this.orderParams)
+      //
+      // let form = {...this.orderParams};
+      // form.currentType = this.currentType;
+      // form.currentLimit = this.currentLimit;
+      // this.updateViewAndCompletionRateData(form)
+      //
+      // this.updateOrderTimePeriodData(this.orderParams)
     },
 
     // 瀹炰緥鍖栬鍗曟瑙�
@@ -1377,7 +1378,7 @@
 
   mounted() {
     console.log('ECharts 鏄惁瀛樺湪锛�', typeof echarts !== 'undefined'); // 搴旇緭鍑� true
-    this.initChart();
+    // this.initChart();
     this.initBaseParams();
     window.addEventListener('resize', this.handleResize)
   },

--
Gitblit v1.8.0