|
@@ -61,7 +61,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
-
|
|
|
+
|
|
|
<pagination
|
|
|
v-if="total > 0"
|
|
|
:total="total"
|
|
@@ -73,8 +73,8 @@
|
|
|
<!-- 添加或修改积分对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
- <el-form-item label="消费积分" prop="spendPoints">
|
|
|
- <el-input v-model="form.spendPoints" placeholder="请输入消费积分" />
|
|
|
+ <el-form-item label="变更数值" prop="spendPoints">
|
|
|
+ <el-input v-model="form.changePoints" placeholder="请输入积分变更数值" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="变更原因" prop="spendPoints">
|
|
|
<el-input type="textarea" v-model="form.changeReason"></el-input>
|
|
@@ -188,7 +188,7 @@ export default {
|
|
|
this.form = {
|
|
|
userId: null,
|
|
|
honorPoints: null,
|
|
|
- spendPoints: null
|
|
|
+ changePoints: null
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -226,7 +226,7 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
- updatePoints({ ...this.form, changePoints: this.form.spendPoints }).then(response => {
|
|
|
+ updatePoints({ ...this.form, changePoints: this.form.changePoints }).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.getList();
|