diff --git a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreDetail.vue b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreDetail.vue index c08274d1..f6664669 100644 --- a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreDetail.vue +++ b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreDetail.vue @@ -17,7 +17,7 @@ - + @@ -75,7 +81,6 @@ export default { data: {}, startTime: '', endTime: '', - } }, props: { @@ -83,23 +88,17 @@ export default { dict: Object, permissions: Function, }, - watch: { - timeList(newVal, oldVal) { - if(!newVal) { - // this.getList() - } - } - }, + computed: { colConfigs() { return [ { prop: "doTime", label: '时间', align: "left", width: "200px" }, - { prop: "integralType", label: '类型', align: "center", width: "180px", dict:"integralDetailType"}, + { prop: "integralType", label: '类型', align: "center", width: "240px", dict:"integralDetailType"}, { prop: "changeIntegral", label: '变动积分', align: "center",width: "200px",render: (h, { row }) => { return h('span', {}, `${row.integralCalcType == 1 ? '+' : '-'}${row.changeIntegral}`) }}, { prop: "nowIntegral", label: '剩余积分', align: "center",width: "200px" }, - { prop: "eventDesc", label: '事件', align: "center", }, + { slot: "eventDesc", label: '事件', align: "center", }, ] } }, @@ -124,6 +123,7 @@ export default { // 事件汇总 暂定 + // 余额变动明细 getIntegralChange() { this.instance.post(`/app/appintegraluser/getChangeDetail`, null, { @@ -219,7 +219,7 @@ export default { }, mounted() { - // this.getColEcherts() + this.getColEcherts() }, destroyed () { @@ -234,6 +234,7 @@ export default { height: 100%; padding: 0 20px; box-sizing: border-box; + overflow-y: scroll; .card_list { display: flex; .card { diff --git a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreRules.vue b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreRules.vue index bdcda121..a3fd18e7 100644 --- a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreRules.vue +++ b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreRules.vue @@ -39,12 +39,12 @@ @@ -120,9 +120,8 @@ export default { {prop: "type", label: "类型", dict: "integralRuleEventType"}, {prop: "ruleType", label: "规则", dict: "integralRuleRuleType"}, {prop: "scoringCycle", label: "周期范围", dict: "integralRuleScoringCycle"}, - // {prop: "", label: "积分分值", dict: "integralRuleScoringCycle"}, {slot: "integral",label: "积分分值", align: "center"}, - {prop: "", label: "有效范围", dict: "integralRuleScoringCycle"}, + {prop: "validRangeType", label: "有效范围", dict: "integralRuleScoringCycle"}, {prop: "status", label: "状态", align: "center", width: 96, dict: "integralRuleStatus"}, {slot: "options", label: "操作", align: "center"}, ], @@ -145,7 +144,7 @@ export default { }, methods: { getList() { - this.instance.post(`/app/appvillagerintegralrule/list`, null, { + this.instance.post(`/app/appintegralrule/list`, null, { params: {...this.search, ...this.page}, }).then(res => { if (res?.data) { @@ -176,11 +175,9 @@ export default { this.$confirm("删除后不可恢复,是否要删除该事项?", { type: 'error' }).then(() => { - this.instance - .post(`/app/appvillagerintegralrule/delete?ids=${id}`) - .then((res) => { + this.instance.post(`/app/appintegralrule/delete?ids=${id}`).then((res) => { if (res.code == 0) { - this.$message.success("删除成功!"); + this.$message.success("删除成功!") this.getList(); } }); @@ -189,7 +186,7 @@ export default { changeStatus(id, status) { let text = status == 1 ? '启用' : '停用' this.$confirm(`确定${text}该条规则?`).then(() => { - this.instance.post(`/app/appvillagerintegralrule/enableOrDisable?id=${id}`).then((res) => { + this.instance.post(`/app/appintegralrule/enableStatus?id=${id}`).then((res) => { if (res.code == 0) { this.$message.success(`${text}成功!`) this.getList(); @@ -213,7 +210,7 @@ export default { let formData = this.$copy(this.form) formData.ladderRule = JSON.stringify(formData.ladderRule) formData.integral = formData.integral || 0 - this.instance.post(`/app/appvillagerintegralrule/addOrUpdate`, formData).then((res) => { + this.instance.post(`/app/appintegralrule/addOrUpdate`, formData).then((res) => { if (res.code == 0) { this.$message.success(`${this.isEdit ? '编辑成功' : '添加成功'}`) this.onReset() diff --git a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue index f6758d24..7db99476 100644 --- a/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue +++ b/packages/conv/creditScore/AppGridMemberScore/components/gridScoreStatistics.vue @@ -224,9 +224,9 @@ export default { } }).then((res) => { if(res?.data) { - this.userSortListX = res.data.userSortList.map(e=> e.userName).reverse(); + this.userSortListX = res.data.userSortList.map(e=> e.userName).reverse() this.userSortListY = res.data.userSortList.map(e=> e.changeIntegral).reverse() - this.girdSortListX = res.data.girdSortList.map(e=> e.girdName).reverse(); + this.girdSortListX = res.data.girdSortList.map(e=> e.girdName).reverse() this.girdSortListY = res.data.girdSortList.map(e=> e.changeIntegral).reverse() this.getColEcherts1(this.userSortListX,this.userSortListY) this.getColEcherts2(this.girdSortListX,this.girdSortListY)