Skip to content

Commit 7f5e2ba

Browse files
committed
改下清账发送数据的格式
1 parent e5ac7c2 commit 7f5e2ba

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/components/modify.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
return {
4343
Form: {},
4444
index: '',
45-
changeData: [],
45+
changeDatas: {
46+
changeData: []
47+
},
4648
success: false,
4749
error: false,
4850
msg: '',
@@ -57,9 +59,9 @@
5759
const _this = this
5860
if (Form.check && Form.handle_way && Form.handle_name) {
5961
// 之前挖的坑,写的api有问题,导致只能再加一层
60-
this.changeData.push(Form)
62+
this.changeDatas.changeData.push(Form)
6163
this.check_submit = false
62-
this.$http.post('/bills/clearBill', this.changeData)
64+
this.$http.post('/bills/clearBill', this.changeDatas)
6365
.then(function (res) {
6466
if (res.data.type === 'success') {
6567
_this.success = true
@@ -89,7 +91,7 @@
8991
},
9092
editStorage: function () {
9193
// 修改清账完后的数据,与sessionStorage的数据同步
92-
localStorage.hmt_changeData = JSON.stringify(this.changeData)
94+
localStorage.hmt_changeData = JSON.stringify(this.changeDatas.changeData)
9395
let bills = JSON.parse(localStorage.hmt_formLists)
9496
bills[this.index - 1].check = this.Form.check
9597
bills[this.index - 1].handle_way = this.Form.handle_way

0 commit comments

Comments
 (0)