From 52c46fb923bf6fb6c15932a7f51c8fef2fd7266f Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期一, 27 十月 2025 15:56:51 +0800
Subject: [PATCH] 页面调整图片预览

---
 manager/src/views/statistics/order.vue |  465 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 422 insertions(+), 43 deletions(-)

diff --git a/manager/src/views/statistics/order.vue b/manager/src/views/statistics/order.vue
index 17fb7a6..842b373 100644
--- a/manager/src/views/statistics/order.vue
+++ b/manager/src/views/statistics/order.vue
@@ -5,6 +5,7 @@
         <affixTime @selected="clickBreadcrumb" />
       </Card>
     </Affix>
+
     <Card class="card">
         <div class="chart-wrapper">
           <div class="chart-header">
@@ -17,7 +18,7 @@
       <div class="my-chart-container">
         <div class="chart-wrapper" style="height: 800px">
           <div class="chart-header">
-            <h2>鍟嗗搧/瑙嗛娴忚閲忓畬鎾巼 瓒嬪娍鍥�</h2>
+            <h2>鍟嗗搧/瑙嗛娴忚閲忓畬鎾巼 鎺掑悕鍥�</h2>
           </div>
           <div class="button-group-wrapper">
             <!-- 绗竴缁勶細鍟嗗搧/瑙嗛锛堥潬宸︼級 -->
@@ -72,6 +73,51 @@
         </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 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">
+            <!-- 椤甸潰鏍峰紡闇�瑕� -->
+            <div></div>
+            <ButtonGroup>
+              <Button
+                :type="repurchaseCurrentLimit === 10 ? 'success' : 'default'"
+                @click="handleRepurchaseLimitChange(10)"
+              >
+                鍓�10
+              </Button>
+              <Button
+                :type="repurchaseCurrentLimit === 20 ? 'success' : 'default'"
+                @click="handleRepurchaseLimitChange(20)"
+              >
+                鍓�20
+              </Button>
+              <Button
+                :type="repurchaseCurrentLimit === 30 ? 'success' : 'default'"
+                @click="handleRepurchaseLimitChange(30)"
+              >
+                鍓�30
+              </Button>
+            </ButtonGroup>
+          </div>
+          <div ref="productRepurchaseRateChartDom" class="repurchase-chart-container"></div>
+        </div>
+      </div>
+    </Card>
+
 
     <Card class="card">
       <div>
@@ -271,7 +317,7 @@
 import refundRow from "./order/refundOrder";
 import affixTime from "@/components/affix-time";
 import * as echarts from 'echarts';
