diff --git a/src/api/system/bookInfo.js b/src/api/system/bookInfo.js new file mode 100644 index 0000000..6f9d9c7 --- /dev/null +++ b/src/api/system/bookInfo.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' + +// 查询参数列表 +export function listBookInfo(query) { + return request({ + url: '/system/book_info/list', + method: 'get', + params: query + }) +} +// 查询参数详细 +export function getBookInfo(id) { + return request({ + url: '/system/book_info/' + id, + method: 'get' + }) +} +// 新增书籍信息 +export function addBookInfo(data) { + return request({ + url: '/system/book_info', + method: 'post', + data: data + }) +} +// 修改书籍信息 +export function updateBookInfo(data) { + return request({ + url: '/system/book_info', + method: 'put', + data: data + }) +} + +// 删除书籍信息 +export function delBookInfo(configId) { + return request({ + url: '/system/book_info/' + configId, + method: 'delete' + }) +} diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index bc8a76f..3e32010 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -149,7 +149,7 @@ export default { }, // 上传成功回调 handleUploadSuccess(res, file) { - if (res.data.code === 200) { + if (res.code === 200) { this.uploadList.push({name: res.data.url, url: res.data.url}); this.uploadedSuccessfully(); } else { diff --git a/src/views/system/book/index.vue b/src/views/system/book/index.vue new file mode 100644 index 0000000..2146e87 --- /dev/null +++ b/src/views/system/book/index.vue @@ -0,0 +1,353 @@ + + +