From f941a7ec3014d3c60fab2de23149f8f1676245af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=B0=B8=E8=B6=85?= <2090205686@qq.com> Date: Tue, 17 Jun 2025 17:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B5=E5=95=86=E4=BA=A4=E6=98=93-=E4=BA=A4?= =?UTF-8?q?=E6=98=93=E5=88=86=E6=9E=90=E7=9C=8B=E6=9D=BF=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/trade/dataBoard.js | 43 +++ src/assets/styles/custom.scss | 8 + src/views/trade/dataBoard.vue | 584 ++++++++++++++++++---------------- 3 files changed, 368 insertions(+), 267 deletions(-) create mode 100644 src/api/trade/dataBoard.js diff --git a/src/api/trade/dataBoard.js b/src/api/trade/dataBoard.js new file mode 100644 index 0000000..569fbad --- /dev/null +++ b/src/api/trade/dataBoard.js @@ -0,0 +1,43 @@ +import request from "@/utils/request"; + +// 获取顶部左侧数据(运营看板) +export function getAstsTransTotals(data) { + return request({ + url: "/tairui-transettle/astsInfo/getAstsTransTotals", + method: "post", + data: data, + }); +} +//获取顶部右侧数据(线形图) +export function getEchartsData(data) { + return request({ + url: "/brand/brandbase/save", + method: "post", + data: data, + }); +} +//获取中间数据(统计数据) +export function getMidleInfo(data) { + return request({ + url: "/tairui-transettle/astsInfo/getLeftMidQueryInfo", + method: "post", + data: data, + }); +} +// 获取厎部左侧数据(产品销量) +export function getGoodsSalesInfo(data) { + return request({ + url: "/tairui-transettle/astsInfo/getGoodsSalesInfo", + method: "post", + data: data, + }); +} + +// 获取厎部右侧数据(售后概况) +export function getAfterSalesData(data) { + return request({ + url: "/tairui-transettle/astsInfo/getAfterSalesData", + method: "post", + data: data, + }); +} \ No newline at end of file diff --git a/src/assets/styles/custom.scss b/src/assets/styles/custom.scss index 0d65714..af49d21 100644 --- a/src/assets/styles/custom.scss +++ b/src/assets/styles/custom.scss @@ -305,3 +305,11 @@ justify-content: flex-start; align-items: flex-start; } + +// 溢出隐藏 +.text-ellipsis { + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} \ No newline at end of file diff --git a/src/views/trade/dataBoard.vue b/src/views/trade/dataBoard.vue index aa54f63..965053d 100644 --- a/src/views/trade/dataBoard.vue +++ b/src/views/trade/dataBoard.vue @@ -1,186 +1,188 @@