-import {pvUvData,getOrderCount,getViewAndCompletionRateCount} from "../../api/orderStatistics";
+import {pvUvData,getOrderCount,getViewAndCompletionRateCount,getOrderTimePeriod,gerProductRepurchase} from "../../api/orderStatistics";
 
 export default {
   components: { orderRow, refundRow, affixTime },
@@ -281,9 +327,16 @@
       // 鍥捐〃瀹炰緥
       chart: null, //pvuv
       orderCountChart:null, //璁㈠崟鏃ヨ秼鍔�
-      viewPrintChart:null,
+      viewPrintChart:null, //瀹屾挱鐜�
+      orderTimePeriodChart:null, //璁㈠崟/娴忚鏃堕棿
+      productRepurchaseRateChart:null,//鍟嗗搧澶嶈喘鐜�
+
       currentType:"goods",
       currentLimit:10,
+
+      repurchaseCurrentLimit:10,
+
+
       // 缁熻鏁版嵁
 
       orderOrRefund: 1, // 璁㈠崟杩樻槸閫�鍗�
@@ -606,24 +659,38 @@
      const dates = [];
      const today = new Date();
      let days = 1;
+     if(param.year !== null && param.year !== undefined && param.month !== null && param.month !== undefined && param.month !=='' ){
+       // 褰撲紶鍏ュ勾浠藉拰鏈堜唤鏃讹紝鐢熸垚璇ユ湀浠界殑鎵�鏈夋棩鏈�
+       const year = parseInt(param.year);
+       const month = parseInt(param.month);
+       // 鑾峰彇璇ユ湀鐨勫ぉ鏁�
+       const daysInMonth = new Date(year, month, 0).getDate();
 
-     // 纭畾澶╂暟閫昏緫涓嶅彉
-     if (param.searchType === "TODAY") {
-       days = 1;
-     } else if (param.searchType === "YESTERDAY") {
-       days = 1;
-     } else if (param.searchType === "LAST_SEVEN") {
-       days = 7;
-     } else if (param.searchType === "LAST_THIRTY") {
-       days = 30;
+       // 鐢熸垚璇ユ湀鎵�鏈夋棩鏈�
+       for (let day = 1; day <= daysInMonth; day++) {
+         const date = new Date(year, month - 1, day); // 鏈堜唤浠�0寮�濮嬶紝鎵�浠ヨ鍑�1
+         dates.push(this.formatDate(date, 'MM-dd'));
+       }
+
+     }else{
+       // 纭畾澶╂暟閫昏緫涓嶅彉
+       if (param.searchType === "TODAY") {
+         days = 1;
+       } else if (param.searchType === "YESTERDAY") {
+         days = 1;
+       } else if (param.searchType === "LAST_SEVEN") {
+         days = 7;
+       } else if (param.searchType === "LAST_THIRTY") {
+         days = 30;
+       }
+       for (let i = days - 1; i >= 0; i--) {
+         const date = new Date(today);
+         date.setDate(today.getDate() - i);
+         dates.push(this.formatDate(date, 'MM-dd'));
+       }
      }
-
      // 鐢熸垚鏃ユ湡鏁扮粍閫昏緫涓嶅彉
-     for (let i = days - 1; i >= 0; i--) {
-       const date = new Date(today);
-       date.setDate(today.getDate() - i);
-       dates.push(this.formatDate(date, 'MM-dd'));
-     }
+
      return dates;
    },
 
@@ -638,29 +705,44 @@
       if (this.orderCountChart){
         this.orderCountChart.resize()
       }
+      if (this.orderTimePeriodChart){
+        this.orderTimePeriodChart.resize();
+      }
+      if (this.productRepurchaseRateChart){
+        this.productRepurchaseRateChart.resize();
+      }
     },
     initChart(){
       this.chart = echarts.init(this.$refs.chartDom)
       this.viewPrintChart = echarts.init(this.$refs.viewPrintChartDom)
       this.orderCountChart = echarts.init(this.$refs.orderCountChartDom)
+      this.orderTimePeriodChart = echarts.init(this.$refs.orderTimePeriodChartDom)
+      this.productRepurchaseRateChart = echarts.init(this.$refs.productRepurchaseRateChartDom)
 
-      this.updateChartData(this.orderParams)
 
-      this.updateOrderCountChartDate(this.orderParams)
+      this.updateChartData(this.orderParams)//鏇存柊 pvuv
 
-      let form = {...this.orderParams};
-      form.currentType = this.currentType;
-      form.currentLimit = this.currentLimit;
-      this.updateViewAndCompletionRateData(form)
+      this.updateOrderCountChartDate(this.orderParams)//鏇存柊鏃ヨ鍗�
+
+      let viewForm = {...this.orderParams};
+      viewForm.currentType = this.currentType;
+      viewForm.currentLimit = this.currentLimit;
+      this.updateViewAndCompletionRateData(viewForm)//鏇存柊瀹屾挱鐜�
+
+      this.updateOrderTimePeriodData(this.orderParams)//鏇存柊娴忚鏁版嵁锛屼笅璁㈠崟鏃ユ湡鏃堕棿娈靛垎鏋�
+
+      let productRepurchaseDataForm ={...this.orderParams};
+      productRepurchaseDataForm.currentLimit = this.repurchaseCurrentLimit
+      this.updateProductRepurchaseData(productRepurchaseDataForm)//
     },
-    // 鏇存柊鍥捐〃鏁版嵁
+    //------------鏇存柊鍥捐〃鏁版嵁pvuv start
     async updateChartData(param) {
       // 鐢熸垚鏃ユ湡鍜孭V鏁版嵁
       const { pvData ,uvData} = await this.generateChartData(param)
       // 璁剧疆鍥捐〃閰嶇疆
       this.chart.setOption(this.getChartOption(this.getDates(param), pvData, uvData))
     },
-// 鑾峰彇鍥捐〃閰嶇疆椤�
+    // 鑾峰彇鍥捐〃閰嶇疆椤�
     // 鍥捐〃閰嶇疆椤癸紙鎭㈠鍘熷棰滆壊锛�
     getChartOption(dates, pvData, uvData) {
       return {
@@ -791,7 +873,7 @@
         animationEasing: 'cubicOut'
       };
     },
