diff --git a/src/api/area/index.js b/src/api/area/index.js index bbf965c..2b3bfcc 100644 --- a/src/api/area/index.js +++ b/src/api/area/index.js @@ -1,4 +1,12 @@ import request from '@/utils/request' +import qs from 'qs' + +export function FetchInitLibraryRegionList(params) { + return request({ + url: 'api/libraryRegion/initLibraryRegionList' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} export function add(data) { return request({ @@ -40,4 +48,4 @@ export function saveLibraryRegionSignPoint(parameter) { }) } -export default { add, edit, del, sort, saveLibraryRegionSignPoint } +export default { add, edit, del, sort, saveLibraryRegionSignPoint, FetchInitLibraryRegionList } diff --git a/src/api/floor/index.js b/src/api/floor/index.js index f15be3b..9bf53f5 100644 --- a/src/api/floor/index.js +++ b/src/api/floor/index.js @@ -1,4 +1,5 @@ import request from '@/utils/request' +import qs from 'qs' export function FetchLibraryFloorListAll() { return request({ @@ -39,4 +40,12 @@ export function sort(parameter) { }) } -export default { add, edit, del, sort, FetchLibraryFloorListAll } +// 根据楼层id获取楼层详细信息 +export function FetchLibraryFloorDetails(params) { + return request({ + url: 'api/libraryFloor/getLibraryFloorDetails' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + +export default { add, edit, del, sort, FetchLibraryFloorListAll, FetchLibraryFloorDetails } diff --git a/src/api/shelf/index.js b/src/api/shelf/index.js new file mode 100644 index 0000000..a953c96 --- /dev/null +++ b/src/api/shelf/index.js @@ -0,0 +1,45 @@ +import request from '@/utils/request' +import qs from 'qs' + +export function add(data) { + return request({ + url: 'api/bookShelf/editBookShelf', + method: 'post', + data + }) +} + +export function edit(data) { + return request({ + url: 'api/bookShelf/editBookShelf', + method: 'post', + data + }) +} + +export function del(ids) { + return request({ + url: '', + method: 'post', + data: ids + }) +} + +// 根据书架id查看书架详情 shelfId +export function FetchBookShelfDetails(params) { + return request({ + url: 'api/bookShelf/getBookShelfDetails' + '?' + qs.stringify(params, { indices: false }), + method: 'get' + }) +} + +// 保存书架标注点位 +export function saveBookShelfSignPoint(parameter) { + return request({ + url: 'api/bookShelf/saveBookShelfSignPoint', + method: 'post', + data: parameter + }) +} + +export default { add, edit, del, FetchBookShelfDetails, saveBookShelfSignPoint } diff --git a/src/views/components/mark.vue b/src/views/components/mark.vue index 2f2d2ea..ed216d0 100644 --- a/src/views/components/mark.vue +++ b/src/views/components/mark.vue @@ -1,11 +1,13 @@