From 063ecf4d1b4b5074eea1d96cc54fa46fd5f0914b Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Wed, 18 Dec 2024 17:29:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9F=9F/=E4=B9=A6=E6=9E=B6api?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/area/index.js | 10 +- src/api/floor/index.js | 11 +- src/api/shelf/index.js | 45 ++ src/views/components/mark.vue | 180 +++++-- .../visualCheck/venueDevice/area/index.vue | 40 +- .../venueDevice/bookshelf/index.vue | 505 +++++++++++++----- .../venueDevice/bookshelfPosition/index.vue | 37 +- vue.config.js | 2 +- 8 files changed, 624 insertions(+), 206 deletions(-) create mode 100644 src/api/shelf/index.js 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 @@