-// 鐢熸垚pv/uv鍥捐〃鏁版嵁
+    // 鐢熸垚pv/uv鍥捐〃鏁版嵁
     async generateChartData(param) {
      // 1. 澹版槑涓篴sync鍑芥暟
       // 2. 浣跨敤await绛夊緟鎺ュ彛杩斿洖锛岀‘淇濇暟鎹幏鍙栧悗鍐嶇户缁�
@@ -811,8 +893,8 @@
       // 3. 姝ゆ椂pvData鍜寀vData宸茶鎺ュ彛鏁版嵁濉厖锛屽啀杩斿洖
       return { pvData, uvData };
     },
-    //-------------
-    //-------------璁㈠崟鏃ヨ秼鍔�
+    //-------------end
+    //-------------璁㈠崟鏃ヨ秼鍔縮tart
     async updateOrderCountChartDate(param){
      const { orderCountData } = await this.generateOrderCountChartData(param)
       this.orderCountChart.setOption(this.getOrderCountChartOption(this.getDates(param),orderCountData))
@@ -914,25 +996,25 @@
         animationEasing: 'cubicOut' // 缂撳姩鏁堟灉锛屼紭鍖栧姩鐢绘祦鐣呭害
       };
     },
-    //-------------
+    //-------------end
 
-//-------------娴忚閲忥紝瀹屾挱鐜囷紝
+    //-------------娴忚閲忥紝瀹屾挱鐜囷紝start
     handleLimitChange(limit) {
       if (this.currentLimit !== limit) {
         this.currentLimit = limit
-        let from = {...this.orderParams}
-        from.currentLimit = this.currentLimit;
-        from.currentType = this.currentType;
-        this.updateViewAndCompletionRateData(from) // 閲嶆柊鍔犺浇鏁版嵁
+        let form = {...this.orderParams}
+        form.currentLimit = this.currentLimit;
+        form.currentType = this.currentType;
+        this.updateViewAndCompletionRateData(form) // 閲嶆柊鍔犺浇鏁版嵁
       }
     },
     handleTypeChange(type) {
       if (this.currentType !== type){// 閬垮厤閲嶅鐐瑰嚮
         this.currentType = type // 鏇存柊褰撳墠绫诲瀷
-        let from = {...this.orderParams}
-        from.currentLimit = this.currentLimit;
-        from.currentType = this.currentType;
-        this.updateViewAndCompletionRateData(from) // 閲嶆柊鍔犺浇鏁版嵁
+        let form = {...this.orderParams}
+        form.currentLimit = this.currentLimit;
+        form.currentType = this.currentType;
+        this.updateViewAndCompletionRateData(form) // 閲嶆柊鍔犺浇鏁版嵁
       }
 
     },
@@ -986,9 +1068,9 @@
           formatter:tooltipFormatter
         },
         grid: {
-          left: '5%', // 瑙嗛绫诲瀷宸︾Щ锛岀粰瀹屾挱鐜囨爣绛剧暀绌洪棿
-          right: '10%',
-          bottom: '0',
+          left: '4%', // 瑙嗛绫诲瀷宸︾Щ锛岀粰瀹屾挱鐜囨爣绛剧暀绌洪棿
+          right: '12%',
+          bottom: '2%',
           top: '5%',
           containLabel: true
         },
@@ -1003,6 +1085,7 @@
           min: 0
         },
         yAxis: {
+          inverse: true,
           type: 'category',
           data: yData,
           axisLine: { lineStyle: { color: '#ddd' } },
@@ -1050,10 +1133,294 @@
         ]
       };
     },
