From c4bee85e6fd9c098364effd073f0c30972761edb Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Thu, 11 Aug 2022 11:41:58 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/gridScoreManage.vue | 1 -
.../components/gridScoreStatistics.vue | 58 +++++++++++++------
2 files changed, 41 insertions(+), 18 deletions(-)
diff --git a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreManage.vue b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreManage.vue
index ec6acafb..ec126b84 100644
--- a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreManage.vue
+++ b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreManage.vue
@@ -155,7 +155,6 @@ export default {
}
}).then(res => {
if(res?.data) {
- console.log(res.data.records);
this.tableData = res.data.records
this.page.total = res.data.total
}
diff --git a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue
index f0d4c67d..235294ef 100644
--- a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue
+++ b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue
@@ -14,7 +14,14 @@
-
剩余积分汇总
+
剩余积分汇总
+
+
+
+
{{ data.nowIntegral || 0 }}
@@ -43,8 +50,8 @@
-
+
@@ -75,13 +82,15 @@
-
-
-
-
-
-
-
+
+
+
+
+ {{ details.integralCalcType==0? '-' : '+' }}{{ details.changeIntegral }}
+
+
+
+
@@ -119,9 +128,9 @@ export default {
search: {
current: 1,
name: '',
- girdId: '',
+ girdId: ''
},
- page: {current: 1, size: 10, total: 0},
+ page: {current: 1, size: 10,total: 0,},
girdList: [],
time: '',
timeCheck: ['昨日','近7天','近30天','自定义'],
@@ -139,7 +148,12 @@ export default {
value: 'id',
checkStrictly: true,
expandTrigger: 'hover',
- }
+ },
+ details: {},
+ fileDownLoad: [],
+ girdSortList: [],
+ userSortList: [],
+
}
},
computed: {
@@ -198,7 +212,9 @@ export default {
endTime: this.endTime
}
}).then((res) => {
- console.log(res);
+ console.log(res, '积分排行');
+ this.userSortList = res.data.userSortList
+ this.girdSortList = res.data.girdSortList
})
},
// 积分明细
@@ -206,11 +222,10 @@ export default {
this.instance.post('/app/appintegraluser/girdIntegralDetail',null,{
params: {
...this.page,
- girdId: this.girdIdUser,
+ ...this.search,
integralType: this.integralType,
startTime: this.startTime,
endTime: this.endTime,
- name: this.search.name,
}
}).then(res => {
if(res?.data) {
@@ -220,6 +235,12 @@ export default {
})
},
+ gridChangeOpt() {
+ this.search.girdId = val?.[val.length - 1]
+ this.$refs.cascader2.dropDownVisible = false;
+ this.getTableData()
+ },
+
getColEcherts1() {
let chartDom1 = document.getElementById('chart1');
chartDom1.style.width = (window.innerWidth - 435) / 2 + "px";
@@ -399,7 +420,10 @@ export default {
getDetail(id) {
this.instance.post(`/app/appintegraldetail/queryDetailById?id=${id}`).then(res=> {
if(res?.data) {
- console.log(res.data);
+ this.details = res.data
+ if(res.data.enclosure) {
+ this.fileDownLoad = [{ url:res.data.enclosure }]
+ }
}
})
},