|
@@ -126,7 +126,12 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
_postRequest() { |
|
|
_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) { |
|
|
if (parseInt(resp.error_code) === 0) { |
|
|
this.$message.success('操作成功!') |
|
|
this.$message.success('操作成功!') |
|
|
this.$emit('handle-success') |
|
|
this.$emit('handle-success') |
|
|