+    //-------------end
+    //-------------娴忚鏁版嵁锛屼笅璁㈠崟鏃ユ湡鏃堕棿娈靛垎鏋恠tart
+    async updateOrderTimePeriodData(param){
+     const { viewData,countData,dateData} = await this.generateOrderTimePeriodChartData(param);
+      this.orderTimePeriodChart.setOption(this.getOrderTimePeriodChartOption(viewData,countData,dateData));
+    },
+    async generateOrderTimePeriodChartData(param){
+      let viewData= [];
+      let countData =[];
+      let dateData = [];
+      try {
+        const res = await getOrderTimePeriod(param); // 绛夊緟鎺ュ彛鍝嶅簲
+        if (res.code === 200) {
+          viewData = res.data.viewData;
+          countData = res.data.countData
+          dateData = res.data.dateData;
+        }
+      } catch (error) {
+        console.error("鎺ュ彛璋冪敤澶辫触", error);
 
+      }
+      return { viewData,countData,dateData}
 
-    //-------------
+    },
+    getOrderTimePeriodChartOption(viewData,countData,dateData){
+      return {
+        tooltip: {
+          trigger: 'axis',
+          backgroundColor: 'rgba(255, 255, 255, 0.9)',
+          borderColor: '#eee',
+          borderWidth: 1,
+          textStyle: { color: '#333' },
+          formatter: (params) => {
+            const date = params[0].name;
+            const view = params.find(item => item.seriesName === '娴忚鏁版嵁')?.value || 0;
+            const count= params.find(item => item.seriesName === '璁㈠崟鏃堕棿娈�')?.value || 0;
+            // 浼樺寲锛氭坊鍔犳崲琛岀杞箟锛岄伩鍏嶆綔鍦ㄦ牸寮忛棶棰橈紙鍙�夛紝涓嶅奖鍝嶅姛鑳斤級
+            return `<div class="font-medium">${date}</div>
+                <div>娴忚鏁版嵁: <span style="color: #165DFF; font-weight: bold">${view.toLocaleString()}</span></div>
+                <div>璁㈠崟鏃堕棿娈�: <span style="color: #00b42a; font-weight: bold">${count.toLocaleString()}</span></div>`;
+          },
+        },
+        legend: {
+          data: ['娴忚鏁版嵁', '璁㈠崟鏃堕棿娈�'],
+          top: 0,
+          textStyle: { color: '#666' }
+        },
+        grid: {
+          left: '3%',
+          right: '4%',
+          bottom: '3%',
+          containLabel: true,
+          top: '15%'
+        },
+        xAxis: {
+          type: 'category',
+          data: dateData,
+          axisLine: { lineStyle: { color: '#eee' } },
+          axisTick: { show: false },
+          axisLabel: { interval: 'auto', rotate: 0, color: '#86909C' },
+          splitLine: { show: false }
+        },
+        yAxis: {
+          type: 'value',
+          axisLine: { show: false },
+          axisTick: { show: false },
+          axisLabel: { color: '#86909C', formatter: '{value}' },
+          splitLine: { lineStyle: { color: '#f2f3f5' } },
+          min: 0
+        },
+        series: [
+          // PV鎶樼嚎锛堜繚鐣欏師濮嬭摑鑹茬郴锛屼紭鍖栫偣绾胯鎺ワ級
+          {
+            name: '娴忚鏁版嵁',
+            type: 'line',
+            data: viewData,
+            symbol: 'circle',
+            symbolSize: 6, // 淇濈暀鍘熸湁鐐瑰ぇ灏�
+            emphasis: {
+              symbolSize: 8,
+              showSymbol: true
+            },
+            lineStyle: {
+              width: 3, // 淇濈暀鍘熸湁绾垮
+              color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
+                { offset: 0, color: '#165DFF' }, // 鍘熷PV涓昏壊
+                { offset: 1, color: '#36CFC9' }  // 鍘熷娓愬彉杈呭姪鑹�
+              ]),
+              // 鍏抽敭浼樺寲1锛氱嚎鏉$鐐硅涓哄渾瑙掞紝閬垮厤鈥滃垏鍙b�濈┖鐧�
+              cap: 'round',
+              // 鍏抽敭浼樺寲2锛氱嚎鏉℃嫄瑙掕涓哄渾瑙掞紝閬垮厤琛旀帴闂撮殭
+              join: 'round',
+              // 杈呭姪锛氭帶鍒舵嫄瑙掑渾瑙掑ぇ灏忥紙涓庣嚎瀹藉尮閰嶏紝閬垮厤婧㈠嚭锛�
+              miterLimit: 3
+            },
+            itemStyle: {
+              color: '#165DFF', // 鍘熷鐐归鑹�
+              borderColor: '#fff', // 淇濈暀鐧借壊杈规锛堝寮哄眰娆℃劅锛�
+              // 鍏抽敭浼樺寲3锛氬噺灏忚竟妗嗗搴︼紝閬垮厤閬尅绾挎潯瀵艰嚧鏂眰
+              borderWidth: 0 // 浠�2璋冩暣涓�1.5
+            },
+            areaStyle: {
+              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+                { offset: 0, color: 'rgba(22, 93, 255, 0.2)' }, // 鍘熷濉厖鑹�
+                { offset: 1, color: 'rgba(22, 93, 255, 0)' }
+              ])
+            },
+            smooth: true,
+            showSymbol: true, // 淇濈暀浣犺缃殑鈥滈粯璁ゆ樉绀烘墍鏈夌偣鈥�
+          },
+          // UV鎶樼嚎锛堜繚鐣欏師濮嬬豢鑹茬郴锛屽悓PV浼樺寲閫昏緫锛�
+          {
+            name: '璁㈠崟鏃堕棿娈�',
+            type: 'line',
+            data: countData,
+            symbol: 'circle',
+            symbolSize: 6, // 淇濈暀鍘熸湁鐐瑰ぇ灏�
+            emphasis: {
+              symbolSize: 8,
+              showSymbol: true
+            },
+            lineStyle: {
+              width: 3, // 淇濈暀鍘熸湁绾垮
+              color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
+                { offset: 0, color: '#00b42a' }, // 鍘熷UV涓昏壊
+                { offset: 1, color: '#72c140' }  // 鍘熷娓愬彉杈呭姪鑹�
+              ]),
+              // 鍚孭V浼樺寲锛氱鐐瑰渾瑙�+鎷愯鍦嗚
+              cap: 'round',
+              join: 'round',
+              miterLimit: 3
+            },
+            itemStyle: {
+              color: '#00b42a', // 鍘熷鐐归鑹�
+              borderColor: '#fff', // 淇濈暀鐧借壊杈规
+              // 鍚孭V浼樺寲锛氬噺灏忚竟妗嗗搴�
+              borderWidth: 0 // 浠�2璋冩暣涓�1.5
+            },
+            areaStyle: {
+              color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
+                { offset: 0, color: 'rgba(0, 180, 42, 0.2)' }, // 鍘熷濉厖鑹�
+                { offset: 1, color: 'rgba(0, 180, 42, 0)' }
+              ])
+            },
+            smooth: true,
+            showSymbol: true, // 淇濈暀鈥滈粯璁ゆ樉绀烘墍鏈夌偣鈥�
+          }
+        ],
+        animation: true,
+        animationDuration: 1500,
+        animationEasing: 'cubicOut'
+      };
+    },
+    //--------------ebd
 
