代码更新
This commit is contained in:
@@ -143,10 +143,10 @@ export default {
|
||||
})
|
||||
},
|
||||
edit(row, index) {
|
||||
this.crud.data[index].is_edit = '1'
|
||||
row.is_edit = '1'
|
||||
},
|
||||
save(row, index) {
|
||||
this.crud.data[index].is_edit = '0'
|
||||
row.is_edit = '0'
|
||||
crudStructrelavehicletype.edit(row).then(res => {
|
||||
this.crud.notify('修改成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
@@ -154,7 +154,7 @@ export default {
|
||||
})
|
||||
},
|
||||
cancel(row, index) {
|
||||
this.crud.data[index].is_edit = '0'
|
||||
row.is_edit = '0'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user