diff --git a/src/api/deviceVI/index.js b/src/api/deviceVI/index.js new file mode 100644 index 0000000..0aa56d4 --- /dev/null +++ b/src/api/deviceVI/index.js @@ -0,0 +1,72 @@ +import request from '@/utils/request' + +// 获取区域树 +export function FetchRegionTree(params) { + return request({ + url: 'api/device/getRegionTree', + method: 'get', + params + }) +} + +// 设备列表 +export function FetchinitDeviceInfoList(params) { + return request({ + url: 'api/device/initDeviceInfoList', + method: 'get', + params + }) +} + +export function add(data) { + return request({ + url: 'api/device/editDeviceInfo', + method: 'post', + data + }) +} + +export function edit(data) { + return request({ + url: 'api/device/editDeviceInfo', + method: 'post', + data + }) +} + +export function del(data) { + return request({ + url: 'api/device/delDeviceInfo', + method: 'post', + data + }) +} + +// 摄像头绑定书架 +export function FetchDeviceShelfGridBinding(data) { + return request({ + url: 'api/device/deviceShelfGridBinding', + method: 'post', + data + }) +} + +// 根据设备和条件获取已绑定书架 +export function FetchBoundGridByDevice(params) { + return request({ + url: 'api/device/getBoundGridByDevice', + method: 'get', + params + }) +} + +// 根据条件获取未绑定书架 +export function FetchUnboundGrid(params) { + return request({ + url: 'api/device/getUnboundGrid', + method: 'get', + params + }) +} + +export default { add, edit, del, FetchRegionTree, FetchinitDeviceInfoList, FetchDeviceShelfGridBinding, FetchBoundGridByDevice, FetchUnboundGrid } diff --git a/src/assets/iconfonts/light/iconfont.css b/src/assets/iconfonts/light/iconfont.css index a26cff9..4ab8626 100644 --- a/src/assets/iconfonts/light/iconfont.css +++ b/src/assets/iconfonts/light/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 3966148 */ - src: url('iconfont.woff2?t=1733797195168') format('woff2'), - url('iconfont.woff?t=1733797195168') format('woff'), - url('iconfont.ttf?t=1733797195168') format('truetype'); + src: url('iconfont.woff2?t=1734697211726') format('woff2'), + url('iconfont.woff?t=1734697211726') format('woff'), + url('iconfont.ttf?t=1734697211726') format('truetype'); } .iconfont { @@ -13,6 +13,10 @@ -moz-osx-font-smoothing: grayscale; } +.icon-shuju:before { + content: "\e68e"; +} + .icon-duolouceng:before { content: "\e87c"; } diff --git a/src/assets/iconfonts/light/iconfont.js b/src/assets/iconfonts/light/iconfont.js index e8715f6..1f68677 100644 --- a/src/assets/iconfonts/light/iconfont.js +++ b/src/assets/iconfonts/light/iconfont.js @@ -1 +1 @@ -window._iconfont_svg_string_3966148='',(c=>{var a=(l=(l=document.getElementsByTagName("script"))[l.length-1]).getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var h,i,o,t,s,z=function(a,l){l.parentNode.insertBefore(a,l)};if(a&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}h=function(){var a,l=document.createElement("div");l.innerHTML=c._iconfont_svg_string_3966148,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(a=document.body).firstChild?z(l,a.firstChild):a.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),h()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(o=h,t=c.document,s=!1,p(),t.onreadystatechange=function(){"complete"==t.readyState&&(t.onreadystatechange=null,v())})}function v(){s||(s=!0,o())}function p(){try{t.documentElement.doScroll("left")}catch(a){return void setTimeout(p,50)}v()}})(window); \ No newline at end of file +window._iconfont_svg_string_3966148='',(c=>{var a=(l=(l=document.getElementsByTagName("script"))[l.length-1]).getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var h,i,o,t,s,v=function(a,l){l.parentNode.insertBefore(a,l)};if(a&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(a){console&&console.log(a)}}h=function(){var a,l=document.createElement("div");l.innerHTML=c._iconfont_svg_string_3966148,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(a=document.body).firstChild?v(l,a.firstChild):a.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(h,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),h()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(o=h,t=c.document,s=!1,p(),t.onreadystatechange=function(){"complete"==t.readyState&&(t.onreadystatechange=null,z())})}function z(){s||(s=!0,o())}function p(){try{t.documentElement.doScroll("left")}catch(a){return void setTimeout(p,50)}z()}})(window); \ No newline at end of file diff --git a/src/assets/iconfonts/light/iconfont.json b/src/assets/iconfonts/light/iconfont.json index 9489b99..0834241 100644 --- a/src/assets/iconfonts/light/iconfont.json +++ b/src/assets/iconfonts/light/iconfont.json @@ -5,6 +5,13 @@ "css_prefix_text": "icon-", "description": "", "glyphs": [ + { + "icon_id": "15392667", + "name": "数据", + "font_class": "shuju", + "unicode": "e68e", + "unicode_decimal": 59022 + }, { "icon_id": "10767710", "name": "多楼层", diff --git a/src/assets/iconfonts/light/iconfont.ttf b/src/assets/iconfonts/light/iconfont.ttf index 65b6a6a..6becf60 100644 Binary files a/src/assets/iconfonts/light/iconfont.ttf and b/src/assets/iconfonts/light/iconfont.ttf differ diff --git a/src/assets/iconfonts/light/iconfont.woff b/src/assets/iconfonts/light/iconfont.woff index f042d19..38efc11 100644 Binary files a/src/assets/iconfonts/light/iconfont.woff and b/src/assets/iconfonts/light/iconfont.woff differ diff --git a/src/assets/iconfonts/light/iconfont.woff2 b/src/assets/iconfonts/light/iconfont.woff2 index 96ce9b5..8b2ef90 100644 Binary files a/src/assets/iconfonts/light/iconfont.woff2 and b/src/assets/iconfonts/light/iconfont.woff2 differ diff --git a/src/router/routers.js b/src/router/routers.js index 6316061..b526efb 100644 --- a/src/router/routers.js +++ b/src/router/routers.js @@ -79,10 +79,10 @@ export const constantRouterMap = [ ] } // { - // path: '/preview', - // component: (resolve) => require(['@/views/preview/index'], resolve), + // path: '/bookSearch', + // component: (resolve) => require(['@/views/visualCheck/checkManage/bookSearch/index'], resolve), // hidden: true - // }, + // } // { // path: '/fourTestReport', // component: (resolve) => require(['@/views/fourTestReport/index'], resolve), diff --git a/src/views/visualCheck/checkManage/checkLog/index.vue b/src/views/visualCheck/checkManage/checkLog/index.vue index 70fdfb2..a3edb8a 100644 --- a/src/views/visualCheck/checkManage/checkLog/index.vue +++ b/src/views/visualCheck/checkManage/checkLog/index.vue @@ -1,16 +1,274 @@ + - diff --git a/src/views/visualCheck/checkManage/checkPlan/index.vue b/src/views/visualCheck/checkManage/checkPlan/index.vue index ce834ab..fa73996 100644 --- a/src/views/visualCheck/checkManage/checkPlan/index.vue +++ b/src/views/visualCheck/checkManage/checkPlan/index.vue @@ -1,16 +1,575 @@ + - diff --git a/src/views/visualCheck/checkManage/dataScreening/index.vue b/src/views/visualCheck/checkManage/dataScreening/index.vue index 1de5bdd..71e205a 100644 --- a/src/views/visualCheck/checkManage/dataScreening/index.vue +++ b/src/views/visualCheck/checkManage/dataScreening/index.vue @@ -1,16 +1,506 @@ + - diff --git a/src/views/visualCheck/checkManage/statistic/index.vue b/src/views/visualCheck/checkManage/statistic/index.vue index 1e91173..4288991 100644 --- a/src/views/visualCheck/checkManage/statistic/index.vue +++ b/src/views/visualCheck/checkManage/statistic/index.vue @@ -1,16 +1,51 @@ + - diff --git a/src/views/visualCheck/checkManage/statistic/reverseShelf/index.vue b/src/views/visualCheck/checkManage/statistic/reverseShelf/index.vue new file mode 100644 index 0000000..24f926d --- /dev/null +++ b/src/views/visualCheck/checkManage/statistic/reverseShelf/index.vue @@ -0,0 +1,145 @@ + + + + + diff --git a/src/views/visualCheck/checkManage/statistic/search.vue b/src/views/visualCheck/checkManage/statistic/search.vue new file mode 100644 index 0000000..6d3d728 --- /dev/null +++ b/src/views/visualCheck/checkManage/statistic/search.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/src/views/visualCheck/checkManage/statistic/seqShelf/index.vue b/src/views/visualCheck/checkManage/statistic/seqShelf/index.vue new file mode 100644 index 0000000..1a1c1f7 --- /dev/null +++ b/src/views/visualCheck/checkManage/statistic/seqShelf/index.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/src/views/visualCheck/checkManage/upDownLog/index.vue b/src/views/visualCheck/checkManage/upDownLog/index.vue new file mode 100644 index 0000000..3ab5917 --- /dev/null +++ b/src/views/visualCheck/checkManage/upDownLog/index.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/views/visualCheck/venueDevice/area/index.vue b/src/views/visualCheck/venueDevice/area/index.vue index 519452d..5dcf80d 100644 --- a/src/views/visualCheck/venueDevice/area/index.vue +++ b/src/views/visualCheck/venueDevice/area/index.vue @@ -228,8 +228,24 @@ export default { this.canvasPreview.setHeight(this.height) } }, + beforeDestroy() { + window.removeEventListener('beforeunload', this.clearLocalStorage) + }, methods: { + clearLocalStorage() { + const key = 'formFloor' + if (localStorage.getItem(key)) { + localStorage.removeItem(key) + } + }, [CRUD.HOOK.beforeRefresh]() { + const formFloor = JSON.parse(localStorage.getItem('formFloor')) + if (formFloor) { + this.crud.query.floorId = formFloor.id + } else { + this.crud.query.floorId = null + } + this.getLibraryFloorListAll() }, [CRUD.HOOK.afterRefresh](crud) { diff --git a/src/views/visualCheck/venueDevice/device/index.vue b/src/views/visualCheck/venueDevice/device/index.vue index 903f985..a711ce6 100644 --- a/src/views/visualCheck/venueDevice/device/index.vue +++ b/src/views/visualCheck/venueDevice/device/index.vue @@ -2,23 +2,18 @@
- - - +
@@ -26,13 +21,32 @@