From 6fff0c74a670d7eeb94bc00fcbe1267e82b0ae39 Mon Sep 17 00:00:00 2001 From: qiushui Date: Fri, 14 Jan 2022 09:27:00 +0800 Subject: [PATCH] init --- antd_color.less | 2 +- index.html | 2 +- js/{app.414b5f4d.js => app.a46d029f.js} | 2 +- js/chunk-056f57be.304f9691.js | 1 + js/chunk-2e508108.d858bfbf.js | 1 + js/chunk-47777934.4dc15f4a.js | 1 + js/chunk-47777934.c7f8e6fb.js | 1 - js/{chunk-f2934902.f8820570.js => chunk-4df94765.cccb17b3.js} | 2 +- js/chunk-7c32d367.65ff037f.js | 1 - js/chunk-7e66e84e.eb3eab5c.js | 1 - 10 files changed, 7 insertions(+), 7 deletions(-) rename js/{app.414b5f4d.js => app.a46d029f.js} (96%) create mode 100644 js/chunk-056f57be.304f9691.js create mode 100644 js/chunk-2e508108.d858bfbf.js create mode 100644 js/chunk-47777934.4dc15f4a.js delete mode 100644 js/chunk-47777934.c7f8e6fb.js rename js/{chunk-f2934902.f8820570.js => chunk-4df94765.cccb17b3.js} (72%) delete mode 100644 js/chunk-7c32d367.65ff037f.js delete mode 100644 js/chunk-7e66e84e.eb3eab5c.js diff --git a/antd_color.less b/antd_color.less index bdf6854..b746b9c 100644 --- a/antd_color.less +++ b/antd_color.less @@ -1389,7 +1389,7 @@ tr.ant-table-expanded-row:hover {background: #fbfbfb;} .ant-tag-gold-inverse {color: #fff;background: #faad14;border-color: #faad14;} .ant-tag-cyan {color: #13c2c2;background: #e6fffb;border-color: #87e8de;} .ant-tag-cyan-inverse {color: #fff;background: #13c2c2;border-color: #13c2c2;} -.ant-tag-lime {color: #a0d911;background: color(~`colorPalette("@{text-color}", 1)`);border-color: #eaff8f;} +.ant-tag-lime {color: #a0d911;background: #fcffe6;border-color: #eaff8f;} .ant-tag-lime-inverse {color: #fff;background: #a0d911;border-color: #a0d911;} .ant-tag-green {color: #52c41a;background: #f6ffed;border-color: #b7eb8f;} .ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;} diff --git a/index.html b/index.html index 2082078..2f86d5c 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -垛机视觉系统
\ No newline at end of file +垛机视觉系统
\ No newline at end of file diff --git a/js/app.414b5f4d.js b/js/app.a46d029f.js similarity index 96% rename from js/app.414b5f4d.js rename to js/app.a46d029f.js index d18c063..3fc7ab6 100644 --- a/js/app.414b5f4d.js +++ b/js/app.a46d029f.js @@ -1 +1 @@ -(function(e){function t(t){for(var a,i,s=t[0],c=t[1],l=t[2],d=0,p=[];d0&&t(n[a].children)},o=0;o3?this.selectedKeys=[this.$route.matched[2].name]:this.selectedKeys=[this.$route.matched[this.$route.matched.length-1].name]:this.selectedKeys=[this.$route.matched[1].name],console.log("selectedKeys",this.selectedKeys),this.$route.matched[1].meta.unfold?this.openKeys.push(this.$route.matched[1].name):this.openKeys=[""],this.$forceUpdate()},menuItemHover:function(e){this.mouseItemKey=e.key},menuItemOut:function(){this.mouseItemKey=""}},mounted:function(){var e=this;this.$nextTick((function(){e.setRoute()}))}},c=s,l=(n("017d"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},"34ab":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[n("keep-alive",{attrs:{include:["checkManage"]}},[n("router-view",{staticClass:"table"})],1),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)],1)},o=[],r=(n("b0c0"),{name:"PageContent",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("5187"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"40d1":function(e,t,n){"use strict";var a=n("1bf5"),o=n.n(a);o.a},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="4678"},5187:function(e,t,n){"use strict";var a=n("dfb3"),o=n.n(a);o.a},5491:function(e,t,n){var a={"./AsideMenu.vue":"2f7f","./Breadcrumb.vue":"5670","./PageContent.vue":"34ab","./PageHeader.vue":"d8dc"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="5491"},5670:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,(function(t,a){return n("a-breadcrumb-item",{key:t.name},[t.name!==e.name&&1!==a?n("router-link",{attrs:{to:{path:""===t.path?"/":t.path}}},[e._v(e._s(t.meta.name))]):e.breadList.length>2?n("span",[e._v(e._s(t.meta.name))]):e._e()],1)})),1)},o=[],r=(n("4160"),n("b0c0"),n("159b"),{name:"Breadcrumb",data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.name=this.$route.name,console.log(this.$route.matched),this.$route.matched.forEach((function(t){e.breadList.push(t)}))}},watch:{$route:function(){this.getBreadcrumb()}}}),i=r,s=(n("1330"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,"3fb4eae8",null);t["default"]=c.exports},"568d":function(e,t,n){var a={"./aside-item.vue":"b94e","./content-view.vue":"69f1","./reset-search.vue":"0359"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="568d"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79df");var a=n("2b0e"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-config-provider",{attrs:{locale:e.locale}},[n("div",{attrs:{id:"app"}},[e.isRouterAlive?n("router-view"):e._e()],1)])},r=[],i=(n("45fc"),n("5530")),s=n("677e"),c=n.n(s),l=n("c1df"),d=n.n(l),u=(n("5c3a"),n("2f62"));d.a.locale("zh-cn");var p={name:"App",data:function(){return{isRouterAlive:!0,locale:c.a}},provide:function(){return{reload:this.reload}},methods:Object(i["a"])(Object(i["a"])({},Object(u["mapActions"])(["getStyles"])),{},{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}),mounted:function(){var e=this;this.getStyles(),window.onmessage=function(t){if(t.data.id)if(sessionStorage.setItem("postMessage",t.data.id),t.data.userInfo&&t.data.userInfo.id){if(t.data.userInfo.permissionList.some((function(e){return"duojiSystem"===e.rights}))){var n=e.$utils.translateDataToTree(t.data.userInfo.permissionList,"duojiSystem");t.data.userInfo.permissionList=e.$utils.treeToArray(n)}else t.data.userInfo.permissionList=[];localStorage.setItem("userInfo",JSON.stringify(t.data.userInfo))}else localStorage.clear()}}},f=p,m=(n("5c0b"),n("2877")),h=Object(m["a"])(f,o,r,!1,null,null,null),g=h.exports,b=(n("d3b7"),n("8c4f"));a["default"].use(b["a"]);var x=b["a"].prototype.push;b["a"].prototype.push=function(e){return x.call(this,e).catch((function(e){return e}))};var v=[{path:"/",redirect:{name:"realTimeMonitoring"},component:function(){return n.e("chunk-e205a644").then(n.bind(null,"1e4b"))},children:[{path:"realTimeMonitoring",name:"realTimeMonitoring",meta:{icon:"desktop",name:"实时视频流"},component:function(){return n.e("chunk-95d7389c").then(n.bind(null,"d7ad"))}},{path:"realTimeMonitoring/model",name:"realTimeMonitoringModel",meta:{name:"实时视频流(全屏)"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-e0f9bdd0")]).then(n.bind(null,"5949"))}},{path:"historyMonitoring",name:"historyMonitoring",meta:{icon:"line-chart",name:"历史数据"},component:function(){return n.e("chunk-0e4de15d").then(n.bind(null,"2bf9"))}},{path:"alarmLog",name:"alarmLog",meta:{icon:"exception",name:"告警日志"},component:function(){return n.e("chunk-6c799606").then(n.bind(null,"f9bc"))}},{path:"checkManage",name:"checkManage",meta:{icon:"form",name:"盘点管理"},component:function(){return n.e("chunk-7c32d367").then(n.bind(null,"1b63"))}},{path:"checkOperation",name:"checkOperation",meta:{name:"盘点操作"},component:function(){return n.e("chunk-47777934").then(n.bind(null,"02d3"))}},{path:"roadwayManage",name:"roadwayManage",meta:{icon:"build",name:"巷道管理"},component:function(){return n.e("chunk-122fafcf").then(n.bind(null,"dff9"))}},{path:"cameraManage",name:"cameraManage",meta:{icon:"video-camera",name:"球机管理"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-7e66e84e"),n.e("chunk-a6c02796")]).then(n.bind(null,"9543"))}},{path:"cameraManage/model",name:"cameraManageModel",meta:{name:"球机管理测试or配置"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-7e66e84e")]).then(n.bind(null,"9545"))}},{path:"productSpecManage",name:"productSpecManage",meta:{icon:"pushpin",name:"品规管理"},component:function(){return n.e("chunk-e63447d2").then(n.bind(null,"98e8"))}},{path:"repertoryManage",name:"repertoryManage",meta:{icon:"wallet",name:"库存管理"},component:function(){return n.e("chunk-0ab3aab0").then(n.bind(null,"0b85"))}},{path:"cameraManage/ioTable",name:"ioTable",meta:{name:"IO表配置"},component:function(){return n.e("chunk-1e8ac3a9").then(n.bind(null,"4999"))}},{path:"center",name:"center",meta:{name:"个人中心"},component:function(){return n.e("chunk-c4503cf6").then(n.bind(null,"97b0"))}},{path:"plcStatus",name:"plcStatus",meta:{name:"PLC状态"},component:function(){return n.e("chunk-f2934902").then(n.bind(null,"7433"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-813fd848").then(n.bind(null,"dd7b"))}},{path:"/guide",name:"guide",component:function(){return n.e("chunk-d8c3b5aa").then(n.bind(null,"1761"))}},{path:"/updateStyles",name:"修改样式",component:function(){return n.e("chunk-4e0fc9bc").then(n.bind(null,"d3fe"))}},{path:"*",name:"404",component:function(){return n.e("chunk-2d0e95df").then(n.bind(null,"8cdb"))}}],w=new b["a"]({routes:v});w.beforeEach((function(e,t,n){n()}));var j=w,y=(n("96cf"),n("1da1")),k=(n("4160"),n("c975"),n("d81d"),n("b64b"),n("ac1f"),n("466d"),n("5319"),n("159b"),n("ddb0"),n("07ac"),n("841c"),n("bc3a")),O=n.n(k),S=O.a.create({baseURL:"/api",timeout:6e4,headers:{"Content-Type":"application/json;charset=UTF-8"},withCredentials:!0});window.once=0;var _=["/stock/export","/category/export/model","/stock/export/model"];S.interceptors.request.use((function(e){var t=e,n=/\{(.+?)\}/g;return n.test(t.url)&&(t.url=t.url.replace(n,Object.values(t.path)[0])),localStorage.getItem("userInfo")&&(t.headers.token=JSON.parse(localStorage.getItem("userInfo")).token),_.indexOf(e.url)>-1&&(e.responseType="blob"),t}),(function(e){return Promise.reject(e)})),S.interceptors.response.use((function(e){if(_.some((function(t){return e.config.url.indexOf(t)>-1})))return e.data;var t=e.data;return 200!==t.code&&0!==t.code?(a["default"].prototype.$message.error(t.message),401===t.code&&(0!=window.once||location.search||(a["default"].prototype.$message.error(t.message),a["default"].prototype.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?redirect="+location.origin,"_self")})).catch((function(e){}))),++window.once),Promise.reject(t.message)):t}),(function(e){return Promise.reject(e)})),a["default"].prototype.$axios=S;var T=S,C=function(e){var t=e;return Object.keys(t).forEach((function(e){var n=Object(i["a"])({},t[e]);t[e]=function(e){return T(Object(i["a"])({method:n.method,url:n.url},e))}})),t},I=n("739d"),M={};function $(e){var t=/-([a-z])/g;return e.replace(t,(function(e,t){return t.toUpperCase()}))}I.keys().map((function(e){var t=$(e.match(/.*\/.*\/(.*\..*)/)[1]).indexOf(".js"),n=$(e.match(/.*\/.*\/(.*\..*)/)[1]).substring(0,t);return M[n]=I(e).default,C(M[n])}));var P=M,E=n("1f94"),L=n.n(E),z=Object(i["a"])(Object(i["a"])({},L.a),{},{async:!1,env:"production"}),A=function(e){console.log(z,e),z.modifyVars({"@primary-color":e,"@link-color":e,"@btn-primary-bg":e}).then((function(){console.log("antd主题颜色成功")})).catch((function(e){console.error("antd主题颜色失败"),console.error(e)}))},R=(new a["default"],P.httpNodeApi),K={state:{data:{theme:{"primary-color":"rgba(184, 68, 13, 1)"},title:{text:"昆船垛机视觉系统",style:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(163, 60, 12, 1)","font-size":"24px"}},menu:{default:{color:"rgba(230, 224, 224, 1)","background-color":"rgba(163, 60, 12, 1)"},select:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(184, 68, 13, 1)"}}}},mutations:{UPDATE_STYLES:function(e,t){e.data=t,A(t.theme["primary-color"])}},actions:{updateStyles:function(e,t){return Object(y["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.commit,console.log(a["default"].prototype.$api),n.next=4,R.updateStylesAPI({data:t});case 4:case"end":return n.stop()}}),n)})))()},getStyles:function(e){return Object(y["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,console.log("获取样式"),t.next=4,O.a.get("/api/node/default_css.json");case 4:a=t.sent,n("UPDATE_STYLES",a.data);case 6:case"end":return t.stop()}}),t)})))()}}},U=K,G=n("2784");a["default"].use(u["default"]);var N=new u["default"].Store({state:{aside_collapsed:!1,userInfo:JSON.parse(localStorage.getItem("userInfo")||"{}")},getters:{styles:function(e){return e.styles.data},getAside_collapsed:function(e){return e.aside_collapsed}},mutations:{setState:function(e,t){for(var n in t)e[n]=t[n]},aside_collapsed:function(e,t){e.aside_collapsed=t}},actions:{},modules:{styles:U},plugins:[Object(G["a"])()]}),D=(n("3aed"),n("8592")),F=n("98c5"),B=n("4df5"),H=n("dfae"),J=n("b558"),q=n("09d9"),W=n("ccb9"),V=n("0020"),Y=n("de1b"),Q=n("55f1"),X=n("3af3"),Z=n("5efb"),ee=n("2fc4"),te=n("0c63"),ne=n("d865"),ae=n("f23d"),oe=n("ed3b"),re=n("681b"),ie=n("9a63"),se=n("e32c"),ce=n("9839"),le=n("768f"),de=n("f933"),ue=n("7571"),pe=n("9571"),fe=n("a79d"),me=n("0bb7"),he=n("39ab"),ge=n("59a5"),be=n("a071"),xe=n("fa07"),ve=n("f64c");a["default"].use(D["a"]),a["default"].use(F["a"]),a["default"].use(B["b"]),a["default"].use(H["a"]),a["default"].use(J["a"]),a["default"].use(q["a"]),a["default"].use(W["a"]),a["default"].use(V["a"]),a["default"].use(Y["a"]),a["default"].use(Q["a"]),a["default"].use(X["a"]),a["default"].use(Z["a"]),a["default"].use(ee["a"]),a["default"].use(te["a"]),a["default"].use(ne["a"]);try{a["default"].use(ae["result"])}catch(Ce){console.log(Ce)}a["default"].use(oe["a"]),a["default"].use(re["a"]),a["default"].use(ie["a"]),a["default"].use(se["a"]),a["default"].use(ce["d"]),a["default"].use(le["a"]),a["default"].use(de["a"]),a["default"].use(ue["a"]),a["default"].use(pe["a"]),a["default"].use(fe["a"]),a["default"].use(me["a"]),a["default"].use(he["a"]),a["default"].use(ge["a"]),a["default"].use(be["a"]),a["default"].use(xe["a"]),a["default"].prototype.$form=X["a"],a["default"].prototype.$message=ve["a"],a["default"].prototype.$info=oe["a"].info,a["default"].prototype.$success=oe["a"].success,a["default"].prototype.$confirm=oe["a"].confirm,a["default"].prototype.$error=oe["a"].error;var we=n("5c96");n("0fae");a["default"].use(we["ColorPicker"]),a["default"].use(we["Form"]),a["default"].use(we["FormItem"]);n("b0c0");var je=n("568d");je.keys().map((function(e){var t=je(e).default;return a["default"].component(t.name,t)}));var ye=n("5491");ye.keys().map((function(e){var t=ye(e).default;return a["default"].component(t.name,t)}));n("4de4"),n("7db0"),n("a434"),n("25f0"),n("3ca3"),n("1276"),n("2b3d");var ke={format:function(e){var t=parseInt(e/864e5),n=parseInt(e%864e5/36e5),a=parseInt(e%36e5/6e4),o=e%6e4/1e3;return t+" 天 "+n+" 小时 "+a+" 分钟 "+o+" 秒 "},timerFormat:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),r=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),i=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return t+"年"+n+"月"+a+"日 "+o+":"+r+":"+i},computedStrLen:function(e){for(var t=0,n=0;n=1&&a<=126||65376<=a&&a<=65439?t++:t+=2}return t},deepClone:function(e){var t,n=this.getType(e);if("array"===n)t=[];else{if("object"!==n)return e;t={}}if("array"===n)for(var a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var a=e.children;if(a&&(delete e.children,a.length))return n.push(e),t.treeToArray(a,n);n.push(e)})),n},translateDataToTree:function(e,t){var n=e.filter((function(e){return 0===e.parentId})),a=e.filter((function(e){return 0!==e.parentId})),o=function e(t,n){t&&t.forEach((function(t){n&&n.forEach((function(a,o){if(a.parentId===t.id){var r=JSON.parse(JSON.stringify(n));r.splice(o,1),t.children&&t.children.length?t.children.push(a):t.children=[a],e([a],r)}}))}))};return o(n,a),n=n.filter((function(e){return e.rights===t})),n&&n.length&&n[0].children}},Oe=n("6db4"),Se=(n("14d3"),n("0808"),n("6944")),_e=n.n(Se);a["default"].config.productionTip=!1,a["default"].prototype.$utils=ke,a["default"].prototype.$api=P,a["default"].component("happy-scroll",Oe["HappyScroll"]),a["default"].use(_e.a),new a["default"]({router:j,store:N,render:function(e){return e(g)}}).$mount("#app");var Te=n("2f62");console.log(Te)},"57cd":function(e,t,n){var a=n("6532");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("66ea037e",a,!0,{sourceMap:!1,shadowMode:!1})},"5c0b":function(e,t,n){"use strict";var a=n("0554"),o=n.n(a);o.a},6532:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.aside{flex:0 0 270px!important;max-width:270px!important;min-width:270px!important;width:270px!important;height:100vh;color:#fff;position:fixed;top:0;left:0;box-shadow:2px 0 6px 0 rgba(0,21,41,.35);z-index:1000}.aside .logo{width:100%;height:64px;overflow:hidden;line-height:64px;font-size:18px;font-weight:600;color:#fff}.aside .logo img{width:24px;height:24px;margin:10px 10px 10px 15px}.aside .logo .logo-title{transition-delay:.5s;margin-left:25px}.aside .ant-menu-inline{width:100%;height:100%}.aside .ant-menu-inline-collapsed{width:80px}.merge{flex:0 0 80px!important;max-width:80px!important;min-width:80px!important;width:80px!important}.merge .logo img{margin:0 30px}.merge .logo .logo-title{display:none;height:30px;overflow:hidden}",""]),e.exports=t},"69f1":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[e.$route.meta.name?n("div",{staticClass:"wrap-title"},[n("span",{staticClass:"wrap-title-text"},[e._t("title",[e._v(e._s(e.title))])],2)]):e._e(),n("div",{staticClass:"wrap-header"},[e._t("header"),e._t("button")],2),n("div",{staticClass:"wrap-cont"},[n("div",{staticClass:"wrap-cont-cover"},[n("div",{staticClass:"wrap-container"},[e._t("default")],2)])]),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)])},o=[],r=(n("b0c0"),{name:"content-view",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("40d1"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"6e33":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.wrap{display:flex;flex-direction:column;flex:1;position:relative}.wrap-title{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 0 20px 24px;font-size:18px}.wrap-title-text{font-weight:700;flex:1}.wrap-header{background:#fff;border-bottom:1px solid #e1e1e1}.wrap-cont{padding:0 24px}.wrap-cont,.wrap-cont-cover{display:flex;flex-direction:column;flex:1}.wrap-cont-cover{padding:24px 0}.wrap-container{flex:1;position:relative;display:flex;flex-direction:column;overflow-x:auto;background-color:#fff}.wrap-container>div{padding:24px;overflow-x:hidden}.wrap-footer{position:fixed;left:0;bottom:0;padding-left:256px;width:100%;text-align:center;z-index:2}.wrap .table{background:#fff;margin:8px 20px;min-height:calc(100vh - 100px);padding:20px}",""]),e.exports=t},"739d":function(e,t,n){var a={"./http/http-api.js":"2a8b","./http/http-node-api.js":"f4ed"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="739d"},"7a48":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,"/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}body,html{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}audio,embed,iframe,img,object,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}a{text-decoration:none}input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important}input[type=number]::-webkit-inner-spin-button{display:none}",""]),e.exports=t},"86a3":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}",""]),e.exports=t},"96a4":function(e,t,n){var a=n("24fb"),o=n("7a48");t=a(!1),t.i(o),t.push([e.i,'.alarm .ant-form-item-label{text-align:left}.w40{width:40px!important}.w48{width:48px!important}.w56{width:56px!important}.w64{width:64px!important}.w72{width:72px!important}.w80{width:80px!important}.w88{width:88px!important}.w96{width:96px!important}.w104{width:104px!important}.w112{width:112px!important}.w120{width:120px!important}.w128{width:128px!important}.w136{width:136px!important}.w144{width:144px!important}.w152{width:152px!important}.w160{width:160px!important}.w168{width:168px!important}.w176{width:176px!important}.w184{width:184px!important}.w192{width:192px!important}.w200{width:200px!important}.w208{width:208px!important}.w216{width:216px!important}.w224{width:224px!important}.w232{width:232px!important}.w240{width:240px!important}.w248{width:248px!important}.w256{width:256px!important}.w264{width:264px!important}.w272{width:272px!important}.w280{width:280px!important}.w288{width:288px!important}.w296{width:296px!important}.w304{width:304px!important}.w312{width:312px!important}.w320{width:320px!important}.w328{width:328px!important}.w336{width:336px!important}.w344{width:344px!important}.w352{width:352px!important}.w360{width:360px!important}.w368{width:368px!important}.w376{width:376px!important}.w384{width:384px!important}.w392{width:392px!important}.w400{width:400px!important}.w408{width:408px!important}.w416{width:416px!important}.w424{width:424px!important}.w432{width:432px!important}.w440{width:440px!important}.w448{width:448px!important}.w456{width:456px!important}.w464{width:464px!important}.w472{width:472px!important}.w480{width:480px!important}.ml8{margin-left:8px}.mr8{margin-right:8px}.mt8{margin-top:8px}.mb8{margin-bottom:8px}.pl8{padding-left:8px}.pr8{padding-right:8px}.pt8{padding-top:8px}.pb8{padding-bottom:8px}.ml16{margin-left:16px}.mr16{margin-right:16px}.mt16{margin-top:16px}.mb16{margin-bottom:16px}.pl16{padding-left:16px}.pr16{padding-right:16px}.pt16{padding-top:16px}.pb16{padding-bottom:16px}.ml24{margin-left:24px}.mr24{margin-right:24px}.mt24{margin-top:24px}.mb24{margin-bottom:24px}.pl24{padding-left:24px}.pr24{padding-right:24px}.pt24{padding-top:24px}.pb24{padding-bottom:24px}.ml32{margin-left:32px}.mr32{margin-right:32px}.mt32{margin-top:32px}.mb32{margin-bottom:32px}.pl32{padding-left:32px}.pr32{padding-right:32px}.pt32{padding-top:32px}.pb32{padding-bottom:32px}.ml40{margin-left:40px}.mr40{margin-right:40px}.mt40{margin-top:40px}.mb40{margin-bottom:40px}.pl40{padding-left:40px}.pr40{padding-right:40px}.pt40{padding-top:40px}.pb40{padding-bottom:40px}.ml48{margin-left:48px}.mr48{margin-right:48px}.mt48{margin-top:48px}.mb48{margin-bottom:48px}.pl48{padding-left:48px}.pr48{padding-right:48px}.pt48{padding-top:48px}.pb48{padding-bottom:48px}.ml56{margin-left:56px}.mr56{margin-right:56px}.mt56{margin-top:56px}.mb56{margin-bottom:56px}.pl56{padding-left:56px}.pr56{padding-right:56px}.pt56{padding-top:56px}.pb56{padding-bottom:56px}.ml64{margin-left:64px}.mr64{margin-right:64px}.mt64{margin-top:64px}.mb64{margin-bottom:64px}.pl64{padding-left:64px}.pr64{padding-right:64px}.pt64{padding-top:64px}.pb64{padding-bottom:64px}.ml72{margin-left:72px}.mr72{margin-right:72px}.mt72{margin-top:72px}.mb72{margin-bottom:72px}.pl72{padding-left:72px}.pr72{padding-right:72px}.pt72{padding-top:72px}.pb72{padding-bottom:72px}.ml80{margin-left:80px}.mr80{margin-right:80px}.mt80{margin-top:80px}.mb80{margin-bottom:80px}.pl80{padding-left:80px}.pr80{padding-right:80px}.pt80{padding-top:80px}.pb80{padding-bottom:80px}.bg-white{background-color:#fff}.no-margin{margin:0!important}.no-margin-bottom{margin-bottom:0!important}.no-margin-top{margin-top:0!important}.no-margin-left{margin-left:0!important}.no-margin-right{margin-right:0!important}.no-padding{padding:0!important}.bq{border:1px solid #e9e9e9}.bl{border-left:1px solid #e9e9e9}.bt{border-top:1px solid #e9e9e9}.br{border-right:1px solid #e9e9e9}.bb{border-bottom:1px solid #e9e9e9}.flex{display:flex;align-items:center;justify-content:center;flex-flow:row nowrap}.flex-column{flex-flow:column nowrap}.flex-wrap{flex-wrap:wrap}.flex-start{justify-content:flex-start}.flex-end{justify-content:flex-end}.flex-space-around{justify-content:space-around}.flex-space-between{justify-content:space-between}.flex-align-start{align-items:flex-start}.flex-align-end{align-items:flex-end}.flex-align-center{align-items:center}.flex-none{flex:none}.flex-extensible{flex:1}.inline-block{display:inline-block}.inline-block+.inline-block{vertical-align:bottom}.inline-block_top{display:inline-block}.inline-block+.inline-block_top{vertical-align:top}.relative{position:relative}.relative .absolute{position:absolute}.float-left{float:left}.float-right{float:right}.float-clear:after{content:"";clear:both;display:block}.table-form{width:100%;table-layout:fixed}.table-form tr:last-of-type td{padding-bottom:0}.table-form tr td{padding-bottom:16px}.table-form tr td>div{width:100%}.table-form tr td:nth-child(odd){text-align:left}.table-form tr td:nth-child(odd) label:after{content:":";margin:0 8px 0 2px;position:relative;top:-.5px}.table-form tr td:nth-child(2n){padding-right:32px}.table-form_full{width:100%}',""]),e.exports=t},aad6:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.header{background:#fff;display:flex;align-items:center;justify-content:space-between;height:64px;box-shadow:0 2px 5px rgba(0,21,41,.15);position:fixed;top:0;width:calc(100% - 270px);z-index:999}.header-left .trigger{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}.header-right{display:flex;align-items:flex-start;padding-right:20px}.header-right-circle{width:24px;height:24px;border-radius:50%;background-color:#fff;margin-right:8px;cursor:pointer}.collapsed-header{width:calc(100% - 80px)}",""]),e.exports=t},af1e:function(e,t,n){var a=n("1d6f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("0505df12",a,!0,{sourceMap:!1,shadowMode:!1})},b94e:function(e,t,n){"use strict";n.r(t);var a=function(e,t){var n=t._c;return n("a-sub-menu",t._g({key:t.data.attrs.menuInfo.name},t.listeners),[n("span",{attrs:{slot:"title"},slot:"title"},[n("a-icon",{attrs:{type:t.data.attrs.menuInfo.meta.icon}}),n("span",[t._v(t._s(t.data.attrs.menuInfo.meta.name))])],1),t._l(t.data.attrs.menuInfo.children,(function(e){return[e.meta.unfold?t._e():n("a-menu-item",{key:e.name},[n("span",[t._v(t._s(e.meta.name))])]),e.meta.unfold?n("aside-item",{key:e.name,attrs:{menuInfo:e}}):t._e()]}))],2)},o=[],r={name:"aside-item",components:{},data:function(){return{}},methods:{},mounted:function(){}},i=r,s=n("2877"),c=Object(s["a"])(i,a,o,!0,null,null,null);t["default"]=c.exports},d8dc:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["header",e.collapsed?"collapsed-header":""]},[n("div",{staticClass:"header-left"},[n("a-layout-header",{staticStyle:{background:"#fff",padding:"0"}},[n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.collapsedFlag}}),e._t("title",[e._v(e._s(e.title))])],2)],1),n("div",{staticClass:"header-right"},[n("div",{staticClass:"header-top-right-circle",on:{click:function(t){e.visible=!e.visible}}}),n("a-badge",{attrs:{count:e.count},on:{click:e.openPlc}},[n("a-icon",{staticStyle:{"font-size":"20px",cursor:"pointer"},attrs:{type:"bell"}})],1),n("a-popover",{attrs:{id:"popover",placement:"bottom",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a",{staticStyle:{margin:"0 10px"},attrs:{href:"javascript:;"}},[e._v(" "+e._s(e.userInfo.name?e.userInfo.name:"userName")+" ")]),n("div",{staticClass:"flex flex-column",style:{"min-width":"78px"},attrs:{slot:"content"},slot:"content"},[n("a",{staticClass:"block mb16",attrs:{href:"javascript:;"},on:{click:function(t){e.visible=!1,e.$router.push({name:"center"})}}},[e._v("个人中心")]),n("a",{attrs:{href:"javascript:;"},on:{click:e.logout}},[e._v("退出登录")])])])],1)])},o=[],r=(n("b0c0"),n("5530")),i=n("2f62"),s={name:"PageHeader",computed:Object(r["a"])(Object(r["a"])({},Object(i["mapState"])(["aside_collapsed","userInfo"])),Object(i["mapGetters"])(["getAside_collapsed"])),watch:{getAside_collapsed:function(e){console.log(e),this.collapsed=e},$route:function(e){this.title=e.meta.title||e.meta.name}},data:function(){return{visible:!1,collapsed:!1,count:0,title:""}},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name,this.getplcStatus();var e=this;setInterval((function(){e.getplcStatus()}),1e4)},methods:Object(r["a"])(Object(r["a"])({},Object(i["mapMutations"])(["setState"])),{},{logout:function(){this.visible=!1,localStorage.clear(),sessionStorage.clear(),this.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?action=logout","_self")})).catch((function(e){}))},collapsedFlag:function(){this.collapsed=!this.collapsed,this.$store.commit("aside_collapsed",this.collapsed)},getplcStatus:function(){var e=this;this.$axios({url:"/plc/plcStatus",method:"GET"}).then((function(t){200==t.code&&(e.count=t.data)})).catch((function(e){console.log(e)}))},openPlc:function(){this.$router.push({name:"plcStatus"})}})},c=s,l=(n("f016"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},dfb3:function(e,t,n){var a=n("6e33");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("5dda7116",a,!0,{sourceMap:!1,shadowMode:!1})},f016:function(e,t,n){"use strict";var a=n("04b4"),o=n.n(a);o.a},f4ed:function(e,t,n){"use strict";n.r(t),t["default"]={updateStylesAPI:{url:"/node/antv-styles/update",name:"更新标题菜单样式",method:"POST"},getStylesAPI:{url:"/node/default_css.json",name:"获取标题菜单样式",method:"GET"},getStockRowColumnAPI:{url:"/node/stock/getStockRowColumn",name:"获取盘点颜色状态",method:"GET"},getStockRowColumnNesInfo:{url:"/node/stock/getStockRowColumnNesInfo",name:"如果是人工复合错误,那么就需要取stock_log里的关联的最新的信息",method:"GET"},viewVideoAPI:{url:"/node/hk_video/view_video",name:"唤醒VSplay,查看海康视频",method:"GET"}}}}); \ No newline at end of file +(function(e){function t(t){for(var a,i,s=t[0],c=t[1],l=t[2],d=0,p=[];d0&&t(n[a].children)},o=0;o3?this.selectedKeys=[this.$route.matched[2].name]:this.selectedKeys=[this.$route.matched[this.$route.matched.length-1].name]:this.selectedKeys=[this.$route.matched[1].name],console.log("selectedKeys",this.selectedKeys),this.$route.matched[1].meta.unfold?this.openKeys.push(this.$route.matched[1].name):this.openKeys=[""],this.$forceUpdate()},menuItemHover:function(e){this.mouseItemKey=e.key},menuItemOut:function(){this.mouseItemKey=""}},mounted:function(){var e=this;this.$nextTick((function(){e.setRoute()}))}},c=s,l=(n("017d"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},"34ab":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[n("keep-alive",{attrs:{include:["checkManage"]}},[n("router-view",{staticClass:"table"})],1),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)],1)},o=[],r=(n("b0c0"),{name:"PageContent",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("5187"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"40d1":function(e,t,n){"use strict";var a=n("1bf5"),o=n.n(a);o.a},4678:function(e,t,n){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="4678"},5187:function(e,t,n){"use strict";var a=n("dfb3"),o=n.n(a);o.a},5491:function(e,t,n){var a={"./AsideMenu.vue":"2f7f","./Breadcrumb.vue":"5670","./PageContent.vue":"34ab","./PageHeader.vue":"d8dc"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="5491"},5670:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList,(function(t,a){return n("a-breadcrumb-item",{key:t.name},[t.name!==e.name&&1!==a?n("router-link",{attrs:{to:{path:""===t.path?"/":t.path}}},[e._v(e._s(t.meta.name))]):e.breadList.length>2?n("span",[e._v(e._s(t.meta.name))]):e._e()],1)})),1)},o=[],r=(n("4160"),n("b0c0"),n("159b"),{name:"Breadcrumb",data:function(){return{name:"",breadList:[]}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this;this.breadList=[],this.name=this.$route.name,console.log(this.$route.matched),this.$route.matched.forEach((function(t){e.breadList.push(t)}))}},watch:{$route:function(){this.getBreadcrumb()}}}),i=r,s=(n("1330"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,"3fb4eae8",null);t["default"]=c.exports},"568d":function(e,t,n){var a={"./aside-item.vue":"b94e","./content-view.vue":"69f1","./reset-search.vue":"0359"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="568d"},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79df");var a=n("2b0e"),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-config-provider",{attrs:{locale:e.locale}},[n("div",{attrs:{id:"app"}},[e.isRouterAlive?n("router-view"):e._e()],1)])},r=[],i=(n("45fc"),n("5530")),s=n("677e"),c=n.n(s),l=n("c1df"),d=n.n(l),u=(n("5c3a"),n("2f62"));d.a.locale("zh-cn");var p={name:"App",data:function(){return{isRouterAlive:!0,locale:c.a}},provide:function(){return{reload:this.reload}},methods:Object(i["a"])(Object(i["a"])({},Object(u["mapActions"])(["getStyles"])),{},{reload:function(){this.isRouterAlive=!1,this.$nextTick((function(){this.isRouterAlive=!0}))}}),mounted:function(){var e=this;this.getStyles(),window.onmessage=function(t){if(t.data.id)if(sessionStorage.setItem("postMessage",t.data.id),t.data.userInfo&&t.data.userInfo.id){if(t.data.userInfo.permissionList.some((function(e){return"duojiSystem"===e.rights}))){var n=e.$utils.translateDataToTree(t.data.userInfo.permissionList,"duojiSystem");t.data.userInfo.permissionList=e.$utils.treeToArray(n)}else t.data.userInfo.permissionList=[];localStorage.setItem("userInfo",JSON.stringify(t.data.userInfo))}else localStorage.clear()}}},f=p,m=(n("5c0b"),n("2877")),h=Object(m["a"])(f,o,r,!1,null,null,null),b=h.exports,g=(n("d3b7"),n("8c4f"));a["default"].use(g["a"]);var x=g["a"].prototype.push;g["a"].prototype.push=function(e){return x.call(this,e).catch((function(e){return e}))};var v=[{path:"/",redirect:{name:"realTimeMonitoring"},component:function(){return n.e("chunk-e205a644").then(n.bind(null,"1e4b"))},children:[{path:"realTimeMonitoring",name:"realTimeMonitoring",meta:{icon:"desktop",name:"实时视频流"},component:function(){return n.e("chunk-95d7389c").then(n.bind(null,"d7ad"))}},{path:"realTimeMonitoring/model",name:"realTimeMonitoringModel",meta:{name:"实时视频流(全屏)"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-e0f9bdd0")]).then(n.bind(null,"5949"))}},{path:"historyMonitoring",name:"historyMonitoring",meta:{icon:"line-chart",name:"历史数据"},component:function(){return n.e("chunk-0e4de15d").then(n.bind(null,"2bf9"))}},{path:"alarmLog",name:"alarmLog",meta:{icon:"exception",name:"告警日志"},component:function(){return n.e("chunk-6c799606").then(n.bind(null,"f9bc"))}},{path:"checkManage",name:"checkManage",meta:{icon:"form",name:"盘点管理"},component:function(){return n.e("chunk-056f57be").then(n.bind(null,"1b63"))}},{path:"checkOperation",name:"checkOperation",meta:{name:"盘点操作"},component:function(){return n.e("chunk-47777934").then(n.bind(null,"02d3"))}},{path:"roadwayManage",name:"roadwayManage",meta:{icon:"build",name:"巷道管理"},component:function(){return n.e("chunk-122fafcf").then(n.bind(null,"dff9"))}},{path:"cameraManage",name:"cameraManage",meta:{icon:"video-camera",name:"球机管理"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-2e508108"),n.e("chunk-a6c02796")]).then(n.bind(null,"9543"))}},{path:"cameraManage/model",name:"cameraManageModel",meta:{name:"球机管理测试or配置"},component:function(){return Promise.all([n.e("chunk-7140b3ea"),n.e("chunk-2e508108")]).then(n.bind(null,"9545"))}},{path:"productSpecManage",name:"productSpecManage",meta:{icon:"pushpin",name:"品规管理"},component:function(){return n.e("chunk-e63447d2").then(n.bind(null,"98e8"))}},{path:"repertoryManage",name:"repertoryManage",meta:{icon:"wallet",name:"库存管理"},component:function(){return n.e("chunk-0ab3aab0").then(n.bind(null,"0b85"))}},{path:"cameraManage/ioTable",name:"ioTable",meta:{name:"IO表配置"},component:function(){return n.e("chunk-1e8ac3a9").then(n.bind(null,"4999"))}},{path:"center",name:"center",meta:{name:"个人中心"},component:function(){return n.e("chunk-c4503cf6").then(n.bind(null,"97b0"))}},{path:"plcStatus",name:"plcStatus",meta:{name:"PLC状态"},component:function(){return n.e("chunk-4df94765").then(n.bind(null,"7433"))}}]},{path:"/login",name:"login",component:function(){return n.e("chunk-813fd848").then(n.bind(null,"dd7b"))}},{path:"/guide",name:"guide",component:function(){return n.e("chunk-d8c3b5aa").then(n.bind(null,"1761"))}},{path:"/updateStyles",name:"修改样式",component:function(){return n.e("chunk-4e0fc9bc").then(n.bind(null,"d3fe"))}},{path:"*",name:"404",component:function(){return n.e("chunk-2d0e95df").then(n.bind(null,"8cdb"))}}],w=new g["a"]({routes:v});w.beforeEach((function(e,t,n){n()}));var j=w,y=(n("96cf"),n("1da1")),k=(n("4160"),n("c975"),n("d81d"),n("b64b"),n("ac1f"),n("466d"),n("5319"),n("159b"),n("ddb0"),n("07ac"),n("841c"),n("bc3a")),O=n.n(k),S=O.a.create({baseURL:"/api",timeout:6e4,headers:{"Content-Type":"application/json;charset=UTF-8"},withCredentials:!0});window.once=0;var _=["/stock/export","/category/export/model","/stock/export/model"];S.interceptors.request.use((function(e){var t=e,n=/\{(.+?)\}/g;return n.test(t.url)&&(t.url=t.url.replace(n,Object.values(t.path)[0])),localStorage.getItem("userInfo")&&(t.headers.token=JSON.parse(localStorage.getItem("userInfo")).token),_.indexOf(e.url)>-1&&(e.responseType="blob"),t}),(function(e){return Promise.reject(e)})),S.interceptors.response.use((function(e){if(_.some((function(t){return e.config.url.indexOf(t)>-1})))return e.data;var t=e.data;return 200!==t.code&&0!==t.code?(a["default"].prototype.$message.error(t.message),401===t.code&&(0!=window.once||location.search||(a["default"].prototype.$message.error(t.message),a["default"].prototype.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?redirect="+location.origin,"_self")})).catch((function(e){}))),++window.once),Promise.reject(t.message)):t}),(function(e){return Promise.reject(e)})),a["default"].prototype.$axios=S;var T=S,C=function(e){var t=e;return Object.keys(t).forEach((function(e){var n=Object(i["a"])({},t[e]);t[e]=function(e){return T(Object(i["a"])({method:n.method,url:n.url},e))}})),t},I=n("739d"),M={};function $(e){var t=/-([a-z])/g;return e.replace(t,(function(e,t){return t.toUpperCase()}))}I.keys().map((function(e){var t=$(e.match(/.*\/.*\/(.*\..*)/)[1]).indexOf(".js"),n=$(e.match(/.*\/.*\/(.*\..*)/)[1]).substring(0,t);return M[n]=I(e).default,C(M[n])}));var P=M,E=n("1f94"),L=n.n(E),z=Object(i["a"])(Object(i["a"])({},L.a),{},{async:!1,env:"production"}),A=function(e){console.log(z,e),z.modifyVars({"@primary-color":e,"@link-color":e,"@btn-primary-bg":e}).then((function(){console.log("antd主题颜色成功")})).catch((function(e){console.error("antd主题颜色失败"),console.error(e)}))},R=(new a["default"],P.httpNodeApi),K={state:{data:{theme:{"primary-color":"rgba(184, 68, 13, 1)"},title:{text:"昆船垛机视觉系统",style:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(163, 60, 12, 1)","font-size":"24px"}},menu:{default:{color:"rgba(230, 224, 224, 1)","background-color":"rgba(163, 60, 12, 1)"},select:{color:"rgba(255, 255, 255, 1)","background-color":"rgba(184, 68, 13, 1)"}}}},mutations:{UPDATE_STYLES:function(e,t){e.data=t,A(t.theme["primary-color"])}},actions:{updateStyles:function(e,t){return Object(y["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.commit,console.log(a["default"].prototype.$api),n.next=4,R.updateStylesAPI({data:t});case 4:case"end":return n.stop()}}),n)})))()},getStyles:function(e){return Object(y["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,console.log("获取样式"),t.next=4,O.a.get("/api/node/default_css.json");case 4:a=t.sent,n("UPDATE_STYLES",a.data);case 6:case"end":return t.stop()}}),t)})))()}}},U=K,G=n("2784");a["default"].use(u["default"]);var N=new u["default"].Store({state:{aside_collapsed:!1,userInfo:JSON.parse(localStorage.getItem("userInfo")||"{}")},getters:{styles:function(e){return e.styles.data},getAside_collapsed:function(e){return e.aside_collapsed}},mutations:{setState:function(e,t){for(var n in t)e[n]=t[n]},aside_collapsed:function(e,t){e.aside_collapsed=t}},actions:{},modules:{styles:U},plugins:[Object(G["a"])()]}),D=(n("3aed"),n("8592")),F=n("98c5"),B=n("4df5"),H=n("dfae"),J=n("b558"),q=n("09d9"),W=n("ccb9"),V=n("0020"),Y=n("de1b"),Q=n("55f1"),X=n("3af3"),Z=n("5efb"),ee=n("2fc4"),te=n("0c63"),ne=n("d865"),ae=n("f23d"),oe=n("ed3b"),re=n("681b"),ie=n("9a63"),se=n("e32c"),ce=n("9839"),le=n("768f"),de=n("f933"),ue=n("7571"),pe=n("9571"),fe=n("a79d"),me=n("0bb7"),he=n("39ab"),be=n("59a5"),ge=n("a071"),xe=n("fa07"),ve=n("f64c");a["default"].use(D["a"]),a["default"].use(F["a"]),a["default"].use(B["b"]),a["default"].use(H["a"]),a["default"].use(J["a"]),a["default"].use(q["a"]),a["default"].use(W["a"]),a["default"].use(V["a"]),a["default"].use(Y["a"]),a["default"].use(Q["a"]),a["default"].use(X["a"]),a["default"].use(Z["a"]),a["default"].use(ee["a"]),a["default"].use(te["a"]),a["default"].use(ne["a"]);try{a["default"].use(ae["result"])}catch(Ce){console.log(Ce)}a["default"].use(oe["a"]),a["default"].use(re["a"]),a["default"].use(ie["a"]),a["default"].use(se["a"]),a["default"].use(ce["d"]),a["default"].use(le["a"]),a["default"].use(de["a"]),a["default"].use(ue["a"]),a["default"].use(pe["a"]),a["default"].use(fe["a"]),a["default"].use(me["a"]),a["default"].use(he["a"]),a["default"].use(be["a"]),a["default"].use(ge["a"]),a["default"].use(xe["a"]),a["default"].prototype.$form=X["a"],a["default"].prototype.$message=ve["a"],a["default"].prototype.$info=oe["a"].info,a["default"].prototype.$success=oe["a"].success,a["default"].prototype.$confirm=oe["a"].confirm,a["default"].prototype.$error=oe["a"].error;var we=n("5c96");n("0fae");a["default"].use(we["ColorPicker"]),a["default"].use(we["Form"]),a["default"].use(we["FormItem"]);n("b0c0");var je=n("568d");je.keys().map((function(e){var t=je(e).default;return a["default"].component(t.name,t)}));var ye=n("5491");ye.keys().map((function(e){var t=ye(e).default;return a["default"].component(t.name,t)}));n("4de4"),n("7db0"),n("a434"),n("25f0"),n("3ca3"),n("1276"),n("2b3d");var ke={format:function(e){var t=parseInt(e/864e5),n=parseInt(e%864e5/36e5),a=parseInt(e%36e5/6e4),o=e%6e4/1e3;return t+" 天 "+n+" 小时 "+a+" 分钟 "+o+" 秒 "},timerFormat:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,a=e.getDate(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),r=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),i=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return t+"年"+n+"月"+a+"日 "+o+":"+r+":"+i},computedStrLen:function(e){for(var t=0,n=0;n=1&&a<=126||65376<=a&&a<=65439?t++:t+=2}return t},deepClone:function(e){var t,n=this.getType(e);if("array"===n)t=[];else{if("object"!==n)return e;t={}}if("array"===n)for(var a=0,o=e.length;a1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){var a=e.children;if(a&&(delete e.children,a.length))return n.push(e),t.treeToArray(a,n);n.push(e)})),n},translateDataToTree:function(e,t){var n=e.filter((function(e){return 0===e.parentId})),a=e.filter((function(e){return 0!==e.parentId})),o=function e(t,n){t&&t.forEach((function(t){n&&n.forEach((function(a,o){if(a.parentId===t.id){var r=JSON.parse(JSON.stringify(n));r.splice(o,1),t.children&&t.children.length?t.children.push(a):t.children=[a],e([a],r)}}))}))};return o(n,a),n=n.filter((function(e){return e.rights===t})),n&&n.length&&n[0].children}},Oe=n("6db4"),Se=(n("14d3"),n("0808"),n("6944")),_e=n.n(Se);a["default"].config.productionTip=!1,a["default"].prototype.$utils=ke,a["default"].prototype.$api=P,a["default"].component("happy-scroll",Oe["HappyScroll"]),a["default"].use(_e.a),new a["default"]({router:j,store:N,render:function(e){return e(b)}}).$mount("#app");var Te=n("2f62");console.log(Te)},"57cd":function(e,t,n){var a=n("6532");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("66ea037e",a,!0,{sourceMap:!1,shadowMode:!1})},"5c0b":function(e,t,n){"use strict";var a=n("0554"),o=n.n(a);o.a},6532:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.aside{flex:0 0 270px!important;max-width:270px!important;min-width:270px!important;width:270px!important;height:100vh;color:#fff;position:fixed;top:0;left:0;box-shadow:2px 0 6px 0 rgba(0,21,41,.35);z-index:1000}.aside .logo{width:100%;height:64px;overflow:hidden;line-height:64px;font-size:18px;font-weight:600;color:#fff}.aside .logo img{width:24px;height:24px;margin:10px 10px 10px 15px}.aside .logo .logo-title{transition-delay:.5s;margin-left:25px}.aside .ant-menu-inline{width:100%;height:100%}.aside .ant-menu-inline-collapsed{width:80px}.merge{flex:0 0 80px!important;max-width:80px!important;min-width:80px!important;width:80px!important}.merge .logo img{margin:0 30px}.merge .logo .logo-title{display:none;height:30px;overflow:hidden}",""]),e.exports=t},"69f1":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrap"},[e.$route.meta.name?n("div",{staticClass:"wrap-title"},[n("span",{staticClass:"wrap-title-text"},[e._t("title",[e._v(e._s(e.title))])],2)]):e._e(),n("div",{staticClass:"wrap-header"},[e._t("header"),e._t("button")],2),n("div",{staticClass:"wrap-cont"},[n("div",{staticClass:"wrap-cont-cover"},[n("div",{staticClass:"wrap-container"},[e._t("default")],2)])]),n("div",{staticClass:"wrap-footer bg-white"},[e._t("footer")],2)])},o=[],r=(n("b0c0"),{name:"content-view",data:function(){return{title:"",footerStyle:!1}},watch:{$route:function(e){this.title=e.meta.title||e.meta.name}},computed:{},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name}}),i=r,s=(n("40d1"),n("2877")),c=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=c.exports},"6e33":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.wrap{display:flex;flex-direction:column;flex:1;position:relative}.wrap-title{background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 0 20px 24px;font-size:18px}.wrap-title-text{font-weight:700;flex:1}.wrap-header{background:#fff;border-bottom:1px solid #e1e1e1}.wrap-cont{padding:0 24px}.wrap-cont,.wrap-cont-cover{display:flex;flex-direction:column;flex:1}.wrap-cont-cover{padding:24px 0}.wrap-container{flex:1;position:relative;display:flex;flex-direction:column;overflow-x:auto;background-color:#fff}.wrap-container>div{padding:24px;overflow-x:hidden}.wrap-footer{position:fixed;left:0;bottom:0;padding-left:256px;width:100%;text-align:center;z-index:2}.wrap .table{background:#fff;margin:8px 20px;min-height:calc(100vh - 100px);padding:20px}",""]),e.exports=t},"739d":function(e,t,n){var a={"./http/http-api.js":"2a8b","./http/http-node-api.js":"f4ed"};function o(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}o.keys=function(){return Object.keys(a)},o.resolve=r,e.exports=o,o.id="739d"},"7a48":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,"/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}body,html{font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif}html{box-sizing:border-box}*,:after,:before{box-sizing:inherit}audio,embed,iframe,img,object,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0;text-align:left}a{text-decoration:none}input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset!important}input[type=number]::-webkit-inner-spin-button{display:none}",""]),e.exports=t},"86a3":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}",""]),e.exports=t},"96a4":function(e,t,n){var a=n("24fb"),o=n("7a48");t=a(!1),t.i(o),t.push([e.i,'.alarm .ant-form-item-label{text-align:left}.w40{width:40px!important}.w48{width:48px!important}.w56{width:56px!important}.w64{width:64px!important}.w72{width:72px!important}.w80{width:80px!important}.w88{width:88px!important}.w96{width:96px!important}.w104{width:104px!important}.w112{width:112px!important}.w120{width:120px!important}.w128{width:128px!important}.w136{width:136px!important}.w144{width:144px!important}.w152{width:152px!important}.w160{width:160px!important}.w168{width:168px!important}.w176{width:176px!important}.w184{width:184px!important}.w192{width:192px!important}.w200{width:200px!important}.w208{width:208px!important}.w216{width:216px!important}.w224{width:224px!important}.w232{width:232px!important}.w240{width:240px!important}.w248{width:248px!important}.w256{width:256px!important}.w264{width:264px!important}.w272{width:272px!important}.w280{width:280px!important}.w288{width:288px!important}.w296{width:296px!important}.w304{width:304px!important}.w312{width:312px!important}.w320{width:320px!important}.w328{width:328px!important}.w336{width:336px!important}.w344{width:344px!important}.w352{width:352px!important}.w360{width:360px!important}.w368{width:368px!important}.w376{width:376px!important}.w384{width:384px!important}.w392{width:392px!important}.w400{width:400px!important}.w408{width:408px!important}.w416{width:416px!important}.w424{width:424px!important}.w432{width:432px!important}.w440{width:440px!important}.w448{width:448px!important}.w456{width:456px!important}.w464{width:464px!important}.w472{width:472px!important}.w480{width:480px!important}.ml8{margin-left:8px}.mr8{margin-right:8px}.mt8{margin-top:8px}.mb8{margin-bottom:8px}.pl8{padding-left:8px}.pr8{padding-right:8px}.pt8{padding-top:8px}.pb8{padding-bottom:8px}.ml16{margin-left:16px}.mr16{margin-right:16px}.mt16{margin-top:16px}.mb16{margin-bottom:16px}.pl16{padding-left:16px}.pr16{padding-right:16px}.pt16{padding-top:16px}.pb16{padding-bottom:16px}.ml24{margin-left:24px}.mr24{margin-right:24px}.mt24{margin-top:24px}.mb24{margin-bottom:24px}.pl24{padding-left:24px}.pr24{padding-right:24px}.pt24{padding-top:24px}.pb24{padding-bottom:24px}.ml32{margin-left:32px}.mr32{margin-right:32px}.mt32{margin-top:32px}.mb32{margin-bottom:32px}.pl32{padding-left:32px}.pr32{padding-right:32px}.pt32{padding-top:32px}.pb32{padding-bottom:32px}.ml40{margin-left:40px}.mr40{margin-right:40px}.mt40{margin-top:40px}.mb40{margin-bottom:40px}.pl40{padding-left:40px}.pr40{padding-right:40px}.pt40{padding-top:40px}.pb40{padding-bottom:40px}.ml48{margin-left:48px}.mr48{margin-right:48px}.mt48{margin-top:48px}.mb48{margin-bottom:48px}.pl48{padding-left:48px}.pr48{padding-right:48px}.pt48{padding-top:48px}.pb48{padding-bottom:48px}.ml56{margin-left:56px}.mr56{margin-right:56px}.mt56{margin-top:56px}.mb56{margin-bottom:56px}.pl56{padding-left:56px}.pr56{padding-right:56px}.pt56{padding-top:56px}.pb56{padding-bottom:56px}.ml64{margin-left:64px}.mr64{margin-right:64px}.mt64{margin-top:64px}.mb64{margin-bottom:64px}.pl64{padding-left:64px}.pr64{padding-right:64px}.pt64{padding-top:64px}.pb64{padding-bottom:64px}.ml72{margin-left:72px}.mr72{margin-right:72px}.mt72{margin-top:72px}.mb72{margin-bottom:72px}.pl72{padding-left:72px}.pr72{padding-right:72px}.pt72{padding-top:72px}.pb72{padding-bottom:72px}.ml80{margin-left:80px}.mr80{margin-right:80px}.mt80{margin-top:80px}.mb80{margin-bottom:80px}.pl80{padding-left:80px}.pr80{padding-right:80px}.pt80{padding-top:80px}.pb80{padding-bottom:80px}.bg-white{background-color:#fff}.no-margin{margin:0!important}.no-margin-bottom{margin-bottom:0!important}.no-margin-top{margin-top:0!important}.no-margin-left{margin-left:0!important}.no-margin-right{margin-right:0!important}.no-padding{padding:0!important}.bq{border:1px solid #e9e9e9}.bl{border-left:1px solid #e9e9e9}.bt{border-top:1px solid #e9e9e9}.br{border-right:1px solid #e9e9e9}.bb{border-bottom:1px solid #e9e9e9}.flex{display:flex;align-items:center;justify-content:center;flex-flow:row nowrap}.flex-column{flex-flow:column nowrap}.flex-wrap{flex-wrap:wrap}.flex-start{justify-content:flex-start}.flex-end{justify-content:flex-end}.flex-space-around{justify-content:space-around}.flex-space-between{justify-content:space-between}.flex-align-start{align-items:flex-start}.flex-align-end{align-items:flex-end}.flex-align-center{align-items:center}.flex-none{flex:none}.flex-extensible{flex:1}.inline-block{display:inline-block}.inline-block+.inline-block{vertical-align:bottom}.inline-block_top{display:inline-block}.inline-block+.inline-block_top{vertical-align:top}.relative{position:relative}.relative .absolute{position:absolute}.float-left{float:left}.float-right{float:right}.float-clear:after{content:"";clear:both;display:block}.table-form{width:100%;table-layout:fixed}.table-form tr:last-of-type td{padding-bottom:0}.table-form tr td{padding-bottom:16px}.table-form tr td>div{width:100%}.table-form tr td:nth-child(odd){text-align:left}.table-form tr td:nth-child(odd) label:after{content:":";margin:0 8px 0 2px;position:relative;top:-.5px}.table-form tr td:nth-child(2n){padding-right:32px}.table-form_full{width:100%}',""]),e.exports=t},aad6:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".alarm .ant-form-item-label{text-align:left}.header{background:#fff;display:flex;align-items:center;justify-content:space-between;height:64px;box-shadow:0 2px 5px rgba(0,21,41,.15);position:fixed;top:0;width:calc(100% - 270px);z-index:999}.header-left .trigger{font-size:18px;line-height:64px;padding:0 24px;cursor:pointer;transition:color .3s}.header-right{display:flex;align-items:flex-start;padding-right:20px}.header-right-circle{width:24px;height:24px;border-radius:50%;background-color:#fff;margin-right:8px;cursor:pointer}.collapsed-header{width:calc(100% - 80px)}",""]),e.exports=t},af1e:function(e,t,n){var a=n("1d6f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("0505df12",a,!0,{sourceMap:!1,shadowMode:!1})},b94e:function(e,t,n){"use strict";n.r(t);var a=function(e,t){var n=t._c;return n("a-sub-menu",t._g({key:t.data.attrs.menuInfo.name},t.listeners),[n("span",{attrs:{slot:"title"},slot:"title"},[n("a-icon",{attrs:{type:t.data.attrs.menuInfo.meta.icon}}),n("span",[t._v(t._s(t.data.attrs.menuInfo.meta.name))])],1),t._l(t.data.attrs.menuInfo.children,(function(e){return[e.meta.unfold?t._e():n("a-menu-item",{key:e.name},[n("span",[t._v(t._s(e.meta.name))])]),e.meta.unfold?n("aside-item",{key:e.name,attrs:{menuInfo:e}}):t._e()]}))],2)},o=[],r={name:"aside-item",components:{},data:function(){return{}},methods:{},mounted:function(){}},i=r,s=n("2877"),c=Object(s["a"])(i,a,o,!0,null,null,null);t["default"]=c.exports},d8dc:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["header",e.collapsed?"collapsed-header":""]},[n("div",{staticClass:"header-left"},[n("a-layout-header",{staticStyle:{background:"#fff",padding:"0"}},[n("a-icon",{staticClass:"trigger",attrs:{type:e.collapsed?"menu-unfold":"menu-fold"},on:{click:e.collapsedFlag}}),e._t("title",[e._v(e._s(e.title))])],2)],1),n("div",{staticClass:"header-right"},[n("div",{staticClass:"header-top-right-circle",on:{click:function(t){e.visible=!e.visible}}}),n("a-badge",{attrs:{count:e.count},on:{click:e.openPlc}},[n("a-icon",{staticStyle:{"font-size":"20px",cursor:"pointer"},attrs:{type:"bell"}})],1),n("a-popover",{attrs:{id:"popover",placement:"bottom",trigger:"click"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[n("a",{staticStyle:{margin:"0 10px"},attrs:{href:"javascript:;"}},[e._v(" "+e._s(e.userInfo.name?e.userInfo.name:"userName")+" ")]),n("div",{staticClass:"flex flex-column",style:{"min-width":"78px"},attrs:{slot:"content"},slot:"content"},[n("a",{staticClass:"block mb16",attrs:{href:"javascript:;"},on:{click:function(t){e.visible=!1,e.$router.push({name:"center"})}}},[e._v("个人中心")]),n("a",{attrs:{href:"javascript:;"},on:{click:e.logout}},[e._v("退出登录")])])])],1)])},o=[],r=(n("b0c0"),n("5530")),i=n("2f62"),s={name:"PageHeader",computed:Object(r["a"])(Object(r["a"])({},Object(i["mapState"])(["aside_collapsed","userInfo"])),Object(i["mapGetters"])(["getAside_collapsed"])),watch:{getAside_collapsed:function(e){console.log(e),this.collapsed=e},$route:function(e){this.title=e.meta.title||e.meta.name}},data:function(){return{visible:!1,collapsed:!1,count:0,title:""}},mounted:function(){this.title=this.$route.meta.title||this.$route.meta.name,this.getplcStatus();var e=this;setInterval((function(){e.getplcStatus()}),1e4)},methods:Object(r["a"])(Object(r["a"])({},Object(i["mapMutations"])(["setState"])),{},{logout:function(){this.visible=!1,localStorage.clear(),sessionStorage.clear(),this.$axios({url:"/app/userCenter",method:"GET"}).then((function(e){window.open(e.data.url+"?action=logout","_self")})).catch((function(e){}))},collapsedFlag:function(){this.collapsed=!this.collapsed,this.$store.commit("aside_collapsed",this.collapsed)},getplcStatus:function(){var e=this;this.$axios({url:"/plc/plcStatus",method:"GET"}).then((function(t){200==t.code&&(e.count=t.data)})).catch((function(e){console.log(e)}))},openPlc:function(){this.$router.push({name:"plcStatus"})}})},c=s,l=(n("f016"),n("2877")),d=Object(l["a"])(c,a,o,!1,null,null,null);t["default"]=d.exports},dfb3:function(e,t,n){var a=n("6e33");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=n("499e").default;o("5dda7116",a,!0,{sourceMap:!1,shadowMode:!1})},f016:function(e,t,n){"use strict";var a=n("04b4"),o=n.n(a);o.a},f4ed:function(e,t,n){"use strict";n.r(t),t["default"]={updateStylesAPI:{url:"/node/antv-styles/update",name:"更新标题菜单样式",method:"POST"},getStylesAPI:{url:"/node/default_css.json",name:"获取标题菜单样式",method:"GET"},getStockRowColumnAPI:{url:"/node/stock/getStockRowColumn",name:"获取盘点颜色状态",method:"GET"},getStockRowColumnNesInfo:{url:"/node/stock/getStockRowColumnNesInfo",name:"如果是人工复合错误,那么就需要取stock_log里的关联的最新的信息",method:"GET"},viewVideoAPI:{url:"/node/hk_video/view_video",name:"唤醒VSplay,查看海康视频",method:"GET"}}}}); \ No newline at end of file diff --git a/js/chunk-056f57be.304f9691.js b/js/chunk-056f57be.304f9691.js new file mode 100644 index 0000000..0377402 --- /dev/null +++ b/js/chunk-056f57be.304f9691.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-056f57be"],{"1b63":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"check-page"},[a("a-button",{staticClass:"export-all",attrs:{type:"primary"},on:{click:t.exportStock}},[t._v(" 导出全部巷道 ")]),a("div",{staticClass:"title-info"},[a("span",{staticClass:"explain"},[t._v("颜色说明:")]),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#d81e06"}}),t._v(" 盘点错误 ")],1),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#1afa29"}}),t._v(" 盘点正确 ")],1),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#bfbfbf"}}),t._v(" 未盘点 ")],1)]),a("div",{staticStyle:{"margin-top":"10px"}},[t.data[0]?a("a-select",{staticClass:"select-roadway",attrs:{"default-value":t.data[0].name},on:{change:t.handleChange}},t._l(t.data,(function(e){return a("a-select-option",{key:e.name,attrs:{value:e.id}},[t._v(" "+t._s(e.name)+" ")])})),1):t._e()],1),a("div",{staticClass:"center-box"},[a("span",{staticClass:"shelf-number"},[t._v(" 左货架号: "+t._s(t.leftShelveId.shelveId)+" ")]),t.streetDetail.leftInsideShelveId&&t.streetDetail.leftOutsideShelveId?a("a-radio-group",{staticStyle:{margin:"10px 0"},on:{change:t.getStockRowColumn},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}},[a("a-radio-button",{attrs:{value:"leftOutsideShelveId"}},[t._v(" 外 ")]),a("a-radio-button",{attrs:{value:"leftInsideShelveId"}},[t._v(" 内 ")])],1):t._e()],1),t._l(t.data,(function(e){return a("div",{key:e.id,staticClass:"check-content"},[e.id==t.select?a("subsection",{attrs:{total:{row:e.leftColumn,column:e.leftRow},shelveId:t.leftShelveId.shelveId,streetId:e.id,streetName:e.name,type:"left",inOut:t.leftShelveId.shelveType}}):t._e()],1)})),a("div",{staticClass:"center-box"},[a("span",{staticClass:"shelf-number"},[t._v(" 右货架号: "+t._s(t.rightShelveId.shelveId)+" ")]),t.streetDetail.rightInsideShelveId&&t.streetDetail.rightOutsideShelveId?a("a-radio-group",{staticStyle:{margin:"10px 0"},on:{change:t.getStockRowColumn},model:{value:t.size2,callback:function(e){t.size2=e},expression:"size2"}},[a("a-radio-button",{attrs:{value:"rightOutsideShelveId"}},[t._v(" 外 ")]),a("a-radio-button",{attrs:{value:"rightInsideShelveId"}},[t._v(" 内 ")])],1):t._e()],1),t._l(t.data,(function(e){return a("div",{key:e.name,staticClass:"check-content"},[e.id==t.select?a("subsection",{attrs:{total:{row:e.rightColumn,column:e.rightRow},shelveId:t.rightShelveId.shelveId,streetId:e.id,streetName:e.name,type:"right",inOut:t.rightShelveId.shelveType}}):t._e()],1)}))],2)},i=[],o=(a("96cf"),a("1da1")),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"subsection"},[a("a-layout",{staticStyle:{width:"900px"}},[a("a-layout",{staticStyle:{width:"100%",height:"310px"}},[a("a-layout-sider",{attrs:{width:"110px"}},[t.total.column>t.nums.column?a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"left"},on:{change:t.changeTabLeft}},t._l(t.latticeColumn,(function(e){return a("a-tab-pane",{key:e},[a("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(t.getRandom(e,t.latticeColumn,t.nums.column,t.total.column))+" "),1===t.status.column[e]?a("a-icon",{staticStyle:{color:"#d81e06"},attrs:{type:"close-circle"}}):2===t.status.column[e]?a("a-icon",{staticStyle:{color:"#1afa29"},attrs:{type:"check-circle"}}):a("a-icon",{staticStyle:{color:"#909399"},attrs:{type:"exclamation-circle"}})],1)])})),1):t._e()],1),a("a-layout-content",[a("div",{staticClass:"roadway-buttom"},[a("div",{staticClass:"roadway-box"},t._l(t.total.column,(function(e,n){return e>=t.random.column[0]&&e<=t.random.column[1]?a("div",{key:n,staticClass:"line"},t._l(t.total.row,(function(n,i){return n>=t.random.row[0]&&n<=t.random.row[1]?a("div",{key:i,staticClass:"el"},[a("span",{staticClass:"default",attrs:{id:t.shelveId+"-"+n+"-"+e},on:{click:function(a){return t.tocheckPage(n,e)}}},[t._v(" "+t._s(n)+"-"+t._s(e)+" ")])]):t._e()})),0):t._e()})),0)])])],1),a("a-layout-footer",[t.total.row>t.nums.row?a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"bottom"},on:{change:t.changeTab}},t._l(t.latticeRow,(function(e){return a("a-tab-pane",{key:e},[a("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(t.getRandom(e,t.latticeRow,t.nums.row,t.total.row))+" "),1===t.status.row[e]?a("a-icon",{staticStyle:{color:"#d81e06"},attrs:{type:"close-circle"}}):2===t.status.row[e]?a("a-icon",{staticStyle:{color:"#1afa29"},attrs:{type:"check-circle"}}):a("a-icon",{staticStyle:{color:"#909399"},attrs:{type:"exclamation-circle"}})],1)])})),1):t._e()],1)],1)],1)},s=[],c=(a("99af"),a("d81d"),a("a9e3"),a("ac1f"),a("1276"),a("b85c")),l={name:"Subsection",components:{},props:{select:{type:Object,default:function(){return{row:1,column:1}}},total:{type:Object,default:function(){return{}}},nums:{type:Object,default:function(){return{row:15,column:10}}},shelveId:{type:String,default:function(){return{}}},streetId:{type:Number,default:function(){return{}}},streetName:{type:String,default:function(){return{}}},type:{type:String,default:function(){return{}}},inOut:{type:String,default:function(){return{}}}},computed:{latticeRow:function(){return parseInt(this.total.row/this.nums.row)+(this.total.row%this.nums.row>0?1:0)},latticeColumn:function(){return parseInt(this.total.column/this.nums.column)+(this.total.column%this.nums.column>0?1:0)},random:function(){return{row:this.getRandomRow(this.select.row),column:this.getRandomColumn(this.select.column)}},watchShelveIdInfo:function(){return this.shelveId}},watch:{watchShelveIdInfo:function(){this.getStatus()},immediate:!0},data:function(){return{status:{row:{},column:{}}}},mounted:function(){var t=this;this.$nextTick((function(){t.getStatus()}))},created:function(){},destroyed:function(){},methods:{changeTab:function(t){this.select.row=t,this.getStatus()},changeTabLeft:function(t){this.select.column=t,this.getStatus()},getRandom:function(t,e,a,n){return t!==e?"".concat((t-1)*a+1," - ").concat(t*a):"".concat((t-1)*a+1," - ").concat(n)},getRandomRow:function(t){return this.getRandom(t,this.latticeRow,this.nums.row,this.total.row).split(" - ").map((function(t){return Number(t)}))},getRandomColumn:function(t){return this.getRandom(t,this.latticeColumn,this.nums.column,this.total.column).split(" - ").map((function(t){return Number(t)}))},getStatusBg:function(t,e,a){var n=document.getElementById(this.shelveId+"-"+t+"-"+e),i=1==a?"#d81e06":2==a?"#1afa29":"#bfbfbf";n.style.background=i},getStatusTab:function(t,e,a){var n=document.getElementById(this.shelveId+"-"+a+"-"+t);console.log(n),console.log(this.shelveId+"-"+a+"-"+t),n.style.type="close-circle";var i=1==e?"#d81e06":2==e?"#1afa29":"#bfbfbf";n.style.color=i,console.log(n)},getStatus:function(){var t=this;if("{}"!=JSON.stringify(this.shelveId)){for(var e=[],a=1;a<=this.latticeColumn;a++){var n=this.getRandom(a,this.latticeColumn,this.nums.column,this.total.column);e.push(n)}for(var i=[],o=1;o<=this.latticeRow;o++){var r=this.getRandom(o,this.latticeRow,this.nums.row,this.total.row);i.push(r)}this.$api.httpApi.getStatusByRowColumn({data:{columnStart:this.random.column[0],columnEnd:this.random.column[1],rowStart:this.random.row[0],rowEnd:this.random.row[1],shelveId:this.shelveId,rowTabs:i,columnTabs:e}}).then((function(e){if(200==e.code){if(e.data.stocks){var a,n=Object(c["a"])(e.data.stocks);try{for(n.s();!(a=n.n()).done;){var i=a.value;t.getStatusBg(i.row,i.column,i.status)}}catch(u){n.e(u)}finally{n.f()}}var o=1;for(var r in e.data.columnTabStatus)t.$set(t.status.column,o,e.data.columnTabStatus[r]),o++;var s=1;for(var l in e.data.rowTabStatus)t.$set(t.status.row,s,e.data.rowTabStatus[l]),s++}})).catch((function(t){}))}},tocheckPage:function(t,e){this.$router.push({name:"checkOperation",query:{row:t,column:e,shelveId:this.shelveId,id:this.streetId,name:this.streetName,type:this.type,type2:this.inOut}})}}},u=l,d=(a("37879"),a("2877")),h=Object(d["a"])(u,r,s,!1,null,"4efd880a",null),f=h.exports,p={name:"checkManage",data:function(){return{size:"leftOutsideShelveId",size2:"rightOutsideShelveId",data:[],select:"",streetId:0,streetDetail:{},checkList:[],stockInfo:{left:{},right:{}},timer:null,leftShelveId:{},rightShelveId:{}}},computed:{},mounted:function(){this.request()},activated:function(){this.request()},beforeRouteLeave:function(t,e,a){this.timer&&clearInterval(this.timer),a()},methods:{request:function(){var t=this;this.$api.httpApi.getStreetList({data:{pageNum:1,pageSize:50}}).then((function(e){t.data=e.data.list,t.select=e.data.list[0].id,t.getStreetDetail(e.data.list[0].id)})).catch((function(t){}))},getStockRowColumn:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.rightShelveChange(),t.leftShelveChange();case 2:case"end":return e.stop()}}),e)})))()},rightShelveChange:function(){var t,e="none";this.streetDetail.rightShelveId?t=this.streetDetail.rightShelveId:this.streetDetail.rightInsideShelveId&&"rightInsideShelveId"==this.size2?(t=this.streetDetail.rightInsideShelveId,e="inside"):this.streetDetail.rightOutsideShelveId&&"rightOutsideShelveId"==this.size2&&(t=this.streetDetail.rightOutsideShelveId,e="out"),this.rightShelveId.shelveId=t,this.rightShelveId.shelveType=e},leftShelveChange:function(){var t,e="none";this.streetDetail.leftShelveId?t=this.streetDetail.leftShelveId:this.streetDetail.leftInsideShelveId&&"leftInsideShelveId"==this.size?(t=this.streetDetail.leftInsideShelveId,e="inside"):this.streetDetail.leftOutsideShelveId&&"leftOutsideShelveId"==this.size&&(t=this.streetDetail.leftOutsideShelveId,e="out"),this.leftShelveId.shelveId=t,this.leftShelveId.shelveType=e},getStatus:function(t,e){return(t[e]||{}).status},getStatusBg:function(t,e){var a=this.getStatus(t,e);return 1==a?"#d81e06":2==a?"#1afa29":"#bfbfbf"},getStreetDetail:function(t){var e=this;this.$axios.get("/street/"+t,{data:{}}).then((function(t){e.streetDetail=t.data,e.getStockRowColumn()})).catch((function(t){}))},handleChange:function(t){this.select=t,this.getStreetDetail(t),this.leftShelveChange(),this.rightShelveChange()},tocheckOperation:function(t,e){console.log(t),console.log(e),this.$router.push({name:"checkOperation",query:{checkObj:t,item:e}})},exportStock:function(){var t=this;this.$api.httpApi.exportStock({params:{streetId:this.select}}).then((function(e){var a=new Blob([e],{type:"application/vnd.ms-excel"});t.$utils.downloadFile("巷道列表.xls",a)})).catch((function(t){}))}},components:{Subsection:f}},v=p,g=(a("5fc2"),Object(d["a"])(v,n,i,!1,null,"595ce60c",null));e["default"]=g.exports},37879:function(t,e,a){"use strict";var n=a("f4b6"),i=a.n(n);i.a},"42d2":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-4efd880a]{text-align:left}.subsection[data-v-4efd880a] {width:100%;height:360px;overflow:hidden}.subsection[data-v-4efd880a] .ant-tabs-nav .ant-tabs-tab{margin-right:0}.subsection[data-v-4efd880a] .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){background:#40a9ff;border-color:#40a9ff;box-shadow:-1px 0 0 0 #40a9ff}.subsection[data-v-4efd880a] .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{background:#40a9ff;border-color:#40a9ff}.subsection[data-v-4efd880a] .ant-radio-button-wrapper-checked{box-shadow:-1px 0 0 0 #40a9ff}.subsection[data-v-4efd880a] .radio-button-cell{width:100px;text-align:center}.subsection[data-v-4efd880a] .ant-layout-sider{height:100%}.subsection[data-v-4efd880a] .ant-layout-sider .ant-tabs{height:300px}.subsection[data-v-4efd880a] .ant-layout-sider .ant-tabs-tab{padding:8px;margin-bottom:5px;width:104px}.subsection[data-v-4efd880a] .ant-layout-footer{padding:0 0 0 110px}.subsection[data-v-4efd880a] .ant-layout-footer .ant-tabs-bottom-bar{margin-top:0}.subsection[data-v-4efd880a] .ant-layout,.subsection[data-v-4efd880a] .ant-layout-footer,.subsection[data-v-4efd880a] .ant-layout-sider{background-color:#fff}.subsection[data-v-4efd880a] roadway-buttom{padding:5px 0;width:100%}.subsection[data-v-4efd880a] .roadway-box{padding:10px 10px 0 0}.subsection[data-v-4efd880a] .roadway-box .line{display:flex}.subsection[data-v-4efd880a] .roadway-box .line .el{width:46px;height:25px;line-height:25px;margin:2px;font-size:12px;text-align:center;border-radius:4px;cursor:pointer;position:relative}.subsection[data-v-4efd880a] .roadway-box .line .el .default{position:absolute;top:0;left:0;right:0;bottom:0}",""]),t.exports=e},"48fc":function(t,e,a){var n=a("cf13");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("5072deb0",n,!0,{sourceMap:!1,shadowMode:!1})},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),i=a("5899"),o="["+i+"]",r=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(t){return function(e){var a=String(n(e));return 1&t&&(a=a.replace(r,"")),2&t&&(a=a.replace(s,"")),a}};t.exports={start:c(1),end:c(2),trim:c(3)}},"5fc2":function(t,e,a){"use strict";var n=a("48fc"),i=a.n(n);i.a},7156:function(t,e,a){var n=a("861d"),i=a("d2bb");t.exports=function(t,e,a){var o,r;return i&&"function"==typeof(o=e.constructor)&&o!==a&&n(r=o.prototype)&&r!==a.prototype&&i(t,r),t}},"99af":function(t,e,a){"use strict";var n=a("23e7"),i=a("d039"),o=a("e8b5"),r=a("861d"),s=a("7b0b"),c=a("50c4"),l=a("8418"),u=a("65f0"),d=a("1dde"),h=a("b622"),f=a("2d00"),p=h("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",m=f>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),b=d("concat"),y=function(t){if(!r(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},S=!m||!b;n({target:"Array",proto:!0,forced:S},{concat:function(t){var e,a,n,i,o,r=s(this),d=u(r,0),h=0;for(e=-1,n=arguments.length;ev)throw TypeError(g);for(a=0;a=v)throw TypeError(g);l(d,h++,o)}return d.length=h,d}})},a630:function(t,e,a){var n=a("23e7"),i=a("4df4"),o=a("1c7e"),r=!o((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:r},{from:i})},a9e3:function(t,e,a){"use strict";var n=a("83ab"),i=a("da84"),o=a("94ca"),r=a("6eeb"),s=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),d=a("d039"),h=a("7c73"),f=a("241c").f,p=a("06cf").f,v=a("9bf2").f,g=a("58a8").trim,m="Number",b=i[m],y=b.prototype,S=c(h(y))==m,w=function(t){var e,a,n,i,o,r,s,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=g(l),e=l.charCodeAt(0),43===e||45===e){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(o=l.slice(2),r=o.length,s=0;si)return NaN;return parseInt(o,n)}return+l};if(o(m,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var x,I=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof I&&(S?d((function(){y.valueOf.call(a)})):c(a)!=m)?l(new b(w(e)),a,I):w(e)},k=n?f(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;k.length>C;C++)s(b,x=k[C])&&!s(I,x)&&v(I,x,p(b,x));I.prototype=y,y.constructor=I,r(i,m,I)}},b85c:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("a4d3"),a("e01a"),a("d28b"),a("d3b7"),a("3ca3"),a("ddb0"),a("a630"),a("fb6a"),a("b0c0"),a("25f0");function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,c=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return s=t.done,t},e:function(t){c=!0,r=t},f:function(){try{s||null==a["return"]||a["return"]()}finally{if(c)throw r}}}}},cf13:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-595ce60c]{text-align:left}.check-page[data-v-595ce60c]{position:relative}.check-page .title-info[data-v-595ce60c]{display:flex;align-items:center;justify-content:start}.check-page .title-info .explain[data-v-595ce60c]{font-weight:600}.check-page .title-info .info-text[data-v-595ce60c]{display:flex;align-items:center;justify-content:center;margin-right:15px}.check-page .ant-tag[data-v-595ce60c]{margin-right:0;display:block;line-height:25px;text-align:center;cursor:pointer}.check-page .roadway-top[data-v-595ce60c],.check-page roadway-buttom[data-v-595ce60c]{padding:5px 0;width:100%}.check-page .roadway-box[data-v-595ce60c]{transform:rotateX(180deg);padding:10px 10px 0 0}.check-page .roadway-box .line[data-v-595ce60c]{display:flex;transform:rotateX(180deg)}.check-page .roadway-box .line .el[data-v-595ce60c]{width:46px;height:25px;line-height:25px;margin:2px;font-size:12px;text-align:center;border-radius:4px;cursor:pointer;position:relative}.check-page .roadway-box .line .el .default[data-v-595ce60c]{position:absolute;top:0;left:0;right:0;bottom:0}.check-page .center-box[data-v-595ce60c]{width:500px;height:52px;line-height:52px}.check-page .center-box .shelf-number[data-v-595ce60c]{display:inline-block;width:200px}.check-page .export-all[data-v-595ce60c]{position:absolute;right:20px}",""]),t.exports=e},d28b:function(t,e,a){var n=a("746f");n("iterator")},e01a:function(t,e,a){"use strict";var n=a("23e7"),i=a("83ab"),o=a("da84"),r=a("5135"),s=a("861d"),c=a("9bf2").f,l=a("e893"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new u(t):void 0===t?u():u(t);return""===t&&(d[e]=!0),e};l(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,v="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;c(f,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(r(d,t))return"";var a=v?e.slice(7,-1):e.replace(g,"$1");return""===a?void 0:a}}),n({global:!0,forced:!0},{Symbol:h})}},f4b6:function(t,e,a){var n=a("42d2");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("38e85af2",n,!0,{sourceMap:!1,shadowMode:!1})},fb6a:function(t,e,a){"use strict";var n=a("23e7"),i=a("861d"),o=a("e8b5"),r=a("23cb"),s=a("50c4"),c=a("fc6a"),l=a("8418"),u=a("b622"),d=a("1dde"),h=a("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),v=u("species"),g=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!f||!p},{slice:function(t,e){var a,n,u,d=c(this),h=s(d.length),f=r(t,h),p=r(void 0===e?h:e,h);if(o(d)&&(a=d.constructor,"function"!=typeof a||a!==Array&&!o(a.prototype)?i(a)&&(a=a[v],null===a&&(a=void 0)):a=void 0,a===Array||void 0===a))return g.call(d,f,p);for(n=new(void 0===a?Array:a)(m(p-f,0)),u=0;f2&&void 0!==arguments[2]?arguments[2]:{};n(this,t),Object(c["a"])(this,"webrtc",null),Object(c["a"])(this,"video",null),Object(c["a"])(this,"server",null),Object(c["a"])(this,"codecLink",null),Object(c["a"])(this,"rsdpLink",null),Object(c["a"])(this,"stream",new MediaStream),Object(c["a"])(this,"uuid",null),Object(c["a"])(this,"options",{onStatusChange:null}),console.log("new uuid:"+i),this.server=t.server,this.video=o,this.uuid=i,Object.assign(this.options,e),this.createLinks(),this.play()}return s(t,[{key:"createLinks",value:function(){this.codecLink="//"+this.server+"/stream/codec/"+this.uuid,this.rsdpLink="//"+this.server+"/stream/receiver/"+this.uuid}},{key:"play",value:function(){var t=this;this.webrtc=new RTCPeerConnection({iceServers:[{urls:["stun:stun.l.google.com:19302"]}]}),this.webrtc||console.log("no"),this.webrtc.onnegotiationneeded=this.handleNegotiationNeeded.bind(this),this.webrtc.ontrack=this.onTrack.bind(this),fetch(this.codecLink).then((function(o){o.json().then((function(o){o.forEach((function(o,i){t.webrtc.addTransceiver(o.Type,{direction:"sendrecv"})}))}))})).catch((function(t){console.log(t)})),this.webrtc.onconnectionstatechange=function(){"connected"==t.webrtc.connectionState||"connecting"==t.webrtc.connectionState?console.log("uuid:"+t.uuid+" status:"+t.webrtc.connectionState):(console.log(t.webrtc.connectionState),t.load(t.uuid))}}},{key:"handleNegotiationNeeded",value:function(){var t=Object(e["a"])(regeneratorRuntime.mark((function t(){var o,i,e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.webrtc.createOffer();case 2:return o=t.sent,t.next=5,this.webrtc.setLocalDescription(o);case 5:i=new FormData,i.append("suuid",this.uuid),i.append("data",btoa(this.webrtc.localDescription.sdp)),fetch(this.rsdpLink,{method:"POST",body:i}).then((function(t){t.text().then((function(t){e.webrtc.setRemoteDescription(new RTCSessionDescription({type:"answer",sdp:atob(t)}))}))})).catch((function(t){}));case 9:case"end":return t.stop()}}),t,this)})));function o(){return t.apply(this,arguments)}return o}()},{key:"onTrack",value:function(t){this.stream.addTrack(t.track),this.video.srcObject=this.stream,this.video.play()}},{key:"load",value:function(t){this.destroy(),this.uuid=t,this.createLinks(),this.play()}},{key:"destroy",value:function(){console.log("destroy uuid:"+this.uuid),this.webrtc.close(),this.webrtc=null,this.video.srcObject=null,this.stream=new MediaStream}},{key:"getImageUrl",value:function(){var t=document.createElement("canvas");t.width=this.video.videoWidth,t.height=this.video.videoHeight,t.getContext("2d").drawImage(video,0,0,t.width,t.height);var o=t.toDataURL();return t.remove(),o}}],[{key:"setServer",value:function(t){this.server=t}}]),t}();Object(c["a"])(r,"server","127.0.0.1:8083");o["a"]=r},6002:function(t,o,i){var e=i("24fb");o=e(!1),o.push([t.i,".alarm .ant-form-item-label[data-v-8076da96]{text-align:left}.add-edit-model .across-layout[data-v-8076da96]{display:flex}.add-edit-model .ant-divider-horizontal[data-v-8076da96]{margin:6px 0}.test-model[data-v-8076da96]{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000;display:flex;align-items:center;justify-content:center}.test-model #video-test[data-v-8076da96]{width:100%;height:100%}.test-model .video-close[data-v-8076da96]{position:absolute;right:20px;top:20px;color:#fff;font-size:24px;width:32px;height:32px;background:rgba(0,0,0,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}.test-model .operation-list[data-v-8076da96]{position:absolute;right:200px;bottom:20px;z-index:10}.test-model .operation-list .operation-item img[data-v-8076da96]{width:42px}.test-model .operation-list .operation-item span[data-v-8076da96]{padding:5px 10px;background:rgba(0,0,0,.5);font-size:18px;color:#fff}.test-model .direction-list[data-v-8076da96]{position:absolute;right:30px;bottom:20px;width:150px;z-index:10}.test-model .direction-list .direction-item[data-v-8076da96]{display:flex;align-items:center;justify-content:space-between}.test-model .direction-list .direction-item img[data-v-8076da96]{width:42px}.test-model img[data-v-8076da96]{cursor:pointer}.config-model[data-v-8076da96]{display:flex;align-items:center;justify-content:center}.config-model .operation-list[data-v-8076da96]{position:absolute;right:1000px;bottom:20px;z-index:10}.config-model .operation-list .operation-item img[data-v-8076da96]{width:32px}.config-model .operation-list .operation-item span[data-v-8076da96]{padding:3px 6px;background:rgba(0,0,0,.5);font-size:16px;color:#fff}.config-model .direction-list[data-v-8076da96]{position:absolute;right:830px;bottom:20px;width:150px;z-index:10}.config-model .direction-list .direction-item[data-v-8076da96]{display:flex;align-items:center;justify-content:space-between}.config-model .direction-list .direction-item img[data-v-8076da96]{width:32px}.config-model img[data-v-8076da96]{cursor:pointer}.config-model .config-table[data-v-8076da96]{width:800px;height:600px;overflow:hidden}.config-model .config-table h2[data-v-8076da96]{padding:15px;font-size:20px;background:#fafafa;margin:0}.vxgplayer[data-v-8076da96]{border:none;margin:0;display:block}.ant-btn[data-v-8076da96]{white-space:inherit;text-align:left}",""]),t.exports=o},9545:function(t,o,i){"use strict";i.r(o);var e=function(){var t=this,o=t.$createElement,i=t._self._c||o;return t.isShow?i("div",["add"==t.type||"edit"==t.type?[i("a-modal",{staticClass:"add-edit-model",attrs:{title:["add"==t.type?"新增球机":"编辑球机"],closable:t.closable,"ok-text":"确认","cancel-text":"取消"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.isShow,callback:function(o){t.isShow=o},expression:"isShow"}},[i("a-form",{attrs:{form:t.form,"wrapper-col":t.formItemAcrossLayout.wrapperCol}},[i("a-form-item",{attrs:{label:"球机名称","label-col":t.formItemVerticalLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入球机名称!"}]}],expression:"['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]"}]})],1),i("a-form-item",{attrs:{label:"球机IP","label-col":t.formItemVerticalLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ip",{rules:[{required:!0,message:"请输入球机ip!"}]}],expression:"['ip', { rules: [{ required: true, message: '请输入球机ip!' }] }]"}]})],1)],1)],1)]:"test"==t.type?[i("a-modal",{staticClass:"config-model",attrs:{footer:null,maskClosable:!1,width:"1600px",bodyStyle:{padding:0,display:"flex"},centered:!0},on:{cancel:t.handleCancel},model:{value:t.isShow,callback:function(o){t.isShow=o},expression:"isShow"}},[i("div",{staticClass:"test-model"},[i("video",{attrs:{width:"80%",height:"80%",id:"camera"+t.id,autoplay:"",muted:""},domProps:{muted:!0}}),i("div",{staticClass:"operation-list"},[i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.zoomSubUrl,alt:""},on:{mousedown:t.zoomDecStart,mouseup:t.zoomDecStop}}),i("span",[t._v("变倍")]),i("img",{attrs:{src:t.zoomAddUrl,alt:""},on:{mousedown:t.zoomAddStart,mouseup:t.zoomAddStop}})]),i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.focusSubUrl,alt:""},on:{mousedown:t.focusDecStart,mouseup:t.focusDecStop}}),i("span",[t._v("变焦")]),i("img",{attrs:{src:t.focusAddUrl,alt:""},on:{mousedown:t.focusAddStart,mouseup:t.focusAddStop}})]),i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.irisSubUrl,alt:""},on:{mousedown:t.irisDecStart,mouseup:t.irisDecStop}}),i("span",[t._v("光圈")]),i("img",{attrs:{src:t.irisAddUrl,alt:""},on:{mousedown:t.irisAddStart,mouseup:t.irisAddStop}})])]),i("div",{staticClass:"direction-list"},[i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftUpUrl,alt:""},on:{mousedown:t.leftUpStart,mouseup:t.leftUpStop}}),i("img",{attrs:{src:t.upUrl,alt:""},on:{mousedown:t.upStart,mouseup:t.upStop}}),i("img",{attrs:{src:t.rightUpUrl,alt:""},on:{mousedown:t.rightUpStart,mouseup:t.rightUpStop}})]),i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftUrl,alt:""},on:{mousedown:t.leftStart,mouseup:t.leftStop}}),i("img",{attrs:{src:t.rightUrl,alt:""},on:{mousedown:t.rightStart,mouseup:t.rightStop}})]),i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftDownUrl,alt:""},on:{mousedown:t.leftDownStart,mouseup:t.leftDownStop}}),i("img",{attrs:{src:t.downUrl,alt:""},on:{mousedown:t.downStart,mouseup:t.downStop}}),i("img",{attrs:{src:t.rightDownUrl,alt:""},on:{mousedown:t.rightDownStart,mouseup:t.rightDownStop}})])])])])]:"config"==t.type?[i("a-modal",{staticClass:"config-model",attrs:{footer:null,maskClosable:!1,width:"1600px",bodyStyle:{padding:0,display:"flex"},centered:!0},on:{cancel:t.handleCancel},model:{value:t.isShow,callback:function(o){t.isShow=o},expression:"isShow"}},[i("video",{attrs:{width:"900",height:"600",id:"camera"+t.id,autoplay:"",muted:""},domProps:{muted:!0}}),i("div",{staticClass:"operation-list"},[i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.zoomSubUrl,alt:""},on:{mousedown:t.zoomDecStart,mouseup:t.zoomDecStop}}),i("span",[t._v("变倍")]),i("img",{attrs:{src:t.zoomAddUrl,alt:""},on:{mousedown:t.zoomAddStart,mouseup:t.zoomAddStop}})]),i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.focusSubUrl,alt:""},on:{mousedown:t.focusDecStart,mouseup:t.focusDecStop}}),i("span",[t._v("变焦")]),i("img",{attrs:{src:t.focusAddUrl,alt:""},on:{mousedown:t.focusAddStart,mouseup:t.focusAddStop}})]),i("div",{staticClass:"operation-item"},[i("img",{attrs:{src:t.irisSubUrl,alt:""},on:{mousedown:t.irisDecStart,mouseup:t.irisDecStop}}),i("span",[t._v("光圈")]),i("img",{attrs:{src:t.irisAddUrl,alt:""},on:{mousedown:t.irisAddStart,mouseup:t.irisAddStop}})])]),i("div",{staticClass:"direction-list"},[i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftUpUrl,alt:""},on:{mousedown:t.leftUpStart,mouseup:t.leftUpStop}}),i("img",{attrs:{src:t.upUrl,alt:""},on:{mousedown:t.upStart,mouseup:t.upStop}}),i("img",{attrs:{src:t.rightUpUrl,alt:""},on:{mousedown:t.rightUpStart,mouseup:t.rightUpStop}})]),i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftUrl,alt:""},on:{mousedown:t.leftStart,mouseup:t.leftStop}}),i("img",{attrs:{src:t.rightUrl,alt:""},on:{mousedown:t.rightStart,mouseup:t.rightStop}})]),i("div",{staticClass:"direction-item"},[i("img",{attrs:{src:t.leftDownUrl,alt:""},on:{mousedown:t.leftDownStart,mouseup:t.leftDownStop}}),i("img",{attrs:{src:t.downUrl,alt:""},on:{mousedown:t.downStart,mouseup:t.downStop}}),i("img",{attrs:{src:t.rightDownUrl,alt:""},on:{mousedown:t.rightDownStart,mouseup:t.rightDownStop}})])]),i("div",{staticClass:"config-table"},[i("h2",[t._v("球机配置")]),i("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.name},"data-source":t.configData,bordered:"",pagination:!1,scroll:{y:335}},on:{change:t.getConfigIoList},scopedSlots:t._u([{key:"name",fn:function(o,e){return i("span",{},[i("a-button",{attrs:{type:"link"},on:{click:function(o){return t.toPtz(e)}}},[t._v(t._s(o)+"("+t._s(e.code)+")")])],1)}},{key:"position",fn:function(o,e){return i("span",{},[o?i("div",[t._v(" 已写入 "),i("a-button",{staticClass:"plc",attrs:{type:"link"},on:{click:function(o){return t.coverage(0,e)}}},[t._v(" 覆盖 ")])],1):i("a-button",{staticClass:"plc",attrs:{type:"primary"},on:{click:function(o){return t.coverage(0,e)}}},[t._v(" 写入 ")])],1)}}],null,!1,2762861366)})],1)])]:t._e()],2):t._e()},n=[],a=(i("b0c0"),i("d3b7"),i("25f0"),i("3ea2")),s={labelCol:{span:8},wrapperCol:{span:14}},c={labelCol:{span:4},wrapperCol:{span:8,offset:4}},r=[{title:"PLC IO指令",dataIndex:"name",scopedSlots:{customRender:"name"}},{title:"配置",dataIndex:"position",scopedSlots:{customRender:"position"}}],d={props:["visible","modelType","modelData"],watch:{visible:function(t){this.isShow=t},modelType:function(t){this.type=t},modelData:function(t){var o=this;this.mdata=t,console.log(this.type),t.id&&"edit"==this.type?(this.id=t.id,this.$nextTick((function(){o.form.setFieldsValue({name:t.name,ip:t.ip,rtsp:t.rtsp})}))):t.id&&"config"==this.type&&(this.id=t.id,this.mdata=t,console.log(t),this.$nextTick((function(){console.log(t.rtsp),o.getConfigIoList()})))}},data:function(){return{isShow:!1,player:null,type:"",title:"",closable:!1,formItemAcrossLayout:s,formItemVerticalLayout:c,confirmLoading:!1,form:this.$form.createForm(this,{name:"dynamic_rule"}),id:"",mdata:[],zoomSubUrl:i("a49c"),zoomAddUrl:i("42f5"),focusSubUrl:i("a49c"),focusAddUrl:i("42f5"),irisSubUrl:i("a49c"),irisAddUrl:i("42f5"),leftUpUrl:i("6dc0"),upUrl:i("90e6"),rightUpUrl:i("298d"),leftUrl:i("cce0"),rightUrl:i("cd76"),leftDownUrl:i("30fb"),downUrl:i("5046"),rightDownUrl:i("883f"),columns:r,configData:[]}},mounted:function(){var t=this;this.setVideoServer(),"test"==this.$route.query.modelType?(this.isShow=!0,this.id=this.$route.query.modelData.id,this.type=this.$route.query.modelType,this.mdata=this.$route.query.modelData,this.$nextTick((function(){t.autoPlay(t.id)}))):"config"==this.$route.query.modelType&&(this.isShow=!0,this.id=this.$route.query.modelData.id,this.type=this.$route.query.modelType,this.mdata=this.$route.query.modelData,this.$nextTick((function(){t.autoPlay(t.id)})),this.getConfigIoList())},destroy:function(){},methods:{handleOk:function(){var t=this;this.confirmLoading=!0,setTimeout((function(){t.form.validateFields((function(o,i){console.log(i),o||(console.log(t.title),"add"==t.type?t.$api.httpApi.addCamera({data:i}).then((function(o){200==o.code&&(t.$emit("sure",!1),t.$message.success("新增球机成功"))})).catch((function(t){})):"edit"==t.type&&(i.id=t.id,t.$api.httpApi.editCamera({data:i}).then((function(o){200==o.code&&(t.$emit("sure",!1),t.$message.success("编辑球机成功"))})).catch((function(t){}))))})),t.confirmLoading=!1}),500)},handleCancel:function(){this.player.destroy(),console.log("Clicked cancel button"),this.$emit("close",!1,{}),("test"==this.type||"config"==this.type)&&(this.$router.go(-1),this.player=null)},autoPlay:function(t){var o=document.getElementById("camera"+t),i=new a["a"](o,"camera"+t);i.load("camera"+t),this.player=i},setVideoServer:function(){this.$api.httpApi.getVideoServer({data:{}}).then((function(t){200==t.code&&a["a"].setServer(t.data.toString())})).catch((function(t){console.log(t)}))},getConfigIoList:function(){var t=this;this.$axios.post("/camera/"+this.id+"/io/list",{data:{}}).then((function(o){console.log(o),200==o.code&&(t.configData=o.data)})).catch((function(t){}))},coverage:function(t,o){var i=this;this.$api.httpApi.writeInCameraIoptz({data:{cameraId:this.id,cameraIOId:o.id,name:o.name,code:o.code,type:t}}).then((function(t){i.getConfigIoList()})).catch((function(t){}))},toPtz:function(t){this.$api.httpApi.cameraIoToPtz({data:{cameraId:this.id,cameraIOId:t.id,name:t.name}}).then((function(t){console.log(t)})).catch((function(t){}))},zoomDecStart:function(){console.log("变倍-按下"),this.zoomSubUrl=i("3b7d"),this.$axios.post("/camera/control/zoomDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomDecStop:function(){console.log("变倍-抬起"),this.zoomSubUrl=i("a49c"),this.$axios.post("/camera/control/zoomDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomAddStart:function(){console.log("变倍+按下"),this.zoomAddUrl=i("f88c"),this.$axios.post("/camera/control/zoomAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomAddStop:function(){console.log("变倍+抬起"),this.zoomAddUrl=i("42f5"),this.$axios.post("/camera/control/zoomAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusDecStart:function(){console.log("变焦-按下"),this.focusSubUrl=i("3b7d"),this.$axios.post("/camera/control/focusDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusDecStop:function(){console.log("变焦-抬起"),this.focusSubUrl=i("a49c"),this.$axios.post("/camera/control/focusDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusAddStart:function(){console.log("变焦+按下"),this.focusAddUrl=i("f88c"),this.$axios.post("/camera/control/focusAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusAddStop:function(){console.log("变焦+抬起"),this.focusAddUrl=i("42f5"),this.$axios.post("/camera/control/focusAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisDecStart:function(){console.log("光圈-按下"),this.irisSubUrl=i("3b7d"),this.$axios.post("/camera/control/irisDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisDecStop:function(){console.log("光圈-抬起"),this.irisSubUrl=i("a49c"),this.$axios.post("/camera/control/irisDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisAddStart:function(){console.log("光圈+按下"),this.irisAddUrl=i("f88c"),this.$axios.post("/camera/control/irisAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisAddStop:function(){console.log("光圈+抬起"),this.irisAddUrl=i("42f5"),this.$axios.post("/camera/control/irisAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftUpStart:function(){console.log("左上鼠标按下"),this.leftUpUrl=i("13fc"),this.$axios.post("/camera/control/leftUp/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftUpStop:function(){console.log("左上鼠标抬起"),this.leftUpUrl=i("6dc0"),this.$axios.post("/camera/control/leftUp/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},upStart:function(){console.log("上鼠标按下"),this.upUrl=i("ad2e"),this.$axios.post("/camera/control/up/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},upStop:function(){console.log("上鼠标抬起"),this.upUrl=i("90e6"),this.$axios.post("/camera/control/up/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightUpStart:function(){console.log("右上鼠标按下"),this.rightUpUrl=i("5bc3"),this.$axios.post("/camera/control/rightUp/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightUpStop:function(){console.log("右上鼠标抬起"),this.rightUpUrl=i("298d"),this.$axios.post("/camera/control/rightUp/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftStart:function(){console.log("左转鼠标按下"),this.leftUrl=i("2216"),this.$axios.post("/camera/control/left/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftStop:function(){this.leftUrl=i("cce0"),console.log("左转鼠标抬起"),this.$axios.post("/camera/control/left/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightStart:function(){console.log("右转鼠标按下"),this.rightUrl=i("b241"),this.$axios.post("/camera/control/right/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightStop:function(){console.log("右转鼠标抬起"),this.rightUrl=i("cd76"),this.$axios.post("/camera/control/right/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftDownStart:function(){console.log("左下鼠标按下"),this.leftDownUrl=i("1e74"),this.$axios.post("/camera/control/leftDown/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftDownStop:function(){console.log("左下鼠标抬起"),this.leftDownUrl=i("30fb"),this.$axios.post("/camera/control/leftDown/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},downStart:function(){console.log("下鼠标按下"),this.downUrl=i("3c12"),this.$axios.post("/camera/control/down/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},downStop:function(){console.log("下鼠标抬起"),this.downUrl=i("5046"),this.$axios.post("/camera/control/down/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightDownStart:function(){console.log("右下鼠标按下"),this.rightDownUrl=i("5cf9"),this.$axios.post("/camera/control/rightDown/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightDownStop:function(){console.log("右下鼠标抬起"),this.rightDownUrl=i("883f"),this.$axios.post("/camera/control/rightDown/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))}}},l=d,u=(i("a2a3"),i("2877")),h=Object(u["a"])(l,e,n,!1,null,"8076da96",null);o["default"]=h.exports},a2a3:function(t,o,i){"use strict";var e=i("c1e6"),n=i.n(e);n.a},c1e6:function(t,o,i){var e=i("6002");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=i("499e").default;n("a40c5490",e,!0,{sourceMap:!1,shadowMode:!1})}}]); \ No newline at end of file diff --git a/js/chunk-47777934.4dc15f4a.js b/js/chunk-47777934.4dc15f4a.js new file mode 100644 index 0000000..c4efff9 --- /dev/null +++ b/js/chunk-47777934.4dc15f4a.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47777934"],{"02d3":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"checkOperation"},[i("div",{staticClass:"topMenu"},[t.listData[0]?i("a-select",{staticClass:"select-roadway",staticStyle:{width:"160px","margin-right":"25px"},attrs:{"default-value":t.selectName},on:{change:t.handleChange}},t._l(t.listData,(function(e){return i("a-select-option",{key:e.name,attrs:{value:e.id}},[t._v(" "+t._s(e.name)+" ")])})),1):t._e(),i("a-select",{staticStyle:{width:"160px","margin-right":"25px"},attrs:{value:t.selectType},on:{change:t.handleTypeChange}},[i("a-select-option",{attrs:{value:"left"}},[t._v(" 左货架 ")]),i("a-select-option",{attrs:{value:"right"}},[t._v(" 右货架 ")])],1),"none"!==t.selectType2&&""!==t.selectType2?i("a-select",{staticStyle:{width:"160px"},attrs:{value:t.selectType2},on:{change:t.sideStreetChange}},[i("a-select-option",{attrs:{value:"out"}},[t._v(" 外 ")]),i("a-select-option",{attrs:{value:"inside"}},[t._v(" 内 ")])],1):t._e(),i("span",[t._v(" 货架号 : "+t._s(t.shelveId)+" "+t._s(t.rowCount)+" "+t._s(t.columnCount)+" ")])],1),i("div",[i("div",{staticClass:"carousel-page"},[i("div",{staticClass:"carousel-page-content"},[i("div",{staticClass:"img-box"},[i("ul",[i("li",[i("span",{staticClass:"img-box-title"},[t._v(" 核对状态: ")]),i("span",{staticClass:"img-box-value"},[t._v(" "+t._s(t.statusMap[t.checkObj.status])+" ")])]),t._l(t.params,(function(e){return i("li",{key:e.label},[i("span",{staticClass:"img-box-title"},[t._v(" "+t._s(e.label)+": ")]),i("span",{staticClass:"img-box-value"},[t._v(" "+t._s(t.checkObj[e.key])+" ")])])})),t._m(0),[t.checkObj.checkPic?i("span",[i("happy-scroll",{staticClass:"scroll-box",staticStyle:{width:"50",height:"90px"},attrs:{color:"rgba(100,100,100,0.5)",size:"1"}},[i("viewer",[i("img",{staticClass:"historyImg",attrs:{src:t.imgUrl+t.checkObj.checkPic}})])],1)],1):i("span",[t._v(" 暂无盘点图 ")])]],2)]),i("div",{staticClass:"img-box"},[t.checkObj.preoperationPic?i("img",{staticStyle:{width:"100%",height:"358px"},attrs:{src:t.imgUrl+t.checkObj.preoperationPic,alt:""}}):i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",width:"600px",height:"400px",background:"#eaeaea"}},[t._v(" 暂无图片 ")]),i("p",[t._v("操作前照片")])]),i("div",{staticClass:"img-box"},[t.checkObj.overoperationPic?i("img",{staticStyle:{width:"100%",height:"358px"},attrs:{src:t.imgUrl+t.checkObj.overoperationPic,alt:""}}):i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",width:"600px",height:"400px",background:"#eaeaea"}},[t._v(" 暂无图片 ")]),i("p",[t._v("操作后照片")])])])]),i("div",{staticClass:"bottom-btn"},[i("a-button",{staticClass:"btn",staticStyle:{background:"#29c12b","border-color":"#29c12b"},attrs:{type:"primary"},on:{click:function(e){return t.checkSure(t.checkObj.row,t.checkObj.column,t.checkObj.shelveId,t.index)}}},[t._v("核对 ")])],1),i("div",{staticClass:"bottom-btn"},[i("a-button",{staticClass:"btn",on:{click:function(e){return t.prev()}}},[t._v("<上一个")]),i("p",[t._v(t._s(t.checkObj.row)+"行"+t._s(t.checkObj.column)+"列")]),i("a-button",{staticClass:"btn",on:{click:function(e){return t.next()}}},[t._v("下一个> ")])],1)]),i("Model",{attrs:{visible:t.visible,modelData:t.modelData,index:t.index},on:{"update:visible":function(e){t.visible=e},"update:modelData":function(e){t.modelData=e},"update:model-data":function(e){t.modelData=e},sure:t.submit,close:t.closeModel}})],1)},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",[i("span",{staticClass:"img-box-title"},[t._v(" 盘点图: ")])])}],a=(i("b0c0"),i("a9e3"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShow?i("div",[i("a-modal",{staticClass:"p-model",attrs:{title:"复核调整",closable:t.closable,"ok-text":"确认","cancel-text":"取消"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[i("a-form",{attrs:{form:t.form,"wrapper-col":t.formItemAcrossLayout.wrapperCol}},[i("a-form-item",{attrs:{label:"品规","label-col":t.formItemAcrossLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["category",{rules:[{required:!0,message:"请输入品规名称!"}]}],expression:"['category', {rules: [{ required: true, message: '请输入品规名称!' }] }]"}],on:{input:t.onInput}}),t.searchListShow?i("happy-scroll",{staticClass:"search-list"},t._l(t.searchList,(function(e,s){return i("div",{key:s,staticClass:"search-item",on:{click:function(i){return t.select(e.name)}}},[t._v(" "+t._s(e.name)+" ")])})),0):t._e()],1),i("a-form-item",{attrs:{label:"数量","label-col":t.formItemAcrossLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["count",{rules:[{required:!0,message:"请输入数量!"}]}],expression:"['count', {rules: [{ required: true, message: '请输入数量!' }] }]"}]})],1)],1)],1)],1):t._e()}),n=[],l=i("5530"),r={labelCol:{span:8},wrapperCol:{span:14}},c={labelCol:{span:4},wrapperCol:{span:8,offset:4}},h={props:["visible","modelData","index"],watch:{visible:function(t){this.isShow=t},modelData:function(t){var e=this;console.log(t),this.mData=t,this.$nextTick((function(){e.form.setFieldsValue({category:t.category,count:t.count})}))},index:function(t){this.i=t}},data:function(){return{isShow:!1,title:"",closable:!1,confirmLoading:!1,form:this.$form.createForm(this,{name:"dynamic_rule"}),formItemAcrossLayout:r,formItemVerticalLayout:c,category:"",searchList:[],searchListShow:!1,mData:{},i:0}},mounted:function(){console.log("mounted执行了")},methods:{handleOk:function(){var t=this;"{}"!==JSON.stringify(this.mData)?(this.confirmLoading=!0,setTimeout((function(){t.form.validateFields((function(e,i){console.log(i),e||t.$api.httpApi.stockCheckByMan({data:Object(l["a"])(Object(l["a"])({},i),{},{column:t.mData.column,row:t.mData.row,shelveId:t.mData.shelveId})}).then((function(e){200==e.code&&(t.$emit("sure",!1,t.i),t.$message.success("复核成功"))})).catch((function(t){}))})),t.confirmLoading=!1}),500)):this.$message.error("该货位暂时没有记录")},handleCancel:function(){console.log("Clicked cancel button"),this.$emit("close",!1,{})},onInput:function(t){var e=this;console.log(this.form.getFieldValue("category"));var i=this.form.getFieldValue("category");this.$api.httpApi.getCategoryList({params:{name:i}}).then((function(t){200==t.code&&(e.searchList=t.data,t.data.length>0&&(e.searchListShow=!0))})).catch((function(t){}))},select:function(t){this.form.setFieldsValue({category:t}),this.searchListShow=!1}}},u=h,d=(i("f3a2"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"435504d0",null),f=p.exports,m=i("2000"),g={data:function(){return{listData:[],scanAndCheck:{},checkObj:{},streetDetail:{},checkList:{},id:0,row:1,column:1,rowCount:0,columnCount:0,selectName:"",shelveId:"",selectType:"left",selectType2:"",visible:!1,category:"",count:0,modelData:{},index:0,imgUrl:"",params:[{label:"工单号",key:"orderNum"},{label:"系统条码号",key:"wmsCode"},{label:"扫描条码号",key:"code"}],statusMap:{0:"未盘点",1:"盘点异常",2:"核对正确"}}},beforeRouteLeave:function(t,e,i){this.$destroy()},created:function(){this.imgUrl=m["a"],console.log(this.$route.query.id),this.getStreetList(),this.$route.query.row&&this.$route.query.column&&this.$route.query.shelveId&&this.$route.query.id&&this.$route.query.name&&(this.id=this.$route.query.id,this.row=this.$route.query.row,this.column=this.$route.query.column,this.shelveId=this.$route.query.shelveId,this.selectName=this.$route.query.name,this.selectType=this.$route.query.type,this.selectType2=this.$route.query.type2,this.getStockInfo(this.row,this.column,this.shelveId))},mounted:function(){},components:{Model:f},methods:{getStreetList:function(){var t=this;this.$api.httpApi.getStreetList({data:{pageNum:1,pageSize:50}}).then((function(e){t.listData=e.data.list,t.select=t.id,t.getStreetDetail(t.id)})).catch((function(t){console.error(t)}))},getStreetDetail:function(t){var e=this;this.$axios.get("/street/"+t,{data:{}}).then((function(t){e.streetDetail=t.data,e.getRowColumnCounts()})).catch((function(t){}))},getRowColumnCounts:function(){this.updateShleveAndRowColumnCount(this.selectType)},getStockInfo:function(t,e,i){var s=this;this.$api.httpApi.getStockInfo({data:{row:Number(t),column:Number(e),shelveId:i}}).then((function(t){t.data&&(s.checkObj=t.data)})).catch((function(t){console.log(t)}))},handleChange:function(t){this.select=t,this.id=t,this.row=1,this.column=1,this.getStreetList();for(var e=0;e1?this.column=this.column-1:this.row>1?(this.row=this.row-1,this.column=this.columnCount):(this.row=this.rowCount,this.column=this.columnCount),this.getStockInfo(this.row,this.column,this.shelveId)},next:function(){this.column2)if(c=g(c),e=c.charCodeAt(0),43===e||45===e){if(i=c.charCodeAt(2),88===i||120===i)return NaN}else if(48===e){switch(c.charCodeAt(1)){case 66:case 98:s=2,o=49;break;case 79:case 111:s=8,o=55;break;default:return+c}for(a=c.slice(2),n=a.length,l=0;lo)return NaN;return parseInt(a,s)}return+c};if(a(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var k,C=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof C&&(y?u((function(){x.valueOf.call(i)})):r(i)!=v)?c(new b(w(e)),i,C):w(e)},I=s?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;I.length>S;S++)l(b,k=I[S])&&!l(C,k)&&m(C,k,f(b,k));C.prototype=x,x.constructor=C,n(o,v,C)}},ae5c:function(t,e,i){var s=i("16cf");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var o=i("499e").default;o("1db0f4a1",s,!0,{sourceMap:!1,shadowMode:!1})},db07:function(t,e,i){var s=i("3f88");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var o=i("499e").default;o("3e9bf9a5",s,!0,{sourceMap:!1,shadowMode:!1})},f3a2:function(t,e,i){"use strict";var s=i("db07"),o=i.n(s);o.a}}]); \ No newline at end of file diff --git a/js/chunk-47777934.c7f8e6fb.js b/js/chunk-47777934.c7f8e6fb.js deleted file mode 100644 index 0ef3a79..0000000 --- a/js/chunk-47777934.c7f8e6fb.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47777934"],{"02d3":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"checkOperation"},[i("div",{staticClass:"topMenu"},[t.listData[0]?i("a-select",{staticClass:"select-roadway",staticStyle:{width:"160px","margin-right":"25px"},attrs:{"default-value":t.selectName},on:{change:t.handleChange}},t._l(t.listData,(function(e){return i("a-select-option",{key:e.name,attrs:{value:e.id}},[t._v(" "+t._s(e.name)+" ")])})),1):t._e(),i("a-select",{staticStyle:{width:"160px","margin-right":"25px"},attrs:{value:t.selectType},on:{change:t.handleTypeChange}},[i("a-select-option",{attrs:{value:"left"}},[t._v(" 左货架 ")]),i("a-select-option",{attrs:{value:"right"}},[t._v(" 右货架 ")])],1),"none"!==t.selectType2&&""!==t.selectType2?i("a-select",{staticStyle:{width:"160px"},attrs:{value:t.selectType2},on:{change:t.sideStreetChange}},[i("a-select-option",{attrs:{value:"out"}},[t._v(" 外 ")]),i("a-select-option",{attrs:{value:"inside"}},[t._v(" 内 ")])],1):t._e(),i("span",[t._v(" 货架号 : "+t._s(t.shelveId)+" "+t._s(t.rowCount)+" "+t._s(t.columnCount)+" ")])],1),i("div",[i("div",{staticClass:"carousel-page"},[i("div",{staticClass:"carousel-page-content"},[i("div",{staticClass:"img-box"},[i("ul",[i("li",[i("span",{staticClass:"img-box-title"},[t._v(" 核对状态: ")]),i("span",{staticClass:"img-box-value"},[t._v(" "+t._s(t.statusMap[t.checkObj.status])+" ")])]),t._l(t.params,(function(e){return i("li",{key:e.label},[i("span",{staticClass:"img-box-title"},[t._v(" "+t._s(e.label)+": ")]),i("span",{staticClass:"img-box-value"},[t._v(" "+t._s(t.checkObj[e.key])+" ")])])})),t._m(0),[t.checkObj.checkPic?i("span",[i("happy-scroll",{staticClass:"scroll-box",staticStyle:{width:"50",height:"90px"},attrs:{color:"rgba(100,100,100,0.5)",size:"1"}},[i("viewer",[i("img",{staticClass:"historyImg",attrs:{src:t.imgUrl+t.checkObj.checkPic}})])],1)],1):i("span",[t._v(" 暂无盘点图 ")])]],2)]),i("div",{staticClass:"img-box"},[t.checkObj.preoperationPic?i("img",{staticStyle:{width:"100%",height:"358px"},attrs:{src:t.imgUrl+t.checkObj.preoperationPic,alt:""}}):i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",width:"600px",height:"400px",background:"#eaeaea"}},[t._v(" 暂无图片 ")]),i("p",[t._v("操作前照片")])]),i("div",{staticClass:"img-box"},[t.checkObj.overoperationPic?i("img",{staticStyle:{width:"100%",height:"358px"},attrs:{src:t.imgUrl+t.checkObj.overoperationPic,alt:""}}):i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",width:"600px",height:"400px",background:"#eaeaea"}},[t._v(" 暂无图片 ")]),i("p",[t._v("操作后照片")])])])]),i("div",{staticClass:"carousel-page-footer"},[0==t.checkObj.status?i("div",{staticClass:"status-btn"},[i("a-button",{staticClass:"btn",staticStyle:{background:"#29c12b","border-color":"#29c12b"},attrs:{type:"primary"},on:{click:function(e){return t.checkSure(t.checkObj.row,t.checkObj.column,t.checkObj.shelveId,t.index)}}},[t._v("核对正确 ")])],1):t._e(),1==t.checkObj.status||2==t.checkObj.status?i("div",{staticClass:"status-btn"},[i("a-button",{staticClass:"btn",attrs:{type:"danger"},on:{click:function(e){return t.showModel(t.checkObj,t.index)}}},[t._v("核对错误 ")]),i("a-button",{staticClass:"btn",staticStyle:{background:"#29c12b","border-color":"#29c12b"},attrs:{type:"primary"},on:{click:function(e){return t.checkSure(t.checkObj.row,t.checkObj.column,t.checkObj.shelveId,t.index)}}},[t._v("核对正确 ")])],1):t._e()]),i("div",{staticClass:"bottom-btn"},[i("a-button",{staticClass:"btn",on:{click:function(e){return t.prev()}}},[t._v("<上一个")]),i("p",[t._v(t._s(t.checkObj.row)+"行"+t._s(t.checkObj.column)+"列")]),i("a-button",{staticClass:"btn",on:{click:function(e){return t.next()}}},[t._v("下一个> ")])],1)]),i("Model",{attrs:{visible:t.visible,modelData:t.modelData,index:t.index},on:{"update:visible":function(e){t.visible=e},"update:modelData":function(e){t.modelData=e},"update:model-data":function(e){t.modelData=e},sure:t.submit,close:t.closeModel}})],1)},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",[i("span",{staticClass:"img-box-title"},[t._v(" 盘点图: ")])])}],a=(i("b0c0"),i("a9e3"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.isShow?i("div",[i("a-modal",{staticClass:"p-model",attrs:{title:"复核调整",closable:t.closable,"ok-text":"确认","cancel-text":"取消"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.isShow,callback:function(e){t.isShow=e},expression:"isShow"}},[i("a-form",{attrs:{form:t.form,"wrapper-col":t.formItemAcrossLayout.wrapperCol}},[i("a-form-item",{attrs:{label:"品规","label-col":t.formItemAcrossLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["category",{rules:[{required:!0,message:"请输入品规名称!"}]}],expression:"['category', {rules: [{ required: true, message: '请输入品规名称!' }] }]"}],on:{input:t.onInput}}),t.searchListShow?i("happy-scroll",{staticClass:"search-list"},t._l(t.searchList,(function(e,s){return i("div",{key:s,staticClass:"search-item",on:{click:function(i){return t.select(e.name)}}},[t._v(" "+t._s(e.name)+" ")])})),0):t._e()],1),i("a-form-item",{attrs:{label:"数量","label-col":t.formItemAcrossLayout.labelCol}},[i("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["count",{rules:[{required:!0,message:"请输入数量!"}]}],expression:"['count', {rules: [{ required: true, message: '请输入数量!' }] }]"}]})],1)],1)],1)],1):t._e()}),n=[],l=i("5530"),c={labelCol:{span:8},wrapperCol:{span:14}},r={labelCol:{span:4},wrapperCol:{span:8,offset:4}},h={props:["visible","modelData","index"],watch:{visible:function(t){this.isShow=t},modelData:function(t){var e=this;console.log(t),this.mData=t,this.$nextTick((function(){e.form.setFieldsValue({category:t.category,count:t.count})}))},index:function(t){this.i=t}},data:function(){return{isShow:!1,title:"",closable:!1,confirmLoading:!1,form:this.$form.createForm(this,{name:"dynamic_rule"}),formItemAcrossLayout:c,formItemVerticalLayout:r,category:"",searchList:[],searchListShow:!1,mData:{},i:0}},mounted:function(){console.log("mounted执行了")},methods:{handleOk:function(){var t=this;"{}"!==JSON.stringify(this.mData)?(this.confirmLoading=!0,setTimeout((function(){t.form.validateFields((function(e,i){console.log(i),e||t.$api.httpApi.stockCheckByMan({data:Object(l["a"])(Object(l["a"])({},i),{},{column:t.mData.column,row:t.mData.row,shelveId:t.mData.shelveId})}).then((function(e){200==e.code&&(t.$emit("sure",!1,t.i),t.$message.success("复核成功"))})).catch((function(t){}))})),t.confirmLoading=!1}),500)):this.$message.error("该货位暂时没有记录")},handleCancel:function(){console.log("Clicked cancel button"),this.$emit("close",!1,{})},onInput:function(t){var e=this;console.log(this.form.getFieldValue("category"));var i=this.form.getFieldValue("category");this.$api.httpApi.getCategoryList({params:{name:i}}).then((function(t){200==t.code&&(e.searchList=t.data,t.data.length>0&&(e.searchListShow=!0))})).catch((function(t){}))},select:function(t){this.form.setFieldsValue({category:t}),this.searchListShow=!1}}},u=h,d=(i("f3a2"),i("2877")),p=Object(d["a"])(u,a,n,!1,null,"435504d0",null),f=p.exports,m=i("2000"),g={data:function(){return{listData:[],scanAndCheck:{},checkObj:{},streetDetail:{},checkList:{},id:0,row:1,column:1,rowCount:0,columnCount:0,selectName:"",shelveId:"",selectType:"left",selectType2:"",visible:!1,category:"",count:0,modelData:{},index:0,imgUrl:"",params:[{label:"工单号",key:"orderNum"},{label:"系统条码号",key:"wmsCode"},{label:"扫描条码号",key:"code"}],statusMap:{0:"未盘点",1:"盘点异常",2:"核对正确"}}},beforeRouteLeave:function(t,e,i){this.$destroy()},created:function(){this.imgUrl=m["a"],console.log(this.$route.query.id),this.getStreetList(),this.$route.query.row&&this.$route.query.column&&this.$route.query.shelveId&&this.$route.query.id&&this.$route.query.name&&(this.id=this.$route.query.id,this.row=this.$route.query.row,this.column=this.$route.query.column,this.shelveId=this.$route.query.shelveId,this.selectName=this.$route.query.name,this.selectType=this.$route.query.type,this.selectType2=this.$route.query.type2,this.getStockInfo(this.row,this.column,this.shelveId))},mounted:function(){},components:{Model:f},methods:{getStreetList:function(){var t=this;this.$api.httpApi.getStreetList({data:{pageNum:1,pageSize:50}}).then((function(e){t.listData=e.data.list,t.select=t.id,t.getStreetDetail(t.id)})).catch((function(t){console.error(t)}))},getStreetDetail:function(t){var e=this;this.$axios.get("/street/"+t,{data:{}}).then((function(t){e.streetDetail=t.data,e.getRowColumnCounts()})).catch((function(t){}))},getRowColumnCounts:function(){this.updateShleveAndRowColumnCount(this.selectType)},getStockInfo:function(t,e,i){var s=this;this.$api.httpApi.getStockInfo({data:{row:Number(t),column:Number(e),shelveId:i}}).then((function(t){t.data&&(s.checkObj=t.data)})).catch((function(t){console.log(t)}))},handleChange:function(t){this.select=t,this.id=t,this.row=1,this.column=1,this.getStreetList();for(var e=0;e1?this.column=this.column-1:this.row>1?(this.row=this.row-1,this.column=this.columnCount):(this.row=this.rowCount,this.column=this.columnCount),this.getStockInfo(this.row,this.column,this.shelveId)},next:function(){this.column2)if(r=g(r),e=r.charCodeAt(0),43===e||45===e){if(i=r.charCodeAt(2),88===i||120===i)return NaN}else if(48===e){switch(r.charCodeAt(1)){case 66:case 98:s=2,o=49;break;case 79:case 111:s=8,o=55;break;default:return+r}for(a=r.slice(2),n=a.length,l=0;lo)return NaN;return parseInt(a,s)}return+r};if(a(v,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var k,C=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof C&&(y?u((function(){x.valueOf.call(i)})):c(i)!=v)?r(new b(w(e)),i,C):w(e)},I=s?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),S=0;I.length>S;S++)l(b,k=I[S])&&!l(C,k)&&m(C,k,f(b,k));C.prototype=x,x.constructor=C,n(o,v,C)}},ae5c:function(t,e,i){var s=i("16cf");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var o=i("499e").default;o("1db0f4a1",s,!0,{sourceMap:!1,shadowMode:!1})},db07:function(t,e,i){var s=i("3f88");"string"===typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);var o=i("499e").default;o("3e9bf9a5",s,!0,{sourceMap:!1,shadowMode:!1})},f3a2:function(t,e,i){"use strict";var s=i("db07"),o=i.n(s);o.a}}]); \ No newline at end of file diff --git a/js/chunk-f2934902.f8820570.js b/js/chunk-4df94765.cccb17b3.js similarity index 72% rename from js/chunk-f2934902.f8820570.js rename to js/chunk-4df94765.cccb17b3.js index 31a0a4b..dc051b9 100644 --- a/js/chunk-f2934902.f8820570.js +++ b/js/chunk-4df94765.cccb17b3.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f2934902"],{"19db":function(t,e,a){"use strict";var n=a("cb91"),i=a.n(n);i.a},6624:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-295d4a8d]{text-align:left}.button-box[data-v-295d4a8d]{position:absolute;top:0;right:20px;display:flex;align-items:center;justify-content:center}.button-box .add[data-v-295d4a8d]{margin-right:20px}",""]),t.exports=e},7433:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.id},"data-source":t.data,pagination:t.pagination},on:{change:t.handleGetCameraIoList},scopedSlots:t._u([{key:"status",fn:function(e){return a("span",{},[t._v(" "+t._s(e=0==e?"连接异常":"没有PLC连接异常")+" ")])}},{key:"action",fn:function(e,n){return a("span",{},[a("a",{on:{click:function(e){return t.reconnection(n)}}},[t._v("重新连接")])])}}])})],1)},i=[],o=(a("4160"),a("159b"),a("5530")),s=[{title:"序号",customRender:function(t,e,a){return 0+a+1}},{title:"PLCID",dataIndex:"plcId"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"异常时间",dataIndex:"time"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],c={data:function(){var t=this;return{pageNum:1,pageSize:10,data:[],pagination:{total:0,current:1,defaultPageSize:10,showTotal:function(t){return"共 ".concat(t," 条数据")},showSizeChanger:!0,pageSizeOptions:["10","20","30"],onShowSizeChange:function(e,a){return t.pageSize=a}},loading:!1,columns:s,visible:!1,modelType:"",modelData:[]}},computed:{},mounted:function(){this.handleGetCameraIoList()},methods:{handleGetCameraIoList:function(t){console.log(t),t&&(this.pagination.current=t.current,this.pagination.pageSize=t.pageSize,this.pageNum=t.current,this.pageSize=t.pageSize),this.request()},request:function(){var t=this;this.$api.httpApi.disPlcList({data:{page:this.pageNum,size:this.pageSize}}).then((function(e){var a=Object(o["a"])({},t.pagination);a.total=e.data.total,t.data=e.data,t.pagination=a,e.data.list.forEach((function(e,a){e.pageNumber=t.pagination.current}))})).catch((function(t){}))},reconnection:function(t){var e=this;console.log(t.streetId);var a=t.streetId;this.$axios.get("/plc/tcp",{params:{id:a}}).then((function(t){200==t.code?(e.$message.success("连接成功"),e.handleGetStreetList()):e.$message.error("连接失败")})).catch((function(t){}))}},components:{}},r=c,u=(a("19db"),a("2877")),d=Object(u["a"])(r,n,i,!1,null,"295d4a8d",null);e["default"]=d.exports},cb91:function(t,e,a){var n=a("6624");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("55793b0a",n,!0,{sourceMap:!1,shadowMode:!1})}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4df94765"],{"1c65":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-2701142d]{text-align:left}.button-box[data-v-2701142d]{position:absolute;top:0;right:20px;display:flex;align-items:center;justify-content:center}.button-box .add[data-v-2701142d]{margin-right:20px}",""]),t.exports=e},7433:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.id},"data-source":t.data,pagination:t.pagination},on:{change:t.handleGetCameraIoList},scopedSlots:t._u([{key:"status",fn:function(e){return a("span",{},[t._v(" "+t._s(e=0==e?"连接异常":"没有PLC连接异常")+" ")])}},{key:"action",fn:function(e,n){return a("span",{},[a("a",{on:{click:function(e){return t.reconnection(n)}}},[t._v("重新连接")])])}}])})],1)},i=[],o=(a("4160"),a("159b"),a("5530")),s=[{title:"序号",customRender:function(t,e,a){return 0+a+1}},{title:"PLCID",dataIndex:"plcId"},{title:"状态",dataIndex:"status",scopedSlots:{customRender:"status"}},{title:"异常时间",dataIndex:"time"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"}}],c={data:function(){var t=this;return{pageNum:1,pageSize:10,data:[],pagination:{total:0,current:1,defaultPageSize:10,showTotal:function(t){return"共 ".concat(t," 条数据")},showSizeChanger:!0,pageSizeOptions:["10","20","30"],onShowSizeChange:function(e,a){return t.pageSize=a}},loading:!1,columns:s,visible:!1,modelType:"",modelData:[]}},computed:{},mounted:function(){this.handleGetCameraIoList()},methods:{handleGetCameraIoList:function(t){console.log(t),t&&(this.pagination.current=t.current,this.pagination.pageSize=t.pageSize,this.pageNum=t.current,this.pageSize=t.pageSize),this.request()},request:function(){var t=this;this.$api.httpApi.disPlcList({data:{page:this.pageNum,size:this.pageSize}}).then((function(e){var a=Object(o["a"])({},t.pagination);a.total=e.data.total,t.data=e.data,t.pagination=a,e.data.list.forEach((function(e,a){e.pageNumber=t.pagination.current}))})).catch((function(t){}))},reconnection:function(t){var e=this;console.log(t.streetId);var a=t.streetId;this.$axios.get("/plc/tcp",{params:{id:a}}).then((function(t){200==t.code?(e.$message.success("连接成功"),e.request()):e.$message.error("连接失败")})).catch((function(t){}))}},components:{}},r=c,u=(a("adb9"),a("2877")),d=Object(u["a"])(r,n,i,!1,null,"2701142d",null);e["default"]=d.exports},adb9:function(t,e,a){"use strict";var n=a("e3c7"),i=a.n(n);i.a},e3c7:function(t,e,a){var n=a("1c65");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("43665d9e",n,!0,{sourceMap:!1,shadowMode:!1})}}]); \ No newline at end of file diff --git a/js/chunk-7c32d367.65ff037f.js b/js/chunk-7c32d367.65ff037f.js deleted file mode 100644 index 11b4c72..0000000 --- a/js/chunk-7c32d367.65ff037f.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7c32d367"],{"1b63":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"check-page"},[a("a-button",{staticClass:"export-all",attrs:{type:"primary"},on:{click:t.exportStock}},[t._v(" 导出全部巷道 ")]),a("div",{staticClass:"title-info"},[a("span",{staticClass:"explain"},[t._v("颜色说明:")]),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#d81e06"}}),t._v(" 盘点错误 ")],1),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#1afa29"}}),t._v(" 盘点正确 ")],1),a("span",{staticClass:"info-text"},[a("a-tag",{staticStyle:{width:"30px",height:"20px","margin-right":"6px"},attrs:{color:"#bfbfbf"}}),t._v(" 未盘点 ")],1)]),a("div",{staticStyle:{"margin-top":"10px"}},[t.data[0]?a("a-select",{staticClass:"select-roadway",attrs:{"default-value":t.data[0].name},on:{change:t.handleChange}},t._l(t.data,(function(e){return a("a-select-option",{key:e.name,attrs:{value:e.id}},[t._v(" "+t._s(e.name)+" ")])})),1):t._e()],1),a("div",{staticClass:"center-box"},[a("span",{staticClass:"shelf-number"},[t._v(" 左货架号: "+t._s(t.leftShelveId.shelveId)+" ")]),t.streetDetail.leftInsideShelveId&&t.streetDetail.leftOutsideShelveId?a("a-radio-group",{staticStyle:{margin:"10px 0"},on:{change:t.getStockRowColumn},model:{value:t.size,callback:function(e){t.size=e},expression:"size"}},[a("a-radio-button",{attrs:{value:"leftOutsideShelveId"}},[t._v(" 外 ")]),a("a-radio-button",{attrs:{value:"leftInsideShelveId"}},[t._v(" 内 ")])],1):t._e()],1),t._l(t.data,(function(e){return a("div",{key:e.id,staticClass:"check-content"},[e.id==t.select?a("subsection",{attrs:{total:{row:e.leftColumn,column:e.leftRow},shelveId:t.leftShelveId.shelveId,streetId:e.id,streetName:e.name,type:"left",inOut:t.leftShelveId.shelveType}}):t._e()],1)})),a("div",{staticClass:"center-box"},[a("span",{staticClass:"shelf-number"},[t._v(" 右货架号: "+t._s(t.rightShelveId.shelveId)+" ")]),t.streetDetail.rightInsideShelveId&&t.streetDetail.rightOutsideShelveId?a("a-radio-group",{staticStyle:{margin:"10px 0"},on:{change:t.getStockRowColumn},model:{value:t.size2,callback:function(e){t.size2=e},expression:"size2"}},[a("a-radio-button",{attrs:{value:"rightOutsideShelveId"}},[t._v(" 外 ")]),a("a-radio-button",{attrs:{value:"rightInsideShelveId"}},[t._v(" 内 ")])],1):t._e()],1),t._l(t.data,(function(e){return a("div",{key:e.name,staticClass:"check-content"},[e.id==t.select?a("subsection",{attrs:{total:{row:e.rightColumn,column:e.rightRow},shelveId:t.rightShelveId.shelveId,streetId:e.id,streetName:e.name,type:"right",inOut:t.rightShelveId.shelveType}}):t._e()],1)}))],2)},i=[],o=(a("96cf"),a("1da1")),r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"subsection"},[a("a-layout",{staticStyle:{width:"900px"}},[a("a-layout",{staticStyle:{width:"100%",height:"310px"}},[a("a-layout-sider",{attrs:{width:"110px"}},[t.total.column>t.nums.column?a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"left"},on:{change:t.changeTabLeft}},t._l(t.latticeColumn,(function(e){return a("a-tab-pane",{key:e},[a("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(t.getRandom(e,t.latticeColumn,t.nums.column,t.total.column))+" "),1===t.status.column[e]?a("a-icon",{staticStyle:{color:"#d81e06"},attrs:{type:"close-circle"}}):2===t.status.column[e]?a("a-icon",{staticStyle:{color:"#1afa29"},attrs:{type:"check-circle"}}):a("a-icon",{staticStyle:{color:"#909399"},attrs:{type:"exclamation-circle"}})],1)])})),1):t._e()],1),a("a-layout-content",[a("div",{staticClass:"roadway-buttom"},[a("div",{staticClass:"roadway-box"},t._l(t.total.column,(function(e,n){return e>=t.random.column[0]&&e<=t.random.column[1]?a("div",{key:n,staticClass:"line"},t._l(t.total.row,(function(n,i){return n>=t.random.row[0]&&n<=t.random.row[1]?a("div",{key:i,staticClass:"el"},[a("span",{staticClass:"default",attrs:{id:t.shelveId+"-"+n+"-"+e},on:{click:function(a){return t.tocheckPage(n,e)}}},[t._v(" "+t._s(n)+"-"+t._s(e)+" ")])]):t._e()})),0):t._e()})),0)])])],1),a("a-layout-footer",[t.total.row>t.nums.row?a("a-tabs",{attrs:{"default-active-key":"1","tab-position":"bottom"},on:{change:t.changeTab}},t._l(t.latticeRow,(function(e){return a("a-tab-pane",{key:e},[a("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(t.getRandom(e,t.latticeRow,t.nums.row,t.total.row))+" "),1===t.status.row[e]?a("a-icon",{staticStyle:{color:"#d81e06"},attrs:{type:"close-circle"}}):2===t.status.row[e]?a("a-icon",{staticStyle:{color:"#1afa29"},attrs:{type:"check-circle"}}):a("a-icon",{staticStyle:{color:"#909399"},attrs:{type:"exclamation-circle"}})],1)])})),1):t._e()],1)],1)],1)},s=[],c=(a("99af"),a("d81d"),a("a9e3"),a("ac1f"),a("1276"),a("b85c")),l={name:"Subsection",components:{},props:{select:{type:Object,default:function(){return{row:1,column:1}}},total:{type:Object,default:function(){return{}}},nums:{type:Object,default:function(){return{row:15,column:10}}},shelveId:{type:String,default:function(){return{}}},streetId:{type:Number,default:function(){return{}}},streetName:{type:String,default:function(){return{}}},type:{type:String,default:function(){return{}}},inOut:{type:String,default:function(){return{}}}},computed:{latticeRow:function(){return parseInt(this.total.row/this.nums.row)+(this.total.row%this.nums.row>0?1:0)},latticeColumn:function(){return parseInt(this.total.column/this.nums.column)+(this.total.column%this.nums.column>0?1:0)},random:function(){return{row:this.getRandomRow(this.select.row),column:this.getRandomColumn(this.select.column)}},watchShelveIdInfo:function(){return this.shelveId}},watch:{watchShelveIdInfo:function(){this.getStatus()},immediate:!0},data:function(){return{status:{row:{},column:{}}}},mounted:function(){var t=this;this.$nextTick((function(){t.getStatus()}))},created:function(){},destroyed:function(){},methods:{changeTab:function(t){this.select.row=t,this.getStatus()},changeTabLeft:function(t){this.select.column=t,this.getStatus()},getRandom:function(t,e,a,n){return t!==e?"".concat((t-1)*a+1," - ").concat(t*a):"".concat((t-1)*a+1," - ").concat(n)},getRandomRow:function(t){return this.getRandom(t,this.latticeRow,this.nums.row,this.total.row).split(" - ").map((function(t){return Number(t)}))},getRandomColumn:function(t){return this.getRandom(t,this.latticeColumn,this.nums.column,this.total.column).split(" - ").map((function(t){return Number(t)}))},getStatusBg:function(t,e,a){var n=document.getElementById(this.shelveId+"-"+t+"-"+e),i=1==a?"#d81e06":2==a?"#1afa29":"#bfbfbf";n.style.background=i},getStatusTab:function(t,e,a){var n=document.getElementById(this.shelveId+"-"+a+"-"+t);console.log(n),console.log(this.shelveId+"-"+a+"-"+t),n.style.type="close-circle";var i=1==e?"#d81e06":2==e?"#1afa29":"#bfbfbf";n.style.color=i,console.log(n)},getStatus:function(){var t=this;if("{}"!=JSON.stringify(this.shelveId)){for(var e=[],a=1;a<=this.latticeColumn;a++){var n=this.getRandom(a,this.latticeColumn,this.nums.column,this.total.column);e.push(n)}for(var i=[],o=1;o<=this.latticeRow;o++){var r=this.getRandom(o,this.latticeRow,this.nums.row,this.total.row);i.push(r)}this.$api.httpApi.getStatusByRowColumn({data:{columnStart:this.random.column[0],columnEnd:this.random.column[1],rowStart:this.random.row[0],rowEnd:this.random.row[1],shelveId:this.shelveId,rowTabs:i,columnTabs:e}}).then((function(e){if(200==e.code){if(e.data.stocks){var a,n=Object(c["a"])(e.data.stocks);try{for(n.s();!(a=n.n()).done;){var i=a.value;t.getStatusBg(i.row,i.column,i.status)}}catch(u){n.e(u)}finally{n.f()}}var o=1;for(var r in e.data.columnTabStatus)t.status.column[o]=e.data.columnTabStatus[r],o++;var s=1;for(var l in e.data.rowTabStatus)t.status.row[s]=e.data.rowTabStatus[l],s++;console.log(t.status)}})).catch((function(t){}))}},tocheckPage:function(t,e){this.$router.push({name:"checkOperation",query:{row:t,column:e,shelveId:this.shelveId,id:this.streetId,name:this.streetName,type:this.type,type2:this.inOut}})}}},u=l,d=(a("d9b1"),a("2877")),h=Object(d["a"])(u,r,s,!1,null,"5d7948c7",null),f=h.exports,p={name:"checkManage",data:function(){return{size:"leftOutsideShelveId",size2:"rightOutsideShelveId",data:[],select:"",streetId:0,streetDetail:{},checkList:[],stockInfo:{left:{},right:{}},timer:null,shelveId:"",leftShelveId:{},rightShelveId:{}}},computed:{},mounted:function(){this.request()},activated:function(){this.request()},beforeRouteLeave:function(t,e,a){this.timer&&clearInterval(this.timer),a()},methods:{request:function(){var t=this;this.$api.httpApi.getStreetList({data:{pageNum:1,pageSize:50}}).then((function(e){t.data=e.data.list,t.select=e.data.list[0].id,t.getStreetDetail(e.data.list[0].id)})).catch((function(t){}))},getStockRowColumn:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.rightShelveChange(),t.leftShelveChange();case 2:case"end":return e.stop()}}),e)})))()},rightShelveChange:function(){var t,e="none";this.streetDetail.rightShelveId?t=this.streetDetail.rightShelveId:this.streetDetail.rightInsideShelveId&&"rightInsideShelveId"==this.size2?(t=this.streetDetail.rightInsideShelveId,e="inside"):this.streetDetail.rightOutsideShelveId&&"rightOutsideShelveId"==this.size2&&(t=this.streetDetail.rightOutsideShelveId,e="out"),this.rightShelveId.shelveId=t,this.rightShelveId.shelveType=e},leftShelveChange:function(){var t,e="none";this.streetDetail.leftShelveId?t=this.streetDetail.leftShelveId:this.streetDetail.leftInsideShelveId&&"leftInsideShelveId"==this.size?(t=this.streetDetail.leftInsideShelveId,e="inside"):this.streetDetail.leftOutsideShelveId&&"leftOutsideShelveId"==this.size&&(t=this.streetDetail.leftOutsideShelveId,e="out"),this.leftShelveId.shelveId=t,this.leftShelveId.shelveType=e},getStatus:function(t,e){return(t[e]||{}).status},getStatusBg:function(t,e){var a=this.getStatus(t,e);return 1==a?"#d81e06":2==a?"#1afa29":"#bfbfbf"},getStreetDetail:function(t){var e=this;this.$axios.get("/street/"+t,{data:{}}).then((function(t){e.streetDetail=t.data,e.leftShelveChange(),e.rightShelveChange()})).catch((function(t){}))},handleChange:function(t){this.select=t,this.getStreetDetail(t),this.leftShelveChange(),this.rightShelveChange()},tocheckOperation:function(t,e){console.log(t),console.log(e),this.$router.push({name:"checkOperation",query:{checkObj:t,item:e}})},exportStock:function(){var t=this;this.$api.httpApi.exportStock({params:{streetId:this.select}}).then((function(e){var a=new Blob([e],{type:"application/vnd.ms-excel"});t.$utils.downloadFile("巷道列表.xls",a)})).catch((function(t){}))}},components:{Subsection:f}},v=p,g=(a("f597"),Object(d["a"])(v,n,i,!1,null,"b318fcce",null));e["default"]=g.exports},"3b15":function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-5d7948c7]{text-align:left}.subsection[data-v-5d7948c7] {width:100%;height:360px;overflow:hidden}.subsection[data-v-5d7948c7] .ant-tabs-nav .ant-tabs-tab{margin-right:0}.subsection[data-v-5d7948c7] .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){background:#40a9ff;border-color:#40a9ff;box-shadow:-1px 0 0 0 #40a9ff}.subsection[data-v-5d7948c7] .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):hover{background:#40a9ff;border-color:#40a9ff}.subsection[data-v-5d7948c7] .ant-radio-button-wrapper-checked{box-shadow:-1px 0 0 0 #40a9ff}.subsection[data-v-5d7948c7] .radio-button-cell{width:100px;text-align:center}.subsection[data-v-5d7948c7] .ant-layout-sider{height:100%}.subsection[data-v-5d7948c7] .ant-layout-sider .ant-tabs{height:300px}.subsection[data-v-5d7948c7] .ant-layout-sider .ant-tabs-tab{padding:8px;margin-bottom:5px;width:104px}.subsection[data-v-5d7948c7] .ant-layout-footer{padding:0 0 0 110px}.subsection[data-v-5d7948c7] .ant-layout-footer .ant-tabs-bottom-bar{margin-top:0}.subsection[data-v-5d7948c7] .ant-layout,.subsection[data-v-5d7948c7] .ant-layout-footer,.subsection[data-v-5d7948c7] .ant-layout-sider{background-color:#fff}.subsection[data-v-5d7948c7] roadway-buttom{padding:5px 0;width:100%}.subsection[data-v-5d7948c7] .roadway-box{padding:10px 10px 0 0}.subsection[data-v-5d7948c7] .roadway-box .line{display:flex}.subsection[data-v-5d7948c7] .roadway-box .line .el{width:46px;height:25px;line-height:25px;margin:2px;font-size:12px;text-align:center;border-radius:4px;cursor:pointer;position:relative}.subsection[data-v-5d7948c7] .roadway-box .line .el .default{position:absolute;top:0;left:0;right:0;bottom:0}",""]),t.exports=e},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),i=a("5899"),o="["+i+"]",r=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),c=function(t){return function(e){var a=String(n(e));return 1&t&&(a=a.replace(r,"")),2&t&&(a=a.replace(s,"")),a}};t.exports={start:c(1),end:c(2),trim:c(3)}},"6d5d":function(t,e,a){var n=a("3b15");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("9e2eda0a",n,!0,{sourceMap:!1,shadowMode:!1})},7156:function(t,e,a){var n=a("861d"),i=a("d2bb");t.exports=function(t,e,a){var o,r;return i&&"function"==typeof(o=e.constructor)&&o!==a&&n(r=o.prototype)&&r!==a.prototype&&i(t,r),t}},"99af":function(t,e,a){"use strict";var n=a("23e7"),i=a("d039"),o=a("e8b5"),r=a("861d"),s=a("7b0b"),c=a("50c4"),l=a("8418"),u=a("65f0"),d=a("1dde"),h=a("b622"),f=a("2d00"),p=h("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",b=f>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=d("concat"),y=function(t){if(!r(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)},S=!b||!m;n({target:"Array",proto:!0,forced:S},{concat:function(t){var e,a,n,i,o,r=s(this),d=u(r,0),h=0;for(e=-1,n=arguments.length;ev)throw TypeError(g);for(a=0;a=v)throw TypeError(g);l(d,h++,o)}return d.length=h,d}})},a630:function(t,e,a){var n=a("23e7"),i=a("4df4"),o=a("1c7e"),r=!o((function(t){Array.from(t)}));n({target:"Array",stat:!0,forced:r},{from:i})},a9e3:function(t,e,a){"use strict";var n=a("83ab"),i=a("da84"),o=a("94ca"),r=a("6eeb"),s=a("5135"),c=a("c6b6"),l=a("7156"),u=a("c04e"),d=a("d039"),h=a("7c73"),f=a("241c").f,p=a("06cf").f,v=a("9bf2").f,g=a("58a8").trim,b="Number",m=i[b],y=m.prototype,S=c(h(y))==b,w=function(t){var e,a,n,i,o,r,s,c,l=u(t,!1);if("string"==typeof l&&l.length>2)if(l=g(l),e=l.charCodeAt(0),43===e||45===e){if(a=l.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(o=l.slice(2),r=o.length,s=0;si)return NaN;return parseInt(o,n)}return+l};if(o(b,!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var x,I=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof I&&(S?d((function(){y.valueOf.call(a)})):c(a)!=b)?l(new m(w(e)),a,I):w(e)},k=n?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;k.length>C;C++)s(m,x=k[C])&&!s(I,x)&&v(I,x,p(m,x));I.prototype=y,y.constructor=I,r(i,b,I)}},b85c:function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("a4d3"),a("e01a"),a("d28b"),a("d3b7"),a("3ca3"),a("ddb0"),a("a630"),a("fb6a"),a("b0c0"),a("25f0");function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,s=!0,c=!1;return{s:function(){a=t[Symbol.iterator]()},n:function(){var t=a.next();return s=t.done,t},e:function(t){c=!0,r=t},f:function(){try{s||null==a["return"]||a["return"]()}finally{if(c)throw r}}}}},cd7d:function(t,e,a){var n=a("f878");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("499e").default;i("01d67f62",n,!0,{sourceMap:!1,shadowMode:!1})},d28b:function(t,e,a){var n=a("746f");n("iterator")},d9b1:function(t,e,a){"use strict";var n=a("6d5d"),i=a.n(n);i.a},e01a:function(t,e,a){"use strict";var n=a("23e7"),i=a("83ab"),o=a("da84"),r=a("5135"),s=a("861d"),c=a("9bf2").f,l=a("e893"),u=o.Symbol;if(i&&"function"==typeof u&&(!("description"in u.prototype)||void 0!==u().description)){var d={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new u(t):void 0===t?u():u(t);return""===t&&(d[e]=!0),e};l(h,u);var f=h.prototype=u.prototype;f.constructor=h;var p=f.toString,v="Symbol(test)"==String(u("test")),g=/^Symbol\((.*)\)[^)]+$/;c(f,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(r(d,t))return"";var a=v?e.slice(7,-1):e.replace(g,"$1");return""===a?void 0:a}}),n({global:!0,forced:!0},{Symbol:h})}},f597:function(t,e,a){"use strict";var n=a("cd7d"),i=a.n(n);i.a},f878:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,".alarm .ant-form-item-label[data-v-b318fcce]{text-align:left}.check-page[data-v-b318fcce]{position:relative}.check-page .title-info[data-v-b318fcce]{display:flex;align-items:center;justify-content:start}.check-page .title-info .explain[data-v-b318fcce]{font-weight:600}.check-page .title-info .info-text[data-v-b318fcce]{display:flex;align-items:center;justify-content:center;margin-right:15px}.check-page .ant-tag[data-v-b318fcce]{margin-right:0;display:block;line-height:25px;text-align:center;cursor:pointer}.check-page .roadway-top[data-v-b318fcce],.check-page roadway-buttom[data-v-b318fcce]{padding:5px 0;width:100%}.check-page .roadway-box[data-v-b318fcce]{transform:rotateX(180deg);padding:10px 10px 0 0}.check-page .roadway-box .line[data-v-b318fcce]{display:flex;transform:rotateX(180deg)}.check-page .roadway-box .line .el[data-v-b318fcce]{width:46px;height:25px;line-height:25px;margin:2px;font-size:12px;text-align:center;border-radius:4px;cursor:pointer;position:relative}.check-page .roadway-box .line .el .default[data-v-b318fcce]{position:absolute;top:0;left:0;right:0;bottom:0}.check-page .center-box[data-v-b318fcce]{width:500px;height:52px;line-height:52px}.check-page .center-box .shelf-number[data-v-b318fcce]{display:inline-block;width:200px}.check-page .export-all[data-v-b318fcce]{position:absolute;right:20px}",""]),t.exports=e},fb6a:function(t,e,a){"use strict";var n=a("23e7"),i=a("861d"),o=a("e8b5"),r=a("23cb"),s=a("50c4"),c=a("fc6a"),l=a("8418"),u=a("b622"),d=a("1dde"),h=a("ae40"),f=d("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),v=u("species"),g=[].slice,b=Math.max;n({target:"Array",proto:!0,forced:!f||!p},{slice:function(t,e){var a,n,u,d=c(this),h=s(d.length),f=r(t,h),p=r(void 0===e?h:e,h);if(o(d)&&(a=d.constructor,"function"!=typeof a||a!==Array&&!o(a.prototype)?i(a)&&(a=a[v],null===a&&(a=void 0)):a=void 0,a===Array||void 0===a))return g.call(d,f,p);for(n=new(void 0===a?Array:a)(b(p-f,0)),u=0;f2&&void 0!==arguments[2]?arguments[2]:{};n(this,t),Object(c["a"])(this,"webrtc",null),Object(c["a"])(this,"video",null),Object(c["a"])(this,"server",null),Object(c["a"])(this,"codecLink",null),Object(c["a"])(this,"rsdpLink",null),Object(c["a"])(this,"stream",new MediaStream),Object(c["a"])(this,"uuid",null),Object(c["a"])(this,"options",{onStatusChange:null}),console.log("new uuid:"+e),this.server=t.server,this.video=o,this.uuid=e,Object.assign(this.options,i),this.createLinks(),this.play()}return s(t,[{key:"createLinks",value:function(){this.codecLink="//"+this.server+"/stream/codec/"+this.uuid,this.rsdpLink="//"+this.server+"/stream/receiver/"+this.uuid}},{key:"play",value:function(){var t=this;this.webrtc=new RTCPeerConnection({iceServers:[{urls:["stun:stun.l.google.com:19302"]}]}),this.webrtc||console.log("no"),this.webrtc.onnegotiationneeded=this.handleNegotiationNeeded.bind(this),this.webrtc.ontrack=this.onTrack.bind(this),fetch(this.codecLink).then((function(o){o.json().then((function(o){o.forEach((function(o,e){t.webrtc.addTransceiver(o.Type,{direction:"sendrecv"})}))}))})).catch((function(t){console.log(t)})),this.webrtc.onconnectionstatechange=function(){"connected"==t.webrtc.connectionState||"connecting"==t.webrtc.connectionState?console.log("uuid:"+t.uuid+" status:"+t.webrtc.connectionState):(console.log(t.webrtc.connectionState),t.load(t.uuid))}}},{key:"handleNegotiationNeeded",value:function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(){var o,e,i=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.webrtc.createOffer();case 2:return o=t.sent,t.next=5,this.webrtc.setLocalDescription(o);case 5:e=new FormData,e.append("suuid",this.uuid),e.append("data",btoa(this.webrtc.localDescription.sdp)),fetch(this.rsdpLink,{method:"POST",body:e}).then((function(t){t.text().then((function(t){i.webrtc.setRemoteDescription(new RTCSessionDescription({type:"answer",sdp:atob(t)}))}))})).catch((function(t){}));case 9:case"end":return t.stop()}}),t,this)})));function o(){return t.apply(this,arguments)}return o}()},{key:"onTrack",value:function(t){this.stream.addTrack(t.track),this.video.srcObject=this.stream,this.video.play()}},{key:"load",value:function(t){this.destroy(),this.uuid=t,this.createLinks(),this.play()}},{key:"destroy",value:function(){console.log("destroy uuid:"+this.uuid),this.webrtc.close(),this.webrtc=null,this.video.srcObject=null,this.stream=new MediaStream}},{key:"getImageUrl",value:function(){var t=document.createElement("canvas");t.width=this.video.videoWidth,t.height=this.video.videoHeight,t.getContext("2d").drawImage(video,0,0,t.width,t.height);var o=t.toDataURL();return t.remove(),o}}],[{key:"setServer",value:function(t){this.server=t}}]),t}();Object(c["a"])(r,"server","127.0.0.1:8083");o["a"]=r},9545:function(t,o,e){"use strict";e.r(o);var i=function(){var t=this,o=t.$createElement,e=t._self._c||o;return t.isShow?e("div",["add"==t.type||"edit"==t.type?[e("a-modal",{staticClass:"add-edit-model",attrs:{title:["add"==t.type?"新增球机":"编辑球机"],closable:t.closable,"ok-text":"确认","cancel-text":"取消"},on:{ok:t.handleOk,cancel:t.handleCancel},model:{value:t.isShow,callback:function(o){t.isShow=o},expression:"isShow"}},[e("a-form",{attrs:{form:t.form,"wrapper-col":t.formItemAcrossLayout.wrapperCol}},[e("a-form-item",{attrs:{label:"球机名称","label-col":t.formItemVerticalLayout.labelCol}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["name",{rules:[{required:!0,message:"请输入球机名称!"}]}],expression:"['name', { rules: [{ required: true, message: '请输入球机名称!' }] }]"}]})],1),e("a-form-item",{attrs:{label:"球机IP","label-col":t.formItemVerticalLayout.labelCol}},[e("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["ip",{rules:[{required:!0,message:"请输入球机ip!"}]}],expression:"['ip', { rules: [{ required: true, message: '请输入球机ip!' }] }]"}]})],1)],1)],1)]:"test"==t.type?[e("a-modal",{staticClass:"config-model",attrs:{footer:null,maskClosable:!1,width:"1600px",bodyStyle:{padding:0,display:"flex"},centered:!0},on:{cancel:t.handleCancel},model:{value:t.isShow,callback:function(o){t.isShow=o},expression:"isShow"}},[e("div",{staticClass:"test-model"},[e("video",{attrs:{width:"80%",height:"80%",id:"camera"+t.id,autoplay:"",muted:""},domProps:{muted:!0}}),e("div",{staticClass:"operation-list"},[e("div",{staticClass:"operation-item"},[e("img",{attrs:{src:t.zoomSubUrl,alt:""},on:{mousedown:t.zoomDecStart,mouseup:t.zoomDecStop}}),e("span",[t._v("变倍")]),e("img",{attrs:{src:t.zoomAddUrl,alt:""},on:{mousedown:t.zoomAddStart,mouseup:t.zoomAddStop}})]),e("div",{staticClass:"operation-item"},[e("img",{attrs:{src:t.focusSubUrl,alt:""},on:{mousedown:t.focusDecStart,mouseup:t.focusDecStop}}),e("span",[t._v("变焦")]),e("img",{attrs:{src:t.focusAddUrl,alt:""},on:{mousedown:t.focusAddStart,mouseup:t.focusAddStop}})]),e("div",{staticClass:"operation-item"},[e("img",{attrs:{src:t.irisSubUrl,alt:""},on:{mousedown:t.irisDecStart,mouseup:t.irisDecStop}}),e("span",[t._v("光圈")]),e("img",{attrs:{src:t.irisAddUrl,alt:""},on:{mousedown:t.irisAddStart,mouseup:t.irisAddStop}})])]),e("div",{staticClass:"direction-list"},[e("div",{staticClass:"direction-item"},[e("img",{attrs:{src:t.leftUpUrl,alt:""},on:{mousedown:t.leftUpStart,mouseup:t.leftUpStop}}),e("img",{attrs:{src:t.upUrl,alt:""},on:{mousedown:t.upStart,mouseup:t.upStop}}),e("img",{attrs:{src:t.rightUpUrl,alt:""},on:{mousedown:t.rightUpStart,mouseup:t.rightUpStop}})]),e("div",{staticClass:"direction-item"},[e("img",{attrs:{src:t.leftUrl,alt:""},on:{mousedown:t.leftStart,mouseup:t.leftStop}}),e("img",{attrs:{src:t.rightUrl,alt:""},on:{mousedown:t.rightStart,mouseup:t.rightStop}})]),e("div",{staticClass:"direction-item"},[e("img",{attrs:{src:t.leftDownUrl,alt:""},on:{mousedown:t.leftDownStart,mouseup:t.leftDownStop}}),e("img",{attrs:{src:t.downUrl,alt:""},on:{mousedown:t.downStart,mouseup:t.downStop}}),e("img",{attrs:{src:t.rightDownUrl,alt:""},on:{mousedown:t.rightDownStart,mouseup:t.rightDownStop}})])])])])]:"config"==t.type?[e("a-modal",{staticClass:"config-model",attrs:{footer:null,maskClosable:!1,width:"1600px",bodyStyle:{padding:0,display:"flex"},centered:!0},on:{cancel:t.handleCancel},model:{value:t.isShow,callback:function(o){t.isShow=o},expression:"isShow"}},[e("video",{attrs:{width:"900",height:"600",id:"camera"+t.id,autoplay:"",muted:""},domProps:{muted:!0}}),e("div",{staticClass:"operation-list"},[e("div",{staticClass:"operation-item"},[e("img",{attrs:{src:t.zoomSubUrl,alt:""},on:{mousedown:t.zoomDecStart,mouseup:t.zoomDecStop}}),e("span",[t._v("变倍")]),e("img",{attrs:{src:t.zoomAddUrl,alt:""},on:{mousedown:t.zoomAddStart,mouseup:t.zoomAddStop}})]),e("div",{staticClass:"operation-item"},[e("img",{attrs:{src:t.focusSubUrl,alt:""},on:{mousedown:t.focusDecStart,mouseup:t.focusDecStop}}),e("span",[t._v("变焦")]),e("img",{attrs:{src:t.focusAddUrl,alt:""},on:{mousedown:t.focusAddStart,mouseup:t.focusAddStop}})]),e("div",{staticClass:"operation-item"},[e("img",{attrs:{src:t.irisSubUrl,alt:""},on:{mousedown:t.irisDecStart,mouseup:t.irisDecStop}}),e("span",[t._v("光圈")]),e("img",{attrs:{src:t.irisAddUrl,alt:""},on:{mousedown:t.irisAddStart,mouseup:t.irisAddStop}})])]),e("div",{staticClass:"direction-list"},[e("div",{staticClass:"direction-item"},[e("img",{attrs:{src:t.leftUpUrl,alt:""},on:{mousedown:t.leftUpStart,mouseup:t.leftUpStop}}),e("img",{attrs:{src:t.upUrl,alt:""},on:{mousedown:t.upStart,mouseup:t.upStop}}),e("img",{attrs:{src:t.rightUpUrl,alt:""},on:{mousedown:t.rightUpStart,mouseup:t.rightUpStop}})]),e("div",{staticClass:"direction-item"},[e("img",{attrs:{src:t.leftUrl,alt:""},on:{mousedown:t.leftStart,mouseup:t.leftStop}}),e("img",{attrs:{src:t.rightUrl,alt:""},on:{mousedown:t.rightStart,mouseup:t.rightStop}})]),e("div",{staticClass:"direction-item"},[e("img",{attrs:{src:t.leftDownUrl,alt:""},on:{mousedown:t.leftDownStart,mouseup:t.leftDownStop}}),e("img",{attrs:{src:t.downUrl,alt:""},on:{mousedown:t.downStart,mouseup:t.downStop}}),e("img",{attrs:{src:t.rightDownUrl,alt:""},on:{mousedown:t.rightDownStart,mouseup:t.rightDownStop}})])]),e("div",{staticClass:"config-table"},[e("h2",[t._v("球机配置")]),e("a-table",{attrs:{columns:t.columns,"row-key":function(t){return t.name},"data-source":t.configData,bordered:"",pagination:!1,scroll:{y:335}},on:{change:t.getConfigIoList},scopedSlots:t._u([{key:"name",fn:function(o,i){return e("span",{},[e("a-button",{attrs:{type:"link"},on:{click:function(o){return t.toPtz(i)}}},[t._v(t._s(o)+"("+t._s(i.code)+")")])],1)}},{key:"position",fn:function(o,i){return e("span",{},[o?e("div",[t._v(" 已写入 "),e("a-button",{staticClass:"plc",attrs:{type:"link"},on:{click:function(o){return t.coverage(0,i)}}},[t._v(" 覆盖 ")])],1):e("a-button",{staticClass:"plc",attrs:{type:"primary"},on:{click:function(o){return t.coverage(0,i)}}},[t._v(" 写入 ")])],1)}}],null,!1,2762861366)})],1)])]:t._e()],2):t._e()},n=[],a=(e("b0c0"),e("d3b7"),e("25f0"),e("3ea2")),s={labelCol:{span:8},wrapperCol:{span:14}},c={labelCol:{span:4},wrapperCol:{span:8,offset:4}},r=[{title:"PLC IO指令",dataIndex:"name",scopedSlots:{customRender:"name"}},{title:"配置",dataIndex:"position",scopedSlots:{customRender:"position"}}],l={props:["visible","modelType","modelData"],watch:{visible:function(t){this.isShow=t},modelType:function(t){this.type=t},modelData:function(t){var o=this;this.mdata=t,console.log(this.type),t.id&&"edit"==this.type?(this.id=t.id,this.$nextTick((function(){o.form.setFieldsValue({name:t.name,ip:t.ip,rtsp:t.rtsp})}))):t.id&&"config"==this.type&&(this.id=t.id,this.mdata=t,console.log(t),this.$nextTick((function(){console.log(t.rtsp),o.getConfigIoList()})))}},data:function(){return{isShow:!1,player:null,type:"",title:"",closable:!1,formItemAcrossLayout:s,formItemVerticalLayout:c,confirmLoading:!1,form:this.$form.createForm(this,{name:"dynamic_rule"}),id:"",mdata:[],zoomSubUrl:e("a49c"),zoomAddUrl:e("42f5"),focusSubUrl:e("a49c"),focusAddUrl:e("42f5"),irisSubUrl:e("a49c"),irisAddUrl:e("42f5"),leftUpUrl:e("6dc0"),upUrl:e("90e6"),rightUpUrl:e("298d"),leftUrl:e("cce0"),rightUrl:e("cd76"),leftDownUrl:e("30fb"),downUrl:e("5046"),rightDownUrl:e("883f"),columns:r,configData:[]}},mounted:function(){var t=this;this.setVideoServer(),"test"==this.$route.query.modelType?(this.isShow=!0,this.id=this.$route.query.modelData.id,this.type=this.$route.query.modelType,this.mdata=this.$route.query.modelData,this.$nextTick((function(){t.autoPlay(t.id)}))):"config"==this.$route.query.modelType&&(this.isShow=!0,this.id=this.$route.query.modelData.id,this.type=this.$route.query.modelType,this.mdata=this.$route.query.modelData,this.$nextTick((function(){t.autoPlay(t.id)})),this.getConfigIoList())},destroy:function(){},methods:{handleOk:function(){var t=this;this.confirmLoading=!0,setTimeout((function(){t.form.validateFields((function(o,e){console.log(e),o||(console.log(t.title),"add"==t.type?t.$api.httpApi.addCamera({data:e}).then((function(o){200==o.code&&(t.$emit("sure",!1),t.$message.success("新增球机成功"))})).catch((function(t){})):"edit"==t.type&&(e.id=t.id,t.$api.httpApi.editCamera({data:e}).then((function(o){200==o.code&&(t.$emit("sure",!1),t.$message.success("编辑球机成功"))})).catch((function(t){}))))})),t.confirmLoading=!1}),500)},handleCancel:function(){this.player.destroy(),console.log("Clicked cancel button"),this.$emit("close",!1,{}),("test"==this.type||"config"==this.type)&&(this.$router.go(-1),this.player=null)},autoPlay:function(t){var o=document.getElementById("camera"+t);this.player=new a["a"](o,"camera"+t),this.player.load("camera"+t)},setVideoServer:function(){this.$api.httpApi.getVideoServer({data:{}}).then((function(t){200==t.code&&a["a"].setServer(t.data.toString())})).catch((function(t){console.log(t)}))},getConfigIoList:function(){var t=this;this.$axios.post("/camera/"+this.id+"/io/list",{data:{}}).then((function(o){console.log(o),200==o.code&&(t.configData=o.data)})).catch((function(t){}))},coverage:function(t,o){var e=this;this.$api.httpApi.writeInCameraIoptz({data:{cameraId:this.id,cameraIOId:o.id,name:o.name,code:o.code,type:t}}).then((function(t){e.getConfigIoList()})).catch((function(t){}))},toPtz:function(t){this.$api.httpApi.cameraIoToPtz({data:{cameraId:this.id,cameraIOId:t.id,name:t.name}}).then((function(t){console.log(t)})).catch((function(t){}))},zoomDecStart:function(){console.log("变倍-按下"),this.zoomSubUrl=e("3b7d"),this.$axios.post("/camera/control/zoomDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomDecStop:function(){console.log("变倍-抬起"),this.zoomSubUrl=e("a49c"),this.$axios.post("/camera/control/zoomDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomAddStart:function(){console.log("变倍+按下"),this.zoomAddUrl=e("f88c"),this.$axios.post("/camera/control/zoomAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},zoomAddStop:function(){console.log("变倍+抬起"),this.zoomAddUrl=e("42f5"),this.$axios.post("/camera/control/zoomAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusDecStart:function(){console.log("变焦-按下"),this.focusSubUrl=e("3b7d"),this.$axios.post("/camera/control/focusDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusDecStop:function(){console.log("变焦-抬起"),this.focusSubUrl=e("a49c"),this.$axios.post("/camera/control/focusDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusAddStart:function(){console.log("变焦+按下"),this.focusAddUrl=e("f88c"),this.$axios.post("/camera/control/focusAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},focusAddStop:function(){console.log("变焦+抬起"),this.focusAddUrl=e("42f5"),this.$axios.post("/camera/control/focusAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisDecStart:function(){console.log("光圈-按下"),this.irisSubUrl=e("3b7d"),this.$axios.post("/camera/control/irisDec/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisDecStop:function(){console.log("光圈-抬起"),this.irisSubUrl=e("a49c"),this.$axios.post("/camera/control/irisDec/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisAddStart:function(){console.log("光圈+按下"),this.irisAddUrl=e("f88c"),this.$axios.post("/camera/control/irisAdd/start/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},irisAddStop:function(){console.log("光圈+抬起"),this.irisAddUrl=e("42f5"),this.$axios.post("/camera/control/irisAdd/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftUpStart:function(){console.log("左上鼠标按下"),this.leftUpUrl=e("13fc"),this.$axios.post("/camera/control/leftUp/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftUpStop:function(){console.log("左上鼠标抬起"),this.leftUpUrl=e("6dc0"),this.$axios.post("/camera/control/leftUp/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},upStart:function(){console.log("上鼠标按下"),this.upUrl=e("ad2e"),this.$axios.post("/camera/control/up/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},upStop:function(){console.log("上鼠标抬起"),this.upUrl=e("90e6"),this.$axios.post("/camera/control/up/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightUpStart:function(){console.log("右上鼠标按下"),this.rightUpUrl=e("5bc3"),this.$axios.post("/camera/control/rightUp/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightUpStop:function(){console.log("右上鼠标抬起"),this.rightUpUrl=e("298d"),this.$axios.post("/camera/control/rightUp/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftStart:function(){console.log("左转鼠标按下"),this.leftUrl=e("2216"),this.$axios.post("/camera/control/left/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftStop:function(){this.leftUrl=e("cce0"),console.log("左转鼠标抬起"),this.$axios.post("/camera/control/left/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightStart:function(){console.log("右转鼠标按下"),this.rightUrl=e("b241"),this.$axios.post("/camera/control/right/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightStop:function(){console.log("右转鼠标抬起"),this.rightUrl=e("cd76"),this.$axios.post("/camera/control/right/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftDownStart:function(){console.log("左下鼠标按下"),this.leftDownUrl=e("1e74"),this.$axios.post("/camera/control/leftDown/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},leftDownStop:function(){console.log("左下鼠标抬起"),this.leftDownUrl=e("30fb"),this.$axios.post("/camera/control/leftDown/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},downStart:function(){console.log("下鼠标按下"),this.downUrl=e("3c12"),this.$axios.post("/camera/control/down/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},downStop:function(){console.log("下鼠标抬起"),this.downUrl=e("5046"),this.$axios.post("/camera/control/down/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightDownStart:function(){console.log("右下鼠标按下"),this.rightDownUrl=e("5cf9"),this.$axios.post("/camera/control/rightDown/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))},rightDownStop:function(){console.log("右下鼠标抬起"),this.rightDownUrl=e("883f"),this.$axios.post("/camera/control/rightDown/stop/"+this.id,{data:{}}).then((function(t){})).catch((function(t){}))}}},d=l,u=(e("1bf8"),e("2877")),h=Object(u["a"])(d,i,n,!1,null,"5a4483ce",null);o["default"]=h.exports},ebcf:function(t,o,e){var i=e("24fb");o=i(!1),o.push([t.i,".alarm .ant-form-item-label[data-v-5a4483ce]{text-align:left}.add-edit-model .across-layout[data-v-5a4483ce]{display:flex}.add-edit-model .ant-divider-horizontal[data-v-5a4483ce]{margin:6px 0}.test-model[data-v-5a4483ce]{position:fixed;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.5);z-index:1000;display:flex;align-items:center;justify-content:center}.test-model #video-test[data-v-5a4483ce]{width:100%;height:100%}.test-model .video-close[data-v-5a4483ce]{position:absolute;right:20px;top:20px;color:#fff;font-size:24px;width:32px;height:32px;background:rgba(0,0,0,.5);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10}.test-model .operation-list[data-v-5a4483ce]{position:absolute;right:200px;bottom:20px;z-index:10}.test-model .operation-list .operation-item img[data-v-5a4483ce]{width:42px}.test-model .operation-list .operation-item span[data-v-5a4483ce]{padding:5px 10px;background:rgba(0,0,0,.5);font-size:18px;color:#fff}.test-model .direction-list[data-v-5a4483ce]{position:absolute;right:30px;bottom:20px;width:150px;z-index:10}.test-model .direction-list .direction-item[data-v-5a4483ce]{display:flex;align-items:center;justify-content:space-between}.test-model .direction-list .direction-item img[data-v-5a4483ce]{width:42px}.test-model img[data-v-5a4483ce]{cursor:pointer}.config-model[data-v-5a4483ce]{display:flex;align-items:center;justify-content:center}.config-model .operation-list[data-v-5a4483ce]{position:absolute;right:1000px;bottom:20px;z-index:10}.config-model .operation-list .operation-item img[data-v-5a4483ce]{width:32px}.config-model .operation-list .operation-item span[data-v-5a4483ce]{padding:3px 6px;background:rgba(0,0,0,.5);font-size:16px;color:#fff}.config-model .direction-list[data-v-5a4483ce]{position:absolute;right:830px;bottom:20px;width:150px;z-index:10}.config-model .direction-list .direction-item[data-v-5a4483ce]{display:flex;align-items:center;justify-content:space-between}.config-model .direction-list .direction-item img[data-v-5a4483ce]{width:32px}.config-model img[data-v-5a4483ce]{cursor:pointer}.config-model .config-table[data-v-5a4483ce]{width:800px;height:600px;overflow:hidden}.config-model .config-table h2[data-v-5a4483ce]{padding:15px;font-size:20px;background:#fafafa;margin:0}.vxgplayer[data-v-5a4483ce]{border:none;margin:0;display:block}.ant-btn[data-v-5a4483ce]{white-space:inherit;text-align:left}",""]),t.exports=o}}]); \ No newline at end of file