|
|
|
@ -33,7 +33,7 @@ |
|
|
|
<div class="flex flex-wrap flex-end"> |
|
|
|
<div class="flex flex-center1 flex-center2 m-bottom10 " style=""> |
|
|
|
<div>积分类型</div> |
|
|
|
<el-select v-model="formData.classKey" placeholder="请选择"> |
|
|
|
<el-select v-model="formData.classKey" placeholder="请选择" clearable> |
|
|
|
<el-option v-for="item in formData.optionsStatus" :key="item.code" :label="item.name" |
|
|
|
:value="item.code"> |
|
|
|
</el-option> |
|
|
|
@ -104,7 +104,7 @@ |
|
|
|
</div> |
|
|
|
<div class="flex flex-center1 flex-center2"> |
|
|
|
<el-button type="info" @click="handleremove">取消</el-button> |
|
|
|
<el-button type="danger" @click="getTableData">确定</el-button> |
|
|
|
<!-- <el-button type="danger" @click="getTableData">确定</el-button> --> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
</div> |
|
|
|
@ -121,7 +121,20 @@ export default { |
|
|
|
createdTimeTo:"", |
|
|
|
createdTimeTo:"", |
|
|
|
classKey:"", |
|
|
|
optionsStatus: [], |
|
|
|
optionsStatus: [ |
|
|
|
{ |
|
|
|
code:1, |
|
|
|
name:"活动积分" |
|
|
|
}, |
|
|
|
{ |
|
|
|
code:2, |
|
|
|
name:"平台积分" |
|
|
|
}, |
|
|
|
{ |
|
|
|
code:3, |
|
|
|
name:"操作积分" |
|
|
|
}, |
|
|
|
], |
|
|
|
}, |
|
|
|
labelPosition: 'right', |
|
|
|
tableData: [], |
|
|
|
@ -194,31 +207,31 @@ await requestGet(url,params).then((res)=>{ |
|
|
|
}) |
|
|
|
}, |
|
|
|
//调整积分 |
|
|
|
async getTableData() { |
|
|
|
const url = "/voluntary/points/adjustVolunteerPoints/commit"; |
|
|
|
let params={ |
|
|
|
volunteerId:this.tableData.id, |
|
|
|
reason:this.behaviorName, |
|
|
|
description:this.description, |
|
|
|
pointsDelta:this.Positive+this.integralnum, |
|
|
|
primaryPoints:this.tableData.points |
|
|
|
// volunteerId:this.list.id, |
|
|
|
// mobile:this.formData.phone, |
|
|
|
// name:this.formData.name |
|
|
|
} |
|
|
|
console.log(params,"params"); |
|
|
|
// async getTableData() { |
|
|
|
// const url = "/voluntary/points/adjustVolunteerPoints/commit"; |
|
|
|
// let params={ |
|
|
|
// volunteerId:this.list.id, |
|
|
|
// reason:this.behaviorName, |
|
|
|
// description:this.description, |
|
|
|
// pointsDelta:this.Positive+this.integralnum, |
|
|
|
// primaryPoints:this.tableData.points |
|
|
|
// // volunteerId:this.list.id, |
|
|
|
// // mobile:this.formData.phone, |
|
|
|
// // name:this.formData.name |
|
|
|
// } |
|
|
|
// console.log(params,"params"); |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url,params); |
|
|
|
if (code === 0) { |
|
|
|
console.log("列表请求成功!!!!!!!!!!!!!!"); |
|
|
|
this.$message({ |
|
|
|
message: "调整成功", |
|
|
|
type: "success", |
|
|
|
}); |
|
|
|
this.$emit('summDetailClose') |
|
|
|
} else { |
|
|
|
} |
|
|
|
}, |
|
|
|
// const { data, code, msg } = await requestPost(url,params); |
|
|
|
// if (code === 0) { |
|
|
|
// console.log("列表请求成功!!!!!!!!!!!!!!"); |
|
|
|
// this.$message({ |
|
|
|
// message: "调整成功", |
|
|
|
// type: "success", |
|
|
|
// }); |
|
|
|
// this.$emit('summDetailClose') |
|
|
|
// } else { |
|
|
|
// } |
|
|
|
// }, |
|
|
|
|
|
|
|
async getlist() { |
|
|
|
const url = "/voluntary/points/listPointsChangeRecord"; |
|
|
|
@ -226,11 +239,12 @@ await requestGet(url,params).then((res)=>{ |
|
|
|
volunteerId:this.list.id, |
|
|
|
createdTimeFrom:this.formData.createdTimeFrom, |
|
|
|
createdTimeTo:this.formData.createdTimeTo, |
|
|
|
description:this.description, |
|
|
|
// description:this.description, |
|
|
|
pointsClass:this.formData.classKey, |
|
|
|
pageNo:this.pageNo, |
|
|
|
pageSize:this.pageSize, |
|
|
|
// pointsDelta:this.Positive+this.integralnum, |
|
|
|
primaryPoints:this.tableData.points |
|
|
|
// primaryPoints:this.tableData.points |
|
|
|
// volunteerId:this.list.id, |
|
|
|
// mobile:this.formData.phone, |
|
|
|
// name:this.formData.name |
|
|
|
|