From 6f4383e88f584544c81c82525b749cfbed6665f4 Mon Sep 17 00:00:00 2001
From: lcc <805383944@qq.com>
Date: Fri, 20 Jun 2025 09:09:12 +0800
Subject: [PATCH] 2025-06-20
---
pingan/src/api/home/index.js | 11 ++
.../analysis/components/statistics-card.vue | 112 ++++------------
pingan/src/views/receiver/clues/detail.vue | 9 +-
pingan/src/views/receiver/customer/detail.vue | 19 ++-
pingan/src/views/user/cmmssn/index.vue | 2 +-
.../views/user/team/components/commssn.vue | 120 ++++++++++++++++++
.../user/team/components/role-select.vue | 54 --------
.../views/user/team/components/user-edit.vue | 3 +-
.../user/team/components/user-import.vue | 99 ---------------
pingan/src/views/user/team/index.vue | 37 +++---
10 files changed, 191 insertions(+), 275 deletions(-)
create mode 100644 pingan/src/api/home/index.js
create mode 100644 pingan/src/views/user/team/components/commssn.vue
delete mode 100644 pingan/src/views/user/team/components/role-select.vue
delete mode 100644 pingan/src/views/user/team/components/user-import.vue
diff --git a/pingan/src/api/home/index.js b/pingan/src/api/home/index.js
new file mode 100644
index 0000000..2c0a609
--- /dev/null
+++ b/pingan/src/api/home/index.js
@@ -0,0 +1,11 @@
+import request from '@/utils/request';
+
+export async function pageIndex(params) {
+ const res = await request.get('/home/data', {
+ params
+ });
+ if (res.data.code === 0) {
+ return res.data.data;
+ }
+ return Promise.reject(new Error(res.data.message));
+}
diff --git a/pingan/src/views/home/analysis/components/statistics-card.vue b/pingan/src/views/home/analysis/components/statistics-card.vue
index 7b216e0..5ac5e54 100644
--- a/pingan/src/views/home/analysis/components/statistics-card.vue
+++ b/pingan/src/views/home/analysis/components/statistics-card.vue
@@ -12,10 +12,12 @@
101条
{{ data.today_clues }}条
- 累计线索:100000条
+ 累计线索:{{ data.total_clues }}条
@@ -28,10 +30,12 @@
2323人
{{ data.member }}人
- 历史成交:100000单
+ 历史成交:{{ data.orders }}单
@@ -42,8 +46,8 @@
import { CanvasRenderer } from 'echarts/renderers';
import { LineChart, BarChart } from 'echarts/charts';
import { GridComponent, TooltipComponent } from 'echarts/components';
- import { getPayNumList } from '@/api/dashboard/analysis';
import { echartsMixin } from '@/utils/echarts-mixin';
+ import { pageIndex } from '@/api/home';
use([CanvasRenderer, LineChart, BarChart, GridComponent, TooltipComponent]);
@@ -55,7 +59,13 @@
// 访问量折线图配置
visitChartOption: {},
// 支付笔数柱状图配置
- payNumChartOption: {}
+ payNumChartOption: {},
+ data: {
+ total_clues: 0,
+ today_clues: 0,
+ member: 0,
+ orders: 0
+ }
};
},
computed: {
@@ -65,91 +75,15 @@
}
},
created() {
- this.getPayNumData();
+ this.fetchData();
},
methods: {
- /* 获取数据 */
- getPayNumData() {
- getPayNumList()
- .then((data) => {
- this.visitChartOption = {
- color: '#975fe5',
- tooltip: {
- trigger: 'axis',
- formatter:
- '{b0}: {c0}'
- },
- grid: {
- top: 10,
- bottom: 0,
- left: 0,
- right: 0
- },
- xAxis: [
- {
- show: false,
- type: 'category',
- boundaryGap: false,
- data: data.map((d) => d.date)
- }
- ],
- yAxis: [
- {
- show: false,
- type: 'value',
- splitLine: {
- show: false
- }
- }
- ],
- series: [
- {
- type: 'line',
- smooth: true,
- symbol: 'none',
- areaStyle: {
- opacity: 0.5
- },
- data: data.map((d) => d.value)
- }
- ]
- };
- //
- this.payNumChartOption = {
- tooltip: {
- trigger: 'axis',
- formatter:
- '{b0}: {c0}'
- },
- grid: {
- top: 10,
- bottom: 0,
- left: 0,
- right: 0
- },
- xAxis: [
- {
- show: false,
- type: 'category',
- data: data.map((d) => d.date)
- }
- ],
- yAxis: [
- {
- show: false,
- type: 'value',
- splitLine: {
- show: false
- }
- }
- ],
- series: [
- {
- type: 'bar',
- data: data.map((d) => d.value)
- }
- ]
- };
+ fetchData() {
+ pageIndex()
+ .then((res) => {
+ this.$util.assignObject(this.data, {
+ ...res
+ });
})
.catch((e) => {
this.$message.error(e.message);
diff --git a/pingan/src/views/receiver/clues/detail.vue b/pingan/src/views/receiver/clues/detail.vue
index 4bf287a..6f20a10 100644
--- a/pingan/src/views/receiver/clues/detail.vue
+++ b/pingan/src/views/receiver/clues/detail.vue
@@ -119,7 +119,7 @@
label: '操作人员',
align: 'center',
showOverflowTooltip: true,
- minWidth: 80
+ width: 120
},
{
prop: 'content',
@@ -127,20 +127,20 @@
label: '内容',
align: 'center',
showOverflowTooltip: true,
- minWidth: 80
+ minWidth: 200
},
{
prop: 'type_name',
label: '类型',
align: 'center',
showOverflowTooltip: true,
- minWidth: 80
+ width: 120
},
{
prop: 'c_time',
label: '时间',
align: 'center',
- minWidth: 80,
+ width: 200,
resizable: false,
showOverflowTooltip: true
}
@@ -191,6 +191,7 @@
this.form.id = this.$route.query.id;
setPageTabTitle(this.title);
this.query();
+ this.reload();
},
immediate: true
}
diff --git a/pingan/src/views/receiver/customer/detail.vue b/pingan/src/views/receiver/customer/detail.vue
index ee96434..1a863b5 100644
--- a/pingan/src/views/receiver/customer/detail.vue
+++ b/pingan/src/views/receiver/customer/detail.vue
@@ -89,6 +89,16 @@
{{ row.rec_text }}
{{ row.log }}
+
+
+
+
+
@@ -129,7 +139,7 @@
label: '操作人员',
align: 'center',
showOverflowTooltip: true,
- minWidth: 80
+ width: 120
},
{
prop: 'content',
@@ -137,20 +147,20 @@
label: '内容',
align: 'center',
showOverflowTooltip: true,
- minWidth: 80
+ minWidth: 200
},
{
prop: 'type_name',
label: '类型',
align: 'center',
showOverflowTooltip: true,
- minWidth: 80
+ width: 120
},
{
prop: 'c_time',
label: '时间',
align: 'center',
- minWidth: 80,
+ width: 200,
resizable: false,
showOverflowTooltip: true
}
@@ -201,6 +211,7 @@
this.form.id = this.$route.query.id;
setPageTabTitle(this.title);
this.query();
+ this.reload();
},
immediate: true
}
diff --git a/pingan/src/views/user/cmmssn/index.vue b/pingan/src/views/user/cmmssn/index.vue
index 2a69505..c1b76a9 100644
--- a/pingan/src/views/user/cmmssn/index.vue
+++ b/pingan/src/views/user/cmmssn/index.vue
@@ -65,7 +65,7 @@
align: 'center'
},
{
- prop: 'ctime',
+ prop: 'createTime',
label: '时间',
align: 'center',
minWidth: 100,
diff --git a/pingan/src/views/user/team/components/commssn.vue b/pingan/src/views/user/team/components/commssn.vue
new file mode 100644
index 0000000..4cee923
--- /dev/null
+++ b/pingan/src/views/user/team/components/commssn.vue
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/pingan/src/views/user/team/components/role-select.vue b/pingan/src/views/user/team/components/role-select.vue
deleted file mode 100644
index 868d3ba..0000000
--- a/pingan/src/views/user/team/components/role-select.vue
+++ /dev/null
@@ -1,54 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/pingan/src/views/user/team/components/user-edit.vue b/pingan/src/views/user/team/components/user-edit.vue
index 368ae40..053c313 100644
--- a/pingan/src/views/user/team/components/user-edit.vue
+++ b/pingan/src/views/user/team/components/user-edit.vue
@@ -102,11 +102,10 @@
-
-
diff --git a/pingan/src/views/user/team/index.vue b/pingan/src/views/user/team/index.vue
index 2e2a3a4..577c31b 100644
--- a/pingan/src/views/user/team/index.vue
+++ b/pingan/src/views/user/team/index.vue
@@ -41,33 +41,36 @@
+
+
+ 佣金明细
+
-
-
+
+