代码更新

This commit is contained in:
2022-09-19 14:47:00 +08:00
parent 87fdb2f2be
commit c277f28b3c

View File

@@ -143,10 +143,10 @@ export default {
}) })
}, },
edit(row, index) { edit(row, index) {
this.crud.data[index].is_edit = '1' row.is_edit = '1'
}, },
save(row, index) { save(row, index) {
this.crud.data[index].is_edit = '0' row.is_edit = '0'
crudStructrelavehicletype.edit(row).then(res => { crudStructrelavehicletype.edit(row).then(res => {
this.crud.notify('修改成功', CRUD.NOTIFICATION_TYPE.SUCCESS) this.crud.notify('修改成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery() this.crud.toQuery()
@@ -154,7 +154,7 @@ export default {
}) })
}, },
cancel(row, index) { cancel(row, index) {
this.crud.data[index].is_edit = '0' row.is_edit = '0'
} }
} }
} }