|
|
@@ -126,7 +126,12 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
_postRequest() { |
|
|
|
updateBooks(Number(this.formData.id)).then(resp => { |
|
|
|
const params = { |
|
|
|
name: this.formData.book_name, |
|
|
|
category_id: this.formData.book_type, |
|
|
|
desc: this.formData.book_intro |
|
|
|
} |
|
|
|
updateBooks(Number(this.formData.id), params).then(resp => { |
|
|
|
if (parseInt(resp.error_code) === 0) { |
|
|
|
this.$message.success('操作成功!') |
|
|
|
this.$emit('handle-success') |
|
|
|