diff --git a/webroot/index.html b/webroot/index.html index 9546f08..f36f885 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-45bcf5d5.32eab618.css b/webroot/static/css/chunk-45bcf5d5.32eab618.css new file mode 100644 index 0000000..b9625a7 --- /dev/null +++ b/webroot/static/css/chunk-45bcf5d5.32eab618.css @@ -0,0 +1 @@ +@supports (-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;-webkit-appearance:none;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-73b2acc0]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-73b2acc0]{position:relative;width:520px;max-width:100%;padding:160px 35px 0;margin:0 auto;overflow:hidden}.login-container .tips[data-v-73b2acc0]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-73b2acc0]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-73b2acc0]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-73b2acc0]{position:relative}.login-container .title-container .title[data-v-73b2acc0]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-73b2acc0]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} \ No newline at end of file diff --git a/webroot/static/css/chunk-86cfc3e4.0109314e.css b/webroot/static/css/chunk-86cfc3e4.0109314e.css new file mode 100644 index 0000000..bea5eff --- /dev/null +++ b/webroot/static/css/chunk-86cfc3e4.0109314e.css @@ -0,0 +1 @@ +.layTop1{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.layTop,.layTop1{-webkit-box-sizing:initial;box-sizing:initial;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:10px} \ No newline at end of file diff --git a/webroot/static/css/chunk-cfd0482c.350c691c.css b/webroot/static/css/chunk-cfd0482c.350c691c.css new file mode 100644 index 0000000..125e0fd --- /dev/null +++ b/webroot/static/css/chunk-cfd0482c.350c691c.css @@ -0,0 +1 @@ +.card-panel-icon[data-v-54028602]{float:left;font-size:48px;width:50%;display:block;margin-bottom:10px;color:#f4516c}.text[data-v-54028602]{font-size:14px}.item[data-v-54028602]{margin-bottom:18px;display:-webkit-box;display:-ms-flexbox;display:flex}.bottom[data-v-54028602]{margin-top:23px;line-height:25px;padding-left:10px;padding-right:10px}.custom-tree-node[data-v-54028602]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.demo-drawer__content[data-v-54028602]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;padding-left:20px;padding-right:20px;height:580px}.demo-drawer__footer[data-v-54028602]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:10px}.deviceTree[data-v-54028602]{overflow:auto;height:500px}.demo-drawer__footer button[data-v-54028602],.deviceTree[data-v-54028602]{-webkit-box-flex:1;-ms-flex:1;flex:1} \ No newline at end of file diff --git a/webroot/static/js/app.80adc1f4.js b/webroot/static/js/app.80adc1f4.js new file mode 100644 index 0000000..6674cdc --- /dev/null +++ b/webroot/static/js/app.80adc1f4.js @@ -0,0 +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},"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},"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},"3dad":function(e,t,n){},"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}},_={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)}},C={namespaced:!0,state:M,mutations:z,actions:_},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("a193"),Object(h["a"])(pe,Y,Q,!1,null,"cfca58f4",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,_e=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)},Ce=[],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"])({},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,_e,Ce,!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(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},a193:function(e,t,n){"use strict";var a=n("3dad"),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-45bcf5d5.fadaad85.js b/webroot/static/js/chunk-45bcf5d5.fadaad85.js new file mode 100644 index 0000000..7030254 --- /dev/null +++ b/webroot/static/js/chunk-45bcf5d5.fadaad85.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45bcf5d5"],{2017:function(e,t,s){"use strict";var n=s("b12d"),o=s.n(n);o.a},"9ed6":function(e,t,s){"use strict";s.r(t);var n=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"login-container"},[s("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[s("div",{staticClass:"title-container"},[s("h3",{staticClass:"title"},[e._v(" "+e._s(e.HOME_TITLE))])]),e._v(" "),s("el-form-item",{attrs:{prop:"username"}},[s("span",{staticClass:"svg-container"},[s("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),s("el-input",{ref:"username",attrs:{placeholder:"Username",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),s("el-form-item",{attrs:{prop:"password"}},[s("span",{staticClass:"svg-container"},[s("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),s("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),s("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[s("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),s("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("登陆")]),e._v(" "),s("div",{staticClass:"tips"},[s("span",{staticStyle:{"margin-right":"20px"}},[e._v("用户名: admin")]),e._v(" "),s("span",[e._v(" 密码: admin")])])],1)],1)},o=[],r=s("61f7"),a={name:"Login",data:function(){var e=function(e,t,s){Object(r["c"])(t)?s():s(new Error("请输入正确的用户名"))},t=function(e,t,s){t.length<5?s(new Error("密码不可小于5个字符")):Object(r["b"])(t)?s():s(new Error("请输入正确的密码"))};return{loginForm:{username:"admin",password:"admin"},loginRules:{username:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},loading:!1,passwordType:"password",redirect:void 0,OPEN_SOURCE:this.OPEN_SOURCE}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return e.$message.error("请输入正确的用户名或者密码"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(t){e.$axios.defaults.headers.common["token"]=e.$store.getters.token,e.$router.push({path:e.redirect||"/"}),e.loading=!1})).catch((function(t){console.log(t),e.loading=!1}))}))}}},i=a,l=(s("2017"),s("cc53"),s("2877")),c=Object(l["a"])(i,n,o,!1,null,"73b2acc0",null);t["default"]=c.exports},b12d:function(e,t,s){},cc53:function(e,t,s){"use strict";var n=s("d9b5"),o=s.n(n);o.a},d9b5:function(e,t,s){}}]); \ No newline at end of file diff --git a/webroot/static/js/chunk-4c4b04a0.e0a1e983.js b/webroot/static/js/chunk-4c4b04a0.e0a1e983.js new file mode 100644 index 0000000..cb2c3a1 --- /dev/null +++ b/webroot/static/js/chunk-4c4b04a0.e0a1e983.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c4b04a0"],{9691:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-container"},[s("el-row",{attrs:{gutter:20}},[s("el-button",{staticStyle:{float:"right","margin-left":"5px","margin-bottom":"20px"},attrs:{type:"primary"},on:{click:t.addNetWork}},[t._v("添加")])],1),t._v(" "),s("el-row",{attrs:{gutter:20}},t._l(t.NetworkParam,(function(e,a){return s("el-col",{key:a,attrs:{xs:24,sm:12,md:6}},[s("el-card",{staticClass:"box-card",attrs:{shadow:"hover"}},[s("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[s("span",[t._v(t._s(e.Name))]),t._v(" "),s("el-button",{staticStyle:{float:"right",padding:"3px 0"},attrs:{type:"text"},on:{click:function(s){return t.editNetWork(e)}}},[t._v("修改")])],1),t._v(" "),s("el-row",{staticClass:"text item"},[s("el-col",{attrs:{xs:12,sm:12,md:12}},[s("span",[t._v("获取方式:")])]),t._v(" "),s("el-col",{attrs:{xs:12,sm:12,md:12}},[t._v("\n "+t._s("1"==e.DHCP?"自动获取":"手动设置")+"\n ")])],1),t._v(" "),s("el-row",{staticClass:"text item"},[s("el-col",{attrs:{xs:12,sm:12,md:12}},[s("span",[t._v("IP地址:")])]),t._v(" "),s("el-col",{attrs:{xs:12,sm:12,md:12}},[t._v("\n "+t._s(e.IP)+"\n ")])],1),t._v(" "),s("el-row",{staticClass:"text item"},[s("el-col",{attrs:{xs:12,sm:12,md:12}},[s("span",[t._v("子网掩码:")])]),t._v(" "),s("el-col",{attrs:{xs:12,sm:12,md:12}},[t._v("\n "+t._s(e.Netmask)+"\n ")])],1),t._v(" "),s("el-row",{staticClass:"text item"},[s("el-col",{attrs:{xs:12,sm:12,md:12}},[s("span",[t._v("默认网关:")])]),t._v(" "),s("el-col",{attrs:{xs:12,sm:12,md:12}},[t._v("\n "+t._s(e.Broadcast)+"\n ")])],1),t._v(" "),s("el-row",{staticClass:"text item"},[s("el-col",{attrs:{xs:12,sm:12,md:12}},[s("span",[t._v("MAC地址:")])]),t._v(" "),s("el-col",{attrs:{xs:12,sm:12,md:12}},[t._v("\n "+t._s(e.MAC)+"\n ")])],1)],1)],1)})),1),t._v(" "),s("el-dialog",{attrs:{title:t.title,visible:t.editVisible,width:"30%"},on:{"update:visible":function(e){t.editVisible=e}}},[s("el-form",{ref:"form",attrs:{model:t.form,"label-width":"100px"}},[s("el-form-item",{attrs:{label:"网口名称"}},[s("el-input",{model:{value:t.form.Name,callback:function(e){t.$set(t.form,"Name",e)},expression:"form.Name"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"获取方式"}},[s("el-radio-group",{on:{change:t.changeDHCP},model:{value:t.form.DHCP,callback:function(e){t.$set(t.form,"DHCP",e)},expression:"form.DHCP"}},[s("el-radio-button",{attrs:{label:"1"}},[t._v("自动获取")]),t._v(" "),s("el-radio-button",{attrs:{label:"0"}},[t._v("手动设置")])],1)],1),t._v(" "),s("el-form-item",{attrs:{label:"IP地址"}},[s("el-input",{attrs:{disabled:"1"==t.form.DHCP},model:{value:t.form.IP,callback:function(e){t.$set(t.form,"IP",e)},expression:"form.IP"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"子网掩码"}},[s("el-input",{attrs:{disabled:"1"==t.form.DHCP},model:{value:t.form.Netmask,callback:function(e){t.$set(t.form,"Netmask",e)},expression:"form.Netmask"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"默认网关"}},[s("el-input",{attrs:{disabled:"1"==t.form.DHCP},model:{value:t.form.Broadcast,callback:function(e){t.$set(t.form,"Broadcast",e)},expression:"form.Broadcast"}})],1),t._v(" "),s("el-form-item",{attrs:{label:"MAC地址"}},[s("el-input",{model:{value:t.form.MAC,callback:function(e){t.$set(t.form,"MAC",e)},expression:"form.MAC"}})],1)],1),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.editVisible=!1,t.getNetWorkList()}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.saveEditNetWork}},[t._v("确 定")])],1)],1)],1)},r=[],o={data:function(){return{list:null,listLoading:!0,editVisible:!1,title:"",form:{},NetworkParam:[]}},created:function(){this.getNetWorkList()},methods:{getNetWorkList:function(){var t=this,e="";e="./api/v1/network/param",this.$axios({method:"get",url:e,headers:{token:this.$store.getters.token}}).then((function(e){var s=e.data;"0"===s.Code?t.NetworkParam=s.Data.NetworkParam:"1"===s.Code?t.$message.error(s.Message):"-1"===s.Code?(t.$message.error(s.Message),t.$store.dispatch("user/resetToken"),t.$router.push("/login?redirect=".concat(t.$route.fullPath))):t.$message.error("返回未知错误,错误码:"+s.Code)})).catch((function(e){t.$message.error("出错了"+JSON.stringify(e))}))},editNetWork:function(t){this.form=t,this.editVisible=!0,this.title="修改网口"},addNetWork:function(){this.form={},this.editVisible=!0,this.title="添加网口"},changeDHCP:function(t){"1"===t&&(this.form.IP="",this.form.Netmask="",this.form.Broadcast="")},saveEditNetWork:function(){var t=this;"1"===this.form.DHCP&&(this.form.IP="",this.form.Netmask="",this.form.Broadcast=""),this.$axios({method:"post",url:"./api/v1/network/param",data:t.form,headers:{token:this.$store.getters.token}}).then((function(e){t.editVisible=!1,t.getNetWorkList()})).catch((function(e){t.$message.error("出错了"+JSON.stringify(e))}))}}},i=o,l=(s("fc41"),s("2877")),n=Object(l["a"])(i,a,r,!1,null,null,null);e["default"]=n.exports},a54f:function(t,e,s){},fc41:function(t,e,s){"use strict";var a=s("a54f"),r=s.n(a);r.a}}]); \ No newline at end of file diff --git a/webroot/static/js/chunk-86cfc3e4.b82659f6.js b/webroot/static/js/chunk-86cfc3e4.b82659f6.js new file mode 100644 index 0000000..b39e3e4 --- /dev/null +++ b/webroot/static/js/chunk-86cfc3e4.b82659f6.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-86cfc3e4"],{"28a5":function(e,t,i){"use strict";var s=i("aae3"),n=i("cb7c"),r=i("ebd6"),o=i("0390"),a=i("9def"),l=i("5f1b"),c=i("520a"),u=i("79e5"),d=Math.min,h=[].push,f="split",p="length",g="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));i("214f")("split",2,(function(e,t,i,u){var $;return $="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!s(e))return i.call(n,e,t);var r,o,a,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?m:t>>>0,v=new RegExp(e.source,u+"g");while(r=c.call(v,n)){if(o=v[g],o>d&&(l.push(n.slice(d,r.index)),r[p]>1&&r.index=f))break;v[g]===r.index&&v[g]++}return d===n[p]?!a&&v.test("")||l.push(""):l.push(n.slice(d)),l[p]>f?l.slice(0,f):l}:"0"[f](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:i.call(this,e,t)}:i,[function(i,s){var n=e(this),r=void 0==i?void 0:i[t];return void 0!==r?r.call(i,n,s):$.call(String(n),i,s)},function(e,t){var s=u($,e,this,t,$!==i);if(s.done)return s.value;var c=n(e),h=String(this),f=r(c,RegExp),p=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),b=new f(v?c:"^(?:"+c.source+")",g),x=void 0===t?m:t>>>0;if(0===x)return[];if(0===h.length)return null===l(b,h)?[h]:[];var y=0,S=0,k=[];while(S-1&&r.fileList.splice(s,1)}else"1"===i.Code?r.$message.error(i.Message):"-1"===i.Code?(r.$message.error(i.Message),r.$store.dispatch("user/resetToken"),r.$router.push("/login?redirect=".concat(r.$route.fullPath))):r.$message.error("返回未知错误,错误码:"+i.Code)})).catch((function(e){r.$message.error("出错了"+JSON.stringify(e))}))},s=0;s-1||t.Name.toString().indexOf(e.filterText)>-1||t.CommStatus.toString().indexOf(e.filterText)>-1)return t}))},deviceCntInfo:function(){var e=0,t=0,r={};return this.interfaceList.filter((function(r){e+=parseInt(r.DeviceNodeCnt),t+=parseInt(r.DeviceNodeOnlineCnt)})),r.deviceCnt=e,r.deviceOnlineCnt=t,r},currentCollInterfaceDeviceNodeInfo:function(){var e=0,t=0,r={};return this.deviceListByServiceName.filter((function(r){"onLine"===r.CommStatus&&(e+=1),"onLine"===r.ReportStatus&&(t+=1)})),r.DeviceNodeCnt=this.deviceListByServiceName.length,r.DeviceNodeOnlineCnt=e,r.DeviceNodeReportOnlineCnt=t,r}},created:function(){this.gridData=[{date:"2016-05-02",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-04",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-01",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"},{date:"2016-05-03",name:"王小虎",address:"上海市普陀区金沙江路 1518 弄"}],this.treeData=[{id:1,label:"一级 1",children:[{id:4,label:"二级 1-1",children:[{id:9,label:"三级 1-1-1"},{id:10,label:"三级 1-1-2"}]}]}];var e=this.$route.params;console.log(e),e&&e.ServiceName&&e.Protocol?(this.currentServiceName=e.ServiceName,this.currentProtocol=e.Protocol,this.getDeviceListByServiceName()):this.$router.push("/dataService/dataService")},methods:{getAllInterface:function(){var e=this,t="";t="./api/v1/device/allInterface",this.$axios({method:"get",url:t,headers:{token:this.$store.getters.token}}).then((function(t){var r=t.data;if("0"===r.Code){e.interfaceList=r.Data;for(var i=0;i","删除设备",{confirmButtonText:"确定",cancelButtonText:"取消",center:!0,dangerouslyUseHTMLString:!0,type:"info"}).then((function(e){"confirm"===e&&(t.mode="delete",t.deleteReportDevice())})).catch((function(e){"cancel"===e&&t.getDeviceListByServiceName()}))}}},deleteReportDevice:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,r,i,a,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,r="",r="./api/v1/report/node/param",i=0,a=0;case 5:if(!(a1||""[f](/.?/)[v]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!i(e))return r.call(a,e,t);var o,s,n,c=[],d=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,f=void 0===t?p:t>>>0,g=new RegExp(e.source,d+"g");while(o=l.call(g,a)){if(s=g[h],s>u&&(c.push(a.slice(u,o.index)),o[v]>1&&o.index=f))break;g[h]===o.index&&g[h]++}return u===a[v]?!n&&g.test("")||c.push(""):c.push(a.slice(u)),c[v]>f?c.slice(0,f):c}:"0"[f](void 0,0)[v]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,i){var a=e(this),o=void 0==r?void 0:r[t];return void 0!==o?o.call(r,a,i):b.call(String(a),r,i)},function(e,t){var i=d(b,e,this,t,b!==r);if(i.done)return i.value;var l=a(e),m=String(this),f=o(l,RegExp),v=l.unicode,h=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g"),$=new f(g?l:"^(?:"+l.source+")",h),y=void 0===t?p:t>>>0;if(0===y)return[];if(0===m.length)return null===c($,m)?[m]:[];var C=0,N=0,S=[];while(N