From 26325a3ac978f7d941aa346925b21944a7fdb9a2 Mon Sep 17 00:00:00 2001 From: zhs Date: Tue, 7 Sep 2021 22:10:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=88=97=E8=A1=A8=E6=96=B0=E5=A2=9E=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E8=AE=BE=E5=A4=87=E6=A8=A1=E5=9E=8Bname=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webroot/index.html | 2 +- webroot/static/css/chunk-04ce602b.fe2d08e6.css | 1 - webroot/static/css/chunk-39197532.b1a88224.css | 1 + webroot/static/js/{app.d53a247a.js => app.70f9ffe9.js} | 2 +- webroot/static/js/chunk-04ce602b.4df77d6f.js | 1 - webroot/static/js/chunk-39197532.9bb24f06.js | 1 + 6 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 webroot/static/css/chunk-04ce602b.fe2d08e6.css create mode 100644 webroot/static/css/chunk-39197532.b1a88224.css rename webroot/static/js/{app.d53a247a.js => app.70f9ffe9.js} (99%) delete mode 100644 webroot/static/js/chunk-04ce602b.4df77d6f.js create mode 100644 webroot/static/js/chunk-39197532.9bb24f06.js diff --git a/webroot/index.html b/webroot/index.html index a1df7d9..44cc247 100644 --- a/webroot/index.html +++ b/webroot/index.html @@ -1 +1 @@ -通用采集器系统
\ No newline at end of file +通用采集器系统
\ No newline at end of file diff --git a/webroot/static/css/chunk-04ce602b.fe2d08e6.css b/webroot/static/css/chunk-04ce602b.fe2d08e6.css deleted file mode 100644 index b6a0d0f..0000000 --- a/webroot/static/css/chunk-04ce602b.fe2d08e6.css +++ /dev/null @@ -1 +0,0 @@ -.card-panel-icon[data-v-cb7f4102]{float:left;font-size:48px;width:50%;display:block;margin-bottom:10px;color:#f4516c}.text[data-v-cb7f4102]{font-size:14px}.item[data-v-cb7f4102]{margin-bottom:18px;display:-webkit-box;display:-ms-flexbox;display:flex}.bottom[data-v-cb7f4102]{margin-top:23px;line-height:25px;padding-left:10px;padding-right:10px}.bottomRight[data-v-cb7f4102]{padding:0;float:right} \ No newline at end of file diff --git a/webroot/static/css/chunk-39197532.b1a88224.css b/webroot/static/css/chunk-39197532.b1a88224.css new file mode 100644 index 0000000..ee17ccb --- /dev/null +++ b/webroot/static/css/chunk-39197532.b1a88224.css @@ -0,0 +1 @@ +.card-panel-icon[data-v-24bc0412]{float:left;font-size:48px;width:50%;display:block;margin-bottom:10px;color:#f4516c}.text[data-v-24bc0412]{font-size:14px}.item[data-v-24bc0412]{margin-bottom:18px;display:-webkit-box;display:-ms-flexbox;display:flex}.bottom[data-v-24bc0412]{margin-top:23px;line-height:25px;padding-left:10px;padding-right:10px}.bottomRight[data-v-24bc0412]{padding:0;float:right} \ No newline at end of file diff --git a/webroot/static/js/app.d53a247a.js b/webroot/static/js/app.70f9ffe9.js similarity index 99% rename from webroot/static/js/app.d53a247a.js rename to webroot/static/js/app.70f9ffe9.js index f88c2ff..343177c 100644 --- a/webroot/static/js/app.d53a247a.js +++ b/webroot/static/js/app.70f9ffe9.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"028b":function(e,t,n){"use strict";var a=n("f12c"),i=n.n(a);i.a},1343:function(e,t,n){},"14b4":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-memory",use:"icon-memory-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},1605:function(e,t,n){e.exports=n.p+"static/img/admin.ecba1844.gif"},"186a":function(e,t,n){"use strict";var a=n("dc52"),i=n.n(a);i.a},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"1b2d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-interface",use:"icon-interface-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},2753:function(e,t,n){"use strict";var a=n("1343"),i=n.n(a);i.a},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"4cdc":function(e,t,n){},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});c.a.add(r);t["default"]=r},"51ff":function(e,t,n){var a={"./dashboard.svg":"f782","./deviceManage.svg":"c504","./deviceStatus.svg":"b37b","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./interface.svg":"1b2d","./link.svg":"18f0","./memory.svg":"14b4","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./template.svg":"dcbb","./tree.svg":"93cd","./user.svg":"b3b5","./wireless.svg":"f117"};function i(e){var t=o(e);return n(t)}function o(e){var t=a[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("96cf");var a=n("3b8d"),i=(n("cadf"),n("551c"),n("f751"),n("097d"),n("2b0e")),o=(n("f5df"),n("5c96")),c=n.n(o),r=(n("0fae"),n("f0d9")),s=n.n(r),l=(n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),u=[],d={name:"App"},m=d,h=n("2877"),p=Object(h["a"])(m,l,u,!1,null,null,null),f=p.exports,v=n("bc3a"),b=n.n(v),g=n("2f62"),w=(n("7f7f"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),x=w,y=n("a78e"),k=n.n(y),M={sidebar:{opened:!k.a.get("sidebarStatus")||!!+k.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},z={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?k.a.set("sidebarStatus",1):k.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){k.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},C={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:M,mutations:z,actions:C},S=n("83d6"),H=n.n(S),E=H.a.showSettings,B=H.a.fixedHeader,O=H.a.sidebarLogo,T={showSettings:E,fixedHeader:B,sidebarLogo:O},L={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},V={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},A={namespaced:!0,state:T,mutations:L,actions:V},$="token";function j(){return k.a.get($)}function D(e){return k.a.set($,e)}function R(){return k.a.remove($)}var I=b.a.create({timeout:5e3});I.interceptors.request.use((function(e){return yt.getters.token&&(e.headers["token"]=j()),e}),(function(e){return console.log(e),Promise.reject(e)})),I.interceptors.response.use((function(e){var t=e.data;return t}),(function(e){return console.log("err"+e),Object(o["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)}));var N=I;function P(e){var t="";return t="/api/v1/system/login",N({url:t,method:"post",data:e})}function q(e){var t="";return t="/api/v1/system/loginParam",N({url:t,method:"get",params:{}})}function G(){var e="";return e="/api/v1/system/reboot",N({url:e,method:"post"})}console.log("当前环境:production");n("3b2b"),n("a481");var F,U,K=n("8c4f"),J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),e._v(" "),n("app-main")],1)],1)},W=[],Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"navbar"},[a("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),e._v(" "),a("breadcrumb",{staticClass:"breadcrumb-container"}),e._v(" "),a("div",{staticClass:"right-menu"},[a("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[a("div",{staticClass:"avatar-wrapper"},[a("img",{staticClass:"user-avatar",attrs:{src:n("1605")}}),e._v(" "),a("i",{staticClass:"el-icon-caret-bottom"})]),e._v(" "),a("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("router-link",{attrs:{to:"/"}},[a("el-dropdown-item",[e._v("\n 回到首页\n ")])],1),e._v(" "),a("el-dropdown-item",{attrs:{divided:""}},[a("span",{staticStyle:{display:"block"},on:{click:e.logout}},[e._v("重启系统")])])],1)],1)],1)],1)},Q=[],X=n("db72"),Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},ee=[],te=n("bd11"),ne=n.n(te),ae={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=ne.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},ie=ae,oe=(n("976b"),Object(h["a"])(ie,Z,ee,!1,null,"33d79dae",null)),ce=oe.exports,re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},se=[],le={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ue=le,de=(n("186a"),Object(h["a"])(ue,re,se,!1,null,"49e15297",null)),me=de.exports,he={components:{Breadcrumb:ce,Hamburger:me},computed:Object(X["a"])({},Object(g["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("/login");case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},pe=he,fe=(n("2753"),Object(h["a"])(pe,Y,Q,!1,null,"d179ddf0",null)),ve=fe.exports,be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),e._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},ge=[],we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),e._v(" "),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},xe=[],ye={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"Vue Admin Template",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},ke=ye,Me=(n("6b31"),Object(h["a"])(ke,we,xe,!1,null,"5bb1c0e2",null)),ze=Me.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._v(" "),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},_e=[],Se=n("df7c"),He=n.n(Se),Ee=n("61f7"),Be={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,o=[];return a&&o.push(e("svg-icon",{attrs:{"icon-class":a}})),i&&o.push(e("span",{slot:"title"},[i])),o}},Oe=Be,Te=Object(h["a"])(Oe,F,U,!1,null,null,null),Le=Te.exports,Ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("component",e._b({},"component",e.linkProps(e.to),!1),[e._t("default")],2)},Ae=[],$e={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return Object(Ee["a"])(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},je=$e,De=Object(h["a"])(je,Ve,Ae,!1,null,null,null),Re=De.exports,Ie={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Ne={name:"SidebarItem",components:{Item:Le,AppLink:Re},mixins:[Ie],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(X["a"])(Object(X["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(Ee["a"])(e)?e:Object(Ee["a"])(this.basePath)?this.basePath:He.a.resolve(this.basePath,e)}}},Pe=Ne,qe=Object(h["a"])(Pe,Ce,_e,!1,null,null,null),Ge=qe.exports,Fe=n("cf1e"),Ue=n.n(Fe),Ke={components:{SidebarItem:Ge,Logo:ze},computed:Object(X["a"])(Object(X["a"])({},Object(g["b"])(["sidebar"])),{},{routes:function(){return this.$router.options.routes},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ue.a},isCollapse:function(){return!this.sidebar.opened}})},Je=Ke,We=Object(h["a"])(Je,be,ge,!1,null,null,null),Ye=We.exports,Qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},Xe=[],Ze={name:"AppMain",computed:{key:function(){return this.$route.path}}},et=Ze,tt=(n("e4de"),n("028b"),Object(h["a"])(et,Qe,Xe,!1,null,"64cf4d83",null)),nt=tt.exports,at=document,it=at.body,ot=992,ct={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&yt.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(yt.dispatch("app/toggleDevice","mobile"),yt.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=it.getBoundingClientRect();return e.width-1=0}function o(e){var t=["admin","111111"];return t.indexOf(e.trim())>=0}n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}))},"6b31":function(e,t,n){"use strict";var a=n("4cdc"),i=n.n(a);i.a},"83d6":function(e,t){e.exports={title:"通用采集器系统",fixedHeader:!1,sidebarLogo:!1}},8902:function(e,t,n){},"93cd":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"976b":function(e,t,n){"use strict";var a=n("f14a"),i=n.n(a);i.a},"9f2b":function(e,t,n){"use strict";var a=n("bf90"),i=n.n(a);i.a},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b37b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-deviceStatus",use:"icon-deviceStatus-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});c.a.add(r);t["default"]=r},bf90:function(e,t,n){},c504:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-deviceManage",use:"icon-deviceManage-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d27f:function(e,t,n){"use strict";var a=n("e176"),i=n.n(a);i.a},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},dc52:function(e,t,n){},dcbb:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-template",use:"icon-template-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},e176:function(e,t,n){},e4de:function(e,t,n){"use strict";var a=n("8902"),i=n.n(a);i.a},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},f117:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-wireless",use:"icon-wireless-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},f12c:function(e,t,n){},f14a:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});c.a.add(r);t["default"]=r}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"028b":function(e,t,n){"use strict";var a=n("f12c"),i=n.n(a);i.a},1343:function(e,t,n){},"14b4":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-memory",use:"icon-memory-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},1605:function(e,t,n){e.exports=n.p+"static/img/admin.ecba1844.gif"},"186a":function(e,t,n){"use strict";var a=n("dc52"),i=n.n(a);i.a},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"1b2d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-interface",use:"icon-interface-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},2753:function(e,t,n){"use strict";var a=n("1343"),i=n.n(a);i.a},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"4cdc":function(e,t,n){},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});c.a.add(r);t["default"]=r},"51ff":function(e,t,n){var a={"./dashboard.svg":"f782","./deviceManage.svg":"c504","./deviceStatus.svg":"b37b","./example.svg":"30c3","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./interface.svg":"1b2d","./link.svg":"18f0","./memory.svg":"14b4","./nested.svg":"dcf8","./password.svg":"2a3d","./table.svg":"47f1","./template.svg":"dcbb","./tree.svg":"93cd","./user.svg":"b3b5","./wireless.svg":"f117"};function i(e){var t=o(e);return n(t)}function o(e){var t=a[e];if(!(t+1)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t}i.keys=function(){return Object.keys(a)},i.resolve=o,e.exports=i,i.id="51ff"},"56d7":function(e,t,n){"use strict";n.r(t);n("96cf");var a=n("3b8d"),i=(n("cadf"),n("551c"),n("f751"),n("097d"),n("2b0e")),o=(n("f5df"),n("5c96")),c=n.n(o),r=(n("0fae"),n("f0d9")),s=n.n(r),l=(n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),u=[],d={name:"App"},m=d,h=n("2877"),p=Object(h["a"])(m,l,u,!1,null,null,null),f=p.exports,v=n("bc3a"),b=n.n(v),g=n("2f62"),w=(n("7f7f"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name}}),x=w,y=n("a78e"),k=n.n(y),M={sidebar:{opened:!k.a.get("sidebarStatus")||!!+k.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},z={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?k.a.set("sidebarStatus",1):k.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){k.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},C={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},_={namespaced:!0,state:M,mutations:z,actions:C},S=n("83d6"),H=n.n(S),E=H.a.showSettings,B=H.a.fixedHeader,O=H.a.sidebarLogo,T={showSettings:E,fixedHeader:B,sidebarLogo:O},L={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},V={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},A={namespaced:!0,state:T,mutations:L,actions:V},$="token";function j(){return k.a.get($)}function D(e){return k.a.set($,e)}function R(){return k.a.remove($)}var I=b.a.create({timeout:5e3});I.interceptors.request.use((function(e){return yt.getters.token&&(e.headers["token"]=j()),e}),(function(e){return console.log(e),Promise.reject(e)})),I.interceptors.response.use((function(e){var t=e.data;return t}),(function(e){return console.log("err"+e),Object(o["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)}));var N=I;function P(e){var t="";return t="/api/v1/system/login",N({url:t,method:"post",data:e})}function q(e){var t="";return t="/api/v1/system/loginParam",N({url:t,method:"get",params:{}})}function G(){var e="";return e="/api/v1/system/reboot",N({url:e,method:"post"})}console.log("当前环境:production");n("3b2b"),n("a481");var F,U,K=n("8c4f"),J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),e._v(" "),n("app-main")],1)],1)},W=[],Y=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"navbar"},[a("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),e._v(" "),a("breadcrumb",{staticClass:"breadcrumb-container"}),e._v(" "),a("div",{staticClass:"right-menu"},[a("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[a("div",{staticClass:"avatar-wrapper"},[a("img",{staticClass:"user-avatar",attrs:{src:n("1605")}}),e._v(" "),a("i",{staticClass:"el-icon-caret-bottom"})]),e._v(" "),a("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("router-link",{attrs:{to:"/"}},[a("el-dropdown-item",[e._v("\n 回到首页\n ")])],1),e._v(" "),a("el-dropdown-item",{attrs:{divided:""}},[a("span",{staticStyle:{display:"block"},on:{click:e.logout}},[e._v("重启系统")])])],1)],1)],1)],1)},Q=[],X=n("db72"),Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},ee=[],te=n("bd11"),ne=n.n(te),ae={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"首页"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=ne.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},ie=ae,oe=(n("976b"),Object(h["a"])(ie,Z,ee,!1,null,"33d79dae",null)),ce=oe.exports,re=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},se=[],le={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},ue=le,de=(n("186a"),Object(h["a"])(ue,re,se,!1,null,"49e15297",null)),me=de.exports,he={components:{Breadcrumb:ce,Hamburger:me},computed:Object(X["a"])({},Object(g["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("/login");case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},pe=he,fe=(n("2753"),Object(h["a"])(pe,Y,Q,!1,null,"d179ddf0",null)),ve=fe.exports,be=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),e._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},ge=[],we=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e(),e._v(" "),n("h1",{staticClass:"sidebar-title"},[e._v(e._s(e.title)+" ")])])],1)],1)},xe=[],ye={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"Vue Admin Template",logo:"https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png"}}},ke=ye,Me=(n("6b31"),Object(h["a"])(ke,we,xe,!1,null,"5bb1c0e2",null)),ze=Me.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._v(" "),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},_e=[],Se=n("df7c"),He=n.n(Se),Ee=n("61f7"),Be={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,o=[];return a&&o.push(e("svg-icon",{attrs:{"icon-class":a}})),i&&o.push(e("span",{slot:"title"},[i])),o}},Oe=Be,Te=Object(h["a"])(Oe,F,U,!1,null,null,null),Le=Te.exports,Ve=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("component",e._b({},"component",e.linkProps(e.to),!1),[e._t("default")],2)},Ae=[],$e={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return Object(Ee["a"])(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},je=$e,De=Object(h["a"])(je,Ve,Ae,!1,null,null,null),Re=De.exports,Ie={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},Ne={name:"SidebarItem",components:{Item:Le,AppLink:Re},mixins:[Ie],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(X["a"])(Object(X["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(Ee["a"])(e)?e:Object(Ee["a"])(this.basePath)?this.basePath:He.a.resolve(this.basePath,e)}}},Pe=Ne,qe=Object(h["a"])(Pe,Ce,_e,!1,null,null,null),Ge=qe.exports,Fe=n("cf1e"),Ue=n.n(Fe),Ke={components:{SidebarItem:Ge,Logo:ze},computed:Object(X["a"])(Object(X["a"])({},Object(g["b"])(["sidebar"])),{},{routes:function(){return this.$router.options.routes},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return Ue.a},isCollapse:function(){return!this.sidebar.opened}})},Je=Ke,We=Object(h["a"])(Je,be,ge,!1,null,null,null),Ye=We.exports,Qe=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},Xe=[],Ze={name:"AppMain",computed:{key:function(){return this.$route.path}}},et=Ze,tt=(n("e4de"),n("028b"),Object(h["a"])(et,Qe,Xe,!1,null,"64cf4d83",null)),nt=tt.exports,at=document,it=at.body,ot=992,ct={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&yt.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(yt.dispatch("app/toggleDevice","mobile"),yt.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=it.getBoundingClientRect();return e.width-1=0}function o(e){var t=["admin","111111"];return t.indexOf(e.trim())>=0}n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o}))},"6b31":function(e,t,n){"use strict";var a=n("4cdc"),i=n.n(a);i.a},"83d6":function(e,t){e.exports={title:"通用采集器系统",fixedHeader:!1,sidebarLogo:!1}},8902:function(e,t,n){},"93cd":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},"976b":function(e,t,n){"use strict";var a=n("f14a"),i=n.n(a);i.a},"9f2b":function(e,t,n){"use strict";var a=n("bf90"),i=n.n(a);i.a},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b37b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-deviceStatus",use:"icon-deviceStatus-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:''});c.a.add(r);t["default"]=r},bf90:function(e,t,n){},c504:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-deviceManage",use:"icon-deviceManage-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409EFF",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d27f:function(e,t,n){"use strict";var a=n("e176"),i=n.n(a);i.a},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},dc52:function(e,t,n){},dcbb:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-template",use:"icon-template-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},e176:function(e,t,n){},e4de:function(e,t,n){"use strict";var a=n("8902"),i=n.n(a);i.a},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});c.a.add(r);t["default"]=r},f117:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-wireless",use:"icon-wireless-usage",viewBox:"0 0 1024 1024",content:''});c.a.add(r);t["default"]=r},f12c:function(e,t,n){},f14a:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),o=n("21a1"),c=n.n(o),r=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});c.a.add(r);t["default"]=r}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/webroot/static/js/chunk-04ce602b.4df77d6f.js b/webroot/static/js/chunk-04ce602b.4df77d6f.js deleted file mode 100644 index e1142cb..0000000 --- a/webroot/static/js/chunk-04ce602b.4df77d6f.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04ce602b"],{"22ec":function(e,t,r){"use strict";var o=r("30c0"),a=r.n(o);a.a},"30c0":function(e,t,r){},3846:function(e,t,r){r("9e1e")&&"g"!=/./g.flags&&r("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:r("0bfb")})},"6b54":function(e,t,r){"use strict";r("3846");var o=r("cb7c"),a=r("0bfb"),i=r("9e1e"),n="toString",s=/./[n],l=function(e){r("2aba")(RegExp.prototype,n,e,!0)};r("79e5")((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?l((function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!i&&e instanceof RegExp?a.call(e):void 0)})):s.name!=n&&l((function(){return s.call(this)}))},e3a9:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("el-row",{attrs:{gutter:20}},[r("el-col",{staticStyle:{"margin-bottom":"20px"},attrs:{xs:24,sm:12,md:12}},[r("el-row",{attrs:{gutter:20}},[r("div",[r("el-button",{staticStyle:{"margin-right":"15px"},attrs:{type:"primary",icon:"el-icon-back"},on:{click:e.goBackToDeviceModel}},[e._v(e._s("设备模型"))]),e._v(" "),r("el-input",{staticStyle:{width:"50%"},attrs:{placeholder:"输入地址/名称/状态过滤"},model:{value:e.filterText,callback:function(t){e.filterText=t},expression:"filterText"}})],1)])],1),e._v(" "),r("el-col",{staticStyle:{"margin-bottom":"20px","text-align":"right"},attrs:{xs:24,sm:12,md:12}},[r("el-button-group",[r("el-button",{attrs:{type:"primary"},on:{click:e.handleAddFunction}},[e._v("添加")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.getCustomFunctionListByDeviceModel}},[e._v("刷新")])],1)],1)],1),e._v(" "),r("el-row",{attrs:{gutter:20}},[r("el-col",{staticStyle:{"margin-bottom":"10px"},attrs:{xs:24,sm:12,md:12}},[r("span",{staticStyle:{"font-size":"20px","align-self":"center","margin-right":"15px"}},[e._v(e._s(e.currentDeviceModelName))])])],1),e._v(" "),r("el-row",{attrs:{gutter:20}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%",height:"calc(100% - 55px)","overflow-y":"auto"},attrs:{data:e.functionList.slice((e.currentPage-1)*e.pagesize,e.currentPage*e.pagesize),stripe:!0,"max-height":"1024","element-loading-text":"加载中",border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{type:"index",index:e.indexMethod,align:"center",label:"序号",width:"55px"}}),e._v(" "),r("el-table-column",{attrs:{label:"功能类型",align:"center",width:"95px"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{type:e._f("functionTypeTagFilter")(t.row.FunctionType)}},[e._v(e._s(e._f("functionTypeFilter")(t.row.FunctionType)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"功能名称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.Explain)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"标识符",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.Name))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"数据类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e._f("dataTypeFilter")(t.row.Type)))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"数据定义",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[null!=t.row.Params["Min"]&&null!=t.row.Params["Max"]?r("div",[r("span",[e._v(e._s("数值范围:"+t.row.Params["Min"]+"-"+t.row.Params["Max"]))])]):e._e(),e._v(" "),null!=t.row.Params["Step"]?r("div",[r("span",[e._v(e._s("步长:"+t.row.Params["Step"]))])]):e._e(),e._v(" "),null!=t.row.Params["CallType"]?r("div",[r("span",[e._v(e._s("调用方式:"+("0"==t.row.Params["CallType"]?"同步":"异步")))])]):e._e()]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return e.handleClick(t.row,"edit")}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return e.handleClick(t.row,"delete")}}},[e._v("删除")])]}}])})],1),e._v(" "),r("el-pagination",{staticStyle:{"margin-top":"10px"},attrs:{layout:"total, sizes, prev, pager, next, jumper",total:e.functionList.length,"current-page":e.currentPage,"page-sizes":[5,10,15,20],"page-size":1},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),r("el-dialog",{attrs:{title:e.title,visible:e.functionVisible,width:"30%"},on:{"update:visible":function(t){e.functionVisible=t}}},[r("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"功能类型"}},[r("el-radio-group",{attrs:{size:"medium"},model:{value:e.form.functionType,callback:function(t){e.$set(e.form,"functionType",t)},expression:"form.functionType"}},[r("el-radio-button",{attrs:{label:"property"}},[e._v("属性")]),e._v(" "),r("el-radio-button",{attrs:{label:"service"}},[e._v("服务")]),e._v(" "),r("el-radio-button",{attrs:{label:"event"}},[e._v("事件")])],1)],1),e._v(" "),r("el-form-item",{attrs:{label:"功能名称"}},[r("el-input",{attrs:{placeholder:"请输入功能名称"},model:{value:e.form.Explain,callback:function(t){e.$set(e.form,"Explain",t)},expression:"form.Explain"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"标识符"}},[r("el-input",{attrs:{placeholder:"请输入您的标识符"},model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),"property"==e.form.functionType?r("el-form-item",{attrs:{label:"数据类型"}},[r("el-select",{attrs:{clearable:"",placeholder:"请选择数据类型"},model:{value:e.form.dataType,callback:function(t){e.$set(e.form,"dataType",t)},expression:"form.dataType"}},e._l(e.dataTypeList,(function(e,t){return r("el-option",{key:t,attrs:{label:e.text,value:e.id}})})),1)],1):e._e(),e._v(" "),"property"!=e.form.functionType||"0"!=e.form.dataType&&"1"!=e.form.dataType&&"2"!=e.form.dataType?e._e():r("el-form-item",{attrs:{label:"取值范围"}},[r("el-col",{attrs:{span:11}},[r("el-input",{attrs:{placeholder:"最小值"},model:{value:e.form.Min,callback:function(t){e.$set(e.form,"Min",t)},expression:"form.Min"}})],1),e._v(" "),r("el-col",{attrs:{span:2}},[r("label",{staticStyle:{margin:"0px 8px"}},[e._v("~")])]),e._v(" "),r("el-col",{attrs:{span:11}},[r("el-input",{attrs:{placeholder:"最大值"},model:{value:e.form.Max,callback:function(t){e.$set(e.form,"Max",t)},expression:"form.Max"}})],1)],1),e._v(" "),"property"!=e.form.functionType||"0"!=e.form.dataType&&"1"!=e.form.dataType&&"2"!=e.form.dataType?e._e():r("el-form-item",{attrs:{label:"步长"}},[r("el-input",{attrs:{placeholder:"请输入步长"},model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}})],1),e._v(" "),"property"!=e.form.functionType||"0"!=e.form.dataType&&"1"!=e.form.dataType&&"2"!=e.form.dataType?e._e():r("el-form-item",{attrs:{label:"单位"}},[r("el-input",{attrs:{placeholder:"请输入您的单位"},model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}})],1),e._v(" "),"property"==e.form.functionType&&"3"==e.form.dataType?r("el-form-item",{attrs:{label:"数据长度"}},[r("el-input",{attrs:{placeholder:"请输入数据长度"},model:{value:e.form.DataLength,callback:function(t){e.$set(e.form,"DataLength",t)},expression:"form.DataLength"}})],1):e._e(),e._v(" "),"property"==e.form.functionType?r("el-form-item",{attrs:{label:"读写类型"}},[r("el-radio-group",{model:{value:e.form.AccessMode,callback:function(t){e.$set(e.form,"AccessMode",t)},expression:"form.AccessMode"}},[r("el-radio",{attrs:{label:0}},[e._v("只读")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("只写")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("读写")])],1)],1):e._e(),e._v(" "),"service"==e.form.functionType?r("el-form-item",{attrs:{label:"调用方式"}},[r("el-radio-group",{model:{value:e.form.AccessMode,callback:function(t){e.$set(e.form,"AccessMode",t)},expression:"form.AccessMode"}},[r("el-radio",{attrs:{label:0}},[e._v("同步")]),e._v(" "),r("el-radio",{attrs:{label:1}},[e._v("异步")])],1)],1):e._e()],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.functionVisible=!1,e.form={}}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.addDevice}},[e._v("确 定")])],1)],1)],1)},a=[],i=(r("6b54"),{filters:{functionTypeTagFilter:function(e){var t={property:"success",service:"gray",event:"danger"};return t[e]||"info"},functionTypeFilter:function(e){var t={property:"属性",service:"服务",event:"事件"};return t[e]||"未知"},dataTypeFilter:function(e){var t={0:"uint32",1:"int32",2:"double",3:"string"};return t[e]||"未知"},paramFilter:function(e){var t="";for(var r in e["Min"]&&e["Max"]&&(t=t+"数值范围:"+e["Min"]+"-"+e["Max"]+"
"),e)"Step"===r?t=t+"步长:"+e[r]+"
":"Unit"===r?t=t+"单位:"+e[r]+"
":"Decimals"===r&&(t=t+"小数位:"+e[r]+"
");return t||"无"}},data:function(){return{deviceListByCollInterface:[],listLoading:!1,form:{},filterText:"",currentDeviceModelName:"",editVisible:!1,functionVisible:!1,functionTypeList:[],dataTypeList:[],addVisible:!1,interface:[],activeNames:"11",functionList:[],InterfaceMap:[],mode:"",title:"",currentPage:1,pagesize:5,multipleSelection:[]}},computed:{filtedData:function(){var e=this;return this.deviceListByCollInterface.filter((function(t){if(t.Addr.toString().indexOf(e.filterText)>-1||t.Name.toString().indexOf(e.filterText)>-1||t.CommStatus.toString().indexOf(e.filterText)>-1)return t}))},functionCntInfo:function(){var e=0,t=0,r={};return this.functionList.filter((function(r){"property"===r.FunctionType&&(e+=1),"service"===r.FunctionType&&(t+=1)})),r.propertyCnt=e,r.serviceCnt=t,r},currentCollInterfaceDeviceNodeInfo:function(){var e=0,t={};return this.deviceListByCollInterface.filter((function(t){"onLine"===t.CommStatus&&(e+=1)})),t.DeviceNodeCnt=this.deviceListByCollInterface.length,t.DeviceNodeOnlineCnt=e,t}},created:function(){var e=this.$route.params;console.log(e),e&&e.deviceModel?(this.currentDeviceModelName=e.deviceModel.Name,this.getCustomFunctionListByDeviceModel(),this.functionTypeList=[{id:"property",text:"属性"},{id:"service",text:"服务"},{id:"event",text:"事件"}],this.dataTypeList=[{id:"0",text:"uint32"},{id:"1",text:"int32"},{id:"2",text:"double"},{id:"3",text:"string"}]):this.$router.push("deviceModel")},methods:{getCustomFunctionListByDeviceModel:function(){this.listLoading=!0;var e=this,t="";t="./api/v1/device/tsl/contents",this.$axios({method:"get",url:t,headers:{token:this.$store.getters.token}}).then((function(t){var r=t.data;if("0"===r.Code){for(var o=r.Data.Properties,a=r.Data.Services,i=0;i"),e)"Step"===r?t=t+"步长:"+e[r]+"
":"Unit"===r?t=t+"单位:"+e[r]+"
":"Decimals"===r&&(t=t+"小数位:"+e[r]+"
");return t||"无"}},data:function(){return{deviceListByCollInterface:[],listLoading:!1,form:{},filterText:"",currentDeviceModelName:"",editVisible:!1,functionVisible:!1,functionTypeList:[],dataTypeList:[],addVisible:!1,interface:[],activeNames:"11",functionList:[],InterfaceMap:[],mode:"",title:"",currentPage:1,pagesize:5,multipleSelection:[]}},computed:{filtedData:function(){var e=this;return this.deviceListByCollInterface.filter((function(t){if(t.Addr.toString().indexOf(e.filterText)>-1||t.Name.toString().indexOf(e.filterText)>-1||t.CommStatus.toString().indexOf(e.filterText)>-1)return t}))},functionCntInfo:function(){var e=0,t=0,r={};return this.functionList.filter((function(r){"property"===r.FunctionType&&(e+=1),"service"===r.FunctionType&&(t+=1)})),r.propertyCnt=e,r.serviceCnt=t,r},currentCollInterfaceDeviceNodeInfo:function(){var e=0,t={};return this.deviceListByCollInterface.filter((function(t){"onLine"===t.CommStatus&&(e+=1)})),t.DeviceNodeCnt=this.deviceListByCollInterface.length,t.DeviceNodeOnlineCnt=e,t}},created:function(){var e=this.$route.params;console.log(e),e&&e.deviceModel?(this.currentDeviceModelName=e.deviceModel.Name,this.getCustomFunctionListByDeviceModel(),this.functionTypeList=[{id:"property",text:"属性"},{id:"service",text:"服务"},{id:"event",text:"事件"}],this.dataTypeList=[{id:"0",text:"uint32"},{id:"1",text:"int32"},{id:"2",text:"double"},{id:"3",text:"string"}]):this.$router.push("deviceModel")},methods:{getCustomFunctionListByDeviceModel:function(){this.listLoading=!0;var e=this,t="";t="./api/v1/device/tsl/contents",this.$axios({method:"get",url:t,params:{TSLName:e.currentDeviceModelName},headers:{token:this.$store.getters.token}}).then((function(t){var r=t.data;if("0"===r.Code){for(var o=r.Data.Properties,a=r.Data.Services,i=0;i