+    //-------------澶嶈喘鐜� start
+    handleRepurchaseLimitChange(limit) {
+      if (this.repurchaseCurrentLimit !== limit) {
+        this.repurchaseCurrentLimit = limit
+        let form = {...this.orderParams}
+        form.currentLimit = this.repurchaseCurrentLimit;
+        this.updateProductRepurchaseData(form) // 閲嶆柊鍔犺浇鏁版嵁
+      }
+    },
+    async updateProductRepurchaseData(param){
+      const { rateData,goodsData} = await this.generateProductRepurchaseChartData(param);
+      this.productRepurchaseRateChart.setOption(this.getProductRepurchaseChartOption(this.getDates(param),rateData,goodsData));
+    },
+    async generateProductRepurchaseChartData(param){
+      let rateData = [];
+      let goodsData = [];
+      try{
+        const res =  await gerProductRepurchase(param);
+        if (res.code === 200){
+          rateData = res.data.rateData;
+          goodsData = res.data.goodsData;
+        }
+      }catch (error){
+        console.error("鎺ュ彛璋冪敤澶辫触", error);
+      }
+      return {rateData,goodsData}
+    },
+    getProductRepurchaseChartOption(dates, rateData, goodsData) {
+      // 宸ュ叿鍑芥暟锛氬垽鏂暟鍊兼槸鍚︿负鏁存暟锛堥伩鍏�100.00鏄剧ず涓�100.00%锛�
+      const isInteger = (num) => {
+        return Math.abs(num - Math.round(num)) < Number.EPSILON;
+      };
+
+      return {
+        tooltip: {
+          trigger: 'axis',
+          backgroundColor: 'rgba(255, 255, 255, 0.9)',
+          borderColor: '#eee',
+          borderWidth: 1,
+          textStyle: { color: '#333' },
+          axisPointer: {
+            type: 'shadow'
+          },
+          formatter: (params) => {
+            const goodsName = params[0].name;
+            const rate = params[0].value;
+            // 鏁存暟鏄剧ず鏃犲皬鏁帮紝闈炴暣鏁颁繚鐣欎袱浣嶅皬鏁�
+            const displayRate = isInteger(rate) ? rate : rate.toFixed(2);
+            return `<div class="font-medium">${goodsName}</div>
+            <div>澶嶈喘鐜�: <span style="color: #722ED1; font-weight: bold">${displayRate}%</span></div>`;
+          },
+        },
+        grid: {
+          left: '3%',
+          right: '4%',
+          bottom: '3%',
+          top: '3%',
+          containLabel: true
+        },
+        xAxis: {
+          type: 'value',
+          axisLine: { show: false },
+          axisTick: { show: false },
+          axisLabel: {
+            color: '#86909C',
+            // 鍧愭爣杞存爣绛撅細鏁存暟鏄剧ず鏃犲皬鏁帮紝闈炴暣鏁颁繚鐣�0浣嶏紙鍙栨暣锛�
+            formatter: (value) => {
+              return isInteger(value) ? `${value}%` : `${Math.round(value)}%`;
+            }
+          },
+          splitLine: {
+            lineStyle: {
+              color: '#f2f3f5',
+              type: 'dashed'
+            }
+          },
+          min: 0,
+          max: (value) => {
+            // 闄愬埗鏈�澶у�间笉瓒呰繃100锛堝璐巼鏈�楂�100%锛夛紝鍚屾椂淇濈暀1.2鍊嶇殑闂磋窛
+            const calculatedMax = value.max * 1.2;
+            return Math.min(calculatedMax, 100);
+          }
+        },
+        yAxis: {
+          type: 'category',
+          data: goodsData,
+          axisLine: { lineStyle: { color: '#eee' } },
+          axisTick: { show: false },
+          axisLabel: {
+            color: '#86909C',
+            interval: 0,
+            formatter: (value) => {
+              return value.length > 10 ? value.substring(0, 10) + '...' : value;
+            }
+          },
+          splitLine: { show: false },
+          inverse: true
+        },
+        series: [
+          {
+            name: '鍟嗗搧澶嶈喘鐜�',
+            type: 'bar',
+            data: rateData,
+            barWidth: '60%',
+            itemStyle: {
+              color: new echarts.graphic.LinearGradient(0, 0, 1, 0, [
+                { offset: 0, color: '#722ED1' },
+                { offset: 1, color: '#EB2F96' }
+              ]),
+              borderRadius: [0, 4, 4, 0]
+            },
+            emphasis: {
+              itemStyle: {
+                shadowBlur: 10,
+                shadowColor: 'rgba(114, 46, 209, 0.5)'
+              }
+            },
+            label: {
+              show: true,
+              position: 'right',
+              // 鏌辩姸鍥炬爣绛撅細鏁存暟鏄剧ず鏃犲皬鏁帮紝闈炴暣鏁颁繚鐣�1浣�
+              formatter: (params) => {
+                const value = params.value;
+                return isInteger(value) ? `${value}%` : value.toFixed(1) + '%';
+              },
+              color: '#722ED1',
+              fontWeight: 'bold'
+            }
+          }
+        ],
+      };
+    },
+    //-------------end
     formatDate(date) {
       const month = date.getMonth() + 1; // 鏈堜唤浠�0寮�濮嬶紝闇�+1
       const day = date.getDate();
@@ -1120,6 +1487,7 @@
       this.refundParams.pageSize = 10
 
       //鏇存柊琛ㄦ牸
+
       this.updateChartData(this.orderParams)
       this.updateOrderCountChartDate(this.orderParams)
 
@@ -1127,6 +1495,13 @@
       form.currentType = this.currentType;
       form.currentLimit = this.currentLimit;
       this.updateViewAndCompletionRateData(form)
+
+      this.updateOrderTimePeriodData(this.orderParams)
+
+      let productRepurchaseDataForm ={...this.orderParams};
+      productRepurchaseDataForm.currentLimit = this.repurchaseCurrentLimit
+
+      this.updateProductRepurchaseData(productRepurchaseDataForm)//
     },
 
     // 瀹炰緥鍖栬鍗曟瑙�
@@ -1531,6 +1906,10 @@
   width: 100%;
   height: 662px;
 }
+.repurchase-chart-container{
+  width: 100%;
+  height: 662px;
+}
 .chart-container {
   width: 100%;
   height: 400px;

--
Gitblit v1.8.0