diff --git a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreDetail.vue b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreDetail.vue
index 98533195..7e7e496e 100644
--- a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreDetail.vue
+++ b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreDetail.vue
@@ -9,11 +9,11 @@
@@ -79,8 +79,10 @@ export default {
},
page: {current: 1, size: 10, total: 0},
girdList: [],
- time: '',
+ timeList: [],
data: {},
+ startTime: '',
+ endTime: '',
}
},
props: {
@@ -88,28 +90,57 @@ export default {
dict: Object,
permissions: Function,
},
+ watch: {
+ timeList(newVal, oldVal) {
+ if(!newVal) {
+ // this.getList()
+ }
+ }
+ },
computed: {
colConfigs() {
return [
- { prop: "", label: '时间', align: "left", width: "200px" },
- { prop: "", label: '类型', align: "center", width: "180px" },
- { prop: "", label: '变动积分', align: "center",width: "200px" },
- { prop: "", label: '剩余积分', align: "center",width: "200px" },
- { prop: "", label: '事件', align: "center", },
+ { prop: "doTime", label: '时间', align: "left", width: "200px" },
+ { prop: "integralType", label: '类型', align: "center", width: "180px" },
+ { prop: "changeIntegral", label: '变动积分', align: "center",width: "200px" },
+ { prop: "nowIntegral", label: '剩余积分', align: "center",width: "200px" },
+ { prop: "eventDesc", label: '事件', align: "center", },
]
}
},
created() {
this.getDetail()
+ this.getIntegralChange()
},
methods: {
+ // 详情
getDetail() {
- this.instance.post(`/app/appintegraluser/girdDetail?id=${id}`).then(res=>{
+ this.instance.post(`/app/appintegraluser/girdDetail?id`).then(res=>{
if(res?.data) {
this.data = res.data
}
})
},
+ // 余额变动明细
+ getIntegralChange() {
+ this.instance.post(`/app/appintegraluser/getChangeDetail`, null, {
+ param: {
+ ...this.page,
+ type: this.type //积分类型
+ }
+ }).then(res => {
+ if(res?.data) {
+ this.tableData = res.data.detailList
+ }
+ })
+ },
+
+ timeChange() {
+ if(this.timeList.length) {
+ this.startTime = this.timeList[0]
+ this.endTime = this.timeList[1]
+ }
+ },
getColEcherts() {
let chartDom = document.getElementById('chartDom');
@@ -165,21 +196,28 @@ export default {
}, true);
window.addEventListener("resize", this.onResize)
},
+
onResize() {
this.myChart.resize()
},
+
getTableData() {},
+
getListInit() {},
+
cancel(isRefresh) {
this.$emit('change', {
type: 'gridScoreManage',
isRefresh: !!isRefresh
})
}
+
},
+
mounted() {
this.getColEcherts()
},
+
destroyed () {
window.removeEventListener('resize', this.onResize)
},
diff --git a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue
index 5278459a..77173969 100644
--- a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue
+++ b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue
@@ -4,31 +4,26 @@
总体统计
-
{{item}}
-
-
-
-
+
+ {{ item }}
+
+
剩余积分汇总
-
20
+
{{ data.nowIntegral || 0 }}
发放积分
-
5
+
{{ data.addIntegral || 0 }}
消耗积分
-
0
+
{{ data.reduceIntegral || 0 }}
@@ -50,13 +45,7 @@
-
-
+
{
+ console.log(res);
+ })
+ },
getColEcherts1() {
let chartDom1 = document.getElementById('chart1');
chartDom1.style.width = (window.innerWidth - 435) / 2 + "px";
@@ -315,20 +329,46 @@ export default {
onResize2() {
this.myChart2.resize()
},
- getListInit() {},
+ gridChange(val) {
+ this.girdId = val?.[val.length - 1]
+ this.$refs.cascader1.dropDownVisible = false;
+ },
+
+ getGridList() {
+ this.instance.post(`/app/appgirdinfo/listAll`).then((res) => {
+ if (res.code == 0) {
+ this.girdOptions = this.formatTree(res.data)
+ }
+ })
+ },
+
+ formatTree(data) {
+ for (var i = 0; i < data.length; i++){
+ if(data[i].girdList.length < 1) {
+ data[i].girdList = undefined
+ } else {
+ this.formatTree(data[i].girdList)
+ }
+ }
+ return data
+ },
+
getTableData() {},
timeChange(index) {
if(index == 3) {
this.dialogDate = true
+ this.type = index
} else {
- this.currrntTime = index
+ this.type = index
}
},
+
open(id) {
this.dialog = true
this.getDetail(id)
},
+
getDetail(id) {
},
@@ -337,30 +377,24 @@ export default {
if(!this.timeList || !this.timeList.length) {
return this.$message.error('请选择自定义时间');
}
-
- if(this.isEffectTimeSelect) { //宣发效果
- this.timeListEffect = this.timeList
- this.effectType = 3
- // this.getEffect()
- } else { //宣发明细
- this.timeListDepart = this.timeList
- this.departType = 3
- // this.getDepart()
- }
+ this.startTime = this.timeList?.[0]
+ this.endTime = this.timeList?.[1]
this.dialogDate = false
+ this.getStatistics()
},
-
},
+
mounted() {
this.getColEcherts1()
this.getColEcherts2()
},
+
destroyed () {
window.removeEventListener('resize', this.onResize1)
window.removeEventListener('resize', this.onResize2)
},
-
+
}
diff --git a/project/sass/apps/Announce/AppAnnounce/components/Add.vue b/project/sass/apps/Announce/AppAnnounce/components/Add.vue
index 92a3e706..626e9998 100644
--- a/project/sass/apps/Announce/AppAnnounce/components/Add.vue
+++ b/project/sass/apps/Announce/AppAnnounce/components/Add.vue
@@ -52,7 +52,7 @@
-
+
@@ -177,7 +177,7 @@
@@ -186,7 +186,7 @@
@@ -195,7 +195,7 @@
@@ -232,7 +232,7 @@
diff --git a/project/sass/apps/Announce/AppAnnounce/components/Phone.vue b/project/sass/apps/Announce/AppAnnounce/components/Phone.vue
index e8560151..9636e13e 100644
--- a/project/sass/apps/Announce/AppAnnounce/components/Phone.vue
+++ b/project/sass/apps/Announce/AppAnnounce/components/Phone.vue
@@ -299,13 +299,15 @@
.msg-link {
width: 206px;
- height: 102px;
padding: 12px;
background: #FFFFFF;
border-radius: 5px;
h2 {
margin-bottom: 4px;
+ overflow: hidden;
+white-space: nowrap;
+text-overflow: ellipsis;
color: #222222;
font-size: 14px;
font-weight: normal;